org.universAAL.lddi.knx.refinementdriver.dpt1.activityhub
Class KnxDpt1RefinementDriver

Package class diagram package KnxDpt1RefinementDriver
java.lang.Object
  extended by org.universAAL.lddi.knx.refinementdriver.dpt1.activityhub.KnxDpt1RefinementDriver
All Implemented Interfaces:
org.osgi.service.device.Driver

public class KnxDpt1RefinementDriver
extends Object
implements org.osgi.service.device.Driver

checks device references coming from OSGi DeviceManager; matching KNX groupDevice category attaches exactly one driver instance per deviceId (first groupDevice) subsequent devices with the same deviceId are rejected! when an attached groupDevice service is unregistered: drivers must take the appropriate action to release this groupDevice service and peform any necessary cleanup, as described in their groupDevice category spec Initially a manual mapping config from KNX to ISO sensors were implemented. But in universAAL this configuration should be done by AAL Space configurator. Therefore this code is commented; but kept here for potential later use.

Author:
Thomas Fuxreiter (foex@gmx.at)

Constructor Summary
KnxDpt1RefinementDriver(org.osgi.framework.BundleContext context, org.osgi.service.log.LogService log)
           
 
Method Summary
 String attach(org.osgi.framework.ServiceReference reference)
           
 int match(org.osgi.framework.ServiceReference reference)
          called from OSGI DeviceManager check device services if they have identical device_category as this driver
 void stop()
          delete instance references unregister my services ?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KnxDpt1RefinementDriver

public KnxDpt1RefinementDriver(org.osgi.framework.BundleContext context,
                               org.osgi.service.log.LogService log)
Parameters:
context -
logTracker -
Method Detail

match

public int match(org.osgi.framework.ServiceReference reference)
          throws Exception
called from OSGI DeviceManager check device services if they have identical device_category as this driver

Specified by:
match in interface org.osgi.service.device.Driver
Throws:
Exception
See Also:
Driver.match(org.osgi.framework.ServiceReference)

attach

public String attach(org.osgi.framework.ServiceReference reference)
              throws Exception
Specified by:
attach in interface org.osgi.service.device.Driver
Throws:
Exception
See Also:
attach the device service reference to a "driving" instance; couple them

stop

public void stop()
delete instance references unregister my services ?



Copyright © 2014 universAAL Consortium. All Rights Reserved.