Package com.blukii.sdk.config.datatype
Class AccelerometerValue
java.lang.Object
com.blukii.sdk.config.datatype.SensorPacket
com.blukii.sdk.config.datatype.SensorValue
com.blukii.sdk.config.datatype.AccelerometerValue
This class represents data type
AccelerometerValue
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
getX()
Gets the x axis value.int
getY()
Gets the y axis value.int
getZ()
Gets the z axis value.void
setX
(int x) Sets the x axis value.void
setY
(int y) Sets the y axis value.void
setZ
(int z) Sets the z axis value.toString()
int
validate()
Validates the values contained in this object.Methods inherited from class com.blukii.sdk.config.datatype.SensorValue
getIndex, setIndex
Methods inherited from class com.blukii.sdk.config.datatype.SensorPacket
getRecordingIndex, getSensorType, setRecordingIndex, setSensorType
-
Constructor Details
-
AccelerometerValue
public AccelerometerValue()
-
-
Method Details
-
getX
public int getX()Gets the x axis value.- Returns:
- x axis value
-
setX
public void setX(int x) Sets the x axis value.- Parameters:
x
- x axis value
-
getY
public int getY()Gets the y axis value.- Returns:
- y axis value
-
setY
public void setY(int y) Sets the y axis value.- Parameters:
y
- y axis value
-
getZ
public int getZ()Gets the z axis value.- Returns:
- z axis value
-
setZ
public void setZ(int z) Sets the z axis value.- Parameters:
z
- z axis value
-
equals
- Overrides:
equals
in classSensorValue
-
toString
-
validate
public int validate()Validates the values contained in this object.This can be used when you create an object, to verify the values set.
- Returns:
- a state from
Validation
-