Tag parsing
Create a parser that can read .tag files and turn them into MQTTConnectionSymbols
Deliverables
EmbeddedMontiArc Project
In .../tagging/middleware/mqtt:
-
Add a MQTTConnectionsSymbolCreator similar to RosConnectionSymbolCreator - Goal: Read a .tag file, convert it into MQTTConnectionSymbols and add them the specified EMAPortSymbol or EMAPortInstanceSymbol. MontiCore/EmbeddedMontiArc automatically reads the file reading and preprocesses the data. Therefore you only need to implement a
TagSymbolCreator
-
There should be no references to Ros in the new SymbolCreator. The main regex can be found in line 50. - Online java regex checker:
http://www.regexplanet.com/advanced/java/index.html
- Goal: Read a .tag file, convert it into MQTTConnectionSymbols and add them the specified EMAPortSymbol or EMAPortInstanceSymbol. MontiCore/EmbeddedMontiArc automatically reads the file reading and preprocesses the data. Therefore you only need to implement a
-
Add a MQTTTagSchema similar to RosToEmamTagSchema -
Add a Testcase similar to test/.../middleware/ros/TaggingTest. -
you will need to add your Tag Schema to the tagging resolver here: https://git.rwth-aachen.de/monticore/EmbeddedMontiArc/languages/EmbeddedMontiArc/blob/master/src/test/java/de/monticore/lang/embeddedmontiarc/AbstractTaggingResolverTest.java#L56
-
EMAM2Middleware
Here we are waiting for the merge request (monticore/EmbeddedMontiArc/languages/EmbeddedMontiArc!18 (merged)) to proceed
-
pom.xml: Update the EmbeddedMontiArc dependency to the Version with your parser -
DestributedTargetGeneratorCLI -
Previous test case -
Adapt: Don't hand add the MQTTConnectionSymbols, build a .tag file, use your TagHelper(or equivalent) to resolve the MQTTConnectionSymbols - Example for Ros: https://git.rwth-aachen.de/monticore/EmbeddedMontiArc/generators/EMAM2Middleware/blob/master/src/test/java/de/monticore/lang/monticar/generator/middleware/Ros2GenerationTest.java#L60 and line 64
-
Edited by Georg Vinogradov