public interface Meter extends Function
Meter
function can measure metering information. The function
provides these properties:
PROPERTY_CURRENT
- eventable property accessible with
getCurrent()
getter;PROPERTY_TOTAL
- eventable property accessible with
getTotal()
getter.The sensor type can be:
Types.PRESSURE
Types.GAS
Types.POWER
Types.WATER
Types.HEAT
Types.COLD
Types
LevelData
Modifier and Type | Field and Description |
---|---|
static String |
FLOW_IN
Represents the metering consumption flow.
|
static String |
FLOW_OUT
Represents the metering production flow.
|
static String |
PROPERTY_CURRENT
Specifies the current consumption or production property name.
|
static String |
PROPERTY_TOTAL
Specifies the total consumption or production property name.
|
static String |
SERVICE_FLOW
The service property value contains the metering flow.
|
SERVICE_DESCRIPTION, SERVICE_DEVICE_UID, SERVICE_OPERATION_NAMES, SERVICE_PROPERTY_NAMES, SERVICE_REFERENCE_UIDS, SERVICE_TYPE, SERVICE_UID, SERVICE_VERSION
Modifier and Type | Method and Description |
---|---|
LevelData |
getCurrent()
Returns the current metering info.
|
LevelData |
getTotal()
Returns the total metering info.
|
getOperationMetadata, getPropertyMetadata, getServiceProperty, getServicePropertyKeys
static final String FLOW_IN
SERVICE_FLOW
property value.static final String FLOW_OUT
SERVICE_FLOW
property value.static final String SERVICE_FLOW
java.lang.String
. Possible property values:
static final String PROPERTY_CURRENT
getCurrent()
getter.static final String PROPERTY_TOTAL
getTotal()
getter.LevelData getCurrent() throws DeviceException
PROPERTY_CURRENT
property.IllegalStateException
- If this function service object has already
been unregistered.DeviceException
- If an operation error is available.LevelData
LevelData getTotal() throws DeviceException
PROPERTY_TOTAL
property.IllegalStateException
- If this function service object has already
been unregistered.DeviceException
- If an operation error is available.LevelData
Copyright © Contributors to the Eclipse Foundation Licensed under the Eclipse Foundation Specification License – v1.0