diff options
Diffstat (limited to 'Metrics/Metrics-Calculation/ca.mcgill.ecse.dslreasoner.realistic.metrics.calculator/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculator/validation')
6 files changed, 113 insertions, 0 deletions
diff --git a/Metrics/Metrics-Calculation/ca.mcgill.ecse.dslreasoner.realistic.metrics.calculator/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculator/validation/.ConstraintCollection.java._trace b/Metrics/Metrics-Calculation/ca.mcgill.ecse.dslreasoner.realistic.metrics.calculator/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculator/validation/.ConstraintCollection.java._trace new file mode 100644 index 00000000..1756f86a --- /dev/null +++ b/Metrics/Metrics-Calculation/ca.mcgill.ecse.dslreasoner.realistic.metrics.calculator/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculator/validation/.ConstraintCollection.java._trace | |||
Binary files differ | |||
diff --git a/Metrics/Metrics-Calculation/ca.mcgill.ecse.dslreasoner.realistic.metrics.calculator/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculator/validation/.ConstraintCollection.xtendbin b/Metrics/Metrics-Calculation/ca.mcgill.ecse.dslreasoner.realistic.metrics.calculator/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculator/validation/.ConstraintCollection.xtendbin new file mode 100644 index 00000000..708955a4 --- /dev/null +++ b/Metrics/Metrics-Calculation/ca.mcgill.ecse.dslreasoner.realistic.metrics.calculator/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculator/validation/.ConstraintCollection.xtendbin | |||
Binary files differ | |||
diff --git a/Metrics/Metrics-Calculation/ca.mcgill.ecse.dslreasoner.realistic.metrics.calculator/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculator/validation/.ViolationCheck.java._trace b/Metrics/Metrics-Calculation/ca.mcgill.ecse.dslreasoner.realistic.metrics.calculator/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculator/validation/.ViolationCheck.java._trace new file mode 100644 index 00000000..0cb68ca8 --- /dev/null +++ b/Metrics/Metrics-Calculation/ca.mcgill.ecse.dslreasoner.realistic.metrics.calculator/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculator/validation/.ViolationCheck.java._trace | |||
Binary files differ | |||
diff --git a/Metrics/Metrics-Calculation/ca.mcgill.ecse.dslreasoner.realistic.metrics.calculator/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculator/validation/.ViolationCheck.xtendbin b/Metrics/Metrics-Calculation/ca.mcgill.ecse.dslreasoner.realistic.metrics.calculator/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculator/validation/.ViolationCheck.xtendbin new file mode 100644 index 00000000..63721784 --- /dev/null +++ b/Metrics/Metrics-Calculation/ca.mcgill.ecse.dslreasoner.realistic.metrics.calculator/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculator/validation/.ViolationCheck.xtendbin | |||
Binary files differ | |||
diff --git a/Metrics/Metrics-Calculation/ca.mcgill.ecse.dslreasoner.realistic.metrics.calculator/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculator/validation/ConstraintCollection.java b/Metrics/Metrics-Calculation/ca.mcgill.ecse.dslreasoner.realistic.metrics.calculator/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculator/validation/ConstraintCollection.java new file mode 100644 index 00000000..92c69bea --- /dev/null +++ b/Metrics/Metrics-Calculation/ca.mcgill.ecse.dslreasoner.realistic.metrics.calculator/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculator/validation/ConstraintCollection.java | |||
@@ -0,0 +1,79 @@ | |||
1 | package ca.mcgill.ecse.dslreasoner.realistic.metrics.calculator.validation; | ||
2 | |||
3 | import java.util.ArrayList; | ||
4 | import java.util.List; | ||
5 | import java.util.Map; | ||
6 | import org.eclipse.emf.common.notify.Notifier; | ||
7 | import org.eclipse.emf.common.util.URI; | ||
8 | import org.eclipse.emf.ecore.resource.Resource; | ||
9 | import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl; | ||
10 | import org.eclipse.xtext.xbase.lib.InputOutput; | ||
11 | |||
12 | @SuppressWarnings("all") | ||
13 | public class ConstraintCollection { | ||
14 | private final /* ArrayList<IConstraintSpecification> */Object constraints /* Skipped initializer because of errors */; | ||
15 | |||
16 | private /* BaseGeneratedPatternGroup */Object patterns; | ||
17 | |||
18 | private List<Notifier> resources = new ArrayList<Notifier>(); | ||
19 | |||
20 | public ConstraintCollection(final /* List<IConstraintSpecification> */Object constraints, final List<String> uris, final /* BaseGeneratedPatternGroup */Object patterns) { | ||
21 | throw new Error("Unresolved compilation problems:" | ||
22 | + "\nThe field ConstraintCollection.constraints refers to the missing type IConstraintSpecification" | ||
23 | + "\nThe field ConstraintCollection.patterns refers to the missing type BaseGeneratedPatternGroup"); | ||
24 | } | ||
25 | |||
26 | public ConstraintCollection(final /* List<IConstraintSpecification> */Object constraints, final /* BaseGeneratedPatternGroup */Object patterns) { | ||
27 | throw new Error("Unresolved compilation problems:" | ||
28 | + "\nThe field ConstraintCollection.constraints refers to the missing type IConstraintSpecification" | ||
29 | + "\nThe field ConstraintCollection.patterns refers to the missing type BaseGeneratedPatternGroup"); | ||
30 | } | ||
31 | |||
32 | public boolean addModel(final Notifier n) { | ||
33 | return this.resources.add(n); | ||
34 | } | ||
35 | |||
36 | public String setURIs(final List<String> uris) { | ||
37 | String _xblockexpression = null; | ||
38 | { | ||
39 | final ResourceSetImpl resSet = new ResourceSetImpl(); | ||
40 | for (final String uri : uris) { | ||
41 | { | ||
42 | Resource resource = resSet.getResource(URI.createURI(uri), true); | ||
43 | this.resources.add(resource); | ||
44 | } | ||
45 | } | ||
46 | _xblockexpression = InputOutput.<String>println("reading model finished"); | ||
47 | } | ||
48 | return _xblockexpression; | ||
49 | } | ||
50 | |||
51 | public List<Integer> calculateViolations() { | ||
52 | throw new Error("Unresolved compilation problems:" | ||
53 | + "\nThe method or field querySpecification is undefined for the type Object" | ||
54 | + "\nThe method initEngine(Notifier) from the type ConstraintCollection refers to the missing type Object" | ||
55 | + "\nThe field ConstraintCollection.constraints refers to the missing type IConstraintSpecification" | ||
56 | + "\ngetMatcher cannot be resolved" | ||
57 | + "\ncountMatches cannot be resolved"); | ||
58 | } | ||
59 | |||
60 | public ArrayList<Map<String, Integer>> calculateViolationMaps() { | ||
61 | throw new Error("Unresolved compilation problems:" | ||
62 | + "\nThe method or field querySpecification is undefined for the type Object" | ||
63 | + "\nThe method or field querySpecification is undefined for the type Object" | ||
64 | + "\nThe method initEngine(Notifier) from the type ConstraintCollection refers to the missing type Object" | ||
65 | + "\nThe field ConstraintCollection.constraints refers to the missing type IConstraintSpecification" | ||
66 | + "\ngetMatcher cannot be resolved" | ||
67 | + "\ncountMatches cannot be resolved" | ||
68 | + "\nsimpleName cannot be resolved"); | ||
69 | } | ||
70 | |||
71 | private Object initEngine(final Notifier r) { | ||
72 | throw new Error("Unresolved compilation problems:" | ||
73 | + "\nThe method or field ViatraQueryEngine is undefined" | ||
74 | + "\nEMFScope cannot be resolved." | ||
75 | + "\nThe field ConstraintCollection.patterns refers to the missing type BaseGeneratedPatternGroup" | ||
76 | + "\non cannot be resolved" | ||
77 | + "\nprepare cannot be resolved"); | ||
78 | } | ||
79 | } | ||
diff --git a/Metrics/Metrics-Calculation/ca.mcgill.ecse.dslreasoner.realistic.metrics.calculator/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculator/validation/ViolationCheck.java b/Metrics/Metrics-Calculation/ca.mcgill.ecse.dslreasoner.realistic.metrics.calculator/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculator/validation/ViolationCheck.java new file mode 100644 index 00000000..7eb3ec77 --- /dev/null +++ b/Metrics/Metrics-Calculation/ca.mcgill.ecse.dslreasoner.realistic.metrics.calculator/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculator/validation/ViolationCheck.java | |||
@@ -0,0 +1,34 @@ | |||
1 | package ca.mcgill.ecse.dslreasoner.realistic.metrics.calculator.validation; | ||
2 | |||
3 | import ca.mcgill.ecse.dslreasoner.realistic.metrics.calculator.app.Domain; | ||
4 | import java.util.ArrayList; | ||
5 | import java.util.Map; | ||
6 | import org.eclipse.emf.ecore.EObject; | ||
7 | |||
8 | @SuppressWarnings("all") | ||
9 | public class ViolationCheck { | ||
10 | /** | ||
11 | * Return the total number of violations | ||
12 | */ | ||
13 | public static int calculateViolationCounts(final EObject root, final Domain d) { | ||
14 | throw new Error("Unresolved compilation problems:" | ||
15 | + "\nThe method loadConstraints(String) from the type ViolationCheck refers to the missing type IConstraintSpecification" | ||
16 | + "\nThe constructor ConstraintCollection(List<IConstraintSpecification>, BaseGeneratedPatternGroup) refers to the missing type IConstraintSpecification"); | ||
17 | } | ||
18 | |||
19 | /** | ||
20 | * return a map contain the count for each type of violation | ||
21 | */ | ||
22 | public static Map<String, Integer> violationMaps(final EObject root) { | ||
23 | throw new Error("Unresolved compilation problems:" | ||
24 | + "\nThe method loadConstraints(String) from the type ViolationCheck refers to the missing type IConstraintSpecification" | ||
25 | + "\nThe constructor ConstraintCollection(List<IConstraintSpecification>, BaseGeneratedPatternGroup) refers to the missing type IConstraintSpecification"); | ||
26 | } | ||
27 | |||
28 | public static /* ArrayList<IConstraintSpecification> */Object loadConstraints(final String packageName) { | ||
29 | throw new Error("Unresolved compilation problems:" | ||
30 | + "\nIConstraintSpecification cannot be resolved to a type." | ||
31 | + "\nIConstraintSpecification cannot be resolved to a type." | ||
32 | + "\nThe method or field IConstraintSpecification is undefined"); | ||
33 | } | ||
34 | } | ||