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

public Interface BooleanSensor

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

BooleanSensor function provides boolean 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
BooleanData

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 BooleanData

Returns:

The BooleanSensor current state.
getData
()

Returns the BooleanSensor 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 value is accessible with getData() getter.

Method Detail

getDataback to summary
public BooleanData getData() throws DeviceException

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

Returns:BooleanData

The BooleanSensor current state.

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