edu.nps.moves.dis7mobile
Class PointObjectStatePdu

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.PointObjectStatePdu
All Implemented Interfaces:
java.io.Serializable

public class PointObjectStatePdu
extends SyntheticEnvironmentFamilyPdu
implements java.io.Serializable

: Inormation abut the addition or modification of a synthecic enviroment object that is anchored to the terrain with a single point. Section 7.10.4 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
protected  double objectAppearance
          Object apperance
protected  EntityID objectID
          Object in synthetic environment
protected  Vector3Double objectLocation
          Object location
protected  EulerAngles objectOrientation
          Object orientation
protected  ObjectType objectType
          Object type
protected  long pad2
          padding
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
PointObjectStatePdu()
          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()
           
 double getObjectAppearance()
           
 EntityID getObjectID()
           
 Vector3Double getObjectLocation()
           
 EulerAngles getObjectOrientation()
           
 ObjectType getObjectType()
           
 long getPad2()
           
 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 setObjectAppearance(double pObjectAppearance)
           
 void setObjectID(EntityID pObjectID)
           
 void setObjectLocation(Vector3Double pObjectLocation)
           
 void setObjectOrientation(EulerAngles pObjectOrientation)
           
 void setObjectType(ObjectType pObjectType)
           
 void setPad2(long pPad2)
           
 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


modifications

protected short modifications
modifications


objectType

protected ObjectType objectType
Object type


objectLocation

protected Vector3Double objectLocation
Object location


objectOrientation

protected EulerAngles objectOrientation
Object orientation


objectAppearance

protected double objectAppearance
Object apperance


requesterID

protected SimulationAddress requesterID
requesterID


receivingID

protected SimulationAddress receivingID
receiver ID


pad2

protected long pad2
padding

Constructor Detail

PointObjectStatePdu

public PointObjectStatePdu()
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(ObjectType pObjectType)

getObjectType

public ObjectType getObjectType()

setObjectLocation

public void setObjectLocation(Vector3Double pObjectLocation)

getObjectLocation

public Vector3Double getObjectLocation()

setObjectOrientation

public void setObjectOrientation(EulerAngles pObjectOrientation)

getObjectOrientation

public EulerAngles getObjectOrientation()

setObjectAppearance

public void setObjectAppearance(double pObjectAppearance)

getObjectAppearance

public double getObjectAppearance()

setRequesterID

public void setRequesterID(SimulationAddress pRequesterID)

getRequesterID

public SimulationAddress getRequesterID()

setReceivingID

public void setReceivingID(SimulationAddress pReceivingID)

getReceivingID

public SimulationAddress getReceivingID()

setPad2

public void setPad2(long pPad2)

getPad2

public long getPad2()

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.