public class EntityDamageStatusPdu extends WarfareFamilyPdu implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
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.
|
firingEntityID, targetEntityID
exerciseID, length, pduType, protocolFamily, protocolVersion, timestamp
Constructor and Description |
---|
EntityDamageStatusPdu()
Constructor
|
Modifier and Type | Method and Description |
---|---|
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) |
getFiringEntityID, getTargetEntityID, setFiringEntityID, setTargetEntityID
getPadding, getPduStatus, marshal, setPadding, setPduStatus
getExerciseID, getLength, getPduType, getProtocolFamily, getProtocolVersion, getTimestamp, setExerciseID, setLength, setPduType, setProtocolFamily, setProtocolVersion, setTimestamp
protected EntityID damagedEntityID
protected int padding1
protected int padding2
protected int numberOfDamageDescription
protected java.util.List<DirectedEnergyDamage> damageDescriptionRecords
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 writingjava.nio.BufferOverflowException
- if buff is too smalljava.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 readingjava.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 objectequalsImpl
in class WarfareFamilyPdu
obj
- the object to compare to