public class MotionSensorChangeEvent extends EventObject
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
motion |
protected Date |
timestamp |
source| Constructor and Description |
|---|
MotionSensorChangeEvent(MotionSensor sensor,
boolean motion) |
MotionSensorChangeEvent(MotionSensor sensor,
boolean motion,
Date timestamp) |
| Modifier and Type | Method and Description |
|---|---|
MotionSensor |
getSensor() |
Date |
getTimestamp() |
boolean |
isMotionDetected() |
getSource, toStringprotected final Date timestamp
protected final boolean motion
public MotionSensorChangeEvent(MotionSensor sensor, boolean motion, Date timestamp)
public MotionSensorChangeEvent(MotionSensor sensor, boolean motion)
public MotionSensor getSensor()
public Date getTimestamp()
public boolean isMotionDetected()
Copyright © 2012-2013 Pi4J. All Rights Reserved.