public class GasAlarmSystemApplication extends EmptyDeviceListener
Modifier and Type | Field and Description |
---|---|
Boolean |
co2LevelTooHigh |
static double |
SEUIL_CO2_CRITIC |
Constructor and Description |
---|
GasAlarmSystemApplication() |
Modifier and Type | Method and Description |
---|---|
void |
bindBinaryLight(BinaryLight binaryLight,
Map properties)
Bind Method for null dependency
|
void |
bindCarbonDioxydeSensor(CarbonDioxydeSensor carbonDioxydeSensor,
Map properties)
Bind Method for null dependency
|
void |
deviceAdded(GenericDevice arg0)
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 |
unbindCarbonDioxydeSensor(CarbonDioxydeSensor carbonDioxydeSensor,
Map properties)
Unbind Method for null dependency
|
deviceEvent
public static double SEUIL_CO2_CRITIC
public Boolean co2LevelTooHigh
public void bindBinaryLight(BinaryLight binaryLight, Map properties)
public void unbindBinaryLight(BinaryLight binaryLight, Map properties)
public void bindCarbonDioxydeSensor(CarbonDioxydeSensor carbonDioxydeSensor, Map properties)
public void unbindCarbonDioxydeSensor(CarbonDioxydeSensor carbonDioxydeSensor, Map properties)
public void deviceAdded(GenericDevice arg0)
DeviceListener
deviceAdded
in interface DeviceListener
deviceAdded
in class EmptyDeviceListener
arg0
- 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 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 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.public void stop()
public void start()
Copyright © 2012-2013 ADELE Research Group. All Rights Reserved.