public class TLcdASDIMappedInteger extends Number
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:
->
AF message
->
DZ message
->
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 :
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.Modifier and Type | Field and Description |
---|---|
static int |
ALTITUDE_TYPE_ABOVE_ALTITUDE
Altitude type option, indicates an altitude that an aircraft is operating above.
|
static int |
ALTITUDE_TYPE_ALTITUDE
Altitude type option, indicates a general altitude.
|
static int |
ALTITUDE_TYPE_ALTITUDE_BLOCK
Altitude type option, indicates a block of altitudes.
|
static int |
ALTITUDE_TYPE_CLEARED_TO_ALTITUDE
Altitude type option, indicates an altitude that an aircraft has been cleared to.
|
static int |
ALTITUDE_TYPE_FIX_ALTITUDES
Altitude type option, indicates an altitude and a second altitude that is assigned after a specified fix.
|
static int |
ALTITUDE_TYPE_MODE_C_ALTITUDE
Altitude type option, indicates a mode C altitude.
|
static int |
ALTITUDE_TYPE_UNKNOWN
Altitude type option, indicates an unknown altitude type.
|
static int |
ALTITUDE_TYPE_VFR
Altitude type option, indicates VFR, possibly also an altitude is specified.
|
static int |
ALTITUDE_TYPE_VFR_ON_TOP
Altitude type option, indicates VFR-on-top, possibly also an altitude is specified.
|
static int |
SPEED_TYPE_CLASSIFIED_SPEED
Speed type option, indicates a classified speed.
|
static int |
SPEED_TYPE_MACH_SPEED
Speed type option, indicates a mach speed.
|
static int |
SPEED_TYPE_TRUE_AIR_SPEED
Speed type option, indicates a true air speed.
|
static int |
SPEED_TYPE_UNKNOWN
Speed type option, indicates an unknown speed type.
|
Constructor and Description |
---|
TLcdASDIMappedInteger(int aValue,
String aValueDescription)
Constructs a new
TLcdASDIMappedInteger with an integer number
and a string describing that value. |
Modifier and Type | Method and Description |
---|---|
double |
doubleValue()
Returns the integer value of the object as a
double . |
boolean |
equals(Object obj) |
float |
floatValue()
Returns the integer value of the object as a
float . |
String |
getValueDescription()
Returns the
String describing the value of the object. |
int |
hashCode() |
int |
intValue()
Returns the integer value of the object.
|
long |
longValue()
Returns the integer value of the object as a
long . |
String |
stringValue()
Returns the String describing the integer value of the object.
|
String |
toString() |
byteValue, shortValue
public static final int ALTITUDE_TYPE_UNKNOWN
public static final int ALTITUDE_TYPE_ALTITUDE
public static final int ALTITUDE_TYPE_CLEARED_TO_ALTITUDE
public static final int ALTITUDE_TYPE_ALTITUDE_BLOCK
public static final int ALTITUDE_TYPE_MODE_C_ALTITUDE
public static final int ALTITUDE_TYPE_VFR_ON_TOP
public static final int ALTITUDE_TYPE_ABOVE_ALTITUDE
public static final int ALTITUDE_TYPE_VFR
public static final int ALTITUDE_TYPE_FIX_ALTITUDES
public static final int SPEED_TYPE_UNKNOWN
public static final int SPEED_TYPE_TRUE_AIR_SPEED
public static final int SPEED_TYPE_MACH_SPEED
public static final int SPEED_TYPE_CLASSIFIED_SPEED
public TLcdASDIMappedInteger(int aValue, String aValueDescription)
TLcdASDIMappedInteger
with an integer number
and a string describing that value.aValue
- The integer value.aValueDescription
- The human readable description for that value.public String getValueDescription()
String
describing the value of the object.String
describing the value of the object.public double doubleValue()
double
.doubleValue
in class Number
double
.public float floatValue()
float
.floatValue
in class Number
float
.public long longValue()
long
.public int intValue()
public String stringValue()