edu.stanford.nlp.time
Class SUTime.CompositePartialTime

java.lang.Object
  extended by edu.stanford.nlp.time.SUTime.Temporal
      extended by edu.stanford.nlp.time.SUTime.Time
          extended by edu.stanford.nlp.time.SUTime.PartialTime
              extended by edu.stanford.nlp.time.SUTime.CompositePartialTime
All Implemented Interfaces:
FuzzyInterval.FuzzyComparable<SUTime.Time>, HasInterval<SUTime.Time>, java.lang.Cloneable, java.lang.Comparable<SUTime.Time>
Enclosing class:
SUTime

public static class SUTime.CompositePartialTime
extends SUTime.PartialTime


Field Summary
 
Fields inherited from class edu.stanford.nlp.time.SUTime.Temporal
approx, mod, timeLabel
 
Fields inherited from interface edu.stanford.nlp.util.HasInterval
CONTAINS_FIRST_COMPARATOR, CONTAINS_FIRST_ENDPOINTS_COMPARATOR, ENDPOINTS_COMPARATOR, LENGTH_COMPARATOR, NESTED_FIRST_COMPARATOR, NESTED_FIRST_ENDPOINTS_COMPARATOR
 
Constructor Summary
SUTime.CompositePartialTime(SUTime.PartialTime t, org.joda.time.Partial p, SUTime.Time poy, SUTime.Time dow, SUTime.Time tod)
           
SUTime.CompositePartialTime(SUTime.PartialTime t, SUTime.Time poy, SUTime.Time dow, SUTime.Time tod)
           
 
Method Summary
protected  SUTime.PartialTime addSupported(org.joda.time.Period p, int scalar)
           
protected  SUTime.PartialTime addUnsupported(org.joda.time.Period p, int scalar)
           
 SUTime.Duration getDuration()
           
 org.joda.time.format.DateTimeFormatter getFormatter(int flags)
           
 org.joda.time.Instant getJodaTimeInstant()
           
 SUTime.Duration getPeriod()
           
 SUTime.Range getRange(int flags, SUTime.Duration granularity)
           
 SUTime.TimexType getTimexType()
           
 SUTime.Time intersect(SUTime.Time t)
           
 SUTime.Time resolve(SUTime.Time ref, int flags)
           
 
Methods inherited from class edu.stanford.nlp.time.SUTime.PartialTime
add, appendDateFormats, appendTimeFormats, getJodaTimePartial, hasTime, isCompatible, isGrounded, padMoreSpecificFields, setTimeZone, toFormattedString, toList, withStandardFields
 
Methods inherited from class edu.stanford.nlp.time.SUTime.Time
closest, compareTo, contains, difference, distance, getGranularity, getInterval, getTime, intersect, intersect, isComparable, makeComposite, max, min, offset, subtract
 
Methods inherited from class edu.stanford.nlp.time.SUTime.Temporal
addMod, addModApprox, getMod, getRange, getRange, getStandardTemporalType, getTfid, getTfidString, getTid, getTidString, getTimeLabel, getTimexAttributes, getTimexValue, includeTimexAltValue, isApprox, isRef, next, prev, resolve, setTimeZone, toISOString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SUTime.CompositePartialTime

public SUTime.CompositePartialTime(SUTime.PartialTime t,
                                   SUTime.Time poy,
                                   SUTime.Time dow,
                                   SUTime.Time tod)

SUTime.CompositePartialTime

public SUTime.CompositePartialTime(SUTime.PartialTime t,
                                   org.joda.time.Partial p,
                                   SUTime.Time poy,
                                   SUTime.Time dow,
                                   SUTime.Time tod)
Method Detail

getJodaTimeInstant

public org.joda.time.Instant getJodaTimeInstant()
Overrides:
getJodaTimeInstant in class SUTime.PartialTime

getDuration

public SUTime.Duration getDuration()
Overrides:
getDuration in class SUTime.PartialTime

getPeriod

public SUTime.Duration getPeriod()
Overrides:
getPeriod in class SUTime.PartialTime

getRange

public SUTime.Range getRange(int flags,
                             SUTime.Duration granularity)
Overrides:
getRange in class SUTime.PartialTime

intersect

public SUTime.Time intersect(SUTime.Time t)
Overrides:
intersect in class SUTime.PartialTime

addSupported

protected SUTime.PartialTime addSupported(org.joda.time.Period p,
                                          int scalar)
Overrides:
addSupported in class SUTime.PartialTime

addUnsupported

protected SUTime.PartialTime addUnsupported(org.joda.time.Period p,
                                            int scalar)
Overrides:
addUnsupported in class SUTime.PartialTime

resolve

public SUTime.Time resolve(SUTime.Time ref,
                           int flags)
Overrides:
resolve in class SUTime.PartialTime

getFormatter

public org.joda.time.format.DateTimeFormatter getFormatter(int flags)
Overrides:
getFormatter in class SUTime.PartialTime

getTimexType

public SUTime.TimexType getTimexType()
Overrides:
getTimexType in class SUTime.Time


Stanford NLP Group