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