Overview | Package | Class | Tree | Deprecated | Index | Help | |||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--mil.navy.nps.disEnumerations.PDUTypeField
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, 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 PDUTypeField.REPAIRCOMPLETE;
the class name, a period, and the class variable name.
Field Summary | |
static short | ACKNOWLEDGE
(15) |
static short | ACTIONREQUEST
(16) |
static short | ACTIONRESPONSE
(17) |
static short | AGGREGATE
(170) |
static short | ANNOUNCEOBJECT
(129) |
static short | APPEARANCEFI
(141) |
static short | AREALOBJECTSTATE
(152) |
static short | ARTICULATEDPARTSFI
(142) |
static short | COLLISION
(4) |
static short | CREATEENTITY
(11) |
static short | DATA
(20) |
static short | DATAQUERY
(18) |
static short | DELETEOBJECT
(130) |
static short | DESCRIBEAPPLICATION
(131) |
static short | DESCRIBEEVENT
(132) |
static short | DESCRIBEOBJECT
(133) |
static short | DESIGNATOR
(24) |
static short | DETONATIONFI
(144) |
static short | DETONATION
(3) |
static short | ELECTROMAGNETICEMISSION
(23) |
static short | ENTITYSTATE
(1) |
static short | ENVIRONMENT
(153) |
static short | EVENTREPORT
(21) |
static short | FIREFI
(143) |
static short | FIRE
(2) |
static short | INTERCOMCONTROL
(160) |
static short | INTERCOMSIGNAL
(161) |
static short | LINEAROBJECTSTATE
(151) |
static short | MESSAGE
(22) |
static short | OTHER
(0) |
static short | POINTOBJECTSTATE
(150) |
static short | RECEIVER
(27) |
static short | REMOVEENTITY
(12) |
static short | REPAIRCOMPLETE
(9) |
static short | REPAIRRESPONSE
(10) |
static short | REQUESTEVENT
(134) |
static short | REQUESTOBJECT
(135) |
static short | RESUPPLYCANCEL
(8) |
static short | RESUPPLYOFFER
(6) |
static short | RESUPPLYRECEIVED
(7) |
static short | SERVICEREQUEST
(5) |
static short | SETDATA
(19) |
static short | SIGNAL
(26) |
static short | STARTRESUME
(13) |
static short | STOPFREEZE
(14) |
static short | TIMESPACEPOSITIONINDICATORFI
(140) |
static short | TRANSFERCONTROLACKNOWLEDGE
(157) |
static short | TRANSFERCONTROL
(156) |
static short | TRANSFERCONTROLREQUEST
(155) |
static short | TRANSMITTER
(25) |
Method Summary | |
java.lang.String | toString(int idNumber)
|
Methods inherited from class java.lang.Object | |
Field Detail |
public static final short OTHER
public static final short ENTITYSTATE
public static final short REPAIRRESPONSE
public static final short CREATEENTITY
public static final short REMOVEENTITY
public static final short ANNOUNCEOBJECT
public static final short STARTRESUME
public static final short DELETEOBJECT
public static final short DESCRIBEAPPLICATION
public static final short DESCRIBEEVENT
public static final short DESCRIBEOBJECT
public static final short REQUESTEVENT
public static final short REQUESTOBJECT
public static final short STOPFREEZE
public static final short TIMESPACEPOSITIONINDICATORFI
public static final short APPEARANCEFI
public static final short ARTICULATEDPARTSFI
public static final short FIREFI
public static final short DETONATIONFI
public static final short ACKNOWLEDGE
public static final short POINTOBJECTSTATE
public static final short LINEAROBJECTSTATE
public static final short AREALOBJECTSTATE
public static final short ENVIRONMENT
public static final short TRANSFERCONTROLREQUEST
public static final short TRANSFERCONTROL
public static final short TRANSFERCONTROLACKNOWLEDGE
public static final short ACTIONREQUEST
public static final short INTERCOMCONTROL
public static final short INTERCOMSIGNAL
public static final short ACTIONRESPONSE
public static final short AGGREGATE
public static final short DATAQUERY
public static final short SETDATA
public static final short FIRE
public static final short DATA
public static final short EVENTREPORT
public static final short MESSAGE
public static final short ELECTROMAGNETICEMISSION
public static final short DESIGNATOR
public static final short TRANSMITTER
public static final short SIGNAL
public static final short RECEIVER
public static final short DETONATION
public static final short COLLISION
public static final short SERVICEREQUEST
public static final short RESUPPLYOFFER
public static final short RESUPPLYRECEIVED
public static final short RESUPPLYCANCEL
public static final short REPAIRCOMPLETE
Method Detail |
public java.lang.String toString(int idNumber)
Overview | Package | Class | Tree | Deprecated | Index | Help | |||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |