diff options
Diffstat (limited to 'Tests/MODELS2020-CaseStudies/case.study.pledge.queries')
46 files changed, 530 insertions, 49 deletions
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/.project b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/.project index f6cc6b58..9080c4bb 100644 --- a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/.project +++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/.project | |||
@@ -1,6 +1,6 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | <projectDescription> | 2 | <projectDescription> |
3 | <name>case.study.a.queries</name> | 3 | <name>case.study.pledge.run</name> |
4 | <comment></comment> | 4 | <comment></comment> |
5 | <projects> | 5 | <projects> |
6 | </projects> | 6 | </projects> |
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/META-INF/MANIFEST.MF b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/META-INF/MANIFEST.MF index c1bf0110..1ab2d276 100644 --- a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/META-INF/MANIFEST.MF +++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/META-INF/MANIFEST.MF | |||
@@ -1,7 +1,7 @@ | |||
1 | Manifest-Version: 1.0 | 1 | Manifest-Version: 1.0 |
2 | Bundle-ManifestVersion: 2 | 2 | Bundle-ManifestVersion: 2 |
3 | Bundle-Name: case.study.a.queries | 3 | Bundle-Name: case.study.a.queries |
4 | Bundle-SymbolicName: case.study.a.queries;singleton:=true | 4 | Bundle-SymbolicName: case.study.pledge.run;singleton:=true |
5 | Bundle-Version: 0.0.1.qualifier | 5 | Bundle-Version: 0.0.1.qualifier |
6 | Export-Package: queries | 6 | Export-Package: queries |
7 | Require-Bundle: org.eclipse.emf.ecore, | 7 | Require-Bundle: org.eclipse.emf.ecore, |
@@ -10,7 +10,7 @@ Require-Bundle: org.eclipse.emf.ecore, | |||
10 | org.eclipse.viatra.query.runtime.localsearch, | 10 | org.eclipse.viatra.query.runtime.localsearch, |
11 | org.eclipse.viatra.addon.querybasedfeatures.runtime;bundle-version="2.3.0", | 11 | org.eclipse.viatra.addon.querybasedfeatures.runtime;bundle-version="2.3.0", |
12 | org.eclipse.xtext.xbase.lib, | 12 | org.eclipse.xtext.xbase.lib, |
13 | case.study.a.model;bundle-version="1.0.0", | 13 | case.study.pledge.model;bundle-version="1.0.0", |
14 | test;bundle-version="0.1.0", | 14 | test;bundle-version="0.1.0", |
15 | hu.bme.mit.inf.dslreasoner.ecore2logic;bundle-version="1.0.0", | 15 | hu.bme.mit.inf.dslreasoner.ecore2logic;bundle-version="1.0.0", |
16 | hu.bme.mit.inf.dslreasoner.logic.model;bundle-version="1.0.0", | 16 | hu.bme.mit.inf.dslreasoner.logic.model;bundle-version="1.0.0", |
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/bin/.gitignore b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/bin/.gitignore new file mode 100644 index 00000000..3d70f0da --- /dev/null +++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/bin/.gitignore | |||
@@ -0,0 +1,2 @@ | |||
1 | /queries/ | ||
2 | /run/ | ||
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/bin/queries/.gitignore b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/bin/queries/.gitignore index 16afa8c0..527f3a0e 100644 --- a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/bin/queries/.gitignore +++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/bin/queries/.gitignore | |||
@@ -73,3 +73,40 @@ | |||
73 | /.Inv07.java._trace | 73 | /.Inv07.java._trace |
74 | /.Inv10.java._trace | 74 | /.Inv10.java._trace |
75 | /.X_inv15.java._trace | 75 | /.X_inv15.java._trace |
76 | /Inv03.java | ||
77 | /Inv05.java | ||
78 | /Inv06.java | ||
79 | /X_inv03_eligAll.java | ||
80 | /X_inv03_hasAll.java | ||
81 | /X_inv05_inRange.java | ||
82 | /Case_study_A.java | ||
83 | /Inv07.java | ||
84 | /Inv08.java | ||
85 | /Inv10.java | ||
86 | /Inv11.java | ||
87 | /Inv12.java | ||
88 | /Inv13.java | ||
89 | /Inv15.java | ||
90 | /Inv17.java | ||
91 | /Inv20.java | ||
92 | /Inv33.java | ||
93 | /Inv34.java | ||
94 | /Inv35.java | ||
95 | /Inv47.java | ||
96 | /Inv48.java | ||
97 | /Inv49.java | ||
98 | /X_inv08_inRange.java | ||
99 | /X_inv08_noType.java | ||
100 | /X_inv08_notEI.java | ||
101 | /X_inv11_incNotOver100.java | ||
102 | /X_inv11_incOver100.java | ||
103 | /X_inv12_notNonRes.java | ||
104 | /X_inv12_notZZ.java | ||
105 | /X_inv13.java | ||
106 | /X_inv15.java | ||
107 | /X_inv47.java | ||
108 | /X_inv48_3.java | ||
109 | /X_inv48_Dis.java | ||
110 | /X_inv48_notDis.java | ||
111 | /X_inv49_1.java | ||
112 | /X_inv49_2.java | ||
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/bin/run/.RunGenerator.xtendbin b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/bin/run/.RunGenerator.xtendbin index 325fee79..e2021169 100644 --- a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/bin/run/.RunGenerator.xtendbin +++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/bin/run/.RunGenerator.xtendbin | |||
Binary files differ | |||
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/bin/run/.gitignore b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/bin/run/.gitignore index bd13352d..8e503b4a 100644 --- a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/bin/run/.gitignore +++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/bin/run/.gitignore | |||
@@ -1,2 +1,4 @@ | |||
1 | /.GenerateScenarios.java._trace | 1 | /.GenerateScenarios.java._trace |
2 | /.checkQueries.java._trace | 2 | /.checkQueries.java._trace |
3 | /.RunGenerator.xtendbin | ||
4 | /GenerateScenarios.java | ||
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/.gitignore b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/.gitignore index 16afa8c0..527f3a0e 100644 --- a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/.gitignore +++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/.gitignore | |||
@@ -73,3 +73,40 @@ | |||
73 | /.Inv07.java._trace | 73 | /.Inv07.java._trace |
74 | /.Inv10.java._trace | 74 | /.Inv10.java._trace |
75 | /.X_inv15.java._trace | 75 | /.X_inv15.java._trace |
76 | /Inv03.java | ||
77 | /Inv05.java | ||
78 | /Inv06.java | ||
79 | /X_inv03_eligAll.java | ||
80 | /X_inv03_hasAll.java | ||
81 | /X_inv05_inRange.java | ||
82 | /Case_study_A.java | ||
83 | /Inv07.java | ||
84 | /Inv08.java | ||
85 | /Inv10.java | ||
86 | /Inv11.java | ||
87 | /Inv12.java | ||
88 | /Inv13.java | ||
89 | /Inv15.java | ||
90 | /Inv17.java | ||
91 | /Inv20.java | ||
92 | /Inv33.java | ||
93 | /Inv34.java | ||
94 | /Inv35.java | ||
95 | /Inv47.java | ||
96 | /Inv48.java | ||
97 | /Inv49.java | ||
98 | /X_inv08_inRange.java | ||
99 | /X_inv08_noType.java | ||
100 | /X_inv08_notEI.java | ||
101 | /X_inv11_incNotOver100.java | ||
102 | /X_inv11_incOver100.java | ||
103 | /X_inv12_notNonRes.java | ||
104 | /X_inv12_notZZ.java | ||
105 | /X_inv13.java | ||
106 | /X_inv15.java | ||
107 | /X_inv47.java | ||
108 | /X_inv48_3.java | ||
109 | /X_inv48_Dis.java | ||
110 | /X_inv48_notDis.java | ||
111 | /X_inv49_1.java | ||
112 | /X_inv49_2.java | ||
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Case_study_A.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Case_study_A.java index a8ab2996..11c60d6f 100644 --- a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Case_study_A.java +++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Case_study_A.java | |||
@@ -1,5 +1,5 @@ | |||
1 | /** | 1 | /** |
2 | * Generated from platform:/resource/case.study.a.queries/src/queries/case_study_A.vql | 2 | * Generated from platform:/resource/case.study.pledge.run/src/queries/case_study_A.vql |
3 | */ | 3 | */ |
4 | package queries; | 4 | package queries; |
5 | 5 | ||
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv03.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv03.java index cfe496bd..9038ec4d 100644 --- a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv03.java +++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv03.java | |||
@@ -1,5 +1,5 @@ | |||
1 | /** | 1 | /** |
2 | * Generated from platform:/resource/case.study.a.queries/src/queries/case_study_A.vql | 2 | * Generated from platform:/resource/case.study.pledge.run/src/queries/case_study_A.vql |
3 | */ | 3 | */ |
4 | package queries; | 4 | package queries; |
5 | 5 | ||
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv05.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv05.java index ba1f8552..2dee094d 100644 --- a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv05.java +++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv05.java | |||
@@ -1,5 +1,5 @@ | |||
1 | /** | 1 | /** |
2 | * Generated from platform:/resource/case.study.a.queries/src/queries/case_study_A.vql | 2 | * Generated from platform:/resource/case.study.pledge.run/src/queries/case_study_A.vql |
3 | */ | 3 | */ |
4 | package queries; | 4 | package queries; |
5 | 5 | ||
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv06.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv06.java index fcf7ac89..aafdbe41 100644 --- a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv06.java +++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv06.java | |||
@@ -1,5 +1,5 @@ | |||
1 | /** | 1 | /** |
2 | * Generated from platform:/resource/case.study.a.queries/src/queries/case_study_A.vql | 2 | * Generated from platform:/resource/case.study.pledge.run/src/queries/case_study_A.vql |
3 | */ | 3 | */ |
4 | package queries; | 4 | package queries; |
5 | 5 | ||
@@ -8,6 +8,7 @@ import java.util.Arrays; | |||
8 | import java.util.Collection; | 8 | import java.util.Collection; |
9 | import java.util.LinkedHashSet; | 9 | import java.util.LinkedHashSet; |
10 | import java.util.List; | 10 | import java.util.List; |
11 | import java.util.Objects; | ||
11 | import java.util.Optional; | 12 | import java.util.Optional; |
12 | import java.util.Set; | 13 | import java.util.Set; |
13 | import java.util.function.Consumer; | 14 | import java.util.function.Consumer; |
@@ -16,6 +17,7 @@ import java.util.stream.Stream; | |||
16 | import org.apache.log4j.Logger; | 17 | import org.apache.log4j.Logger; |
17 | import org.eclipse.emf.ecore.EClass; | 18 | import org.eclipse.emf.ecore.EClass; |
18 | import org.eclipse.emf.ecore.EDataType; | 19 | import org.eclipse.emf.ecore.EDataType; |
20 | import org.eclipse.viatra.query.runtime.api.IPatternMatch; | ||
19 | import org.eclipse.viatra.query.runtime.api.IQuerySpecification; | 21 | import org.eclipse.viatra.query.runtime.api.IQuerySpecification; |
20 | import org.eclipse.viatra.query.runtime.api.ViatraQueryEngine; | 22 | import org.eclipse.viatra.query.runtime.api.ViatraQueryEngine; |
21 | import org.eclipse.viatra.query.runtime.api.impl.BaseGeneratedEMFPQuery; | 23 | import org.eclipse.viatra.query.runtime.api.impl.BaseGeneratedEMFPQuery; |
@@ -82,6 +84,162 @@ public final class Inv06 extends BaseGeneratedEMFQuerySpecification<Inv06.Matche | |||
82 | * | 84 | * |
83 | */ | 85 | */ |
84 | public static abstract class Match extends BasePatternMatch { | 86 | public static abstract class Match extends BasePatternMatch { |
87 | private Tax_Payer fTp; | ||
88 | |||
89 | private static List<String> parameterNames = makeImmutableList("tp"); | ||
90 | |||
91 | private Match(final Tax_Payer pTp) { | ||
92 | this.fTp = pTp; | ||
93 | } | ||
94 | |||
95 | @Override | ||
96 | public Object get(final String parameterName) { | ||
97 | switch(parameterName) { | ||
98 | case "tp": return this.fTp; | ||
99 | default: return null; | ||
100 | } | ||
101 | } | ||
102 | |||
103 | @Override | ||
104 | public Object get(final int index) { | ||
105 | switch(index) { | ||
106 | case 0: return this.fTp; | ||
107 | default: return null; | ||
108 | } | ||
109 | } | ||
110 | |||
111 | public Tax_Payer getTp() { | ||
112 | return this.fTp; | ||
113 | } | ||
114 | |||
115 | @Override | ||
116 | public boolean set(final String parameterName, final Object newValue) { | ||
117 | if (!isMutable()) throw new java.lang.UnsupportedOperationException(); | ||
118 | if ("tp".equals(parameterName) ) { | ||
119 | this.fTp = (Tax_Payer) newValue; | ||
120 | return true; | ||
121 | } | ||
122 | return false; | ||
123 | } | ||
124 | |||
125 | public void setTp(final Tax_Payer pTp) { | ||
126 | if (!isMutable()) throw new java.lang.UnsupportedOperationException(); | ||
127 | this.fTp = pTp; | ||
128 | } | ||
129 | |||
130 | @Override | ||
131 | public String patternName() { | ||
132 | return "queries.inv06"; | ||
133 | } | ||
134 | |||
135 | @Override | ||
136 | public List<String> parameterNames() { | ||
137 | return Inv06.Match.parameterNames; | ||
138 | } | ||
139 | |||
140 | @Override | ||
141 | public Object[] toArray() { | ||
142 | return new Object[]{fTp}; | ||
143 | } | ||
144 | |||
145 | @Override | ||
146 | public Inv06.Match toImmutable() { | ||
147 | return isMutable() ? newMatch(fTp) : this; | ||
148 | } | ||
149 | |||
150 | @Override | ||
151 | public String prettyPrint() { | ||
152 | StringBuilder result = new StringBuilder(); | ||
153 | result.append("\"tp\"=" + prettyPrintValue(fTp)); | ||
154 | return result.toString(); | ||
155 | } | ||
156 | |||
157 | @Override | ||
158 | public int hashCode() { | ||
159 | return Objects.hash(fTp); | ||
160 | } | ||
161 | |||
162 | @Override | ||
163 | public boolean equals(final Object obj) { | ||
164 | if (this == obj) | ||
165 | return true; | ||
166 | if (obj == null) { | ||
167 | return false; | ||
168 | } | ||
169 | if ((obj instanceof Inv06.Match)) { | ||
170 | Inv06.Match other = (Inv06.Match) obj; | ||
171 | return Objects.equals(fTp, other.fTp); | ||
172 | } else { | ||
173 | // this should be infrequent | ||
174 | if (!(obj instanceof IPatternMatch)) { | ||
175 | return false; | ||
176 | } | ||
177 | IPatternMatch otherSig = (IPatternMatch) obj; | ||
178 | return Objects.equals(specification(), otherSig.specification()) && Arrays.deepEquals(toArray(), otherSig.toArray()); | ||
179 | } | ||
180 | } | ||
181 | |||
182 | @Override | ||
183 | public Inv06 specification() { | ||
184 | return Inv06.instance(); | ||
185 | } | ||
186 | |||
187 | /** | ||
188 | * Returns an empty, mutable match. | ||
189 | * Fields of the mutable match can be filled to create a partial match, usable as matcher input. | ||
190 | * | ||
191 | * @return the empty match. | ||
192 | * | ||
193 | */ | ||
194 | public static Inv06.Match newEmptyMatch() { | ||
195 | return new Mutable(null); | ||
196 | } | ||
197 | |||
198 | /** | ||
199 | * Returns a mutable (partial) match. | ||
200 | * Fields of the mutable match can be filled to create a partial match, usable as matcher input. | ||
201 | * | ||
202 | * @param pTp the fixed value of pattern parameter tp, or null if not bound. | ||
203 | * @return the new, mutable (partial) match object. | ||
204 | * | ||
205 | */ | ||
206 | public static Inv06.Match newMutableMatch(final Tax_Payer pTp) { | ||
207 | return new Mutable(pTp); | ||
208 | } | ||
209 | |||
210 | /** | ||
211 | * Returns a new (partial) match. | ||
212 | * This can be used e.g. to call the matcher with a partial match. | ||
213 | * <p>The returned match will be immutable. Use {@link #newEmptyMatch()} to obtain a mutable match object. | ||
214 | * @param pTp the fixed value of pattern parameter tp, or null if not bound. | ||
215 | * @return the (partial) match object. | ||
216 | * | ||
217 | */ | ||
218 | public static Inv06.Match newMatch(final Tax_Payer pTp) { | ||
219 | return new Immutable(pTp); | ||
220 | } | ||
221 | |||
222 | private static final class Mutable extends Inv06.Match { | ||
223 | Mutable(final Tax_Payer pTp) { | ||
224 | super(pTp); | ||
225 | } | ||
226 | |||
227 | @Override | ||
228 | public boolean isMutable() { | ||
229 | return true; | ||
230 | } | ||
231 | } | ||
232 | |||
233 | private static final class Immutable extends Inv06.Match { | ||
234 | Immutable(final Tax_Payer pTp) { | ||
235 | super(pTp); | ||
236 | } | ||
237 | |||
238 | @Override | ||
239 | public boolean isMutable() { | ||
240 | return false; | ||
241 | } | ||
242 | } | ||
85 | } | 243 | } |
86 | 244 | ||
87 | /** | 245 | /** |
@@ -189,7 +347,9 @@ public final class Inv06 extends BaseGeneratedEMFQuerySpecification<Inv06.Matche | |||
189 | * @return a match represented as a Match object, or null if no match is found. | 347 | * @return a match represented as a Match object, or null if no match is found. |
190 | * | 348 | * |
191 | */ | 349 | */ |
192 | public Optional<Inv06.Match> getOneArbitraryMatch(); | 350 | public Optional<Inv06.Match> getOneArbitraryMatch(final Tax_Payer pTp) { |
351 | return rawGetOneArbitraryMatch(new Object[]{pTp}); | ||
352 | } | ||
193 | 353 | ||
194 | /** | 354 | /** |
195 | * Indicates whether the given combination of specified pattern parameters constitute a valid pattern match, | 355 | * Indicates whether the given combination of specified pattern parameters constitute a valid pattern match, |
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv07.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv07.java index d9fed653..81665825 100644 --- a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv07.java +++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv07.java | |||
@@ -1,14 +1,14 @@ | |||
1 | /** | 1 | /** |
2 | * Generated from platform:/resource/case.study.a.queries/src/queries/case_study_A.vql | 2 | * Generated from platform:/resource/case.study.pledge.run/src/queries/case_study_A.vql |
3 | */ | 3 | */ |
4 | package queries; | 4 | package queries; |
5 | 5 | ||
6 | import Taxation.Income; | 6 | import Taxation.Income; |
7 | import com.google.common.base.Objects; | ||
8 | import java.util.Arrays; | 7 | import java.util.Arrays; |
9 | import java.util.Collection; | 8 | import java.util.Collection; |
10 | import java.util.LinkedHashSet; | 9 | import java.util.LinkedHashSet; |
11 | import java.util.List; | 10 | import java.util.List; |
11 | import java.util.Objects; | ||
12 | import java.util.Optional; | 12 | import java.util.Optional; |
13 | import java.util.Set; | 13 | import java.util.Set; |
14 | import java.util.function.Consumer; | 14 | import java.util.function.Consumer; |
@@ -17,6 +17,7 @@ import java.util.stream.Stream; | |||
17 | import org.apache.log4j.Logger; | 17 | import org.apache.log4j.Logger; |
18 | import org.eclipse.emf.ecore.EClass; | 18 | import org.eclipse.emf.ecore.EClass; |
19 | import org.eclipse.emf.ecore.EDataType; | 19 | import org.eclipse.emf.ecore.EDataType; |
20 | import org.eclipse.viatra.query.runtime.api.IPatternMatch; | ||
20 | import org.eclipse.viatra.query.runtime.api.IQuerySpecification; | 21 | import org.eclipse.viatra.query.runtime.api.IQuerySpecification; |
21 | import org.eclipse.viatra.query.runtime.api.ViatraQueryEngine; | 22 | import org.eclipse.viatra.query.runtime.api.ViatraQueryEngine; |
22 | import org.eclipse.viatra.query.runtime.api.impl.BaseGeneratedEMFPQuery; | 23 | import org.eclipse.viatra.query.runtime.api.impl.BaseGeneratedEMFPQuery; |
@@ -77,6 +78,162 @@ public final class Inv07 extends BaseGeneratedEMFQuerySpecification<Inv07.Matche | |||
77 | * | 78 | * |
78 | */ | 79 | */ |
79 | public static abstract class Match extends BasePatternMatch { | 80 | public static abstract class Match extends BasePatternMatch { |
81 | private Income fInc; | ||
82 | |||
83 | private static List<String> parameterNames = makeImmutableList("inc"); | ||
84 | |||
85 | private Match(final Income pInc) { | ||
86 | this.fInc = pInc; | ||
87 | } | ||
88 | |||
89 | @Override | ||
90 | public Object get(final String parameterName) { | ||
91 | switch(parameterName) { | ||
92 | case "inc": return this.fInc; | ||
93 | default: return null; | ||
94 | } | ||
95 | } | ||
96 | |||
97 | @Override | ||
98 | public Object get(final int index) { | ||
99 | switch(index) { | ||
100 | case 0: return this.fInc; | ||
101 | default: return null; | ||
102 | } | ||
103 | } | ||
104 | |||
105 | public Income getInc() { | ||
106 | return this.fInc; | ||
107 | } | ||
108 | |||
109 | @Override | ||
110 | public boolean set(final String parameterName, final Object newValue) { | ||
111 | if (!isMutable()) throw new java.lang.UnsupportedOperationException(); | ||
112 | if ("inc".equals(parameterName) ) { | ||
113 | this.fInc = (Income) newValue; | ||
114 | return true; | ||
115 | } | ||
116 | return false; | ||
117 | } | ||
118 | |||
119 | public void setInc(final Income pInc) { | ||
120 | if (!isMutable()) throw new java.lang.UnsupportedOperationException(); | ||
121 | this.fInc = pInc; | ||
122 | } | ||
123 | |||
124 | @Override | ||
125 | public String patternName() { | ||
126 | return "queries.inv07"; | ||
127 | } | ||
128 | |||
129 | @Override | ||
130 | public List<String> parameterNames() { | ||
131 | return Inv07.Match.parameterNames; | ||
132 | } | ||
133 | |||
134 | @Override | ||
135 | public Object[] toArray() { | ||
136 | return new Object[]{fInc}; | ||
137 | } | ||
138 | |||
139 | @Override | ||
140 | public Inv07.Match toImmutable() { | ||
141 | return isMutable() ? newMatch(fInc) : this; | ||
142 | } | ||
143 | |||
144 | @Override | ||
145 | public String prettyPrint() { | ||
146 | StringBuilder result = new StringBuilder(); | ||
147 | result.append("\"inc\"=" + prettyPrintValue(fInc)); | ||
148 | return result.toString(); | ||
149 | } | ||
150 | |||
151 | @Override | ||
152 | public int hashCode() { | ||
153 | return Objects.hash(fInc); | ||
154 | } | ||
155 | |||
156 | @Override | ||
157 | public boolean equals(final Object obj) { | ||
158 | if (this == obj) | ||
159 | return true; | ||
160 | if (obj == null) { | ||
161 | return false; | ||
162 | } | ||
163 | if ((obj instanceof Inv07.Match)) { | ||
164 | Inv07.Match other = (Inv07.Match) obj; | ||
165 | return Objects.equals(fInc, other.fInc); | ||
166 | } else { | ||
167 | // this should be infrequent | ||
168 | if (!(obj instanceof IPatternMatch)) { | ||
169 | return false; | ||
170 | } | ||
171 | IPatternMatch otherSig = (IPatternMatch) obj; | ||
172 | return Objects.equals(specification(), otherSig.specification()) && Arrays.deepEquals(toArray(), otherSig.toArray()); | ||
173 | } | ||
174 | } | ||
175 | |||
176 | @Override | ||
177 | public Inv07 specification() { | ||
178 | return Inv07.instance(); | ||
179 | } | ||
180 | |||
181 | /** | ||
182 | * Returns an empty, mutable match. | ||
183 | * Fields of the mutable match can be filled to create a partial match, usable as matcher input. | ||
184 | * | ||
185 | * @return the empty match. | ||
186 | * | ||
187 | */ | ||
188 | public static Inv07.Match newEmptyMatch() { | ||
189 | return new Mutable(null); | ||
190 | } | ||
191 | |||
192 | /** | ||
193 | * Returns a mutable (partial) match. | ||
194 | * Fields of the mutable match can be filled to create a partial match, usable as matcher input. | ||
195 | * | ||
196 | * @param pInc the fixed value of pattern parameter inc, or null if not bound. | ||
197 | * @return the new, mutable (partial) match object. | ||
198 | * | ||
199 | */ | ||
200 | public static Inv07.Match newMutableMatch(final Income pInc) { | ||
201 | return new Mutable(pInc); | ||
202 | } | ||
203 | |||
204 | /** | ||
205 | * Returns a new (partial) match. | ||
206 | * This can be used e.g. to call the matcher with a partial match. | ||
207 | * <p>The returned match will be immutable. Use {@link #newEmptyMatch()} to obtain a mutable match object. | ||
208 | * @param pInc the fixed value of pattern parameter inc, or null if not bound. | ||
209 | * @return the (partial) match object. | ||
210 | * | ||
211 | */ | ||
212 | public static Inv07.Match newMatch(final Income pInc) { | ||
213 | return new Immutable(pInc); | ||
214 | } | ||
215 | |||
216 | private static final class Mutable extends Inv07.Match { | ||
217 | Mutable(final Income pInc) { | ||
218 | super(pInc); | ||
219 | } | ||
220 | |||
221 | @Override | ||
222 | public boolean isMutable() { | ||
223 | return true; | ||
224 | } | ||
225 | } | ||
226 | |||
227 | private static final class Immutable extends Inv07.Match { | ||
228 | Immutable(final Income pInc) { | ||
229 | super(pInc); | ||
230 | } | ||
231 | |||
232 | @Override | ||
233 | public boolean isMutable() { | ||
234 | return false; | ||
235 | } | ||
236 | } | ||
80 | } | 237 | } |
81 | 238 | ||
82 | /** | 239 | /** |
@@ -449,7 +606,7 @@ public final class Inv07 extends BaseGeneratedEMFQuerySpecification<Inv07.Matche | |||
449 | } | 606 | } |
450 | 607 | ||
451 | private static boolean evaluateExpression_1_1(final Double d1, final Double d2) { | 608 | private static boolean evaluateExpression_1_1(final Double d1, final Double d2) { |
452 | boolean _notEquals = (!Objects.equal(d1, d2)); | 609 | boolean _notEquals = (!com.google.common.base.Objects.equal(d1, d2)); |
453 | return _notEquals; | 610 | return _notEquals; |
454 | } | 611 | } |
455 | } | 612 | } |
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv08.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv08.java index d2f869c6..9ecadd34 100644 --- a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv08.java +++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv08.java | |||
@@ -1,5 +1,5 @@ | |||
1 | /** | 1 | /** |
2 | * Generated from platform:/resource/case.study.a.queries/src/queries/case_study_A.vql | 2 | * Generated from platform:/resource/case.study.pledge.run/src/queries/case_study_A.vql |
3 | */ | 3 | */ |
4 | package queries; | 4 | package queries; |
5 | 5 | ||
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv10.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv10.java index 3c36b831..6ee0111e 100644 --- a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv10.java +++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv10.java | |||
@@ -1,5 +1,5 @@ | |||
1 | /** | 1 | /** |
2 | * Generated from platform:/resource/case.study.a.queries/src/queries/case_study_A.vql | 2 | * Generated from platform:/resource/case.study.pledge.run/src/queries/case_study_A.vql |
3 | */ | 3 | */ |
4 | package queries; | 4 | package queries; |
5 | 5 | ||
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv11.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv11.java index a64ef7ff..5dc82fc9 100644 --- a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv11.java +++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv11.java | |||
@@ -1,5 +1,5 @@ | |||
1 | /** | 1 | /** |
2 | * Generated from platform:/resource/case.study.a.queries/src/queries/case_study_A.vql | 2 | * Generated from platform:/resource/case.study.pledge.run/src/queries/case_study_A.vql |
3 | */ | 3 | */ |
4 | package queries; | 4 | package queries; |
5 | 5 | ||
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv12.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv12.java index 2a539a1d..fc1b0c62 100644 --- a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv12.java +++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv12.java | |||
@@ -1,5 +1,5 @@ | |||
1 | /** | 1 | /** |
2 | * Generated from platform:/resource/case.study.a.queries/src/queries/case_study_A.vql | 2 | * Generated from platform:/resource/case.study.pledge.run/src/queries/case_study_A.vql |
3 | */ | 3 | */ |
4 | package queries; | 4 | package queries; |
5 | 5 | ||
@@ -35,6 +35,7 @@ import org.eclipse.viatra.query.runtime.matchers.psystem.basicdeferred.ExportedP | |||
35 | import org.eclipse.viatra.query.runtime.matchers.psystem.basicdeferred.NegativePatternCall; | 35 | import org.eclipse.viatra.query.runtime.matchers.psystem.basicdeferred.NegativePatternCall; |
36 | import org.eclipse.viatra.query.runtime.matchers.psystem.basicenumerables.TypeConstraint; | 36 | import org.eclipse.viatra.query.runtime.matchers.psystem.basicenumerables.TypeConstraint; |
37 | import org.eclipse.viatra.query.runtime.matchers.psystem.queries.PParameter; | 37 | import org.eclipse.viatra.query.runtime.matchers.psystem.queries.PParameter; |
38 | import org.eclipse.viatra.query.runtime.matchers.psystem.queries.PParameterDirection; | ||
38 | import org.eclipse.viatra.query.runtime.matchers.psystem.queries.PVisibility; | 39 | import org.eclipse.viatra.query.runtime.matchers.psystem.queries.PVisibility; |
39 | import org.eclipse.viatra.query.runtime.matchers.tuple.Tuple; | 40 | import org.eclipse.viatra.query.runtime.matchers.tuple.Tuple; |
40 | import org.eclipse.viatra.query.runtime.matchers.tuple.Tuples; | 41 | import org.eclipse.viatra.query.runtime.matchers.tuple.Tuples; |
@@ -215,6 +216,10 @@ public final class Inv12 extends BaseGeneratedEMFQuerySpecification<Inv12.Matche | |||
215 | } | 216 | } |
216 | 217 | ||
217 | private static final class Mutable extends Inv12.Match { | 218 | private static final class Mutable extends Inv12.Match { |
219 | Mutable(final Tax_Payer pTp) { | ||
220 | super(pTp); | ||
221 | } | ||
222 | |||
218 | @Override | 223 | @Override |
219 | public boolean isMutable() { | 224 | public boolean isMutable() { |
220 | return true; | 225 | return true; |
@@ -381,7 +386,9 @@ public final class Inv12 extends BaseGeneratedEMFQuerySpecification<Inv12.Matche | |||
381 | * @return the (partial) match object. | 386 | * @return the (partial) match object. |
382 | * | 387 | * |
383 | */ | 388 | */ |
384 | public Inv12.Match newMatch(); | 389 | public Inv12.Match newMatch(final Tax_Payer pTp) { |
390 | return Inv12.Match.newMatch(pTp); | ||
391 | } | ||
385 | 392 | ||
386 | /** | 393 | /** |
387 | * Retrieve the set of values that occur in matches for tp. | 394 | * Retrieve the set of values that occur in matches for tp. |
@@ -516,7 +523,7 @@ public final class Inv12 extends BaseGeneratedEMFQuerySpecification<Inv12.Matche | |||
516 | private static class GeneratedPQuery extends BaseGeneratedEMFPQuery { | 523 | private static class GeneratedPQuery extends BaseGeneratedEMFPQuery { |
517 | private static final Inv12.GeneratedPQuery INSTANCE = new GeneratedPQuery(); | 524 | private static final Inv12.GeneratedPQuery INSTANCE = new GeneratedPQuery(); |
518 | 525 | ||
519 | private final PParameter parameter_tp; | 526 | private final PParameter parameter_tp = new PParameter("tp", "Taxation.Tax_Payer", new EClassTransitiveInstancesKey((EClass)getClassifierLiteralSafe("http:///TaxCard.ecore", "Tax_Payer")), PParameterDirection.INOUT); |
520 | 527 | ||
521 | private final List<PParameter> parameters = Arrays.asList(parameter_tp); | 528 | private final List<PParameter> parameters = Arrays.asList(parameter_tp); |
522 | 529 | ||
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv13.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv13.java index c162969f..a4aea47c 100644 --- a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv13.java +++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv13.java | |||
@@ -1,5 +1,5 @@ | |||
1 | /** | 1 | /** |
2 | * Generated from platform:/resource/case.study.a.queries/src/queries/case_study_A.vql | 2 | * Generated from platform:/resource/case.study.pledge.run/src/queries/case_study_A.vql |
3 | */ | 3 | */ |
4 | package queries; | 4 | package queries; |
5 | 5 | ||
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv15.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv15.java index 50799179..3bfab503 100644 --- a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv15.java +++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv15.java | |||
@@ -1,5 +1,5 @@ | |||
1 | /** | 1 | /** |
2 | * Generated from platform:/resource/case.study.a.queries/src/queries/case_study_A.vql | 2 | * Generated from platform:/resource/case.study.pledge.run/src/queries/case_study_A.vql |
3 | */ | 3 | */ |
4 | package queries; | 4 | package queries; |
5 | 5 | ||
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv17.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv17.java index 8019db8c..4a10d4f4 100644 --- a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv17.java +++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv17.java | |||
@@ -1,5 +1,5 @@ | |||
1 | /** | 1 | /** |
2 | * Generated from platform:/resource/case.study.a.queries/src/queries/case_study_A.vql | 2 | * Generated from platform:/resource/case.study.pledge.run/src/queries/case_study_A.vql |
3 | */ | 3 | */ |
4 | package queries; | 4 | package queries; |
5 | 5 | ||
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv20.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv20.java index 2d5bd266..6fcc3b7d 100644 --- a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv20.java +++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv20.java | |||
@@ -1,5 +1,5 @@ | |||
1 | /** | 1 | /** |
2 | * Generated from platform:/resource/case.study.a.queries/src/queries/case_study_A.vql | 2 | * Generated from platform:/resource/case.study.pledge.run/src/queries/case_study_A.vql |
3 | */ | 3 | */ |
4 | package queries; | 4 | package queries; |
5 | 5 | ||
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv33.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv33.java index f90cca26..1672290c 100644 --- a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv33.java +++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv33.java | |||
@@ -1,5 +1,5 @@ | |||
1 | /** | 1 | /** |
2 | * Generated from platform:/resource/case.study.a.queries/src/queries/case_study_A.vql | 2 | * Generated from platform:/resource/case.study.pledge.run/src/queries/case_study_A.vql |
3 | */ | 3 | */ |
4 | package queries; | 4 | package queries; |
5 | 5 | ||
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv34.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv34.java index 89a24686..b9b28986 100644 --- a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv34.java +++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv34.java | |||
@@ -1,5 +1,5 @@ | |||
1 | /** | 1 | /** |
2 | * Generated from platform:/resource/case.study.a.queries/src/queries/case_study_A.vql | 2 | * Generated from platform:/resource/case.study.pledge.run/src/queries/case_study_A.vql |
3 | */ | 3 | */ |
4 | package queries; | 4 | package queries; |
5 | 5 | ||
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv35.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv35.java index b5da21b4..c67325ac 100644 --- a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv35.java +++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv35.java | |||
@@ -1,5 +1,5 @@ | |||
1 | /** | 1 | /** |
2 | * Generated from platform:/resource/case.study.a.queries/src/queries/case_study_A.vql | 2 | * Generated from platform:/resource/case.study.pledge.run/src/queries/case_study_A.vql |
3 | */ | 3 | */ |
4 | package queries; | 4 | package queries; |
5 | 5 | ||
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv47.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv47.java index d86f31c9..10ba19d6 100644 --- a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv47.java +++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv47.java | |||
@@ -1,5 +1,5 @@ | |||
1 | /** | 1 | /** |
2 | * Generated from platform:/resource/case.study.a.queries/src/queries/case_study_A.vql | 2 | * Generated from platform:/resource/case.study.pledge.run/src/queries/case_study_A.vql |
3 | */ | 3 | */ |
4 | package queries; | 4 | package queries; |
5 | 5 | ||
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv48.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv48.java index 66c66988..67133328 100644 --- a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv48.java +++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv48.java | |||
@@ -1,5 +1,5 @@ | |||
1 | /** | 1 | /** |
2 | * Generated from platform:/resource/case.study.a.queries/src/queries/case_study_A.vql | 2 | * Generated from platform:/resource/case.study.pledge.run/src/queries/case_study_A.vql |
3 | */ | 3 | */ |
4 | package queries; | 4 | package queries; |
5 | 5 | ||
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv49.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv49.java index 3f8b975e..66bca24a 100644 --- a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv49.java +++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/Inv49.java | |||
@@ -1,5 +1,5 @@ | |||
1 | /** | 1 | /** |
2 | * Generated from platform:/resource/case.study.a.queries/src/queries/case_study_A.vql | 2 | * Generated from platform:/resource/case.study.pledge.run/src/queries/case_study_A.vql |
3 | */ | 3 | */ |
4 | package queries; | 4 | package queries; |
5 | 5 | ||
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv03_eligAll.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv03_eligAll.java index 89ae2bcc..0bfffe93 100644 --- a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv03_eligAll.java +++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv03_eligAll.java | |||
@@ -1,5 +1,5 @@ | |||
1 | /** | 1 | /** |
2 | * Generated from platform:/resource/case.study.a.queries/src/queries/case_study_A.vql | 2 | * Generated from platform:/resource/case.study.pledge.run/src/queries/case_study_A.vql |
3 | */ | 3 | */ |
4 | package queries; | 4 | package queries; |
5 | 5 | ||
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv03_hasAll.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv03_hasAll.java index 66e47407..90deb92d 100644 --- a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv03_hasAll.java +++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv03_hasAll.java | |||
@@ -1,5 +1,5 @@ | |||
1 | /** | 1 | /** |
2 | * Generated from platform:/resource/case.study.a.queries/src/queries/case_study_A.vql | 2 | * Generated from platform:/resource/case.study.pledge.run/src/queries/case_study_A.vql |
3 | */ | 3 | */ |
4 | package queries; | 4 | package queries; |
5 | 5 | ||
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv05_inRange.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv05_inRange.java index 4c2a7299..aea94873 100644 --- a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv05_inRange.java +++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv05_inRange.java | |||
@@ -1,5 +1,5 @@ | |||
1 | /** | 1 | /** |
2 | * Generated from platform:/resource/case.study.a.queries/src/queries/case_study_A.vql | 2 | * Generated from platform:/resource/case.study.pledge.run/src/queries/case_study_A.vql |
3 | */ | 3 | */ |
4 | package queries; | 4 | package queries; |
5 | 5 | ||
@@ -344,7 +344,9 @@ public final class X_inv05_inRange extends BaseGeneratedEMFQuerySpecification<X_ | |||
344 | * @return true if the input is a valid (partial) match of the pattern. | 344 | * @return true if the input is a valid (partial) match of the pattern. |
345 | * | 345 | * |
346 | */ | 346 | */ |
347 | public boolean hasMatch(); | 347 | public boolean hasMatch(final Income pInc) { |
348 | return rawHasMatch(new Object[]{pInc}); | ||
349 | } | ||
348 | 350 | ||
349 | /** | 351 | /** |
350 | * Returns the number of all matches of the pattern that conform to the given fixed values of some parameters. | 352 | * Returns the number of all matches of the pattern that conform to the given fixed values of some parameters. |
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv08_inRange.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv08_inRange.java index 7974c256..b3efea21 100644 --- a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv08_inRange.java +++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv08_inRange.java | |||
@@ -1,5 +1,5 @@ | |||
1 | /** | 1 | /** |
2 | * Generated from platform:/resource/case.study.a.queries/src/queries/case_study_A.vql | 2 | * Generated from platform:/resource/case.study.pledge.run/src/queries/case_study_A.vql |
3 | */ | 3 | */ |
4 | package queries; | 4 | package queries; |
5 | 5 | ||
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv08_noType.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv08_noType.java index 2bffe499..451d7d66 100644 --- a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv08_noType.java +++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv08_noType.java | |||
@@ -1,5 +1,5 @@ | |||
1 | /** | 1 | /** |
2 | * Generated from platform:/resource/case.study.a.queries/src/queries/case_study_A.vql | 2 | * Generated from platform:/resource/case.study.pledge.run/src/queries/case_study_A.vql |
3 | */ | 3 | */ |
4 | package queries; | 4 | package queries; |
5 | 5 | ||
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv08_notEI.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv08_notEI.java index 4b4029a8..07236028 100644 --- a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv08_notEI.java +++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv08_notEI.java | |||
@@ -1,5 +1,5 @@ | |||
1 | /** | 1 | /** |
2 | * Generated from platform:/resource/case.study.a.queries/src/queries/case_study_A.vql | 2 | * Generated from platform:/resource/case.study.pledge.run/src/queries/case_study_A.vql |
3 | */ | 3 | */ |
4 | package queries; | 4 | package queries; |
5 | 5 | ||
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv11_incNotOver100.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv11_incNotOver100.java index 35b30b0f..995946eb 100644 --- a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv11_incNotOver100.java +++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv11_incNotOver100.java | |||
@@ -1,5 +1,5 @@ | |||
1 | /** | 1 | /** |
2 | * Generated from platform:/resource/case.study.a.queries/src/queries/case_study_A.vql | 2 | * Generated from platform:/resource/case.study.pledge.run/src/queries/case_study_A.vql |
3 | */ | 3 | */ |
4 | package queries; | 4 | package queries; |
5 | 5 | ||
@@ -11,11 +11,14 @@ import java.util.List; | |||
11 | import java.util.Objects; | 11 | import java.util.Objects; |
12 | import java.util.Optional; | 12 | import java.util.Optional; |
13 | import java.util.Set; | 13 | import java.util.Set; |
14 | import java.util.function.Consumer; | ||
15 | import java.util.stream.Collectors; | ||
14 | import java.util.stream.Stream; | 16 | import java.util.stream.Stream; |
15 | import org.apache.log4j.Logger; | 17 | import org.apache.log4j.Logger; |
16 | import org.eclipse.emf.ecore.EClass; | 18 | import org.eclipse.emf.ecore.EClass; |
17 | import org.eclipse.emf.ecore.EDataType; | 19 | import org.eclipse.emf.ecore.EDataType; |
18 | import org.eclipse.viatra.query.runtime.api.IPatternMatch; | 20 | import org.eclipse.viatra.query.runtime.api.IPatternMatch; |
21 | import org.eclipse.viatra.query.runtime.api.IQuerySpecification; | ||
19 | import org.eclipse.viatra.query.runtime.api.ViatraQueryEngine; | 22 | import org.eclipse.viatra.query.runtime.api.ViatraQueryEngine; |
20 | import org.eclipse.viatra.query.runtime.api.impl.BaseGeneratedEMFPQuery; | 23 | import org.eclipse.viatra.query.runtime.api.impl.BaseGeneratedEMFPQuery; |
21 | import org.eclipse.viatra.query.runtime.api.impl.BaseGeneratedEMFQuerySpecification; | 24 | import org.eclipse.viatra.query.runtime.api.impl.BaseGeneratedEMFQuerySpecification; |
@@ -36,6 +39,7 @@ import org.eclipse.viatra.query.runtime.matchers.psystem.basicenumerables.TypeCo | |||
36 | import org.eclipse.viatra.query.runtime.matchers.psystem.queries.PParameter; | 39 | import org.eclipse.viatra.query.runtime.matchers.psystem.queries.PParameter; |
37 | import org.eclipse.viatra.query.runtime.matchers.psystem.queries.PParameterDirection; | 40 | import org.eclipse.viatra.query.runtime.matchers.psystem.queries.PParameterDirection; |
38 | import org.eclipse.viatra.query.runtime.matchers.psystem.queries.PVisibility; | 41 | import org.eclipse.viatra.query.runtime.matchers.psystem.queries.PVisibility; |
42 | import org.eclipse.viatra.query.runtime.matchers.tuple.Tuple; | ||
39 | import org.eclipse.viatra.query.runtime.matchers.tuple.Tuples; | 43 | import org.eclipse.viatra.query.runtime.matchers.tuple.Tuples; |
40 | import org.eclipse.viatra.query.runtime.util.ViatraQueryLoggingUtil; | 44 | import org.eclipse.viatra.query.runtime.util.ViatraQueryLoggingUtil; |
41 | 45 | ||
@@ -312,7 +316,9 @@ public final class X_inv11_incNotOver100 extends BaseGeneratedEMFQuerySpecificat | |||
312 | * @return matches represented as a Match object. | 316 | * @return matches represented as a Match object. |
313 | * | 317 | * |
314 | */ | 318 | */ |
315 | public Collection<X_inv11_incNotOver100.Match> getAllMatches(); | 319 | public Collection<X_inv11_incNotOver100.Match> getAllMatches(final Expense pExp) { |
320 | return rawStreamAllMatches(new Object[]{pExp}).collect(Collectors.toSet()); | ||
321 | } | ||
316 | 322 | ||
317 | /** | 323 | /** |
318 | * Returns a stream of all matches of the pattern that conform to the given fixed values of some parameters. | 324 | * Returns a stream of all matches of the pattern that conform to the given fixed values of some parameters. |
@@ -368,7 +374,9 @@ public final class X_inv11_incNotOver100 extends BaseGeneratedEMFQuerySpecificat | |||
368 | * @return true if the pattern has at least one match with the given parameter values, false if the processor was not invoked | 374 | * @return true if the pattern has at least one match with the given parameter values, false if the processor was not invoked |
369 | * | 375 | * |
370 | */ | 376 | */ |
371 | public boolean forOneArbitraryMatch(); | 377 | public boolean forOneArbitraryMatch(final Expense pExp, final Consumer<? super X_inv11_incNotOver100.Match> processor) { |
378 | return rawForOneArbitraryMatch(new Object[]{pExp}, processor); | ||
379 | } | ||
372 | 380 | ||
373 | /** | 381 | /** |
374 | * Returns a new (partial) match. | 382 | * Returns a new (partial) match. |
@@ -381,6 +389,72 @@ public final class X_inv11_incNotOver100 extends BaseGeneratedEMFQuerySpecificat | |||
381 | public X_inv11_incNotOver100.Match newMatch(final Expense pExp) { | 389 | public X_inv11_incNotOver100.Match newMatch(final Expense pExp) { |
382 | return X_inv11_incNotOver100.Match.newMatch(pExp); | 390 | return X_inv11_incNotOver100.Match.newMatch(pExp); |
383 | } | 391 | } |
392 | |||
393 | /** | ||
394 | * Retrieve the set of values that occur in matches for exp. | ||
395 | * @return the Set of all values or empty set if there are no matches | ||
396 | * | ||
397 | */ | ||
398 | protected Stream<Expense> rawStreamAllValuesOfexp(final Object[] parameters) { | ||
399 | return rawStreamAllValues(POSITION_EXP, parameters).map(Expense.class::cast); | ||
400 | } | ||
401 | |||
402 | /** | ||
403 | * Retrieve the set of values that occur in matches for exp. | ||
404 | * @return the Set of all values or empty set if there are no matches | ||
405 | * | ||
406 | */ | ||
407 | public Set<Expense> getAllValuesOfexp() { | ||
408 | return rawStreamAllValuesOfexp(emptyArray()).collect(Collectors.toSet()); | ||
409 | } | ||
410 | |||
411 | /** | ||
412 | * Retrieve the set of values that occur in matches for exp. | ||
413 | * @return the Set of all values or empty set if there are no matches | ||
414 | * | ||
415 | */ | ||
416 | public Stream<Expense> streamAllValuesOfexp() { | ||
417 | return rawStreamAllValuesOfexp(emptyArray()); | ||
418 | } | ||
419 | |||
420 | @Override | ||
421 | protected X_inv11_incNotOver100.Match tupleToMatch(final Tuple t) { | ||
422 | try { | ||
423 | return X_inv11_incNotOver100.Match.newMatch((Expense) t.get(POSITION_EXP)); | ||
424 | } catch(ClassCastException e) { | ||
425 | LOGGER.error("Element(s) in tuple not properly typed!",e); | ||
426 | return null; | ||
427 | } | ||
428 | } | ||
429 | |||
430 | @Override | ||
431 | protected X_inv11_incNotOver100.Match arrayToMatch(final Object[] match) { | ||
432 | try { | ||
433 | return X_inv11_incNotOver100.Match.newMatch((Expense) match[POSITION_EXP]); | ||
434 | } catch(ClassCastException e) { | ||
435 | LOGGER.error("Element(s) in array not properly typed!",e); | ||
436 | return null; | ||
437 | } | ||
438 | } | ||
439 | |||
440 | @Override | ||
441 | protected X_inv11_incNotOver100.Match arrayToMatchMutable(final Object[] match) { | ||
442 | try { | ||
443 | return X_inv11_incNotOver100.Match.newMutableMatch((Expense) match[POSITION_EXP]); | ||
444 | } catch(ClassCastException e) { | ||
445 | LOGGER.error("Element(s) in array not properly typed!",e); | ||
446 | return null; | ||
447 | } | ||
448 | } | ||
449 | |||
450 | /** | ||
451 | * @return the singleton instance of the query specification of this pattern | ||
452 | * @throws ViatraQueryRuntimeException if the pattern definition could not be loaded | ||
453 | * | ||
454 | */ | ||
455 | public static IQuerySpecification<X_inv11_incNotOver100.Matcher> querySpecification() { | ||
456 | return X_inv11_incNotOver100.instance(); | ||
457 | } | ||
384 | } | 458 | } |
385 | 459 | ||
386 | private X_inv11_incNotOver100() { | 460 | private X_inv11_incNotOver100() { |
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv11_incOver100.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv11_incOver100.java index 27f7a2dc..65ae5dd6 100644 --- a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv11_incOver100.java +++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv11_incOver100.java | |||
@@ -1,5 +1,5 @@ | |||
1 | /** | 1 | /** |
2 | * Generated from platform:/resource/case.study.a.queries/src/queries/case_study_A.vql | 2 | * Generated from platform:/resource/case.study.pledge.run/src/queries/case_study_A.vql |
3 | */ | 3 | */ |
4 | package queries; | 4 | package queries; |
5 | 5 | ||
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv12_notNonRes.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv12_notNonRes.java index 1c0e5109..96aea5e8 100644 --- a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv12_notNonRes.java +++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv12_notNonRes.java | |||
@@ -1,5 +1,5 @@ | |||
1 | /** | 1 | /** |
2 | * Generated from platform:/resource/case.study.a.queries/src/queries/case_study_A.vql | 2 | * Generated from platform:/resource/case.study.pledge.run/src/queries/case_study_A.vql |
3 | */ | 3 | */ |
4 | package queries; | 4 | package queries; |
5 | 5 | ||
@@ -30,6 +30,7 @@ import org.eclipse.viatra.query.runtime.matchers.psystem.PVariable; | |||
30 | import org.eclipse.viatra.query.runtime.matchers.psystem.basicdeferred.ExportedParameter; | 30 | import org.eclipse.viatra.query.runtime.matchers.psystem.basicdeferred.ExportedParameter; |
31 | import org.eclipse.viatra.query.runtime.matchers.psystem.basicenumerables.TypeConstraint; | 31 | import org.eclipse.viatra.query.runtime.matchers.psystem.basicenumerables.TypeConstraint; |
32 | import org.eclipse.viatra.query.runtime.matchers.psystem.queries.PParameter; | 32 | import org.eclipse.viatra.query.runtime.matchers.psystem.queries.PParameter; |
33 | import org.eclipse.viatra.query.runtime.matchers.psystem.queries.PParameterDirection; | ||
33 | import org.eclipse.viatra.query.runtime.matchers.psystem.queries.PVisibility; | 34 | import org.eclipse.viatra.query.runtime.matchers.psystem.queries.PVisibility; |
34 | import org.eclipse.viatra.query.runtime.matchers.tuple.Tuple; | 35 | import org.eclipse.viatra.query.runtime.matchers.tuple.Tuple; |
35 | import org.eclipse.viatra.query.runtime.matchers.tuple.Tuples; | 36 | import org.eclipse.viatra.query.runtime.matchers.tuple.Tuples; |
@@ -499,7 +500,7 @@ public final class X_inv12_notNonRes extends BaseGeneratedEMFQuerySpecification< | |||
499 | private static class GeneratedPQuery extends BaseGeneratedEMFPQuery { | 500 | private static class GeneratedPQuery extends BaseGeneratedEMFPQuery { |
500 | private static final X_inv12_notNonRes.GeneratedPQuery INSTANCE = new GeneratedPQuery(); | 501 | private static final X_inv12_notNonRes.GeneratedPQuery INSTANCE = new GeneratedPQuery(); |
501 | 502 | ||
502 | private final PParameter parameter_tp; | 503 | private final PParameter parameter_tp = new PParameter("tp", "Taxation.Non_Resident_Tax_Payer", new EClassTransitiveInstancesKey((EClass)getClassifierLiteralSafe("http:///TaxCard.ecore", "Non_Resident_Tax_Payer")), PParameterDirection.INOUT); |
503 | 504 | ||
504 | private final List<PParameter> parameters = Arrays.asList(parameter_tp); | 505 | private final List<PParameter> parameters = Arrays.asList(parameter_tp); |
505 | 506 | ||
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv12_notZZ.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv12_notZZ.java index 68a4098f..f8e7da17 100644 --- a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv12_notZZ.java +++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv12_notZZ.java | |||
@@ -1,5 +1,5 @@ | |||
1 | /** | 1 | /** |
2 | * Generated from platform:/resource/case.study.a.queries/src/queries/case_study_A.vql | 2 | * Generated from platform:/resource/case.study.pledge.run/src/queries/case_study_A.vql |
3 | */ | 3 | */ |
4 | package queries; | 4 | package queries; |
5 | 5 | ||
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv13.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv13.java index ac0dd914..42afdd70 100644 --- a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv13.java +++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv13.java | |||
@@ -1,5 +1,5 @@ | |||
1 | /** | 1 | /** |
2 | * Generated from platform:/resource/case.study.a.queries/src/queries/case_study_A.vql | 2 | * Generated from platform:/resource/case.study.pledge.run/src/queries/case_study_A.vql |
3 | */ | 3 | */ |
4 | package queries; | 4 | package queries; |
5 | 5 | ||
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv15.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv15.java index 70d0a290..d162542d 100644 --- a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv15.java +++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv15.java | |||
@@ -1,5 +1,5 @@ | |||
1 | /** | 1 | /** |
2 | * Generated from platform:/resource/case.study.a.queries/src/queries/case_study_A.vql | 2 | * Generated from platform:/resource/case.study.pledge.run/src/queries/case_study_A.vql |
3 | */ | 3 | */ |
4 | package queries; | 4 | package queries; |
5 | 5 | ||
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv47.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv47.java index c1477d21..c602f8d4 100644 --- a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv47.java +++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv47.java | |||
@@ -1,5 +1,5 @@ | |||
1 | /** | 1 | /** |
2 | * Generated from platform:/resource/case.study.a.queries/src/queries/case_study_A.vql | 2 | * Generated from platform:/resource/case.study.pledge.run/src/queries/case_study_A.vql |
3 | */ | 3 | */ |
4 | package queries; | 4 | package queries; |
5 | 5 | ||
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv48_3.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv48_3.java index 2a522290..913e9c7e 100644 --- a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv48_3.java +++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv48_3.java | |||
@@ -1,5 +1,5 @@ | |||
1 | /** | 1 | /** |
2 | * Generated from platform:/resource/case.study.a.queries/src/queries/case_study_A.vql | 2 | * Generated from platform:/resource/case.study.pledge.run/src/queries/case_study_A.vql |
3 | */ | 3 | */ |
4 | package queries; | 4 | package queries; |
5 | 5 | ||
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv48_Dis.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv48_Dis.java index 2013f033..08de1250 100644 --- a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv48_Dis.java +++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv48_Dis.java | |||
@@ -1,5 +1,5 @@ | |||
1 | /** | 1 | /** |
2 | * Generated from platform:/resource/case.study.a.queries/src/queries/case_study_A.vql | 2 | * Generated from platform:/resource/case.study.pledge.run/src/queries/case_study_A.vql |
3 | */ | 3 | */ |
4 | package queries; | 4 | package queries; |
5 | 5 | ||
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv48_notDis.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv48_notDis.java index 678a96d3..21dcc068 100644 --- a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv48_notDis.java +++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv48_notDis.java | |||
@@ -1,5 +1,5 @@ | |||
1 | /** | 1 | /** |
2 | * Generated from platform:/resource/case.study.a.queries/src/queries/case_study_A.vql | 2 | * Generated from platform:/resource/case.study.pledge.run/src/queries/case_study_A.vql |
3 | */ | 3 | */ |
4 | package queries; | 4 | package queries; |
5 | 5 | ||
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv49_1.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv49_1.java index e05ec5cd..67915440 100644 --- a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv49_1.java +++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv49_1.java | |||
@@ -1,5 +1,5 @@ | |||
1 | /** | 1 | /** |
2 | * Generated from platform:/resource/case.study.a.queries/src/queries/case_study_A.vql | 2 | * Generated from platform:/resource/case.study.pledge.run/src/queries/case_study_A.vql |
3 | */ | 3 | */ |
4 | package queries; | 4 | package queries; |
5 | 5 | ||
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv49_2.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv49_2.java index 43ce44b4..66decdb4 100644 --- a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv49_2.java +++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/src-gen/queries/X_inv49_2.java | |||
@@ -1,5 +1,5 @@ | |||
1 | /** | 1 | /** |
2 | * Generated from platform:/resource/case.study.a.queries/src/queries/case_study_A.vql | 2 | * Generated from platform:/resource/case.study.pledge.run/src/queries/case_study_A.vql |
3 | */ | 3 | */ |
4 | package queries; | 4 | package queries; |
5 | 5 | ||
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/xtend-gen/run/.RunGenerator.xtendbin b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/xtend-gen/run/.RunGenerator.xtendbin index 325fee79..e2021169 100644 --- a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/xtend-gen/run/.RunGenerator.xtendbin +++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/xtend-gen/run/.RunGenerator.xtendbin | |||
Binary files differ | |||
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/xtend-gen/run/.gitignore b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/xtend-gen/run/.gitignore index bd13352d..8e503b4a 100644 --- a/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/xtend-gen/run/.gitignore +++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.queries/xtend-gen/run/.gitignore | |||
@@ -1,2 +1,4 @@ | |||
1 | /.GenerateScenarios.java._trace | 1 | /.GenerateScenarios.java._trace |
2 | /.checkQueries.java._trace | 2 | /.checkQueries.java._trace |
3 | /.RunGenerator.xtendbin | ||
4 | /GenerateScenarios.java | ||