edu.nps.moves.dismobile
Class ArealObjectStatePdu

java.lang.Object
  extended by edu.nps.moves.dismobile.Pdu
      extended by edu.nps.moves.dismobile.SyntheticEnvironmentFamilyPdu
          extended by edu.nps.moves.dismobile.ArealObjectStatePdu
All Implemented Interfaces:
java.io.Serializable

public class ArealObjectStatePdu
extends SyntheticEnvironmentFamilyPdu
implements java.io.Serializable

Section 5.3.11.5: Information about the addition/modification of an oobject that is geometrically achored to the terrain with a set of three or more points that come to a closure. 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  short modifications
          modifications enumeration
protected  int numberOfPoints
          Number of points
protected  SixByteChunk objectAppearance
          Object appearance
protected  EntityID objectID
          Object in synthetic environment
protected  java.util.List<Vector3Double> objectLocation
          location of object
protected  EntityType 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
ArealObjectStatePdu()
          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()
           
 int getMarshalledSize()
           
 short getModifications()
           
 int getNumberOfPoints()
           
 SixByteChunk getObjectAppearance()
           
 EntityID getObjectID()
           
 java.util.List<Vector3Double> getObjectLocation()
           
 EntityType 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 setModifications(short pModifications)
           
 void setNumberOfPoints(int pNumberOfPoints)
          Note that setting this value will not change the marshalled value.
 void setObjectAppearance(SixByteChunk pObjectAppearance)
           
 void setObjectID(EntityID pObjectID)
           
 void setObjectLocation(java.util.List<Vector3Double> pObjectLocation)
           
 void setObjectType(EntityType 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.dismobile.Pdu
getExerciseID, getLength, getPadding, getPduLength, getPduType, getProtocolFamily, getProtocolVersion, getTimestamp, marshal, marshalWithDisAbsoluteTimestamp, marshalWithDisAbsoluteTimestamp, marshalWithDisRelativeTimestamp, marshalWithDisRelativeTimestamp, marshalWithNpsTimestamp, marshalWithNpsTimestamp, marshalWithUnixTimestamp, marshalWithUnixTimestamp, readUnsignedInt, readUnsignedInt, setExerciseID, setPadding, setPduLength, 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


modifications

protected short modifications
modifications enumeration


objectType

protected EntityType objectType
Object type


objectAppearance

protected SixByteChunk objectAppearance
Object appearance


numberOfPoints

protected int numberOfPoints
Number of points


requesterID

protected SimulationAddress requesterID
requesterID


receivingID

protected SimulationAddress receivingID
receiver ID


objectLocation

protected java.util.List<Vector3Double> objectLocation
location of object

Constructor Detail

ArealObjectStatePdu

public ArealObjectStatePdu()
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()

setModifications

public void setModifications(short pModifications)

getModifications

public short getModifications()

setObjectType

public void setObjectType(EntityType pObjectType)

getObjectType

public EntityType getObjectType()

setObjectAppearance

public void setObjectAppearance(SixByteChunk pObjectAppearance)

getObjectAppearance

public SixByteChunk getObjectAppearance()

getNumberOfPoints

public int getNumberOfPoints()

setNumberOfPoints

public void setNumberOfPoints(int pNumberOfPoints)
Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. The getnumberOfPoints 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()

setObjectLocation

public void setObjectLocation(java.util.List<Vector3Double> pObjectLocation)

getObjectLocation

public java.util.List<Vector3Double> getObjectLocation()

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: Pdu
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.