aboutsummaryrefslogtreecommitdiffstats
path: root/Framework/hu.bme.mit.inf.dslreasoner.logic.model/src/hu/bme/mit/inf
diff options
context:
space:
mode:
authorLibravatar OszkarSemerath <oszka@SEMERATH-LAPTOP>2017-08-15 19:49:03 +0200
committerLibravatar OszkarSemerath <oszka@SEMERATH-LAPTOP>2017-08-15 19:49:03 +0200
commit4e87ad2219cd888d94e5d2d85804d29cae3a79d8 (patch)
treedcfe039f8dcf6a24ca676fb132bef48c2e9a8cf3 /Framework/hu.bme.mit.inf.dslreasoner.logic.model/src/hu/bme/mit/inf
parentViatra Solver result support for primitive types (diff)
downloadVIATRA-Generator-4e87ad2219cd888d94e5d2d85804d29cae3a79d8.tar.gz
VIATRA-Generator-4e87ad2219cd888d94e5d2d85804d29cae3a79d8.tar.zst
VIATRA-Generator-4e87ad2219cd888d94e5d2d85804d29cae3a79d8.zip
Added known primitives to the scope
Diffstat (limited to 'Framework/hu.bme.mit.inf.dslreasoner.logic.model/src/hu/bme/mit/inf')
-rw-r--r--Framework/hu.bme.mit.inf.dslreasoner.logic.model/src/hu/bme/mit/inf/dslreasoner/logic/model/builder/LogicSolver.xtend19
1 files changed, 14 insertions, 5 deletions
diff --git a/Framework/hu.bme.mit.inf.dslreasoner.logic.model/src/hu/bme/mit/inf/dslreasoner/logic/model/builder/LogicSolver.xtend b/Framework/hu.bme.mit.inf.dslreasoner.logic.model/src/hu/bme/mit/inf/dslreasoner/logic/model/builder/LogicSolver.xtend
index 22bbb2e2..aaf14ebb 100644
--- a/Framework/hu.bme.mit.inf.dslreasoner.logic.model/src/hu/bme/mit/inf/dslreasoner/logic/model/builder/LogicSolver.xtend
+++ b/Framework/hu.bme.mit.inf.dslreasoner.logic.model/src/hu/bme/mit/inf/dslreasoner/logic/model/builder/LogicSolver.xtend
@@ -5,6 +5,9 @@ import hu.bme.mit.inf.dslreasoner.logic.model.logicresult.LogicResult
5import hu.bme.mit.inf.dslreasoner.logic.model.logicresult.ModelResult 5import hu.bme.mit.inf.dslreasoner.logic.model.logicresult.ModelResult
6import hu.bme.mit.inf.dslreasoner.workspace.ReasonerWorkspace 6import hu.bme.mit.inf.dslreasoner.workspace.ReasonerWorkspace
7import java.util.List 7import java.util.List
8import java.util.TreeSet
9import java.util.SortedSet
10import java.math.BigDecimal
8 11
9abstract class LogicReasoner { 12abstract class LogicReasoner {
10 def abstract LogicResult solve(LogicProblem problem, LogicSolverConfiguration configuration, 13 def abstract LogicResult solve(LogicProblem problem, LogicSolverConfiguration configuration,
@@ -47,19 +50,25 @@ abstract class LogicSolverConfiguration {
47 */ 50 */
48public class TypeScopes { 51public class TypeScopes {
49 public static val Unlimited = -1; 52 public static val Unlimited = -1;
50 public var boolean ignoreIdDuringGeneration = true 53
54 public var SortedSet<Integer> knownIntegers = new TreeSet
51 /** 55 /**
52 * Sets the number of Integers that has to be used to solve the problem. 56 * Sets the number of Integers that has to be used to solve the problem.
53 */ 57 */
54 public var numberOfUseableIntegers = Unlimited 58 public var maxNewIntegers = Unlimited
59
60 public var SortedSet<BigDecimal> knownReals = new TreeSet
55 /** 61 /**
56 * Sets the number of Integers that has to be used to solve the problem. 62 * Sets the number of Reals that has to be used to solve the problem.
57 */ 63 */
58 public var numberOfUseableReals = Unlimited 64 public var maxNewReals = Unlimited
65
66 public var SortedSet<String> knownStrings = new TreeSet
59 /** 67 /**
60 * Sets the number of Strings that has to be used to solve the problem. 68 * Sets the number of Strings that has to be used to solve the problem.
61 */ 69 */
62 public var numberOfUseableStrings = Unlimited 70 public var maxNewStrings = Unlimited
71
63 /** 72 /**
64 * Defines the minimal number of newly added elements. Default value is 0. 73 * Defines the minimal number of newly added elements. Default value is 0.
65 */ 74 */