|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.nps.moves.dis7mobile.PduSuperclass
edu.nps.moves.dis7mobile.Pdu
edu.nps.moves.dis7mobile.WarfareFamilyPdu
edu.nps.moves.dis7mobile.DetonationPdu
public class DetonationPdu
Detonation or impact of munitions, as well as, non-munition explosions, the burst or initial bloom of chaff, and the ignition of a flare shall be indicated. Section 7.3.3 COMPLETE Copyright (c) 2008-2010, MOVES Institute, Naval Postgraduate School. All rights reserved. This work is licensed under the BSD open source license, available at https://www.movesinstitute.org/licenses/bsd.html
Field Summary | |
---|---|
protected MunitionDescriptor |
descriptor
Describes the detonation represented, Section 7.3.3 |
protected short |
detonationResult
result of the detonation, Section 7.3.3 |
protected EventIdentifier |
eventID
ID of event, Section 7.3.3 |
protected EntityID |
explodingEntityID
ID of the expendable entity, Section 7.3.3 |
protected Vector3Double |
locationInWorldCoordinates
location of the munition detonation, the expendable detonation, Section 7.3.3 |
protected Vector3Float |
locationOfEntityCoordinates
Velocity of the ammunition, Section 7.3.3 |
protected short |
numberOfVariableParameters
How many articulation parameters we have, Section 7.3.3 |
protected int |
pad
padding |
protected java.util.List<VariableParameter> |
variableParameters
specify the parameter values for each Variable Parameter record, Section 7.3.3 |
protected Vector3Float |
velocity
velocity of the munition immediately before detonation/impact, Section 7.3.3 |
Fields inherited from class edu.nps.moves.dis7mobile.WarfareFamilyPdu |
---|
firingEntityID, targetEntityID |
Fields inherited from class edu.nps.moves.dis7mobile.Pdu |
---|
padding, pduStatus |
Fields inherited from class edu.nps.moves.dis7mobile.PduSuperclass |
---|
exerciseID, length, pduType, protocolFamily, protocolVersion, timestamp |
Constructor Summary | |
---|---|
DetonationPdu()
Constructor |
Method Summary | |
---|---|
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()
|
short |
getDetonationResult()
|
EventIdentifier |
getEventID()
|
EntityID |
getExplodingEntityID()
|
Vector3Double |
getLocationInWorldCoordinates()
|
Vector3Float |
getLocationOfEntityCoordinates()
|
int |
getMarshalledSize()
|
short |
getNumberOfVariableParameters()
|
int |
getPad()
|
java.util.List<VariableParameter> |
getVariableParameters()
|
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 |
setDetonationResult(short pDetonationResult)
|
void |
setEventID(EventIdentifier pEventID)
|
void |
setExplodingEntityID(EntityID pExplodingEntityID)
|
void |
setLocationInWorldCoordinates(Vector3Double pLocationInWorldCoordinates)
|
void |
setLocationOfEntityCoordinates(Vector3Float pLocationOfEntityCoordinates)
|
void |
setNumberOfVariableParameters(short pNumberOfVariableParameters)
Note that setting this value will not change the marshalled value. |
void |
setPad(int pPad)
|
void |
setVariableParameters(java.util.List<VariableParameter> pVariableParameters)
|
void |
setVelocity(Vector3Float pVelocity)
|
void |
unmarshal(java.nio.ByteBuffer buff)
Unpacks a Pdu from the underlying data. |
void |
unmarshal(java.io.DataInputStream dis)
|
Methods inherited from class edu.nps.moves.dis7mobile.WarfareFamilyPdu |
---|
getFiringEntityID, getTargetEntityID, setFiringEntityID, setTargetEntityID |
Methods inherited from class edu.nps.moves.dis7mobile.Pdu |
---|
getPadding, getPduStatus, marshal, setPadding, setPduStatus |
Methods inherited from class edu.nps.moves.dis7mobile.PduSuperclass |
---|
getExerciseID, getLength, getPduType, getProtocolFamily, getProtocolVersion, getTimestamp, setExerciseID, setLength, setPduType, setProtocolFamily, setProtocolVersion, setTimestamp |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected EntityID explodingEntityID
protected EventIdentifier eventID
protected Vector3Float velocity
protected Vector3Double locationInWorldCoordinates
protected MunitionDescriptor descriptor
protected Vector3Float locationOfEntityCoordinates
protected short detonationResult
protected short numberOfVariableParameters
protected int pad
protected java.util.List<VariableParameter> variableParameters
Constructor Detail |
---|
public DetonationPdu()
Method Detail |
---|
public int getMarshalledSize()
getMarshalledSize
in class WarfareFamilyPdu
public void setExplodingEntityID(EntityID pExplodingEntityID)
public EntityID getExplodingEntityID()
public void setEventID(EventIdentifier pEventID)
public EventIdentifier getEventID()
public void setVelocity(Vector3Float pVelocity)
public Vector3Float getVelocity()
public void setLocationInWorldCoordinates(Vector3Double pLocationInWorldCoordinates)
public Vector3Double getLocationInWorldCoordinates()
public void setDescriptor(MunitionDescriptor pDescriptor)
public MunitionDescriptor getDescriptor()
public void setLocationOfEntityCoordinates(Vector3Float pLocationOfEntityCoordinates)
public Vector3Float getLocationOfEntityCoordinates()
public void setDetonationResult(short pDetonationResult)
public short getDetonationResult()
public short getNumberOfVariableParameters()
public void setNumberOfVariableParameters(short pNumberOfVariableParameters)
public void setPad(int pPad)
public int getPad()
public void setVariableParameters(java.util.List<VariableParameter> pVariableParameters)
public java.util.List<VariableParameter> getVariableParameters()
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 writing
java.nio.BufferOverflowException
- if buff is too small
java.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 reading
java.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 object
equalsImpl
in class WarfareFamilyPdu
obj
- the object to compare to
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |