public class EntityStatePdu extends EntityInformationFamilyPdu implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected EntityType |
alternativeEntityType |
protected EntityCapabilities |
capabilities
a series of bit flags uid 55
|
protected DeadReckoningParameters |
deadReckoningParameters
parameters used for dead reckoning
|
protected int |
entityAppearance
a series of bit flags that are used to help draw the entity, such as smoking, on fire, etc.
|
protected EntityID |
entityID
Unique ID for an entity that is tied to this state information
|
protected Vector3Float |
entityLinearVelocity
Describes the speed of the entity in the world
|
protected Vector3Double |
entityLocation
describes the location of the entity in the world
|
protected EulerAngles |
entityOrientation
describes the orientation of the entity, in euler angles
|
protected EntityType |
entityType
Describes the type of entity in the world
|
protected ForceID |
forceId
What force this entity is affiliated with, eg red, blue, neutral, etc uid 6
|
protected EntityMarking |
marking
characters that can be used for debugging, or to draw unique strings on the side of entities in the world
|
protected byte |
numberOfVariableParameters
How many variable parameters are in the variable length list.
|
protected java.util.List<VariableParameter> |
variableParameters
variable length list of variable parameters.
|
exerciseID, length, pduType, protocolFamily, protocolVersion, timestamp
Constructor and Description |
---|
EntityStatePdu()
Constructor
|
getPadding, getPduStatus, setPadding, setPduStatus
getExerciseID, getLength, getPduType, getProtocolFamily, getProtocolVersion, getTimestamp, marshal, setExerciseID, setLength, setPduType, setProtocolFamily, setProtocolVersion, setTimestamp
protected EntityID entityID
protected ForceID forceId
protected byte numberOfVariableParameters
protected EntityType entityType
protected EntityType alternativeEntityType
protected Vector3Float entityLinearVelocity
protected Vector3Double entityLocation
protected EulerAngles entityOrientation
protected int entityAppearance
protected DeadReckoningParameters deadReckoningParameters
protected EntityMarking marking
protected EntityCapabilities capabilities
protected java.util.List<VariableParameter> variableParameters
public int getMarshalledSize()
getMarshalledSize
in class EntityInformationFamilyPdu
public EntityStatePdu setEntityID(EntityID pEntityID)
entityID
public EntityStatePdu setForceId(ForceID pForceId)
forceId
public EntityStatePdu setEntityType(EntityType pEntityType)
entityType
public EntityType getEntityType()
entityType
public EntityStatePdu setAlternativeEntityType(EntityType pAlternativeEntityType)
alternativeEntityType
public EntityType getAlternativeEntityType()
alternativeEntityType
public EntityStatePdu setEntityLinearVelocity(Vector3Float pEntityLinearVelocity)
entityLinearVelocity
public Vector3Float getEntityLinearVelocity()
entityLinearVelocity
public EntityStatePdu setEntityLocation(Vector3Double pEntityLocation)
entityLocation
public Vector3Double getEntityLocation()
entityLocation
public EntityStatePdu setEntityOrientation(EulerAngles pEntityOrientation)
entityOrientation
public EulerAngles getEntityOrientation()
entityOrientation
public EntityStatePdu setEntityAppearance(int pEntityAppearance)
entityAppearance
public int getEntityAppearance()
entityAppearance
public EntityStatePdu setDeadReckoningParameters(DeadReckoningParameters pDeadReckoningParameters)
deadReckoningParameters
public DeadReckoningParameters getDeadReckoningParameters()
deadReckoningParameters
public EntityStatePdu setMarking(EntityMarking pMarking)
marking
public EntityMarking getMarking()
marking
public EntityStatePdu setCapabilities(EntityCapabilities pCapabilities)
capabilities
public EntityCapabilities getCapabilities()
capabilities
public EntityStatePdu 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