Class TLcdGDFDataUnit

java.lang.Object
com.luciad.format.gdf.TLcdGDFDataUnit

public class TLcdGDFDataUnit extends Object
Represents the different data units that are available within GDF data.
Since:
5.1
  • Field Details Link icon

    • DEG Link icon

      public static final TLcdGDFDataUnit DEG
      GDF Data unit: Degree.
    • GRD Link icon

      public static final TLcdGDFDataUnit GRD
      GDF Data unit: Grade.
    • MTR Link icon

      public static final TLcdGDFDataUnit MTR
      GDF Data unit: Meter.
    • FET Link icon

      public static final TLcdGDFDataUnit FET
      GDF Data unit: Feet.
    • KGR Link icon

      public static final TLcdGDFDataUnit KGR
      GDF Data unit: Kilogram.
    • SEC Link icon

      public static final TLcdGDFDataUnit SEC
      GDF Data unit: Second (of time).
    • MIN Link icon

      public static final TLcdGDFDataUnit MIN
      GDF Data unit: Minute (of time).
    • HOR Link icon

      public static final TLcdGDFDataUnit HOR
      GDF Data unit: Hour.
    • WAT Link icon

      public static final TLcdGDFDataUnit WAT
      GDF Data unit: Watt.
    • VLT Link icon

      public static final TLcdGDFDataUnit VLT
      GDF Data unit: Volt.
    • MPS Link icon

      public static final TLcdGDFDataUnit MPS
      GDF Data unit: Meters per second.
    • KPH Link icon

      public static final TLcdGDFDataUnit KPH
      GDF Data unit: Kilometers per hour.
    • MPH Link icon

      public static final TLcdGDFDataUnit MPH
      GDF Data unit: Miles per hour.
    • YMD Link icon

      public static final TLcdGDFDataUnit YMD
      GDF Data unit: Year,month,day.
    • MDH Link icon

      public static final TLcdGDFDataUnit MDH
      GDF Data unit: Month,day,hour.
    • DHM Link icon

      public static final TLcdGDFDataUnit DHM
      GDF Data unit: Day,hour,minutes.
    • WHM Link icon

      public static final TLcdGDFDataUnit WHM
      GDF Data unit: Weekday,hour,minutes.
    • YXM Link icon

      public static final TLcdGDFDataUnit YXM
      GDF Data unit: Year,month,day,hour,minutes.
    • YXH Link icon

      public static final TLcdGDFDataUnit YXH
      GDF Data unit: Year,month,day,hour.
    • OTH Link icon

      public static final TLcdGDFDataUnit OTH
      GDF Data unit: Other SI-unit, to be described in field description.
  • Method Details Link icon

    • getDataUnitCount Link icon

      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 Link icon

      public static TLcdGDFDataUnit getDataUnit(int aIndex)
      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 Link icon

      public static TLcdGDFDataUnit getDataUnit(String aDataUnitCode)
      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 Link icon

      public static TLcdGDFDataUnit getDataUnit(String aDataUnitCode, String aDescription)
      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 Link icon

      public String getCode()
      Returns the GDF code of this data unit.
      Returns:
      the GDF code of this data unit.
    • getDescription Link icon

      public String getDescription()
      Returns the textual description of this data unit.
      Returns:
      the textual description of this data unit.
    • toString Link icon

      public String toString()
      Returns a general description of this data unit. The exact details of the representation are unspecified and are subject to change.
      Overrides:
      toString in class Object
      Returns:
      a general description of this data unit.
    • equals Link icon

      public boolean equals(Object aObject)
      Returns true if the given object is an instance of TLcdGDFDataUnit and its data unit code equals the data unit code of this object, false otherwise.
      Overrides:
      equals in class Object
      Parameters:
      aObject - the object that is to be compared with this object.
      Returns:
      true if the given object is an instance of TLcdGDFDataUnit and its data unit code equals the data unit code of this object, false otherwise.
    • hashCode Link icon

      public int hashCode()
      Overrides:
      hashCode in class Object