public class LiveEntityPdu extends PduSuperclass implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected short |
padding
zero-filled array of padding
|
protected int |
subprotocolNumber
Subprotocol used to decode the PDU.
|
exerciseID, length, pduType, protocolFamily, protocolVersion, timestamp
Constructor and Description |
---|
LiveEntityPdu()
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() |
short |
getPadding() |
int |
getSubprotocolNumber() |
void |
marshal(java.nio.ByteBuffer buff)
Packs a Pdu into the ByteBuffer.
|
void |
marshal(java.io.DataOutputStream dos) |
void |
setPadding(short pPadding) |
void |
setSubprotocolNumber(int pSubprotocolNumber) |
void |
unmarshal(java.nio.ByteBuffer buff)
Unpacks a Pdu from the underlying data.
|
void |
unmarshal(java.io.DataInputStream dis) |
getExerciseID, getLength, getPduType, getProtocolFamily, getProtocolVersion, getTimestamp, setExerciseID, setLength, setPduType, setProtocolFamily, setProtocolVersion, setTimestamp
protected int subprotocolNumber
protected short padding
public int getMarshalledSize()
getMarshalledSize
in class PduSuperclass
public void setSubprotocolNumber(int pSubprotocolNumber)
public int getSubprotocolNumber()
public void setPadding(short pPadding)
public short getPadding()
public void marshal(java.io.DataOutputStream dos)
marshal
in class PduSuperclass
public void unmarshal(java.io.DataInputStream dis)
unmarshal
in class PduSuperclass
public void marshal(java.nio.ByteBuffer buff)
marshal
in class PduSuperclass
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 PduSuperclass
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 PduSuperclass
public boolean equalsImpl(java.lang.Object obj)
PduSuperclass
this
and the supplied objectequalsImpl
in class PduSuperclass
obj
- the object to compare to