Top Description Fields Methods
org.osgi.service.dal.functions

public Interface Meter

extends Function
Imports
org.osgi.service.dal.DeviceException, .Function, org.osgi.service.dal.functions.data.LevelData

Meter function can measure metering information. The function provides these properties:

The sensor type can be:

See Also
LevelData

Field Summary

Modifier and TypeField and Description
public static final String
FLOW_IN

Represents the metering consumption flow.

public static final String
FLOW_OUT

Represents the metering production flow.

public static final String
PROPERTY_CURRENT

Specifies the current consumption or production property name.

public static final String
PROPERTY_TOTAL

Specifies the total consumption or production property name.

public static final String
SERVICE_FLOW

The service property value contains the metering flow.

Inherited from org.osgi.service.dal.Function:
SERVICE_DESCRIPTIONSERVICE_DEVICE_UIDSERVICE_OPERATION_NAMESSERVICE_PROPERTY_NAMESSERVICE_REFERENCE_UIDSSERVICE_TYPESERVICE_UIDSERVICE_VERSION

Method Summary

Modifier and TypeMethod and Description
public LevelData

Returns:

The current metering info.
getCurrent
()

Returns the current metering info.

public LevelData

Returns:

The total metering info.
getTotal
()

Returns the total metering info.

Inherited from org.osgi.service.dal.Function:
getOperationMetadatagetPropertyMetadatagetServicePropertygetServicePropertyKeys

Field Detail

FLOW_INback to summary
public static final String FLOW_IN

Represents the metering consumption flow. It can be used as SERVICE_FLOW property value.

FLOW_OUTback to summary
public static final String FLOW_OUT

Represents the metering production flow. It can be used as SERVICE_FLOW property value.

PROPERTY_CURRENTback to summary
public static final String PROPERTY_CURRENT

Specifies the current consumption or production property name. The eventable property can be read with getCurrent() getter.

PROPERTY_TOTALback to summary
public static final String PROPERTY_TOTAL

Specifies the total consumption or production property name. The eventable property can be read with getTotal() getter.

SERVICE_FLOWback to summary
public static final 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:

Method Detail

getCurrentback to summary
public LevelData getCurrent() throws DeviceException

Returns the current metering info. It's a getter method for PROPERTY_CURRENT property.

Returns:LevelData

The current metering info.

Exceptions
DeviceException:
If an operation error is available.
IllegalStateException:
If this function service object has already been unregistered.
See Also
LevelData
getTotalback to summary
public LevelData getTotal() throws DeviceException

Returns the total metering info. It's a getter method for PROPERTY_TOTAL property.

Returns:LevelData

The total metering info.

Exceptions
DeviceException:
If an operation error is available.
IllegalStateException:
If this function service object has already been unregistered.
See Also
LevelData