Package edu.nps.moves.dis7.pdus
Class EntityTypeRaw
java.lang.Object
edu.nps.moves.dis7.pdus.EntityTypeRaw
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected bytecategory of entityprotected shortcountry to which the design of the entity is attributedprotected byteDomain of entity (air, surface, subsurface, space, etc.)protected EntityKindKind of entity uid 7protected byteextra is an undescribed parameter...protected bytespecific info based on subcategory field.protected bytesubcategory of entity -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanequalsImpl(Object obj) Compare all fields that contribute to the state, ignoring transient and static fields, forthisand the supplied objectbyteGetter forcategoryshortGetter forcountrybyteGetter fordomainGetter forentityKindbytegetExtra()Getter forextraintReturns size of this serialized (marshalled) object in bytesbyteGetter forspecificbyteGetter forsubCategoryinthashCode()voidmarshal(DataOutputStream dos) Serializes an object to a DataOutputStream.voidmarshal(ByteBuffer byteBuffer) Packs an object into the ByteBuffer.setCategory(byte pCategory) Setter forcategorysetCategory(int pCategory) Utility setter forcategorysetCountry(int pCountry) Utility setter forcountrysetCountry(short pCountry) Setter forcountrysetDomain(byte pDomain) Setter fordomainsetDomain(int pDomain) Utility setter fordomainsetEntityKind(EntityKind pEntityKind) Setter forentityKindsetExtra(byte pExtra) Setter forextrasetExtra(int pExtra) Utility setter forextrasetSpecific(byte pSpecific) Setter forspecificsetSpecific(int pSpecific) Utility setter forspecificsetSubCategory(byte pSubCategory) Setter forsubCategorysetSubCategory(int pSubCategory) Utility setter forsubCategorytoString()intunmarshal(DataInputStream dis) Deserializes an object from a DataInputStream.intunmarshal(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
protected short countrycountry to which the design of the entity is attributed -
category
protected byte categorycategory of entity -
subCategory
protected byte subCategorysubcategory of entity -
specific
protected byte specificspecific info based on subcategory field. Renamed from specific because that is a reserved word in SQL. -
extra
protected byte extraextra is an undescribed parameter...
-
-
Constructor Details
-
EntityTypeRaw
public EntityTypeRaw()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
Setter fordomain- Parameters:
pDomain- new value of interest- Returns:
- same object to permit progressive setters
-
setDomain
Utility setter fordomain- Parameters:
pDomain- new value of interest- Returns:
- same object to permit progressive setters
-
getDomain
-
setCountry
Setter forcountry- Parameters:
pCountry- new value of interest- Returns:
- same object to permit progressive setters
-
setCountry
Utility setter forcountry- Parameters:
pCountry- new value of interest- Returns:
- same object to permit progressive setters
-
getCountry
-
setCategory
Setter forcategory- Parameters:
pCategory- new value of interest- Returns:
- same object to permit progressive setters
-
setCategory
Utility 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
-
setSubCategory
Utility setter forsubCategory- Parameters:
pSubCategory- new value of interest- Returns:
- same object to permit progressive setters
-
getSubCategory
-
setSpecific
Setter forspecific- Parameters:
pSpecific- new value of interest- Returns:
- same object to permit progressive setters
-
setSpecific
Utility setter forspecific- Parameters:
pSpecific- new value of interest- Returns:
- same object to permit progressive setters
-
getSpecific
-
setExtra
Setter forextra- Parameters:
pExtra- new value of interest- Returns:
- same object to permit progressive setters
-
setExtra
Utility setter forextra- Parameters:
pExtra- new value of interest- Returns:
- same object to permit progressive setters
-
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, forthisand the supplied object- Parameters:
obj- the object to compare to- Returns:
- true if the objects are equal, false otherwise.
-
toString
-
hashCode
-