public class AppearancePdu extends LiveEntityFamilyPdu implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected EntityType |
alternateEntityType |
protected Appearance |
appearanceFields |
protected short |
appearanceFlags
16-bit bit field
|
protected EntityCapabilities |
capabilities |
protected EntityMarking |
entityMarking |
protected EntityType |
entityType |
protected ForceID |
forceId
uid 6
|
protected EntityID |
liveEntityId |
padding, subprotocolNumber
exerciseID, length, pduType, protocolFamily, protocolVersion, timestamp
Constructor and Description |
---|
AppearancePdu()
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 |
EntityType |
getAlternateEntityType()
Getter for
alternateEntityType |
Appearance |
getAppearanceFields()
Getter for
appearanceFields |
short |
getAppearanceFlags()
Getter for
appearanceFlags |
EntityCapabilities |
getCapabilities()
Getter for
capabilities |
EntityMarking |
getEntityMarking()
Getter for
entityMarking |
EntityType |
getEntityType()
Getter for
entityType |
ForceID |
getForceId()
Getter for
forceId |
EntityID |
getLiveEntityId()
Getter for
liveEntityId |
int |
getMarshalledSize()
Returns the size of this serialized object in bytes
|
void |
marshal(java.nio.ByteBuffer buff)
Packs an object into the ByteBuffer.
|
void |
marshal(java.io.DataOutputStream dos)
Serializes an object to a DataOutputStream.
|
AppearancePdu |
setAlternateEntityType(EntityType pAlternateEntityType)
Setter for
alternateEntityType |
AppearancePdu |
setAppearanceFields(Appearance pAppearanceFields)
Setter for
appearanceFields |
AppearancePdu |
setAppearanceFlags(short pAppearanceFlags)
Setter for
appearanceFlags |
AppearancePdu |
setCapabilities(EntityCapabilities pCapabilities)
Setter for
capabilities |
AppearancePdu |
setEntityMarking(EntityMarking pEntityMarking)
Setter for
entityMarking |
AppearancePdu |
setEntityType(EntityType pEntityType)
Setter for
entityType |
AppearancePdu |
setForceId(ForceID pForceId)
Setter for
forceId |
AppearancePdu |
setLiveEntityId(EntityID pLiveEntityId)
Setter for
liveEntityId |
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, getSubprotocolNumber, setPadding, setSubprotocolNumber
getExerciseID, getLength, getPduType, getProtocolFamily, getProtocolVersion, getTimestamp, marshal, setExerciseID, setLength, setPduType, setProtocolFamily, setProtocolVersion, setTimestamp
protected EntityID liveEntityId
protected short appearanceFlags
protected ForceID forceId
protected EntityType entityType
protected EntityType alternateEntityType
protected EntityMarking entityMarking
protected EntityCapabilities capabilities
protected Appearance appearanceFields
public int getMarshalledSize()
getMarshalledSize
in class LiveEntityFamilyPdu
public AppearancePdu setLiveEntityId(EntityID pLiveEntityId)
liveEntityId
public EntityID getLiveEntityId()
liveEntityId
public AppearancePdu setAppearanceFlags(short pAppearanceFlags)
appearanceFlags
public short getAppearanceFlags()
appearanceFlags
public AppearancePdu setForceId(ForceID pForceId)
forceId
public AppearancePdu setEntityType(EntityType pEntityType)
entityType
public EntityType getEntityType()
entityType
public AppearancePdu setAlternateEntityType(EntityType pAlternateEntityType)
alternateEntityType
public EntityType getAlternateEntityType()
alternateEntityType
public AppearancePdu setEntityMarking(EntityMarking pEntityMarking)
entityMarking
public EntityMarking getEntityMarking()
entityMarking
public AppearancePdu setCapabilities(EntityCapabilities pCapabilities)
capabilities
public EntityCapabilities getCapabilities()
capabilities
public AppearancePdu setAppearanceFields(Appearance pAppearanceFields)
appearanceFields
public Appearance getAppearanceFields()
appearanceFields
public void marshal(java.io.DataOutputStream dos)
marshal
in class LiveEntityFamilyPdu
dos
- The DataOutputStreamDataOutputStream
public int unmarshal(java.io.DataInputStream dis)
unmarshal
in class LiveEntityFamilyPdu
dis
- The DataInputStreamDataInputStream
public void marshal(java.nio.ByteBuffer buff) throws java.lang.Exception
marshal
in class LiveEntityFamilyPdu
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 LiveEntityFamilyPdu
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 LiveEntityFamilyPdu
public boolean equalsImpl(java.lang.Object obj)
Pdu
this
and the supplied objectequalsImpl
in class LiveEntityFamilyPdu
obj
- the object to compare to