Package com.luciad.format.asdi
Class TLcdASDIMappedInteger
java.lang.Object
java.lang.Number
com.luciad.format.asdi.TLcdASDIMappedInteger
- All Implemented Interfaces:
Serializable
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
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final intAltitude type option, indicates an altitude that an aircraft is operating above.static final intAltitude type option, indicates a general altitude.static final intAltitude type option, indicates a block of altitudes.static final intAltitude type option, indicates an altitude that an aircraft has been cleared to.static final intAltitude type option, indicates an altitude and a second altitude that is assigned after a specified fix.static final intAltitude type option, indicates a mode C altitude.static final intAltitude type option, indicates an unknown altitude type.static final intAltitude type option, indicates VFR, possibly also an altitude is specified.static final intAltitude type option, indicates VFR-on-top, possibly also an altitude is specified.static final intSpeed type option, indicates a classified speed.static final intSpeed type option, indicates a mach speed.static final intSpeed type option, indicates a true air speed.static final intSpeed type option, indicates an unknown speed type. -
Constructor Summary
ConstructorsConstructorDescriptionTLcdASDIMappedInteger(int aValue, String aValueDescription) Constructs a newTLcdASDIMappedIntegerwith an integer number and a string describing that value. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the integer value of the object as adouble.booleanfloatReturns the integer value of the object as afloat.Returns theStringdescribing the value of the object.inthashCode()intintValue()Returns the integer value of the object.longReturns the integer value of the object as along.Returns the String describing the integer value of the object.toString()Methods inherited from class java.lang.Number
byteValue, shortValue
-
Field Details
-
ALTITUDE_TYPE_UNKNOWN
public static final int ALTITUDE_TYPE_UNKNOWNAltitude type option, indicates an unknown altitude type.- See Also:
-
ALTITUDE_TYPE_ALTITUDE
public static final int ALTITUDE_TYPE_ALTITUDEAltitude type option, indicates a general altitude.- See Also:
-
ALTITUDE_TYPE_CLEARED_TO_ALTITUDE
public static final int ALTITUDE_TYPE_CLEARED_TO_ALTITUDEAltitude 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_BLOCKAltitude type option, indicates a block of altitudes.- See Also:
-
ALTITUDE_TYPE_MODE_C_ALTITUDE
public static final int ALTITUDE_TYPE_MODE_C_ALTITUDEAltitude type option, indicates a mode C altitude.- See Also:
-
ALTITUDE_TYPE_VFR_ON_TOP
public static final int ALTITUDE_TYPE_VFR_ON_TOPAltitude 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_ALTITUDEAltitude type option, indicates an altitude that an aircraft is operating above.- See Also:
-
ALTITUDE_TYPE_VFR
public static final int ALTITUDE_TYPE_VFRAltitude type option, indicates VFR, possibly also an altitude is specified.- See Also:
-
ALTITUDE_TYPE_FIX_ALTITUDES
public static final int ALTITUDE_TYPE_FIX_ALTITUDESAltitude 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_UNKNOWNSpeed type option, indicates an unknown speed type.- See Also:
-
SPEED_TYPE_TRUE_AIR_SPEED
public static final int SPEED_TYPE_TRUE_AIR_SPEEDSpeed type option, indicates a true air speed.- See Also:
-
SPEED_TYPE_MACH_SPEED
public static final int SPEED_TYPE_MACH_SPEEDSpeed type option, indicates a mach speed.- See Also:
-
SPEED_TYPE_CLASSIFIED_SPEED
public static final int SPEED_TYPE_CLASSIFIED_SPEEDSpeed type option, indicates a classified speed.- See Also:
-
-
Constructor Details
-
TLcdASDIMappedInteger
Constructs a newTLcdASDIMappedIntegerwith 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
Returns theStringdescribing the value of the object.- Returns:
- The
Stringdescribing the value of the object.
-
toString
-
doubleValue
public double doubleValue()Returns the integer value of the object as adouble.- Specified by:
doubleValuein classNumber- Returns:
- The integer value of the object as a
double.
-
floatValue
public float floatValue()Returns the integer value of the object as afloat.- Specified by:
floatValuein classNumber- Returns:
- The integer value of the object as a
float.
-
longValue
public long longValue()Returns the integer value of the object as along. -
intValue
public int intValue()Returns the integer value of the object. -
stringValue
Returns the String describing the integer value of the object.- Returns:
- The String describing the integer value of the object.
-
equals
-
hashCode
public int hashCode()
-