diff options
author | 2020-05-09 21:36:05 +0200 | |
---|---|---|
committer | 2020-05-09 21:36:05 +0200 | |
commit | 4ccaba7ad5a23a060bca0fdf6660302f2bd9153c (patch) | |
tree | 312eb51923c2d7b2b8fa9f74b027db564c5b30b9 /Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.reasoner/src | |
parent | Numeric Solver integration to exploration (diff) | |
download | VIATRA-Generator-4ccaba7ad5a23a060bca0fdf6660302f2bd9153c.tar.gz VIATRA-Generator-4ccaba7ad5a23a060bca0fdf6660302f2bd9153c.tar.zst VIATRA-Generator-4ccaba7ad5a23a060bca0fdf6660302f2bd9153c.zip |
uninvolved objects are filled with a default value
Diffstat (limited to 'Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.reasoner/src')
-rw-r--r-- | Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.reasoner/src/hu/bme/mit/inf/dslreasoner/viatrasolver/reasoner/dse/NumericSolver.xtend | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.reasoner/src/hu/bme/mit/inf/dslreasoner/viatrasolver/reasoner/dse/NumericSolver.xtend b/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.reasoner/src/hu/bme/mit/inf/dslreasoner/viatrasolver/reasoner/dse/NumericSolver.xtend index b72bdb44..e1745854 100644 --- a/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.reasoner/src/hu/bme/mit/inf/dslreasoner/viatrasolver/reasoner/dse/NumericSolver.xtend +++ b/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.reasoner/src/hu/bme/mit/inf/dslreasoner/viatrasolver/reasoner/dse/NumericSolver.xtend | |||
@@ -102,6 +102,9 @@ class NumericSolver { | |||
102 | val value = solution.get(element) | 102 | val value = solution.get(element) |
103 | val target = trace.get(element) as PrimitiveElement | 103 | val target = trace.get(element) as PrimitiveElement |
104 | target.fillWithValue(value) | 104 | target.fillWithValue(value) |
105 | } else { | ||
106 | val target = trace.get(element) as PrimitiveElement | ||
107 | target.fillWithValue(target.defaultValue) | ||
105 | } | 108 | } |
106 | } | 109 | } |
107 | } | 110 | } |