public class ZigbeePushButton extends AbstractDevice implements PushButton, ZigbeeDevice, ZigbeeDeviceTracker
PUSH_AND_HOLD
DEFAULT_HEIGHT, DEFAULT_WIDTH, DEVICE_SERIAL_NUMBER, FAULT_NO, FAULT_PROPERTY_NAME, FAULT_UNKNOWN, FAULT_YES, LOCATION_PROPERTY_NAME, LOCATION_UNKNOWN, STATE_ACTIVATED, STATE_DEACTIVATED, STATE_PROPERTY_NAME, STATE_UNKNOWN
BATTERY_LEVEL
FILTER_PROP_NAME
Constructor and Description |
---|
ZigbeePushButton() |
Modifier and Type | Method and Description |
---|---|
void |
deviceAdded(DeviceInfo deviceInfo)
Called when a new device has been discovered by the driver.
|
void |
deviceBatteryLevelChanged(String address,
float oldBatteryLevel,
float newBatteryLevel)
Called when a device battery level has changed.
|
void |
deviceDataChanged(String address,
Data oldData,
Data newData)
Called when a device data has changed.
|
void |
deviceRemoved(DeviceInfo deviceInfo)
Called when a device has been discovered by the driver.
|
String |
getSerialNumber()
Return the serial number of the device.
|
boolean |
isPushed()
Retrieves the state of the button.
|
addListener, constainsProperty, enterInZones, equals, getFault, getProperties, getPropertyValue, getState, hashCode, hasPropertyValue, leavingZones, notifyListeners, removeListener, removeProperty, setFault, setPropertyValue, setState
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addListener, constainsProperty, enterInZones, getFault, getProperties, getPropertyValue, getState, hasPropertyValue, leavingZones, removeListener, removeProperty, setFault, setPropertyValue, setState
public String getSerialNumber()
GenericDevice
getSerialNumber
in interface GenericDevice
GenericDevice.DEVICE_SERIAL_NUMBER
public boolean isPushed()
PushButton
isPushed
in interface PushButton
public void deviceAdded(DeviceInfo deviceInfo)
deviceAdded
in interface ZigbeeDeviceTracker
deviceInfo
- information about the devicepublic void deviceRemoved(DeviceInfo deviceInfo)
deviceRemoved
in interface ZigbeeDeviceTracker
deviceInfo
- information about the devicepublic void deviceDataChanged(String address, Data oldData, Data newData)
deviceDataChanged
in interface ZigbeeDeviceTracker
address
- a device module addressoldData
- previous device datanewData
- new device datapublic void deviceBatteryLevelChanged(String address, float oldBatteryLevel, float newBatteryLevel)
deviceBatteryLevelChanged
in interface ZigbeeDeviceTracker
address
- a device module addressoldBatteryLevel
- previous device battery levelnewBatteryLevel
- new device battery levelCopyright © 2012-2013 ADELE Research Group. All Rights Reserved.