edu.nps.moves.dis7mobile
Class DetonationPdu

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

public class DetonationPdu
extends WarfareFamilyPdu
implements java.io.Serializable

Detonation or impact of munitions, as well as, non-munition explosions, the burst or initial bloom of chaff, and the ignition of a flare shall be indicated. Section 7.3.3 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  MunitionDescriptor descriptor
          Describes the detonation represented, Section 7.3.3
protected  short detonationResult
          result of the detonation, Section 7.3.3
protected  EventIdentifier eventID
          ID of event, Section 7.3.3
protected  EntityID explodingEntityID
          ID of the expendable entity, Section 7.3.3
protected  Vector3Double locationInWorldCoordinates
          location of the munition detonation, the expendable detonation, Section 7.3.3
protected  Vector3Float locationOfEntityCoordinates
          Velocity of the ammunition, Section 7.3.3
protected  short numberOfVariableParameters
          How many articulation parameters we have, Section 7.3.3
protected  int pad
          padding
protected  java.util.List<VariableParameter> variableParameters
          specify the parameter values for each Variable Parameter record, Section 7.3.3
protected  Vector3Float velocity
          velocity of the munition immediately before detonation/impact, Section 7.3.3
 
Fields inherited from class edu.nps.moves.dis7mobile.WarfareFamilyPdu
firingEntityID, targetEntityID
 
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
DetonationPdu()
          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
 MunitionDescriptor getDescriptor()
           
 short getDetonationResult()
           
 EventIdentifier getEventID()
           
 EntityID getExplodingEntityID()
           
 Vector3Double getLocationInWorldCoordinates()
           
 Vector3Float getLocationOfEntityCoordinates()
           
 int getMarshalledSize()
           
 short getNumberOfVariableParameters()
           
 int getPad()
           
 java.util.List<VariableParameter> getVariableParameters()
           
 Vector3Float getVelocity()
           
 void marshal(java.nio.ByteBuffer buff)
          Packs a Pdu into the ByteBuffer.
 void marshal(java.io.DataOutputStream dos)
           
 void setDescriptor(MunitionDescriptor pDescriptor)
           
 void setDetonationResult(short pDetonationResult)
           
 void setEventID(EventIdentifier pEventID)
           
 void setExplodingEntityID(EntityID pExplodingEntityID)
           
 void setLocationInWorldCoordinates(Vector3Double pLocationInWorldCoordinates)
           
 void setLocationOfEntityCoordinates(Vector3Float pLocationOfEntityCoordinates)
           
 void setNumberOfVariableParameters(short pNumberOfVariableParameters)
          Note that setting this value will not change the marshalled value.
 void setPad(int pPad)
           
 void setVariableParameters(java.util.List<VariableParameter> pVariableParameters)
           
 void setVelocity(Vector3Float pVelocity)
           
 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.WarfareFamilyPdu
getFiringEntityID, getTargetEntityID, setFiringEntityID, setTargetEntityID
 
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

explodingEntityID

protected EntityID explodingEntityID
ID of the expendable entity, Section 7.3.3


eventID

protected EventIdentifier eventID
ID of event, Section 7.3.3


velocity

protected Vector3Float velocity
velocity of the munition immediately before detonation/impact, Section 7.3.3


locationInWorldCoordinates

protected Vector3Double locationInWorldCoordinates
location of the munition detonation, the expendable detonation, Section 7.3.3


descriptor

protected MunitionDescriptor descriptor
Describes the detonation represented, Section 7.3.3


locationOfEntityCoordinates

protected Vector3Float locationOfEntityCoordinates
Velocity of the ammunition, Section 7.3.3


detonationResult

protected short detonationResult
result of the detonation, Section 7.3.3


numberOfVariableParameters

protected short numberOfVariableParameters
How many articulation parameters we have, Section 7.3.3


pad

protected int pad
padding


variableParameters

protected java.util.List<VariableParameter> variableParameters
specify the parameter values for each Variable Parameter record, Section 7.3.3

Constructor Detail

DetonationPdu

public DetonationPdu()
Constructor

Method Detail

getMarshalledSize

public int getMarshalledSize()
Overrides:
getMarshalledSize in class WarfareFamilyPdu

setExplodingEntityID

public void setExplodingEntityID(EntityID pExplodingEntityID)

getExplodingEntityID

public EntityID getExplodingEntityID()

setEventID

public void setEventID(EventIdentifier pEventID)

getEventID

public EventIdentifier getEventID()

setVelocity

public void setVelocity(Vector3Float pVelocity)

getVelocity

public Vector3Float getVelocity()

setLocationInWorldCoordinates

public void setLocationInWorldCoordinates(Vector3Double pLocationInWorldCoordinates)

getLocationInWorldCoordinates

public Vector3Double getLocationInWorldCoordinates()

setDescriptor

public void setDescriptor(MunitionDescriptor pDescriptor)

getDescriptor

public MunitionDescriptor getDescriptor()

setLocationOfEntityCoordinates

public void setLocationOfEntityCoordinates(Vector3Float pLocationOfEntityCoordinates)

getLocationOfEntityCoordinates

public Vector3Float getLocationOfEntityCoordinates()

setDetonationResult

public void setDetonationResult(short pDetonationResult)

getDetonationResult

public short getDetonationResult()

getNumberOfVariableParameters

public short getNumberOfVariableParameters()

setNumberOfVariableParameters

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


setPad

public void setPad(int pPad)

getPad

public int getPad()

setVariableParameters

public void setVariableParameters(java.util.List<VariableParameter> pVariableParameters)

getVariableParameters

public java.util.List<VariableParameter> getVariableParameters()

marshal

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

unmarshal

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

marshal

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

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

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