public class DataSet
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAddress()
Returns the address/ID of this data set.
|
java.lang.String |
getUnit()
Returns the unit of this data set as a string.
|
java.lang.String |
getValue()
Returns the value of this data set as a string.
|
java.lang.String |
toString() |
public java.lang.String getAddress()
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.
public java.lang.String getValue()
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.
public java.lang.String getUnit()
If this data set contains no unit this function returns the empty string.
public java.lang.String toString()
toString
in class java.lang.Object