Interface MotionSensorInterface
- All Superinterfaces:
JposBaseInterface
- All Known Implementing Classes:
MotionSensorProperties
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 Summary
Modifier and TypeMethodDescriptionvoid
timeout(int timeout)
Final part of setTimeout method.void
waitForMotion(int timeout)
Final part of WaitForMotion method.Methods inherited from interface de.gmxhome.conrad.jpos.jpos_base.JposBaseInterface
asyncMode, autoDisable, checkHealth, claim, clearInput, clearOutput, close, compareFirmwareVersion, dataEventEnabled, deviceEnabled, directIO, directIO, flagWhenIdle, freezeEvents, handlePowerStateOnEnable, newJposOutputRequest, open, powerNotify, release, removeFromPropertySetList, resetStatistics, retrieveStatistics, retryInput, retryOutput, unitDataCount, updateFirmware, updateFirmware, updateStatistics
-
Method Details
-
timeout
void timeout(int timeout) throws jpos.JposExceptionFinal 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.JposExceptionFinal 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.
-