public class AttributePdu extends EntityInformationFamilyPdu implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected short |
actionCode
This field shall identify the action code applicable to this Attribute PDU.
|
protected short |
attributeRecordPduType
This field shall represent the type of the PDU that is being extended or updated, if applicable.
|
protected short |
attributeRecordProtocolVersion
This field shall indicate the Protocol Version associated with the Attribute Record PDU Type.
|
protected long |
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 int |
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 |
short |
getActionCode() |
short |
getAttributeRecordPduType() |
short |
getAttributeRecordProtocolVersion() |
int |
getMarshalledSize() |
long |
getMasterAttributeRecordType() |
int |
getNumberAttributeRecordSet() |
SimulationAddress |
getOriginatingSimulationAddress() |
int |
getPadding1() |
short |
getPadding2() |
byte |
getPadding3() |
void |
marshal(java.nio.ByteBuffer buff)
Packs a Pdu into the ByteBuffer.
|
void |
marshal(java.io.DataOutputStream dos) |
void |
setActionCode(short pActionCode) |
void |
setAttributeRecordPduType(short pAttributeRecordPduType) |
void |
setAttributeRecordProtocolVersion(short pAttributeRecordProtocolVersion) |
void |
setMasterAttributeRecordType(long pMasterAttributeRecordType) |
void |
setNumberAttributeRecordSet(int pNumberAttributeRecordSet) |
void |
setOriginatingSimulationAddress(SimulationAddress pOriginatingSimulationAddress) |
void |
setPadding1(int pPadding1) |
void |
setPadding2(short pPadding2) |
void |
setPadding3(byte pPadding3) |
void |
unmarshal(java.nio.ByteBuffer buff)
Unpacks a Pdu from the underlying data.
|
void |
unmarshal(java.io.DataInputStream dis) |
getPadding, getPduStatus, marshal, setPadding, setPduStatus
getExerciseID, getLength, getPduType, getProtocolFamily, getProtocolVersion, getTimestamp, setExerciseID, setLength, setPduType, setProtocolFamily, setProtocolVersion, setTimestamp
protected SimulationAddress originatingSimulationAddress
protected int padding1
protected short padding2
protected short attributeRecordPduType
protected short attributeRecordProtocolVersion
protected long masterAttributeRecordType
protected short actionCode
protected byte padding3
protected int numberAttributeRecordSet
public int getMarshalledSize()
getMarshalledSize
in class EntityInformationFamilyPdu
public void setOriginatingSimulationAddress(SimulationAddress pOriginatingSimulationAddress)
public SimulationAddress getOriginatingSimulationAddress()
public void setPadding1(int pPadding1)
public int getPadding1()
public void setPadding2(short pPadding2)
public short getPadding2()
public void setAttributeRecordPduType(short pAttributeRecordPduType)
public short getAttributeRecordPduType()
public void setAttributeRecordProtocolVersion(short pAttributeRecordProtocolVersion)
public short getAttributeRecordProtocolVersion()
public void setMasterAttributeRecordType(long pMasterAttributeRecordType)
public long getMasterAttributeRecordType()
public void setActionCode(short pActionCode)
public short getActionCode()
public void setPadding3(byte pPadding3)
public byte getPadding3()
public void setNumberAttributeRecordSet(int pNumberAttributeRecordSet)
public int getNumberAttributeRecordSet()
public void marshal(java.io.DataOutputStream dos)
marshal
in class EntityInformationFamilyPdu
public void unmarshal(java.io.DataInputStream dis)
unmarshal
in class EntityInformationFamilyPdu
public void marshal(java.nio.ByteBuffer buff)
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 onlyByteBuffer
public void unmarshal(java.nio.ByteBuffer buff)
unmarshal
in class EntityInformationFamilyPdu
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 EntityInformationFamilyPdu
public boolean equalsImpl(java.lang.Object obj)
PduSuperclass
this
and the supplied objectequalsImpl
in class EntityInformationFamilyPdu
obj
- the object to compare to