public class FirePdu extends WarfareFamilyPdu implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected BurstDescriptor |
burstDescriptor
Describes munitions used in the firing event
|
protected EventID |
eventID
ID of event
|
protected int |
fireMissionIndex |
protected Vector3Double |
locationInWorldCoordinates
location of the firing event
|
protected EntityID |
munitionID
ID of the munition that is being shot
|
protected float |
rangeToTarget
range to the target.
|
protected Vector3Float |
velocity
Velocity of the ammunition
|
firingEntityID, targetEntityID
exerciseID, padding, pduLength, pduType, protocolFamily, protocolVersion, timestamp
Constructor and Description |
---|
FirePdu()
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 |
BurstDescriptor |
getBurstDescriptor() |
EventID |
getEventID() |
int |
getFireMissionIndex() |
Vector3Double |
getLocationInWorldCoordinates() |
int |
getMarshalledSize() |
EntityID |
getMunitionID() |
float |
getRangeToTarget() |
Vector3Float |
getVelocity() |
void |
marshal(java.nio.ByteBuffer buff)
Packs a Pdu into the ByteBuffer.
|
void |
marshal(java.io.DataOutputStream dos) |
void |
setBurstDescriptor(BurstDescriptor pBurstDescriptor) |
void |
setEventID(EventID pEventID) |
void |
setFireMissionIndex(int pFireMissionIndex) |
void |
setLocationInWorldCoordinates(Vector3Double pLocationInWorldCoordinates) |
void |
setMunitionID(EntityID pMunitionID) |
void |
setRangeToTarget(float pRangeToTarget) |
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 int fireMissionIndex
protected Vector3Double locationInWorldCoordinates
protected BurstDescriptor burstDescriptor
protected Vector3Float velocity
protected float rangeToTarget
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 setFireMissionIndex(int pFireMissionIndex)
public int getFireMissionIndex()
public void setLocationInWorldCoordinates(Vector3Double pLocationInWorldCoordinates)
public Vector3Double getLocationInWorldCoordinates()
public void setBurstDescriptor(BurstDescriptor pBurstDescriptor)
public BurstDescriptor getBurstDescriptor()
public void setVelocity(Vector3Float pVelocity)
public Vector3Float getVelocity()
public void setRangeToTarget(float pRangeToTarget)
public float getRangeToTarget()
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