public class EntityStateUpdatePdu extends EntityInformationFamilyPdu implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected int |
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 byte |
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 |
int |
getEntityAppearance()
Getter for
entityAppearance |
EntityID |
getEntityID()
Getter for
entityID |
Vector3Float |
getEntityLinearVelocity()
Getter for
entityLinearVelocity |
Vector3Double |
getEntityLocation()
Getter for
entityLocation |
EulerAngles |
getEntityOrientation()
Getter for
entityOrientation |
int |
getMarshalledSize()
Returns the size of this serialized object in bytes
|
byte |
getPadding1()
Getter for
padding1 |
java.util.List<VariableParameter> |
getVariableParameters()
Getter for
variableParameters |
void |
marshal(java.nio.ByteBuffer buff)
Packs an object into the ByteBuffer.
|
void |
marshal(java.io.DataOutputStream dos)
Serializes an object to a DataOutputStream.
|
EntityStateUpdatePdu |
setEntityAppearance(int pEntityAppearance)
Setter for
entityAppearance |
EntityStateUpdatePdu |
setEntityID(EntityID pEntityID)
Setter for
entityID |
EntityStateUpdatePdu |
setEntityLinearVelocity(Vector3Float pEntityLinearVelocity)
Setter for
entityLinearVelocity |
EntityStateUpdatePdu |
setEntityLocation(Vector3Double pEntityLocation)
Setter for
entityLocation |
EntityStateUpdatePdu |
setEntityOrientation(EulerAngles pEntityOrientation)
Setter for
entityOrientation |
EntityStateUpdatePdu |
setPadding1(byte pPadding1)
Setter for
padding1 |
EntityStateUpdatePdu |
setVariableParameters(java.util.List<VariableParameter> pVariableParameters)
Setter for
variableParameters |
int |
unmarshal(java.nio.ByteBuffer buff)
Unpacks a Pdu from the underlying data.
|
int |
unmarshal(java.io.DataInputStream dis)
Unserializes an object from a DataInputStream.
|
getPadding, getPduStatus, setPadding, setPduStatus
getExerciseID, getLength, getPduType, getProtocolFamily, getProtocolVersion, getTimestamp, marshal, setExerciseID, setLength, setPduType, setProtocolFamily, setProtocolVersion, setTimestamp
protected EntityID entityID
protected byte padding1
protected byte numberOfVariableParameters
protected Vector3Float entityLinearVelocity
protected Vector3Double entityLocation
protected EulerAngles entityOrientation
protected int entityAppearance
protected java.util.List<VariableParameter> variableParameters
public int getMarshalledSize()
getMarshalledSize
in class EntityInformationFamilyPdu
public EntityStateUpdatePdu setEntityID(EntityID pEntityID)
entityID
public EntityStateUpdatePdu setPadding1(byte pPadding1)
padding1
public byte getPadding1()
padding1
public EntityStateUpdatePdu setEntityLinearVelocity(Vector3Float pEntityLinearVelocity)
entityLinearVelocity
public Vector3Float getEntityLinearVelocity()
entityLinearVelocity
public EntityStateUpdatePdu setEntityLocation(Vector3Double pEntityLocation)
entityLocation
public Vector3Double getEntityLocation()
entityLocation
public EntityStateUpdatePdu setEntityOrientation(EulerAngles pEntityOrientation)
entityOrientation
public EulerAngles getEntityOrientation()
entityOrientation
public EntityStateUpdatePdu setEntityAppearance(int pEntityAppearance)
entityAppearance
public int getEntityAppearance()
entityAppearance
public EntityStateUpdatePdu setVariableParameters(java.util.List<VariableParameter> pVariableParameters)
variableParameters
public java.util.List<VariableParameter> getVariableParameters()
variableParameters
public void marshal(java.io.DataOutputStream dos)
marshal
in class EntityInformationFamilyPdu
dos
- The DataOutputStreamDataOutputStream
public int unmarshal(java.io.DataInputStream dis)
unmarshal
in class EntityInformationFamilyPdu
dis
- The DataInputStreamDataInputStream
public void marshal(java.nio.ByteBuffer buff) throws java.lang.Exception
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 onlyjava.lang.Exception
- ByteBuffer-generated exceptionByteBuffer
public int unmarshal(java.nio.ByteBuffer buff) throws java.lang.Exception
unmarshal
in class EntityInformationFamilyPdu
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 EntityInformationFamilyPdu
public boolean equalsImpl(java.lang.Object obj)
Pdu
this
and the supplied objectequalsImpl
in class EntityInformationFamilyPdu
obj
- the object to compare to