Overview | Package | Class | Tree | Deprecated | Index | Help | |||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--mil.navy.nps.dis.PduElement | +--mil.navy.nps.dis.ProtocolDataUnit | +--mil.navy.nps.dis.FirePdu
As with other PDUs, it knows how to serialize and deserialize itself from the wire. It also knows how to clone itself, and knows how to calculate its size when sent to the wire.
Field Summary | |
BurstDescriptor | burstDescriptor
Burst Descriptor - This field shall describe the type of munition fired, the warhead, the fuse, the quantity, and the rate. |
EventID | eventID
Event Identification - This field shall contain an identification generated by the firing entity to associate related firing and detonation events. |
mil.navy.nps.util.UnsignedInt | fireMissionIndex
Fire Mission Index - This field shall identify the fire mission. |
EntityID | firingEntityID
Firing Entity Identification - This field shall identify the firing entity. |
WorldCoordinate | locationInWorldCoordinate
Location in World Coordinate - This field shall specify the location, in world coordinates, from which the munition was launched. |
EntityID | munitionID
Munition Identification - This field shall specify the entity ID of the fired munition if tracking data is required. |
float | range
This field shall specify the range that an entity's fire control system has assumed in computing the fire control solution. |
static int | sizeOf
Constant value--size of Fire PDU with header. |
EntityID | targetEntityID
Target Entity Identification - This field shall identify the intended target. |
LinearVelocity | velocity
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. exhaust plume or muzzle blast) to first become apparent. |
Fields inherited from class mil.navy.nps.dis.ProtocolDataUnit | |
DEBUG, exerciseID, pduType, protocolFamily, protocolVersion, sizeOf, timestamp |
Constructor Summary | |
FirePdu()
Default constructor--fills with zeros for all values. |
Method Summary | |
java.lang.Object | clone()
|
void | deSerialize(java.io.DataInputStream inputStream)
|
BurstDescriptor | getBurstDescriptor()
|
EventID | getEventID()
|
mil.navy.nps.util.UnsignedInt | getFireMissionIndex()
|
EntityID | getFiringEntityID()
|
WorldCoordinate | getLocationInWorldCoordinate()
|
EntityID | getMunitionID()
|
float | getRange()
|
EntityID | getTargetEntityID()
|
LinearVelocity | getVelocity()
|
int | length()
|
java.lang.String | PDUName()
|
void | printValues(int indentLevel,
java.io.PrintStream printStream)
|
void | serialize(java.io.DataOutputStream outputStream)
|
void | setBurstDescriptor(BurstDescriptor pBurstDescriptor)
|
void | setEventID(EventID pEventID)
|
void | setFireMissionIndex(mil.navy.nps.util.UnsignedInt pFireMissionIndex)
|
void | setFireMissionIndex(int pFireMissionIndex)
|
void | setFiringEntityID(EntityID pFiringEntityID)
|
void | setLocationInWorldCoordinate(WorldCoordinate pWorldCoordinate)
|
void | setLocationInWorldCoordinate(double pX,
double pY,
double pZ)
|
void | setMunitionID(EntityID pMunitionID)
|
void | setRange(float pRange)
|
void | setTargetEntityID(EntityID pTargetEntityID)
|
void | setVelocity(LinearVelocity pVelocity)
|
void | setVelocity(float pX,
float pY,
float pZ)
|
Methods inherited from class mil.navy.nps.dis.ProtocolDataUnit | |
Methods inherited from class mil.navy.nps.dis.PduElement | |
clone, deSerialize, length, printValues, serialize |
Methods inherited from class java.lang.Object | |
Field Detail |
protected EntityID firingEntityID
protected EntityID targetEntityID
protected EntityID munitionID
protected EventID eventID
protected mil.navy.nps.util.UnsignedInt fireMissionIndex
protected WorldCoordinate locationInWorldCoordinate
protected BurstDescriptor burstDescriptor
protected LinearVelocity velocity
protected float range
public static final int sizeOf
sizeOf = 96 bytes
Constructor Detail |
public FirePdu()
Method Detail |
public java.lang.Object clone()
public void serialize(java.io.DataOutputStream outputStream)
public void deSerialize(java.io.DataInputStream inputStream)
public int length()
public java.lang.String PDUName()
public void printValues(int indentLevel, java.io.PrintStream printStream)
public EntityID getFiringEntityID()
public void setFiringEntityID(EntityID pFiringEntityID)
public EntityID getTargetEntityID()
public void setTargetEntityID(EntityID pTargetEntityID)
public EntityID getMunitionID()
public void setMunitionID(EntityID pMunitionID)
public EventID getEventID()
public void setEventID(EventID pEventID)
public mil.navy.nps.util.UnsignedInt getFireMissionIndex()
public void setFireMissionIndex(mil.navy.nps.util.UnsignedInt pFireMissionIndex)
public void setFireMissionIndex(int pFireMissionIndex)
public WorldCoordinate getLocationInWorldCoordinate()
public void setLocationInWorldCoordinate(WorldCoordinate pWorldCoordinate)
public void setLocationInWorldCoordinate(double pX, double pY, double pZ)
public BurstDescriptor getBurstDescriptor()
public void setBurstDescriptor(BurstDescriptor pBurstDescriptor)
public LinearVelocity getVelocity()
public void setVelocity(LinearVelocity pVelocity)
public void setVelocity(float pX, float pY, float pZ)
public float getRange()
public void setRange(float pRange)
Overview | Package | Class | Tree | Deprecated | Index | Help | |||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |