diff options
author | 2018-05-05 18:21:03 +0200 | |
---|---|---|
committer | 2018-05-05 18:21:03 +0200 | |
commit | 0de91bb5d6e2510e4d2dd8739e7e672bca26d872 (patch) | |
tree | b6616f6d4f0d50ccdf79fa82f7a4ee041ef08ec1 /Solvers/Alloy-Solver/hu.bme.mit.inf.dlsreasoner.alloy.reasoner/src/hu/bme/mit/inf/dlsreasoner | |
parent | containment mapping fix (diff) | |
download | VIATRA-Generator-0de91bb5d6e2510e4d2dd8739e7e672bca26d872.tar.gz VIATRA-Generator-0de91bb5d6e2510e4d2dd8739e7e672bca26d872.tar.zst VIATRA-Generator-0de91bb5d6e2510e4d2dd8739e7e672bca26d872.zip |
Alloy file writer configuration
Diffstat (limited to 'Solvers/Alloy-Solver/hu.bme.mit.inf.dlsreasoner.alloy.reasoner/src/hu/bme/mit/inf/dlsreasoner')
-rw-r--r-- | Solvers/Alloy-Solver/hu.bme.mit.inf.dlsreasoner.alloy.reasoner/src/hu/bme/mit/inf/dlsreasoner/alloy/reasoner/AlloySolver.xtend | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Solvers/Alloy-Solver/hu.bme.mit.inf.dlsreasoner.alloy.reasoner/src/hu/bme/mit/inf/dlsreasoner/alloy/reasoner/AlloySolver.xtend b/Solvers/Alloy-Solver/hu.bme.mit.inf.dlsreasoner.alloy.reasoner/src/hu/bme/mit/inf/dlsreasoner/alloy/reasoner/AlloySolver.xtend index e664b3b5..432651af 100644 --- a/Solvers/Alloy-Solver/hu.bme.mit.inf.dlsreasoner.alloy.reasoner/src/hu/bme/mit/inf/dlsreasoner/alloy/reasoner/AlloySolver.xtend +++ b/Solvers/Alloy-Solver/hu.bme.mit.inf.dlsreasoner.alloy.reasoner/src/hu/bme/mit/inf/dlsreasoner/alloy/reasoner/AlloySolver.xtend | |||
@@ -33,7 +33,7 @@ class AlloySolver extends LogicReasoner{ | |||
33 | 33 | ||
34 | override solve(LogicProblem problem, LogicSolverConfiguration configuration, ReasonerWorkspace workspace) throws LogicReasonerException { | 34 | override solve(LogicProblem problem, LogicSolverConfiguration configuration, ReasonerWorkspace workspace) throws LogicReasonerException { |
35 | val alloyConfig = configuration.asConfig | 35 | val alloyConfig = configuration.asConfig |
36 | val writeToFile = ( | 36 | val writeFile = ( |
37 | configuration.documentationLevel===DocumentationLevel::NORMAL || | 37 | configuration.documentationLevel===DocumentationLevel::NORMAL || |
38 | configuration.documentationLevel===DocumentationLevel::FULL) | 38 | configuration.documentationLevel===DocumentationLevel::FULL) |
39 | 39 | ||
@@ -45,7 +45,7 @@ class AlloySolver extends LogicReasoner{ | |||
45 | 45 | ||
46 | //var String fileURI = null; | 46 | //var String fileURI = null; |
47 | var String alloyCode = workspace.writeModelToString(alloyProblem,fileName) | 47 | var String alloyCode = workspace.writeModelToString(alloyProblem,fileName) |
48 | if(writeToFile) { | 48 | if(writeFile) { |
49 | workspace.writeModel(alloyProblem,fileName) | 49 | workspace.writeModel(alloyProblem,fileName) |
50 | } | 50 | } |
51 | val transformationTime = System.currentTimeMillis - transformationStart | 51 | val transformationTime = System.currentTimeMillis - transformationStart |