Package org.openhab.core.automation.type
Class CompositeTriggerType
java.lang.Object
org.openhab.core.automation.type.ModuleType
org.openhab.core.automation.type.TriggerType
org.openhab.core.automation.type.CompositeTriggerType
- All Implemented Interfaces:
Identifiable<String>
This class is as
TriggerType which logically combines Trigger modules. The composite trigger hides
internal logic between participating Triggers and it can be used as a regular Trigger 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
ConstructorsConstructorDescriptionCompositeTriggerType(@Nullable String uid, @Nullable List<ConfigDescriptionParameter> configDescriptions, @Nullable String label, @Nullable String description, @Nullable Set<String> tags, @Nullable Visibility visibility, @Nullable List<Output> outputs, @Nullable List<Trigger> children) Creates an instance ofCompositeTriggerTypewith ordered set ofTriggermodules.CompositeTriggerType(@Nullable String uid, @Nullable List<ConfigDescriptionParameter> configDescriptions, @Nullable List<Output> outputs, @Nullable List<Trigger> children) Creates an instance ofCompositeTriggerTypewith ordered set ofTriggermodules. -
Method Summary
Methods inherited from class org.openhab.core.automation.type.TriggerType
getOutputsMethods inherited from class org.openhab.core.automation.type.ModuleType
equals, getConfigurationDescriptions, getDescription, getLabel, getTags, getUID, getVisibility, hashCode
-
Constructor Details
-
CompositeTriggerType
public CompositeTriggerType(@Nullable String uid, @Nullable List<ConfigDescriptionParameter> configDescriptions, @Nullable List<Output> outputs, @Nullable List<Trigger> children) Creates an instance ofCompositeTriggerTypewith ordered set ofTriggermodules. It initializes only base properties of theCompositeTriggerType.- Parameters:
uid- theTriggerType's identifier, ornullif a random identifier should be generated.configDescriptions- describing meta-data for the configuration of the futureTriggerinstances.outputs- aListwithOutputmeta-information descriptions of the futureTriggerinstances.children- is aListofTriggermodules.
-
CompositeTriggerType
public CompositeTriggerType(@Nullable String uid, @Nullable List<ConfigDescriptionParameter> configDescriptions, @Nullable String label, @Nullable String description, @Nullable Set<String> tags, @Nullable Visibility visibility, @Nullable List<Output> outputs, @Nullable List<Trigger> children) Creates an instance ofCompositeTriggerTypewith ordered set ofTriggermodules. It initializes all properties of theCompositeTriggerType.- Parameters:
uid- theTriggerType's identifier, ornullif a random identifier should be generated.configDescriptions- describing meta-data for the configuration of the futureTriggerinstances.label- a short and accurate, human-readable label of theTriggerType.description- a detailed, human-readable description of usage ofTriggerTypeand its benefits.tags- defines categories that fit theTriggerTypeand which can serve as criteria for searching or filtering it.visibility- determines whether theTriggerTypecan be used by anyone if it isVisibility.VISIBLEor only by its creator if it isVisibility.HIDDEN.outputs- aListwithOutputmeta-information descriptions of the futureTriggerinstances.children- is aListofTriggermodules.
-
-
Method Details