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
Modifier and TypeFieldDescriptionstatic final int
Altitude type option, indicates an altitude that an aircraft is operating above.static final int
Altitude type option, indicates a general altitude.static final int
Altitude type option, indicates a block of altitudes.static final int
Altitude type option, indicates an altitude that an aircraft has been cleared to.static final int
Altitude type option, indicates an altitude and a second altitude that is assigned after a specified fix.static final int
Altitude type option, indicates a mode C altitude.static final int
Altitude type option, indicates an unknown altitude type.static final int
Altitude type option, indicates VFR, possibly also an altitude is specified.static final int
Altitude type option, indicates VFR-on-top, possibly also an altitude is specified.static final int
Speed type option, indicates a classified speed.static final int
Speed type option, indicates a mach speed.static final int
Speed type option, indicates a true air speed.static final int
Speed type option, indicates an unknown speed type. -
Constructor Summary
ConstructorDescriptionTLcdASDIMappedInteger
(int aValue, String aValueDescription) Constructs a newTLcdASDIMappedInteger
with an integer number and a string describing that value. -
Method Summary
Modifier and TypeMethodDescriptiondouble
Returns the integer value of the object as adouble
.boolean
float
Returns the integer value of the object as afloat
.Returns theString
describing the value of the object.int
hashCode()
int
intValue()
Returns the integer value of the object.long
Returns 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 newTLcdASDIMappedInteger
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
Returns theString
describing the value of the object.- Returns:
- The
String
describing the value of the object.
-
toString
-
doubleValue
public double doubleValue()Returns the integer value of the object as adouble
.- Specified by:
doubleValue
in 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:
floatValue
in 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()
-