public class LEFirePdu extends LiveEntityFamilyPdu implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected EventIdentifier |
eventId |
protected EntityID |
firingLiveEntityId |
protected byte |
flags
Bits defined in IEE Std.
|
protected LiveEntityRelativeWorldCoordinates |
location |
protected MunitionDescriptor |
munitionDescriptor |
protected EntityID |
munitionLiveEntityId |
protected short |
range |
protected EntityID |
targetLiveEntityId |
protected LiveEntityLinearVelocity |
velocity |
padding, subprotocolNumber
exerciseID, length, pduType, protocolFamily, protocolVersion, timestamp
Constructor and Description |
---|
LEFirePdu()
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 |
EventIdentifier |
getEventId()
Getter for
eventId |
EntityID |
getFiringLiveEntityId()
Getter for
firingLiveEntityId |
byte |
getFlags()
Getter for
flags |
LiveEntityRelativeWorldCoordinates |
getLocation()
Getter for
location |
int |
getMarshalledSize()
Returns the size of this serialized object in bytes
|
MunitionDescriptor |
getMunitionDescriptor()
Getter for
munitionDescriptor |
EntityID |
getMunitionLiveEntityId()
Getter for
munitionLiveEntityId |
short |
getRange()
Getter for
range |
EntityID |
getTargetLiveEntityId()
Getter for
targetLiveEntityId |
LiveEntityLinearVelocity |
getVelocity()
Getter for
velocity |
void |
marshal(java.nio.ByteBuffer buff)
Packs an object into the ByteBuffer.
|
void |
marshal(java.io.DataOutputStream dos)
Serializes an object to a DataOutputStream.
|
LEFirePdu |
setEventId(EventIdentifier pEventId)
Setter for
eventId |
LEFirePdu |
setFiringLiveEntityId(EntityID pFiringLiveEntityId)
Setter for
firingLiveEntityId |
LEFirePdu |
setFlags(byte pFlags)
Setter for
flags |
LEFirePdu |
setLocation(LiveEntityRelativeWorldCoordinates pLocation)
Setter for
location |
LEFirePdu |
setMunitionDescriptor(MunitionDescriptor pMunitionDescriptor)
Setter for
munitionDescriptor |
LEFirePdu |
setMunitionLiveEntityId(EntityID pMunitionLiveEntityId)
Setter for
munitionLiveEntityId |
LEFirePdu |
setRange(short pRange)
Setter for
range |
LEFirePdu |
setTargetLiveEntityId(EntityID pTargetLiveEntityId)
Setter for
targetLiveEntityId |
LEFirePdu |
setVelocity(LiveEntityLinearVelocity pVelocity)
Setter for
velocity |
int |
unmarshal(java.nio.ByteBuffer buff)
Unpacks a Pdu from the underlying data.
|
int |
unmarshal(java.io.DataInputStream dis)
Unserializes an object from a DataInputStream.
|
getPadding, getSubprotocolNumber, setPadding, setSubprotocolNumber
getExerciseID, getLength, getPduType, getProtocolFamily, getProtocolVersion, getTimestamp, marshal, setExerciseID, setLength, setPduType, setProtocolFamily, setProtocolVersion, setTimestamp
protected EntityID firingLiveEntityId
protected byte flags
protected EntityID targetLiveEntityId
protected EntityID munitionLiveEntityId
protected EventIdentifier eventId
protected LiveEntityRelativeWorldCoordinates location
protected MunitionDescriptor munitionDescriptor
protected LiveEntityLinearVelocity velocity
protected short range
public int getMarshalledSize()
getMarshalledSize
in class LiveEntityFamilyPdu
public LEFirePdu setFiringLiveEntityId(EntityID pFiringLiveEntityId)
firingLiveEntityId
public EntityID getFiringLiveEntityId()
firingLiveEntityId
public byte getFlags()
flags
public LEFirePdu setTargetLiveEntityId(EntityID pTargetLiveEntityId)
targetLiveEntityId
public EntityID getTargetLiveEntityId()
targetLiveEntityId
public LEFirePdu setMunitionLiveEntityId(EntityID pMunitionLiveEntityId)
munitionLiveEntityId
public EntityID getMunitionLiveEntityId()
munitionLiveEntityId
public LEFirePdu setEventId(EventIdentifier pEventId)
eventId
public EventIdentifier getEventId()
eventId
public LEFirePdu setLocation(LiveEntityRelativeWorldCoordinates pLocation)
location
public LiveEntityRelativeWorldCoordinates getLocation()
location
public LEFirePdu setMunitionDescriptor(MunitionDescriptor pMunitionDescriptor)
munitionDescriptor
public MunitionDescriptor getMunitionDescriptor()
munitionDescriptor
public LEFirePdu setVelocity(LiveEntityLinearVelocity pVelocity)
velocity
public LiveEntityLinearVelocity getVelocity()
velocity
public short getRange()
range
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