org.universAAL.lddi.knx.exporter
Class KnxContextPublisher

Package class diagram package KnxContextPublisher
java.lang.Object
  extended by org.universAAL.lddi.knx.exporter.KnxContextPublisher

public class KnxContextPublisher
extends Object

Sends context events to uAAL context bus using the device.ontology.

Author:
Thomas Fuxreiter (foex@gmx.at)

Field Summary
static String KNX_SERVER_NAMESPACE
           
 
Constructor Summary
KnxContextPublisher(ModuleContext mc, KnxManager knxManager)
          Constructor.
 
Method Summary
 void publishKnxEvent(String groupDeviceId, int datapointTypeMainNubmer, int datapointTypeSubNubmer, boolean value)
          A proper ontology class is chosen according to main and sub type.
 void publishKnxEvent(String groupDeviceId, int datapointTypeMainNumber, int datapointTypeSubNubmer, float value)
          A proper ontology class is chosen according to main and sub type.
 void publishKnxEvent(String groupDeviceId, int datapointTypeMainNubmer, int datapointTypeSubNubmer, String code)
          A proper ontology class is chosen according to main and sub type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KNX_SERVER_NAMESPACE

public static final String KNX_SERVER_NAMESPACE
See Also:
Constant Field Values
Constructor Detail

KnxContextPublisher

public KnxContextPublisher(ModuleContext mc,
                           KnxManager knxManager)
Constructor.

Parameters:
mc -
knxManager -
Method Detail

publishKnxEvent

public void publishKnxEvent(String groupDeviceId,
                            int datapointTypeMainNubmer,
                            int datapointTypeSubNubmer,
                            boolean value)
A proper ontology class is chosen according to main and sub type. Boolean value is mapped to status ACTIVATED or NOTACTIVATED. The event is published on the uAAL context bus.

Parameters:
groupDeviceId -
datapointTypeMainNubmer -
datapointTypeSubNubmer -
value -

publishKnxEvent

public void publishKnxEvent(String groupDeviceId,
                            int datapointTypeMainNubmer,
                            int datapointTypeSubNubmer,
                            String code)
A proper ontology class is chosen according to main and sub type. The event is published on the uAAL context bus.

Parameters:
groupDeviceId -
datapointTypeMainNubmer -
datapointTypeSubNubmer -
code -

publishKnxEvent

public void publishKnxEvent(String groupDeviceId,
                            int datapointTypeMainNumber,
                            int datapointTypeSubNubmer,
                            float value)
A proper ontology class is chosen according to main and sub type. The event is published on the uAAL context bus.

Parameters:
groupDeviceId -
datapointTypeMainNubmer -
datapointTypeSubNubmer -
value -


Copyright © 2014 universAAL Consortium. All Rights Reserved.