Commit c8ff24bd authored by Jannis Joachim Tölle's avatar Jannis Joachim Tölle

add mqttConnectionSymbol to ports

parent 805b6866
Pipeline #167583 passed with stages
in 4 minutes and 54 seconds
......@@ -6,3 +6,5 @@
.DS_Store
.idea
.iml
embedded-montiarc-math-mqtt-generator\.iml
......@@ -2,6 +2,7 @@ package de.monticore.lang.monticar.generator.mqtt;
import de.monticore.lang.embeddedmontiarc.embeddedmontiarc._symboltable.instanceStructure.EMAComponentInstanceSymbol;
import de.monticore.lang.embeddedmontiarc.embeddedmontiarc._symboltable.instanceStructure.EMAPortInstanceSymbol;
import de.monticore.lang.embeddedmontiarc.tagging.middleware.mqtt.MqttConnectionSymbol;
import de.monticore.lang.monticar.generator.mqtt.template.MqttAdapterModel;
import de.monticore.lang.monticar.generator.mqtt.template.MqttTemplates;
......@@ -31,7 +32,11 @@ public class GeneratorMqtt
MqttAdapterModel model = new MqttAdapterModel(component.getFullName());
model.addPorts(component.getPortInstanceList());
component.getPortArrays().forEach(port -> {
port.setMiddlewareSymbol(new MqttConnectionSymbol(port.getFullName()));
});
//Generate files and write to project
contents.add(MqttTemplates.generateMqttAdapterH(model));
files.add(new File(generationTargetPath+"MqttAdapter_"+model.getEscapedCompName()+".h"));
......
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