public interface MultiLevelControl extends Function
MultiLevelControl function provides multi-level control support. The
eventable function level is accessible with getData() getter and
setData(BigDecimal, String) setter.
The control type can be:
Types.LIGHTTypes.TEMPERATURETypes.FLOWTypes.PRESSURETypes.HUMIDITYTypes.GASTypes.SMOKETypes.DOORTypes.WINDOWTypes.LIQUIDTypes.POWERTypes.NOISINESSTypesLevelData| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_DATA
Specifies the level property name.
|
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 |
getData()
Returns
MultiLevelControl level. |
void |
setData(BigDecimal level,
String unit)
Sets
MultiLevelControl level according to the specified unit. |
getOperationMetadata, getPropertyMetadata, getServiceProperty, getServicePropertyKeysstatic final String PROPERTY_DATA
getData() getter and can be set with
setData(BigDecimal, String) setters.LevelData getData() throws DeviceException
MultiLevelControl level. It's a getter method for
PROPERTY_DATA property.MultiLevelControl level.IllegalStateException - If this function service object has already
been unregistered.DeviceException - If an operation error is available.LevelDatavoid setData(BigDecimal level, String unit) throws DeviceException
MultiLevelControl level according to the specified unit.
It's a setter method for PROPERTY_DATA property.level - The new control level.unit - The level unit.IllegalStateException - If this function service object has already
been unregistered.DeviceException - If an operation error is available.IllegalArgumentException - If there is an invalid argument.Copyright © Contributors to the Eclipse Foundation Licensed under the Eclipse Foundation Specification License – v1.0