Package edu.nps.moves.dis7.enumerations
Enum LifeFormHumanSpecificHandGuns
java.lang.Object
java.lang.Enum<LifeFormHumanSpecificHandGuns>
edu.nps.moves.dis7.enumerations.LifeFormHumanSpecificHandGuns
- All Implemented Interfaces:
Serializable
,Comparable<LifeFormHumanSpecificHandGuns>
,Constable
This
enum
type is generated from XML,
UID 513,
marshal size 8;
LifeFormHumanSpecificHandGuns has 16 enumerations total.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription.45 Cal M19115.45mm PSM9mm Beretta 92S/92FS (M9)9mm Glock 179mm Handamp;K USP9mm Makarov PM9mm SIG Pro9mm SIG Sauer M179mm Smith and Wesson 5900-series9mm Smith and Wesson SD (Sigma)9mm Smith and Wesson SW19119mm Stechkin APS10mm Glock 209.07mm Ruger GP 100Other9mm MK3 SLP -
Method Summary
Modifier and TypeMethodDescriptionProvide enumeration descriptionstatic int
bit width for this enumerationgetEnumForValue
(int value) Provide enumeration for a given valueint
Returns size of this serialized (marshalled) object in bytesgetName()
Provide nameboolean
getTRACE()
Whether tracing is on or off for this objectint
getValue()
Provide enumeration valuevoid
marshal
(DataOutputStream dos) Marshal value to DataOutputStreamvoid
marshal
(ByteBuffer byteBuffer) Marshal value to ByteBuffervoid
setTRACE
(boolean value) Set tracing on/off for this objecttoString()
Provide simple identifierUnmarshal value to DataInputStreamunmarshalEnum
(ByteBuffer byteBuffer) Unmarshal enumeration value to ByteBufferReturns the enum constant of this type with the specified name.static LifeFormHumanSpecificHandGuns[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
OTHER
Other -
_545MM_PSM
5.45mm PSM -
SUPPLEMENTAL_EMISSION_ENTITY_STATE
9mm MK3 SLP -
_9MM_BERETTA_92S_92FS_M9
9mm Beretta 92S/92FS (M9) -
_9MM_HAMP_K_USP
9mm Handamp;K USP -
_9MM_STECHKIN_APS
9mm Stechkin APS -
_9MM_MAKAROV_PM
9mm Makarov PM -
_9MM_SMITH_AND_WESSON_SD_SIGMA
9mm Smith and Wesson SD (Sigma) -
_9MM_GLOCK_17
9mm Glock 17 -
_9MM_SIG_SAUER_M17
9mm SIG Sauer M17 -
_9MM_SIG_PRO
9mm SIG Pro -
_9MM_SMITH_AND_WESSON_SW1911
9mm Smith and Wesson SW1911 -
_9MM_SMITH_AND_WESSON_5900_SERIES
9mm Smith and Wesson 5900-series -
_45_CAL_M1911
.45 Cal M1911 -
LIVE_ENTITY_DETONATION
9.07mm Ruger GP 100 -
DATA_RELIABLE
10mm Glock 20
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
public int getValue()Provide enumeration value- Returns:
- integer value
-
getDescription
Provide enumeration description- Returns:
- description
-
getEnumBitWidth
public static int getEnumBitWidth()bit width for this enumeration- Returns:
- number of bits wide
-
getEnumForValue
Provide enumeration for a given value- Parameters:
value
- integer value of interest- Returns:
- enumeration corresponding to numeric value
-
setTRACE
public void setTRACE(boolean value) Set tracing on/off for this object- Parameters:
value
- whether tracing is on or off
-
getTRACE
public boolean getTRACE()Whether tracing is on or off for this object- Returns:
- whether tracing is on or off
-
marshal
Marshal value to DataOutputStream- Parameters:
dos
- DataOutputStream for output- Throws:
IOException
- input-output error- See Also:
-
marshal
Marshal value to ByteBuffer- Parameters:
byteBuffer
- ByteBuffer for output- Throws:
IOException
- input-output errorException
- See Also:
-
unmarshalEnum
Unmarshal value to DataInputStream- Parameters:
dis
- DataInputStream for input- Returns:
- enumeration of interest
- Throws:
Exception
- unmarshalling input-output error- See Also:
-
unmarshalEnum
Unmarshal enumeration value to ByteBuffer- Parameters:
byteBuffer
- ByteBuffer for input- Returns:
- enumeration of interest
- Throws:
Exception
- unmarshalling input-output error- See Also:
-
getMarshalledSize
public int getMarshalledSize()Returns size of this serialized (marshalled) object in bytes- Returns:
- serialized size in bytes
- See Also:
-
getName
Provide name- Returns:
- name
-
toString
Provide simple identifier- Overrides:
toString
in classEnum<LifeFormHumanSpecificHandGuns>
- Returns:
- class name, value and name
-