public abstract class ActivityHubDriver extends Object
Modifier and Type | Field and Description |
---|---|
protected ActivityHubDriverClient |
client
upper layer instance
|
protected ActivityHubSensor |
device |
Constructor and Description |
---|
ActivityHubDriver(ActivityHubDriverClient client)
Driver state
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
attachDriver()
coupling this driver to device reference
|
void |
detachDriver()
decoupling this driver from device reference
|
ActivityHubSensor |
getDevice()
device access
|
abstract int |
getLastSensorEvent() |
void |
removeDriver()
Remove this driver from the driver list in knx network driver
|
boolean |
setDevice(ActivityHubSensor device)
store the device Add this driver instance to the driver list in my
consumer.
|
protected ActivityHubSensor device
protected ActivityHubDriverClient client
public ActivityHubDriver(ActivityHubDriverClient client)
public final boolean setDevice(ActivityHubSensor device)
device
- the device to setprotected boolean attachDriver()
id
- public final void detachDriver()
public final ActivityHubSensor getDevice()
public abstract int getLastSensorEvent()
public final void removeDriver()
device
- the device to removeCopyright © 2018 universAAL Consortium. All rights reserved.