diff options
author | 2019-08-08 16:45:45 -0400 | |
---|---|---|
committer | 2019-08-08 16:45:45 -0400 | |
commit | c33f0b9c4e112ee573d1b26d205a253cc0e487f8 (patch) | |
tree | 1ec2c4ab56b5bc0d0d56fa111bab0520c05604b4 /Metrics/Metrics-Calculation/SocialNetwork_plugin/src/ca/mcgill | |
parent | Further development of realistic solver, create generation config for ecore m... (diff) | |
download | VIATRA-Generator-c33f0b9c4e112ee573d1b26d205a253cc0e487f8.tar.gz VIATRA-Generator-c33f0b9c4e112ee573d1b26d205a253cc0e487f8.tar.zst VIATRA-Generator-c33f0b9c4e112ee573d1b26d205a253cc0e487f8.zip |
Configurations for generation and new domain for generation ecore model
Diffstat (limited to 'Metrics/Metrics-Calculation/SocialNetwork_plugin/src/ca/mcgill')
-rw-r--r-- | Metrics/Metrics-Calculation/SocialNetwork_plugin/src/ca/mcgill/ecse/socialnetwork/runner/Main.java | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Metrics/Metrics-Calculation/SocialNetwork_plugin/src/ca/mcgill/ecse/socialnetwork/runner/Main.java b/Metrics/Metrics-Calculation/SocialNetwork_plugin/src/ca/mcgill/ecse/socialnetwork/runner/Main.java index 9b426200..383852f1 100644 --- a/Metrics/Metrics-Calculation/SocialNetwork_plugin/src/ca/mcgill/ecse/socialnetwork/runner/Main.java +++ b/Metrics/Metrics-Calculation/SocialNetwork_plugin/src/ca/mcgill/ecse/socialnetwork/runner/Main.java | |||
@@ -5,6 +5,7 @@ import java.io.FileNotFoundException; | |||
5 | import java.io.PrintStream; | 5 | import java.io.PrintStream; |
6 | import java.util.ArrayList; | 6 | import java.util.ArrayList; |
7 | import java.util.Map; | 7 | import java.util.Map; |
8 | import java.util.Scanner; | ||
8 | 9 | ||
9 | import ca.mcgill.ecse.dslreasoner.realistic.metrics.calculator.app.Domain; | 10 | import ca.mcgill.ecse.dslreasoner.realistic.metrics.calculator.app.Domain; |
10 | import ca.mcgill.ecse.dslreasoner.realistic.metrics.calculator.distance.KSDistance; | 11 | import ca.mcgill.ecse.dslreasoner.realistic.metrics.calculator.distance.KSDistance; |
@@ -28,13 +29,13 @@ public class Main { | |||
28 | private static String configFolder = "yakinduum/config22/"; | 29 | private static String configFolder = "yakinduum/config22/"; |
29 | private static String configFileName = configFolder + "info_old_metric.csv"; | 30 | private static String configFileName = configFolder + "info_old_metric.csv"; |
30 | private static String aggregateViolationMeasureFileName = configFolder + "aggregateInfo.csv"; | 31 | private static String aggregateViolationMeasureFileName = configFolder + "aggregateInfo.csv"; |
31 | private static String fileReadFolder = "output/Viatra_100/"; | 32 | private static String fileReadFolder = "output/Ecore_100/"; |
32 | 33 | ||
33 | public static void main(String args[]) { | 34 | public static void main(String args[]) { |
34 | 35 | String ecoreFile = args[0]; | |
35 | 36 | System.out.println("Generation Started"); | |
36 | long begin = System.currentTimeMillis(); | 37 | long begin = System.currentTimeMillis(); |
37 | String message = runWithPath("ecore.vsconfig"); | 38 | String message = runWithPath(ecoreFile); |
38 | long elapsed = System.currentTimeMillis() - begin; | 39 | long elapsed = System.currentTimeMillis() - begin; |
39 | 40 | ||
40 | if(message != null) { | 41 | if(message != null) { |
@@ -147,7 +148,7 @@ public class Main { | |||
147 | ArrayList<String> output = new ArrayList<String>(); | 148 | ArrayList<String> output = new ArrayList<String>(); |
148 | GraphReader reader = new GraphReader(YakindummPackage.eINSTANCE, ".xmi"); | 149 | GraphReader reader = new GraphReader(YakindummPackage.eINSTANCE, ".xmi"); |
149 | EMFGraph graph = reader.readModel(fileReadFolder+"/run"+run, run + "_1.xmi"); | 150 | EMFGraph graph = reader.readModel(fileReadFolder+"/run"+run, run + "_1.xmi"); |
150 | MetricSampleGroup metrics = RepMetricsReader.read(Domain.Yakinduum); | 151 | MetricSampleGroup metrics = RepMetricsReader.read(Domain.Yakindumm); |
151 | //KS distance | 152 | //KS distance |
152 | KSDistance ks = new KSDistance(metrics); | 153 | KSDistance ks = new KSDistance(metrics); |
153 | 154 | ||