Package org.osgi.service.dal.functions
Interface Types
public interface Types
Shares common constants for all functions defined in this package. The
defined function types are mapped as follow:
LIGHT
-MultiLevelControl
,MultiLevelSensor
,BooleanSensor
andBooleanControl
TEMPERATURE
-MultiLevelControl
andMultiLevelSensor
FLOW
-MultiLevelControl
andMultiLevelSensor
PRESSURE
-MultiLevelControl
,MultiLevelSensor
andMeter
HUMIDITY
-MultiLevelControl
andMultiLevelSensor
GAS
-MultiLevelControl
,MultiLevelSensor
,BooleanSensor
andMeter
SMOKE
-MultiLevelControl
,MultiLevelSensor
andBooleanSensor
DOOR
-MultiLevelControl
,MultiLevelSensor
,BooleanSensor
andBooleanControl
WINDOW
-MultiLevelControl
,MultiLevelSensor
,BooleanSensor
andBooleanControl
LIQUID
-MultiLevelControl
andMultiLevelSensor
POWER
-MultiLevelControl
,MultiLevelSensor
,BooleanSensor
,BooleanControl
andMeter
NOISINESS
-MultiLevelControl
andMultiLevelSensor
RAIN
-MultiLevelSensor
andBooleanSensor
CONTACT
-BooleanSensor
FIRE
-BooleanSensor
OCCUPANCY
-BooleanSensor
WATER
-BooleanSensor
andMeter
MOTION
-BooleanSensor
HEAT
-Meter
COLD
-Meter
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The function type is applicable to:Meter
- indicates that theMeter
measures thermal energy provided by a source. This type can be specified as a value ofFunction.SERVICE_TYPE
.static final String
The function type is applicable to:BooleanSensor
- indicates that theBooleanSensor
can detect contact.static final String
The function type is applicable to:MultiLevelControl
- indicates that theMultiLevelControl
can control the door position.static final String
The function type is applicable to:BooleanSensor
- indicates that theBooleanSensor
can detect fire.static final String
The function type is applicable to:MultiLevelControl
- indicates that theMultiLevelControl
can control the flow level.static final String
The function type is applicable to:MultiLevelControl
- indicates that theMultiLevelControl
can control the gas level.static final String
The function type is applicable to:Meter
- indicates that theMeter
measures thermal energy provided by a source. This type can be specified as a value ofFunction.SERVICE_TYPE
.static final String
The function type is applicable to:MultiLevelControl
- indicates that theMultiLevelControl
can control the humidity level.static final String
The function type is applicable to:MultiLevelControl
- indicates that theMultiLevelControl
can control light devices.static final String
The function type is applicable to:MultiLevelControl
- indicates that theMultiLevelControl
can control the liquid level.static final String
The function type is applicable to:BooleanSensor
- indicates that theBooleanSensor
can detect motion.static final String
The function type is applicable to:MultiLevelControl
- indicates that theMultiLevelControl
can control the noise level.static final String
The function type is applicable to:BooleanSensor
- indicates that theBooleanSensor
can detect presence.static final String
The function type is applicable to:MultiLevelControl
- indicates that theMultiLevelControl
can control the power level.static final String
The function type is applicable to:MultiLevelControl
- indicates that theMultiLevelControl
can control the pressure level.static final String
The function type is applicable to:MultiLevelSensor
- indicates that theMultiLevelSensor
can monitor the rain rate.static final String
The function type is applicable to:MultiLevelControl
- indicates that theMultiLevelControl
can control the smoke level.static final String
The function type is applicable to:MultiLevelControl
- indicates that theMultiLevelControl
can control temperature devices.static final String
The function type is applicable to:BooleanSensor
- indicates that theBooleanSensor
can detect water leak.static final String
The function type is applicable to:MultiLevelControl
- indicates that theMultiLevelControl
can control the window position.
-
Field Details
-
LIGHT
The function type is applicable to:-
MultiLevelControl
- indicates that theMultiLevelControl
can control light devices. Usually, such devices are called dimmable.MultiLevelControl
minimum value can switch off the device andMultiLevelControl
maximum value can increase the device light to the maximum possible value. -
MultiLevelSensor
- indicates that the sensor can monitor the light level. -
BooleanSensor
- indicates that theBooleanSensor
can detected light.true
state means that there is light.false
state means that there is no light. -
BooleanControl
- indicates that there is a light device control.true
state means that the light device will be turned on.false
state means that the light device will be turned off.
Function.SERVICE_TYPE
.- See Also:
-
-
TEMPERATURE
The function type is applicable to:-
MultiLevelControl
- indicates that theMultiLevelControl
can control temperature devices. For example, such device can be thermostat.MultiLevelControl
minimum value is the lowest supported temperature.MultiLevelControl
maximum value is the highest supported temperature. -
MultiLevelSensor
- indicates that the sensor can monitor the temperature.
Function.SERVICE_TYPE
.- See Also:
-
-
FLOW
The function type is applicable to:-
MultiLevelControl
- indicates that theMultiLevelControl
can control the flow level.MultiLevelControl
minimum value is the minimum supported flow level.MultiLevelControl
maximum value is the maximum supported flow level. -
MultiLevelSensor
- indicates that the sensor can monitor the flow level.
Function.SERVICE_TYPE
.- See Also:
-
-
PRESSURE
The function type is applicable to:-
MultiLevelControl
- indicates that theMultiLevelControl
can control the pressure level.MultiLevelControl
minimum value is the lowest supported pressure level.MultiLevelControl
maximum value is the highest supported pressure level. -
MultiLevelSensor
- indicates that the sensor can monitor the pressure level. -
Meter
- Indicates that theMeter
measures pressure.
Function.SERVICE_TYPE
.- See Also:
-
-
HUMIDITY
The function type is applicable to:-
MultiLevelControl
- indicates that theMultiLevelControl
can control the humidity level. It's typical functionality for HVAC (heating, ventilation, and air conditioning) devices.MultiLevelControl
minimum value is the lowest supported humidity level.MultiLevelControl
maximum value is the highest supported humidity level. -
MultiLevelSensor
- indicates that the sensor can monitor the humidity level.
Function.SERVICE_TYPE
.- See Also:
-
-
GAS
The function type is applicable to:-
MultiLevelControl
- indicates that theMultiLevelControl
can control the gas level.MultiLevelControl
minimum value is the lowest supported gas level.MultiLevelControl
maximum value is the highest supported gas level. -
MultiLevelSensor
- indicates that the sensor can monitor the gas level. -
BooleanSensor
- indicates that theBooleanSensor
supports gas detection.true
state means there is gas.false
state means that there is no gas. -
Meter
- indicates that theMeter
measures the gas consumption.
Function.SERVICE_TYPE
.- See Also:
-
-
SMOKE
The function type is applicable to:-
MultiLevelControl
- indicates that theMultiLevelControl
can control the smoke level.MultiLevelControl
minimum value is the lowest supported smoke level.MultiLevelControl
maximum value is the highest supported smoke level. -
MultiLevelSensor
- indicates that the sensor can monitor the smoke level. -
BooleanSensor
- indicates that theBooleanSensor
can detect smoke.true
state means that there is smoke.false
state means that there is no smoke.
Function.SERVICE_TYPE
.- See Also:
-
-
DOOR
The function type is applicable to:-
MultiLevelControl
- indicates that theMultiLevelControl
can control the door position.MultiLevelControl
minimum value can completely close the door.MultiLevelControl
maximum value can open the door to the maximum allowed position. -
MultiLevelSensor
- indicates that the sensor can monitor the door position. -
BooleanSensor
- indicates that theBooleanSensor
can detect the door state.true
state means that the door is opened.false
state means that the door is closed. -
BooleanControl
- indicates that there is a door position control.true
state means that the door will be opened.false
state means that the door will be closed.
Function.SERVICE_TYPE
.- See Also:
-
-
WINDOW
The function type is applicable to:-
MultiLevelControl
- indicates that theMultiLevelControl
can control the window position.MultiLevelControl
minimum value can completely close the window.MultiLevelControl
maximum value can open the window to the maximum allowed position. -
MultiLevelSensor
- indicates that the sensor can monitor the window position. -
BooleanSensor
- indicates that theBooleanSensor
can window state.true
state means that the window is opened.false
state means that the window is closed. -
BooleanControl
- indicates that there is a window position control.true
state means that the window will be opened.false
state means that the window will be closed.
Function.SERVICE_TYPE
.- See Also:
-
-
LIQUID
The function type is applicable to:-
MultiLevelControl
- indicates that theMultiLevelControl
can control the liquid level.MultiLevelControl
minimum value is the lowest supported liquid level.MultiLevelControl
maximum value is the highest supported liquid level. -
MultiLevelSensor
- indicates that the sensor can monitor the liquid level.
Function.SERVICE_TYPE
.- See Also:
-
-
POWER
The function type is applicable to:-
MultiLevelControl
- indicates that theMultiLevelControl
can control the power level.MultiLevelControl
minimum value is the lowest supported power level.MultiLevelControl
maximum value is the highest supported power level. -
MultiLevelSensor
- indicates that the sensor can monitor the power level. -
BooleanSensor
- indicates that theBooleanSensor
can detect power/no power.true
state means that there is power.false
state means that there is no power. -
BooleanControl
- indicates that there is electricity control.true
state means that the power will be restored.false
state means that the power will be cut. -
Meter
- indicates that theMeter
measures the power consumption.
Function.SERVICE_TYPE
.- See Also:
-
-
NOISINESS
The function type is applicable to:-
MultiLevelControl
- indicates that theMultiLevelControl
can control the noise level.MultiLevelControl
minimum value is the lowest supported noise level.MultiLevelControl
maximum value is the highest supported noise level. -
MultiLevelSensor
- indicates that the sensor can monitor the noise level.
Function.SERVICE_TYPE
.- See Also:
-
-
RAIN
The function type is applicable to:-
MultiLevelSensor
- indicates that theMultiLevelSensor
can monitor the rain rate. It's not applicable toMultiLevelControl
. -
BooleanSensor
- indicates that theBooleanSensor
can detect rain.true
state means that there is rain.false
state means that there is no rain.
Function.SERVICE_TYPE
.- See Also:
-
-
CONTACT
The function type is applicable to:-
BooleanSensor
- indicates that theBooleanSensor
can detect contact.true
state means that there is contact.false
state means that there is no contact.
Function.SERVICE_TYPE
.- See Also:
-
-
FIRE
The function type is applicable to:-
BooleanSensor
- indicates that theBooleanSensor
can detect fire.true
state means that there is fire.false
state means that there is no fire.
Function.SERVICE_TYPE
.- See Also:
-
-
OCCUPANCY
The function type is applicable to:-
BooleanSensor
- indicates that theBooleanSensor
can detect presence.true
state means that someone is detected.false
state means that nobody is detected.
Function.SERVICE_TYPE
.- See Also:
-
-
WATER
The function type is applicable to:-
BooleanSensor
- indicates that theBooleanSensor
can detect water leak.true
state means that there is water leak.false
state means that there is no water leak. -
Meter
- indicates that theMeter
measures water consumption.
Function.SERVICE_TYPE
.- See Also:
-
-
MOTION
The function type is applicable to:-
BooleanSensor
- indicates that theBooleanSensor
can detect motion.true
state means that there is motion detection.false
state means that there is no motion detection.
Function.SERVICE_TYPE
.- See Also:
-
-
HEAT
The function type is applicable to:-
Meter
- indicates that theMeter
measures thermal energy provided by a source.
Function.SERVICE_TYPE
.- See Also:
-
-
COLD
The function type is applicable to:-
Meter
- indicates that theMeter
measures thermal energy provided by a source.
Function.SERVICE_TYPE
.- See Also:
-
-