Class AggregateType
java.lang.Object
edu.nps.moves.dis7.pdus.AggregateType
- All Implemented Interfaces:
Serializable
Identifies the type and organization of an aggregate. Section 6.2.5
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AggregateStateAggregateKind
Grouping criterion used to group the aggregate.protected byte
category of entityprotected Country
country to which the design of the entity is attributed uid 29protected PlatformDomain
Domain of entity (air, surface, subsurface, space, etc.) where zero means domain does not apply. uid 8protected byte
extra is an undescribed parameter...protected AggregateStateSpecific
specific info based on subcategory field. specific is a reserved word in sql. uid 209protected AggregateStateSubcategory
subcategory of entity uid 208 -
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 foraggregateKind
byte
Getter forcategory
Getter forcountry
Getter fordomain
byte
getExtra()
Getter forextra
int
Returns size of this serialized (marshalled) object in bytesGetter forspecificInfo
Getter forsubcategory
int
hashCode()
void
marshal
(DataOutputStream dos) Serializes an object to a DataOutputStream.void
marshal
(ByteBuffer byteBuffer) Packs an object into the ByteBuffer.setAggregateKind
(AggregateStateAggregateKind pAggregateKind) Setter foraggregateKind
setCategory
(byte pCategory) Setter forcategory
setCategory
(int pCategory) Utility setter forcategory
setCountry
(Country pCountry) Setter forcountry
setDomain
(PlatformDomain pDomain) Setter fordomain
setExtra
(byte pExtra) Setter forextra
setExtra
(int pExtra) Utility setter forextra
setSpecificInfo
(AggregateStateSpecific pSpecificInfo) Setter forspecificInfo
setSubcategory
(AggregateStateSubcategory 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
-
aggregateKind
Grouping criterion used to group the aggregate. Enumeration from EBV document uid 206 -
domain
Domain of entity (air, surface, subsurface, space, etc.) where zero means domain does not apply. uid 8 -
country
country to which the design of the entity is attributed uid 29 -
category
protected byte categorycategory of entity -
subcategory
subcategory of entity uid 208 -
specificInfo
specific info based on subcategory field. specific is a reserved word in sql. uid 209 -
extra
protected byte extraextra is an undescribed parameter...
-
-
Constructor Details
-
AggregateType
public AggregateType()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:
-
setAggregateKind
Setter foraggregateKind
- Parameters:
pAggregateKind
- new value of interest- Returns:
- same object to permit progressive setters
-
getAggregateKind
Getter foraggregateKind
- Returns:
- value of interest
-
setDomain
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
-
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
-
getSubcategory
-
setSpecificInfo
Setter forspecificInfo
- Parameters:
pSpecificInfo
- new value of interest- Returns:
- same object to permit progressive setters
-
getSpecificInfo
-
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, forthis
and the supplied object- Parameters:
obj
- the object to compare to- Returns:
- true if the objects are equal, false otherwise.
-
toString
-
hashCode
-