|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmil.navy.nps.disEnumerations.DetonationResultField
Detonation Result Field -- This field shall specify the result of the detonation. This field shall be represented by an 8-bit enumberation (see Section 5 in EBV-DOC).
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 DetonationResultField.HEHITLARGE
, i.e. combine
the class name, a period, and a class variable (enumeration) name.
Field Summary | |
static short |
AIRBURST
(25) Air Burst |
static short |
AIRHIT
(17) Air hit |
static short |
ARMORPIERCINGHIT
(10) Armor-piercing hit |
static short |
BUILDINGHITLARGE
(20) Building hit, large |
static short |
BUILDINGHITMEDIUM
(19) Building hit, medium |
static short |
BUILDINGHITSMALL
(18) Building hit, small |
static short |
DETONATION
(5) Detonation |
static short |
DIRTBLASTLARGE
(13) Dirt blast, large |
static short |
DIRTBLASTMEDIUM
(12) Dirt blast, medium |
static short |
DIRTBLASTSMALL
(11) Dirt blast, small |
static short |
ENTITYIMPACT
(1) Entity Impact |
static short |
ENTITYPROXIMATEDETONATION
(2) Entity Proximate Detonation |
static short |
ENVIRONMENTOBJECTIMPACT
(22) Environment object impact |
static short |
ENVIRONMENTOBJECTPROXIMATEDETONATION
(23) Environment object proximate detonation |
static short |
GROUNDIMPACT
(3) Ground Impact |
static short |
GROUNDPROXIMATEDETONATION
(4) Ground Proximate Detonation |
static short |
HEHITLARGE
(9) HE hit, large |
static short |
HEHITMEDIUM
(8) HE hit, medium |
static short |
HEHITSMALL
(7) HE hit, small |
static short |
MINECLEARINGLINECHARGE
(21) Mine-clearing line charge |
static short |
NONE
(6) None |
static short |
OTHER
(0) Other |
static short |
WATERBLASTLARGE
(16) Water blast, large |
static short |
WATERBLASTMEDIUM
(15) Water blast, medium |
static short |
WATERBLASTSMALL
(14) Water blast, small |
static short |
WATERIMPACT
(24) Water Impact |
Constructor Summary | |
DetonationResultField()
|
Method Summary | |
static java.lang.String |
toString(int idNumber)
Returns a string containing the enumeration name which corresponds to an enumeration value, as in DetonationResultField.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 ENTITYIMPACT
public static final short ARMORPIERCINGHIT
public static final short DIRTBLASTSMALL
public static final short DIRTBLASTMEDIUM
public static final short DIRTBLASTLARGE
public static final short WATERBLASTSMALL
public static final short WATERBLASTMEDIUM
public static final short WATERBLASTLARGE
public static final short AIRHIT
public static final short BUILDINGHITSMALL
public static final short BUILDINGHITMEDIUM
public static final short ENTITYPROXIMATEDETONATION
public static final short BUILDINGHITLARGE
public static final short MINECLEARINGLINECHARGE
public static final short ENVIRONMENTOBJECTIMPACT
public static final short ENVIRONMENTOBJECTPROXIMATEDETONATION
public static final short WATERIMPACT
public static final short AIRBURST
public static final short GROUNDIMPACT
public static final short GROUNDPROXIMATEDETONATION
public static final short DETONATION
public static final short NONE
public static final short HEHITSMALL
public static final short HEHITMEDIUM
public static final short HEHITLARGE
Constructor Detail |
public DetonationResultField()
Method Detail |
public static java.lang.String toString(int idNumber)
DetonationResultField.toString (0)
returns the string "OTHER
"
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |