public class DetonationPdu extends WarfareFamilyPdu implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected MunitionDescriptor |
descriptor
Describes the detonation represented, Section 7.3.3
|
protected DetonationResult |
detonationResult
result of the detonation, Section 7.3.3 uid 62
|
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 byte |
numberOfVariableParameters
How many articulation parameters we have, Section 7.3.3
|
protected short |
pad
padding
|
protected EntityID |
sourceEntityID
ID of the entity that shot
|
protected EntityID |
targetEntityID
ID of the entity that is being shot at
|
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
|
exerciseID, length, pduType, protocolFamily, protocolVersion, timestamp
Constructor and Description |
---|
DetonationPdu()
Constructor
|
getPadding, getPduStatus, setPadding, setPduStatus
getExerciseID, getLength, getPduType, getProtocolFamily, getProtocolVersion, getTimestamp, marshal, setExerciseID, setLength, setPduType, setProtocolFamily, setProtocolVersion, setTimestamp
protected EntityID sourceEntityID
protected EntityID targetEntityID
protected EntityID explodingEntityID
protected EventIdentifier eventID
protected Vector3Float velocity
protected Vector3Double locationInWorldCoordinates
protected MunitionDescriptor descriptor
protected Vector3Float locationOfEntityCoordinates
protected DetonationResult detonationResult
protected byte numberOfVariableParameters
protected short pad
protected java.util.List<VariableParameter> variableParameters
public int getMarshalledSize()
getMarshalledSize
in class WarfareFamilyPdu
public DetonationPdu setSourceEntityID(EntityID pSourceEntityID)
sourceEntityID
public EntityID getSourceEntityID()
sourceEntityID
public DetonationPdu setTargetEntityID(EntityID pTargetEntityID)
targetEntityID
public EntityID getTargetEntityID()
targetEntityID
public DetonationPdu setExplodingEntityID(EntityID pExplodingEntityID)
explodingEntityID
public EntityID getExplodingEntityID()
explodingEntityID
public DetonationPdu setEventID(EventIdentifier pEventID)
eventID
public EventIdentifier getEventID()
eventID
public DetonationPdu setVelocity(Vector3Float pVelocity)
velocity
public Vector3Float getVelocity()
velocity
public DetonationPdu setLocationInWorldCoordinates(Vector3Double pLocationInWorldCoordinates)
locationInWorldCoordinates
public Vector3Double getLocationInWorldCoordinates()
locationInWorldCoordinates
public DetonationPdu setDescriptor(MunitionDescriptor pDescriptor)
descriptor
public MunitionDescriptor getDescriptor()
descriptor
public DetonationPdu setLocationOfEntityCoordinates(Vector3Float pLocationOfEntityCoordinates)
locationOfEntityCoordinates
public Vector3Float getLocationOfEntityCoordinates()
locationOfEntityCoordinates
public DetonationPdu setDetonationResult(DetonationResult pDetonationResult)
detonationResult
public DetonationResult getDetonationResult()
detonationResult
public DetonationPdu setPad(short pPad)
pad
public short getPad()
pad
public DetonationPdu setVariableParameters(java.util.List<VariableParameter> pVariableParameters)
variableParameters
public java.util.List<VariableParameter> getVariableParameters()
variableParameters
public void marshal(java.io.DataOutputStream dos)
marshal
in class WarfareFamilyPdu
dos
- The DataOutputStreamDataOutputStream
public int unmarshal(java.io.DataInputStream dis)
unmarshal
in class WarfareFamilyPdu
dis
- The DataInputStreamDataInputStream
public void marshal(java.nio.ByteBuffer buff) throws java.lang.Exception
marshal
in class WarfareFamilyPdu
buff
- The ByteBuffer at the position to begin writingjava.nio.BufferOverflowException
- if buff is too smalljava.nio.ReadOnlyBufferException
- if buff is read onlyjava.lang.Exception
- ByteBuffer-generated exceptionByteBuffer
public int unmarshal(java.nio.ByteBuffer buff) throws java.lang.Exception
unmarshal
in class WarfareFamilyPdu
buff
- The ByteBuffer at the position to begin readingjava.nio.BufferUnderflowException
- if buff is too smalljava.lang.Exception
- ByteBuffer-generated exceptionByteBuffer
public boolean equals(java.lang.Object obj)
equals
in class WarfareFamilyPdu
public boolean equalsImpl(java.lang.Object obj)
Pdu
this
and the supplied objectequalsImpl
in class WarfareFamilyPdu
obj
- the object to compare to