edu.nps.moves.dis7mobile
Class DesignatorPdu

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

public class DesignatorPdu
extends DistributedEmissionsFamilyPdu
implements java.io.Serializable

Section 5.3.7.2. Handles designating operations. 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  int codeName
          This field shall specify a unique emitter database number assigned to differentiate between otherwise similar or identical emitter beams within an emitter system.
protected  byte deadReckoningAlgorithm
          Dead reckoning algorithm
protected  EntityID designatedEntityID
          ID of the entity being designated
protected  EntityID designatingEntityID
          ID of the entity designating
protected  int designatorCode
          This field shall identify the designator code being used by the designating entity
protected  float designatorPower
          This field shall identify the designator output power in watts
protected  Vector3Double designatorSpotLocation
          designtor spot wrt the designated entity
protected  Vector3Float designatorSpotWrtDesignated
          designtor spot wrt the designated entity
protected  float designatorWavelength
          This field shall identify the designator wavelength in units of microns
protected  Vector3Float entityLinearAcceleration
          linear accelleration of entity
protected  int padding1
          padding
protected  byte padding2
          padding
 
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
DesignatorPdu()
          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
 int getCodeName()
           
 byte getDeadReckoningAlgorithm()
           
 EntityID getDesignatedEntityID()
           
 EntityID getDesignatingEntityID()
           
 int getDesignatorCode()
           
 float getDesignatorPower()
           
 Vector3Double getDesignatorSpotLocation()
           
 Vector3Float getDesignatorSpotWrtDesignated()
           
 float getDesignatorWavelength()
           
 Vector3Float getEntityLinearAcceleration()
           
 int getMarshalledSize()
           
 int getPadding1()
           
 byte getPadding2()
           
 void marshal(java.nio.ByteBuffer buff)
          Packs a Pdu into the ByteBuffer.
 void marshal(java.io.DataOutputStream dos)
           
 void setCodeName(int pCodeName)
           
 void setDeadReckoningAlgorithm(byte pDeadReckoningAlgorithm)
           
 void setDesignatedEntityID(EntityID pDesignatedEntityID)
           
 void setDesignatingEntityID(EntityID pDesignatingEntityID)
           
 void setDesignatorCode(int pDesignatorCode)
           
 void setDesignatorPower(float pDesignatorPower)
           
 void setDesignatorSpotLocation(Vector3Double pDesignatorSpotLocation)
           
 void setDesignatorSpotWrtDesignated(Vector3Float pDesignatorSpotWrtDesignated)
           
 void setDesignatorWavelength(float pDesignatorWavelength)
           
 void setEntityLinearAcceleration(Vector3Float pEntityLinearAcceleration)
           
 void setPadding1(int pPadding1)
           
 void setPadding2(byte pPadding2)
           
 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

designatingEntityID

protected EntityID designatingEntityID
ID of the entity designating


codeName

protected int codeName
This field shall specify a unique emitter database number assigned to differentiate between otherwise similar or identical emitter beams within an emitter system.


designatedEntityID

protected EntityID designatedEntityID
ID of the entity being designated


designatorCode

protected int designatorCode
This field shall identify the designator code being used by the designating entity


designatorPower

protected float designatorPower
This field shall identify the designator output power in watts


designatorWavelength

protected float designatorWavelength
This field shall identify the designator wavelength in units of microns


designatorSpotWrtDesignated

protected Vector3Float designatorSpotWrtDesignated
designtor spot wrt the designated entity


designatorSpotLocation

protected Vector3Double designatorSpotLocation
designtor spot wrt the designated entity


deadReckoningAlgorithm

protected byte deadReckoningAlgorithm
Dead reckoning algorithm


padding1

protected int padding1
padding


padding2

protected byte padding2
padding


entityLinearAcceleration

protected Vector3Float entityLinearAcceleration
linear accelleration of entity

Constructor Detail

DesignatorPdu

public DesignatorPdu()
Constructor

Method Detail

getMarshalledSize

public int getMarshalledSize()
Overrides:
getMarshalledSize in class DistributedEmissionsFamilyPdu

setDesignatingEntityID

public void setDesignatingEntityID(EntityID pDesignatingEntityID)

getDesignatingEntityID

public EntityID getDesignatingEntityID()

setCodeName

public void setCodeName(int pCodeName)

getCodeName

public int getCodeName()

setDesignatedEntityID

public void setDesignatedEntityID(EntityID pDesignatedEntityID)

getDesignatedEntityID

public EntityID getDesignatedEntityID()

setDesignatorCode

public void setDesignatorCode(int pDesignatorCode)

getDesignatorCode

public int getDesignatorCode()

setDesignatorPower

public void setDesignatorPower(float pDesignatorPower)

getDesignatorPower

public float getDesignatorPower()

setDesignatorWavelength

public void setDesignatorWavelength(float pDesignatorWavelength)

getDesignatorWavelength

public float getDesignatorWavelength()

setDesignatorSpotWrtDesignated

public void setDesignatorSpotWrtDesignated(Vector3Float pDesignatorSpotWrtDesignated)

getDesignatorSpotWrtDesignated

public Vector3Float getDesignatorSpotWrtDesignated()

setDesignatorSpotLocation

public void setDesignatorSpotLocation(Vector3Double pDesignatorSpotLocation)

getDesignatorSpotLocation

public Vector3Double getDesignatorSpotLocation()

setDeadReckoningAlgorithm

public void setDeadReckoningAlgorithm(byte pDeadReckoningAlgorithm)

getDeadReckoningAlgorithm

public byte getDeadReckoningAlgorithm()

setPadding1

public void setPadding1(int pPadding1)

getPadding1

public int getPadding1()

setPadding2

public void setPadding2(byte pPadding2)

getPadding2

public byte getPadding2()

setEntityLinearAcceleration

public void setEntityLinearAcceleration(Vector3Float pEntityLinearAcceleration)

getEntityLinearAcceleration

public Vector3Float getEntityLinearAcceleration()

marshal

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

unmarshal

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

marshal

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

Overrides:
marshal in class DistributedEmissionsFamilyPdu
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 DistributedEmissionsFamilyPdu
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 DistributedEmissionsFamilyPdu

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 DistributedEmissionsFamilyPdu
Parameters:
obj - the object to compare to
Returns:
true if the objects are equal, false otherwise.