|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmil.navy.nps.dis.PduElement
mil.navy.nps.dis.ProtocolDataUnit
mil.navy.nps.dis.DetonationPdu
Detonation or impact.
ProtocolDataUnit
,
PduElement
,
SerializationInterface
,
FirePdu
Field Summary | |
protected java.util.Vector |
articulationParameters
List of articulation parameters. |
protected BurstDescriptor |
burstDescription
Burst Descriptor - This field shall describe the type of munition impacting or detonating, the warhead, the fuse, the quantity, and the rate |
protected UnsignedByte |
detonationResult
Detonation Result - This field shall specify the result of the detonation. |
protected EventID |
eventID
Event Identification - This field shall contain the same data as in the Event Identification field of the Fire PDU that communicated the launch of the munition. |
protected EntityID |
firingEntityID
Firing Entity Identification - This field shall identify the firing entity Value: If the detonation is not preceded by a Fire PDU then the Firing Entity Identification shall be NO SPECIFIC ENTITY. |
protected EntityCoordinate |
locationInEntityCoordinates
Location in Entity's coordinates - This field shall specify the location of the detonation or impact in the target entity's coordinate system. |
protected WorldCoordinate |
locationInWorldCoordinate
Location in World Coordinate - This field shall specify the location of the detonation in world coordinates (x, y, z coordinates ). |
protected EntityID |
munitionID
Munition Identification - This field shall specify the entity ID of the fired munition if tracking data is required. |
static int |
sizeOf
Constant value--size of an Detonation PDU with header, without the articulation parameters. |
protected EntityID |
targetEntityID
Target Entity Identification - This field shall identify the target entity Value: If the target ID is unknown, this field shall contain the value TARGET ID UNKNOWN. |
protected LinearVelocity |
velocity
Velocity - This field shall specify the velocity of the munition immediately before detonation/impact. |
Fields inherited from class mil.navy.nps.dis.ProtocolDataUnit |
DEBUG, exerciseID, pduType, protocolFamily, protocolVersion, timeReceived, timestamp |
Constructor Summary | |
DetonationPdu()
Default constructor--fills with zeros for all values. |
Method Summary | |
void |
addArticulationParameter(ArticulationParameter pParameter)
Inserts a Articulation Parameter at the end of the list and increment the parameter count accordingly. |
java.lang.Object |
clone()
clone - make a copy of the object. |
void |
deSerialize(java.io.DataInputStream inputStream)
deserialize - reads the detonation PDU to the wire in DIS format |
ArticulationParameter |
getArticulationParameterAt(int pIdx)
Returns the Articulation Parameter at the index given in parameter. |
BurstDescriptor |
getBurstDescription()
|
UnsignedByte |
getDetonationResult()
|
EventID |
getEventID()
|
EntityID |
getFiringEntityID()
|
EntityCoordinate |
getLocationInEntityCoordinates()
|
WorldCoordinate |
getLocationInWorldCoordinate()
|
EntityID |
getMunitionID()
|
EntityID |
getTargetEntityID()
|
LinearVelocity |
getVelocity()
|
int |
length()
length returns basic size + size of list of parameters. |
java.lang.String |
pduName()
pduName returns the type of PDU |
void |
printValues(int indentLevel,
java.io.PrintStream printStream)
printValues - print the values of the object out, with correct level of indentation on the page.. |
void |
serialize(java.io.DataOutputStream outputStream)
serialize - writes the detonation PDU to the wire in DIS format Order is important here, since it needs to conform to the DIS standard. |
void |
setBurstDescription(BurstDescriptor pBurstDescription)
|
void |
setDetonationResult(int pDetonationResult)
|
void |
setDetonationResult(UnsignedByte pDetonationResult)
|
void |
setEventID(EventID pEventID)
|
void |
setFiringEntityID(EntityID pFiringEntityID)
|
void |
setLocationInEntityCoordinates(EntityCoordinate pLocationInEntityCoordinates)
|
void |
setLocationInEntityCoordinates(float x,
float y,
float z)
|
void |
setLocationInWorldCoordinate(double x,
double y,
double z)
|
void |
setLocationInWorldCoordinate(WorldCoordinate pLocation)
|
void |
setMunitionID(EntityID pMunitionID)
|
void |
setTargetEntityID(EntityID pTargetEntityID)
|
void |
setVelocity(float x,
float y,
float z)
|
void |
setVelocity(LinearVelocity pVelocity)
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected EntityID firingEntityID
protected EntityID targetEntityID
protected EntityID munitionID
protected EventID eventID
protected LinearVelocity velocity
protected WorldCoordinate locationInWorldCoordinate
protected BurstDescriptor burstDescription
protected EntityCoordinate locationInEntityCoordinates
protected UnsignedByte detonationResult
protected java.util.Vector articulationParameters
public static final int sizeOf
sizeOf = 104 bytes
Constructor Detail |
public DetonationPdu()
Method Detail |
public java.lang.Object clone()
clone
in class ProtocolDataUnit
public void serialize(java.io.DataOutputStream outputStream)
serialize
in interface SerializationInterface
serialize
in class ProtocolDataUnit
public void deSerialize(java.io.DataInputStream inputStream)
deSerialize
in interface SerializationInterface
deSerialize
in class ProtocolDataUnit
public int length()
length
in class ProtocolDataUnit
public java.lang.String pduName()
pduName
in class ProtocolDataUnit
public void printValues(int indentLevel, java.io.PrintStream printStream)
printValues
in class ProtocolDataUnit
public ArticulationParameter getArticulationParameterAt(int pIdx)
public void addArticulationParameter(ArticulationParameter pParameter)
pParameter
- the Articulation Parameter to be inserted in the listpublic 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 LinearVelocity getVelocity()
public void setVelocity(LinearVelocity pVelocity)
public void setVelocity(float x, float y, float z)
public WorldCoordinate getLocationInWorldCoordinate()
public void setLocationInWorldCoordinate(WorldCoordinate pLocation)
public void setLocationInWorldCoordinate(double x, double y, double z)
public BurstDescriptor getBurstDescription()
public void setBurstDescription(BurstDescriptor pBurstDescription)
public EntityCoordinate getLocationInEntityCoordinates()
public void setLocationInEntityCoordinates(EntityCoordinate pLocationInEntityCoordinates)
public void setLocationInEntityCoordinates(float x, float y, float z)
public UnsignedByte getDetonationResult()
public void setDetonationResult(UnsignedByte pDetonationResult)
public void setDetonationResult(int pDetonationResult)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |