Package org.openhab.core.automation
Interface Module
@NonNullByDefault
public interface Module
This interface represents automation
Modules
which are building components of the Rule
s.
Each module is identified by id, which is unique in scope of the Rule
.
Each module has a ModuleType
which provides meta data of the module. The meta data defines Input
s,
Output
s and ConfigDescriptionParameter
s which are the building elements of the Module
.
Setters of the module don't have immediate effect on the Rule. To apply the changes, the Module should be set on the
Rule
and the Rule has to be updated in RuleRegistry
by invoking update
method.
- Author:
- Yordan Mihaylov - Initial contribution, Kai Kreuzer - Initial contribution
-
Method Summary
Modifier and TypeMethodDescriptionGets the configuration values of theModule
.@Nullable String
Gets the description of theModule
.getId()
Gets theModule
's unique identifier in the scope of the rule in which this module belongs.@Nullable String
getLabel()
Gets the label of theModule
.Gets the module type unique identifier which is a reference to the correspondingModuleType
that describes this module.
-
Method Details
-
getId
String getId()Gets theModule
's unique identifier in the scope of the rule in which this module belongs. The identifier of theModule
is used to identify it when other rule's module refers it as input.- Returns:
- the
Module
's unique identifier in the scope of the rule in which this module belongs.
-
getTypeUID
String getTypeUID()Gets the module type unique identifier which is a reference to the correspondingModuleType
that describes this module. TheModuleType
containsInput
s,Output
s andConfigDescriptionParameter
s of this module.- Returns:
- the
ModuleType
unique identifier.
-
getLabel
@Nullable String getLabel()Gets the label of theModule
. The label is user understandable name of the Module.- Returns:
- the label of the module or
null
if not specified.
-
getDescription
@Nullable String getDescription()Gets the description of theModule
. The description is a detailed, human understandable description of the Module.- Returns:
- the detailed description of the module or
null
if not specified.
-
getConfiguration
Configuration getConfiguration()Gets the configuration values of theModule
.- Returns:
- the current configuration values of the
Module
.
-