public abstract class LiveEntityPdu extends Pdu implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected byte |
padding
zero-filled array of padding
|
protected DISLiveEntitySubprotocolNumber |
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()
Returns the size of this serialized object in bytes
|
byte |
getPadding()
Getter for
padding |
DISLiveEntitySubprotocolNumber |
getSubprotocolNumber()
Getter for
subprotocolNumber |
void |
marshal(java.nio.ByteBuffer buff)
Packs an object into the ByteBuffer.
|
void |
marshal(java.io.DataOutputStream dos)
Serializes an object to a DataOutputStream.
|
LiveEntityPdu |
setPadding(byte pPadding)
Setter for
padding |
LiveEntityPdu |
setSubprotocolNumber(DISLiveEntitySubprotocolNumber pSubprotocolNumber)
Setter for
subprotocolNumber |
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.
|
getExerciseID, getLength, getPduType, getProtocolFamily, getProtocolVersion, getTimestamp, marshal, setExerciseID, setLength, setPduType, setProtocolFamily, setProtocolVersion, setTimestamp
protected DISLiveEntitySubprotocolNumber subprotocolNumber
protected byte padding
public int getMarshalledSize()
getMarshalledSize
in class Pdu
public LiveEntityPdu setSubprotocolNumber(DISLiveEntitySubprotocolNumber pSubprotocolNumber)
subprotocolNumber
public DISLiveEntitySubprotocolNumber getSubprotocolNumber()
subprotocolNumber
public LiveEntityPdu setPadding(byte pPadding)
padding
public byte getPadding()
padding
public void marshal(java.io.DataOutputStream dos)
public int unmarshal(java.io.DataInputStream dis)
public void marshal(java.nio.ByteBuffer buff) throws java.lang.Exception
public int unmarshal(java.nio.ByteBuffer buff) throws java.lang.Exception
public boolean equalsImpl(java.lang.Object obj)
Pdu
this
and the supplied objectequalsImpl
in class Pdu
obj
- the object to compare to