public class EntityStatePdu extends EntityInformationFamilyPdu implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected EntityType |
alternativeEntityType |
protected long |
capabilities
a series of bit flags
|
protected DeadReckoningParameters |
deadReckoningParameters
parameters used for dead reckoning
|
protected long |
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 short |
forceId
What force this entity is affiliated with, eg red, blue, neutral, etc
|
protected EntityMarking |
marking
characters that can be used for debugging, or to draw unique strings on the side of entities in the world
|
protected short |
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
|
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 |
EntityType |
getAlternativeEntityType() |
long |
getCapabilities() |
DeadReckoningParameters |
getDeadReckoningParameters() |
long |
getEntityAppearance() |
EntityID |
getEntityID() |
Vector3Float |
getEntityLinearVelocity() |
Vector3Double |
getEntityLocation() |
EulerAngles |
getEntityOrientation() |
EntityType |
getEntityType() |
short |
getForceId() |
EntityMarking |
getMarking() |
int |
getMarshalledSize() |
short |
getNumberOfVariableParameters() |
java.util.List<VariableParameter> |
getVariableParameters() |
void |
marshal(java.nio.ByteBuffer buff)
Packs a Pdu into the ByteBuffer.
|
void |
marshal(java.io.DataOutputStream dos) |
void |
setAlternativeEntityType(EntityType pAlternativeEntityType) |
void |
setCapabilities(long pCapabilities) |
void |
setDeadReckoningParameters(DeadReckoningParameters pDeadReckoningParameters) |
void |
setEntityAppearance(long pEntityAppearance) |
void |
setEntityID(EntityID pEntityID) |
void |
setEntityLinearVelocity(Vector3Float pEntityLinearVelocity) |
void |
setEntityLocation(Vector3Double pEntityLocation) |
void |
setEntityOrientation(EulerAngles pEntityOrientation) |
void |
setEntityType(EntityType pEntityType) |
void |
setForceId(short pForceId) |
void |
setMarking(EntityMarking pMarking) |
void |
setNumberOfVariableParameters(short pNumberOfVariableParameters)
Note that setting this value will not change the marshalled value.
|
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 short forceId
protected short numberOfVariableParameters
protected EntityType entityType
protected EntityType alternativeEntityType
protected Vector3Float entityLinearVelocity
protected Vector3Double entityLocation
protected EulerAngles entityOrientation
protected long entityAppearance
protected DeadReckoningParameters deadReckoningParameters
protected EntityMarking marking
protected long capabilities
protected java.util.List<VariableParameter> variableParameters
public int getMarshalledSize()
getMarshalledSize
in class EntityInformationFamilyPdu
public void setEntityID(EntityID pEntityID)
public EntityID getEntityID()
public void setForceId(short pForceId)
public short getForceId()
public short getNumberOfVariableParameters()
public void setNumberOfVariableParameters(short pNumberOfVariableParameters)
public void setEntityType(EntityType pEntityType)
public EntityType getEntityType()
public void setAlternativeEntityType(EntityType pAlternativeEntityType)
public EntityType getAlternativeEntityType()
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 setDeadReckoningParameters(DeadReckoningParameters pDeadReckoningParameters)
public DeadReckoningParameters getDeadReckoningParameters()
public void setMarking(EntityMarking pMarking)
public EntityMarking getMarking()
public void setCapabilities(long pCapabilities)
public long getCapabilities()
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