|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.nps.moves.dismobile.Pdu
edu.nps.moves.dismobile.WarfareFamilyPdu
edu.nps.moves.dismobile.DetonationPdu
public class DetonationPdu
Section 5.3.4.2. Information about stuff exploding. 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 java.util.List<ArticulationParameter> |
articulationParameters
|
protected BurstDescriptor |
burstDescriptor
Describes munition used |
protected short |
detonationResult
result of the explosion |
protected EventID |
eventID
ID firing event |
protected Vector3Float |
locationInEntityCoordinates
location of the detonation or impact in the target entity's coordinate system. |
protected Vector3Double |
locationInWorldCoordinates
where the detonation is, in world coordinates |
protected EntityID |
munitionID
ID of muntion that was fired |
protected short |
numberOfArticulationParameters
How many articulation parameters we have |
protected short |
pad
padding |
protected Vector3Float |
velocity
ID firing event |
Fields inherited from class edu.nps.moves.dismobile.WarfareFamilyPdu |
---|
firingEntityID, targetEntityID |
Fields inherited from class edu.nps.moves.dismobile.Pdu |
---|
exerciseID, padding, pduLength, 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 |
java.util.List<ArticulationParameter> |
getArticulationParameters()
|
BurstDescriptor |
getBurstDescriptor()
|
short |
getDetonationResult()
|
EventID |
getEventID()
|
Vector3Float |
getLocationInEntityCoordinates()
|
Vector3Double |
getLocationInWorldCoordinates()
|
int |
getMarshalledSize()
|
EntityID |
getMunitionID()
|
short |
getNumberOfArticulationParameters()
|
short |
getPad()
|
Vector3Float |
getVelocity()
|
void |
marshal(java.nio.ByteBuffer buff)
Packs a Pdu into the ByteBuffer. |
void |
marshal(java.io.DataOutputStream dos)
|
void |
setArticulationParameters(java.util.List<ArticulationParameter> pArticulationParameters)
|
void |
setBurstDescriptor(BurstDescriptor pBurstDescriptor)
|
void |
setDetonationResult(short pDetonationResult)
|
void |
setEventID(EventID pEventID)
|
void |
setLocationInEntityCoordinates(Vector3Float pLocationInEntityCoordinates)
|
void |
setLocationInWorldCoordinates(Vector3Double pLocationInWorldCoordinates)
|
void |
setMunitionID(EntityID pMunitionID)
|
void |
setNumberOfArticulationParameters(short pNumberOfArticulationParameters)
Note that setting this value will not change the marshalled value. |
void |
setPad(short pPad)
|
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.dismobile.WarfareFamilyPdu |
---|
getFiringEntityID, getTargetEntityID, setFiringEntityID, setTargetEntityID |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected EntityID munitionID
protected EventID eventID
protected Vector3Float velocity
protected Vector3Double locationInWorldCoordinates
protected BurstDescriptor burstDescriptor
protected Vector3Float locationInEntityCoordinates
protected short detonationResult
protected short numberOfArticulationParameters
protected short pad
protected java.util.List<ArticulationParameter> articulationParameters
Constructor Detail |
---|
public DetonationPdu()
Method Detail |
---|
public int getMarshalledSize()
getMarshalledSize
in class WarfareFamilyPdu
public void setMunitionID(EntityID pMunitionID)
public EntityID getMunitionID()
public void setEventID(EventID pEventID)
public EventID getEventID()
public void setVelocity(Vector3Float pVelocity)
public Vector3Float getVelocity()
public void setLocationInWorldCoordinates(Vector3Double pLocationInWorldCoordinates)
public Vector3Double getLocationInWorldCoordinates()
public void setBurstDescriptor(BurstDescriptor pBurstDescriptor)
public BurstDescriptor getBurstDescriptor()
public void setLocationInEntityCoordinates(Vector3Float pLocationInEntityCoordinates)
public Vector3Float getLocationInEntityCoordinates()
public void setDetonationResult(short pDetonationResult)
public short getDetonationResult()
public short getNumberOfArticulationParameters()
public void setNumberOfArticulationParameters(short pNumberOfArticulationParameters)
public void setPad(short pPad)
public short getPad()
public void setArticulationParameters(java.util.List<ArticulationParameter> pArticulationParameters)
public java.util.List<ArticulationParameter> getArticulationParameters()
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)
Pdu
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 |