Package edu.nps.moves.dis7.pdus
Class SeparationVP
java.lang.Object
edu.nps.moves.dis7.pdus.SeparationVP
- All Implemented Interfaces:
Serializable
Physical separation of an entity from another entity. Section 6.2.94.6
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected bytepaddingprotected shortpaddingprotected EntityIDID of parentprotected SeparationVPPreEntityIndicatorWhether the entity existed prior to separation EBV uid 283protected SeparationVPReasonforSeparationReason for separation.protected VariableParameterRecordTypeThe identification of the Variable Parameter record.protected NamedLocationIdentificationStation separated from -
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 objectintReturns size of this serialized (marshalled) object in bytesbyteGetter forpadding1shortGetter forpadding2Getter forparentEntityIDGetter forpreEntityIndicatorGetter forreasonForSeparationGetter forrecordTypeGetter forstationLocationinthashCode()voidmarshal(DataOutputStream dos) Serializes an object to a DataOutputStream.voidmarshal(ByteBuffer byteBuffer) Packs an object into the ByteBuffer.setPadding1(byte pPadding1) Setter forpadding1setPadding1(int pPadding1) Utility setter forpadding1setPadding2(int pPadding2) Utility setter forpadding2setPadding2(short pPadding2) Setter forpadding2setParentEntityID(EntityID pParentEntityID) Setter forparentEntityIDsetPreEntityIndicator(SeparationVPPreEntityIndicator pPreEntityIndicator) Setter forpreEntityIndicatorsetReasonForSeparation(SeparationVPReasonforSeparation pReasonForSeparation) Setter forreasonForSeparationsetRecordType(VariableParameterRecordType pRecordType) Setter forrecordTypesetStationLocation(NamedLocationIdentification pStationLocation) Setter forstationLocationtoString()intunmarshal(DataInputStream dis) Deserializes an object from a DataInputStream.intunmarshal(ByteBuffer byteBuffer) Unpacks a Pdu from the underlying data.
-
Field Details
-
recordType
The identification of the Variable Parameter record. Enumeration from EBV uid 56 -
reasonForSeparation
Reason for separation. EBV uid 282 -
preEntityIndicator
Whether the entity existed prior to separation EBV uid 283 -
padding1
protected byte padding1padding -
parentEntityID
ID of parent -
padding2
protected short padding2padding -
stationLocation
Station separated from
-
-
Constructor Details
-
SeparationVP
public SeparationVP()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:
-
setRecordType
Setter forrecordType- Parameters:
pRecordType- new value of interest- Returns:
- same object to permit progressive setters
-
getRecordType
-
setReasonForSeparation
Setter forreasonForSeparation- Parameters:
pReasonForSeparation- new value of interest- Returns:
- same object to permit progressive setters
-
getReasonForSeparation
Getter forreasonForSeparation- Returns:
- value of interest
-
setPreEntityIndicator
Setter forpreEntityIndicator- Parameters:
pPreEntityIndicator- new value of interest- Returns:
- same object to permit progressive setters
-
getPreEntityIndicator
Getter forpreEntityIndicator- Returns:
- value of interest
-
setPadding1
Setter forpadding1- Parameters:
pPadding1- new value of interest- Returns:
- same object to permit progressive setters
-
setPadding1
Utility setter forpadding1- Parameters:
pPadding1- new value of interest- Returns:
- same object to permit progressive setters
-
getPadding1
-
setParentEntityID
Setter forparentEntityID- Parameters:
pParentEntityID- new value of interest- Returns:
- same object to permit progressive setters
-
getParentEntityID
-
setPadding2
Setter forpadding2- Parameters:
pPadding2- new value of interest- Returns:
- same object to permit progressive setters
-
setPadding2
Utility setter forpadding2- Parameters:
pPadding2- new value of interest- Returns:
- same object to permit progressive setters
-
getPadding2
-
setStationLocation
Setter forstationLocation- Parameters:
pStationLocation- new value of interest- Returns:
- same object to permit progressive setters
-
getStationLocation
Getter forstationLocation- Returns:
- value of interest
-
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
-