public class LEDetonationPdu extends LiveEntityFamilyPdu implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected byte |
detonationFlag1 |
protected byte |
detonationFlag2 |
protected byte |
detonationResult |
protected LiveEntityLinearVelocity |
entityLocation |
protected EventIdentifier |
eventId |
protected EntityID |
firingLiveEntityId |
protected MunitionDescriptor |
munitionDescriptor |
protected EntityID |
munitionLiveEntityId |
protected LiveEntityOrientation16 |
munitionOrientation
spec error? 16-bit fields vs.
|
protected EntityID |
targetLiveEntityId |
protected LiveEntityLinearVelocity |
velocity |
protected LiveEntityRelativeWorldCoordinates |
worldLocation |
padding, subprotocolNumber
exerciseID, length, pduType, protocolFamily, protocolVersion, timestamp
Constructor and Description |
---|
LEDetonationPdu()
Constructor
|
getPadding, getSubprotocolNumber, setPadding, setSubprotocolNumber
getExerciseID, getLength, getPduType, getProtocolFamily, getProtocolVersion, getTimestamp, marshal, setExerciseID, setLength, setPduType, setProtocolFamily, setProtocolVersion, setTimestamp
protected EntityID firingLiveEntityId
protected byte detonationFlag1
protected byte detonationFlag2
protected EntityID targetLiveEntityId
protected EntityID munitionLiveEntityId
protected EventIdentifier eventId
protected LiveEntityRelativeWorldCoordinates worldLocation
protected LiveEntityLinearVelocity velocity
protected LiveEntityOrientation16 munitionOrientation
protected MunitionDescriptor munitionDescriptor
protected LiveEntityLinearVelocity entityLocation
protected byte detonationResult
public int getMarshalledSize()
getMarshalledSize
in class LiveEntityFamilyPdu
public LEDetonationPdu setFiringLiveEntityId(EntityID pFiringLiveEntityId)
firingLiveEntityId
public EntityID getFiringLiveEntityId()
firingLiveEntityId
public LEDetonationPdu setDetonationFlag1(byte pDetonationFlag1)
detonationFlag1
public byte getDetonationFlag1()
detonationFlag1
public LEDetonationPdu setDetonationFlag2(byte pDetonationFlag2)
detonationFlag2
public byte getDetonationFlag2()
detonationFlag2
public LEDetonationPdu setTargetLiveEntityId(EntityID pTargetLiveEntityId)
targetLiveEntityId
public EntityID getTargetLiveEntityId()
targetLiveEntityId
public LEDetonationPdu setMunitionLiveEntityId(EntityID pMunitionLiveEntityId)
munitionLiveEntityId
public EntityID getMunitionLiveEntityId()
munitionLiveEntityId
public LEDetonationPdu setEventId(EventIdentifier pEventId)
eventId
public EventIdentifier getEventId()
eventId
public LEDetonationPdu setWorldLocation(LiveEntityRelativeWorldCoordinates pWorldLocation)
worldLocation
public LiveEntityRelativeWorldCoordinates getWorldLocation()
worldLocation
public LEDetonationPdu setVelocity(LiveEntityLinearVelocity pVelocity)
velocity
public LiveEntityLinearVelocity getVelocity()
velocity
public LEDetonationPdu setMunitionOrientation(LiveEntityOrientation16 pMunitionOrientation)
munitionOrientation
public LiveEntityOrientation16 getMunitionOrientation()
munitionOrientation
public LEDetonationPdu setMunitionDescriptor(MunitionDescriptor pMunitionDescriptor)
munitionDescriptor
public MunitionDescriptor getMunitionDescriptor()
munitionDescriptor
public LEDetonationPdu setEntityLocation(LiveEntityLinearVelocity pEntityLocation)
entityLocation
public LiveEntityLinearVelocity getEntityLocation()
entityLocation
public LEDetonationPdu setDetonationResult(byte pDetonationResult)
detonationResult
public byte getDetonationResult()
detonationResult
public void marshal(java.io.DataOutputStream dos)
marshal
in class LiveEntityFamilyPdu
dos
- The DataOutputStreamDataOutputStream
public int unmarshal(java.io.DataInputStream dis)
unmarshal
in class LiveEntityFamilyPdu
dis
- The DataInputStreamDataInputStream
public void marshal(java.nio.ByteBuffer buff) throws java.lang.Exception
marshal
in class LiveEntityFamilyPdu
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 LiveEntityFamilyPdu
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 LiveEntityFamilyPdu
public boolean equalsImpl(java.lang.Object obj)
Pdu
this
and the supplied objectequalsImpl
in class LiveEntityFamilyPdu
obj
- the object to compare to