|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.nps.moves.dis.Pdu
edu.nps.moves.dis.EntityInformationFamilyPdu
edu.nps.moves.dis.EntityStateUpdatePdu
@Entity public class EntityStateUpdatePdu
5.3.3.4. Nonstatic information about a particular entity may be communicated by issuing an Entity State Update PDU. 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 java.util.List<ArticulationParameter> |
articulationParameters
|
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
This field shall identify the entity issuing the PDU |
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 |
long |
fk_entityID
|
long |
fk_entityLinearVelocity
|
long |
fk_entityLocation
|
long |
fk_entityOrientation
|
protected short |
numberOfArticulationParameters
How many articulation parameters are in the variable length list |
protected byte |
padding1
Padding |
Fields inherited from class edu.nps.moves.dis.Pdu |
---|
exerciseID, padding, pduLength, pduType, protocolFamily, protocolVersion, timestamp |
Constructor Summary | |
---|---|
EntityStateUpdatePdu()
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 |
java.util.List<ArticulationParameter> |
getArticulationParameters()
|
int |
getEntityAppearance()
|
EntityID |
getEntityID()
|
Vector3Float |
getEntityLinearVelocity()
|
Vector3Double |
getEntityLocation()
|
Orientation |
getEntityOrientation()
|
int |
getMarshalledSize()
|
short |
getNumberOfArticulationParameters()
|
byte |
getPadding1()
|
void |
marshal(java.nio.ByteBuffer buff)
Packs a Pdu into the ByteBuffer. |
void |
marshal(java.io.DataOutputStream dos)
|
void |
setArticulationParameters(java.util.List<ArticulationParameter> pArticulationParameters)
|
void |
setEntityAppearance(int pEntityAppearance)
|
void |
setEntityID(EntityID pEntityID)
|
void |
setEntityLinearVelocity(Vector3Float pEntityLinearVelocity)
|
void |
setEntityLocation(Vector3Double pEntityLocation)
|
void |
setEntityOrientation(Orientation pEntityOrientation)
|
void |
setNumberOfArticulationParameters(short pNumberOfArticulationParameters)
Note that setting this value will not change the marshalled value. |
void |
setPadding1(byte pPadding1)
|
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 byte padding1
protected short numberOfArticulationParameters
protected Vector3Float entityLinearVelocity
protected Vector3Double entityLocation
protected Orientation entityOrientation
protected int entityAppearance
protected java.util.List<ArticulationParameter> articulationParameters
public long fk_entityID
public long fk_entityLinearVelocity
public long fk_entityLocation
public long fk_entityOrientation
Constructor Detail |
---|
public EntityStateUpdatePdu()
Method Detail |
---|
public int getMarshalledSize()
getMarshalledSize
in class EntityInformationFamilyPdu
public void setEntityID(EntityID pEntityID)
public EntityID getEntityID()
public void setPadding1(byte pPadding1)
public byte getPadding1()
public short getNumberOfArticulationParameters()
public void setNumberOfArticulationParameters(short pNumberOfArticulationParameters)
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 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 |