diff options
Diffstat (limited to 'Domains/crossingScenario/src/crossingScenario/run/CrossingScenarioMain.java')
-rw-r--r-- | Domains/crossingScenario/src/crossingScenario/run/CrossingScenarioMain.java | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/Domains/crossingScenario/src/crossingScenario/run/CrossingScenarioMain.java b/Domains/crossingScenario/src/crossingScenario/run/CrossingScenarioMain.java index c0646edd..9b8f10dc 100644 --- a/Domains/crossingScenario/src/crossingScenario/run/CrossingScenarioMain.java +++ b/Domains/crossingScenario/src/crossingScenario/run/CrossingScenarioMain.java | |||
@@ -15,7 +15,13 @@ public class CrossingScenarioMain { | |||
15 | throw new IllegalStateException("This is a static utility class and should not be instantiated directly."); | 15 | throw new IllegalStateException("This is a static utility class and should not be instantiated directly."); |
16 | } | 16 | } |
17 | 17 | ||
18 | public static void main(String[] args) throws IOException { | 18 | public static void main(String[] args) throws IOException, InterruptedException { |
19 | // System.out.println(System.getProperty("java.library.path")); | ||
20 | //// System.setProperty("java.library.path", | ||
21 | //// "/home/models/VIATRA-Generator/Solvers/SMT-Solver/com.microsoft.z3/lib"); | ||
22 | // Thread.sleep(2000); | ||
23 | // System.out.println(System.getProperty("java.library.path")); | ||
24 | // System.loadLibrary("z3java"); | ||
19 | String errorMessages = StandaloneScriptExecutor.executeScript("inputs/crossingScenarioGen.vsconfig"); | 25 | String errorMessages = StandaloneScriptExecutor.executeScript("inputs/crossingScenarioGen.vsconfig"); |
20 | if (errorMessages != null) { | 26 | if (errorMessages != null) { |
21 | System.out.println(errorMessages); | 27 | System.out.println(errorMessages); |
@@ -28,10 +34,11 @@ public class CrossingScenarioMain { | |||
28 | int t2 = Integer.parseInt(times[4]); | 34 | int t2 = Integer.parseInt(times[4]); |
29 | int t3 = Integer.parseInt(times[5]); | 35 | int t3 = Integer.parseInt(times[5]); |
30 | int t4 = Integer.parseInt(times[6]); | 36 | int t4 = Integer.parseInt(times[6]); |
37 | int t5 = Integer.parseInt(times[7]); | ||
31 | int tot = t1+t2+t3+t4; | 38 | int tot = t1+t2+t3+t4; |
32 | System.out.println("domain2logic -> " + t1); | 39 | System.out.println("preprocessingTime -> ~" + (t1+t2)); |
33 | System.out.println("logic2solver -> " + t2); | 40 | System.out.println("sol0FoundAt -> " + (t5)); |
34 | System.out.println("solver -> " + t3); | 41 | System.out.println("solver -> ~" + t3); |
35 | System.out.println("postprocessing -> " + t4); | 42 | System.out.println("postprocessing -> " + t4); |
36 | 43 | ||
37 | System.out.println("TOTAL -> " + tot); | 44 | System.out.println("TOTAL -> " + tot); |
@@ -39,6 +46,6 @@ public class CrossingScenarioMain { | |||
39 | String p1 = "outputs/models/1.xmi"; | 46 | String p1 = "outputs/models/1.xmi"; |
40 | String p2 = "outputs/simplePrevLane.tgf"; | 47 | String p2 = "outputs/simplePrevLane.tgf"; |
41 | QueryDebug.checkPrevLanes(p1, p2); | 48 | QueryDebug.checkPrevLanes(p1, p2); |
42 | Desktop.getDesktop().open(new File(p2)); | 49 | // Desktop.getDesktop().open(new File(p2)); |
43 | } | 50 | } |
44 | } | 51 | } |