Aufgrund einer Wartung wird GitLab am 28.09. zwischen 10:00 und 11:00 Uhr kurzzeitig nicht zur Verfügung stehen. / Due to maintenance, GitLab will be temporarily unavailable on 28.09. between 10:00 and 11:00 am.

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