Commit d5db0f13 authored by Markus Georg Bendel's avatar Markus Georg Bendel
Browse files

Remove generate method from SomeIPGenImpl again

parent 89121765
Pipeline #167337 canceled with stages
in 23 minutes and 47 seconds
......@@ -22,11 +22,11 @@ public class SomeIPGenImpl implements GeneratorImpl {
this.generatorSomeIP = generatorSomeIP;
}
@Override
public List<File> generate(EMAComponentInstanceSymbol componentInstanceSymbol, TaggingResolver taggingResolver) throws IOException {
generatorSomeIP.setGenerationTargetPath(generationTargetPath);
return generatorSomeIP.generateSomeIPAdapter(componentInstanceSymbol);
}
//@Override
//public List<File> generate(EMAComponentInstanceSymbol componentInstanceSymbol, TaggingResolver taggingResolver) throws IOException {
// generatorSomeIP.setGenerationTargetPath(generationTargetPath);
// return generatorSomeIP.generateSomeIPAdapter(componentInstanceSymbol);
//}
@Override
public void setGenerationTargetPath(String path) {
......
......@@ -29,11 +29,12 @@ public class SomeIPGenerationTest extends AbstractSymtabTest {
assertNotNull(componentInstanceSymbol);
GeneratorSomeIP generatorSomeIP = new GeneratorSomeIP();
generatorSomeIP.setGenerationTargetPath(OUT_BASE);
//generatorSomeIP.setGenerationTargetPath(OUT_BASE);
//generatorSomeIP.generateSomeIPAdapter(componentInstanceSymbol);
componentInstanceSymbol.getPortInstance("in1").orElse(null).setMiddlewareSymbol(new SomeIPConnectionSymbol(1,2,3));
componentInstanceSymbol.getPortInstance("in2").orElse(null).setMiddlewareSymbol(new SomeIPConnectionSymbol(4,5,6));
componentInstanceSymbol.getPortInstance("out1").orElse(null).setMiddlewareSymbol(new SomeIPConnectionSymbol(7,8,9));
//componentInstanceSymbol.getPortInstance("in2").orElse(null).setMiddlewareSymbol(new SomeIPConnectionSymbol(4,5,6));
//componentInstanceSymbol.getPortInstance("out1").orElse(null).setMiddlewareSymbol(new SomeIPConnectionSymbol(7,8,9));
//SomeIPGenImpl someIPGenImpl = new SomeIPGenImpl();
//someIPGenImpl.setGeneratorSomeIP(generatorSomeIP);
......@@ -44,6 +45,7 @@ public class SomeIPGenerationTest extends AbstractSymtabTest {
distributedTargetGenerator.setGenerationTargetPath(OUT_BASE + "addComp/src");
distributedTargetGenerator.add(new CPPGenImpl(TEST_PATH),"cpp");
distributedTargetGenerator.add(new SomeIPGenImpl(), "someip");
List<File> files2 = generatorSomeIP.generateSomeIPAdapter(componentInstanceSymbol);
List<File> files = distributedTargetGenerator.generate(componentInstanceSymbol, taggingResolver);
}
......
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