mil.navy.nps.disEnumerations
Class DetonationResultField

java.lang.Object
  extended bymil.navy.nps.disEnumerations.DetonationResultField

public class DetonationResultField
extends java.lang.Object

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).

Version:
1.1
Author:
Ronan Fauglas, Don Brutzman
References:
DIS Data Dictionary: Detonation Result Field (local) Detonation Result Field (SISO)
JDBE:DIS Data Dictionary Version 1.0a (DIS-DD)
Perl script (converting html enumerations to java enumerations) convertJdbeDisEnumerationsToJava.pl (local) or http://web.3D.org/WorkingGroups/vrtp/mil/navy/nps/disEnumerations/convertJdbeDisEnumerationsToJava.pl
"Named Constants," The Java Programming Language, Gosling & Arnold.
Explanation:
This file has been automatically generated from a local copy of the DIS Data Dictionary at http://SISO.sc.ist.ucf.edu/dis/dis-dd/ html source file by convertJdbeDisEnumerationsToJava.pl (local) or http://www.web3D.org/WorkingGroups/vrtp/mil/navy/nps/disEnumerations/convertJdbeDisEnumerationsToJava.pl.

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.

History:
21jan98 /Ronan Fauglas /New
30mar99 /Don Brutzman /Revised Javadoc, many more enumeration classes
Location:
DetonationResultField.java (local)
http://www.web3D.org/WorkingGroups/vrtp/mil/navy/nps/disEnumerations/DetonationResultField.java

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

OTHER

public static final short OTHER
(0) Other

See Also:
Constant Field Values

ENTITYIMPACT

public static final short ENTITYIMPACT
(1) Entity Impact

See Also:
Constant Field Values

ARMORPIERCINGHIT

public static final short ARMORPIERCINGHIT
(10) Armor-piercing hit

See Also:
Constant Field Values

DIRTBLASTSMALL

public static final short DIRTBLASTSMALL
(11) Dirt blast, small

See Also:
Constant Field Values

DIRTBLASTMEDIUM

public static final short DIRTBLASTMEDIUM
(12) Dirt blast, medium

See Also:
Constant Field Values

DIRTBLASTLARGE

public static final short DIRTBLASTLARGE
(13) Dirt blast, large

See Also:
Constant Field Values

WATERBLASTSMALL

public static final short WATERBLASTSMALL
(14) Water blast, small

See Also:
Constant Field Values

WATERBLASTMEDIUM

public static final short WATERBLASTMEDIUM
(15) Water blast, medium

See Also:
Constant Field Values

WATERBLASTLARGE

public static final short WATERBLASTLARGE
(16) Water blast, large

See Also:
Constant Field Values

AIRHIT

public static final short AIRHIT
(17) Air hit

See Also:
Constant Field Values

BUILDINGHITSMALL

public static final short BUILDINGHITSMALL
(18) Building hit, small

See Also:
Constant Field Values

BUILDINGHITMEDIUM

public static final short BUILDINGHITMEDIUM
(19) Building hit, medium

See Also:
Constant Field Values

ENTITYPROXIMATEDETONATION

public static final short ENTITYPROXIMATEDETONATION
(2) Entity Proximate Detonation

See Also:
Constant Field Values

BUILDINGHITLARGE

public static final short BUILDINGHITLARGE
(20) Building hit, large

See Also:
Constant Field Values

MINECLEARINGLINECHARGE

public static final short MINECLEARINGLINECHARGE
(21) Mine-clearing line charge

See Also:
Constant Field Values

ENVIRONMENTOBJECTIMPACT

public static final short ENVIRONMENTOBJECTIMPACT
(22) Environment object impact

See Also:
Constant Field Values

ENVIRONMENTOBJECTPROXIMATEDETONATION

public static final short ENVIRONMENTOBJECTPROXIMATEDETONATION
(23) Environment object proximate detonation

See Also:
Constant Field Values

WATERIMPACT

public static final short WATERIMPACT
(24) Water Impact

See Also:
Constant Field Values

AIRBURST

public static final short AIRBURST
(25) Air Burst

See Also:
Constant Field Values

GROUNDIMPACT

public static final short GROUNDIMPACT
(3) Ground Impact

See Also:
Constant Field Values

GROUNDPROXIMATEDETONATION

public static final short GROUNDPROXIMATEDETONATION
(4) Ground Proximate Detonation

See Also:
Constant Field Values

DETONATION

public static final short DETONATION
(5) Detonation

See Also:
Constant Field Values

NONE

public static final short NONE
(6) None

See Also:
Constant Field Values

HEHITSMALL

public static final short HEHITSMALL
(7) HE hit, small

See Also:
Constant Field Values

HEHITMEDIUM

public static final short HEHITMEDIUM
(8) HE hit, medium

See Also:
Constant Field Values

HEHITLARGE

public static final short HEHITLARGE
(9) HE hit, large

See Also:
Constant Field Values
Constructor Detail

DetonationResultField

public DetonationResultField()
Method Detail

toString

public 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"