|
|||||||||
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.EntityDamageStatusPdu
public class EntityDamageStatusPdu
shall be used to communicate detailed damage information sustained by an entity regardless of the source of the damage Section 7.3.5 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 EntityID |
damagedEntityID
Field shall identify the damaged entity (see 6.2.28), Section 7.3.4 COMPLETE |
protected java.util.List<DirectedEnergyDamage> |
damageDescriptionRecords
Fields shall contain one or more Damage Description records (see 6.2.17) and may contain other Standard Variable records, Section 7.3.5 |
protected int |
numberOfDamageDescription
field shall specify the number of Damage Description records, Section 7.3.5 |
protected int |
padding1
Padding. |
protected int |
padding2
Padding. |
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 | |
---|---|
EntityDamageStatusPdu()
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 |
EntityID |
getDamagedEntityID()
|
java.util.List<DirectedEnergyDamage> |
getDamageDescriptionRecords()
|
int |
getMarshalledSize()
|
int |
getNumberOfDamageDescription()
|
int |
getPadding1()
|
int |
getPadding2()
|
void |
marshal(java.nio.ByteBuffer buff)
Packs a Pdu into the ByteBuffer. |
void |
marshal(java.io.DataOutputStream dos)
|
void |
setDamagedEntityID(EntityID pDamagedEntityID)
|
void |
setDamageDescriptionRecords(java.util.List<DirectedEnergyDamage> pDamageDescriptionRecords)
|
void |
setNumberOfDamageDescription(int pNumberOfDamageDescription)
Note that setting this value will not change the marshalled value. |
void |
setPadding1(int pPadding1)
|
void |
setPadding2(int pPadding2)
|
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 damagedEntityID
protected int padding1
protected int padding2
protected int numberOfDamageDescription
protected java.util.List<DirectedEnergyDamage> damageDescriptionRecords
Constructor Detail |
---|
public EntityDamageStatusPdu()
Method Detail |
---|
public int getMarshalledSize()
getMarshalledSize
in class WarfareFamilyPdu
public void setDamagedEntityID(EntityID pDamagedEntityID)
public EntityID getDamagedEntityID()
public void setPadding1(int pPadding1)
public int getPadding1()
public void setPadding2(int pPadding2)
public int getPadding2()
public int getNumberOfDamageDescription()
public void setNumberOfDamageDescription(int pNumberOfDamageDescription)
public void setDamageDescriptionRecords(java.util.List<DirectedEnergyDamage> pDamageDescriptionRecords)
public java.util.List<DirectedEnergyDamage> getDamageDescriptionRecords()
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 |