|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.nps.moves.dis7mobile.PduSuperclass
edu.nps.moves.dis7mobile.Pdu
edu.nps.moves.dis7mobile.EntityInformationFamilyPdu
edu.nps.moves.dis7mobile.EntityStatePdu
public class EntityStatePdu
Represents the postion and state of one entity in the world. Section 7.2.2. 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 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. |
Fields inherited from class edu.nps.moves.dis7mobile.Pdu |
---|
padding, pduStatus |
Fields inherited from class edu.nps.moves.dis7mobile.PduSuperclass |
---|
exerciseID, length, 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()
|
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)
|
Methods inherited from class edu.nps.moves.dis7mobile.Pdu |
---|
getPadding, getPduStatus, marshal, setPadding, setPduStatus |
Methods inherited from class edu.nps.moves.dis7mobile.PduSuperclass |
---|
getExerciseID, getLength, getPduType, getProtocolFamily, getProtocolVersion, getTimestamp, setExerciseID, setLength, setPduType, setProtocolFamily, setProtocolVersion, setTimestamp |
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 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
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 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 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)
PduSuperclass
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 |