diff options
Diffstat (limited to 'Tests/ca.mcgill.ecse.dslreasoner.vampire.test/src/ca/mcgill/ecse/dslreasoner/vampire/icse/GeneralTest.xtend')
-rw-r--r-- | Tests/ca.mcgill.ecse.dslreasoner.vampire.test/src/ca/mcgill/ecse/dslreasoner/vampire/icse/GeneralTest.xtend | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.vampire.test/src/ca/mcgill/ecse/dslreasoner/vampire/icse/GeneralTest.xtend b/Tests/ca.mcgill.ecse.dslreasoner.vampire.test/src/ca/mcgill/ecse/dslreasoner/vampire/icse/GeneralTest.xtend index 86c9092a..1559ee3f 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.vampire.test/src/ca/mcgill/ecse/dslreasoner/vampire/icse/GeneralTest.xtend +++ b/Tests/ca.mcgill.ecse.dslreasoner.vampire.test/src/ca/mcgill/ecse/dslreasoner/vampire/icse/GeneralTest.xtend | |||
@@ -4,11 +4,11 @@ import ca.mcgill.ecse.dslreasoner.vampire.reasoner.VampireSolver | |||
4 | import ca.mcgill.ecse.dslreasoner.vampire.reasoner.VampireSolverConfiguration | 4 | import ca.mcgill.ecse.dslreasoner.vampire.reasoner.VampireSolverConfiguration |
5 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VampireLanguageFactory | 5 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VampireLanguageFactory |
6 | import functionalarchitecture.Function | 6 | import functionalarchitecture.Function |
7 | import functionalarchitecture.FunctionalInterface | ||
8 | import functionalarchitecture.FunctionalOutput | ||
7 | import hu.bme.mit.inf.dslreasoner.ecore2logic.Ecore2Logic | 9 | import hu.bme.mit.inf.dslreasoner.ecore2logic.Ecore2Logic |
8 | import hu.bme.mit.inf.dslreasoner.ecore2logic.Ecore2LogicConfiguration | 10 | import hu.bme.mit.inf.dslreasoner.ecore2logic.Ecore2LogicConfiguration |
9 | import hu.bme.mit.inf.dslreasoner.ecore2logic.Ecore2Logic_Trace | ||
10 | import hu.bme.mit.inf.dslreasoner.ecore2logic.EcoreMetamodelDescriptor | 11 | import hu.bme.mit.inf.dslreasoner.ecore2logic.EcoreMetamodelDescriptor |
11 | import hu.bme.mit.inf.dslreasoner.logic.model.builder.DocumentationLevel | ||
12 | import hu.bme.mit.inf.dslreasoner.logic.model.builder.LogicReasoner | 12 | import hu.bme.mit.inf.dslreasoner.logic.model.builder.LogicReasoner |
13 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.Type | 13 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.Type |
14 | import hu.bme.mit.inf.dslreasoner.logic.model.logicresult.LogicResult | 14 | import hu.bme.mit.inf.dslreasoner.logic.model.logicresult.LogicResult |
@@ -30,8 +30,7 @@ import org.eclipse.emf.ecore.EReference | |||
30 | import org.eclipse.emf.ecore.resource.Resource | 30 | import org.eclipse.emf.ecore.resource.Resource |
31 | import org.eclipse.emf.ecore.xmi.impl.XMIResourceFactoryImpl | 31 | import org.eclipse.emf.ecore.xmi.impl.XMIResourceFactoryImpl |
32 | import org.eclipse.viatra.query.runtime.api.IQueryGroup | 32 | import org.eclipse.viatra.query.runtime.api.IQueryGroup |
33 | import org.eclipse.emf.ecore.EClassifier | 33 | import hu.bme.mit.inf.dslreasoner.logic.model.builder.DocumentationLevel |
34 | import functionalarchitecture.FunctionalOutput | ||
35 | 34 | ||
36 | class GeneralTest { | 35 | class GeneralTest { |
37 | def static String createAndSolveProblem(EcoreMetamodelDescriptor metamodel, List<EObject> partialModel, | 36 | def static String createAndSolveProblem(EcoreMetamodelDescriptor metamodel, List<EObject> partialModel, |
@@ -67,7 +66,7 @@ class GeneralTest { | |||
67 | list2MapMin.get(Function.simpleName) | 66 | list2MapMin.get(Function.simpleName) |
68 | ), 1) | 67 | ), 1) |
69 | typeMapMin.put(ecore2Logic.TypeofEClass(modelGenerationProblem.trace, | 68 | typeMapMin.put(ecore2Logic.TypeofEClass(modelGenerationProblem.trace, |
70 | list2MapMin.get(functionalarchitecture.FunctionalInterface.simpleName) | 69 | list2MapMin.get(FunctionalInterface.simpleName) |
71 | ), 2) | 70 | ), 2) |
72 | typeMapMin.put(ecore2Logic.TypeofEClass(modelGenerationProblem.trace, | 71 | typeMapMin.put(ecore2Logic.TypeofEClass(modelGenerationProblem.trace, |
73 | list2MapMin.get(FunctionalOutput.simpleName) | 72 | list2MapMin.get(FunctionalOutput.simpleName) |
@@ -80,7 +79,7 @@ class GeneralTest { | |||
80 | ), 5) | 79 | ), 5) |
81 | typeMapMax.put(ecore2Logic.TypeofEClass( | 80 | typeMapMax.put(ecore2Logic.TypeofEClass( |
82 | modelGenerationProblem.trace, | 81 | modelGenerationProblem.trace, |
83 | list2MapMax.get(functionalarchitecture.FunctionalInterface.simpleName) | 82 | list2MapMax.get(FunctionalInterface.simpleName) |
84 | ), 2) | 83 | ), 2) |
85 | typeMapMax.put(ecore2Logic.TypeofEClass( | 84 | typeMapMax.put(ecore2Logic.TypeofEClass( |
86 | modelGenerationProblem.trace, | 85 | modelGenerationProblem.trace, |
@@ -92,7 +91,7 @@ class GeneralTest { | |||
92 | // add configuration things, in config file first | 91 | // add configuration things, in config file first |
93 | it.documentationLevel = DocumentationLevel::FULL | 92 | it.documentationLevel = DocumentationLevel::FULL |
94 | it.typeScopes.minNewElements = 6 | 93 | it.typeScopes.minNewElements = 6 |
95 | it.typeScopes.maxNewElements = 8 | 94 | it.typeScopes.maxNewElements = 40 |
96 | it.typeScopes.minNewElementsByType = typeMapMin | 95 | it.typeScopes.minNewElementsByType = typeMapMin |
97 | it.typeScopes.maxNewElementsByType = typeMapMax | 96 | it.typeScopes.maxNewElementsByType = typeMapMax |
98 | ] | 97 | ] |