edu.iris.Fissures.model
Class TimeInterval
java.lang.Object
edu.iris.Fissures.Quantity
edu.iris.Fissures.model.QuantityImpl
edu.iris.Fissures.model.TimeInterval
- All Implemented Interfaces:
- java.io.Serializable, org.omg.CORBA.portable.IDLEntity, org.omg.CORBA.portable.Streamable, org.omg.CORBA.portable.StreamableValue, org.omg.CORBA.portable.ValueBase
public class TimeInterval
- extends QuantityImpl
TimeInterval.java
Created: Wed Sep 1 20:23:31 1999
- See Also:
- Serialized Form
Fields inherited from class edu.iris.Fissures.Quantity |
the_units, value |
Methods inherited from class edu.iris.Fissures.model.QuantityImpl |
abs, add, createEmpty, createQuantityImpl, divideBy, equals, formatValue, get_unit, get_value, getUnit, getValue, getValue, greaterThan, greaterThanEqual, hashCode, inverse, lessThan, lessThanEqual, main, multiplyBy, setDecimalFormat, setFormat, setUnit, setValue, subtract, toString |
Methods inherited from class edu.iris.Fissures.Quantity |
_read, _truncatable_ids, _type, _write |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
TimeInterval
public TimeInterval(edu.iris.Fissures.Quantity interval)
TimeInterval
public TimeInterval(MicroSecondDate begin,
MicroSecondDate end)
TimeInterval
public TimeInterval(double f,
UnitImpl the_unit)
- Creates a TimeInterval with the units and value.
- Throws:
java.lang.IllegalArgumentException
- if the units are not time.
createTimeInterval
public static TimeInterval createTimeInterval(edu.iris.Fissures.Quantity q)
- Creates a TimeInterval froma Quantity, making sure that the
units are time.
- Throws:
java.lang.IllegalArgumentException
- if the units are not time.
convertTo
public QuantityImpl convertTo(UnitImpl newUnit)
- overrides covertTo() in QuantityImpl to return a TimeInterval instead
of a QuantityImpl.
- Overrides:
convertTo
in class QuantityImpl
multiplyBy
public QuantityImpl multiplyBy(double f)
- overrides multiplyBy() in QuantityImpl to return a TimeInterval instead
of a QuantityImpl.
- Overrides:
multiplyBy
in class QuantityImpl
divideBy
public QuantityImpl divideBy(double f)
- overrides divideBy() in QuantityImpl to return a TimeInterval instead
of a QuantityImpl.
- Overrides:
divideBy
in class QuantityImpl
add
public TimeInterval add(TimeInterval t)
subtract
public TimeInterval subtract(TimeInterval t)