Class TLcdASDIMappedInteger

java.lang.Object
java.lang.Number
com.luciad.format.asdi.TLcdASDIMappedInteger
All Implemented Interfaces:
Serializable

public class TLcdASDIMappedInteger extends Number
Extension of java.lang.Number that represents an integer value. The difference with a regular java.lang.Integer is that the integer value has some specific meaning that corresponds to a human readable name for the integer number.

ASDI messages sometimes use integer values to choose from a list of possibilities, for example for ILcdASDIFlightPlanMessageFeatures.RT_CAUSING_MESSAGE_TYPE_SF it specifies:

  • 1 -> AF message
  • 4 -> DZ message
  • 5 -> FZ message
  • ...

ASDI messages sometimes contain type information that is extracted from the format of the message, for example ILcdASDIFeatures.SPEED_CF__TYPE_SF contains speed type information. Following types can be distincted :

  • Unknown speed type
  • True air speed
  • Mach speed
  • Classified speed

Both types of features are modeled using a TLcdASDIMappedInteger, so ILcdFeatured.getFeature(int) returns an object of this class. In the second case the integer values are not described in the specification, but this class defines constants for these values allowing to work easily with them. The method intValue() returns the actual integer value, and getValueDescription() and toString() return the human readable description.

Please refer to ALcdASDIModelDescriptor for more information about features.

See Also:
  • Field Details

    • ALTITUDE_TYPE_UNKNOWN

      public static final int ALTITUDE_TYPE_UNKNOWN
      Altitude type option, indicates an unknown altitude type.
      See Also:
    • ALTITUDE_TYPE_ALTITUDE

      public static final int ALTITUDE_TYPE_ALTITUDE
      Altitude type option, indicates a general altitude.
      See Also:
    • ALTITUDE_TYPE_CLEARED_TO_ALTITUDE

      public static final int ALTITUDE_TYPE_CLEARED_TO_ALTITUDE
      Altitude type option, indicates an altitude that an aircraft has been cleared to.
      See Also:
    • ALTITUDE_TYPE_ALTITUDE_BLOCK

      public static final int ALTITUDE_TYPE_ALTITUDE_BLOCK
      Altitude type option, indicates a block of altitudes.
      See Also:
    • ALTITUDE_TYPE_MODE_C_ALTITUDE

      public static final int ALTITUDE_TYPE_MODE_C_ALTITUDE
      Altitude type option, indicates a mode C altitude.
      See Also:
    • ALTITUDE_TYPE_VFR_ON_TOP

      public static final int ALTITUDE_TYPE_VFR_ON_TOP
      Altitude type option, indicates VFR-on-top, possibly also an altitude is specified.
      See Also:
    • ALTITUDE_TYPE_ABOVE_ALTITUDE

      public static final int ALTITUDE_TYPE_ABOVE_ALTITUDE
      Altitude type option, indicates an altitude that an aircraft is operating above.
      See Also:
    • ALTITUDE_TYPE_VFR

      public static final int ALTITUDE_TYPE_VFR
      Altitude type option, indicates VFR, possibly also an altitude is specified.
      See Also:
    • ALTITUDE_TYPE_FIX_ALTITUDES

      public static final int ALTITUDE_TYPE_FIX_ALTITUDES
      Altitude type option, indicates an altitude and a second altitude that is assigned after a specified fix.
      See Also:
    • SPEED_TYPE_UNKNOWN

      public static final int SPEED_TYPE_UNKNOWN
      Speed type option, indicates an unknown speed type.
      See Also:
    • SPEED_TYPE_TRUE_AIR_SPEED

      public static final int SPEED_TYPE_TRUE_AIR_SPEED
      Speed type option, indicates a true air speed.
      See Also:
    • SPEED_TYPE_MACH_SPEED

      public static final int SPEED_TYPE_MACH_SPEED
      Speed type option, indicates a mach speed.
      See Also:
    • SPEED_TYPE_CLASSIFIED_SPEED

      public static final int SPEED_TYPE_CLASSIFIED_SPEED
      Speed type option, indicates a classified speed.
      See Also:
  • Constructor Details

    • TLcdASDIMappedInteger

      public TLcdASDIMappedInteger(int aValue, String aValueDescription)
      Constructs a new TLcdASDIMappedInteger with an integer number and a string describing that value.
      Parameters:
      aValue - The integer value.
      aValueDescription - The human readable description for that value.
  • Method Details

    • getValueDescription

      public String getValueDescription()
      Returns the String describing the value of the object.
      Returns:
      The String describing the value of the object.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • doubleValue

      public double doubleValue()
      Returns the integer value of the object as a double.
      Specified by:
      doubleValue in class Number
      Returns:
      The integer value of the object as a double.
    • floatValue

      public float floatValue()
      Returns the integer value of the object as a float.
      Specified by:
      floatValue in class Number
      Returns:
      The integer value of the object as a float.
    • longValue

      public long longValue()
      Returns the integer value of the object as a long.
      Specified by:
      longValue in class Number
      Returns:
      The integer value of the object as a long.
    • intValue

      public int intValue()
      Returns the integer value of the object.
      Specified by:
      intValue in class Number
      Returns:
      The integer value of the object.
    • stringValue

      public String stringValue()
      Returns the String describing the integer value of the object.
      Returns:
      The String describing the integer value of the object.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object