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
|
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 short |
numberOfDamageDescription
field shall specify the number of Damage Description records, Section 7.3.5
|
protected short |
padding1 |
protected short |
padding2 |
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()
Getter for
damagedEntityID |
java.util.List<DirectedEnergyDamage> |
getDamageDescriptionRecords()
Getter for
damageDescriptionRecords |
int |
getMarshalledSize()
Returns the size of this serialized object in bytes
|
short |
getPadding1()
Getter for
padding1 |
short |
getPadding2()
Getter for
padding2 |
void |
marshal(java.nio.ByteBuffer buff)
Packs an object into the ByteBuffer.
|
void |
marshal(java.io.DataOutputStream dos)
Serializes an object to a DataOutputStream.
|
EntityDamageStatusPdu |
setDamagedEntityID(EntityID pDamagedEntityID)
Setter for
damagedEntityID |
EntityDamageStatusPdu |
setDamageDescriptionRecords(java.util.List<DirectedEnergyDamage> pDamageDescriptionRecords)
Setter for
damageDescriptionRecords |
EntityDamageStatusPdu |
setPadding1(short pPadding1)
Setter for
padding1 |
EntityDamageStatusPdu |
setPadding2(short pPadding2)
Setter for
padding2 |
int |
unmarshal(java.nio.ByteBuffer buff)
Unpacks a Pdu from the underlying data.
|
int |
unmarshal(java.io.DataInputStream dis)
Unserializes an object from a DataInputStream.
|
getPadding, getPduStatus, setPadding, setPduStatus
getExerciseID, getLength, getPduType, getProtocolFamily, getProtocolVersion, getTimestamp, marshal, setExerciseID, setLength, setPduType, setProtocolFamily, setProtocolVersion, setTimestamp
protected EntityID damagedEntityID
protected short padding1
protected short padding2
protected short numberOfDamageDescription
protected java.util.List<DirectedEnergyDamage> damageDescriptionRecords
public int getMarshalledSize()
getMarshalledSize
in class WarfareFamilyPdu
public EntityDamageStatusPdu setDamagedEntityID(EntityID pDamagedEntityID)
damagedEntityID
public EntityID getDamagedEntityID()
damagedEntityID
public EntityDamageStatusPdu setPadding1(short pPadding1)
padding1
public short getPadding1()
padding1
public EntityDamageStatusPdu setPadding2(short pPadding2)
padding2
public short getPadding2()
padding2
public EntityDamageStatusPdu setDamageDescriptionRecords(java.util.List<DirectedEnergyDamage> pDamageDescriptionRecords)
damageDescriptionRecords
public java.util.List<DirectedEnergyDamage> getDamageDescriptionRecords()
damageDescriptionRecords
public void marshal(java.io.DataOutputStream dos)
marshal
in class WarfareFamilyPdu
dos
- The DataOutputStreamDataOutputStream
public int unmarshal(java.io.DataInputStream dis)
unmarshal
in class WarfareFamilyPdu
dis
- The DataInputStreamDataInputStream
public void marshal(java.nio.ByteBuffer buff) throws java.lang.Exception
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 onlyjava.lang.Exception
- ByteBuffer-generated exceptionByteBuffer
public int unmarshal(java.nio.ByteBuffer buff) throws java.lang.Exception
unmarshal
in class WarfareFamilyPdu
buff
- The ByteBuffer at the position to begin readingjava.nio.BufferUnderflowException
- if buff is too smalljava.lang.Exception
- ByteBuffer-generated exceptionByteBuffer
public boolean equals(java.lang.Object obj)
equals
in class WarfareFamilyPdu
public boolean equalsImpl(java.lang.Object obj)
Pdu
this
and the supplied objectequalsImpl
in class WarfareFamilyPdu
obj
- the object to compare to