diff options
Diffstat (limited to 'Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl')
49 files changed, 0 insertions, 13048 deletions
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/AggregationImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/AggregationImpl.java deleted file mode 100644 index 542f3c40..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/AggregationImpl.java +++ /dev/null | |||
@@ -1,343 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | import org.eclipse.emf.common.notify.NotificationChain; | ||
8 | |||
9 | import org.eclipse.emf.ecore.EClass; | ||
10 | import org.eclipse.emf.ecore.InternalEObject; | ||
11 | |||
12 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
13 | |||
14 | import org.eclipse.viatra.solver.language.solverLanguage.Aggregation; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.AggregationOp; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.Expression; | ||
17 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
18 | |||
19 | /** | ||
20 | * <!-- begin-user-doc --> | ||
21 | * An implementation of the model object '<em><b>Aggregation</b></em>'. | ||
22 | * <!-- end-user-doc --> | ||
23 | * <p> | ||
24 | * The following features are implemented: | ||
25 | * </p> | ||
26 | * <ul> | ||
27 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.AggregationImpl#getOp <em>Op</em>}</li> | ||
28 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.AggregationImpl#getBody <em>Body</em>}</li> | ||
29 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.AggregationImpl#getCondition <em>Condition</em>}</li> | ||
30 | * </ul> | ||
31 | * | ||
32 | * @generated | ||
33 | */ | ||
34 | public class AggregationImpl extends ExpressionImpl implements Aggregation | ||
35 | { | ||
36 | /** | ||
37 | * The default value of the '{@link #getOp() <em>Op</em>}' attribute. | ||
38 | * <!-- begin-user-doc --> | ||
39 | * <!-- end-user-doc --> | ||
40 | * @see #getOp() | ||
41 | * @generated | ||
42 | * @ordered | ||
43 | */ | ||
44 | protected static final AggregationOp OP_EDEFAULT = AggregationOp.ONLY; | ||
45 | |||
46 | /** | ||
47 | * The cached value of the '{@link #getOp() <em>Op</em>}' attribute. | ||
48 | * <!-- begin-user-doc --> | ||
49 | * <!-- end-user-doc --> | ||
50 | * @see #getOp() | ||
51 | * @generated | ||
52 | * @ordered | ||
53 | */ | ||
54 | protected AggregationOp op = OP_EDEFAULT; | ||
55 | |||
56 | /** | ||
57 | * The cached value of the '{@link #getBody() <em>Body</em>}' containment reference. | ||
58 | * <!-- begin-user-doc --> | ||
59 | * <!-- end-user-doc --> | ||
60 | * @see #getBody() | ||
61 | * @generated | ||
62 | * @ordered | ||
63 | */ | ||
64 | protected Expression body; | ||
65 | |||
66 | /** | ||
67 | * The cached value of the '{@link #getCondition() <em>Condition</em>}' containment reference. | ||
68 | * <!-- begin-user-doc --> | ||
69 | * <!-- end-user-doc --> | ||
70 | * @see #getCondition() | ||
71 | * @generated | ||
72 | * @ordered | ||
73 | */ | ||
74 | protected Expression condition; | ||
75 | |||
76 | /** | ||
77 | * <!-- begin-user-doc --> | ||
78 | * <!-- end-user-doc --> | ||
79 | * @generated | ||
80 | */ | ||
81 | protected AggregationImpl() | ||
82 | { | ||
83 | super(); | ||
84 | } | ||
85 | |||
86 | /** | ||
87 | * <!-- begin-user-doc --> | ||
88 | * <!-- end-user-doc --> | ||
89 | * @generated | ||
90 | */ | ||
91 | @Override | ||
92 | protected EClass eStaticClass() | ||
93 | { | ||
94 | return SolverLanguagePackage.Literals.AGGREGATION; | ||
95 | } | ||
96 | |||
97 | /** | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @generated | ||
101 | */ | ||
102 | @Override | ||
103 | public AggregationOp getOp() | ||
104 | { | ||
105 | return op; | ||
106 | } | ||
107 | |||
108 | /** | ||
109 | * <!-- begin-user-doc --> | ||
110 | * <!-- end-user-doc --> | ||
111 | * @generated | ||
112 | */ | ||
113 | @Override | ||
114 | public void setOp(AggregationOp newOp) | ||
115 | { | ||
116 | AggregationOp oldOp = op; | ||
117 | op = newOp == null ? OP_EDEFAULT : newOp; | ||
118 | if (eNotificationRequired()) | ||
119 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.AGGREGATION__OP, oldOp, op)); | ||
120 | } | ||
121 | |||
122 | /** | ||
123 | * <!-- begin-user-doc --> | ||
124 | * <!-- end-user-doc --> | ||
125 | * @generated | ||
126 | */ | ||
127 | @Override | ||
128 | public Expression getBody() | ||
129 | { | ||
130 | return body; | ||
131 | } | ||
132 | |||
133 | /** | ||
134 | * <!-- begin-user-doc --> | ||
135 | * <!-- end-user-doc --> | ||
136 | * @generated | ||
137 | */ | ||
138 | public NotificationChain basicSetBody(Expression newBody, NotificationChain msgs) | ||
139 | { | ||
140 | Expression oldBody = body; | ||
141 | body = newBody; | ||
142 | if (eNotificationRequired()) | ||
143 | { | ||
144 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.AGGREGATION__BODY, oldBody, newBody); | ||
145 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
146 | } | ||
147 | return msgs; | ||
148 | } | ||
149 | |||
150 | /** | ||
151 | * <!-- begin-user-doc --> | ||
152 | * <!-- end-user-doc --> | ||
153 | * @generated | ||
154 | */ | ||
155 | @Override | ||
156 | public void setBody(Expression newBody) | ||
157 | { | ||
158 | if (newBody != body) | ||
159 | { | ||
160 | NotificationChain msgs = null; | ||
161 | if (body != null) | ||
162 | msgs = ((InternalEObject)body).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.AGGREGATION__BODY, null, msgs); | ||
163 | if (newBody != null) | ||
164 | msgs = ((InternalEObject)newBody).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.AGGREGATION__BODY, null, msgs); | ||
165 | msgs = basicSetBody(newBody, msgs); | ||
166 | if (msgs != null) msgs.dispatch(); | ||
167 | } | ||
168 | else if (eNotificationRequired()) | ||
169 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.AGGREGATION__BODY, newBody, newBody)); | ||
170 | } | ||
171 | |||
172 | /** | ||
173 | * <!-- begin-user-doc --> | ||
174 | * <!-- end-user-doc --> | ||
175 | * @generated | ||
176 | */ | ||
177 | @Override | ||
178 | public Expression getCondition() | ||
179 | { | ||
180 | return condition; | ||
181 | } | ||
182 | |||
183 | /** | ||
184 | * <!-- begin-user-doc --> | ||
185 | * <!-- end-user-doc --> | ||
186 | * @generated | ||
187 | */ | ||
188 | public NotificationChain basicSetCondition(Expression newCondition, NotificationChain msgs) | ||
189 | { | ||
190 | Expression oldCondition = condition; | ||
191 | condition = newCondition; | ||
192 | if (eNotificationRequired()) | ||
193 | { | ||
194 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.AGGREGATION__CONDITION, oldCondition, newCondition); | ||
195 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
196 | } | ||
197 | return msgs; | ||
198 | } | ||
199 | |||
200 | /** | ||
201 | * <!-- begin-user-doc --> | ||
202 | * <!-- end-user-doc --> | ||
203 | * @generated | ||
204 | */ | ||
205 | @Override | ||
206 | public void setCondition(Expression newCondition) | ||
207 | { | ||
208 | if (newCondition != condition) | ||
209 | { | ||
210 | NotificationChain msgs = null; | ||
211 | if (condition != null) | ||
212 | msgs = ((InternalEObject)condition).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.AGGREGATION__CONDITION, null, msgs); | ||
213 | if (newCondition != null) | ||
214 | msgs = ((InternalEObject)newCondition).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.AGGREGATION__CONDITION, null, msgs); | ||
215 | msgs = basicSetCondition(newCondition, msgs); | ||
216 | if (msgs != null) msgs.dispatch(); | ||
217 | } | ||
218 | else if (eNotificationRequired()) | ||
219 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.AGGREGATION__CONDITION, newCondition, newCondition)); | ||
220 | } | ||
221 | |||
222 | /** | ||
223 | * <!-- begin-user-doc --> | ||
224 | * <!-- end-user-doc --> | ||
225 | * @generated | ||
226 | */ | ||
227 | @Override | ||
228 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
229 | { | ||
230 | switch (featureID) | ||
231 | { | ||
232 | case SolverLanguagePackage.AGGREGATION__BODY: | ||
233 | return basicSetBody(null, msgs); | ||
234 | case SolverLanguagePackage.AGGREGATION__CONDITION: | ||
235 | return basicSetCondition(null, msgs); | ||
236 | } | ||
237 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
238 | } | ||
239 | |||
240 | /** | ||
241 | * <!-- begin-user-doc --> | ||
242 | * <!-- end-user-doc --> | ||
243 | * @generated | ||
244 | */ | ||
245 | @Override | ||
246 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
247 | { | ||
248 | switch (featureID) | ||
249 | { | ||
250 | case SolverLanguagePackage.AGGREGATION__OP: | ||
251 | return getOp(); | ||
252 | case SolverLanguagePackage.AGGREGATION__BODY: | ||
253 | return getBody(); | ||
254 | case SolverLanguagePackage.AGGREGATION__CONDITION: | ||
255 | return getCondition(); | ||
256 | } | ||
257 | return super.eGet(featureID, resolve, coreType); | ||
258 | } | ||
259 | |||
260 | /** | ||
261 | * <!-- begin-user-doc --> | ||
262 | * <!-- end-user-doc --> | ||
263 | * @generated | ||
264 | */ | ||
265 | @Override | ||
266 | public void eSet(int featureID, Object newValue) | ||
267 | { | ||
268 | switch (featureID) | ||
269 | { | ||
270 | case SolverLanguagePackage.AGGREGATION__OP: | ||
271 | setOp((AggregationOp)newValue); | ||
272 | return; | ||
273 | case SolverLanguagePackage.AGGREGATION__BODY: | ||
274 | setBody((Expression)newValue); | ||
275 | return; | ||
276 | case SolverLanguagePackage.AGGREGATION__CONDITION: | ||
277 | setCondition((Expression)newValue); | ||
278 | return; | ||
279 | } | ||
280 | super.eSet(featureID, newValue); | ||
281 | } | ||
282 | |||
283 | /** | ||
284 | * <!-- begin-user-doc --> | ||
285 | * <!-- end-user-doc --> | ||
286 | * @generated | ||
287 | */ | ||
288 | @Override | ||
289 | public void eUnset(int featureID) | ||
290 | { | ||
291 | switch (featureID) | ||
292 | { | ||
293 | case SolverLanguagePackage.AGGREGATION__OP: | ||
294 | setOp(OP_EDEFAULT); | ||
295 | return; | ||
296 | case SolverLanguagePackage.AGGREGATION__BODY: | ||
297 | setBody((Expression)null); | ||
298 | return; | ||
299 | case SolverLanguagePackage.AGGREGATION__CONDITION: | ||
300 | setCondition((Expression)null); | ||
301 | return; | ||
302 | } | ||
303 | super.eUnset(featureID); | ||
304 | } | ||
305 | |||
306 | /** | ||
307 | * <!-- begin-user-doc --> | ||
308 | * <!-- end-user-doc --> | ||
309 | * @generated | ||
310 | */ | ||
311 | @Override | ||
312 | public boolean eIsSet(int featureID) | ||
313 | { | ||
314 | switch (featureID) | ||
315 | { | ||
316 | case SolverLanguagePackage.AGGREGATION__OP: | ||
317 | return op != OP_EDEFAULT; | ||
318 | case SolverLanguagePackage.AGGREGATION__BODY: | ||
319 | return body != null; | ||
320 | case SolverLanguagePackage.AGGREGATION__CONDITION: | ||
321 | return condition != null; | ||
322 | } | ||
323 | return super.eIsSet(featureID); | ||
324 | } | ||
325 | |||
326 | /** | ||
327 | * <!-- begin-user-doc --> | ||
328 | * <!-- end-user-doc --> | ||
329 | * @generated | ||
330 | */ | ||
331 | @Override | ||
332 | public String toString() | ||
333 | { | ||
334 | if (eIsProxy()) return super.toString(); | ||
335 | |||
336 | StringBuilder result = new StringBuilder(super.toString()); | ||
337 | result.append(" (op: "); | ||
338 | result.append(op); | ||
339 | result.append(')'); | ||
340 | return result.toString(); | ||
341 | } | ||
342 | |||
343 | } //AggregationImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ArgumentImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ArgumentImpl.java deleted file mode 100644 index d8bf8d91..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ArgumentImpl.java +++ /dev/null | |||
@@ -1,43 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | |||
8 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
9 | |||
10 | import org.eclipse.viatra.solver.language.solverLanguage.Argument; | ||
11 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
12 | |||
13 | /** | ||
14 | * <!-- begin-user-doc --> | ||
15 | * An implementation of the model object '<em><b>Argument</b></em>'. | ||
16 | * <!-- end-user-doc --> | ||
17 | * | ||
18 | * @generated | ||
19 | */ | ||
20 | public class ArgumentImpl extends MinimalEObjectImpl.Container implements Argument | ||
21 | { | ||
22 | /** | ||
23 | * <!-- begin-user-doc --> | ||
24 | * <!-- end-user-doc --> | ||
25 | * @generated | ||
26 | */ | ||
27 | protected ArgumentImpl() | ||
28 | { | ||
29 | super(); | ||
30 | } | ||
31 | |||
32 | /** | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @generated | ||
36 | */ | ||
37 | @Override | ||
38 | protected EClass eStaticClass() | ||
39 | { | ||
40 | return SolverLanguagePackage.Literals.ARGUMENT; | ||
41 | } | ||
42 | |||
43 | } //ArgumentImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ArgumentListImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ArgumentListImpl.java deleted file mode 100644 index 8c16fb4f..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ArgumentListImpl.java +++ /dev/null | |||
@@ -1,169 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import java.util.Collection; | ||
7 | |||
8 | import org.eclipse.emf.common.notify.NotificationChain; | ||
9 | |||
10 | import org.eclipse.emf.common.util.EList; | ||
11 | |||
12 | import org.eclipse.emf.ecore.EClass; | ||
13 | import org.eclipse.emf.ecore.InternalEObject; | ||
14 | |||
15 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
16 | |||
17 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
18 | import org.eclipse.emf.ecore.util.InternalEList; | ||
19 | |||
20 | import org.eclipse.viatra.solver.language.solverLanguage.Argument; | ||
21 | import org.eclipse.viatra.solver.language.solverLanguage.ArgumentList; | ||
22 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
23 | |||
24 | /** | ||
25 | * <!-- begin-user-doc --> | ||
26 | * An implementation of the model object '<em><b>Argument List</b></em>'. | ||
27 | * <!-- end-user-doc --> | ||
28 | * <p> | ||
29 | * The following features are implemented: | ||
30 | * </p> | ||
31 | * <ul> | ||
32 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ArgumentListImpl#getArguments <em>Arguments</em>}</li> | ||
33 | * </ul> | ||
34 | * | ||
35 | * @generated | ||
36 | */ | ||
37 | public class ArgumentListImpl extends MinimalEObjectImpl.Container implements ArgumentList | ||
38 | { | ||
39 | /** | ||
40 | * The cached value of the '{@link #getArguments() <em>Arguments</em>}' containment reference list. | ||
41 | * <!-- begin-user-doc --> | ||
42 | * <!-- end-user-doc --> | ||
43 | * @see #getArguments() | ||
44 | * @generated | ||
45 | * @ordered | ||
46 | */ | ||
47 | protected EList<Argument> arguments; | ||
48 | |||
49 | /** | ||
50 | * <!-- begin-user-doc --> | ||
51 | * <!-- end-user-doc --> | ||
52 | * @generated | ||
53 | */ | ||
54 | protected ArgumentListImpl() | ||
55 | { | ||
56 | super(); | ||
57 | } | ||
58 | |||
59 | /** | ||
60 | * <!-- begin-user-doc --> | ||
61 | * <!-- end-user-doc --> | ||
62 | * @generated | ||
63 | */ | ||
64 | @Override | ||
65 | protected EClass eStaticClass() | ||
66 | { | ||
67 | return SolverLanguagePackage.Literals.ARGUMENT_LIST; | ||
68 | } | ||
69 | |||
70 | /** | ||
71 | * <!-- begin-user-doc --> | ||
72 | * <!-- end-user-doc --> | ||
73 | * @generated | ||
74 | */ | ||
75 | @Override | ||
76 | public EList<Argument> getArguments() | ||
77 | { | ||
78 | if (arguments == null) | ||
79 | { | ||
80 | arguments = new EObjectContainmentEList<Argument>(Argument.class, this, SolverLanguagePackage.ARGUMENT_LIST__ARGUMENTS); | ||
81 | } | ||
82 | return arguments; | ||
83 | } | ||
84 | |||
85 | /** | ||
86 | * <!-- begin-user-doc --> | ||
87 | * <!-- end-user-doc --> | ||
88 | * @generated | ||
89 | */ | ||
90 | @Override | ||
91 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
92 | { | ||
93 | switch (featureID) | ||
94 | { | ||
95 | case SolverLanguagePackage.ARGUMENT_LIST__ARGUMENTS: | ||
96 | return ((InternalEList<?>)getArguments()).basicRemove(otherEnd, msgs); | ||
97 | } | ||
98 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
99 | } | ||
100 | |||
101 | /** | ||
102 | * <!-- begin-user-doc --> | ||
103 | * <!-- end-user-doc --> | ||
104 | * @generated | ||
105 | */ | ||
106 | @Override | ||
107 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
108 | { | ||
109 | switch (featureID) | ||
110 | { | ||
111 | case SolverLanguagePackage.ARGUMENT_LIST__ARGUMENTS: | ||
112 | return getArguments(); | ||
113 | } | ||
114 | return super.eGet(featureID, resolve, coreType); | ||
115 | } | ||
116 | |||
117 | /** | ||
118 | * <!-- begin-user-doc --> | ||
119 | * <!-- end-user-doc --> | ||
120 | * @generated | ||
121 | */ | ||
122 | @SuppressWarnings("unchecked") | ||
123 | @Override | ||
124 | public void eSet(int featureID, Object newValue) | ||
125 | { | ||
126 | switch (featureID) | ||
127 | { | ||
128 | case SolverLanguagePackage.ARGUMENT_LIST__ARGUMENTS: | ||
129 | getArguments().clear(); | ||
130 | getArguments().addAll((Collection<? extends Argument>)newValue); | ||
131 | return; | ||
132 | } | ||
133 | super.eSet(featureID, newValue); | ||
134 | } | ||
135 | |||
136 | /** | ||
137 | * <!-- begin-user-doc --> | ||
138 | * <!-- end-user-doc --> | ||
139 | * @generated | ||
140 | */ | ||
141 | @Override | ||
142 | public void eUnset(int featureID) | ||
143 | { | ||
144 | switch (featureID) | ||
145 | { | ||
146 | case SolverLanguagePackage.ARGUMENT_LIST__ARGUMENTS: | ||
147 | getArguments().clear(); | ||
148 | return; | ||
149 | } | ||
150 | super.eUnset(featureID); | ||
151 | } | ||
152 | |||
153 | /** | ||
154 | * <!-- begin-user-doc --> | ||
155 | * <!-- end-user-doc --> | ||
156 | * @generated | ||
157 | */ | ||
158 | @Override | ||
159 | public boolean eIsSet(int featureID) | ||
160 | { | ||
161 | switch (featureID) | ||
162 | { | ||
163 | case SolverLanguagePackage.ARGUMENT_LIST__ARGUMENTS: | ||
164 | return arguments != null && !arguments.isEmpty(); | ||
165 | } | ||
166 | return super.eIsSet(featureID); | ||
167 | } | ||
168 | |||
169 | } //ArgumentListImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/AssertionImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/AssertionImpl.java deleted file mode 100644 index 8165b62e..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/AssertionImpl.java +++ /dev/null | |||
@@ -1,269 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | import org.eclipse.emf.common.notify.NotificationChain; | ||
8 | |||
9 | import org.eclipse.emf.ecore.EClass; | ||
10 | import org.eclipse.emf.ecore.InternalEObject; | ||
11 | |||
12 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
13 | |||
14 | import org.eclipse.viatra.solver.language.solverLanguage.Assertion; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.Expression; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
17 | |||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * An implementation of the model object '<em><b>Assertion</b></em>'. | ||
21 | * <!-- end-user-doc --> | ||
22 | * <p> | ||
23 | * The following features are implemented: | ||
24 | * </p> | ||
25 | * <ul> | ||
26 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.AssertionImpl#getBody <em>Body</em>}</li> | ||
27 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.AssertionImpl#getRange <em>Range</em>}</li> | ||
28 | * </ul> | ||
29 | * | ||
30 | * @generated | ||
31 | */ | ||
32 | public class AssertionImpl extends StatementImpl implements Assertion | ||
33 | { | ||
34 | /** | ||
35 | * The cached value of the '{@link #getBody() <em>Body</em>}' containment reference. | ||
36 | * <!-- begin-user-doc --> | ||
37 | * <!-- end-user-doc --> | ||
38 | * @see #getBody() | ||
39 | * @generated | ||
40 | * @ordered | ||
41 | */ | ||
42 | protected Expression body; | ||
43 | |||
44 | /** | ||
45 | * The cached value of the '{@link #getRange() <em>Range</em>}' containment reference. | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @see #getRange() | ||
49 | * @generated | ||
50 | * @ordered | ||
51 | */ | ||
52 | protected Expression range; | ||
53 | |||
54 | /** | ||
55 | * <!-- begin-user-doc --> | ||
56 | * <!-- end-user-doc --> | ||
57 | * @generated | ||
58 | */ | ||
59 | protected AssertionImpl() | ||
60 | { | ||
61 | super(); | ||
62 | } | ||
63 | |||
64 | /** | ||
65 | * <!-- begin-user-doc --> | ||
66 | * <!-- end-user-doc --> | ||
67 | * @generated | ||
68 | */ | ||
69 | @Override | ||
70 | protected EClass eStaticClass() | ||
71 | { | ||
72 | return SolverLanguagePackage.Literals.ASSERTION; | ||
73 | } | ||
74 | |||
75 | /** | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <!-- end-user-doc --> | ||
78 | * @generated | ||
79 | */ | ||
80 | @Override | ||
81 | public Expression getBody() | ||
82 | { | ||
83 | return body; | ||
84 | } | ||
85 | |||
86 | /** | ||
87 | * <!-- begin-user-doc --> | ||
88 | * <!-- end-user-doc --> | ||
89 | * @generated | ||
90 | */ | ||
91 | public NotificationChain basicSetBody(Expression newBody, NotificationChain msgs) | ||
92 | { | ||
93 | Expression oldBody = body; | ||
94 | body = newBody; | ||
95 | if (eNotificationRequired()) | ||
96 | { | ||
97 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.ASSERTION__BODY, oldBody, newBody); | ||
98 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
99 | } | ||
100 | return msgs; | ||
101 | } | ||
102 | |||
103 | /** | ||
104 | * <!-- begin-user-doc --> | ||
105 | * <!-- end-user-doc --> | ||
106 | * @generated | ||
107 | */ | ||
108 | @Override | ||
109 | public void setBody(Expression newBody) | ||
110 | { | ||
111 | if (newBody != body) | ||
112 | { | ||
113 | NotificationChain msgs = null; | ||
114 | if (body != null) | ||
115 | msgs = ((InternalEObject)body).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.ASSERTION__BODY, null, msgs); | ||
116 | if (newBody != null) | ||
117 | msgs = ((InternalEObject)newBody).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.ASSERTION__BODY, null, msgs); | ||
118 | msgs = basicSetBody(newBody, msgs); | ||
119 | if (msgs != null) msgs.dispatch(); | ||
120 | } | ||
121 | else if (eNotificationRequired()) | ||
122 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.ASSERTION__BODY, newBody, newBody)); | ||
123 | } | ||
124 | |||
125 | /** | ||
126 | * <!-- begin-user-doc --> | ||
127 | * <!-- end-user-doc --> | ||
128 | * @generated | ||
129 | */ | ||
130 | @Override | ||
131 | public Expression getRange() | ||
132 | { | ||
133 | return range; | ||
134 | } | ||
135 | |||
136 | /** | ||
137 | * <!-- begin-user-doc --> | ||
138 | * <!-- end-user-doc --> | ||
139 | * @generated | ||
140 | */ | ||
141 | public NotificationChain basicSetRange(Expression newRange, NotificationChain msgs) | ||
142 | { | ||
143 | Expression oldRange = range; | ||
144 | range = newRange; | ||
145 | if (eNotificationRequired()) | ||
146 | { | ||
147 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.ASSERTION__RANGE, oldRange, newRange); | ||
148 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
149 | } | ||
150 | return msgs; | ||
151 | } | ||
152 | |||
153 | /** | ||
154 | * <!-- begin-user-doc --> | ||
155 | * <!-- end-user-doc --> | ||
156 | * @generated | ||
157 | */ | ||
158 | @Override | ||
159 | public void setRange(Expression newRange) | ||
160 | { | ||
161 | if (newRange != range) | ||
162 | { | ||
163 | NotificationChain msgs = null; | ||
164 | if (range != null) | ||
165 | msgs = ((InternalEObject)range).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.ASSERTION__RANGE, null, msgs); | ||
166 | if (newRange != null) | ||
167 | msgs = ((InternalEObject)newRange).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.ASSERTION__RANGE, null, msgs); | ||
168 | msgs = basicSetRange(newRange, msgs); | ||
169 | if (msgs != null) msgs.dispatch(); | ||
170 | } | ||
171 | else if (eNotificationRequired()) | ||
172 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.ASSERTION__RANGE, newRange, newRange)); | ||
173 | } | ||
174 | |||
175 | /** | ||
176 | * <!-- begin-user-doc --> | ||
177 | * <!-- end-user-doc --> | ||
178 | * @generated | ||
179 | */ | ||
180 | @Override | ||
181 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
182 | { | ||
183 | switch (featureID) | ||
184 | { | ||
185 | case SolverLanguagePackage.ASSERTION__BODY: | ||
186 | return basicSetBody(null, msgs); | ||
187 | case SolverLanguagePackage.ASSERTION__RANGE: | ||
188 | return basicSetRange(null, msgs); | ||
189 | } | ||
190 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
191 | } | ||
192 | |||
193 | /** | ||
194 | * <!-- begin-user-doc --> | ||
195 | * <!-- end-user-doc --> | ||
196 | * @generated | ||
197 | */ | ||
198 | @Override | ||
199 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
200 | { | ||
201 | switch (featureID) | ||
202 | { | ||
203 | case SolverLanguagePackage.ASSERTION__BODY: | ||
204 | return getBody(); | ||
205 | case SolverLanguagePackage.ASSERTION__RANGE: | ||
206 | return getRange(); | ||
207 | } | ||
208 | return super.eGet(featureID, resolve, coreType); | ||
209 | } | ||
210 | |||
211 | /** | ||
212 | * <!-- begin-user-doc --> | ||
213 | * <!-- end-user-doc --> | ||
214 | * @generated | ||
215 | */ | ||
216 | @Override | ||
217 | public void eSet(int featureID, Object newValue) | ||
218 | { | ||
219 | switch (featureID) | ||
220 | { | ||
221 | case SolverLanguagePackage.ASSERTION__BODY: | ||
222 | setBody((Expression)newValue); | ||
223 | return; | ||
224 | case SolverLanguagePackage.ASSERTION__RANGE: | ||
225 | setRange((Expression)newValue); | ||
226 | return; | ||
227 | } | ||
228 | super.eSet(featureID, newValue); | ||
229 | } | ||
230 | |||
231 | /** | ||
232 | * <!-- begin-user-doc --> | ||
233 | * <!-- end-user-doc --> | ||
234 | * @generated | ||
235 | */ | ||
236 | @Override | ||
237 | public void eUnset(int featureID) | ||
238 | { | ||
239 | switch (featureID) | ||
240 | { | ||
241 | case SolverLanguagePackage.ASSERTION__BODY: | ||
242 | setBody((Expression)null); | ||
243 | return; | ||
244 | case SolverLanguagePackage.ASSERTION__RANGE: | ||
245 | setRange((Expression)null); | ||
246 | return; | ||
247 | } | ||
248 | super.eUnset(featureID); | ||
249 | } | ||
250 | |||
251 | /** | ||
252 | * <!-- begin-user-doc --> | ||
253 | * <!-- end-user-doc --> | ||
254 | * @generated | ||
255 | */ | ||
256 | @Override | ||
257 | public boolean eIsSet(int featureID) | ||
258 | { | ||
259 | switch (featureID) | ||
260 | { | ||
261 | case SolverLanguagePackage.ASSERTION__BODY: | ||
262 | return body != null; | ||
263 | case SolverLanguagePackage.ASSERTION__RANGE: | ||
264 | return range != null; | ||
265 | } | ||
266 | return super.eIsSet(featureID); | ||
267 | } | ||
268 | |||
269 | } //AssertionImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/BinaryExpressionImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/BinaryExpressionImpl.java deleted file mode 100644 index adc94c4a..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/BinaryExpressionImpl.java +++ /dev/null | |||
@@ -1,343 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | import org.eclipse.emf.common.notify.NotificationChain; | ||
8 | |||
9 | import org.eclipse.emf.ecore.EClass; | ||
10 | import org.eclipse.emf.ecore.InternalEObject; | ||
11 | |||
12 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
13 | |||
14 | import org.eclipse.viatra.solver.language.solverLanguage.BinaryExpression; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.BinaryOperator; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.Expression; | ||
17 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
18 | |||
19 | /** | ||
20 | * <!-- begin-user-doc --> | ||
21 | * An implementation of the model object '<em><b>Binary Expression</b></em>'. | ||
22 | * <!-- end-user-doc --> | ||
23 | * <p> | ||
24 | * The following features are implemented: | ||
25 | * </p> | ||
26 | * <ul> | ||
27 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.BinaryExpressionImpl#getLeft <em>Left</em>}</li> | ||
28 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.BinaryExpressionImpl#getOp <em>Op</em>}</li> | ||
29 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.BinaryExpressionImpl#getRight <em>Right</em>}</li> | ||
30 | * </ul> | ||
31 | * | ||
32 | * @generated | ||
33 | */ | ||
34 | public class BinaryExpressionImpl extends ExpressionImpl implements BinaryExpression | ||
35 | { | ||
36 | /** | ||
37 | * The cached value of the '{@link #getLeft() <em>Left</em>}' containment reference. | ||
38 | * <!-- begin-user-doc --> | ||
39 | * <!-- end-user-doc --> | ||
40 | * @see #getLeft() | ||
41 | * @generated | ||
42 | * @ordered | ||
43 | */ | ||
44 | protected Expression left; | ||
45 | |||
46 | /** | ||
47 | * The default value of the '{@link #getOp() <em>Op</em>}' attribute. | ||
48 | * <!-- begin-user-doc --> | ||
49 | * <!-- end-user-doc --> | ||
50 | * @see #getOp() | ||
51 | * @generated | ||
52 | * @ordered | ||
53 | */ | ||
54 | protected static final BinaryOperator OP_EDEFAULT = BinaryOperator.EQ; | ||
55 | |||
56 | /** | ||
57 | * The cached value of the '{@link #getOp() <em>Op</em>}' attribute. | ||
58 | * <!-- begin-user-doc --> | ||
59 | * <!-- end-user-doc --> | ||
60 | * @see #getOp() | ||
61 | * @generated | ||
62 | * @ordered | ||
63 | */ | ||
64 | protected BinaryOperator op = OP_EDEFAULT; | ||
65 | |||
66 | /** | ||
67 | * The cached value of the '{@link #getRight() <em>Right</em>}' containment reference. | ||
68 | * <!-- begin-user-doc --> | ||
69 | * <!-- end-user-doc --> | ||
70 | * @see #getRight() | ||
71 | * @generated | ||
72 | * @ordered | ||
73 | */ | ||
74 | protected Expression right; | ||
75 | |||
76 | /** | ||
77 | * <!-- begin-user-doc --> | ||
78 | * <!-- end-user-doc --> | ||
79 | * @generated | ||
80 | */ | ||
81 | protected BinaryExpressionImpl() | ||
82 | { | ||
83 | super(); | ||
84 | } | ||
85 | |||
86 | /** | ||
87 | * <!-- begin-user-doc --> | ||
88 | * <!-- end-user-doc --> | ||
89 | * @generated | ||
90 | */ | ||
91 | @Override | ||
92 | protected EClass eStaticClass() | ||
93 | { | ||
94 | return SolverLanguagePackage.Literals.BINARY_EXPRESSION; | ||
95 | } | ||
96 | |||
97 | /** | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @generated | ||
101 | */ | ||
102 | @Override | ||
103 | public Expression getLeft() | ||
104 | { | ||
105 | return left; | ||
106 | } | ||
107 | |||
108 | /** | ||
109 | * <!-- begin-user-doc --> | ||
110 | * <!-- end-user-doc --> | ||
111 | * @generated | ||
112 | */ | ||
113 | public NotificationChain basicSetLeft(Expression newLeft, NotificationChain msgs) | ||
114 | { | ||
115 | Expression oldLeft = left; | ||
116 | left = newLeft; | ||
117 | if (eNotificationRequired()) | ||
118 | { | ||
119 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.BINARY_EXPRESSION__LEFT, oldLeft, newLeft); | ||
120 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
121 | } | ||
122 | return msgs; | ||
123 | } | ||
124 | |||
125 | /** | ||
126 | * <!-- begin-user-doc --> | ||
127 | * <!-- end-user-doc --> | ||
128 | * @generated | ||
129 | */ | ||
130 | @Override | ||
131 | public void setLeft(Expression newLeft) | ||
132 | { | ||
133 | if (newLeft != left) | ||
134 | { | ||
135 | NotificationChain msgs = null; | ||
136 | if (left != null) | ||
137 | msgs = ((InternalEObject)left).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.BINARY_EXPRESSION__LEFT, null, msgs); | ||
138 | if (newLeft != null) | ||
139 | msgs = ((InternalEObject)newLeft).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.BINARY_EXPRESSION__LEFT, null, msgs); | ||
140 | msgs = basicSetLeft(newLeft, msgs); | ||
141 | if (msgs != null) msgs.dispatch(); | ||
142 | } | ||
143 | else if (eNotificationRequired()) | ||
144 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.BINARY_EXPRESSION__LEFT, newLeft, newLeft)); | ||
145 | } | ||
146 | |||
147 | /** | ||
148 | * <!-- begin-user-doc --> | ||
149 | * <!-- end-user-doc --> | ||
150 | * @generated | ||
151 | */ | ||
152 | @Override | ||
153 | public BinaryOperator getOp() | ||
154 | { | ||
155 | return op; | ||
156 | } | ||
157 | |||
158 | /** | ||
159 | * <!-- begin-user-doc --> | ||
160 | * <!-- end-user-doc --> | ||
161 | * @generated | ||
162 | */ | ||
163 | @Override | ||
164 | public void setOp(BinaryOperator newOp) | ||
165 | { | ||
166 | BinaryOperator oldOp = op; | ||
167 | op = newOp == null ? OP_EDEFAULT : newOp; | ||
168 | if (eNotificationRequired()) | ||
169 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.BINARY_EXPRESSION__OP, oldOp, op)); | ||
170 | } | ||
171 | |||
172 | /** | ||
173 | * <!-- begin-user-doc --> | ||
174 | * <!-- end-user-doc --> | ||
175 | * @generated | ||
176 | */ | ||
177 | @Override | ||
178 | public Expression getRight() | ||
179 | { | ||
180 | return right; | ||
181 | } | ||
182 | |||
183 | /** | ||
184 | * <!-- begin-user-doc --> | ||
185 | * <!-- end-user-doc --> | ||
186 | * @generated | ||
187 | */ | ||
188 | public NotificationChain basicSetRight(Expression newRight, NotificationChain msgs) | ||
189 | { | ||
190 | Expression oldRight = right; | ||
191 | right = newRight; | ||
192 | if (eNotificationRequired()) | ||
193 | { | ||
194 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.BINARY_EXPRESSION__RIGHT, oldRight, newRight); | ||
195 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
196 | } | ||
197 | return msgs; | ||
198 | } | ||
199 | |||
200 | /** | ||
201 | * <!-- begin-user-doc --> | ||
202 | * <!-- end-user-doc --> | ||
203 | * @generated | ||
204 | */ | ||
205 | @Override | ||
206 | public void setRight(Expression newRight) | ||
207 | { | ||
208 | if (newRight != right) | ||
209 | { | ||
210 | NotificationChain msgs = null; | ||
211 | if (right != null) | ||
212 | msgs = ((InternalEObject)right).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.BINARY_EXPRESSION__RIGHT, null, msgs); | ||
213 | if (newRight != null) | ||
214 | msgs = ((InternalEObject)newRight).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.BINARY_EXPRESSION__RIGHT, null, msgs); | ||
215 | msgs = basicSetRight(newRight, msgs); | ||
216 | if (msgs != null) msgs.dispatch(); | ||
217 | } | ||
218 | else if (eNotificationRequired()) | ||
219 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.BINARY_EXPRESSION__RIGHT, newRight, newRight)); | ||
220 | } | ||
221 | |||
222 | /** | ||
223 | * <!-- begin-user-doc --> | ||
224 | * <!-- end-user-doc --> | ||
225 | * @generated | ||
226 | */ | ||
227 | @Override | ||
228 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
229 | { | ||
230 | switch (featureID) | ||
231 | { | ||
232 | case SolverLanguagePackage.BINARY_EXPRESSION__LEFT: | ||
233 | return basicSetLeft(null, msgs); | ||
234 | case SolverLanguagePackage.BINARY_EXPRESSION__RIGHT: | ||
235 | return basicSetRight(null, msgs); | ||
236 | } | ||
237 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
238 | } | ||
239 | |||
240 | /** | ||
241 | * <!-- begin-user-doc --> | ||
242 | * <!-- end-user-doc --> | ||
243 | * @generated | ||
244 | */ | ||
245 | @Override | ||
246 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
247 | { | ||
248 | switch (featureID) | ||
249 | { | ||
250 | case SolverLanguagePackage.BINARY_EXPRESSION__LEFT: | ||
251 | return getLeft(); | ||
252 | case SolverLanguagePackage.BINARY_EXPRESSION__OP: | ||
253 | return getOp(); | ||
254 | case SolverLanguagePackage.BINARY_EXPRESSION__RIGHT: | ||
255 | return getRight(); | ||
256 | } | ||
257 | return super.eGet(featureID, resolve, coreType); | ||
258 | } | ||
259 | |||
260 | /** | ||
261 | * <!-- begin-user-doc --> | ||
262 | * <!-- end-user-doc --> | ||
263 | * @generated | ||
264 | */ | ||
265 | @Override | ||
266 | public void eSet(int featureID, Object newValue) | ||
267 | { | ||
268 | switch (featureID) | ||
269 | { | ||
270 | case SolverLanguagePackage.BINARY_EXPRESSION__LEFT: | ||
271 | setLeft((Expression)newValue); | ||
272 | return; | ||
273 | case SolverLanguagePackage.BINARY_EXPRESSION__OP: | ||
274 | setOp((BinaryOperator)newValue); | ||
275 | return; | ||
276 | case SolverLanguagePackage.BINARY_EXPRESSION__RIGHT: | ||
277 | setRight((Expression)newValue); | ||
278 | return; | ||
279 | } | ||
280 | super.eSet(featureID, newValue); | ||
281 | } | ||
282 | |||
283 | /** | ||
284 | * <!-- begin-user-doc --> | ||
285 | * <!-- end-user-doc --> | ||
286 | * @generated | ||
287 | */ | ||
288 | @Override | ||
289 | public void eUnset(int featureID) | ||
290 | { | ||
291 | switch (featureID) | ||
292 | { | ||
293 | case SolverLanguagePackage.BINARY_EXPRESSION__LEFT: | ||
294 | setLeft((Expression)null); | ||
295 | return; | ||
296 | case SolverLanguagePackage.BINARY_EXPRESSION__OP: | ||
297 | setOp(OP_EDEFAULT); | ||
298 | return; | ||
299 | case SolverLanguagePackage.BINARY_EXPRESSION__RIGHT: | ||
300 | setRight((Expression)null); | ||
301 | return; | ||
302 | } | ||
303 | super.eUnset(featureID); | ||
304 | } | ||
305 | |||
306 | /** | ||
307 | * <!-- begin-user-doc --> | ||
308 | * <!-- end-user-doc --> | ||
309 | * @generated | ||
310 | */ | ||
311 | @Override | ||
312 | public boolean eIsSet(int featureID) | ||
313 | { | ||
314 | switch (featureID) | ||
315 | { | ||
316 | case SolverLanguagePackage.BINARY_EXPRESSION__LEFT: | ||
317 | return left != null; | ||
318 | case SolverLanguagePackage.BINARY_EXPRESSION__OP: | ||
319 | return op != OP_EDEFAULT; | ||
320 | case SolverLanguagePackage.BINARY_EXPRESSION__RIGHT: | ||
321 | return right != null; | ||
322 | } | ||
323 | return super.eIsSet(featureID); | ||
324 | } | ||
325 | |||
326 | /** | ||
327 | * <!-- begin-user-doc --> | ||
328 | * <!-- end-user-doc --> | ||
329 | * @generated | ||
330 | */ | ||
331 | @Override | ||
332 | public String toString() | ||
333 | { | ||
334 | if (eIsProxy()) return super.toString(); | ||
335 | |||
336 | StringBuilder result = new StringBuilder(super.toString()); | ||
337 | result.append(" (op: "); | ||
338 | result.append(op); | ||
339 | result.append(')'); | ||
340 | return result.toString(); | ||
341 | } | ||
342 | |||
343 | } //BinaryExpressionImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/BoundedMultiplicityImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/BoundedMultiplicityImpl.java deleted file mode 100644 index 45a105e0..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/BoundedMultiplicityImpl.java +++ /dev/null | |||
@@ -1,237 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | |||
10 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
11 | |||
12 | import org.eclipse.viatra.solver.language.solverLanguage.BoundedMultiplicity; | ||
13 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
14 | |||
15 | /** | ||
16 | * <!-- begin-user-doc --> | ||
17 | * An implementation of the model object '<em><b>Bounded Multiplicity</b></em>'. | ||
18 | * <!-- end-user-doc --> | ||
19 | * <p> | ||
20 | * The following features are implemented: | ||
21 | * </p> | ||
22 | * <ul> | ||
23 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.BoundedMultiplicityImpl#getLowerBound <em>Lower Bound</em>}</li> | ||
24 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.BoundedMultiplicityImpl#getUpperBound <em>Upper Bound</em>}</li> | ||
25 | * </ul> | ||
26 | * | ||
27 | * @generated | ||
28 | */ | ||
29 | public class BoundedMultiplicityImpl extends MultiplicityImpl implements BoundedMultiplicity | ||
30 | { | ||
31 | /** | ||
32 | * The default value of the '{@link #getLowerBound() <em>Lower Bound</em>}' attribute. | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @see #getLowerBound() | ||
36 | * @generated | ||
37 | * @ordered | ||
38 | */ | ||
39 | protected static final int LOWER_BOUND_EDEFAULT = 0; | ||
40 | |||
41 | /** | ||
42 | * The cached value of the '{@link #getLowerBound() <em>Lower Bound</em>}' attribute. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @see #getLowerBound() | ||
46 | * @generated | ||
47 | * @ordered | ||
48 | */ | ||
49 | protected int lowerBound = LOWER_BOUND_EDEFAULT; | ||
50 | |||
51 | /** | ||
52 | * The default value of the '{@link #getUpperBound() <em>Upper Bound</em>}' attribute. | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @see #getUpperBound() | ||
56 | * @generated | ||
57 | * @ordered | ||
58 | */ | ||
59 | protected static final int UPPER_BOUND_EDEFAULT = 0; | ||
60 | |||
61 | /** | ||
62 | * The cached value of the '{@link #getUpperBound() <em>Upper Bound</em>}' attribute. | ||
63 | * <!-- begin-user-doc --> | ||
64 | * <!-- end-user-doc --> | ||
65 | * @see #getUpperBound() | ||
66 | * @generated | ||
67 | * @ordered | ||
68 | */ | ||
69 | protected int upperBound = UPPER_BOUND_EDEFAULT; | ||
70 | |||
71 | /** | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @generated | ||
75 | */ | ||
76 | protected BoundedMultiplicityImpl() | ||
77 | { | ||
78 | super(); | ||
79 | } | ||
80 | |||
81 | /** | ||
82 | * <!-- begin-user-doc --> | ||
83 | * <!-- end-user-doc --> | ||
84 | * @generated | ||
85 | */ | ||
86 | @Override | ||
87 | protected EClass eStaticClass() | ||
88 | { | ||
89 | return SolverLanguagePackage.Literals.BOUNDED_MULTIPLICITY; | ||
90 | } | ||
91 | |||
92 | /** | ||
93 | * <!-- begin-user-doc --> | ||
94 | * <!-- end-user-doc --> | ||
95 | * @generated | ||
96 | */ | ||
97 | @Override | ||
98 | public int getLowerBound() | ||
99 | { | ||
100 | return lowerBound; | ||
101 | } | ||
102 | |||
103 | /** | ||
104 | * <!-- begin-user-doc --> | ||
105 | * <!-- end-user-doc --> | ||
106 | * @generated | ||
107 | */ | ||
108 | @Override | ||
109 | public void setLowerBound(int newLowerBound) | ||
110 | { | ||
111 | int oldLowerBound = lowerBound; | ||
112 | lowerBound = newLowerBound; | ||
113 | if (eNotificationRequired()) | ||
114 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.BOUNDED_MULTIPLICITY__LOWER_BOUND, oldLowerBound, lowerBound)); | ||
115 | } | ||
116 | |||
117 | /** | ||
118 | * <!-- begin-user-doc --> | ||
119 | * <!-- end-user-doc --> | ||
120 | * @generated | ||
121 | */ | ||
122 | @Override | ||
123 | public int getUpperBound() | ||
124 | { | ||
125 | return upperBound; | ||
126 | } | ||
127 | |||
128 | /** | ||
129 | * <!-- begin-user-doc --> | ||
130 | * <!-- end-user-doc --> | ||
131 | * @generated | ||
132 | */ | ||
133 | @Override | ||
134 | public void setUpperBound(int newUpperBound) | ||
135 | { | ||
136 | int oldUpperBound = upperBound; | ||
137 | upperBound = newUpperBound; | ||
138 | if (eNotificationRequired()) | ||
139 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.BOUNDED_MULTIPLICITY__UPPER_BOUND, oldUpperBound, upperBound)); | ||
140 | } | ||
141 | |||
142 | /** | ||
143 | * <!-- begin-user-doc --> | ||
144 | * <!-- end-user-doc --> | ||
145 | * @generated | ||
146 | */ | ||
147 | @Override | ||
148 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
149 | { | ||
150 | switch (featureID) | ||
151 | { | ||
152 | case SolverLanguagePackage.BOUNDED_MULTIPLICITY__LOWER_BOUND: | ||
153 | return getLowerBound(); | ||
154 | case SolverLanguagePackage.BOUNDED_MULTIPLICITY__UPPER_BOUND: | ||
155 | return getUpperBound(); | ||
156 | } | ||
157 | return super.eGet(featureID, resolve, coreType); | ||
158 | } | ||
159 | |||
160 | /** | ||
161 | * <!-- begin-user-doc --> | ||
162 | * <!-- end-user-doc --> | ||
163 | * @generated | ||
164 | */ | ||
165 | @Override | ||
166 | public void eSet(int featureID, Object newValue) | ||
167 | { | ||
168 | switch (featureID) | ||
169 | { | ||
170 | case SolverLanguagePackage.BOUNDED_MULTIPLICITY__LOWER_BOUND: | ||
171 | setLowerBound((Integer)newValue); | ||
172 | return; | ||
173 | case SolverLanguagePackage.BOUNDED_MULTIPLICITY__UPPER_BOUND: | ||
174 | setUpperBound((Integer)newValue); | ||
175 | return; | ||
176 | } | ||
177 | super.eSet(featureID, newValue); | ||
178 | } | ||
179 | |||
180 | /** | ||
181 | * <!-- begin-user-doc --> | ||
182 | * <!-- end-user-doc --> | ||
183 | * @generated | ||
184 | */ | ||
185 | @Override | ||
186 | public void eUnset(int featureID) | ||
187 | { | ||
188 | switch (featureID) | ||
189 | { | ||
190 | case SolverLanguagePackage.BOUNDED_MULTIPLICITY__LOWER_BOUND: | ||
191 | setLowerBound(LOWER_BOUND_EDEFAULT); | ||
192 | return; | ||
193 | case SolverLanguagePackage.BOUNDED_MULTIPLICITY__UPPER_BOUND: | ||
194 | setUpperBound(UPPER_BOUND_EDEFAULT); | ||
195 | return; | ||
196 | } | ||
197 | super.eUnset(featureID); | ||
198 | } | ||
199 | |||
200 | /** | ||
201 | * <!-- begin-user-doc --> | ||
202 | * <!-- end-user-doc --> | ||
203 | * @generated | ||
204 | */ | ||
205 | @Override | ||
206 | public boolean eIsSet(int featureID) | ||
207 | { | ||
208 | switch (featureID) | ||
209 | { | ||
210 | case SolverLanguagePackage.BOUNDED_MULTIPLICITY__LOWER_BOUND: | ||
211 | return lowerBound != LOWER_BOUND_EDEFAULT; | ||
212 | case SolverLanguagePackage.BOUNDED_MULTIPLICITY__UPPER_BOUND: | ||
213 | return upperBound != UPPER_BOUND_EDEFAULT; | ||
214 | } | ||
215 | return super.eIsSet(featureID); | ||
216 | } | ||
217 | |||
218 | /** | ||
219 | * <!-- begin-user-doc --> | ||
220 | * <!-- end-user-doc --> | ||
221 | * @generated | ||
222 | */ | ||
223 | @Override | ||
224 | public String toString() | ||
225 | { | ||
226 | if (eIsProxy()) return super.toString(); | ||
227 | |||
228 | StringBuilder result = new StringBuilder(super.toString()); | ||
229 | result.append(" (lowerBound: "); | ||
230 | result.append(lowerBound); | ||
231 | result.append(", upperBound: "); | ||
232 | result.append(upperBound); | ||
233 | result.append(')'); | ||
234 | return result.toString(); | ||
235 | } | ||
236 | |||
237 | } //BoundedMultiplicityImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/BoundedScopeDefinitionImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/BoundedScopeDefinitionImpl.java deleted file mode 100644 index 36bf4f96..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/BoundedScopeDefinitionImpl.java +++ /dev/null | |||
@@ -1,237 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | |||
10 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
11 | |||
12 | import org.eclipse.viatra.solver.language.solverLanguage.BoundedScopeDefinition; | ||
13 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
14 | |||
15 | /** | ||
16 | * <!-- begin-user-doc --> | ||
17 | * An implementation of the model object '<em><b>Bounded Scope Definition</b></em>'. | ||
18 | * <!-- end-user-doc --> | ||
19 | * <p> | ||
20 | * The following features are implemented: | ||
21 | * </p> | ||
22 | * <ul> | ||
23 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.BoundedScopeDefinitionImpl#getLowerBound <em>Lower Bound</em>}</li> | ||
24 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.BoundedScopeDefinitionImpl#getUpperBound <em>Upper Bound</em>}</li> | ||
25 | * </ul> | ||
26 | * | ||
27 | * @generated | ||
28 | */ | ||
29 | public class BoundedScopeDefinitionImpl extends ScopeDefinitionImpl implements BoundedScopeDefinition | ||
30 | { | ||
31 | /** | ||
32 | * The default value of the '{@link #getLowerBound() <em>Lower Bound</em>}' attribute. | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @see #getLowerBound() | ||
36 | * @generated | ||
37 | * @ordered | ||
38 | */ | ||
39 | protected static final int LOWER_BOUND_EDEFAULT = 0; | ||
40 | |||
41 | /** | ||
42 | * The cached value of the '{@link #getLowerBound() <em>Lower Bound</em>}' attribute. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @see #getLowerBound() | ||
46 | * @generated | ||
47 | * @ordered | ||
48 | */ | ||
49 | protected int lowerBound = LOWER_BOUND_EDEFAULT; | ||
50 | |||
51 | /** | ||
52 | * The default value of the '{@link #getUpperBound() <em>Upper Bound</em>}' attribute. | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @see #getUpperBound() | ||
56 | * @generated | ||
57 | * @ordered | ||
58 | */ | ||
59 | protected static final int UPPER_BOUND_EDEFAULT = 0; | ||
60 | |||
61 | /** | ||
62 | * The cached value of the '{@link #getUpperBound() <em>Upper Bound</em>}' attribute. | ||
63 | * <!-- begin-user-doc --> | ||
64 | * <!-- end-user-doc --> | ||
65 | * @see #getUpperBound() | ||
66 | * @generated | ||
67 | * @ordered | ||
68 | */ | ||
69 | protected int upperBound = UPPER_BOUND_EDEFAULT; | ||
70 | |||
71 | /** | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @generated | ||
75 | */ | ||
76 | protected BoundedScopeDefinitionImpl() | ||
77 | { | ||
78 | super(); | ||
79 | } | ||
80 | |||
81 | /** | ||
82 | * <!-- begin-user-doc --> | ||
83 | * <!-- end-user-doc --> | ||
84 | * @generated | ||
85 | */ | ||
86 | @Override | ||
87 | protected EClass eStaticClass() | ||
88 | { | ||
89 | return SolverLanguagePackage.Literals.BOUNDED_SCOPE_DEFINITION; | ||
90 | } | ||
91 | |||
92 | /** | ||
93 | * <!-- begin-user-doc --> | ||
94 | * <!-- end-user-doc --> | ||
95 | * @generated | ||
96 | */ | ||
97 | @Override | ||
98 | public int getLowerBound() | ||
99 | { | ||
100 | return lowerBound; | ||
101 | } | ||
102 | |||
103 | /** | ||
104 | * <!-- begin-user-doc --> | ||
105 | * <!-- end-user-doc --> | ||
106 | * @generated | ||
107 | */ | ||
108 | @Override | ||
109 | public void setLowerBound(int newLowerBound) | ||
110 | { | ||
111 | int oldLowerBound = lowerBound; | ||
112 | lowerBound = newLowerBound; | ||
113 | if (eNotificationRequired()) | ||
114 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.BOUNDED_SCOPE_DEFINITION__LOWER_BOUND, oldLowerBound, lowerBound)); | ||
115 | } | ||
116 | |||
117 | /** | ||
118 | * <!-- begin-user-doc --> | ||
119 | * <!-- end-user-doc --> | ||
120 | * @generated | ||
121 | */ | ||
122 | @Override | ||
123 | public int getUpperBound() | ||
124 | { | ||
125 | return upperBound; | ||
126 | } | ||
127 | |||
128 | /** | ||
129 | * <!-- begin-user-doc --> | ||
130 | * <!-- end-user-doc --> | ||
131 | * @generated | ||
132 | */ | ||
133 | @Override | ||
134 | public void setUpperBound(int newUpperBound) | ||
135 | { | ||
136 | int oldUpperBound = upperBound; | ||
137 | upperBound = newUpperBound; | ||
138 | if (eNotificationRequired()) | ||
139 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.BOUNDED_SCOPE_DEFINITION__UPPER_BOUND, oldUpperBound, upperBound)); | ||
140 | } | ||
141 | |||
142 | /** | ||
143 | * <!-- begin-user-doc --> | ||
144 | * <!-- end-user-doc --> | ||
145 | * @generated | ||
146 | */ | ||
147 | @Override | ||
148 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
149 | { | ||
150 | switch (featureID) | ||
151 | { | ||
152 | case SolverLanguagePackage.BOUNDED_SCOPE_DEFINITION__LOWER_BOUND: | ||
153 | return getLowerBound(); | ||
154 | case SolverLanguagePackage.BOUNDED_SCOPE_DEFINITION__UPPER_BOUND: | ||
155 | return getUpperBound(); | ||
156 | } | ||
157 | return super.eGet(featureID, resolve, coreType); | ||
158 | } | ||
159 | |||
160 | /** | ||
161 | * <!-- begin-user-doc --> | ||
162 | * <!-- end-user-doc --> | ||
163 | * @generated | ||
164 | */ | ||
165 | @Override | ||
166 | public void eSet(int featureID, Object newValue) | ||
167 | { | ||
168 | switch (featureID) | ||
169 | { | ||
170 | case SolverLanguagePackage.BOUNDED_SCOPE_DEFINITION__LOWER_BOUND: | ||
171 | setLowerBound((Integer)newValue); | ||
172 | return; | ||
173 | case SolverLanguagePackage.BOUNDED_SCOPE_DEFINITION__UPPER_BOUND: | ||
174 | setUpperBound((Integer)newValue); | ||
175 | return; | ||
176 | } | ||
177 | super.eSet(featureID, newValue); | ||
178 | } | ||
179 | |||
180 | /** | ||
181 | * <!-- begin-user-doc --> | ||
182 | * <!-- end-user-doc --> | ||
183 | * @generated | ||
184 | */ | ||
185 | @Override | ||
186 | public void eUnset(int featureID) | ||
187 | { | ||
188 | switch (featureID) | ||
189 | { | ||
190 | case SolverLanguagePackage.BOUNDED_SCOPE_DEFINITION__LOWER_BOUND: | ||
191 | setLowerBound(LOWER_BOUND_EDEFAULT); | ||
192 | return; | ||
193 | case SolverLanguagePackage.BOUNDED_SCOPE_DEFINITION__UPPER_BOUND: | ||
194 | setUpperBound(UPPER_BOUND_EDEFAULT); | ||
195 | return; | ||
196 | } | ||
197 | super.eUnset(featureID); | ||
198 | } | ||
199 | |||
200 | /** | ||
201 | * <!-- begin-user-doc --> | ||
202 | * <!-- end-user-doc --> | ||
203 | * @generated | ||
204 | */ | ||
205 | @Override | ||
206 | public boolean eIsSet(int featureID) | ||
207 | { | ||
208 | switch (featureID) | ||
209 | { | ||
210 | case SolverLanguagePackage.BOUNDED_SCOPE_DEFINITION__LOWER_BOUND: | ||
211 | return lowerBound != LOWER_BOUND_EDEFAULT; | ||
212 | case SolverLanguagePackage.BOUNDED_SCOPE_DEFINITION__UPPER_BOUND: | ||
213 | return upperBound != UPPER_BOUND_EDEFAULT; | ||
214 | } | ||
215 | return super.eIsSet(featureID); | ||
216 | } | ||
217 | |||
218 | /** | ||
219 | * <!-- begin-user-doc --> | ||
220 | * <!-- end-user-doc --> | ||
221 | * @generated | ||
222 | */ | ||
223 | @Override | ||
224 | public String toString() | ||
225 | { | ||
226 | if (eIsProxy()) return super.toString(); | ||
227 | |||
228 | StringBuilder result = new StringBuilder(super.toString()); | ||
229 | result.append(" (lowerBound: "); | ||
230 | result.append(lowerBound); | ||
231 | result.append(", upperBound: "); | ||
232 | result.append(upperBound); | ||
233 | result.append(')'); | ||
234 | return result.toString(); | ||
235 | } | ||
236 | |||
237 | } //BoundedScopeDefinitionImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/CallImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/CallImpl.java deleted file mode 100644 index 01712ad3..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/CallImpl.java +++ /dev/null | |||
@@ -1,401 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | import org.eclipse.emf.common.notify.NotificationChain; | ||
8 | |||
9 | import org.eclipse.emf.ecore.EClass; | ||
10 | import org.eclipse.emf.ecore.InternalEObject; | ||
11 | |||
12 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
13 | |||
14 | import org.eclipse.viatra.solver.language.solverLanguage.ArgumentList; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.Call; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.Reference; | ||
17 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
18 | |||
19 | /** | ||
20 | * <!-- begin-user-doc --> | ||
21 | * An implementation of the model object '<em><b>Call</b></em>'. | ||
22 | * <!-- end-user-doc --> | ||
23 | * <p> | ||
24 | * The following features are implemented: | ||
25 | * </p> | ||
26 | * <ul> | ||
27 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.CallImpl#getFunctor <em>Functor</em>}</li> | ||
28 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.CallImpl#isTransitiveClosure <em>Transitive Closure</em>}</li> | ||
29 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.CallImpl#isReflexiveTransitiveClosure <em>Reflexive Transitive Closure</em>}</li> | ||
30 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.CallImpl#getArgumentList <em>Argument List</em>}</li> | ||
31 | * </ul> | ||
32 | * | ||
33 | * @generated | ||
34 | */ | ||
35 | public class CallImpl extends ExpressionImpl implements Call | ||
36 | { | ||
37 | /** | ||
38 | * The cached value of the '{@link #getFunctor() <em>Functor</em>}' containment reference. | ||
39 | * <!-- begin-user-doc --> | ||
40 | * <!-- end-user-doc --> | ||
41 | * @see #getFunctor() | ||
42 | * @generated | ||
43 | * @ordered | ||
44 | */ | ||
45 | protected Reference functor; | ||
46 | |||
47 | /** | ||
48 | * The default value of the '{@link #isTransitiveClosure() <em>Transitive Closure</em>}' attribute. | ||
49 | * <!-- begin-user-doc --> | ||
50 | * <!-- end-user-doc --> | ||
51 | * @see #isTransitiveClosure() | ||
52 | * @generated | ||
53 | * @ordered | ||
54 | */ | ||
55 | protected static final boolean TRANSITIVE_CLOSURE_EDEFAULT = false; | ||
56 | |||
57 | /** | ||
58 | * The cached value of the '{@link #isTransitiveClosure() <em>Transitive Closure</em>}' attribute. | ||
59 | * <!-- begin-user-doc --> | ||
60 | * <!-- end-user-doc --> | ||
61 | * @see #isTransitiveClosure() | ||
62 | * @generated | ||
63 | * @ordered | ||
64 | */ | ||
65 | protected boolean transitiveClosure = TRANSITIVE_CLOSURE_EDEFAULT; | ||
66 | |||
67 | /** | ||
68 | * The default value of the '{@link #isReflexiveTransitiveClosure() <em>Reflexive Transitive Closure</em>}' attribute. | ||
69 | * <!-- begin-user-doc --> | ||
70 | * <!-- end-user-doc --> | ||
71 | * @see #isReflexiveTransitiveClosure() | ||
72 | * @generated | ||
73 | * @ordered | ||
74 | */ | ||
75 | protected static final boolean REFLEXIVE_TRANSITIVE_CLOSURE_EDEFAULT = false; | ||
76 | |||
77 | /** | ||
78 | * The cached value of the '{@link #isReflexiveTransitiveClosure() <em>Reflexive Transitive Closure</em>}' attribute. | ||
79 | * <!-- begin-user-doc --> | ||
80 | * <!-- end-user-doc --> | ||
81 | * @see #isReflexiveTransitiveClosure() | ||
82 | * @generated | ||
83 | * @ordered | ||
84 | */ | ||
85 | protected boolean reflexiveTransitiveClosure = REFLEXIVE_TRANSITIVE_CLOSURE_EDEFAULT; | ||
86 | |||
87 | /** | ||
88 | * The cached value of the '{@link #getArgumentList() <em>Argument List</em>}' containment reference. | ||
89 | * <!-- begin-user-doc --> | ||
90 | * <!-- end-user-doc --> | ||
91 | * @see #getArgumentList() | ||
92 | * @generated | ||
93 | * @ordered | ||
94 | */ | ||
95 | protected ArgumentList argumentList; | ||
96 | |||
97 | /** | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @generated | ||
101 | */ | ||
102 | protected CallImpl() | ||
103 | { | ||
104 | super(); | ||
105 | } | ||
106 | |||
107 | /** | ||
108 | * <!-- begin-user-doc --> | ||
109 | * <!-- end-user-doc --> | ||
110 | * @generated | ||
111 | */ | ||
112 | @Override | ||
113 | protected EClass eStaticClass() | ||
114 | { | ||
115 | return SolverLanguagePackage.Literals.CALL; | ||
116 | } | ||
117 | |||
118 | /** | ||
119 | * <!-- begin-user-doc --> | ||
120 | * <!-- end-user-doc --> | ||
121 | * @generated | ||
122 | */ | ||
123 | @Override | ||
124 | public Reference getFunctor() | ||
125 | { | ||
126 | return functor; | ||
127 | } | ||
128 | |||
129 | /** | ||
130 | * <!-- begin-user-doc --> | ||
131 | * <!-- end-user-doc --> | ||
132 | * @generated | ||
133 | */ | ||
134 | public NotificationChain basicSetFunctor(Reference newFunctor, NotificationChain msgs) | ||
135 | { | ||
136 | Reference oldFunctor = functor; | ||
137 | functor = newFunctor; | ||
138 | if (eNotificationRequired()) | ||
139 | { | ||
140 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.CALL__FUNCTOR, oldFunctor, newFunctor); | ||
141 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
142 | } | ||
143 | return msgs; | ||
144 | } | ||
145 | |||
146 | /** | ||
147 | * <!-- begin-user-doc --> | ||
148 | * <!-- end-user-doc --> | ||
149 | * @generated | ||
150 | */ | ||
151 | @Override | ||
152 | public void setFunctor(Reference newFunctor) | ||
153 | { | ||
154 | if (newFunctor != functor) | ||
155 | { | ||
156 | NotificationChain msgs = null; | ||
157 | if (functor != null) | ||
158 | msgs = ((InternalEObject)functor).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.CALL__FUNCTOR, null, msgs); | ||
159 | if (newFunctor != null) | ||
160 | msgs = ((InternalEObject)newFunctor).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.CALL__FUNCTOR, null, msgs); | ||
161 | msgs = basicSetFunctor(newFunctor, msgs); | ||
162 | if (msgs != null) msgs.dispatch(); | ||
163 | } | ||
164 | else if (eNotificationRequired()) | ||
165 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.CALL__FUNCTOR, newFunctor, newFunctor)); | ||
166 | } | ||
167 | |||
168 | /** | ||
169 | * <!-- begin-user-doc --> | ||
170 | * <!-- end-user-doc --> | ||
171 | * @generated | ||
172 | */ | ||
173 | @Override | ||
174 | public boolean isTransitiveClosure() | ||
175 | { | ||
176 | return transitiveClosure; | ||
177 | } | ||
178 | |||
179 | /** | ||
180 | * <!-- begin-user-doc --> | ||
181 | * <!-- end-user-doc --> | ||
182 | * @generated | ||
183 | */ | ||
184 | @Override | ||
185 | public void setTransitiveClosure(boolean newTransitiveClosure) | ||
186 | { | ||
187 | boolean oldTransitiveClosure = transitiveClosure; | ||
188 | transitiveClosure = newTransitiveClosure; | ||
189 | if (eNotificationRequired()) | ||
190 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.CALL__TRANSITIVE_CLOSURE, oldTransitiveClosure, transitiveClosure)); | ||
191 | } | ||
192 | |||
193 | /** | ||
194 | * <!-- begin-user-doc --> | ||
195 | * <!-- end-user-doc --> | ||
196 | * @generated | ||
197 | */ | ||
198 | @Override | ||
199 | public boolean isReflexiveTransitiveClosure() | ||
200 | { | ||
201 | return reflexiveTransitiveClosure; | ||
202 | } | ||
203 | |||
204 | /** | ||
205 | * <!-- begin-user-doc --> | ||
206 | * <!-- end-user-doc --> | ||
207 | * @generated | ||
208 | */ | ||
209 | @Override | ||
210 | public void setReflexiveTransitiveClosure(boolean newReflexiveTransitiveClosure) | ||
211 | { | ||
212 | boolean oldReflexiveTransitiveClosure = reflexiveTransitiveClosure; | ||
213 | reflexiveTransitiveClosure = newReflexiveTransitiveClosure; | ||
214 | if (eNotificationRequired()) | ||
215 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.CALL__REFLEXIVE_TRANSITIVE_CLOSURE, oldReflexiveTransitiveClosure, reflexiveTransitiveClosure)); | ||
216 | } | ||
217 | |||
218 | /** | ||
219 | * <!-- begin-user-doc --> | ||
220 | * <!-- end-user-doc --> | ||
221 | * @generated | ||
222 | */ | ||
223 | @Override | ||
224 | public ArgumentList getArgumentList() | ||
225 | { | ||
226 | return argumentList; | ||
227 | } | ||
228 | |||
229 | /** | ||
230 | * <!-- begin-user-doc --> | ||
231 | * <!-- end-user-doc --> | ||
232 | * @generated | ||
233 | */ | ||
234 | public NotificationChain basicSetArgumentList(ArgumentList newArgumentList, NotificationChain msgs) | ||
235 | { | ||
236 | ArgumentList oldArgumentList = argumentList; | ||
237 | argumentList = newArgumentList; | ||
238 | if (eNotificationRequired()) | ||
239 | { | ||
240 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.CALL__ARGUMENT_LIST, oldArgumentList, newArgumentList); | ||
241 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
242 | } | ||
243 | return msgs; | ||
244 | } | ||
245 | |||
246 | /** | ||
247 | * <!-- begin-user-doc --> | ||
248 | * <!-- end-user-doc --> | ||
249 | * @generated | ||
250 | */ | ||
251 | @Override | ||
252 | public void setArgumentList(ArgumentList newArgumentList) | ||
253 | { | ||
254 | if (newArgumentList != argumentList) | ||
255 | { | ||
256 | NotificationChain msgs = null; | ||
257 | if (argumentList != null) | ||
258 | msgs = ((InternalEObject)argumentList).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.CALL__ARGUMENT_LIST, null, msgs); | ||
259 | if (newArgumentList != null) | ||
260 | msgs = ((InternalEObject)newArgumentList).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.CALL__ARGUMENT_LIST, null, msgs); | ||
261 | msgs = basicSetArgumentList(newArgumentList, msgs); | ||
262 | if (msgs != null) msgs.dispatch(); | ||
263 | } | ||
264 | else if (eNotificationRequired()) | ||
265 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.CALL__ARGUMENT_LIST, newArgumentList, newArgumentList)); | ||
266 | } | ||
267 | |||
268 | /** | ||
269 | * <!-- begin-user-doc --> | ||
270 | * <!-- end-user-doc --> | ||
271 | * @generated | ||
272 | */ | ||
273 | @Override | ||
274 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
275 | { | ||
276 | switch (featureID) | ||
277 | { | ||
278 | case SolverLanguagePackage.CALL__FUNCTOR: | ||
279 | return basicSetFunctor(null, msgs); | ||
280 | case SolverLanguagePackage.CALL__ARGUMENT_LIST: | ||
281 | return basicSetArgumentList(null, msgs); | ||
282 | } | ||
283 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
284 | } | ||
285 | |||
286 | /** | ||
287 | * <!-- begin-user-doc --> | ||
288 | * <!-- end-user-doc --> | ||
289 | * @generated | ||
290 | */ | ||
291 | @Override | ||
292 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
293 | { | ||
294 | switch (featureID) | ||
295 | { | ||
296 | case SolverLanguagePackage.CALL__FUNCTOR: | ||
297 | return getFunctor(); | ||
298 | case SolverLanguagePackage.CALL__TRANSITIVE_CLOSURE: | ||
299 | return isTransitiveClosure(); | ||
300 | case SolverLanguagePackage.CALL__REFLEXIVE_TRANSITIVE_CLOSURE: | ||
301 | return isReflexiveTransitiveClosure(); | ||
302 | case SolverLanguagePackage.CALL__ARGUMENT_LIST: | ||
303 | return getArgumentList(); | ||
304 | } | ||
305 | return super.eGet(featureID, resolve, coreType); | ||
306 | } | ||
307 | |||
308 | /** | ||
309 | * <!-- begin-user-doc --> | ||
310 | * <!-- end-user-doc --> | ||
311 | * @generated | ||
312 | */ | ||
313 | @Override | ||
314 | public void eSet(int featureID, Object newValue) | ||
315 | { | ||
316 | switch (featureID) | ||
317 | { | ||
318 | case SolverLanguagePackage.CALL__FUNCTOR: | ||
319 | setFunctor((Reference)newValue); | ||
320 | return; | ||
321 | case SolverLanguagePackage.CALL__TRANSITIVE_CLOSURE: | ||
322 | setTransitiveClosure((Boolean)newValue); | ||
323 | return; | ||
324 | case SolverLanguagePackage.CALL__REFLEXIVE_TRANSITIVE_CLOSURE: | ||
325 | setReflexiveTransitiveClosure((Boolean)newValue); | ||
326 | return; | ||
327 | case SolverLanguagePackage.CALL__ARGUMENT_LIST: | ||
328 | setArgumentList((ArgumentList)newValue); | ||
329 | return; | ||
330 | } | ||
331 | super.eSet(featureID, newValue); | ||
332 | } | ||
333 | |||
334 | /** | ||
335 | * <!-- begin-user-doc --> | ||
336 | * <!-- end-user-doc --> | ||
337 | * @generated | ||
338 | */ | ||
339 | @Override | ||
340 | public void eUnset(int featureID) | ||
341 | { | ||
342 | switch (featureID) | ||
343 | { | ||
344 | case SolverLanguagePackage.CALL__FUNCTOR: | ||
345 | setFunctor((Reference)null); | ||
346 | return; | ||
347 | case SolverLanguagePackage.CALL__TRANSITIVE_CLOSURE: | ||
348 | setTransitiveClosure(TRANSITIVE_CLOSURE_EDEFAULT); | ||
349 | return; | ||
350 | case SolverLanguagePackage.CALL__REFLEXIVE_TRANSITIVE_CLOSURE: | ||
351 | setReflexiveTransitiveClosure(REFLEXIVE_TRANSITIVE_CLOSURE_EDEFAULT); | ||
352 | return; | ||
353 | case SolverLanguagePackage.CALL__ARGUMENT_LIST: | ||
354 | setArgumentList((ArgumentList)null); | ||
355 | return; | ||
356 | } | ||
357 | super.eUnset(featureID); | ||
358 | } | ||
359 | |||
360 | /** | ||
361 | * <!-- begin-user-doc --> | ||
362 | * <!-- end-user-doc --> | ||
363 | * @generated | ||
364 | */ | ||
365 | @Override | ||
366 | public boolean eIsSet(int featureID) | ||
367 | { | ||
368 | switch (featureID) | ||
369 | { | ||
370 | case SolverLanguagePackage.CALL__FUNCTOR: | ||
371 | return functor != null; | ||
372 | case SolverLanguagePackage.CALL__TRANSITIVE_CLOSURE: | ||
373 | return transitiveClosure != TRANSITIVE_CLOSURE_EDEFAULT; | ||
374 | case SolverLanguagePackage.CALL__REFLEXIVE_TRANSITIVE_CLOSURE: | ||
375 | return reflexiveTransitiveClosure != REFLEXIVE_TRANSITIVE_CLOSURE_EDEFAULT; | ||
376 | case SolverLanguagePackage.CALL__ARGUMENT_LIST: | ||
377 | return argumentList != null; | ||
378 | } | ||
379 | return super.eIsSet(featureID); | ||
380 | } | ||
381 | |||
382 | /** | ||
383 | * <!-- begin-user-doc --> | ||
384 | * <!-- end-user-doc --> | ||
385 | * @generated | ||
386 | */ | ||
387 | @Override | ||
388 | public String toString() | ||
389 | { | ||
390 | if (eIsProxy()) return super.toString(); | ||
391 | |||
392 | StringBuilder result = new StringBuilder(super.toString()); | ||
393 | result.append(" (transitiveClosure: "); | ||
394 | result.append(transitiveClosure); | ||
395 | result.append(", reflexiveTransitiveClosure: "); | ||
396 | result.append(reflexiveTransitiveClosure); | ||
397 | result.append(')'); | ||
398 | return result.toString(); | ||
399 | } | ||
400 | |||
401 | } //CallImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/CaseImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/CaseImpl.java deleted file mode 100644 index 47245831..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/CaseImpl.java +++ /dev/null | |||
@@ -1,269 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | import org.eclipse.emf.common.notify.NotificationChain; | ||
8 | |||
9 | import org.eclipse.emf.ecore.EClass; | ||
10 | import org.eclipse.emf.ecore.InternalEObject; | ||
11 | |||
12 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
13 | |||
14 | import org.eclipse.viatra.solver.language.solverLanguage.Case; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.Expression; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
17 | |||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * An implementation of the model object '<em><b>Case</b></em>'. | ||
21 | * <!-- end-user-doc --> | ||
22 | * <p> | ||
23 | * The following features are implemented: | ||
24 | * </p> | ||
25 | * <ul> | ||
26 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.CaseImpl#getCondition <em>Condition</em>}</li> | ||
27 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.CaseImpl#getBody <em>Body</em>}</li> | ||
28 | * </ul> | ||
29 | * | ||
30 | * @generated | ||
31 | */ | ||
32 | public class CaseImpl extends ExpressionImpl implements Case | ||
33 | { | ||
34 | /** | ||
35 | * The cached value of the '{@link #getCondition() <em>Condition</em>}' containment reference. | ||
36 | * <!-- begin-user-doc --> | ||
37 | * <!-- end-user-doc --> | ||
38 | * @see #getCondition() | ||
39 | * @generated | ||
40 | * @ordered | ||
41 | */ | ||
42 | protected Expression condition; | ||
43 | |||
44 | /** | ||
45 | * The cached value of the '{@link #getBody() <em>Body</em>}' containment reference. | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @see #getBody() | ||
49 | * @generated | ||
50 | * @ordered | ||
51 | */ | ||
52 | protected Expression body; | ||
53 | |||
54 | /** | ||
55 | * <!-- begin-user-doc --> | ||
56 | * <!-- end-user-doc --> | ||
57 | * @generated | ||
58 | */ | ||
59 | protected CaseImpl() | ||
60 | { | ||
61 | super(); | ||
62 | } | ||
63 | |||
64 | /** | ||
65 | * <!-- begin-user-doc --> | ||
66 | * <!-- end-user-doc --> | ||
67 | * @generated | ||
68 | */ | ||
69 | @Override | ||
70 | protected EClass eStaticClass() | ||
71 | { | ||
72 | return SolverLanguagePackage.Literals.CASE; | ||
73 | } | ||
74 | |||
75 | /** | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <!-- end-user-doc --> | ||
78 | * @generated | ||
79 | */ | ||
80 | @Override | ||
81 | public Expression getCondition() | ||
82 | { | ||
83 | return condition; | ||
84 | } | ||
85 | |||
86 | /** | ||
87 | * <!-- begin-user-doc --> | ||
88 | * <!-- end-user-doc --> | ||
89 | * @generated | ||
90 | */ | ||
91 | public NotificationChain basicSetCondition(Expression newCondition, NotificationChain msgs) | ||
92 | { | ||
93 | Expression oldCondition = condition; | ||
94 | condition = newCondition; | ||
95 | if (eNotificationRequired()) | ||
96 | { | ||
97 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.CASE__CONDITION, oldCondition, newCondition); | ||
98 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
99 | } | ||
100 | return msgs; | ||
101 | } | ||
102 | |||
103 | /** | ||
104 | * <!-- begin-user-doc --> | ||
105 | * <!-- end-user-doc --> | ||
106 | * @generated | ||
107 | */ | ||
108 | @Override | ||
109 | public void setCondition(Expression newCondition) | ||
110 | { | ||
111 | if (newCondition != condition) | ||
112 | { | ||
113 | NotificationChain msgs = null; | ||
114 | if (condition != null) | ||
115 | msgs = ((InternalEObject)condition).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.CASE__CONDITION, null, msgs); | ||
116 | if (newCondition != null) | ||
117 | msgs = ((InternalEObject)newCondition).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.CASE__CONDITION, null, msgs); | ||
118 | msgs = basicSetCondition(newCondition, msgs); | ||
119 | if (msgs != null) msgs.dispatch(); | ||
120 | } | ||
121 | else if (eNotificationRequired()) | ||
122 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.CASE__CONDITION, newCondition, newCondition)); | ||
123 | } | ||
124 | |||
125 | /** | ||
126 | * <!-- begin-user-doc --> | ||
127 | * <!-- end-user-doc --> | ||
128 | * @generated | ||
129 | */ | ||
130 | @Override | ||
131 | public Expression getBody() | ||
132 | { | ||
133 | return body; | ||
134 | } | ||
135 | |||
136 | /** | ||
137 | * <!-- begin-user-doc --> | ||
138 | * <!-- end-user-doc --> | ||
139 | * @generated | ||
140 | */ | ||
141 | public NotificationChain basicSetBody(Expression newBody, NotificationChain msgs) | ||
142 | { | ||
143 | Expression oldBody = body; | ||
144 | body = newBody; | ||
145 | if (eNotificationRequired()) | ||
146 | { | ||
147 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.CASE__BODY, oldBody, newBody); | ||
148 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
149 | } | ||
150 | return msgs; | ||
151 | } | ||
152 | |||
153 | /** | ||
154 | * <!-- begin-user-doc --> | ||
155 | * <!-- end-user-doc --> | ||
156 | * @generated | ||
157 | */ | ||
158 | @Override | ||
159 | public void setBody(Expression newBody) | ||
160 | { | ||
161 | if (newBody != body) | ||
162 | { | ||
163 | NotificationChain msgs = null; | ||
164 | if (body != null) | ||
165 | msgs = ((InternalEObject)body).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.CASE__BODY, null, msgs); | ||
166 | if (newBody != null) | ||
167 | msgs = ((InternalEObject)newBody).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.CASE__BODY, null, msgs); | ||
168 | msgs = basicSetBody(newBody, msgs); | ||
169 | if (msgs != null) msgs.dispatch(); | ||
170 | } | ||
171 | else if (eNotificationRequired()) | ||
172 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.CASE__BODY, newBody, newBody)); | ||
173 | } | ||
174 | |||
175 | /** | ||
176 | * <!-- begin-user-doc --> | ||
177 | * <!-- end-user-doc --> | ||
178 | * @generated | ||
179 | */ | ||
180 | @Override | ||
181 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
182 | { | ||
183 | switch (featureID) | ||
184 | { | ||
185 | case SolverLanguagePackage.CASE__CONDITION: | ||
186 | return basicSetCondition(null, msgs); | ||
187 | case SolverLanguagePackage.CASE__BODY: | ||
188 | return basicSetBody(null, msgs); | ||
189 | } | ||
190 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
191 | } | ||
192 | |||
193 | /** | ||
194 | * <!-- begin-user-doc --> | ||
195 | * <!-- end-user-doc --> | ||
196 | * @generated | ||
197 | */ | ||
198 | @Override | ||
199 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
200 | { | ||
201 | switch (featureID) | ||
202 | { | ||
203 | case SolverLanguagePackage.CASE__CONDITION: | ||
204 | return getCondition(); | ||
205 | case SolverLanguagePackage.CASE__BODY: | ||
206 | return getBody(); | ||
207 | } | ||
208 | return super.eGet(featureID, resolve, coreType); | ||
209 | } | ||
210 | |||
211 | /** | ||
212 | * <!-- begin-user-doc --> | ||
213 | * <!-- end-user-doc --> | ||
214 | * @generated | ||
215 | */ | ||
216 | @Override | ||
217 | public void eSet(int featureID, Object newValue) | ||
218 | { | ||
219 | switch (featureID) | ||
220 | { | ||
221 | case SolverLanguagePackage.CASE__CONDITION: | ||
222 | setCondition((Expression)newValue); | ||
223 | return; | ||
224 | case SolverLanguagePackage.CASE__BODY: | ||
225 | setBody((Expression)newValue); | ||
226 | return; | ||
227 | } | ||
228 | super.eSet(featureID, newValue); | ||
229 | } | ||
230 | |||
231 | /** | ||
232 | * <!-- begin-user-doc --> | ||
233 | * <!-- end-user-doc --> | ||
234 | * @generated | ||
235 | */ | ||
236 | @Override | ||
237 | public void eUnset(int featureID) | ||
238 | { | ||
239 | switch (featureID) | ||
240 | { | ||
241 | case SolverLanguagePackage.CASE__CONDITION: | ||
242 | setCondition((Expression)null); | ||
243 | return; | ||
244 | case SolverLanguagePackage.CASE__BODY: | ||
245 | setBody((Expression)null); | ||
246 | return; | ||
247 | } | ||
248 | super.eUnset(featureID); | ||
249 | } | ||
250 | |||
251 | /** | ||
252 | * <!-- begin-user-doc --> | ||
253 | * <!-- end-user-doc --> | ||
254 | * @generated | ||
255 | */ | ||
256 | @Override | ||
257 | public boolean eIsSet(int featureID) | ||
258 | { | ||
259 | switch (featureID) | ||
260 | { | ||
261 | case SolverLanguagePackage.CASE__CONDITION: | ||
262 | return condition != null; | ||
263 | case SolverLanguagePackage.CASE__BODY: | ||
264 | return body != null; | ||
265 | } | ||
266 | return super.eIsSet(featureID); | ||
267 | } | ||
268 | |||
269 | } //CaseImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ClassDefinitionImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ClassDefinitionImpl.java deleted file mode 100644 index f0a81764..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ClassDefinitionImpl.java +++ /dev/null | |||
@@ -1,340 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import java.util.Collection; | ||
7 | |||
8 | import org.eclipse.emf.common.notify.Notification; | ||
9 | import org.eclipse.emf.common.notify.NotificationChain; | ||
10 | |||
11 | import org.eclipse.emf.common.util.EList; | ||
12 | |||
13 | import org.eclipse.emf.ecore.EClass; | ||
14 | import org.eclipse.emf.ecore.InternalEObject; | ||
15 | |||
16 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
17 | |||
18 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
19 | import org.eclipse.emf.ecore.util.EObjectResolvingEList; | ||
20 | import org.eclipse.emf.ecore.util.InternalEList; | ||
21 | |||
22 | import org.eclipse.viatra.solver.language.solverLanguage.ClassDefinition; | ||
23 | import org.eclipse.viatra.solver.language.solverLanguage.MemberDefinition; | ||
24 | import org.eclipse.viatra.solver.language.solverLanguage.NamedElement; | ||
25 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
26 | |||
27 | /** | ||
28 | * <!-- begin-user-doc --> | ||
29 | * An implementation of the model object '<em><b>Class Definition</b></em>'. | ||
30 | * <!-- end-user-doc --> | ||
31 | * <p> | ||
32 | * The following features are implemented: | ||
33 | * </p> | ||
34 | * <ul> | ||
35 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ClassDefinitionImpl#isAbstract <em>Abstract</em>}</li> | ||
36 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ClassDefinitionImpl#getName <em>Name</em>}</li> | ||
37 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ClassDefinitionImpl#getSuperclasses <em>Superclasses</em>}</li> | ||
38 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ClassDefinitionImpl#getMembers <em>Members</em>}</li> | ||
39 | * </ul> | ||
40 | * | ||
41 | * @generated | ||
42 | */ | ||
43 | public class ClassDefinitionImpl extends StatementImpl implements ClassDefinition | ||
44 | { | ||
45 | /** | ||
46 | * The default value of the '{@link #isAbstract() <em>Abstract</em>}' attribute. | ||
47 | * <!-- begin-user-doc --> | ||
48 | * <!-- end-user-doc --> | ||
49 | * @see #isAbstract() | ||
50 | * @generated | ||
51 | * @ordered | ||
52 | */ | ||
53 | protected static final boolean ABSTRACT_EDEFAULT = false; | ||
54 | |||
55 | /** | ||
56 | * The cached value of the '{@link #isAbstract() <em>Abstract</em>}' attribute. | ||
57 | * <!-- begin-user-doc --> | ||
58 | * <!-- end-user-doc --> | ||
59 | * @see #isAbstract() | ||
60 | * @generated | ||
61 | * @ordered | ||
62 | */ | ||
63 | protected boolean abstract_ = ABSTRACT_EDEFAULT; | ||
64 | |||
65 | /** | ||
66 | * The default value of the '{@link #getName() <em>Name</em>}' attribute. | ||
67 | * <!-- begin-user-doc --> | ||
68 | * <!-- end-user-doc --> | ||
69 | * @see #getName() | ||
70 | * @generated | ||
71 | * @ordered | ||
72 | */ | ||
73 | protected static final String NAME_EDEFAULT = null; | ||
74 | |||
75 | /** | ||
76 | * The cached value of the '{@link #getName() <em>Name</em>}' attribute. | ||
77 | * <!-- begin-user-doc --> | ||
78 | * <!-- end-user-doc --> | ||
79 | * @see #getName() | ||
80 | * @generated | ||
81 | * @ordered | ||
82 | */ | ||
83 | protected String name = NAME_EDEFAULT; | ||
84 | |||
85 | /** | ||
86 | * The cached value of the '{@link #getSuperclasses() <em>Superclasses</em>}' reference list. | ||
87 | * <!-- begin-user-doc --> | ||
88 | * <!-- end-user-doc --> | ||
89 | * @see #getSuperclasses() | ||
90 | * @generated | ||
91 | * @ordered | ||
92 | */ | ||
93 | protected EList<NamedElement> superclasses; | ||
94 | |||
95 | /** | ||
96 | * The cached value of the '{@link #getMembers() <em>Members</em>}' containment reference list. | ||
97 | * <!-- begin-user-doc --> | ||
98 | * <!-- end-user-doc --> | ||
99 | * @see #getMembers() | ||
100 | * @generated | ||
101 | * @ordered | ||
102 | */ | ||
103 | protected EList<MemberDefinition> members; | ||
104 | |||
105 | /** | ||
106 | * <!-- begin-user-doc --> | ||
107 | * <!-- end-user-doc --> | ||
108 | * @generated | ||
109 | */ | ||
110 | protected ClassDefinitionImpl() | ||
111 | { | ||
112 | super(); | ||
113 | } | ||
114 | |||
115 | /** | ||
116 | * <!-- begin-user-doc --> | ||
117 | * <!-- end-user-doc --> | ||
118 | * @generated | ||
119 | */ | ||
120 | @Override | ||
121 | protected EClass eStaticClass() | ||
122 | { | ||
123 | return SolverLanguagePackage.Literals.CLASS_DEFINITION; | ||
124 | } | ||
125 | |||
126 | /** | ||
127 | * <!-- begin-user-doc --> | ||
128 | * <!-- end-user-doc --> | ||
129 | * @generated | ||
130 | */ | ||
131 | @Override | ||
132 | public boolean isAbstract() | ||
133 | { | ||
134 | return abstract_; | ||
135 | } | ||
136 | |||
137 | /** | ||
138 | * <!-- begin-user-doc --> | ||
139 | * <!-- end-user-doc --> | ||
140 | * @generated | ||
141 | */ | ||
142 | @Override | ||
143 | public void setAbstract(boolean newAbstract) | ||
144 | { | ||
145 | boolean oldAbstract = abstract_; | ||
146 | abstract_ = newAbstract; | ||
147 | if (eNotificationRequired()) | ||
148 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.CLASS_DEFINITION__ABSTRACT, oldAbstract, abstract_)); | ||
149 | } | ||
150 | |||
151 | /** | ||
152 | * <!-- begin-user-doc --> | ||
153 | * <!-- end-user-doc --> | ||
154 | * @generated | ||
155 | */ | ||
156 | @Override | ||
157 | public String getName() | ||
158 | { | ||
159 | return name; | ||
160 | } | ||
161 | |||
162 | /** | ||
163 | * <!-- begin-user-doc --> | ||
164 | * <!-- end-user-doc --> | ||
165 | * @generated | ||
166 | */ | ||
167 | @Override | ||
168 | public void setName(String newName) | ||
169 | { | ||
170 | String oldName = name; | ||
171 | name = newName; | ||
172 | if (eNotificationRequired()) | ||
173 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.CLASS_DEFINITION__NAME, oldName, name)); | ||
174 | } | ||
175 | |||
176 | /** | ||
177 | * <!-- begin-user-doc --> | ||
178 | * <!-- end-user-doc --> | ||
179 | * @generated | ||
180 | */ | ||
181 | @Override | ||
182 | public EList<NamedElement> getSuperclasses() | ||
183 | { | ||
184 | if (superclasses == null) | ||
185 | { | ||
186 | superclasses = new EObjectResolvingEList<NamedElement>(NamedElement.class, this, SolverLanguagePackage.CLASS_DEFINITION__SUPERCLASSES); | ||
187 | } | ||
188 | return superclasses; | ||
189 | } | ||
190 | |||
191 | /** | ||
192 | * <!-- begin-user-doc --> | ||
193 | * <!-- end-user-doc --> | ||
194 | * @generated | ||
195 | */ | ||
196 | @Override | ||
197 | public EList<MemberDefinition> getMembers() | ||
198 | { | ||
199 | if (members == null) | ||
200 | { | ||
201 | members = new EObjectContainmentEList<MemberDefinition>(MemberDefinition.class, this, SolverLanguagePackage.CLASS_DEFINITION__MEMBERS); | ||
202 | } | ||
203 | return members; | ||
204 | } | ||
205 | |||
206 | /** | ||
207 | * <!-- begin-user-doc --> | ||
208 | * <!-- end-user-doc --> | ||
209 | * @generated | ||
210 | */ | ||
211 | @Override | ||
212 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
213 | { | ||
214 | switch (featureID) | ||
215 | { | ||
216 | case SolverLanguagePackage.CLASS_DEFINITION__MEMBERS: | ||
217 | return ((InternalEList<?>)getMembers()).basicRemove(otherEnd, msgs); | ||
218 | } | ||
219 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
220 | } | ||
221 | |||
222 | /** | ||
223 | * <!-- begin-user-doc --> | ||
224 | * <!-- end-user-doc --> | ||
225 | * @generated | ||
226 | */ | ||
227 | @Override | ||
228 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
229 | { | ||
230 | switch (featureID) | ||
231 | { | ||
232 | case SolverLanguagePackage.CLASS_DEFINITION__ABSTRACT: | ||
233 | return isAbstract(); | ||
234 | case SolverLanguagePackage.CLASS_DEFINITION__NAME: | ||
235 | return getName(); | ||
236 | case SolverLanguagePackage.CLASS_DEFINITION__SUPERCLASSES: | ||
237 | return getSuperclasses(); | ||
238 | case SolverLanguagePackage.CLASS_DEFINITION__MEMBERS: | ||
239 | return getMembers(); | ||
240 | } | ||
241 | return super.eGet(featureID, resolve, coreType); | ||
242 | } | ||
243 | |||
244 | /** | ||
245 | * <!-- begin-user-doc --> | ||
246 | * <!-- end-user-doc --> | ||
247 | * @generated | ||
248 | */ | ||
249 | @SuppressWarnings("unchecked") | ||
250 | @Override | ||
251 | public void eSet(int featureID, Object newValue) | ||
252 | { | ||
253 | switch (featureID) | ||
254 | { | ||
255 | case SolverLanguagePackage.CLASS_DEFINITION__ABSTRACT: | ||
256 | setAbstract((Boolean)newValue); | ||
257 | return; | ||
258 | case SolverLanguagePackage.CLASS_DEFINITION__NAME: | ||
259 | setName((String)newValue); | ||
260 | return; | ||
261 | case SolverLanguagePackage.CLASS_DEFINITION__SUPERCLASSES: | ||
262 | getSuperclasses().clear(); | ||
263 | getSuperclasses().addAll((Collection<? extends NamedElement>)newValue); | ||
264 | return; | ||
265 | case SolverLanguagePackage.CLASS_DEFINITION__MEMBERS: | ||
266 | getMembers().clear(); | ||
267 | getMembers().addAll((Collection<? extends MemberDefinition>)newValue); | ||
268 | return; | ||
269 | } | ||
270 | super.eSet(featureID, newValue); | ||
271 | } | ||
272 | |||
273 | /** | ||
274 | * <!-- begin-user-doc --> | ||
275 | * <!-- end-user-doc --> | ||
276 | * @generated | ||
277 | */ | ||
278 | @Override | ||
279 | public void eUnset(int featureID) | ||
280 | { | ||
281 | switch (featureID) | ||
282 | { | ||
283 | case SolverLanguagePackage.CLASS_DEFINITION__ABSTRACT: | ||
284 | setAbstract(ABSTRACT_EDEFAULT); | ||
285 | return; | ||
286 | case SolverLanguagePackage.CLASS_DEFINITION__NAME: | ||
287 | setName(NAME_EDEFAULT); | ||
288 | return; | ||
289 | case SolverLanguagePackage.CLASS_DEFINITION__SUPERCLASSES: | ||
290 | getSuperclasses().clear(); | ||
291 | return; | ||
292 | case SolverLanguagePackage.CLASS_DEFINITION__MEMBERS: | ||
293 | getMembers().clear(); | ||
294 | return; | ||
295 | } | ||
296 | super.eUnset(featureID); | ||
297 | } | ||
298 | |||
299 | /** | ||
300 | * <!-- begin-user-doc --> | ||
301 | * <!-- end-user-doc --> | ||
302 | * @generated | ||
303 | */ | ||
304 | @Override | ||
305 | public boolean eIsSet(int featureID) | ||
306 | { | ||
307 | switch (featureID) | ||
308 | { | ||
309 | case SolverLanguagePackage.CLASS_DEFINITION__ABSTRACT: | ||
310 | return abstract_ != ABSTRACT_EDEFAULT; | ||
311 | case SolverLanguagePackage.CLASS_DEFINITION__NAME: | ||
312 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); | ||
313 | case SolverLanguagePackage.CLASS_DEFINITION__SUPERCLASSES: | ||
314 | return superclasses != null && !superclasses.isEmpty(); | ||
315 | case SolverLanguagePackage.CLASS_DEFINITION__MEMBERS: | ||
316 | return members != null && !members.isEmpty(); | ||
317 | } | ||
318 | return super.eIsSet(featureID); | ||
319 | } | ||
320 | |||
321 | /** | ||
322 | * <!-- begin-user-doc --> | ||
323 | * <!-- end-user-doc --> | ||
324 | * @generated | ||
325 | */ | ||
326 | @Override | ||
327 | public String toString() | ||
328 | { | ||
329 | if (eIsProxy()) return super.toString(); | ||
330 | |||
331 | StringBuilder result = new StringBuilder(super.toString()); | ||
332 | result.append(" (abstract: "); | ||
333 | result.append(abstract_); | ||
334 | result.append(", name: "); | ||
335 | result.append(name); | ||
336 | result.append(')'); | ||
337 | return result.toString(); | ||
338 | } | ||
339 | |||
340 | } //ClassDefinitionImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ComparisonImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ComparisonImpl.java deleted file mode 100644 index 9e62d7ef..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ComparisonImpl.java +++ /dev/null | |||
@@ -1,343 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | import org.eclipse.emf.common.notify.NotificationChain; | ||
8 | |||
9 | import org.eclipse.emf.ecore.EClass; | ||
10 | import org.eclipse.emf.ecore.InternalEObject; | ||
11 | |||
12 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
13 | |||
14 | import org.eclipse.viatra.solver.language.solverLanguage.BinaryOperator; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.Comparison; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.Expression; | ||
17 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
18 | |||
19 | /** | ||
20 | * <!-- begin-user-doc --> | ||
21 | * An implementation of the model object '<em><b>Comparison</b></em>'. | ||
22 | * <!-- end-user-doc --> | ||
23 | * <p> | ||
24 | * The following features are implemented: | ||
25 | * </p> | ||
26 | * <ul> | ||
27 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ComparisonImpl#getLeft <em>Left</em>}</li> | ||
28 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ComparisonImpl#getOp <em>Op</em>}</li> | ||
29 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ComparisonImpl#getRight <em>Right</em>}</li> | ||
30 | * </ul> | ||
31 | * | ||
32 | * @generated | ||
33 | */ | ||
34 | public class ComparisonImpl extends ExpressionImpl implements Comparison | ||
35 | { | ||
36 | /** | ||
37 | * The cached value of the '{@link #getLeft() <em>Left</em>}' containment reference. | ||
38 | * <!-- begin-user-doc --> | ||
39 | * <!-- end-user-doc --> | ||
40 | * @see #getLeft() | ||
41 | * @generated | ||
42 | * @ordered | ||
43 | */ | ||
44 | protected Expression left; | ||
45 | |||
46 | /** | ||
47 | * The default value of the '{@link #getOp() <em>Op</em>}' attribute. | ||
48 | * <!-- begin-user-doc --> | ||
49 | * <!-- end-user-doc --> | ||
50 | * @see #getOp() | ||
51 | * @generated | ||
52 | * @ordered | ||
53 | */ | ||
54 | protected static final BinaryOperator OP_EDEFAULT = BinaryOperator.EQ; | ||
55 | |||
56 | /** | ||
57 | * The cached value of the '{@link #getOp() <em>Op</em>}' attribute. | ||
58 | * <!-- begin-user-doc --> | ||
59 | * <!-- end-user-doc --> | ||
60 | * @see #getOp() | ||
61 | * @generated | ||
62 | * @ordered | ||
63 | */ | ||
64 | protected BinaryOperator op = OP_EDEFAULT; | ||
65 | |||
66 | /** | ||
67 | * The cached value of the '{@link #getRight() <em>Right</em>}' containment reference. | ||
68 | * <!-- begin-user-doc --> | ||
69 | * <!-- end-user-doc --> | ||
70 | * @see #getRight() | ||
71 | * @generated | ||
72 | * @ordered | ||
73 | */ | ||
74 | protected Expression right; | ||
75 | |||
76 | /** | ||
77 | * <!-- begin-user-doc --> | ||
78 | * <!-- end-user-doc --> | ||
79 | * @generated | ||
80 | */ | ||
81 | protected ComparisonImpl() | ||
82 | { | ||
83 | super(); | ||
84 | } | ||
85 | |||
86 | /** | ||
87 | * <!-- begin-user-doc --> | ||
88 | * <!-- end-user-doc --> | ||
89 | * @generated | ||
90 | */ | ||
91 | @Override | ||
92 | protected EClass eStaticClass() | ||
93 | { | ||
94 | return SolverLanguagePackage.Literals.COMPARISON; | ||
95 | } | ||
96 | |||
97 | /** | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @generated | ||
101 | */ | ||
102 | @Override | ||
103 | public Expression getLeft() | ||
104 | { | ||
105 | return left; | ||
106 | } | ||
107 | |||
108 | /** | ||
109 | * <!-- begin-user-doc --> | ||
110 | * <!-- end-user-doc --> | ||
111 | * @generated | ||
112 | */ | ||
113 | public NotificationChain basicSetLeft(Expression newLeft, NotificationChain msgs) | ||
114 | { | ||
115 | Expression oldLeft = left; | ||
116 | left = newLeft; | ||
117 | if (eNotificationRequired()) | ||
118 | { | ||
119 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.COMPARISON__LEFT, oldLeft, newLeft); | ||
120 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
121 | } | ||
122 | return msgs; | ||
123 | } | ||
124 | |||
125 | /** | ||
126 | * <!-- begin-user-doc --> | ||
127 | * <!-- end-user-doc --> | ||
128 | * @generated | ||
129 | */ | ||
130 | @Override | ||
131 | public void setLeft(Expression newLeft) | ||
132 | { | ||
133 | if (newLeft != left) | ||
134 | { | ||
135 | NotificationChain msgs = null; | ||
136 | if (left != null) | ||
137 | msgs = ((InternalEObject)left).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.COMPARISON__LEFT, null, msgs); | ||
138 | if (newLeft != null) | ||
139 | msgs = ((InternalEObject)newLeft).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.COMPARISON__LEFT, null, msgs); | ||
140 | msgs = basicSetLeft(newLeft, msgs); | ||
141 | if (msgs != null) msgs.dispatch(); | ||
142 | } | ||
143 | else if (eNotificationRequired()) | ||
144 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.COMPARISON__LEFT, newLeft, newLeft)); | ||
145 | } | ||
146 | |||
147 | /** | ||
148 | * <!-- begin-user-doc --> | ||
149 | * <!-- end-user-doc --> | ||
150 | * @generated | ||
151 | */ | ||
152 | @Override | ||
153 | public BinaryOperator getOp() | ||
154 | { | ||
155 | return op; | ||
156 | } | ||
157 | |||
158 | /** | ||
159 | * <!-- begin-user-doc --> | ||
160 | * <!-- end-user-doc --> | ||
161 | * @generated | ||
162 | */ | ||
163 | @Override | ||
164 | public void setOp(BinaryOperator newOp) | ||
165 | { | ||
166 | BinaryOperator oldOp = op; | ||
167 | op = newOp == null ? OP_EDEFAULT : newOp; | ||
168 | if (eNotificationRequired()) | ||
169 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.COMPARISON__OP, oldOp, op)); | ||
170 | } | ||
171 | |||
172 | /** | ||
173 | * <!-- begin-user-doc --> | ||
174 | * <!-- end-user-doc --> | ||
175 | * @generated | ||
176 | */ | ||
177 | @Override | ||
178 | public Expression getRight() | ||
179 | { | ||
180 | return right; | ||
181 | } | ||
182 | |||
183 | /** | ||
184 | * <!-- begin-user-doc --> | ||
185 | * <!-- end-user-doc --> | ||
186 | * @generated | ||
187 | */ | ||
188 | public NotificationChain basicSetRight(Expression newRight, NotificationChain msgs) | ||
189 | { | ||
190 | Expression oldRight = right; | ||
191 | right = newRight; | ||
192 | if (eNotificationRequired()) | ||
193 | { | ||
194 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.COMPARISON__RIGHT, oldRight, newRight); | ||
195 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
196 | } | ||
197 | return msgs; | ||
198 | } | ||
199 | |||
200 | /** | ||
201 | * <!-- begin-user-doc --> | ||
202 | * <!-- end-user-doc --> | ||
203 | * @generated | ||
204 | */ | ||
205 | @Override | ||
206 | public void setRight(Expression newRight) | ||
207 | { | ||
208 | if (newRight != right) | ||
209 | { | ||
210 | NotificationChain msgs = null; | ||
211 | if (right != null) | ||
212 | msgs = ((InternalEObject)right).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.COMPARISON__RIGHT, null, msgs); | ||
213 | if (newRight != null) | ||
214 | msgs = ((InternalEObject)newRight).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.COMPARISON__RIGHT, null, msgs); | ||
215 | msgs = basicSetRight(newRight, msgs); | ||
216 | if (msgs != null) msgs.dispatch(); | ||
217 | } | ||
218 | else if (eNotificationRequired()) | ||
219 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.COMPARISON__RIGHT, newRight, newRight)); | ||
220 | } | ||
221 | |||
222 | /** | ||
223 | * <!-- begin-user-doc --> | ||
224 | * <!-- end-user-doc --> | ||
225 | * @generated | ||
226 | */ | ||
227 | @Override | ||
228 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
229 | { | ||
230 | switch (featureID) | ||
231 | { | ||
232 | case SolverLanguagePackage.COMPARISON__LEFT: | ||
233 | return basicSetLeft(null, msgs); | ||
234 | case SolverLanguagePackage.COMPARISON__RIGHT: | ||
235 | return basicSetRight(null, msgs); | ||
236 | } | ||
237 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
238 | } | ||
239 | |||
240 | /** | ||
241 | * <!-- begin-user-doc --> | ||
242 | * <!-- end-user-doc --> | ||
243 | * @generated | ||
244 | */ | ||
245 | @Override | ||
246 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
247 | { | ||
248 | switch (featureID) | ||
249 | { | ||
250 | case SolverLanguagePackage.COMPARISON__LEFT: | ||
251 | return getLeft(); | ||
252 | case SolverLanguagePackage.COMPARISON__OP: | ||
253 | return getOp(); | ||
254 | case SolverLanguagePackage.COMPARISON__RIGHT: | ||
255 | return getRight(); | ||
256 | } | ||
257 | return super.eGet(featureID, resolve, coreType); | ||
258 | } | ||
259 | |||
260 | /** | ||
261 | * <!-- begin-user-doc --> | ||
262 | * <!-- end-user-doc --> | ||
263 | * @generated | ||
264 | */ | ||
265 | @Override | ||
266 | public void eSet(int featureID, Object newValue) | ||
267 | { | ||
268 | switch (featureID) | ||
269 | { | ||
270 | case SolverLanguagePackage.COMPARISON__LEFT: | ||
271 | setLeft((Expression)newValue); | ||
272 | return; | ||
273 | case SolverLanguagePackage.COMPARISON__OP: | ||
274 | setOp((BinaryOperator)newValue); | ||
275 | return; | ||
276 | case SolverLanguagePackage.COMPARISON__RIGHT: | ||
277 | setRight((Expression)newValue); | ||
278 | return; | ||
279 | } | ||
280 | super.eSet(featureID, newValue); | ||
281 | } | ||
282 | |||
283 | /** | ||
284 | * <!-- begin-user-doc --> | ||
285 | * <!-- end-user-doc --> | ||
286 | * @generated | ||
287 | */ | ||
288 | @Override | ||
289 | public void eUnset(int featureID) | ||
290 | { | ||
291 | switch (featureID) | ||
292 | { | ||
293 | case SolverLanguagePackage.COMPARISON__LEFT: | ||
294 | setLeft((Expression)null); | ||
295 | return; | ||
296 | case SolverLanguagePackage.COMPARISON__OP: | ||
297 | setOp(OP_EDEFAULT); | ||
298 | return; | ||
299 | case SolverLanguagePackage.COMPARISON__RIGHT: | ||
300 | setRight((Expression)null); | ||
301 | return; | ||
302 | } | ||
303 | super.eUnset(featureID); | ||
304 | } | ||
305 | |||
306 | /** | ||
307 | * <!-- begin-user-doc --> | ||
308 | * <!-- end-user-doc --> | ||
309 | * @generated | ||
310 | */ | ||
311 | @Override | ||
312 | public boolean eIsSet(int featureID) | ||
313 | { | ||
314 | switch (featureID) | ||
315 | { | ||
316 | case SolverLanguagePackage.COMPARISON__LEFT: | ||
317 | return left != null; | ||
318 | case SolverLanguagePackage.COMPARISON__OP: | ||
319 | return op != OP_EDEFAULT; | ||
320 | case SolverLanguagePackage.COMPARISON__RIGHT: | ||
321 | return right != null; | ||
322 | } | ||
323 | return super.eIsSet(featureID); | ||
324 | } | ||
325 | |||
326 | /** | ||
327 | * <!-- begin-user-doc --> | ||
328 | * <!-- end-user-doc --> | ||
329 | * @generated | ||
330 | */ | ||
331 | @Override | ||
332 | public String toString() | ||
333 | { | ||
334 | if (eIsProxy()) return super.toString(); | ||
335 | |||
336 | StringBuilder result = new StringBuilder(super.toString()); | ||
337 | result.append(" (op: "); | ||
338 | result.append(op); | ||
339 | result.append(')'); | ||
340 | return result.toString(); | ||
341 | } | ||
342 | |||
343 | } //ComparisonImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ConjunctionImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ConjunctionImpl.java deleted file mode 100644 index 6a1e995a..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ConjunctionImpl.java +++ /dev/null | |||
@@ -1,167 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import java.util.Collection; | ||
7 | |||
8 | import org.eclipse.emf.common.notify.NotificationChain; | ||
9 | |||
10 | import org.eclipse.emf.common.util.EList; | ||
11 | |||
12 | import org.eclipse.emf.ecore.EClass; | ||
13 | import org.eclipse.emf.ecore.InternalEObject; | ||
14 | |||
15 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
16 | import org.eclipse.emf.ecore.util.InternalEList; | ||
17 | |||
18 | import org.eclipse.viatra.solver.language.solverLanguage.Conjunction; | ||
19 | import org.eclipse.viatra.solver.language.solverLanguage.Expression; | ||
20 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
21 | |||
22 | /** | ||
23 | * <!-- begin-user-doc --> | ||
24 | * An implementation of the model object '<em><b>Conjunction</b></em>'. | ||
25 | * <!-- end-user-doc --> | ||
26 | * <p> | ||
27 | * The following features are implemented: | ||
28 | * </p> | ||
29 | * <ul> | ||
30 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ConjunctionImpl#getChildren <em>Children</em>}</li> | ||
31 | * </ul> | ||
32 | * | ||
33 | * @generated | ||
34 | */ | ||
35 | public class ConjunctionImpl extends ExpressionImpl implements Conjunction | ||
36 | { | ||
37 | /** | ||
38 | * The cached value of the '{@link #getChildren() <em>Children</em>}' containment reference list. | ||
39 | * <!-- begin-user-doc --> | ||
40 | * <!-- end-user-doc --> | ||
41 | * @see #getChildren() | ||
42 | * @generated | ||
43 | * @ordered | ||
44 | */ | ||
45 | protected EList<Expression> children; | ||
46 | |||
47 | /** | ||
48 | * <!-- begin-user-doc --> | ||
49 | * <!-- end-user-doc --> | ||
50 | * @generated | ||
51 | */ | ||
52 | protected ConjunctionImpl() | ||
53 | { | ||
54 | super(); | ||
55 | } | ||
56 | |||
57 | /** | ||
58 | * <!-- begin-user-doc --> | ||
59 | * <!-- end-user-doc --> | ||
60 | * @generated | ||
61 | */ | ||
62 | @Override | ||
63 | protected EClass eStaticClass() | ||
64 | { | ||
65 | return SolverLanguagePackage.Literals.CONJUNCTION; | ||
66 | } | ||
67 | |||
68 | /** | ||
69 | * <!-- begin-user-doc --> | ||
70 | * <!-- end-user-doc --> | ||
71 | * @generated | ||
72 | */ | ||
73 | @Override | ||
74 | public EList<Expression> getChildren() | ||
75 | { | ||
76 | if (children == null) | ||
77 | { | ||
78 | children = new EObjectContainmentEList<Expression>(Expression.class, this, SolverLanguagePackage.CONJUNCTION__CHILDREN); | ||
79 | } | ||
80 | return children; | ||
81 | } | ||
82 | |||
83 | /** | ||
84 | * <!-- begin-user-doc --> | ||
85 | * <!-- end-user-doc --> | ||
86 | * @generated | ||
87 | */ | ||
88 | @Override | ||
89 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
90 | { | ||
91 | switch (featureID) | ||
92 | { | ||
93 | case SolverLanguagePackage.CONJUNCTION__CHILDREN: | ||
94 | return ((InternalEList<?>)getChildren()).basicRemove(otherEnd, msgs); | ||
95 | } | ||
96 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
97 | } | ||
98 | |||
99 | /** | ||
100 | * <!-- begin-user-doc --> | ||
101 | * <!-- end-user-doc --> | ||
102 | * @generated | ||
103 | */ | ||
104 | @Override | ||
105 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
106 | { | ||
107 | switch (featureID) | ||
108 | { | ||
109 | case SolverLanguagePackage.CONJUNCTION__CHILDREN: | ||
110 | return getChildren(); | ||
111 | } | ||
112 | return super.eGet(featureID, resolve, coreType); | ||
113 | } | ||
114 | |||
115 | /** | ||
116 | * <!-- begin-user-doc --> | ||
117 | * <!-- end-user-doc --> | ||
118 | * @generated | ||
119 | */ | ||
120 | @SuppressWarnings("unchecked") | ||
121 | @Override | ||
122 | public void eSet(int featureID, Object newValue) | ||
123 | { | ||
124 | switch (featureID) | ||
125 | { | ||
126 | case SolverLanguagePackage.CONJUNCTION__CHILDREN: | ||
127 | getChildren().clear(); | ||
128 | getChildren().addAll((Collection<? extends Expression>)newValue); | ||
129 | return; | ||
130 | } | ||
131 | super.eSet(featureID, newValue); | ||
132 | } | ||
133 | |||
134 | /** | ||
135 | * <!-- begin-user-doc --> | ||
136 | * <!-- end-user-doc --> | ||
137 | * @generated | ||
138 | */ | ||
139 | @Override | ||
140 | public void eUnset(int featureID) | ||
141 | { | ||
142 | switch (featureID) | ||
143 | { | ||
144 | case SolverLanguagePackage.CONJUNCTION__CHILDREN: | ||
145 | getChildren().clear(); | ||
146 | return; | ||
147 | } | ||
148 | super.eUnset(featureID); | ||
149 | } | ||
150 | |||
151 | /** | ||
152 | * <!-- begin-user-doc --> | ||
153 | * <!-- end-user-doc --> | ||
154 | * @generated | ||
155 | */ | ||
156 | @Override | ||
157 | public boolean eIsSet(int featureID) | ||
158 | { | ||
159 | switch (featureID) | ||
160 | { | ||
161 | case SolverLanguagePackage.CONJUNCTION__CHILDREN: | ||
162 | return children != null && !children.isEmpty(); | ||
163 | } | ||
164 | return super.eIsSet(featureID); | ||
165 | } | ||
166 | |||
167 | } //ConjunctionImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/CountImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/CountImpl.java deleted file mode 100644 index 1609245f..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/CountImpl.java +++ /dev/null | |||
@@ -1,196 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | import org.eclipse.emf.common.notify.NotificationChain; | ||
8 | |||
9 | import org.eclipse.emf.ecore.EClass; | ||
10 | import org.eclipse.emf.ecore.InternalEObject; | ||
11 | |||
12 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
13 | |||
14 | import org.eclipse.viatra.solver.language.solverLanguage.Count; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.Expression; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
17 | |||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * An implementation of the model object '<em><b>Count</b></em>'. | ||
21 | * <!-- end-user-doc --> | ||
22 | * <p> | ||
23 | * The following features are implemented: | ||
24 | * </p> | ||
25 | * <ul> | ||
26 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.CountImpl#getBody <em>Body</em>}</li> | ||
27 | * </ul> | ||
28 | * | ||
29 | * @generated | ||
30 | */ | ||
31 | public class CountImpl extends ExpressionImpl implements Count | ||
32 | { | ||
33 | /** | ||
34 | * The cached value of the '{@link #getBody() <em>Body</em>}' containment reference. | ||
35 | * <!-- begin-user-doc --> | ||
36 | * <!-- end-user-doc --> | ||
37 | * @see #getBody() | ||
38 | * @generated | ||
39 | * @ordered | ||
40 | */ | ||
41 | protected Expression body; | ||
42 | |||
43 | /** | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @generated | ||
47 | */ | ||
48 | protected CountImpl() | ||
49 | { | ||
50 | super(); | ||
51 | } | ||
52 | |||
53 | /** | ||
54 | * <!-- begin-user-doc --> | ||
55 | * <!-- end-user-doc --> | ||
56 | * @generated | ||
57 | */ | ||
58 | @Override | ||
59 | protected EClass eStaticClass() | ||
60 | { | ||
61 | return SolverLanguagePackage.Literals.COUNT; | ||
62 | } | ||
63 | |||
64 | /** | ||
65 | * <!-- begin-user-doc --> | ||
66 | * <!-- end-user-doc --> | ||
67 | * @generated | ||
68 | */ | ||
69 | @Override | ||
70 | public Expression getBody() | ||
71 | { | ||
72 | return body; | ||
73 | } | ||
74 | |||
75 | /** | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <!-- end-user-doc --> | ||
78 | * @generated | ||
79 | */ | ||
80 | public NotificationChain basicSetBody(Expression newBody, NotificationChain msgs) | ||
81 | { | ||
82 | Expression oldBody = body; | ||
83 | body = newBody; | ||
84 | if (eNotificationRequired()) | ||
85 | { | ||
86 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.COUNT__BODY, oldBody, newBody); | ||
87 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
88 | } | ||
89 | return msgs; | ||
90 | } | ||
91 | |||
92 | /** | ||
93 | * <!-- begin-user-doc --> | ||
94 | * <!-- end-user-doc --> | ||
95 | * @generated | ||
96 | */ | ||
97 | @Override | ||
98 | public void setBody(Expression newBody) | ||
99 | { | ||
100 | if (newBody != body) | ||
101 | { | ||
102 | NotificationChain msgs = null; | ||
103 | if (body != null) | ||
104 | msgs = ((InternalEObject)body).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.COUNT__BODY, null, msgs); | ||
105 | if (newBody != null) | ||
106 | msgs = ((InternalEObject)newBody).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.COUNT__BODY, null, msgs); | ||
107 | msgs = basicSetBody(newBody, msgs); | ||
108 | if (msgs != null) msgs.dispatch(); | ||
109 | } | ||
110 | else if (eNotificationRequired()) | ||
111 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.COUNT__BODY, newBody, newBody)); | ||
112 | } | ||
113 | |||
114 | /** | ||
115 | * <!-- begin-user-doc --> | ||
116 | * <!-- end-user-doc --> | ||
117 | * @generated | ||
118 | */ | ||
119 | @Override | ||
120 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
121 | { | ||
122 | switch (featureID) | ||
123 | { | ||
124 | case SolverLanguagePackage.COUNT__BODY: | ||
125 | return basicSetBody(null, msgs); | ||
126 | } | ||
127 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
128 | } | ||
129 | |||
130 | /** | ||
131 | * <!-- begin-user-doc --> | ||
132 | * <!-- end-user-doc --> | ||
133 | * @generated | ||
134 | */ | ||
135 | @Override | ||
136 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
137 | { | ||
138 | switch (featureID) | ||
139 | { | ||
140 | case SolverLanguagePackage.COUNT__BODY: | ||
141 | return getBody(); | ||
142 | } | ||
143 | return super.eGet(featureID, resolve, coreType); | ||
144 | } | ||
145 | |||
146 | /** | ||
147 | * <!-- begin-user-doc --> | ||
148 | * <!-- end-user-doc --> | ||
149 | * @generated | ||
150 | */ | ||
151 | @Override | ||
152 | public void eSet(int featureID, Object newValue) | ||
153 | { | ||
154 | switch (featureID) | ||
155 | { | ||
156 | case SolverLanguagePackage.COUNT__BODY: | ||
157 | setBody((Expression)newValue); | ||
158 | return; | ||
159 | } | ||
160 | super.eSet(featureID, newValue); | ||
161 | } | ||
162 | |||
163 | /** | ||
164 | * <!-- begin-user-doc --> | ||
165 | * <!-- end-user-doc --> | ||
166 | * @generated | ||
167 | */ | ||
168 | @Override | ||
169 | public void eUnset(int featureID) | ||
170 | { | ||
171 | switch (featureID) | ||
172 | { | ||
173 | case SolverLanguagePackage.COUNT__BODY: | ||
174 | setBody((Expression)null); | ||
175 | return; | ||
176 | } | ||
177 | super.eUnset(featureID); | ||
178 | } | ||
179 | |||
180 | /** | ||
181 | * <!-- begin-user-doc --> | ||
182 | * <!-- end-user-doc --> | ||
183 | * @generated | ||
184 | */ | ||
185 | @Override | ||
186 | public boolean eIsSet(int featureID) | ||
187 | { | ||
188 | switch (featureID) | ||
189 | { | ||
190 | case SolverLanguagePackage.COUNT__BODY: | ||
191 | return body != null; | ||
192 | } | ||
193 | return super.eIsSet(featureID); | ||
194 | } | ||
195 | |||
196 | } //CountImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/DefaultDefinitionImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/DefaultDefinitionImpl.java deleted file mode 100644 index c1eaa71a..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/DefaultDefinitionImpl.java +++ /dev/null | |||
@@ -1,270 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | import org.eclipse.emf.common.notify.NotificationChain; | ||
8 | |||
9 | import org.eclipse.emf.ecore.EClass; | ||
10 | import org.eclipse.emf.ecore.InternalEObject; | ||
11 | |||
12 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
13 | |||
14 | import org.eclipse.viatra.solver.language.solverLanguage.Call; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.DefaultDefinition; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.Expression; | ||
17 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
18 | |||
19 | /** | ||
20 | * <!-- begin-user-doc --> | ||
21 | * An implementation of the model object '<em><b>Default Definition</b></em>'. | ||
22 | * <!-- end-user-doc --> | ||
23 | * <p> | ||
24 | * The following features are implemented: | ||
25 | * </p> | ||
26 | * <ul> | ||
27 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.DefaultDefinitionImpl#getHead <em>Head</em>}</li> | ||
28 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.DefaultDefinitionImpl#getRange <em>Range</em>}</li> | ||
29 | * </ul> | ||
30 | * | ||
31 | * @generated | ||
32 | */ | ||
33 | public class DefaultDefinitionImpl extends StatementImpl implements DefaultDefinition | ||
34 | { | ||
35 | /** | ||
36 | * The cached value of the '{@link #getHead() <em>Head</em>}' containment reference. | ||
37 | * <!-- begin-user-doc --> | ||
38 | * <!-- end-user-doc --> | ||
39 | * @see #getHead() | ||
40 | * @generated | ||
41 | * @ordered | ||
42 | */ | ||
43 | protected Call head; | ||
44 | |||
45 | /** | ||
46 | * The cached value of the '{@link #getRange() <em>Range</em>}' containment reference. | ||
47 | * <!-- begin-user-doc --> | ||
48 | * <!-- end-user-doc --> | ||
49 | * @see #getRange() | ||
50 | * @generated | ||
51 | * @ordered | ||
52 | */ | ||
53 | protected Expression range; | ||
54 | |||
55 | /** | ||
56 | * <!-- begin-user-doc --> | ||
57 | * <!-- end-user-doc --> | ||
58 | * @generated | ||
59 | */ | ||
60 | protected DefaultDefinitionImpl() | ||
61 | { | ||
62 | super(); | ||
63 | } | ||
64 | |||
65 | /** | ||
66 | * <!-- begin-user-doc --> | ||
67 | * <!-- end-user-doc --> | ||
68 | * @generated | ||
69 | */ | ||
70 | @Override | ||
71 | protected EClass eStaticClass() | ||
72 | { | ||
73 | return SolverLanguagePackage.Literals.DEFAULT_DEFINITION; | ||
74 | } | ||
75 | |||
76 | /** | ||
77 | * <!-- begin-user-doc --> | ||
78 | * <!-- end-user-doc --> | ||
79 | * @generated | ||
80 | */ | ||
81 | @Override | ||
82 | public Call getHead() | ||
83 | { | ||
84 | return head; | ||
85 | } | ||
86 | |||
87 | /** | ||
88 | * <!-- begin-user-doc --> | ||
89 | * <!-- end-user-doc --> | ||
90 | * @generated | ||
91 | */ | ||
92 | public NotificationChain basicSetHead(Call newHead, NotificationChain msgs) | ||
93 | { | ||
94 | Call oldHead = head; | ||
95 | head = newHead; | ||
96 | if (eNotificationRequired()) | ||
97 | { | ||
98 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.DEFAULT_DEFINITION__HEAD, oldHead, newHead); | ||
99 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
100 | } | ||
101 | return msgs; | ||
102 | } | ||
103 | |||
104 | /** | ||
105 | * <!-- begin-user-doc --> | ||
106 | * <!-- end-user-doc --> | ||
107 | * @generated | ||
108 | */ | ||
109 | @Override | ||
110 | public void setHead(Call newHead) | ||
111 | { | ||
112 | if (newHead != head) | ||
113 | { | ||
114 | NotificationChain msgs = null; | ||
115 | if (head != null) | ||
116 | msgs = ((InternalEObject)head).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.DEFAULT_DEFINITION__HEAD, null, msgs); | ||
117 | if (newHead != null) | ||
118 | msgs = ((InternalEObject)newHead).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.DEFAULT_DEFINITION__HEAD, null, msgs); | ||
119 | msgs = basicSetHead(newHead, msgs); | ||
120 | if (msgs != null) msgs.dispatch(); | ||
121 | } | ||
122 | else if (eNotificationRequired()) | ||
123 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.DEFAULT_DEFINITION__HEAD, newHead, newHead)); | ||
124 | } | ||
125 | |||
126 | /** | ||
127 | * <!-- begin-user-doc --> | ||
128 | * <!-- end-user-doc --> | ||
129 | * @generated | ||
130 | */ | ||
131 | @Override | ||
132 | public Expression getRange() | ||
133 | { | ||
134 | return range; | ||
135 | } | ||
136 | |||
137 | /** | ||
138 | * <!-- begin-user-doc --> | ||
139 | * <!-- end-user-doc --> | ||
140 | * @generated | ||
141 | */ | ||
142 | public NotificationChain basicSetRange(Expression newRange, NotificationChain msgs) | ||
143 | { | ||
144 | Expression oldRange = range; | ||
145 | range = newRange; | ||
146 | if (eNotificationRequired()) | ||
147 | { | ||
148 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.DEFAULT_DEFINITION__RANGE, oldRange, newRange); | ||
149 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
150 | } | ||
151 | return msgs; | ||
152 | } | ||
153 | |||
154 | /** | ||
155 | * <!-- begin-user-doc --> | ||
156 | * <!-- end-user-doc --> | ||
157 | * @generated | ||
158 | */ | ||
159 | @Override | ||
160 | public void setRange(Expression newRange) | ||
161 | { | ||
162 | if (newRange != range) | ||
163 | { | ||
164 | NotificationChain msgs = null; | ||
165 | if (range != null) | ||
166 | msgs = ((InternalEObject)range).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.DEFAULT_DEFINITION__RANGE, null, msgs); | ||
167 | if (newRange != null) | ||
168 | msgs = ((InternalEObject)newRange).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.DEFAULT_DEFINITION__RANGE, null, msgs); | ||
169 | msgs = basicSetRange(newRange, msgs); | ||
170 | if (msgs != null) msgs.dispatch(); | ||
171 | } | ||
172 | else if (eNotificationRequired()) | ||
173 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.DEFAULT_DEFINITION__RANGE, newRange, newRange)); | ||
174 | } | ||
175 | |||
176 | /** | ||
177 | * <!-- begin-user-doc --> | ||
178 | * <!-- end-user-doc --> | ||
179 | * @generated | ||
180 | */ | ||
181 | @Override | ||
182 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
183 | { | ||
184 | switch (featureID) | ||
185 | { | ||
186 | case SolverLanguagePackage.DEFAULT_DEFINITION__HEAD: | ||
187 | return basicSetHead(null, msgs); | ||
188 | case SolverLanguagePackage.DEFAULT_DEFINITION__RANGE: | ||
189 | return basicSetRange(null, msgs); | ||
190 | } | ||
191 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
192 | } | ||
193 | |||
194 | /** | ||
195 | * <!-- begin-user-doc --> | ||
196 | * <!-- end-user-doc --> | ||
197 | * @generated | ||
198 | */ | ||
199 | @Override | ||
200 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
201 | { | ||
202 | switch (featureID) | ||
203 | { | ||
204 | case SolverLanguagePackage.DEFAULT_DEFINITION__HEAD: | ||
205 | return getHead(); | ||
206 | case SolverLanguagePackage.DEFAULT_DEFINITION__RANGE: | ||
207 | return getRange(); | ||
208 | } | ||
209 | return super.eGet(featureID, resolve, coreType); | ||
210 | } | ||
211 | |||
212 | /** | ||
213 | * <!-- begin-user-doc --> | ||
214 | * <!-- end-user-doc --> | ||
215 | * @generated | ||
216 | */ | ||
217 | @Override | ||
218 | public void eSet(int featureID, Object newValue) | ||
219 | { | ||
220 | switch (featureID) | ||
221 | { | ||
222 | case SolverLanguagePackage.DEFAULT_DEFINITION__HEAD: | ||
223 | setHead((Call)newValue); | ||
224 | return; | ||
225 | case SolverLanguagePackage.DEFAULT_DEFINITION__RANGE: | ||
226 | setRange((Expression)newValue); | ||
227 | return; | ||
228 | } | ||
229 | super.eSet(featureID, newValue); | ||
230 | } | ||
231 | |||
232 | /** | ||
233 | * <!-- begin-user-doc --> | ||
234 | * <!-- end-user-doc --> | ||
235 | * @generated | ||
236 | */ | ||
237 | @Override | ||
238 | public void eUnset(int featureID) | ||
239 | { | ||
240 | switch (featureID) | ||
241 | { | ||
242 | case SolverLanguagePackage.DEFAULT_DEFINITION__HEAD: | ||
243 | setHead((Call)null); | ||
244 | return; | ||
245 | case SolverLanguagePackage.DEFAULT_DEFINITION__RANGE: | ||
246 | setRange((Expression)null); | ||
247 | return; | ||
248 | } | ||
249 | super.eUnset(featureID); | ||
250 | } | ||
251 | |||
252 | /** | ||
253 | * <!-- begin-user-doc --> | ||
254 | * <!-- end-user-doc --> | ||
255 | * @generated | ||
256 | */ | ||
257 | @Override | ||
258 | public boolean eIsSet(int featureID) | ||
259 | { | ||
260 | switch (featureID) | ||
261 | { | ||
262 | case SolverLanguagePackage.DEFAULT_DEFINITION__HEAD: | ||
263 | return head != null; | ||
264 | case SolverLanguagePackage.DEFAULT_DEFINITION__RANGE: | ||
265 | return range != null; | ||
266 | } | ||
267 | return super.eIsSet(featureID); | ||
268 | } | ||
269 | |||
270 | } //DefaultDefinitionImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/DisjunctionImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/DisjunctionImpl.java deleted file mode 100644 index ecdb14d8..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/DisjunctionImpl.java +++ /dev/null | |||
@@ -1,167 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import java.util.Collection; | ||
7 | |||
8 | import org.eclipse.emf.common.notify.NotificationChain; | ||
9 | |||
10 | import org.eclipse.emf.common.util.EList; | ||
11 | |||
12 | import org.eclipse.emf.ecore.EClass; | ||
13 | import org.eclipse.emf.ecore.InternalEObject; | ||
14 | |||
15 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
16 | import org.eclipse.emf.ecore.util.InternalEList; | ||
17 | |||
18 | import org.eclipse.viatra.solver.language.solverLanguage.Disjunction; | ||
19 | import org.eclipse.viatra.solver.language.solverLanguage.Expression; | ||
20 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
21 | |||
22 | /** | ||
23 | * <!-- begin-user-doc --> | ||
24 | * An implementation of the model object '<em><b>Disjunction</b></em>'. | ||
25 | * <!-- end-user-doc --> | ||
26 | * <p> | ||
27 | * The following features are implemented: | ||
28 | * </p> | ||
29 | * <ul> | ||
30 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.DisjunctionImpl#getChildren <em>Children</em>}</li> | ||
31 | * </ul> | ||
32 | * | ||
33 | * @generated | ||
34 | */ | ||
35 | public class DisjunctionImpl extends ExpressionImpl implements Disjunction | ||
36 | { | ||
37 | /** | ||
38 | * The cached value of the '{@link #getChildren() <em>Children</em>}' containment reference list. | ||
39 | * <!-- begin-user-doc --> | ||
40 | * <!-- end-user-doc --> | ||
41 | * @see #getChildren() | ||
42 | * @generated | ||
43 | * @ordered | ||
44 | */ | ||
45 | protected EList<Expression> children; | ||
46 | |||
47 | /** | ||
48 | * <!-- begin-user-doc --> | ||
49 | * <!-- end-user-doc --> | ||
50 | * @generated | ||
51 | */ | ||
52 | protected DisjunctionImpl() | ||
53 | { | ||
54 | super(); | ||
55 | } | ||
56 | |||
57 | /** | ||
58 | * <!-- begin-user-doc --> | ||
59 | * <!-- end-user-doc --> | ||
60 | * @generated | ||
61 | */ | ||
62 | @Override | ||
63 | protected EClass eStaticClass() | ||
64 | { | ||
65 | return SolverLanguagePackage.Literals.DISJUNCTION; | ||
66 | } | ||
67 | |||
68 | /** | ||
69 | * <!-- begin-user-doc --> | ||
70 | * <!-- end-user-doc --> | ||
71 | * @generated | ||
72 | */ | ||
73 | @Override | ||
74 | public EList<Expression> getChildren() | ||
75 | { | ||
76 | if (children == null) | ||
77 | { | ||
78 | children = new EObjectContainmentEList<Expression>(Expression.class, this, SolverLanguagePackage.DISJUNCTION__CHILDREN); | ||
79 | } | ||
80 | return children; | ||
81 | } | ||
82 | |||
83 | /** | ||
84 | * <!-- begin-user-doc --> | ||
85 | * <!-- end-user-doc --> | ||
86 | * @generated | ||
87 | */ | ||
88 | @Override | ||
89 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
90 | { | ||
91 | switch (featureID) | ||
92 | { | ||
93 | case SolverLanguagePackage.DISJUNCTION__CHILDREN: | ||
94 | return ((InternalEList<?>)getChildren()).basicRemove(otherEnd, msgs); | ||
95 | } | ||
96 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
97 | } | ||
98 | |||
99 | /** | ||
100 | * <!-- begin-user-doc --> | ||
101 | * <!-- end-user-doc --> | ||
102 | * @generated | ||
103 | */ | ||
104 | @Override | ||
105 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
106 | { | ||
107 | switch (featureID) | ||
108 | { | ||
109 | case SolverLanguagePackage.DISJUNCTION__CHILDREN: | ||
110 | return getChildren(); | ||
111 | } | ||
112 | return super.eGet(featureID, resolve, coreType); | ||
113 | } | ||
114 | |||
115 | /** | ||
116 | * <!-- begin-user-doc --> | ||
117 | * <!-- end-user-doc --> | ||
118 | * @generated | ||
119 | */ | ||
120 | @SuppressWarnings("unchecked") | ||
121 | @Override | ||
122 | public void eSet(int featureID, Object newValue) | ||
123 | { | ||
124 | switch (featureID) | ||
125 | { | ||
126 | case SolverLanguagePackage.DISJUNCTION__CHILDREN: | ||
127 | getChildren().clear(); | ||
128 | getChildren().addAll((Collection<? extends Expression>)newValue); | ||
129 | return; | ||
130 | } | ||
131 | super.eSet(featureID, newValue); | ||
132 | } | ||
133 | |||
134 | /** | ||
135 | * <!-- begin-user-doc --> | ||
136 | * <!-- end-user-doc --> | ||
137 | * @generated | ||
138 | */ | ||
139 | @Override | ||
140 | public void eUnset(int featureID) | ||
141 | { | ||
142 | switch (featureID) | ||
143 | { | ||
144 | case SolverLanguagePackage.DISJUNCTION__CHILDREN: | ||
145 | getChildren().clear(); | ||
146 | return; | ||
147 | } | ||
148 | super.eUnset(featureID); | ||
149 | } | ||
150 | |||
151 | /** | ||
152 | * <!-- begin-user-doc --> | ||
153 | * <!-- end-user-doc --> | ||
154 | * @generated | ||
155 | */ | ||
156 | @Override | ||
157 | public boolean eIsSet(int featureID) | ||
158 | { | ||
159 | switch (featureID) | ||
160 | { | ||
161 | case SolverLanguagePackage.DISJUNCTION__CHILDREN: | ||
162 | return children != null && !children.isEmpty(); | ||
163 | } | ||
164 | return super.eIsSet(featureID); | ||
165 | } | ||
166 | |||
167 | } //DisjunctionImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/EmptyIntervalLiteralImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/EmptyIntervalLiteralImpl.java deleted file mode 100644 index 1ebf38ad..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/EmptyIntervalLiteralImpl.java +++ /dev/null | |||
@@ -1,41 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | |||
8 | import org.eclipse.viatra.solver.language.solverLanguage.EmptyIntervalLiteral; | ||
9 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * An implementation of the model object '<em><b>Empty Interval Literal</b></em>'. | ||
14 | * <!-- end-user-doc --> | ||
15 | * | ||
16 | * @generated | ||
17 | */ | ||
18 | public class EmptyIntervalLiteralImpl extends LiteralImpl implements EmptyIntervalLiteral | ||
19 | { | ||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * <!-- end-user-doc --> | ||
23 | * @generated | ||
24 | */ | ||
25 | protected EmptyIntervalLiteralImpl() | ||
26 | { | ||
27 | super(); | ||
28 | } | ||
29 | |||
30 | /** | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @generated | ||
34 | */ | ||
35 | @Override | ||
36 | protected EClass eStaticClass() | ||
37 | { | ||
38 | return SolverLanguagePackage.Literals.EMPTY_INTERVAL_LITERAL; | ||
39 | } | ||
40 | |||
41 | } //EmptyIntervalLiteralImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExactMultiplicityImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExactMultiplicityImpl.java deleted file mode 100644 index 3751de39..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExactMultiplicityImpl.java +++ /dev/null | |||
@@ -1,179 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | |||
10 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
11 | |||
12 | import org.eclipse.viatra.solver.language.solverLanguage.ExactMultiplicity; | ||
13 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
14 | |||
15 | /** | ||
16 | * <!-- begin-user-doc --> | ||
17 | * An implementation of the model object '<em><b>Exact Multiplicity</b></em>'. | ||
18 | * <!-- end-user-doc --> | ||
19 | * <p> | ||
20 | * The following features are implemented: | ||
21 | * </p> | ||
22 | * <ul> | ||
23 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ExactMultiplicityImpl#getMultiplicity <em>Multiplicity</em>}</li> | ||
24 | * </ul> | ||
25 | * | ||
26 | * @generated | ||
27 | */ | ||
28 | public class ExactMultiplicityImpl extends MultiplicityImpl implements ExactMultiplicity | ||
29 | { | ||
30 | /** | ||
31 | * The default value of the '{@link #getMultiplicity() <em>Multiplicity</em>}' attribute. | ||
32 | * <!-- begin-user-doc --> | ||
33 | * <!-- end-user-doc --> | ||
34 | * @see #getMultiplicity() | ||
35 | * @generated | ||
36 | * @ordered | ||
37 | */ | ||
38 | protected static final int MULTIPLICITY_EDEFAULT = 0; | ||
39 | |||
40 | /** | ||
41 | * The cached value of the '{@link #getMultiplicity() <em>Multiplicity</em>}' attribute. | ||
42 | * <!-- begin-user-doc --> | ||
43 | * <!-- end-user-doc --> | ||
44 | * @see #getMultiplicity() | ||
45 | * @generated | ||
46 | * @ordered | ||
47 | */ | ||
48 | protected int multiplicity = MULTIPLICITY_EDEFAULT; | ||
49 | |||
50 | /** | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @generated | ||
54 | */ | ||
55 | protected ExactMultiplicityImpl() | ||
56 | { | ||
57 | super(); | ||
58 | } | ||
59 | |||
60 | /** | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @generated | ||
64 | */ | ||
65 | @Override | ||
66 | protected EClass eStaticClass() | ||
67 | { | ||
68 | return SolverLanguagePackage.Literals.EXACT_MULTIPLICITY; | ||
69 | } | ||
70 | |||
71 | /** | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @generated | ||
75 | */ | ||
76 | @Override | ||
77 | public int getMultiplicity() | ||
78 | { | ||
79 | return multiplicity; | ||
80 | } | ||
81 | |||
82 | /** | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @generated | ||
86 | */ | ||
87 | @Override | ||
88 | public void setMultiplicity(int newMultiplicity) | ||
89 | { | ||
90 | int oldMultiplicity = multiplicity; | ||
91 | multiplicity = newMultiplicity; | ||
92 | if (eNotificationRequired()) | ||
93 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.EXACT_MULTIPLICITY__MULTIPLICITY, oldMultiplicity, multiplicity)); | ||
94 | } | ||
95 | |||
96 | /** | ||
97 | * <!-- begin-user-doc --> | ||
98 | * <!-- end-user-doc --> | ||
99 | * @generated | ||
100 | */ | ||
101 | @Override | ||
102 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
103 | { | ||
104 | switch (featureID) | ||
105 | { | ||
106 | case SolverLanguagePackage.EXACT_MULTIPLICITY__MULTIPLICITY: | ||
107 | return getMultiplicity(); | ||
108 | } | ||
109 | return super.eGet(featureID, resolve, coreType); | ||
110 | } | ||
111 | |||
112 | /** | ||
113 | * <!-- begin-user-doc --> | ||
114 | * <!-- end-user-doc --> | ||
115 | * @generated | ||
116 | */ | ||
117 | @Override | ||
118 | public void eSet(int featureID, Object newValue) | ||
119 | { | ||
120 | switch (featureID) | ||
121 | { | ||
122 | case SolverLanguagePackage.EXACT_MULTIPLICITY__MULTIPLICITY: | ||
123 | setMultiplicity((Integer)newValue); | ||
124 | return; | ||
125 | } | ||
126 | super.eSet(featureID, newValue); | ||
127 | } | ||
128 | |||
129 | /** | ||
130 | * <!-- begin-user-doc --> | ||
131 | * <!-- end-user-doc --> | ||
132 | * @generated | ||
133 | */ | ||
134 | @Override | ||
135 | public void eUnset(int featureID) | ||
136 | { | ||
137 | switch (featureID) | ||
138 | { | ||
139 | case SolverLanguagePackage.EXACT_MULTIPLICITY__MULTIPLICITY: | ||
140 | setMultiplicity(MULTIPLICITY_EDEFAULT); | ||
141 | return; | ||
142 | } | ||
143 | super.eUnset(featureID); | ||
144 | } | ||
145 | |||
146 | /** | ||
147 | * <!-- begin-user-doc --> | ||
148 | * <!-- end-user-doc --> | ||
149 | * @generated | ||
150 | */ | ||
151 | @Override | ||
152 | public boolean eIsSet(int featureID) | ||
153 | { | ||
154 | switch (featureID) | ||
155 | { | ||
156 | case SolverLanguagePackage.EXACT_MULTIPLICITY__MULTIPLICITY: | ||
157 | return multiplicity != MULTIPLICITY_EDEFAULT; | ||
158 | } | ||
159 | return super.eIsSet(featureID); | ||
160 | } | ||
161 | |||
162 | /** | ||
163 | * <!-- begin-user-doc --> | ||
164 | * <!-- end-user-doc --> | ||
165 | * @generated | ||
166 | */ | ||
167 | @Override | ||
168 | public String toString() | ||
169 | { | ||
170 | if (eIsProxy()) return super.toString(); | ||
171 | |||
172 | StringBuilder result = new StringBuilder(super.toString()); | ||
173 | result.append(" (multiplicity: "); | ||
174 | result.append(multiplicity); | ||
175 | result.append(')'); | ||
176 | return result.toString(); | ||
177 | } | ||
178 | |||
179 | } //ExactMultiplicityImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExactScopeDefinitionImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExactScopeDefinitionImpl.java deleted file mode 100644 index faf51904..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExactScopeDefinitionImpl.java +++ /dev/null | |||
@@ -1,179 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | |||
10 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
11 | |||
12 | import org.eclipse.viatra.solver.language.solverLanguage.ExactScopeDefinition; | ||
13 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
14 | |||
15 | /** | ||
16 | * <!-- begin-user-doc --> | ||
17 | * An implementation of the model object '<em><b>Exact Scope Definition</b></em>'. | ||
18 | * <!-- end-user-doc --> | ||
19 | * <p> | ||
20 | * The following features are implemented: | ||
21 | * </p> | ||
22 | * <ul> | ||
23 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ExactScopeDefinitionImpl#getExactScope <em>Exact Scope</em>}</li> | ||
24 | * </ul> | ||
25 | * | ||
26 | * @generated | ||
27 | */ | ||
28 | public class ExactScopeDefinitionImpl extends ScopeDefinitionImpl implements ExactScopeDefinition | ||
29 | { | ||
30 | /** | ||
31 | * The default value of the '{@link #getExactScope() <em>Exact Scope</em>}' attribute. | ||
32 | * <!-- begin-user-doc --> | ||
33 | * <!-- end-user-doc --> | ||
34 | * @see #getExactScope() | ||
35 | * @generated | ||
36 | * @ordered | ||
37 | */ | ||
38 | protected static final int EXACT_SCOPE_EDEFAULT = 0; | ||
39 | |||
40 | /** | ||
41 | * The cached value of the '{@link #getExactScope() <em>Exact Scope</em>}' attribute. | ||
42 | * <!-- begin-user-doc --> | ||
43 | * <!-- end-user-doc --> | ||
44 | * @see #getExactScope() | ||
45 | * @generated | ||
46 | * @ordered | ||
47 | */ | ||
48 | protected int exactScope = EXACT_SCOPE_EDEFAULT; | ||
49 | |||
50 | /** | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @generated | ||
54 | */ | ||
55 | protected ExactScopeDefinitionImpl() | ||
56 | { | ||
57 | super(); | ||
58 | } | ||
59 | |||
60 | /** | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @generated | ||
64 | */ | ||
65 | @Override | ||
66 | protected EClass eStaticClass() | ||
67 | { | ||
68 | return SolverLanguagePackage.Literals.EXACT_SCOPE_DEFINITION; | ||
69 | } | ||
70 | |||
71 | /** | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @generated | ||
75 | */ | ||
76 | @Override | ||
77 | public int getExactScope() | ||
78 | { | ||
79 | return exactScope; | ||
80 | } | ||
81 | |||
82 | /** | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @generated | ||
86 | */ | ||
87 | @Override | ||
88 | public void setExactScope(int newExactScope) | ||
89 | { | ||
90 | int oldExactScope = exactScope; | ||
91 | exactScope = newExactScope; | ||
92 | if (eNotificationRequired()) | ||
93 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.EXACT_SCOPE_DEFINITION__EXACT_SCOPE, oldExactScope, exactScope)); | ||
94 | } | ||
95 | |||
96 | /** | ||
97 | * <!-- begin-user-doc --> | ||
98 | * <!-- end-user-doc --> | ||
99 | * @generated | ||
100 | */ | ||
101 | @Override | ||
102 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
103 | { | ||
104 | switch (featureID) | ||
105 | { | ||
106 | case SolverLanguagePackage.EXACT_SCOPE_DEFINITION__EXACT_SCOPE: | ||
107 | return getExactScope(); | ||
108 | } | ||
109 | return super.eGet(featureID, resolve, coreType); | ||
110 | } | ||
111 | |||
112 | /** | ||
113 | * <!-- begin-user-doc --> | ||
114 | * <!-- end-user-doc --> | ||
115 | * @generated | ||
116 | */ | ||
117 | @Override | ||
118 | public void eSet(int featureID, Object newValue) | ||
119 | { | ||
120 | switch (featureID) | ||
121 | { | ||
122 | case SolverLanguagePackage.EXACT_SCOPE_DEFINITION__EXACT_SCOPE: | ||
123 | setExactScope((Integer)newValue); | ||
124 | return; | ||
125 | } | ||
126 | super.eSet(featureID, newValue); | ||
127 | } | ||
128 | |||
129 | /** | ||
130 | * <!-- begin-user-doc --> | ||
131 | * <!-- end-user-doc --> | ||
132 | * @generated | ||
133 | */ | ||
134 | @Override | ||
135 | public void eUnset(int featureID) | ||
136 | { | ||
137 | switch (featureID) | ||
138 | { | ||
139 | case SolverLanguagePackage.EXACT_SCOPE_DEFINITION__EXACT_SCOPE: | ||
140 | setExactScope(EXACT_SCOPE_EDEFAULT); | ||
141 | return; | ||
142 | } | ||
143 | super.eUnset(featureID); | ||
144 | } | ||
145 | |||
146 | /** | ||
147 | * <!-- begin-user-doc --> | ||
148 | * <!-- end-user-doc --> | ||
149 | * @generated | ||
150 | */ | ||
151 | @Override | ||
152 | public boolean eIsSet(int featureID) | ||
153 | { | ||
154 | switch (featureID) | ||
155 | { | ||
156 | case SolverLanguagePackage.EXACT_SCOPE_DEFINITION__EXACT_SCOPE: | ||
157 | return exactScope != EXACT_SCOPE_EDEFAULT; | ||
158 | } | ||
159 | return super.eIsSet(featureID); | ||
160 | } | ||
161 | |||
162 | /** | ||
163 | * <!-- begin-user-doc --> | ||
164 | * <!-- end-user-doc --> | ||
165 | * @generated | ||
166 | */ | ||
167 | @Override | ||
168 | public String toString() | ||
169 | { | ||
170 | if (eIsProxy()) return super.toString(); | ||
171 | |||
172 | StringBuilder result = new StringBuilder(super.toString()); | ||
173 | result.append(" (exactScope: "); | ||
174 | result.append(exactScope); | ||
175 | result.append(')'); | ||
176 | return result.toString(); | ||
177 | } | ||
178 | |||
179 | } //ExactScopeDefinitionImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExpressionArgumentImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExpressionArgumentImpl.java deleted file mode 100644 index f83c1cb3..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExpressionArgumentImpl.java +++ /dev/null | |||
@@ -1,196 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | import org.eclipse.emf.common.notify.NotificationChain; | ||
8 | |||
9 | import org.eclipse.emf.ecore.EClass; | ||
10 | import org.eclipse.emf.ecore.InternalEObject; | ||
11 | |||
12 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
13 | |||
14 | import org.eclipse.viatra.solver.language.solverLanguage.Expression; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.ExpressionArgument; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
17 | |||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * An implementation of the model object '<em><b>Expression Argument</b></em>'. | ||
21 | * <!-- end-user-doc --> | ||
22 | * <p> | ||
23 | * The following features are implemented: | ||
24 | * </p> | ||
25 | * <ul> | ||
26 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ExpressionArgumentImpl#getBody <em>Body</em>}</li> | ||
27 | * </ul> | ||
28 | * | ||
29 | * @generated | ||
30 | */ | ||
31 | public class ExpressionArgumentImpl extends ArgumentImpl implements ExpressionArgument | ||
32 | { | ||
33 | /** | ||
34 | * The cached value of the '{@link #getBody() <em>Body</em>}' containment reference. | ||
35 | * <!-- begin-user-doc --> | ||
36 | * <!-- end-user-doc --> | ||
37 | * @see #getBody() | ||
38 | * @generated | ||
39 | * @ordered | ||
40 | */ | ||
41 | protected Expression body; | ||
42 | |||
43 | /** | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @generated | ||
47 | */ | ||
48 | protected ExpressionArgumentImpl() | ||
49 | { | ||
50 | super(); | ||
51 | } | ||
52 | |||
53 | /** | ||
54 | * <!-- begin-user-doc --> | ||
55 | * <!-- end-user-doc --> | ||
56 | * @generated | ||
57 | */ | ||
58 | @Override | ||
59 | protected EClass eStaticClass() | ||
60 | { | ||
61 | return SolverLanguagePackage.Literals.EXPRESSION_ARGUMENT; | ||
62 | } | ||
63 | |||
64 | /** | ||
65 | * <!-- begin-user-doc --> | ||
66 | * <!-- end-user-doc --> | ||
67 | * @generated | ||
68 | */ | ||
69 | @Override | ||
70 | public Expression getBody() | ||
71 | { | ||
72 | return body; | ||
73 | } | ||
74 | |||
75 | /** | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <!-- end-user-doc --> | ||
78 | * @generated | ||
79 | */ | ||
80 | public NotificationChain basicSetBody(Expression newBody, NotificationChain msgs) | ||
81 | { | ||
82 | Expression oldBody = body; | ||
83 | body = newBody; | ||
84 | if (eNotificationRequired()) | ||
85 | { | ||
86 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.EXPRESSION_ARGUMENT__BODY, oldBody, newBody); | ||
87 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
88 | } | ||
89 | return msgs; | ||
90 | } | ||
91 | |||
92 | /** | ||
93 | * <!-- begin-user-doc --> | ||
94 | * <!-- end-user-doc --> | ||
95 | * @generated | ||
96 | */ | ||
97 | @Override | ||
98 | public void setBody(Expression newBody) | ||
99 | { | ||
100 | if (newBody != body) | ||
101 | { | ||
102 | NotificationChain msgs = null; | ||
103 | if (body != null) | ||
104 | msgs = ((InternalEObject)body).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.EXPRESSION_ARGUMENT__BODY, null, msgs); | ||
105 | if (newBody != null) | ||
106 | msgs = ((InternalEObject)newBody).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.EXPRESSION_ARGUMENT__BODY, null, msgs); | ||
107 | msgs = basicSetBody(newBody, msgs); | ||
108 | if (msgs != null) msgs.dispatch(); | ||
109 | } | ||
110 | else if (eNotificationRequired()) | ||
111 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.EXPRESSION_ARGUMENT__BODY, newBody, newBody)); | ||
112 | } | ||
113 | |||
114 | /** | ||
115 | * <!-- begin-user-doc --> | ||
116 | * <!-- end-user-doc --> | ||
117 | * @generated | ||
118 | */ | ||
119 | @Override | ||
120 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
121 | { | ||
122 | switch (featureID) | ||
123 | { | ||
124 | case SolverLanguagePackage.EXPRESSION_ARGUMENT__BODY: | ||
125 | return basicSetBody(null, msgs); | ||
126 | } | ||
127 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
128 | } | ||
129 | |||
130 | /** | ||
131 | * <!-- begin-user-doc --> | ||
132 | * <!-- end-user-doc --> | ||
133 | * @generated | ||
134 | */ | ||
135 | @Override | ||
136 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
137 | { | ||
138 | switch (featureID) | ||
139 | { | ||
140 | case SolverLanguagePackage.EXPRESSION_ARGUMENT__BODY: | ||
141 | return getBody(); | ||
142 | } | ||
143 | return super.eGet(featureID, resolve, coreType); | ||
144 | } | ||
145 | |||
146 | /** | ||
147 | * <!-- begin-user-doc --> | ||
148 | * <!-- end-user-doc --> | ||
149 | * @generated | ||
150 | */ | ||
151 | @Override | ||
152 | public void eSet(int featureID, Object newValue) | ||
153 | { | ||
154 | switch (featureID) | ||
155 | { | ||
156 | case SolverLanguagePackage.EXPRESSION_ARGUMENT__BODY: | ||
157 | setBody((Expression)newValue); | ||
158 | return; | ||
159 | } | ||
160 | super.eSet(featureID, newValue); | ||
161 | } | ||
162 | |||
163 | /** | ||
164 | * <!-- begin-user-doc --> | ||
165 | * <!-- end-user-doc --> | ||
166 | * @generated | ||
167 | */ | ||
168 | @Override | ||
169 | public void eUnset(int featureID) | ||
170 | { | ||
171 | switch (featureID) | ||
172 | { | ||
173 | case SolverLanguagePackage.EXPRESSION_ARGUMENT__BODY: | ||
174 | setBody((Expression)null); | ||
175 | return; | ||
176 | } | ||
177 | super.eUnset(featureID); | ||
178 | } | ||
179 | |||
180 | /** | ||
181 | * <!-- begin-user-doc --> | ||
182 | * <!-- end-user-doc --> | ||
183 | * @generated | ||
184 | */ | ||
185 | @Override | ||
186 | public boolean eIsSet(int featureID) | ||
187 | { | ||
188 | switch (featureID) | ||
189 | { | ||
190 | case SolverLanguagePackage.EXPRESSION_ARGUMENT__BODY: | ||
191 | return body != null; | ||
192 | } | ||
193 | return super.eIsSet(featureID); | ||
194 | } | ||
195 | |||
196 | } //ExpressionArgumentImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExpressionImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExpressionImpl.java deleted file mode 100644 index 585e3c41..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExpressionImpl.java +++ /dev/null | |||
@@ -1,41 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | |||
8 | import org.eclipse.viatra.solver.language.solverLanguage.Expression; | ||
9 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * An implementation of the model object '<em><b>Expression</b></em>'. | ||
14 | * <!-- end-user-doc --> | ||
15 | * | ||
16 | * @generated | ||
17 | */ | ||
18 | public class ExpressionImpl extends StatementImpl implements Expression | ||
19 | { | ||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * <!-- end-user-doc --> | ||
23 | * @generated | ||
24 | */ | ||
25 | protected ExpressionImpl() | ||
26 | { | ||
27 | super(); | ||
28 | } | ||
29 | |||
30 | /** | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @generated | ||
34 | */ | ||
35 | @Override | ||
36 | protected EClass eStaticClass() | ||
37 | { | ||
38 | return SolverLanguagePackage.Literals.EXPRESSION; | ||
39 | } | ||
40 | |||
41 | } //ExpressionImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExternMetricDefinitionImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExternMetricDefinitionImpl.java deleted file mode 100644 index e324c38a..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExternMetricDefinitionImpl.java +++ /dev/null | |||
@@ -1,270 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | import org.eclipse.emf.common.notify.NotificationChain; | ||
8 | |||
9 | import org.eclipse.emf.ecore.EClass; | ||
10 | import org.eclipse.emf.ecore.InternalEObject; | ||
11 | |||
12 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
13 | |||
14 | import org.eclipse.viatra.solver.language.solverLanguage.Call; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.ExternMetricDefinition; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.MetricType; | ||
17 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
18 | |||
19 | /** | ||
20 | * <!-- begin-user-doc --> | ||
21 | * An implementation of the model object '<em><b>Extern Metric Definition</b></em>'. | ||
22 | * <!-- end-user-doc --> | ||
23 | * <p> | ||
24 | * The following features are implemented: | ||
25 | * </p> | ||
26 | * <ul> | ||
27 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ExternMetricDefinitionImpl#getType <em>Type</em>}</li> | ||
28 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ExternMetricDefinitionImpl#getHead <em>Head</em>}</li> | ||
29 | * </ul> | ||
30 | * | ||
31 | * @generated | ||
32 | */ | ||
33 | public class ExternMetricDefinitionImpl extends StatementImpl implements ExternMetricDefinition | ||
34 | { | ||
35 | /** | ||
36 | * The default value of the '{@link #getType() <em>Type</em>}' attribute. | ||
37 | * <!-- begin-user-doc --> | ||
38 | * <!-- end-user-doc --> | ||
39 | * @see #getType() | ||
40 | * @generated | ||
41 | * @ordered | ||
42 | */ | ||
43 | protected static final MetricType TYPE_EDEFAULT = MetricType.INT; | ||
44 | |||
45 | /** | ||
46 | * The cached value of the '{@link #getType() <em>Type</em>}' attribute. | ||
47 | * <!-- begin-user-doc --> | ||
48 | * <!-- end-user-doc --> | ||
49 | * @see #getType() | ||
50 | * @generated | ||
51 | * @ordered | ||
52 | */ | ||
53 | protected MetricType type = TYPE_EDEFAULT; | ||
54 | |||
55 | /** | ||
56 | * The cached value of the '{@link #getHead() <em>Head</em>}' containment reference. | ||
57 | * <!-- begin-user-doc --> | ||
58 | * <!-- end-user-doc --> | ||
59 | * @see #getHead() | ||
60 | * @generated | ||
61 | * @ordered | ||
62 | */ | ||
63 | protected Call head; | ||
64 | |||
65 | /** | ||
66 | * <!-- begin-user-doc --> | ||
67 | * <!-- end-user-doc --> | ||
68 | * @generated | ||
69 | */ | ||
70 | protected ExternMetricDefinitionImpl() | ||
71 | { | ||
72 | super(); | ||
73 | } | ||
74 | |||
75 | /** | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <!-- end-user-doc --> | ||
78 | * @generated | ||
79 | */ | ||
80 | @Override | ||
81 | protected EClass eStaticClass() | ||
82 | { | ||
83 | return SolverLanguagePackage.Literals.EXTERN_METRIC_DEFINITION; | ||
84 | } | ||
85 | |||
86 | /** | ||
87 | * <!-- begin-user-doc --> | ||
88 | * <!-- end-user-doc --> | ||
89 | * @generated | ||
90 | */ | ||
91 | @Override | ||
92 | public MetricType getType() | ||
93 | { | ||
94 | return type; | ||
95 | } | ||
96 | |||
97 | /** | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @generated | ||
101 | */ | ||
102 | @Override | ||
103 | public void setType(MetricType newType) | ||
104 | { | ||
105 | MetricType oldType = type; | ||
106 | type = newType == null ? TYPE_EDEFAULT : newType; | ||
107 | if (eNotificationRequired()) | ||
108 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.EXTERN_METRIC_DEFINITION__TYPE, oldType, type)); | ||
109 | } | ||
110 | |||
111 | /** | ||
112 | * <!-- begin-user-doc --> | ||
113 | * <!-- end-user-doc --> | ||
114 | * @generated | ||
115 | */ | ||
116 | @Override | ||
117 | public Call getHead() | ||
118 | { | ||
119 | return head; | ||
120 | } | ||
121 | |||
122 | /** | ||
123 | * <!-- begin-user-doc --> | ||
124 | * <!-- end-user-doc --> | ||
125 | * @generated | ||
126 | */ | ||
127 | public NotificationChain basicSetHead(Call newHead, NotificationChain msgs) | ||
128 | { | ||
129 | Call oldHead = head; | ||
130 | head = newHead; | ||
131 | if (eNotificationRequired()) | ||
132 | { | ||
133 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.EXTERN_METRIC_DEFINITION__HEAD, oldHead, newHead); | ||
134 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
135 | } | ||
136 | return msgs; | ||
137 | } | ||
138 | |||
139 | /** | ||
140 | * <!-- begin-user-doc --> | ||
141 | * <!-- end-user-doc --> | ||
142 | * @generated | ||
143 | */ | ||
144 | @Override | ||
145 | public void setHead(Call newHead) | ||
146 | { | ||
147 | if (newHead != head) | ||
148 | { | ||
149 | NotificationChain msgs = null; | ||
150 | if (head != null) | ||
151 | msgs = ((InternalEObject)head).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.EXTERN_METRIC_DEFINITION__HEAD, null, msgs); | ||
152 | if (newHead != null) | ||
153 | msgs = ((InternalEObject)newHead).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.EXTERN_METRIC_DEFINITION__HEAD, null, msgs); | ||
154 | msgs = basicSetHead(newHead, msgs); | ||
155 | if (msgs != null) msgs.dispatch(); | ||
156 | } | ||
157 | else if (eNotificationRequired()) | ||
158 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.EXTERN_METRIC_DEFINITION__HEAD, newHead, newHead)); | ||
159 | } | ||
160 | |||
161 | /** | ||
162 | * <!-- begin-user-doc --> | ||
163 | * <!-- end-user-doc --> | ||
164 | * @generated | ||
165 | */ | ||
166 | @Override | ||
167 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
168 | { | ||
169 | switch (featureID) | ||
170 | { | ||
171 | case SolverLanguagePackage.EXTERN_METRIC_DEFINITION__HEAD: | ||
172 | return basicSetHead(null, msgs); | ||
173 | } | ||
174 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
175 | } | ||
176 | |||
177 | /** | ||
178 | * <!-- begin-user-doc --> | ||
179 | * <!-- end-user-doc --> | ||
180 | * @generated | ||
181 | */ | ||
182 | @Override | ||
183 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
184 | { | ||
185 | switch (featureID) | ||
186 | { | ||
187 | case SolverLanguagePackage.EXTERN_METRIC_DEFINITION__TYPE: | ||
188 | return getType(); | ||
189 | case SolverLanguagePackage.EXTERN_METRIC_DEFINITION__HEAD: | ||
190 | return getHead(); | ||
191 | } | ||
192 | return super.eGet(featureID, resolve, coreType); | ||
193 | } | ||
194 | |||
195 | /** | ||
196 | * <!-- begin-user-doc --> | ||
197 | * <!-- end-user-doc --> | ||
198 | * @generated | ||
199 | */ | ||
200 | @Override | ||
201 | public void eSet(int featureID, Object newValue) | ||
202 | { | ||
203 | switch (featureID) | ||
204 | { | ||
205 | case SolverLanguagePackage.EXTERN_METRIC_DEFINITION__TYPE: | ||
206 | setType((MetricType)newValue); | ||
207 | return; | ||
208 | case SolverLanguagePackage.EXTERN_METRIC_DEFINITION__HEAD: | ||
209 | setHead((Call)newValue); | ||
210 | return; | ||
211 | } | ||
212 | super.eSet(featureID, newValue); | ||
213 | } | ||
214 | |||
215 | /** | ||
216 | * <!-- begin-user-doc --> | ||
217 | * <!-- end-user-doc --> | ||
218 | * @generated | ||
219 | */ | ||
220 | @Override | ||
221 | public void eUnset(int featureID) | ||
222 | { | ||
223 | switch (featureID) | ||
224 | { | ||
225 | case SolverLanguagePackage.EXTERN_METRIC_DEFINITION__TYPE: | ||
226 | setType(TYPE_EDEFAULT); | ||
227 | return; | ||
228 | case SolverLanguagePackage.EXTERN_METRIC_DEFINITION__HEAD: | ||
229 | setHead((Call)null); | ||
230 | return; | ||
231 | } | ||
232 | super.eUnset(featureID); | ||
233 | } | ||
234 | |||
235 | /** | ||
236 | * <!-- begin-user-doc --> | ||
237 | * <!-- end-user-doc --> | ||
238 | * @generated | ||
239 | */ | ||
240 | @Override | ||
241 | public boolean eIsSet(int featureID) | ||
242 | { | ||
243 | switch (featureID) | ||
244 | { | ||
245 | case SolverLanguagePackage.EXTERN_METRIC_DEFINITION__TYPE: | ||
246 | return type != TYPE_EDEFAULT; | ||
247 | case SolverLanguagePackage.EXTERN_METRIC_DEFINITION__HEAD: | ||
248 | return head != null; | ||
249 | } | ||
250 | return super.eIsSet(featureID); | ||
251 | } | ||
252 | |||
253 | /** | ||
254 | * <!-- begin-user-doc --> | ||
255 | * <!-- end-user-doc --> | ||
256 | * @generated | ||
257 | */ | ||
258 | @Override | ||
259 | public String toString() | ||
260 | { | ||
261 | if (eIsProxy()) return super.toString(); | ||
262 | |||
263 | StringBuilder result = new StringBuilder(super.toString()); | ||
264 | result.append(" (type: "); | ||
265 | result.append(type); | ||
266 | result.append(')'); | ||
267 | return result.toString(); | ||
268 | } | ||
269 | |||
270 | } //ExternMetricDefinitionImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExternPredicateDefinitionImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExternPredicateDefinitionImpl.java deleted file mode 100644 index 0605cb0f..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExternPredicateDefinitionImpl.java +++ /dev/null | |||
@@ -1,196 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | import org.eclipse.emf.common.notify.NotificationChain; | ||
8 | |||
9 | import org.eclipse.emf.ecore.EClass; | ||
10 | import org.eclipse.emf.ecore.InternalEObject; | ||
11 | |||
12 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
13 | |||
14 | import org.eclipse.viatra.solver.language.solverLanguage.Call; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.ExternPredicateDefinition; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
17 | |||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * An implementation of the model object '<em><b>Extern Predicate Definition</b></em>'. | ||
21 | * <!-- end-user-doc --> | ||
22 | * <p> | ||
23 | * The following features are implemented: | ||
24 | * </p> | ||
25 | * <ul> | ||
26 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ExternPredicateDefinitionImpl#getHead <em>Head</em>}</li> | ||
27 | * </ul> | ||
28 | * | ||
29 | * @generated | ||
30 | */ | ||
31 | public class ExternPredicateDefinitionImpl extends StatementImpl implements ExternPredicateDefinition | ||
32 | { | ||
33 | /** | ||
34 | * The cached value of the '{@link #getHead() <em>Head</em>}' containment reference. | ||
35 | * <!-- begin-user-doc --> | ||
36 | * <!-- end-user-doc --> | ||
37 | * @see #getHead() | ||
38 | * @generated | ||
39 | * @ordered | ||
40 | */ | ||
41 | protected Call head; | ||
42 | |||
43 | /** | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @generated | ||
47 | */ | ||
48 | protected ExternPredicateDefinitionImpl() | ||
49 | { | ||
50 | super(); | ||
51 | } | ||
52 | |||
53 | /** | ||
54 | * <!-- begin-user-doc --> | ||
55 | * <!-- end-user-doc --> | ||
56 | * @generated | ||
57 | */ | ||
58 | @Override | ||
59 | protected EClass eStaticClass() | ||
60 | { | ||
61 | return SolverLanguagePackage.Literals.EXTERN_PREDICATE_DEFINITION; | ||
62 | } | ||
63 | |||
64 | /** | ||
65 | * <!-- begin-user-doc --> | ||
66 | * <!-- end-user-doc --> | ||
67 | * @generated | ||
68 | */ | ||
69 | @Override | ||
70 | public Call getHead() | ||
71 | { | ||
72 | return head; | ||
73 | } | ||
74 | |||
75 | /** | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <!-- end-user-doc --> | ||
78 | * @generated | ||
79 | */ | ||
80 | public NotificationChain basicSetHead(Call newHead, NotificationChain msgs) | ||
81 | { | ||
82 | Call oldHead = head; | ||
83 | head = newHead; | ||
84 | if (eNotificationRequired()) | ||
85 | { | ||
86 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.EXTERN_PREDICATE_DEFINITION__HEAD, oldHead, newHead); | ||
87 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
88 | } | ||
89 | return msgs; | ||
90 | } | ||
91 | |||
92 | /** | ||
93 | * <!-- begin-user-doc --> | ||
94 | * <!-- end-user-doc --> | ||
95 | * @generated | ||
96 | */ | ||
97 | @Override | ||
98 | public void setHead(Call newHead) | ||
99 | { | ||
100 | if (newHead != head) | ||
101 | { | ||
102 | NotificationChain msgs = null; | ||
103 | if (head != null) | ||
104 | msgs = ((InternalEObject)head).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.EXTERN_PREDICATE_DEFINITION__HEAD, null, msgs); | ||
105 | if (newHead != null) | ||
106 | msgs = ((InternalEObject)newHead).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.EXTERN_PREDICATE_DEFINITION__HEAD, null, msgs); | ||
107 | msgs = basicSetHead(newHead, msgs); | ||
108 | if (msgs != null) msgs.dispatch(); | ||
109 | } | ||
110 | else if (eNotificationRequired()) | ||
111 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.EXTERN_PREDICATE_DEFINITION__HEAD, newHead, newHead)); | ||
112 | } | ||
113 | |||
114 | /** | ||
115 | * <!-- begin-user-doc --> | ||
116 | * <!-- end-user-doc --> | ||
117 | * @generated | ||
118 | */ | ||
119 | @Override | ||
120 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
121 | { | ||
122 | switch (featureID) | ||
123 | { | ||
124 | case SolverLanguagePackage.EXTERN_PREDICATE_DEFINITION__HEAD: | ||
125 | return basicSetHead(null, msgs); | ||
126 | } | ||
127 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
128 | } | ||
129 | |||
130 | /** | ||
131 | * <!-- begin-user-doc --> | ||
132 | * <!-- end-user-doc --> | ||
133 | * @generated | ||
134 | */ | ||
135 | @Override | ||
136 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
137 | { | ||
138 | switch (featureID) | ||
139 | { | ||
140 | case SolverLanguagePackage.EXTERN_PREDICATE_DEFINITION__HEAD: | ||
141 | return getHead(); | ||
142 | } | ||
143 | return super.eGet(featureID, resolve, coreType); | ||
144 | } | ||
145 | |||
146 | /** | ||
147 | * <!-- begin-user-doc --> | ||
148 | * <!-- end-user-doc --> | ||
149 | * @generated | ||
150 | */ | ||
151 | @Override | ||
152 | public void eSet(int featureID, Object newValue) | ||
153 | { | ||
154 | switch (featureID) | ||
155 | { | ||
156 | case SolverLanguagePackage.EXTERN_PREDICATE_DEFINITION__HEAD: | ||
157 | setHead((Call)newValue); | ||
158 | return; | ||
159 | } | ||
160 | super.eSet(featureID, newValue); | ||
161 | } | ||
162 | |||
163 | /** | ||
164 | * <!-- begin-user-doc --> | ||
165 | * <!-- end-user-doc --> | ||
166 | * @generated | ||
167 | */ | ||
168 | @Override | ||
169 | public void eUnset(int featureID) | ||
170 | { | ||
171 | switch (featureID) | ||
172 | { | ||
173 | case SolverLanguagePackage.EXTERN_PREDICATE_DEFINITION__HEAD: | ||
174 | setHead((Call)null); | ||
175 | return; | ||
176 | } | ||
177 | super.eUnset(featureID); | ||
178 | } | ||
179 | |||
180 | /** | ||
181 | * <!-- begin-user-doc --> | ||
182 | * <!-- end-user-doc --> | ||
183 | * @generated | ||
184 | */ | ||
185 | @Override | ||
186 | public boolean eIsSet(int featureID) | ||
187 | { | ||
188 | switch (featureID) | ||
189 | { | ||
190 | case SolverLanguagePackage.EXTERN_PREDICATE_DEFINITION__HEAD: | ||
191 | return head != null; | ||
192 | } | ||
193 | return super.eIsSet(featureID); | ||
194 | } | ||
195 | |||
196 | } //ExternPredicateDefinitionImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/IfElseImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/IfElseImpl.java deleted file mode 100644 index 1b873568..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/IfElseImpl.java +++ /dev/null | |||
@@ -1,342 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | import org.eclipse.emf.common.notify.NotificationChain; | ||
8 | |||
9 | import org.eclipse.emf.ecore.EClass; | ||
10 | import org.eclipse.emf.ecore.InternalEObject; | ||
11 | |||
12 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
13 | |||
14 | import org.eclipse.viatra.solver.language.solverLanguage.Expression; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.IfElse; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
17 | |||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * An implementation of the model object '<em><b>If Else</b></em>'. | ||
21 | * <!-- end-user-doc --> | ||
22 | * <p> | ||
23 | * The following features are implemented: | ||
24 | * </p> | ||
25 | * <ul> | ||
26 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.IfElseImpl#getCondition <em>Condition</em>}</li> | ||
27 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.IfElseImpl#getThen <em>Then</em>}</li> | ||
28 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.IfElseImpl#getElse <em>Else</em>}</li> | ||
29 | * </ul> | ||
30 | * | ||
31 | * @generated | ||
32 | */ | ||
33 | public class IfElseImpl extends ExpressionImpl implements IfElse | ||
34 | { | ||
35 | /** | ||
36 | * The cached value of the '{@link #getCondition() <em>Condition</em>}' containment reference. | ||
37 | * <!-- begin-user-doc --> | ||
38 | * <!-- end-user-doc --> | ||
39 | * @see #getCondition() | ||
40 | * @generated | ||
41 | * @ordered | ||
42 | */ | ||
43 | protected Expression condition; | ||
44 | |||
45 | /** | ||
46 | * The cached value of the '{@link #getThen() <em>Then</em>}' containment reference. | ||
47 | * <!-- begin-user-doc --> | ||
48 | * <!-- end-user-doc --> | ||
49 | * @see #getThen() | ||
50 | * @generated | ||
51 | * @ordered | ||
52 | */ | ||
53 | protected Expression then; | ||
54 | |||
55 | /** | ||
56 | * The cached value of the '{@link #getElse() <em>Else</em>}' containment reference. | ||
57 | * <!-- begin-user-doc --> | ||
58 | * <!-- end-user-doc --> | ||
59 | * @see #getElse() | ||
60 | * @generated | ||
61 | * @ordered | ||
62 | */ | ||
63 | protected Expression else_; | ||
64 | |||
65 | /** | ||
66 | * <!-- begin-user-doc --> | ||
67 | * <!-- end-user-doc --> | ||
68 | * @generated | ||
69 | */ | ||
70 | protected IfElseImpl() | ||
71 | { | ||
72 | super(); | ||
73 | } | ||
74 | |||
75 | /** | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <!-- end-user-doc --> | ||
78 | * @generated | ||
79 | */ | ||
80 | @Override | ||
81 | protected EClass eStaticClass() | ||
82 | { | ||
83 | return SolverLanguagePackage.Literals.IF_ELSE; | ||
84 | } | ||
85 | |||
86 | /** | ||
87 | * <!-- begin-user-doc --> | ||
88 | * <!-- end-user-doc --> | ||
89 | * @generated | ||
90 | */ | ||
91 | @Override | ||
92 | public Expression getCondition() | ||
93 | { | ||
94 | return condition; | ||
95 | } | ||
96 | |||
97 | /** | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @generated | ||
101 | */ | ||
102 | public NotificationChain basicSetCondition(Expression newCondition, NotificationChain msgs) | ||
103 | { | ||
104 | Expression oldCondition = condition; | ||
105 | condition = newCondition; | ||
106 | if (eNotificationRequired()) | ||
107 | { | ||
108 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.IF_ELSE__CONDITION, oldCondition, newCondition); | ||
109 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
110 | } | ||
111 | return msgs; | ||
112 | } | ||
113 | |||
114 | /** | ||
115 | * <!-- begin-user-doc --> | ||
116 | * <!-- end-user-doc --> | ||
117 | * @generated | ||
118 | */ | ||
119 | @Override | ||
120 | public void setCondition(Expression newCondition) | ||
121 | { | ||
122 | if (newCondition != condition) | ||
123 | { | ||
124 | NotificationChain msgs = null; | ||
125 | if (condition != null) | ||
126 | msgs = ((InternalEObject)condition).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.IF_ELSE__CONDITION, null, msgs); | ||
127 | if (newCondition != null) | ||
128 | msgs = ((InternalEObject)newCondition).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.IF_ELSE__CONDITION, null, msgs); | ||
129 | msgs = basicSetCondition(newCondition, msgs); | ||
130 | if (msgs != null) msgs.dispatch(); | ||
131 | } | ||
132 | else if (eNotificationRequired()) | ||
133 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.IF_ELSE__CONDITION, newCondition, newCondition)); | ||
134 | } | ||
135 | |||
136 | /** | ||
137 | * <!-- begin-user-doc --> | ||
138 | * <!-- end-user-doc --> | ||
139 | * @generated | ||
140 | */ | ||
141 | @Override | ||
142 | public Expression getThen() | ||
143 | { | ||
144 | return then; | ||
145 | } | ||
146 | |||
147 | /** | ||
148 | * <!-- begin-user-doc --> | ||
149 | * <!-- end-user-doc --> | ||
150 | * @generated | ||
151 | */ | ||
152 | public NotificationChain basicSetThen(Expression newThen, NotificationChain msgs) | ||
153 | { | ||
154 | Expression oldThen = then; | ||
155 | then = newThen; | ||
156 | if (eNotificationRequired()) | ||
157 | { | ||
158 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.IF_ELSE__THEN, oldThen, newThen); | ||
159 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
160 | } | ||
161 | return msgs; | ||
162 | } | ||
163 | |||
164 | /** | ||
165 | * <!-- begin-user-doc --> | ||
166 | * <!-- end-user-doc --> | ||
167 | * @generated | ||
168 | */ | ||
169 | @Override | ||
170 | public void setThen(Expression newThen) | ||
171 | { | ||
172 | if (newThen != then) | ||
173 | { | ||
174 | NotificationChain msgs = null; | ||
175 | if (then != null) | ||
176 | msgs = ((InternalEObject)then).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.IF_ELSE__THEN, null, msgs); | ||
177 | if (newThen != null) | ||
178 | msgs = ((InternalEObject)newThen).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.IF_ELSE__THEN, null, msgs); | ||
179 | msgs = basicSetThen(newThen, msgs); | ||
180 | if (msgs != null) msgs.dispatch(); | ||
181 | } | ||
182 | else if (eNotificationRequired()) | ||
183 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.IF_ELSE__THEN, newThen, newThen)); | ||
184 | } | ||
185 | |||
186 | /** | ||
187 | * <!-- begin-user-doc --> | ||
188 | * <!-- end-user-doc --> | ||
189 | * @generated | ||
190 | */ | ||
191 | @Override | ||
192 | public Expression getElse() | ||
193 | { | ||
194 | return else_; | ||
195 | } | ||
196 | |||
197 | /** | ||
198 | * <!-- begin-user-doc --> | ||
199 | * <!-- end-user-doc --> | ||
200 | * @generated | ||
201 | */ | ||
202 | public NotificationChain basicSetElse(Expression newElse, NotificationChain msgs) | ||
203 | { | ||
204 | Expression oldElse = else_; | ||
205 | else_ = newElse; | ||
206 | if (eNotificationRequired()) | ||
207 | { | ||
208 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.IF_ELSE__ELSE, oldElse, newElse); | ||
209 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
210 | } | ||
211 | return msgs; | ||
212 | } | ||
213 | |||
214 | /** | ||
215 | * <!-- begin-user-doc --> | ||
216 | * <!-- end-user-doc --> | ||
217 | * @generated | ||
218 | */ | ||
219 | @Override | ||
220 | public void setElse(Expression newElse) | ||
221 | { | ||
222 | if (newElse != else_) | ||
223 | { | ||
224 | NotificationChain msgs = null; | ||
225 | if (else_ != null) | ||
226 | msgs = ((InternalEObject)else_).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.IF_ELSE__ELSE, null, msgs); | ||
227 | if (newElse != null) | ||
228 | msgs = ((InternalEObject)newElse).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.IF_ELSE__ELSE, null, msgs); | ||
229 | msgs = basicSetElse(newElse, msgs); | ||
230 | if (msgs != null) msgs.dispatch(); | ||
231 | } | ||
232 | else if (eNotificationRequired()) | ||
233 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.IF_ELSE__ELSE, newElse, newElse)); | ||
234 | } | ||
235 | |||
236 | /** | ||
237 | * <!-- begin-user-doc --> | ||
238 | * <!-- end-user-doc --> | ||
239 | * @generated | ||
240 | */ | ||
241 | @Override | ||
242 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
243 | { | ||
244 | switch (featureID) | ||
245 | { | ||
246 | case SolverLanguagePackage.IF_ELSE__CONDITION: | ||
247 | return basicSetCondition(null, msgs); | ||
248 | case SolverLanguagePackage.IF_ELSE__THEN: | ||
249 | return basicSetThen(null, msgs); | ||
250 | case SolverLanguagePackage.IF_ELSE__ELSE: | ||
251 | return basicSetElse(null, msgs); | ||
252 | } | ||
253 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
254 | } | ||
255 | |||
256 | /** | ||
257 | * <!-- begin-user-doc --> | ||
258 | * <!-- end-user-doc --> | ||
259 | * @generated | ||
260 | */ | ||
261 | @Override | ||
262 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
263 | { | ||
264 | switch (featureID) | ||
265 | { | ||
266 | case SolverLanguagePackage.IF_ELSE__CONDITION: | ||
267 | return getCondition(); | ||
268 | case SolverLanguagePackage.IF_ELSE__THEN: | ||
269 | return getThen(); | ||
270 | case SolverLanguagePackage.IF_ELSE__ELSE: | ||
271 | return getElse(); | ||
272 | } | ||
273 | return super.eGet(featureID, resolve, coreType); | ||
274 | } | ||
275 | |||
276 | /** | ||
277 | * <!-- begin-user-doc --> | ||
278 | * <!-- end-user-doc --> | ||
279 | * @generated | ||
280 | */ | ||
281 | @Override | ||
282 | public void eSet(int featureID, Object newValue) | ||
283 | { | ||
284 | switch (featureID) | ||
285 | { | ||
286 | case SolverLanguagePackage.IF_ELSE__CONDITION: | ||
287 | setCondition((Expression)newValue); | ||
288 | return; | ||
289 | case SolverLanguagePackage.IF_ELSE__THEN: | ||
290 | setThen((Expression)newValue); | ||
291 | return; | ||
292 | case SolverLanguagePackage.IF_ELSE__ELSE: | ||
293 | setElse((Expression)newValue); | ||
294 | return; | ||
295 | } | ||
296 | super.eSet(featureID, newValue); | ||
297 | } | ||
298 | |||
299 | /** | ||
300 | * <!-- begin-user-doc --> | ||
301 | * <!-- end-user-doc --> | ||
302 | * @generated | ||
303 | */ | ||
304 | @Override | ||
305 | public void eUnset(int featureID) | ||
306 | { | ||
307 | switch (featureID) | ||
308 | { | ||
309 | case SolverLanguagePackage.IF_ELSE__CONDITION: | ||
310 | setCondition((Expression)null); | ||
311 | return; | ||
312 | case SolverLanguagePackage.IF_ELSE__THEN: | ||
313 | setThen((Expression)null); | ||
314 | return; | ||
315 | case SolverLanguagePackage.IF_ELSE__ELSE: | ||
316 | setElse((Expression)null); | ||
317 | return; | ||
318 | } | ||
319 | super.eUnset(featureID); | ||
320 | } | ||
321 | |||
322 | /** | ||
323 | * <!-- begin-user-doc --> | ||
324 | * <!-- end-user-doc --> | ||
325 | * @generated | ||
326 | */ | ||
327 | @Override | ||
328 | public boolean eIsSet(int featureID) | ||
329 | { | ||
330 | switch (featureID) | ||
331 | { | ||
332 | case SolverLanguagePackage.IF_ELSE__CONDITION: | ||
333 | return condition != null; | ||
334 | case SolverLanguagePackage.IF_ELSE__THEN: | ||
335 | return then != null; | ||
336 | case SolverLanguagePackage.IF_ELSE__ELSE: | ||
337 | return else_ != null; | ||
338 | } | ||
339 | return super.eIsSet(featureID); | ||
340 | } | ||
341 | |||
342 | } //IfElseImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/InfinityLiteralImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/InfinityLiteralImpl.java deleted file mode 100644 index e796f5a0..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/InfinityLiteralImpl.java +++ /dev/null | |||
@@ -1,41 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | |||
8 | import org.eclipse.viatra.solver.language.solverLanguage.InfinityLiteral; | ||
9 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * An implementation of the model object '<em><b>Infinity Literal</b></em>'. | ||
14 | * <!-- end-user-doc --> | ||
15 | * | ||
16 | * @generated | ||
17 | */ | ||
18 | public class InfinityLiteralImpl extends LiteralImpl implements InfinityLiteral | ||
19 | { | ||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * <!-- end-user-doc --> | ||
23 | * @generated | ||
24 | */ | ||
25 | protected InfinityLiteralImpl() | ||
26 | { | ||
27 | super(); | ||
28 | } | ||
29 | |||
30 | /** | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @generated | ||
34 | */ | ||
35 | @Override | ||
36 | protected EClass eStaticClass() | ||
37 | { | ||
38 | return SolverLanguagePackage.Literals.INFINITY_LITERAL; | ||
39 | } | ||
40 | |||
41 | } //InfinityLiteralImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/IntervalImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/IntervalImpl.java deleted file mode 100644 index e6107ef8..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/IntervalImpl.java +++ /dev/null | |||
@@ -1,269 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | import org.eclipse.emf.common.notify.NotificationChain; | ||
8 | |||
9 | import org.eclipse.emf.ecore.EClass; | ||
10 | import org.eclipse.emf.ecore.InternalEObject; | ||
11 | |||
12 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
13 | |||
14 | import org.eclipse.viatra.solver.language.solverLanguage.Expression; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.Interval; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
17 | |||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * An implementation of the model object '<em><b>Interval</b></em>'. | ||
21 | * <!-- end-user-doc --> | ||
22 | * <p> | ||
23 | * The following features are implemented: | ||
24 | * </p> | ||
25 | * <ul> | ||
26 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.IntervalImpl#getLowerBound <em>Lower Bound</em>}</li> | ||
27 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.IntervalImpl#getUpperBound <em>Upper Bound</em>}</li> | ||
28 | * </ul> | ||
29 | * | ||
30 | * @generated | ||
31 | */ | ||
32 | public class IntervalImpl extends ExpressionImpl implements Interval | ||
33 | { | ||
34 | /** | ||
35 | * The cached value of the '{@link #getLowerBound() <em>Lower Bound</em>}' containment reference. | ||
36 | * <!-- begin-user-doc --> | ||
37 | * <!-- end-user-doc --> | ||
38 | * @see #getLowerBound() | ||
39 | * @generated | ||
40 | * @ordered | ||
41 | */ | ||
42 | protected Expression lowerBound; | ||
43 | |||
44 | /** | ||
45 | * The cached value of the '{@link #getUpperBound() <em>Upper Bound</em>}' containment reference. | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @see #getUpperBound() | ||
49 | * @generated | ||
50 | * @ordered | ||
51 | */ | ||
52 | protected Expression upperBound; | ||
53 | |||
54 | /** | ||
55 | * <!-- begin-user-doc --> | ||
56 | * <!-- end-user-doc --> | ||
57 | * @generated | ||
58 | */ | ||
59 | protected IntervalImpl() | ||
60 | { | ||
61 | super(); | ||
62 | } | ||
63 | |||
64 | /** | ||
65 | * <!-- begin-user-doc --> | ||
66 | * <!-- end-user-doc --> | ||
67 | * @generated | ||
68 | */ | ||
69 | @Override | ||
70 | protected EClass eStaticClass() | ||
71 | { | ||
72 | return SolverLanguagePackage.Literals.INTERVAL; | ||
73 | } | ||
74 | |||
75 | /** | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <!-- end-user-doc --> | ||
78 | * @generated | ||
79 | */ | ||
80 | @Override | ||
81 | public Expression getLowerBound() | ||
82 | { | ||
83 | return lowerBound; | ||
84 | } | ||
85 | |||
86 | /** | ||
87 | * <!-- begin-user-doc --> | ||
88 | * <!-- end-user-doc --> | ||
89 | * @generated | ||
90 | */ | ||
91 | public NotificationChain basicSetLowerBound(Expression newLowerBound, NotificationChain msgs) | ||
92 | { | ||
93 | Expression oldLowerBound = lowerBound; | ||
94 | lowerBound = newLowerBound; | ||
95 | if (eNotificationRequired()) | ||
96 | { | ||
97 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.INTERVAL__LOWER_BOUND, oldLowerBound, newLowerBound); | ||
98 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
99 | } | ||
100 | return msgs; | ||
101 | } | ||
102 | |||
103 | /** | ||
104 | * <!-- begin-user-doc --> | ||
105 | * <!-- end-user-doc --> | ||
106 | * @generated | ||
107 | */ | ||
108 | @Override | ||
109 | public void setLowerBound(Expression newLowerBound) | ||
110 | { | ||
111 | if (newLowerBound != lowerBound) | ||
112 | { | ||
113 | NotificationChain msgs = null; | ||
114 | if (lowerBound != null) | ||
115 | msgs = ((InternalEObject)lowerBound).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.INTERVAL__LOWER_BOUND, null, msgs); | ||
116 | if (newLowerBound != null) | ||
117 | msgs = ((InternalEObject)newLowerBound).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.INTERVAL__LOWER_BOUND, null, msgs); | ||
118 | msgs = basicSetLowerBound(newLowerBound, msgs); | ||
119 | if (msgs != null) msgs.dispatch(); | ||
120 | } | ||
121 | else if (eNotificationRequired()) | ||
122 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.INTERVAL__LOWER_BOUND, newLowerBound, newLowerBound)); | ||
123 | } | ||
124 | |||
125 | /** | ||
126 | * <!-- begin-user-doc --> | ||
127 | * <!-- end-user-doc --> | ||
128 | * @generated | ||
129 | */ | ||
130 | @Override | ||
131 | public Expression getUpperBound() | ||
132 | { | ||
133 | return upperBound; | ||
134 | } | ||
135 | |||
136 | /** | ||
137 | * <!-- begin-user-doc --> | ||
138 | * <!-- end-user-doc --> | ||
139 | * @generated | ||
140 | */ | ||
141 | public NotificationChain basicSetUpperBound(Expression newUpperBound, NotificationChain msgs) | ||
142 | { | ||
143 | Expression oldUpperBound = upperBound; | ||
144 | upperBound = newUpperBound; | ||
145 | if (eNotificationRequired()) | ||
146 | { | ||
147 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.INTERVAL__UPPER_BOUND, oldUpperBound, newUpperBound); | ||
148 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
149 | } | ||
150 | return msgs; | ||
151 | } | ||
152 | |||
153 | /** | ||
154 | * <!-- begin-user-doc --> | ||
155 | * <!-- end-user-doc --> | ||
156 | * @generated | ||
157 | */ | ||
158 | @Override | ||
159 | public void setUpperBound(Expression newUpperBound) | ||
160 | { | ||
161 | if (newUpperBound != upperBound) | ||
162 | { | ||
163 | NotificationChain msgs = null; | ||
164 | if (upperBound != null) | ||
165 | msgs = ((InternalEObject)upperBound).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.INTERVAL__UPPER_BOUND, null, msgs); | ||
166 | if (newUpperBound != null) | ||
167 | msgs = ((InternalEObject)newUpperBound).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.INTERVAL__UPPER_BOUND, null, msgs); | ||
168 | msgs = basicSetUpperBound(newUpperBound, msgs); | ||
169 | if (msgs != null) msgs.dispatch(); | ||
170 | } | ||
171 | else if (eNotificationRequired()) | ||
172 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.INTERVAL__UPPER_BOUND, newUpperBound, newUpperBound)); | ||
173 | } | ||
174 | |||
175 | /** | ||
176 | * <!-- begin-user-doc --> | ||
177 | * <!-- end-user-doc --> | ||
178 | * @generated | ||
179 | */ | ||
180 | @Override | ||
181 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
182 | { | ||
183 | switch (featureID) | ||
184 | { | ||
185 | case SolverLanguagePackage.INTERVAL__LOWER_BOUND: | ||
186 | return basicSetLowerBound(null, msgs); | ||
187 | case SolverLanguagePackage.INTERVAL__UPPER_BOUND: | ||
188 | return basicSetUpperBound(null, msgs); | ||
189 | } | ||
190 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
191 | } | ||
192 | |||
193 | /** | ||
194 | * <!-- begin-user-doc --> | ||
195 | * <!-- end-user-doc --> | ||
196 | * @generated | ||
197 | */ | ||
198 | @Override | ||
199 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
200 | { | ||
201 | switch (featureID) | ||
202 | { | ||
203 | case SolverLanguagePackage.INTERVAL__LOWER_BOUND: | ||
204 | return getLowerBound(); | ||
205 | case SolverLanguagePackage.INTERVAL__UPPER_BOUND: | ||
206 | return getUpperBound(); | ||
207 | } | ||
208 | return super.eGet(featureID, resolve, coreType); | ||
209 | } | ||
210 | |||
211 | /** | ||
212 | * <!-- begin-user-doc --> | ||
213 | * <!-- end-user-doc --> | ||
214 | * @generated | ||
215 | */ | ||
216 | @Override | ||
217 | public void eSet(int featureID, Object newValue) | ||
218 | { | ||
219 | switch (featureID) | ||
220 | { | ||
221 | case SolverLanguagePackage.INTERVAL__LOWER_BOUND: | ||
222 | setLowerBound((Expression)newValue); | ||
223 | return; | ||
224 | case SolverLanguagePackage.INTERVAL__UPPER_BOUND: | ||
225 | setUpperBound((Expression)newValue); | ||
226 | return; | ||
227 | } | ||
228 | super.eSet(featureID, newValue); | ||
229 | } | ||
230 | |||
231 | /** | ||
232 | * <!-- begin-user-doc --> | ||
233 | * <!-- end-user-doc --> | ||
234 | * @generated | ||
235 | */ | ||
236 | @Override | ||
237 | public void eUnset(int featureID) | ||
238 | { | ||
239 | switch (featureID) | ||
240 | { | ||
241 | case SolverLanguagePackage.INTERVAL__LOWER_BOUND: | ||
242 | setLowerBound((Expression)null); | ||
243 | return; | ||
244 | case SolverLanguagePackage.INTERVAL__UPPER_BOUND: | ||
245 | setUpperBound((Expression)null); | ||
246 | return; | ||
247 | } | ||
248 | super.eUnset(featureID); | ||
249 | } | ||
250 | |||
251 | /** | ||
252 | * <!-- begin-user-doc --> | ||
253 | * <!-- end-user-doc --> | ||
254 | * @generated | ||
255 | */ | ||
256 | @Override | ||
257 | public boolean eIsSet(int featureID) | ||
258 | { | ||
259 | switch (featureID) | ||
260 | { | ||
261 | case SolverLanguagePackage.INTERVAL__LOWER_BOUND: | ||
262 | return lowerBound != null; | ||
263 | case SolverLanguagePackage.INTERVAL__UPPER_BOUND: | ||
264 | return upperBound != null; | ||
265 | } | ||
266 | return super.eIsSet(featureID); | ||
267 | } | ||
268 | |||
269 | } //IntervalImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/LiteralImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/LiteralImpl.java deleted file mode 100644 index 2983566c..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/LiteralImpl.java +++ /dev/null | |||
@@ -1,41 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | |||
8 | import org.eclipse.viatra.solver.language.solverLanguage.Literal; | ||
9 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * An implementation of the model object '<em><b>Literal</b></em>'. | ||
14 | * <!-- end-user-doc --> | ||
15 | * | ||
16 | * @generated | ||
17 | */ | ||
18 | public class LiteralImpl extends ExpressionImpl implements Literal | ||
19 | { | ||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * <!-- end-user-doc --> | ||
23 | * @generated | ||
24 | */ | ||
25 | protected LiteralImpl() | ||
26 | { | ||
27 | super(); | ||
28 | } | ||
29 | |||
30 | /** | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @generated | ||
34 | */ | ||
35 | @Override | ||
36 | protected EClass eStaticClass() | ||
37 | { | ||
38 | return SolverLanguagePackage.Literals.LITERAL; | ||
39 | } | ||
40 | |||
41 | } //LiteralImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/LogicLiteralImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/LogicLiteralImpl.java deleted file mode 100644 index 2bc27a20..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/LogicLiteralImpl.java +++ /dev/null | |||
@@ -1,180 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | |||
10 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
11 | |||
12 | import org.eclipse.viatra.solver.language.solverLanguage.LogicLiteral; | ||
13 | import org.eclipse.viatra.solver.language.solverLanguage.LogicValue; | ||
14 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
15 | |||
16 | /** | ||
17 | * <!-- begin-user-doc --> | ||
18 | * An implementation of the model object '<em><b>Logic Literal</b></em>'. | ||
19 | * <!-- end-user-doc --> | ||
20 | * <p> | ||
21 | * The following features are implemented: | ||
22 | * </p> | ||
23 | * <ul> | ||
24 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.LogicLiteralImpl#getValue <em>Value</em>}</li> | ||
25 | * </ul> | ||
26 | * | ||
27 | * @generated | ||
28 | */ | ||
29 | public class LogicLiteralImpl extends LiteralImpl implements LogicLiteral | ||
30 | { | ||
31 | /** | ||
32 | * The default value of the '{@link #getValue() <em>Value</em>}' attribute. | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @see #getValue() | ||
36 | * @generated | ||
37 | * @ordered | ||
38 | */ | ||
39 | protected static final LogicValue VALUE_EDEFAULT = LogicValue.TRUE; | ||
40 | |||
41 | /** | ||
42 | * The cached value of the '{@link #getValue() <em>Value</em>}' attribute. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @see #getValue() | ||
46 | * @generated | ||
47 | * @ordered | ||
48 | */ | ||
49 | protected LogicValue value = VALUE_EDEFAULT; | ||
50 | |||
51 | /** | ||
52 | * <!-- begin-user-doc --> | ||
53 | * <!-- end-user-doc --> | ||
54 | * @generated | ||
55 | */ | ||
56 | protected LogicLiteralImpl() | ||
57 | { | ||
58 | super(); | ||
59 | } | ||
60 | |||
61 | /** | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @generated | ||
65 | */ | ||
66 | @Override | ||
67 | protected EClass eStaticClass() | ||
68 | { | ||
69 | return SolverLanguagePackage.Literals.LOGIC_LITERAL; | ||
70 | } | ||
71 | |||
72 | /** | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @generated | ||
76 | */ | ||
77 | @Override | ||
78 | public LogicValue getValue() | ||
79 | { | ||
80 | return value; | ||
81 | } | ||
82 | |||
83 | /** | ||
84 | * <!-- begin-user-doc --> | ||
85 | * <!-- end-user-doc --> | ||
86 | * @generated | ||
87 | */ | ||
88 | @Override | ||
89 | public void setValue(LogicValue newValue) | ||
90 | { | ||
91 | LogicValue oldValue = value; | ||
92 | value = newValue == null ? VALUE_EDEFAULT : newValue; | ||
93 | if (eNotificationRequired()) | ||
94 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.LOGIC_LITERAL__VALUE, oldValue, value)); | ||
95 | } | ||
96 | |||
97 | /** | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @generated | ||
101 | */ | ||
102 | @Override | ||
103 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
104 | { | ||
105 | switch (featureID) | ||
106 | { | ||
107 | case SolverLanguagePackage.LOGIC_LITERAL__VALUE: | ||
108 | return getValue(); | ||
109 | } | ||
110 | return super.eGet(featureID, resolve, coreType); | ||
111 | } | ||
112 | |||
113 | /** | ||
114 | * <!-- begin-user-doc --> | ||
115 | * <!-- end-user-doc --> | ||
116 | * @generated | ||
117 | */ | ||
118 | @Override | ||
119 | public void eSet(int featureID, Object newValue) | ||
120 | { | ||
121 | switch (featureID) | ||
122 | { | ||
123 | case SolverLanguagePackage.LOGIC_LITERAL__VALUE: | ||
124 | setValue((LogicValue)newValue); | ||
125 | return; | ||
126 | } | ||
127 | super.eSet(featureID, newValue); | ||
128 | } | ||
129 | |||
130 | /** | ||
131 | * <!-- begin-user-doc --> | ||
132 | * <!-- end-user-doc --> | ||
133 | * @generated | ||
134 | */ | ||
135 | @Override | ||
136 | public void eUnset(int featureID) | ||
137 | { | ||
138 | switch (featureID) | ||
139 | { | ||
140 | case SolverLanguagePackage.LOGIC_LITERAL__VALUE: | ||
141 | setValue(VALUE_EDEFAULT); | ||
142 | return; | ||
143 | } | ||
144 | super.eUnset(featureID); | ||
145 | } | ||
146 | |||
147 | /** | ||
148 | * <!-- begin-user-doc --> | ||
149 | * <!-- end-user-doc --> | ||
150 | * @generated | ||
151 | */ | ||
152 | @Override | ||
153 | public boolean eIsSet(int featureID) | ||
154 | { | ||
155 | switch (featureID) | ||
156 | { | ||
157 | case SolverLanguagePackage.LOGIC_LITERAL__VALUE: | ||
158 | return value != VALUE_EDEFAULT; | ||
159 | } | ||
160 | return super.eIsSet(featureID); | ||
161 | } | ||
162 | |||
163 | /** | ||
164 | * <!-- begin-user-doc --> | ||
165 | * <!-- end-user-doc --> | ||
166 | * @generated | ||
167 | */ | ||
168 | @Override | ||
169 | public String toString() | ||
170 | { | ||
171 | if (eIsProxy()) return super.toString(); | ||
172 | |||
173 | StringBuilder result = new StringBuilder(super.toString()); | ||
174 | result.append(" (value: "); | ||
175 | result.append(value); | ||
176 | result.append(')'); | ||
177 | return result.toString(); | ||
178 | } | ||
179 | |||
180 | } //LogicLiteralImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/LowerBoundedScopeDefinitionImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/LowerBoundedScopeDefinitionImpl.java deleted file mode 100644 index 5eb671f3..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/LowerBoundedScopeDefinitionImpl.java +++ /dev/null | |||
@@ -1,179 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | |||
10 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
11 | |||
12 | import org.eclipse.viatra.solver.language.solverLanguage.LowerBoundedScopeDefinition; | ||
13 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
14 | |||
15 | /** | ||
16 | * <!-- begin-user-doc --> | ||
17 | * An implementation of the model object '<em><b>Lower Bounded Scope Definition</b></em>'. | ||
18 | * <!-- end-user-doc --> | ||
19 | * <p> | ||
20 | * The following features are implemented: | ||
21 | * </p> | ||
22 | * <ul> | ||
23 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.LowerBoundedScopeDefinitionImpl#getLowerBound <em>Lower Bound</em>}</li> | ||
24 | * </ul> | ||
25 | * | ||
26 | * @generated | ||
27 | */ | ||
28 | public class LowerBoundedScopeDefinitionImpl extends ScopeDefinitionImpl implements LowerBoundedScopeDefinition | ||
29 | { | ||
30 | /** | ||
31 | * The default value of the '{@link #getLowerBound() <em>Lower Bound</em>}' attribute. | ||
32 | * <!-- begin-user-doc --> | ||
33 | * <!-- end-user-doc --> | ||
34 | * @see #getLowerBound() | ||
35 | * @generated | ||
36 | * @ordered | ||
37 | */ | ||
38 | protected static final int LOWER_BOUND_EDEFAULT = 0; | ||
39 | |||
40 | /** | ||
41 | * The cached value of the '{@link #getLowerBound() <em>Lower Bound</em>}' attribute. | ||
42 | * <!-- begin-user-doc --> | ||
43 | * <!-- end-user-doc --> | ||
44 | * @see #getLowerBound() | ||
45 | * @generated | ||
46 | * @ordered | ||
47 | */ | ||
48 | protected int lowerBound = LOWER_BOUND_EDEFAULT; | ||
49 | |||
50 | /** | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @generated | ||
54 | */ | ||
55 | protected LowerBoundedScopeDefinitionImpl() | ||
56 | { | ||
57 | super(); | ||
58 | } | ||
59 | |||
60 | /** | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @generated | ||
64 | */ | ||
65 | @Override | ||
66 | protected EClass eStaticClass() | ||
67 | { | ||
68 | return SolverLanguagePackage.Literals.LOWER_BOUNDED_SCOPE_DEFINITION; | ||
69 | } | ||
70 | |||
71 | /** | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @generated | ||
75 | */ | ||
76 | @Override | ||
77 | public int getLowerBound() | ||
78 | { | ||
79 | return lowerBound; | ||
80 | } | ||
81 | |||
82 | /** | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @generated | ||
86 | */ | ||
87 | @Override | ||
88 | public void setLowerBound(int newLowerBound) | ||
89 | { | ||
90 | int oldLowerBound = lowerBound; | ||
91 | lowerBound = newLowerBound; | ||
92 | if (eNotificationRequired()) | ||
93 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.LOWER_BOUNDED_SCOPE_DEFINITION__LOWER_BOUND, oldLowerBound, lowerBound)); | ||
94 | } | ||
95 | |||
96 | /** | ||
97 | * <!-- begin-user-doc --> | ||
98 | * <!-- end-user-doc --> | ||
99 | * @generated | ||
100 | */ | ||
101 | @Override | ||
102 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
103 | { | ||
104 | switch (featureID) | ||
105 | { | ||
106 | case SolverLanguagePackage.LOWER_BOUNDED_SCOPE_DEFINITION__LOWER_BOUND: | ||
107 | return getLowerBound(); | ||
108 | } | ||
109 | return super.eGet(featureID, resolve, coreType); | ||
110 | } | ||
111 | |||
112 | /** | ||
113 | * <!-- begin-user-doc --> | ||
114 | * <!-- end-user-doc --> | ||
115 | * @generated | ||
116 | */ | ||
117 | @Override | ||
118 | public void eSet(int featureID, Object newValue) | ||
119 | { | ||
120 | switch (featureID) | ||
121 | { | ||
122 | case SolverLanguagePackage.LOWER_BOUNDED_SCOPE_DEFINITION__LOWER_BOUND: | ||
123 | setLowerBound((Integer)newValue); | ||
124 | return; | ||
125 | } | ||
126 | super.eSet(featureID, newValue); | ||
127 | } | ||
128 | |||
129 | /** | ||
130 | * <!-- begin-user-doc --> | ||
131 | * <!-- end-user-doc --> | ||
132 | * @generated | ||
133 | */ | ||
134 | @Override | ||
135 | public void eUnset(int featureID) | ||
136 | { | ||
137 | switch (featureID) | ||
138 | { | ||
139 | case SolverLanguagePackage.LOWER_BOUNDED_SCOPE_DEFINITION__LOWER_BOUND: | ||
140 | setLowerBound(LOWER_BOUND_EDEFAULT); | ||
141 | return; | ||
142 | } | ||
143 | super.eUnset(featureID); | ||
144 | } | ||
145 | |||
146 | /** | ||
147 | * <!-- begin-user-doc --> | ||
148 | * <!-- end-user-doc --> | ||
149 | * @generated | ||
150 | */ | ||
151 | @Override | ||
152 | public boolean eIsSet(int featureID) | ||
153 | { | ||
154 | switch (featureID) | ||
155 | { | ||
156 | case SolverLanguagePackage.LOWER_BOUNDED_SCOPE_DEFINITION__LOWER_BOUND: | ||
157 | return lowerBound != LOWER_BOUND_EDEFAULT; | ||
158 | } | ||
159 | return super.eIsSet(featureID); | ||
160 | } | ||
161 | |||
162 | /** | ||
163 | * <!-- begin-user-doc --> | ||
164 | * <!-- end-user-doc --> | ||
165 | * @generated | ||
166 | */ | ||
167 | @Override | ||
168 | public String toString() | ||
169 | { | ||
170 | if (eIsProxy()) return super.toString(); | ||
171 | |||
172 | StringBuilder result = new StringBuilder(super.toString()); | ||
173 | result.append(" (lowerBound: "); | ||
174 | result.append(lowerBound); | ||
175 | result.append(')'); | ||
176 | return result.toString(); | ||
177 | } | ||
178 | |||
179 | } //LowerBoundedScopeDefinitionImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ManyMultiplicityImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ManyMultiplicityImpl.java deleted file mode 100644 index c248b4ea..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ManyMultiplicityImpl.java +++ /dev/null | |||
@@ -1,41 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | |||
8 | import org.eclipse.viatra.solver.language.solverLanguage.ManyMultiplicity; | ||
9 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * An implementation of the model object '<em><b>Many Multiplicity</b></em>'. | ||
14 | * <!-- end-user-doc --> | ||
15 | * | ||
16 | * @generated | ||
17 | */ | ||
18 | public class ManyMultiplicityImpl extends MultiplicityImpl implements ManyMultiplicity | ||
19 | { | ||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * <!-- end-user-doc --> | ||
23 | * @generated | ||
24 | */ | ||
25 | protected ManyMultiplicityImpl() | ||
26 | { | ||
27 | super(); | ||
28 | } | ||
29 | |||
30 | /** | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @generated | ||
34 | */ | ||
35 | @Override | ||
36 | protected EClass eStaticClass() | ||
37 | { | ||
38 | return SolverLanguagePackage.Literals.MANY_MULTIPLICITY; | ||
39 | } | ||
40 | |||
41 | } //ManyMultiplicityImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/MemberDefinitionImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/MemberDefinitionImpl.java deleted file mode 100644 index 69021347..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/MemberDefinitionImpl.java +++ /dev/null | |||
@@ -1,463 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | import org.eclipse.emf.common.notify.NotificationChain; | ||
8 | |||
9 | import org.eclipse.emf.ecore.EClass; | ||
10 | import org.eclipse.emf.ecore.InternalEObject; | ||
11 | |||
12 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
13 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
14 | |||
15 | import org.eclipse.viatra.solver.language.solverLanguage.MemberDefinition; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.Multiplicity; | ||
17 | import org.eclipse.viatra.solver.language.solverLanguage.NamedElement; | ||
18 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
19 | |||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * An implementation of the model object '<em><b>Member Definition</b></em>'. | ||
23 | * <!-- end-user-doc --> | ||
24 | * <p> | ||
25 | * The following features are implemented: | ||
26 | * </p> | ||
27 | * <ul> | ||
28 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.MemberDefinitionImpl#isContainment <em>Containment</em>}</li> | ||
29 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.MemberDefinitionImpl#getType <em>Type</em>}</li> | ||
30 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.MemberDefinitionImpl#getMultiplicity <em>Multiplicity</em>}</li> | ||
31 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.MemberDefinitionImpl#getName <em>Name</em>}</li> | ||
32 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.MemberDefinitionImpl#getOpposite <em>Opposite</em>}</li> | ||
33 | * </ul> | ||
34 | * | ||
35 | * @generated | ||
36 | */ | ||
37 | public class MemberDefinitionImpl extends MinimalEObjectImpl.Container implements MemberDefinition | ||
38 | { | ||
39 | /** | ||
40 | * The default value of the '{@link #isContainment() <em>Containment</em>}' attribute. | ||
41 | * <!-- begin-user-doc --> | ||
42 | * <!-- end-user-doc --> | ||
43 | * @see #isContainment() | ||
44 | * @generated | ||
45 | * @ordered | ||
46 | */ | ||
47 | protected static final boolean CONTAINMENT_EDEFAULT = false; | ||
48 | |||
49 | /** | ||
50 | * The cached value of the '{@link #isContainment() <em>Containment</em>}' attribute. | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @see #isContainment() | ||
54 | * @generated | ||
55 | * @ordered | ||
56 | */ | ||
57 | protected boolean containment = CONTAINMENT_EDEFAULT; | ||
58 | |||
59 | /** | ||
60 | * The cached value of the '{@link #getType() <em>Type</em>}' reference. | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @see #getType() | ||
64 | * @generated | ||
65 | * @ordered | ||
66 | */ | ||
67 | protected NamedElement type; | ||
68 | |||
69 | /** | ||
70 | * The cached value of the '{@link #getMultiplicity() <em>Multiplicity</em>}' containment reference. | ||
71 | * <!-- begin-user-doc --> | ||
72 | * <!-- end-user-doc --> | ||
73 | * @see #getMultiplicity() | ||
74 | * @generated | ||
75 | * @ordered | ||
76 | */ | ||
77 | protected Multiplicity multiplicity; | ||
78 | |||
79 | /** | ||
80 | * The default value of the '{@link #getName() <em>Name</em>}' attribute. | ||
81 | * <!-- begin-user-doc --> | ||
82 | * <!-- end-user-doc --> | ||
83 | * @see #getName() | ||
84 | * @generated | ||
85 | * @ordered | ||
86 | */ | ||
87 | protected static final String NAME_EDEFAULT = null; | ||
88 | |||
89 | /** | ||
90 | * The cached value of the '{@link #getName() <em>Name</em>}' attribute. | ||
91 | * <!-- begin-user-doc --> | ||
92 | * <!-- end-user-doc --> | ||
93 | * @see #getName() | ||
94 | * @generated | ||
95 | * @ordered | ||
96 | */ | ||
97 | protected String name = NAME_EDEFAULT; | ||
98 | |||
99 | /** | ||
100 | * The cached value of the '{@link #getOpposite() <em>Opposite</em>}' reference. | ||
101 | * <!-- begin-user-doc --> | ||
102 | * <!-- end-user-doc --> | ||
103 | * @see #getOpposite() | ||
104 | * @generated | ||
105 | * @ordered | ||
106 | */ | ||
107 | protected NamedElement opposite; | ||
108 | |||
109 | /** | ||
110 | * <!-- begin-user-doc --> | ||
111 | * <!-- end-user-doc --> | ||
112 | * @generated | ||
113 | */ | ||
114 | protected MemberDefinitionImpl() | ||
115 | { | ||
116 | super(); | ||
117 | } | ||
118 | |||
119 | /** | ||
120 | * <!-- begin-user-doc --> | ||
121 | * <!-- end-user-doc --> | ||
122 | * @generated | ||
123 | */ | ||
124 | @Override | ||
125 | protected EClass eStaticClass() | ||
126 | { | ||
127 | return SolverLanguagePackage.Literals.MEMBER_DEFINITION; | ||
128 | } | ||
129 | |||
130 | /** | ||
131 | * <!-- begin-user-doc --> | ||
132 | * <!-- end-user-doc --> | ||
133 | * @generated | ||
134 | */ | ||
135 | @Override | ||
136 | public boolean isContainment() | ||
137 | { | ||
138 | return containment; | ||
139 | } | ||
140 | |||
141 | /** | ||
142 | * <!-- begin-user-doc --> | ||
143 | * <!-- end-user-doc --> | ||
144 | * @generated | ||
145 | */ | ||
146 | @Override | ||
147 | public void setContainment(boolean newContainment) | ||
148 | { | ||
149 | boolean oldContainment = containment; | ||
150 | containment = newContainment; | ||
151 | if (eNotificationRequired()) | ||
152 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.MEMBER_DEFINITION__CONTAINMENT, oldContainment, containment)); | ||
153 | } | ||
154 | |||
155 | /** | ||
156 | * <!-- begin-user-doc --> | ||
157 | * <!-- end-user-doc --> | ||
158 | * @generated | ||
159 | */ | ||
160 | @Override | ||
161 | public NamedElement getType() | ||
162 | { | ||
163 | if (type != null && type.eIsProxy()) | ||
164 | { | ||
165 | InternalEObject oldType = (InternalEObject)type; | ||
166 | type = (NamedElement)eResolveProxy(oldType); | ||
167 | if (type != oldType) | ||
168 | { | ||
169 | if (eNotificationRequired()) | ||
170 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, SolverLanguagePackage.MEMBER_DEFINITION__TYPE, oldType, type)); | ||
171 | } | ||
172 | } | ||
173 | return type; | ||
174 | } | ||
175 | |||
176 | /** | ||
177 | * <!-- begin-user-doc --> | ||
178 | * <!-- end-user-doc --> | ||
179 | * @generated | ||
180 | */ | ||
181 | public NamedElement basicGetType() | ||
182 | { | ||
183 | return type; | ||
184 | } | ||
185 | |||
186 | /** | ||
187 | * <!-- begin-user-doc --> | ||
188 | * <!-- end-user-doc --> | ||
189 | * @generated | ||
190 | */ | ||
191 | @Override | ||
192 | public void setType(NamedElement newType) | ||
193 | { | ||
194 | NamedElement oldType = type; | ||
195 | type = newType; | ||
196 | if (eNotificationRequired()) | ||
197 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.MEMBER_DEFINITION__TYPE, oldType, type)); | ||
198 | } | ||
199 | |||
200 | /** | ||
201 | * <!-- begin-user-doc --> | ||
202 | * <!-- end-user-doc --> | ||
203 | * @generated | ||
204 | */ | ||
205 | @Override | ||
206 | public Multiplicity getMultiplicity() | ||
207 | { | ||
208 | return multiplicity; | ||
209 | } | ||
210 | |||
211 | /** | ||
212 | * <!-- begin-user-doc --> | ||
213 | * <!-- end-user-doc --> | ||
214 | * @generated | ||
215 | */ | ||
216 | public NotificationChain basicSetMultiplicity(Multiplicity newMultiplicity, NotificationChain msgs) | ||
217 | { | ||
218 | Multiplicity oldMultiplicity = multiplicity; | ||
219 | multiplicity = newMultiplicity; | ||
220 | if (eNotificationRequired()) | ||
221 | { | ||
222 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.MEMBER_DEFINITION__MULTIPLICITY, oldMultiplicity, newMultiplicity); | ||
223 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
224 | } | ||
225 | return msgs; | ||
226 | } | ||
227 | |||
228 | /** | ||
229 | * <!-- begin-user-doc --> | ||
230 | * <!-- end-user-doc --> | ||
231 | * @generated | ||
232 | */ | ||
233 | @Override | ||
234 | public void setMultiplicity(Multiplicity newMultiplicity) | ||
235 | { | ||
236 | if (newMultiplicity != multiplicity) | ||
237 | { | ||
238 | NotificationChain msgs = null; | ||
239 | if (multiplicity != null) | ||
240 | msgs = ((InternalEObject)multiplicity).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.MEMBER_DEFINITION__MULTIPLICITY, null, msgs); | ||
241 | if (newMultiplicity != null) | ||
242 | msgs = ((InternalEObject)newMultiplicity).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.MEMBER_DEFINITION__MULTIPLICITY, null, msgs); | ||
243 | msgs = basicSetMultiplicity(newMultiplicity, msgs); | ||
244 | if (msgs != null) msgs.dispatch(); | ||
245 | } | ||
246 | else if (eNotificationRequired()) | ||
247 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.MEMBER_DEFINITION__MULTIPLICITY, newMultiplicity, newMultiplicity)); | ||
248 | } | ||
249 | |||
250 | /** | ||
251 | * <!-- begin-user-doc --> | ||
252 | * <!-- end-user-doc --> | ||
253 | * @generated | ||
254 | */ | ||
255 | @Override | ||
256 | public String getName() | ||
257 | { | ||
258 | return name; | ||
259 | } | ||
260 | |||
261 | /** | ||
262 | * <!-- begin-user-doc --> | ||
263 | * <!-- end-user-doc --> | ||
264 | * @generated | ||
265 | */ | ||
266 | @Override | ||
267 | public void setName(String newName) | ||
268 | { | ||
269 | String oldName = name; | ||
270 | name = newName; | ||
271 | if (eNotificationRequired()) | ||
272 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.MEMBER_DEFINITION__NAME, oldName, name)); | ||
273 | } | ||
274 | |||
275 | /** | ||
276 | * <!-- begin-user-doc --> | ||
277 | * <!-- end-user-doc --> | ||
278 | * @generated | ||
279 | */ | ||
280 | @Override | ||
281 | public NamedElement getOpposite() | ||
282 | { | ||
283 | if (opposite != null && opposite.eIsProxy()) | ||
284 | { | ||
285 | InternalEObject oldOpposite = (InternalEObject)opposite; | ||
286 | opposite = (NamedElement)eResolveProxy(oldOpposite); | ||
287 | if (opposite != oldOpposite) | ||
288 | { | ||
289 | if (eNotificationRequired()) | ||
290 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, SolverLanguagePackage.MEMBER_DEFINITION__OPPOSITE, oldOpposite, opposite)); | ||
291 | } | ||
292 | } | ||
293 | return opposite; | ||
294 | } | ||
295 | |||
296 | /** | ||
297 | * <!-- begin-user-doc --> | ||
298 | * <!-- end-user-doc --> | ||
299 | * @generated | ||
300 | */ | ||
301 | public NamedElement basicGetOpposite() | ||
302 | { | ||
303 | return opposite; | ||
304 | } | ||
305 | |||
306 | /** | ||
307 | * <!-- begin-user-doc --> | ||
308 | * <!-- end-user-doc --> | ||
309 | * @generated | ||
310 | */ | ||
311 | @Override | ||
312 | public void setOpposite(NamedElement newOpposite) | ||
313 | { | ||
314 | NamedElement oldOpposite = opposite; | ||
315 | opposite = newOpposite; | ||
316 | if (eNotificationRequired()) | ||
317 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.MEMBER_DEFINITION__OPPOSITE, oldOpposite, opposite)); | ||
318 | } | ||
319 | |||
320 | /** | ||
321 | * <!-- begin-user-doc --> | ||
322 | * <!-- end-user-doc --> | ||
323 | * @generated | ||
324 | */ | ||
325 | @Override | ||
326 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
327 | { | ||
328 | switch (featureID) | ||
329 | { | ||
330 | case SolverLanguagePackage.MEMBER_DEFINITION__MULTIPLICITY: | ||
331 | return basicSetMultiplicity(null, msgs); | ||
332 | } | ||
333 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
334 | } | ||
335 | |||
336 | /** | ||
337 | * <!-- begin-user-doc --> | ||
338 | * <!-- end-user-doc --> | ||
339 | * @generated | ||
340 | */ | ||
341 | @Override | ||
342 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
343 | { | ||
344 | switch (featureID) | ||
345 | { | ||
346 | case SolverLanguagePackage.MEMBER_DEFINITION__CONTAINMENT: | ||
347 | return isContainment(); | ||
348 | case SolverLanguagePackage.MEMBER_DEFINITION__TYPE: | ||
349 | if (resolve) return getType(); | ||
350 | return basicGetType(); | ||
351 | case SolverLanguagePackage.MEMBER_DEFINITION__MULTIPLICITY: | ||
352 | return getMultiplicity(); | ||
353 | case SolverLanguagePackage.MEMBER_DEFINITION__NAME: | ||
354 | return getName(); | ||
355 | case SolverLanguagePackage.MEMBER_DEFINITION__OPPOSITE: | ||
356 | if (resolve) return getOpposite(); | ||
357 | return basicGetOpposite(); | ||
358 | } | ||
359 | return super.eGet(featureID, resolve, coreType); | ||
360 | } | ||
361 | |||
362 | /** | ||
363 | * <!-- begin-user-doc --> | ||
364 | * <!-- end-user-doc --> | ||
365 | * @generated | ||
366 | */ | ||
367 | @Override | ||
368 | public void eSet(int featureID, Object newValue) | ||
369 | { | ||
370 | switch (featureID) | ||
371 | { | ||
372 | case SolverLanguagePackage.MEMBER_DEFINITION__CONTAINMENT: | ||
373 | setContainment((Boolean)newValue); | ||
374 | return; | ||
375 | case SolverLanguagePackage.MEMBER_DEFINITION__TYPE: | ||
376 | setType((NamedElement)newValue); | ||
377 | return; | ||
378 | case SolverLanguagePackage.MEMBER_DEFINITION__MULTIPLICITY: | ||
379 | setMultiplicity((Multiplicity)newValue); | ||
380 | return; | ||
381 | case SolverLanguagePackage.MEMBER_DEFINITION__NAME: | ||
382 | setName((String)newValue); | ||
383 | return; | ||
384 | case SolverLanguagePackage.MEMBER_DEFINITION__OPPOSITE: | ||
385 | setOpposite((NamedElement)newValue); | ||
386 | return; | ||
387 | } | ||
388 | super.eSet(featureID, newValue); | ||
389 | } | ||
390 | |||
391 | /** | ||
392 | * <!-- begin-user-doc --> | ||
393 | * <!-- end-user-doc --> | ||
394 | * @generated | ||
395 | */ | ||
396 | @Override | ||
397 | public void eUnset(int featureID) | ||
398 | { | ||
399 | switch (featureID) | ||
400 | { | ||
401 | case SolverLanguagePackage.MEMBER_DEFINITION__CONTAINMENT: | ||
402 | setContainment(CONTAINMENT_EDEFAULT); | ||
403 | return; | ||
404 | case SolverLanguagePackage.MEMBER_DEFINITION__TYPE: | ||
405 | setType((NamedElement)null); | ||
406 | return; | ||
407 | case SolverLanguagePackage.MEMBER_DEFINITION__MULTIPLICITY: | ||
408 | setMultiplicity((Multiplicity)null); | ||
409 | return; | ||
410 | case SolverLanguagePackage.MEMBER_DEFINITION__NAME: | ||
411 | setName(NAME_EDEFAULT); | ||
412 | return; | ||
413 | case SolverLanguagePackage.MEMBER_DEFINITION__OPPOSITE: | ||
414 | setOpposite((NamedElement)null); | ||
415 | return; | ||
416 | } | ||
417 | super.eUnset(featureID); | ||
418 | } | ||
419 | |||
420 | /** | ||
421 | * <!-- begin-user-doc --> | ||
422 | * <!-- end-user-doc --> | ||
423 | * @generated | ||
424 | */ | ||
425 | @Override | ||
426 | public boolean eIsSet(int featureID) | ||
427 | { | ||
428 | switch (featureID) | ||
429 | { | ||
430 | case SolverLanguagePackage.MEMBER_DEFINITION__CONTAINMENT: | ||
431 | return containment != CONTAINMENT_EDEFAULT; | ||
432 | case SolverLanguagePackage.MEMBER_DEFINITION__TYPE: | ||
433 | return type != null; | ||
434 | case SolverLanguagePackage.MEMBER_DEFINITION__MULTIPLICITY: | ||
435 | return multiplicity != null; | ||
436 | case SolverLanguagePackage.MEMBER_DEFINITION__NAME: | ||
437 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); | ||
438 | case SolverLanguagePackage.MEMBER_DEFINITION__OPPOSITE: | ||
439 | return opposite != null; | ||
440 | } | ||
441 | return super.eIsSet(featureID); | ||
442 | } | ||
443 | |||
444 | /** | ||
445 | * <!-- begin-user-doc --> | ||
446 | * <!-- end-user-doc --> | ||
447 | * @generated | ||
448 | */ | ||
449 | @Override | ||
450 | public String toString() | ||
451 | { | ||
452 | if (eIsProxy()) return super.toString(); | ||
453 | |||
454 | StringBuilder result = new StringBuilder(super.toString()); | ||
455 | result.append(" (containment: "); | ||
456 | result.append(containment); | ||
457 | result.append(", name: "); | ||
458 | result.append(name); | ||
459 | result.append(')'); | ||
460 | return result.toString(); | ||
461 | } | ||
462 | |||
463 | } //MemberDefinitionImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/MetricDefinitionImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/MetricDefinitionImpl.java deleted file mode 100644 index 8f84d2f1..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/MetricDefinitionImpl.java +++ /dev/null | |||
@@ -1,343 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | import org.eclipse.emf.common.notify.NotificationChain; | ||
8 | |||
9 | import org.eclipse.emf.ecore.EClass; | ||
10 | import org.eclipse.emf.ecore.InternalEObject; | ||
11 | |||
12 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
13 | |||
14 | import org.eclipse.viatra.solver.language.solverLanguage.Expression; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.MetricDefinition; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.MetricType; | ||
17 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
18 | |||
19 | /** | ||
20 | * <!-- begin-user-doc --> | ||
21 | * An implementation of the model object '<em><b>Metric Definition</b></em>'. | ||
22 | * <!-- end-user-doc --> | ||
23 | * <p> | ||
24 | * The following features are implemented: | ||
25 | * </p> | ||
26 | * <ul> | ||
27 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.MetricDefinitionImpl#getHead <em>Head</em>}</li> | ||
28 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.MetricDefinitionImpl#getBody <em>Body</em>}</li> | ||
29 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.MetricDefinitionImpl#getType <em>Type</em>}</li> | ||
30 | * </ul> | ||
31 | * | ||
32 | * @generated | ||
33 | */ | ||
34 | public class MetricDefinitionImpl extends StatementImpl implements MetricDefinition | ||
35 | { | ||
36 | /** | ||
37 | * The cached value of the '{@link #getHead() <em>Head</em>}' containment reference. | ||
38 | * <!-- begin-user-doc --> | ||
39 | * <!-- end-user-doc --> | ||
40 | * @see #getHead() | ||
41 | * @generated | ||
42 | * @ordered | ||
43 | */ | ||
44 | protected Expression head; | ||
45 | |||
46 | /** | ||
47 | * The cached value of the '{@link #getBody() <em>Body</em>}' containment reference. | ||
48 | * <!-- begin-user-doc --> | ||
49 | * <!-- end-user-doc --> | ||
50 | * @see #getBody() | ||
51 | * @generated | ||
52 | * @ordered | ||
53 | */ | ||
54 | protected Expression body; | ||
55 | |||
56 | /** | ||
57 | * The default value of the '{@link #getType() <em>Type</em>}' attribute. | ||
58 | * <!-- begin-user-doc --> | ||
59 | * <!-- end-user-doc --> | ||
60 | * @see #getType() | ||
61 | * @generated | ||
62 | * @ordered | ||
63 | */ | ||
64 | protected static final MetricType TYPE_EDEFAULT = MetricType.INT; | ||
65 | |||
66 | /** | ||
67 | * The cached value of the '{@link #getType() <em>Type</em>}' attribute. | ||
68 | * <!-- begin-user-doc --> | ||
69 | * <!-- end-user-doc --> | ||
70 | * @see #getType() | ||
71 | * @generated | ||
72 | * @ordered | ||
73 | */ | ||
74 | protected MetricType type = TYPE_EDEFAULT; | ||
75 | |||
76 | /** | ||
77 | * <!-- begin-user-doc --> | ||
78 | * <!-- end-user-doc --> | ||
79 | * @generated | ||
80 | */ | ||
81 | protected MetricDefinitionImpl() | ||
82 | { | ||
83 | super(); | ||
84 | } | ||
85 | |||
86 | /** | ||
87 | * <!-- begin-user-doc --> | ||
88 | * <!-- end-user-doc --> | ||
89 | * @generated | ||
90 | */ | ||
91 | @Override | ||
92 | protected EClass eStaticClass() | ||
93 | { | ||
94 | return SolverLanguagePackage.Literals.METRIC_DEFINITION; | ||
95 | } | ||
96 | |||
97 | /** | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @generated | ||
101 | */ | ||
102 | @Override | ||
103 | public Expression getHead() | ||
104 | { | ||
105 | return head; | ||
106 | } | ||
107 | |||
108 | /** | ||
109 | * <!-- begin-user-doc --> | ||
110 | * <!-- end-user-doc --> | ||
111 | * @generated | ||
112 | */ | ||
113 | public NotificationChain basicSetHead(Expression newHead, NotificationChain msgs) | ||
114 | { | ||
115 | Expression oldHead = head; | ||
116 | head = newHead; | ||
117 | if (eNotificationRequired()) | ||
118 | { | ||
119 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.METRIC_DEFINITION__HEAD, oldHead, newHead); | ||
120 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
121 | } | ||
122 | return msgs; | ||
123 | } | ||
124 | |||
125 | /** | ||
126 | * <!-- begin-user-doc --> | ||
127 | * <!-- end-user-doc --> | ||
128 | * @generated | ||
129 | */ | ||
130 | @Override | ||
131 | public void setHead(Expression newHead) | ||
132 | { | ||
133 | if (newHead != head) | ||
134 | { | ||
135 | NotificationChain msgs = null; | ||
136 | if (head != null) | ||
137 | msgs = ((InternalEObject)head).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.METRIC_DEFINITION__HEAD, null, msgs); | ||
138 | if (newHead != null) | ||
139 | msgs = ((InternalEObject)newHead).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.METRIC_DEFINITION__HEAD, null, msgs); | ||
140 | msgs = basicSetHead(newHead, msgs); | ||
141 | if (msgs != null) msgs.dispatch(); | ||
142 | } | ||
143 | else if (eNotificationRequired()) | ||
144 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.METRIC_DEFINITION__HEAD, newHead, newHead)); | ||
145 | } | ||
146 | |||
147 | /** | ||
148 | * <!-- begin-user-doc --> | ||
149 | * <!-- end-user-doc --> | ||
150 | * @generated | ||
151 | */ | ||
152 | @Override | ||
153 | public Expression getBody() | ||
154 | { | ||
155 | return body; | ||
156 | } | ||
157 | |||
158 | /** | ||
159 | * <!-- begin-user-doc --> | ||
160 | * <!-- end-user-doc --> | ||
161 | * @generated | ||
162 | */ | ||
163 | public NotificationChain basicSetBody(Expression newBody, NotificationChain msgs) | ||
164 | { | ||
165 | Expression oldBody = body; | ||
166 | body = newBody; | ||
167 | if (eNotificationRequired()) | ||
168 | { | ||
169 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.METRIC_DEFINITION__BODY, oldBody, newBody); | ||
170 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
171 | } | ||
172 | return msgs; | ||
173 | } | ||
174 | |||
175 | /** | ||
176 | * <!-- begin-user-doc --> | ||
177 | * <!-- end-user-doc --> | ||
178 | * @generated | ||
179 | */ | ||
180 | @Override | ||
181 | public void setBody(Expression newBody) | ||
182 | { | ||
183 | if (newBody != body) | ||
184 | { | ||
185 | NotificationChain msgs = null; | ||
186 | if (body != null) | ||
187 | msgs = ((InternalEObject)body).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.METRIC_DEFINITION__BODY, null, msgs); | ||
188 | if (newBody != null) | ||
189 | msgs = ((InternalEObject)newBody).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.METRIC_DEFINITION__BODY, null, msgs); | ||
190 | msgs = basicSetBody(newBody, msgs); | ||
191 | if (msgs != null) msgs.dispatch(); | ||
192 | } | ||
193 | else if (eNotificationRequired()) | ||
194 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.METRIC_DEFINITION__BODY, newBody, newBody)); | ||
195 | } | ||
196 | |||
197 | /** | ||
198 | * <!-- begin-user-doc --> | ||
199 | * <!-- end-user-doc --> | ||
200 | * @generated | ||
201 | */ | ||
202 | @Override | ||
203 | public MetricType getType() | ||
204 | { | ||
205 | return type; | ||
206 | } | ||
207 | |||
208 | /** | ||
209 | * <!-- begin-user-doc --> | ||
210 | * <!-- end-user-doc --> | ||
211 | * @generated | ||
212 | */ | ||
213 | @Override | ||
214 | public void setType(MetricType newType) | ||
215 | { | ||
216 | MetricType oldType = type; | ||
217 | type = newType == null ? TYPE_EDEFAULT : newType; | ||
218 | if (eNotificationRequired()) | ||
219 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.METRIC_DEFINITION__TYPE, oldType, type)); | ||
220 | } | ||
221 | |||
222 | /** | ||
223 | * <!-- begin-user-doc --> | ||
224 | * <!-- end-user-doc --> | ||
225 | * @generated | ||
226 | */ | ||
227 | @Override | ||
228 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
229 | { | ||
230 | switch (featureID) | ||
231 | { | ||
232 | case SolverLanguagePackage.METRIC_DEFINITION__HEAD: | ||
233 | return basicSetHead(null, msgs); | ||
234 | case SolverLanguagePackage.METRIC_DEFINITION__BODY: | ||
235 | return basicSetBody(null, msgs); | ||
236 | } | ||
237 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
238 | } | ||
239 | |||
240 | /** | ||
241 | * <!-- begin-user-doc --> | ||
242 | * <!-- end-user-doc --> | ||
243 | * @generated | ||
244 | */ | ||
245 | @Override | ||
246 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
247 | { | ||
248 | switch (featureID) | ||
249 | { | ||
250 | case SolverLanguagePackage.METRIC_DEFINITION__HEAD: | ||
251 | return getHead(); | ||
252 | case SolverLanguagePackage.METRIC_DEFINITION__BODY: | ||
253 | return getBody(); | ||
254 | case SolverLanguagePackage.METRIC_DEFINITION__TYPE: | ||
255 | return getType(); | ||
256 | } | ||
257 | return super.eGet(featureID, resolve, coreType); | ||
258 | } | ||
259 | |||
260 | /** | ||
261 | * <!-- begin-user-doc --> | ||
262 | * <!-- end-user-doc --> | ||
263 | * @generated | ||
264 | */ | ||
265 | @Override | ||
266 | public void eSet(int featureID, Object newValue) | ||
267 | { | ||
268 | switch (featureID) | ||
269 | { | ||
270 | case SolverLanguagePackage.METRIC_DEFINITION__HEAD: | ||
271 | setHead((Expression)newValue); | ||
272 | return; | ||
273 | case SolverLanguagePackage.METRIC_DEFINITION__BODY: | ||
274 | setBody((Expression)newValue); | ||
275 | return; | ||
276 | case SolverLanguagePackage.METRIC_DEFINITION__TYPE: | ||
277 | setType((MetricType)newValue); | ||
278 | return; | ||
279 | } | ||
280 | super.eSet(featureID, newValue); | ||
281 | } | ||
282 | |||
283 | /** | ||
284 | * <!-- begin-user-doc --> | ||
285 | * <!-- end-user-doc --> | ||
286 | * @generated | ||
287 | */ | ||
288 | @Override | ||
289 | public void eUnset(int featureID) | ||
290 | { | ||
291 | switch (featureID) | ||
292 | { | ||
293 | case SolverLanguagePackage.METRIC_DEFINITION__HEAD: | ||
294 | setHead((Expression)null); | ||
295 | return; | ||
296 | case SolverLanguagePackage.METRIC_DEFINITION__BODY: | ||
297 | setBody((Expression)null); | ||
298 | return; | ||
299 | case SolverLanguagePackage.METRIC_DEFINITION__TYPE: | ||
300 | setType(TYPE_EDEFAULT); | ||
301 | return; | ||
302 | } | ||
303 | super.eUnset(featureID); | ||
304 | } | ||
305 | |||
306 | /** | ||
307 | * <!-- begin-user-doc --> | ||
308 | * <!-- end-user-doc --> | ||
309 | * @generated | ||
310 | */ | ||
311 | @Override | ||
312 | public boolean eIsSet(int featureID) | ||
313 | { | ||
314 | switch (featureID) | ||
315 | { | ||
316 | case SolverLanguagePackage.METRIC_DEFINITION__HEAD: | ||
317 | return head != null; | ||
318 | case SolverLanguagePackage.METRIC_DEFINITION__BODY: | ||
319 | return body != null; | ||
320 | case SolverLanguagePackage.METRIC_DEFINITION__TYPE: | ||
321 | return type != TYPE_EDEFAULT; | ||
322 | } | ||
323 | return super.eIsSet(featureID); | ||
324 | } | ||
325 | |||
326 | /** | ||
327 | * <!-- begin-user-doc --> | ||
328 | * <!-- end-user-doc --> | ||
329 | * @generated | ||
330 | */ | ||
331 | @Override | ||
332 | public String toString() | ||
333 | { | ||
334 | if (eIsProxy()) return super.toString(); | ||
335 | |||
336 | StringBuilder result = new StringBuilder(super.toString()); | ||
337 | result.append(" (type: "); | ||
338 | result.append(type); | ||
339 | result.append(')'); | ||
340 | return result.toString(); | ||
341 | } | ||
342 | |||
343 | } //MetricDefinitionImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/MultiplicityImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/MultiplicityImpl.java deleted file mode 100644 index 935cf5be..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/MultiplicityImpl.java +++ /dev/null | |||
@@ -1,43 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | |||
8 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
9 | |||
10 | import org.eclipse.viatra.solver.language.solverLanguage.Multiplicity; | ||
11 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
12 | |||
13 | /** | ||
14 | * <!-- begin-user-doc --> | ||
15 | * An implementation of the model object '<em><b>Multiplicity</b></em>'. | ||
16 | * <!-- end-user-doc --> | ||
17 | * | ||
18 | * @generated | ||
19 | */ | ||
20 | public class MultiplicityImpl extends MinimalEObjectImpl.Container implements Multiplicity | ||
21 | { | ||
22 | /** | ||
23 | * <!-- begin-user-doc --> | ||
24 | * <!-- end-user-doc --> | ||
25 | * @generated | ||
26 | */ | ||
27 | protected MultiplicityImpl() | ||
28 | { | ||
29 | super(); | ||
30 | } | ||
31 | |||
32 | /** | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @generated | ||
36 | */ | ||
37 | @Override | ||
38 | protected EClass eStaticClass() | ||
39 | { | ||
40 | return SolverLanguagePackage.Literals.MULTIPLICITY; | ||
41 | } | ||
42 | |||
43 | } //MultiplicityImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/NamedElementImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/NamedElementImpl.java deleted file mode 100644 index a94f9894..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/NamedElementImpl.java +++ /dev/null | |||
@@ -1,180 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | |||
10 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
11 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
12 | |||
13 | import org.eclipse.viatra.solver.language.solverLanguage.NamedElement; | ||
14 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
15 | |||
16 | /** | ||
17 | * <!-- begin-user-doc --> | ||
18 | * An implementation of the model object '<em><b>Named Element</b></em>'. | ||
19 | * <!-- end-user-doc --> | ||
20 | * <p> | ||
21 | * The following features are implemented: | ||
22 | * </p> | ||
23 | * <ul> | ||
24 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.NamedElementImpl#getName <em>Name</em>}</li> | ||
25 | * </ul> | ||
26 | * | ||
27 | * @generated | ||
28 | */ | ||
29 | public class NamedElementImpl extends MinimalEObjectImpl.Container implements NamedElement | ||
30 | { | ||
31 | /** | ||
32 | * The default value of the '{@link #getName() <em>Name</em>}' attribute. | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @see #getName() | ||
36 | * @generated | ||
37 | * @ordered | ||
38 | */ | ||
39 | protected static final String NAME_EDEFAULT = null; | ||
40 | |||
41 | /** | ||
42 | * The cached value of the '{@link #getName() <em>Name</em>}' attribute. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @see #getName() | ||
46 | * @generated | ||
47 | * @ordered | ||
48 | */ | ||
49 | protected String name = NAME_EDEFAULT; | ||
50 | |||
51 | /** | ||
52 | * <!-- begin-user-doc --> | ||
53 | * <!-- end-user-doc --> | ||
54 | * @generated | ||
55 | */ | ||
56 | protected NamedElementImpl() | ||
57 | { | ||
58 | super(); | ||
59 | } | ||
60 | |||
61 | /** | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @generated | ||
65 | */ | ||
66 | @Override | ||
67 | protected EClass eStaticClass() | ||
68 | { | ||
69 | return SolverLanguagePackage.Literals.NAMED_ELEMENT; | ||
70 | } | ||
71 | |||
72 | /** | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @generated | ||
76 | */ | ||
77 | @Override | ||
78 | public String getName() | ||
79 | { | ||
80 | return name; | ||
81 | } | ||
82 | |||
83 | /** | ||
84 | * <!-- begin-user-doc --> | ||
85 | * <!-- end-user-doc --> | ||
86 | * @generated | ||
87 | */ | ||
88 | @Override | ||
89 | public void setName(String newName) | ||
90 | { | ||
91 | String oldName = name; | ||
92 | name = newName; | ||
93 | if (eNotificationRequired()) | ||
94 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.NAMED_ELEMENT__NAME, oldName, name)); | ||
95 | } | ||
96 | |||
97 | /** | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @generated | ||
101 | */ | ||
102 | @Override | ||
103 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
104 | { | ||
105 | switch (featureID) | ||
106 | { | ||
107 | case SolverLanguagePackage.NAMED_ELEMENT__NAME: | ||
108 | return getName(); | ||
109 | } | ||
110 | return super.eGet(featureID, resolve, coreType); | ||
111 | } | ||
112 | |||
113 | /** | ||
114 | * <!-- begin-user-doc --> | ||
115 | * <!-- end-user-doc --> | ||
116 | * @generated | ||
117 | */ | ||
118 | @Override | ||
119 | public void eSet(int featureID, Object newValue) | ||
120 | { | ||
121 | switch (featureID) | ||
122 | { | ||
123 | case SolverLanguagePackage.NAMED_ELEMENT__NAME: | ||
124 | setName((String)newValue); | ||
125 | return; | ||
126 | } | ||
127 | super.eSet(featureID, newValue); | ||
128 | } | ||
129 | |||
130 | /** | ||
131 | * <!-- begin-user-doc --> | ||
132 | * <!-- end-user-doc --> | ||
133 | * @generated | ||
134 | */ | ||
135 | @Override | ||
136 | public void eUnset(int featureID) | ||
137 | { | ||
138 | switch (featureID) | ||
139 | { | ||
140 | case SolverLanguagePackage.NAMED_ELEMENT__NAME: | ||
141 | setName(NAME_EDEFAULT); | ||
142 | return; | ||
143 | } | ||
144 | super.eUnset(featureID); | ||
145 | } | ||
146 | |||
147 | /** | ||
148 | * <!-- begin-user-doc --> | ||
149 | * <!-- end-user-doc --> | ||
150 | * @generated | ||
151 | */ | ||
152 | @Override | ||
153 | public boolean eIsSet(int featureID) | ||
154 | { | ||
155 | switch (featureID) | ||
156 | { | ||
157 | case SolverLanguagePackage.NAMED_ELEMENT__NAME: | ||
158 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); | ||
159 | } | ||
160 | return super.eIsSet(featureID); | ||
161 | } | ||
162 | |||
163 | /** | ||
164 | * <!-- begin-user-doc --> | ||
165 | * <!-- end-user-doc --> | ||
166 | * @generated | ||
167 | */ | ||
168 | @Override | ||
169 | public String toString() | ||
170 | { | ||
171 | if (eIsProxy()) return super.toString(); | ||
172 | |||
173 | StringBuilder result = new StringBuilder(super.toString()); | ||
174 | result.append(" (name: "); | ||
175 | result.append(name); | ||
176 | result.append(')'); | ||
177 | return result.toString(); | ||
178 | } | ||
179 | |||
180 | } //NamedElementImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/NumericLiteralImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/NumericLiteralImpl.java deleted file mode 100644 index 04622dfb..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/NumericLiteralImpl.java +++ /dev/null | |||
@@ -1,181 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import java.math.BigDecimal; | ||
7 | |||
8 | import org.eclipse.emf.common.notify.Notification; | ||
9 | |||
10 | import org.eclipse.emf.ecore.EClass; | ||
11 | |||
12 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
13 | |||
14 | import org.eclipse.viatra.solver.language.solverLanguage.NumericLiteral; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
16 | |||
17 | /** | ||
18 | * <!-- begin-user-doc --> | ||
19 | * An implementation of the model object '<em><b>Numeric Literal</b></em>'. | ||
20 | * <!-- end-user-doc --> | ||
21 | * <p> | ||
22 | * The following features are implemented: | ||
23 | * </p> | ||
24 | * <ul> | ||
25 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.NumericLiteralImpl#getValue <em>Value</em>}</li> | ||
26 | * </ul> | ||
27 | * | ||
28 | * @generated | ||
29 | */ | ||
30 | public class NumericLiteralImpl extends LiteralImpl implements NumericLiteral | ||
31 | { | ||
32 | /** | ||
33 | * The default value of the '{@link #getValue() <em>Value</em>}' attribute. | ||
34 | * <!-- begin-user-doc --> | ||
35 | * <!-- end-user-doc --> | ||
36 | * @see #getValue() | ||
37 | * @generated | ||
38 | * @ordered | ||
39 | */ | ||
40 | protected static final BigDecimal VALUE_EDEFAULT = null; | ||
41 | |||
42 | /** | ||
43 | * The cached value of the '{@link #getValue() <em>Value</em>}' attribute. | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @see #getValue() | ||
47 | * @generated | ||
48 | * @ordered | ||
49 | */ | ||
50 | protected BigDecimal value = VALUE_EDEFAULT; | ||
51 | |||
52 | /** | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @generated | ||
56 | */ | ||
57 | protected NumericLiteralImpl() | ||
58 | { | ||
59 | super(); | ||
60 | } | ||
61 | |||
62 | /** | ||
63 | * <!-- begin-user-doc --> | ||
64 | * <!-- end-user-doc --> | ||
65 | * @generated | ||
66 | */ | ||
67 | @Override | ||
68 | protected EClass eStaticClass() | ||
69 | { | ||
70 | return SolverLanguagePackage.Literals.NUMERIC_LITERAL; | ||
71 | } | ||
72 | |||
73 | /** | ||
74 | * <!-- begin-user-doc --> | ||
75 | * <!-- end-user-doc --> | ||
76 | * @generated | ||
77 | */ | ||
78 | @Override | ||
79 | public BigDecimal getValue() | ||
80 | { | ||
81 | return value; | ||
82 | } | ||
83 | |||
84 | /** | ||
85 | * <!-- begin-user-doc --> | ||
86 | * <!-- end-user-doc --> | ||
87 | * @generated | ||
88 | */ | ||
89 | @Override | ||
90 | public void setValue(BigDecimal newValue) | ||
91 | { | ||
92 | BigDecimal oldValue = value; | ||
93 | value = newValue; | ||
94 | if (eNotificationRequired()) | ||
95 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.NUMERIC_LITERAL__VALUE, oldValue, value)); | ||
96 | } | ||
97 | |||
98 | /** | ||
99 | * <!-- begin-user-doc --> | ||
100 | * <!-- end-user-doc --> | ||
101 | * @generated | ||
102 | */ | ||
103 | @Override | ||
104 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
105 | { | ||
106 | switch (featureID) | ||
107 | { | ||
108 | case SolverLanguagePackage.NUMERIC_LITERAL__VALUE: | ||
109 | return getValue(); | ||
110 | } | ||
111 | return super.eGet(featureID, resolve, coreType); | ||
112 | } | ||
113 | |||
114 | /** | ||
115 | * <!-- begin-user-doc --> | ||
116 | * <!-- end-user-doc --> | ||
117 | * @generated | ||
118 | */ | ||
119 | @Override | ||
120 | public void eSet(int featureID, Object newValue) | ||
121 | { | ||
122 | switch (featureID) | ||
123 | { | ||
124 | case SolverLanguagePackage.NUMERIC_LITERAL__VALUE: | ||
125 | setValue((BigDecimal)newValue); | ||
126 | return; | ||
127 | } | ||
128 | super.eSet(featureID, newValue); | ||
129 | } | ||
130 | |||
131 | /** | ||
132 | * <!-- begin-user-doc --> | ||
133 | * <!-- end-user-doc --> | ||
134 | * @generated | ||
135 | */ | ||
136 | @Override | ||
137 | public void eUnset(int featureID) | ||
138 | { | ||
139 | switch (featureID) | ||
140 | { | ||
141 | case SolverLanguagePackage.NUMERIC_LITERAL__VALUE: | ||
142 | setValue(VALUE_EDEFAULT); | ||
143 | return; | ||
144 | } | ||
145 | super.eUnset(featureID); | ||
146 | } | ||
147 | |||
148 | /** | ||
149 | * <!-- begin-user-doc --> | ||
150 | * <!-- end-user-doc --> | ||
151 | * @generated | ||
152 | */ | ||
153 | @Override | ||
154 | public boolean eIsSet(int featureID) | ||
155 | { | ||
156 | switch (featureID) | ||
157 | { | ||
158 | case SolverLanguagePackage.NUMERIC_LITERAL__VALUE: | ||
159 | return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); | ||
160 | } | ||
161 | return super.eIsSet(featureID); | ||
162 | } | ||
163 | |||
164 | /** | ||
165 | * <!-- begin-user-doc --> | ||
166 | * <!-- end-user-doc --> | ||
167 | * @generated | ||
168 | */ | ||
169 | @Override | ||
170 | public String toString() | ||
171 | { | ||
172 | if (eIsProxy()) return super.toString(); | ||
173 | |||
174 | StringBuilder result = new StringBuilder(super.toString()); | ||
175 | result.append(" (value: "); | ||
176 | result.append(value); | ||
177 | result.append(')'); | ||
178 | return result.toString(); | ||
179 | } | ||
180 | |||
181 | } //NumericLiteralImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ObjectiveDefinitionImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ObjectiveDefinitionImpl.java deleted file mode 100644 index 43b16e31..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ObjectiveDefinitionImpl.java +++ /dev/null | |||
@@ -1,270 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | import org.eclipse.emf.common.notify.NotificationChain; | ||
8 | |||
9 | import org.eclipse.emf.ecore.EClass; | ||
10 | import org.eclipse.emf.ecore.InternalEObject; | ||
11 | |||
12 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
13 | |||
14 | import org.eclipse.viatra.solver.language.solverLanguage.Expression; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.ObjectiveDefinition; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.ObjectiveKind; | ||
17 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
18 | |||
19 | /** | ||
20 | * <!-- begin-user-doc --> | ||
21 | * An implementation of the model object '<em><b>Objective Definition</b></em>'. | ||
22 | * <!-- end-user-doc --> | ||
23 | * <p> | ||
24 | * The following features are implemented: | ||
25 | * </p> | ||
26 | * <ul> | ||
27 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ObjectiveDefinitionImpl#getKind <em>Kind</em>}</li> | ||
28 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ObjectiveDefinitionImpl#getObjective <em>Objective</em>}</li> | ||
29 | * </ul> | ||
30 | * | ||
31 | * @generated | ||
32 | */ | ||
33 | public class ObjectiveDefinitionImpl extends StatementImpl implements ObjectiveDefinition | ||
34 | { | ||
35 | /** | ||
36 | * The default value of the '{@link #getKind() <em>Kind</em>}' attribute. | ||
37 | * <!-- begin-user-doc --> | ||
38 | * <!-- end-user-doc --> | ||
39 | * @see #getKind() | ||
40 | * @generated | ||
41 | * @ordered | ||
42 | */ | ||
43 | protected static final ObjectiveKind KIND_EDEFAULT = ObjectiveKind.MINIMIZE; | ||
44 | |||
45 | /** | ||
46 | * The cached value of the '{@link #getKind() <em>Kind</em>}' attribute. | ||
47 | * <!-- begin-user-doc --> | ||
48 | * <!-- end-user-doc --> | ||
49 | * @see #getKind() | ||
50 | * @generated | ||
51 | * @ordered | ||
52 | */ | ||
53 | protected ObjectiveKind kind = KIND_EDEFAULT; | ||
54 | |||
55 | /** | ||
56 | * The cached value of the '{@link #getObjective() <em>Objective</em>}' containment reference. | ||
57 | * <!-- begin-user-doc --> | ||
58 | * <!-- end-user-doc --> | ||
59 | * @see #getObjective() | ||
60 | * @generated | ||
61 | * @ordered | ||
62 | */ | ||
63 | protected Expression objective; | ||
64 | |||
65 | /** | ||
66 | * <!-- begin-user-doc --> | ||
67 | * <!-- end-user-doc --> | ||
68 | * @generated | ||
69 | */ | ||
70 | protected ObjectiveDefinitionImpl() | ||
71 | { | ||
72 | super(); | ||
73 | } | ||
74 | |||
75 | /** | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <!-- end-user-doc --> | ||
78 | * @generated | ||
79 | */ | ||
80 | @Override | ||
81 | protected EClass eStaticClass() | ||
82 | { | ||
83 | return SolverLanguagePackage.Literals.OBJECTIVE_DEFINITION; | ||
84 | } | ||
85 | |||
86 | /** | ||
87 | * <!-- begin-user-doc --> | ||
88 | * <!-- end-user-doc --> | ||
89 | * @generated | ||
90 | */ | ||
91 | @Override | ||
92 | public ObjectiveKind getKind() | ||
93 | { | ||
94 | return kind; | ||
95 | } | ||
96 | |||
97 | /** | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @generated | ||
101 | */ | ||
102 | @Override | ||
103 | public void setKind(ObjectiveKind newKind) | ||
104 | { | ||
105 | ObjectiveKind oldKind = kind; | ||
106 | kind = newKind == null ? KIND_EDEFAULT : newKind; | ||
107 | if (eNotificationRequired()) | ||
108 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.OBJECTIVE_DEFINITION__KIND, oldKind, kind)); | ||
109 | } | ||
110 | |||
111 | /** | ||
112 | * <!-- begin-user-doc --> | ||
113 | * <!-- end-user-doc --> | ||
114 | * @generated | ||
115 | */ | ||
116 | @Override | ||
117 | public Expression getObjective() | ||
118 | { | ||
119 | return objective; | ||
120 | } | ||
121 | |||
122 | /** | ||
123 | * <!-- begin-user-doc --> | ||
124 | * <!-- end-user-doc --> | ||
125 | * @generated | ||
126 | */ | ||
127 | public NotificationChain basicSetObjective(Expression newObjective, NotificationChain msgs) | ||
128 | { | ||
129 | Expression oldObjective = objective; | ||
130 | objective = newObjective; | ||
131 | if (eNotificationRequired()) | ||
132 | { | ||
133 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.OBJECTIVE_DEFINITION__OBJECTIVE, oldObjective, newObjective); | ||
134 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
135 | } | ||
136 | return msgs; | ||
137 | } | ||
138 | |||
139 | /** | ||
140 | * <!-- begin-user-doc --> | ||
141 | * <!-- end-user-doc --> | ||
142 | * @generated | ||
143 | */ | ||
144 | @Override | ||
145 | public void setObjective(Expression newObjective) | ||
146 | { | ||
147 | if (newObjective != objective) | ||
148 | { | ||
149 | NotificationChain msgs = null; | ||
150 | if (objective != null) | ||
151 | msgs = ((InternalEObject)objective).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.OBJECTIVE_DEFINITION__OBJECTIVE, null, msgs); | ||
152 | if (newObjective != null) | ||
153 | msgs = ((InternalEObject)newObjective).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.OBJECTIVE_DEFINITION__OBJECTIVE, null, msgs); | ||
154 | msgs = basicSetObjective(newObjective, msgs); | ||
155 | if (msgs != null) msgs.dispatch(); | ||
156 | } | ||
157 | else if (eNotificationRequired()) | ||
158 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.OBJECTIVE_DEFINITION__OBJECTIVE, newObjective, newObjective)); | ||
159 | } | ||
160 | |||
161 | /** | ||
162 | * <!-- begin-user-doc --> | ||
163 | * <!-- end-user-doc --> | ||
164 | * @generated | ||
165 | */ | ||
166 | @Override | ||
167 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
168 | { | ||
169 | switch (featureID) | ||
170 | { | ||
171 | case SolverLanguagePackage.OBJECTIVE_DEFINITION__OBJECTIVE: | ||
172 | return basicSetObjective(null, msgs); | ||
173 | } | ||
174 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
175 | } | ||
176 | |||
177 | /** | ||
178 | * <!-- begin-user-doc --> | ||
179 | * <!-- end-user-doc --> | ||
180 | * @generated | ||
181 | */ | ||
182 | @Override | ||
183 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
184 | { | ||
185 | switch (featureID) | ||
186 | { | ||
187 | case SolverLanguagePackage.OBJECTIVE_DEFINITION__KIND: | ||
188 | return getKind(); | ||
189 | case SolverLanguagePackage.OBJECTIVE_DEFINITION__OBJECTIVE: | ||
190 | return getObjective(); | ||
191 | } | ||
192 | return super.eGet(featureID, resolve, coreType); | ||
193 | } | ||
194 | |||
195 | /** | ||
196 | * <!-- begin-user-doc --> | ||
197 | * <!-- end-user-doc --> | ||
198 | * @generated | ||
199 | */ | ||
200 | @Override | ||
201 | public void eSet(int featureID, Object newValue) | ||
202 | { | ||
203 | switch (featureID) | ||
204 | { | ||
205 | case SolverLanguagePackage.OBJECTIVE_DEFINITION__KIND: | ||
206 | setKind((ObjectiveKind)newValue); | ||
207 | return; | ||
208 | case SolverLanguagePackage.OBJECTIVE_DEFINITION__OBJECTIVE: | ||
209 | setObjective((Expression)newValue); | ||
210 | return; | ||
211 | } | ||
212 | super.eSet(featureID, newValue); | ||
213 | } | ||
214 | |||
215 | /** | ||
216 | * <!-- begin-user-doc --> | ||
217 | * <!-- end-user-doc --> | ||
218 | * @generated | ||
219 | */ | ||
220 | @Override | ||
221 | public void eUnset(int featureID) | ||
222 | { | ||
223 | switch (featureID) | ||
224 | { | ||
225 | case SolverLanguagePackage.OBJECTIVE_DEFINITION__KIND: | ||
226 | setKind(KIND_EDEFAULT); | ||
227 | return; | ||
228 | case SolverLanguagePackage.OBJECTIVE_DEFINITION__OBJECTIVE: | ||
229 | setObjective((Expression)null); | ||
230 | return; | ||
231 | } | ||
232 | super.eUnset(featureID); | ||
233 | } | ||
234 | |||
235 | /** | ||
236 | * <!-- begin-user-doc --> | ||
237 | * <!-- end-user-doc --> | ||
238 | * @generated | ||
239 | */ | ||
240 | @Override | ||
241 | public boolean eIsSet(int featureID) | ||
242 | { | ||
243 | switch (featureID) | ||
244 | { | ||
245 | case SolverLanguagePackage.OBJECTIVE_DEFINITION__KIND: | ||
246 | return kind != KIND_EDEFAULT; | ||
247 | case SolverLanguagePackage.OBJECTIVE_DEFINITION__OBJECTIVE: | ||
248 | return objective != null; | ||
249 | } | ||
250 | return super.eIsSet(featureID); | ||
251 | } | ||
252 | |||
253 | /** | ||
254 | * <!-- begin-user-doc --> | ||
255 | * <!-- end-user-doc --> | ||
256 | * @generated | ||
257 | */ | ||
258 | @Override | ||
259 | public String toString() | ||
260 | { | ||
261 | if (eIsProxy()) return super.toString(); | ||
262 | |||
263 | StringBuilder result = new StringBuilder(super.toString()); | ||
264 | result.append(" (kind: "); | ||
265 | result.append(kind); | ||
266 | result.append(')'); | ||
267 | return result.toString(); | ||
268 | } | ||
269 | |||
270 | } //ObjectiveDefinitionImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/PredicateDefinitionImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/PredicateDefinitionImpl.java deleted file mode 100644 index 50130f01..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/PredicateDefinitionImpl.java +++ /dev/null | |||
@@ -1,400 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | import org.eclipse.emf.common.notify.NotificationChain; | ||
8 | |||
9 | import org.eclipse.emf.ecore.EClass; | ||
10 | import org.eclipse.emf.ecore.InternalEObject; | ||
11 | |||
12 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
13 | |||
14 | import org.eclipse.viatra.solver.language.solverLanguage.Expression; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.PredicateDefinition; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
17 | |||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * An implementation of the model object '<em><b>Predicate Definition</b></em>'. | ||
21 | * <!-- end-user-doc --> | ||
22 | * <p> | ||
23 | * The following features are implemented: | ||
24 | * </p> | ||
25 | * <ul> | ||
26 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.PredicateDefinitionImpl#getHead <em>Head</em>}</li> | ||
27 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.PredicateDefinitionImpl#getBody <em>Body</em>}</li> | ||
28 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.PredicateDefinitionImpl#isFunctional <em>Functional</em>}</li> | ||
29 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.PredicateDefinitionImpl#isError <em>Error</em>}</li> | ||
30 | * </ul> | ||
31 | * | ||
32 | * @generated | ||
33 | */ | ||
34 | public class PredicateDefinitionImpl extends StatementImpl implements PredicateDefinition | ||
35 | { | ||
36 | /** | ||
37 | * The cached value of the '{@link #getHead() <em>Head</em>}' containment reference. | ||
38 | * <!-- begin-user-doc --> | ||
39 | * <!-- end-user-doc --> | ||
40 | * @see #getHead() | ||
41 | * @generated | ||
42 | * @ordered | ||
43 | */ | ||
44 | protected Expression head; | ||
45 | |||
46 | /** | ||
47 | * The cached value of the '{@link #getBody() <em>Body</em>}' containment reference. | ||
48 | * <!-- begin-user-doc --> | ||
49 | * <!-- end-user-doc --> | ||
50 | * @see #getBody() | ||
51 | * @generated | ||
52 | * @ordered | ||
53 | */ | ||
54 | protected Expression body; | ||
55 | |||
56 | /** | ||
57 | * The default value of the '{@link #isFunctional() <em>Functional</em>}' attribute. | ||
58 | * <!-- begin-user-doc --> | ||
59 | * <!-- end-user-doc --> | ||
60 | * @see #isFunctional() | ||
61 | * @generated | ||
62 | * @ordered | ||
63 | */ | ||
64 | protected static final boolean FUNCTIONAL_EDEFAULT = false; | ||
65 | |||
66 | /** | ||
67 | * The cached value of the '{@link #isFunctional() <em>Functional</em>}' attribute. | ||
68 | * <!-- begin-user-doc --> | ||
69 | * <!-- end-user-doc --> | ||
70 | * @see #isFunctional() | ||
71 | * @generated | ||
72 | * @ordered | ||
73 | */ | ||
74 | protected boolean functional = FUNCTIONAL_EDEFAULT; | ||
75 | |||
76 | /** | ||
77 | * The default value of the '{@link #isError() <em>Error</em>}' attribute. | ||
78 | * <!-- begin-user-doc --> | ||
79 | * <!-- end-user-doc --> | ||
80 | * @see #isError() | ||
81 | * @generated | ||
82 | * @ordered | ||
83 | */ | ||
84 | protected static final boolean ERROR_EDEFAULT = false; | ||
85 | |||
86 | /** | ||
87 | * The cached value of the '{@link #isError() <em>Error</em>}' attribute. | ||
88 | * <!-- begin-user-doc --> | ||
89 | * <!-- end-user-doc --> | ||
90 | * @see #isError() | ||
91 | * @generated | ||
92 | * @ordered | ||
93 | */ | ||
94 | protected boolean error = ERROR_EDEFAULT; | ||
95 | |||
96 | /** | ||
97 | * <!-- begin-user-doc --> | ||
98 | * <!-- end-user-doc --> | ||
99 | * @generated | ||
100 | */ | ||
101 | protected PredicateDefinitionImpl() | ||
102 | { | ||
103 | super(); | ||
104 | } | ||
105 | |||
106 | /** | ||
107 | * <!-- begin-user-doc --> | ||
108 | * <!-- end-user-doc --> | ||
109 | * @generated | ||
110 | */ | ||
111 | @Override | ||
112 | protected EClass eStaticClass() | ||
113 | { | ||
114 | return SolverLanguagePackage.Literals.PREDICATE_DEFINITION; | ||
115 | } | ||
116 | |||
117 | /** | ||
118 | * <!-- begin-user-doc --> | ||
119 | * <!-- end-user-doc --> | ||
120 | * @generated | ||
121 | */ | ||
122 | @Override | ||
123 | public Expression getHead() | ||
124 | { | ||
125 | return head; | ||
126 | } | ||
127 | |||
128 | /** | ||
129 | * <!-- begin-user-doc --> | ||
130 | * <!-- end-user-doc --> | ||
131 | * @generated | ||
132 | */ | ||
133 | public NotificationChain basicSetHead(Expression newHead, NotificationChain msgs) | ||
134 | { | ||
135 | Expression oldHead = head; | ||
136 | head = newHead; | ||
137 | if (eNotificationRequired()) | ||
138 | { | ||
139 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.PREDICATE_DEFINITION__HEAD, oldHead, newHead); | ||
140 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
141 | } | ||
142 | return msgs; | ||
143 | } | ||
144 | |||
145 | /** | ||
146 | * <!-- begin-user-doc --> | ||
147 | * <!-- end-user-doc --> | ||
148 | * @generated | ||
149 | */ | ||
150 | @Override | ||
151 | public void setHead(Expression newHead) | ||
152 | { | ||
153 | if (newHead != head) | ||
154 | { | ||
155 | NotificationChain msgs = null; | ||
156 | if (head != null) | ||
157 | msgs = ((InternalEObject)head).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.PREDICATE_DEFINITION__HEAD, null, msgs); | ||
158 | if (newHead != null) | ||
159 | msgs = ((InternalEObject)newHead).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.PREDICATE_DEFINITION__HEAD, null, msgs); | ||
160 | msgs = basicSetHead(newHead, msgs); | ||
161 | if (msgs != null) msgs.dispatch(); | ||
162 | } | ||
163 | else if (eNotificationRequired()) | ||
164 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.PREDICATE_DEFINITION__HEAD, newHead, newHead)); | ||
165 | } | ||
166 | |||
167 | /** | ||
168 | * <!-- begin-user-doc --> | ||
169 | * <!-- end-user-doc --> | ||
170 | * @generated | ||
171 | */ | ||
172 | @Override | ||
173 | public Expression getBody() | ||
174 | { | ||
175 | return body; | ||
176 | } | ||
177 | |||
178 | /** | ||
179 | * <!-- begin-user-doc --> | ||
180 | * <!-- end-user-doc --> | ||
181 | * @generated | ||
182 | */ | ||
183 | public NotificationChain basicSetBody(Expression newBody, NotificationChain msgs) | ||
184 | { | ||
185 | Expression oldBody = body; | ||
186 | body = newBody; | ||
187 | if (eNotificationRequired()) | ||
188 | { | ||
189 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.PREDICATE_DEFINITION__BODY, oldBody, newBody); | ||
190 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
191 | } | ||
192 | return msgs; | ||
193 | } | ||
194 | |||
195 | /** | ||
196 | * <!-- begin-user-doc --> | ||
197 | * <!-- end-user-doc --> | ||
198 | * @generated | ||
199 | */ | ||
200 | @Override | ||
201 | public void setBody(Expression newBody) | ||
202 | { | ||
203 | if (newBody != body) | ||
204 | { | ||
205 | NotificationChain msgs = null; | ||
206 | if (body != null) | ||
207 | msgs = ((InternalEObject)body).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.PREDICATE_DEFINITION__BODY, null, msgs); | ||
208 | if (newBody != null) | ||
209 | msgs = ((InternalEObject)newBody).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.PREDICATE_DEFINITION__BODY, null, msgs); | ||
210 | msgs = basicSetBody(newBody, msgs); | ||
211 | if (msgs != null) msgs.dispatch(); | ||
212 | } | ||
213 | else if (eNotificationRequired()) | ||
214 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.PREDICATE_DEFINITION__BODY, newBody, newBody)); | ||
215 | } | ||
216 | |||
217 | /** | ||
218 | * <!-- begin-user-doc --> | ||
219 | * <!-- end-user-doc --> | ||
220 | * @generated | ||
221 | */ | ||
222 | @Override | ||
223 | public boolean isFunctional() | ||
224 | { | ||
225 | return functional; | ||
226 | } | ||
227 | |||
228 | /** | ||
229 | * <!-- begin-user-doc --> | ||
230 | * <!-- end-user-doc --> | ||
231 | * @generated | ||
232 | */ | ||
233 | @Override | ||
234 | public void setFunctional(boolean newFunctional) | ||
235 | { | ||
236 | boolean oldFunctional = functional; | ||
237 | functional = newFunctional; | ||
238 | if (eNotificationRequired()) | ||
239 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.PREDICATE_DEFINITION__FUNCTIONAL, oldFunctional, functional)); | ||
240 | } | ||
241 | |||
242 | /** | ||
243 | * <!-- begin-user-doc --> | ||
244 | * <!-- end-user-doc --> | ||
245 | * @generated | ||
246 | */ | ||
247 | @Override | ||
248 | public boolean isError() | ||
249 | { | ||
250 | return error; | ||
251 | } | ||
252 | |||
253 | /** | ||
254 | * <!-- begin-user-doc --> | ||
255 | * <!-- end-user-doc --> | ||
256 | * @generated | ||
257 | */ | ||
258 | @Override | ||
259 | public void setError(boolean newError) | ||
260 | { | ||
261 | boolean oldError = error; | ||
262 | error = newError; | ||
263 | if (eNotificationRequired()) | ||
264 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.PREDICATE_DEFINITION__ERROR, oldError, error)); | ||
265 | } | ||
266 | |||
267 | /** | ||
268 | * <!-- begin-user-doc --> | ||
269 | * <!-- end-user-doc --> | ||
270 | * @generated | ||
271 | */ | ||
272 | @Override | ||
273 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
274 | { | ||
275 | switch (featureID) | ||
276 | { | ||
277 | case SolverLanguagePackage.PREDICATE_DEFINITION__HEAD: | ||
278 | return basicSetHead(null, msgs); | ||
279 | case SolverLanguagePackage.PREDICATE_DEFINITION__BODY: | ||
280 | return basicSetBody(null, msgs); | ||
281 | } | ||
282 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
283 | } | ||
284 | |||
285 | /** | ||
286 | * <!-- begin-user-doc --> | ||
287 | * <!-- end-user-doc --> | ||
288 | * @generated | ||
289 | */ | ||
290 | @Override | ||
291 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
292 | { | ||
293 | switch (featureID) | ||
294 | { | ||
295 | case SolverLanguagePackage.PREDICATE_DEFINITION__HEAD: | ||
296 | return getHead(); | ||
297 | case SolverLanguagePackage.PREDICATE_DEFINITION__BODY: | ||
298 | return getBody(); | ||
299 | case SolverLanguagePackage.PREDICATE_DEFINITION__FUNCTIONAL: | ||
300 | return isFunctional(); | ||
301 | case SolverLanguagePackage.PREDICATE_DEFINITION__ERROR: | ||
302 | return isError(); | ||
303 | } | ||
304 | return super.eGet(featureID, resolve, coreType); | ||
305 | } | ||
306 | |||
307 | /** | ||
308 | * <!-- begin-user-doc --> | ||
309 | * <!-- end-user-doc --> | ||
310 | * @generated | ||
311 | */ | ||
312 | @Override | ||
313 | public void eSet(int featureID, Object newValue) | ||
314 | { | ||
315 | switch (featureID) | ||
316 | { | ||
317 | case SolverLanguagePackage.PREDICATE_DEFINITION__HEAD: | ||
318 | setHead((Expression)newValue); | ||
319 | return; | ||
320 | case SolverLanguagePackage.PREDICATE_DEFINITION__BODY: | ||
321 | setBody((Expression)newValue); | ||
322 | return; | ||
323 | case SolverLanguagePackage.PREDICATE_DEFINITION__FUNCTIONAL: | ||
324 | setFunctional((Boolean)newValue); | ||
325 | return; | ||
326 | case SolverLanguagePackage.PREDICATE_DEFINITION__ERROR: | ||
327 | setError((Boolean)newValue); | ||
328 | return; | ||
329 | } | ||
330 | super.eSet(featureID, newValue); | ||
331 | } | ||
332 | |||
333 | /** | ||
334 | * <!-- begin-user-doc --> | ||
335 | * <!-- end-user-doc --> | ||
336 | * @generated | ||
337 | */ | ||
338 | @Override | ||
339 | public void eUnset(int featureID) | ||
340 | { | ||
341 | switch (featureID) | ||
342 | { | ||
343 | case SolverLanguagePackage.PREDICATE_DEFINITION__HEAD: | ||
344 | setHead((Expression)null); | ||
345 | return; | ||
346 | case SolverLanguagePackage.PREDICATE_DEFINITION__BODY: | ||
347 | setBody((Expression)null); | ||
348 | return; | ||
349 | case SolverLanguagePackage.PREDICATE_DEFINITION__FUNCTIONAL: | ||
350 | setFunctional(FUNCTIONAL_EDEFAULT); | ||
351 | return; | ||
352 | case SolverLanguagePackage.PREDICATE_DEFINITION__ERROR: | ||
353 | setError(ERROR_EDEFAULT); | ||
354 | return; | ||
355 | } | ||
356 | super.eUnset(featureID); | ||
357 | } | ||
358 | |||
359 | /** | ||
360 | * <!-- begin-user-doc --> | ||
361 | * <!-- end-user-doc --> | ||
362 | * @generated | ||
363 | */ | ||
364 | @Override | ||
365 | public boolean eIsSet(int featureID) | ||
366 | { | ||
367 | switch (featureID) | ||
368 | { | ||
369 | case SolverLanguagePackage.PREDICATE_DEFINITION__HEAD: | ||
370 | return head != null; | ||
371 | case SolverLanguagePackage.PREDICATE_DEFINITION__BODY: | ||
372 | return body != null; | ||
373 | case SolverLanguagePackage.PREDICATE_DEFINITION__FUNCTIONAL: | ||
374 | return functional != FUNCTIONAL_EDEFAULT; | ||
375 | case SolverLanguagePackage.PREDICATE_DEFINITION__ERROR: | ||
376 | return error != ERROR_EDEFAULT; | ||
377 | } | ||
378 | return super.eIsSet(featureID); | ||
379 | } | ||
380 | |||
381 | /** | ||
382 | * <!-- begin-user-doc --> | ||
383 | * <!-- end-user-doc --> | ||
384 | * @generated | ||
385 | */ | ||
386 | @Override | ||
387 | public String toString() | ||
388 | { | ||
389 | if (eIsProxy()) return super.toString(); | ||
390 | |||
391 | StringBuilder result = new StringBuilder(super.toString()); | ||
392 | result.append(" (functional: "); | ||
393 | result.append(functional); | ||
394 | result.append(", error: "); | ||
395 | result.append(error); | ||
396 | result.append(')'); | ||
397 | return result.toString(); | ||
398 | } | ||
399 | |||
400 | } //PredicateDefinitionImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ProblemImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ProblemImpl.java deleted file mode 100644 index 744e604d..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ProblemImpl.java +++ /dev/null | |||
@@ -1,169 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import java.util.Collection; | ||
7 | |||
8 | import org.eclipse.emf.common.notify.NotificationChain; | ||
9 | |||
10 | import org.eclipse.emf.common.util.EList; | ||
11 | |||
12 | import org.eclipse.emf.ecore.EClass; | ||
13 | import org.eclipse.emf.ecore.InternalEObject; | ||
14 | |||
15 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
16 | |||
17 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
18 | import org.eclipse.emf.ecore.util.InternalEList; | ||
19 | |||
20 | import org.eclipse.viatra.solver.language.solverLanguage.Problem; | ||
21 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
22 | import org.eclipse.viatra.solver.language.solverLanguage.Statement; | ||
23 | |||
24 | /** | ||
25 | * <!-- begin-user-doc --> | ||
26 | * An implementation of the model object '<em><b>Problem</b></em>'. | ||
27 | * <!-- end-user-doc --> | ||
28 | * <p> | ||
29 | * The following features are implemented: | ||
30 | * </p> | ||
31 | * <ul> | ||
32 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ProblemImpl#getStatements <em>Statements</em>}</li> | ||
33 | * </ul> | ||
34 | * | ||
35 | * @generated | ||
36 | */ | ||
37 | public class ProblemImpl extends MinimalEObjectImpl.Container implements Problem | ||
38 | { | ||
39 | /** | ||
40 | * The cached value of the '{@link #getStatements() <em>Statements</em>}' containment reference list. | ||
41 | * <!-- begin-user-doc --> | ||
42 | * <!-- end-user-doc --> | ||
43 | * @see #getStatements() | ||
44 | * @generated | ||
45 | * @ordered | ||
46 | */ | ||
47 | protected EList<Statement> statements; | ||
48 | |||
49 | /** | ||
50 | * <!-- begin-user-doc --> | ||
51 | * <!-- end-user-doc --> | ||
52 | * @generated | ||
53 | */ | ||
54 | protected ProblemImpl() | ||
55 | { | ||
56 | super(); | ||
57 | } | ||
58 | |||
59 | /** | ||
60 | * <!-- begin-user-doc --> | ||
61 | * <!-- end-user-doc --> | ||
62 | * @generated | ||
63 | */ | ||
64 | @Override | ||
65 | protected EClass eStaticClass() | ||
66 | { | ||
67 | return SolverLanguagePackage.Literals.PROBLEM; | ||
68 | } | ||
69 | |||
70 | /** | ||
71 | * <!-- begin-user-doc --> | ||
72 | * <!-- end-user-doc --> | ||
73 | * @generated | ||
74 | */ | ||
75 | @Override | ||
76 | public EList<Statement> getStatements() | ||
77 | { | ||
78 | if (statements == null) | ||
79 | { | ||
80 | statements = new EObjectContainmentEList<Statement>(Statement.class, this, SolverLanguagePackage.PROBLEM__STATEMENTS); | ||
81 | } | ||
82 | return statements; | ||
83 | } | ||
84 | |||
85 | /** | ||
86 | * <!-- begin-user-doc --> | ||
87 | * <!-- end-user-doc --> | ||
88 | * @generated | ||
89 | */ | ||
90 | @Override | ||
91 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
92 | { | ||
93 | switch (featureID) | ||
94 | { | ||
95 | case SolverLanguagePackage.PROBLEM__STATEMENTS: | ||
96 | return ((InternalEList<?>)getStatements()).basicRemove(otherEnd, msgs); | ||
97 | } | ||
98 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
99 | } | ||
100 | |||
101 | /** | ||
102 | * <!-- begin-user-doc --> | ||
103 | * <!-- end-user-doc --> | ||
104 | * @generated | ||
105 | */ | ||
106 | @Override | ||
107 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
108 | { | ||
109 | switch (featureID) | ||
110 | { | ||
111 | case SolverLanguagePackage.PROBLEM__STATEMENTS: | ||
112 | return getStatements(); | ||
113 | } | ||
114 | return super.eGet(featureID, resolve, coreType); | ||
115 | } | ||
116 | |||
117 | /** | ||
118 | * <!-- begin-user-doc --> | ||
119 | * <!-- end-user-doc --> | ||
120 | * @generated | ||
121 | */ | ||
122 | @SuppressWarnings("unchecked") | ||
123 | @Override | ||
124 | public void eSet(int featureID, Object newValue) | ||
125 | { | ||
126 | switch (featureID) | ||
127 | { | ||
128 | case SolverLanguagePackage.PROBLEM__STATEMENTS: | ||
129 | getStatements().clear(); | ||
130 | getStatements().addAll((Collection<? extends Statement>)newValue); | ||
131 | return; | ||
132 | } | ||
133 | super.eSet(featureID, newValue); | ||
134 | } | ||
135 | |||
136 | /** | ||
137 | * <!-- begin-user-doc --> | ||
138 | * <!-- end-user-doc --> | ||
139 | * @generated | ||
140 | */ | ||
141 | @Override | ||
142 | public void eUnset(int featureID) | ||
143 | { | ||
144 | switch (featureID) | ||
145 | { | ||
146 | case SolverLanguagePackage.PROBLEM__STATEMENTS: | ||
147 | getStatements().clear(); | ||
148 | return; | ||
149 | } | ||
150 | super.eUnset(featureID); | ||
151 | } | ||
152 | |||
153 | /** | ||
154 | * <!-- begin-user-doc --> | ||
155 | * <!-- end-user-doc --> | ||
156 | * @generated | ||
157 | */ | ||
158 | @Override | ||
159 | public boolean eIsSet(int featureID) | ||
160 | { | ||
161 | switch (featureID) | ||
162 | { | ||
163 | case SolverLanguagePackage.PROBLEM__STATEMENTS: | ||
164 | return statements != null && !statements.isEmpty(); | ||
165 | } | ||
166 | return super.eIsSet(featureID); | ||
167 | } | ||
168 | |||
169 | } //ProblemImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ReferenceImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ReferenceImpl.java deleted file mode 100644 index be44c0e9..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ReferenceImpl.java +++ /dev/null | |||
@@ -1,175 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | import org.eclipse.emf.ecore.InternalEObject; | ||
10 | |||
11 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
12 | |||
13 | import org.eclipse.viatra.solver.language.solverLanguage.NamedElement; | ||
14 | import org.eclipse.viatra.solver.language.solverLanguage.Reference; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
16 | |||
17 | /** | ||
18 | * <!-- begin-user-doc --> | ||
19 | * An implementation of the model object '<em><b>Reference</b></em>'. | ||
20 | * <!-- end-user-doc --> | ||
21 | * <p> | ||
22 | * The following features are implemented: | ||
23 | * </p> | ||
24 | * <ul> | ||
25 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ReferenceImpl#getReferred <em>Referred</em>}</li> | ||
26 | * </ul> | ||
27 | * | ||
28 | * @generated | ||
29 | */ | ||
30 | public class ReferenceImpl extends ExpressionImpl implements Reference | ||
31 | { | ||
32 | /** | ||
33 | * The cached value of the '{@link #getReferred() <em>Referred</em>}' reference. | ||
34 | * <!-- begin-user-doc --> | ||
35 | * <!-- end-user-doc --> | ||
36 | * @see #getReferred() | ||
37 | * @generated | ||
38 | * @ordered | ||
39 | */ | ||
40 | protected NamedElement referred; | ||
41 | |||
42 | /** | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @generated | ||
46 | */ | ||
47 | protected ReferenceImpl() | ||
48 | { | ||
49 | super(); | ||
50 | } | ||
51 | |||
52 | /** | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @generated | ||
56 | */ | ||
57 | @Override | ||
58 | protected EClass eStaticClass() | ||
59 | { | ||
60 | return SolverLanguagePackage.Literals.REFERENCE; | ||
61 | } | ||
62 | |||
63 | /** | ||
64 | * <!-- begin-user-doc --> | ||
65 | * <!-- end-user-doc --> | ||
66 | * @generated | ||
67 | */ | ||
68 | @Override | ||
69 | public NamedElement getReferred() | ||
70 | { | ||
71 | if (referred != null && referred.eIsProxy()) | ||
72 | { | ||
73 | InternalEObject oldReferred = (InternalEObject)referred; | ||
74 | referred = (NamedElement)eResolveProxy(oldReferred); | ||
75 | if (referred != oldReferred) | ||
76 | { | ||
77 | if (eNotificationRequired()) | ||
78 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, SolverLanguagePackage.REFERENCE__REFERRED, oldReferred, referred)); | ||
79 | } | ||
80 | } | ||
81 | return referred; | ||
82 | } | ||
83 | |||
84 | /** | ||
85 | * <!-- begin-user-doc --> | ||
86 | * <!-- end-user-doc --> | ||
87 | * @generated | ||
88 | */ | ||
89 | public NamedElement basicGetReferred() | ||
90 | { | ||
91 | return referred; | ||
92 | } | ||
93 | |||
94 | /** | ||
95 | * <!-- begin-user-doc --> | ||
96 | * <!-- end-user-doc --> | ||
97 | * @generated | ||
98 | */ | ||
99 | @Override | ||
100 | public void setReferred(NamedElement newReferred) | ||
101 | { | ||
102 | NamedElement oldReferred = referred; | ||
103 | referred = newReferred; | ||
104 | if (eNotificationRequired()) | ||
105 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.REFERENCE__REFERRED, oldReferred, referred)); | ||
106 | } | ||
107 | |||
108 | /** | ||
109 | * <!-- begin-user-doc --> | ||
110 | * <!-- end-user-doc --> | ||
111 | * @generated | ||
112 | */ | ||
113 | @Override | ||
114 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
115 | { | ||
116 | switch (featureID) | ||
117 | { | ||
118 | case SolverLanguagePackage.REFERENCE__REFERRED: | ||
119 | if (resolve) return getReferred(); | ||
120 | return basicGetReferred(); | ||
121 | } | ||
122 | return super.eGet(featureID, resolve, coreType); | ||
123 | } | ||
124 | |||
125 | /** | ||
126 | * <!-- begin-user-doc --> | ||
127 | * <!-- end-user-doc --> | ||
128 | * @generated | ||
129 | */ | ||
130 | @Override | ||
131 | public void eSet(int featureID, Object newValue) | ||
132 | { | ||
133 | switch (featureID) | ||
134 | { | ||
135 | case SolverLanguagePackage.REFERENCE__REFERRED: | ||
136 | setReferred((NamedElement)newValue); | ||
137 | return; | ||
138 | } | ||
139 | super.eSet(featureID, newValue); | ||
140 | } | ||
141 | |||
142 | /** | ||
143 | * <!-- begin-user-doc --> | ||
144 | * <!-- end-user-doc --> | ||
145 | * @generated | ||
146 | */ | ||
147 | @Override | ||
148 | public void eUnset(int featureID) | ||
149 | { | ||
150 | switch (featureID) | ||
151 | { | ||
152 | case SolverLanguagePackage.REFERENCE__REFERRED: | ||
153 | setReferred((NamedElement)null); | ||
154 | return; | ||
155 | } | ||
156 | super.eUnset(featureID); | ||
157 | } | ||
158 | |||
159 | /** | ||
160 | * <!-- begin-user-doc --> | ||
161 | * <!-- end-user-doc --> | ||
162 | * @generated | ||
163 | */ | ||
164 | @Override | ||
165 | public boolean eIsSet(int featureID) | ||
166 | { | ||
167 | switch (featureID) | ||
168 | { | ||
169 | case SolverLanguagePackage.REFERENCE__REFERRED: | ||
170 | return referred != null; | ||
171 | } | ||
172 | return super.eIsSet(featureID); | ||
173 | } | ||
174 | |||
175 | } //ReferenceImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ScopeDefinitionImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ScopeDefinitionImpl.java deleted file mode 100644 index be109307..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ScopeDefinitionImpl.java +++ /dev/null | |||
@@ -1,175 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | import org.eclipse.emf.ecore.InternalEObject; | ||
10 | |||
11 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
12 | |||
13 | import org.eclipse.viatra.solver.language.solverLanguage.NamedElement; | ||
14 | import org.eclipse.viatra.solver.language.solverLanguage.ScopeDefinition; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
16 | |||
17 | /** | ||
18 | * <!-- begin-user-doc --> | ||
19 | * An implementation of the model object '<em><b>Scope Definition</b></em>'. | ||
20 | * <!-- end-user-doc --> | ||
21 | * <p> | ||
22 | * The following features are implemented: | ||
23 | * </p> | ||
24 | * <ul> | ||
25 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ScopeDefinitionImpl#getType <em>Type</em>}</li> | ||
26 | * </ul> | ||
27 | * | ||
28 | * @generated | ||
29 | */ | ||
30 | public class ScopeDefinitionImpl extends StatementImpl implements ScopeDefinition | ||
31 | { | ||
32 | /** | ||
33 | * The cached value of the '{@link #getType() <em>Type</em>}' reference. | ||
34 | * <!-- begin-user-doc --> | ||
35 | * <!-- end-user-doc --> | ||
36 | * @see #getType() | ||
37 | * @generated | ||
38 | * @ordered | ||
39 | */ | ||
40 | protected NamedElement type; | ||
41 | |||
42 | /** | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @generated | ||
46 | */ | ||
47 | protected ScopeDefinitionImpl() | ||
48 | { | ||
49 | super(); | ||
50 | } | ||
51 | |||
52 | /** | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @generated | ||
56 | */ | ||
57 | @Override | ||
58 | protected EClass eStaticClass() | ||
59 | { | ||
60 | return SolverLanguagePackage.Literals.SCOPE_DEFINITION; | ||
61 | } | ||
62 | |||
63 | /** | ||
64 | * <!-- begin-user-doc --> | ||
65 | * <!-- end-user-doc --> | ||
66 | * @generated | ||
67 | */ | ||
68 | @Override | ||
69 | public NamedElement getType() | ||
70 | { | ||
71 | if (type != null && type.eIsProxy()) | ||
72 | { | ||
73 | InternalEObject oldType = (InternalEObject)type; | ||
74 | type = (NamedElement)eResolveProxy(oldType); | ||
75 | if (type != oldType) | ||
76 | { | ||
77 | if (eNotificationRequired()) | ||
78 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, SolverLanguagePackage.SCOPE_DEFINITION__TYPE, oldType, type)); | ||
79 | } | ||
80 | } | ||
81 | return type; | ||
82 | } | ||
83 | |||
84 | /** | ||
85 | * <!-- begin-user-doc --> | ||
86 | * <!-- end-user-doc --> | ||
87 | * @generated | ||
88 | */ | ||
89 | public NamedElement basicGetType() | ||
90 | { | ||
91 | return type; | ||
92 | } | ||
93 | |||
94 | /** | ||
95 | * <!-- begin-user-doc --> | ||
96 | * <!-- end-user-doc --> | ||
97 | * @generated | ||
98 | */ | ||
99 | @Override | ||
100 | public void setType(NamedElement newType) | ||
101 | { | ||
102 | NamedElement oldType = type; | ||
103 | type = newType; | ||
104 | if (eNotificationRequired()) | ||
105 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.SCOPE_DEFINITION__TYPE, oldType, type)); | ||
106 | } | ||
107 | |||
108 | /** | ||
109 | * <!-- begin-user-doc --> | ||
110 | * <!-- end-user-doc --> | ||
111 | * @generated | ||
112 | */ | ||
113 | @Override | ||
114 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
115 | { | ||
116 | switch (featureID) | ||
117 | { | ||
118 | case SolverLanguagePackage.SCOPE_DEFINITION__TYPE: | ||
119 | if (resolve) return getType(); | ||
120 | return basicGetType(); | ||
121 | } | ||
122 | return super.eGet(featureID, resolve, coreType); | ||
123 | } | ||
124 | |||
125 | /** | ||
126 | * <!-- begin-user-doc --> | ||
127 | * <!-- end-user-doc --> | ||
128 | * @generated | ||
129 | */ | ||
130 | @Override | ||
131 | public void eSet(int featureID, Object newValue) | ||
132 | { | ||
133 | switch (featureID) | ||
134 | { | ||
135 | case SolverLanguagePackage.SCOPE_DEFINITION__TYPE: | ||
136 | setType((NamedElement)newValue); | ||
137 | return; | ||
138 | } | ||
139 | super.eSet(featureID, newValue); | ||
140 | } | ||
141 | |||
142 | /** | ||
143 | * <!-- begin-user-doc --> | ||
144 | * <!-- end-user-doc --> | ||
145 | * @generated | ||
146 | */ | ||
147 | @Override | ||
148 | public void eUnset(int featureID) | ||
149 | { | ||
150 | switch (featureID) | ||
151 | { | ||
152 | case SolverLanguagePackage.SCOPE_DEFINITION__TYPE: | ||
153 | setType((NamedElement)null); | ||
154 | return; | ||
155 | } | ||
156 | super.eUnset(featureID); | ||
157 | } | ||
158 | |||
159 | /** | ||
160 | * <!-- begin-user-doc --> | ||
161 | * <!-- end-user-doc --> | ||
162 | * @generated | ||
163 | */ | ||
164 | @Override | ||
165 | public boolean eIsSet(int featureID) | ||
166 | { | ||
167 | switch (featureID) | ||
168 | { | ||
169 | case SolverLanguagePackage.SCOPE_DEFINITION__TYPE: | ||
170 | return type != null; | ||
171 | } | ||
172 | return super.eIsSet(featureID); | ||
173 | } | ||
174 | |||
175 | } //ScopeDefinitionImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/SolverLanguageFactoryImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/SolverLanguageFactoryImpl.java deleted file mode 100644 index 509d7568..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/SolverLanguageFactoryImpl.java +++ /dev/null | |||
@@ -1,894 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | import org.eclipse.emf.ecore.EDataType; | ||
8 | import org.eclipse.emf.ecore.EObject; | ||
9 | import org.eclipse.emf.ecore.EPackage; | ||
10 | |||
11 | import org.eclipse.emf.ecore.impl.EFactoryImpl; | ||
12 | |||
13 | import org.eclipse.emf.ecore.plugin.EcorePlugin; | ||
14 | |||
15 | import org.eclipse.viatra.solver.language.solverLanguage.*; | ||
16 | |||
17 | /** | ||
18 | * <!-- begin-user-doc --> | ||
19 | * An implementation of the model <b>Factory</b>. | ||
20 | * <!-- end-user-doc --> | ||
21 | * @generated | ||
22 | */ | ||
23 | public class SolverLanguageFactoryImpl extends EFactoryImpl implements SolverLanguageFactory | ||
24 | { | ||
25 | /** | ||
26 | * Creates the default factory implementation. | ||
27 | * <!-- begin-user-doc --> | ||
28 | * <!-- end-user-doc --> | ||
29 | * @generated | ||
30 | */ | ||
31 | public static SolverLanguageFactory init() | ||
32 | { | ||
33 | try | ||
34 | { | ||
35 | SolverLanguageFactory theSolverLanguageFactory = (SolverLanguageFactory)EPackage.Registry.INSTANCE.getEFactory(SolverLanguagePackage.eNS_URI); | ||
36 | if (theSolverLanguageFactory != null) | ||
37 | { | ||
38 | return theSolverLanguageFactory; | ||
39 | } | ||
40 | } | ||
41 | catch (Exception exception) | ||
42 | { | ||
43 | EcorePlugin.INSTANCE.log(exception); | ||
44 | } | ||
45 | return new SolverLanguageFactoryImpl(); | ||
46 | } | ||
47 | |||
48 | /** | ||
49 | * Creates an instance of the factory. | ||
50 | * <!-- begin-user-doc --> | ||
51 | * <!-- end-user-doc --> | ||
52 | * @generated | ||
53 | */ | ||
54 | public SolverLanguageFactoryImpl() | ||
55 | { | ||
56 | super(); | ||
57 | } | ||
58 | |||
59 | /** | ||
60 | * <!-- begin-user-doc --> | ||
61 | * <!-- end-user-doc --> | ||
62 | * @generated | ||
63 | */ | ||
64 | @Override | ||
65 | public EObject create(EClass eClass) | ||
66 | { | ||
67 | switch (eClass.getClassifierID()) | ||
68 | { | ||
69 | case SolverLanguagePackage.PROBLEM: return createProblem(); | ||
70 | case SolverLanguagePackage.STATEMENT: return createStatement(); | ||
71 | case SolverLanguagePackage.PREDICATE_DEFINITION: return createPredicateDefinition(); | ||
72 | case SolverLanguagePackage.UNNAMED_ERROR_PREDIATE_DEFINITION: return createUnnamedErrorPrediateDefinition(); | ||
73 | case SolverLanguagePackage.DEFAULT_DEFINITION: return createDefaultDefinition(); | ||
74 | case SolverLanguagePackage.EXTERN_PREDICATE_DEFINITION: return createExternPredicateDefinition(); | ||
75 | case SolverLanguagePackage.METRIC_DEFINITION: return createMetricDefinition(); | ||
76 | case SolverLanguagePackage.EXTERN_METRIC_DEFINITION: return createExternMetricDefinition(); | ||
77 | case SolverLanguagePackage.EXPRESSION: return createExpression(); | ||
78 | case SolverLanguagePackage.IF_ELSE: return createIfElse(); | ||
79 | case SolverLanguagePackage.CASE: return createCase(); | ||
80 | case SolverLanguagePackage.COUNT: return createCount(); | ||
81 | case SolverLanguagePackage.AGGREGATION: return createAggregation(); | ||
82 | case SolverLanguagePackage.CALL: return createCall(); | ||
83 | case SolverLanguagePackage.ARGUMENT_LIST: return createArgumentList(); | ||
84 | case SolverLanguagePackage.ARGUMENT: return createArgument(); | ||
85 | case SolverLanguagePackage.EXPRESSION_ARGUMENT: return createExpressionArgument(); | ||
86 | case SolverLanguagePackage.STAR_ARGUMENT: return createStarArgument(); | ||
87 | case SolverLanguagePackage.TYPED_ARGUMENT: return createTypedArgument(); | ||
88 | case SolverLanguagePackage.TYPED_STAR_ARGUMENT: return createTypedStarArgument(); | ||
89 | case SolverLanguagePackage.REFERENCE: return createReference(); | ||
90 | case SolverLanguagePackage.INTERVAL: return createInterval(); | ||
91 | case SolverLanguagePackage.LITERAL: return createLiteral(); | ||
92 | case SolverLanguagePackage.LOGIC_LITERAL: return createLogicLiteral(); | ||
93 | case SolverLanguagePackage.NUMERIC_LITERAL: return createNumericLiteral(); | ||
94 | case SolverLanguagePackage.INFINITY_LITERAL: return createInfinityLiteral(); | ||
95 | case SolverLanguagePackage.EMPTY_INTERVAL_LITERAL: return createEmptyIntervalLiteral(); | ||
96 | case SolverLanguagePackage.STRING_LITERAL: return createStringLiteral(); | ||
97 | case SolverLanguagePackage.CLASS_DEFINITION: return createClassDefinition(); | ||
98 | case SolverLanguagePackage.MEMBER_DEFINITION: return createMemberDefinition(); | ||
99 | case SolverLanguagePackage.MULTIPLICITY: return createMultiplicity(); | ||
100 | case SolverLanguagePackage.MANY_MULTIPLICITY: return createManyMultiplicity(); | ||
101 | case SolverLanguagePackage.EXACT_MULTIPLICITY: return createExactMultiplicity(); | ||
102 | case SolverLanguagePackage.BOUNDED_MULTIPLICITY: return createBoundedMultiplicity(); | ||
103 | case SolverLanguagePackage.SCOPE_DEFINITION: return createScopeDefinition(); | ||
104 | case SolverLanguagePackage.EXACT_SCOPE_DEFINITION: return createExactScopeDefinition(); | ||
105 | case SolverLanguagePackage.BOUNDED_SCOPE_DEFINITION: return createBoundedScopeDefinition(); | ||
106 | case SolverLanguagePackage.LOWER_BOUNDED_SCOPE_DEFINITION: return createLowerBoundedScopeDefinition(); | ||
107 | case SolverLanguagePackage.OBJECTIVE_DEFINITION: return createObjectiveDefinition(); | ||
108 | case SolverLanguagePackage.NAMED_ELEMENT: return createNamedElement(); | ||
109 | case SolverLanguagePackage.ASSERTION: return createAssertion(); | ||
110 | case SolverLanguagePackage.DISJUNCTION: return createDisjunction(); | ||
111 | case SolverLanguagePackage.SWITCH: return createSwitch(); | ||
112 | case SolverLanguagePackage.CONJUNCTION: return createConjunction(); | ||
113 | case SolverLanguagePackage.COMPARISON: return createComparison(); | ||
114 | case SolverLanguagePackage.BINARY_EXPRESSION: return createBinaryExpression(); | ||
115 | case SolverLanguagePackage.UNARY_EXPRESSION: return createUnaryExpression(); | ||
116 | default: | ||
117 | throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); | ||
118 | } | ||
119 | } | ||
120 | |||
121 | /** | ||
122 | * <!-- begin-user-doc --> | ||
123 | * <!-- end-user-doc --> | ||
124 | * @generated | ||
125 | */ | ||
126 | @Override | ||
127 | public Object createFromString(EDataType eDataType, String initialValue) | ||
128 | { | ||
129 | switch (eDataType.getClassifierID()) | ||
130 | { | ||
131 | case SolverLanguagePackage.METRIC_TYPE: | ||
132 | return createMetricTypeFromString(eDataType, initialValue); | ||
133 | case SolverLanguagePackage.BINARY_OPERATOR: | ||
134 | return createBinaryOperatorFromString(eDataType, initialValue); | ||
135 | case SolverLanguagePackage.UNARY_OP: | ||
136 | return createUnaryOpFromString(eDataType, initialValue); | ||
137 | case SolverLanguagePackage.AGGREGATION_OP: | ||
138 | return createAggregationOpFromString(eDataType, initialValue); | ||
139 | case SolverLanguagePackage.LOGIC_VALUE: | ||
140 | return createLogicValueFromString(eDataType, initialValue); | ||
141 | case SolverLanguagePackage.OBJECTIVE_KIND: | ||
142 | return createObjectiveKindFromString(eDataType, initialValue); | ||
143 | default: | ||
144 | throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); | ||
145 | } | ||
146 | } | ||
147 | |||
148 | /** | ||
149 | * <!-- begin-user-doc --> | ||
150 | * <!-- end-user-doc --> | ||
151 | * @generated | ||
152 | */ | ||
153 | @Override | ||
154 | public String convertToString(EDataType eDataType, Object instanceValue) | ||
155 | { | ||
156 | switch (eDataType.getClassifierID()) | ||
157 | { | ||
158 | case SolverLanguagePackage.METRIC_TYPE: | ||
159 | return convertMetricTypeToString(eDataType, instanceValue); | ||
160 | case SolverLanguagePackage.BINARY_OPERATOR: | ||
161 | return convertBinaryOperatorToString(eDataType, instanceValue); | ||
162 | case SolverLanguagePackage.UNARY_OP: | ||
163 | return convertUnaryOpToString(eDataType, instanceValue); | ||
164 | case SolverLanguagePackage.AGGREGATION_OP: | ||
165 | return convertAggregationOpToString(eDataType, instanceValue); | ||
166 | case SolverLanguagePackage.LOGIC_VALUE: | ||
167 | return convertLogicValueToString(eDataType, instanceValue); | ||
168 | case SolverLanguagePackage.OBJECTIVE_KIND: | ||
169 | return convertObjectiveKindToString(eDataType, instanceValue); | ||
170 | default: | ||
171 | throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); | ||
172 | } | ||
173 | } | ||
174 | |||
175 | /** | ||
176 | * <!-- begin-user-doc --> | ||
177 | * <!-- end-user-doc --> | ||
178 | * @generated | ||
179 | */ | ||
180 | @Override | ||
181 | public Problem createProblem() | ||
182 | { | ||
183 | ProblemImpl problem = new ProblemImpl(); | ||
184 | return problem; | ||
185 | } | ||
186 | |||
187 | /** | ||
188 | * <!-- begin-user-doc --> | ||
189 | * <!-- end-user-doc --> | ||
190 | * @generated | ||
191 | */ | ||
192 | @Override | ||
193 | public Statement createStatement() | ||
194 | { | ||
195 | StatementImpl statement = new StatementImpl(); | ||
196 | return statement; | ||
197 | } | ||
198 | |||
199 | /** | ||
200 | * <!-- begin-user-doc --> | ||
201 | * <!-- end-user-doc --> | ||
202 | * @generated | ||
203 | */ | ||
204 | @Override | ||
205 | public PredicateDefinition createPredicateDefinition() | ||
206 | { | ||
207 | PredicateDefinitionImpl predicateDefinition = new PredicateDefinitionImpl(); | ||
208 | return predicateDefinition; | ||
209 | } | ||
210 | |||
211 | /** | ||
212 | * <!-- begin-user-doc --> | ||
213 | * <!-- end-user-doc --> | ||
214 | * @generated | ||
215 | */ | ||
216 | @Override | ||
217 | public UnnamedErrorPrediateDefinition createUnnamedErrorPrediateDefinition() | ||
218 | { | ||
219 | UnnamedErrorPrediateDefinitionImpl unnamedErrorPrediateDefinition = new UnnamedErrorPrediateDefinitionImpl(); | ||
220 | return unnamedErrorPrediateDefinition; | ||
221 | } | ||
222 | |||
223 | /** | ||
224 | * <!-- begin-user-doc --> | ||
225 | * <!-- end-user-doc --> | ||
226 | * @generated | ||
227 | */ | ||
228 | @Override | ||
229 | public DefaultDefinition createDefaultDefinition() | ||
230 | { | ||
231 | DefaultDefinitionImpl defaultDefinition = new DefaultDefinitionImpl(); | ||
232 | return defaultDefinition; | ||
233 | } | ||
234 | |||
235 | /** | ||
236 | * <!-- begin-user-doc --> | ||
237 | * <!-- end-user-doc --> | ||
238 | * @generated | ||
239 | */ | ||
240 | @Override | ||
241 | public ExternPredicateDefinition createExternPredicateDefinition() | ||
242 | { | ||
243 | ExternPredicateDefinitionImpl externPredicateDefinition = new ExternPredicateDefinitionImpl(); | ||
244 | return externPredicateDefinition; | ||
245 | } | ||
246 | |||
247 | /** | ||
248 | * <!-- begin-user-doc --> | ||
249 | * <!-- end-user-doc --> | ||
250 | * @generated | ||
251 | */ | ||
252 | @Override | ||
253 | public MetricDefinition createMetricDefinition() | ||
254 | { | ||
255 | MetricDefinitionImpl metricDefinition = new MetricDefinitionImpl(); | ||
256 | return metricDefinition; | ||
257 | } | ||
258 | |||
259 | /** | ||
260 | * <!-- begin-user-doc --> | ||
261 | * <!-- end-user-doc --> | ||
262 | * @generated | ||
263 | */ | ||
264 | @Override | ||
265 | public ExternMetricDefinition createExternMetricDefinition() | ||
266 | { | ||
267 | ExternMetricDefinitionImpl externMetricDefinition = new ExternMetricDefinitionImpl(); | ||
268 | return externMetricDefinition; | ||
269 | } | ||
270 | |||
271 | /** | ||
272 | * <!-- begin-user-doc --> | ||
273 | * <!-- end-user-doc --> | ||
274 | * @generated | ||
275 | */ | ||
276 | @Override | ||
277 | public Expression createExpression() | ||
278 | { | ||
279 | ExpressionImpl expression = new ExpressionImpl(); | ||
280 | return expression; | ||
281 | } | ||
282 | |||
283 | /** | ||
284 | * <!-- begin-user-doc --> | ||
285 | * <!-- end-user-doc --> | ||
286 | * @generated | ||
287 | */ | ||
288 | @Override | ||
289 | public IfElse createIfElse() | ||
290 | { | ||
291 | IfElseImpl ifElse = new IfElseImpl(); | ||
292 | return ifElse; | ||
293 | } | ||
294 | |||
295 | /** | ||
296 | * <!-- begin-user-doc --> | ||
297 | * <!-- end-user-doc --> | ||
298 | * @generated | ||
299 | */ | ||
300 | @Override | ||
301 | public Case createCase() | ||
302 | { | ||
303 | CaseImpl case_ = new CaseImpl(); | ||
304 | return case_; | ||
305 | } | ||
306 | |||
307 | /** | ||
308 | * <!-- begin-user-doc --> | ||
309 | * <!-- end-user-doc --> | ||
310 | * @generated | ||
311 | */ | ||
312 | @Override | ||
313 | public Count createCount() | ||
314 | { | ||
315 | CountImpl count = new CountImpl(); | ||
316 | return count; | ||
317 | } | ||
318 | |||
319 | /** | ||
320 | * <!-- begin-user-doc --> | ||
321 | * <!-- end-user-doc --> | ||
322 | * @generated | ||
323 | */ | ||
324 | @Override | ||
325 | public Aggregation createAggregation() | ||
326 | { | ||
327 | AggregationImpl aggregation = new AggregationImpl(); | ||
328 | return aggregation; | ||
329 | } | ||
330 | |||
331 | /** | ||
332 | * <!-- begin-user-doc --> | ||
333 | * <!-- end-user-doc --> | ||
334 | * @generated | ||
335 | */ | ||
336 | @Override | ||
337 | public Call createCall() | ||
338 | { | ||
339 | CallImpl call = new CallImpl(); | ||
340 | return call; | ||
341 | } | ||
342 | |||
343 | /** | ||
344 | * <!-- begin-user-doc --> | ||
345 | * <!-- end-user-doc --> | ||
346 | * @generated | ||
347 | */ | ||
348 | @Override | ||
349 | public ArgumentList createArgumentList() | ||
350 | { | ||
351 | ArgumentListImpl argumentList = new ArgumentListImpl(); | ||
352 | return argumentList; | ||
353 | } | ||
354 | |||
355 | /** | ||
356 | * <!-- begin-user-doc --> | ||
357 | * <!-- end-user-doc --> | ||
358 | * @generated | ||
359 | */ | ||
360 | @Override | ||
361 | public Argument createArgument() | ||
362 | { | ||
363 | ArgumentImpl argument = new ArgumentImpl(); | ||
364 | return argument; | ||
365 | } | ||
366 | |||
367 | /** | ||
368 | * <!-- begin-user-doc --> | ||
369 | * <!-- end-user-doc --> | ||
370 | * @generated | ||
371 | */ | ||
372 | @Override | ||
373 | public ExpressionArgument createExpressionArgument() | ||
374 | { | ||
375 | ExpressionArgumentImpl expressionArgument = new ExpressionArgumentImpl(); | ||
376 | return expressionArgument; | ||
377 | } | ||
378 | |||
379 | /** | ||
380 | * <!-- begin-user-doc --> | ||
381 | * <!-- end-user-doc --> | ||
382 | * @generated | ||
383 | */ | ||
384 | @Override | ||
385 | public StarArgument createStarArgument() | ||
386 | { | ||
387 | StarArgumentImpl starArgument = new StarArgumentImpl(); | ||
388 | return starArgument; | ||
389 | } | ||
390 | |||
391 | /** | ||
392 | * <!-- begin-user-doc --> | ||
393 | * <!-- end-user-doc --> | ||
394 | * @generated | ||
395 | */ | ||
396 | @Override | ||
397 | public TypedArgument createTypedArgument() | ||
398 | { | ||
399 | TypedArgumentImpl typedArgument = new TypedArgumentImpl(); | ||
400 | return typedArgument; | ||
401 | } | ||
402 | |||
403 | /** | ||
404 | * <!-- begin-user-doc --> | ||
405 | * <!-- end-user-doc --> | ||
406 | * @generated | ||
407 | */ | ||
408 | @Override | ||
409 | public TypedStarArgument createTypedStarArgument() | ||
410 | { | ||
411 | TypedStarArgumentImpl typedStarArgument = new TypedStarArgumentImpl(); | ||
412 | return typedStarArgument; | ||
413 | } | ||
414 | |||
415 | /** | ||
416 | * <!-- begin-user-doc --> | ||
417 | * <!-- end-user-doc --> | ||
418 | * @generated | ||
419 | */ | ||
420 | @Override | ||
421 | public Reference createReference() | ||
422 | { | ||
423 | ReferenceImpl reference = new ReferenceImpl(); | ||
424 | return reference; | ||
425 | } | ||
426 | |||
427 | /** | ||
428 | * <!-- begin-user-doc --> | ||
429 | * <!-- end-user-doc --> | ||
430 | * @generated | ||
431 | */ | ||
432 | @Override | ||
433 | public Interval createInterval() | ||
434 | { | ||
435 | IntervalImpl interval = new IntervalImpl(); | ||
436 | return interval; | ||
437 | } | ||
438 | |||
439 | /** | ||
440 | * <!-- begin-user-doc --> | ||
441 | * <!-- end-user-doc --> | ||
442 | * @generated | ||
443 | */ | ||
444 | @Override | ||
445 | public Literal createLiteral() | ||
446 | { | ||
447 | LiteralImpl literal = new LiteralImpl(); | ||
448 | return literal; | ||
449 | } | ||
450 | |||
451 | /** | ||
452 | * <!-- begin-user-doc --> | ||
453 | * <!-- end-user-doc --> | ||
454 | * @generated | ||
455 | */ | ||
456 | @Override | ||
457 | public LogicLiteral createLogicLiteral() | ||
458 | { | ||
459 | LogicLiteralImpl logicLiteral = new LogicLiteralImpl(); | ||
460 | return logicLiteral; | ||
461 | } | ||
462 | |||
463 | /** | ||
464 | * <!-- begin-user-doc --> | ||
465 | * <!-- end-user-doc --> | ||
466 | * @generated | ||
467 | */ | ||
468 | @Override | ||
469 | public NumericLiteral createNumericLiteral() | ||
470 | { | ||
471 | NumericLiteralImpl numericLiteral = new NumericLiteralImpl(); | ||
472 | return numericLiteral; | ||
473 | } | ||
474 | |||
475 | /** | ||
476 | * <!-- begin-user-doc --> | ||
477 | * <!-- end-user-doc --> | ||
478 | * @generated | ||
479 | */ | ||
480 | @Override | ||
481 | public InfinityLiteral createInfinityLiteral() | ||
482 | { | ||
483 | InfinityLiteralImpl infinityLiteral = new InfinityLiteralImpl(); | ||
484 | return infinityLiteral; | ||
485 | } | ||
486 | |||
487 | /** | ||
488 | * <!-- begin-user-doc --> | ||
489 | * <!-- end-user-doc --> | ||
490 | * @generated | ||
491 | */ | ||
492 | @Override | ||
493 | public EmptyIntervalLiteral createEmptyIntervalLiteral() | ||
494 | { | ||
495 | EmptyIntervalLiteralImpl emptyIntervalLiteral = new EmptyIntervalLiteralImpl(); | ||
496 | return emptyIntervalLiteral; | ||
497 | } | ||
498 | |||
499 | /** | ||
500 | * <!-- begin-user-doc --> | ||
501 | * <!-- end-user-doc --> | ||
502 | * @generated | ||
503 | */ | ||
504 | @Override | ||
505 | public StringLiteral createStringLiteral() | ||
506 | { | ||
507 | StringLiteralImpl stringLiteral = new StringLiteralImpl(); | ||
508 | return stringLiteral; | ||
509 | } | ||
510 | |||
511 | /** | ||
512 | * <!-- begin-user-doc --> | ||
513 | * <!-- end-user-doc --> | ||
514 | * @generated | ||
515 | */ | ||
516 | @Override | ||
517 | public ClassDefinition createClassDefinition() | ||
518 | { | ||
519 | ClassDefinitionImpl classDefinition = new ClassDefinitionImpl(); | ||
520 | return classDefinition; | ||
521 | } | ||
522 | |||
523 | /** | ||
524 | * <!-- begin-user-doc --> | ||
525 | * <!-- end-user-doc --> | ||
526 | * @generated | ||
527 | */ | ||
528 | @Override | ||
529 | public MemberDefinition createMemberDefinition() | ||
530 | { | ||
531 | MemberDefinitionImpl memberDefinition = new MemberDefinitionImpl(); | ||
532 | return memberDefinition; | ||
533 | } | ||
534 | |||
535 | /** | ||
536 | * <!-- begin-user-doc --> | ||
537 | * <!-- end-user-doc --> | ||
538 | * @generated | ||
539 | */ | ||
540 | @Override | ||
541 | public Multiplicity createMultiplicity() | ||
542 | { | ||
543 | MultiplicityImpl multiplicity = new MultiplicityImpl(); | ||
544 | return multiplicity; | ||
545 | } | ||
546 | |||
547 | /** | ||
548 | * <!-- begin-user-doc --> | ||
549 | * <!-- end-user-doc --> | ||
550 | * @generated | ||
551 | */ | ||
552 | @Override | ||
553 | public ManyMultiplicity createManyMultiplicity() | ||
554 | { | ||
555 | ManyMultiplicityImpl manyMultiplicity = new ManyMultiplicityImpl(); | ||
556 | return manyMultiplicity; | ||
557 | } | ||
558 | |||
559 | /** | ||
560 | * <!-- begin-user-doc --> | ||
561 | * <!-- end-user-doc --> | ||
562 | * @generated | ||
563 | */ | ||
564 | @Override | ||
565 | public ExactMultiplicity createExactMultiplicity() | ||
566 | { | ||
567 | ExactMultiplicityImpl exactMultiplicity = new ExactMultiplicityImpl(); | ||
568 | return exactMultiplicity; | ||
569 | } | ||
570 | |||
571 | /** | ||
572 | * <!-- begin-user-doc --> | ||
573 | * <!-- end-user-doc --> | ||
574 | * @generated | ||
575 | */ | ||
576 | @Override | ||
577 | public BoundedMultiplicity createBoundedMultiplicity() | ||
578 | { | ||
579 | BoundedMultiplicityImpl boundedMultiplicity = new BoundedMultiplicityImpl(); | ||
580 | return boundedMultiplicity; | ||
581 | } | ||
582 | |||
583 | /** | ||
584 | * <!-- begin-user-doc --> | ||
585 | * <!-- end-user-doc --> | ||
586 | * @generated | ||
587 | */ | ||
588 | @Override | ||
589 | public ScopeDefinition createScopeDefinition() | ||
590 | { | ||
591 | ScopeDefinitionImpl scopeDefinition = new ScopeDefinitionImpl(); | ||
592 | return scopeDefinition; | ||
593 | } | ||
594 | |||
595 | /** | ||
596 | * <!-- begin-user-doc --> | ||
597 | * <!-- end-user-doc --> | ||
598 | * @generated | ||
599 | */ | ||
600 | @Override | ||
601 | public ExactScopeDefinition createExactScopeDefinition() | ||
602 | { | ||
603 | ExactScopeDefinitionImpl exactScopeDefinition = new ExactScopeDefinitionImpl(); | ||
604 | return exactScopeDefinition; | ||
605 | } | ||
606 | |||
607 | /** | ||
608 | * <!-- begin-user-doc --> | ||
609 | * <!-- end-user-doc --> | ||
610 | * @generated | ||
611 | */ | ||
612 | @Override | ||
613 | public BoundedScopeDefinition createBoundedScopeDefinition() | ||
614 | { | ||
615 | BoundedScopeDefinitionImpl boundedScopeDefinition = new BoundedScopeDefinitionImpl(); | ||
616 | return boundedScopeDefinition; | ||
617 | } | ||
618 | |||
619 | /** | ||
620 | * <!-- begin-user-doc --> | ||
621 | * <!-- end-user-doc --> | ||
622 | * @generated | ||
623 | */ | ||
624 | @Override | ||
625 | public LowerBoundedScopeDefinition createLowerBoundedScopeDefinition() | ||
626 | { | ||
627 | LowerBoundedScopeDefinitionImpl lowerBoundedScopeDefinition = new LowerBoundedScopeDefinitionImpl(); | ||
628 | return lowerBoundedScopeDefinition; | ||
629 | } | ||
630 | |||
631 | /** | ||
632 | * <!-- begin-user-doc --> | ||
633 | * <!-- end-user-doc --> | ||
634 | * @generated | ||
635 | */ | ||
636 | @Override | ||
637 | public ObjectiveDefinition createObjectiveDefinition() | ||
638 | { | ||
639 | ObjectiveDefinitionImpl objectiveDefinition = new ObjectiveDefinitionImpl(); | ||
640 | return objectiveDefinition; | ||
641 | } | ||
642 | |||
643 | /** | ||
644 | * <!-- begin-user-doc --> | ||
645 | * <!-- end-user-doc --> | ||
646 | * @generated | ||
647 | */ | ||
648 | @Override | ||
649 | public NamedElement createNamedElement() | ||
650 | { | ||
651 | NamedElementImpl namedElement = new NamedElementImpl(); | ||
652 | return namedElement; | ||
653 | } | ||
654 | |||
655 | /** | ||
656 | * <!-- begin-user-doc --> | ||
657 | * <!-- end-user-doc --> | ||
658 | * @generated | ||
659 | */ | ||
660 | @Override | ||
661 | public Assertion createAssertion() | ||
662 | { | ||
663 | AssertionImpl assertion = new AssertionImpl(); | ||
664 | return assertion; | ||
665 | } | ||
666 | |||
667 | /** | ||
668 | * <!-- begin-user-doc --> | ||
669 | * <!-- end-user-doc --> | ||
670 | * @generated | ||
671 | */ | ||
672 | @Override | ||
673 | public Disjunction createDisjunction() | ||
674 | { | ||
675 | DisjunctionImpl disjunction = new DisjunctionImpl(); | ||
676 | return disjunction; | ||
677 | } | ||
678 | |||
679 | /** | ||
680 | * <!-- begin-user-doc --> | ||
681 | * <!-- end-user-doc --> | ||
682 | * @generated | ||
683 | */ | ||
684 | @Override | ||
685 | public Switch createSwitch() | ||
686 | { | ||
687 | SwitchImpl switch_ = new SwitchImpl(); | ||
688 | return switch_; | ||
689 | } | ||
690 | |||
691 | /** | ||
692 | * <!-- begin-user-doc --> | ||
693 | * <!-- end-user-doc --> | ||
694 | * @generated | ||
695 | */ | ||
696 | @Override | ||
697 | public Conjunction createConjunction() | ||
698 | { | ||
699 | ConjunctionImpl conjunction = new ConjunctionImpl(); | ||
700 | return conjunction; | ||
701 | } | ||
702 | |||
703 | /** | ||
704 | * <!-- begin-user-doc --> | ||
705 | * <!-- end-user-doc --> | ||
706 | * @generated | ||
707 | */ | ||
708 | @Override | ||
709 | public Comparison createComparison() | ||
710 | { | ||
711 | ComparisonImpl comparison = new ComparisonImpl(); | ||
712 | return comparison; | ||
713 | } | ||
714 | |||
715 | /** | ||
716 | * <!-- begin-user-doc --> | ||
717 | * <!-- end-user-doc --> | ||
718 | * @generated | ||
719 | */ | ||
720 | @Override | ||
721 | public BinaryExpression createBinaryExpression() | ||
722 | { | ||
723 | BinaryExpressionImpl binaryExpression = new BinaryExpressionImpl(); | ||
724 | return binaryExpression; | ||
725 | } | ||
726 | |||
727 | /** | ||
728 | * <!-- begin-user-doc --> | ||
729 | * <!-- end-user-doc --> | ||
730 | * @generated | ||
731 | */ | ||
732 | @Override | ||
733 | public UnaryExpression createUnaryExpression() | ||
734 | { | ||
735 | UnaryExpressionImpl unaryExpression = new UnaryExpressionImpl(); | ||
736 | return unaryExpression; | ||
737 | } | ||
738 | |||
739 | /** | ||
740 | * <!-- begin-user-doc --> | ||
741 | * <!-- end-user-doc --> | ||
742 | * @generated | ||
743 | */ | ||
744 | public MetricType createMetricTypeFromString(EDataType eDataType, String initialValue) | ||
745 | { | ||
746 | MetricType result = MetricType.get(initialValue); | ||
747 | if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); | ||
748 | return result; | ||
749 | } | ||
750 | |||
751 | /** | ||
752 | * <!-- begin-user-doc --> | ||
753 | * <!-- end-user-doc --> | ||
754 | * @generated | ||
755 | */ | ||
756 | public String convertMetricTypeToString(EDataType eDataType, Object instanceValue) | ||
757 | { | ||
758 | return instanceValue == null ? null : instanceValue.toString(); | ||
759 | } | ||
760 | |||
761 | /** | ||
762 | * <!-- begin-user-doc --> | ||
763 | * <!-- end-user-doc --> | ||
764 | * @generated | ||
765 | */ | ||
766 | public BinaryOperator createBinaryOperatorFromString(EDataType eDataType, String initialValue) | ||
767 | { | ||
768 | BinaryOperator result = BinaryOperator.get(initialValue); | ||
769 | if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); | ||
770 | return result; | ||
771 | } | ||
772 | |||
773 | /** | ||
774 | * <!-- begin-user-doc --> | ||
775 | * <!-- end-user-doc --> | ||
776 | * @generated | ||
777 | */ | ||
778 | public String convertBinaryOperatorToString(EDataType eDataType, Object instanceValue) | ||
779 | { | ||
780 | return instanceValue == null ? null : instanceValue.toString(); | ||
781 | } | ||
782 | |||
783 | /** | ||
784 | * <!-- begin-user-doc --> | ||
785 | * <!-- end-user-doc --> | ||
786 | * @generated | ||
787 | */ | ||
788 | public UnaryOp createUnaryOpFromString(EDataType eDataType, String initialValue) | ||
789 | { | ||
790 | UnaryOp result = UnaryOp.get(initialValue); | ||
791 | if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); | ||
792 | return result; | ||
793 | } | ||
794 | |||
795 | /** | ||
796 | * <!-- begin-user-doc --> | ||
797 | * <!-- end-user-doc --> | ||
798 | * @generated | ||
799 | */ | ||
800 | public String convertUnaryOpToString(EDataType eDataType, Object instanceValue) | ||
801 | { | ||
802 | return instanceValue == null ? null : instanceValue.toString(); | ||
803 | } | ||
804 | |||
805 | /** | ||
806 | * <!-- begin-user-doc --> | ||
807 | * <!-- end-user-doc --> | ||
808 | * @generated | ||
809 | */ | ||
810 | public AggregationOp createAggregationOpFromString(EDataType eDataType, String initialValue) | ||
811 | { | ||
812 | AggregationOp result = AggregationOp.get(initialValue); | ||
813 | if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); | ||
814 | return result; | ||
815 | } | ||
816 | |||
817 | /** | ||
818 | * <!-- begin-user-doc --> | ||
819 | * <!-- end-user-doc --> | ||
820 | * @generated | ||
821 | */ | ||
822 | public String convertAggregationOpToString(EDataType eDataType, Object instanceValue) | ||
823 | { | ||
824 | return instanceValue == null ? null : instanceValue.toString(); | ||
825 | } | ||
826 | |||
827 | /** | ||
828 | * <!-- begin-user-doc --> | ||
829 | * <!-- end-user-doc --> | ||
830 | * @generated | ||
831 | */ | ||
832 | public LogicValue createLogicValueFromString(EDataType eDataType, String initialValue) | ||
833 | { | ||
834 | LogicValue result = LogicValue.get(initialValue); | ||
835 | if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); | ||
836 | return result; | ||
837 | } | ||
838 | |||
839 | /** | ||
840 | * <!-- begin-user-doc --> | ||
841 | * <!-- end-user-doc --> | ||
842 | * @generated | ||
843 | */ | ||
844 | public String convertLogicValueToString(EDataType eDataType, Object instanceValue) | ||
845 | { | ||
846 | return instanceValue == null ? null : instanceValue.toString(); | ||
847 | } | ||
848 | |||
849 | /** | ||
850 | * <!-- begin-user-doc --> | ||
851 | * <!-- end-user-doc --> | ||
852 | * @generated | ||
853 | */ | ||
854 | public ObjectiveKind createObjectiveKindFromString(EDataType eDataType, String initialValue) | ||
855 | { | ||
856 | ObjectiveKind result = ObjectiveKind.get(initialValue); | ||
857 | if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); | ||
858 | return result; | ||
859 | } | ||
860 | |||
861 | /** | ||
862 | * <!-- begin-user-doc --> | ||
863 | * <!-- end-user-doc --> | ||
864 | * @generated | ||
865 | */ | ||
866 | public String convertObjectiveKindToString(EDataType eDataType, Object instanceValue) | ||
867 | { | ||
868 | return instanceValue == null ? null : instanceValue.toString(); | ||
869 | } | ||
870 | |||
871 | /** | ||
872 | * <!-- begin-user-doc --> | ||
873 | * <!-- end-user-doc --> | ||
874 | * @generated | ||
875 | */ | ||
876 | @Override | ||
877 | public SolverLanguagePackage getSolverLanguagePackage() | ||
878 | { | ||
879 | return (SolverLanguagePackage)getEPackage(); | ||
880 | } | ||
881 | |||
882 | /** | ||
883 | * <!-- begin-user-doc --> | ||
884 | * <!-- end-user-doc --> | ||
885 | * @deprecated | ||
886 | * @generated | ||
887 | */ | ||
888 | @Deprecated | ||
889 | public static SolverLanguagePackage getPackage() | ||
890 | { | ||
891 | return SolverLanguagePackage.eINSTANCE; | ||
892 | } | ||
893 | |||
894 | } //SolverLanguageFactoryImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/SolverLanguagePackageImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/SolverLanguagePackageImpl.java deleted file mode 100644 index 39f811b9..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/SolverLanguagePackageImpl.java +++ /dev/null | |||
@@ -1,2379 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EAttribute; | ||
7 | import org.eclipse.emf.ecore.EClass; | ||
8 | import org.eclipse.emf.ecore.EEnum; | ||
9 | import org.eclipse.emf.ecore.EPackage; | ||
10 | import org.eclipse.emf.ecore.EReference; | ||
11 | |||
12 | import org.eclipse.emf.ecore.impl.EPackageImpl; | ||
13 | |||
14 | import org.eclipse.viatra.solver.language.solverLanguage.Aggregation; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.AggregationOp; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.Argument; | ||
17 | import org.eclipse.viatra.solver.language.solverLanguage.ArgumentList; | ||
18 | import org.eclipse.viatra.solver.language.solverLanguage.Assertion; | ||
19 | import org.eclipse.viatra.solver.language.solverLanguage.BinaryExpression; | ||
20 | import org.eclipse.viatra.solver.language.solverLanguage.BinaryOperator; | ||
21 | import org.eclipse.viatra.solver.language.solverLanguage.BoundedMultiplicity; | ||
22 | import org.eclipse.viatra.solver.language.solverLanguage.BoundedScopeDefinition; | ||
23 | import org.eclipse.viatra.solver.language.solverLanguage.Call; | ||
24 | import org.eclipse.viatra.solver.language.solverLanguage.Case; | ||
25 | import org.eclipse.viatra.solver.language.solverLanguage.ClassDefinition; | ||
26 | import org.eclipse.viatra.solver.language.solverLanguage.Comparison; | ||
27 | import org.eclipse.viatra.solver.language.solverLanguage.Conjunction; | ||
28 | import org.eclipse.viatra.solver.language.solverLanguage.Count; | ||
29 | import org.eclipse.viatra.solver.language.solverLanguage.DefaultDefinition; | ||
30 | import org.eclipse.viatra.solver.language.solverLanguage.Disjunction; | ||
31 | import org.eclipse.viatra.solver.language.solverLanguage.EmptyIntervalLiteral; | ||
32 | import org.eclipse.viatra.solver.language.solverLanguage.ExactMultiplicity; | ||
33 | import org.eclipse.viatra.solver.language.solverLanguage.ExactScopeDefinition; | ||
34 | import org.eclipse.viatra.solver.language.solverLanguage.Expression; | ||
35 | import org.eclipse.viatra.solver.language.solverLanguage.ExpressionArgument; | ||
36 | import org.eclipse.viatra.solver.language.solverLanguage.ExternMetricDefinition; | ||
37 | import org.eclipse.viatra.solver.language.solverLanguage.ExternPredicateDefinition; | ||
38 | import org.eclipse.viatra.solver.language.solverLanguage.IfElse; | ||
39 | import org.eclipse.viatra.solver.language.solverLanguage.InfinityLiteral; | ||
40 | import org.eclipse.viatra.solver.language.solverLanguage.Interval; | ||
41 | import org.eclipse.viatra.solver.language.solverLanguage.Literal; | ||
42 | import org.eclipse.viatra.solver.language.solverLanguage.LogicLiteral; | ||
43 | import org.eclipse.viatra.solver.language.solverLanguage.LogicValue; | ||
44 | import org.eclipse.viatra.solver.language.solverLanguage.LowerBoundedScopeDefinition; | ||
45 | import org.eclipse.viatra.solver.language.solverLanguage.ManyMultiplicity; | ||
46 | import org.eclipse.viatra.solver.language.solverLanguage.MemberDefinition; | ||
47 | import org.eclipse.viatra.solver.language.solverLanguage.MetricDefinition; | ||
48 | import org.eclipse.viatra.solver.language.solverLanguage.MetricType; | ||
49 | import org.eclipse.viatra.solver.language.solverLanguage.Multiplicity; | ||
50 | import org.eclipse.viatra.solver.language.solverLanguage.NamedElement; | ||
51 | import org.eclipse.viatra.solver.language.solverLanguage.NumericLiteral; | ||
52 | import org.eclipse.viatra.solver.language.solverLanguage.ObjectiveDefinition; | ||
53 | import org.eclipse.viatra.solver.language.solverLanguage.ObjectiveKind; | ||
54 | import org.eclipse.viatra.solver.language.solverLanguage.PredicateDefinition; | ||
55 | import org.eclipse.viatra.solver.language.solverLanguage.Problem; | ||
56 | import org.eclipse.viatra.solver.language.solverLanguage.Reference; | ||
57 | import org.eclipse.viatra.solver.language.solverLanguage.ScopeDefinition; | ||
58 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguageFactory; | ||
59 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
60 | import org.eclipse.viatra.solver.language.solverLanguage.StarArgument; | ||
61 | import org.eclipse.viatra.solver.language.solverLanguage.Statement; | ||
62 | import org.eclipse.viatra.solver.language.solverLanguage.StringLiteral; | ||
63 | import org.eclipse.viatra.solver.language.solverLanguage.Switch; | ||
64 | import org.eclipse.viatra.solver.language.solverLanguage.TypedArgument; | ||
65 | import org.eclipse.viatra.solver.language.solverLanguage.TypedStarArgument; | ||
66 | import org.eclipse.viatra.solver.language.solverLanguage.UnaryExpression; | ||
67 | import org.eclipse.viatra.solver.language.solverLanguage.UnaryOp; | ||
68 | import org.eclipse.viatra.solver.language.solverLanguage.UnnamedErrorPrediateDefinition; | ||
69 | |||
70 | /** | ||
71 | * <!-- begin-user-doc --> | ||
72 | * An implementation of the model <b>Package</b>. | ||
73 | * <!-- end-user-doc --> | ||
74 | * @generated | ||
75 | */ | ||
76 | public class SolverLanguagePackageImpl extends EPackageImpl implements SolverLanguagePackage | ||
77 | { | ||
78 | /** | ||
79 | * <!-- begin-user-doc --> | ||
80 | * <!-- end-user-doc --> | ||
81 | * @generated | ||
82 | */ | ||
83 | private EClass problemEClass = null; | ||
84 | |||
85 | /** | ||
86 | * <!-- begin-user-doc --> | ||
87 | * <!-- end-user-doc --> | ||
88 | * @generated | ||
89 | */ | ||
90 | private EClass statementEClass = null; | ||
91 | |||
92 | /** | ||
93 | * <!-- begin-user-doc --> | ||
94 | * <!-- end-user-doc --> | ||
95 | * @generated | ||
96 | */ | ||
97 | private EClass predicateDefinitionEClass = null; | ||
98 | |||
99 | /** | ||
100 | * <!-- begin-user-doc --> | ||
101 | * <!-- end-user-doc --> | ||
102 | * @generated | ||
103 | */ | ||
104 | private EClass unnamedErrorPrediateDefinitionEClass = null; | ||
105 | |||
106 | /** | ||
107 | * <!-- begin-user-doc --> | ||
108 | * <!-- end-user-doc --> | ||
109 | * @generated | ||
110 | */ | ||
111 | private EClass defaultDefinitionEClass = null; | ||
112 | |||
113 | /** | ||
114 | * <!-- begin-user-doc --> | ||
115 | * <!-- end-user-doc --> | ||
116 | * @generated | ||
117 | */ | ||
118 | private EClass externPredicateDefinitionEClass = null; | ||
119 | |||
120 | /** | ||
121 | * <!-- begin-user-doc --> | ||
122 | * <!-- end-user-doc --> | ||
123 | * @generated | ||
124 | */ | ||
125 | private EClass metricDefinitionEClass = null; | ||
126 | |||
127 | /** | ||
128 | * <!-- begin-user-doc --> | ||
129 | * <!-- end-user-doc --> | ||
130 | * @generated | ||
131 | */ | ||
132 | private EClass externMetricDefinitionEClass = null; | ||
133 | |||
134 | /** | ||
135 | * <!-- begin-user-doc --> | ||
136 | * <!-- end-user-doc --> | ||
137 | * @generated | ||
138 | */ | ||
139 | private EClass expressionEClass = null; | ||
140 | |||
141 | /** | ||
142 | * <!-- begin-user-doc --> | ||
143 | * <!-- end-user-doc --> | ||
144 | * @generated | ||
145 | */ | ||
146 | private EClass ifElseEClass = null; | ||
147 | |||
148 | /** | ||
149 | * <!-- begin-user-doc --> | ||
150 | * <!-- end-user-doc --> | ||
151 | * @generated | ||
152 | */ | ||
153 | private EClass caseEClass = null; | ||
154 | |||
155 | /** | ||
156 | * <!-- begin-user-doc --> | ||
157 | * <!-- end-user-doc --> | ||
158 | * @generated | ||
159 | */ | ||
160 | private EClass countEClass = null; | ||
161 | |||
162 | /** | ||
163 | * <!-- begin-user-doc --> | ||
164 | * <!-- end-user-doc --> | ||
165 | * @generated | ||
166 | */ | ||
167 | private EClass aggregationEClass = null; | ||
168 | |||
169 | /** | ||
170 | * <!-- begin-user-doc --> | ||
171 | * <!-- end-user-doc --> | ||
172 | * @generated | ||
173 | */ | ||
174 | private EClass callEClass = null; | ||
175 | |||
176 | /** | ||
177 | * <!-- begin-user-doc --> | ||
178 | * <!-- end-user-doc --> | ||
179 | * @generated | ||
180 | */ | ||
181 | private EClass argumentListEClass = null; | ||
182 | |||
183 | /** | ||
184 | * <!-- begin-user-doc --> | ||
185 | * <!-- end-user-doc --> | ||
186 | * @generated | ||
187 | */ | ||
188 | private EClass argumentEClass = null; | ||
189 | |||
190 | /** | ||
191 | * <!-- begin-user-doc --> | ||
192 | * <!-- end-user-doc --> | ||
193 | * @generated | ||
194 | */ | ||
195 | private EClass expressionArgumentEClass = null; | ||
196 | |||
197 | /** | ||
198 | * <!-- begin-user-doc --> | ||
199 | * <!-- end-user-doc --> | ||
200 | * @generated | ||
201 | */ | ||
202 | private EClass starArgumentEClass = null; | ||
203 | |||
204 | /** | ||
205 | * <!-- begin-user-doc --> | ||
206 | * <!-- end-user-doc --> | ||
207 | * @generated | ||
208 | */ | ||
209 | private EClass typedArgumentEClass = null; | ||
210 | |||
211 | /** | ||
212 | * <!-- begin-user-doc --> | ||
213 | * <!-- end-user-doc --> | ||
214 | * @generated | ||
215 | */ | ||
216 | private EClass typedStarArgumentEClass = null; | ||
217 | |||
218 | /** | ||
219 | * <!-- begin-user-doc --> | ||
220 | * <!-- end-user-doc --> | ||
221 | * @generated | ||
222 | */ | ||
223 | private EClass referenceEClass = null; | ||
224 | |||
225 | /** | ||
226 | * <!-- begin-user-doc --> | ||
227 | * <!-- end-user-doc --> | ||
228 | * @generated | ||
229 | */ | ||
230 | private EClass intervalEClass = null; | ||
231 | |||
232 | /** | ||
233 | * <!-- begin-user-doc --> | ||
234 | * <!-- end-user-doc --> | ||
235 | * @generated | ||
236 | */ | ||
237 | private EClass literalEClass = null; | ||
238 | |||
239 | /** | ||
240 | * <!-- begin-user-doc --> | ||
241 | * <!-- end-user-doc --> | ||
242 | * @generated | ||
243 | */ | ||
244 | private EClass logicLiteralEClass = null; | ||
245 | |||
246 | /** | ||
247 | * <!-- begin-user-doc --> | ||
248 | * <!-- end-user-doc --> | ||
249 | * @generated | ||
250 | */ | ||
251 | private EClass numericLiteralEClass = null; | ||
252 | |||
253 | /** | ||
254 | * <!-- begin-user-doc --> | ||
255 | * <!-- end-user-doc --> | ||
256 | * @generated | ||
257 | */ | ||
258 | private EClass infinityLiteralEClass = null; | ||
259 | |||
260 | /** | ||
261 | * <!-- begin-user-doc --> | ||
262 | * <!-- end-user-doc --> | ||
263 | * @generated | ||
264 | */ | ||
265 | private EClass emptyIntervalLiteralEClass = null; | ||
266 | |||
267 | /** | ||
268 | * <!-- begin-user-doc --> | ||
269 | * <!-- end-user-doc --> | ||
270 | * @generated | ||
271 | */ | ||
272 | private EClass stringLiteralEClass = null; | ||
273 | |||
274 | /** | ||
275 | * <!-- begin-user-doc --> | ||
276 | * <!-- end-user-doc --> | ||
277 | * @generated | ||
278 | */ | ||
279 | private EClass classDefinitionEClass = null; | ||
280 | |||
281 | /** | ||
282 | * <!-- begin-user-doc --> | ||
283 | * <!-- end-user-doc --> | ||
284 | * @generated | ||
285 | */ | ||
286 | private EClass memberDefinitionEClass = null; | ||
287 | |||
288 | /** | ||
289 | * <!-- begin-user-doc --> | ||
290 | * <!-- end-user-doc --> | ||
291 | * @generated | ||
292 | */ | ||
293 | private EClass multiplicityEClass = null; | ||
294 | |||
295 | /** | ||
296 | * <!-- begin-user-doc --> | ||
297 | * <!-- end-user-doc --> | ||
298 | * @generated | ||
299 | */ | ||
300 | private EClass manyMultiplicityEClass = null; | ||
301 | |||
302 | /** | ||
303 | * <!-- begin-user-doc --> | ||
304 | * <!-- end-user-doc --> | ||
305 | * @generated | ||
306 | */ | ||
307 | private EClass exactMultiplicityEClass = null; | ||
308 | |||
309 | /** | ||
310 | * <!-- begin-user-doc --> | ||
311 | * <!-- end-user-doc --> | ||
312 | * @generated | ||
313 | */ | ||
314 | private EClass boundedMultiplicityEClass = null; | ||
315 | |||
316 | /** | ||
317 | * <!-- begin-user-doc --> | ||
318 | * <!-- end-user-doc --> | ||
319 | * @generated | ||
320 | */ | ||
321 | private EClass scopeDefinitionEClass = null; | ||
322 | |||
323 | /** | ||
324 | * <!-- begin-user-doc --> | ||
325 | * <!-- end-user-doc --> | ||
326 | * @generated | ||
327 | */ | ||
328 | private EClass exactScopeDefinitionEClass = null; | ||
329 | |||
330 | /** | ||
331 | * <!-- begin-user-doc --> | ||
332 | * <!-- end-user-doc --> | ||
333 | * @generated | ||
334 | */ | ||
335 | private EClass boundedScopeDefinitionEClass = null; | ||
336 | |||
337 | /** | ||
338 | * <!-- begin-user-doc --> | ||
339 | * <!-- end-user-doc --> | ||
340 | * @generated | ||
341 | */ | ||
342 | private EClass lowerBoundedScopeDefinitionEClass = null; | ||
343 | |||
344 | /** | ||
345 | * <!-- begin-user-doc --> | ||
346 | * <!-- end-user-doc --> | ||
347 | * @generated | ||
348 | */ | ||
349 | private EClass objectiveDefinitionEClass = null; | ||
350 | |||
351 | /** | ||
352 | * <!-- begin-user-doc --> | ||
353 | * <!-- end-user-doc --> | ||
354 | * @generated | ||
355 | */ | ||
356 | private EClass namedElementEClass = null; | ||
357 | |||
358 | /** | ||
359 | * <!-- begin-user-doc --> | ||
360 | * <!-- end-user-doc --> | ||
361 | * @generated | ||
362 | */ | ||
363 | private EClass assertionEClass = null; | ||
364 | |||
365 | /** | ||
366 | * <!-- begin-user-doc --> | ||
367 | * <!-- end-user-doc --> | ||
368 | * @generated | ||
369 | */ | ||
370 | private EClass disjunctionEClass = null; | ||
371 | |||
372 | /** | ||
373 | * <!-- begin-user-doc --> | ||
374 | * <!-- end-user-doc --> | ||
375 | * @generated | ||
376 | */ | ||
377 | private EClass switchEClass = null; | ||
378 | |||
379 | /** | ||
380 | * <!-- begin-user-doc --> | ||
381 | * <!-- end-user-doc --> | ||
382 | * @generated | ||
383 | */ | ||
384 | private EClass conjunctionEClass = null; | ||
385 | |||
386 | /** | ||
387 | * <!-- begin-user-doc --> | ||
388 | * <!-- end-user-doc --> | ||
389 | * @generated | ||
390 | */ | ||
391 | private EClass comparisonEClass = null; | ||
392 | |||
393 | /** | ||
394 | * <!-- begin-user-doc --> | ||
395 | * <!-- end-user-doc --> | ||
396 | * @generated | ||
397 | */ | ||
398 | private EClass binaryExpressionEClass = null; | ||
399 | |||
400 | /** | ||
401 | * <!-- begin-user-doc --> | ||
402 | * <!-- end-user-doc --> | ||
403 | * @generated | ||
404 | */ | ||
405 | private EClass unaryExpressionEClass = null; | ||
406 | |||
407 | /** | ||
408 | * <!-- begin-user-doc --> | ||
409 | * <!-- end-user-doc --> | ||
410 | * @generated | ||
411 | */ | ||
412 | private EEnum metricTypeEEnum = null; | ||
413 | |||
414 | /** | ||
415 | * <!-- begin-user-doc --> | ||
416 | * <!-- end-user-doc --> | ||
417 | * @generated | ||
418 | */ | ||
419 | private EEnum binaryOperatorEEnum = null; | ||
420 | |||
421 | /** | ||
422 | * <!-- begin-user-doc --> | ||
423 | * <!-- end-user-doc --> | ||
424 | * @generated | ||
425 | */ | ||
426 | private EEnum unaryOpEEnum = null; | ||
427 | |||
428 | /** | ||
429 | * <!-- begin-user-doc --> | ||
430 | * <!-- end-user-doc --> | ||
431 | * @generated | ||
432 | */ | ||
433 | private EEnum aggregationOpEEnum = null; | ||
434 | |||
435 | /** | ||
436 | * <!-- begin-user-doc --> | ||
437 | * <!-- end-user-doc --> | ||
438 | * @generated | ||
439 | */ | ||
440 | private EEnum logicValueEEnum = null; | ||
441 | |||
442 | /** | ||
443 | * <!-- begin-user-doc --> | ||
444 | * <!-- end-user-doc --> | ||
445 | * @generated | ||
446 | */ | ||
447 | private EEnum objectiveKindEEnum = null; | ||
448 | |||
449 | /** | ||
450 | * Creates an instance of the model <b>Package</b>, registered with | ||
451 | * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package | ||
452 | * package URI value. | ||
453 | * <p>Note: the correct way to create the package is via the static | ||
454 | * factory method {@link #init init()}, which also performs | ||
455 | * initialization of the package, or returns the registered package, | ||
456 | * if one already exists. | ||
457 | * <!-- begin-user-doc --> | ||
458 | * <!-- end-user-doc --> | ||
459 | * @see org.eclipse.emf.ecore.EPackage.Registry | ||
460 | * @see org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage#eNS_URI | ||
461 | * @see #init() | ||
462 | * @generated | ||
463 | */ | ||
464 | private SolverLanguagePackageImpl() | ||
465 | { | ||
466 | super(eNS_URI, SolverLanguageFactory.eINSTANCE); | ||
467 | } | ||
468 | |||
469 | /** | ||
470 | * <!-- begin-user-doc --> | ||
471 | * <!-- end-user-doc --> | ||
472 | * @generated | ||
473 | */ | ||
474 | private static boolean isInited = false; | ||
475 | |||
476 | /** | ||
477 | * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. | ||
478 | * | ||
479 | * <p>This method is used to initialize {@link SolverLanguagePackage#eINSTANCE} when that field is accessed. | ||
480 | * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. | ||
481 | * <!-- begin-user-doc --> | ||
482 | * <!-- end-user-doc --> | ||
483 | * @see #eNS_URI | ||
484 | * @see #createPackageContents() | ||
485 | * @see #initializePackageContents() | ||
486 | * @generated | ||
487 | */ | ||
488 | public static SolverLanguagePackage init() | ||
489 | { | ||
490 | if (isInited) return (SolverLanguagePackage)EPackage.Registry.INSTANCE.getEPackage(SolverLanguagePackage.eNS_URI); | ||
491 | |||
492 | // Obtain or create and register package | ||
493 | Object registeredSolverLanguagePackage = EPackage.Registry.INSTANCE.get(eNS_URI); | ||
494 | SolverLanguagePackageImpl theSolverLanguagePackage = registeredSolverLanguagePackage instanceof SolverLanguagePackageImpl ? (SolverLanguagePackageImpl)registeredSolverLanguagePackage : new SolverLanguagePackageImpl(); | ||
495 | |||
496 | isInited = true; | ||
497 | |||
498 | // Create package meta-data objects | ||
499 | theSolverLanguagePackage.createPackageContents(); | ||
500 | |||
501 | // Initialize created meta-data | ||
502 | theSolverLanguagePackage.initializePackageContents(); | ||
503 | |||
504 | // Mark meta-data to indicate it can't be changed | ||
505 | theSolverLanguagePackage.freeze(); | ||
506 | |||
507 | // Update the registry and return the package | ||
508 | EPackage.Registry.INSTANCE.put(SolverLanguagePackage.eNS_URI, theSolverLanguagePackage); | ||
509 | return theSolverLanguagePackage; | ||
510 | } | ||
511 | |||
512 | /** | ||
513 | * <!-- begin-user-doc --> | ||
514 | * <!-- end-user-doc --> | ||
515 | * @generated | ||
516 | */ | ||
517 | @Override | ||
518 | public EClass getProblem() | ||
519 | { | ||
520 | return problemEClass; | ||
521 | } | ||
522 | |||
523 | /** | ||
524 | * <!-- begin-user-doc --> | ||
525 | * <!-- end-user-doc --> | ||
526 | * @generated | ||
527 | */ | ||
528 | @Override | ||
529 | public EReference getProblem_Statements() | ||
530 | { | ||
531 | return (EReference)problemEClass.getEStructuralFeatures().get(0); | ||
532 | } | ||
533 | |||
534 | /** | ||
535 | * <!-- begin-user-doc --> | ||
536 | * <!-- end-user-doc --> | ||
537 | * @generated | ||
538 | */ | ||
539 | @Override | ||
540 | public EClass getStatement() | ||
541 | { | ||
542 | return statementEClass; | ||
543 | } | ||
544 | |||
545 | /** | ||
546 | * <!-- begin-user-doc --> | ||
547 | * <!-- end-user-doc --> | ||
548 | * @generated | ||
549 | */ | ||
550 | @Override | ||
551 | public EClass getPredicateDefinition() | ||
552 | { | ||
553 | return predicateDefinitionEClass; | ||
554 | } | ||
555 | |||
556 | /** | ||
557 | * <!-- begin-user-doc --> | ||
558 | * <!-- end-user-doc --> | ||
559 | * @generated | ||
560 | */ | ||
561 | @Override | ||
562 | public EReference getPredicateDefinition_Head() | ||
563 | { | ||
564 | return (EReference)predicateDefinitionEClass.getEStructuralFeatures().get(0); | ||
565 | } | ||
566 | |||
567 | /** | ||
568 | * <!-- begin-user-doc --> | ||
569 | * <!-- end-user-doc --> | ||
570 | * @generated | ||
571 | */ | ||
572 | @Override | ||
573 | public EReference getPredicateDefinition_Body() | ||
574 | { | ||
575 | return (EReference)predicateDefinitionEClass.getEStructuralFeatures().get(1); | ||
576 | } | ||
577 | |||
578 | /** | ||
579 | * <!-- begin-user-doc --> | ||
580 | * <!-- end-user-doc --> | ||
581 | * @generated | ||
582 | */ | ||
583 | @Override | ||
584 | public EAttribute getPredicateDefinition_Functional() | ||
585 | { | ||
586 | return (EAttribute)predicateDefinitionEClass.getEStructuralFeatures().get(2); | ||
587 | } | ||
588 | |||
589 | /** | ||
590 | * <!-- begin-user-doc --> | ||
591 | * <!-- end-user-doc --> | ||
592 | * @generated | ||
593 | */ | ||
594 | @Override | ||
595 | public EAttribute getPredicateDefinition_Error() | ||
596 | { | ||
597 | return (EAttribute)predicateDefinitionEClass.getEStructuralFeatures().get(3); | ||
598 | } | ||
599 | |||
600 | /** | ||
601 | * <!-- begin-user-doc --> | ||
602 | * <!-- end-user-doc --> | ||
603 | * @generated | ||
604 | */ | ||
605 | @Override | ||
606 | public EClass getUnnamedErrorPrediateDefinition() | ||
607 | { | ||
608 | return unnamedErrorPrediateDefinitionEClass; | ||
609 | } | ||
610 | |||
611 | /** | ||
612 | * <!-- begin-user-doc --> | ||
613 | * <!-- end-user-doc --> | ||
614 | * @generated | ||
615 | */ | ||
616 | @Override | ||
617 | public EReference getUnnamedErrorPrediateDefinition_ArgumentList() | ||
618 | { | ||
619 | return (EReference)unnamedErrorPrediateDefinitionEClass.getEStructuralFeatures().get(0); | ||
620 | } | ||
621 | |||
622 | /** | ||
623 | * <!-- begin-user-doc --> | ||
624 | * <!-- end-user-doc --> | ||
625 | * @generated | ||
626 | */ | ||
627 | @Override | ||
628 | public EReference getUnnamedErrorPrediateDefinition_Body() | ||
629 | { | ||
630 | return (EReference)unnamedErrorPrediateDefinitionEClass.getEStructuralFeatures().get(1); | ||
631 | } | ||
632 | |||
633 | /** | ||
634 | * <!-- begin-user-doc --> | ||
635 | * <!-- end-user-doc --> | ||
636 | * @generated | ||
637 | */ | ||
638 | @Override | ||
639 | public EClass getDefaultDefinition() | ||
640 | { | ||
641 | return defaultDefinitionEClass; | ||
642 | } | ||
643 | |||
644 | /** | ||
645 | * <!-- begin-user-doc --> | ||
646 | * <!-- end-user-doc --> | ||
647 | * @generated | ||
648 | */ | ||
649 | @Override | ||
650 | public EReference getDefaultDefinition_Head() | ||
651 | { | ||
652 | return (EReference)defaultDefinitionEClass.getEStructuralFeatures().get(0); | ||
653 | } | ||
654 | |||
655 | /** | ||
656 | * <!-- begin-user-doc --> | ||
657 | * <!-- end-user-doc --> | ||
658 | * @generated | ||
659 | */ | ||
660 | @Override | ||
661 | public EReference getDefaultDefinition_Range() | ||
662 | { | ||
663 | return (EReference)defaultDefinitionEClass.getEStructuralFeatures().get(1); | ||
664 | } | ||
665 | |||
666 | /** | ||
667 | * <!-- begin-user-doc --> | ||
668 | * <!-- end-user-doc --> | ||
669 | * @generated | ||
670 | */ | ||
671 | @Override | ||
672 | public EClass getExternPredicateDefinition() | ||
673 | { | ||
674 | return externPredicateDefinitionEClass; | ||
675 | } | ||
676 | |||
677 | /** | ||
678 | * <!-- begin-user-doc --> | ||
679 | * <!-- end-user-doc --> | ||
680 | * @generated | ||
681 | */ | ||
682 | @Override | ||
683 | public EReference getExternPredicateDefinition_Head() | ||
684 | { | ||
685 | return (EReference)externPredicateDefinitionEClass.getEStructuralFeatures().get(0); | ||
686 | } | ||
687 | |||
688 | /** | ||
689 | * <!-- begin-user-doc --> | ||
690 | * <!-- end-user-doc --> | ||
691 | * @generated | ||
692 | */ | ||
693 | @Override | ||
694 | public EClass getMetricDefinition() | ||
695 | { | ||
696 | return metricDefinitionEClass; | ||
697 | } | ||
698 | |||
699 | /** | ||
700 | * <!-- begin-user-doc --> | ||
701 | * <!-- end-user-doc --> | ||
702 | * @generated | ||
703 | */ | ||
704 | @Override | ||
705 | public EReference getMetricDefinition_Head() | ||
706 | { | ||
707 | return (EReference)metricDefinitionEClass.getEStructuralFeatures().get(0); | ||
708 | } | ||
709 | |||
710 | /** | ||
711 | * <!-- begin-user-doc --> | ||
712 | * <!-- end-user-doc --> | ||
713 | * @generated | ||
714 | */ | ||
715 | @Override | ||
716 | public EReference getMetricDefinition_Body() | ||
717 | { | ||
718 | return (EReference)metricDefinitionEClass.getEStructuralFeatures().get(1); | ||
719 | } | ||
720 | |||
721 | /** | ||
722 | * <!-- begin-user-doc --> | ||
723 | * <!-- end-user-doc --> | ||
724 | * @generated | ||
725 | */ | ||
726 | @Override | ||
727 | public EAttribute getMetricDefinition_Type() | ||
728 | { | ||
729 | return (EAttribute)metricDefinitionEClass.getEStructuralFeatures().get(2); | ||
730 | } | ||
731 | |||
732 | /** | ||
733 | * <!-- begin-user-doc --> | ||
734 | * <!-- end-user-doc --> | ||
735 | * @generated | ||
736 | */ | ||
737 | @Override | ||
738 | public EClass getExternMetricDefinition() | ||
739 | { | ||
740 | return externMetricDefinitionEClass; | ||
741 | } | ||
742 | |||
743 | /** | ||
744 | * <!-- begin-user-doc --> | ||
745 | * <!-- end-user-doc --> | ||
746 | * @generated | ||
747 | */ | ||
748 | @Override | ||
749 | public EAttribute getExternMetricDefinition_Type() | ||
750 | { | ||
751 | return (EAttribute)externMetricDefinitionEClass.getEStructuralFeatures().get(0); | ||
752 | } | ||
753 | |||
754 | /** | ||
755 | * <!-- begin-user-doc --> | ||
756 | * <!-- end-user-doc --> | ||
757 | * @generated | ||
758 | */ | ||
759 | @Override | ||
760 | public EReference getExternMetricDefinition_Head() | ||
761 | { | ||
762 | return (EReference)externMetricDefinitionEClass.getEStructuralFeatures().get(1); | ||
763 | } | ||
764 | |||
765 | /** | ||
766 | * <!-- begin-user-doc --> | ||
767 | * <!-- end-user-doc --> | ||
768 | * @generated | ||
769 | */ | ||
770 | @Override | ||
771 | public EClass getExpression() | ||
772 | { | ||
773 | return expressionEClass; | ||
774 | } | ||
775 | |||
776 | /** | ||
777 | * <!-- begin-user-doc --> | ||
778 | * <!-- end-user-doc --> | ||
779 | * @generated | ||
780 | */ | ||
781 | @Override | ||
782 | public EClass getIfElse() | ||
783 | { | ||
784 | return ifElseEClass; | ||
785 | } | ||
786 | |||
787 | /** | ||
788 | * <!-- begin-user-doc --> | ||
789 | * <!-- end-user-doc --> | ||
790 | * @generated | ||
791 | */ | ||
792 | @Override | ||
793 | public EReference getIfElse_Condition() | ||
794 | { | ||
795 | return (EReference)ifElseEClass.getEStructuralFeatures().get(0); | ||
796 | } | ||
797 | |||
798 | /** | ||
799 | * <!-- begin-user-doc --> | ||
800 | * <!-- end-user-doc --> | ||
801 | * @generated | ||
802 | */ | ||
803 | @Override | ||
804 | public EReference getIfElse_Then() | ||
805 | { | ||
806 | return (EReference)ifElseEClass.getEStructuralFeatures().get(1); | ||
807 | } | ||
808 | |||
809 | /** | ||
810 | * <!-- begin-user-doc --> | ||
811 | * <!-- end-user-doc --> | ||
812 | * @generated | ||
813 | */ | ||
814 | @Override | ||
815 | public EReference getIfElse_Else() | ||
816 | { | ||
817 | return (EReference)ifElseEClass.getEStructuralFeatures().get(2); | ||
818 | } | ||
819 | |||
820 | /** | ||
821 | * <!-- begin-user-doc --> | ||
822 | * <!-- end-user-doc --> | ||
823 | * @generated | ||
824 | */ | ||
825 | @Override | ||
826 | public EClass getCase() | ||
827 | { | ||
828 | return caseEClass; | ||
829 | } | ||
830 | |||
831 | /** | ||
832 | * <!-- begin-user-doc --> | ||
833 | * <!-- end-user-doc --> | ||
834 | * @generated | ||
835 | */ | ||
836 | @Override | ||
837 | public EReference getCase_Condition() | ||
838 | { | ||
839 | return (EReference)caseEClass.getEStructuralFeatures().get(0); | ||
840 | } | ||
841 | |||
842 | /** | ||
843 | * <!-- begin-user-doc --> | ||
844 | * <!-- end-user-doc --> | ||
845 | * @generated | ||
846 | */ | ||
847 | @Override | ||
848 | public EReference getCase_Body() | ||
849 | { | ||
850 | return (EReference)caseEClass.getEStructuralFeatures().get(1); | ||
851 | } | ||
852 | |||
853 | /** | ||
854 | * <!-- begin-user-doc --> | ||
855 | * <!-- end-user-doc --> | ||
856 | * @generated | ||
857 | */ | ||
858 | @Override | ||
859 | public EClass getCount() | ||
860 | { | ||
861 | return countEClass; | ||
862 | } | ||
863 | |||
864 | /** | ||
865 | * <!-- begin-user-doc --> | ||
866 | * <!-- end-user-doc --> | ||
867 | * @generated | ||
868 | */ | ||
869 | @Override | ||
870 | public EReference getCount_Body() | ||
871 | { | ||
872 | return (EReference)countEClass.getEStructuralFeatures().get(0); | ||
873 | } | ||
874 | |||
875 | /** | ||
876 | * <!-- begin-user-doc --> | ||
877 | * <!-- end-user-doc --> | ||
878 | * @generated | ||
879 | */ | ||
880 | @Override | ||
881 | public EClass getAggregation() | ||
882 | { | ||
883 | return aggregationEClass; | ||
884 | } | ||
885 | |||
886 | /** | ||
887 | * <!-- begin-user-doc --> | ||
888 | * <!-- end-user-doc --> | ||
889 | * @generated | ||
890 | */ | ||
891 | @Override | ||
892 | public EAttribute getAggregation_Op() | ||
893 | { | ||
894 | return (EAttribute)aggregationEClass.getEStructuralFeatures().get(0); | ||
895 | } | ||
896 | |||
897 | /** | ||
898 | * <!-- begin-user-doc --> | ||
899 | * <!-- end-user-doc --> | ||
900 | * @generated | ||
901 | */ | ||
902 | @Override | ||
903 | public EReference getAggregation_Body() | ||
904 | { | ||
905 | return (EReference)aggregationEClass.getEStructuralFeatures().get(1); | ||
906 | } | ||
907 | |||
908 | /** | ||
909 | * <!-- begin-user-doc --> | ||
910 | * <!-- end-user-doc --> | ||
911 | * @generated | ||
912 | */ | ||
913 | @Override | ||
914 | public EReference getAggregation_Condition() | ||
915 | { | ||
916 | return (EReference)aggregationEClass.getEStructuralFeatures().get(2); | ||
917 | } | ||
918 | |||
919 | /** | ||
920 | * <!-- begin-user-doc --> | ||
921 | * <!-- end-user-doc --> | ||
922 | * @generated | ||
923 | */ | ||
924 | @Override | ||
925 | public EClass getCall() | ||
926 | { | ||
927 | return callEClass; | ||
928 | } | ||
929 | |||
930 | /** | ||
931 | * <!-- begin-user-doc --> | ||
932 | * <!-- end-user-doc --> | ||
933 | * @generated | ||
934 | */ | ||
935 | @Override | ||
936 | public EReference getCall_Functor() | ||
937 | { | ||
938 | return (EReference)callEClass.getEStructuralFeatures().get(0); | ||
939 | } | ||
940 | |||
941 | /** | ||
942 | * <!-- begin-user-doc --> | ||
943 | * <!-- end-user-doc --> | ||
944 | * @generated | ||
945 | */ | ||
946 | @Override | ||
947 | public EAttribute getCall_TransitiveClosure() | ||
948 | { | ||
949 | return (EAttribute)callEClass.getEStructuralFeatures().get(1); | ||
950 | } | ||
951 | |||
952 | /** | ||
953 | * <!-- begin-user-doc --> | ||
954 | * <!-- end-user-doc --> | ||
955 | * @generated | ||
956 | */ | ||
957 | @Override | ||
958 | public EAttribute getCall_ReflexiveTransitiveClosure() | ||
959 | { | ||
960 | return (EAttribute)callEClass.getEStructuralFeatures().get(2); | ||
961 | } | ||
962 | |||
963 | /** | ||
964 | * <!-- begin-user-doc --> | ||
965 | * <!-- end-user-doc --> | ||
966 | * @generated | ||
967 | */ | ||
968 | @Override | ||
969 | public EReference getCall_ArgumentList() | ||
970 | { | ||
971 | return (EReference)callEClass.getEStructuralFeatures().get(3); | ||
972 | } | ||
973 | |||
974 | /** | ||
975 | * <!-- begin-user-doc --> | ||
976 | * <!-- end-user-doc --> | ||
977 | * @generated | ||
978 | */ | ||
979 | @Override | ||
980 | public EClass getArgumentList() | ||
981 | { | ||
982 | return argumentListEClass; | ||
983 | } | ||
984 | |||
985 | /** | ||
986 | * <!-- begin-user-doc --> | ||
987 | * <!-- end-user-doc --> | ||
988 | * @generated | ||
989 | */ | ||
990 | @Override | ||
991 | public EReference getArgumentList_Arguments() | ||
992 | { | ||
993 | return (EReference)argumentListEClass.getEStructuralFeatures().get(0); | ||
994 | } | ||
995 | |||
996 | /** | ||
997 | * <!-- begin-user-doc --> | ||
998 | * <!-- end-user-doc --> | ||
999 | * @generated | ||
1000 | */ | ||
1001 | @Override | ||
1002 | public EClass getArgument() | ||
1003 | { | ||
1004 | return argumentEClass; | ||
1005 | } | ||
1006 | |||
1007 | /** | ||
1008 | * <!-- begin-user-doc --> | ||
1009 | * <!-- end-user-doc --> | ||
1010 | * @generated | ||
1011 | */ | ||
1012 | @Override | ||
1013 | public EClass getExpressionArgument() | ||
1014 | { | ||
1015 | return expressionArgumentEClass; | ||
1016 | } | ||
1017 | |||
1018 | /** | ||
1019 | * <!-- begin-user-doc --> | ||
1020 | * <!-- end-user-doc --> | ||
1021 | * @generated | ||
1022 | */ | ||
1023 | @Override | ||
1024 | public EReference getExpressionArgument_Body() | ||
1025 | { | ||
1026 | return (EReference)expressionArgumentEClass.getEStructuralFeatures().get(0); | ||
1027 | } | ||
1028 | |||
1029 | /** | ||
1030 | * <!-- begin-user-doc --> | ||
1031 | * <!-- end-user-doc --> | ||
1032 | * @generated | ||
1033 | */ | ||
1034 | @Override | ||
1035 | public EClass getStarArgument() | ||
1036 | { | ||
1037 | return starArgumentEClass; | ||
1038 | } | ||
1039 | |||
1040 | /** | ||
1041 | * <!-- begin-user-doc --> | ||
1042 | * <!-- end-user-doc --> | ||
1043 | * @generated | ||
1044 | */ | ||
1045 | @Override | ||
1046 | public EClass getTypedArgument() | ||
1047 | { | ||
1048 | return typedArgumentEClass; | ||
1049 | } | ||
1050 | |||
1051 | /** | ||
1052 | * <!-- begin-user-doc --> | ||
1053 | * <!-- end-user-doc --> | ||
1054 | * @generated | ||
1055 | */ | ||
1056 | @Override | ||
1057 | public EReference getTypedArgument_Type() | ||
1058 | { | ||
1059 | return (EReference)typedArgumentEClass.getEStructuralFeatures().get(0); | ||
1060 | } | ||
1061 | |||
1062 | /** | ||
1063 | * <!-- begin-user-doc --> | ||
1064 | * <!-- end-user-doc --> | ||
1065 | * @generated | ||
1066 | */ | ||
1067 | @Override | ||
1068 | public EReference getTypedArgument_Variable() | ||
1069 | { | ||
1070 | return (EReference)typedArgumentEClass.getEStructuralFeatures().get(1); | ||
1071 | } | ||
1072 | |||
1073 | /** | ||
1074 | * <!-- begin-user-doc --> | ||
1075 | * <!-- end-user-doc --> | ||
1076 | * @generated | ||
1077 | */ | ||
1078 | @Override | ||
1079 | public EClass getTypedStarArgument() | ||
1080 | { | ||
1081 | return typedStarArgumentEClass; | ||
1082 | } | ||
1083 | |||
1084 | /** | ||
1085 | * <!-- begin-user-doc --> | ||
1086 | * <!-- end-user-doc --> | ||
1087 | * @generated | ||
1088 | */ | ||
1089 | @Override | ||
1090 | public EReference getTypedStarArgument_Type() | ||
1091 | { | ||
1092 | return (EReference)typedStarArgumentEClass.getEStructuralFeatures().get(0); | ||
1093 | } | ||
1094 | |||
1095 | /** | ||
1096 | * <!-- begin-user-doc --> | ||
1097 | * <!-- end-user-doc --> | ||
1098 | * @generated | ||
1099 | */ | ||
1100 | @Override | ||
1101 | public EClass getReference() | ||
1102 | { | ||
1103 | return referenceEClass; | ||
1104 | } | ||
1105 | |||
1106 | /** | ||
1107 | * <!-- begin-user-doc --> | ||
1108 | * <!-- end-user-doc --> | ||
1109 | * @generated | ||
1110 | */ | ||
1111 | @Override | ||
1112 | public EReference getReference_Referred() | ||
1113 | { | ||
1114 | return (EReference)referenceEClass.getEStructuralFeatures().get(0); | ||
1115 | } | ||
1116 | |||
1117 | /** | ||
1118 | * <!-- begin-user-doc --> | ||
1119 | * <!-- end-user-doc --> | ||
1120 | * @generated | ||
1121 | */ | ||
1122 | @Override | ||
1123 | public EClass getInterval() | ||
1124 | { | ||
1125 | return intervalEClass; | ||
1126 | } | ||
1127 | |||
1128 | /** | ||
1129 | * <!-- begin-user-doc --> | ||
1130 | * <!-- end-user-doc --> | ||
1131 | * @generated | ||
1132 | */ | ||
1133 | @Override | ||
1134 | public EReference getInterval_LowerBound() | ||
1135 | { | ||
1136 | return (EReference)intervalEClass.getEStructuralFeatures().get(0); | ||
1137 | } | ||
1138 | |||
1139 | /** | ||
1140 | * <!-- begin-user-doc --> | ||
1141 | * <!-- end-user-doc --> | ||
1142 | * @generated | ||
1143 | */ | ||
1144 | @Override | ||
1145 | public EReference getInterval_UpperBound() | ||
1146 | { | ||
1147 | return (EReference)intervalEClass.getEStructuralFeatures().get(1); | ||
1148 | } | ||
1149 | |||
1150 | /** | ||
1151 | * <!-- begin-user-doc --> | ||
1152 | * <!-- end-user-doc --> | ||
1153 | * @generated | ||
1154 | */ | ||
1155 | @Override | ||
1156 | public EClass getLiteral() | ||
1157 | { | ||
1158 | return literalEClass; | ||
1159 | } | ||
1160 | |||
1161 | /** | ||
1162 | * <!-- begin-user-doc --> | ||
1163 | * <!-- end-user-doc --> | ||
1164 | * @generated | ||
1165 | */ | ||
1166 | @Override | ||
1167 | public EClass getLogicLiteral() | ||
1168 | { | ||
1169 | return logicLiteralEClass; | ||
1170 | } | ||
1171 | |||
1172 | /** | ||
1173 | * <!-- begin-user-doc --> | ||
1174 | * <!-- end-user-doc --> | ||
1175 | * @generated | ||
1176 | */ | ||
1177 | @Override | ||
1178 | public EAttribute getLogicLiteral_Value() | ||
1179 | { | ||
1180 | return (EAttribute)logicLiteralEClass.getEStructuralFeatures().get(0); | ||
1181 | } | ||
1182 | |||
1183 | /** | ||
1184 | * <!-- begin-user-doc --> | ||
1185 | * <!-- end-user-doc --> | ||
1186 | * @generated | ||
1187 | */ | ||
1188 | @Override | ||
1189 | public EClass getNumericLiteral() | ||
1190 | { | ||
1191 | return numericLiteralEClass; | ||
1192 | } | ||
1193 | |||
1194 | /** | ||
1195 | * <!-- begin-user-doc --> | ||
1196 | * <!-- end-user-doc --> | ||
1197 | * @generated | ||
1198 | */ | ||
1199 | @Override | ||
1200 | public EAttribute getNumericLiteral_Value() | ||
1201 | { | ||
1202 | return (EAttribute)numericLiteralEClass.getEStructuralFeatures().get(0); | ||
1203 | } | ||
1204 | |||
1205 | /** | ||
1206 | * <!-- begin-user-doc --> | ||
1207 | * <!-- end-user-doc --> | ||
1208 | * @generated | ||
1209 | */ | ||
1210 | @Override | ||
1211 | public EClass getInfinityLiteral() | ||
1212 | { | ||
1213 | return infinityLiteralEClass; | ||
1214 | } | ||
1215 | |||
1216 | /** | ||
1217 | * <!-- begin-user-doc --> | ||
1218 | * <!-- end-user-doc --> | ||
1219 | * @generated | ||
1220 | */ | ||
1221 | @Override | ||
1222 | public EClass getEmptyIntervalLiteral() | ||
1223 | { | ||
1224 | return emptyIntervalLiteralEClass; | ||
1225 | } | ||
1226 | |||
1227 | /** | ||
1228 | * <!-- begin-user-doc --> | ||
1229 | * <!-- end-user-doc --> | ||
1230 | * @generated | ||
1231 | */ | ||
1232 | @Override | ||
1233 | public EClass getStringLiteral() | ||
1234 | { | ||
1235 | return stringLiteralEClass; | ||
1236 | } | ||
1237 | |||
1238 | /** | ||
1239 | * <!-- begin-user-doc --> | ||
1240 | * <!-- end-user-doc --> | ||
1241 | * @generated | ||
1242 | */ | ||
1243 | @Override | ||
1244 | public EAttribute getStringLiteral_Value() | ||
1245 | { | ||
1246 | return (EAttribute)stringLiteralEClass.getEStructuralFeatures().get(0); | ||
1247 | } | ||
1248 | |||
1249 | /** | ||
1250 | * <!-- begin-user-doc --> | ||
1251 | * <!-- end-user-doc --> | ||
1252 | * @generated | ||
1253 | */ | ||
1254 | @Override | ||
1255 | public EClass getClassDefinition() | ||
1256 | { | ||
1257 | return classDefinitionEClass; | ||
1258 | } | ||
1259 | |||
1260 | /** | ||
1261 | * <!-- begin-user-doc --> | ||
1262 | * <!-- end-user-doc --> | ||
1263 | * @generated | ||
1264 | */ | ||
1265 | @Override | ||
1266 | public EAttribute getClassDefinition_Abstract() | ||
1267 | { | ||
1268 | return (EAttribute)classDefinitionEClass.getEStructuralFeatures().get(0); | ||
1269 | } | ||
1270 | |||
1271 | /** | ||
1272 | * <!-- begin-user-doc --> | ||
1273 | * <!-- end-user-doc --> | ||
1274 | * @generated | ||
1275 | */ | ||
1276 | @Override | ||
1277 | public EAttribute getClassDefinition_Name() | ||
1278 | { | ||
1279 | return (EAttribute)classDefinitionEClass.getEStructuralFeatures().get(1); | ||
1280 | } | ||
1281 | |||
1282 | /** | ||
1283 | * <!-- begin-user-doc --> | ||
1284 | * <!-- end-user-doc --> | ||
1285 | * @generated | ||
1286 | */ | ||
1287 | @Override | ||
1288 | public EReference getClassDefinition_Superclasses() | ||
1289 | { | ||
1290 | return (EReference)classDefinitionEClass.getEStructuralFeatures().get(2); | ||
1291 | } | ||
1292 | |||
1293 | /** | ||
1294 | * <!-- begin-user-doc --> | ||
1295 | * <!-- end-user-doc --> | ||
1296 | * @generated | ||
1297 | */ | ||
1298 | @Override | ||
1299 | public EReference getClassDefinition_Members() | ||
1300 | { | ||
1301 | return (EReference)classDefinitionEClass.getEStructuralFeatures().get(3); | ||
1302 | } | ||
1303 | |||
1304 | /** | ||
1305 | * <!-- begin-user-doc --> | ||
1306 | * <!-- end-user-doc --> | ||
1307 | * @generated | ||
1308 | */ | ||
1309 | @Override | ||
1310 | public EClass getMemberDefinition() | ||
1311 | { | ||
1312 | return memberDefinitionEClass; | ||
1313 | } | ||
1314 | |||
1315 | /** | ||
1316 | * <!-- begin-user-doc --> | ||
1317 | * <!-- end-user-doc --> | ||
1318 | * @generated | ||
1319 | */ | ||
1320 | @Override | ||
1321 | public EAttribute getMemberDefinition_Containment() | ||
1322 | { | ||
1323 | return (EAttribute)memberDefinitionEClass.getEStructuralFeatures().get(0); | ||
1324 | } | ||
1325 | |||
1326 | /** | ||
1327 | * <!-- begin-user-doc --> | ||
1328 | * <!-- end-user-doc --> | ||
1329 | * @generated | ||
1330 | */ | ||
1331 | @Override | ||
1332 | public EReference getMemberDefinition_Type() | ||
1333 | { | ||
1334 | return (EReference)memberDefinitionEClass.getEStructuralFeatures().get(1); | ||
1335 | } | ||
1336 | |||
1337 | /** | ||
1338 | * <!-- begin-user-doc --> | ||
1339 | * <!-- end-user-doc --> | ||
1340 | * @generated | ||
1341 | */ | ||
1342 | @Override | ||
1343 | public EReference getMemberDefinition_Multiplicity() | ||
1344 | { | ||
1345 | return (EReference)memberDefinitionEClass.getEStructuralFeatures().get(2); | ||
1346 | } | ||
1347 | |||
1348 | /** | ||
1349 | * <!-- begin-user-doc --> | ||
1350 | * <!-- end-user-doc --> | ||
1351 | * @generated | ||
1352 | */ | ||
1353 | @Override | ||
1354 | public EAttribute getMemberDefinition_Name() | ||
1355 | { | ||
1356 | return (EAttribute)memberDefinitionEClass.getEStructuralFeatures().get(3); | ||
1357 | } | ||
1358 | |||
1359 | /** | ||
1360 | * <!-- begin-user-doc --> | ||
1361 | * <!-- end-user-doc --> | ||
1362 | * @generated | ||
1363 | */ | ||
1364 | @Override | ||
1365 | public EReference getMemberDefinition_Opposite() | ||
1366 | { | ||
1367 | return (EReference)memberDefinitionEClass.getEStructuralFeatures().get(4); | ||
1368 | } | ||
1369 | |||
1370 | /** | ||
1371 | * <!-- begin-user-doc --> | ||
1372 | * <!-- end-user-doc --> | ||
1373 | * @generated | ||
1374 | */ | ||
1375 | @Override | ||
1376 | public EClass getMultiplicity() | ||
1377 | { | ||
1378 | return multiplicityEClass; | ||
1379 | } | ||
1380 | |||
1381 | /** | ||
1382 | * <!-- begin-user-doc --> | ||
1383 | * <!-- end-user-doc --> | ||
1384 | * @generated | ||
1385 | */ | ||
1386 | @Override | ||
1387 | public EClass getManyMultiplicity() | ||
1388 | { | ||
1389 | return manyMultiplicityEClass; | ||
1390 | } | ||
1391 | |||
1392 | /** | ||
1393 | * <!-- begin-user-doc --> | ||
1394 | * <!-- end-user-doc --> | ||
1395 | * @generated | ||
1396 | */ | ||
1397 | @Override | ||
1398 | public EClass getExactMultiplicity() | ||
1399 | { | ||
1400 | return exactMultiplicityEClass; | ||
1401 | } | ||
1402 | |||
1403 | /** | ||
1404 | * <!-- begin-user-doc --> | ||
1405 | * <!-- end-user-doc --> | ||
1406 | * @generated | ||
1407 | */ | ||
1408 | @Override | ||
1409 | public EAttribute getExactMultiplicity_Multiplicity() | ||
1410 | { | ||
1411 | return (EAttribute)exactMultiplicityEClass.getEStructuralFeatures().get(0); | ||
1412 | } | ||
1413 | |||
1414 | /** | ||
1415 | * <!-- begin-user-doc --> | ||
1416 | * <!-- end-user-doc --> | ||
1417 | * @generated | ||
1418 | */ | ||
1419 | @Override | ||
1420 | public EClass getBoundedMultiplicity() | ||
1421 | { | ||
1422 | return boundedMultiplicityEClass; | ||
1423 | } | ||
1424 | |||
1425 | /** | ||
1426 | * <!-- begin-user-doc --> | ||
1427 | * <!-- end-user-doc --> | ||
1428 | * @generated | ||
1429 | */ | ||
1430 | @Override | ||
1431 | public EAttribute getBoundedMultiplicity_LowerBound() | ||
1432 | { | ||
1433 | return (EAttribute)boundedMultiplicityEClass.getEStructuralFeatures().get(0); | ||
1434 | } | ||
1435 | |||
1436 | /** | ||
1437 | * <!-- begin-user-doc --> | ||
1438 | * <!-- end-user-doc --> | ||
1439 | * @generated | ||
1440 | */ | ||
1441 | @Override | ||
1442 | public EAttribute getBoundedMultiplicity_UpperBound() | ||
1443 | { | ||
1444 | return (EAttribute)boundedMultiplicityEClass.getEStructuralFeatures().get(1); | ||
1445 | } | ||
1446 | |||
1447 | /** | ||
1448 | * <!-- begin-user-doc --> | ||
1449 | * <!-- end-user-doc --> | ||
1450 | * @generated | ||
1451 | */ | ||
1452 | @Override | ||
1453 | public EClass getScopeDefinition() | ||
1454 | { | ||
1455 | return scopeDefinitionEClass; | ||
1456 | } | ||
1457 | |||
1458 | /** | ||
1459 | * <!-- begin-user-doc --> | ||
1460 | * <!-- end-user-doc --> | ||
1461 | * @generated | ||
1462 | */ | ||
1463 | @Override | ||
1464 | public EReference getScopeDefinition_Type() | ||
1465 | { | ||
1466 | return (EReference)scopeDefinitionEClass.getEStructuralFeatures().get(0); | ||
1467 | } | ||
1468 | |||
1469 | /** | ||
1470 | * <!-- begin-user-doc --> | ||
1471 | * <!-- end-user-doc --> | ||
1472 | * @generated | ||
1473 | */ | ||
1474 | @Override | ||
1475 | public EClass getExactScopeDefinition() | ||
1476 | { | ||
1477 | return exactScopeDefinitionEClass; | ||
1478 | } | ||
1479 | |||
1480 | /** | ||
1481 | * <!-- begin-user-doc --> | ||
1482 | * <!-- end-user-doc --> | ||
1483 | * @generated | ||
1484 | */ | ||
1485 | @Override | ||
1486 | public EAttribute getExactScopeDefinition_ExactScope() | ||
1487 | { | ||
1488 | return (EAttribute)exactScopeDefinitionEClass.getEStructuralFeatures().get(0); | ||
1489 | } | ||
1490 | |||
1491 | /** | ||
1492 | * <!-- begin-user-doc --> | ||
1493 | * <!-- end-user-doc --> | ||
1494 | * @generated | ||
1495 | */ | ||
1496 | @Override | ||
1497 | public EClass getBoundedScopeDefinition() | ||
1498 | { | ||
1499 | return boundedScopeDefinitionEClass; | ||
1500 | } | ||
1501 | |||
1502 | /** | ||
1503 | * <!-- begin-user-doc --> | ||
1504 | * <!-- end-user-doc --> | ||
1505 | * @generated | ||
1506 | */ | ||
1507 | @Override | ||
1508 | public EAttribute getBoundedScopeDefinition_LowerBound() | ||
1509 | { | ||
1510 | return (EAttribute)boundedScopeDefinitionEClass.getEStructuralFeatures().get(0); | ||
1511 | } | ||
1512 | |||
1513 | /** | ||
1514 | * <!-- begin-user-doc --> | ||
1515 | * <!-- end-user-doc --> | ||
1516 | * @generated | ||
1517 | */ | ||
1518 | @Override | ||
1519 | public EAttribute getBoundedScopeDefinition_UpperBound() | ||
1520 | { | ||
1521 | return (EAttribute)boundedScopeDefinitionEClass.getEStructuralFeatures().get(1); | ||
1522 | } | ||
1523 | |||
1524 | /** | ||
1525 | * <!-- begin-user-doc --> | ||
1526 | * <!-- end-user-doc --> | ||
1527 | * @generated | ||
1528 | */ | ||
1529 | @Override | ||
1530 | public EClass getLowerBoundedScopeDefinition() | ||
1531 | { | ||
1532 | return lowerBoundedScopeDefinitionEClass; | ||
1533 | } | ||
1534 | |||
1535 | /** | ||
1536 | * <!-- begin-user-doc --> | ||
1537 | * <!-- end-user-doc --> | ||
1538 | * @generated | ||
1539 | */ | ||
1540 | @Override | ||
1541 | public EAttribute getLowerBoundedScopeDefinition_LowerBound() | ||
1542 | { | ||
1543 | return (EAttribute)lowerBoundedScopeDefinitionEClass.getEStructuralFeatures().get(0); | ||
1544 | } | ||
1545 | |||
1546 | /** | ||
1547 | * <!-- begin-user-doc --> | ||
1548 | * <!-- end-user-doc --> | ||
1549 | * @generated | ||
1550 | */ | ||
1551 | @Override | ||
1552 | public EClass getObjectiveDefinition() | ||
1553 | { | ||
1554 | return objectiveDefinitionEClass; | ||
1555 | } | ||
1556 | |||
1557 | /** | ||
1558 | * <!-- begin-user-doc --> | ||
1559 | * <!-- end-user-doc --> | ||
1560 | * @generated | ||
1561 | */ | ||
1562 | @Override | ||
1563 | public EAttribute getObjectiveDefinition_Kind() | ||
1564 | { | ||
1565 | return (EAttribute)objectiveDefinitionEClass.getEStructuralFeatures().get(0); | ||
1566 | } | ||
1567 | |||
1568 | /** | ||
1569 | * <!-- begin-user-doc --> | ||
1570 | * <!-- end-user-doc --> | ||
1571 | * @generated | ||
1572 | */ | ||
1573 | @Override | ||
1574 | public EReference getObjectiveDefinition_Objective() | ||
1575 | { | ||
1576 | return (EReference)objectiveDefinitionEClass.getEStructuralFeatures().get(1); | ||
1577 | } | ||
1578 | |||
1579 | /** | ||
1580 | * <!-- begin-user-doc --> | ||
1581 | * <!-- end-user-doc --> | ||
1582 | * @generated | ||
1583 | */ | ||
1584 | @Override | ||
1585 | public EClass getNamedElement() | ||
1586 | { | ||
1587 | return namedElementEClass; | ||
1588 | } | ||
1589 | |||
1590 | /** | ||
1591 | * <!-- begin-user-doc --> | ||
1592 | * <!-- end-user-doc --> | ||
1593 | * @generated | ||
1594 | */ | ||
1595 | @Override | ||
1596 | public EAttribute getNamedElement_Name() | ||
1597 | { | ||
1598 | return (EAttribute)namedElementEClass.getEStructuralFeatures().get(0); | ||
1599 | } | ||
1600 | |||
1601 | /** | ||
1602 | * <!-- begin-user-doc --> | ||
1603 | * <!-- end-user-doc --> | ||
1604 | * @generated | ||
1605 | */ | ||
1606 | @Override | ||
1607 | public EClass getAssertion() | ||
1608 | { | ||
1609 | return assertionEClass; | ||
1610 | } | ||
1611 | |||
1612 | /** | ||
1613 | * <!-- begin-user-doc --> | ||
1614 | * <!-- end-user-doc --> | ||
1615 | * @generated | ||
1616 | */ | ||
1617 | @Override | ||
1618 | public EReference getAssertion_Body() | ||
1619 | { | ||
1620 | return (EReference)assertionEClass.getEStructuralFeatures().get(0); | ||
1621 | } | ||
1622 | |||
1623 | /** | ||
1624 | * <!-- begin-user-doc --> | ||
1625 | * <!-- end-user-doc --> | ||
1626 | * @generated | ||
1627 | */ | ||
1628 | @Override | ||
1629 | public EReference getAssertion_Range() | ||
1630 | { | ||
1631 | return (EReference)assertionEClass.getEStructuralFeatures().get(1); | ||
1632 | } | ||
1633 | |||
1634 | /** | ||
1635 | * <!-- begin-user-doc --> | ||
1636 | * <!-- end-user-doc --> | ||
1637 | * @generated | ||
1638 | */ | ||
1639 | @Override | ||
1640 | public EClass getDisjunction() | ||
1641 | { | ||
1642 | return disjunctionEClass; | ||
1643 | } | ||
1644 | |||
1645 | /** | ||
1646 | * <!-- begin-user-doc --> | ||
1647 | * <!-- end-user-doc --> | ||
1648 | * @generated | ||
1649 | */ | ||
1650 | @Override | ||
1651 | public EReference getDisjunction_Children() | ||
1652 | { | ||
1653 | return (EReference)disjunctionEClass.getEStructuralFeatures().get(0); | ||
1654 | } | ||
1655 | |||
1656 | /** | ||
1657 | * <!-- begin-user-doc --> | ||
1658 | * <!-- end-user-doc --> | ||
1659 | * @generated | ||
1660 | */ | ||
1661 | @Override | ||
1662 | public EClass getSwitch() | ||
1663 | { | ||
1664 | return switchEClass; | ||
1665 | } | ||
1666 | |||
1667 | /** | ||
1668 | * <!-- begin-user-doc --> | ||
1669 | * <!-- end-user-doc --> | ||
1670 | * @generated | ||
1671 | */ | ||
1672 | @Override | ||
1673 | public EReference getSwitch_Cases() | ||
1674 | { | ||
1675 | return (EReference)switchEClass.getEStructuralFeatures().get(0); | ||
1676 | } | ||
1677 | |||
1678 | /** | ||
1679 | * <!-- begin-user-doc --> | ||
1680 | * <!-- end-user-doc --> | ||
1681 | * @generated | ||
1682 | */ | ||
1683 | @Override | ||
1684 | public EClass getConjunction() | ||
1685 | { | ||
1686 | return conjunctionEClass; | ||
1687 | } | ||
1688 | |||
1689 | /** | ||
1690 | * <!-- begin-user-doc --> | ||
1691 | * <!-- end-user-doc --> | ||
1692 | * @generated | ||
1693 | */ | ||
1694 | @Override | ||
1695 | public EReference getConjunction_Children() | ||
1696 | { | ||
1697 | return (EReference)conjunctionEClass.getEStructuralFeatures().get(0); | ||
1698 | } | ||
1699 | |||
1700 | /** | ||
1701 | * <!-- begin-user-doc --> | ||
1702 | * <!-- end-user-doc --> | ||
1703 | * @generated | ||
1704 | */ | ||
1705 | @Override | ||
1706 | public EClass getComparison() | ||
1707 | { | ||
1708 | return comparisonEClass; | ||
1709 | } | ||
1710 | |||
1711 | /** | ||
1712 | * <!-- begin-user-doc --> | ||
1713 | * <!-- end-user-doc --> | ||
1714 | * @generated | ||
1715 | */ | ||
1716 | @Override | ||
1717 | public EReference getComparison_Left() | ||
1718 | { | ||
1719 | return (EReference)comparisonEClass.getEStructuralFeatures().get(0); | ||
1720 | } | ||
1721 | |||
1722 | /** | ||
1723 | * <!-- begin-user-doc --> | ||
1724 | * <!-- end-user-doc --> | ||
1725 | * @generated | ||
1726 | */ | ||
1727 | @Override | ||
1728 | public EAttribute getComparison_Op() | ||
1729 | { | ||
1730 | return (EAttribute)comparisonEClass.getEStructuralFeatures().get(1); | ||
1731 | } | ||
1732 | |||
1733 | /** | ||
1734 | * <!-- begin-user-doc --> | ||
1735 | * <!-- end-user-doc --> | ||
1736 | * @generated | ||
1737 | */ | ||
1738 | @Override | ||
1739 | public EReference getComparison_Right() | ||
1740 | { | ||
1741 | return (EReference)comparisonEClass.getEStructuralFeatures().get(2); | ||
1742 | } | ||
1743 | |||
1744 | /** | ||
1745 | * <!-- begin-user-doc --> | ||
1746 | * <!-- end-user-doc --> | ||
1747 | * @generated | ||
1748 | */ | ||
1749 | @Override | ||
1750 | public EClass getBinaryExpression() | ||
1751 | { | ||
1752 | return binaryExpressionEClass; | ||
1753 | } | ||
1754 | |||
1755 | /** | ||
1756 | * <!-- begin-user-doc --> | ||
1757 | * <!-- end-user-doc --> | ||
1758 | * @generated | ||
1759 | */ | ||
1760 | @Override | ||
1761 | public EReference getBinaryExpression_Left() | ||
1762 | { | ||
1763 | return (EReference)binaryExpressionEClass.getEStructuralFeatures().get(0); | ||
1764 | } | ||
1765 | |||
1766 | /** | ||
1767 | * <!-- begin-user-doc --> | ||
1768 | * <!-- end-user-doc --> | ||
1769 | * @generated | ||
1770 | */ | ||
1771 | @Override | ||
1772 | public EAttribute getBinaryExpression_Op() | ||
1773 | { | ||
1774 | return (EAttribute)binaryExpressionEClass.getEStructuralFeatures().get(1); | ||
1775 | } | ||
1776 | |||
1777 | /** | ||
1778 | * <!-- begin-user-doc --> | ||
1779 | * <!-- end-user-doc --> | ||
1780 | * @generated | ||
1781 | */ | ||
1782 | @Override | ||
1783 | public EReference getBinaryExpression_Right() | ||
1784 | { | ||
1785 | return (EReference)binaryExpressionEClass.getEStructuralFeatures().get(2); | ||
1786 | } | ||
1787 | |||
1788 | /** | ||
1789 | * <!-- begin-user-doc --> | ||
1790 | * <!-- end-user-doc --> | ||
1791 | * @generated | ||
1792 | */ | ||
1793 | @Override | ||
1794 | public EClass getUnaryExpression() | ||
1795 | { | ||
1796 | return unaryExpressionEClass; | ||
1797 | } | ||
1798 | |||
1799 | /** | ||
1800 | * <!-- begin-user-doc --> | ||
1801 | * <!-- end-user-doc --> | ||
1802 | * @generated | ||
1803 | */ | ||
1804 | @Override | ||
1805 | public EAttribute getUnaryExpression_Op() | ||
1806 | { | ||
1807 | return (EAttribute)unaryExpressionEClass.getEStructuralFeatures().get(0); | ||
1808 | } | ||
1809 | |||
1810 | /** | ||
1811 | * <!-- begin-user-doc --> | ||
1812 | * <!-- end-user-doc --> | ||
1813 | * @generated | ||
1814 | */ | ||
1815 | @Override | ||
1816 | public EReference getUnaryExpression_Body() | ||
1817 | { | ||
1818 | return (EReference)unaryExpressionEClass.getEStructuralFeatures().get(1); | ||
1819 | } | ||
1820 | |||
1821 | /** | ||
1822 | * <!-- begin-user-doc --> | ||
1823 | * <!-- end-user-doc --> | ||
1824 | * @generated | ||
1825 | */ | ||
1826 | @Override | ||
1827 | public EEnum getMetricType() | ||
1828 | { | ||
1829 | return metricTypeEEnum; | ||
1830 | } | ||
1831 | |||
1832 | /** | ||
1833 | * <!-- begin-user-doc --> | ||
1834 | * <!-- end-user-doc --> | ||
1835 | * @generated | ||
1836 | */ | ||
1837 | @Override | ||
1838 | public EEnum getBinaryOperator() | ||
1839 | { | ||
1840 | return binaryOperatorEEnum; | ||
1841 | } | ||
1842 | |||
1843 | /** | ||
1844 | * <!-- begin-user-doc --> | ||
1845 | * <!-- end-user-doc --> | ||
1846 | * @generated | ||
1847 | */ | ||
1848 | @Override | ||
1849 | public EEnum getUnaryOp() | ||
1850 | { | ||
1851 | return unaryOpEEnum; | ||
1852 | } | ||
1853 | |||
1854 | /** | ||
1855 | * <!-- begin-user-doc --> | ||
1856 | * <!-- end-user-doc --> | ||
1857 | * @generated | ||
1858 | */ | ||
1859 | @Override | ||
1860 | public EEnum getAggregationOp() | ||
1861 | { | ||
1862 | return aggregationOpEEnum; | ||
1863 | } | ||
1864 | |||
1865 | /** | ||
1866 | * <!-- begin-user-doc --> | ||
1867 | * <!-- end-user-doc --> | ||
1868 | * @generated | ||
1869 | */ | ||
1870 | @Override | ||
1871 | public EEnum getLogicValue() | ||
1872 | { | ||
1873 | return logicValueEEnum; | ||
1874 | } | ||
1875 | |||
1876 | /** | ||
1877 | * <!-- begin-user-doc --> | ||
1878 | * <!-- end-user-doc --> | ||
1879 | * @generated | ||
1880 | */ | ||
1881 | @Override | ||
1882 | public EEnum getObjectiveKind() | ||
1883 | { | ||
1884 | return objectiveKindEEnum; | ||
1885 | } | ||
1886 | |||
1887 | /** | ||
1888 | * <!-- begin-user-doc --> | ||
1889 | * <!-- end-user-doc --> | ||
1890 | * @generated | ||
1891 | */ | ||
1892 | @Override | ||
1893 | public SolverLanguageFactory getSolverLanguageFactory() | ||
1894 | { | ||
1895 | return (SolverLanguageFactory)getEFactoryInstance(); | ||
1896 | } | ||
1897 | |||
1898 | /** | ||
1899 | * <!-- begin-user-doc --> | ||
1900 | * <!-- end-user-doc --> | ||
1901 | * @generated | ||
1902 | */ | ||
1903 | private boolean isCreated = false; | ||
1904 | |||
1905 | /** | ||
1906 | * Creates the meta-model objects for the package. This method is | ||
1907 | * guarded to have no affect on any invocation but its first. | ||
1908 | * <!-- begin-user-doc --> | ||
1909 | * <!-- end-user-doc --> | ||
1910 | * @generated | ||
1911 | */ | ||
1912 | public void createPackageContents() | ||
1913 | { | ||
1914 | if (isCreated) return; | ||
1915 | isCreated = true; | ||
1916 | |||
1917 | // Create classes and their features | ||
1918 | problemEClass = createEClass(PROBLEM); | ||
1919 | createEReference(problemEClass, PROBLEM__STATEMENTS); | ||
1920 | |||
1921 | statementEClass = createEClass(STATEMENT); | ||
1922 | |||
1923 | predicateDefinitionEClass = createEClass(PREDICATE_DEFINITION); | ||
1924 | createEReference(predicateDefinitionEClass, PREDICATE_DEFINITION__HEAD); | ||
1925 | createEReference(predicateDefinitionEClass, PREDICATE_DEFINITION__BODY); | ||
1926 | createEAttribute(predicateDefinitionEClass, PREDICATE_DEFINITION__FUNCTIONAL); | ||
1927 | createEAttribute(predicateDefinitionEClass, PREDICATE_DEFINITION__ERROR); | ||
1928 | |||
1929 | unnamedErrorPrediateDefinitionEClass = createEClass(UNNAMED_ERROR_PREDIATE_DEFINITION); | ||
1930 | createEReference(unnamedErrorPrediateDefinitionEClass, UNNAMED_ERROR_PREDIATE_DEFINITION__ARGUMENT_LIST); | ||
1931 | createEReference(unnamedErrorPrediateDefinitionEClass, UNNAMED_ERROR_PREDIATE_DEFINITION__BODY); | ||
1932 | |||
1933 | defaultDefinitionEClass = createEClass(DEFAULT_DEFINITION); | ||
1934 | createEReference(defaultDefinitionEClass, DEFAULT_DEFINITION__HEAD); | ||
1935 | createEReference(defaultDefinitionEClass, DEFAULT_DEFINITION__RANGE); | ||
1936 | |||
1937 | externPredicateDefinitionEClass = createEClass(EXTERN_PREDICATE_DEFINITION); | ||
1938 | createEReference(externPredicateDefinitionEClass, EXTERN_PREDICATE_DEFINITION__HEAD); | ||
1939 | |||
1940 | metricDefinitionEClass = createEClass(METRIC_DEFINITION); | ||
1941 | createEReference(metricDefinitionEClass, METRIC_DEFINITION__HEAD); | ||
1942 | createEReference(metricDefinitionEClass, METRIC_DEFINITION__BODY); | ||
1943 | createEAttribute(metricDefinitionEClass, METRIC_DEFINITION__TYPE); | ||
1944 | |||
1945 | externMetricDefinitionEClass = createEClass(EXTERN_METRIC_DEFINITION); | ||
1946 | createEAttribute(externMetricDefinitionEClass, EXTERN_METRIC_DEFINITION__TYPE); | ||
1947 | createEReference(externMetricDefinitionEClass, EXTERN_METRIC_DEFINITION__HEAD); | ||
1948 | |||
1949 | expressionEClass = createEClass(EXPRESSION); | ||
1950 | |||
1951 | ifElseEClass = createEClass(IF_ELSE); | ||
1952 | createEReference(ifElseEClass, IF_ELSE__CONDITION); | ||
1953 | createEReference(ifElseEClass, IF_ELSE__THEN); | ||
1954 | createEReference(ifElseEClass, IF_ELSE__ELSE); | ||
1955 | |||
1956 | caseEClass = createEClass(CASE); | ||
1957 | createEReference(caseEClass, CASE__CONDITION); | ||
1958 | createEReference(caseEClass, CASE__BODY); | ||
1959 | |||
1960 | countEClass = createEClass(COUNT); | ||
1961 | createEReference(countEClass, COUNT__BODY); | ||
1962 | |||
1963 | aggregationEClass = createEClass(AGGREGATION); | ||
1964 | createEAttribute(aggregationEClass, AGGREGATION__OP); | ||
1965 | createEReference(aggregationEClass, AGGREGATION__BODY); | ||
1966 | createEReference(aggregationEClass, AGGREGATION__CONDITION); | ||
1967 | |||
1968 | callEClass = createEClass(CALL); | ||
1969 | createEReference(callEClass, CALL__FUNCTOR); | ||
1970 | createEAttribute(callEClass, CALL__TRANSITIVE_CLOSURE); | ||
1971 | createEAttribute(callEClass, CALL__REFLEXIVE_TRANSITIVE_CLOSURE); | ||
1972 | createEReference(callEClass, CALL__ARGUMENT_LIST); | ||
1973 | |||
1974 | argumentListEClass = createEClass(ARGUMENT_LIST); | ||
1975 | createEReference(argumentListEClass, ARGUMENT_LIST__ARGUMENTS); | ||
1976 | |||
1977 | argumentEClass = createEClass(ARGUMENT); | ||
1978 | |||
1979 | expressionArgumentEClass = createEClass(EXPRESSION_ARGUMENT); | ||
1980 | createEReference(expressionArgumentEClass, EXPRESSION_ARGUMENT__BODY); | ||
1981 | |||
1982 | starArgumentEClass = createEClass(STAR_ARGUMENT); | ||
1983 | |||
1984 | typedArgumentEClass = createEClass(TYPED_ARGUMENT); | ||
1985 | createEReference(typedArgumentEClass, TYPED_ARGUMENT__TYPE); | ||
1986 | createEReference(typedArgumentEClass, TYPED_ARGUMENT__VARIABLE); | ||
1987 | |||
1988 | typedStarArgumentEClass = createEClass(TYPED_STAR_ARGUMENT); | ||
1989 | createEReference(typedStarArgumentEClass, TYPED_STAR_ARGUMENT__TYPE); | ||
1990 | |||
1991 | referenceEClass = createEClass(REFERENCE); | ||
1992 | createEReference(referenceEClass, REFERENCE__REFERRED); | ||
1993 | |||
1994 | intervalEClass = createEClass(INTERVAL); | ||
1995 | createEReference(intervalEClass, INTERVAL__LOWER_BOUND); | ||
1996 | createEReference(intervalEClass, INTERVAL__UPPER_BOUND); | ||
1997 | |||
1998 | literalEClass = createEClass(LITERAL); | ||
1999 | |||
2000 | logicLiteralEClass = createEClass(LOGIC_LITERAL); | ||
2001 | createEAttribute(logicLiteralEClass, LOGIC_LITERAL__VALUE); | ||
2002 | |||
2003 | numericLiteralEClass = createEClass(NUMERIC_LITERAL); | ||
2004 | createEAttribute(numericLiteralEClass, NUMERIC_LITERAL__VALUE); | ||
2005 | |||
2006 | infinityLiteralEClass = createEClass(INFINITY_LITERAL); | ||
2007 | |||
2008 | emptyIntervalLiteralEClass = createEClass(EMPTY_INTERVAL_LITERAL); | ||
2009 | |||
2010 | stringLiteralEClass = createEClass(STRING_LITERAL); | ||
2011 | createEAttribute(stringLiteralEClass, STRING_LITERAL__VALUE); | ||
2012 | |||
2013 | classDefinitionEClass = createEClass(CLASS_DEFINITION); | ||
2014 | createEAttribute(classDefinitionEClass, CLASS_DEFINITION__ABSTRACT); | ||
2015 | createEAttribute(classDefinitionEClass, CLASS_DEFINITION__NAME); | ||
2016 | createEReference(classDefinitionEClass, CLASS_DEFINITION__SUPERCLASSES); | ||
2017 | createEReference(classDefinitionEClass, CLASS_DEFINITION__MEMBERS); | ||
2018 | |||
2019 | memberDefinitionEClass = createEClass(MEMBER_DEFINITION); | ||
2020 | createEAttribute(memberDefinitionEClass, MEMBER_DEFINITION__CONTAINMENT); | ||
2021 | createEReference(memberDefinitionEClass, MEMBER_DEFINITION__TYPE); | ||
2022 | createEReference(memberDefinitionEClass, MEMBER_DEFINITION__MULTIPLICITY); | ||
2023 | createEAttribute(memberDefinitionEClass, MEMBER_DEFINITION__NAME); | ||
2024 | createEReference(memberDefinitionEClass, MEMBER_DEFINITION__OPPOSITE); | ||
2025 | |||
2026 | multiplicityEClass = createEClass(MULTIPLICITY); | ||
2027 | |||
2028 | manyMultiplicityEClass = createEClass(MANY_MULTIPLICITY); | ||
2029 | |||
2030 | exactMultiplicityEClass = createEClass(EXACT_MULTIPLICITY); | ||
2031 | createEAttribute(exactMultiplicityEClass, EXACT_MULTIPLICITY__MULTIPLICITY); | ||
2032 | |||
2033 | boundedMultiplicityEClass = createEClass(BOUNDED_MULTIPLICITY); | ||
2034 | createEAttribute(boundedMultiplicityEClass, BOUNDED_MULTIPLICITY__LOWER_BOUND); | ||
2035 | createEAttribute(boundedMultiplicityEClass, BOUNDED_MULTIPLICITY__UPPER_BOUND); | ||
2036 | |||
2037 | scopeDefinitionEClass = createEClass(SCOPE_DEFINITION); | ||
2038 | createEReference(scopeDefinitionEClass, SCOPE_DEFINITION__TYPE); | ||
2039 | |||
2040 | exactScopeDefinitionEClass = createEClass(EXACT_SCOPE_DEFINITION); | ||
2041 | createEAttribute(exactScopeDefinitionEClass, EXACT_SCOPE_DEFINITION__EXACT_SCOPE); | ||
2042 | |||
2043 | boundedScopeDefinitionEClass = createEClass(BOUNDED_SCOPE_DEFINITION); | ||
2044 | createEAttribute(boundedScopeDefinitionEClass, BOUNDED_SCOPE_DEFINITION__LOWER_BOUND); | ||
2045 | createEAttribute(boundedScopeDefinitionEClass, BOUNDED_SCOPE_DEFINITION__UPPER_BOUND); | ||
2046 | |||
2047 | lowerBoundedScopeDefinitionEClass = createEClass(LOWER_BOUNDED_SCOPE_DEFINITION); | ||
2048 | createEAttribute(lowerBoundedScopeDefinitionEClass, LOWER_BOUNDED_SCOPE_DEFINITION__LOWER_BOUND); | ||
2049 | |||
2050 | objectiveDefinitionEClass = createEClass(OBJECTIVE_DEFINITION); | ||
2051 | createEAttribute(objectiveDefinitionEClass, OBJECTIVE_DEFINITION__KIND); | ||
2052 | createEReference(objectiveDefinitionEClass, OBJECTIVE_DEFINITION__OBJECTIVE); | ||
2053 | |||
2054 | namedElementEClass = createEClass(NAMED_ELEMENT); | ||
2055 | createEAttribute(namedElementEClass, NAMED_ELEMENT__NAME); | ||
2056 | |||
2057 | assertionEClass = createEClass(ASSERTION); | ||
2058 | createEReference(assertionEClass, ASSERTION__BODY); | ||
2059 | createEReference(assertionEClass, ASSERTION__RANGE); | ||
2060 | |||
2061 | disjunctionEClass = createEClass(DISJUNCTION); | ||
2062 | createEReference(disjunctionEClass, DISJUNCTION__CHILDREN); | ||
2063 | |||
2064 | switchEClass = createEClass(SWITCH); | ||
2065 | createEReference(switchEClass, SWITCH__CASES); | ||
2066 | |||
2067 | conjunctionEClass = createEClass(CONJUNCTION); | ||
2068 | createEReference(conjunctionEClass, CONJUNCTION__CHILDREN); | ||
2069 | |||
2070 | comparisonEClass = createEClass(COMPARISON); | ||
2071 | createEReference(comparisonEClass, COMPARISON__LEFT); | ||
2072 | createEAttribute(comparisonEClass, COMPARISON__OP); | ||
2073 | createEReference(comparisonEClass, COMPARISON__RIGHT); | ||
2074 | |||
2075 | binaryExpressionEClass = createEClass(BINARY_EXPRESSION); | ||
2076 | createEReference(binaryExpressionEClass, BINARY_EXPRESSION__LEFT); | ||
2077 | createEAttribute(binaryExpressionEClass, BINARY_EXPRESSION__OP); | ||
2078 | createEReference(binaryExpressionEClass, BINARY_EXPRESSION__RIGHT); | ||
2079 | |||
2080 | unaryExpressionEClass = createEClass(UNARY_EXPRESSION); | ||
2081 | createEAttribute(unaryExpressionEClass, UNARY_EXPRESSION__OP); | ||
2082 | createEReference(unaryExpressionEClass, UNARY_EXPRESSION__BODY); | ||
2083 | |||
2084 | // Create enums | ||
2085 | metricTypeEEnum = createEEnum(METRIC_TYPE); | ||
2086 | binaryOperatorEEnum = createEEnum(BINARY_OPERATOR); | ||
2087 | unaryOpEEnum = createEEnum(UNARY_OP); | ||
2088 | aggregationOpEEnum = createEEnum(AGGREGATION_OP); | ||
2089 | logicValueEEnum = createEEnum(LOGIC_VALUE); | ||
2090 | objectiveKindEEnum = createEEnum(OBJECTIVE_KIND); | ||
2091 | } | ||
2092 | |||
2093 | /** | ||
2094 | * <!-- begin-user-doc --> | ||
2095 | * <!-- end-user-doc --> | ||
2096 | * @generated | ||
2097 | */ | ||
2098 | private boolean isInitialized = false; | ||
2099 | |||
2100 | /** | ||
2101 | * Complete the initialization of the package and its meta-model. This | ||
2102 | * method is guarded to have no affect on any invocation but its first. | ||
2103 | * <!-- begin-user-doc --> | ||
2104 | * <!-- end-user-doc --> | ||
2105 | * @generated | ||
2106 | */ | ||
2107 | public void initializePackageContents() | ||
2108 | { | ||
2109 | if (isInitialized) return; | ||
2110 | isInitialized = true; | ||
2111 | |||
2112 | // Initialize package | ||
2113 | setName(eNAME); | ||
2114 | setNsPrefix(eNS_PREFIX); | ||
2115 | setNsURI(eNS_URI); | ||
2116 | |||
2117 | // Create type parameters | ||
2118 | |||
2119 | // Set bounds for type parameters | ||
2120 | |||
2121 | // Add supertypes to classes | ||
2122 | predicateDefinitionEClass.getESuperTypes().add(this.getStatement()); | ||
2123 | unnamedErrorPrediateDefinitionEClass.getESuperTypes().add(this.getStatement()); | ||
2124 | defaultDefinitionEClass.getESuperTypes().add(this.getStatement()); | ||
2125 | externPredicateDefinitionEClass.getESuperTypes().add(this.getStatement()); | ||
2126 | metricDefinitionEClass.getESuperTypes().add(this.getStatement()); | ||
2127 | externMetricDefinitionEClass.getESuperTypes().add(this.getStatement()); | ||
2128 | expressionEClass.getESuperTypes().add(this.getStatement()); | ||
2129 | ifElseEClass.getESuperTypes().add(this.getExpression()); | ||
2130 | caseEClass.getESuperTypes().add(this.getExpression()); | ||
2131 | countEClass.getESuperTypes().add(this.getExpression()); | ||
2132 | aggregationEClass.getESuperTypes().add(this.getExpression()); | ||
2133 | callEClass.getESuperTypes().add(this.getExpression()); | ||
2134 | expressionArgumentEClass.getESuperTypes().add(this.getArgument()); | ||
2135 | starArgumentEClass.getESuperTypes().add(this.getArgument()); | ||
2136 | typedArgumentEClass.getESuperTypes().add(this.getArgument()); | ||
2137 | typedStarArgumentEClass.getESuperTypes().add(this.getArgument()); | ||
2138 | referenceEClass.getESuperTypes().add(this.getExpression()); | ||
2139 | intervalEClass.getESuperTypes().add(this.getExpression()); | ||
2140 | literalEClass.getESuperTypes().add(this.getExpression()); | ||
2141 | logicLiteralEClass.getESuperTypes().add(this.getLiteral()); | ||
2142 | numericLiteralEClass.getESuperTypes().add(this.getLiteral()); | ||
2143 | infinityLiteralEClass.getESuperTypes().add(this.getLiteral()); | ||
2144 | emptyIntervalLiteralEClass.getESuperTypes().add(this.getLiteral()); | ||
2145 | stringLiteralEClass.getESuperTypes().add(this.getLiteral()); | ||
2146 | classDefinitionEClass.getESuperTypes().add(this.getStatement()); | ||
2147 | manyMultiplicityEClass.getESuperTypes().add(this.getMultiplicity()); | ||
2148 | exactMultiplicityEClass.getESuperTypes().add(this.getMultiplicity()); | ||
2149 | boundedMultiplicityEClass.getESuperTypes().add(this.getMultiplicity()); | ||
2150 | scopeDefinitionEClass.getESuperTypes().add(this.getStatement()); | ||
2151 | exactScopeDefinitionEClass.getESuperTypes().add(this.getScopeDefinition()); | ||
2152 | boundedScopeDefinitionEClass.getESuperTypes().add(this.getScopeDefinition()); | ||
2153 | lowerBoundedScopeDefinitionEClass.getESuperTypes().add(this.getScopeDefinition()); | ||
2154 | objectiveDefinitionEClass.getESuperTypes().add(this.getStatement()); | ||
2155 | assertionEClass.getESuperTypes().add(this.getStatement()); | ||
2156 | disjunctionEClass.getESuperTypes().add(this.getExpression()); | ||
2157 | switchEClass.getESuperTypes().add(this.getExpression()); | ||
2158 | conjunctionEClass.getESuperTypes().add(this.getExpression()); | ||
2159 | comparisonEClass.getESuperTypes().add(this.getExpression()); | ||
2160 | binaryExpressionEClass.getESuperTypes().add(this.getExpression()); | ||
2161 | unaryExpressionEClass.getESuperTypes().add(this.getExpression()); | ||
2162 | |||
2163 | // Initialize classes and features; add operations and parameters | ||
2164 | initEClass(problemEClass, Problem.class, "Problem", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2165 | initEReference(getProblem_Statements(), this.getStatement(), null, "statements", null, 0, -1, Problem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2166 | |||
2167 | initEClass(statementEClass, Statement.class, "Statement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2168 | |||
2169 | initEClass(predicateDefinitionEClass, PredicateDefinition.class, "PredicateDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2170 | initEReference(getPredicateDefinition_Head(), this.getExpression(), null, "head", null, 0, 1, PredicateDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2171 | initEReference(getPredicateDefinition_Body(), this.getExpression(), null, "body", null, 0, 1, PredicateDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2172 | initEAttribute(getPredicateDefinition_Functional(), ecorePackage.getEBoolean(), "functional", null, 0, 1, PredicateDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2173 | initEAttribute(getPredicateDefinition_Error(), ecorePackage.getEBoolean(), "error", null, 0, 1, PredicateDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2174 | |||
2175 | initEClass(unnamedErrorPrediateDefinitionEClass, UnnamedErrorPrediateDefinition.class, "UnnamedErrorPrediateDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2176 | initEReference(getUnnamedErrorPrediateDefinition_ArgumentList(), this.getArgumentList(), null, "argumentList", null, 0, 1, UnnamedErrorPrediateDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2177 | initEReference(getUnnamedErrorPrediateDefinition_Body(), this.getExpression(), null, "body", null, 0, 1, UnnamedErrorPrediateDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2178 | |||
2179 | initEClass(defaultDefinitionEClass, DefaultDefinition.class, "DefaultDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2180 | initEReference(getDefaultDefinition_Head(), this.getCall(), null, "head", null, 0, 1, DefaultDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2181 | initEReference(getDefaultDefinition_Range(), this.getExpression(), null, "range", null, 0, 1, DefaultDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2182 | |||
2183 | initEClass(externPredicateDefinitionEClass, ExternPredicateDefinition.class, "ExternPredicateDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2184 | initEReference(getExternPredicateDefinition_Head(), this.getCall(), null, "head", null, 0, 1, ExternPredicateDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2185 | |||
2186 | initEClass(metricDefinitionEClass, MetricDefinition.class, "MetricDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2187 | initEReference(getMetricDefinition_Head(), this.getExpression(), null, "head", null, 0, 1, MetricDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2188 | initEReference(getMetricDefinition_Body(), this.getExpression(), null, "body", null, 0, 1, MetricDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2189 | initEAttribute(getMetricDefinition_Type(), this.getMetricType(), "type", null, 0, 1, MetricDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2190 | |||
2191 | initEClass(externMetricDefinitionEClass, ExternMetricDefinition.class, "ExternMetricDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2192 | initEAttribute(getExternMetricDefinition_Type(), this.getMetricType(), "type", null, 0, 1, ExternMetricDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2193 | initEReference(getExternMetricDefinition_Head(), this.getCall(), null, "head", null, 0, 1, ExternMetricDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2194 | |||
2195 | initEClass(expressionEClass, Expression.class, "Expression", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2196 | |||
2197 | initEClass(ifElseEClass, IfElse.class, "IfElse", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2198 | initEReference(getIfElse_Condition(), this.getExpression(), null, "condition", null, 0, 1, IfElse.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2199 | initEReference(getIfElse_Then(), this.getExpression(), null, "then", null, 0, 1, IfElse.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2200 | initEReference(getIfElse_Else(), this.getExpression(), null, "else", null, 0, 1, IfElse.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2201 | |||
2202 | initEClass(caseEClass, Case.class, "Case", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2203 | initEReference(getCase_Condition(), this.getExpression(), null, "condition", null, 0, 1, Case.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2204 | initEReference(getCase_Body(), this.getExpression(), null, "body", null, 0, 1, Case.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2205 | |||
2206 | initEClass(countEClass, Count.class, "Count", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2207 | initEReference(getCount_Body(), this.getExpression(), null, "body", null, 0, 1, Count.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2208 | |||
2209 | initEClass(aggregationEClass, Aggregation.class, "Aggregation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2210 | initEAttribute(getAggregation_Op(), this.getAggregationOp(), "op", null, 0, 1, Aggregation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2211 | initEReference(getAggregation_Body(), this.getExpression(), null, "body", null, 0, 1, Aggregation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2212 | initEReference(getAggregation_Condition(), this.getExpression(), null, "condition", null, 0, 1, Aggregation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2213 | |||
2214 | initEClass(callEClass, Call.class, "Call", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2215 | initEReference(getCall_Functor(), this.getReference(), null, "functor", null, 0, 1, Call.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2216 | initEAttribute(getCall_TransitiveClosure(), ecorePackage.getEBoolean(), "transitiveClosure", null, 0, 1, Call.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2217 | initEAttribute(getCall_ReflexiveTransitiveClosure(), ecorePackage.getEBoolean(), "reflexiveTransitiveClosure", null, 0, 1, Call.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2218 | initEReference(getCall_ArgumentList(), this.getArgumentList(), null, "argumentList", null, 0, 1, Call.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2219 | |||
2220 | initEClass(argumentListEClass, ArgumentList.class, "ArgumentList", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2221 | initEReference(getArgumentList_Arguments(), this.getArgument(), null, "arguments", null, 0, -1, ArgumentList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2222 | |||
2223 | initEClass(argumentEClass, Argument.class, "Argument", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2224 | |||
2225 | initEClass(expressionArgumentEClass, ExpressionArgument.class, "ExpressionArgument", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2226 | initEReference(getExpressionArgument_Body(), this.getExpression(), null, "body", null, 0, 1, ExpressionArgument.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2227 | |||
2228 | initEClass(starArgumentEClass, StarArgument.class, "StarArgument", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2229 | |||
2230 | initEClass(typedArgumentEClass, TypedArgument.class, "TypedArgument", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2231 | initEReference(getTypedArgument_Type(), this.getNamedElement(), null, "type", null, 0, 1, TypedArgument.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2232 | initEReference(getTypedArgument_Variable(), this.getNamedElement(), null, "variable", null, 0, 1, TypedArgument.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2233 | |||
2234 | initEClass(typedStarArgumentEClass, TypedStarArgument.class, "TypedStarArgument", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2235 | initEReference(getTypedStarArgument_Type(), this.getNamedElement(), null, "type", null, 0, 1, TypedStarArgument.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2236 | |||
2237 | initEClass(referenceEClass, Reference.class, "Reference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2238 | initEReference(getReference_Referred(), this.getNamedElement(), null, "referred", null, 0, 1, Reference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2239 | |||
2240 | initEClass(intervalEClass, Interval.class, "Interval", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2241 | initEReference(getInterval_LowerBound(), this.getExpression(), null, "lowerBound", null, 0, 1, Interval.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2242 | initEReference(getInterval_UpperBound(), this.getExpression(), null, "upperBound", null, 0, 1, Interval.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2243 | |||
2244 | initEClass(literalEClass, Literal.class, "Literal", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2245 | |||
2246 | initEClass(logicLiteralEClass, LogicLiteral.class, "LogicLiteral", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2247 | initEAttribute(getLogicLiteral_Value(), this.getLogicValue(), "value", null, 0, 1, LogicLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2248 | |||
2249 | initEClass(numericLiteralEClass, NumericLiteral.class, "NumericLiteral", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2250 | initEAttribute(getNumericLiteral_Value(), ecorePackage.getEBigDecimal(), "value", null, 0, 1, NumericLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2251 | |||
2252 | initEClass(infinityLiteralEClass, InfinityLiteral.class, "InfinityLiteral", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2253 | |||
2254 | initEClass(emptyIntervalLiteralEClass, EmptyIntervalLiteral.class, "EmptyIntervalLiteral", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2255 | |||
2256 | initEClass(stringLiteralEClass, StringLiteral.class, "StringLiteral", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2257 | initEAttribute(getStringLiteral_Value(), ecorePackage.getEString(), "value", null, 0, 1, StringLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2258 | |||
2259 | initEClass(classDefinitionEClass, ClassDefinition.class, "ClassDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2260 | initEAttribute(getClassDefinition_Abstract(), ecorePackage.getEBoolean(), "abstract", null, 0, 1, ClassDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2261 | initEAttribute(getClassDefinition_Name(), ecorePackage.getEString(), "name", null, 0, 1, ClassDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2262 | initEReference(getClassDefinition_Superclasses(), this.getNamedElement(), null, "superclasses", null, 0, -1, ClassDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2263 | initEReference(getClassDefinition_Members(), this.getMemberDefinition(), null, "members", null, 0, -1, ClassDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2264 | |||
2265 | initEClass(memberDefinitionEClass, MemberDefinition.class, "MemberDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2266 | initEAttribute(getMemberDefinition_Containment(), ecorePackage.getEBoolean(), "containment", null, 0, 1, MemberDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2267 | initEReference(getMemberDefinition_Type(), this.getNamedElement(), null, "type", null, 0, 1, MemberDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2268 | initEReference(getMemberDefinition_Multiplicity(), this.getMultiplicity(), null, "multiplicity", null, 0, 1, MemberDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2269 | initEAttribute(getMemberDefinition_Name(), ecorePackage.getEString(), "name", null, 0, 1, MemberDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2270 | initEReference(getMemberDefinition_Opposite(), this.getNamedElement(), null, "opposite", null, 0, 1, MemberDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2271 | |||
2272 | initEClass(multiplicityEClass, Multiplicity.class, "Multiplicity", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2273 | |||
2274 | initEClass(manyMultiplicityEClass, ManyMultiplicity.class, "ManyMultiplicity", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2275 | |||
2276 | initEClass(exactMultiplicityEClass, ExactMultiplicity.class, "ExactMultiplicity", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2277 | initEAttribute(getExactMultiplicity_Multiplicity(), ecorePackage.getEInt(), "multiplicity", null, 0, 1, ExactMultiplicity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2278 | |||
2279 | initEClass(boundedMultiplicityEClass, BoundedMultiplicity.class, "BoundedMultiplicity", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2280 | initEAttribute(getBoundedMultiplicity_LowerBound(), ecorePackage.getEInt(), "lowerBound", null, 0, 1, BoundedMultiplicity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2281 | initEAttribute(getBoundedMultiplicity_UpperBound(), ecorePackage.getEInt(), "upperBound", null, 0, 1, BoundedMultiplicity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2282 | |||
2283 | initEClass(scopeDefinitionEClass, ScopeDefinition.class, "ScopeDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2284 | initEReference(getScopeDefinition_Type(), this.getNamedElement(), null, "type", null, 0, 1, ScopeDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2285 | |||
2286 | initEClass(exactScopeDefinitionEClass, ExactScopeDefinition.class, "ExactScopeDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2287 | initEAttribute(getExactScopeDefinition_ExactScope(), ecorePackage.getEInt(), "exactScope", null, 0, 1, ExactScopeDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2288 | |||
2289 | initEClass(boundedScopeDefinitionEClass, BoundedScopeDefinition.class, "BoundedScopeDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2290 | initEAttribute(getBoundedScopeDefinition_LowerBound(), ecorePackage.getEInt(), "lowerBound", null, 0, 1, BoundedScopeDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2291 | initEAttribute(getBoundedScopeDefinition_UpperBound(), ecorePackage.getEInt(), "upperBound", null, 0, 1, BoundedScopeDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2292 | |||
2293 | initEClass(lowerBoundedScopeDefinitionEClass, LowerBoundedScopeDefinition.class, "LowerBoundedScopeDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2294 | initEAttribute(getLowerBoundedScopeDefinition_LowerBound(), ecorePackage.getEInt(), "lowerBound", null, 0, 1, LowerBoundedScopeDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2295 | |||
2296 | initEClass(objectiveDefinitionEClass, ObjectiveDefinition.class, "ObjectiveDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2297 | initEAttribute(getObjectiveDefinition_Kind(), this.getObjectiveKind(), "kind", null, 0, 1, ObjectiveDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2298 | initEReference(getObjectiveDefinition_Objective(), this.getExpression(), null, "objective", null, 0, 1, ObjectiveDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2299 | |||
2300 | initEClass(namedElementEClass, NamedElement.class, "NamedElement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2301 | initEAttribute(getNamedElement_Name(), ecorePackage.getEString(), "name", null, 0, 1, NamedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2302 | |||
2303 | initEClass(assertionEClass, Assertion.class, "Assertion", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2304 | initEReference(getAssertion_Body(), this.getExpression(), null, "body", null, 0, 1, Assertion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2305 | initEReference(getAssertion_Range(), this.getExpression(), null, "range", null, 0, 1, Assertion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2306 | |||
2307 | initEClass(disjunctionEClass, Disjunction.class, "Disjunction", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2308 | initEReference(getDisjunction_Children(), this.getExpression(), null, "children", null, 0, -1, Disjunction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2309 | |||
2310 | initEClass(switchEClass, Switch.class, "Switch", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2311 | initEReference(getSwitch_Cases(), this.getCase(), null, "cases", null, 0, -1, Switch.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2312 | |||
2313 | initEClass(conjunctionEClass, Conjunction.class, "Conjunction", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2314 | initEReference(getConjunction_Children(), this.getExpression(), null, "children", null, 0, -1, Conjunction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2315 | |||
2316 | initEClass(comparisonEClass, Comparison.class, "Comparison", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2317 | initEReference(getComparison_Left(), this.getExpression(), null, "left", null, 0, 1, Comparison.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2318 | initEAttribute(getComparison_Op(), this.getBinaryOperator(), "op", null, 0, 1, Comparison.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2319 | initEReference(getComparison_Right(), this.getExpression(), null, "right", null, 0, 1, Comparison.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2320 | |||
2321 | initEClass(binaryExpressionEClass, BinaryExpression.class, "BinaryExpression", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2322 | initEReference(getBinaryExpression_Left(), this.getExpression(), null, "left", null, 0, 1, BinaryExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2323 | initEAttribute(getBinaryExpression_Op(), this.getBinaryOperator(), "op", null, 0, 1, BinaryExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2324 | initEReference(getBinaryExpression_Right(), this.getExpression(), null, "right", null, 0, 1, BinaryExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2325 | |||
2326 | initEClass(unaryExpressionEClass, UnaryExpression.class, "UnaryExpression", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2327 | initEAttribute(getUnaryExpression_Op(), this.getUnaryOp(), "op", null, 0, 1, UnaryExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2328 | initEReference(getUnaryExpression_Body(), this.getExpression(), null, "body", null, 0, 1, UnaryExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2329 | |||
2330 | // Initialize enums and add enum literals | ||
2331 | initEEnum(metricTypeEEnum, MetricType.class, "MetricType"); | ||
2332 | addEEnumLiteral(metricTypeEEnum, MetricType.INT); | ||
2333 | addEEnumLiteral(metricTypeEEnum, MetricType.REAL); | ||
2334 | |||
2335 | initEEnum(binaryOperatorEEnum, BinaryOperator.class, "BinaryOperator"); | ||
2336 | addEEnumLiteral(binaryOperatorEEnum, BinaryOperator.EQ); | ||
2337 | addEEnumLiteral(binaryOperatorEEnum, BinaryOperator.NOT_EQ); | ||
2338 | addEEnumLiteral(binaryOperatorEEnum, BinaryOperator.LESS); | ||
2339 | addEEnumLiteral(binaryOperatorEEnum, BinaryOperator.LESS_EQ); | ||
2340 | addEEnumLiteral(binaryOperatorEEnum, BinaryOperator.GREATER); | ||
2341 | addEEnumLiteral(binaryOperatorEEnum, BinaryOperator.GREATER_EQ); | ||
2342 | addEEnumLiteral(binaryOperatorEEnum, BinaryOperator.IN); | ||
2343 | addEEnumLiteral(binaryOperatorEEnum, BinaryOperator.ADD); | ||
2344 | addEEnumLiteral(binaryOperatorEEnum, BinaryOperator.SUB); | ||
2345 | addEEnumLiteral(binaryOperatorEEnum, BinaryOperator.MUL); | ||
2346 | addEEnumLiteral(binaryOperatorEEnum, BinaryOperator.DIV); | ||
2347 | addEEnumLiteral(binaryOperatorEEnum, BinaryOperator.POW); | ||
2348 | |||
2349 | initEEnum(unaryOpEEnum, UnaryOp.class, "UnaryOp"); | ||
2350 | addEEnumLiteral(unaryOpEEnum, UnaryOp.NEG); | ||
2351 | addEEnumLiteral(unaryOpEEnum, UnaryOp.PLUS); | ||
2352 | addEEnumLiteral(unaryOpEEnum, UnaryOp.MINUS); | ||
2353 | addEEnumLiteral(unaryOpEEnum, UnaryOp.MAY); | ||
2354 | addEEnumLiteral(unaryOpEEnum, UnaryOp.MUST); | ||
2355 | addEEnumLiteral(unaryOpEEnum, UnaryOp.CURRENT); | ||
2356 | |||
2357 | initEEnum(aggregationOpEEnum, AggregationOp.class, "AggregationOp"); | ||
2358 | addEEnumLiteral(aggregationOpEEnum, AggregationOp.ONLY); | ||
2359 | addEEnumLiteral(aggregationOpEEnum, AggregationOp.SUM); | ||
2360 | addEEnumLiteral(aggregationOpEEnum, AggregationOp.PROD); | ||
2361 | addEEnumLiteral(aggregationOpEEnum, AggregationOp.AVG); | ||
2362 | addEEnumLiteral(aggregationOpEEnum, AggregationOp.MIN); | ||
2363 | addEEnumLiteral(aggregationOpEEnum, AggregationOp.MAX); | ||
2364 | |||
2365 | initEEnum(logicValueEEnum, LogicValue.class, "LogicValue"); | ||
2366 | addEEnumLiteral(logicValueEEnum, LogicValue.TRUE); | ||
2367 | addEEnumLiteral(logicValueEEnum, LogicValue.FALSE); | ||
2368 | addEEnumLiteral(logicValueEEnum, LogicValue.UNKNOWN); | ||
2369 | addEEnumLiteral(logicValueEEnum, LogicValue.ERROR); | ||
2370 | |||
2371 | initEEnum(objectiveKindEEnum, ObjectiveKind.class, "ObjectiveKind"); | ||
2372 | addEEnumLiteral(objectiveKindEEnum, ObjectiveKind.MINIMIZE); | ||
2373 | addEEnumLiteral(objectiveKindEEnum, ObjectiveKind.MAXIMIZE); | ||
2374 | |||
2375 | // Create resource | ||
2376 | createResource(eNS_URI); | ||
2377 | } | ||
2378 | |||
2379 | } //SolverLanguagePackageImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/StarArgumentImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/StarArgumentImpl.java deleted file mode 100644 index b0cecaab..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/StarArgumentImpl.java +++ /dev/null | |||
@@ -1,41 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | |||
8 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
9 | import org.eclipse.viatra.solver.language.solverLanguage.StarArgument; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * An implementation of the model object '<em><b>Star Argument</b></em>'. | ||
14 | * <!-- end-user-doc --> | ||
15 | * | ||
16 | * @generated | ||
17 | */ | ||
18 | public class StarArgumentImpl extends ArgumentImpl implements StarArgument | ||
19 | { | ||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * <!-- end-user-doc --> | ||
23 | * @generated | ||
24 | */ | ||
25 | protected StarArgumentImpl() | ||
26 | { | ||
27 | super(); | ||
28 | } | ||
29 | |||
30 | /** | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @generated | ||
34 | */ | ||
35 | @Override | ||
36 | protected EClass eStaticClass() | ||
37 | { | ||
38 | return SolverLanguagePackage.Literals.STAR_ARGUMENT; | ||
39 | } | ||
40 | |||
41 | } //StarArgumentImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/StatementImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/StatementImpl.java deleted file mode 100644 index d349d1a4..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/StatementImpl.java +++ /dev/null | |||
@@ -1,43 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | |||
8 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
9 | |||
10 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
11 | import org.eclipse.viatra.solver.language.solverLanguage.Statement; | ||
12 | |||
13 | /** | ||
14 | * <!-- begin-user-doc --> | ||
15 | * An implementation of the model object '<em><b>Statement</b></em>'. | ||
16 | * <!-- end-user-doc --> | ||
17 | * | ||
18 | * @generated | ||
19 | */ | ||
20 | public class StatementImpl extends MinimalEObjectImpl.Container implements Statement | ||
21 | { | ||
22 | /** | ||
23 | * <!-- begin-user-doc --> | ||
24 | * <!-- end-user-doc --> | ||
25 | * @generated | ||
26 | */ | ||
27 | protected StatementImpl() | ||
28 | { | ||
29 | super(); | ||
30 | } | ||
31 | |||
32 | /** | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @generated | ||
36 | */ | ||
37 | @Override | ||
38 | protected EClass eStaticClass() | ||
39 | { | ||
40 | return SolverLanguagePackage.Literals.STATEMENT; | ||
41 | } | ||
42 | |||
43 | } //StatementImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/StringLiteralImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/StringLiteralImpl.java deleted file mode 100644 index 2b0b2720..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/StringLiteralImpl.java +++ /dev/null | |||
@@ -1,179 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | |||
10 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
11 | |||
12 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
13 | import org.eclipse.viatra.solver.language.solverLanguage.StringLiteral; | ||
14 | |||
15 | /** | ||
16 | * <!-- begin-user-doc --> | ||
17 | * An implementation of the model object '<em><b>String Literal</b></em>'. | ||
18 | * <!-- end-user-doc --> | ||
19 | * <p> | ||
20 | * The following features are implemented: | ||
21 | * </p> | ||
22 | * <ul> | ||
23 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.StringLiteralImpl#getValue <em>Value</em>}</li> | ||
24 | * </ul> | ||
25 | * | ||
26 | * @generated | ||
27 | */ | ||
28 | public class StringLiteralImpl extends LiteralImpl implements StringLiteral | ||
29 | { | ||
30 | /** | ||
31 | * The default value of the '{@link #getValue() <em>Value</em>}' attribute. | ||
32 | * <!-- begin-user-doc --> | ||
33 | * <!-- end-user-doc --> | ||
34 | * @see #getValue() | ||
35 | * @generated | ||
36 | * @ordered | ||
37 | */ | ||
38 | protected static final String VALUE_EDEFAULT = null; | ||
39 | |||
40 | /** | ||
41 | * The cached value of the '{@link #getValue() <em>Value</em>}' attribute. | ||
42 | * <!-- begin-user-doc --> | ||
43 | * <!-- end-user-doc --> | ||
44 | * @see #getValue() | ||
45 | * @generated | ||
46 | * @ordered | ||
47 | */ | ||
48 | protected String value = VALUE_EDEFAULT; | ||
49 | |||
50 | /** | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @generated | ||
54 | */ | ||
55 | protected StringLiteralImpl() | ||
56 | { | ||
57 | super(); | ||
58 | } | ||
59 | |||
60 | /** | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @generated | ||
64 | */ | ||
65 | @Override | ||
66 | protected EClass eStaticClass() | ||
67 | { | ||
68 | return SolverLanguagePackage.Literals.STRING_LITERAL; | ||
69 | } | ||
70 | |||
71 | /** | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @generated | ||
75 | */ | ||
76 | @Override | ||
77 | public String getValue() | ||
78 | { | ||
79 | return value; | ||
80 | } | ||
81 | |||
82 | /** | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @generated | ||
86 | */ | ||
87 | @Override | ||
88 | public void setValue(String newValue) | ||
89 | { | ||
90 | String oldValue = value; | ||
91 | value = newValue; | ||
92 | if (eNotificationRequired()) | ||
93 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.STRING_LITERAL__VALUE, oldValue, value)); | ||
94 | } | ||
95 | |||
96 | /** | ||
97 | * <!-- begin-user-doc --> | ||
98 | * <!-- end-user-doc --> | ||
99 | * @generated | ||
100 | */ | ||
101 | @Override | ||
102 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
103 | { | ||
104 | switch (featureID) | ||
105 | { | ||
106 | case SolverLanguagePackage.STRING_LITERAL__VALUE: | ||
107 | return getValue(); | ||
108 | } | ||
109 | return super.eGet(featureID, resolve, coreType); | ||
110 | } | ||
111 | |||
112 | /** | ||
113 | * <!-- begin-user-doc --> | ||
114 | * <!-- end-user-doc --> | ||
115 | * @generated | ||
116 | */ | ||
117 | @Override | ||
118 | public void eSet(int featureID, Object newValue) | ||
119 | { | ||
120 | switch (featureID) | ||
121 | { | ||
122 | case SolverLanguagePackage.STRING_LITERAL__VALUE: | ||
123 | setValue((String)newValue); | ||
124 | return; | ||
125 | } | ||
126 | super.eSet(featureID, newValue); | ||
127 | } | ||
128 | |||
129 | /** | ||
130 | * <!-- begin-user-doc --> | ||
131 | * <!-- end-user-doc --> | ||
132 | * @generated | ||
133 | */ | ||
134 | @Override | ||
135 | public void eUnset(int featureID) | ||
136 | { | ||
137 | switch (featureID) | ||
138 | { | ||
139 | case SolverLanguagePackage.STRING_LITERAL__VALUE: | ||
140 | setValue(VALUE_EDEFAULT); | ||
141 | return; | ||
142 | } | ||
143 | super.eUnset(featureID); | ||
144 | } | ||
145 | |||
146 | /** | ||
147 | * <!-- begin-user-doc --> | ||
148 | * <!-- end-user-doc --> | ||
149 | * @generated | ||
150 | */ | ||
151 | @Override | ||
152 | public boolean eIsSet(int featureID) | ||
153 | { | ||
154 | switch (featureID) | ||
155 | { | ||
156 | case SolverLanguagePackage.STRING_LITERAL__VALUE: | ||
157 | return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); | ||
158 | } | ||
159 | return super.eIsSet(featureID); | ||
160 | } | ||
161 | |||
162 | /** | ||
163 | * <!-- begin-user-doc --> | ||
164 | * <!-- end-user-doc --> | ||
165 | * @generated | ||
166 | */ | ||
167 | @Override | ||
168 | public String toString() | ||
169 | { | ||
170 | if (eIsProxy()) return super.toString(); | ||
171 | |||
172 | StringBuilder result = new StringBuilder(super.toString()); | ||
173 | result.append(" (value: "); | ||
174 | result.append(value); | ||
175 | result.append(')'); | ||
176 | return result.toString(); | ||
177 | } | ||
178 | |||
179 | } //StringLiteralImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/SwitchImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/SwitchImpl.java deleted file mode 100644 index fefd5be6..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/SwitchImpl.java +++ /dev/null | |||
@@ -1,167 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import java.util.Collection; | ||
7 | |||
8 | import org.eclipse.emf.common.notify.NotificationChain; | ||
9 | |||
10 | import org.eclipse.emf.common.util.EList; | ||
11 | |||
12 | import org.eclipse.emf.ecore.EClass; | ||
13 | import org.eclipse.emf.ecore.InternalEObject; | ||
14 | |||
15 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
16 | import org.eclipse.emf.ecore.util.InternalEList; | ||
17 | |||
18 | import org.eclipse.viatra.solver.language.solverLanguage.Case; | ||
19 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
20 | import org.eclipse.viatra.solver.language.solverLanguage.Switch; | ||
21 | |||
22 | /** | ||
23 | * <!-- begin-user-doc --> | ||
24 | * An implementation of the model object '<em><b>Switch</b></em>'. | ||
25 | * <!-- end-user-doc --> | ||
26 | * <p> | ||
27 | * The following features are implemented: | ||
28 | * </p> | ||
29 | * <ul> | ||
30 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.SwitchImpl#getCases <em>Cases</em>}</li> | ||
31 | * </ul> | ||
32 | * | ||
33 | * @generated | ||
34 | */ | ||
35 | public class SwitchImpl extends ExpressionImpl implements Switch | ||
36 | { | ||
37 | /** | ||
38 | * The cached value of the '{@link #getCases() <em>Cases</em>}' containment reference list. | ||
39 | * <!-- begin-user-doc --> | ||
40 | * <!-- end-user-doc --> | ||
41 | * @see #getCases() | ||
42 | * @generated | ||
43 | * @ordered | ||
44 | */ | ||
45 | protected EList<Case> cases; | ||
46 | |||
47 | /** | ||
48 | * <!-- begin-user-doc --> | ||
49 | * <!-- end-user-doc --> | ||
50 | * @generated | ||
51 | */ | ||
52 | protected SwitchImpl() | ||
53 | { | ||
54 | super(); | ||
55 | } | ||
56 | |||
57 | /** | ||
58 | * <!-- begin-user-doc --> | ||
59 | * <!-- end-user-doc --> | ||
60 | * @generated | ||
61 | */ | ||
62 | @Override | ||
63 | protected EClass eStaticClass() | ||
64 | { | ||
65 | return SolverLanguagePackage.Literals.SWITCH; | ||
66 | } | ||
67 | |||
68 | /** | ||
69 | * <!-- begin-user-doc --> | ||
70 | * <!-- end-user-doc --> | ||
71 | * @generated | ||
72 | */ | ||
73 | @Override | ||
74 | public EList<Case> getCases() | ||
75 | { | ||
76 | if (cases == null) | ||
77 | { | ||
78 | cases = new EObjectContainmentEList<Case>(Case.class, this, SolverLanguagePackage.SWITCH__CASES); | ||
79 | } | ||
80 | return cases; | ||
81 | } | ||
82 | |||
83 | /** | ||
84 | * <!-- begin-user-doc --> | ||
85 | * <!-- end-user-doc --> | ||
86 | * @generated | ||
87 | */ | ||
88 | @Override | ||
89 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
90 | { | ||
91 | switch (featureID) | ||
92 | { | ||
93 | case SolverLanguagePackage.SWITCH__CASES: | ||
94 | return ((InternalEList<?>)getCases()).basicRemove(otherEnd, msgs); | ||
95 | } | ||
96 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
97 | } | ||
98 | |||
99 | /** | ||
100 | * <!-- begin-user-doc --> | ||
101 | * <!-- end-user-doc --> | ||
102 | * @generated | ||
103 | */ | ||
104 | @Override | ||
105 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
106 | { | ||
107 | switch (featureID) | ||
108 | { | ||
109 | case SolverLanguagePackage.SWITCH__CASES: | ||
110 | return getCases(); | ||
111 | } | ||
112 | return super.eGet(featureID, resolve, coreType); | ||
113 | } | ||
114 | |||
115 | /** | ||
116 | * <!-- begin-user-doc --> | ||
117 | * <!-- end-user-doc --> | ||
118 | * @generated | ||
119 | */ | ||
120 | @SuppressWarnings("unchecked") | ||
121 | @Override | ||
122 | public void eSet(int featureID, Object newValue) | ||
123 | { | ||
124 | switch (featureID) | ||
125 | { | ||
126 | case SolverLanguagePackage.SWITCH__CASES: | ||
127 | getCases().clear(); | ||
128 | getCases().addAll((Collection<? extends Case>)newValue); | ||
129 | return; | ||
130 | } | ||
131 | super.eSet(featureID, newValue); | ||
132 | } | ||
133 | |||
134 | /** | ||
135 | * <!-- begin-user-doc --> | ||
136 | * <!-- end-user-doc --> | ||
137 | * @generated | ||
138 | */ | ||
139 | @Override | ||
140 | public void eUnset(int featureID) | ||
141 | { | ||
142 | switch (featureID) | ||
143 | { | ||
144 | case SolverLanguagePackage.SWITCH__CASES: | ||
145 | getCases().clear(); | ||
146 | return; | ||
147 | } | ||
148 | super.eUnset(featureID); | ||
149 | } | ||
150 | |||
151 | /** | ||
152 | * <!-- begin-user-doc --> | ||
153 | * <!-- end-user-doc --> | ||
154 | * @generated | ||
155 | */ | ||
156 | @Override | ||
157 | public boolean eIsSet(int featureID) | ||
158 | { | ||
159 | switch (featureID) | ||
160 | { | ||
161 | case SolverLanguagePackage.SWITCH__CASES: | ||
162 | return cases != null && !cases.isEmpty(); | ||
163 | } | ||
164 | return super.eIsSet(featureID); | ||
165 | } | ||
166 | |||
167 | } //SwitchImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/TypedArgumentImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/TypedArgumentImpl.java deleted file mode 100644 index 2d93f402..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/TypedArgumentImpl.java +++ /dev/null | |||
@@ -1,242 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | import org.eclipse.emf.ecore.InternalEObject; | ||
10 | |||
11 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
12 | |||
13 | import org.eclipse.viatra.solver.language.solverLanguage.NamedElement; | ||
14 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.TypedArgument; | ||
16 | |||
17 | /** | ||
18 | * <!-- begin-user-doc --> | ||
19 | * An implementation of the model object '<em><b>Typed Argument</b></em>'. | ||
20 | * <!-- end-user-doc --> | ||
21 | * <p> | ||
22 | * The following features are implemented: | ||
23 | * </p> | ||
24 | * <ul> | ||
25 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.TypedArgumentImpl#getType <em>Type</em>}</li> | ||
26 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.TypedArgumentImpl#getVariable <em>Variable</em>}</li> | ||
27 | * </ul> | ||
28 | * | ||
29 | * @generated | ||
30 | */ | ||
31 | public class TypedArgumentImpl extends ArgumentImpl implements TypedArgument | ||
32 | { | ||
33 | /** | ||
34 | * The cached value of the '{@link #getType() <em>Type</em>}' reference. | ||
35 | * <!-- begin-user-doc --> | ||
36 | * <!-- end-user-doc --> | ||
37 | * @see #getType() | ||
38 | * @generated | ||
39 | * @ordered | ||
40 | */ | ||
41 | protected NamedElement type; | ||
42 | |||
43 | /** | ||
44 | * The cached value of the '{@link #getVariable() <em>Variable</em>}' reference. | ||
45 | * <!-- begin-user-doc --> | ||
46 | * <!-- end-user-doc --> | ||
47 | * @see #getVariable() | ||
48 | * @generated | ||
49 | * @ordered | ||
50 | */ | ||
51 | protected NamedElement variable; | ||
52 | |||
53 | /** | ||
54 | * <!-- begin-user-doc --> | ||
55 | * <!-- end-user-doc --> | ||
56 | * @generated | ||
57 | */ | ||
58 | protected TypedArgumentImpl() | ||
59 | { | ||
60 | super(); | ||
61 | } | ||
62 | |||
63 | /** | ||
64 | * <!-- begin-user-doc --> | ||
65 | * <!-- end-user-doc --> | ||
66 | * @generated | ||
67 | */ | ||
68 | @Override | ||
69 | protected EClass eStaticClass() | ||
70 | { | ||
71 | return SolverLanguagePackage.Literals.TYPED_ARGUMENT; | ||
72 | } | ||
73 | |||
74 | /** | ||
75 | * <!-- begin-user-doc --> | ||
76 | * <!-- end-user-doc --> | ||
77 | * @generated | ||
78 | */ | ||
79 | @Override | ||
80 | public NamedElement getType() | ||
81 | { | ||
82 | if (type != null && type.eIsProxy()) | ||
83 | { | ||
84 | InternalEObject oldType = (InternalEObject)type; | ||
85 | type = (NamedElement)eResolveProxy(oldType); | ||
86 | if (type != oldType) | ||
87 | { | ||
88 | if (eNotificationRequired()) | ||
89 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, SolverLanguagePackage.TYPED_ARGUMENT__TYPE, oldType, type)); | ||
90 | } | ||
91 | } | ||
92 | return type; | ||
93 | } | ||
94 | |||
95 | /** | ||
96 | * <!-- begin-user-doc --> | ||
97 | * <!-- end-user-doc --> | ||
98 | * @generated | ||
99 | */ | ||
100 | public NamedElement basicGetType() | ||
101 | { | ||
102 | return type; | ||
103 | } | ||
104 | |||
105 | /** | ||
106 | * <!-- begin-user-doc --> | ||
107 | * <!-- end-user-doc --> | ||
108 | * @generated | ||
109 | */ | ||
110 | @Override | ||
111 | public void setType(NamedElement newType) | ||
112 | { | ||
113 | NamedElement oldType = type; | ||
114 | type = newType; | ||
115 | if (eNotificationRequired()) | ||
116 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.TYPED_ARGUMENT__TYPE, oldType, type)); | ||
117 | } | ||
118 | |||
119 | /** | ||
120 | * <!-- begin-user-doc --> | ||
121 | * <!-- end-user-doc --> | ||
122 | * @generated | ||
123 | */ | ||
124 | @Override | ||
125 | public NamedElement getVariable() | ||
126 | { | ||
127 | if (variable != null && variable.eIsProxy()) | ||
128 | { | ||
129 | InternalEObject oldVariable = (InternalEObject)variable; | ||
130 | variable = (NamedElement)eResolveProxy(oldVariable); | ||
131 | if (variable != oldVariable) | ||
132 | { | ||
133 | if (eNotificationRequired()) | ||
134 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, SolverLanguagePackage.TYPED_ARGUMENT__VARIABLE, oldVariable, variable)); | ||
135 | } | ||
136 | } | ||
137 | return variable; | ||
138 | } | ||
139 | |||
140 | /** | ||
141 | * <!-- begin-user-doc --> | ||
142 | * <!-- end-user-doc --> | ||
143 | * @generated | ||
144 | */ | ||
145 | public NamedElement basicGetVariable() | ||
146 | { | ||
147 | return variable; | ||
148 | } | ||
149 | |||
150 | /** | ||
151 | * <!-- begin-user-doc --> | ||
152 | * <!-- end-user-doc --> | ||
153 | * @generated | ||
154 | */ | ||
155 | @Override | ||
156 | public void setVariable(NamedElement newVariable) | ||
157 | { | ||
158 | NamedElement oldVariable = variable; | ||
159 | variable = newVariable; | ||
160 | if (eNotificationRequired()) | ||
161 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.TYPED_ARGUMENT__VARIABLE, oldVariable, variable)); | ||
162 | } | ||
163 | |||
164 | /** | ||
165 | * <!-- begin-user-doc --> | ||
166 | * <!-- end-user-doc --> | ||
167 | * @generated | ||
168 | */ | ||
169 | @Override | ||
170 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
171 | { | ||
172 | switch (featureID) | ||
173 | { | ||
174 | case SolverLanguagePackage.TYPED_ARGUMENT__TYPE: | ||
175 | if (resolve) return getType(); | ||
176 | return basicGetType(); | ||
177 | case SolverLanguagePackage.TYPED_ARGUMENT__VARIABLE: | ||
178 | if (resolve) return getVariable(); | ||
179 | return basicGetVariable(); | ||
180 | } | ||
181 | return super.eGet(featureID, resolve, coreType); | ||
182 | } | ||
183 | |||
184 | /** | ||
185 | * <!-- begin-user-doc --> | ||
186 | * <!-- end-user-doc --> | ||
187 | * @generated | ||
188 | */ | ||
189 | @Override | ||
190 | public void eSet(int featureID, Object newValue) | ||
191 | { | ||
192 | switch (featureID) | ||
193 | { | ||
194 | case SolverLanguagePackage.TYPED_ARGUMENT__TYPE: | ||
195 | setType((NamedElement)newValue); | ||
196 | return; | ||
197 | case SolverLanguagePackage.TYPED_ARGUMENT__VARIABLE: | ||
198 | setVariable((NamedElement)newValue); | ||
199 | return; | ||
200 | } | ||
201 | super.eSet(featureID, newValue); | ||
202 | } | ||
203 | |||
204 | /** | ||
205 | * <!-- begin-user-doc --> | ||
206 | * <!-- end-user-doc --> | ||
207 | * @generated | ||
208 | */ | ||
209 | @Override | ||
210 | public void eUnset(int featureID) | ||
211 | { | ||
212 | switch (featureID) | ||
213 | { | ||
214 | case SolverLanguagePackage.TYPED_ARGUMENT__TYPE: | ||
215 | setType((NamedElement)null); | ||
216 | return; | ||
217 | case SolverLanguagePackage.TYPED_ARGUMENT__VARIABLE: | ||
218 | setVariable((NamedElement)null); | ||
219 | return; | ||
220 | } | ||
221 | super.eUnset(featureID); | ||
222 | } | ||
223 | |||
224 | /** | ||
225 | * <!-- begin-user-doc --> | ||
226 | * <!-- end-user-doc --> | ||
227 | * @generated | ||
228 | */ | ||
229 | @Override | ||
230 | public boolean eIsSet(int featureID) | ||
231 | { | ||
232 | switch (featureID) | ||
233 | { | ||
234 | case SolverLanguagePackage.TYPED_ARGUMENT__TYPE: | ||
235 | return type != null; | ||
236 | case SolverLanguagePackage.TYPED_ARGUMENT__VARIABLE: | ||
237 | return variable != null; | ||
238 | } | ||
239 | return super.eIsSet(featureID); | ||
240 | } | ||
241 | |||
242 | } //TypedArgumentImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/TypedStarArgumentImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/TypedStarArgumentImpl.java deleted file mode 100644 index dd2b46bc..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/TypedStarArgumentImpl.java +++ /dev/null | |||
@@ -1,175 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | import org.eclipse.emf.ecore.InternalEObject; | ||
10 | |||
11 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
12 | |||
13 | import org.eclipse.viatra.solver.language.solverLanguage.NamedElement; | ||
14 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.TypedStarArgument; | ||
16 | |||
17 | /** | ||
18 | * <!-- begin-user-doc --> | ||
19 | * An implementation of the model object '<em><b>Typed Star Argument</b></em>'. | ||
20 | * <!-- end-user-doc --> | ||
21 | * <p> | ||
22 | * The following features are implemented: | ||
23 | * </p> | ||
24 | * <ul> | ||
25 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.TypedStarArgumentImpl#getType <em>Type</em>}</li> | ||
26 | * </ul> | ||
27 | * | ||
28 | * @generated | ||
29 | */ | ||
30 | public class TypedStarArgumentImpl extends ArgumentImpl implements TypedStarArgument | ||
31 | { | ||
32 | /** | ||
33 | * The cached value of the '{@link #getType() <em>Type</em>}' reference. | ||
34 | * <!-- begin-user-doc --> | ||
35 | * <!-- end-user-doc --> | ||
36 | * @see #getType() | ||
37 | * @generated | ||
38 | * @ordered | ||
39 | */ | ||
40 | protected NamedElement type; | ||
41 | |||
42 | /** | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @generated | ||
46 | */ | ||
47 | protected TypedStarArgumentImpl() | ||
48 | { | ||
49 | super(); | ||
50 | } | ||
51 | |||
52 | /** | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @generated | ||
56 | */ | ||
57 | @Override | ||
58 | protected EClass eStaticClass() | ||
59 | { | ||
60 | return SolverLanguagePackage.Literals.TYPED_STAR_ARGUMENT; | ||
61 | } | ||
62 | |||
63 | /** | ||
64 | * <!-- begin-user-doc --> | ||
65 | * <!-- end-user-doc --> | ||
66 | * @generated | ||
67 | */ | ||
68 | @Override | ||
69 | public NamedElement getType() | ||
70 | { | ||
71 | if (type != null && type.eIsProxy()) | ||
72 | { | ||
73 | InternalEObject oldType = (InternalEObject)type; | ||
74 | type = (NamedElement)eResolveProxy(oldType); | ||
75 | if (type != oldType) | ||
76 | { | ||
77 | if (eNotificationRequired()) | ||
78 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, SolverLanguagePackage.TYPED_STAR_ARGUMENT__TYPE, oldType, type)); | ||
79 | } | ||
80 | } | ||
81 | return type; | ||
82 | } | ||
83 | |||
84 | /** | ||
85 | * <!-- begin-user-doc --> | ||
86 | * <!-- end-user-doc --> | ||
87 | * @generated | ||
88 | */ | ||
89 | public NamedElement basicGetType() | ||
90 | { | ||
91 | return type; | ||
92 | } | ||
93 | |||
94 | /** | ||
95 | * <!-- begin-user-doc --> | ||
96 | * <!-- end-user-doc --> | ||
97 | * @generated | ||
98 | */ | ||
99 | @Override | ||
100 | public void setType(NamedElement newType) | ||
101 | { | ||
102 | NamedElement oldType = type; | ||
103 | type = newType; | ||
104 | if (eNotificationRequired()) | ||
105 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.TYPED_STAR_ARGUMENT__TYPE, oldType, type)); | ||
106 | } | ||
107 | |||
108 | /** | ||
109 | * <!-- begin-user-doc --> | ||
110 | * <!-- end-user-doc --> | ||
111 | * @generated | ||
112 | */ | ||
113 | @Override | ||
114 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
115 | { | ||
116 | switch (featureID) | ||
117 | { | ||
118 | case SolverLanguagePackage.TYPED_STAR_ARGUMENT__TYPE: | ||
119 | if (resolve) return getType(); | ||
120 | return basicGetType(); | ||
121 | } | ||
122 | return super.eGet(featureID, resolve, coreType); | ||
123 | } | ||
124 | |||
125 | /** | ||
126 | * <!-- begin-user-doc --> | ||
127 | * <!-- end-user-doc --> | ||
128 | * @generated | ||
129 | */ | ||
130 | @Override | ||
131 | public void eSet(int featureID, Object newValue) | ||
132 | { | ||
133 | switch (featureID) | ||
134 | { | ||
135 | case SolverLanguagePackage.TYPED_STAR_ARGUMENT__TYPE: | ||
136 | setType((NamedElement)newValue); | ||
137 | return; | ||
138 | } | ||
139 | super.eSet(featureID, newValue); | ||
140 | } | ||
141 | |||
142 | /** | ||
143 | * <!-- begin-user-doc --> | ||
144 | * <!-- end-user-doc --> | ||
145 | * @generated | ||
146 | */ | ||
147 | @Override | ||
148 | public void eUnset(int featureID) | ||
149 | { | ||
150 | switch (featureID) | ||
151 | { | ||
152 | case SolverLanguagePackage.TYPED_STAR_ARGUMENT__TYPE: | ||
153 | setType((NamedElement)null); | ||
154 | return; | ||
155 | } | ||
156 | super.eUnset(featureID); | ||
157 | } | ||
158 | |||
159 | /** | ||
160 | * <!-- begin-user-doc --> | ||
161 | * <!-- end-user-doc --> | ||
162 | * @generated | ||
163 | */ | ||
164 | @Override | ||
165 | public boolean eIsSet(int featureID) | ||
166 | { | ||
167 | switch (featureID) | ||
168 | { | ||
169 | case SolverLanguagePackage.TYPED_STAR_ARGUMENT__TYPE: | ||
170 | return type != null; | ||
171 | } | ||
172 | return super.eIsSet(featureID); | ||
173 | } | ||
174 | |||
175 | } //TypedStarArgumentImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/UnaryExpressionImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/UnaryExpressionImpl.java deleted file mode 100644 index ee5ebfbb..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/UnaryExpressionImpl.java +++ /dev/null | |||
@@ -1,270 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | import org.eclipse.emf.common.notify.NotificationChain; | ||
8 | |||
9 | import org.eclipse.emf.ecore.EClass; | ||
10 | import org.eclipse.emf.ecore.InternalEObject; | ||
11 | |||
12 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
13 | |||
14 | import org.eclipse.viatra.solver.language.solverLanguage.Expression; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.UnaryExpression; | ||
17 | import org.eclipse.viatra.solver.language.solverLanguage.UnaryOp; | ||
18 | |||
19 | /** | ||
20 | * <!-- begin-user-doc --> | ||
21 | * An implementation of the model object '<em><b>Unary Expression</b></em>'. | ||
22 | * <!-- end-user-doc --> | ||
23 | * <p> | ||
24 | * The following features are implemented: | ||
25 | * </p> | ||
26 | * <ul> | ||
27 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.UnaryExpressionImpl#getOp <em>Op</em>}</li> | ||
28 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.UnaryExpressionImpl#getBody <em>Body</em>}</li> | ||
29 | * </ul> | ||
30 | * | ||
31 | * @generated | ||
32 | */ | ||
33 | public class UnaryExpressionImpl extends ExpressionImpl implements UnaryExpression | ||
34 | { | ||
35 | /** | ||
36 | * The default value of the '{@link #getOp() <em>Op</em>}' attribute. | ||
37 | * <!-- begin-user-doc --> | ||
38 | * <!-- end-user-doc --> | ||
39 | * @see #getOp() | ||
40 | * @generated | ||
41 | * @ordered | ||
42 | */ | ||
43 | protected static final UnaryOp OP_EDEFAULT = UnaryOp.NEG; | ||
44 | |||
45 | /** | ||
46 | * The cached value of the '{@link #getOp() <em>Op</em>}' attribute. | ||
47 | * <!-- begin-user-doc --> | ||
48 | * <!-- end-user-doc --> | ||
49 | * @see #getOp() | ||
50 | * @generated | ||
51 | * @ordered | ||
52 | */ | ||
53 | protected UnaryOp op = OP_EDEFAULT; | ||
54 | |||
55 | /** | ||
56 | * The cached value of the '{@link #getBody() <em>Body</em>}' containment reference. | ||
57 | * <!-- begin-user-doc --> | ||
58 | * <!-- end-user-doc --> | ||
59 | * @see #getBody() | ||
60 | * @generated | ||
61 | * @ordered | ||
62 | */ | ||
63 | protected Expression body; | ||
64 | |||
65 | /** | ||
66 | * <!-- begin-user-doc --> | ||
67 | * <!-- end-user-doc --> | ||
68 | * @generated | ||
69 | */ | ||
70 | protected UnaryExpressionImpl() | ||
71 | { | ||
72 | super(); | ||
73 | } | ||
74 | |||
75 | /** | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <!-- end-user-doc --> | ||
78 | * @generated | ||
79 | */ | ||
80 | @Override | ||
81 | protected EClass eStaticClass() | ||
82 | { | ||
83 | return SolverLanguagePackage.Literals.UNARY_EXPRESSION; | ||
84 | } | ||
85 | |||
86 | /** | ||
87 | * <!-- begin-user-doc --> | ||
88 | * <!-- end-user-doc --> | ||
89 | * @generated | ||
90 | */ | ||
91 | @Override | ||
92 | public UnaryOp getOp() | ||
93 | { | ||
94 | return op; | ||
95 | } | ||
96 | |||
97 | /** | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @generated | ||
101 | */ | ||
102 | @Override | ||
103 | public void setOp(UnaryOp newOp) | ||
104 | { | ||
105 | UnaryOp oldOp = op; | ||
106 | op = newOp == null ? OP_EDEFAULT : newOp; | ||
107 | if (eNotificationRequired()) | ||
108 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.UNARY_EXPRESSION__OP, oldOp, op)); | ||
109 | } | ||
110 | |||
111 | /** | ||
112 | * <!-- begin-user-doc --> | ||
113 | * <!-- end-user-doc --> | ||
114 | * @generated | ||
115 | */ | ||
116 | @Override | ||
117 | public Expression getBody() | ||
118 | { | ||
119 | return body; | ||
120 | } | ||
121 | |||
122 | /** | ||
123 | * <!-- begin-user-doc --> | ||
124 | * <!-- end-user-doc --> | ||
125 | * @generated | ||
126 | */ | ||
127 | public NotificationChain basicSetBody(Expression newBody, NotificationChain msgs) | ||
128 | { | ||
129 | Expression oldBody = body; | ||
130 | body = newBody; | ||
131 | if (eNotificationRequired()) | ||
132 | { | ||
133 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.UNARY_EXPRESSION__BODY, oldBody, newBody); | ||
134 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
135 | } | ||
136 | return msgs; | ||
137 | } | ||
138 | |||
139 | /** | ||
140 | * <!-- begin-user-doc --> | ||
141 | * <!-- end-user-doc --> | ||
142 | * @generated | ||
143 | */ | ||
144 | @Override | ||
145 | public void setBody(Expression newBody) | ||
146 | { | ||
147 | if (newBody != body) | ||
148 | { | ||
149 | NotificationChain msgs = null; | ||
150 | if (body != null) | ||
151 | msgs = ((InternalEObject)body).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.UNARY_EXPRESSION__BODY, null, msgs); | ||
152 | if (newBody != null) | ||
153 | msgs = ((InternalEObject)newBody).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.UNARY_EXPRESSION__BODY, null, msgs); | ||
154 | msgs = basicSetBody(newBody, msgs); | ||
155 | if (msgs != null) msgs.dispatch(); | ||
156 | } | ||
157 | else if (eNotificationRequired()) | ||
158 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.UNARY_EXPRESSION__BODY, newBody, newBody)); | ||
159 | } | ||
160 | |||
161 | /** | ||
162 | * <!-- begin-user-doc --> | ||
163 | * <!-- end-user-doc --> | ||
164 | * @generated | ||
165 | */ | ||
166 | @Override | ||
167 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
168 | { | ||
169 | switch (featureID) | ||
170 | { | ||
171 | case SolverLanguagePackage.UNARY_EXPRESSION__BODY: | ||
172 | return basicSetBody(null, msgs); | ||
173 | } | ||
174 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
175 | } | ||
176 | |||
177 | /** | ||
178 | * <!-- begin-user-doc --> | ||
179 | * <!-- end-user-doc --> | ||
180 | * @generated | ||
181 | */ | ||
182 | @Override | ||
183 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
184 | { | ||
185 | switch (featureID) | ||
186 | { | ||
187 | case SolverLanguagePackage.UNARY_EXPRESSION__OP: | ||
188 | return getOp(); | ||
189 | case SolverLanguagePackage.UNARY_EXPRESSION__BODY: | ||
190 | return getBody(); | ||
191 | } | ||
192 | return super.eGet(featureID, resolve, coreType); | ||
193 | } | ||
194 | |||
195 | /** | ||
196 | * <!-- begin-user-doc --> | ||
197 | * <!-- end-user-doc --> | ||
198 | * @generated | ||
199 | */ | ||
200 | @Override | ||
201 | public void eSet(int featureID, Object newValue) | ||
202 | { | ||
203 | switch (featureID) | ||
204 | { | ||
205 | case SolverLanguagePackage.UNARY_EXPRESSION__OP: | ||
206 | setOp((UnaryOp)newValue); | ||
207 | return; | ||
208 | case SolverLanguagePackage.UNARY_EXPRESSION__BODY: | ||
209 | setBody((Expression)newValue); | ||
210 | return; | ||
211 | } | ||
212 | super.eSet(featureID, newValue); | ||
213 | } | ||
214 | |||
215 | /** | ||
216 | * <!-- begin-user-doc --> | ||
217 | * <!-- end-user-doc --> | ||
218 | * @generated | ||
219 | */ | ||
220 | @Override | ||
221 | public void eUnset(int featureID) | ||
222 | { | ||
223 | switch (featureID) | ||
224 | { | ||
225 | case SolverLanguagePackage.UNARY_EXPRESSION__OP: | ||
226 | setOp(OP_EDEFAULT); | ||
227 | return; | ||
228 | case SolverLanguagePackage.UNARY_EXPRESSION__BODY: | ||
229 | setBody((Expression)null); | ||
230 | return; | ||
231 | } | ||
232 | super.eUnset(featureID); | ||
233 | } | ||
234 | |||
235 | /** | ||
236 | * <!-- begin-user-doc --> | ||
237 | * <!-- end-user-doc --> | ||
238 | * @generated | ||
239 | */ | ||
240 | @Override | ||
241 | public boolean eIsSet(int featureID) | ||
242 | { | ||
243 | switch (featureID) | ||
244 | { | ||
245 | case SolverLanguagePackage.UNARY_EXPRESSION__OP: | ||
246 | return op != OP_EDEFAULT; | ||
247 | case SolverLanguagePackage.UNARY_EXPRESSION__BODY: | ||
248 | return body != null; | ||
249 | } | ||
250 | return super.eIsSet(featureID); | ||
251 | } | ||
252 | |||
253 | /** | ||
254 | * <!-- begin-user-doc --> | ||
255 | * <!-- end-user-doc --> | ||
256 | * @generated | ||
257 | */ | ||
258 | @Override | ||
259 | public String toString() | ||
260 | { | ||
261 | if (eIsProxy()) return super.toString(); | ||
262 | |||
263 | StringBuilder result = new StringBuilder(super.toString()); | ||
264 | result.append(" (op: "); | ||
265 | result.append(op); | ||
266 | result.append(')'); | ||
267 | return result.toString(); | ||
268 | } | ||
269 | |||
270 | } //UnaryExpressionImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/UnnamedErrorPrediateDefinitionImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/UnnamedErrorPrediateDefinitionImpl.java deleted file mode 100644 index cd6a3271..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/UnnamedErrorPrediateDefinitionImpl.java +++ /dev/null | |||
@@ -1,270 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | import org.eclipse.emf.common.notify.NotificationChain; | ||
8 | |||
9 | import org.eclipse.emf.ecore.EClass; | ||
10 | import org.eclipse.emf.ecore.InternalEObject; | ||
11 | |||
12 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
13 | |||
14 | import org.eclipse.viatra.solver.language.solverLanguage.ArgumentList; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.Expression; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
17 | import org.eclipse.viatra.solver.language.solverLanguage.UnnamedErrorPrediateDefinition; | ||
18 | |||
19 | /** | ||
20 | * <!-- begin-user-doc --> | ||
21 | * An implementation of the model object '<em><b>Unnamed Error Prediate Definition</b></em>'. | ||
22 | * <!-- end-user-doc --> | ||
23 | * <p> | ||
24 | * The following features are implemented: | ||
25 | * </p> | ||
26 | * <ul> | ||
27 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.UnnamedErrorPrediateDefinitionImpl#getArgumentList <em>Argument List</em>}</li> | ||
28 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.UnnamedErrorPrediateDefinitionImpl#getBody <em>Body</em>}</li> | ||
29 | * </ul> | ||
30 | * | ||
31 | * @generated | ||
32 | */ | ||
33 | public class UnnamedErrorPrediateDefinitionImpl extends StatementImpl implements UnnamedErrorPrediateDefinition | ||
34 | { | ||
35 | /** | ||
36 | * The cached value of the '{@link #getArgumentList() <em>Argument List</em>}' containment reference. | ||
37 | * <!-- begin-user-doc --> | ||
38 | * <!-- end-user-doc --> | ||
39 | * @see #getArgumentList() | ||
40 | * @generated | ||
41 | * @ordered | ||
42 | */ | ||
43 | protected ArgumentList argumentList; | ||
44 | |||
45 | /** | ||
46 | * The cached value of the '{@link #getBody() <em>Body</em>}' containment reference. | ||
47 | * <!-- begin-user-doc --> | ||
48 | * <!-- end-user-doc --> | ||
49 | * @see #getBody() | ||
50 | * @generated | ||
51 | * @ordered | ||
52 | */ | ||
53 | protected Expression body; | ||
54 | |||
55 | /** | ||
56 | * <!-- begin-user-doc --> | ||
57 | * <!-- end-user-doc --> | ||
58 | * @generated | ||
59 | */ | ||
60 | protected UnnamedErrorPrediateDefinitionImpl() | ||
61 | { | ||
62 | super(); | ||
63 | } | ||
64 | |||
65 | /** | ||
66 | * <!-- begin-user-doc --> | ||
67 | * <!-- end-user-doc --> | ||
68 | * @generated | ||
69 | */ | ||
70 | @Override | ||
71 | protected EClass eStaticClass() | ||
72 | { | ||
73 | return SolverLanguagePackage.Literals.UNNAMED_ERROR_PREDIATE_DEFINITION; | ||
74 | } | ||
75 | |||
76 | /** | ||
77 | * <!-- begin-user-doc --> | ||
78 | * <!-- end-user-doc --> | ||
79 | * @generated | ||
80 | */ | ||
81 | @Override | ||
82 | public ArgumentList getArgumentList() | ||
83 | { | ||
84 | return argumentList; | ||
85 | } | ||
86 | |||
87 | /** | ||
88 | * <!-- begin-user-doc --> | ||
89 | * <!-- end-user-doc --> | ||
90 | * @generated | ||
91 | */ | ||
92 | public NotificationChain basicSetArgumentList(ArgumentList newArgumentList, NotificationChain msgs) | ||
93 | { | ||
94 | ArgumentList oldArgumentList = argumentList; | ||
95 | argumentList = newArgumentList; | ||
96 | if (eNotificationRequired()) | ||
97 | { | ||
98 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.UNNAMED_ERROR_PREDIATE_DEFINITION__ARGUMENT_LIST, oldArgumentList, newArgumentList); | ||
99 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
100 | } | ||
101 | return msgs; | ||
102 | } | ||
103 | |||
104 | /** | ||
105 | * <!-- begin-user-doc --> | ||
106 | * <!-- end-user-doc --> | ||
107 | * @generated | ||
108 | */ | ||
109 | @Override | ||
110 | public void setArgumentList(ArgumentList newArgumentList) | ||
111 | { | ||
112 | if (newArgumentList != argumentList) | ||
113 | { | ||
114 | NotificationChain msgs = null; | ||
115 | if (argumentList != null) | ||
116 | msgs = ((InternalEObject)argumentList).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.UNNAMED_ERROR_PREDIATE_DEFINITION__ARGUMENT_LIST, null, msgs); | ||
117 | if (newArgumentList != null) | ||
118 | msgs = ((InternalEObject)newArgumentList).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.UNNAMED_ERROR_PREDIATE_DEFINITION__ARGUMENT_LIST, null, msgs); | ||
119 | msgs = basicSetArgumentList(newArgumentList, msgs); | ||
120 | if (msgs != null) msgs.dispatch(); | ||
121 | } | ||
122 | else if (eNotificationRequired()) | ||
123 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.UNNAMED_ERROR_PREDIATE_DEFINITION__ARGUMENT_LIST, newArgumentList, newArgumentList)); | ||
124 | } | ||
125 | |||
126 | /** | ||
127 | * <!-- begin-user-doc --> | ||
128 | * <!-- end-user-doc --> | ||
129 | * @generated | ||
130 | */ | ||
131 | @Override | ||
132 | public Expression getBody() | ||
133 | { | ||
134 | return body; | ||
135 | } | ||
136 | |||
137 | /** | ||
138 | * <!-- begin-user-doc --> | ||
139 | * <!-- end-user-doc --> | ||
140 | * @generated | ||
141 | */ | ||
142 | public NotificationChain basicSetBody(Expression newBody, NotificationChain msgs) | ||
143 | { | ||
144 | Expression oldBody = body; | ||
145 | body = newBody; | ||
146 | if (eNotificationRequired()) | ||
147 | { | ||
148 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.UNNAMED_ERROR_PREDIATE_DEFINITION__BODY, oldBody, newBody); | ||
149 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
150 | } | ||
151 | return msgs; | ||
152 | } | ||
153 | |||
154 | /** | ||
155 | * <!-- begin-user-doc --> | ||
156 | * <!-- end-user-doc --> | ||
157 | * @generated | ||
158 | */ | ||
159 | @Override | ||
160 | public void setBody(Expression newBody) | ||
161 | { | ||
162 | if (newBody != body) | ||
163 | { | ||
164 | NotificationChain msgs = null; | ||
165 | if (body != null) | ||
166 | msgs = ((InternalEObject)body).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.UNNAMED_ERROR_PREDIATE_DEFINITION__BODY, null, msgs); | ||
167 | if (newBody != null) | ||
168 | msgs = ((InternalEObject)newBody).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.UNNAMED_ERROR_PREDIATE_DEFINITION__BODY, null, msgs); | ||
169 | msgs = basicSetBody(newBody, msgs); | ||
170 | if (msgs != null) msgs.dispatch(); | ||
171 | } | ||
172 | else if (eNotificationRequired()) | ||
173 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.UNNAMED_ERROR_PREDIATE_DEFINITION__BODY, newBody, newBody)); | ||
174 | } | ||
175 | |||
176 | /** | ||
177 | * <!-- begin-user-doc --> | ||
178 | * <!-- end-user-doc --> | ||
179 | * @generated | ||
180 | */ | ||
181 | @Override | ||
182 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
183 | { | ||
184 | switch (featureID) | ||
185 | { | ||
186 | case SolverLanguagePackage.UNNAMED_ERROR_PREDIATE_DEFINITION__ARGUMENT_LIST: | ||
187 | return basicSetArgumentList(null, msgs); | ||
188 | case SolverLanguagePackage.UNNAMED_ERROR_PREDIATE_DEFINITION__BODY: | ||
189 | return basicSetBody(null, msgs); | ||
190 | } | ||
191 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
192 | } | ||
193 | |||
194 | /** | ||
195 | * <!-- begin-user-doc --> | ||
196 | * <!-- end-user-doc --> | ||
197 | * @generated | ||
198 | */ | ||
199 | @Override | ||
200 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
201 | { | ||
202 | switch (featureID) | ||
203 | { | ||
204 | case SolverLanguagePackage.UNNAMED_ERROR_PREDIATE_DEFINITION__ARGUMENT_LIST: | ||
205 | return getArgumentList(); | ||
206 | case SolverLanguagePackage.UNNAMED_ERROR_PREDIATE_DEFINITION__BODY: | ||
207 | return getBody(); | ||
208 | } | ||
209 | return super.eGet(featureID, resolve, coreType); | ||
210 | } | ||
211 | |||
212 | /** | ||
213 | * <!-- begin-user-doc --> | ||
214 | * <!-- end-user-doc --> | ||
215 | * @generated | ||
216 | */ | ||
217 | @Override | ||
218 | public void eSet(int featureID, Object newValue) | ||
219 | { | ||
220 | switch (featureID) | ||
221 | { | ||
222 | case SolverLanguagePackage.UNNAMED_ERROR_PREDIATE_DEFINITION__ARGUMENT_LIST: | ||
223 | setArgumentList((ArgumentList)newValue); | ||
224 | return; | ||
225 | case SolverLanguagePackage.UNNAMED_ERROR_PREDIATE_DEFINITION__BODY: | ||
226 | setBody((Expression)newValue); | ||
227 | return; | ||
228 | } | ||
229 | super.eSet(featureID, newValue); | ||
230 | } | ||
231 | |||
232 | /** | ||
233 | * <!-- begin-user-doc --> | ||
234 | * <!-- end-user-doc --> | ||
235 | * @generated | ||
236 | */ | ||
237 | @Override | ||
238 | public void eUnset(int featureID) | ||
239 | { | ||
240 | switch (featureID) | ||
241 | { | ||
242 | case SolverLanguagePackage.UNNAMED_ERROR_PREDIATE_DEFINITION__ARGUMENT_LIST: | ||
243 | setArgumentList((ArgumentList)null); | ||
244 | return; | ||
245 | case SolverLanguagePackage.UNNAMED_ERROR_PREDIATE_DEFINITION__BODY: | ||
246 | setBody((Expression)null); | ||
247 | return; | ||
248 | } | ||
249 | super.eUnset(featureID); | ||
250 | } | ||
251 | |||
252 | /** | ||
253 | * <!-- begin-user-doc --> | ||
254 | * <!-- end-user-doc --> | ||
255 | * @generated | ||
256 | */ | ||
257 | @Override | ||
258 | public boolean eIsSet(int featureID) | ||
259 | { | ||
260 | switch (featureID) | ||
261 | { | ||
262 | case SolverLanguagePackage.UNNAMED_ERROR_PREDIATE_DEFINITION__ARGUMENT_LIST: | ||
263 | return argumentList != null; | ||
264 | case SolverLanguagePackage.UNNAMED_ERROR_PREDIATE_DEFINITION__BODY: | ||
265 | return body != null; | ||
266 | } | ||
267 | return super.eIsSet(featureID); | ||
268 | } | ||
269 | |||
270 | } //UnnamedErrorPrediateDefinitionImpl | ||