Interface MotionSensorInterface

All Superinterfaces:
JposBaseInterface
All Known Implementing Classes:
MotionSensorProperties

public interface MotionSensorInterface extends JposBaseInterface
Interface for methods that implement property setter and method calls for the MotionSensor device category. For details about properties, methods and method parameters, see UPOS specification, chapter Motion Sensor. Further details about error handling can be found in introduction - Device Behavior Models - Errors.
  • Method Details

    • timeout

      void timeout(int timeout) throws jpos.JposException
      Final part of setTimeout method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result:
      • Device is enabled,
      • timeout is > 0.
      Parameters:
      timeout - Time delay for motion
      Throws:
      jpos.JposException - If an error occurs.
    • waitForMotion

      void waitForMotion(int timeout) throws jpos.JposException
      Final part of WaitForMotion method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result:
      • Device is enabled,
      • timeout is a positive value or FOREVER.
      Parameters:
      timeout - Number of milliseconds to wait before firing an exception with JPOS_E_TIMEOUT.
      Throws:
      jpos.JposException - If an error or a timeout occurs.