Class DataSet
-
Method Summary
-
Method Details
-
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
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
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
-