public class ResupplyReceivedPdu extends LogisticsFamilyPdu implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected byte |
numberOfSupplyTypes
How many supplies are taken by receiving entity
|
protected byte |
padding1
padding
|
protected short |
padding2
padding
|
protected EntityID |
receivingEntityID
Entity that is receiving service.
|
protected java.util.List<SupplyQuantity> |
supplies
A Reord that Specifies the type of supply and the amount of that supply for each of the supply types in numberOfSupplyTypes (see 6.2.85), Section 7.4.3
|
protected EntityID |
supplyingEntityID
Entity that is supplying.
|
exerciseID, length, pduType, protocolFamily, protocolVersion, timestamp
Constructor and Description |
---|
ResupplyReceivedPdu()
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 |
int |
getMarshalledSize()
Returns the size of this serialized object in bytes
|
byte |
getPadding1()
Getter for
padding1 |
short |
getPadding2()
Getter for
padding2 |
EntityID |
getReceivingEntityID()
Getter for
receivingEntityID |
java.util.List<SupplyQuantity> |
getSupplies()
Getter for
supplies |
EntityID |
getSupplyingEntityID()
Getter for
supplyingEntityID |
void |
marshal(java.nio.ByteBuffer buff)
Packs an object into the ByteBuffer.
|
void |
marshal(java.io.DataOutputStream dos)
Serializes an object to a DataOutputStream.
|
ResupplyReceivedPdu |
setPadding1(byte pPadding1)
Setter for
padding1 |
ResupplyReceivedPdu |
setPadding2(short pPadding2)
Setter for
padding2 |
ResupplyReceivedPdu |
setReceivingEntityID(EntityID pReceivingEntityID)
Setter for
receivingEntityID |
ResupplyReceivedPdu |
setSupplies(java.util.List<SupplyQuantity> pSupplies)
Setter for
supplies |
ResupplyReceivedPdu |
setSupplyingEntityID(EntityID pSupplyingEntityID)
Setter for
supplyingEntityID |
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 receivingEntityID
protected EntityID supplyingEntityID
protected byte numberOfSupplyTypes
protected byte padding1
protected short padding2
protected java.util.List<SupplyQuantity> supplies
public int getMarshalledSize()
getMarshalledSize
in class LogisticsFamilyPdu
public ResupplyReceivedPdu setReceivingEntityID(EntityID pReceivingEntityID)
receivingEntityID
public EntityID getReceivingEntityID()
receivingEntityID
public ResupplyReceivedPdu setSupplyingEntityID(EntityID pSupplyingEntityID)
supplyingEntityID
public EntityID getSupplyingEntityID()
supplyingEntityID
public ResupplyReceivedPdu setPadding1(byte pPadding1)
padding1
public byte getPadding1()
padding1
public ResupplyReceivedPdu setPadding2(short pPadding2)
padding2
public short getPadding2()
padding2
public ResupplyReceivedPdu setSupplies(java.util.List<SupplyQuantity> pSupplies)
supplies
public java.util.List<SupplyQuantity> getSupplies()
supplies
public void marshal(java.io.DataOutputStream dos)
marshal
in class LogisticsFamilyPdu
dos
- The DataOutputStreamDataOutputStream
public int unmarshal(java.io.DataInputStream dis)
unmarshal
in class LogisticsFamilyPdu
dis
- The DataInputStreamDataInputStream
public void marshal(java.nio.ByteBuffer buff) throws java.lang.Exception
marshal
in class LogisticsFamilyPdu
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 LogisticsFamilyPdu
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 LogisticsFamilyPdu
public boolean equalsImpl(java.lang.Object obj)
Pdu
this
and the supplied objectequalsImpl
in class LogisticsFamilyPdu
obj
- the object to compare to