Class DataSet

java.lang.Object
org.openmuc.j62056.DataSet

public class DataSet extends Object
A data message contains a list of data sets. Each data set consists of 3 fields "address", "value", and "unit". Each of these fields is optional an may thus be equal to the empty string.
  • Method Details

    • getAddress

      public String getAddress()
      Returns the address/ID of this data set.

      The address is usually an OBIS code of the format A-B:C.D.E*F or on older EDIS code of the format C.D.E. that specifies exactly what the value of this data set represents. C is the type of the measured quantity (e.g 1 = positive active power), D describes the measurement mode and E is the tariff (e.g. 0 for total or 1 for tariff 1 only) associated with this value.

      If this data set contains no address this function returns the empty string.

      Returns:
      the address
    • getValue

      public String getValue()
      Returns the value of this data set as a string.

      The value is usually a decimal number that can be converted to a Double using Double.parseDouble(String). But the value may also be a date or have some other format.

      If this data set contains no value this function returns the empty string.

      Returns:
      the value
    • getUnit

      public String getUnit()
      Returns the unit of this data set as a string.

      If this data set contains no unit this function returns the empty string.

      Returns:
      the unit
    • toString

      public String toString()
      Overrides:
      toString in class Object