org.universAAL.lddi.knx.driver
Class KnxDpt3Driver
java.lang.Object
org.universAAL.lddi.knx.driver.KnxDpt3Driver
- All Implemented Interfaces:
- org.osgi.service.device.Driver
public class KnxDpt3Driver
- extends Object
- implements org.osgi.service.device.Driver
This Driver class manages driver instances for KNX DPT3 devices. It is called
on new device references coming from OSGi DeviceManager; matching on device
category. It instantiates drivers for every matching KNX groupDevice. Attaches
exactly one driver instance per deviceId. Subsequent devices with the same
deviceId are rejected!
When an attached device service is unregistered: drivers must take the
appropriate action to release this device service and perform any necessary
cleanup, as described in their groupDevice category spec.
- Author:
- Thomas Fuxreiter (foex@gmx.at)
Method Summary |
String |
attach(org.osgi.framework.ServiceReference reference)
|
int |
match(org.osgi.framework.ServiceReference reference)
|
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 |
client
public IKnxDriverClient client
context
public org.osgi.framework.BundleContext context
logger
public org.osgi.service.log.LogService logger
connectedDriverInstanceMap
public final Map<String,KnxDpt3Instance> connectedDriverInstanceMap
- Management Map of instantiated driver instances. Key is groupAddress of
the KNX groupDevice Value is the associated driver
KnxDpt3Driver
public KnxDpt3Driver(IKnxDriverClient client,
org.osgi.framework.BundleContext context)
- Parameters:
knxManager
- context
-
match
public int match(org.osgi.framework.ServiceReference reference)
throws Exception
- Specified by:
match
in interface org.osgi.service.device.Driver
- Throws:
Exception
attach
public String attach(org.osgi.framework.ServiceReference reference)
throws Exception
- Specified by:
attach
in interface org.osgi.service.device.Driver
- Throws:
Exception
stop
public void stop()
- delete instance references
unregister my services ?
Copyright © 2014 universAAL Consortium. All Rights Reserved.