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
MotionSensor service implementation. For more details about getter, setter and method implementations,
see JposBase.
-
Field Summary
FieldsModifier and TypeFieldDescriptionInstance of a class implementing the MotionSensorInterface for motion sensor specific setter and method calls bound to the property set.Fields inherited from class de.gmxhome.conrad.jpos.jpos_base.JposBase
Device, DeviceInterface, Props
-
Constructor Summary
ConstructorsConstructorDescriptionMotionSensorService(MotionSensorProperties props, JposDevice device)
Constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
void
setTimeout(int timeout)
void
waitForMotion(int timeout)
Methods inherited from class de.gmxhome.conrad.jpos.jpos_base.JposBase
callNowOrLater, check, check, check, check, checkBusy, checkClaimed, checkEnabled, checkEnabledUnclaimed, checkFirstEnabled, checkHealth, checkNoChangedOrClaimed, checkOpened, claim, clearInput, clearInputProperties, clearOutput, close, compareFirmwareVersion, deepToString, deleteInstance, directIO, getAsyncMode, getAutoDisable, getCapCompareFirmwareVersion, getCapPowerReporting, getCapStatisticsReporting, getCapUpdateFirmware, getCapUpdateStatistics, getCheckHealthText, getClaimed, getDataCount, getDataEventEnabled, getDeviceEnabled, getDeviceServiceDescription, getDeviceServiceVersion, getFreezeEvents, getOutputID, getPhysicalDeviceDescription, getPhysicalDeviceName, getPowerNotify, getPowerState, getPropertyString, getState, logAsyncCall, logCall, logCall, logGet, logGet, logPreCall, logPreCall, logPreSet, logSet, open, release, removeOuterArraySpecifier, resetStatistics, retrieveStatistics, setAsyncMode, setAutoDisable, setDataEventEnabled, setDeviceEnabled, setFreezeEvents, setPowerNotify, signalRelease, startClaiming, updateFirmware, updateStatistics
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface jpos.services.BaseService
checkHealth, claim, close, directIO, getCheckHealthText, getClaimed, getDeviceEnabled, getDeviceServiceDescription, getDeviceServiceVersion, getFreezeEvents, getPhysicalDeviceDescription, getPhysicalDeviceName, getState, open, release, setDeviceEnabled, setFreezeEvents
Methods inherited from interface jpos.loader.JposServiceInstance
deleteInstance
Methods inherited from interface jpos.services.MotionSensorService17
getCapPowerReporting, getPowerNotify, getPowerState, setPowerNotify
Methods inherited from interface jpos.services.MotionSensorService18
getCapStatisticsReporting, getCapUpdateStatistics, resetStatistics, retrieveStatistics, updateStatistics
Methods inherited from interface jpos.services.MotionSensorService19
compareFirmwareVersion, getCapCompareFirmwareVersion, getCapUpdateFirmware, updateFirmware
-
Field Details
-
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
Constructor. Stores property set and device implementation object.- Parameters:
props
- Device service property setdevice
- Device implementation object
-
-
Method Details
-
getMotion
public boolean getMotion() throws jpos.JposException- Specified by:
getMotion
in interfacejpos.services.MotionSensorService17
- Throws:
jpos.JposException
-
getTimeout
public int getTimeout() throws jpos.JposException- Specified by:
getTimeout
in interfacejpos.services.MotionSensorService17
- Throws:
jpos.JposException
-
setTimeout
public void setTimeout(int timeout) throws jpos.JposException- Specified by:
setTimeout
in interfacejpos.services.MotionSensorService17
- Throws:
jpos.JposException
-
waitForMotion
public void waitForMotion(int timeout) throws jpos.JposException- Specified by:
waitForMotion
in interfacejpos.services.MotionSensorService17
- Throws:
jpos.JposException
-