Class MotionSensorService

java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.JposBase
de.gmxhome.conrad.jpos.jpos_base.motionsensor.MotionSensorService
All Implemented Interfaces:
jpos.loader.JposServiceInstance, jpos.services.BaseService, jpos.services.MotionSensorService110, jpos.services.MotionSensorService111, jpos.services.MotionSensorService112, jpos.services.MotionSensorService113, jpos.services.MotionSensorService114, jpos.services.MotionSensorService115, jpos.services.MotionSensorService116, jpos.services.MotionSensorService17, jpos.services.MotionSensorService18, jpos.services.MotionSensorService19

public class MotionSensorService extends JposBase implements jpos.services.MotionSensorService116
MotionSensor service implementation. For more details about getter, setter and method implementations, see JposBase.
  • Field Details

    • MotionSensorInterface

      public MotionSensorInterface MotionSensorInterface
      Instance of a class implementing the MotionSensorInterface for motion sensor specific setter and method calls bound to the property set. Almost always the same object as Data.
  • Constructor Details

    • MotionSensorService

      public MotionSensorService(MotionSensorProperties props, JposDevice device)
      Constructor. Stores property set and device implementation object.
      Parameters:
      props - Device service property set
      device - Device implementation object
  • Method Details

    • getMotion

      public boolean getMotion() throws jpos.JposException
      Specified by:
      getMotion in interface jpos.services.MotionSensorService17
      Throws:
      jpos.JposException
    • getTimeout

      public int getTimeout() throws jpos.JposException
      Specified by:
      getTimeout in interface jpos.services.MotionSensorService17
      Throws:
      jpos.JposException
    • setTimeout

      public void setTimeout(int timeout) throws jpos.JposException
      Specified by:
      setTimeout in interface jpos.services.MotionSensorService17
      Throws:
      jpos.JposException
    • waitForMotion

      public void waitForMotion(int timeout) throws jpos.JposException
      Specified by:
      waitForMotion in interface jpos.services.MotionSensorService17
      Throws:
      jpos.JposException