public abstract class MotionSensorBase extends ObserveableComponentBase implements MotionSensor
| Modifier and Type | Field and Description |
|---|---|
protected Date |
lastInactivityTimestamp |
protected Date |
lastMotionTimestamp |
listeners| Constructor and Description |
|---|
MotionSensorBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(MotionSensorListener... listener) |
Date |
getLastInactivityTimestamp() |
Date |
getLastMotionTimestamp() |
abstract boolean |
isMotionDetected() |
protected void |
notifyListeners(MotionSensorChangeEvent event) |
void |
removeListener(MotionSensorListener... listener) |
addListener, removeAllListeners, removeListenerclearProperties, getName, getProperties, getProperty, getProperty, getTag, hasProperty, removeProperty, setName, setProperty, setTagclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitremoveAllListenersclearProperties, getName, getProperties, getProperty, getProperty, getTag, hasProperty, removeProperty, setName, setProperty, setTagprotected Date lastMotionTimestamp
protected Date lastInactivityTimestamp
public Date getLastMotionTimestamp()
getLastMotionTimestamp in interface MotionSensorpublic Date getLastInactivityTimestamp()
getLastInactivityTimestamp in interface MotionSensorpublic abstract boolean isMotionDetected()
isMotionDetected in interface MotionSensorpublic void addListener(MotionSensorListener... listener)
addListener in interface MotionSensorpublic void removeListener(MotionSensorListener... listener)
removeListener in interface MotionSensorprotected void notifyListeners(MotionSensorChangeEvent event)
Copyright © 2012-2013 Pi4J. All Rights Reserved.