Class LiveEntityLinearVelocity

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

public class LiveEntityLinearVelocity extends Object implements Serializable
16-bit fixed binaries IEEE Std 1278.1-2012, IEEE Standard for Distributed Interactive Simulation - Application Protocols
See Also:
Serialized Form
  • Field Details

    • xComponent

      protected short xComponent
      xComponent is an undescribed parameter...
    • yComponent

      protected short yComponent
      yComponent is an undescribed parameter...
    • zComponent

      protected short zComponent
      zComponent is an undescribed parameter...
  • Constructor Details

    • LiveEntityLinearVelocity

      public LiveEntityLinearVelocity()
      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:
      https://en.wikipedia.org/wiki/Marshalling_(computer_science)
    • setXComponent

      public LiveEntityLinearVelocity setXComponent(short pXComponent)
      Setter for xComponent
      Parameters:
      pXComponent - new value of interest
      Returns:
      same object to permit progressive setters
    • setXComponent

      public LiveEntityLinearVelocity setXComponent(int pXComponent)
      Utility setter for xComponent
      Parameters:
      pXComponent - new value of interest
      Returns:
      same object to permit progressive setters
    • getXComponent

      public short getXComponent()
      Getter for xComponent
      Returns:
      value of interest
    • setYComponent

      public LiveEntityLinearVelocity setYComponent(short pYComponent)
      Setter for yComponent
      Parameters:
      pYComponent - new value of interest
      Returns:
      same object to permit progressive setters
    • setYComponent

      public LiveEntityLinearVelocity setYComponent(int pYComponent)
      Utility setter for yComponent
      Parameters:
      pYComponent - new value of interest
      Returns:
      same object to permit progressive setters
    • getYComponent

      public short getYComponent()
      Getter for yComponent
      Returns:
      value of interest
    • setZComponent

      public LiveEntityLinearVelocity setZComponent(short pZComponent)
      Setter for zComponent
      Parameters:
      pZComponent - new value of interest
      Returns:
      same object to permit progressive setters
    • setZComponent

      public LiveEntityLinearVelocity setZComponent(int pZComponent)
      Utility setter for zComponent
      Parameters:
      pZComponent - new value of interest
      Returns:
      same object to permit progressive setters
    • getZComponent

      public short getZComponent()
      Getter for zComponent
      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:
      DataOutputStream
    • 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:
      DataInputStream, https://en.wikipedia.org/wiki/Marshalling_(computer_science)
    • 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:
      ByteBuffer
    • 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:
      ByteBuffer, https://en.wikipedia.org/wiki/Marshalling_(computer_science)
    • 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