Class ArticulatedPartVP

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

public class ArticulatedPartVP extends Object implements Serializable
articulated parts for movable parts and a combination of moveable/attached parts of an entity. Section 6.2.94.2
See Also:
  • Field Details

    • recordType

      protected VariableParameterRecordType recordType
      The identification of the Variable Parameter record. Enumeration from EBV uid 56
    • changeIndicator

      protected byte changeIndicator
      indicate the change of any parameter for any articulated part. Starts at zero, incremented for each change
    • partAttachedTo

      protected short partAttachedTo
      The identification of the articulated part to which this articulation parameter is attached. This field shall be specified by a 16-bit unsigned integer. This field shall contain the value zero if the articulated part is attached directly to the entity.
    • parameterType

      protected int parameterType
      The type of parameter represented, 32-bit enumeration
    • parameterValue

      protected float parameterValue
      The definition of the 64-bits shall be determined based on the type of parameter specified in the Parameter Type field
    • padding

      protected int padding
      zero-filled array of padding bits for byte alignment and consistent sizing of PDU data
  • Constructor Details

    • ArticulatedPartVP

      public ArticulatedPartVP()
      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:
    • setRecordType

      public ArticulatedPartVP setRecordType(VariableParameterRecordType pRecordType)
      Setter for recordType
      Parameters:
      pRecordType - new value of interest
      Returns:
      same object to permit progressive setters
    • getRecordType

      public VariableParameterRecordType getRecordType()
      Getter for recordType
      Returns:
      value of interest
    • setChangeIndicator

      public ArticulatedPartVP setChangeIndicator(byte pChangeIndicator)
      Setter for changeIndicator
      Parameters:
      pChangeIndicator - new value of interest
      Returns:
      same object to permit progressive setters
    • setChangeIndicator

      public ArticulatedPartVP setChangeIndicator(int pChangeIndicator)
      Utility setter for changeIndicator
      Parameters:
      pChangeIndicator - new value of interest
      Returns:
      same object to permit progressive setters
    • getChangeIndicator

      public byte getChangeIndicator()
      Getter for changeIndicator
      Returns:
      value of interest
    • setPartAttachedTo

      public ArticulatedPartVP setPartAttachedTo(short pPartAttachedTo)
      Setter for partAttachedTo
      Parameters:
      pPartAttachedTo - new value of interest
      Returns:
      same object to permit progressive setters
    • setPartAttachedTo

      public ArticulatedPartVP setPartAttachedTo(int pPartAttachedTo)
      Utility setter for partAttachedTo
      Parameters:
      pPartAttachedTo - new value of interest
      Returns:
      same object to permit progressive setters
    • getPartAttachedTo

      public short getPartAttachedTo()
      Getter for partAttachedTo
      Returns:
      value of interest
    • setParameterType

      public ArticulatedPartVP setParameterType(int pParameterType)
      Setter for parameterType
      Parameters:
      pParameterType - new value of interest
      Returns:
      same object to permit progressive setters
    • getParameterType

      public int getParameterType()
      Getter for parameterType
      Returns:
      value of interest
    • setParameterValue

      public ArticulatedPartVP setParameterValue(float pParameterValue)
      Setter for parameterValue
      Parameters:
      pParameterValue - new value of interest
      Returns:
      same object to permit progressive setters
    • getParameterValue

      public float getParameterValue()
      Getter for parameterValue
      Returns:
      value of interest
    • setPadding

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

      public int getPadding()
      Getter for padding
      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