Package org.das2.datum

Provides classes representing physical quanties.

See:
          Description

Class Summary
Basis Model a basis vector that defines a dimension.
Datum A Datum is a number in the context of a Unit, for example "15 microseconds.".
Datum.Double class backing Datums with a double.
DatumRange A DatumRange is provided as a means to carry an ordered pair of Datums representing an interval.
DatumRangeUtil  
DatumRangeUtil.DateDescriptor  
DatumRangeUtilOld  
DatumUtil  
DatumVector  
EnumerationUnits Units class for mapping arbitary objects to Datums.
LocationUnits  
MonthDatumRange  
NumberUnits  
TimeContext  
TimeLocationUnits  
TimeUtil Various time utilities
TimeUtil.TimeDigit  
TimeUtil.TimeStruct  
Units  
UnitsConverter  
UnitsConverter.Appended  
UnitsConverter.ScaleOffset  
UnitsUtil  
 

Exception Summary
InconvertibleUnitsException introduced so that clients can more precisely catch this exception.
 

Package org.das2.datum Description

Provides classes representing physical quanties. The Units class defines an enumeration of physical units such as Units.hertz and Units.microseconds. It also contains a convention for identifying locations in time with units like Units.t1970, the number of microseconds elapsed since midnight, January 1, 1970. The Units class also contains a registry of Units and the conversions between them.

A Datum is a number in the context of a Unit, for example "15 microseconds.". A Datum object has methods for formatting itself as a String, representing itsself as a double in the context of another Unit, and mathematical operators that allow simple calculations to be made at the physical quantities. Also a Datum's precision can be limited to improve formatting.

A DatumRange is a pair of Datums that identify a range in the physical space of a Unit. An example of a formatted DatumRange is "January, 2005" or "0 to 50Hz."

Also there are utility classes for parsing and formatting times.