Class SoSensor

    • Method Detail

      • setTask

        public void setTask​(java.lang.Runnable task)
        Sets the task to be executed when the sensor is triggered. Execute the task means simply call its run method.
      • schedule

        public void schedule()
      • unschedule

        public void unschedule()
      • isScheduled

        public boolean isScheduled()
        Returns true if this sensor has been scheduled and is waiting in a sensor queue to be triggered. Sensors are removed from the queue before their callback function is triggered.