public class AttributePdu extends EntityInformationFamilyPdu implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected DISAttributeActionCode |
actionCode
This field shall identify the action code applicable to this Attribute PDU.
|
protected DISPDUType |
attributeRecordPduType
This field shall represent the type of the PDU that is being extended or updated, if applicable.
|
protected DISProtocolFamily |
attributeRecordProtocolVersion
This field shall indicate the Protocol Version associated with the Attribute Record PDU Type.
|
protected java.util.List<AttributeRecordSet> |
attributeRecordSets |
protected VariableRecordTypes |
masterAttributeRecordType
This field shall contain the Attribute record type of the Attribute records in the PDU if they all have the same Attribute record type.
|
protected short |
numberAttributeRecordSet
This field shall specify the number of Attribute Record Sets that make up the remainder of the PDU.
|
protected SimulationAddress |
originatingSimulationAddress
This field shall identify the simulation issuing the Attribute PDU.
|
protected int |
padding1
Padding
|
protected short |
padding2
Padding
|
protected byte |
padding3
Padding
|
exerciseID, length, pduType, protocolFamily, protocolVersion, timestamp
Constructor and Description |
---|
AttributePdu()
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 |
DISAttributeActionCode |
getActionCode()
Getter for
actionCode |
DISPDUType |
getAttributeRecordPduType()
Getter for
attributeRecordPduType |
DISProtocolFamily |
getAttributeRecordProtocolVersion()
Getter for
attributeRecordProtocolVersion |
java.util.List<AttributeRecordSet> |
getAttributeRecordSets()
Getter for
attributeRecordSets |
int |
getMarshalledSize()
Returns the size of this serialized object in bytes
|
VariableRecordTypes |
getMasterAttributeRecordType()
Getter for
masterAttributeRecordType |
SimulationAddress |
getOriginatingSimulationAddress()
Getter for
originatingSimulationAddress |
int |
getPadding1()
Getter for
padding1 |
short |
getPadding2()
Getter for
padding2 |
byte |
getPadding3()
Getter for
padding3 |
void |
marshal(java.nio.ByteBuffer buff)
Packs an object into the ByteBuffer.
|
void |
marshal(java.io.DataOutputStream dos)
Serializes an object to a DataOutputStream.
|
AttributePdu |
setActionCode(DISAttributeActionCode pActionCode)
Setter for
actionCode |
AttributePdu |
setAttributeRecordPduType(DISPDUType pAttributeRecordPduType)
Setter for
attributeRecordPduType |
AttributePdu |
setAttributeRecordProtocolVersion(DISProtocolFamily pAttributeRecordProtocolVersion)
Setter for
attributeRecordProtocolVersion |
AttributePdu |
setAttributeRecordSets(java.util.List<AttributeRecordSet> pAttributeRecordSets)
Setter for
attributeRecordSets |
AttributePdu |
setMasterAttributeRecordType(VariableRecordTypes pMasterAttributeRecordType)
Setter for
masterAttributeRecordType |
AttributePdu |
setOriginatingSimulationAddress(SimulationAddress pOriginatingSimulationAddress)
Setter for
originatingSimulationAddress |
AttributePdu |
setPadding1(int pPadding1)
Setter for
padding1 |
AttributePdu |
setPadding2(short pPadding2)
Setter for
padding2 |
AttributePdu |
setPadding3(byte pPadding3)
Setter for
padding3 |
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 SimulationAddress originatingSimulationAddress
protected int padding1
protected short padding2
protected DISPDUType attributeRecordPduType
protected DISProtocolFamily attributeRecordProtocolVersion
protected VariableRecordTypes masterAttributeRecordType
protected DISAttributeActionCode actionCode
protected byte padding3
protected short numberAttributeRecordSet
protected java.util.List<AttributeRecordSet> attributeRecordSets
public int getMarshalledSize()
getMarshalledSize
in class EntityInformationFamilyPdu
public AttributePdu setOriginatingSimulationAddress(SimulationAddress pOriginatingSimulationAddress)
originatingSimulationAddress
public SimulationAddress getOriginatingSimulationAddress()
originatingSimulationAddress
public AttributePdu setPadding1(int pPadding1)
padding1
public int getPadding1()
padding1
public AttributePdu setPadding2(short pPadding2)
padding2
public short getPadding2()
padding2
public AttributePdu setAttributeRecordPduType(DISPDUType pAttributeRecordPduType)
attributeRecordPduType
public DISPDUType getAttributeRecordPduType()
attributeRecordPduType
public AttributePdu setAttributeRecordProtocolVersion(DISProtocolFamily pAttributeRecordProtocolVersion)
attributeRecordProtocolVersion
public DISProtocolFamily getAttributeRecordProtocolVersion()
attributeRecordProtocolVersion
public AttributePdu setMasterAttributeRecordType(VariableRecordTypes pMasterAttributeRecordType)
masterAttributeRecordType
public VariableRecordTypes getMasterAttributeRecordType()
masterAttributeRecordType
public AttributePdu setActionCode(DISAttributeActionCode pActionCode)
actionCode
public DISAttributeActionCode getActionCode()
actionCode
public AttributePdu setPadding3(byte pPadding3)
padding3
public byte getPadding3()
padding3
public AttributePdu setAttributeRecordSets(java.util.List<AttributeRecordSet> pAttributeRecordSets)
attributeRecordSets
public java.util.List<AttributeRecordSet> getAttributeRecordSets()
attributeRecordSets
public void marshal(java.io.DataOutputStream dos)
marshal
in class EntityInformationFamilyPdu
dos
- The DataOutputStreamDataOutputStream
public int unmarshal(java.io.DataInputStream dis)
unmarshal
in class EntityInformationFamilyPdu
dis
- The DataInputStreamDataInputStream
public void marshal(java.nio.ByteBuffer buff) throws java.lang.Exception
marshal
in class EntityInformationFamilyPdu
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 EntityInformationFamilyPdu
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 EntityInformationFamilyPdu
public boolean equalsImpl(java.lang.Object obj)
Pdu
this
and the supplied objectequalsImpl
in class EntityInformationFamilyPdu
obj
- the object to compare to