|
|||||||||
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.SyntheticEnvironmentFamilyPdu
edu.nps.moves.dismobile.LinearObjectStatePdu
public class LinearObjectStatePdu
Section 5.3.11.4: Information abut the addition or modification of a synthecic enviroment object that is anchored to the terrain with a single point and has size or orientation. 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 short |
forceID
force ID |
protected java.util.List<LinearSegmentParameter> |
linearSegmentParameters
Linear segment parameters |
protected short |
numberOfSegments
number of linear segment parameters |
protected EntityID |
objectID
Object in synthetic environment |
protected ObjectType |
objectType
Object type |
protected SimulationAddress |
receivingID
receiver ID |
protected EntityID |
referencedObjectID
Object with which this point object is associated |
protected SimulationAddress |
requesterID
requesterID |
protected int |
updateNumber
unique update number of each state transition of an object |
Fields inherited from class edu.nps.moves.dismobile.Pdu |
---|
exerciseID, padding, pduLength, pduType, protocolFamily, protocolVersion, timestamp |
Constructor Summary | |
---|---|
LinearObjectStatePdu()
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 |
short |
getForceID()
|
java.util.List<LinearSegmentParameter> |
getLinearSegmentParameters()
|
int |
getMarshalledSize()
|
short |
getNumberOfSegments()
|
EntityID |
getObjectID()
|
ObjectType |
getObjectType()
|
SimulationAddress |
getReceivingID()
|
EntityID |
getReferencedObjectID()
|
SimulationAddress |
getRequesterID()
|
int |
getUpdateNumber()
|
void |
marshal(java.nio.ByteBuffer buff)
Packs a Pdu into the ByteBuffer. |
void |
marshal(java.io.DataOutputStream dos)
|
void |
setForceID(short pForceID)
|
void |
setLinearSegmentParameters(java.util.List<LinearSegmentParameter> pLinearSegmentParameters)
|
void |
setNumberOfSegments(short pNumberOfSegments)
Note that setting this value will not change the marshalled value. |
void |
setObjectID(EntityID pObjectID)
|
void |
setObjectType(ObjectType pObjectType)
|
void |
setReceivingID(SimulationAddress pReceivingID)
|
void |
setReferencedObjectID(EntityID pReferencedObjectID)
|
void |
setRequesterID(SimulationAddress pRequesterID)
|
void |
setUpdateNumber(int pUpdateNumber)
|
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 objectID
protected EntityID referencedObjectID
protected int updateNumber
protected short forceID
protected short numberOfSegments
protected SimulationAddress requesterID
protected SimulationAddress receivingID
protected ObjectType objectType
protected java.util.List<LinearSegmentParameter> linearSegmentParameters
Constructor Detail |
---|
public LinearObjectStatePdu()
Method Detail |
---|
public int getMarshalledSize()
getMarshalledSize
in class SyntheticEnvironmentFamilyPdu
public void setObjectID(EntityID pObjectID)
public EntityID getObjectID()
public void setReferencedObjectID(EntityID pReferencedObjectID)
public EntityID getReferencedObjectID()
public void setUpdateNumber(int pUpdateNumber)
public int getUpdateNumber()
public void setForceID(short pForceID)
public short getForceID()
public short getNumberOfSegments()
public void setNumberOfSegments(short pNumberOfSegments)
public void setRequesterID(SimulationAddress pRequesterID)
public SimulationAddress getRequesterID()
public void setReceivingID(SimulationAddress pReceivingID)
public SimulationAddress getReceivingID()
public void setObjectType(ObjectType pObjectType)
public ObjectType getObjectType()
public void setLinearSegmentParameters(java.util.List<LinearSegmentParameter> pLinearSegmentParameters)
public java.util.List<LinearSegmentParameter> getLinearSegmentParameters()
public void marshal(java.io.DataOutputStream dos)
marshal
in class SyntheticEnvironmentFamilyPdu
public void unmarshal(java.io.DataInputStream dis)
unmarshal
in class SyntheticEnvironmentFamilyPdu
public void marshal(java.nio.ByteBuffer buff)
marshal
in class SyntheticEnvironmentFamilyPdu
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 SyntheticEnvironmentFamilyPdu
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 SyntheticEnvironmentFamilyPdu
public boolean equalsImpl(java.lang.Object obj)
Pdu
this
and the supplied object
equalsImpl
in class SyntheticEnvironmentFamilyPdu
obj
- the object to compare to
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |