|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.nps.moves.dismobile.Pdu
edu.nps.moves.dismobile.EntityInformationFamilyPdu
edu.nps.moves.dismobile.EntityStatePdu
public class EntityStatePdu
Section 5.3.3.1. Represents the postion and state of one entity in the world. COMPLETE Copyright (c) 2008-2010, MOVES Institute, Naval Postgraduate School. All rights reserved. This work is licensed under the BSD open source license, available at https://www.movesinstitute.org/licenses/bsd.html
Field Summary | |
---|---|
protected EntityType |
alternativeEntityType
|
protected java.util.List<ArticulationParameter> |
articulationParameters
variable length list of articulation parameters |
protected int |
capabilities
a series of bit flags |
protected DeadReckoningParameter |
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 Orientation |
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 Marking |
marking
characters that can be used for debugging, or to draw unique strings on the side of entities in the world |
protected byte |
numberOfArticulationParameters
How many articulation parameters are in the variable length list |
Fields inherited from class edu.nps.moves.dismobile.Pdu |
---|
exerciseID, padding, pduLength, pduType, protocolFamily, protocolVersion, timestamp |
Constructor Summary | |
---|---|
EntityStatePdu()
Constructor |
Method Summary | |
---|---|
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()
|
java.util.List<ArticulationParameter> |
getArticulationParameters()
|
int |
getCapabilities()
|
DeadReckoningParameter |
getDeadReckoningParameters()
|
int |
getEntityAppearance()
|
EntityID |
getEntityID()
|
Vector3Float |
getEntityLinearVelocity()
|
Vector3Double |
getEntityLocation()
|
Orientation |
getEntityOrientation()
|
EntityType |
getEntityType()
|
short |
getForceId()
|
Marking |
getMarking()
|
int |
getMarshalledSize()
|
byte |
getNumberOfArticulationParameters()
|
void |
marshal(java.nio.ByteBuffer buff)
Packs a Pdu into the ByteBuffer. |
void |
marshal(java.io.DataOutputStream dos)
|
void |
setAlternativeEntityType(EntityType pAlternativeEntityType)
|
void |
setArticulationParameters(java.util.List<ArticulationParameter> pArticulationParameters)
|
void |
setCapabilities(int pCapabilities)
|
void |
setDeadReckoningParameters(DeadReckoningParameter pDeadReckoningParameters)
|
void |
setEntityAppearance(int pEntityAppearance)
|
void |
setEntityID(EntityID pEntityID)
|
void |
setEntityLinearVelocity(Vector3Float pEntityLinearVelocity)
|
void |
setEntityLocation(Vector3Double pEntityLocation)
|
void |
setEntityOrientation(Orientation pEntityOrientation)
|
void |
setEntityType(EntityType pEntityType)
|
void |
setForceId(short pForceId)
|
void |
setMarking(Marking pMarking)
|
void |
setNumberOfArticulationParameters(byte pNumberOfArticulationParameters)
Note that setting this value will not change the marshalled value. |
void |
unmarshal(java.nio.ByteBuffer buff)
Unpacks a Pdu from the underlying data. |
void |
unmarshal(java.io.DataInputStream dis)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected EntityID entityID
protected short forceId
protected byte numberOfArticulationParameters
protected EntityType entityType
protected EntityType alternativeEntityType
protected Vector3Float entityLinearVelocity
protected Vector3Double entityLocation
protected Orientation entityOrientation
protected int entityAppearance
protected DeadReckoningParameter deadReckoningParameters
protected Marking marking
protected int capabilities
protected java.util.List<ArticulationParameter> articulationParameters
Constructor Detail |
---|
public EntityStatePdu()
Method Detail |
---|
public int getMarshalledSize()
getMarshalledSize
in class EntityInformationFamilyPdu
public void setEntityID(EntityID pEntityID)
public EntityID getEntityID()
public void setForceId(short pForceId)
public short getForceId()
public byte getNumberOfArticulationParameters()
public void setNumberOfArticulationParameters(byte pNumberOfArticulationParameters)
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(Orientation pEntityOrientation)
public Orientation getEntityOrientation()
public void setEntityAppearance(int pEntityAppearance)
public int getEntityAppearance()
public void setDeadReckoningParameters(DeadReckoningParameter pDeadReckoningParameters)
public DeadReckoningParameter getDeadReckoningParameters()
public void setMarking(Marking pMarking)
public Marking getMarking()
public void setCapabilities(int pCapabilities)
public int getCapabilities()
public void setArticulationParameters(java.util.List<ArticulationParameter> pArticulationParameters)
public java.util.List<ArticulationParameter> getArticulationParameters()
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 writing
java.nio.BufferOverflowException
- if buff is too small
java.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 reading
java.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)
Pdu
this
and the supplied object
equalsImpl
in class EntityInformationFamilyPdu
obj
- the object to compare to
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |