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 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
|
firingEntityID, targetEntityID
exerciseID, length, pduType, protocolFamily, protocolVersion, timestamp
Constructor and Description |
---|
DetonationPdu()
Constructor
|
Modifier and Type | Method and Description |
---|---|
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) |
getFiringEntityID, getTargetEntityID, setFiringEntityID, setTargetEntityID
getPadding, getPduStatus, marshal, setPadding, setPduStatus
getExerciseID, getLength, getPduType, getProtocolFamily, getProtocolVersion, getTimestamp, setExerciseID, setLength, setPduType, setProtocolFamily, setProtocolVersion, setTimestamp
protected EntityID explodingEntityID
protected EventIdentifier eventID
protected Vector3Float velocity
protected Vector3Double locationInWorldCoordinates
protected MunitionDescriptor descriptor
protected Vector3Float locationOfEntityCoordinates
protected short detonationResult
protected short numberOfVariableParameters
protected int pad
protected java.util.List<VariableParameter> variableParameters
public int getMarshalledSize()
getMarshalledSize
in class WarfareFamilyPdu
public void setExplodingEntityID(EntityID pExplodingEntityID)
public EntityID getExplodingEntityID()
public void setEventID(EventIdentifier pEventID)
public EventIdentifier getEventID()
public void setVelocity(Vector3Float pVelocity)
public Vector3Float getVelocity()
public void setLocationInWorldCoordinates(Vector3Double pLocationInWorldCoordinates)
public Vector3Double getLocationInWorldCoordinates()
public void setDescriptor(MunitionDescriptor pDescriptor)
public MunitionDescriptor getDescriptor()
public void setLocationOfEntityCoordinates(Vector3Float pLocationOfEntityCoordinates)
public Vector3Float getLocationOfEntityCoordinates()
public void setDetonationResult(short pDetonationResult)
public short getDetonationResult()
public short getNumberOfVariableParameters()
public void setNumberOfVariableParameters(short pNumberOfVariableParameters)
public void setPad(int pPad)
public int getPad()
public void setVariableParameters(java.util.List<VariableParameter> pVariableParameters)
public java.util.List<VariableParameter> getVariableParameters()
public void marshal(java.io.DataOutputStream dos)
marshal
in class WarfareFamilyPdu
public void unmarshal(java.io.DataInputStream dis)
unmarshal
in class WarfareFamilyPdu
public void marshal(java.nio.ByteBuffer buff)
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 onlyByteBuffer
public void unmarshal(java.nio.ByteBuffer buff)
unmarshal
in class WarfareFamilyPdu
buff
- The ByteBuffer at the position to begin readingjava.nio.BufferUnderflowException
- if buff is too smallByteBuffer
public boolean equals(java.lang.Object obj)
equals
in class WarfareFamilyPdu
public boolean equalsImpl(java.lang.Object obj)
PduSuperclass
this
and the supplied objectequalsImpl
in class WarfareFamilyPdu
obj
- the object to compare to