Package com.blukii.sdk.config.datatype
Class SensorInterrupt
java.lang.Object
com.blukii.sdk.config.datatype.SensorInterrupt
This class represents data type
AccelerometerValue
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Gets the threshold for activating the sensor interrupt.int
Gets the inactive threshold that must be undercut after an interrupt, for being able to activate the next interrupt.int
Gets the amount of measured values after interruptvoid
setActiveThreshold
(int activeThreshold) Sets the threshold for activating the sensor interrupt.void
setInactiveThreshold
(int inactiveThreshold) Gets the inactive threshold that must be undercut after an interrupt, for being able to activate the next interrupt.void
setMeasureCount
(int measureCount) Sets the amount of measured values after interrupttoString()
int
validate()
Validates the values contained in this object.
-
Constructor Details
-
SensorInterrupt
public SensorInterrupt()
-
-
Method Details
-
getActiveThreshold
public int getActiveThreshold()Gets the threshold for activating the sensor interrupt.- Returns:
- threshold for sensor interrupt
-
setActiveThreshold
public void setActiveThreshold(int activeThreshold) Sets the threshold for activating the sensor interrupt.- Parameters:
activeThreshold
- threshold for sensor interrupt
-
getInactiveThreshold
public int getInactiveThreshold()Gets the inactive threshold that must be undercut after an interrupt, for being able to activate the next interrupt.- Returns:
- inactive threshold for sensor interrupt
-
setInactiveThreshold
public void setInactiveThreshold(int inactiveThreshold) Gets the inactive threshold that must be undercut after an interrupt, for being able to activate the next interrupt.- Parameters:
inactiveThreshold
- inactive threshold for sensor interrupt
-
getMeasureCount
public int getMeasureCount()Gets the amount of measured values after interrupt- Returns:
- amount of measured values after interrupt
-
setMeasureCount
public void setMeasureCount(int measureCount) Sets the amount of measured values after interrupt- Parameters:
measureCount
- amount of measured values after interrupt
-
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
-
equals
-
toString
-