|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmil.navy.nps.disEnumerations.ParameterTypeArticulatedPartsLowBitsField
Parameter Type Articulated Parts LowBits Field -- These Enumerations are used to describe a part of the Articulated Parameter Enumeration. They are combined with the Parameter Type Articulated Parts HighBits enumeration to make a complete 32 bit Enumeration. i.e.
This is effectively a C-style enumeration. Java doesn't do enumerations like C, so you have to wrap a class around it. It's a bit more typing, but pretty simple-minded. Note that the variables are declared public. The default for access is package-wide, but these variables might need to be accessed from outside the package. Since all the variables are final (i.e. constant), nobody can change anything anyway, so this is no biggie.
To use these enumerations in your Java code, import the package first:
import mil.navy.nps.disEnumerations.*;
You access this via something like ParameterTypeArticulatedPartsLowBitsField.Z
, i.e. combine
the class name, a period, and a class variable (enumeration) name.
Field Summary | |
static short |
AZIMUTH
(11) Azimuth |
static short |
AZIMUTHRATE
(12) Azimuth rate |
static short |
ELEVATION
(13) Elevation |
static short |
ELEVATIONRATE
(14) Elevation Rate |
static short |
EXTENSION
(3) Extension |
static short |
EXTENSIONRATE
(4) Extension Rate |
static short |
POSITION
(1) Position |
static short |
POSITIONRATE
(2) Position Rate |
static short |
ROTATION
(15) Rotation |
static short |
ROTATIONRATE
(16) Rotation Rate |
static short |
X
(5) X |
static short |
XRATE
(6) X rate |
static short |
Y
(7) Y |
static short |
YRATE
(8) Y rate |
static short |
Z
(9) Z |
static short |
ZRATE
(10) Z rate |
Constructor Summary | |
ParameterTypeArticulatedPartsLowBitsField()
|
Method Summary | |
static java.lang.String |
toString(int idNumber)
Returns a string containing the enumeration name which corresponds to an enumeration value, as in ParameterTypeArticulatedPartsLowBitsField.toString (1) returns the string "POSITION " |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final short POSITION
public static final short ZRATE
public static final short AZIMUTH
public static final short AZIMUTHRATE
public static final short ELEVATION
public static final short ELEVATIONRATE
public static final short ROTATION
public static final short ROTATIONRATE
public static final short POSITIONRATE
public static final short EXTENSION
public static final short EXTENSIONRATE
public static final short X
public static final short XRATE
public static final short Y
public static final short YRATE
public static final short Z
Constructor Detail |
public ParameterTypeArticulatedPartsLowBitsField()
Method Detail |
public static java.lang.String toString(int idNumber)
ParameterTypeArticulatedPartsLowBitsField.toString (1)
returns the string "POSITION
"
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |