org.universAAL.lddi.knx.groupdevicemodel
Class KnxDpt9GroupDevice

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

public class KnxDpt9GroupDevice
extends KnxGroupDevice
implements IKnxDpt9

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

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.IKnxDpt9
CLASS, DEFAULT_INVALID_VALUE, DEFAULT_MAX_VALUE, DEFAULT_MIN_VALUE, MANUFACTURER, MATCH_CLASS, MATCH_MAKE, MATCH_MODEL, MATCH_SERIAL, MATCH_VERSION, MODEL, MY_DEVICE_CATEGORY, RESOLUTION_9_001, REVISION, SERIAL
 
Fields inherited from interface org.osgi.service.device.Device
MATCH_NONE
 
Constructor Summary
KnxDpt9GroupDevice()
          empty constructor for factory
 
Method Summary
static float calculateFloatValue(byte[] payload)
          Calculate float value from knx message payload.
static byte[] createPayloadFromFloatValue(float value)
           
 
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

KnxDpt9GroupDevice

public KnxDpt9GroupDevice()
empty constructor for factory

Method Detail

calculateFloatValue

public static float calculateFloatValue(byte[] payload)
Calculate float value from knx message payload. MSB LSB float value |-------- --------| encoding MEEEEMMM MMMMMMMM FloatValue = (0,01*M)*2(E) E = [0 : 15] M = [-2 048 : 2 047], two's complement notation


createPayloadFromFloatValue

public static byte[] createPayloadFromFloatValue(float value)


Copyright © 2014 universAAL Consortium. All Rights Reserved.