edu.stanford.nlp.time
Class SUTime.DurationWithFields

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
All Implemented Interfaces:
FuzzyInterval.FuzzyComparable<SUTime.Duration>, java.lang.Cloneable, java.lang.Comparable<SUTime.Duration>
Direct Known Subclasses:
SUTime.InexactDuration
Enclosing class:
SUTime

public static class SUTime.DurationWithFields
extends SUTime.Duration

Duration that is specified using fields such as milliseconds, days, etc.


Field Summary
 
Fields inherited from class edu.stanford.nlp.time.SUTime.Temporal
approx, mod, timeLabel
 
Constructor Summary
SUTime.DurationWithFields()
           
SUTime.DurationWithFields(org.joda.time.ReadablePeriod period)
           
SUTime.DurationWithFields(SUTime.Duration d, org.joda.time.ReadablePeriod period)
           
 
Method Summary
 SUTime.Duration add(SUTime.Duration d)
           
 SUTime.Duration divideBy(int m)
           
 org.joda.time.Duration getJodaTimeDuration()
           
 org.joda.time.Period getJodaTimePeriod()
           
 SUTime.Duration multiplyBy(int m)
           
 SUTime.Duration resolve(SUTime.Time refTime, int flags)
           
 
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, toFormattedString, 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.DurationWithFields

public SUTime.DurationWithFields()

SUTime.DurationWithFields

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

SUTime.DurationWithFields

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

multiplyBy

public SUTime.Duration multiplyBy(int m)
Specified by:
multiplyBy in class SUTime.Duration

divideBy

public SUTime.Duration divideBy(int m)
Specified by:
divideBy in class SUTime.Duration

getJodaTimePeriod

public org.joda.time.Period getJodaTimePeriod()
Specified by:
getJodaTimePeriod in class SUTime.Duration

getJodaTimeDuration

public org.joda.time.Duration getJodaTimeDuration()
Specified by:
getJodaTimeDuration in class SUTime.Duration

resolve

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

add

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


Stanford NLP Group