|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.nps.moves.dis7mobile.PduSuperclass
edu.nps.moves.dis7mobile.Pdu
edu.nps.moves.dis7mobile.EntityInformationFamilyPdu
edu.nps.moves.dis7mobile.AttributePdu
public class AttributePdu
Information about individual attributes for a particular entity, other object, or event may be communicated using an Attribute PDU. The Attribute PDU shall not be used to exchange data available in any other PDU except where explicitly mentioned in the PDU issuance instructions within this standard. See 5.3.6 for the information requirements and issuance and receipt rules for this PDU. Section 7.2.6. INCOMPLETE Copyright (c) 2008-2010, MOVES Institute, Naval Postgraduate School. All rights reserved. This work is licensed under the BSD open source license, available at https://www.movesinstitute.org/licenses/bsd.html
Field Summary | |
---|---|
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 |
Fields inherited from class edu.nps.moves.dis7mobile.Pdu |
---|
padding, pduStatus |
Fields inherited from class edu.nps.moves.dis7mobile.PduSuperclass |
---|
exerciseID, length, pduType, protocolFamily, protocolVersion, timestamp |
Constructor Summary | |
---|---|
AttributePdu()
Constructor |
Method Summary | |
---|---|
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)
|
Methods inherited from class edu.nps.moves.dis7mobile.Pdu |
---|
getPadding, getPduStatus, marshal, setPadding, setPduStatus |
Methods inherited from class edu.nps.moves.dis7mobile.PduSuperclass |
---|
getExerciseID, getLength, getPduType, getProtocolFamily, getProtocolVersion, getTimestamp, setExerciseID, setLength, setPduType, setProtocolFamily, setProtocolVersion, setTimestamp |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public AttributePdu()
Method Detail |
---|
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 writing
java.nio.BufferOverflowException
- if buff is too small
java.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 reading
java.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 object
equalsImpl
in class EntityInformationFamilyPdu
obj
- the object to compare to
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |