Class Mode5InterrogatorBasicData

java.lang.Object
edu.nps.moves.dis7.pdus.Mode5InterrogatorBasicData
All Implemented Interfaces:
Serializable

public class Mode5InterrogatorBasicData extends Object implements Serializable
B.2.26. Mode 5 interrogator basic data
See Also:
  • Field Details

    • mode5InterrogatorStatus

      protected byte mode5InterrogatorStatus
      Mode 5 interrogator status, part of Mode 5 interrogator basic data fields
    • padding

      protected byte padding
      Padding, part of Mode 5 interrogator basic data fields
    • padding2

      protected short padding2
      Padding, part of Mode 5 interrogator basic data fields
    • mode5MessageFormatsPresent

      protected int mode5MessageFormatsPresent
      Mode 5 Message Formats Present, part of Mode 5 interrogator basic data fields
    • entityID

      protected EntityID entityID
      Interrogated entity ID, part of Mode 5 interrogator basic data fields
    • padding3

      protected short padding3
      Padding, part of Mode 5 interrogator basic data fields
  • Constructor Details

    • Mode5InterrogatorBasicData

      public Mode5InterrogatorBasicData()
      Constructor creates and configures a new instance object
  • Method Details

    • getMarshalledSize

      public int getMarshalledSize()
      Returns size of this serialized (marshalled) object in bytes
      Returns:
      serialized size in bytes
      See Also:
    • setMode5InterrogatorStatus

      public Mode5InterrogatorBasicData setMode5InterrogatorStatus(byte pMode5InterrogatorStatus)
      Parameters:
      pMode5InterrogatorStatus - new value of interest
      Returns:
      same object to permit progressive setters
    • setMode5InterrogatorStatus

      public Mode5InterrogatorBasicData setMode5InterrogatorStatus(int pMode5InterrogatorStatus)
      Utility setter for mode5InterrogatorStatus
      Parameters:
      pMode5InterrogatorStatus - new value of interest
      Returns:
      same object to permit progressive setters
    • getMode5InterrogatorStatus

      public byte getMode5InterrogatorStatus()
      Returns:
      value of interest
    • setPadding

      public Mode5InterrogatorBasicData setPadding(byte pPadding)
      Setter for padding
      Parameters:
      pPadding - new value of interest
      Returns:
      same object to permit progressive setters
    • setPadding

      public Mode5InterrogatorBasicData setPadding(int pPadding)
      Utility setter for padding
      Parameters:
      pPadding - new value of interest
      Returns:
      same object to permit progressive setters
    • getPadding

      public byte getPadding()
      Getter for padding
      Returns:
      value of interest
    • setPadding2

      public Mode5InterrogatorBasicData setPadding2(short pPadding2)
      Setter for padding2
      Parameters:
      pPadding2 - new value of interest
      Returns:
      same object to permit progressive setters
    • setPadding2

      public Mode5InterrogatorBasicData setPadding2(int pPadding2)
      Utility setter for padding2
      Parameters:
      pPadding2 - new value of interest
      Returns:
      same object to permit progressive setters
    • getPadding2

      public short getPadding2()
      Getter for padding2
      Returns:
      value of interest
    • setMode5MessageFormatsPresent

      public Mode5InterrogatorBasicData setMode5MessageFormatsPresent(int pMode5MessageFormatsPresent)
      Parameters:
      pMode5MessageFormatsPresent - new value of interest
      Returns:
      same object to permit progressive setters
    • getMode5MessageFormatsPresent

      public int getMode5MessageFormatsPresent()
      Returns:
      value of interest
    • setEntityID

      public Mode5InterrogatorBasicData setEntityID(EntityID pEntityID)
      Setter for entityID
      Parameters:
      pEntityID - new value of interest
      Returns:
      same object to permit progressive setters
    • getEntityID

      public EntityID getEntityID()
      Getter for entityID
      Returns:
      value of interest
    • setPadding3

      public Mode5InterrogatorBasicData setPadding3(short pPadding3)
      Setter for padding3
      Parameters:
      pPadding3 - new value of interest
      Returns:
      same object to permit progressive setters
    • setPadding3

      public Mode5InterrogatorBasicData setPadding3(int pPadding3)
      Utility setter for padding3
      Parameters:
      pPadding3 - new value of interest
      Returns:
      same object to permit progressive setters
    • getPadding3

      public short getPadding3()
      Getter for padding3
      Returns:
      value of interest
    • marshal

      public void marshal(DataOutputStream dos) throws Exception
      Serializes an object to a DataOutputStream.
      Parameters:
      dos - the OutputStream
      Throws:
      Exception - if something goes wrong
      See Also:
    • unmarshal

      public int unmarshal(DataInputStream dis) throws Exception
      Deserializes an object from a DataInputStream.
      Parameters:
      dis - the InputStream
      Returns:
      marshalled serialized size in bytes
      Throws:
      Exception - if something goes wrong
      See Also:
    • marshal

      public void marshal(ByteBuffer byteBuffer) throws Exception
      Packs an object into the ByteBuffer.
      Parameters:
      byteBuffer - The ByteBuffer at the position to begin writing
      Throws:
      BufferOverflowException - if byteBuffer is too small
      ReadOnlyBufferException - if byteBuffer is read only
      Exception - ByteBuffer-generated exception
      See Also:
    • unmarshal

      public int unmarshal(ByteBuffer byteBuffer) throws Exception
      Unpacks a Pdu from the underlying data.
      Parameters:
      byteBuffer - The ByteBuffer at the position to begin reading
      Returns:
      marshalled serialized size in bytes
      Throws:
      BufferUnderflowException - if byteBuffer is too small
      Exception - ByteBuffer-generated exception
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsImpl

      public boolean equalsImpl(Object obj)
      Compare all fields that contribute to the state, ignoring transient and static fields, for this and the supplied object
      Parameters:
      obj - the object to compare to
      Returns:
      true if the objects are equal, false otherwise.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object