edu.stanford.nlp.time
Class SUTime.InexactDuration

java.lang.Object
  extended by edu.stanford.nlp.time.SUTime.Temporal
      extended by edu.stanford.nlp.time.SUTime.Duration
          extended by edu.stanford.nlp.time.SUTime.DurationWithFields
              extended by edu.stanford.nlp.time.SUTime.InexactDuration
All Implemented Interfaces:
FuzzyInterval.FuzzyComparable<SUTime.Duration>, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<SUTime.Duration>
Enclosing class:
SUTime

public static class SUTime.InexactDuration
extends SUTime.DurationWithFields

Duration that is inexact. Use for durations such as "several days" in which case, we know the field is DAY, but we don't know the exact number of days

See Also:
Serialized Form

Field Summary
 
Fields inherited from class edu.stanford.nlp.time.SUTime.Temporal
approx, mod, timeLabel
 
Constructor Summary
SUTime.InexactDuration(org.joda.time.ReadablePeriod period)
           
SUTime.InexactDuration(SUTime.Duration d)
           
SUTime.InexactDuration(SUTime.Duration d, org.joda.time.ReadablePeriod period)
           
 
Method Summary
 java.lang.String toFormattedString(int flags)
           
 
Methods inherited from class edu.stanford.nlp.time.SUTime.DurationWithFields
add, divideBy, getJodaTimeDuration, getJodaTimePeriod, multiplyBy, resolve
 
Methods inherited from class edu.stanford.nlp.time.SUTime.Duration
compareTo, getDateTimeFields, getDuration, getDuration, getDuration, getInexactDuration, getInexactDuration, getPeriod, getRange, getTime, getTimexType, intersect, intersect, isComparable, isGrounded, makeInexact, max, min, subtract, toTime, toTime
 
Methods inherited from class edu.stanford.nlp.time.SUTime.Temporal
addMod, addModApprox, getGranularity, getMod, getRange, getRange, getStandardTemporalType, getTfid, getTfidString, getTid, getTidString, getTimeLabel, getTimexAttributes, getTimexValue, includeTimexAltValue, isApprox, isRef, next, prev, resolve, setTimeZone, setTimeZone, toISOString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SUTime.InexactDuration

public SUTime.InexactDuration(org.joda.time.ReadablePeriod period)

SUTime.InexactDuration

public SUTime.InexactDuration(SUTime.Duration d)

SUTime.InexactDuration

public SUTime.InexactDuration(SUTime.Duration d,
                              org.joda.time.ReadablePeriod period)
Method Detail

toFormattedString

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


Stanford NLP Group