public class LinearObjectStatePdu extends SyntheticEnvironmentFamilyPdu implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected ForceID |
forceID
force ID uid 6
|
protected java.util.List<LinearSegmentParameter> |
linearSegmentParameters
Linear segment parameters
|
protected byte |
numberOfLinearSegments
number of linear segment parameters
|
protected ObjectIdentifier |
objectID
Object in synthetic environment
|
protected ObjectType |
objectType
Object type
|
protected SimulationAddress |
receivingID
receiver ID
|
protected ObjectIdentifier |
referencedObjectID
Object with which this point object is associated
|
protected SimulationAddress |
requesterID
requesterID
|
protected short |
updateNumber
unique update number of each state transition of an object
|
exerciseID, length, pduType, protocolFamily, protocolVersion, timestamp
Constructor and Description |
---|
LinearObjectStatePdu()
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 |
ForceID |
getForceID()
Getter for
forceID |
java.util.List<LinearSegmentParameter> |
getLinearSegmentParameters()
Getter for
linearSegmentParameters |
int |
getMarshalledSize()
Returns the size of this serialized object in bytes
|
ObjectIdentifier |
getObjectID()
Getter for
objectID |
ObjectType |
getObjectType()
Getter for
objectType |
SimulationAddress |
getReceivingID()
Getter for
receivingID |
ObjectIdentifier |
getReferencedObjectID()
Getter for
referencedObjectID |
SimulationAddress |
getRequesterID()
Getter for
requesterID |
short |
getUpdateNumber()
Getter for
updateNumber |
void |
marshal(java.nio.ByteBuffer buff)
Packs an object into the ByteBuffer.
|
void |
marshal(java.io.DataOutputStream dos)
Serializes an object to a DataOutputStream.
|
LinearObjectStatePdu |
setForceID(ForceID pForceID)
Setter for
forceID |
LinearObjectStatePdu |
setLinearSegmentParameters(java.util.List<LinearSegmentParameter> pLinearSegmentParameters)
Setter for
linearSegmentParameters |
LinearObjectStatePdu |
setObjectID(ObjectIdentifier pObjectID)
Setter for
objectID |
LinearObjectStatePdu |
setObjectType(ObjectType pObjectType)
Setter for
objectType |
LinearObjectStatePdu |
setReceivingID(SimulationAddress pReceivingID)
Setter for
receivingID |
LinearObjectStatePdu |
setReferencedObjectID(ObjectIdentifier pReferencedObjectID)
Setter for
referencedObjectID |
LinearObjectStatePdu |
setRequesterID(SimulationAddress pRequesterID)
Setter for
requesterID |
LinearObjectStatePdu |
setUpdateNumber(short pUpdateNumber)
Setter for
updateNumber |
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 ObjectIdentifier objectID
protected ObjectIdentifier referencedObjectID
protected short updateNumber
protected ForceID forceID
protected byte numberOfLinearSegments
protected SimulationAddress requesterID
protected SimulationAddress receivingID
protected ObjectType objectType
protected java.util.List<LinearSegmentParameter> linearSegmentParameters
public int getMarshalledSize()
getMarshalledSize
in class SyntheticEnvironmentFamilyPdu
public LinearObjectStatePdu setObjectID(ObjectIdentifier pObjectID)
objectID
public ObjectIdentifier getObjectID()
objectID
public LinearObjectStatePdu setReferencedObjectID(ObjectIdentifier pReferencedObjectID)
referencedObjectID
public ObjectIdentifier getReferencedObjectID()
referencedObjectID
public LinearObjectStatePdu setUpdateNumber(short pUpdateNumber)
updateNumber
public short getUpdateNumber()
updateNumber
public LinearObjectStatePdu setForceID(ForceID pForceID)
forceID
public LinearObjectStatePdu setRequesterID(SimulationAddress pRequesterID)
requesterID
public SimulationAddress getRequesterID()
requesterID
public LinearObjectStatePdu setReceivingID(SimulationAddress pReceivingID)
receivingID
public SimulationAddress getReceivingID()
receivingID
public LinearObjectStatePdu setObjectType(ObjectType pObjectType)
objectType
public ObjectType getObjectType()
objectType
public LinearObjectStatePdu setLinearSegmentParameters(java.util.List<LinearSegmentParameter> pLinearSegmentParameters)
linearSegmentParameters
public java.util.List<LinearSegmentParameter> getLinearSegmentParameters()
linearSegmentParameters
public void marshal(java.io.DataOutputStream dos)
marshal
in class SyntheticEnvironmentFamilyPdu
dos
- The DataOutputStreamDataOutputStream
public int unmarshal(java.io.DataInputStream dis)
unmarshal
in class SyntheticEnvironmentFamilyPdu
dis
- The DataInputStreamDataInputStream
public void marshal(java.nio.ByteBuffer buff) throws java.lang.Exception
marshal
in class SyntheticEnvironmentFamilyPdu
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 SyntheticEnvironmentFamilyPdu
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 SyntheticEnvironmentFamilyPdu
public boolean equalsImpl(java.lang.Object obj)
Pdu
this
and the supplied objectequalsImpl
in class SyntheticEnvironmentFamilyPdu
obj
- the object to compare to