edu.stanford.nlp.time
Class SUTime.TimeWithRange

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.TimeWithRange
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.TimeWithRange
extends SUTime.Time


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.TimeWithRange(SUTime.Range range)
           
SUTime.TimeWithRange(SUTime.TimeWithRange t, SUTime.Range range)
           
 
Method Summary
 SUTime.Time add(SUTime.Duration offset)
           
 SUTime.Duration getDuration()
           
 SUTime.Range getRange(int flags, SUTime.Duration granularity)
           
 SUTime.Time intersect(SUTime.Time t)
           
 SUTime.Time resolve(SUTime.Time refTime, int flags)
           
 SUTime.TimeWithRange setTimeZone(org.joda.time.DateTimeZone tz)
           
 java.lang.String toFormattedString(int flags)
           
 
Methods inherited from class edu.stanford.nlp.time.SUTime.Time
closest, compareTo, contains, difference, distance, getGranularity, getInterval, getJodaTimeInstant, getJodaTimePartial, getTime, getTimexType, hasTime, intersect, intersect, isComparable, isGrounded, makeComposite, max, min, offset, subtract
 
Methods inherited from class edu.stanford.nlp.time.SUTime.Temporal
addMod, addModApprox, getMod, getPeriod, 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.TimeWithRange

public SUTime.TimeWithRange(SUTime.TimeWithRange t,
                            SUTime.Range range)

SUTime.TimeWithRange

public SUTime.TimeWithRange(SUTime.Range range)
Method Detail

setTimeZone

public SUTime.TimeWithRange setTimeZone(org.joda.time.DateTimeZone tz)
Overrides:
setTimeZone in class SUTime.Temporal

getDuration

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

getRange

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

add

public SUTime.Time add(SUTime.Duration offset)
Specified by:
add in class SUTime.Time

intersect

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

resolve

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

toFormattedString

public java.lang.String toFormattedString(int flags)
Overrides:
toFormattedString in class SUTime.Temporal


Stanford NLP Group