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

public Interface MultiLevelSensor

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

MultiLevelSensor function provides multi-level sensor monitoring. It reports its state when an important event is available. The eventable state is accessible with getData() getter. There are no operations.

The sensor type can be:

See Also
LevelData

Field Summary

Modifier and TypeField and Description
public static final String
PROPERTY_DATA

Specifies the state property name.

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 MultiLevelSensor current state.
getData
()

Returns the MultiLevelSensor current state.

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

Field Detail

PROPERTY_DATAback to summary
public static final String PROPERTY_DATA

Specifies the state property name. The eventable property can be read with getData() getter.

See Also
LevelData

Method Detail

getDataback to summary
public LevelData getData() throws DeviceException

Returns the MultiLevelSensor current state. It's a getter method for PROPERTY_DATA property.

Returns:LevelData

The MultiLevelSensor current state.

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