org.universAAL.lddi.knx.interfaces
Class KnxDriver

Package class diagram package KnxDriver
java.lang.Object
  extended by org.universAAL.lddi.knx.interfaces.KnxDriver
Direct Known Subclasses:
KnxDpt1Instance, KnxDpt1Instance, KnxDpt3Instance, KnxDpt5Instance, KnxDpt9Instance

public abstract class KnxDriver
extends Object

This abstract class is designed to help developing a knx driver. It stores information about the coupled groupDevice. It provides an service tracker for the attached groupDevice service.

Author:
Thomas Fuxreiter (foex@gmx.at)

Field Summary
protected  IKnxDriverClient client
          upper layer instance
 KnxGroupDevice groupDevice
           
 
Constructor Summary
KnxDriver()
           
KnxDriver(IKnxDriverClient client)
           
 
Method Summary
protected  boolean attachDriver()
          coupling this driver to groupDevice reference
static String clearHexValue(String hexValue)
          This method remove, if present, the "0x" prefix of the hexValue variable
 void detachDriver()
          decoupling this driver from groupDevice reference
 void removeDriver()
          Remove this driver from the driver list in knx network driver
 boolean setgroupDevice(KnxGroupDevice groupDevice)
          store the groupDevice link this driver to the groupDevice
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

groupDevice

public KnxGroupDevice groupDevice

client

protected IKnxDriverClient client
upper layer instance

Constructor Detail

KnxDriver

public KnxDriver()

KnxDriver

public KnxDriver(IKnxDriverClient client)
Method Detail

setgroupDevice

public final boolean setgroupDevice(KnxGroupDevice groupDevice)
store the groupDevice link this driver to the groupDevice

Parameters:
the - groupDevice to set

attachDriver

protected boolean attachDriver()
coupling this driver to groupDevice reference

Parameters:
id -

detachDriver

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


removeDriver

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

Parameters:
groupDevice - the groupDevice to remove

clearHexValue

public static String clearHexValue(String hexValue)
This method remove, if present, the "0x" prefix of the hexValue variable

Parameters:
hexValue - string containing an hex value
Returns:
the same string without prefix


Copyright © 2014 universAAL Consortium. All Rights Reserved.