Interface Meter

    • Field Detail

      • FLOW_IN

        static final java.lang.String FLOW_IN
        Represents the metering consumption flow. It can be used as SERVICE_FLOW property value.
        See Also:
        Constant Field Values
      • FLOW_OUT

        static final java.lang.String FLOW_OUT
        Represents the metering production flow. It can be used as SERVICE_FLOW property value.
        See Also:
        Constant Field Values
      • SERVICE_FLOW

        static final java.lang.String SERVICE_FLOW
        The service property value contains the metering flow. It's an optional property and available only if it's supported by the meter. The value type is java.lang.String. Possible property values:
        See Also:
        Constant Field Values
      • PROPERTY_CURRENT

        static final java.lang.String PROPERTY_CURRENT
        Specifies the current consumption or production property name. The eventable property can be read with getCurrent() getter.
        See Also:
        Constant Field Values
      • PROPERTY_TOTAL

        static final java.lang.String PROPERTY_TOTAL
        Specifies the total consumption or production property name. The eventable property can be read with getTotal() getter.
        See Also:
        Constant Field Values
    • Method Detail

      • getCurrent

        LevelData getCurrent()
                      throws DeviceException
        Returns the current metering info. It's a getter method for PROPERTY_CURRENT property.
        Returns:
        The current metering info.
        Throws:
        java.lang.IllegalStateException - If this function service object has already been unregistered.
        DeviceException - If an operation error is available.
        See Also:
        LevelData
      • getTotal

        LevelData getTotal()
                    throws DeviceException
        Returns the total metering info. It's a getter method for PROPERTY_TOTAL property.
        Returns:
        The total metering info.
        Throws:
        java.lang.IllegalStateException - If this function service object has already been unregistered.
        DeviceException - If an operation error is available.
        See Also:
        LevelData