aboutsummaryrefslogtreecommitdiffstats
path: root/Metrics/Metrics-Calculation/ca.mcgill.ecse.dslreasoner.realistic.metrics.calculator/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculator/validation/ConstraintCollection.java
diff options
context:
space:
mode:
Diffstat (limited to 'Metrics/Metrics-Calculation/ca.mcgill.ecse.dslreasoner.realistic.metrics.calculator/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculator/validation/ConstraintCollection.java')
-rw-r--r--Metrics/Metrics-Calculation/ca.mcgill.ecse.dslreasoner.realistic.metrics.calculator/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculator/validation/ConstraintCollection.java79
1 files changed, 79 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 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 @@
1package ca.mcgill.ecse.dslreasoner.realistic.metrics.calculator.validation;
2
3import java.util.ArrayList;
4import java.util.List;
5import java.util.Map;
6import org.eclipse.emf.common.notify.Notifier;
7import org.eclipse.emf.common.util.URI;
8import org.eclipse.emf.ecore.resource.Resource;
9import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl;
10import org.eclipse.xtext.xbase.lib.InputOutput;
11
12@SuppressWarnings("all")
13public 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}