Class TLcdASTERIXMappedInteger

java.lang.Object
java.lang.Number
com.luciad.format.asterix.TLcdASTERIXMappedInteger
All Implemented Interfaces:
Serializable

public class TLcdASTERIXMappedInteger 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.

The ASTERIX specifications often use integer values to choose from a list of possibilities, for example for TLcdASTERIXCategory1.I001_020_SI_DS1_DS2 it specifies:

  • 0 -> Default
  • 1 -> Unlawful interference
  • 2 -> Radio-communication failure
  • 3 -> Emergency
These items are modelled using a TLcdASTERIXMappedInteger, so the value of such properties will return an object of this class. The method intValue() returns the actual integer value, and getValueDescription() and toString() return the human readable description.

Please refer to ALcdASTERIXModelDescriptor for more information about the properties of domain objects.

See Also:
  • Constructor Details

    • TLcdASTERIXMappedInteger

      public TLcdASTERIXMappedInteger(int aValue, String aValueDescription)
      Constructs a new TLcdASTERIXMappedInteger 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 that represents the value of the object.
      Returns:
      The String that represents the value of the object.
    • toString

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

      public double doubleValue()
      Specified by:
      doubleValue in class Number
    • floatValue

      public float floatValue()
      Specified by:
      floatValue in class Number
    • longValue

      public long longValue()
      Specified by:
      longValue in class Number
    • intValue

      public int intValue()
      Specified by:
      intValue in class Number
    • stringValue

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

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

      public int hashCode()
      Overrides:
      hashCode in class Object