Package edu.nps.moves.dis7.enumerations
Enum Class SubcategoriesforLandCategory200Mammal
java.lang.Object
java.lang.Enum<SubcategoriesforLandCategory200Mammal>
edu.nps.moves.dis7.enumerations.SubcategoriesforLandCategory200Mammal
- All Implemented Interfaces:
SubCategory
,Serializable
,Comparable<SubcategoriesforLandCategory200Mammal>
,Constable
public enum SubcategoriesforLandCategory200Mammal
extends Enum<SubcategoriesforLandCategory200Mammal>
implements SubCategory
This
enum
type is generated from XML,
UID 100, marshal size 8;
SubcategoriesforLandCategory200Mammal has 29 enumerations total.
1-199 Domesticated animals, 200-255 Wild animals- 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 ConstantDescriptionAustralian Cattle DogBactrian Camel (Two Humps)Camel, 100-109 CamelChihuahuaCow, 60-69 Medium Livestock (cow/steer/bull/oxen)DonkeyDonkey With CargoDonkey With RiderDromedary Camel (One Hump)Dromedary Camel With CargoDromedary Camel With Rider, 110-119 Camel with rider or cargoOxGerman ShepherdGiant Turkish KangalGoatHorse, 80-89 Horse/mule/donkeyHorse With CargoHorse With Rider, 90-99 Horse/mule/donkey with rider or cargoLarge Dog, 20-29 Large dog (65cm/40kg)Pig, 50-59 PigMedium Dog, 10-19 Medium dog (50cm/16kg)MuleMule With CargoMule With RiderOx With Cart, 70-79 Medium Livestock harnessed (cart/plow)Rat, 200-209 RodentSheep, 40-49 Small Livestock (sheep/ goat)Small Dog, 1-9 Small dog (22cm/4kg)Very Large Dog, 30-39 Very large dog(76cm/61kg) -
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 class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SMALL_DOG
Small Dog, 1-9 Small dog (22cm/4kg) -
CHIHUAHUA
Chihuahua -
MEDIUM_DOG
Medium Dog, 10-19 Medium dog (50cm/16kg) -
AUSTRALIAN_CATTLE_DOG
Australian Cattle Dog -
LARGE_DOG
Large Dog, 20-29 Large dog (65cm/40kg) -
GERMAN_SHEPHERD
German Shepherd -
SUPPLEMENTAL_EMISSION_ENTITY_STATE
Very Large Dog, 30-39 Very large dog(76cm/61kg) -
GIANT_TURKISH_KANGAL
Giant Turkish Kangal -
SHEEP
Sheep, 40-49 Small Livestock (sheep/ goat) -
GOAT
Goat -
LIVE_ENTITY_DETONATION
Pig, 50-59 Pig -
DATA_RELIABLE
Cow, 60-69 Medium Livestock (cow/steer/bull/oxen) -
EVENT_REPORT_RELIABLE
Ox -
OX_WITH_CART
Ox With Cart, 70-79 Medium Livestock harnessed (cart/plow) -
HORSE
Horse, 80-89 Horse/mule/donkey -
DONKEY
Donkey -
MULE
Mule -
HORSE_WITH_RIDER
Horse With Rider, 90-99 Horse/mule/donkey with rider or cargo -
HORSE_WITH_CARGO
Horse With Cargo -
DONKEY_WITH_RIDER
Donkey With Rider -
DONKEY_WITH_CARGO
Donkey With Cargo -
MULE_WITH_RIDER
Mule With Rider -
MULE_WITH_CARGO
Mule With Cargo -
CAMEL
Camel, 100-109 Camel -
DROMEDARY_CAMEL_ONE_HUMP
Dromedary Camel (One Hump) -
BACTRIAN_CAMEL_TWO_HUMPS
Bactrian Camel (Two Humps) -
DROMEDARY_CAMEL_WITH_RIDER
Dromedary Camel With Rider, 110-119 Camel with rider or cargo -
DROMEDARY_CAMEL_WITH_CARGO
Dromedary Camel With Cargo -
RAT
Rat, 200-209 Rodent
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
public int getValue()Provide enumeration value- Specified by:
getValue
in interfaceSubCategory
- Returns:
- integer value
-
getDescription
Provide enumeration description- Specified by:
getDescription
in interfaceSubCategory
- 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
public static SubcategoriesforLandCategory200Mammal unmarshalEnum(DataInputStream dis) throws Exception Unmarshal value to DataInputStream- Parameters:
dis
- DataInputStream for input- Returns:
- enumeration of interest
- Throws:
Exception
- unmarshalling input-output error- See Also:
-
unmarshalEnum
public static SubcategoriesforLandCategory200Mammal unmarshalEnum(ByteBuffer byteBuffer) throws Exception 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
-
toString
Provide simple identifier- Overrides:
toString
in classEnum<SubcategoriesforLandCategory200Mammal>
- Returns:
- class name, value and name
-