|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmil.navy.nps.disEnumerations.DeadReckoningAlgorithmField
Dead Reckoning Algorithm Field -- Indicates the type of dead reckoning algorithm used by an entity.
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 DeadReckoningAlgorithmField.DRM8
, i.e. combine
the class name, a period, and a class variable (enumeration) name.
Field Summary | |
static short |
DRM
(2) DRM(F, P, W) |
static short |
DRM2
(3) DRM(R, P, W) |
static short |
DRM3
(4) DRM(R, V, W) |
static short |
DRM4
(5) DRM(F, V, W) |
static short |
DRM5
(6) DRM(F, P, B) |
static short |
DRM6
(7) DRM(R, P, B) |
static short |
DRM7
(8) DRM(R, V, B) |
static short |
DRM8
(9) DRM(F, V, B) |
static short |
OTHER
(0) Other |
static short |
STATIC
(1) Static (Entity does not move) |
Constructor Summary | |
DeadReckoningAlgorithmField()
|
Method Summary | |
static java.lang.String |
toString(int idNumber)
Returns a string containing the enumeration name which corresponds to an enumeration value, as in DeadReckoningAlgorithmField.toString (0) returns the string "OTHER " |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final short OTHER
public static final short STATIC
public static final short DRM
public static final short DRM2
public static final short DRM3
public static final short DRM4
public static final short DRM5
public static final short DRM6
public static final short DRM7
public static final short DRM8
Constructor Detail |
public DeadReckoningAlgorithmField()
Method Detail |
public static java.lang.String toString(int idNumber)
DeadReckoningAlgorithmField.toString (0)
returns the string "OTHER
"
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |