Commit 7b3b8989 authored by Nathan Bonnemberger's avatar Nathan Bonnemberger
Browse files

ConditionalMqtt functional

parent 5120fe70
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
......@@ -39,6 +39,7 @@ import lu.list.itis.dkd.tui.widget.BaseWidget;
import lu.list.itis.dkd.tui.widget.PositionWidget;
import lu.list.itis.dkd.tui.widget.ValueWidget;
import lu.list.itis.dkd.tui.widget.corona.ConditionalCorona;
import lu.list.itis.dkd.tui.widget.corona.ConditionalMqtt;
import com.google.common.base.Preconditions;
......@@ -165,6 +166,15 @@ public class Scenario {
}
}
for (final ConditionalMqtt corona : widget.getCoronas(ConditionalMqtt.class)) {
for (final String trigger : corona.getTriggers()) {
final Variable<?> triggerVariable = retrieveVariableByName(trigger);
corona.addVariable(triggerVariable);
triggerVariable.addListener(corona);
}
}
} else {
final Logger LOGGER = Logger.getLogger(Logger.class.getName());
LOGGER.info("Logger Name: " + LOGGER.getName());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment