|
|||||||||
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.FirePdu
public class FirePdu
Sectioin 5.3.4.1. Information about someone firing something. 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 BurstDescriptor |
burstDescriptor
Describes munitions used in the firing event |
protected EventID |
eventID
ID of event |
protected int |
fireMissionIndex
|
protected Vector3Double |
locationInWorldCoordinates
location of the firing event |
protected EntityID |
munitionID
ID of the munition that is being shot |
protected float |
rangeToTarget
range to the target. |
protected Vector3Float |
velocity
Velocity of the ammunition |
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 | |
---|---|
FirePdu()
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 |
BurstDescriptor |
getBurstDescriptor()
|
EventID |
getEventID()
|
int |
getFireMissionIndex()
|
Vector3Double |
getLocationInWorldCoordinates()
|
int |
getMarshalledSize()
|
EntityID |
getMunitionID()
|
float |
getRangeToTarget()
|
Vector3Float |
getVelocity()
|
void |
marshal(java.nio.ByteBuffer buff)
Packs a Pdu into the ByteBuffer. |
void |
marshal(java.io.DataOutputStream dos)
|
void |
setBurstDescriptor(BurstDescriptor pBurstDescriptor)
|
void |
setEventID(EventID pEventID)
|
void |
setFireMissionIndex(int pFireMissionIndex)
|
void |
setLocationInWorldCoordinates(Vector3Double pLocationInWorldCoordinates)
|
void |
setMunitionID(EntityID pMunitionID)
|
void |
setRangeToTarget(float pRangeToTarget)
|
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 int fireMissionIndex
protected Vector3Double locationInWorldCoordinates
protected BurstDescriptor burstDescriptor
protected Vector3Float velocity
protected float rangeToTarget
Constructor Detail |
---|
public FirePdu()
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 setFireMissionIndex(int pFireMissionIndex)
public int getFireMissionIndex()
public void setLocationInWorldCoordinates(Vector3Double pLocationInWorldCoordinates)
public Vector3Double getLocationInWorldCoordinates()
public void setBurstDescriptor(BurstDescriptor pBurstDescriptor)
public BurstDescriptor getBurstDescriptor()
public void setVelocity(Vector3Float pVelocity)
public Vector3Float getVelocity()
public void setRangeToTarget(float pRangeToTarget)
public float getRangeToTarget()
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 |