org.openmuc.jmbus
Class VariableDataBlock

java.lang.Object
  extended by org.openmuc.jmbus.VariableDataBlock

public class VariableDataBlock
extends java.lang.Object

Representation of a Variable Data Block. A variable data block is the basic data entity in the M-Bus application layer. They form parts of different types of M-Bus messages (e.g. a VariableDataResponse - RESP-UD). It encodes information on the data type, status, meaning, unit and value of a date. Data type and status are encoded in the DIB (Data Information Block) whilst meaning and unit are encoded in the VIB (Value Information Block).


Nested Class Summary
static class VariableDataBlock.Description
           
static class VariableDataBlock.FunctionField
           
 
Field Summary
 java.lang.Object data
           
 
Constructor Summary
VariableDataBlock(byte[] dib, byte[] vib, byte[] data, java.lang.Integer lvar)
           
 
Method Summary
 java.lang.Object getData()
           
 byte[] getDataBytes()
           
 byte getDataField()
           
 VariableDataBlock.Description getDescription()
           
 short getDeviceUnit()
           
 byte[] getDIB()
           
 VariableDataBlock.FunctionField getFunctionField()
           
 byte getScaler()
           
 long getStorageNumber()
           
 int getTariff()
           
 int getUnit()
           
 byte[] getVIB()
           
 void parse()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

data

public java.lang.Object data
Constructor Detail

VariableDataBlock

public VariableDataBlock(byte[] dib,
                         byte[] vib,
                         byte[] data,
                         java.lang.Integer lvar)
Method Detail

getDIB

public byte[] getDIB()

getVIB

public byte[] getVIB()

getDataBytes

public byte[] getDataBytes()

getData

public java.lang.Object getData()

getFunctionField

public VariableDataBlock.FunctionField getFunctionField()

getDataField

public byte getDataField()

getStorageNumber

public long getStorageNumber()

getTariff

public int getTariff()

getDeviceUnit

public short getDeviceUnit()

getDescription

public VariableDataBlock.Description getDescription()

getScaler

public byte getScaler()

getUnit

public int getUnit()

parse

public void parse()
           throws java.text.ParseException
Throws:
java.text.ParseException