Class SensorInterrupt

java.lang.Object
com.blukii.sdk.config.datatype.SensorInterrupt

public final class SensorInterrupt extends Object
This class represents data type AccelerometerValue
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    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 interrupt
    void
    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 interrupt
     
    int
    Validates the values contained in this object.

    Methods inherited from class java.lang.Object

    getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 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

      public boolean equals(@Nullable Object obj)
      Overrides:
      equals in class Object
    • toString

      @NonNull public String toString()
      Overrides:
      toString in class Object