Package org.osgi.service.dal.functions
Interface Types
-
public interface TypesShares common constants for all functions defined in this package. The defined function types are mapped as follow:LIGHT-MultiLevelControl,MultiLevelSensor,BooleanSensorandBooleanControlTEMPERATURE-MultiLevelControlandMultiLevelSensorFLOW-MultiLevelControlandMultiLevelSensorPRESSURE-MultiLevelControl,MultiLevelSensorandMeterHUMIDITY-MultiLevelControlandMultiLevelSensorGAS-MultiLevelControl,MultiLevelSensor,BooleanSensorandMeterSMOKE-MultiLevelControl,MultiLevelSensorandBooleanSensorDOOR-MultiLevelControl,MultiLevelSensor,BooleanSensorandBooleanControlWINDOW-MultiLevelControl,MultiLevelSensor,BooleanSensorandBooleanControlLIQUID-MultiLevelControlandMultiLevelSensorPOWER-MultiLevelControl,MultiLevelSensor,BooleanSensor,BooleanControlandMeterNOISINESS-MultiLevelControlandMultiLevelSensorRAIN-MultiLevelSensorandBooleanSensorCONTACT-BooleanSensorFIRE-BooleanSensorOCCUPANCY-BooleanSensorWATER-BooleanSensorandMeterMOTION-BooleanSensorHEAT-MeterCOLD-Meter
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCOLDThe function type is applicable to:Meter- indicates that theMetermeasures thermal energy provided by a source. This type can be specified as a value ofFunction.SERVICE_TYPE.static java.lang.StringCONTACTThe function type is applicable to:BooleanSensor- indicates that theBooleanSensorcan detect contact.static java.lang.StringDOORThe function type is applicable to:MultiLevelControl- indicates that theMultiLevelControlcan control the door position.static java.lang.StringFIREThe function type is applicable to:BooleanSensor- indicates that theBooleanSensorcan detect fire.static java.lang.StringFLOWThe function type is applicable to:MultiLevelControl- indicates that theMultiLevelControlcan control the flow level.static java.lang.StringGASThe function type is applicable to:MultiLevelControl- indicates that theMultiLevelControlcan control the gas level.static java.lang.StringHEATThe function type is applicable to:Meter- indicates that theMetermeasures thermal energy provided by a source. This type can be specified as a value ofFunction.SERVICE_TYPE.static java.lang.StringHUMIDITYThe function type is applicable to:MultiLevelControl- indicates that theMultiLevelControlcan control the humidity level.static java.lang.StringLIGHTThe function type is applicable to:MultiLevelControl- indicates that theMultiLevelControlcan control light devices.static java.lang.StringLIQUIDThe function type is applicable to:MultiLevelControl- indicates that theMultiLevelControlcan control the liquid level.static java.lang.StringMOTIONThe function type is applicable to:BooleanSensor- indicates that theBooleanSensorcan detect motion.static java.lang.StringNOISINESSThe function type is applicable to:MultiLevelControl- indicates that theMultiLevelControlcan control the noise level.static java.lang.StringOCCUPANCYThe function type is applicable to:BooleanSensor- indicates that theBooleanSensorcan detect presence.static java.lang.StringPOWERThe function type is applicable to:MultiLevelControl- indicates that theMultiLevelControlcan control the power level.static java.lang.StringPRESSUREThe function type is applicable to:MultiLevelControl- indicates that theMultiLevelControlcan control the pressure level.static java.lang.StringRAINThe function type is applicable to:MultiLevelSensor- indicates that theMultiLevelSensorcan monitor the rain rate.static java.lang.StringSMOKEThe function type is applicable to:MultiLevelControl- indicates that theMultiLevelControlcan control the smoke level.static java.lang.StringTEMPERATUREThe function type is applicable to:MultiLevelControl- indicates that theMultiLevelControlcan control temperature devices.static java.lang.StringWATERThe function type is applicable to:BooleanSensor- indicates that theBooleanSensorcan detect water leak.static java.lang.StringWINDOWThe function type is applicable to:MultiLevelControl- indicates that theMultiLevelControlcan control the window position.
-
-
-
Field Detail
-
LIGHT
static final java.lang.String LIGHT
The function type is applicable to:-
MultiLevelControl- indicates that theMultiLevelControlcan control light devices. Usually, such devices are called dimmable.MultiLevelControlminimum value can switch off the device andMultiLevelControlmaximum value can increase the device light to the maximum possible value. -
MultiLevelSensor- indicates that the sensor can monitor the light level. -
BooleanSensor- indicates that theBooleanSensorcan detected light.truestate means that there is light.falsestate means that there is no light. -
BooleanControl- indicates that there is a light device control.truestate means that the light device will be turned on.falsestate means that the light device will be turned off.
Function.SERVICE_TYPE.- See Also:
- Constant Field Values
-
-
TEMPERATURE
static final java.lang.String TEMPERATURE
The function type is applicable to:-
MultiLevelControl- indicates that theMultiLevelControlcan control temperature devices. For example, such device can be thermostat.MultiLevelControlminimum value is the lowest supported temperature.MultiLevelControlmaximum value is the highest supported temperature. -
MultiLevelSensor- indicates that the sensor can monitor the temperature.
Function.SERVICE_TYPE.- See Also:
- Constant Field Values
-
-
FLOW
static final java.lang.String FLOW
The function type is applicable to:-
MultiLevelControl- indicates that theMultiLevelControlcan control the flow level.MultiLevelControlminimum value is the minimum supported flow level.MultiLevelControlmaximum value is the maximum supported flow level. -
MultiLevelSensor- indicates that the sensor can monitor the flow level.
Function.SERVICE_TYPE.- See Also:
- Constant Field Values
-
-
PRESSURE
static final java.lang.String PRESSURE
The function type is applicable to:-
MultiLevelControl- indicates that theMultiLevelControlcan control the pressure level.MultiLevelControlminimum value is the lowest supported pressure level.MultiLevelControlmaximum value is the highest supported pressure level. -
MultiLevelSensor- indicates that the sensor can monitor the pressure level. -
Meter- Indicates that theMetermeasures pressure.
Function.SERVICE_TYPE.- See Also:
- Constant Field Values
-
-
HUMIDITY
static final java.lang.String HUMIDITY
The function type is applicable to:-
MultiLevelControl- indicates that theMultiLevelControlcan control the humidity level. It's typical functionality for HVAC (heating, ventilation, and air conditioning) devices.MultiLevelControlminimum value is the lowest supported humidity level.MultiLevelControlmaximum value is the highest supported humidity level. -
MultiLevelSensor- indicates that the sensor can monitor the humidity level.
Function.SERVICE_TYPE.- See Also:
- Constant Field Values
-
-
GAS
static final java.lang.String GAS
The function type is applicable to:-
MultiLevelControl- indicates that theMultiLevelControlcan control the gas level.MultiLevelControlminimum value is the lowest supported gas level.MultiLevelControlmaximum value is the highest supported gas level. -
MultiLevelSensor- indicates that the sensor can monitor the gas level. -
BooleanSensor- indicates that theBooleanSensorsupports gas detection.truestate means there is gas.falsestate means that there is no gas. -
Meter- indicates that theMetermeasures the gas consumption.
Function.SERVICE_TYPE.- See Also:
- Constant Field Values
-
-
SMOKE
static final java.lang.String SMOKE
The function type is applicable to:-
MultiLevelControl- indicates that theMultiLevelControlcan control the smoke level.MultiLevelControlminimum value is the lowest supported smoke level.MultiLevelControlmaximum value is the highest supported smoke level. -
MultiLevelSensor- indicates that the sensor can monitor the smoke level. -
BooleanSensor- indicates that theBooleanSensorcan detect smoke.truestate means that there is smoke.falsestate means that there is no smoke.
Function.SERVICE_TYPE.- See Also:
- Constant Field Values
-
-
DOOR
static final java.lang.String DOOR
The function type is applicable to:-
MultiLevelControl- indicates that theMultiLevelControlcan control the door position.MultiLevelControlminimum value can completely close the door.MultiLevelControlmaximum value can open the door to the maximum allowed position. -
MultiLevelSensor- indicates that the sensor can monitor the door position. -
BooleanSensor- indicates that theBooleanSensorcan detect the door state.truestate means that the door is opened.falsestate means that the door is closed. -
BooleanControl- indicates that there is a door position control.truestate means that the door will be opened.falsestate means that the door will be closed.
Function.SERVICE_TYPE.- See Also:
- Constant Field Values
-
-
WINDOW
static final java.lang.String WINDOW
The function type is applicable to:-
MultiLevelControl- indicates that theMultiLevelControlcan control the window position.MultiLevelControlminimum value can completely close the window.MultiLevelControlmaximum value can open the window to the maximum allowed position. -
MultiLevelSensor- indicates that the sensor can monitor the window position. -
BooleanSensor- indicates that theBooleanSensorcan window state.truestate means that the window is opened.falsestate means that the window is closed. -
BooleanControl- indicates that there is a window position control.truestate means that the window will be opened.falsestate means that the window will be closed.
Function.SERVICE_TYPE.- See Also:
- Constant Field Values
-
-
LIQUID
static final java.lang.String LIQUID
The function type is applicable to:-
MultiLevelControl- indicates that theMultiLevelControlcan control the liquid level.MultiLevelControlminimum value is the lowest supported liquid level.MultiLevelControlmaximum value is the highest supported liquid level. -
MultiLevelSensor- indicates that the sensor can monitor the liquid level.
Function.SERVICE_TYPE.- See Also:
- Constant Field Values
-
-
POWER
static final java.lang.String POWER
The function type is applicable to:-
MultiLevelControl- indicates that theMultiLevelControlcan control the power level.MultiLevelControlminimum value is the lowest supported power level.MultiLevelControlmaximum value is the highest supported power level. -
MultiLevelSensor- indicates that the sensor can monitor the power level. -
BooleanSensor- indicates that theBooleanSensorcan detect power/no power.truestate means that there is power.falsestate means that there is no power. -
BooleanControl- indicates that there is electricity control.truestate means that the power will be restored.falsestate means that the power will be cut. -
Meter- indicates that theMetermeasures the power consumption.
Function.SERVICE_TYPE.- See Also:
- Constant Field Values
-
-
NOISINESS
static final java.lang.String NOISINESS
The function type is applicable to:-
MultiLevelControl- indicates that theMultiLevelControlcan control the noise level.MultiLevelControlminimum value is the lowest supported noise level.MultiLevelControlmaximum value is the highest supported noise level. -
MultiLevelSensor- indicates that the sensor can monitor the noise level.
Function.SERVICE_TYPE.- See Also:
- Constant Field Values
-
-
RAIN
static final java.lang.String RAIN
The function type is applicable to:-
MultiLevelSensor- indicates that theMultiLevelSensorcan monitor the rain rate. It's not applicable toMultiLevelControl. -
BooleanSensor- indicates that theBooleanSensorcan detect rain.truestate means that there is rain.falsestate means that there is no rain.
Function.SERVICE_TYPE.- See Also:
- Constant Field Values
-
-
CONTACT
static final java.lang.String CONTACT
The function type is applicable to:-
BooleanSensor- indicates that theBooleanSensorcan detect contact.truestate means that there is contact.falsestate means that there is no contact.
Function.SERVICE_TYPE.- See Also:
- Constant Field Values
-
-
FIRE
static final java.lang.String FIRE
The function type is applicable to:-
BooleanSensor- indicates that theBooleanSensorcan detect fire.truestate means that there is fire.falsestate means that there is no fire.
Function.SERVICE_TYPE.- See Also:
- Constant Field Values
-
-
OCCUPANCY
static final java.lang.String OCCUPANCY
The function type is applicable to:-
BooleanSensor- indicates that theBooleanSensorcan detect presence.truestate means that someone is detected.falsestate means that nobody is detected.
Function.SERVICE_TYPE.- See Also:
- Constant Field Values
-
-
WATER
static final java.lang.String WATER
The function type is applicable to:-
BooleanSensor- indicates that theBooleanSensorcan detect water leak.truestate means that there is water leak.falsestate means that there is no water leak. -
Meter- indicates that theMetermeasures water consumption.
Function.SERVICE_TYPE.- See Also:
- Constant Field Values
-
-
MOTION
static final java.lang.String MOTION
The function type is applicable to:-
BooleanSensor- indicates that theBooleanSensorcan detect motion.truestate means that there is motion detection.falsestate means that there is no motion detection.
Function.SERVICE_TYPE.- See Also:
- Constant Field Values
-
-
HEAT
static final java.lang.String HEAT
The function type is applicable to:-
Meter- indicates that theMetermeasures thermal energy provided by a source.
Function.SERVICE_TYPE.- See Also:
- Constant Field Values
-
-
COLD
static final java.lang.String COLD
The function type is applicable to:-
Meter- indicates that theMetermeasures thermal energy provided by a source.
Function.SERVICE_TYPE.- See Also:
- Constant Field Values
-
-
-