public class LightFollowMeApplication extends EmptyDeviceListener
Constructor and Description |
---|
LightFollowMeApplication() |
Modifier and Type | Method and Description |
---|---|
void |
bindBinaryLight(BinaryLight binaryLight,
Map properties)
Bind Method for null dependency
|
void |
bindPowerSwitch(PowerSwitch powerSwitch,
Map properties)
Bind Method for null dependency
|
void |
bindPresenceSensor(PresenceSensor presenceSensor,
Map properties)
Bind Method for null dependency
|
void |
deviceAdded(GenericDevice device)
Callback notifying the addition of a device to the platform.
|
void |
devicePropertyAdded(GenericDevice arg0,
String arg1)
Callback notifying the addition of a property on the device listened.
|
void |
devicePropertyModified(GenericDevice device,
String propertyName,
Object oldValue,
Object newValue)
Callback notifying the modification of a property on the device listened.
|
void |
devicePropertyRemoved(GenericDevice arg0,
String arg1)
Callback notifying the elimination of a property on the device listened.
|
void |
deviceRemoved(GenericDevice arg0)
Callback notifying the elimination of a device to the platform.
|
void |
start()
Component Lifecycle Method
|
void |
stop()
Component Lifecycle Method
|
void |
unbindBinaryLight(BinaryLight binaryLight,
Map properties)
Unbind Method for null dependency
|
void |
unbindPowerswitch(PowerSwitch powerSwitch,
Map properties)
Unbind Method for null dependency
|
void |
unbindPrensenceSensor(PresenceSensor presenceSensor,
Map properties)
Unbind Method for null dependency
|
deviceEvent
public void bindPowerSwitch(PowerSwitch powerSwitch, Map properties)
public void unbindPowerswitch(PowerSwitch powerSwitch, Map properties)
public void bindBinaryLight(BinaryLight binaryLight, Map properties)
public void unbindBinaryLight(BinaryLight binaryLight, Map properties)
public void bindPresenceSensor(PresenceSensor presenceSensor, Map properties)
public void unbindPrensenceSensor(PresenceSensor presenceSensor, Map properties)
public void stop()
public void start()
public void devicePropertyModified(GenericDevice device, String propertyName, Object oldValue, Object newValue)
DeviceListener
devicePropertyModified
in interface DeviceListener
devicePropertyModified
in class EmptyDeviceListener
device
- The devicepropertyName
- The name of the modified propertyoldValue
- The previous value of the propertynewValue
- The new value of the propertypublic void deviceAdded(GenericDevice device)
DeviceListener
deviceAdded
in interface DeviceListener
deviceAdded
in class EmptyDeviceListener
device
- The device added.public void devicePropertyAdded(GenericDevice arg0, String arg1)
DeviceListener
devicePropertyAdded
in interface DeviceListener
devicePropertyAdded
in class EmptyDeviceListener
arg0
- The devicearg1
- The name of the added propertypublic void devicePropertyRemoved(GenericDevice arg0, String arg1)
DeviceListener
devicePropertyRemoved
in interface DeviceListener
devicePropertyRemoved
in class EmptyDeviceListener
arg0
- The devicearg1
- The name of the removed propertypublic void deviceRemoved(GenericDevice arg0)
DeviceListener
deviceRemoved
in interface DeviceListener
deviceRemoved
in class EmptyDeviceListener
arg0
- The device removed.Copyright © 2012-2013 ADELE Research Group. All Rights Reserved.