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 int |
fireMissionIndex
This field shall identify the fire mission (see 5.4.3.3).
|
protected EntityID |
firingEntityID
ID of the entity that shot
|
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 EntityID |
targetEntityID
ID of the entity that is being shot at
|
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.
|
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()
Getter for
descriptor |
EventIdentifier |
getEventID()
Getter for
eventID |
int |
getFireMissionIndex()
Getter for
fireMissionIndex |
EntityID |
getFiringEntityID()
Getter for
firingEntityID |
Vector3Double |
getLocationInWorldCoordinates()
Getter for
locationInWorldCoordinates |
int |
getMarshalledSize()
Returns the size of this serialized object in bytes
|
EntityID |
getMunitionExpendibleID()
Getter for
munitionExpendibleID |
float |
getRange()
Getter for
range |
EntityID |
getTargetEntityID()
Getter for
targetEntityID |
Vector3Float |
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.
|
FirePdu |
setDescriptor(MunitionDescriptor pDescriptor)
Setter for
descriptor |
FirePdu |
setEventID(EventIdentifier pEventID)
Setter for
eventID |
FirePdu |
setFireMissionIndex(int pFireMissionIndex)
Setter for
fireMissionIndex |
FirePdu |
setFiringEntityID(EntityID pFiringEntityID)
Setter for
firingEntityID |
FirePdu |
setLocationInWorldCoordinates(Vector3Double pLocationInWorldCoordinates)
Setter for
locationInWorldCoordinates |
FirePdu |
setMunitionExpendibleID(EntityID pMunitionExpendibleID)
Setter for
munitionExpendibleID |
FirePdu |
setRange(float pRange)
Setter for
range |
FirePdu |
setTargetEntityID(EntityID pTargetEntityID)
Setter for
targetEntityID |
FirePdu |
setVelocity(Vector3Float 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, getPduStatus, setPadding, setPduStatus
getExerciseID, getLength, getPduType, getProtocolFamily, getProtocolVersion, getTimestamp, marshal, setExerciseID, setLength, setPduType, setProtocolFamily, setProtocolVersion, setTimestamp
protected EntityID firingEntityID
protected EntityID targetEntityID
protected EntityID munitionExpendibleID
protected EventIdentifier eventID
protected int fireMissionIndex
protected Vector3Double locationInWorldCoordinates
protected MunitionDescriptor descriptor
protected Vector3Float velocity
protected float range
public int getMarshalledSize()
getMarshalledSize
in class WarfareFamilyPdu
public FirePdu setFiringEntityID(EntityID pFiringEntityID)
firingEntityID
public EntityID getFiringEntityID()
firingEntityID
public FirePdu setTargetEntityID(EntityID pTargetEntityID)
targetEntityID
public EntityID getTargetEntityID()
targetEntityID
public FirePdu setMunitionExpendibleID(EntityID pMunitionExpendibleID)
munitionExpendibleID
public EntityID getMunitionExpendibleID()
munitionExpendibleID
public FirePdu setEventID(EventIdentifier pEventID)
eventID
public EventIdentifier getEventID()
eventID
public FirePdu setFireMissionIndex(int pFireMissionIndex)
fireMissionIndex
public int getFireMissionIndex()
fireMissionIndex
public FirePdu setLocationInWorldCoordinates(Vector3Double pLocationInWorldCoordinates)
locationInWorldCoordinates
public Vector3Double getLocationInWorldCoordinates()
locationInWorldCoordinates
public FirePdu setDescriptor(MunitionDescriptor pDescriptor)
descriptor
public MunitionDescriptor getDescriptor()
descriptor
public FirePdu setVelocity(Vector3Float pVelocity)
velocity
public Vector3Float getVelocity()
velocity
public float getRange()
range
public void marshal(java.io.DataOutputStream dos)
marshal
in class WarfareFamilyPdu
dos
- The DataOutputStreamDataOutputStream
public int unmarshal(java.io.DataInputStream dis)
unmarshal
in class WarfareFamilyPdu
dis
- The DataInputStreamDataInputStream
public void marshal(java.nio.ByteBuffer buff) throws java.lang.Exception
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 onlyjava.lang.Exception
- ByteBuffer-generated exceptionByteBuffer
public int unmarshal(java.nio.ByteBuffer buff) throws java.lang.Exception
unmarshal
in class WarfareFamilyPdu
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 WarfareFamilyPdu
public boolean equalsImpl(java.lang.Object obj)
Pdu
this
and the supplied objectequalsImpl
in class WarfareFamilyPdu
obj
- the object to compare to