public class EntityStateUpdatePdu extends EntityInformationFamilyPdu implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected long |
entityAppearance
This field shall specify the dynamic changes to the entity’s appearance attributes.
|
protected EntityID |
entityID
This field shall identify the entity issuing the PDU, and shall be represented by an Entity Identifier record (see 6.2.28).
|
protected Vector3Float |
entityLinearVelocity
This field shall specify an entity’s linear velocity.
|
protected Vector3Double |
entityLocation
This field shall specify an entity’s physical location in the simulated world and shall be represented by a World Coordinates record (see 6.2.97).
|
protected EulerAngles |
entityOrientation
This field shall specify an entity’s orientation and shall be represented by an Euler Angles record (see 6.2.33).
|
protected short |
numberOfVariableParameters
This field shall specify the number of variable parameters present.
|
protected byte |
padding1
Padding
|
protected java.util.List<VariableParameter> |
variableParameters
This field shall specify the parameter values for each Variable Parameter record that is included (see 6.2.93 and Annex I).
|
exerciseID, length, pduType, protocolFamily, protocolVersion, timestamp
Constructor and Description |
---|
EntityStateUpdatePdu()
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
boolean |
equalsImpl(java.lang.Object obj)
Compare all fields that contribute to the state, ignoring
transient and static fields, for
this and the supplied object |
long |
getEntityAppearance() |
EntityID |
getEntityID() |
Vector3Float |
getEntityLinearVelocity() |
Vector3Double |
getEntityLocation() |
EulerAngles |
getEntityOrientation() |
int |
getMarshalledSize() |
short |
getNumberOfVariableParameters() |
byte |
getPadding1() |
java.util.List<VariableParameter> |
getVariableParameters() |
void |
marshal(java.nio.ByteBuffer buff)
Packs a Pdu into the ByteBuffer.
|
void |
marshal(java.io.DataOutputStream dos) |
void |
setEntityAppearance(long pEntityAppearance) |
void |
setEntityID(EntityID pEntityID) |
void |
setEntityLinearVelocity(Vector3Float pEntityLinearVelocity) |
void |
setEntityLocation(Vector3Double pEntityLocation) |
void |
setEntityOrientation(EulerAngles pEntityOrientation) |
void |
setNumberOfVariableParameters(short pNumberOfVariableParameters)
Note that setting this value will not change the marshalled value.
|
void |
setPadding1(byte pPadding1) |
void |
setVariableParameters(java.util.List<VariableParameter> pVariableParameters) |
void |
unmarshal(java.nio.ByteBuffer buff)
Unpacks a Pdu from the underlying data.
|
void |
unmarshal(java.io.DataInputStream dis) |
getPadding, getPduStatus, marshal, setPadding, setPduStatus
getExerciseID, getLength, getPduType, getProtocolFamily, getProtocolVersion, getTimestamp, setExerciseID, setLength, setPduType, setProtocolFamily, setProtocolVersion, setTimestamp
protected EntityID entityID
protected byte padding1
protected short numberOfVariableParameters
protected Vector3Float entityLinearVelocity
protected Vector3Double entityLocation
protected EulerAngles entityOrientation
protected long entityAppearance
protected java.util.List<VariableParameter> variableParameters
public int getMarshalledSize()
getMarshalledSize
in class EntityInformationFamilyPdu
public void setEntityID(EntityID pEntityID)
public EntityID getEntityID()
public void setPadding1(byte pPadding1)
public byte getPadding1()
public short getNumberOfVariableParameters()
public void setNumberOfVariableParameters(short pNumberOfVariableParameters)
public void setEntityLinearVelocity(Vector3Float pEntityLinearVelocity)
public Vector3Float getEntityLinearVelocity()
public void setEntityLocation(Vector3Double pEntityLocation)
public Vector3Double getEntityLocation()
public void setEntityOrientation(EulerAngles pEntityOrientation)
public EulerAngles getEntityOrientation()
public void setEntityAppearance(long pEntityAppearance)
public long getEntityAppearance()
public void setVariableParameters(java.util.List<VariableParameter> pVariableParameters)
public java.util.List<VariableParameter> getVariableParameters()
public void marshal(java.io.DataOutputStream dos)
marshal
in class EntityInformationFamilyPdu
public void unmarshal(java.io.DataInputStream dis)
unmarshal
in class EntityInformationFamilyPdu
public void marshal(java.nio.ByteBuffer buff)
marshal
in class EntityInformationFamilyPdu
buff
- The ByteBuffer at the position to begin writingjava.nio.BufferOverflowException
- if buff is too smalljava.nio.ReadOnlyBufferException
- if buff is read onlyByteBuffer
public void unmarshal(java.nio.ByteBuffer buff)
unmarshal
in class EntityInformationFamilyPdu
buff
- The ByteBuffer at the position to begin readingjava.nio.BufferUnderflowException
- if buff is too smallByteBuffer
public boolean equals(java.lang.Object obj)
equals
in class EntityInformationFamilyPdu
public boolean equalsImpl(java.lang.Object obj)
PduSuperclass
this
and the supplied objectequalsImpl
in class EntityInformationFamilyPdu
obj
- the object to compare to