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, targetEntityIDexerciseID, 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, setTargetEntityIDgetExerciseID, 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, setTimestampprotected 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 WarfareFamilyPdupublic 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 WarfareFamilyPdupublic void unmarshal(java.io.DataInputStream dis)
unmarshal in class WarfareFamilyPdupublic void marshal(java.nio.ByteBuffer buff)
marshal in class WarfareFamilyPdubuff - The ByteBuffer at the position to begin writingjava.nio.BufferOverflowException - if buff is too smalljava.nio.ReadOnlyBufferException - if buff is read onlyByteBufferpublic void unmarshal(java.nio.ByteBuffer buff)
unmarshal in class WarfareFamilyPdubuff - The ByteBuffer at the position to begin readingjava.nio.BufferUnderflowException - if buff is too smallByteBufferpublic boolean equals(java.lang.Object obj)
equals in class WarfareFamilyPdupublic boolean equalsImpl(java.lang.Object obj)
Pduthis and the supplied objectequalsImpl in class WarfareFamilyPduobj - the object to compare to