|
|||||||||
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.FirePdu
public class FirePdu
The firing of a weapon or expendable shall be communicated by issuing a Fire PDU. Sectioin 7.3.2. 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
This field shall describe the firing or launch of a munition or expendable represented by one of the following types of Descriptor records: Munition Descriptor (6.2.20.2) or Expendable Descriptor (6.2.20.4). |
protected EventIdentifier |
eventID
This field shall contain an identification generated by the firing entity to associate related firing and detonation events. |
protected long |
fireMissionIndex
This field shall identify the fire mission (see 5.4.3.3). |
protected Vector3Double |
locationInWorldCoordinates
This field shall specify the location, in world coordinates, from which the munition was launched, and shall be represented by a World Coordinates record (see 6.2.97). |
protected EntityID |
munitionExpendibleID
This field shall specify the entity identification of the fired munition or expendable. |
protected float |
range
This field shall specify the range that an entitys fire control system has assumed in computing the fire control solution. |
protected Vector3Float |
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. |
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 | |
---|---|
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 |
MunitionDescriptor |
getDescriptor()
|
EventIdentifier |
getEventID()
|
long |
getFireMissionIndex()
|
Vector3Double |
getLocationInWorldCoordinates()
|
int |
getMarshalledSize()
|
EntityID |
getMunitionExpendibleID()
|
float |
getRange()
|
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 |
setEventID(EventIdentifier pEventID)
|
void |
setFireMissionIndex(long pFireMissionIndex)
|
void |
setLocationInWorldCoordinates(Vector3Double pLocationInWorldCoordinates)
|
void |
setMunitionExpendibleID(EntityID pMunitionExpendibleID)
|
void |
setRange(float pRange)
|
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 munitionExpendibleID
protected EventIdentifier eventID
protected long fireMissionIndex
protected Vector3Double locationInWorldCoordinates
protected MunitionDescriptor descriptor
protected Vector3Float velocity
protected float range
Constructor Detail |
---|
public FirePdu()
Method Detail |
---|
public int getMarshalledSize()
getMarshalledSize
in class WarfareFamilyPdu
public void setMunitionExpendibleID(EntityID pMunitionExpendibleID)
public EntityID getMunitionExpendibleID()
public void setEventID(EventIdentifier pEventID)
public EventIdentifier getEventID()
public void setFireMissionIndex(long pFireMissionIndex)
public long getFireMissionIndex()
public void setLocationInWorldCoordinates(Vector3Double pLocationInWorldCoordinates)
public Vector3Double getLocationInWorldCoordinates()
public void setDescriptor(MunitionDescriptor pDescriptor)
public MunitionDescriptor getDescriptor()
public void setVelocity(Vector3Float pVelocity)
public Vector3Float getVelocity()
public void setRange(float pRange)
public float getRange()
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 |