Package org.openhab.core.automation.type
Class CompositeConditionType
java.lang.Object
org.openhab.core.automation.type.ModuleType
org.openhab.core.automation.type.ConditionType
org.openhab.core.automation.type.CompositeConditionType
- All Implemented Interfaces:
Identifiable<String>
This class is as
ConditionType
which logically combines Condition
modules. The composite condition
hides internal logic between participating conditions and it can be used as a regular Condition
module.- Author:
- Yordan Mihaylov - Initial contribution, Ana Dimova - Initial contribution, Vasil Ilchev - Initial contribution
-
Field Summary
Fields inherited from class org.openhab.core.automation.type.ModuleType
configDescriptions
-
Constructor Summary
ConstructorDescriptionCompositeConditionType
(@Nullable String uid, @Nullable List<ConfigDescriptionParameter> configDescriptions, @Nullable String label, @Nullable String description, @Nullable Set<String> tags, @Nullable Visibility visibility, @Nullable List<Input> inputs, @Nullable List<Condition> children) Creates an instance ofCompositeConditionType
with ordered set ofCondition
s.CompositeConditionType
(@Nullable String uid, @Nullable List<ConfigDescriptionParameter> configDescriptions, @Nullable List<Input> inputs, @Nullable List<Condition> children) Creates an instance ofCompositeConditionType
with ordered set ofCondition
s. -
Method Summary
Methods inherited from class org.openhab.core.automation.type.ConditionType
getInputs
Methods inherited from class org.openhab.core.automation.type.ModuleType
equals, getConfigurationDescriptions, getDescription, getLabel, getTags, getUID, getVisibility, hashCode
-
Constructor Details
-
CompositeConditionType
public CompositeConditionType(@Nullable String uid, @Nullable List<ConfigDescriptionParameter> configDescriptions, @Nullable List<Input> inputs, @Nullable List<Condition> children) Creates an instance ofCompositeConditionType
with ordered set ofCondition
s. It initializes only base properties of theCompositeConditionType
.- Parameters:
uid
- is theConditionType
's identifier, ornull
if a random identifier should be generated.configDescriptions
- is aList
of configuration descriptions describing meta-data for the configuration of the futureCondition
instances.inputs
- is aList
withInput
's meta-information descriptions of the futureCondition
instances.children
- is aList
ofCondition
s.
-
CompositeConditionType
public CompositeConditionType(@Nullable String uid, @Nullable List<ConfigDescriptionParameter> configDescriptions, @Nullable String label, @Nullable String description, @Nullable Set<String> tags, @Nullable Visibility visibility, @Nullable List<Input> inputs, @Nullable List<Condition> children) Creates an instance ofCompositeConditionType
with ordered set ofCondition
s. It initializes all properties of theCompositeConditionType
.- Parameters:
uid
- is theConditionType
's identifier, ornull
if a random identifier should be generated.configDescriptions
- is aList
of configuration descriptions describing meta-data for the configuration of the futureCondition
instances.label
- a short and accurate, human-readable label of theCompositeConditionType
.description
- a detailed, human-readable description of usage ofCompositeConditionType
and its benefits.tags
- defines categories that fit theCompositeConditionType
and which can serve as criteria for searching or filtering it.visibility
- determines whether theCompositeConditionType
can be used by anyone if it isVisibility.VISIBLE
or only by its creator if it isVisibility.HIDDEN
. Ifnull
is provided the default visibilityVisibility.VISIBLE
will be used.inputs
- is aList
withInput
's meta-information descriptions of the futureCondition
instances.children
- is aList
ofCondition
s.
-
-
Method Details