edu.nps.moves.dis7mobile
Class AttributePdu

java.lang.Object
  extended by edu.nps.moves.dis7mobile.PduSuperclass
      extended by edu.nps.moves.dis7mobile.Pdu
          extended by edu.nps.moves.dis7mobile.EntityInformationFamilyPdu
              extended by edu.nps.moves.dis7mobile.AttributePdu
All Implemented Interfaces:
java.io.Serializable

public class AttributePdu
extends EntityInformationFamilyPdu
implements java.io.Serializable

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

Author:
DMcG
See Also:
Serialized Form

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

originatingSimulationAddress

protected SimulationAddress originatingSimulationAddress
This field shall identify the simulation issuing the Attribute PDU. It shall be represented by a Simulation Address record (see 6.2.79).


padding1

protected int padding1
Padding


padding2

protected short padding2
Padding


attributeRecordPduType

protected short attributeRecordPduType
This field shall represent the type of the PDU that is being extended or updated, if applicable. It shall be represented by an 8-bit enumeration.


attributeRecordProtocolVersion

protected short attributeRecordProtocolVersion
This field shall indicate the Protocol Version associated with the Attribute Record PDU Type. It shall be represented by an 8-bit enumeration.


masterAttributeRecordType

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. It shall be represented by a 32-bit enumeration.


actionCode

protected short actionCode
This field shall identify the action code applicable to this Attribute PDU. The Action Code shall apply to all Attribute records contained in the PDU. It shall be represented by an 8-bit enumeration.


padding3

protected byte padding3
Padding


numberAttributeRecordSet

protected int numberAttributeRecordSet
This field shall specify the number of Attribute Record Sets that make up the remainder of the PDU. It shall be represented by a 16-bit unsigned integer.

Constructor Detail

AttributePdu

public AttributePdu()
Constructor

Method Detail

getMarshalledSize

public int getMarshalledSize()
Overrides:
getMarshalledSize in class EntityInformationFamilyPdu

setOriginatingSimulationAddress

public void setOriginatingSimulationAddress(SimulationAddress pOriginatingSimulationAddress)

getOriginatingSimulationAddress

public SimulationAddress getOriginatingSimulationAddress()

setPadding1

public void setPadding1(int pPadding1)

getPadding1

public int getPadding1()

setPadding2

public void setPadding2(short pPadding2)

getPadding2

public short getPadding2()

setAttributeRecordPduType

public void setAttributeRecordPduType(short pAttributeRecordPduType)

getAttributeRecordPduType

public short getAttributeRecordPduType()

setAttributeRecordProtocolVersion

public void setAttributeRecordProtocolVersion(short pAttributeRecordProtocolVersion)

getAttributeRecordProtocolVersion

public short getAttributeRecordProtocolVersion()

setMasterAttributeRecordType

public void setMasterAttributeRecordType(long pMasterAttributeRecordType)

getMasterAttributeRecordType

public long getMasterAttributeRecordType()

setActionCode

public void setActionCode(short pActionCode)

getActionCode

public short getActionCode()

setPadding3

public void setPadding3(byte pPadding3)

getPadding3

public byte getPadding3()

setNumberAttributeRecordSet

public void setNumberAttributeRecordSet(int pNumberAttributeRecordSet)

getNumberAttributeRecordSet

public int getNumberAttributeRecordSet()

marshal

public void marshal(java.io.DataOutputStream dos)
Overrides:
marshal in class EntityInformationFamilyPdu

unmarshal

public void unmarshal(java.io.DataInputStream dis)
Overrides:
unmarshal in class EntityInformationFamilyPdu

marshal

public void marshal(java.nio.ByteBuffer buff)
Packs a Pdu into the ByteBuffer.

Overrides:
marshal in class EntityInformationFamilyPdu
Parameters:
buff - The ByteBuffer at the position to begin writing
Throws:
java.nio.BufferOverflowException - if buff is too small
java.nio.ReadOnlyBufferException - if buff is read only
Since:
??
See Also:
ByteBuffer

unmarshal

public void unmarshal(java.nio.ByteBuffer buff)
Unpacks a Pdu from the underlying data.

Overrides:
unmarshal in class EntityInformationFamilyPdu
Parameters:
buff - The ByteBuffer at the position to begin reading
Throws:
java.nio.BufferUnderflowException - if buff is too small
Since:
??
See Also:
ByteBuffer

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class EntityInformationFamilyPdu

equalsImpl

public boolean equalsImpl(java.lang.Object obj)
Description copied from class: PduSuperclass
Compare all fields that contribute to the state, ignoring transient and static fields, for this and the supplied object

Overrides:
equalsImpl in class EntityInformationFamilyPdu
Parameters:
obj - the object to compare to
Returns:
true if the objects are equal, false otherwise.