public class MeasureCollector extends fr.liglab.adele.cilia.framework.AbstractCollector implements DeviceListener<MotionSensor>
Constructor and Description |
---|
MeasureCollector() |
Modifier and Type | Method and Description |
---|---|
void |
bindProxy(MotionSensor detector)
It is called when a new service of type PresenceDetector is registered
into the gateway.
|
void |
deviceAdded(MotionSensor device)
Callback notifying the addition of a device to the platform.
|
void |
deviceEvent(MotionSensor detector,
Object data)
Callback notifying when the device want to trigger an event.
|
void |
devicePropertyAdded(MotionSensor device,
String propertyName)
Callback notifying the addition of a property on the device listened.
|
void |
devicePropertyModified(MotionSensor device,
String propertyName,
Object oldValue,
Object newValue)
Callback notifying the modification of a property on the device listened.
|
void |
devicePropertyRemoved(MotionSensor device,
String propertyName)
Callback notifying the elimination of a property on the device listened.
|
void |
deviceRemoved(MotionSensor device)
Callback notifying the elimination of a device to the platform.
|
void |
notifyDeviceEvent(String deviceSerialNumber) |
void |
unbindProxy(MotionSensor detector) |
public void bindProxy(MotionSensor detector)
detector
- A new PresenceDetector (proxy)public void unbindProxy(MotionSensor detector)
public void notifyDeviceEvent(String deviceSerialNumber)
public void deviceAdded(MotionSensor device)
DeviceListener
deviceAdded
in interface DeviceListener<MotionSensor>
device
- The device added.public void deviceRemoved(MotionSensor device)
DeviceListener
deviceRemoved
in interface DeviceListener<MotionSensor>
device
- The device removed.public void devicePropertyModified(MotionSensor device, String propertyName, Object oldValue, Object newValue)
DeviceListener
devicePropertyModified
in interface DeviceListener<MotionSensor>
device
- The devicepropertyName
- The name of the modified propertyoldValue
- The previous value of the propertynewValue
- The new value of the propertypublic void devicePropertyAdded(MotionSensor device, String propertyName)
DeviceListener
devicePropertyAdded
in interface DeviceListener<MotionSensor>
device
- The devicepropertyName
- The name of the added propertypublic void devicePropertyRemoved(MotionSensor device, String propertyName)
DeviceListener
devicePropertyRemoved
in interface DeviceListener<MotionSensor>
device
- The devicepropertyName
- The name of the removed propertypublic void deviceEvent(MotionSensor detector, Object data)
DeviceListener
deviceEvent
in interface DeviceListener<MotionSensor>
detector
- the device triggering the event.data
- the content of the event.Copyright © 2012-2013 ADELE Research Group. All Rights Reserved.