Package edu.nps.moves.dis7.enumerations
Enum USMTFVersion
- All Implemented Interfaces:
Serializable
,Comparable<USMTFVersion>
,Constable
This
enum
type is generated from XML,
UID 584,
marshal size 8;
USMTFVersion has 10 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 ConstantDescriptionUSMTF 1993USMTF 1995USMTF 1997USMTF 1998USMTF 1999USMTF 2000USMTF 2001USMTF 2002USMTF 2003USMTF 2004 -
Method Summary
Modifier and TypeMethodDescriptionProvide enumeration descriptionstatic int
bit width for this enumerationstatic USMTFVersion
getEnumForValue
(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 identifierstatic USMTFVersion
Unmarshal value to DataInputStreamstatic USMTFVersion
unmarshalEnum
(ByteBuffer byteBuffer) Unmarshal enumeration value to ByteBufferstatic USMTFVersion
Returns the enum constant of this type with the specified name.static USMTFVersion[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
USMTF_1993
USMTF 1993 -
USMTF_1995
USMTF 1995 -
USMTF_1997
USMTF 1997 -
USMTF_1998
USMTF 1998 -
USMTF_1999
USMTF 1999 -
USMTF_2000
USMTF 2000 -
USMTF_2001
USMTF 2001 -
USMTF_2002
USMTF 2002 -
USMTF_2003
USMTF 2003 -
USMTF_2004
USMTF 2004
-
-
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<USMTFVersion>
- Returns:
- class name, value and name
-