org.universAAL.lddi.lib.activityhub.driver.interfaces
Class ActivityHubDriver

Package class diagram package ActivityHubDriver
java.lang.Object
  extended by org.universAAL.lddi.lib.activityhub.driver.interfaces.ActivityHubDriver
Direct Known Subclasses:
Iso11073ContactClosureSensorInstance, Iso11073MotionSensorInstance, Iso11073SwitchSensorInstance, Iso11073UsageSensorInstance

public abstract class ActivityHubDriver
extends Object

This abstract class is designed to help developing an activityhub driver. It stores information about the deviceIds (which one?) and commands (from iso spec) Additional client config necessary? Actuators additionally have to implement the IActivityHubActuator IF. It provides an OSGi service tracker for the attached ISO device service.

Author:
Thomas Fuxreiter

Field Summary
protected  ActivityHubDriverClient client
          upper layer instance
protected  ActivityHubSensor device
           
 
Constructor Summary
ActivityHubDriver(ActivityHubDriverClient client)
          Driver state
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

device

protected ActivityHubSensor device

client

protected ActivityHubDriverClient client
upper layer instance

Constructor Detail

ActivityHubDriver

public ActivityHubDriver(ActivityHubDriverClient client)
Driver state

Method Detail

setDevice

public final boolean setDevice(ActivityHubSensor device)
store the device Add this driver instance to the driver list in my consumer. Key = deviceId link this driver to the device

Parameters:
device - the device to set

attachDriver

protected boolean attachDriver()
coupling this driver to device reference

Parameters:
id -

detachDriver

public final void detachDriver()
decoupling this driver from device reference


getDevice

public final ActivityHubSensor getDevice()
device access

Returns:

getLastSensorEvent

public abstract int getLastSensorEvent()
Returns:
last incoming sensor event

removeDriver

public final void removeDriver()
Remove this driver from the driver list in knx network driver

Parameters:
device - the device to remove


Copyright © 2014 universAAL Consortium. All Rights Reserved.