Package inputOutput
Class TempTool
java.lang.Object
inputOutput.TempTool
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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Compares two tools against one another for equalityThis returns the current coordinates of this tool as an 3D PointgetName()
This returns the name of the current tooldouble
This returns the current Quaternion rotation of this tooldouble
This returns the current Quaternion rotation around the X-axis of this tooldouble
This returns the current Quaternion rotation around the Y-axis of this tooldouble
This returns the current Quaternion rotation around the Z-axis of this tooldouble
This returns the current timestamp of this tooldouble
getValid()
This returns the current activity status of this toolvoid
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.
-
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 valuesvalid
- shows if the tool is active at the momentcoordinate_x
- the X axis Coordinate of the toolcoordinate_y
- the Y axis Coordinate of the toolcoordinate_z
- the Z axis Coordinate of the toolrotation_x
- the Quaternion rotation around the X-axisrotation_y
- the Quaternion rotation around the Y-axisrotation_z
- the Quaternion rotation around the Z-axisrotation_r
- the Quaternion rotationname
- 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
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
This returns the name of the current tool- Returns:
- the tool's name
-
equals
Compares two tools against one another for equality- Parameters:
other
- The object to compare against- Returns:
- If the two objects are the same
-