Package inputOutput

Class TempTool

java.lang.Object
inputOutput.TempTool

public class TempTool extends Object
This class is used as an object to temporary save the values of a tool, which are separated in CSVFileReader. These tool objects will be cached in an ArrayList which is used later for various calculation.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Compares two tools against one another for equality
    This returns the current coordinates of this tool as an 3D Point
    This returns the name of the current tool
    double
    This returns the current Quaternion rotation of this tool
    double
    This returns the current Quaternion rotation around the X-axis of this tool
    double
    This returns the current Quaternion rotation around the Y-axis of this tool
    double
    This returns the current Quaternion rotation around the Z-axis of this tool
    double
    This returns the current timestamp of this tool
    double
    This returns the current activity status of this tool
    void
    setData(double timestamp, double valid, double coordinate_x, double coordinate_y, double coordinate_z, double rotation_x, double rotation_y, double rotation_z, double rotation_r, String name)
    This is the set method for all tool values.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TempTool

      public TempTool()
  • Method Details

    • setData

      public void setData(double timestamp, double valid, double coordinate_x, double coordinate_y, double coordinate_z, double rotation_x, double rotation_y, double rotation_z, double rotation_r, String name)
      This is the set method for all tool values. There is only one set method, because the values of a tool will be always set together
      Parameters:
      timestamp - the recording time of the tool values
      valid - shows if the tool is active at the moment
      coordinate_x - the X axis Coordinate of the tool
      coordinate_y - the Y axis Coordinate of the tool
      coordinate_z - the Z axis Coordinate of the tool
      rotation_x - the Quaternion rotation around the X-axis
      rotation_y - the Quaternion rotation around the Y-axis
      rotation_z - the Quaternion rotation around the Z-axis
      rotation_r - the Quaternion rotation
      name - the name of the tool
    • getTimestamp

      public double getTimestamp()
      This returns the current timestamp of this tool
      Returns:
      the tool's timestamp
    • getValid

      public double getValid()
      This returns the current activity status of this tool
      Returns:
      the tool's valid
    • getCoordinate

      public Vector3D getCoordinate()
      This returns the current coordinates of this tool as an 3D Point
      Returns:
      the tool's coordinates
    • getRotationX

      public double getRotationX()
      This returns the current Quaternion rotation around the X-axis of this tool
      Returns:
      the tool's rotation_x
    • getRotationY

      public double getRotationY()
      This returns the current Quaternion rotation around the Y-axis of this tool
      Returns:
      the tool's rotation_y
    • getRotationZ

      public double getRotationZ()
      This returns the current Quaternion rotation around the Z-axis of this tool
      Returns:
      the tool's rotation_z
    • getRotationR

      public double getRotationR()
      This returns the current Quaternion rotation of this tool
      Returns:
      the tool's rotation_r
    • getName

      public String getName()
      This returns the name of the current tool
      Returns:
      the tool's name
    • equals

      public boolean equals(TempTool other)
      Compares two tools against one another for equality
      Parameters:
      other - The object to compare against
      Returns:
      If the two objects are the same