public class DetonationPdu extends WarfareFamilyPdu implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected java.util.List<ArticulationParameter> |
articulationParameters |
protected BurstDescriptor |
burstDescriptor
Describes munition used
|
protected short |
detonationResult
result of the explosion
|
protected EventID |
eventID
ID firing event
|
protected Vector3Float |
locationInEntityCoordinates
location of the detonation or impact in the target entity's coordinate system.
|
protected Vector3Double |
locationInWorldCoordinates
where the detonation is, in world coordinates
|
protected EntityID |
munitionID
ID of muntion that was fired
|
protected short |
numberOfArticulationParameters
How many articulation parameters we have
|
protected short |
pad
padding
|
protected Vector3Float |
velocity
ID firing event
|
firingEntityID, targetEntityID
exerciseID, padding, pduLength, 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 |
java.util.List<ArticulationParameter> |
getArticulationParameters() |
BurstDescriptor |
getBurstDescriptor() |
short |
getDetonationResult() |
EventID |
getEventID() |
Vector3Float |
getLocationInEntityCoordinates() |
Vector3Double |
getLocationInWorldCoordinates() |
int |
getMarshalledSize() |
EntityID |
getMunitionID() |
short |
getNumberOfArticulationParameters() |
short |
getPad() |
Vector3Float |
getVelocity() |
void |
marshal(java.nio.ByteBuffer buff)
Packs a Pdu into the ByteBuffer.
|
void |
marshal(java.io.DataOutputStream dos) |
void |
setArticulationParameters(java.util.List<ArticulationParameter> pArticulationParameters) |
void |
setBurstDescriptor(BurstDescriptor pBurstDescriptor) |
void |
setDetonationResult(short pDetonationResult) |
void |
setEventID(EventID pEventID) |
void |
setLocationInEntityCoordinates(Vector3Float pLocationInEntityCoordinates) |
void |
setLocationInWorldCoordinates(Vector3Double pLocationInWorldCoordinates) |
void |
setMunitionID(EntityID pMunitionID) |
void |
setNumberOfArticulationParameters(short pNumberOfArticulationParameters)
Note that setting this value will not change the marshalled value.
|
void |
setPad(short pPad) |
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
getExerciseID, getLength, getPadding, getPduLength, getPduType, getPduTypeEnum, getProtocolFamily, getProtocolVersion, getTimestamp, marshal, marshalWithDisAbsoluteTimestamp, marshalWithDisAbsoluteTimestamp, marshalWithDisRelativeTimestamp, marshalWithDisRelativeTimestamp, marshalWithNpsTimestamp, marshalWithNpsTimestamp, marshalWithUnixTimestamp, marshalWithUnixTimestamp, readUnsignedInt, readUnsignedInt, setExerciseID, setPadding, setPduLength, setPduType, setProtocolFamily, setProtocolVersion, setTimestamp
protected EntityID munitionID
protected EventID eventID
protected Vector3Float velocity
protected Vector3Double locationInWorldCoordinates
protected BurstDescriptor burstDescriptor
protected Vector3Float locationInEntityCoordinates
protected short detonationResult
protected short numberOfArticulationParameters
protected short pad
protected java.util.List<ArticulationParameter> articulationParameters
public int getMarshalledSize()
getMarshalledSize
in class WarfareFamilyPdu
public void setMunitionID(EntityID pMunitionID)
public EntityID getMunitionID()
public void setEventID(EventID pEventID)
public EventID getEventID()
public void setVelocity(Vector3Float pVelocity)
public Vector3Float getVelocity()
public void setLocationInWorldCoordinates(Vector3Double pLocationInWorldCoordinates)
public Vector3Double getLocationInWorldCoordinates()
public void setBurstDescriptor(BurstDescriptor pBurstDescriptor)
public BurstDescriptor getBurstDescriptor()
public void setLocationInEntityCoordinates(Vector3Float pLocationInEntityCoordinates)
public Vector3Float getLocationInEntityCoordinates()
public void setDetonationResult(short pDetonationResult)
public short getDetonationResult()
public short getNumberOfArticulationParameters()
public void setNumberOfArticulationParameters(short pNumberOfArticulationParameters)
public void setPad(short pPad)
public short getPad()
public void setArticulationParameters(java.util.List<ArticulationParameter> pArticulationParameters)
public java.util.List<ArticulationParameter> getArticulationParameters()
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)
Pdu
this
and the supplied objectequalsImpl
in class WarfareFamilyPdu
obj
- the object to compare to