edu.nps.moves.dis7mobile
Class LinearObjectStatePdu

java.lang.Object
  extended by edu.nps.moves.dis7mobile.PduSuperclass
      extended by edu.nps.moves.dis7mobile.Pdu
          extended by edu.nps.moves.dis7mobile.SyntheticEnvironmentFamilyPdu
              extended by edu.nps.moves.dis7mobile.LinearObjectStatePdu
All Implemented Interfaces:
java.io.Serializable

public class LinearObjectStatePdu
extends SyntheticEnvironmentFamilyPdu
implements java.io.Serializable

: 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. Section 7.10.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

Author:
DMcG
See Also:
Serialized Form

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.dis7mobile.Pdu
padding, pduStatus
 
Fields inherited from class edu.nps.moves.dis7mobile.PduSuperclass
exerciseID, length, 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 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

objectID

protected EntityID objectID
Object in synthetic environment


referencedObjectID

protected EntityID referencedObjectID
Object with which this point object is associated


updateNumber

protected int updateNumber
unique update number of each state transition of an object


forceID

protected short forceID
force ID


numberOfSegments

protected short numberOfSegments
number of linear segment parameters


requesterID

protected SimulationAddress requesterID
requesterID


receivingID

protected SimulationAddress receivingID
receiver ID


objectType

protected ObjectType objectType
Object type


linearSegmentParameters

protected java.util.List<LinearSegmentParameter> linearSegmentParameters
Linear segment parameters

Constructor Detail

LinearObjectStatePdu

public LinearObjectStatePdu()
Constructor

Method Detail

getMarshalledSize

public int getMarshalledSize()
Overrides:
getMarshalledSize in class SyntheticEnvironmentFamilyPdu

setObjectID

public void setObjectID(EntityID pObjectID)

getObjectID

public EntityID getObjectID()

setReferencedObjectID

public void setReferencedObjectID(EntityID pReferencedObjectID)

getReferencedObjectID

public EntityID getReferencedObjectID()

setUpdateNumber

public void setUpdateNumber(int pUpdateNumber)

getUpdateNumber

public int getUpdateNumber()

setForceID

public void setForceID(short pForceID)

getForceID

public short getForceID()

getNumberOfSegments

public short getNumberOfSegments()

setNumberOfSegments

public void setNumberOfSegments(short pNumberOfSegments)
Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. The getnumberOfSegments method will also be based on the actual list length rather than this value. The method is simply here for java bean completeness.


setRequesterID

public void setRequesterID(SimulationAddress pRequesterID)

getRequesterID

public SimulationAddress getRequesterID()

setReceivingID

public void setReceivingID(SimulationAddress pReceivingID)

getReceivingID

public SimulationAddress getReceivingID()

setObjectType

public void setObjectType(ObjectType pObjectType)

getObjectType

public ObjectType getObjectType()

setLinearSegmentParameters

public void setLinearSegmentParameters(java.util.List<LinearSegmentParameter> pLinearSegmentParameters)

getLinearSegmentParameters

public java.util.List<LinearSegmentParameter> getLinearSegmentParameters()

marshal

public void marshal(java.io.DataOutputStream dos)
Overrides:
marshal in class SyntheticEnvironmentFamilyPdu

unmarshal

public void unmarshal(java.io.DataInputStream dis)
Overrides:
unmarshal in class SyntheticEnvironmentFamilyPdu

marshal

public void marshal(java.nio.ByteBuffer buff)
Packs a Pdu into the ByteBuffer.

Overrides:
marshal in class SyntheticEnvironmentFamilyPdu
Parameters:
buff - The ByteBuffer at the position to begin writing
Throws:
java.nio.BufferOverflowException - if buff is too small
java.nio.ReadOnlyBufferException - if buff is read only
Since:
??
See Also:
ByteBuffer

unmarshal

public void unmarshal(java.nio.ByteBuffer buff)
Unpacks a Pdu from the underlying data.

Overrides:
unmarshal in class SyntheticEnvironmentFamilyPdu
Parameters:
buff - The ByteBuffer at the position to begin reading
Throws:
java.nio.BufferUnderflowException - if buff is too small
Since:
??
See Also:
ByteBuffer

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class SyntheticEnvironmentFamilyPdu

equalsImpl

public boolean equalsImpl(java.lang.Object obj)
Description copied from class: PduSuperclass
Compare all fields that contribute to the state, ignoring transient and static fields, for this and the supplied object

Overrides:
equalsImpl in class SyntheticEnvironmentFamilyPdu
Parameters:
obj - the object to compare to
Returns:
true if the objects are equal, false otherwise.