|
|||||||||
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.EntityStateUpdatePdu
public class EntityStateUpdatePdu
Nonstatic information about a particular entity may be communicated by issuing an Entity State Update PDU. Section 7.2.5. 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 long |
entityAppearance
This field shall specify the dynamic changes to the entitys appearance attributes. |
protected EntityID |
entityID
This field shall identify the entity issuing the PDU, and shall be represented by an Entity Identifier record (see 6.2.28). |
protected Vector3Float |
entityLinearVelocity
This field shall specify an entitys linear velocity. |
protected Vector3Double |
entityLocation
This field shall specify an entitys physical location in the simulated world and shall be represented by a World Coordinates record (see 6.2.97). |
protected EulerAngles |
entityOrientation
This field shall specify an entitys orientation and shall be represented by an Euler Angles record (see 6.2.33). |
protected short |
numberOfVariableParameters
This field shall specify the number of variable parameters present. |
protected byte |
padding1
Padding |
protected java.util.List<VariableParameter> |
variableParameters
This field shall specify the parameter values for each Variable Parameter record that is included (see 6.2.93 and Annex I). |
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 | |
---|---|
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 |
long |
getEntityAppearance()
|
EntityID |
getEntityID()
|
Vector3Float |
getEntityLinearVelocity()
|
Vector3Double |
getEntityLocation()
|
EulerAngles |
getEntityOrientation()
|
int |
getMarshalledSize()
|
short |
getNumberOfVariableParameters()
|
byte |
getPadding1()
|
java.util.List<VariableParameter> |
getVariableParameters()
|
void |
marshal(java.nio.ByteBuffer buff)
Packs a Pdu into the ByteBuffer. |
void |
marshal(java.io.DataOutputStream dos)
|
void |
setEntityAppearance(long pEntityAppearance)
|
void |
setEntityID(EntityID pEntityID)
|
void |
setEntityLinearVelocity(Vector3Float pEntityLinearVelocity)
|
void |
setEntityLocation(Vector3Double pEntityLocation)
|
void |
setEntityOrientation(EulerAngles pEntityOrientation)
|
void |
setNumberOfVariableParameters(short pNumberOfVariableParameters)
Note that setting this value will not change the marshalled value. |
void |
setPadding1(byte pPadding1)
|
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 byte padding1
protected short numberOfVariableParameters
protected Vector3Float entityLinearVelocity
protected Vector3Double entityLocation
protected EulerAngles entityOrientation
protected long entityAppearance
protected java.util.List<VariableParameter> variableParameters
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 getNumberOfVariableParameters()
public void setNumberOfVariableParameters(short pNumberOfVariableParameters)
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 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 |