Class RadioType
java.lang.Object
edu.nps.moves.dis7.pdus.RadioType
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected RadioCategory
category of entity uid 22protected Country
country to which the design of the entity is attributed uid 29protected byte
Domain of entity (air, surface, subsurface, space, etc.)protected EntityKind
Kind of entity uid 7protected byte
extra is an undescribed parameter...protected byte
specific is an undescribed parameter...protected RadioSubcategory
specific info based on subcategory field uid 23 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
equalsImpl
(Object obj) Compare all fields that contribute to the state, ignoring transient and static fields, forthis
and the supplied objectGetter forcategory
Getter forcountry
byte
Getter fordomain
Getter forentityKind
byte
getExtra()
Getter forextra
int
Returns size of this serialized (marshalled) object in bytesbyte
Getter forspecific
Getter forsubcategory
int
hashCode()
void
marshal
(DataOutputStream dos) Serializes an object to a DataOutputStream.void
marshal
(ByteBuffer byteBuffer) Packs an object into the ByteBuffer.setCategory
(RadioCategory pCategory) Setter forcategory
setCountry
(Country pCountry) Setter forcountry
setDomain
(byte pDomain) Setter fordomain
setDomain
(int pDomain) Utility setter fordomain
setEntityKind
(EntityKind pEntityKind) Setter forentityKind
setExtra
(byte pExtra) Setter forextra
setExtra
(int pExtra) Utility setter forextra
setSpecific
(byte pSpecific) Setter forspecific
setSpecific
(int pSpecific) Utility setter forspecific
setSubcategory
(RadioSubcategory pSubcategory) Setter forsubcategory
toString()
int
unmarshal
(DataInputStream dis) Deserializes an object from a DataInputStream.int
unmarshal
(ByteBuffer byteBuffer) Unpacks a Pdu from the underlying data.
-
Field Details
-
entityKind
Kind of entity uid 7 -
domain
protected byte domainDomain of entity (air, surface, subsurface, space, etc.) -
country
country to which the design of the entity is attributed uid 29 -
category
category of entity uid 22 -
subcategory
specific info based on subcategory field uid 23 -
specific
protected byte specificspecific is an undescribed parameter... -
extra
protected byte extraextra is an undescribed parameter...
-
-
Constructor Details
-
RadioType
public RadioType()Constructor creates and configures a new instance object
-
-
Method Details
-
getMarshalledSize
public int getMarshalledSize()Returns size of this serialized (marshalled) object in bytes- Returns:
- serialized size in bytes
- See Also:
-
setEntityKind
Setter forentityKind
- Parameters:
pEntityKind
- new value of interest- Returns:
- same object to permit progressive setters
-
getEntityKind
-
setDomain
-
setDomain
-
getDomain
-
setCountry
-
getCountry
-
setCategory
Setter forcategory
- Parameters:
pCategory
- new value of interest- Returns:
- same object to permit progressive setters
-
getCategory
-
setSubcategory
Setter forsubcategory
- Parameters:
pSubcategory
- new value of interest- Returns:
- same object to permit progressive setters
-
getSubcategory
-
setSpecific
-
setSpecific
-
getSpecific
-
setExtra
-
setExtra
-
getExtra
-
marshal
Serializes an object to a DataOutputStream.- Parameters:
dos
- the OutputStream- Throws:
Exception
- if something goes wrong- See Also:
-
unmarshal
Deserializes an object from a DataInputStream.- Parameters:
dis
- the InputStream- Returns:
- marshalled serialized size in bytes
- Throws:
Exception
- if something goes wrong- See Also:
-
marshal
Packs an object into the ByteBuffer.- Parameters:
byteBuffer
- The ByteBuffer at the position to begin writing- Throws:
BufferOverflowException
- if byteBuffer is too smallReadOnlyBufferException
- if byteBuffer is read onlyException
- ByteBuffer-generated exception- See Also:
-
unmarshal
Unpacks a Pdu from the underlying data.- Parameters:
byteBuffer
- The ByteBuffer at the position to begin reading- Returns:
- marshalled serialized size in bytes
- Throws:
BufferUnderflowException
- if byteBuffer is too smallException
- ByteBuffer-generated exception- See Also:
-
equals
-
equalsImpl
Compare all fields that contribute to the state, ignoring transient and static fields, forthis
and the supplied object- Parameters:
obj
- the object to compare to- Returns:
- true if the objects are equal, false otherwise.
-
toString
-
hashCode
-