Package edu.nps.moves.dis7.enumerations
Enum SubcategoriesforSubsurfaceCategory200Fish
java.lang.Object
java.lang.Enum<SubcategoriesforSubsurfaceCategory200Fish>
edu.nps.moves.dis7.enumerations.SubcategoriesforSubsurfaceCategory200Fish
- All Implemented Interfaces:
SubCategory
,Serializable
,Comparable<SubcategoriesforSubsurfaceCategory200Fish>
,Constable
public enum SubcategoriesforSubsurfaceCategory200Fish
extends Enum<SubcategoriesforSubsurfaceCategory200Fish>
implements SubCategory
This
enum
type is generated from XML,
UID 120,
marshal size 8;
SubcategoriesforSubsurfaceCategory200Fish has 27 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 ConstantDescriptionBlue SharkCodLarge Schooling Fish, 60-89 Large size schooling fish (tuna)Dogfish SharkEel, 190-199 EelTunaForage Fish, Small Schooling, 1-29 Small size schooling (forage) fish (herring-like, sardines, squid, krill)Great White SharkHaddockHakeHammerhead SharkHerringKrillLarge Shark, 150-179 Large to vary large sharkMackerelMako SharkMarlin, 200-255 Other fishMedium Shark, 120-149 Medium sharkSardinesSkate, 180-189 Skate/RaySmall Shark, 90-119 Small sharkSquidStingrayMedium Schooling Fish, 30-59 Medium size schooling fish (cod-like, hake, haddock)SwordfishTiger SharkWhale Shark -
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.values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
FORAGE_FISH_SMALL_SCHOOLING
Forage Fish, Small Schooling, 1-29 Small size schooling (forage) fish (herring-like, sardines, squid, krill) -
HERRING
Herring -
SARDINES
Sardines -
KRILL
Krill -
SQUID
Squid -
SUPPLEMENTAL_EMISSION_ENTITY_STATE
Medium Schooling Fish, 30-59 Medium size schooling fish (cod-like, hake, haddock) -
HAKE
Hake -
COD
Cod -
HADDOCK
Haddock -
MACKEREL
Mackerel -
DATA_RELIABLE
Large Schooling Fish, 60-89 Large size schooling fish (tuna) -
EVENT_REPORT_RELIABLE
Tuna -
SMALL_SHARK
Small Shark, 90-119 Small shark -
DOGFISH_SHARK
Dogfish Shark -
MEDIUM_SHARK
Medium Shark, 120-149 Medium shark -
MAKO_SHARK
Mako Shark -
HAMMERHEAD_SHARK
Hammerhead Shark -
LARGE_SHARK
Large Shark, 150-179 Large to vary large shark -
GREAT_WHITE_SHARK
Great White Shark -
TIGER_SHARK
Tiger Shark -
BLUE_SHARK
Blue Shark -
WHALE_SHARK
Whale Shark -
SKATE
Skate, 180-189 Skate/Ray -
STINGRAY
Stingray -
EEL
Eel, 190-199 Eel -
MARLIN
Marlin, 200-255 Other fish -
SWORDFISH
Swordfish
-
-
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- 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 SubcategoriesforSubsurfaceCategory200Fish 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 SubcategoriesforSubsurfaceCategory200Fish 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
Provide name- Returns:
- name
-
toString
Provide simple identifier- Overrides:
toString
in classEnum<SubcategoriesforSubsurfaceCategory200Fish>
- Returns:
- class name, value and name
-