Package com.luciad.format.gdf
Class TLcdGDFDataUnit
java.lang.Object
com.luciad.format.gdf.TLcdGDFDataUnit
Represents the different data units that are available within GDF data.
- Since:
- 5.1
-
Field Summary
Modifier and TypeFieldDescriptionstatic final TLcdGDFDataUnit
GDF Data unit: Degree.static final TLcdGDFDataUnit
GDF Data unit: Day,hour,minutes.static final TLcdGDFDataUnit
GDF Data unit: Feet.static final TLcdGDFDataUnit
GDF Data unit: Grade.static final TLcdGDFDataUnit
GDF Data unit: Hour.static final TLcdGDFDataUnit
GDF Data unit: Kilogram.static final TLcdGDFDataUnit
GDF Data unit: Kilometers per hour.static final TLcdGDFDataUnit
GDF Data unit: Month,day,hour.static final TLcdGDFDataUnit
GDF Data unit: Minute (of time).static final TLcdGDFDataUnit
GDF Data unit: Miles per hour.static final TLcdGDFDataUnit
GDF Data unit: Meters per second.static final TLcdGDFDataUnit
GDF Data unit: Meter.static final TLcdGDFDataUnit
GDF Data unit: Other SI-unit, to be described in field description.static final TLcdGDFDataUnit
GDF Data unit: Second (of time).static final TLcdGDFDataUnit
GDF Data unit: Volt.static final TLcdGDFDataUnit
GDF Data unit: Watt.static final TLcdGDFDataUnit
GDF Data unit: Weekday,hour,minutes.static final TLcdGDFDataUnit
GDF Data unit: Year,month,day.static final TLcdGDFDataUnit
GDF Data unit: Year,month,day,hour.static final TLcdGDFDataUnit
GDF Data unit: Year,month,day,hour,minutes. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true if the given object is an instance ofTLcdGDFDataUnit and its data unit code equals the data unit code of this object, false otherwise.
getCode()
Returns the GDF code of this data unit.static TLcdGDFDataUnit
getDataUnit
(int aIndex) Returns the data unit at the given index (default units + units created at runtime).static TLcdGDFDataUnit
getDataUnit
(String aDataUnitCode) Returns the data unit with the given Data Unit Code as described in the GDF specification.static TLcdGDFDataUnit
getDataUnit
(String aDataUnitCode, String aDescription) Returns a new TLcdGDFDataUnit object with the given data unit code and description.static int
Returns the number of data units that are available (default units + units created at runtime).Returns the textual description of this data unit.int
hashCode()
toString()
Returns a general description of this data unit.
-
Field Details
-
DEG
GDF Data unit: Degree. -
GRD
GDF Data unit: Grade. -
MTR
GDF Data unit: Meter. -
FET
GDF Data unit: Feet. -
KGR
GDF Data unit: Kilogram. -
SEC
GDF Data unit: Second (of time). -
MIN
GDF Data unit: Minute (of time). -
HOR
GDF Data unit: Hour. -
WAT
GDF Data unit: Watt. -
VLT
GDF Data unit: Volt. -
MPS
GDF Data unit: Meters per second. -
KPH
GDF Data unit: Kilometers per hour. -
MPH
GDF Data unit: Miles per hour. -
YMD
GDF Data unit: Year,month,day. -
MDH
GDF Data unit: Month,day,hour. -
DHM
GDF Data unit: Day,hour,minutes. -
WHM
GDF Data unit: Weekday,hour,minutes. -
YXM
GDF Data unit: Year,month,day,hour,minutes. -
YXH
GDF Data unit: Year,month,day,hour. -
OTH
GDF Data unit: Other SI-unit, to be described in field description.
-
-
Method Details
-
getDataUnitCount
public static int getDataUnitCount()Returns the number of data units that are available (default units + units created at runtime).- Returns:
- the number of data units that are available.
-
getDataUnit
Returns the data unit at the given index (default units + units created at runtime).- Parameters:
aIndex
- the index of the data unit to be returned.- Returns:
- the data unit at the given index.
- Throws:
IndexOutOfBoundsException
-
getDataUnit
Returns the data unit with the given Data Unit Code as described in the GDF specification.- Parameters:
aDataUnitCode
- the Data Unit Code of the data unit to be returned.- Returns:
- the data unit with the given Data Unit Code.
- Throws:
IllegalArgumentException
- if no data unit exists for the given Data Unit Code.
-
getDataUnit
Returns a new TLcdGDFDataUnit object with the given data unit code and description.- Parameters:
aDataUnitCode
- the Data Unit Code of the data unit to be returned.aDescription
- a textual description of the data unit to be returned.- Returns:
- a TLcdGDFDataUnit object with the given data unit code and description.
- Throws:
IllegalArgumentException
- if there exists already a data unit with the given Data Unit Code.
-
getCode
Returns the GDF code of this data unit.- Returns:
- the GDF code of this data unit.
-
getDescription
Returns the textual description of this data unit.- Returns:
- the textual description of this data unit.
-
toString
Returns a general description of this data unit. The exact details of the representation are unspecified and are subject to change. -
equals
Returns true if the given object is an instance ofTLcdGDFDataUnit and its data unit code equals the data unit code of this object, false otherwise.
-
hashCode
public int hashCode()
-