public abstract class KnxGroupDevice extends Object implements org.osgi.service.device.Device, IKnxReceiveMessage, IKnxSendMessage
Modifier and Type | Field and Description |
---|---|
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 |
Constructor and Description |
---|
KnxGroupDevice(KnxGroupDeviceCategoryUtil.KnxGroupDeviceCategory knxGroupDeviceCategory)
empty constructor for factory
|
Modifier and Type | Method and Description |
---|---|
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
|
public KnxGroupDeviceCategoryUtil.KnxGroupDeviceCategory groupDeviceCategory
protected org.osgi.service.log.LogService logger
protected IKnxNetwork network
protected IKnxReceiveMessage driver
public KnxGroupDevice(KnxGroupDeviceCategoryUtil.KnxGroupDeviceCategory knxGroupDeviceCategory)
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()
Copyright © 2018 universAAL Consortium. All rights reserved.