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,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
FieldsModifier and TypeFieldDescriptionstatic final StringThe 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 final StringThe function type is applicable to:BooleanSensor- indicates that theBooleanSensorcan detect contact.static final StringThe function type is applicable to:MultiLevelControl- indicates that theMultiLevelControlcan control the door position.static final StringThe function type is applicable to:BooleanSensor- indicates that theBooleanSensorcan detect fire.static final StringThe function type is applicable to:MultiLevelControl- indicates that theMultiLevelControlcan control the flow level.static final StringThe function type is applicable to:MultiLevelControl- indicates that theMultiLevelControlcan control the gas level.static final StringThe 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 final StringThe function type is applicable to:MultiLevelControl- indicates that theMultiLevelControlcan control the humidity level.static final StringThe function type is applicable to:MultiLevelControl- indicates that theMultiLevelControlcan control light devices.static final StringThe function type is applicable to:MultiLevelControl- indicates that theMultiLevelControlcan control the liquid level.static final StringThe function type is applicable to:BooleanSensor- indicates that theBooleanSensorcan detect motion.static final StringThe function type is applicable to:MultiLevelControl- indicates that theMultiLevelControlcan control the noise level.static final StringThe function type is applicable to:BooleanSensor- indicates that theBooleanSensorcan detect presence.static final StringThe function type is applicable to:MultiLevelControl- indicates that theMultiLevelControlcan control the power level.static final StringThe function type is applicable to:MultiLevelControl- indicates that theMultiLevelControlcan control the pressure level.static final StringThe function type is applicable to:MultiLevelSensor- indicates that theMultiLevelSensorcan monitor the rain rate.static final StringThe function type is applicable to:MultiLevelControl- indicates that theMultiLevelControlcan control the smoke level.static final StringThe function type is applicable to:MultiLevelControl- indicates that theMultiLevelControlcan control temperature devices.static final StringThe function type is applicable to:BooleanSensor- indicates that theBooleanSensorcan detect water leak.static final StringThe function type is applicable to:MultiLevelControl- indicates that theMultiLevelControlcan control the window position.
-
Field Details
-
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:
-
-
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:
-
-
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:
-
-
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:
-
-
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:
-
-
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:
-
-
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:
-
-
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:
-
-
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:
-
-
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:
-
-
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:
-
-
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:
-
-
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:
-
-
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:
-
-
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:
-
-
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:
-
-
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:
-
-
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:
-
-
HEAT
The function type is applicable to:-
Meter- indicates that theMetermeasures thermal energy provided by a source.
Function.SERVICE_TYPE.- See Also:
-
-
COLD
The function type is applicable to:-
Meter- indicates that theMetermeasures thermal energy provided by a source.
Function.SERVICE_TYPE.- See Also:
-
-