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