public class TSPIPdu extends LiveEntityFamilyPdu implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected LiveDeadReckoningParameters |
deadReckoningParameters |
protected LiveEntityLinearVelocity |
entityLinearVelocity |
protected LiveEntityRelativeWorldCoordinates |
entityLocation |
protected LiveEntityOrientation |
entityOrientation |
protected EntityID |
liveEntityId |
protected short |
measuredSpeed |
protected LiveEntityOrientationError |
orientationError |
protected LiveEntityPositionError |
positionError |
protected byte[] |
systemSpecificData |
protected byte |
systemSpecificDataLength |
protected byte |
TSPIFlag
bit field
|
padding, subprotocolNumber
exerciseID, length, pduType, protocolFamily, protocolVersion, timestamp
Constructor and Description |
---|
TSPIPdu()
Constructor
|
getPadding, getSubprotocolNumber, setPadding, setSubprotocolNumber
getExerciseID, getLength, getPduType, getProtocolFamily, getProtocolVersion, getTimestamp, marshal, setExerciseID, setLength, setPduType, setProtocolFamily, setProtocolVersion, setTimestamp
protected EntityID liveEntityId
protected byte TSPIFlag
protected LiveEntityRelativeWorldCoordinates entityLocation
protected LiveEntityLinearVelocity entityLinearVelocity
protected LiveEntityOrientation entityOrientation
protected LiveEntityPositionError positionError
protected LiveEntityOrientationError orientationError
protected LiveDeadReckoningParameters deadReckoningParameters
protected short measuredSpeed
protected byte systemSpecificDataLength
protected byte[] systemSpecificData
public int getMarshalledSize()
getMarshalledSize
in class LiveEntityFamilyPdu
public TSPIPdu setLiveEntityId(EntityID pLiveEntityId)
liveEntityId
public EntityID getLiveEntityId()
liveEntityId
public byte getTSPIFlag()
TSPIFlag
public TSPIPdu setEntityLocation(LiveEntityRelativeWorldCoordinates pEntityLocation)
entityLocation
public LiveEntityRelativeWorldCoordinates getEntityLocation()
entityLocation
public TSPIPdu setEntityLinearVelocity(LiveEntityLinearVelocity pEntityLinearVelocity)
entityLinearVelocity
public LiveEntityLinearVelocity getEntityLinearVelocity()
entityLinearVelocity
public TSPIPdu setEntityOrientation(LiveEntityOrientation pEntityOrientation)
entityOrientation
public LiveEntityOrientation getEntityOrientation()
entityOrientation
public TSPIPdu setPositionError(LiveEntityPositionError pPositionError)
positionError
public LiveEntityPositionError getPositionError()
positionError
public TSPIPdu setOrientationError(LiveEntityOrientationError pOrientationError)
orientationError
public LiveEntityOrientationError getOrientationError()
orientationError
public TSPIPdu setDeadReckoningParameters(LiveDeadReckoningParameters pDeadReckoningParameters)
deadReckoningParameters
public LiveDeadReckoningParameters getDeadReckoningParameters()
deadReckoningParameters
public TSPIPdu setMeasuredSpeed(short pMeasuredSpeed)
measuredSpeed
public short getMeasuredSpeed()
measuredSpeed
public TSPIPdu setSystemSpecificData(byte[] pSystemSpecificData)
systemSpecificData
public byte[] getSystemSpecificData()
systemSpecificData
public void marshal(java.io.DataOutputStream dos)
marshal
in class LiveEntityFamilyPdu
dos
- The DataOutputStreamDataOutputStream
public int unmarshal(java.io.DataInputStream dis)
unmarshal
in class LiveEntityFamilyPdu
dis
- The DataInputStreamDataInputStream
public void marshal(java.nio.ByteBuffer buff) throws java.lang.Exception
marshal
in class LiveEntityFamilyPdu
buff
- The ByteBuffer at the position to begin writingjava.nio.BufferOverflowException
- if buff is too smalljava.nio.ReadOnlyBufferException
- if buff is read onlyjava.lang.Exception
- ByteBuffer-generated exceptionByteBuffer
public int unmarshal(java.nio.ByteBuffer buff) throws java.lang.Exception
unmarshal
in class LiveEntityFamilyPdu
buff
- The ByteBuffer at the position to begin readingjava.nio.BufferUnderflowException
- if buff is too smalljava.lang.Exception
- ByteBuffer-generated exceptionByteBuffer
public boolean equals(java.lang.Object obj)
equals
in class LiveEntityFamilyPdu
public boolean equalsImpl(java.lang.Object obj)
Pdu
this
and the supplied objectequalsImpl
in class LiveEntityFamilyPdu
obj
- the object to compare to