org.universAAL.lddi.knx.groupdevicemodel
Class KnxDpt3GroupDevice

Package class diagram package KnxDpt3GroupDevice
java.lang.Object
  extended by org.universAAL.lddi.knx.groupdevicemodel.KnxGroupDevice
      extended by org.universAAL.lddi.knx.groupdevicemodel.KnxDpt3GroupDevice
All Implemented Interfaces:
org.osgi.service.device.Device, IKnxDpt3, IKnxReceiveMessage, IKnxSendMessage

public class KnxDpt3GroupDevice
extends KnxGroupDevice
implements IKnxDpt3

Concrete implementation of KNX group devices for KNX data type 3.***.

Author:
Thomas Fuxreiter (foex@gmx.at)

Field Summary
 
Fields inherited from class org.universAAL.lddi.knx.groupdevicemodel.KnxGroupDevice
driver, groupDeviceCategory, logger, network
 
Fields inherited from interface org.universAAL.lddi.knx.groupdevicecategory.IKnxDpt3
CLASS, DECREASE_3_007, DOWN_3_008, INCREASE_3_007, MANUFACTURER, MATCH_CLASS, MATCH_MAKE, MATCH_MODEL, MATCH_SERIAL, MATCH_VERSION, MODEL, MY_DEVICE_CATEGORY, REVISION, SERIAL, STEPCODE_BREAK, UP_3_008
 
Fields inherited from interface org.osgi.service.device.Device
MATCH_NONE
 
Constructor Summary
KnxDpt3GroupDevice()
          empty constructor for factory
 
Method Summary
static String calculateStepCode(byte payload, int datapointTypeSubNumber)
          Calculate step code from knx message payload.
static int calculateStepNumberOfInterval(byte payload)
          Calculate Step number of interval from stepcode.
 
Methods inherited from class org.universAAL.lddi.knx.groupdevicemodel.KnxGroupDevice
addDriver, getDatapointType, getDatapointTypeMainNumber, getDatapointTypeSubNumber, getGroupAddress, getGroupDeviceCategory, getGroupDeviceId, newMessageFromKnxBus, noDriverFound, removeDriver, sendMessageToKnxBus, setParams
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KnxDpt3GroupDevice

public KnxDpt3GroupDevice()
empty constructor for factory

Method Detail

calculateStepCode

public static String calculateStepCode(byte payload,
                                       int datapointTypeSubNumber)
Calculate step code from knx message payload. last 4-bit of data byte encoding |xxxx cSSS| c = {0,1} control SSS = [000b - 111b] Stepcode

Returns:
null if the datapoint type is not implemented. Now implemented: 3.007 and 3.008

calculateStepNumberOfInterval

public static int calculateStepNumberOfInterval(byte payload)
Calculate Step number of interval from stepcode. stepcode are bits 1-3 Step Number of intervals = 2^(stepcode-1); max. 64



Copyright © 2014 universAAL Consortium. All Rights Reserved.