public class RepairResponsePdu extends LogisticsFamilyPdu implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected byte |
padding1
padding
|
protected short |
padding2
padding
|
protected EntityID |
receivingEntityID
Entity that requested repairs.
|
protected EntityID |
repairingEntityID
Entity that is repairing.
|
protected RepairResponseRepairResult |
repairResult
Result of repair operation uid 64
|
exerciseID, length, pduType, protocolFamily, protocolVersion, timestamp
Constructor and Description |
---|
RepairResponsePdu()
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 |
EntityID |
getRepairingEntityID()
Getter for
repairingEntityID |
RepairResponseRepairResult |
getRepairResult()
Getter for
repairResult |
void |
marshal(java.nio.ByteBuffer buff)
Packs an object into the ByteBuffer.
|
void |
marshal(java.io.DataOutputStream dos)
Serializes an object to a DataOutputStream.
|
RepairResponsePdu |
setPadding1(byte pPadding1)
Setter for
padding1 |
RepairResponsePdu |
setPadding2(short pPadding2)
Setter for
padding2 |
RepairResponsePdu |
setReceivingEntityID(EntityID pReceivingEntityID)
Setter for
receivingEntityID |
RepairResponsePdu |
setRepairingEntityID(EntityID pRepairingEntityID)
Setter for
repairingEntityID |
RepairResponsePdu |
setRepairResult(RepairResponseRepairResult pRepairResult)
Setter for
repairResult |
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 repairingEntityID
protected RepairResponseRepairResult repairResult
protected byte padding1
protected short padding2
public int getMarshalledSize()
getMarshalledSize
in class LogisticsFamilyPdu
public RepairResponsePdu setReceivingEntityID(EntityID pReceivingEntityID)
receivingEntityID
public EntityID getReceivingEntityID()
receivingEntityID
public RepairResponsePdu setRepairingEntityID(EntityID pRepairingEntityID)
repairingEntityID
public EntityID getRepairingEntityID()
repairingEntityID
public RepairResponsePdu setRepairResult(RepairResponseRepairResult pRepairResult)
repairResult
public RepairResponseRepairResult getRepairResult()
repairResult
public RepairResponsePdu setPadding1(byte pPadding1)
padding1
public byte getPadding1()
padding1
public RepairResponsePdu setPadding2(short pPadding2)
padding2
public short getPadding2()
padding2
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