|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.universAAL.lddi.knx.groupdevicemodel.KnxGroupDevice
public abstract class KnxGroupDevice
One KNX group groupDevice represents one groupAddress (with additional properties) from ETS4 XML export. This groupDevice is registered in OSGi framework.
Field Summary | |
---|---|
protected IKnxReceiveMessage |
driver
reference to my driver instance; can be just one! |
KnxGroupDeviceCategoryUtil.KnxGroupDeviceCategory |
groupDeviceCategory
OSGi DAS properties |
protected org.osgi.service.log.LogService |
logger
|
protected IKnxNetwork |
network
|
Fields inherited from interface org.osgi.service.device.Device |
---|
MATCH_NONE |
Constructor Summary | |
---|---|
KnxGroupDevice(KnxGroupDeviceCategoryUtil.KnxGroupDeviceCategory knxGroupDeviceCategory)
empty constructor for factory |
Method Summary | |
---|---|
void |
addDriver(IKnxReceiveMessage driverInstance)
store a driver reference for this groupDevice |
String |
getDatapointType()
|
int |
getDatapointTypeMainNumber()
Returns 0 on error. |
int |
getDatapointTypeSubNumber()
Returns 0 on error. |
String |
getGroupAddress()
|
KnxGroupDeviceCategoryUtil.KnxGroupDeviceCategory |
getGroupDeviceCategory()
|
String |
getGroupDeviceId()
|
void |
newMessageFromKnxBus(byte[] event)
Receive low level messages from the knx bus |
void |
noDriverFound()
|
void |
removeDriver()
remove the driver reference of this groupDevice |
void |
sendMessageToKnxBus(byte[] event)
Send message to the knx bus |
void |
setParams(KnxGroupAddress knxGroupAddress,
IKnxNetwork network,
org.osgi.service.log.LogService logger)
Fill empty groupDevice with parameters and set it alive |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public KnxGroupDeviceCategoryUtil.KnxGroupDeviceCategory groupDeviceCategory
protected org.osgi.service.log.LogService logger
protected IKnxNetwork network
protected IKnxReceiveMessage driver
Constructor Detail |
---|
public KnxGroupDevice(KnxGroupDeviceCategoryUtil.KnxGroupDeviceCategory knxGroupDeviceCategory)
Method Detail |
---|
public void setParams(KnxGroupAddress knxGroupAddress, IKnxNetwork network, org.osgi.service.log.LogService logger)
knxGroupAddress
- network
- logger2
- public void addDriver(IKnxReceiveMessage driverInstance)
public void removeDriver()
public void newMessageFromKnxBus(byte[] event)
newMessageFromKnxBus
in interface IKnxReceiveMessage
event
- the status/event byte of the knx telegrampublic void sendMessageToKnxBus(byte[] event)
sendMessageToKnxBus
in interface IKnxSendMessage
event
- the status/event byte of the knx telegrampublic void noDriverFound()
noDriverFound
in interface org.osgi.service.device.Device
public String getGroupAddress()
public String getDatapointType()
public int getDatapointTypeMainNumber()
for dpt "1.018" this method will return 1
public int getDatapointTypeSubNumber()
for dpt "1.018" this method will return 18
public KnxGroupDeviceCategoryUtil.KnxGroupDeviceCategory getGroupDeviceCategory()
public String getGroupDeviceId()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |