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 byte
paddingprotected short
paddingprotected EntityID
ID of parentprotected SeparationVPPreEntityIndicator
Whether the entity existed prior to separation EBV uid 283protected SeparationVPReasonforSeparation
Reason for separation.protected VariableParameterRecordType
The identification of the Variable Parameter record.protected NamedLocationIdentification
Station separated from -
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 objectint
Returns size of this serialized (marshalled) object in bytesbyte
Getter forpadding1
short
Getter forpadding2
Getter forparentEntityID
Getter forpreEntityIndicator
Getter forreasonForSeparation
Getter forrecordType
Getter forstationLocation
int
hashCode()
void
marshal
(DataOutputStream dos) Serializes an object to a DataOutputStream.void
marshal
(ByteBuffer byteBuffer) Packs an object into the ByteBuffer.setPadding1
(byte pPadding1) Setter forpadding1
setPadding1
(int pPadding1) Utility setter forpadding1
setPadding2
(int pPadding2) Utility setter forpadding2
setPadding2
(short pPadding2) Setter forpadding2
setParentEntityID
(EntityID pParentEntityID) Setter forparentEntityID
setPreEntityIndicator
(SeparationVPPreEntityIndicator pPreEntityIndicator) Setter forpreEntityIndicator
setReasonForSeparation
(SeparationVPReasonforSeparation pReasonForSeparation) Setter forreasonForSeparation
setRecordType
(VariableParameterRecordType pRecordType) Setter forrecordType
setStationLocation
(NamedLocationIdentification pStationLocation) Setter forstationLocation
toString()
int
unmarshal
(DataInputStream dis) Deserializes an object from a DataInputStream.int
unmarshal
(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, forthis
and the supplied object- Parameters:
obj
- the object to compare to- Returns:
- true if the objects are equal, false otherwise.
-
toString
-
hashCode
-