public class FirePdu extends WarfareFamilyPdu implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected MunitionDescriptor |
descriptor
This field shall describe the firing or launch of a munition or expendable represented by one of the following types of Descriptor records: Munition Descriptor (6.2.20.2) or Expendable Descriptor (6.2.20.4).
|
protected EventIdentifier |
eventID
This field shall contain an identification generated by the firing entity to associate related firing and detonation events.
|
protected long |
fireMissionIndex
This field shall identify the fire mission (see 5.4.3.3).
|
protected Vector3Double |
locationInWorldCoordinates
This field shall specify the location, in world coordinates, from which the munition was launched, and shall be represented by a World Coordinates record (see 6.2.97).
|
protected EntityID |
munitionExpendibleID
This field shall specify the entity identification of the fired munition or expendable.
|
protected float |
range
This field shall specify the range that an entity’s fire control system has assumed in computing the fire control solution.
|
protected Vector3Float |
velocity
This field shall specify the velocity of the fired munition at the point when the issuing simulation application intends the externally visible effects of the launch (e.g.
|
firingEntityID, targetEntityID
exerciseID, length, 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 |
MunitionDescriptor |
getDescriptor() |
EventIdentifier |
getEventID() |
long |
getFireMissionIndex() |
Vector3Double |
getLocationInWorldCoordinates() |
int |
getMarshalledSize() |
EntityID |
getMunitionExpendibleID() |
float |
getRange() |
Vector3Float |
getVelocity() |
void |
marshal(java.nio.ByteBuffer buff)
Packs a Pdu into the ByteBuffer.
|
void |
marshal(java.io.DataOutputStream dos) |
void |
setDescriptor(MunitionDescriptor pDescriptor) |
void |
setEventID(EventIdentifier pEventID) |
void |
setFireMissionIndex(long pFireMissionIndex) |
void |
setLocationInWorldCoordinates(Vector3Double pLocationInWorldCoordinates) |
void |
setMunitionExpendibleID(EntityID pMunitionExpendibleID) |
void |
setRange(float pRange) |
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
getPadding, getPduStatus, marshal, setPadding, setPduStatus
getExerciseID, getLength, getPduType, getProtocolFamily, getProtocolVersion, getTimestamp, setExerciseID, setLength, setPduType, setProtocolFamily, setProtocolVersion, setTimestamp
protected EntityID munitionExpendibleID
protected EventIdentifier eventID
protected long fireMissionIndex
protected Vector3Double locationInWorldCoordinates
protected MunitionDescriptor descriptor
protected Vector3Float velocity
protected float range
public int getMarshalledSize()
getMarshalledSize
in class WarfareFamilyPdu
public void setMunitionExpendibleID(EntityID pMunitionExpendibleID)
public EntityID getMunitionExpendibleID()
public void setEventID(EventIdentifier pEventID)
public EventIdentifier getEventID()
public void setFireMissionIndex(long pFireMissionIndex)
public long getFireMissionIndex()
public void setLocationInWorldCoordinates(Vector3Double pLocationInWorldCoordinates)
public Vector3Double getLocationInWorldCoordinates()
public void setDescriptor(MunitionDescriptor pDescriptor)
public MunitionDescriptor getDescriptor()
public void setVelocity(Vector3Float pVelocity)
public Vector3Float getVelocity()
public void setRange(float pRange)
public float getRange()
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)
PduSuperclass
this
and the supplied objectequalsImpl
in class WarfareFamilyPdu
obj
- the object to compare to