Commit f80efff0 authored by Christoph Richter's avatar Christoph Richter
Browse files

Updated EMA Version again

parent 21576c8f
Pipeline #70464 passed with stage
in 20 minutes and 34 seconds
......@@ -18,9 +18,9 @@
<se-commons.version>1.7.8</se-commons.version>
<mc.grammars.assembly.version>0.0.6-SNAPSHOT</mc.grammars.assembly.version>
<Common-MontiCar.version>0.0.14-SNAPSHOT</Common-MontiCar.version>
<Embedded-MontiArc.version>0.0.18-SNAPSHOT</Embedded-MontiArc.version>
<Embedded-MontiArc.version>0.1.3-SNAPSHOT</Embedded-MontiArc.version>
<Embedded-MontiArc-Behaviour.version>0.0.14-SNAPSHOT</Embedded-MontiArc-Behaviour.version>
<Embedded-MontiArc-Math.version>0.0.19-SNAPSHOT</Embedded-MontiArc-Math.version>
<Embedded-MontiArc-Math.version>0.1.2-SNAPSHOT</Embedded-MontiArc-Math.version>
<Math.version>0.0.19-SNAPSHOT</Math.version>
<MathOpt.version>0.1.0</MathOpt.version>
<!-- .. Libraries .................................................. -->
......
package de.monticore.lang.embeddedmontiarcmathopt._symboltable;
import de.monticore.lang.embeddedmontiarc.embeddedmontiarc._symboltable.ComponentSymbol;
import de.monticore.lang.embeddedmontiarc.embeddedmontiarc._symboltable.cncModel.EMAComponentSymbol;
import de.monticore.lang.math._symboltable.MathStatementsSymbol;
import de.monticore.lang.math._symboltable.expression.MathAssignmentExpressionSymbol;
import de.monticore.lang.mathopt._symboltable.MathOptimizationStatementSymbol;
......@@ -16,7 +17,7 @@ public class EmbeddedMontiArcMathOptSymbolTableCreatorTest extends EMAMOptAbstra
@Test
public void testEMAMMathStatementsSymbol() {
Scope symTab = createSymTab("src/test/resources/");
ComponentSymbol component = symTab.<ComponentSymbol>resolve("test.Add", ComponentSymbol.KIND).orElse(null);
EMAComponentSymbol component = symTab.<EMAComponentSymbol>resolve("test.Add", ComponentSymbol.KIND).orElse(null);
MathStatementsSymbol statements = (MathStatementsSymbol) component.getSpannedScope().resolve("MathStatements", MathStatementsSymbol.KIND).orElse(null);
assertNotNull(statements);
assertEquals(1, statements.getMathExpressionSymbols().size());
......@@ -26,7 +27,7 @@ public class EmbeddedMontiArcMathOptSymbolTableCreatorTest extends EMAMOptAbstra
@Test
public void testEMAMOptMathStatementsSymbol() {
Scope symTab = createSymTab("src/test/resources/");
ComponentSymbol component = symTab.<ComponentSymbol>resolve("test.math.optimization.ScalarMaximizationTest", ComponentSymbol.KIND).orElse(null);
EMAComponentSymbol component = symTab.<EMAComponentSymbol>resolve("test.math.optimization.ScalarMaximizationTest", ComponentSymbol.KIND).orElse(null);
MathStatementsSymbol statements = (MathStatementsSymbol) component.getSpannedScope().resolve("MathStatements", MathStatementsSymbol.KIND).orElse(null);
assertNotNull(statements);
assertEquals(1, statements.getMathExpressionSymbols().size());
......@@ -36,7 +37,7 @@ public class EmbeddedMontiArcMathOptSymbolTableCreatorTest extends EMAMOptAbstra
@Test
public void testScalarMinimizationModel() {
Scope symTab = createSymTab("src/test/resources");
ComponentSymbol component = symTab.<ComponentSymbol>resolve("test.math.optimization.ScalarMinimizationTest", ComponentSymbol.KIND).orElse(null);
EMAComponentSymbol component = symTab.<EMAComponentSymbol>resolve("test.math.optimization.ScalarMinimizationTest", ComponentSymbol.KIND).orElse(null);
MathStatementsSymbol statements = (MathStatementsSymbol) component.getSpannedScope().resolve("MathStatements", MathStatementsSymbol.KIND).orElse(null);
MathOptimizationStatementSymbol optSymbol = (MathOptimizationStatementSymbol) statements.getMathExpressionSymbols().get(0);
assertEquals(MathOptimizationType.MINIMIZATION, optSymbol.getOptimizationType());
......@@ -45,7 +46,7 @@ public class EmbeddedMontiArcMathOptSymbolTableCreatorTest extends EMAMOptAbstra
@Test
public void testScalarMaximizationModel() {
Scope symTab = createSymTab("src/test/resources");
ComponentSymbol component = symTab.<ComponentSymbol>resolve("test.math.optimization.ScalarMaximizationTest", ComponentSymbol.KIND).orElse(null);
EMAComponentSymbol component = symTab.<EMAComponentSymbol>resolve("test.math.optimization.ScalarMaximizationTest", ComponentSymbol.KIND).orElse(null);
MathStatementsSymbol statements = (MathStatementsSymbol) component.getSpannedScope().resolve("MathStatements", MathStatementsSymbol.KIND).orElse(null);
MathOptimizationStatementSymbol optSymbol = (MathOptimizationStatementSymbol) statements.getMathExpressionSymbols().get(0);
assertEquals(MathOptimizationType.MAXIMIZATION, optSymbol.getOptimizationType());
......
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