Package org.osgi.service.dal.functions
Interface MultiLevelSensor
-
- All Superinterfaces:
Function
public interface MultiLevelSensor extends Function
MultiLevelSensorfunction provides multi-level sensor monitoring. It reports its state when an important event is available. The eventable state is accessible withgetData()getter. There are no operations.The sensor type can be:
Types.LIGHTTypes.TEMPERATURETypes.FLOWTypes.PRESSURETypes.HUMIDITYTypes.GASTypes.SMOKETypes.DOORTypes.WINDOWTypes.LIQUIDTypes.POWERTypes.NOISINESSTypes.RAIN- other type defined in
Types - custom - vendor specific type
- See Also:
LevelData
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPROPERTY_DATASpecifies the state property name.-
Fields inherited from interface org.osgi.service.dal.Function
SERVICE_DESCRIPTION, SERVICE_DEVICE_UID, SERVICE_OPERATION_NAMES, SERVICE_PROPERTY_NAMES, SERVICE_REFERENCE_UIDS, SERVICE_TYPE, SERVICE_UID, SERVICE_VERSION
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LevelDatagetData()Returns theMultiLevelSensorcurrent state.-
Methods inherited from interface org.osgi.service.dal.Function
getOperationMetadata, getPropertyMetadata, getServiceProperty, getServicePropertyKeys
-
-
-
-
Field Detail
-
PROPERTY_DATA
static final java.lang.String PROPERTY_DATA
Specifies the state property name. The eventable property can be read withgetData()getter.- See Also:
LevelData, Constant Field Values
-
-
Method Detail
-
getData
LevelData getData() throws DeviceException
Returns theMultiLevelSensorcurrent state. It's a getter method forPROPERTY_DATAproperty.- Returns:
- The
MultiLevelSensorcurrent state. - Throws:
java.lang.IllegalStateException- If this function service object has already been unregistered.DeviceException- If an operation error is available.- See Also:
LevelData
-
-