diff options
author | 2021-06-29 18:29:13 +0200 | |
---|---|---|
committer | 2021-06-29 18:31:07 +0200 | |
commit | ad35e53fa23be5312f1e4b8d830a73e8ade1f08c (patch) | |
tree | b48aeb3034358e0a02a6d17221428522ad879b77 /language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl | |
parent | Remove Xtext generated Javascript file (diff) | |
download | refinery-ad35e53fa23be5312f1e4b8d830a73e8ade1f08c.tar.gz refinery-ad35e53fa23be5312f1e4b8d830a73e8ade1f08c.tar.zst refinery-ad35e53fa23be5312f1e4b8d830a73e8ade1f08c.zip |
Generate all files on build
Diffstat (limited to 'language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl')
36 files changed, 0 insertions, 7382 deletions
diff --git a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ArgumentImpl.java b/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ArgumentImpl.java deleted file mode 100644 index 68b23c09..00000000 --- a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ArgumentImpl.java +++ /dev/null | |||
@@ -1,38 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EClass; | ||
6 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
7 | |||
8 | import org.eclipse.viatra.solver.language.model.problem.Argument; | ||
9 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * An implementation of the model object '<em><b>Argument</b></em>'. | ||
14 | * <!-- end-user-doc --> | ||
15 | * | ||
16 | * @generated | ||
17 | */ | ||
18 | public abstract class ArgumentImpl extends MinimalEObjectImpl.Container implements Argument { | ||
19 | /** | ||
20 | * <!-- begin-user-doc --> | ||
21 | * <!-- end-user-doc --> | ||
22 | * @generated | ||
23 | */ | ||
24 | protected ArgumentImpl() { | ||
25 | super(); | ||
26 | } | ||
27 | |||
28 | /** | ||
29 | * <!-- begin-user-doc --> | ||
30 | * <!-- end-user-doc --> | ||
31 | * @generated | ||
32 | */ | ||
33 | @Override | ||
34 | protected EClass eStaticClass() { | ||
35 | return ProblemPackage.Literals.ARGUMENT; | ||
36 | } | ||
37 | |||
38 | } //ArgumentImpl | ||
diff --git a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/AssertionArgumentImpl.java b/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/AssertionArgumentImpl.java deleted file mode 100644 index af41b241..00000000 --- a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/AssertionArgumentImpl.java +++ /dev/null | |||
@@ -1,39 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EClass; | ||
6 | |||
7 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
8 | |||
9 | import org.eclipse.viatra.solver.language.model.problem.AssertionArgument; | ||
10 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
11 | |||
12 | /** | ||
13 | * <!-- begin-user-doc --> | ||
14 | * An implementation of the model object '<em><b>Assertion Argument</b></em>'. | ||
15 | * <!-- end-user-doc --> | ||
16 | * | ||
17 | * @generated | ||
18 | */ | ||
19 | public abstract class AssertionArgumentImpl extends MinimalEObjectImpl.Container implements AssertionArgument { | ||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * <!-- end-user-doc --> | ||
23 | * @generated | ||
24 | */ | ||
25 | protected AssertionArgumentImpl() { | ||
26 | super(); | ||
27 | } | ||
28 | |||
29 | /** | ||
30 | * <!-- begin-user-doc --> | ||
31 | * <!-- end-user-doc --> | ||
32 | * @generated | ||
33 | */ | ||
34 | @Override | ||
35 | protected EClass eStaticClass() { | ||
36 | return ProblemPackage.Literals.ASSERTION_ARGUMENT; | ||
37 | } | ||
38 | |||
39 | } //AssertionArgumentImpl | ||
diff --git a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/AssertionImpl.java b/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/AssertionImpl.java deleted file mode 100644 index 2567d57b..00000000 --- a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/AssertionImpl.java +++ /dev/null | |||
@@ -1,288 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import java.util.Collection; | ||
6 | |||
7 | import org.eclipse.emf.common.notify.Notification; | ||
8 | |||
9 | import org.eclipse.emf.common.notify.NotificationChain; | ||
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.ENotificationImpl; | ||
16 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
17 | |||
18 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
19 | import org.eclipse.emf.ecore.util.InternalEList; | ||
20 | import org.eclipse.viatra.solver.language.model.problem.Assertion; | ||
21 | import org.eclipse.viatra.solver.language.model.problem.AssertionArgument; | ||
22 | import org.eclipse.viatra.solver.language.model.problem.LogicValue; | ||
23 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
24 | import org.eclipse.viatra.solver.language.model.problem.Relation; | ||
25 | |||
26 | /** | ||
27 | * <!-- begin-user-doc --> | ||
28 | * An implementation of the model object '<em><b>Assertion</b></em>'. | ||
29 | * <!-- end-user-doc --> | ||
30 | * <p> | ||
31 | * The following features are implemented: | ||
32 | * </p> | ||
33 | * <ul> | ||
34 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.AssertionImpl#getRelation <em>Relation</em>}</li> | ||
35 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.AssertionImpl#getValue <em>Value</em>}</li> | ||
36 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.AssertionImpl#getArguments <em>Arguments</em>}</li> | ||
37 | * </ul> | ||
38 | * | ||
39 | * @generated | ||
40 | */ | ||
41 | public class AssertionImpl extends MinimalEObjectImpl.Container implements Assertion { | ||
42 | /** | ||
43 | * The cached value of the '{@link #getRelation() <em>Relation</em>}' reference. | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @see #getRelation() | ||
47 | * @generated | ||
48 | * @ordered | ||
49 | */ | ||
50 | protected Relation relation; | ||
51 | |||
52 | /** | ||
53 | * The default value of the '{@link #getValue() <em>Value</em>}' attribute. | ||
54 | * <!-- begin-user-doc --> | ||
55 | * <!-- end-user-doc --> | ||
56 | * @see #getValue() | ||
57 | * @generated | ||
58 | * @ordered | ||
59 | */ | ||
60 | protected static final LogicValue VALUE_EDEFAULT = LogicValue.TRUE; | ||
61 | |||
62 | /** | ||
63 | * The cached value of the '{@link #getValue() <em>Value</em>}' attribute. | ||
64 | * <!-- begin-user-doc --> | ||
65 | * <!-- end-user-doc --> | ||
66 | * @see #getValue() | ||
67 | * @generated | ||
68 | * @ordered | ||
69 | */ | ||
70 | protected LogicValue value = VALUE_EDEFAULT; | ||
71 | |||
72 | /** | ||
73 | * The cached value of the '{@link #getArguments() <em>Arguments</em>}' containment reference list. | ||
74 | * <!-- begin-user-doc --> | ||
75 | * <!-- end-user-doc --> | ||
76 | * @see #getArguments() | ||
77 | * @generated | ||
78 | * @ordered | ||
79 | */ | ||
80 | protected EList<AssertionArgument> arguments; | ||
81 | |||
82 | /** | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @generated | ||
86 | */ | ||
87 | protected AssertionImpl() { | ||
88 | super(); | ||
89 | } | ||
90 | |||
91 | /** | ||
92 | * <!-- begin-user-doc --> | ||
93 | * <!-- end-user-doc --> | ||
94 | * @generated | ||
95 | */ | ||
96 | @Override | ||
97 | protected EClass eStaticClass() { | ||
98 | return ProblemPackage.Literals.ASSERTION; | ||
99 | } | ||
100 | |||
101 | /** | ||
102 | * <!-- begin-user-doc --> | ||
103 | * <!-- end-user-doc --> | ||
104 | * @generated | ||
105 | */ | ||
106 | public Relation getRelation() { | ||
107 | if (relation != null && relation.eIsProxy()) { | ||
108 | InternalEObject oldRelation = (InternalEObject) relation; | ||
109 | relation = (Relation) eResolveProxy(oldRelation); | ||
110 | if (relation != oldRelation) { | ||
111 | if (eNotificationRequired()) | ||
112 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, ProblemPackage.ASSERTION__RELATION, | ||
113 | oldRelation, relation)); | ||
114 | } | ||
115 | } | ||
116 | return relation; | ||
117 | } | ||
118 | |||
119 | /** | ||
120 | * <!-- begin-user-doc --> | ||
121 | * <!-- end-user-doc --> | ||
122 | * @generated | ||
123 | */ | ||
124 | public Relation basicGetRelation() { | ||
125 | return relation; | ||
126 | } | ||
127 | |||
128 | /** | ||
129 | * <!-- begin-user-doc --> | ||
130 | * <!-- end-user-doc --> | ||
131 | * @generated | ||
132 | */ | ||
133 | public void setRelation(Relation newRelation) { | ||
134 | Relation oldRelation = relation; | ||
135 | relation = newRelation; | ||
136 | if (eNotificationRequired()) | ||
137 | eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.ASSERTION__RELATION, oldRelation, | ||
138 | relation)); | ||
139 | } | ||
140 | |||
141 | /** | ||
142 | * <!-- begin-user-doc --> | ||
143 | * <!-- end-user-doc --> | ||
144 | * @generated | ||
145 | */ | ||
146 | public EList<AssertionArgument> getArguments() { | ||
147 | if (arguments == null) { | ||
148 | arguments = new EObjectContainmentEList<AssertionArgument>(AssertionArgument.class, this, | ||
149 | ProblemPackage.ASSERTION__ARGUMENTS); | ||
150 | } | ||
151 | return arguments; | ||
152 | } | ||
153 | |||
154 | /** | ||
155 | * <!-- begin-user-doc --> | ||
156 | * <!-- end-user-doc --> | ||
157 | * @generated | ||
158 | */ | ||
159 | @Override | ||
160 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
161 | switch (featureID) { | ||
162 | case ProblemPackage.ASSERTION__ARGUMENTS: | ||
163 | return ((InternalEList<?>) getArguments()).basicRemove(otherEnd, msgs); | ||
164 | } | ||
165 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
166 | } | ||
167 | |||
168 | /** | ||
169 | * <!-- begin-user-doc --> | ||
170 | * <!-- end-user-doc --> | ||
171 | * @generated | ||
172 | */ | ||
173 | public LogicValue getValue() { | ||
174 | return value; | ||
175 | } | ||
176 | |||
177 | /** | ||
178 | * <!-- begin-user-doc --> | ||
179 | * <!-- end-user-doc --> | ||
180 | * @generated | ||
181 | */ | ||
182 | public void setValue(LogicValue newValue) { | ||
183 | LogicValue oldValue = value; | ||
184 | value = newValue == null ? VALUE_EDEFAULT : newValue; | ||
185 | if (eNotificationRequired()) | ||
186 | eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.ASSERTION__VALUE, oldValue, value)); | ||
187 | } | ||
188 | |||
189 | /** | ||
190 | * <!-- begin-user-doc --> | ||
191 | * <!-- end-user-doc --> | ||
192 | * @generated | ||
193 | */ | ||
194 | @Override | ||
195 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
196 | switch (featureID) { | ||
197 | case ProblemPackage.ASSERTION__RELATION: | ||
198 | if (resolve) | ||
199 | return getRelation(); | ||
200 | return basicGetRelation(); | ||
201 | case ProblemPackage.ASSERTION__VALUE: | ||
202 | return getValue(); | ||
203 | case ProblemPackage.ASSERTION__ARGUMENTS: | ||
204 | return getArguments(); | ||
205 | } | ||
206 | return super.eGet(featureID, resolve, coreType); | ||
207 | } | ||
208 | |||
209 | /** | ||
210 | * <!-- begin-user-doc --> | ||
211 | * <!-- end-user-doc --> | ||
212 | * @generated | ||
213 | */ | ||
214 | @SuppressWarnings("unchecked") | ||
215 | @Override | ||
216 | public void eSet(int featureID, Object newValue) { | ||
217 | switch (featureID) { | ||
218 | case ProblemPackage.ASSERTION__RELATION: | ||
219 | setRelation((Relation) newValue); | ||
220 | return; | ||
221 | case ProblemPackage.ASSERTION__VALUE: | ||
222 | setValue((LogicValue) newValue); | ||
223 | return; | ||
224 | case ProblemPackage.ASSERTION__ARGUMENTS: | ||
225 | getArguments().clear(); | ||
226 | getArguments().addAll((Collection<? extends AssertionArgument>) 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 | switch (featureID) { | ||
240 | case ProblemPackage.ASSERTION__RELATION: | ||
241 | setRelation((Relation) null); | ||
242 | return; | ||
243 | case ProblemPackage.ASSERTION__VALUE: | ||
244 | setValue(VALUE_EDEFAULT); | ||
245 | return; | ||
246 | case ProblemPackage.ASSERTION__ARGUMENTS: | ||
247 | getArguments().clear(); | ||
248 | return; | ||
249 | } | ||
250 | super.eUnset(featureID); | ||
251 | } | ||
252 | |||
253 | /** | ||
254 | * <!-- begin-user-doc --> | ||
255 | * <!-- end-user-doc --> | ||
256 | * @generated | ||
257 | */ | ||
258 | @Override | ||
259 | public boolean eIsSet(int featureID) { | ||
260 | switch (featureID) { | ||
261 | case ProblemPackage.ASSERTION__RELATION: | ||
262 | return relation != null; | ||
263 | case ProblemPackage.ASSERTION__VALUE: | ||
264 | return value != VALUE_EDEFAULT; | ||
265 | case ProblemPackage.ASSERTION__ARGUMENTS: | ||
266 | return arguments != null && !arguments.isEmpty(); | ||
267 | } | ||
268 | return super.eIsSet(featureID); | ||
269 | } | ||
270 | |||
271 | /** | ||
272 | * <!-- begin-user-doc --> | ||
273 | * <!-- end-user-doc --> | ||
274 | * @generated | ||
275 | */ | ||
276 | @Override | ||
277 | public String toString() { | ||
278 | if (eIsProxy()) | ||
279 | return super.toString(); | ||
280 | |||
281 | StringBuilder result = new StringBuilder(super.toString()); | ||
282 | result.append(" (value: "); | ||
283 | result.append(value); | ||
284 | result.append(')'); | ||
285 | return result.toString(); | ||
286 | } | ||
287 | |||
288 | } //AssertionImpl | ||
diff --git a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/AtomImpl.java b/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/AtomImpl.java deleted file mode 100644 index d70fe90b..00000000 --- a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/AtomImpl.java +++ /dev/null | |||
@@ -1,286 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import java.util.Collection; | ||
6 | |||
7 | import org.eclipse.emf.common.notify.Notification; | ||
8 | |||
9 | import org.eclipse.emf.common.notify.NotificationChain; | ||
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.ENotificationImpl; | ||
16 | |||
17 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
18 | import org.eclipse.emf.ecore.util.InternalEList; | ||
19 | import org.eclipse.viatra.solver.language.model.problem.Argument; | ||
20 | import org.eclipse.viatra.solver.language.model.problem.Atom; | ||
21 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
22 | import org.eclipse.viatra.solver.language.model.problem.Relation; | ||
23 | |||
24 | /** | ||
25 | * <!-- begin-user-doc --> | ||
26 | * An implementation of the model object '<em><b>Atom</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.model.problem.impl.AtomImpl#getRelation <em>Relation</em>}</li> | ||
33 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.AtomImpl#isTransitiveClosure <em>Transitive Closure</em>}</li> | ||
34 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.AtomImpl#getArguments <em>Arguments</em>}</li> | ||
35 | * </ul> | ||
36 | * | ||
37 | * @generated | ||
38 | */ | ||
39 | public class AtomImpl extends LiteralImpl implements Atom { | ||
40 | /** | ||
41 | * The cached value of the '{@link #getRelation() <em>Relation</em>}' reference. | ||
42 | * <!-- begin-user-doc --> | ||
43 | * <!-- end-user-doc --> | ||
44 | * @see #getRelation() | ||
45 | * @generated | ||
46 | * @ordered | ||
47 | */ | ||
48 | protected Relation relation; | ||
49 | |||
50 | /** | ||
51 | * The default value of the '{@link #isTransitiveClosure() <em>Transitive Closure</em>}' attribute. | ||
52 | * <!-- begin-user-doc --> | ||
53 | * <!-- end-user-doc --> | ||
54 | * @see #isTransitiveClosure() | ||
55 | * @generated | ||
56 | * @ordered | ||
57 | */ | ||
58 | protected static final boolean TRANSITIVE_CLOSURE_EDEFAULT = false; | ||
59 | |||
60 | /** | ||
61 | * The cached value of the '{@link #isTransitiveClosure() <em>Transitive Closure</em>}' attribute. | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @see #isTransitiveClosure() | ||
65 | * @generated | ||
66 | * @ordered | ||
67 | */ | ||
68 | protected boolean transitiveClosure = TRANSITIVE_CLOSURE_EDEFAULT; | ||
69 | |||
70 | /** | ||
71 | * The cached value of the '{@link #getArguments() <em>Arguments</em>}' containment reference list. | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @see #getArguments() | ||
75 | * @generated | ||
76 | * @ordered | ||
77 | */ | ||
78 | protected EList<Argument> arguments; | ||
79 | |||
80 | /** | ||
81 | * <!-- begin-user-doc --> | ||
82 | * <!-- end-user-doc --> | ||
83 | * @generated | ||
84 | */ | ||
85 | protected AtomImpl() { | ||
86 | super(); | ||
87 | } | ||
88 | |||
89 | /** | ||
90 | * <!-- begin-user-doc --> | ||
91 | * <!-- end-user-doc --> | ||
92 | * @generated | ||
93 | */ | ||
94 | @Override | ||
95 | protected EClass eStaticClass() { | ||
96 | return ProblemPackage.Literals.ATOM; | ||
97 | } | ||
98 | |||
99 | /** | ||
100 | * <!-- begin-user-doc --> | ||
101 | * <!-- end-user-doc --> | ||
102 | * @generated | ||
103 | */ | ||
104 | public Relation getRelation() { | ||
105 | if (relation != null && relation.eIsProxy()) { | ||
106 | InternalEObject oldRelation = (InternalEObject) relation; | ||
107 | relation = (Relation) eResolveProxy(oldRelation); | ||
108 | if (relation != oldRelation) { | ||
109 | if (eNotificationRequired()) | ||
110 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, ProblemPackage.ATOM__RELATION, | ||
111 | oldRelation, relation)); | ||
112 | } | ||
113 | } | ||
114 | return relation; | ||
115 | } | ||
116 | |||
117 | /** | ||
118 | * <!-- begin-user-doc --> | ||
119 | * <!-- end-user-doc --> | ||
120 | * @generated | ||
121 | */ | ||
122 | public Relation basicGetRelation() { | ||
123 | return relation; | ||
124 | } | ||
125 | |||
126 | /** | ||
127 | * <!-- begin-user-doc --> | ||
128 | * <!-- end-user-doc --> | ||
129 | * @generated | ||
130 | */ | ||
131 | public void setRelation(Relation newRelation) { | ||
132 | Relation oldRelation = relation; | ||
133 | relation = newRelation; | ||
134 | if (eNotificationRequired()) | ||
135 | eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.ATOM__RELATION, oldRelation, | ||
136 | relation)); | ||
137 | } | ||
138 | |||
139 | /** | ||
140 | * <!-- begin-user-doc --> | ||
141 | * <!-- end-user-doc --> | ||
142 | * @generated | ||
143 | */ | ||
144 | public EList<Argument> getArguments() { | ||
145 | if (arguments == null) { | ||
146 | arguments = new EObjectContainmentEList<Argument>(Argument.class, this, ProblemPackage.ATOM__ARGUMENTS); | ||
147 | } | ||
148 | return arguments; | ||
149 | } | ||
150 | |||
151 | /** | ||
152 | * <!-- begin-user-doc --> | ||
153 | * <!-- end-user-doc --> | ||
154 | * @generated | ||
155 | */ | ||
156 | public boolean isTransitiveClosure() { | ||
157 | return transitiveClosure; | ||
158 | } | ||
159 | |||
160 | /** | ||
161 | * <!-- begin-user-doc --> | ||
162 | * <!-- end-user-doc --> | ||
163 | * @generated | ||
164 | */ | ||
165 | public void setTransitiveClosure(boolean newTransitiveClosure) { | ||
166 | boolean oldTransitiveClosure = transitiveClosure; | ||
167 | transitiveClosure = newTransitiveClosure; | ||
168 | if (eNotificationRequired()) | ||
169 | eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.ATOM__TRANSITIVE_CLOSURE, | ||
170 | oldTransitiveClosure, transitiveClosure)); | ||
171 | } | ||
172 | |||
173 | /** | ||
174 | * <!-- begin-user-doc --> | ||
175 | * <!-- end-user-doc --> | ||
176 | * @generated | ||
177 | */ | ||
178 | @Override | ||
179 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
180 | switch (featureID) { | ||
181 | case ProblemPackage.ATOM__ARGUMENTS: | ||
182 | return ((InternalEList<?>) getArguments()).basicRemove(otherEnd, msgs); | ||
183 | } | ||
184 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
185 | } | ||
186 | |||
187 | /** | ||
188 | * <!-- begin-user-doc --> | ||
189 | * <!-- end-user-doc --> | ||
190 | * @generated | ||
191 | */ | ||
192 | @Override | ||
193 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
194 | switch (featureID) { | ||
195 | case ProblemPackage.ATOM__RELATION: | ||
196 | if (resolve) | ||
197 | return getRelation(); | ||
198 | return basicGetRelation(); | ||
199 | case ProblemPackage.ATOM__TRANSITIVE_CLOSURE: | ||
200 | return isTransitiveClosure(); | ||
201 | case ProblemPackage.ATOM__ARGUMENTS: | ||
202 | return getArguments(); | ||
203 | } | ||
204 | return super.eGet(featureID, resolve, coreType); | ||
205 | } | ||
206 | |||
207 | /** | ||
208 | * <!-- begin-user-doc --> | ||
209 | * <!-- end-user-doc --> | ||
210 | * @generated | ||
211 | */ | ||
212 | @SuppressWarnings("unchecked") | ||
213 | @Override | ||
214 | public void eSet(int featureID, Object newValue) { | ||
215 | switch (featureID) { | ||
216 | case ProblemPackage.ATOM__RELATION: | ||
217 | setRelation((Relation) newValue); | ||
218 | return; | ||
219 | case ProblemPackage.ATOM__TRANSITIVE_CLOSURE: | ||
220 | setTransitiveClosure((Boolean) newValue); | ||
221 | return; | ||
222 | case ProblemPackage.ATOM__ARGUMENTS: | ||
223 | getArguments().clear(); | ||
224 | getArguments().addAll((Collection<? extends Argument>) newValue); | ||
225 | return; | ||
226 | } | ||
227 | super.eSet(featureID, newValue); | ||
228 | } | ||
229 | |||
230 | /** | ||
231 | * <!-- begin-user-doc --> | ||
232 | * <!-- end-user-doc --> | ||
233 | * @generated | ||
234 | */ | ||
235 | @Override | ||
236 | public void eUnset(int featureID) { | ||
237 | switch (featureID) { | ||
238 | case ProblemPackage.ATOM__RELATION: | ||
239 | setRelation((Relation) null); | ||
240 | return; | ||
241 | case ProblemPackage.ATOM__TRANSITIVE_CLOSURE: | ||
242 | setTransitiveClosure(TRANSITIVE_CLOSURE_EDEFAULT); | ||
243 | return; | ||
244 | case ProblemPackage.ATOM__ARGUMENTS: | ||
245 | getArguments().clear(); | ||
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 | switch (featureID) { | ||
259 | case ProblemPackage.ATOM__RELATION: | ||
260 | return relation != null; | ||
261 | case ProblemPackage.ATOM__TRANSITIVE_CLOSURE: | ||
262 | return transitiveClosure != TRANSITIVE_CLOSURE_EDEFAULT; | ||
263 | case ProblemPackage.ATOM__ARGUMENTS: | ||
264 | return arguments != null && !arguments.isEmpty(); | ||
265 | } | ||
266 | return super.eIsSet(featureID); | ||
267 | } | ||
268 | |||
269 | /** | ||
270 | * <!-- begin-user-doc --> | ||
271 | * <!-- end-user-doc --> | ||
272 | * @generated | ||
273 | */ | ||
274 | @Override | ||
275 | public String toString() { | ||
276 | if (eIsProxy()) | ||
277 | return super.toString(); | ||
278 | |||
279 | StringBuilder result = new StringBuilder(super.toString()); | ||
280 | result.append(" (transitiveClosure: "); | ||
281 | result.append(transitiveClosure); | ||
282 | result.append(')'); | ||
283 | return result.toString(); | ||
284 | } | ||
285 | |||
286 | } //AtomImpl | ||
diff --git a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ClassDeclarationImpl.java b/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ClassDeclarationImpl.java deleted file mode 100644 index 774a6e33..00000000 --- a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ClassDeclarationImpl.java +++ /dev/null | |||
@@ -1,335 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import java.util.Collection; | ||
6 | |||
7 | import org.eclipse.emf.common.notify.Notification; | ||
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.ENotificationImpl; | ||
16 | |||
17 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
18 | import org.eclipse.emf.ecore.util.EObjectResolvingEList; | ||
19 | import org.eclipse.emf.ecore.util.InternalEList; | ||
20 | |||
21 | import org.eclipse.viatra.solver.language.model.problem.ClassDeclaration; | ||
22 | import org.eclipse.viatra.solver.language.model.problem.Node; | ||
23 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
24 | import org.eclipse.viatra.solver.language.model.problem.ReferenceDeclaration; | ||
25 | import org.eclipse.viatra.solver.language.model.problem.Relation; | ||
26 | |||
27 | /** | ||
28 | * <!-- begin-user-doc --> | ||
29 | * An implementation of the model object '<em><b>Class Declaration</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.model.problem.impl.ClassDeclarationImpl#isAbstract <em>Abstract</em>}</li> | ||
36 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.ClassDeclarationImpl#getSuperTypes <em>Super Types</em>}</li> | ||
37 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.ClassDeclarationImpl#getReferenceDeclarations <em>Reference Declarations</em>}</li> | ||
38 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.ClassDeclarationImpl#getNewNode <em>New Node</em>}</li> | ||
39 | * </ul> | ||
40 | * | ||
41 | * @generated | ||
42 | */ | ||
43 | public class ClassDeclarationImpl extends RelationImpl implements ClassDeclaration { | ||
44 | /** | ||
45 | * The default value of the '{@link #isAbstract() <em>Abstract</em>}' attribute. | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @see #isAbstract() | ||
49 | * @generated | ||
50 | * @ordered | ||
51 | */ | ||
52 | protected static final boolean ABSTRACT_EDEFAULT = false; | ||
53 | |||
54 | /** | ||
55 | * The cached value of the '{@link #isAbstract() <em>Abstract</em>}' attribute. | ||
56 | * <!-- begin-user-doc --> | ||
57 | * <!-- end-user-doc --> | ||
58 | * @see #isAbstract() | ||
59 | * @generated | ||
60 | * @ordered | ||
61 | */ | ||
62 | protected boolean abstract_ = ABSTRACT_EDEFAULT; | ||
63 | |||
64 | /** | ||
65 | * The cached value of the '{@link #getSuperTypes() <em>Super Types</em>}' reference list. | ||
66 | * <!-- begin-user-doc --> | ||
67 | * <!-- end-user-doc --> | ||
68 | * @see #getSuperTypes() | ||
69 | * @generated | ||
70 | * @ordered | ||
71 | */ | ||
72 | protected EList<Relation> superTypes; | ||
73 | |||
74 | /** | ||
75 | * The cached value of the '{@link #getReferenceDeclarations() <em>Reference Declarations</em>}' containment reference list. | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <!-- end-user-doc --> | ||
78 | * @see #getReferenceDeclarations() | ||
79 | * @generated | ||
80 | * @ordered | ||
81 | */ | ||
82 | protected EList<ReferenceDeclaration> referenceDeclarations; | ||
83 | |||
84 | /** | ||
85 | * The cached value of the '{@link #getNewNode() <em>New Node</em>}' containment reference. | ||
86 | * <!-- begin-user-doc --> | ||
87 | * <!-- end-user-doc --> | ||
88 | * @see #getNewNode() | ||
89 | * @generated | ||
90 | * @ordered | ||
91 | */ | ||
92 | protected Node newNode; | ||
93 | |||
94 | /** | ||
95 | * <!-- begin-user-doc --> | ||
96 | * <!-- end-user-doc --> | ||
97 | * @generated | ||
98 | */ | ||
99 | protected ClassDeclarationImpl() { | ||
100 | super(); | ||
101 | } | ||
102 | |||
103 | /** | ||
104 | * <!-- begin-user-doc --> | ||
105 | * <!-- end-user-doc --> | ||
106 | * @generated | ||
107 | */ | ||
108 | @Override | ||
109 | protected EClass eStaticClass() { | ||
110 | return ProblemPackage.Literals.CLASS_DECLARATION; | ||
111 | } | ||
112 | |||
113 | /** | ||
114 | * <!-- begin-user-doc --> | ||
115 | * <!-- end-user-doc --> | ||
116 | * @generated | ||
117 | */ | ||
118 | public boolean isAbstract() { | ||
119 | return abstract_; | ||
120 | } | ||
121 | |||
122 | /** | ||
123 | * <!-- begin-user-doc --> | ||
124 | * <!-- end-user-doc --> | ||
125 | * @generated | ||
126 | */ | ||
127 | public void setAbstract(boolean newAbstract) { | ||
128 | boolean oldAbstract = abstract_; | ||
129 | abstract_ = newAbstract; | ||
130 | if (eNotificationRequired()) | ||
131 | eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.CLASS_DECLARATION__ABSTRACT, | ||
132 | oldAbstract, abstract_)); | ||
133 | } | ||
134 | |||
135 | /** | ||
136 | * <!-- begin-user-doc --> | ||
137 | * <!-- end-user-doc --> | ||
138 | * @generated | ||
139 | */ | ||
140 | public EList<Relation> getSuperTypes() { | ||
141 | if (superTypes == null) { | ||
142 | superTypes = new EObjectResolvingEList<Relation>(Relation.class, this, | ||
143 | ProblemPackage.CLASS_DECLARATION__SUPER_TYPES); | ||
144 | } | ||
145 | return superTypes; | ||
146 | } | ||
147 | |||
148 | /** | ||
149 | * <!-- begin-user-doc --> | ||
150 | * <!-- end-user-doc --> | ||
151 | * @generated | ||
152 | */ | ||
153 | public EList<ReferenceDeclaration> getReferenceDeclarations() { | ||
154 | if (referenceDeclarations == null) { | ||
155 | referenceDeclarations = new EObjectContainmentEList<ReferenceDeclaration>(ReferenceDeclaration.class, this, | ||
156 | ProblemPackage.CLASS_DECLARATION__REFERENCE_DECLARATIONS); | ||
157 | } | ||
158 | return referenceDeclarations; | ||
159 | } | ||
160 | |||
161 | /** | ||
162 | * <!-- begin-user-doc --> | ||
163 | * <!-- end-user-doc --> | ||
164 | * @generated | ||
165 | */ | ||
166 | public Node getNewNode() { | ||
167 | return newNode; | ||
168 | } | ||
169 | |||
170 | /** | ||
171 | * <!-- begin-user-doc --> | ||
172 | * <!-- end-user-doc --> | ||
173 | * @generated | ||
174 | */ | ||
175 | public NotificationChain basicSetNewNode(Node newNewNode, NotificationChain msgs) { | ||
176 | Node oldNewNode = newNode; | ||
177 | newNode = newNewNode; | ||
178 | if (eNotificationRequired()) { | ||
179 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, | ||
180 | ProblemPackage.CLASS_DECLARATION__NEW_NODE, oldNewNode, newNewNode); | ||
181 | if (msgs == null) | ||
182 | msgs = notification; | ||
183 | else | ||
184 | msgs.add(notification); | ||
185 | } | ||
186 | return msgs; | ||
187 | } | ||
188 | |||
189 | /** | ||
190 | * <!-- begin-user-doc --> | ||
191 | * <!-- end-user-doc --> | ||
192 | * @generated | ||
193 | */ | ||
194 | public void setNewNode(Node newNewNode) { | ||
195 | if (newNewNode != newNode) { | ||
196 | NotificationChain msgs = null; | ||
197 | if (newNode != null) | ||
198 | msgs = ((InternalEObject) newNode).eInverseRemove(this, | ||
199 | EOPPOSITE_FEATURE_BASE - ProblemPackage.CLASS_DECLARATION__NEW_NODE, null, msgs); | ||
200 | if (newNewNode != null) | ||
201 | msgs = ((InternalEObject) newNewNode).eInverseAdd(this, | ||
202 | EOPPOSITE_FEATURE_BASE - ProblemPackage.CLASS_DECLARATION__NEW_NODE, null, msgs); | ||
203 | msgs = basicSetNewNode(newNewNode, msgs); | ||
204 | if (msgs != null) | ||
205 | msgs.dispatch(); | ||
206 | } else if (eNotificationRequired()) | ||
207 | eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.CLASS_DECLARATION__NEW_NODE, | ||
208 | newNewNode, newNewNode)); | ||
209 | } | ||
210 | |||
211 | /** | ||
212 | * <!-- begin-user-doc --> | ||
213 | * <!-- end-user-doc --> | ||
214 | * @generated | ||
215 | */ | ||
216 | @Override | ||
217 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
218 | switch (featureID) { | ||
219 | case ProblemPackage.CLASS_DECLARATION__REFERENCE_DECLARATIONS: | ||
220 | return ((InternalEList<?>) getReferenceDeclarations()).basicRemove(otherEnd, msgs); | ||
221 | case ProblemPackage.CLASS_DECLARATION__NEW_NODE: | ||
222 | return basicSetNewNode(null, msgs); | ||
223 | } | ||
224 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
225 | } | ||
226 | |||
227 | /** | ||
228 | * <!-- begin-user-doc --> | ||
229 | * <!-- end-user-doc --> | ||
230 | * @generated | ||
231 | */ | ||
232 | @Override | ||
233 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
234 | switch (featureID) { | ||
235 | case ProblemPackage.CLASS_DECLARATION__ABSTRACT: | ||
236 | return isAbstract(); | ||
237 | case ProblemPackage.CLASS_DECLARATION__SUPER_TYPES: | ||
238 | return getSuperTypes(); | ||
239 | case ProblemPackage.CLASS_DECLARATION__REFERENCE_DECLARATIONS: | ||
240 | return getReferenceDeclarations(); | ||
241 | case ProblemPackage.CLASS_DECLARATION__NEW_NODE: | ||
242 | return getNewNode(); | ||
243 | } | ||
244 | return super.eGet(featureID, resolve, coreType); | ||
245 | } | ||
246 | |||
247 | /** | ||
248 | * <!-- begin-user-doc --> | ||
249 | * <!-- end-user-doc --> | ||
250 | * @generated | ||
251 | */ | ||
252 | @SuppressWarnings("unchecked") | ||
253 | @Override | ||
254 | public void eSet(int featureID, Object newValue) { | ||
255 | switch (featureID) { | ||
256 | case ProblemPackage.CLASS_DECLARATION__ABSTRACT: | ||
257 | setAbstract((Boolean) newValue); | ||
258 | return; | ||
259 | case ProblemPackage.CLASS_DECLARATION__SUPER_TYPES: | ||
260 | getSuperTypes().clear(); | ||
261 | getSuperTypes().addAll((Collection<? extends Relation>) newValue); | ||
262 | return; | ||
263 | case ProblemPackage.CLASS_DECLARATION__REFERENCE_DECLARATIONS: | ||
264 | getReferenceDeclarations().clear(); | ||
265 | getReferenceDeclarations().addAll((Collection<? extends ReferenceDeclaration>) newValue); | ||
266 | return; | ||
267 | case ProblemPackage.CLASS_DECLARATION__NEW_NODE: | ||
268 | setNewNode((Node) newValue); | ||
269 | return; | ||
270 | } | ||
271 | super.eSet(featureID, newValue); | ||
272 | } | ||
273 | |||
274 | /** | ||
275 | * <!-- begin-user-doc --> | ||
276 | * <!-- end-user-doc --> | ||
277 | * @generated | ||
278 | */ | ||
279 | @Override | ||
280 | public void eUnset(int featureID) { | ||
281 | switch (featureID) { | ||
282 | case ProblemPackage.CLASS_DECLARATION__ABSTRACT: | ||
283 | setAbstract(ABSTRACT_EDEFAULT); | ||
284 | return; | ||
285 | case ProblemPackage.CLASS_DECLARATION__SUPER_TYPES: | ||
286 | getSuperTypes().clear(); | ||
287 | return; | ||
288 | case ProblemPackage.CLASS_DECLARATION__REFERENCE_DECLARATIONS: | ||
289 | getReferenceDeclarations().clear(); | ||
290 | return; | ||
291 | case ProblemPackage.CLASS_DECLARATION__NEW_NODE: | ||
292 | setNewNode((Node) null); | ||
293 | return; | ||
294 | } | ||
295 | super.eUnset(featureID); | ||
296 | } | ||
297 | |||
298 | /** | ||
299 | * <!-- begin-user-doc --> | ||
300 | * <!-- end-user-doc --> | ||
301 | * @generated | ||
302 | */ | ||
303 | @Override | ||
304 | public boolean eIsSet(int featureID) { | ||
305 | switch (featureID) { | ||
306 | case ProblemPackage.CLASS_DECLARATION__ABSTRACT: | ||
307 | return abstract_ != ABSTRACT_EDEFAULT; | ||
308 | case ProblemPackage.CLASS_DECLARATION__SUPER_TYPES: | ||
309 | return superTypes != null && !superTypes.isEmpty(); | ||
310 | case ProblemPackage.CLASS_DECLARATION__REFERENCE_DECLARATIONS: | ||
311 | return referenceDeclarations != null && !referenceDeclarations.isEmpty(); | ||
312 | case ProblemPackage.CLASS_DECLARATION__NEW_NODE: | ||
313 | return newNode != null; | ||
314 | } | ||
315 | return super.eIsSet(featureID); | ||
316 | } | ||
317 | |||
318 | /** | ||
319 | * <!-- begin-user-doc --> | ||
320 | * <!-- end-user-doc --> | ||
321 | * @generated | ||
322 | */ | ||
323 | @Override | ||
324 | public String toString() { | ||
325 | if (eIsProxy()) | ||
326 | return super.toString(); | ||
327 | |||
328 | StringBuilder result = new StringBuilder(super.toString()); | ||
329 | result.append(" (abstract: "); | ||
330 | result.append(abstract_); | ||
331 | result.append(')'); | ||
332 | return result.toString(); | ||
333 | } | ||
334 | |||
335 | } //ClassDeclarationImpl | ||
diff --git a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ConjunctionImpl.java b/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ConjunctionImpl.java deleted file mode 100644 index 72258cc1..00000000 --- a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ConjunctionImpl.java +++ /dev/null | |||
@@ -1,190 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import java.util.Collection; | ||
6 | |||
7 | import org.eclipse.emf.common.notify.NotificationChain; | ||
8 | |||
9 | import org.eclipse.emf.common.util.EList; | ||
10 | |||
11 | import org.eclipse.emf.ecore.EClass; | ||
12 | import org.eclipse.emf.ecore.InternalEObject; | ||
13 | |||
14 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
15 | |||
16 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
17 | import org.eclipse.emf.ecore.util.InternalEList; | ||
18 | |||
19 | import org.eclipse.viatra.solver.language.model.problem.Conjunction; | ||
20 | import org.eclipse.viatra.solver.language.model.problem.ImplicitVariable; | ||
21 | import org.eclipse.viatra.solver.language.model.problem.Literal; | ||
22 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
23 | |||
24 | /** | ||
25 | * <!-- begin-user-doc --> | ||
26 | * An implementation of the model object '<em><b>Conjunction</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.model.problem.impl.ConjunctionImpl#getImplicitVariables <em>Implicit Variables</em>}</li> | ||
33 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.ConjunctionImpl#getLiterals <em>Literals</em>}</li> | ||
34 | * </ul> | ||
35 | * | ||
36 | * @generated | ||
37 | */ | ||
38 | public class ConjunctionImpl extends MinimalEObjectImpl.Container implements Conjunction { | ||
39 | /** | ||
40 | * The cached value of the '{@link #getImplicitVariables() <em>Implicit Variables</em>}' containment reference list. | ||
41 | * <!-- begin-user-doc --> | ||
42 | * <!-- end-user-doc --> | ||
43 | * @see #getImplicitVariables() | ||
44 | * @generated | ||
45 | * @ordered | ||
46 | */ | ||
47 | protected EList<ImplicitVariable> implicitVariables; | ||
48 | |||
49 | /** | ||
50 | * The cached value of the '{@link #getLiterals() <em>Literals</em>}' containment reference list. | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @see #getLiterals() | ||
54 | * @generated | ||
55 | * @ordered | ||
56 | */ | ||
57 | protected EList<Literal> literals; | ||
58 | |||
59 | /** | ||
60 | * <!-- begin-user-doc --> | ||
61 | * <!-- end-user-doc --> | ||
62 | * @generated | ||
63 | */ | ||
64 | protected ConjunctionImpl() { | ||
65 | super(); | ||
66 | } | ||
67 | |||
68 | /** | ||
69 | * <!-- begin-user-doc --> | ||
70 | * <!-- end-user-doc --> | ||
71 | * @generated | ||
72 | */ | ||
73 | @Override | ||
74 | protected EClass eStaticClass() { | ||
75 | return ProblemPackage.Literals.CONJUNCTION; | ||
76 | } | ||
77 | |||
78 | /** | ||
79 | * <!-- begin-user-doc --> | ||
80 | * <!-- end-user-doc --> | ||
81 | * @generated | ||
82 | */ | ||
83 | public EList<ImplicitVariable> getImplicitVariables() { | ||
84 | if (implicitVariables == null) { | ||
85 | implicitVariables = new EObjectContainmentEList<ImplicitVariable>(ImplicitVariable.class, this, | ||
86 | ProblemPackage.CONJUNCTION__IMPLICIT_VARIABLES); | ||
87 | } | ||
88 | return implicitVariables; | ||
89 | } | ||
90 | |||
91 | /** | ||
92 | * <!-- begin-user-doc --> | ||
93 | * <!-- end-user-doc --> | ||
94 | * @generated | ||
95 | */ | ||
96 | public EList<Literal> getLiterals() { | ||
97 | if (literals == null) { | ||
98 | literals = new EObjectContainmentEList<Literal>(Literal.class, this, ProblemPackage.CONJUNCTION__LITERALS); | ||
99 | } | ||
100 | return literals; | ||
101 | } | ||
102 | |||
103 | /** | ||
104 | * <!-- begin-user-doc --> | ||
105 | * <!-- end-user-doc --> | ||
106 | * @generated | ||
107 | */ | ||
108 | @Override | ||
109 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
110 | switch (featureID) { | ||
111 | case ProblemPackage.CONJUNCTION__IMPLICIT_VARIABLES: | ||
112 | return ((InternalEList<?>) getImplicitVariables()).basicRemove(otherEnd, msgs); | ||
113 | case ProblemPackage.CONJUNCTION__LITERALS: | ||
114 | return ((InternalEList<?>) getLiterals()).basicRemove(otherEnd, msgs); | ||
115 | } | ||
116 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
117 | } | ||
118 | |||
119 | /** | ||
120 | * <!-- begin-user-doc --> | ||
121 | * <!-- end-user-doc --> | ||
122 | * @generated | ||
123 | */ | ||
124 | @Override | ||
125 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
126 | switch (featureID) { | ||
127 | case ProblemPackage.CONJUNCTION__IMPLICIT_VARIABLES: | ||
128 | return getImplicitVariables(); | ||
129 | case ProblemPackage.CONJUNCTION__LITERALS: | ||
130 | return getLiterals(); | ||
131 | } | ||
132 | return super.eGet(featureID, resolve, coreType); | ||
133 | } | ||
134 | |||
135 | /** | ||
136 | * <!-- begin-user-doc --> | ||
137 | * <!-- end-user-doc --> | ||
138 | * @generated | ||
139 | */ | ||
140 | @SuppressWarnings("unchecked") | ||
141 | @Override | ||
142 | public void eSet(int featureID, Object newValue) { | ||
143 | switch (featureID) { | ||
144 | case ProblemPackage.CONJUNCTION__IMPLICIT_VARIABLES: | ||
145 | getImplicitVariables().clear(); | ||
146 | getImplicitVariables().addAll((Collection<? extends ImplicitVariable>) newValue); | ||
147 | return; | ||
148 | case ProblemPackage.CONJUNCTION__LITERALS: | ||
149 | getLiterals().clear(); | ||
150 | getLiterals().addAll((Collection<? extends Literal>) newValue); | ||
151 | return; | ||
152 | } | ||
153 | super.eSet(featureID, newValue); | ||
154 | } | ||
155 | |||
156 | /** | ||
157 | * <!-- begin-user-doc --> | ||
158 | * <!-- end-user-doc --> | ||
159 | * @generated | ||
160 | */ | ||
161 | @Override | ||
162 | public void eUnset(int featureID) { | ||
163 | switch (featureID) { | ||
164 | case ProblemPackage.CONJUNCTION__IMPLICIT_VARIABLES: | ||
165 | getImplicitVariables().clear(); | ||
166 | return; | ||
167 | case ProblemPackage.CONJUNCTION__LITERALS: | ||
168 | getLiterals().clear(); | ||
169 | return; | ||
170 | } | ||
171 | super.eUnset(featureID); | ||
172 | } | ||
173 | |||
174 | /** | ||
175 | * <!-- begin-user-doc --> | ||
176 | * <!-- end-user-doc --> | ||
177 | * @generated | ||
178 | */ | ||
179 | @Override | ||
180 | public boolean eIsSet(int featureID) { | ||
181 | switch (featureID) { | ||
182 | case ProblemPackage.CONJUNCTION__IMPLICIT_VARIABLES: | ||
183 | return implicitVariables != null && !implicitVariables.isEmpty(); | ||
184 | case ProblemPackage.CONJUNCTION__LITERALS: | ||
185 | return literals != null && !literals.isEmpty(); | ||
186 | } | ||
187 | return super.eIsSet(featureID); | ||
188 | } | ||
189 | |||
190 | } //ConjunctionImpl | ||
diff --git a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ConstantArgumentImpl.java b/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ConstantArgumentImpl.java deleted file mode 100644 index 10798200..00000000 --- a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ConstantArgumentImpl.java +++ /dev/null | |||
@@ -1,182 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import org.eclipse.emf.common.notify.Notification; | ||
6 | import org.eclipse.emf.common.notify.NotificationChain; | ||
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.model.problem.Constant; | ||
14 | import org.eclipse.viatra.solver.language.model.problem.ConstantArgument; | ||
15 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
16 | |||
17 | /** | ||
18 | * <!-- begin-user-doc --> | ||
19 | * An implementation of the model object '<em><b>Constant 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.model.problem.impl.ConstantArgumentImpl#getConstant <em>Constant</em>}</li> | ||
26 | * </ul> | ||
27 | * | ||
28 | * @generated | ||
29 | */ | ||
30 | public class ConstantArgumentImpl extends ArgumentImpl implements ConstantArgument { | ||
31 | /** | ||
32 | * The cached value of the '{@link #getConstant() <em>Constant</em>}' containment reference. | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @see #getConstant() | ||
36 | * @generated | ||
37 | * @ordered | ||
38 | */ | ||
39 | protected Constant constant; | ||
40 | |||
41 | /** | ||
42 | * <!-- begin-user-doc --> | ||
43 | * <!-- end-user-doc --> | ||
44 | * @generated | ||
45 | */ | ||
46 | protected ConstantArgumentImpl() { | ||
47 | super(); | ||
48 | } | ||
49 | |||
50 | /** | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @generated | ||
54 | */ | ||
55 | @Override | ||
56 | protected EClass eStaticClass() { | ||
57 | return ProblemPackage.Literals.CONSTANT_ARGUMENT; | ||
58 | } | ||
59 | |||
60 | /** | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @generated | ||
64 | */ | ||
65 | public Constant getConstant() { | ||
66 | return constant; | ||
67 | } | ||
68 | |||
69 | /** | ||
70 | * <!-- begin-user-doc --> | ||
71 | * <!-- end-user-doc --> | ||
72 | * @generated | ||
73 | */ | ||
74 | public NotificationChain basicSetConstant(Constant newConstant, NotificationChain msgs) { | ||
75 | Constant oldConstant = constant; | ||
76 | constant = newConstant; | ||
77 | if (eNotificationRequired()) { | ||
78 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, | ||
79 | ProblemPackage.CONSTANT_ARGUMENT__CONSTANT, oldConstant, newConstant); | ||
80 | if (msgs == null) | ||
81 | msgs = notification; | ||
82 | else | ||
83 | msgs.add(notification); | ||
84 | } | ||
85 | return msgs; | ||
86 | } | ||
87 | |||
88 | /** | ||
89 | * <!-- begin-user-doc --> | ||
90 | * <!-- end-user-doc --> | ||
91 | * @generated | ||
92 | */ | ||
93 | public void setConstant(Constant newConstant) { | ||
94 | if (newConstant != constant) { | ||
95 | NotificationChain msgs = null; | ||
96 | if (constant != null) | ||
97 | msgs = ((InternalEObject) constant).eInverseRemove(this, | ||
98 | EOPPOSITE_FEATURE_BASE - ProblemPackage.CONSTANT_ARGUMENT__CONSTANT, null, msgs); | ||
99 | if (newConstant != null) | ||
100 | msgs = ((InternalEObject) newConstant).eInverseAdd(this, | ||
101 | EOPPOSITE_FEATURE_BASE - ProblemPackage.CONSTANT_ARGUMENT__CONSTANT, null, msgs); | ||
102 | msgs = basicSetConstant(newConstant, msgs); | ||
103 | if (msgs != null) | ||
104 | msgs.dispatch(); | ||
105 | } else if (eNotificationRequired()) | ||
106 | eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.CONSTANT_ARGUMENT__CONSTANT, | ||
107 | newConstant, newConstant)); | ||
108 | } | ||
109 | |||
110 | /** | ||
111 | * <!-- begin-user-doc --> | ||
112 | * <!-- end-user-doc --> | ||
113 | * @generated | ||
114 | */ | ||
115 | @Override | ||
116 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
117 | switch (featureID) { | ||
118 | case ProblemPackage.CONSTANT_ARGUMENT__CONSTANT: | ||
119 | return basicSetConstant(null, msgs); | ||
120 | } | ||
121 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
122 | } | ||
123 | |||
124 | /** | ||
125 | * <!-- begin-user-doc --> | ||
126 | * <!-- end-user-doc --> | ||
127 | * @generated | ||
128 | */ | ||
129 | @Override | ||
130 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
131 | switch (featureID) { | ||
132 | case ProblemPackage.CONSTANT_ARGUMENT__CONSTANT: | ||
133 | return getConstant(); | ||
134 | } | ||
135 | return super.eGet(featureID, resolve, coreType); | ||
136 | } | ||
137 | |||
138 | /** | ||
139 | * <!-- begin-user-doc --> | ||
140 | * <!-- end-user-doc --> | ||
141 | * @generated | ||
142 | */ | ||
143 | @Override | ||
144 | public void eSet(int featureID, Object newValue) { | ||
145 | switch (featureID) { | ||
146 | case ProblemPackage.CONSTANT_ARGUMENT__CONSTANT: | ||
147 | setConstant((Constant) newValue); | ||
148 | return; | ||
149 | } | ||
150 | super.eSet(featureID, newValue); | ||
151 | } | ||
152 | |||
153 | /** | ||
154 | * <!-- begin-user-doc --> | ||
155 | * <!-- end-user-doc --> | ||
156 | * @generated | ||
157 | */ | ||
158 | @Override | ||
159 | public void eUnset(int featureID) { | ||
160 | switch (featureID) { | ||
161 | case ProblemPackage.CONSTANT_ARGUMENT__CONSTANT: | ||
162 | setConstant((Constant) null); | ||
163 | return; | ||
164 | } | ||
165 | super.eUnset(featureID); | ||
166 | } | ||
167 | |||
168 | /** | ||
169 | * <!-- begin-user-doc --> | ||
170 | * <!-- end-user-doc --> | ||
171 | * @generated | ||
172 | */ | ||
173 | @Override | ||
174 | public boolean eIsSet(int featureID) { | ||
175 | switch (featureID) { | ||
176 | case ProblemPackage.CONSTANT_ARGUMENT__CONSTANT: | ||
177 | return constant != null; | ||
178 | } | ||
179 | return super.eIsSet(featureID); | ||
180 | } | ||
181 | |||
182 | } //ConstantArgumentImpl | ||
diff --git a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ConstantAssertionArgumentImpl.java b/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ConstantAssertionArgumentImpl.java deleted file mode 100644 index 6b5b3ed2..00000000 --- a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ConstantAssertionArgumentImpl.java +++ /dev/null | |||
@@ -1,182 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import org.eclipse.emf.common.notify.Notification; | ||
6 | import org.eclipse.emf.common.notify.NotificationChain; | ||
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.model.problem.Constant; | ||
14 | import org.eclipse.viatra.solver.language.model.problem.ConstantAssertionArgument; | ||
15 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
16 | |||
17 | /** | ||
18 | * <!-- begin-user-doc --> | ||
19 | * An implementation of the model object '<em><b>Constant Assertion 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.model.problem.impl.ConstantAssertionArgumentImpl#getConstant <em>Constant</em>}</li> | ||
26 | * </ul> | ||
27 | * | ||
28 | * @generated | ||
29 | */ | ||
30 | public class ConstantAssertionArgumentImpl extends AssertionArgumentImpl implements ConstantAssertionArgument { | ||
31 | /** | ||
32 | * The cached value of the '{@link #getConstant() <em>Constant</em>}' containment reference. | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @see #getConstant() | ||
36 | * @generated | ||
37 | * @ordered | ||
38 | */ | ||
39 | protected Constant constant; | ||
40 | |||
41 | /** | ||
42 | * <!-- begin-user-doc --> | ||
43 | * <!-- end-user-doc --> | ||
44 | * @generated | ||
45 | */ | ||
46 | protected ConstantAssertionArgumentImpl() { | ||
47 | super(); | ||
48 | } | ||
49 | |||
50 | /** | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @generated | ||
54 | */ | ||
55 | @Override | ||
56 | protected EClass eStaticClass() { | ||
57 | return ProblemPackage.Literals.CONSTANT_ASSERTION_ARGUMENT; | ||
58 | } | ||
59 | |||
60 | /** | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @generated | ||
64 | */ | ||
65 | public Constant getConstant() { | ||
66 | return constant; | ||
67 | } | ||
68 | |||
69 | /** | ||
70 | * <!-- begin-user-doc --> | ||
71 | * <!-- end-user-doc --> | ||
72 | * @generated | ||
73 | */ | ||
74 | public NotificationChain basicSetConstant(Constant newConstant, NotificationChain msgs) { | ||
75 | Constant oldConstant = constant; | ||
76 | constant = newConstant; | ||
77 | if (eNotificationRequired()) { | ||
78 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, | ||
79 | ProblemPackage.CONSTANT_ASSERTION_ARGUMENT__CONSTANT, oldConstant, newConstant); | ||
80 | if (msgs == null) | ||
81 | msgs = notification; | ||
82 | else | ||
83 | msgs.add(notification); | ||
84 | } | ||
85 | return msgs; | ||
86 | } | ||
87 | |||
88 | /** | ||
89 | * <!-- begin-user-doc --> | ||
90 | * <!-- end-user-doc --> | ||
91 | * @generated | ||
92 | */ | ||
93 | public void setConstant(Constant newConstant) { | ||
94 | if (newConstant != constant) { | ||
95 | NotificationChain msgs = null; | ||
96 | if (constant != null) | ||
97 | msgs = ((InternalEObject) constant).eInverseRemove(this, | ||
98 | EOPPOSITE_FEATURE_BASE - ProblemPackage.CONSTANT_ASSERTION_ARGUMENT__CONSTANT, null, msgs); | ||
99 | if (newConstant != null) | ||
100 | msgs = ((InternalEObject) newConstant).eInverseAdd(this, | ||
101 | EOPPOSITE_FEATURE_BASE - ProblemPackage.CONSTANT_ASSERTION_ARGUMENT__CONSTANT, null, msgs); | ||
102 | msgs = basicSetConstant(newConstant, msgs); | ||
103 | if (msgs != null) | ||
104 | msgs.dispatch(); | ||
105 | } else if (eNotificationRequired()) | ||
106 | eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.CONSTANT_ASSERTION_ARGUMENT__CONSTANT, | ||
107 | newConstant, newConstant)); | ||
108 | } | ||
109 | |||
110 | /** | ||
111 | * <!-- begin-user-doc --> | ||
112 | * <!-- end-user-doc --> | ||
113 | * @generated | ||
114 | */ | ||
115 | @Override | ||
116 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
117 | switch (featureID) { | ||
118 | case ProblemPackage.CONSTANT_ASSERTION_ARGUMENT__CONSTANT: | ||
119 | return basicSetConstant(null, msgs); | ||
120 | } | ||
121 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
122 | } | ||
123 | |||
124 | /** | ||
125 | * <!-- begin-user-doc --> | ||
126 | * <!-- end-user-doc --> | ||
127 | * @generated | ||
128 | */ | ||
129 | @Override | ||
130 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
131 | switch (featureID) { | ||
132 | case ProblemPackage.CONSTANT_ASSERTION_ARGUMENT__CONSTANT: | ||
133 | return getConstant(); | ||
134 | } | ||
135 | return super.eGet(featureID, resolve, coreType); | ||
136 | } | ||
137 | |||
138 | /** | ||
139 | * <!-- begin-user-doc --> | ||
140 | * <!-- end-user-doc --> | ||
141 | * @generated | ||
142 | */ | ||
143 | @Override | ||
144 | public void eSet(int featureID, Object newValue) { | ||
145 | switch (featureID) { | ||
146 | case ProblemPackage.CONSTANT_ASSERTION_ARGUMENT__CONSTANT: | ||
147 | setConstant((Constant) newValue); | ||
148 | return; | ||
149 | } | ||
150 | super.eSet(featureID, newValue); | ||
151 | } | ||
152 | |||
153 | /** | ||
154 | * <!-- begin-user-doc --> | ||
155 | * <!-- end-user-doc --> | ||
156 | * @generated | ||
157 | */ | ||
158 | @Override | ||
159 | public void eUnset(int featureID) { | ||
160 | switch (featureID) { | ||
161 | case ProblemPackage.CONSTANT_ASSERTION_ARGUMENT__CONSTANT: | ||
162 | setConstant((Constant) null); | ||
163 | return; | ||
164 | } | ||
165 | super.eUnset(featureID); | ||
166 | } | ||
167 | |||
168 | /** | ||
169 | * <!-- begin-user-doc --> | ||
170 | * <!-- end-user-doc --> | ||
171 | * @generated | ||
172 | */ | ||
173 | @Override | ||
174 | public boolean eIsSet(int featureID) { | ||
175 | switch (featureID) { | ||
176 | case ProblemPackage.CONSTANT_ASSERTION_ARGUMENT__CONSTANT: | ||
177 | return constant != null; | ||
178 | } | ||
179 | return super.eIsSet(featureID); | ||
180 | } | ||
181 | |||
182 | } //ConstantAssertionArgumentImpl | ||
diff --git a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ConstantImpl.java b/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ConstantImpl.java deleted file mode 100644 index 14be4fb4..00000000 --- a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ConstantImpl.java +++ /dev/null | |||
@@ -1,39 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EClass; | ||
6 | |||
7 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
8 | |||
9 | import org.eclipse.viatra.solver.language.model.problem.Constant; | ||
10 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
11 | |||
12 | /** | ||
13 | * <!-- begin-user-doc --> | ||
14 | * An implementation of the model object '<em><b>Constant</b></em>'. | ||
15 | * <!-- end-user-doc --> | ||
16 | * | ||
17 | * @generated | ||
18 | */ | ||
19 | public abstract class ConstantImpl extends MinimalEObjectImpl.Container implements Constant { | ||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * <!-- end-user-doc --> | ||
23 | * @generated | ||
24 | */ | ||
25 | protected ConstantImpl() { | ||
26 | super(); | ||
27 | } | ||
28 | |||
29 | /** | ||
30 | * <!-- begin-user-doc --> | ||
31 | * <!-- end-user-doc --> | ||
32 | * @generated | ||
33 | */ | ||
34 | @Override | ||
35 | protected EClass eStaticClass() { | ||
36 | return ProblemPackage.Literals.CONSTANT; | ||
37 | } | ||
38 | |||
39 | } //ConstantImpl | ||
diff --git a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/EnumDeclarationImpl.java b/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/EnumDeclarationImpl.java deleted file mode 100644 index aac00423..00000000 --- a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/EnumDeclarationImpl.java +++ /dev/null | |||
@@ -1,150 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import java.util.Collection; | ||
6 | |||
7 | import org.eclipse.emf.common.notify.NotificationChain; | ||
8 | |||
9 | import org.eclipse.emf.common.util.EList; | ||
10 | |||
11 | import org.eclipse.emf.ecore.EClass; | ||
12 | import org.eclipse.emf.ecore.InternalEObject; | ||
13 | |||
14 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
15 | import org.eclipse.emf.ecore.util.InternalEList; | ||
16 | |||
17 | import org.eclipse.viatra.solver.language.model.problem.EnumDeclaration; | ||
18 | import org.eclipse.viatra.solver.language.model.problem.Node; | ||
19 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
20 | |||
21 | /** | ||
22 | * <!-- begin-user-doc --> | ||
23 | * An implementation of the model object '<em><b>Enum Declaration</b></em>'. | ||
24 | * <!-- end-user-doc --> | ||
25 | * <p> | ||
26 | * The following features are implemented: | ||
27 | * </p> | ||
28 | * <ul> | ||
29 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.EnumDeclarationImpl#getLiterals <em>Literals</em>}</li> | ||
30 | * </ul> | ||
31 | * | ||
32 | * @generated | ||
33 | */ | ||
34 | public class EnumDeclarationImpl extends RelationImpl implements EnumDeclaration { | ||
35 | /** | ||
36 | * The cached value of the '{@link #getLiterals() <em>Literals</em>}' containment reference list. | ||
37 | * <!-- begin-user-doc --> | ||
38 | * <!-- end-user-doc --> | ||
39 | * @see #getLiterals() | ||
40 | * @generated | ||
41 | * @ordered | ||
42 | */ | ||
43 | protected EList<Node> literals; | ||
44 | |||
45 | /** | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @generated | ||
49 | */ | ||
50 | protected EnumDeclarationImpl() { | ||
51 | super(); | ||
52 | } | ||
53 | |||
54 | /** | ||
55 | * <!-- begin-user-doc --> | ||
56 | * <!-- end-user-doc --> | ||
57 | * @generated | ||
58 | */ | ||
59 | @Override | ||
60 | protected EClass eStaticClass() { | ||
61 | return ProblemPackage.Literals.ENUM_DECLARATION; | ||
62 | } | ||
63 | |||
64 | /** | ||
65 | * <!-- begin-user-doc --> | ||
66 | * <!-- end-user-doc --> | ||
67 | * @generated | ||
68 | */ | ||
69 | public EList<Node> getLiterals() { | ||
70 | if (literals == null) { | ||
71 | literals = new EObjectContainmentEList<Node>(Node.class, this, ProblemPackage.ENUM_DECLARATION__LITERALS); | ||
72 | } | ||
73 | return literals; | ||
74 | } | ||
75 | |||
76 | /** | ||
77 | * <!-- begin-user-doc --> | ||
78 | * <!-- end-user-doc --> | ||
79 | * @generated | ||
80 | */ | ||
81 | @Override | ||
82 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
83 | switch (featureID) { | ||
84 | case ProblemPackage.ENUM_DECLARATION__LITERALS: | ||
85 | return ((InternalEList<?>) getLiterals()).basicRemove(otherEnd, msgs); | ||
86 | } | ||
87 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
88 | } | ||
89 | |||
90 | /** | ||
91 | * <!-- begin-user-doc --> | ||
92 | * <!-- end-user-doc --> | ||
93 | * @generated | ||
94 | */ | ||
95 | @Override | ||
96 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
97 | switch (featureID) { | ||
98 | case ProblemPackage.ENUM_DECLARATION__LITERALS: | ||
99 | return getLiterals(); | ||
100 | } | ||
101 | return super.eGet(featureID, resolve, coreType); | ||
102 | } | ||
103 | |||
104 | /** | ||
105 | * <!-- begin-user-doc --> | ||
106 | * <!-- end-user-doc --> | ||
107 | * @generated | ||
108 | */ | ||
109 | @SuppressWarnings("unchecked") | ||
110 | @Override | ||
111 | public void eSet(int featureID, Object newValue) { | ||
112 | switch (featureID) { | ||
113 | case ProblemPackage.ENUM_DECLARATION__LITERALS: | ||
114 | getLiterals().clear(); | ||
115 | getLiterals().addAll((Collection<? extends Node>) newValue); | ||
116 | return; | ||
117 | } | ||
118 | super.eSet(featureID, newValue); | ||
119 | } | ||
120 | |||
121 | /** | ||
122 | * <!-- begin-user-doc --> | ||
123 | * <!-- end-user-doc --> | ||
124 | * @generated | ||
125 | */ | ||
126 | @Override | ||
127 | public void eUnset(int featureID) { | ||
128 | switch (featureID) { | ||
129 | case ProblemPackage.ENUM_DECLARATION__LITERALS: | ||
130 | getLiterals().clear(); | ||
131 | return; | ||
132 | } | ||
133 | super.eUnset(featureID); | ||
134 | } | ||
135 | |||
136 | /** | ||
137 | * <!-- begin-user-doc --> | ||
138 | * <!-- end-user-doc --> | ||
139 | * @generated | ||
140 | */ | ||
141 | @Override | ||
142 | public boolean eIsSet(int featureID) { | ||
143 | switch (featureID) { | ||
144 | case ProblemPackage.ENUM_DECLARATION__LITERALS: | ||
145 | return literals != null && !literals.isEmpty(); | ||
146 | } | ||
147 | return super.eIsSet(featureID); | ||
148 | } | ||
149 | |||
150 | } //EnumDeclarationImpl | ||
diff --git a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ExactMultiplicityImpl.java b/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ExactMultiplicityImpl.java deleted file mode 100644 index b3896ac2..00000000 --- a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ExactMultiplicityImpl.java +++ /dev/null | |||
@@ -1,164 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import org.eclipse.emf.common.notify.Notification; | ||
6 | |||
7 | import org.eclipse.emf.ecore.EClass; | ||
8 | |||
9 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
10 | |||
11 | import org.eclipse.viatra.solver.language.model.problem.ExactMultiplicity; | ||
12 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
13 | |||
14 | /** | ||
15 | * <!-- begin-user-doc --> | ||
16 | * An implementation of the model object '<em><b>Exact Multiplicity</b></em>'. | ||
17 | * <!-- end-user-doc --> | ||
18 | * <p> | ||
19 | * The following features are implemented: | ||
20 | * </p> | ||
21 | * <ul> | ||
22 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.ExactMultiplicityImpl#getExactValue <em>Exact Value</em>}</li> | ||
23 | * </ul> | ||
24 | * | ||
25 | * @generated | ||
26 | */ | ||
27 | public class ExactMultiplicityImpl extends MultiplicityImpl implements ExactMultiplicity { | ||
28 | /** | ||
29 | * The default value of the '{@link #getExactValue() <em>Exact Value</em>}' attribute. | ||
30 | * <!-- begin-user-doc --> | ||
31 | * <!-- end-user-doc --> | ||
32 | * @see #getExactValue() | ||
33 | * @generated | ||
34 | * @ordered | ||
35 | */ | ||
36 | protected static final int EXACT_VALUE_EDEFAULT = 1; | ||
37 | |||
38 | /** | ||
39 | * The cached value of the '{@link #getExactValue() <em>Exact Value</em>}' attribute. | ||
40 | * <!-- begin-user-doc --> | ||
41 | * <!-- end-user-doc --> | ||
42 | * @see #getExactValue() | ||
43 | * @generated | ||
44 | * @ordered | ||
45 | */ | ||
46 | protected int exactValue = EXACT_VALUE_EDEFAULT; | ||
47 | |||
48 | /** | ||
49 | * <!-- begin-user-doc --> | ||
50 | * <!-- end-user-doc --> | ||
51 | * @generated | ||
52 | */ | ||
53 | protected ExactMultiplicityImpl() { | ||
54 | super(); | ||
55 | } | ||
56 | |||
57 | /** | ||
58 | * <!-- begin-user-doc --> | ||
59 | * <!-- end-user-doc --> | ||
60 | * @generated | ||
61 | */ | ||
62 | @Override | ||
63 | protected EClass eStaticClass() { | ||
64 | return ProblemPackage.Literals.EXACT_MULTIPLICITY; | ||
65 | } | ||
66 | |||
67 | /** | ||
68 | * <!-- begin-user-doc --> | ||
69 | * <!-- end-user-doc --> | ||
70 | * @generated | ||
71 | */ | ||
72 | public int getExactValue() { | ||
73 | return exactValue; | ||
74 | } | ||
75 | |||
76 | /** | ||
77 | * <!-- begin-user-doc --> | ||
78 | * <!-- end-user-doc --> | ||
79 | * @generated | ||
80 | */ | ||
81 | public void setExactValue(int newExactValue) { | ||
82 | int oldExactValue = exactValue; | ||
83 | exactValue = newExactValue; | ||
84 | if (eNotificationRequired()) | ||
85 | eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.EXACT_MULTIPLICITY__EXACT_VALUE, | ||
86 | oldExactValue, exactValue)); | ||
87 | } | ||
88 | |||
89 | /** | ||
90 | * <!-- begin-user-doc --> | ||
91 | * <!-- end-user-doc --> | ||
92 | * @generated | ||
93 | */ | ||
94 | @Override | ||
95 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
96 | switch (featureID) { | ||
97 | case ProblemPackage.EXACT_MULTIPLICITY__EXACT_VALUE: | ||
98 | return getExactValue(); | ||
99 | } | ||
100 | return super.eGet(featureID, resolve, coreType); | ||
101 | } | ||
102 | |||
103 | /** | ||
104 | * <!-- begin-user-doc --> | ||
105 | * <!-- end-user-doc --> | ||
106 | * @generated | ||
107 | */ | ||
108 | @Override | ||
109 | public void eSet(int featureID, Object newValue) { | ||
110 | switch (featureID) { | ||
111 | case ProblemPackage.EXACT_MULTIPLICITY__EXACT_VALUE: | ||
112 | setExactValue((Integer) newValue); | ||
113 | return; | ||
114 | } | ||
115 | super.eSet(featureID, newValue); | ||
116 | } | ||
117 | |||
118 | /** | ||
119 | * <!-- begin-user-doc --> | ||
120 | * <!-- end-user-doc --> | ||
121 | * @generated | ||
122 | */ | ||
123 | @Override | ||
124 | public void eUnset(int featureID) { | ||
125 | switch (featureID) { | ||
126 | case ProblemPackage.EXACT_MULTIPLICITY__EXACT_VALUE: | ||
127 | setExactValue(EXACT_VALUE_EDEFAULT); | ||
128 | return; | ||
129 | } | ||
130 | super.eUnset(featureID); | ||
131 | } | ||
132 | |||
133 | /** | ||
134 | * <!-- begin-user-doc --> | ||
135 | * <!-- end-user-doc --> | ||
136 | * @generated | ||
137 | */ | ||
138 | @Override | ||
139 | public boolean eIsSet(int featureID) { | ||
140 | switch (featureID) { | ||
141 | case ProblemPackage.EXACT_MULTIPLICITY__EXACT_VALUE: | ||
142 | return exactValue != EXACT_VALUE_EDEFAULT; | ||
143 | } | ||
144 | return super.eIsSet(featureID); | ||
145 | } | ||
146 | |||
147 | /** | ||
148 | * <!-- begin-user-doc --> | ||
149 | * <!-- end-user-doc --> | ||
150 | * @generated | ||
151 | */ | ||
152 | @Override | ||
153 | public String toString() { | ||
154 | if (eIsProxy()) | ||
155 | return super.toString(); | ||
156 | |||
157 | StringBuilder result = new StringBuilder(super.toString()); | ||
158 | result.append(" (exactValue: "); | ||
159 | result.append(exactValue); | ||
160 | result.append(')'); | ||
161 | return result.toString(); | ||
162 | } | ||
163 | |||
164 | } //ExactMultiplicityImpl | ||
diff --git a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ImplicitVariableImpl.java b/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ImplicitVariableImpl.java deleted file mode 100644 index 03a31a16..00000000 --- a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ImplicitVariableImpl.java +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EClass; | ||
6 | |||
7 | import org.eclipse.viatra.solver.language.model.problem.ImplicitVariable; | ||
8 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
9 | |||
10 | /** | ||
11 | * <!-- begin-user-doc --> | ||
12 | * An implementation of the model object '<em><b>Implicit Variable</b></em>'. | ||
13 | * <!-- end-user-doc --> | ||
14 | * | ||
15 | * @generated | ||
16 | */ | ||
17 | public class ImplicitVariableImpl extends VariableImpl implements ImplicitVariable { | ||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * <!-- end-user-doc --> | ||
21 | * @generated | ||
22 | */ | ||
23 | protected ImplicitVariableImpl() { | ||
24 | super(); | ||
25 | } | ||
26 | |||
27 | /** | ||
28 | * <!-- begin-user-doc --> | ||
29 | * <!-- end-user-doc --> | ||
30 | * @generated | ||
31 | */ | ||
32 | @Override | ||
33 | protected EClass eStaticClass() { | ||
34 | return ProblemPackage.Literals.IMPLICIT_VARIABLE; | ||
35 | } | ||
36 | |||
37 | } //ImplicitVariableImpl | ||
diff --git a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/IntConstantImpl.java b/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/IntConstantImpl.java deleted file mode 100644 index 1a0da417..00000000 --- a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/IntConstantImpl.java +++ /dev/null | |||
@@ -1,164 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import org.eclipse.emf.common.notify.Notification; | ||
6 | |||
7 | import org.eclipse.emf.ecore.EClass; | ||
8 | |||
9 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
10 | |||
11 | import org.eclipse.viatra.solver.language.model.problem.IntConstant; | ||
12 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
13 | |||
14 | /** | ||
15 | * <!-- begin-user-doc --> | ||
16 | * An implementation of the model object '<em><b>Int Constant</b></em>'. | ||
17 | * <!-- end-user-doc --> | ||
18 | * <p> | ||
19 | * The following features are implemented: | ||
20 | * </p> | ||
21 | * <ul> | ||
22 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.IntConstantImpl#getIntValue <em>Int Value</em>}</li> | ||
23 | * </ul> | ||
24 | * | ||
25 | * @generated | ||
26 | */ | ||
27 | public class IntConstantImpl extends ConstantImpl implements IntConstant { | ||
28 | /** | ||
29 | * The default value of the '{@link #getIntValue() <em>Int Value</em>}' attribute. | ||
30 | * <!-- begin-user-doc --> | ||
31 | * <!-- end-user-doc --> | ||
32 | * @see #getIntValue() | ||
33 | * @generated | ||
34 | * @ordered | ||
35 | */ | ||
36 | protected static final int INT_VALUE_EDEFAULT = 0; | ||
37 | |||
38 | /** | ||
39 | * The cached value of the '{@link #getIntValue() <em>Int Value</em>}' attribute. | ||
40 | * <!-- begin-user-doc --> | ||
41 | * <!-- end-user-doc --> | ||
42 | * @see #getIntValue() | ||
43 | * @generated | ||
44 | * @ordered | ||
45 | */ | ||
46 | protected int intValue = INT_VALUE_EDEFAULT; | ||
47 | |||
48 | /** | ||
49 | * <!-- begin-user-doc --> | ||
50 | * <!-- end-user-doc --> | ||
51 | * @generated | ||
52 | */ | ||
53 | protected IntConstantImpl() { | ||
54 | super(); | ||
55 | } | ||
56 | |||
57 | /** | ||
58 | * <!-- begin-user-doc --> | ||
59 | * <!-- end-user-doc --> | ||
60 | * @generated | ||
61 | */ | ||
62 | @Override | ||
63 | protected EClass eStaticClass() { | ||
64 | return ProblemPackage.Literals.INT_CONSTANT; | ||
65 | } | ||
66 | |||
67 | /** | ||
68 | * <!-- begin-user-doc --> | ||
69 | * <!-- end-user-doc --> | ||
70 | * @generated | ||
71 | */ | ||
72 | public int getIntValue() { | ||
73 | return intValue; | ||
74 | } | ||
75 | |||
76 | /** | ||
77 | * <!-- begin-user-doc --> | ||
78 | * <!-- end-user-doc --> | ||
79 | * @generated | ||
80 | */ | ||
81 | public void setIntValue(int newIntValue) { | ||
82 | int oldIntValue = intValue; | ||
83 | intValue = newIntValue; | ||
84 | if (eNotificationRequired()) | ||
85 | eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.INT_CONSTANT__INT_VALUE, oldIntValue, | ||
86 | intValue)); | ||
87 | } | ||
88 | |||
89 | /** | ||
90 | * <!-- begin-user-doc --> | ||
91 | * <!-- end-user-doc --> | ||
92 | * @generated | ||
93 | */ | ||
94 | @Override | ||
95 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
96 | switch (featureID) { | ||
97 | case ProblemPackage.INT_CONSTANT__INT_VALUE: | ||
98 | return getIntValue(); | ||
99 | } | ||
100 | return super.eGet(featureID, resolve, coreType); | ||
101 | } | ||
102 | |||
103 | /** | ||
104 | * <!-- begin-user-doc --> | ||
105 | * <!-- end-user-doc --> | ||
106 | * @generated | ||
107 | */ | ||
108 | @Override | ||
109 | public void eSet(int featureID, Object newValue) { | ||
110 | switch (featureID) { | ||
111 | case ProblemPackage.INT_CONSTANT__INT_VALUE: | ||
112 | setIntValue((Integer) newValue); | ||
113 | return; | ||
114 | } | ||
115 | super.eSet(featureID, newValue); | ||
116 | } | ||
117 | |||
118 | /** | ||
119 | * <!-- begin-user-doc --> | ||
120 | * <!-- end-user-doc --> | ||
121 | * @generated | ||
122 | */ | ||
123 | @Override | ||
124 | public void eUnset(int featureID) { | ||
125 | switch (featureID) { | ||
126 | case ProblemPackage.INT_CONSTANT__INT_VALUE: | ||
127 | setIntValue(INT_VALUE_EDEFAULT); | ||
128 | return; | ||
129 | } | ||
130 | super.eUnset(featureID); | ||
131 | } | ||
132 | |||
133 | /** | ||
134 | * <!-- begin-user-doc --> | ||
135 | * <!-- end-user-doc --> | ||
136 | * @generated | ||
137 | */ | ||
138 | @Override | ||
139 | public boolean eIsSet(int featureID) { | ||
140 | switch (featureID) { | ||
141 | case ProblemPackage.INT_CONSTANT__INT_VALUE: | ||
142 | return intValue != INT_VALUE_EDEFAULT; | ||
143 | } | ||
144 | return super.eIsSet(featureID); | ||
145 | } | ||
146 | |||
147 | /** | ||
148 | * <!-- begin-user-doc --> | ||
149 | * <!-- end-user-doc --> | ||
150 | * @generated | ||
151 | */ | ||
152 | @Override | ||
153 | public String toString() { | ||
154 | if (eIsProxy()) | ||
155 | return super.toString(); | ||
156 | |||
157 | StringBuilder result = new StringBuilder(super.toString()); | ||
158 | result.append(" (intValue: "); | ||
159 | result.append(intValue); | ||
160 | result.append(')'); | ||
161 | return result.toString(); | ||
162 | } | ||
163 | |||
164 | } //IntConstantImpl | ||
diff --git a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/LiteralImpl.java b/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/LiteralImpl.java deleted file mode 100644 index c48bdb0b..00000000 --- a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/LiteralImpl.java +++ /dev/null | |||
@@ -1,39 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EClass; | ||
6 | |||
7 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
8 | |||
9 | import org.eclipse.viatra.solver.language.model.problem.Literal; | ||
10 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
11 | |||
12 | /** | ||
13 | * <!-- begin-user-doc --> | ||
14 | * An implementation of the model object '<em><b>Literal</b></em>'. | ||
15 | * <!-- end-user-doc --> | ||
16 | * | ||
17 | * @generated | ||
18 | */ | ||
19 | public abstract class LiteralImpl extends MinimalEObjectImpl.Container implements Literal { | ||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * <!-- end-user-doc --> | ||
23 | * @generated | ||
24 | */ | ||
25 | protected LiteralImpl() { | ||
26 | super(); | ||
27 | } | ||
28 | |||
29 | /** | ||
30 | * <!-- begin-user-doc --> | ||
31 | * <!-- end-user-doc --> | ||
32 | * @generated | ||
33 | */ | ||
34 | @Override | ||
35 | protected EClass eStaticClass() { | ||
36 | return ProblemPackage.Literals.LITERAL; | ||
37 | } | ||
38 | |||
39 | } //LiteralImpl | ||
diff --git a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/MultiplicityImpl.java b/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/MultiplicityImpl.java deleted file mode 100644 index 8d769eb0..00000000 --- a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/MultiplicityImpl.java +++ /dev/null | |||
@@ -1,39 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EClass; | ||
6 | |||
7 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
8 | |||
9 | import org.eclipse.viatra.solver.language.model.problem.Multiplicity; | ||
10 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
11 | |||
12 | /** | ||
13 | * <!-- begin-user-doc --> | ||
14 | * An implementation of the model object '<em><b>Multiplicity</b></em>'. | ||
15 | * <!-- end-user-doc --> | ||
16 | * | ||
17 | * @generated | ||
18 | */ | ||
19 | public abstract class MultiplicityImpl extends MinimalEObjectImpl.Container implements Multiplicity { | ||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * <!-- end-user-doc --> | ||
23 | * @generated | ||
24 | */ | ||
25 | protected MultiplicityImpl() { | ||
26 | super(); | ||
27 | } | ||
28 | |||
29 | /** | ||
30 | * <!-- begin-user-doc --> | ||
31 | * <!-- end-user-doc --> | ||
32 | * @generated | ||
33 | */ | ||
34 | @Override | ||
35 | protected EClass eStaticClass() { | ||
36 | return ProblemPackage.Literals.MULTIPLICITY; | ||
37 | } | ||
38 | |||
39 | } //MultiplicityImpl | ||
diff --git a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/NamedElementImpl.java b/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/NamedElementImpl.java deleted file mode 100644 index b414013b..00000000 --- a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/NamedElementImpl.java +++ /dev/null | |||
@@ -1,164 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import org.eclipse.emf.common.notify.Notification; | ||
6 | |||
7 | import org.eclipse.emf.ecore.EClass; | ||
8 | |||
9 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
10 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
11 | |||
12 | import org.eclipse.viatra.solver.language.model.problem.NamedElement; | ||
13 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
14 | |||
15 | /** | ||
16 | * <!-- begin-user-doc --> | ||
17 | * An implementation of the model object '<em><b>Named Element</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.model.problem.impl.NamedElementImpl#getName <em>Name</em>}</li> | ||
24 | * </ul> | ||
25 | * | ||
26 | * @generated | ||
27 | */ | ||
28 | public abstract class NamedElementImpl extends MinimalEObjectImpl.Container implements NamedElement { | ||
29 | /** | ||
30 | * The default value of the '{@link #getName() <em>Name</em>}' attribute. | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @see #getName() | ||
34 | * @generated | ||
35 | * @ordered | ||
36 | */ | ||
37 | protected static final String NAME_EDEFAULT = null; | ||
38 | |||
39 | /** | ||
40 | * The cached value of the '{@link #getName() <em>Name</em>}' attribute. | ||
41 | * <!-- begin-user-doc --> | ||
42 | * <!-- end-user-doc --> | ||
43 | * @see #getName() | ||
44 | * @generated | ||
45 | * @ordered | ||
46 | */ | ||
47 | protected String name = NAME_EDEFAULT; | ||
48 | |||
49 | /** | ||
50 | * <!-- begin-user-doc --> | ||
51 | * <!-- end-user-doc --> | ||
52 | * @generated | ||
53 | */ | ||
54 | protected NamedElementImpl() { | ||
55 | super(); | ||
56 | } | ||
57 | |||
58 | /** | ||
59 | * <!-- begin-user-doc --> | ||
60 | * <!-- end-user-doc --> | ||
61 | * @generated | ||
62 | */ | ||
63 | @Override | ||
64 | protected EClass eStaticClass() { | ||
65 | return ProblemPackage.Literals.NAMED_ELEMENT; | ||
66 | } | ||
67 | |||
68 | /** | ||
69 | * <!-- begin-user-doc --> | ||
70 | * <!-- end-user-doc --> | ||
71 | * @generated | ||
72 | */ | ||
73 | public String getName() { | ||
74 | return name; | ||
75 | } | ||
76 | |||
77 | /** | ||
78 | * <!-- begin-user-doc --> | ||
79 | * <!-- end-user-doc --> | ||
80 | * @generated | ||
81 | */ | ||
82 | public void setName(String newName) { | ||
83 | String oldName = name; | ||
84 | name = newName; | ||
85 | if (eNotificationRequired()) | ||
86 | eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.NAMED_ELEMENT__NAME, oldName, name)); | ||
87 | } | ||
88 | |||
89 | /** | ||
90 | * <!-- begin-user-doc --> | ||
91 | * <!-- end-user-doc --> | ||
92 | * @generated | ||
93 | */ | ||
94 | @Override | ||
95 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
96 | switch (featureID) { | ||
97 | case ProblemPackage.NAMED_ELEMENT__NAME: | ||
98 | return getName(); | ||
99 | } | ||
100 | return super.eGet(featureID, resolve, coreType); | ||
101 | } | ||
102 | |||
103 | /** | ||
104 | * <!-- begin-user-doc --> | ||
105 | * <!-- end-user-doc --> | ||
106 | * @generated | ||
107 | */ | ||
108 | @Override | ||
109 | public void eSet(int featureID, Object newValue) { | ||
110 | switch (featureID) { | ||
111 | case ProblemPackage.NAMED_ELEMENT__NAME: | ||
112 | setName((String) newValue); | ||
113 | return; | ||
114 | } | ||
115 | super.eSet(featureID, newValue); | ||
116 | } | ||
117 | |||
118 | /** | ||
119 | * <!-- begin-user-doc --> | ||
120 | * <!-- end-user-doc --> | ||
121 | * @generated | ||
122 | */ | ||
123 | @Override | ||
124 | public void eUnset(int featureID) { | ||
125 | switch (featureID) { | ||
126 | case ProblemPackage.NAMED_ELEMENT__NAME: | ||
127 | setName(NAME_EDEFAULT); | ||
128 | return; | ||
129 | } | ||
130 | super.eUnset(featureID); | ||
131 | } | ||
132 | |||
133 | /** | ||
134 | * <!-- begin-user-doc --> | ||
135 | * <!-- end-user-doc --> | ||
136 | * @generated | ||
137 | */ | ||
138 | @Override | ||
139 | public boolean eIsSet(int featureID) { | ||
140 | switch (featureID) { | ||
141 | case ProblemPackage.NAMED_ELEMENT__NAME: | ||
142 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); | ||
143 | } | ||
144 | return super.eIsSet(featureID); | ||
145 | } | ||
146 | |||
147 | /** | ||
148 | * <!-- begin-user-doc --> | ||
149 | * <!-- end-user-doc --> | ||
150 | * @generated | ||
151 | */ | ||
152 | @Override | ||
153 | public String toString() { | ||
154 | if (eIsProxy()) | ||
155 | return super.toString(); | ||
156 | |||
157 | StringBuilder result = new StringBuilder(super.toString()); | ||
158 | result.append(" (name: "); | ||
159 | result.append(name); | ||
160 | result.append(')'); | ||
161 | return result.toString(); | ||
162 | } | ||
163 | |||
164 | } //NamedElementImpl | ||
diff --git a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/NegativeLiteralImpl.java b/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/NegativeLiteralImpl.java deleted file mode 100644 index 857a779d..00000000 --- a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/NegativeLiteralImpl.java +++ /dev/null | |||
@@ -1,229 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import java.util.Collection; | ||
6 | |||
7 | import org.eclipse.emf.common.notify.Notification; | ||
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.ENotificationImpl; | ||
16 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
17 | |||
18 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
19 | import org.eclipse.emf.ecore.util.InternalEList; | ||
20 | |||
21 | import org.eclipse.viatra.solver.language.model.problem.Atom; | ||
22 | import org.eclipse.viatra.solver.language.model.problem.ImplicitVariable; | ||
23 | import org.eclipse.viatra.solver.language.model.problem.NegativeLiteral; | ||
24 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
25 | |||
26 | /** | ||
27 | * <!-- begin-user-doc --> | ||
28 | * An implementation of the model object '<em><b>Negative Literal</b></em>'. | ||
29 | * <!-- end-user-doc --> | ||
30 | * <p> | ||
31 | * The following features are implemented: | ||
32 | * </p> | ||
33 | * <ul> | ||
34 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.NegativeLiteralImpl#getImplicitVariables <em>Implicit Variables</em>}</li> | ||
35 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.NegativeLiteralImpl#getAtom <em>Atom</em>}</li> | ||
36 | * </ul> | ||
37 | * | ||
38 | * @generated | ||
39 | */ | ||
40 | public class NegativeLiteralImpl extends MinimalEObjectImpl.Container implements NegativeLiteral { | ||
41 | /** | ||
42 | * The cached value of the '{@link #getImplicitVariables() <em>Implicit Variables</em>}' containment reference list. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @see #getImplicitVariables() | ||
46 | * @generated | ||
47 | * @ordered | ||
48 | */ | ||
49 | protected EList<ImplicitVariable> implicitVariables; | ||
50 | |||
51 | /** | ||
52 | * The cached value of the '{@link #getAtom() <em>Atom</em>}' containment reference. | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @see #getAtom() | ||
56 | * @generated | ||
57 | * @ordered | ||
58 | */ | ||
59 | protected Atom atom; | ||
60 | |||
61 | /** | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @generated | ||
65 | */ | ||
66 | protected NegativeLiteralImpl() { | ||
67 | super(); | ||
68 | } | ||
69 | |||
70 | /** | ||
71 | * <!-- begin-user-doc --> | ||
72 | * <!-- end-user-doc --> | ||
73 | * @generated | ||
74 | */ | ||
75 | @Override | ||
76 | protected EClass eStaticClass() { | ||
77 | return ProblemPackage.Literals.NEGATIVE_LITERAL; | ||
78 | } | ||
79 | |||
80 | /** | ||
81 | * <!-- begin-user-doc --> | ||
82 | * <!-- end-user-doc --> | ||
83 | * @generated | ||
84 | */ | ||
85 | public EList<ImplicitVariable> getImplicitVariables() { | ||
86 | if (implicitVariables == null) { | ||
87 | implicitVariables = new EObjectContainmentEList<ImplicitVariable>(ImplicitVariable.class, this, | ||
88 | ProblemPackage.NEGATIVE_LITERAL__IMPLICIT_VARIABLES); | ||
89 | } | ||
90 | return implicitVariables; | ||
91 | } | ||
92 | |||
93 | /** | ||
94 | * <!-- begin-user-doc --> | ||
95 | * <!-- end-user-doc --> | ||
96 | * @generated | ||
97 | */ | ||
98 | public Atom getAtom() { | ||
99 | return atom; | ||
100 | } | ||
101 | |||
102 | /** | ||
103 | * <!-- begin-user-doc --> | ||
104 | * <!-- end-user-doc --> | ||
105 | * @generated | ||
106 | */ | ||
107 | public NotificationChain basicSetAtom(Atom newAtom, NotificationChain msgs) { | ||
108 | Atom oldAtom = atom; | ||
109 | atom = newAtom; | ||
110 | if (eNotificationRequired()) { | ||
111 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, | ||
112 | ProblemPackage.NEGATIVE_LITERAL__ATOM, oldAtom, newAtom); | ||
113 | if (msgs == null) | ||
114 | msgs = notification; | ||
115 | else | ||
116 | msgs.add(notification); | ||
117 | } | ||
118 | return msgs; | ||
119 | } | ||
120 | |||
121 | /** | ||
122 | * <!-- begin-user-doc --> | ||
123 | * <!-- end-user-doc --> | ||
124 | * @generated | ||
125 | */ | ||
126 | public void setAtom(Atom newAtom) { | ||
127 | if (newAtom != atom) { | ||
128 | NotificationChain msgs = null; | ||
129 | if (atom != null) | ||
130 | msgs = ((InternalEObject) atom).eInverseRemove(this, | ||
131 | EOPPOSITE_FEATURE_BASE - ProblemPackage.NEGATIVE_LITERAL__ATOM, null, msgs); | ||
132 | if (newAtom != null) | ||
133 | msgs = ((InternalEObject) newAtom).eInverseAdd(this, | ||
134 | EOPPOSITE_FEATURE_BASE - ProblemPackage.NEGATIVE_LITERAL__ATOM, null, msgs); | ||
135 | msgs = basicSetAtom(newAtom, msgs); | ||
136 | if (msgs != null) | ||
137 | msgs.dispatch(); | ||
138 | } else if (eNotificationRequired()) | ||
139 | eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.NEGATIVE_LITERAL__ATOM, newAtom, | ||
140 | newAtom)); | ||
141 | } | ||
142 | |||
143 | /** | ||
144 | * <!-- begin-user-doc --> | ||
145 | * <!-- end-user-doc --> | ||
146 | * @generated | ||
147 | */ | ||
148 | @Override | ||
149 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
150 | switch (featureID) { | ||
151 | case ProblemPackage.NEGATIVE_LITERAL__IMPLICIT_VARIABLES: | ||
152 | return ((InternalEList<?>) getImplicitVariables()).basicRemove(otherEnd, msgs); | ||
153 | case ProblemPackage.NEGATIVE_LITERAL__ATOM: | ||
154 | return basicSetAtom(null, msgs); | ||
155 | } | ||
156 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
157 | } | ||
158 | |||
159 | /** | ||
160 | * <!-- begin-user-doc --> | ||
161 | * <!-- end-user-doc --> | ||
162 | * @generated | ||
163 | */ | ||
164 | @Override | ||
165 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
166 | switch (featureID) { | ||
167 | case ProblemPackage.NEGATIVE_LITERAL__IMPLICIT_VARIABLES: | ||
168 | return getImplicitVariables(); | ||
169 | case ProblemPackage.NEGATIVE_LITERAL__ATOM: | ||
170 | return getAtom(); | ||
171 | } | ||
172 | return super.eGet(featureID, resolve, coreType); | ||
173 | } | ||
174 | |||
175 | /** | ||
176 | * <!-- begin-user-doc --> | ||
177 | * <!-- end-user-doc --> | ||
178 | * @generated | ||
179 | */ | ||
180 | @SuppressWarnings("unchecked") | ||
181 | @Override | ||
182 | public void eSet(int featureID, Object newValue) { | ||
183 | switch (featureID) { | ||
184 | case ProblemPackage.NEGATIVE_LITERAL__IMPLICIT_VARIABLES: | ||
185 | getImplicitVariables().clear(); | ||
186 | getImplicitVariables().addAll((Collection<? extends ImplicitVariable>) newValue); | ||
187 | return; | ||
188 | case ProblemPackage.NEGATIVE_LITERAL__ATOM: | ||
189 | setAtom((Atom) newValue); | ||
190 | return; | ||
191 | } | ||
192 | super.eSet(featureID, newValue); | ||
193 | } | ||
194 | |||
195 | /** | ||
196 | * <!-- begin-user-doc --> | ||
197 | * <!-- end-user-doc --> | ||
198 | * @generated | ||
199 | */ | ||
200 | @Override | ||
201 | public void eUnset(int featureID) { | ||
202 | switch (featureID) { | ||
203 | case ProblemPackage.NEGATIVE_LITERAL__IMPLICIT_VARIABLES: | ||
204 | getImplicitVariables().clear(); | ||
205 | return; | ||
206 | case ProblemPackage.NEGATIVE_LITERAL__ATOM: | ||
207 | setAtom((Atom) null); | ||
208 | return; | ||
209 | } | ||
210 | super.eUnset(featureID); | ||
211 | } | ||
212 | |||
213 | /** | ||
214 | * <!-- begin-user-doc --> | ||
215 | * <!-- end-user-doc --> | ||
216 | * @generated | ||
217 | */ | ||
218 | @Override | ||
219 | public boolean eIsSet(int featureID) { | ||
220 | switch (featureID) { | ||
221 | case ProblemPackage.NEGATIVE_LITERAL__IMPLICIT_VARIABLES: | ||
222 | return implicitVariables != null && !implicitVariables.isEmpty(); | ||
223 | case ProblemPackage.NEGATIVE_LITERAL__ATOM: | ||
224 | return atom != null; | ||
225 | } | ||
226 | return super.eIsSet(featureID); | ||
227 | } | ||
228 | |||
229 | } //NegativeLiteralImpl | ||
diff --git a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/NodeAssertionArgumentImpl.java b/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/NodeAssertionArgumentImpl.java deleted file mode 100644 index 27a702fd..00000000 --- a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/NodeAssertionArgumentImpl.java +++ /dev/null | |||
@@ -1,159 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import org.eclipse.emf.common.notify.Notification; | ||
6 | |||
7 | import org.eclipse.emf.ecore.EClass; | ||
8 | import org.eclipse.emf.ecore.InternalEObject; | ||
9 | |||
10 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
11 | |||
12 | import org.eclipse.viatra.solver.language.model.problem.Node; | ||
13 | import org.eclipse.viatra.solver.language.model.problem.NodeAssertionArgument; | ||
14 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
15 | |||
16 | /** | ||
17 | * <!-- begin-user-doc --> | ||
18 | * An implementation of the model object '<em><b>Node Assertion Argument</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.model.problem.impl.NodeAssertionArgumentImpl#getNode <em>Node</em>}</li> | ||
25 | * </ul> | ||
26 | * | ||
27 | * @generated | ||
28 | */ | ||
29 | public class NodeAssertionArgumentImpl extends AssertionArgumentImpl implements NodeAssertionArgument { | ||
30 | /** | ||
31 | * The cached value of the '{@link #getNode() <em>Node</em>}' reference. | ||
32 | * <!-- begin-user-doc --> | ||
33 | * <!-- end-user-doc --> | ||
34 | * @see #getNode() | ||
35 | * @generated | ||
36 | * @ordered | ||
37 | */ | ||
38 | protected Node node; | ||
39 | |||
40 | /** | ||
41 | * <!-- begin-user-doc --> | ||
42 | * <!-- end-user-doc --> | ||
43 | * @generated | ||
44 | */ | ||
45 | protected NodeAssertionArgumentImpl() { | ||
46 | super(); | ||
47 | } | ||
48 | |||
49 | /** | ||
50 | * <!-- begin-user-doc --> | ||
51 | * <!-- end-user-doc --> | ||
52 | * @generated | ||
53 | */ | ||
54 | @Override | ||
55 | protected EClass eStaticClass() { | ||
56 | return ProblemPackage.Literals.NODE_ASSERTION_ARGUMENT; | ||
57 | } | ||
58 | |||
59 | /** | ||
60 | * <!-- begin-user-doc --> | ||
61 | * <!-- end-user-doc --> | ||
62 | * @generated | ||
63 | */ | ||
64 | public Node getNode() { | ||
65 | if (node != null && node.eIsProxy()) { | ||
66 | InternalEObject oldNode = (InternalEObject) node; | ||
67 | node = (Node) eResolveProxy(oldNode); | ||
68 | if (node != oldNode) { | ||
69 | if (eNotificationRequired()) | ||
70 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, | ||
71 | ProblemPackage.NODE_ASSERTION_ARGUMENT__NODE, oldNode, node)); | ||
72 | } | ||
73 | } | ||
74 | return node; | ||
75 | } | ||
76 | |||
77 | /** | ||
78 | * <!-- begin-user-doc --> | ||
79 | * <!-- end-user-doc --> | ||
80 | * @generated | ||
81 | */ | ||
82 | public Node basicGetNode() { | ||
83 | return node; | ||
84 | } | ||
85 | |||
86 | /** | ||
87 | * <!-- begin-user-doc --> | ||
88 | * <!-- end-user-doc --> | ||
89 | * @generated | ||
90 | */ | ||
91 | public void setNode(Node newNode) { | ||
92 | Node oldNode = node; | ||
93 | node = newNode; | ||
94 | if (eNotificationRequired()) | ||
95 | eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.NODE_ASSERTION_ARGUMENT__NODE, oldNode, | ||
96 | node)); | ||
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 | switch (featureID) { | ||
107 | case ProblemPackage.NODE_ASSERTION_ARGUMENT__NODE: | ||
108 | if (resolve) | ||
109 | return getNode(); | ||
110 | return basicGetNode(); | ||
111 | } | ||
112 | return super.eGet(featureID, resolve, coreType); | ||
113 | } | ||
114 | |||
115 | /** | ||
116 | * <!-- begin-user-doc --> | ||
117 | * <!-- end-user-doc --> | ||
118 | * @generated | ||
119 | */ | ||
120 | @Override | ||
121 | public void eSet(int featureID, Object newValue) { | ||
122 | switch (featureID) { | ||
123 | case ProblemPackage.NODE_ASSERTION_ARGUMENT__NODE: | ||
124 | setNode((Node) 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 | switch (featureID) { | ||
138 | case ProblemPackage.NODE_ASSERTION_ARGUMENT__NODE: | ||
139 | setNode((Node) null); | ||
140 | return; | ||
141 | } | ||
142 | super.eUnset(featureID); | ||
143 | } | ||
144 | |||
145 | /** | ||
146 | * <!-- begin-user-doc --> | ||
147 | * <!-- end-user-doc --> | ||
148 | * @generated | ||
149 | */ | ||
150 | @Override | ||
151 | public boolean eIsSet(int featureID) { | ||
152 | switch (featureID) { | ||
153 | case ProblemPackage.NODE_ASSERTION_ARGUMENT__NODE: | ||
154 | return node != null; | ||
155 | } | ||
156 | return super.eIsSet(featureID); | ||
157 | } | ||
158 | |||
159 | } //NodeAssertionArgumentImpl | ||
diff --git a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/NodeImpl.java b/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/NodeImpl.java deleted file mode 100644 index 0c08bb1b..00000000 --- a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/NodeImpl.java +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EClass; | ||
6 | |||
7 | import org.eclipse.viatra.solver.language.model.problem.Node; | ||
8 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
9 | |||
10 | /** | ||
11 | * <!-- begin-user-doc --> | ||
12 | * An implementation of the model object '<em><b>Node</b></em>'. | ||
13 | * <!-- end-user-doc --> | ||
14 | * | ||
15 | * @generated | ||
16 | */ | ||
17 | public class NodeImpl extends VariableOrNodeImpl implements Node { | ||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * <!-- end-user-doc --> | ||
21 | * @generated | ||
22 | */ | ||
23 | protected NodeImpl() { | ||
24 | super(); | ||
25 | } | ||
26 | |||
27 | /** | ||
28 | * <!-- begin-user-doc --> | ||
29 | * <!-- end-user-doc --> | ||
30 | * @generated | ||
31 | */ | ||
32 | @Override | ||
33 | protected EClass eStaticClass() { | ||
34 | return ProblemPackage.Literals.NODE; | ||
35 | } | ||
36 | |||
37 | } //NodeImpl | ||
diff --git a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/NodeValueAssertionImpl.java b/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/NodeValueAssertionImpl.java deleted file mode 100644 index 0078b35e..00000000 --- a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/NodeValueAssertionImpl.java +++ /dev/null | |||
@@ -1,247 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import org.eclipse.emf.common.notify.Notification; | ||
6 | import org.eclipse.emf.common.notify.NotificationChain; | ||
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 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
13 | |||
14 | import org.eclipse.viatra.solver.language.model.problem.Constant; | ||
15 | import org.eclipse.viatra.solver.language.model.problem.Node; | ||
16 | import org.eclipse.viatra.solver.language.model.problem.NodeValueAssertion; | ||
17 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
18 | |||
19 | /** | ||
20 | * <!-- begin-user-doc --> | ||
21 | * An implementation of the model object '<em><b>Node Value Assertion</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.model.problem.impl.NodeValueAssertionImpl#getNode <em>Node</em>}</li> | ||
28 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.NodeValueAssertionImpl#getValue <em>Value</em>}</li> | ||
29 | * </ul> | ||
30 | * | ||
31 | * @generated | ||
32 | */ | ||
33 | public class NodeValueAssertionImpl extends MinimalEObjectImpl.Container implements NodeValueAssertion { | ||
34 | /** | ||
35 | * The cached value of the '{@link #getNode() <em>Node</em>}' reference. | ||
36 | * <!-- begin-user-doc --> | ||
37 | * <!-- end-user-doc --> | ||
38 | * @see #getNode() | ||
39 | * @generated | ||
40 | * @ordered | ||
41 | */ | ||
42 | protected Node node; | ||
43 | |||
44 | /** | ||
45 | * The cached value of the '{@link #getValue() <em>Value</em>}' containment reference. | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @see #getValue() | ||
49 | * @generated | ||
50 | * @ordered | ||
51 | */ | ||
52 | protected Constant value; | ||
53 | |||
54 | /** | ||
55 | * <!-- begin-user-doc --> | ||
56 | * <!-- end-user-doc --> | ||
57 | * @generated | ||
58 | */ | ||
59 | protected NodeValueAssertionImpl() { | ||
60 | super(); | ||
61 | } | ||
62 | |||
63 | /** | ||
64 | * <!-- begin-user-doc --> | ||
65 | * <!-- end-user-doc --> | ||
66 | * @generated | ||
67 | */ | ||
68 | @Override | ||
69 | protected EClass eStaticClass() { | ||
70 | return ProblemPackage.Literals.NODE_VALUE_ASSERTION; | ||
71 | } | ||
72 | |||
73 | /** | ||
74 | * <!-- begin-user-doc --> | ||
75 | * <!-- end-user-doc --> | ||
76 | * @generated | ||
77 | */ | ||
78 | public Node getNode() { | ||
79 | if (node != null && node.eIsProxy()) { | ||
80 | InternalEObject oldNode = (InternalEObject) node; | ||
81 | node = (Node) eResolveProxy(oldNode); | ||
82 | if (node != oldNode) { | ||
83 | if (eNotificationRequired()) | ||
84 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, ProblemPackage.NODE_VALUE_ASSERTION__NODE, | ||
85 | oldNode, node)); | ||
86 | } | ||
87 | } | ||
88 | return node; | ||
89 | } | ||
90 | |||
91 | /** | ||
92 | * <!-- begin-user-doc --> | ||
93 | * <!-- end-user-doc --> | ||
94 | * @generated | ||
95 | */ | ||
96 | public Node basicGetNode() { | ||
97 | return node; | ||
98 | } | ||
99 | |||
100 | /** | ||
101 | * <!-- begin-user-doc --> | ||
102 | * <!-- end-user-doc --> | ||
103 | * @generated | ||
104 | */ | ||
105 | public void setNode(Node newNode) { | ||
106 | Node oldNode = node; | ||
107 | node = newNode; | ||
108 | if (eNotificationRequired()) | ||
109 | eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.NODE_VALUE_ASSERTION__NODE, oldNode, | ||
110 | node)); | ||
111 | } | ||
112 | |||
113 | /** | ||
114 | * <!-- begin-user-doc --> | ||
115 | * <!-- end-user-doc --> | ||
116 | * @generated | ||
117 | */ | ||
118 | public Constant getValue() { | ||
119 | return value; | ||
120 | } | ||
121 | |||
122 | /** | ||
123 | * <!-- begin-user-doc --> | ||
124 | * <!-- end-user-doc --> | ||
125 | * @generated | ||
126 | */ | ||
127 | public NotificationChain basicSetValue(Constant newValue, NotificationChain msgs) { | ||
128 | Constant oldValue = value; | ||
129 | value = newValue; | ||
130 | if (eNotificationRequired()) { | ||
131 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, | ||
132 | ProblemPackage.NODE_VALUE_ASSERTION__VALUE, oldValue, newValue); | ||
133 | if (msgs == null) | ||
134 | msgs = notification; | ||
135 | else | ||
136 | msgs.add(notification); | ||
137 | } | ||
138 | return msgs; | ||
139 | } | ||
140 | |||
141 | /** | ||
142 | * <!-- begin-user-doc --> | ||
143 | * <!-- end-user-doc --> | ||
144 | * @generated | ||
145 | */ | ||
146 | public void setValue(Constant newValue) { | ||
147 | if (newValue != value) { | ||
148 | NotificationChain msgs = null; | ||
149 | if (value != null) | ||
150 | msgs = ((InternalEObject) value).eInverseRemove(this, | ||
151 | EOPPOSITE_FEATURE_BASE - ProblemPackage.NODE_VALUE_ASSERTION__VALUE, null, msgs); | ||
152 | if (newValue != null) | ||
153 | msgs = ((InternalEObject) newValue).eInverseAdd(this, | ||
154 | EOPPOSITE_FEATURE_BASE - ProblemPackage.NODE_VALUE_ASSERTION__VALUE, null, msgs); | ||
155 | msgs = basicSetValue(newValue, msgs); | ||
156 | if (msgs != null) | ||
157 | msgs.dispatch(); | ||
158 | } else if (eNotificationRequired()) | ||
159 | eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.NODE_VALUE_ASSERTION__VALUE, newValue, | ||
160 | newValue)); | ||
161 | } | ||
162 | |||
163 | /** | ||
164 | * <!-- begin-user-doc --> | ||
165 | * <!-- end-user-doc --> | ||
166 | * @generated | ||
167 | */ | ||
168 | @Override | ||
169 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
170 | switch (featureID) { | ||
171 | case ProblemPackage.NODE_VALUE_ASSERTION__VALUE: | ||
172 | return basicSetValue(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 | switch (featureID) { | ||
185 | case ProblemPackage.NODE_VALUE_ASSERTION__NODE: | ||
186 | if (resolve) | ||
187 | return getNode(); | ||
188 | return basicGetNode(); | ||
189 | case ProblemPackage.NODE_VALUE_ASSERTION__VALUE: | ||
190 | return getValue(); | ||
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 | switch (featureID) { | ||
203 | case ProblemPackage.NODE_VALUE_ASSERTION__NODE: | ||
204 | setNode((Node) newValue); | ||
205 | return; | ||
206 | case ProblemPackage.NODE_VALUE_ASSERTION__VALUE: | ||
207 | setValue((Constant) newValue); | ||
208 | return; | ||
209 | } | ||
210 | super.eSet(featureID, newValue); | ||
211 | } | ||
212 | |||
213 | /** | ||
214 | * <!-- begin-user-doc --> | ||
215 | * <!-- end-user-doc --> | ||
216 | * @generated | ||
217 | */ | ||
218 | @Override | ||
219 | public void eUnset(int featureID) { | ||
220 | switch (featureID) { | ||
221 | case ProblemPackage.NODE_VALUE_ASSERTION__NODE: | ||
222 | setNode((Node) null); | ||
223 | return; | ||
224 | case ProblemPackage.NODE_VALUE_ASSERTION__VALUE: | ||
225 | setValue((Constant) null); | ||
226 | return; | ||
227 | } | ||
228 | super.eUnset(featureID); | ||
229 | } | ||
230 | |||
231 | /** | ||
232 | * <!-- begin-user-doc --> | ||
233 | * <!-- end-user-doc --> | ||
234 | * @generated | ||
235 | */ | ||
236 | @Override | ||
237 | public boolean eIsSet(int featureID) { | ||
238 | switch (featureID) { | ||
239 | case ProblemPackage.NODE_VALUE_ASSERTION__NODE: | ||
240 | return node != null; | ||
241 | case ProblemPackage.NODE_VALUE_ASSERTION__VALUE: | ||
242 | return value != null; | ||
243 | } | ||
244 | return super.eIsSet(featureID); | ||
245 | } | ||
246 | |||
247 | } //NodeValueAssertionImpl | ||
diff --git a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ParameterImpl.java b/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ParameterImpl.java deleted file mode 100644 index 06eea3f3..00000000 --- a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ParameterImpl.java +++ /dev/null | |||
@@ -1,158 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import org.eclipse.emf.common.notify.Notification; | ||
6 | |||
7 | import org.eclipse.emf.ecore.EClass; | ||
8 | import org.eclipse.emf.ecore.InternalEObject; | ||
9 | |||
10 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
11 | import org.eclipse.viatra.solver.language.model.problem.Parameter; | ||
12 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
13 | import org.eclipse.viatra.solver.language.model.problem.Relation; | ||
14 | |||
15 | /** | ||
16 | * <!-- begin-user-doc --> | ||
17 | * An implementation of the model object '<em><b>Parameter</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.model.problem.impl.ParameterImpl#getParameterType <em>Parameter Type</em>}</li> | ||
24 | * </ul> | ||
25 | * | ||
26 | * @generated | ||
27 | */ | ||
28 | public class ParameterImpl extends VariableImpl implements Parameter { | ||
29 | /** | ||
30 | * The cached value of the '{@link #getParameterType() <em>Parameter Type</em>}' reference. | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @see #getParameterType() | ||
34 | * @generated | ||
35 | * @ordered | ||
36 | */ | ||
37 | protected Relation parameterType; | ||
38 | |||
39 | /** | ||
40 | * <!-- begin-user-doc --> | ||
41 | * <!-- end-user-doc --> | ||
42 | * @generated | ||
43 | */ | ||
44 | protected ParameterImpl() { | ||
45 | super(); | ||
46 | } | ||
47 | |||
48 | /** | ||
49 | * <!-- begin-user-doc --> | ||
50 | * <!-- end-user-doc --> | ||
51 | * @generated | ||
52 | */ | ||
53 | @Override | ||
54 | protected EClass eStaticClass() { | ||
55 | return ProblemPackage.Literals.PARAMETER; | ||
56 | } | ||
57 | |||
58 | /** | ||
59 | * <!-- begin-user-doc --> | ||
60 | * <!-- end-user-doc --> | ||
61 | * @generated | ||
62 | */ | ||
63 | public Relation getParameterType() { | ||
64 | if (parameterType != null && parameterType.eIsProxy()) { | ||
65 | InternalEObject oldParameterType = (InternalEObject) parameterType; | ||
66 | parameterType = (Relation) eResolveProxy(oldParameterType); | ||
67 | if (parameterType != oldParameterType) { | ||
68 | if (eNotificationRequired()) | ||
69 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, ProblemPackage.PARAMETER__PARAMETER_TYPE, | ||
70 | oldParameterType, parameterType)); | ||
71 | } | ||
72 | } | ||
73 | return parameterType; | ||
74 | } | ||
75 | |||
76 | /** | ||
77 | * <!-- begin-user-doc --> | ||
78 | * <!-- end-user-doc --> | ||
79 | * @generated | ||
80 | */ | ||
81 | public Relation basicGetParameterType() { | ||
82 | return parameterType; | ||
83 | } | ||
84 | |||
85 | /** | ||
86 | * <!-- begin-user-doc --> | ||
87 | * <!-- end-user-doc --> | ||
88 | * @generated | ||
89 | */ | ||
90 | public void setParameterType(Relation newParameterType) { | ||
91 | Relation oldParameterType = parameterType; | ||
92 | parameterType = newParameterType; | ||
93 | if (eNotificationRequired()) | ||
94 | eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.PARAMETER__PARAMETER_TYPE, | ||
95 | oldParameterType, parameterType)); | ||
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 | switch (featureID) { | ||
106 | case ProblemPackage.PARAMETER__PARAMETER_TYPE: | ||
107 | if (resolve) | ||
108 | return getParameterType(); | ||
109 | return basicGetParameterType(); | ||
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 | switch (featureID) { | ||
122 | case ProblemPackage.PARAMETER__PARAMETER_TYPE: | ||
123 | setParameterType((Relation) 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 | switch (featureID) { | ||
137 | case ProblemPackage.PARAMETER__PARAMETER_TYPE: | ||
138 | setParameterType((Relation) null); | ||
139 | return; | ||
140 | } | ||
141 | super.eUnset(featureID); | ||
142 | } | ||
143 | |||
144 | /** | ||
145 | * <!-- begin-user-doc --> | ||
146 | * <!-- end-user-doc --> | ||
147 | * @generated | ||
148 | */ | ||
149 | @Override | ||
150 | public boolean eIsSet(int featureID) { | ||
151 | switch (featureID) { | ||
152 | case ProblemPackage.PARAMETER__PARAMETER_TYPE: | ||
153 | return parameterType != null; | ||
154 | } | ||
155 | return super.eIsSet(featureID); | ||
156 | } | ||
157 | |||
158 | } //ParameterImpl | ||
diff --git a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/PredicateDefinitionImpl.java b/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/PredicateDefinitionImpl.java deleted file mode 100644 index 968b6de1..00000000 --- a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/PredicateDefinitionImpl.java +++ /dev/null | |||
@@ -1,262 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import java.util.Collection; | ||
6 | |||
7 | import org.eclipse.emf.common.notify.Notification; | ||
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.ENotificationImpl; | ||
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.model.problem.Conjunction; | ||
21 | import org.eclipse.viatra.solver.language.model.problem.Parameter; | ||
22 | import org.eclipse.viatra.solver.language.model.problem.PredicateDefinition; | ||
23 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
24 | |||
25 | /** | ||
26 | * <!-- begin-user-doc --> | ||
27 | * An implementation of the model object '<em><b>Predicate Definition</b></em>'. | ||
28 | * <!-- end-user-doc --> | ||
29 | * <p> | ||
30 | * The following features are implemented: | ||
31 | * </p> | ||
32 | * <ul> | ||
33 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.PredicateDefinitionImpl#isError <em>Error</em>}</li> | ||
34 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.PredicateDefinitionImpl#getParameters <em>Parameters</em>}</li> | ||
35 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.PredicateDefinitionImpl#getBodies <em>Bodies</em>}</li> | ||
36 | * </ul> | ||
37 | * | ||
38 | * @generated | ||
39 | */ | ||
40 | public class PredicateDefinitionImpl extends RelationImpl implements PredicateDefinition { | ||
41 | /** | ||
42 | * The default value of the '{@link #isError() <em>Error</em>}' attribute. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @see #isError() | ||
46 | * @generated | ||
47 | * @ordered | ||
48 | */ | ||
49 | protected static final boolean ERROR_EDEFAULT = false; | ||
50 | |||
51 | /** | ||
52 | * The cached value of the '{@link #isError() <em>Error</em>}' attribute. | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @see #isError() | ||
56 | * @generated | ||
57 | * @ordered | ||
58 | */ | ||
59 | protected boolean error = ERROR_EDEFAULT; | ||
60 | |||
61 | /** | ||
62 | * The cached value of the '{@link #getParameters() <em>Parameters</em>}' containment reference list. | ||
63 | * <!-- begin-user-doc --> | ||
64 | * <!-- end-user-doc --> | ||
65 | * @see #getParameters() | ||
66 | * @generated | ||
67 | * @ordered | ||
68 | */ | ||
69 | protected EList<Parameter> parameters; | ||
70 | |||
71 | /** | ||
72 | * The cached value of the '{@link #getBodies() <em>Bodies</em>}' containment reference list. | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @see #getBodies() | ||
76 | * @generated | ||
77 | * @ordered | ||
78 | */ | ||
79 | protected EList<Conjunction> bodies; | ||
80 | |||
81 | /** | ||
82 | * <!-- begin-user-doc --> | ||
83 | * <!-- end-user-doc --> | ||
84 | * @generated | ||
85 | */ | ||
86 | protected PredicateDefinitionImpl() { | ||
87 | super(); | ||
88 | } | ||
89 | |||
90 | /** | ||
91 | * <!-- begin-user-doc --> | ||
92 | * <!-- end-user-doc --> | ||
93 | * @generated | ||
94 | */ | ||
95 | @Override | ||
96 | protected EClass eStaticClass() { | ||
97 | return ProblemPackage.Literals.PREDICATE_DEFINITION; | ||
98 | } | ||
99 | |||
100 | /** | ||
101 | * <!-- begin-user-doc --> | ||
102 | * <!-- end-user-doc --> | ||
103 | * @generated | ||
104 | */ | ||
105 | public boolean isError() { | ||
106 | return error; | ||
107 | } | ||
108 | |||
109 | /** | ||
110 | * <!-- begin-user-doc --> | ||
111 | * <!-- end-user-doc --> | ||
112 | * @generated | ||
113 | */ | ||
114 | public void setError(boolean newError) { | ||
115 | boolean oldError = error; | ||
116 | error = newError; | ||
117 | if (eNotificationRequired()) | ||
118 | eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.PREDICATE_DEFINITION__ERROR, oldError, | ||
119 | error)); | ||
120 | } | ||
121 | |||
122 | /** | ||
123 | * <!-- begin-user-doc --> | ||
124 | * <!-- end-user-doc --> | ||
125 | * @generated | ||
126 | */ | ||
127 | public EList<Parameter> getParameters() { | ||
128 | if (parameters == null) { | ||
129 | parameters = new EObjectContainmentEList<Parameter>(Parameter.class, this, | ||
130 | ProblemPackage.PREDICATE_DEFINITION__PARAMETERS); | ||
131 | } | ||
132 | return parameters; | ||
133 | } | ||
134 | |||
135 | /** | ||
136 | * <!-- begin-user-doc --> | ||
137 | * <!-- end-user-doc --> | ||
138 | * @generated | ||
139 | */ | ||
140 | public EList<Conjunction> getBodies() { | ||
141 | if (bodies == null) { | ||
142 | bodies = new EObjectContainmentEList<Conjunction>(Conjunction.class, this, | ||
143 | ProblemPackage.PREDICATE_DEFINITION__BODIES); | ||
144 | } | ||
145 | return bodies; | ||
146 | } | ||
147 | |||
148 | /** | ||
149 | * <!-- begin-user-doc --> | ||
150 | * <!-- end-user-doc --> | ||
151 | * @generated | ||
152 | */ | ||
153 | @Override | ||
154 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
155 | switch (featureID) { | ||
156 | case ProblemPackage.PREDICATE_DEFINITION__PARAMETERS: | ||
157 | return ((InternalEList<?>) getParameters()).basicRemove(otherEnd, msgs); | ||
158 | case ProblemPackage.PREDICATE_DEFINITION__BODIES: | ||
159 | return ((InternalEList<?>) getBodies()).basicRemove(otherEnd, msgs); | ||
160 | } | ||
161 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
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 | switch (featureID) { | ||
172 | case ProblemPackage.PREDICATE_DEFINITION__ERROR: | ||
173 | return isError(); | ||
174 | case ProblemPackage.PREDICATE_DEFINITION__PARAMETERS: | ||
175 | return getParameters(); | ||
176 | case ProblemPackage.PREDICATE_DEFINITION__BODIES: | ||
177 | return getBodies(); | ||
178 | } | ||
179 | return super.eGet(featureID, resolve, coreType); | ||
180 | } | ||
181 | |||
182 | /** | ||
183 | * <!-- begin-user-doc --> | ||
184 | * <!-- end-user-doc --> | ||
185 | * @generated | ||
186 | */ | ||
187 | @SuppressWarnings("unchecked") | ||
188 | @Override | ||
189 | public void eSet(int featureID, Object newValue) { | ||
190 | switch (featureID) { | ||
191 | case ProblemPackage.PREDICATE_DEFINITION__ERROR: | ||
192 | setError((Boolean) newValue); | ||
193 | return; | ||
194 | case ProblemPackage.PREDICATE_DEFINITION__PARAMETERS: | ||
195 | getParameters().clear(); | ||
196 | getParameters().addAll((Collection<? extends Parameter>) newValue); | ||
197 | return; | ||
198 | case ProblemPackage.PREDICATE_DEFINITION__BODIES: | ||
199 | getBodies().clear(); | ||
200 | getBodies().addAll((Collection<? extends Conjunction>) newValue); | ||
201 | return; | ||
202 | } | ||
203 | super.eSet(featureID, newValue); | ||
204 | } | ||
205 | |||
206 | /** | ||
207 | * <!-- begin-user-doc --> | ||
208 | * <!-- end-user-doc --> | ||
209 | * @generated | ||
210 | */ | ||
211 | @Override | ||
212 | public void eUnset(int featureID) { | ||
213 | switch (featureID) { | ||
214 | case ProblemPackage.PREDICATE_DEFINITION__ERROR: | ||
215 | setError(ERROR_EDEFAULT); | ||
216 | return; | ||
217 | case ProblemPackage.PREDICATE_DEFINITION__PARAMETERS: | ||
218 | getParameters().clear(); | ||
219 | return; | ||
220 | case ProblemPackage.PREDICATE_DEFINITION__BODIES: | ||
221 | getBodies().clear(); | ||
222 | return; | ||
223 | } | ||
224 | super.eUnset(featureID); | ||
225 | } | ||
226 | |||
227 | /** | ||
228 | * <!-- begin-user-doc --> | ||
229 | * <!-- end-user-doc --> | ||
230 | * @generated | ||
231 | */ | ||
232 | @Override | ||
233 | public boolean eIsSet(int featureID) { | ||
234 | switch (featureID) { | ||
235 | case ProblemPackage.PREDICATE_DEFINITION__ERROR: | ||
236 | return error != ERROR_EDEFAULT; | ||
237 | case ProblemPackage.PREDICATE_DEFINITION__PARAMETERS: | ||
238 | return parameters != null && !parameters.isEmpty(); | ||
239 | case ProblemPackage.PREDICATE_DEFINITION__BODIES: | ||
240 | return bodies != null && !bodies.isEmpty(); | ||
241 | } | ||
242 | return super.eIsSet(featureID); | ||
243 | } | ||
244 | |||
245 | /** | ||
246 | * <!-- begin-user-doc --> | ||
247 | * <!-- end-user-doc --> | ||
248 | * @generated | ||
249 | */ | ||
250 | @Override | ||
251 | public String toString() { | ||
252 | if (eIsProxy()) | ||
253 | return super.toString(); | ||
254 | |||
255 | StringBuilder result = new StringBuilder(super.toString()); | ||
256 | result.append(" (error: "); | ||
257 | result.append(error); | ||
258 | result.append(')'); | ||
259 | return result.toString(); | ||
260 | } | ||
261 | |||
262 | } //PredicateDefinitionImpl | ||
diff --git a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ProblemFactoryImpl.java b/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ProblemFactoryImpl.java deleted file mode 100644 index 27da13e2..00000000 --- a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ProblemFactoryImpl.java +++ /dev/null | |||
@@ -1,437 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EClass; | ||
6 | import org.eclipse.emf.ecore.EDataType; | ||
7 | import org.eclipse.emf.ecore.EObject; | ||
8 | import org.eclipse.emf.ecore.EPackage; | ||
9 | |||
10 | import org.eclipse.emf.ecore.impl.EFactoryImpl; | ||
11 | |||
12 | import org.eclipse.emf.ecore.plugin.EcorePlugin; | ||
13 | |||
14 | import org.eclipse.viatra.solver.language.model.problem.*; | ||
15 | |||
16 | /** | ||
17 | * <!-- begin-user-doc --> | ||
18 | * An implementation of the model <b>Factory</b>. | ||
19 | * <!-- end-user-doc --> | ||
20 | * @generated | ||
21 | */ | ||
22 | public class ProblemFactoryImpl extends EFactoryImpl implements ProblemFactory { | ||
23 | /** | ||
24 | * Creates the default factory implementation. | ||
25 | * <!-- begin-user-doc --> | ||
26 | * <!-- end-user-doc --> | ||
27 | * @generated | ||
28 | */ | ||
29 | public static ProblemFactory init() { | ||
30 | try { | ||
31 | ProblemFactory theProblemFactory = (ProblemFactory) EPackage.Registry.INSTANCE | ||
32 | .getEFactory(ProblemPackage.eNS_URI); | ||
33 | if (theProblemFactory != null) { | ||
34 | return theProblemFactory; | ||
35 | } | ||
36 | } catch (Exception exception) { | ||
37 | EcorePlugin.INSTANCE.log(exception); | ||
38 | } | ||
39 | return new ProblemFactoryImpl(); | ||
40 | } | ||
41 | |||
42 | /** | ||
43 | * Creates an instance of the factory. | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @generated | ||
47 | */ | ||
48 | public ProblemFactoryImpl() { | ||
49 | super(); | ||
50 | } | ||
51 | |||
52 | /** | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @generated | ||
56 | */ | ||
57 | @Override | ||
58 | public EObject create(EClass eClass) { | ||
59 | switch (eClass.getClassifierID()) { | ||
60 | case ProblemPackage.PROBLEM: | ||
61 | return createProblem(); | ||
62 | case ProblemPackage.CLASS_DECLARATION: | ||
63 | return createClassDeclaration(); | ||
64 | case ProblemPackage.REFERENCE_DECLARATION: | ||
65 | return createReferenceDeclaration(); | ||
66 | case ProblemPackage.PREDICATE_DEFINITION: | ||
67 | return createPredicateDefinition(); | ||
68 | case ProblemPackage.PARAMETER: | ||
69 | return createParameter(); | ||
70 | case ProblemPackage.CONJUNCTION: | ||
71 | return createConjunction(); | ||
72 | case ProblemPackage.ATOM: | ||
73 | return createAtom(); | ||
74 | case ProblemPackage.IMPLICIT_VARIABLE: | ||
75 | return createImplicitVariable(); | ||
76 | case ProblemPackage.NEGATIVE_LITERAL: | ||
77 | return createNegativeLiteral(); | ||
78 | case ProblemPackage.ASSERTION: | ||
79 | return createAssertion(); | ||
80 | case ProblemPackage.NODE: | ||
81 | return createNode(); | ||
82 | case ProblemPackage.SCOPE_DECLARATION: | ||
83 | return createScopeDeclaration(); | ||
84 | case ProblemPackage.TYPE_SCOPE: | ||
85 | return createTypeScope(); | ||
86 | case ProblemPackage.RANGE_MULTIPLICITY: | ||
87 | return createRangeMultiplicity(); | ||
88 | case ProblemPackage.EXACT_MULTIPLICITY: | ||
89 | return createExactMultiplicity(); | ||
90 | case ProblemPackage.UNBOUNDED_MULTIPLICITY: | ||
91 | return createUnboundedMultiplicity(); | ||
92 | case ProblemPackage.VARIABLE_OR_NODE_ARGUMENT: | ||
93 | return createVariableOrNodeArgument(); | ||
94 | case ProblemPackage.ENUM_DECLARATION: | ||
95 | return createEnumDeclaration(); | ||
96 | case ProblemPackage.INT_CONSTANT: | ||
97 | return createIntConstant(); | ||
98 | case ProblemPackage.REAL_CONSTANT: | ||
99 | return createRealConstant(); | ||
100 | case ProblemPackage.STRING_CONSTANT: | ||
101 | return createStringConstant(); | ||
102 | case ProblemPackage.CONSTANT_ARGUMENT: | ||
103 | return createConstantArgument(); | ||
104 | case ProblemPackage.NODE_ASSERTION_ARGUMENT: | ||
105 | return createNodeAssertionArgument(); | ||
106 | case ProblemPackage.CONSTANT_ASSERTION_ARGUMENT: | ||
107 | return createConstantAssertionArgument(); | ||
108 | case ProblemPackage.NODE_VALUE_ASSERTION: | ||
109 | return createNodeValueAssertion(); | ||
110 | default: | ||
111 | throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); | ||
112 | } | ||
113 | } | ||
114 | |||
115 | /** | ||
116 | * <!-- begin-user-doc --> | ||
117 | * <!-- end-user-doc --> | ||
118 | * @generated | ||
119 | */ | ||
120 | @Override | ||
121 | public Object createFromString(EDataType eDataType, String initialValue) { | ||
122 | switch (eDataType.getClassifierID()) { | ||
123 | case ProblemPackage.LOGIC_VALUE: | ||
124 | return createLogicValueFromString(eDataType, initialValue); | ||
125 | default: | ||
126 | throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); | ||
127 | } | ||
128 | } | ||
129 | |||
130 | /** | ||
131 | * <!-- begin-user-doc --> | ||
132 | * <!-- end-user-doc --> | ||
133 | * @generated | ||
134 | */ | ||
135 | @Override | ||
136 | public String convertToString(EDataType eDataType, Object instanceValue) { | ||
137 | switch (eDataType.getClassifierID()) { | ||
138 | case ProblemPackage.LOGIC_VALUE: | ||
139 | return convertLogicValueToString(eDataType, instanceValue); | ||
140 | default: | ||
141 | throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); | ||
142 | } | ||
143 | } | ||
144 | |||
145 | /** | ||
146 | * <!-- begin-user-doc --> | ||
147 | * <!-- end-user-doc --> | ||
148 | * @generated | ||
149 | */ | ||
150 | public Problem createProblem() { | ||
151 | ProblemImpl problem = new ProblemImpl(); | ||
152 | return problem; | ||
153 | } | ||
154 | |||
155 | /** | ||
156 | * <!-- begin-user-doc --> | ||
157 | * <!-- end-user-doc --> | ||
158 | * @generated | ||
159 | */ | ||
160 | public ClassDeclaration createClassDeclaration() { | ||
161 | ClassDeclarationImpl classDeclaration = new ClassDeclarationImpl(); | ||
162 | return classDeclaration; | ||
163 | } | ||
164 | |||
165 | /** | ||
166 | * <!-- begin-user-doc --> | ||
167 | * <!-- end-user-doc --> | ||
168 | * @generated | ||
169 | */ | ||
170 | public ReferenceDeclaration createReferenceDeclaration() { | ||
171 | ReferenceDeclarationImpl referenceDeclaration = new ReferenceDeclarationImpl(); | ||
172 | return referenceDeclaration; | ||
173 | } | ||
174 | |||
175 | /** | ||
176 | * <!-- begin-user-doc --> | ||
177 | * <!-- end-user-doc --> | ||
178 | * @generated | ||
179 | */ | ||
180 | public PredicateDefinition createPredicateDefinition() { | ||
181 | PredicateDefinitionImpl predicateDefinition = new PredicateDefinitionImpl(); | ||
182 | return predicateDefinition; | ||
183 | } | ||
184 | |||
185 | /** | ||
186 | * <!-- begin-user-doc --> | ||
187 | * <!-- end-user-doc --> | ||
188 | * @generated | ||
189 | */ | ||
190 | public Parameter createParameter() { | ||
191 | ParameterImpl parameter = new ParameterImpl(); | ||
192 | return parameter; | ||
193 | } | ||
194 | |||
195 | /** | ||
196 | * <!-- begin-user-doc --> | ||
197 | * <!-- end-user-doc --> | ||
198 | * @generated | ||
199 | */ | ||
200 | public Conjunction createConjunction() { | ||
201 | ConjunctionImpl conjunction = new ConjunctionImpl(); | ||
202 | return conjunction; | ||
203 | } | ||
204 | |||
205 | /** | ||
206 | * <!-- begin-user-doc --> | ||
207 | * <!-- end-user-doc --> | ||
208 | * @generated | ||
209 | */ | ||
210 | public Atom createAtom() { | ||
211 | AtomImpl atom = new AtomImpl(); | ||
212 | return atom; | ||
213 | } | ||
214 | |||
215 | /** | ||
216 | * <!-- begin-user-doc --> | ||
217 | * <!-- end-user-doc --> | ||
218 | * @generated | ||
219 | */ | ||
220 | public ImplicitVariable createImplicitVariable() { | ||
221 | ImplicitVariableImpl implicitVariable = new ImplicitVariableImpl(); | ||
222 | return implicitVariable; | ||
223 | } | ||
224 | |||
225 | /** | ||
226 | * <!-- begin-user-doc --> | ||
227 | * <!-- end-user-doc --> | ||
228 | * @generated | ||
229 | */ | ||
230 | public NegativeLiteral createNegativeLiteral() { | ||
231 | NegativeLiteralImpl negativeLiteral = new NegativeLiteralImpl(); | ||
232 | return negativeLiteral; | ||
233 | } | ||
234 | |||
235 | /** | ||
236 | * <!-- begin-user-doc --> | ||
237 | * <!-- end-user-doc --> | ||
238 | * @generated | ||
239 | */ | ||
240 | public Assertion createAssertion() { | ||
241 | AssertionImpl assertion = new AssertionImpl(); | ||
242 | return assertion; | ||
243 | } | ||
244 | |||
245 | /** | ||
246 | * <!-- begin-user-doc --> | ||
247 | * <!-- end-user-doc --> | ||
248 | * @generated | ||
249 | */ | ||
250 | public Node createNode() { | ||
251 | NodeImpl node = new NodeImpl(); | ||
252 | return node; | ||
253 | } | ||
254 | |||
255 | /** | ||
256 | * <!-- begin-user-doc --> | ||
257 | * <!-- end-user-doc --> | ||
258 | * @generated | ||
259 | */ | ||
260 | public ScopeDeclaration createScopeDeclaration() { | ||
261 | ScopeDeclarationImpl scopeDeclaration = new ScopeDeclarationImpl(); | ||
262 | return scopeDeclaration; | ||
263 | } | ||
264 | |||
265 | /** | ||
266 | * <!-- begin-user-doc --> | ||
267 | * <!-- end-user-doc --> | ||
268 | * @generated | ||
269 | */ | ||
270 | public TypeScope createTypeScope() { | ||
271 | TypeScopeImpl typeScope = new TypeScopeImpl(); | ||
272 | return typeScope; | ||
273 | } | ||
274 | |||
275 | /** | ||
276 | * <!-- begin-user-doc --> | ||
277 | * <!-- end-user-doc --> | ||
278 | * @generated | ||
279 | */ | ||
280 | public RangeMultiplicity createRangeMultiplicity() { | ||
281 | RangeMultiplicityImpl rangeMultiplicity = new RangeMultiplicityImpl(); | ||
282 | return rangeMultiplicity; | ||
283 | } | ||
284 | |||
285 | /** | ||
286 | * <!-- begin-user-doc --> | ||
287 | * <!-- end-user-doc --> | ||
288 | * @generated | ||
289 | */ | ||
290 | public ExactMultiplicity createExactMultiplicity() { | ||
291 | ExactMultiplicityImpl exactMultiplicity = new ExactMultiplicityImpl(); | ||
292 | return exactMultiplicity; | ||
293 | } | ||
294 | |||
295 | /** | ||
296 | * <!-- begin-user-doc --> | ||
297 | * <!-- end-user-doc --> | ||
298 | * @generated | ||
299 | */ | ||
300 | public UnboundedMultiplicity createUnboundedMultiplicity() { | ||
301 | UnboundedMultiplicityImpl unboundedMultiplicity = new UnboundedMultiplicityImpl(); | ||
302 | return unboundedMultiplicity; | ||
303 | } | ||
304 | |||
305 | /** | ||
306 | * <!-- begin-user-doc --> | ||
307 | * <!-- end-user-doc --> | ||
308 | * @generated | ||
309 | */ | ||
310 | public VariableOrNodeArgument createVariableOrNodeArgument() { | ||
311 | VariableOrNodeArgumentImpl variableOrNodeArgument = new VariableOrNodeArgumentImpl(); | ||
312 | return variableOrNodeArgument; | ||
313 | } | ||
314 | |||
315 | /** | ||
316 | * <!-- begin-user-doc --> | ||
317 | * <!-- end-user-doc --> | ||
318 | * @generated | ||
319 | */ | ||
320 | public EnumDeclaration createEnumDeclaration() { | ||
321 | EnumDeclarationImpl enumDeclaration = new EnumDeclarationImpl(); | ||
322 | return enumDeclaration; | ||
323 | } | ||
324 | |||
325 | /** | ||
326 | * <!-- begin-user-doc --> | ||
327 | * <!-- end-user-doc --> | ||
328 | * @generated | ||
329 | */ | ||
330 | public IntConstant createIntConstant() { | ||
331 | IntConstantImpl intConstant = new IntConstantImpl(); | ||
332 | return intConstant; | ||
333 | } | ||
334 | |||
335 | /** | ||
336 | * <!-- begin-user-doc --> | ||
337 | * <!-- end-user-doc --> | ||
338 | * @generated | ||
339 | */ | ||
340 | public RealConstant createRealConstant() { | ||
341 | RealConstantImpl realConstant = new RealConstantImpl(); | ||
342 | return realConstant; | ||
343 | } | ||
344 | |||
345 | /** | ||
346 | * <!-- begin-user-doc --> | ||
347 | * <!-- end-user-doc --> | ||
348 | * @generated | ||
349 | */ | ||
350 | public StringConstant createStringConstant() { | ||
351 | StringConstantImpl stringConstant = new StringConstantImpl(); | ||
352 | return stringConstant; | ||
353 | } | ||
354 | |||
355 | /** | ||
356 | * <!-- begin-user-doc --> | ||
357 | * <!-- end-user-doc --> | ||
358 | * @generated | ||
359 | */ | ||
360 | public ConstantArgument createConstantArgument() { | ||
361 | ConstantArgumentImpl constantArgument = new ConstantArgumentImpl(); | ||
362 | return constantArgument; | ||
363 | } | ||
364 | |||
365 | /** | ||
366 | * <!-- begin-user-doc --> | ||
367 | * <!-- end-user-doc --> | ||
368 | * @generated | ||
369 | */ | ||
370 | public NodeAssertionArgument createNodeAssertionArgument() { | ||
371 | NodeAssertionArgumentImpl nodeAssertionArgument = new NodeAssertionArgumentImpl(); | ||
372 | return nodeAssertionArgument; | ||
373 | } | ||
374 | |||
375 | /** | ||
376 | * <!-- begin-user-doc --> | ||
377 | * <!-- end-user-doc --> | ||
378 | * @generated | ||
379 | */ | ||
380 | public ConstantAssertionArgument createConstantAssertionArgument() { | ||
381 | ConstantAssertionArgumentImpl constantAssertionArgument = new ConstantAssertionArgumentImpl(); | ||
382 | return constantAssertionArgument; | ||
383 | } | ||
384 | |||
385 | /** | ||
386 | * <!-- begin-user-doc --> | ||
387 | * <!-- end-user-doc --> | ||
388 | * @generated | ||
389 | */ | ||
390 | public NodeValueAssertion createNodeValueAssertion() { | ||
391 | NodeValueAssertionImpl nodeValueAssertion = new NodeValueAssertionImpl(); | ||
392 | return nodeValueAssertion; | ||
393 | } | ||
394 | |||
395 | /** | ||
396 | * <!-- begin-user-doc --> | ||
397 | * <!-- end-user-doc --> | ||
398 | * @generated | ||
399 | */ | ||
400 | public LogicValue createLogicValueFromString(EDataType eDataType, String initialValue) { | ||
401 | LogicValue result = LogicValue.get(initialValue); | ||
402 | if (result == null) | ||
403 | throw new IllegalArgumentException( | ||
404 | "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); | ||
405 | return result; | ||
406 | } | ||
407 | |||
408 | /** | ||
409 | * <!-- begin-user-doc --> | ||
410 | * <!-- end-user-doc --> | ||
411 | * @generated | ||
412 | */ | ||
413 | public String convertLogicValueToString(EDataType eDataType, Object instanceValue) { | ||
414 | return instanceValue == null ? null : instanceValue.toString(); | ||
415 | } | ||
416 | |||
417 | /** | ||
418 | * <!-- begin-user-doc --> | ||
419 | * <!-- end-user-doc --> | ||
420 | * @generated | ||
421 | */ | ||
422 | public ProblemPackage getProblemPackage() { | ||
423 | return (ProblemPackage) getEPackage(); | ||
424 | } | ||
425 | |||
426 | /** | ||
427 | * <!-- begin-user-doc --> | ||
428 | * <!-- end-user-doc --> | ||
429 | * @deprecated | ||
430 | * @generated | ||
431 | */ | ||
432 | @Deprecated | ||
433 | public static ProblemPackage getPackage() { | ||
434 | return ProblemPackage.eINSTANCE; | ||
435 | } | ||
436 | |||
437 | } //ProblemFactoryImpl | ||
diff --git a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ProblemImpl.java b/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ProblemImpl.java deleted file mode 100644 index 191021c4..00000000 --- a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ProblemImpl.java +++ /dev/null | |||
@@ -1,188 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import java.util.Collection; | ||
6 | |||
7 | import org.eclipse.emf.common.notify.NotificationChain; | ||
8 | |||
9 | import org.eclipse.emf.common.util.EList; | ||
10 | |||
11 | import org.eclipse.emf.ecore.EClass; | ||
12 | import org.eclipse.emf.ecore.InternalEObject; | ||
13 | |||
14 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
15 | import org.eclipse.emf.ecore.util.InternalEList; | ||
16 | |||
17 | import org.eclipse.viatra.solver.language.model.problem.Node; | ||
18 | import org.eclipse.viatra.solver.language.model.problem.Problem; | ||
19 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
20 | import org.eclipse.viatra.solver.language.model.problem.Statement; | ||
21 | |||
22 | /** | ||
23 | * <!-- begin-user-doc --> | ||
24 | * An implementation of the model object '<em><b>Problem</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.model.problem.impl.ProblemImpl#getNodes <em>Nodes</em>}</li> | ||
31 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.ProblemImpl#getStatements <em>Statements</em>}</li> | ||
32 | * </ul> | ||
33 | * | ||
34 | * @generated | ||
35 | */ | ||
36 | public class ProblemImpl extends NamedElementImpl implements Problem { | ||
37 | /** | ||
38 | * The cached value of the '{@link #getNodes() <em>Nodes</em>}' containment reference list. | ||
39 | * <!-- begin-user-doc --> | ||
40 | * <!-- end-user-doc --> | ||
41 | * @see #getNodes() | ||
42 | * @generated | ||
43 | * @ordered | ||
44 | */ | ||
45 | protected EList<Node> nodes; | ||
46 | |||
47 | /** | ||
48 | * The cached value of the '{@link #getStatements() <em>Statements</em>}' containment reference list. | ||
49 | * <!-- begin-user-doc --> | ||
50 | * <!-- end-user-doc --> | ||
51 | * @see #getStatements() | ||
52 | * @generated | ||
53 | * @ordered | ||
54 | */ | ||
55 | protected EList<Statement> statements; | ||
56 | |||
57 | /** | ||
58 | * <!-- begin-user-doc --> | ||
59 | * <!-- end-user-doc --> | ||
60 | * @generated | ||
61 | */ | ||
62 | protected ProblemImpl() { | ||
63 | super(); | ||
64 | } | ||
65 | |||
66 | /** | ||
67 | * <!-- begin-user-doc --> | ||
68 | * <!-- end-user-doc --> | ||
69 | * @generated | ||
70 | */ | ||
71 | @Override | ||
72 | protected EClass eStaticClass() { | ||
73 | return ProblemPackage.Literals.PROBLEM; | ||
74 | } | ||
75 | |||
76 | /** | ||
77 | * <!-- begin-user-doc --> | ||
78 | * <!-- end-user-doc --> | ||
79 | * @generated | ||
80 | */ | ||
81 | public EList<Node> getNodes() { | ||
82 | if (nodes == null) { | ||
83 | nodes = new EObjectContainmentEList<Node>(Node.class, this, ProblemPackage.PROBLEM__NODES); | ||
84 | } | ||
85 | return nodes; | ||
86 | } | ||
87 | |||
88 | /** | ||
89 | * <!-- begin-user-doc --> | ||
90 | * <!-- end-user-doc --> | ||
91 | * @generated | ||
92 | */ | ||
93 | public EList<Statement> getStatements() { | ||
94 | if (statements == null) { | ||
95 | statements = new EObjectContainmentEList<Statement>(Statement.class, this, | ||
96 | ProblemPackage.PROBLEM__STATEMENTS); | ||
97 | } | ||
98 | return statements; | ||
99 | } | ||
100 | |||
101 | /** | ||
102 | * <!-- begin-user-doc --> | ||
103 | * <!-- end-user-doc --> | ||
104 | * @generated | ||
105 | */ | ||
106 | @Override | ||
107 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
108 | switch (featureID) { | ||
109 | case ProblemPackage.PROBLEM__NODES: | ||
110 | return ((InternalEList<?>) getNodes()).basicRemove(otherEnd, msgs); | ||
111 | case ProblemPackage.PROBLEM__STATEMENTS: | ||
112 | return ((InternalEList<?>) getStatements()).basicRemove(otherEnd, msgs); | ||
113 | } | ||
114 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
115 | } | ||
116 | |||
117 | /** | ||
118 | * <!-- begin-user-doc --> | ||
119 | * <!-- end-user-doc --> | ||
120 | * @generated | ||
121 | */ | ||
122 | @Override | ||
123 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
124 | switch (featureID) { | ||
125 | case ProblemPackage.PROBLEM__NODES: | ||
126 | return getNodes(); | ||
127 | case ProblemPackage.PROBLEM__STATEMENTS: | ||
128 | return getStatements(); | ||
129 | } | ||
130 | return super.eGet(featureID, resolve, coreType); | ||
131 | } | ||
132 | |||
133 | /** | ||
134 | * <!-- begin-user-doc --> | ||
135 | * <!-- end-user-doc --> | ||
136 | * @generated | ||
137 | */ | ||
138 | @SuppressWarnings("unchecked") | ||
139 | @Override | ||
140 | public void eSet(int featureID, Object newValue) { | ||
141 | switch (featureID) { | ||
142 | case ProblemPackage.PROBLEM__NODES: | ||
143 | getNodes().clear(); | ||
144 | getNodes().addAll((Collection<? extends Node>) newValue); | ||
145 | return; | ||
146 | case ProblemPackage.PROBLEM__STATEMENTS: | ||
147 | getStatements().clear(); | ||
148 | getStatements().addAll((Collection<? extends Statement>) newValue); | ||
149 | return; | ||
150 | } | ||
151 | super.eSet(featureID, newValue); | ||
152 | } | ||
153 | |||
154 | /** | ||
155 | * <!-- begin-user-doc --> | ||
156 | * <!-- end-user-doc --> | ||
157 | * @generated | ||
158 | */ | ||
159 | @Override | ||
160 | public void eUnset(int featureID) { | ||
161 | switch (featureID) { | ||
162 | case ProblemPackage.PROBLEM__NODES: | ||
163 | getNodes().clear(); | ||
164 | return; | ||
165 | case ProblemPackage.PROBLEM__STATEMENTS: | ||
166 | getStatements().clear(); | ||
167 | return; | ||
168 | } | ||
169 | super.eUnset(featureID); | ||
170 | } | ||
171 | |||
172 | /** | ||
173 | * <!-- begin-user-doc --> | ||
174 | * <!-- end-user-doc --> | ||
175 | * @generated | ||
176 | */ | ||
177 | @Override | ||
178 | public boolean eIsSet(int featureID) { | ||
179 | switch (featureID) { | ||
180 | case ProblemPackage.PROBLEM__NODES: | ||
181 | return nodes != null && !nodes.isEmpty(); | ||
182 | case ProblemPackage.PROBLEM__STATEMENTS: | ||
183 | return statements != null && !statements.isEmpty(); | ||
184 | } | ||
185 | return super.eIsSet(featureID); | ||
186 | } | ||
187 | |||
188 | } //ProblemImpl | ||
diff --git a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ProblemPackageImpl.java b/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ProblemPackageImpl.java deleted file mode 100644 index ee72c538..00000000 --- a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ProblemPackageImpl.java +++ /dev/null | |||
@@ -1,1535 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EAttribute; | ||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | import org.eclipse.emf.ecore.EEnum; | ||
8 | import org.eclipse.emf.ecore.EPackage; | ||
9 | import org.eclipse.emf.ecore.EReference; | ||
10 | |||
11 | import org.eclipse.emf.ecore.impl.EPackageImpl; | ||
12 | |||
13 | import org.eclipse.viatra.solver.language.model.problem.Argument; | ||
14 | import org.eclipse.viatra.solver.language.model.problem.Assertion; | ||
15 | import org.eclipse.viatra.solver.language.model.problem.AssertionArgument; | ||
16 | import org.eclipse.viatra.solver.language.model.problem.Atom; | ||
17 | import org.eclipse.viatra.solver.language.model.problem.ClassDeclaration; | ||
18 | import org.eclipse.viatra.solver.language.model.problem.Conjunction; | ||
19 | import org.eclipse.viatra.solver.language.model.problem.Constant; | ||
20 | import org.eclipse.viatra.solver.language.model.problem.ConstantArgument; | ||
21 | import org.eclipse.viatra.solver.language.model.problem.ConstantAssertionArgument; | ||
22 | import org.eclipse.viatra.solver.language.model.problem.EnumDeclaration; | ||
23 | import org.eclipse.viatra.solver.language.model.problem.ExactMultiplicity; | ||
24 | import org.eclipse.viatra.solver.language.model.problem.ExistentialQuantifier; | ||
25 | import org.eclipse.viatra.solver.language.model.problem.ImplicitVariable; | ||
26 | import org.eclipse.viatra.solver.language.model.problem.IntConstant; | ||
27 | import org.eclipse.viatra.solver.language.model.problem.Literal; | ||
28 | import org.eclipse.viatra.solver.language.model.problem.LogicValue; | ||
29 | import org.eclipse.viatra.solver.language.model.problem.Multiplicity; | ||
30 | import org.eclipse.viatra.solver.language.model.problem.NamedElement; | ||
31 | import org.eclipse.viatra.solver.language.model.problem.NegativeLiteral; | ||
32 | import org.eclipse.viatra.solver.language.model.problem.Node; | ||
33 | import org.eclipse.viatra.solver.language.model.problem.NodeAssertionArgument; | ||
34 | import org.eclipse.viatra.solver.language.model.problem.NodeValueAssertion; | ||
35 | import org.eclipse.viatra.solver.language.model.problem.Parameter; | ||
36 | import org.eclipse.viatra.solver.language.model.problem.PredicateDefinition; | ||
37 | import org.eclipse.viatra.solver.language.model.problem.Problem; | ||
38 | import org.eclipse.viatra.solver.language.model.problem.ProblemFactory; | ||
39 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
40 | import org.eclipse.viatra.solver.language.model.problem.RangeMultiplicity; | ||
41 | import org.eclipse.viatra.solver.language.model.problem.RealConstant; | ||
42 | import org.eclipse.viatra.solver.language.model.problem.ReferenceDeclaration; | ||
43 | import org.eclipse.viatra.solver.language.model.problem.Relation; | ||
44 | import org.eclipse.viatra.solver.language.model.problem.ScopeDeclaration; | ||
45 | import org.eclipse.viatra.solver.language.model.problem.Statement; | ||
46 | import org.eclipse.viatra.solver.language.model.problem.StringConstant; | ||
47 | import org.eclipse.viatra.solver.language.model.problem.TypeScope; | ||
48 | import org.eclipse.viatra.solver.language.model.problem.UnboundedMultiplicity; | ||
49 | import org.eclipse.viatra.solver.language.model.problem.Variable; | ||
50 | import org.eclipse.viatra.solver.language.model.problem.VariableOrNode; | ||
51 | import org.eclipse.viatra.solver.language.model.problem.VariableOrNodeArgument; | ||
52 | |||
53 | /** | ||
54 | * <!-- begin-user-doc --> | ||
55 | * An implementation of the model <b>Package</b>. | ||
56 | * <!-- end-user-doc --> | ||
57 | * @generated | ||
58 | */ | ||
59 | public class ProblemPackageImpl extends EPackageImpl implements ProblemPackage { | ||
60 | /** | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @generated | ||
64 | */ | ||
65 | private EClass problemEClass = null; | ||
66 | |||
67 | /** | ||
68 | * <!-- begin-user-doc --> | ||
69 | * <!-- end-user-doc --> | ||
70 | * @generated | ||
71 | */ | ||
72 | private EClass relationEClass = null; | ||
73 | |||
74 | /** | ||
75 | * <!-- begin-user-doc --> | ||
76 | * <!-- end-user-doc --> | ||
77 | * @generated | ||
78 | */ | ||
79 | private EClass classDeclarationEClass = null; | ||
80 | |||
81 | /** | ||
82 | * <!-- begin-user-doc --> | ||
83 | * <!-- end-user-doc --> | ||
84 | * @generated | ||
85 | */ | ||
86 | private EClass referenceDeclarationEClass = null; | ||
87 | |||
88 | /** | ||
89 | * <!-- begin-user-doc --> | ||
90 | * <!-- end-user-doc --> | ||
91 | * @generated | ||
92 | */ | ||
93 | private EClass namedElementEClass = null; | ||
94 | |||
95 | /** | ||
96 | * <!-- begin-user-doc --> | ||
97 | * <!-- end-user-doc --> | ||
98 | * @generated | ||
99 | */ | ||
100 | private EClass predicateDefinitionEClass = null; | ||
101 | |||
102 | /** | ||
103 | * <!-- begin-user-doc --> | ||
104 | * <!-- end-user-doc --> | ||
105 | * @generated | ||
106 | */ | ||
107 | private EClass parameterEClass = null; | ||
108 | |||
109 | /** | ||
110 | * <!-- begin-user-doc --> | ||
111 | * <!-- end-user-doc --> | ||
112 | * @generated | ||
113 | */ | ||
114 | private EClass variableEClass = null; | ||
115 | |||
116 | /** | ||
117 | * <!-- begin-user-doc --> | ||
118 | * <!-- end-user-doc --> | ||
119 | * @generated | ||
120 | */ | ||
121 | private EClass conjunctionEClass = null; | ||
122 | |||
123 | /** | ||
124 | * <!-- begin-user-doc --> | ||
125 | * <!-- end-user-doc --> | ||
126 | * @generated | ||
127 | */ | ||
128 | private EClass literalEClass = null; | ||
129 | |||
130 | /** | ||
131 | * <!-- begin-user-doc --> | ||
132 | * <!-- end-user-doc --> | ||
133 | * @generated | ||
134 | */ | ||
135 | private EClass atomEClass = null; | ||
136 | |||
137 | /** | ||
138 | * <!-- begin-user-doc --> | ||
139 | * <!-- end-user-doc --> | ||
140 | * @generated | ||
141 | */ | ||
142 | private EClass implicitVariableEClass = null; | ||
143 | |||
144 | /** | ||
145 | * <!-- begin-user-doc --> | ||
146 | * <!-- end-user-doc --> | ||
147 | * @generated | ||
148 | */ | ||
149 | private EClass negativeLiteralEClass = null; | ||
150 | |||
151 | /** | ||
152 | * <!-- begin-user-doc --> | ||
153 | * <!-- end-user-doc --> | ||
154 | * @generated | ||
155 | */ | ||
156 | private EClass existentialQuantifierEClass = null; | ||
157 | |||
158 | /** | ||
159 | * <!-- begin-user-doc --> | ||
160 | * <!-- end-user-doc --> | ||
161 | * @generated | ||
162 | */ | ||
163 | private EClass assertionEClass = null; | ||
164 | |||
165 | /** | ||
166 | * <!-- begin-user-doc --> | ||
167 | * <!-- end-user-doc --> | ||
168 | * @generated | ||
169 | */ | ||
170 | private EClass nodeEClass = null; | ||
171 | |||
172 | /** | ||
173 | * <!-- begin-user-doc --> | ||
174 | * <!-- end-user-doc --> | ||
175 | * @generated | ||
176 | */ | ||
177 | private EClass scopeDeclarationEClass = null; | ||
178 | |||
179 | /** | ||
180 | * <!-- begin-user-doc --> | ||
181 | * <!-- end-user-doc --> | ||
182 | * @generated | ||
183 | */ | ||
184 | private EClass statementEClass = null; | ||
185 | |||
186 | /** | ||
187 | * <!-- begin-user-doc --> | ||
188 | * <!-- end-user-doc --> | ||
189 | * @generated | ||
190 | */ | ||
191 | private EClass typeScopeEClass = null; | ||
192 | |||
193 | /** | ||
194 | * <!-- begin-user-doc --> | ||
195 | * <!-- end-user-doc --> | ||
196 | * @generated | ||
197 | */ | ||
198 | private EClass multiplicityEClass = null; | ||
199 | |||
200 | /** | ||
201 | * <!-- begin-user-doc --> | ||
202 | * <!-- end-user-doc --> | ||
203 | * @generated | ||
204 | */ | ||
205 | private EClass rangeMultiplicityEClass = null; | ||
206 | |||
207 | /** | ||
208 | * <!-- begin-user-doc --> | ||
209 | * <!-- end-user-doc --> | ||
210 | * @generated | ||
211 | */ | ||
212 | private EClass exactMultiplicityEClass = null; | ||
213 | |||
214 | /** | ||
215 | * <!-- begin-user-doc --> | ||
216 | * <!-- end-user-doc --> | ||
217 | * @generated | ||
218 | */ | ||
219 | private EClass unboundedMultiplicityEClass = null; | ||
220 | |||
221 | /** | ||
222 | * <!-- begin-user-doc --> | ||
223 | * <!-- end-user-doc --> | ||
224 | * @generated | ||
225 | */ | ||
226 | private EClass variableOrNodeArgumentEClass = null; | ||
227 | |||
228 | /** | ||
229 | * <!-- begin-user-doc --> | ||
230 | * <!-- end-user-doc --> | ||
231 | * @generated | ||
232 | */ | ||
233 | private EClass argumentEClass = null; | ||
234 | |||
235 | /** | ||
236 | * <!-- begin-user-doc --> | ||
237 | * <!-- end-user-doc --> | ||
238 | * @generated | ||
239 | */ | ||
240 | private EClass nodeAssertionArgumentEClass = null; | ||
241 | |||
242 | /** | ||
243 | * <!-- begin-user-doc --> | ||
244 | * <!-- end-user-doc --> | ||
245 | * @generated | ||
246 | */ | ||
247 | private EClass assertionArgumentEClass = null; | ||
248 | |||
249 | /** | ||
250 | * <!-- begin-user-doc --> | ||
251 | * <!-- end-user-doc --> | ||
252 | * @generated | ||
253 | */ | ||
254 | private EClass constantAssertionArgumentEClass = null; | ||
255 | |||
256 | /** | ||
257 | * <!-- begin-user-doc --> | ||
258 | * <!-- end-user-doc --> | ||
259 | * @generated | ||
260 | */ | ||
261 | private EClass nodeValueAssertionEClass = null; | ||
262 | |||
263 | /** | ||
264 | * <!-- begin-user-doc --> | ||
265 | * <!-- end-user-doc --> | ||
266 | * @generated | ||
267 | */ | ||
268 | private EClass enumDeclarationEClass = null; | ||
269 | |||
270 | /** | ||
271 | * <!-- begin-user-doc --> | ||
272 | * <!-- end-user-doc --> | ||
273 | * @generated | ||
274 | */ | ||
275 | private EClass variableOrNodeEClass = null; | ||
276 | |||
277 | /** | ||
278 | * <!-- begin-user-doc --> | ||
279 | * <!-- end-user-doc --> | ||
280 | * @generated | ||
281 | */ | ||
282 | private EClass constantEClass = null; | ||
283 | |||
284 | /** | ||
285 | * <!-- begin-user-doc --> | ||
286 | * <!-- end-user-doc --> | ||
287 | * @generated | ||
288 | */ | ||
289 | private EClass intConstantEClass = null; | ||
290 | |||
291 | /** | ||
292 | * <!-- begin-user-doc --> | ||
293 | * <!-- end-user-doc --> | ||
294 | * @generated | ||
295 | */ | ||
296 | private EClass realConstantEClass = null; | ||
297 | |||
298 | /** | ||
299 | * <!-- begin-user-doc --> | ||
300 | * <!-- end-user-doc --> | ||
301 | * @generated | ||
302 | */ | ||
303 | private EClass stringConstantEClass = null; | ||
304 | |||
305 | /** | ||
306 | * <!-- begin-user-doc --> | ||
307 | * <!-- end-user-doc --> | ||
308 | * @generated | ||
309 | */ | ||
310 | private EClass constantArgumentEClass = null; | ||
311 | |||
312 | /** | ||
313 | * <!-- begin-user-doc --> | ||
314 | * <!-- end-user-doc --> | ||
315 | * @generated | ||
316 | */ | ||
317 | private EEnum logicValueEEnum = null; | ||
318 | |||
319 | /** | ||
320 | * Creates an instance of the model <b>Package</b>, registered with | ||
321 | * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package | ||
322 | * package URI value. | ||
323 | * <p>Note: the correct way to create the package is via the static | ||
324 | * factory method {@link #init init()}, which also performs | ||
325 | * initialization of the package, or returns the registered package, | ||
326 | * if one already exists. | ||
327 | * <!-- begin-user-doc --> | ||
328 | * <!-- end-user-doc --> | ||
329 | * @see org.eclipse.emf.ecore.EPackage.Registry | ||
330 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#eNS_URI | ||
331 | * @see #init() | ||
332 | * @generated | ||
333 | */ | ||
334 | private ProblemPackageImpl() { | ||
335 | super(eNS_URI, ProblemFactory.eINSTANCE); | ||
336 | } | ||
337 | |||
338 | /** | ||
339 | * <!-- begin-user-doc --> | ||
340 | * <!-- end-user-doc --> | ||
341 | * @generated | ||
342 | */ | ||
343 | private static boolean isInited = false; | ||
344 | |||
345 | /** | ||
346 | * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. | ||
347 | * | ||
348 | * <p>This method is used to initialize {@link ProblemPackage#eINSTANCE} when that field is accessed. | ||
349 | * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. | ||
350 | * <!-- begin-user-doc --> | ||
351 | * <!-- end-user-doc --> | ||
352 | * @see #eNS_URI | ||
353 | * @see #createPackageContents() | ||
354 | * @see #initializePackageContents() | ||
355 | * @generated | ||
356 | */ | ||
357 | public static ProblemPackage init() { | ||
358 | if (isInited) | ||
359 | return (ProblemPackage) EPackage.Registry.INSTANCE.getEPackage(ProblemPackage.eNS_URI); | ||
360 | |||
361 | // Obtain or create and register package | ||
362 | Object registeredProblemPackage = EPackage.Registry.INSTANCE.get(eNS_URI); | ||
363 | ProblemPackageImpl theProblemPackage = registeredProblemPackage instanceof ProblemPackageImpl | ||
364 | ? (ProblemPackageImpl) registeredProblemPackage | ||
365 | : new ProblemPackageImpl(); | ||
366 | |||
367 | isInited = true; | ||
368 | |||
369 | // Create package meta-data objects | ||
370 | theProblemPackage.createPackageContents(); | ||
371 | |||
372 | // Initialize created meta-data | ||
373 | theProblemPackage.initializePackageContents(); | ||
374 | |||
375 | // Mark meta-data to indicate it can't be changed | ||
376 | theProblemPackage.freeze(); | ||
377 | |||
378 | // Update the registry and return the package | ||
379 | EPackage.Registry.INSTANCE.put(ProblemPackage.eNS_URI, theProblemPackage); | ||
380 | return theProblemPackage; | ||
381 | } | ||
382 | |||
383 | /** | ||
384 | * <!-- begin-user-doc --> | ||
385 | * <!-- end-user-doc --> | ||
386 | * @generated | ||
387 | */ | ||
388 | public EClass getProblem() { | ||
389 | return problemEClass; | ||
390 | } | ||
391 | |||
392 | /** | ||
393 | * <!-- begin-user-doc --> | ||
394 | * <!-- end-user-doc --> | ||
395 | * @generated | ||
396 | */ | ||
397 | public EReference getProblem_Nodes() { | ||
398 | return (EReference) problemEClass.getEStructuralFeatures().get(0); | ||
399 | } | ||
400 | |||
401 | /** | ||
402 | * <!-- begin-user-doc --> | ||
403 | * <!-- end-user-doc --> | ||
404 | * @generated | ||
405 | */ | ||
406 | public EReference getProblem_Statements() { | ||
407 | return (EReference) problemEClass.getEStructuralFeatures().get(1); | ||
408 | } | ||
409 | |||
410 | /** | ||
411 | * <!-- begin-user-doc --> | ||
412 | * <!-- end-user-doc --> | ||
413 | * @generated | ||
414 | */ | ||
415 | public EClass getRelation() { | ||
416 | return relationEClass; | ||
417 | } | ||
418 | |||
419 | /** | ||
420 | * <!-- begin-user-doc --> | ||
421 | * <!-- end-user-doc --> | ||
422 | * @generated | ||
423 | */ | ||
424 | public EClass getClassDeclaration() { | ||
425 | return classDeclarationEClass; | ||
426 | } | ||
427 | |||
428 | /** | ||
429 | * <!-- begin-user-doc --> | ||
430 | * <!-- end-user-doc --> | ||
431 | * @generated | ||
432 | */ | ||
433 | public EAttribute getClassDeclaration_Abstract() { | ||
434 | return (EAttribute) classDeclarationEClass.getEStructuralFeatures().get(0); | ||
435 | } | ||
436 | |||
437 | /** | ||
438 | * <!-- begin-user-doc --> | ||
439 | * <!-- end-user-doc --> | ||
440 | * @generated | ||
441 | */ | ||
442 | public EReference getClassDeclaration_SuperTypes() { | ||
443 | return (EReference) classDeclarationEClass.getEStructuralFeatures().get(1); | ||
444 | } | ||
445 | |||
446 | /** | ||
447 | * <!-- begin-user-doc --> | ||
448 | * <!-- end-user-doc --> | ||
449 | * @generated | ||
450 | */ | ||
451 | public EReference getClassDeclaration_ReferenceDeclarations() { | ||
452 | return (EReference) classDeclarationEClass.getEStructuralFeatures().get(2); | ||
453 | } | ||
454 | |||
455 | /** | ||
456 | * <!-- begin-user-doc --> | ||
457 | * <!-- end-user-doc --> | ||
458 | * @generated | ||
459 | */ | ||
460 | public EReference getClassDeclaration_NewNode() { | ||
461 | return (EReference) classDeclarationEClass.getEStructuralFeatures().get(3); | ||
462 | } | ||
463 | |||
464 | /** | ||
465 | * <!-- begin-user-doc --> | ||
466 | * <!-- end-user-doc --> | ||
467 | * @generated | ||
468 | */ | ||
469 | public EClass getReferenceDeclaration() { | ||
470 | return referenceDeclarationEClass; | ||
471 | } | ||
472 | |||
473 | /** | ||
474 | * <!-- begin-user-doc --> | ||
475 | * <!-- end-user-doc --> | ||
476 | * @generated | ||
477 | */ | ||
478 | public EReference getReferenceDeclaration_ReferenceType() { | ||
479 | return (EReference) referenceDeclarationEClass.getEStructuralFeatures().get(0); | ||
480 | } | ||
481 | |||
482 | /** | ||
483 | * <!-- begin-user-doc --> | ||
484 | * <!-- end-user-doc --> | ||
485 | * @generated | ||
486 | */ | ||
487 | public EReference getReferenceDeclaration_Opposite() { | ||
488 | return (EReference) referenceDeclarationEClass.getEStructuralFeatures().get(1); | ||
489 | } | ||
490 | |||
491 | /** | ||
492 | * <!-- begin-user-doc --> | ||
493 | * <!-- end-user-doc --> | ||
494 | * @generated | ||
495 | */ | ||
496 | public EAttribute getReferenceDeclaration_Containment() { | ||
497 | return (EAttribute) referenceDeclarationEClass.getEStructuralFeatures().get(2); | ||
498 | } | ||
499 | |||
500 | /** | ||
501 | * <!-- begin-user-doc --> | ||
502 | * <!-- end-user-doc --> | ||
503 | * @generated | ||
504 | */ | ||
505 | public EReference getReferenceDeclaration_Multiplicity() { | ||
506 | return (EReference) referenceDeclarationEClass.getEStructuralFeatures().get(3); | ||
507 | } | ||
508 | |||
509 | /** | ||
510 | * <!-- begin-user-doc --> | ||
511 | * <!-- end-user-doc --> | ||
512 | * @generated | ||
513 | */ | ||
514 | public EClass getNamedElement() { | ||
515 | return namedElementEClass; | ||
516 | } | ||
517 | |||
518 | /** | ||
519 | * <!-- begin-user-doc --> | ||
520 | * <!-- end-user-doc --> | ||
521 | * @generated | ||
522 | */ | ||
523 | public EAttribute getNamedElement_Name() { | ||
524 | return (EAttribute) namedElementEClass.getEStructuralFeatures().get(0); | ||
525 | } | ||
526 | |||
527 | /** | ||
528 | * <!-- begin-user-doc --> | ||
529 | * <!-- end-user-doc --> | ||
530 | * @generated | ||
531 | */ | ||
532 | public EClass getPredicateDefinition() { | ||
533 | return predicateDefinitionEClass; | ||
534 | } | ||
535 | |||
536 | /** | ||
537 | * <!-- begin-user-doc --> | ||
538 | * <!-- end-user-doc --> | ||
539 | * @generated | ||
540 | */ | ||
541 | public EAttribute getPredicateDefinition_Error() { | ||
542 | return (EAttribute) predicateDefinitionEClass.getEStructuralFeatures().get(0); | ||
543 | } | ||
544 | |||
545 | /** | ||
546 | * <!-- begin-user-doc --> | ||
547 | * <!-- end-user-doc --> | ||
548 | * @generated | ||
549 | */ | ||
550 | public EReference getPredicateDefinition_Parameters() { | ||
551 | return (EReference) predicateDefinitionEClass.getEStructuralFeatures().get(1); | ||
552 | } | ||
553 | |||
554 | /** | ||
555 | * <!-- begin-user-doc --> | ||
556 | * <!-- end-user-doc --> | ||
557 | * @generated | ||
558 | */ | ||
559 | public EReference getPredicateDefinition_Bodies() { | ||
560 | return (EReference) predicateDefinitionEClass.getEStructuralFeatures().get(2); | ||
561 | } | ||
562 | |||
563 | /** | ||
564 | * <!-- begin-user-doc --> | ||
565 | * <!-- end-user-doc --> | ||
566 | * @generated | ||
567 | */ | ||
568 | public EClass getParameter() { | ||
569 | return parameterEClass; | ||
570 | } | ||
571 | |||
572 | /** | ||
573 | * <!-- begin-user-doc --> | ||
574 | * <!-- end-user-doc --> | ||
575 | * @generated | ||
576 | */ | ||
577 | public EReference getParameter_ParameterType() { | ||
578 | return (EReference) parameterEClass.getEStructuralFeatures().get(0); | ||
579 | } | ||
580 | |||
581 | /** | ||
582 | * <!-- begin-user-doc --> | ||
583 | * <!-- end-user-doc --> | ||
584 | * @generated | ||
585 | */ | ||
586 | public EClass getVariable() { | ||
587 | return variableEClass; | ||
588 | } | ||
589 | |||
590 | /** | ||
591 | * <!-- begin-user-doc --> | ||
592 | * <!-- end-user-doc --> | ||
593 | * @generated | ||
594 | */ | ||
595 | public EClass getConjunction() { | ||
596 | return conjunctionEClass; | ||
597 | } | ||
598 | |||
599 | /** | ||
600 | * <!-- begin-user-doc --> | ||
601 | * <!-- end-user-doc --> | ||
602 | * @generated | ||
603 | */ | ||
604 | public EReference getConjunction_Literals() { | ||
605 | return (EReference) conjunctionEClass.getEStructuralFeatures().get(0); | ||
606 | } | ||
607 | |||
608 | /** | ||
609 | * <!-- begin-user-doc --> | ||
610 | * <!-- end-user-doc --> | ||
611 | * @generated | ||
612 | */ | ||
613 | public EClass getLiteral() { | ||
614 | return literalEClass; | ||
615 | } | ||
616 | |||
617 | /** | ||
618 | * <!-- begin-user-doc --> | ||
619 | * <!-- end-user-doc --> | ||
620 | * @generated | ||
621 | */ | ||
622 | public EClass getAtom() { | ||
623 | return atomEClass; | ||
624 | } | ||
625 | |||
626 | /** | ||
627 | * <!-- begin-user-doc --> | ||
628 | * <!-- end-user-doc --> | ||
629 | * @generated | ||
630 | */ | ||
631 | public EReference getAtom_Relation() { | ||
632 | return (EReference) atomEClass.getEStructuralFeatures().get(0); | ||
633 | } | ||
634 | |||
635 | /** | ||
636 | * <!-- begin-user-doc --> | ||
637 | * <!-- end-user-doc --> | ||
638 | * @generated | ||
639 | */ | ||
640 | public EReference getAtom_Arguments() { | ||
641 | return (EReference) atomEClass.getEStructuralFeatures().get(2); | ||
642 | } | ||
643 | |||
644 | /** | ||
645 | * <!-- begin-user-doc --> | ||
646 | * <!-- end-user-doc --> | ||
647 | * @generated | ||
648 | */ | ||
649 | public EAttribute getAtom_TransitiveClosure() { | ||
650 | return (EAttribute) atomEClass.getEStructuralFeatures().get(1); | ||
651 | } | ||
652 | |||
653 | /** | ||
654 | * <!-- begin-user-doc --> | ||
655 | * <!-- end-user-doc --> | ||
656 | * @generated | ||
657 | */ | ||
658 | public EClass getImplicitVariable() { | ||
659 | return implicitVariableEClass; | ||
660 | } | ||
661 | |||
662 | /** | ||
663 | * <!-- begin-user-doc --> | ||
664 | * <!-- end-user-doc --> | ||
665 | * @generated | ||
666 | */ | ||
667 | public EClass getNegativeLiteral() { | ||
668 | return negativeLiteralEClass; | ||
669 | } | ||
670 | |||
671 | /** | ||
672 | * <!-- begin-user-doc --> | ||
673 | * <!-- end-user-doc --> | ||
674 | * @generated | ||
675 | */ | ||
676 | public EReference getNegativeLiteral_Atom() { | ||
677 | return (EReference) negativeLiteralEClass.getEStructuralFeatures().get(0); | ||
678 | } | ||
679 | |||
680 | /** | ||
681 | * <!-- begin-user-doc --> | ||
682 | * <!-- end-user-doc --> | ||
683 | * @generated | ||
684 | */ | ||
685 | public EClass getExistentialQuantifier() { | ||
686 | return existentialQuantifierEClass; | ||
687 | } | ||
688 | |||
689 | /** | ||
690 | * <!-- begin-user-doc --> | ||
691 | * <!-- end-user-doc --> | ||
692 | * @generated | ||
693 | */ | ||
694 | public EReference getExistentialQuantifier_ImplicitVariables() { | ||
695 | return (EReference) existentialQuantifierEClass.getEStructuralFeatures().get(0); | ||
696 | } | ||
697 | |||
698 | /** | ||
699 | * <!-- begin-user-doc --> | ||
700 | * <!-- end-user-doc --> | ||
701 | * @generated | ||
702 | */ | ||
703 | public EClass getAssertion() { | ||
704 | return assertionEClass; | ||
705 | } | ||
706 | |||
707 | /** | ||
708 | * <!-- begin-user-doc --> | ||
709 | * <!-- end-user-doc --> | ||
710 | * @generated | ||
711 | */ | ||
712 | public EReference getAssertion_Relation() { | ||
713 | return (EReference) assertionEClass.getEStructuralFeatures().get(0); | ||
714 | } | ||
715 | |||
716 | /** | ||
717 | * <!-- begin-user-doc --> | ||
718 | * <!-- end-user-doc --> | ||
719 | * @generated | ||
720 | */ | ||
721 | public EReference getAssertion_Arguments() { | ||
722 | return (EReference) assertionEClass.getEStructuralFeatures().get(2); | ||
723 | } | ||
724 | |||
725 | /** | ||
726 | * <!-- begin-user-doc --> | ||
727 | * <!-- end-user-doc --> | ||
728 | * @generated | ||
729 | */ | ||
730 | public EAttribute getAssertion_Value() { | ||
731 | return (EAttribute) assertionEClass.getEStructuralFeatures().get(1); | ||
732 | } | ||
733 | |||
734 | /** | ||
735 | * <!-- begin-user-doc --> | ||
736 | * <!-- end-user-doc --> | ||
737 | * @generated | ||
738 | */ | ||
739 | public EClass getNode() { | ||
740 | return nodeEClass; | ||
741 | } | ||
742 | |||
743 | /** | ||
744 | * <!-- begin-user-doc --> | ||
745 | * <!-- end-user-doc --> | ||
746 | * @generated | ||
747 | */ | ||
748 | public EClass getScopeDeclaration() { | ||
749 | return scopeDeclarationEClass; | ||
750 | } | ||
751 | |||
752 | /** | ||
753 | * <!-- begin-user-doc --> | ||
754 | * <!-- end-user-doc --> | ||
755 | * @generated | ||
756 | */ | ||
757 | public EReference getScopeDeclaration_TypeScopes() { | ||
758 | return (EReference) scopeDeclarationEClass.getEStructuralFeatures().get(0); | ||
759 | } | ||
760 | |||
761 | /** | ||
762 | * <!-- begin-user-doc --> | ||
763 | * <!-- end-user-doc --> | ||
764 | * @generated | ||
765 | */ | ||
766 | public EClass getStatement() { | ||
767 | return statementEClass; | ||
768 | } | ||
769 | |||
770 | /** | ||
771 | * <!-- begin-user-doc --> | ||
772 | * <!-- end-user-doc --> | ||
773 | * @generated | ||
774 | */ | ||
775 | public EClass getTypeScope() { | ||
776 | return typeScopeEClass; | ||
777 | } | ||
778 | |||
779 | /** | ||
780 | * <!-- begin-user-doc --> | ||
781 | * <!-- end-user-doc --> | ||
782 | * @generated | ||
783 | */ | ||
784 | public EReference getTypeScope_TargetType() { | ||
785 | return (EReference) typeScopeEClass.getEStructuralFeatures().get(0); | ||
786 | } | ||
787 | |||
788 | /** | ||
789 | * <!-- begin-user-doc --> | ||
790 | * <!-- end-user-doc --> | ||
791 | * @generated | ||
792 | */ | ||
793 | public EAttribute getTypeScope_Increment() { | ||
794 | return (EAttribute) typeScopeEClass.getEStructuralFeatures().get(1); | ||
795 | } | ||
796 | |||
797 | /** | ||
798 | * <!-- begin-user-doc --> | ||
799 | * <!-- end-user-doc --> | ||
800 | * @generated | ||
801 | */ | ||
802 | public EReference getTypeScope_Multiplicity() { | ||
803 | return (EReference) typeScopeEClass.getEStructuralFeatures().get(2); | ||
804 | } | ||
805 | |||
806 | /** | ||
807 | * <!-- begin-user-doc --> | ||
808 | * <!-- end-user-doc --> | ||
809 | * @generated | ||
810 | */ | ||
811 | public EClass getMultiplicity() { | ||
812 | return multiplicityEClass; | ||
813 | } | ||
814 | |||
815 | /** | ||
816 | * <!-- begin-user-doc --> | ||
817 | * <!-- end-user-doc --> | ||
818 | * @generated | ||
819 | */ | ||
820 | public EClass getRangeMultiplicity() { | ||
821 | return rangeMultiplicityEClass; | ||
822 | } | ||
823 | |||
824 | /** | ||
825 | * <!-- begin-user-doc --> | ||
826 | * <!-- end-user-doc --> | ||
827 | * @generated | ||
828 | */ | ||
829 | public EAttribute getRangeMultiplicity_LowerBound() { | ||
830 | return (EAttribute) rangeMultiplicityEClass.getEStructuralFeatures().get(0); | ||
831 | } | ||
832 | |||
833 | /** | ||
834 | * <!-- begin-user-doc --> | ||
835 | * <!-- end-user-doc --> | ||
836 | * @generated | ||
837 | */ | ||
838 | public EAttribute getRangeMultiplicity_UpperBound() { | ||
839 | return (EAttribute) rangeMultiplicityEClass.getEStructuralFeatures().get(1); | ||
840 | } | ||
841 | |||
842 | /** | ||
843 | * <!-- begin-user-doc --> | ||
844 | * <!-- end-user-doc --> | ||
845 | * @generated | ||
846 | */ | ||
847 | public EClass getExactMultiplicity() { | ||
848 | return exactMultiplicityEClass; | ||
849 | } | ||
850 | |||
851 | /** | ||
852 | * <!-- begin-user-doc --> | ||
853 | * <!-- end-user-doc --> | ||
854 | * @generated | ||
855 | */ | ||
856 | public EAttribute getExactMultiplicity_ExactValue() { | ||
857 | return (EAttribute) exactMultiplicityEClass.getEStructuralFeatures().get(0); | ||
858 | } | ||
859 | |||
860 | /** | ||
861 | * <!-- begin-user-doc --> | ||
862 | * <!-- end-user-doc --> | ||
863 | * @generated | ||
864 | */ | ||
865 | public EClass getUnboundedMultiplicity() { | ||
866 | return unboundedMultiplicityEClass; | ||
867 | } | ||
868 | |||
869 | /** | ||
870 | * <!-- begin-user-doc --> | ||
871 | * <!-- end-user-doc --> | ||
872 | * @generated | ||
873 | */ | ||
874 | public EClass getVariableOrNodeArgument() { | ||
875 | return variableOrNodeArgumentEClass; | ||
876 | } | ||
877 | |||
878 | /** | ||
879 | * <!-- begin-user-doc --> | ||
880 | * <!-- end-user-doc --> | ||
881 | * @generated | ||
882 | */ | ||
883 | public EReference getVariableOrNodeArgument_VariableOrNode() { | ||
884 | return (EReference) variableOrNodeArgumentEClass.getEStructuralFeatures().get(0); | ||
885 | } | ||
886 | |||
887 | /** | ||
888 | * <!-- begin-user-doc --> | ||
889 | * <!-- end-user-doc --> | ||
890 | * @generated | ||
891 | */ | ||
892 | public EReference getVariableOrNodeArgument_SingletonVariable() { | ||
893 | return (EReference) variableOrNodeArgumentEClass.getEStructuralFeatures().get(1); | ||
894 | } | ||
895 | |||
896 | /** | ||
897 | * <!-- begin-user-doc --> | ||
898 | * <!-- end-user-doc --> | ||
899 | * @generated | ||
900 | */ | ||
901 | public EClass getArgument() { | ||
902 | return argumentEClass; | ||
903 | } | ||
904 | |||
905 | /** | ||
906 | * <!-- begin-user-doc --> | ||
907 | * <!-- end-user-doc --> | ||
908 | * @generated | ||
909 | */ | ||
910 | public EClass getNodeAssertionArgument() { | ||
911 | return nodeAssertionArgumentEClass; | ||
912 | } | ||
913 | |||
914 | /** | ||
915 | * <!-- begin-user-doc --> | ||
916 | * <!-- end-user-doc --> | ||
917 | * @generated | ||
918 | */ | ||
919 | public EReference getNodeAssertionArgument_Node() { | ||
920 | return (EReference) nodeAssertionArgumentEClass.getEStructuralFeatures().get(0); | ||
921 | } | ||
922 | |||
923 | /** | ||
924 | * <!-- begin-user-doc --> | ||
925 | * <!-- end-user-doc --> | ||
926 | * @generated | ||
927 | */ | ||
928 | public EClass getAssertionArgument() { | ||
929 | return assertionArgumentEClass; | ||
930 | } | ||
931 | |||
932 | /** | ||
933 | * <!-- begin-user-doc --> | ||
934 | * <!-- end-user-doc --> | ||
935 | * @generated | ||
936 | */ | ||
937 | public EClass getConstantAssertionArgument() { | ||
938 | return constantAssertionArgumentEClass; | ||
939 | } | ||
940 | |||
941 | /** | ||
942 | * <!-- begin-user-doc --> | ||
943 | * <!-- end-user-doc --> | ||
944 | * @generated | ||
945 | */ | ||
946 | public EReference getConstantAssertionArgument_Constant() { | ||
947 | return (EReference) constantAssertionArgumentEClass.getEStructuralFeatures().get(0); | ||
948 | } | ||
949 | |||
950 | /** | ||
951 | * <!-- begin-user-doc --> | ||
952 | * <!-- end-user-doc --> | ||
953 | * @generated | ||
954 | */ | ||
955 | public EClass getNodeValueAssertion() { | ||
956 | return nodeValueAssertionEClass; | ||
957 | } | ||
958 | |||
959 | /** | ||
960 | * <!-- begin-user-doc --> | ||
961 | * <!-- end-user-doc --> | ||
962 | * @generated | ||
963 | */ | ||
964 | public EReference getNodeValueAssertion_Node() { | ||
965 | return (EReference) nodeValueAssertionEClass.getEStructuralFeatures().get(0); | ||
966 | } | ||
967 | |||
968 | /** | ||
969 | * <!-- begin-user-doc --> | ||
970 | * <!-- end-user-doc --> | ||
971 | * @generated | ||
972 | */ | ||
973 | public EReference getNodeValueAssertion_Value() { | ||
974 | return (EReference) nodeValueAssertionEClass.getEStructuralFeatures().get(1); | ||
975 | } | ||
976 | |||
977 | /** | ||
978 | * <!-- begin-user-doc --> | ||
979 | * <!-- end-user-doc --> | ||
980 | * @generated | ||
981 | */ | ||
982 | public EClass getEnumDeclaration() { | ||
983 | return enumDeclarationEClass; | ||
984 | } | ||
985 | |||
986 | /** | ||
987 | * <!-- begin-user-doc --> | ||
988 | * <!-- end-user-doc --> | ||
989 | * @generated | ||
990 | */ | ||
991 | public EReference getEnumDeclaration_Literals() { | ||
992 | return (EReference) enumDeclarationEClass.getEStructuralFeatures().get(0); | ||
993 | } | ||
994 | |||
995 | /** | ||
996 | * <!-- begin-user-doc --> | ||
997 | * <!-- end-user-doc --> | ||
998 | * @generated | ||
999 | */ | ||
1000 | public EClass getVariableOrNode() { | ||
1001 | return variableOrNodeEClass; | ||
1002 | } | ||
1003 | |||
1004 | /** | ||
1005 | * <!-- begin-user-doc --> | ||
1006 | * <!-- end-user-doc --> | ||
1007 | * @generated | ||
1008 | */ | ||
1009 | public EClass getConstant() { | ||
1010 | return constantEClass; | ||
1011 | } | ||
1012 | |||
1013 | /** | ||
1014 | * <!-- begin-user-doc --> | ||
1015 | * <!-- end-user-doc --> | ||
1016 | * @generated | ||
1017 | */ | ||
1018 | public EClass getIntConstant() { | ||
1019 | return intConstantEClass; | ||
1020 | } | ||
1021 | |||
1022 | /** | ||
1023 | * <!-- begin-user-doc --> | ||
1024 | * <!-- end-user-doc --> | ||
1025 | * @generated | ||
1026 | */ | ||
1027 | public EAttribute getIntConstant_IntValue() { | ||
1028 | return (EAttribute) intConstantEClass.getEStructuralFeatures().get(0); | ||
1029 | } | ||
1030 | |||
1031 | /** | ||
1032 | * <!-- begin-user-doc --> | ||
1033 | * <!-- end-user-doc --> | ||
1034 | * @generated | ||
1035 | */ | ||
1036 | public EClass getRealConstant() { | ||
1037 | return realConstantEClass; | ||
1038 | } | ||
1039 | |||
1040 | /** | ||
1041 | * <!-- begin-user-doc --> | ||
1042 | * <!-- end-user-doc --> | ||
1043 | * @generated | ||
1044 | */ | ||
1045 | public EAttribute getRealConstant_RealValue() { | ||
1046 | return (EAttribute) realConstantEClass.getEStructuralFeatures().get(0); | ||
1047 | } | ||
1048 | |||
1049 | /** | ||
1050 | * <!-- begin-user-doc --> | ||
1051 | * <!-- end-user-doc --> | ||
1052 | * @generated | ||
1053 | */ | ||
1054 | public EClass getStringConstant() { | ||
1055 | return stringConstantEClass; | ||
1056 | } | ||
1057 | |||
1058 | /** | ||
1059 | * <!-- begin-user-doc --> | ||
1060 | * <!-- end-user-doc --> | ||
1061 | * @generated | ||
1062 | */ | ||
1063 | public EAttribute getStringConstant_StringValue() { | ||
1064 | return (EAttribute) stringConstantEClass.getEStructuralFeatures().get(0); | ||
1065 | } | ||
1066 | |||
1067 | /** | ||
1068 | * <!-- begin-user-doc --> | ||
1069 | * <!-- end-user-doc --> | ||
1070 | * @generated | ||
1071 | */ | ||
1072 | public EClass getConstantArgument() { | ||
1073 | return constantArgumentEClass; | ||
1074 | } | ||
1075 | |||
1076 | /** | ||
1077 | * <!-- begin-user-doc --> | ||
1078 | * <!-- end-user-doc --> | ||
1079 | * @generated | ||
1080 | */ | ||
1081 | public EReference getConstantArgument_Constant() { | ||
1082 | return (EReference) constantArgumentEClass.getEStructuralFeatures().get(0); | ||
1083 | } | ||
1084 | |||
1085 | /** | ||
1086 | * <!-- begin-user-doc --> | ||
1087 | * <!-- end-user-doc --> | ||
1088 | * @generated | ||
1089 | */ | ||
1090 | public EEnum getLogicValue() { | ||
1091 | return logicValueEEnum; | ||
1092 | } | ||
1093 | |||
1094 | /** | ||
1095 | * <!-- begin-user-doc --> | ||
1096 | * <!-- end-user-doc --> | ||
1097 | * @generated | ||
1098 | */ | ||
1099 | public ProblemFactory getProblemFactory() { | ||
1100 | return (ProblemFactory) getEFactoryInstance(); | ||
1101 | } | ||
1102 | |||
1103 | /** | ||
1104 | * <!-- begin-user-doc --> | ||
1105 | * <!-- end-user-doc --> | ||
1106 | * @generated | ||
1107 | */ | ||
1108 | private boolean isCreated = false; | ||
1109 | |||
1110 | /** | ||
1111 | * Creates the meta-model objects for the package. This method is | ||
1112 | * guarded to have no affect on any invocation but its first. | ||
1113 | * <!-- begin-user-doc --> | ||
1114 | * <!-- end-user-doc --> | ||
1115 | * @generated | ||
1116 | */ | ||
1117 | public void createPackageContents() { | ||
1118 | if (isCreated) | ||
1119 | return; | ||
1120 | isCreated = true; | ||
1121 | |||
1122 | // Create classes and their features | ||
1123 | problemEClass = createEClass(PROBLEM); | ||
1124 | createEReference(problemEClass, PROBLEM__NODES); | ||
1125 | createEReference(problemEClass, PROBLEM__STATEMENTS); | ||
1126 | |||
1127 | relationEClass = createEClass(RELATION); | ||
1128 | |||
1129 | classDeclarationEClass = createEClass(CLASS_DECLARATION); | ||
1130 | createEAttribute(classDeclarationEClass, CLASS_DECLARATION__ABSTRACT); | ||
1131 | createEReference(classDeclarationEClass, CLASS_DECLARATION__SUPER_TYPES); | ||
1132 | createEReference(classDeclarationEClass, CLASS_DECLARATION__REFERENCE_DECLARATIONS); | ||
1133 | createEReference(classDeclarationEClass, CLASS_DECLARATION__NEW_NODE); | ||
1134 | |||
1135 | referenceDeclarationEClass = createEClass(REFERENCE_DECLARATION); | ||
1136 | createEReference(referenceDeclarationEClass, REFERENCE_DECLARATION__REFERENCE_TYPE); | ||
1137 | createEReference(referenceDeclarationEClass, REFERENCE_DECLARATION__OPPOSITE); | ||
1138 | createEAttribute(referenceDeclarationEClass, REFERENCE_DECLARATION__CONTAINMENT); | ||
1139 | createEReference(referenceDeclarationEClass, REFERENCE_DECLARATION__MULTIPLICITY); | ||
1140 | |||
1141 | namedElementEClass = createEClass(NAMED_ELEMENT); | ||
1142 | createEAttribute(namedElementEClass, NAMED_ELEMENT__NAME); | ||
1143 | |||
1144 | predicateDefinitionEClass = createEClass(PREDICATE_DEFINITION); | ||
1145 | createEAttribute(predicateDefinitionEClass, PREDICATE_DEFINITION__ERROR); | ||
1146 | createEReference(predicateDefinitionEClass, PREDICATE_DEFINITION__PARAMETERS); | ||
1147 | createEReference(predicateDefinitionEClass, PREDICATE_DEFINITION__BODIES); | ||
1148 | |||
1149 | parameterEClass = createEClass(PARAMETER); | ||
1150 | createEReference(parameterEClass, PARAMETER__PARAMETER_TYPE); | ||
1151 | |||
1152 | variableEClass = createEClass(VARIABLE); | ||
1153 | |||
1154 | conjunctionEClass = createEClass(CONJUNCTION); | ||
1155 | createEReference(conjunctionEClass, CONJUNCTION__LITERALS); | ||
1156 | |||
1157 | literalEClass = createEClass(LITERAL); | ||
1158 | |||
1159 | atomEClass = createEClass(ATOM); | ||
1160 | createEReference(atomEClass, ATOM__RELATION); | ||
1161 | createEAttribute(atomEClass, ATOM__TRANSITIVE_CLOSURE); | ||
1162 | createEReference(atomEClass, ATOM__ARGUMENTS); | ||
1163 | |||
1164 | implicitVariableEClass = createEClass(IMPLICIT_VARIABLE); | ||
1165 | |||
1166 | negativeLiteralEClass = createEClass(NEGATIVE_LITERAL); | ||
1167 | createEReference(negativeLiteralEClass, NEGATIVE_LITERAL__ATOM); | ||
1168 | |||
1169 | existentialQuantifierEClass = createEClass(EXISTENTIAL_QUANTIFIER); | ||
1170 | createEReference(existentialQuantifierEClass, EXISTENTIAL_QUANTIFIER__IMPLICIT_VARIABLES); | ||
1171 | |||
1172 | assertionEClass = createEClass(ASSERTION); | ||
1173 | createEReference(assertionEClass, ASSERTION__RELATION); | ||
1174 | createEAttribute(assertionEClass, ASSERTION__VALUE); | ||
1175 | createEReference(assertionEClass, ASSERTION__ARGUMENTS); | ||
1176 | |||
1177 | nodeEClass = createEClass(NODE); | ||
1178 | |||
1179 | scopeDeclarationEClass = createEClass(SCOPE_DECLARATION); | ||
1180 | createEReference(scopeDeclarationEClass, SCOPE_DECLARATION__TYPE_SCOPES); | ||
1181 | |||
1182 | statementEClass = createEClass(STATEMENT); | ||
1183 | |||
1184 | typeScopeEClass = createEClass(TYPE_SCOPE); | ||
1185 | createEReference(typeScopeEClass, TYPE_SCOPE__TARGET_TYPE); | ||
1186 | createEAttribute(typeScopeEClass, TYPE_SCOPE__INCREMENT); | ||
1187 | createEReference(typeScopeEClass, TYPE_SCOPE__MULTIPLICITY); | ||
1188 | |||
1189 | multiplicityEClass = createEClass(MULTIPLICITY); | ||
1190 | |||
1191 | rangeMultiplicityEClass = createEClass(RANGE_MULTIPLICITY); | ||
1192 | createEAttribute(rangeMultiplicityEClass, RANGE_MULTIPLICITY__LOWER_BOUND); | ||
1193 | createEAttribute(rangeMultiplicityEClass, RANGE_MULTIPLICITY__UPPER_BOUND); | ||
1194 | |||
1195 | exactMultiplicityEClass = createEClass(EXACT_MULTIPLICITY); | ||
1196 | createEAttribute(exactMultiplicityEClass, EXACT_MULTIPLICITY__EXACT_VALUE); | ||
1197 | |||
1198 | unboundedMultiplicityEClass = createEClass(UNBOUNDED_MULTIPLICITY); | ||
1199 | |||
1200 | variableOrNodeArgumentEClass = createEClass(VARIABLE_OR_NODE_ARGUMENT); | ||
1201 | createEReference(variableOrNodeArgumentEClass, VARIABLE_OR_NODE_ARGUMENT__VARIABLE_OR_NODE); | ||
1202 | createEReference(variableOrNodeArgumentEClass, VARIABLE_OR_NODE_ARGUMENT__SINGLETON_VARIABLE); | ||
1203 | |||
1204 | enumDeclarationEClass = createEClass(ENUM_DECLARATION); | ||
1205 | createEReference(enumDeclarationEClass, ENUM_DECLARATION__LITERALS); | ||
1206 | |||
1207 | variableOrNodeEClass = createEClass(VARIABLE_OR_NODE); | ||
1208 | |||
1209 | constantEClass = createEClass(CONSTANT); | ||
1210 | |||
1211 | intConstantEClass = createEClass(INT_CONSTANT); | ||
1212 | createEAttribute(intConstantEClass, INT_CONSTANT__INT_VALUE); | ||
1213 | |||
1214 | realConstantEClass = createEClass(REAL_CONSTANT); | ||
1215 | createEAttribute(realConstantEClass, REAL_CONSTANT__REAL_VALUE); | ||
1216 | |||
1217 | stringConstantEClass = createEClass(STRING_CONSTANT); | ||
1218 | createEAttribute(stringConstantEClass, STRING_CONSTANT__STRING_VALUE); | ||
1219 | |||
1220 | constantArgumentEClass = createEClass(CONSTANT_ARGUMENT); | ||
1221 | createEReference(constantArgumentEClass, CONSTANT_ARGUMENT__CONSTANT); | ||
1222 | |||
1223 | argumentEClass = createEClass(ARGUMENT); | ||
1224 | |||
1225 | nodeAssertionArgumentEClass = createEClass(NODE_ASSERTION_ARGUMENT); | ||
1226 | createEReference(nodeAssertionArgumentEClass, NODE_ASSERTION_ARGUMENT__NODE); | ||
1227 | |||
1228 | assertionArgumentEClass = createEClass(ASSERTION_ARGUMENT); | ||
1229 | |||
1230 | constantAssertionArgumentEClass = createEClass(CONSTANT_ASSERTION_ARGUMENT); | ||
1231 | createEReference(constantAssertionArgumentEClass, CONSTANT_ASSERTION_ARGUMENT__CONSTANT); | ||
1232 | |||
1233 | nodeValueAssertionEClass = createEClass(NODE_VALUE_ASSERTION); | ||
1234 | createEReference(nodeValueAssertionEClass, NODE_VALUE_ASSERTION__NODE); | ||
1235 | createEReference(nodeValueAssertionEClass, NODE_VALUE_ASSERTION__VALUE); | ||
1236 | |||
1237 | // Create enums | ||
1238 | logicValueEEnum = createEEnum(LOGIC_VALUE); | ||
1239 | } | ||
1240 | |||
1241 | /** | ||
1242 | * <!-- begin-user-doc --> | ||
1243 | * <!-- end-user-doc --> | ||
1244 | * @generated | ||
1245 | */ | ||
1246 | private boolean isInitialized = false; | ||
1247 | |||
1248 | /** | ||
1249 | * Complete the initialization of the package and its meta-model. This | ||
1250 | * method is guarded to have no affect on any invocation but its first. | ||
1251 | * <!-- begin-user-doc --> | ||
1252 | * <!-- end-user-doc --> | ||
1253 | * @generated | ||
1254 | */ | ||
1255 | public void initializePackageContents() { | ||
1256 | if (isInitialized) | ||
1257 | return; | ||
1258 | isInitialized = true; | ||
1259 | |||
1260 | // Initialize package | ||
1261 | setName(eNAME); | ||
1262 | setNsPrefix(eNS_PREFIX); | ||
1263 | setNsURI(eNS_URI); | ||
1264 | |||
1265 | // Create type parameters | ||
1266 | |||
1267 | // Set bounds for type parameters | ||
1268 | |||
1269 | // Add supertypes to classes | ||
1270 | problemEClass.getESuperTypes().add(this.getNamedElement()); | ||
1271 | relationEClass.getESuperTypes().add(this.getNamedElement()); | ||
1272 | classDeclarationEClass.getESuperTypes().add(this.getRelation()); | ||
1273 | classDeclarationEClass.getESuperTypes().add(this.getStatement()); | ||
1274 | referenceDeclarationEClass.getESuperTypes().add(this.getRelation()); | ||
1275 | predicateDefinitionEClass.getESuperTypes().add(this.getRelation()); | ||
1276 | predicateDefinitionEClass.getESuperTypes().add(this.getStatement()); | ||
1277 | parameterEClass.getESuperTypes().add(this.getVariable()); | ||
1278 | variableEClass.getESuperTypes().add(this.getVariableOrNode()); | ||
1279 | conjunctionEClass.getESuperTypes().add(this.getExistentialQuantifier()); | ||
1280 | atomEClass.getESuperTypes().add(this.getLiteral()); | ||
1281 | implicitVariableEClass.getESuperTypes().add(this.getVariable()); | ||
1282 | negativeLiteralEClass.getESuperTypes().add(this.getExistentialQuantifier()); | ||
1283 | negativeLiteralEClass.getESuperTypes().add(this.getLiteral()); | ||
1284 | assertionEClass.getESuperTypes().add(this.getStatement()); | ||
1285 | nodeEClass.getESuperTypes().add(this.getVariableOrNode()); | ||
1286 | scopeDeclarationEClass.getESuperTypes().add(this.getStatement()); | ||
1287 | rangeMultiplicityEClass.getESuperTypes().add(this.getMultiplicity()); | ||
1288 | exactMultiplicityEClass.getESuperTypes().add(this.getMultiplicity()); | ||
1289 | unboundedMultiplicityEClass.getESuperTypes().add(this.getMultiplicity()); | ||
1290 | variableOrNodeArgumentEClass.getESuperTypes().add(this.getArgument()); | ||
1291 | enumDeclarationEClass.getESuperTypes().add(this.getRelation()); | ||
1292 | enumDeclarationEClass.getESuperTypes().add(this.getStatement()); | ||
1293 | variableOrNodeEClass.getESuperTypes().add(this.getNamedElement()); | ||
1294 | intConstantEClass.getESuperTypes().add(this.getConstant()); | ||
1295 | realConstantEClass.getESuperTypes().add(this.getConstant()); | ||
1296 | stringConstantEClass.getESuperTypes().add(this.getConstant()); | ||
1297 | constantArgumentEClass.getESuperTypes().add(this.getArgument()); | ||
1298 | nodeAssertionArgumentEClass.getESuperTypes().add(this.getAssertionArgument()); | ||
1299 | constantAssertionArgumentEClass.getESuperTypes().add(this.getAssertionArgument()); | ||
1300 | nodeValueAssertionEClass.getESuperTypes().add(this.getStatement()); | ||
1301 | |||
1302 | // Initialize classes, features, and operations; add parameters | ||
1303 | initEClass(problemEClass, Problem.class, "Problem", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1304 | initEReference(getProblem_Nodes(), this.getNode(), null, "nodes", null, 0, -1, Problem.class, !IS_TRANSIENT, | ||
1305 | !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, | ||
1306 | IS_ORDERED); | ||
1307 | initEReference(getProblem_Statements(), this.getStatement(), null, "statements", null, 0, -1, Problem.class, | ||
1308 | !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, | ||
1309 | IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1310 | |||
1311 | initEClass(relationEClass, Relation.class, "Relation", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1312 | |||
1313 | initEClass(classDeclarationEClass, ClassDeclaration.class, "ClassDeclaration", !IS_ABSTRACT, !IS_INTERFACE, | ||
1314 | IS_GENERATED_INSTANCE_CLASS); | ||
1315 | initEAttribute(getClassDeclaration_Abstract(), ecorePackage.getEBoolean(), "abstract", null, 0, 1, | ||
1316 | ClassDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, | ||
1317 | !IS_DERIVED, IS_ORDERED); | ||
1318 | initEReference(getClassDeclaration_SuperTypes(), this.getRelation(), null, "superTypes", null, 0, -1, | ||
1319 | ClassDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, | ||
1320 | !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1321 | initEReference(getClassDeclaration_ReferenceDeclarations(), this.getReferenceDeclaration(), null, | ||
1322 | "referenceDeclarations", null, 0, -1, ClassDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, | ||
1323 | IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1324 | initEReference(getClassDeclaration_NewNode(), this.getNode(), null, "newNode", null, 0, 1, | ||
1325 | ClassDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, | ||
1326 | !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1327 | |||
1328 | initEClass(referenceDeclarationEClass, ReferenceDeclaration.class, "ReferenceDeclaration", !IS_ABSTRACT, | ||
1329 | !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1330 | initEReference(getReferenceDeclaration_ReferenceType(), this.getRelation(), null, "referenceType", null, 0, 1, | ||
1331 | ReferenceDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, | ||
1332 | IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1333 | initEReference(getReferenceDeclaration_Opposite(), this.getReferenceDeclaration(), null, "opposite", null, 0, 1, | ||
1334 | ReferenceDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, | ||
1335 | IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1336 | initEAttribute(getReferenceDeclaration_Containment(), ecorePackage.getEBoolean(), "containment", null, 0, 1, | ||
1337 | ReferenceDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, | ||
1338 | IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1339 | initEReference(getReferenceDeclaration_Multiplicity(), this.getMultiplicity(), null, "multiplicity", null, 0, 1, | ||
1340 | ReferenceDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, | ||
1341 | !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1342 | |||
1343 | initEClass(namedElementEClass, NamedElement.class, "NamedElement", IS_ABSTRACT, !IS_INTERFACE, | ||
1344 | IS_GENERATED_INSTANCE_CLASS); | ||
1345 | initEAttribute(getNamedElement_Name(), ecorePackage.getEString(), "name", null, 0, 1, NamedElement.class, | ||
1346 | !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1347 | |||
1348 | initEClass(predicateDefinitionEClass, PredicateDefinition.class, "PredicateDefinition", !IS_ABSTRACT, | ||
1349 | !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1350 | initEAttribute(getPredicateDefinition_Error(), ecorePackage.getEBoolean(), "error", null, 0, 1, | ||
1351 | PredicateDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, | ||
1352 | IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1353 | initEReference(getPredicateDefinition_Parameters(), this.getParameter(), null, "parameters", null, 0, -1, | ||
1354 | PredicateDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, | ||
1355 | !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1356 | initEReference(getPredicateDefinition_Bodies(), this.getConjunction(), null, "bodies", null, 0, -1, | ||
1357 | PredicateDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, | ||
1358 | !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1359 | |||
1360 | initEClass(parameterEClass, Parameter.class, "Parameter", !IS_ABSTRACT, !IS_INTERFACE, | ||
1361 | IS_GENERATED_INSTANCE_CLASS); | ||
1362 | initEReference(getParameter_ParameterType(), this.getRelation(), null, "parameterType", null, 0, 1, | ||
1363 | Parameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, | ||
1364 | !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1365 | |||
1366 | initEClass(variableEClass, Variable.class, "Variable", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1367 | |||
1368 | initEClass(conjunctionEClass, Conjunction.class, "Conjunction", !IS_ABSTRACT, !IS_INTERFACE, | ||
1369 | IS_GENERATED_INSTANCE_CLASS); | ||
1370 | initEReference(getConjunction_Literals(), this.getLiteral(), null, "literals", null, 0, -1, Conjunction.class, | ||
1371 | !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, | ||
1372 | IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1373 | |||
1374 | initEClass(literalEClass, Literal.class, "Literal", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1375 | |||
1376 | initEClass(atomEClass, Atom.class, "Atom", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1377 | initEReference(getAtom_Relation(), this.getRelation(), null, "relation", null, 0, 1, Atom.class, !IS_TRANSIENT, | ||
1378 | !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, | ||
1379 | IS_ORDERED); | ||
1380 | initEAttribute(getAtom_TransitiveClosure(), ecorePackage.getEBoolean(), "transitiveClosure", null, 0, 1, | ||
1381 | Atom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, | ||
1382 | IS_ORDERED); | ||
1383 | initEReference(getAtom_Arguments(), this.getArgument(), null, "arguments", null, 0, -1, Atom.class, | ||
1384 | !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, | ||
1385 | IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1386 | |||
1387 | initEClass(implicitVariableEClass, ImplicitVariable.class, "ImplicitVariable", !IS_ABSTRACT, !IS_INTERFACE, | ||
1388 | IS_GENERATED_INSTANCE_CLASS); | ||
1389 | |||
1390 | initEClass(negativeLiteralEClass, NegativeLiteral.class, "NegativeLiteral", !IS_ABSTRACT, !IS_INTERFACE, | ||
1391 | IS_GENERATED_INSTANCE_CLASS); | ||
1392 | initEReference(getNegativeLiteral_Atom(), this.getAtom(), null, "atom", null, 0, 1, NegativeLiteral.class, | ||
1393 | !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, | ||
1394 | IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1395 | |||
1396 | initEClass(existentialQuantifierEClass, ExistentialQuantifier.class, "ExistentialQuantifier", IS_ABSTRACT, | ||
1397 | IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1398 | initEReference(getExistentialQuantifier_ImplicitVariables(), this.getImplicitVariable(), null, | ||
1399 | "implicitVariables", null, 0, -1, ExistentialQuantifier.class, !IS_TRANSIENT, !IS_VOLATILE, | ||
1400 | IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1401 | |||
1402 | initEClass(assertionEClass, Assertion.class, "Assertion", !IS_ABSTRACT, !IS_INTERFACE, | ||
1403 | IS_GENERATED_INSTANCE_CLASS); | ||
1404 | initEReference(getAssertion_Relation(), this.getRelation(), null, "relation", null, 0, 1, Assertion.class, | ||
1405 | !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, | ||
1406 | IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1407 | initEAttribute(getAssertion_Value(), this.getLogicValue(), "value", null, 0, 1, Assertion.class, !IS_TRANSIENT, | ||
1408 | !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1409 | initEReference(getAssertion_Arguments(), this.getAssertionArgument(), null, "arguments", null, 0, -1, | ||
1410 | Assertion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, | ||
1411 | !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1412 | |||
1413 | initEClass(nodeEClass, Node.class, "Node", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1414 | |||
1415 | initEClass(scopeDeclarationEClass, ScopeDeclaration.class, "ScopeDeclaration", !IS_ABSTRACT, !IS_INTERFACE, | ||
1416 | IS_GENERATED_INSTANCE_CLASS); | ||
1417 | initEReference(getScopeDeclaration_TypeScopes(), this.getTypeScope(), null, "typeScopes", null, 0, -1, | ||
1418 | ScopeDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, | ||
1419 | !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1420 | |||
1421 | initEClass(statementEClass, Statement.class, "Statement", IS_ABSTRACT, IS_INTERFACE, | ||
1422 | IS_GENERATED_INSTANCE_CLASS); | ||
1423 | |||
1424 | initEClass(typeScopeEClass, TypeScope.class, "TypeScope", !IS_ABSTRACT, !IS_INTERFACE, | ||
1425 | IS_GENERATED_INSTANCE_CLASS); | ||
1426 | initEReference(getTypeScope_TargetType(), this.getClassDeclaration(), null, "targetType", null, 0, 1, | ||
1427 | TypeScope.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, | ||
1428 | !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1429 | initEAttribute(getTypeScope_Increment(), ecorePackage.getEBoolean(), "increment", null, 0, 1, TypeScope.class, | ||
1430 | !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1431 | initEReference(getTypeScope_Multiplicity(), this.getMultiplicity(), null, "multiplicity", null, 0, 1, | ||
1432 | TypeScope.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, | ||
1433 | !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1434 | |||
1435 | initEClass(multiplicityEClass, Multiplicity.class, "Multiplicity", IS_ABSTRACT, !IS_INTERFACE, | ||
1436 | IS_GENERATED_INSTANCE_CLASS); | ||
1437 | |||
1438 | initEClass(rangeMultiplicityEClass, RangeMultiplicity.class, "RangeMultiplicity", !IS_ABSTRACT, !IS_INTERFACE, | ||
1439 | IS_GENERATED_INSTANCE_CLASS); | ||
1440 | initEAttribute(getRangeMultiplicity_LowerBound(), ecorePackage.getEInt(), "lowerBound", "0", 0, 1, | ||
1441 | RangeMultiplicity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, | ||
1442 | !IS_DERIVED, IS_ORDERED); | ||
1443 | initEAttribute(getRangeMultiplicity_UpperBound(), ecorePackage.getEInt(), "upperBound", "-1", 0, 1, | ||
1444 | RangeMultiplicity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, | ||
1445 | !IS_DERIVED, IS_ORDERED); | ||
1446 | |||
1447 | initEClass(exactMultiplicityEClass, ExactMultiplicity.class, "ExactMultiplicity", !IS_ABSTRACT, !IS_INTERFACE, | ||
1448 | IS_GENERATED_INSTANCE_CLASS); | ||
1449 | initEAttribute(getExactMultiplicity_ExactValue(), ecorePackage.getEInt(), "exactValue", "1", 0, 1, | ||
1450 | ExactMultiplicity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, | ||
1451 | !IS_DERIVED, IS_ORDERED); | ||
1452 | |||
1453 | initEClass(unboundedMultiplicityEClass, UnboundedMultiplicity.class, "UnboundedMultiplicity", !IS_ABSTRACT, | ||
1454 | !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1455 | |||
1456 | initEClass(variableOrNodeArgumentEClass, VariableOrNodeArgument.class, "VariableOrNodeArgument", !IS_ABSTRACT, | ||
1457 | !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1458 | initEReference(getVariableOrNodeArgument_VariableOrNode(), this.getVariableOrNode(), null, "variableOrNode", | ||
1459 | null, 0, 1, VariableOrNodeArgument.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, | ||
1460 | IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1461 | initEReference(getVariableOrNodeArgument_SingletonVariable(), this.getImplicitVariable(), null, | ||
1462 | "singletonVariable", null, 0, 1, VariableOrNodeArgument.class, !IS_TRANSIENT, !IS_VOLATILE, | ||
1463 | IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1464 | |||
1465 | initEClass(enumDeclarationEClass, EnumDeclaration.class, "EnumDeclaration", !IS_ABSTRACT, !IS_INTERFACE, | ||
1466 | IS_GENERATED_INSTANCE_CLASS); | ||
1467 | initEReference(getEnumDeclaration_Literals(), this.getNode(), null, "literals", null, 0, -1, | ||
1468 | EnumDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, | ||
1469 | !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1470 | |||
1471 | initEClass(variableOrNodeEClass, VariableOrNode.class, "VariableOrNode", IS_ABSTRACT, !IS_INTERFACE, | ||
1472 | IS_GENERATED_INSTANCE_CLASS); | ||
1473 | |||
1474 | initEClass(constantEClass, Constant.class, "Constant", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1475 | |||
1476 | initEClass(intConstantEClass, IntConstant.class, "IntConstant", !IS_ABSTRACT, !IS_INTERFACE, | ||
1477 | IS_GENERATED_INSTANCE_CLASS); | ||
1478 | initEAttribute(getIntConstant_IntValue(), ecorePackage.getEInt(), "intValue", "0", 0, 1, IntConstant.class, | ||
1479 | !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1480 | |||
1481 | initEClass(realConstantEClass, RealConstant.class, "RealConstant", !IS_ABSTRACT, !IS_INTERFACE, | ||
1482 | IS_GENERATED_INSTANCE_CLASS); | ||
1483 | initEAttribute(getRealConstant_RealValue(), ecorePackage.getEDouble(), "realValue", "0.0", 0, 1, | ||
1484 | RealConstant.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, | ||
1485 | !IS_DERIVED, IS_ORDERED); | ||
1486 | |||
1487 | initEClass(stringConstantEClass, StringConstant.class, "StringConstant", !IS_ABSTRACT, !IS_INTERFACE, | ||
1488 | IS_GENERATED_INSTANCE_CLASS); | ||
1489 | initEAttribute(getStringConstant_StringValue(), ecorePackage.getEString(), "stringValue", null, 0, 1, | ||
1490 | StringConstant.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, | ||
1491 | !IS_DERIVED, IS_ORDERED); | ||
1492 | |||
1493 | initEClass(constantArgumentEClass, ConstantArgument.class, "ConstantArgument", !IS_ABSTRACT, !IS_INTERFACE, | ||
1494 | IS_GENERATED_INSTANCE_CLASS); | ||
1495 | initEReference(getConstantArgument_Constant(), this.getConstant(), null, "constant", null, 0, 1, | ||
1496 | ConstantArgument.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, | ||
1497 | !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1498 | |||
1499 | initEClass(argumentEClass, Argument.class, "Argument", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1500 | |||
1501 | initEClass(nodeAssertionArgumentEClass, NodeAssertionArgument.class, "NodeAssertionArgument", !IS_ABSTRACT, | ||
1502 | !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1503 | initEReference(getNodeAssertionArgument_Node(), this.getNode(), null, "node", null, 0, 1, | ||
1504 | NodeAssertionArgument.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, | ||
1505 | IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1506 | |||
1507 | initEClass(assertionArgumentEClass, AssertionArgument.class, "AssertionArgument", IS_ABSTRACT, !IS_INTERFACE, | ||
1508 | IS_GENERATED_INSTANCE_CLASS); | ||
1509 | |||
1510 | initEClass(constantAssertionArgumentEClass, ConstantAssertionArgument.class, "ConstantAssertionArgument", | ||
1511 | !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1512 | initEReference(getConstantAssertionArgument_Constant(), this.getConstant(), null, "constant", null, 0, 1, | ||
1513 | ConstantAssertionArgument.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, | ||
1514 | !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1515 | |||
1516 | initEClass(nodeValueAssertionEClass, NodeValueAssertion.class, "NodeValueAssertion", !IS_ABSTRACT, | ||
1517 | !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1518 | initEReference(getNodeValueAssertion_Node(), this.getNode(), null, "node", null, 0, 1, NodeValueAssertion.class, | ||
1519 | !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, | ||
1520 | IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1521 | initEReference(getNodeValueAssertion_Value(), this.getConstant(), null, "value", null, 0, 1, | ||
1522 | NodeValueAssertion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, | ||
1523 | !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1524 | |||
1525 | // Initialize enums and add enum literals | ||
1526 | initEEnum(logicValueEEnum, LogicValue.class, "LogicValue"); | ||
1527 | addEEnumLiteral(logicValueEEnum, LogicValue.TRUE); | ||
1528 | addEEnumLiteral(logicValueEEnum, LogicValue.FALSE); | ||
1529 | addEEnumLiteral(logicValueEEnum, LogicValue.UNKNOWN); | ||
1530 | |||
1531 | // Create resource | ||
1532 | createResource(eNS_URI); | ||
1533 | } | ||
1534 | |||
1535 | } //ProblemPackageImpl | ||
diff --git a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/RangeMultiplicityImpl.java b/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/RangeMultiplicityImpl.java deleted file mode 100644 index 1122b5be..00000000 --- a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/RangeMultiplicityImpl.java +++ /dev/null | |||
@@ -1,219 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import org.eclipse.emf.common.notify.Notification; | ||
6 | |||
7 | import org.eclipse.emf.ecore.EClass; | ||
8 | |||
9 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
10 | |||
11 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
12 | import org.eclipse.viatra.solver.language.model.problem.RangeMultiplicity; | ||
13 | |||
14 | /** | ||
15 | * <!-- begin-user-doc --> | ||
16 | * An implementation of the model object '<em><b>Range Multiplicity</b></em>'. | ||
17 | * <!-- end-user-doc --> | ||
18 | * <p> | ||
19 | * The following features are implemented: | ||
20 | * </p> | ||
21 | * <ul> | ||
22 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.RangeMultiplicityImpl#getLowerBound <em>Lower Bound</em>}</li> | ||
23 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.RangeMultiplicityImpl#getUpperBound <em>Upper Bound</em>}</li> | ||
24 | * </ul> | ||
25 | * | ||
26 | * @generated | ||
27 | */ | ||
28 | public class RangeMultiplicityImpl extends MultiplicityImpl implements RangeMultiplicity { | ||
29 | /** | ||
30 | * The default value of the '{@link #getLowerBound() <em>Lower Bound</em>}' attribute. | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @see #getLowerBound() | ||
34 | * @generated | ||
35 | * @ordered | ||
36 | */ | ||
37 | protected static final int LOWER_BOUND_EDEFAULT = 0; | ||
38 | |||
39 | /** | ||
40 | * The cached value of the '{@link #getLowerBound() <em>Lower Bound</em>}' attribute. | ||
41 | * <!-- begin-user-doc --> | ||
42 | * <!-- end-user-doc --> | ||
43 | * @see #getLowerBound() | ||
44 | * @generated | ||
45 | * @ordered | ||
46 | */ | ||
47 | protected int lowerBound = LOWER_BOUND_EDEFAULT; | ||
48 | |||
49 | /** | ||
50 | * The default value of the '{@link #getUpperBound() <em>Upper Bound</em>}' attribute. | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @see #getUpperBound() | ||
54 | * @generated | ||
55 | * @ordered | ||
56 | */ | ||
57 | protected static final int UPPER_BOUND_EDEFAULT = -1; | ||
58 | |||
59 | /** | ||
60 | * The cached value of the '{@link #getUpperBound() <em>Upper Bound</em>}' attribute. | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @see #getUpperBound() | ||
64 | * @generated | ||
65 | * @ordered | ||
66 | */ | ||
67 | protected int upperBound = UPPER_BOUND_EDEFAULT; | ||
68 | |||
69 | /** | ||
70 | * <!-- begin-user-doc --> | ||
71 | * <!-- end-user-doc --> | ||
72 | * @generated | ||
73 | */ | ||
74 | protected RangeMultiplicityImpl() { | ||
75 | super(); | ||
76 | } | ||
77 | |||
78 | /** | ||
79 | * <!-- begin-user-doc --> | ||
80 | * <!-- end-user-doc --> | ||
81 | * @generated | ||
82 | */ | ||
83 | @Override | ||
84 | protected EClass eStaticClass() { | ||
85 | return ProblemPackage.Literals.RANGE_MULTIPLICITY; | ||
86 | } | ||
87 | |||
88 | /** | ||
89 | * <!-- begin-user-doc --> | ||
90 | * <!-- end-user-doc --> | ||
91 | * @generated | ||
92 | */ | ||
93 | public int getLowerBound() { | ||
94 | return lowerBound; | ||
95 | } | ||
96 | |||
97 | /** | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @generated | ||
101 | */ | ||
102 | public void setLowerBound(int newLowerBound) { | ||
103 | int oldLowerBound = lowerBound; | ||
104 | lowerBound = newLowerBound; | ||
105 | if (eNotificationRequired()) | ||
106 | eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.RANGE_MULTIPLICITY__LOWER_BOUND, | ||
107 | oldLowerBound, lowerBound)); | ||
108 | } | ||
109 | |||
110 | /** | ||
111 | * <!-- begin-user-doc --> | ||
112 | * <!-- end-user-doc --> | ||
113 | * @generated | ||
114 | */ | ||
115 | public int getUpperBound() { | ||
116 | return upperBound; | ||
117 | } | ||
118 | |||
119 | /** | ||
120 | * <!-- begin-user-doc --> | ||
121 | * <!-- end-user-doc --> | ||
122 | * @generated | ||
123 | */ | ||
124 | public void setUpperBound(int newUpperBound) { | ||
125 | int oldUpperBound = upperBound; | ||
126 | upperBound = newUpperBound; | ||
127 | if (eNotificationRequired()) | ||
128 | eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.RANGE_MULTIPLICITY__UPPER_BOUND, | ||
129 | oldUpperBound, upperBound)); | ||
130 | } | ||
131 | |||
132 | /** | ||
133 | * <!-- begin-user-doc --> | ||
134 | * <!-- end-user-doc --> | ||
135 | * @generated | ||
136 | */ | ||
137 | @Override | ||
138 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
139 | switch (featureID) { | ||
140 | case ProblemPackage.RANGE_MULTIPLICITY__LOWER_BOUND: | ||
141 | return getLowerBound(); | ||
142 | case ProblemPackage.RANGE_MULTIPLICITY__UPPER_BOUND: | ||
143 | return getUpperBound(); | ||
144 | } | ||
145 | return super.eGet(featureID, resolve, coreType); | ||
146 | } | ||
147 | |||
148 | /** | ||
149 | * <!-- begin-user-doc --> | ||
150 | * <!-- end-user-doc --> | ||
151 | * @generated | ||
152 | */ | ||
153 | @Override | ||
154 | public void eSet(int featureID, Object newValue) { | ||
155 | switch (featureID) { | ||
156 | case ProblemPackage.RANGE_MULTIPLICITY__LOWER_BOUND: | ||
157 | setLowerBound((Integer) newValue); | ||
158 | return; | ||
159 | case ProblemPackage.RANGE_MULTIPLICITY__UPPER_BOUND: | ||
160 | setUpperBound((Integer) newValue); | ||
161 | return; | ||
162 | } | ||
163 | super.eSet(featureID, newValue); | ||
164 | } | ||
165 | |||
166 | /** | ||
167 | * <!-- begin-user-doc --> | ||
168 | * <!-- end-user-doc --> | ||
169 | * @generated | ||
170 | */ | ||
171 | @Override | ||
172 | public void eUnset(int featureID) { | ||
173 | switch (featureID) { | ||
174 | case ProblemPackage.RANGE_MULTIPLICITY__LOWER_BOUND: | ||
175 | setLowerBound(LOWER_BOUND_EDEFAULT); | ||
176 | return; | ||
177 | case ProblemPackage.RANGE_MULTIPLICITY__UPPER_BOUND: | ||
178 | setUpperBound(UPPER_BOUND_EDEFAULT); | ||
179 | return; | ||
180 | } | ||
181 | super.eUnset(featureID); | ||
182 | } | ||
183 | |||
184 | /** | ||
185 | * <!-- begin-user-doc --> | ||
186 | * <!-- end-user-doc --> | ||
187 | * @generated | ||
188 | */ | ||
189 | @Override | ||
190 | public boolean eIsSet(int featureID) { | ||
191 | switch (featureID) { | ||
192 | case ProblemPackage.RANGE_MULTIPLICITY__LOWER_BOUND: | ||
193 | return lowerBound != LOWER_BOUND_EDEFAULT; | ||
194 | case ProblemPackage.RANGE_MULTIPLICITY__UPPER_BOUND: | ||
195 | return upperBound != UPPER_BOUND_EDEFAULT; | ||
196 | } | ||
197 | return super.eIsSet(featureID); | ||
198 | } | ||
199 | |||
200 | /** | ||
201 | * <!-- begin-user-doc --> | ||
202 | * <!-- end-user-doc --> | ||
203 | * @generated | ||
204 | */ | ||
205 | @Override | ||
206 | public String toString() { | ||
207 | if (eIsProxy()) | ||
208 | return super.toString(); | ||
209 | |||
210 | StringBuilder result = new StringBuilder(super.toString()); | ||
211 | result.append(" (lowerBound: "); | ||
212 | result.append(lowerBound); | ||
213 | result.append(", upperBound: "); | ||
214 | result.append(upperBound); | ||
215 | result.append(')'); | ||
216 | return result.toString(); | ||
217 | } | ||
218 | |||
219 | } //RangeMultiplicityImpl | ||
diff --git a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/RealConstantImpl.java b/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/RealConstantImpl.java deleted file mode 100644 index f28d7b5f..00000000 --- a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/RealConstantImpl.java +++ /dev/null | |||
@@ -1,164 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import org.eclipse.emf.common.notify.Notification; | ||
6 | |||
7 | import org.eclipse.emf.ecore.EClass; | ||
8 | |||
9 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
10 | |||
11 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
12 | import org.eclipse.viatra.solver.language.model.problem.RealConstant; | ||
13 | |||
14 | /** | ||
15 | * <!-- begin-user-doc --> | ||
16 | * An implementation of the model object '<em><b>Real Constant</b></em>'. | ||
17 | * <!-- end-user-doc --> | ||
18 | * <p> | ||
19 | * The following features are implemented: | ||
20 | * </p> | ||
21 | * <ul> | ||
22 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.RealConstantImpl#getRealValue <em>Real Value</em>}</li> | ||
23 | * </ul> | ||
24 | * | ||
25 | * @generated | ||
26 | */ | ||
27 | public class RealConstantImpl extends ConstantImpl implements RealConstant { | ||
28 | /** | ||
29 | * The default value of the '{@link #getRealValue() <em>Real Value</em>}' attribute. | ||
30 | * <!-- begin-user-doc --> | ||
31 | * <!-- end-user-doc --> | ||
32 | * @see #getRealValue() | ||
33 | * @generated | ||
34 | * @ordered | ||
35 | */ | ||
36 | protected static final double REAL_VALUE_EDEFAULT = 0.0; | ||
37 | |||
38 | /** | ||
39 | * The cached value of the '{@link #getRealValue() <em>Real Value</em>}' attribute. | ||
40 | * <!-- begin-user-doc --> | ||
41 | * <!-- end-user-doc --> | ||
42 | * @see #getRealValue() | ||
43 | * @generated | ||
44 | * @ordered | ||
45 | */ | ||
46 | protected double realValue = REAL_VALUE_EDEFAULT; | ||
47 | |||
48 | /** | ||
49 | * <!-- begin-user-doc --> | ||
50 | * <!-- end-user-doc --> | ||
51 | * @generated | ||
52 | */ | ||
53 | protected RealConstantImpl() { | ||
54 | super(); | ||
55 | } | ||
56 | |||
57 | /** | ||
58 | * <!-- begin-user-doc --> | ||
59 | * <!-- end-user-doc --> | ||
60 | * @generated | ||
61 | */ | ||
62 | @Override | ||
63 | protected EClass eStaticClass() { | ||
64 | return ProblemPackage.Literals.REAL_CONSTANT; | ||
65 | } | ||
66 | |||
67 | /** | ||
68 | * <!-- begin-user-doc --> | ||
69 | * <!-- end-user-doc --> | ||
70 | * @generated | ||
71 | */ | ||
72 | public double getRealValue() { | ||
73 | return realValue; | ||
74 | } | ||
75 | |||
76 | /** | ||
77 | * <!-- begin-user-doc --> | ||
78 | * <!-- end-user-doc --> | ||
79 | * @generated | ||
80 | */ | ||
81 | public void setRealValue(double newRealValue) { | ||
82 | double oldRealValue = realValue; | ||
83 | realValue = newRealValue; | ||
84 | if (eNotificationRequired()) | ||
85 | eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.REAL_CONSTANT__REAL_VALUE, | ||
86 | oldRealValue, realValue)); | ||
87 | } | ||
88 | |||
89 | /** | ||
90 | * <!-- begin-user-doc --> | ||
91 | * <!-- end-user-doc --> | ||
92 | * @generated | ||
93 | */ | ||
94 | @Override | ||
95 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
96 | switch (featureID) { | ||
97 | case ProblemPackage.REAL_CONSTANT__REAL_VALUE: | ||
98 | return getRealValue(); | ||
99 | } | ||
100 | return super.eGet(featureID, resolve, coreType); | ||
101 | } | ||
102 | |||
103 | /** | ||
104 | * <!-- begin-user-doc --> | ||
105 | * <!-- end-user-doc --> | ||
106 | * @generated | ||
107 | */ | ||
108 | @Override | ||
109 | public void eSet(int featureID, Object newValue) { | ||
110 | switch (featureID) { | ||
111 | case ProblemPackage.REAL_CONSTANT__REAL_VALUE: | ||
112 | setRealValue((Double) newValue); | ||
113 | return; | ||
114 | } | ||
115 | super.eSet(featureID, newValue); | ||
116 | } | ||
117 | |||
118 | /** | ||
119 | * <!-- begin-user-doc --> | ||
120 | * <!-- end-user-doc --> | ||
121 | * @generated | ||
122 | */ | ||
123 | @Override | ||
124 | public void eUnset(int featureID) { | ||
125 | switch (featureID) { | ||
126 | case ProblemPackage.REAL_CONSTANT__REAL_VALUE: | ||
127 | setRealValue(REAL_VALUE_EDEFAULT); | ||
128 | return; | ||
129 | } | ||
130 | super.eUnset(featureID); | ||
131 | } | ||
132 | |||
133 | /** | ||
134 | * <!-- begin-user-doc --> | ||
135 | * <!-- end-user-doc --> | ||
136 | * @generated | ||
137 | */ | ||
138 | @Override | ||
139 | public boolean eIsSet(int featureID) { | ||
140 | switch (featureID) { | ||
141 | case ProblemPackage.REAL_CONSTANT__REAL_VALUE: | ||
142 | return realValue != REAL_VALUE_EDEFAULT; | ||
143 | } | ||
144 | return super.eIsSet(featureID); | ||
145 | } | ||
146 | |||
147 | /** | ||
148 | * <!-- begin-user-doc --> | ||
149 | * <!-- end-user-doc --> | ||
150 | * @generated | ||
151 | */ | ||
152 | @Override | ||
153 | public String toString() { | ||
154 | if (eIsProxy()) | ||
155 | return super.toString(); | ||
156 | |||
157 | StringBuilder result = new StringBuilder(super.toString()); | ||
158 | result.append(" (realValue: "); | ||
159 | result.append(realValue); | ||
160 | result.append(')'); | ||
161 | return result.toString(); | ||
162 | } | ||
163 | |||
164 | } //RealConstantImpl | ||
diff --git a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ReferenceDeclarationImpl.java b/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ReferenceDeclarationImpl.java deleted file mode 100644 index 8df2715f..00000000 --- a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ReferenceDeclarationImpl.java +++ /dev/null | |||
@@ -1,378 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import org.eclipse.emf.common.notify.Notification; | ||
6 | import org.eclipse.emf.common.notify.NotificationChain; | ||
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 | import org.eclipse.viatra.solver.language.model.problem.Multiplicity; | ||
13 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
14 | import org.eclipse.viatra.solver.language.model.problem.ReferenceDeclaration; | ||
15 | import org.eclipse.viatra.solver.language.model.problem.Relation; | ||
16 | |||
17 | /** | ||
18 | * <!-- begin-user-doc --> | ||
19 | * An implementation of the model object '<em><b>Reference Declaration</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.model.problem.impl.ReferenceDeclarationImpl#getReferenceType <em>Reference Type</em>}</li> | ||
26 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.ReferenceDeclarationImpl#getOpposite <em>Opposite</em>}</li> | ||
27 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.ReferenceDeclarationImpl#isContainment <em>Containment</em>}</li> | ||
28 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.ReferenceDeclarationImpl#getMultiplicity <em>Multiplicity</em>}</li> | ||
29 | * </ul> | ||
30 | * | ||
31 | * @generated | ||
32 | */ | ||
33 | public class ReferenceDeclarationImpl extends RelationImpl implements ReferenceDeclaration { | ||
34 | /** | ||
35 | * The cached value of the '{@link #getReferenceType() <em>Reference Type</em>}' reference. | ||
36 | * <!-- begin-user-doc --> | ||
37 | * <!-- end-user-doc --> | ||
38 | * @see #getReferenceType() | ||
39 | * @generated | ||
40 | * @ordered | ||
41 | */ | ||
42 | protected Relation referenceType; | ||
43 | |||
44 | /** | ||
45 | * The cached value of the '{@link #getOpposite() <em>Opposite</em>}' reference. | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @see #getOpposite() | ||
49 | * @generated | ||
50 | * @ordered | ||
51 | */ | ||
52 | protected ReferenceDeclaration opposite; | ||
53 | |||
54 | /** | ||
55 | * The default value of the '{@link #isContainment() <em>Containment</em>}' attribute. | ||
56 | * <!-- begin-user-doc --> | ||
57 | * <!-- end-user-doc --> | ||
58 | * @see #isContainment() | ||
59 | * @generated | ||
60 | * @ordered | ||
61 | */ | ||
62 | protected static final boolean CONTAINMENT_EDEFAULT = false; | ||
63 | |||
64 | /** | ||
65 | * The cached value of the '{@link #isContainment() <em>Containment</em>}' attribute. | ||
66 | * <!-- begin-user-doc --> | ||
67 | * <!-- end-user-doc --> | ||
68 | * @see #isContainment() | ||
69 | * @generated | ||
70 | * @ordered | ||
71 | */ | ||
72 | protected boolean containment = CONTAINMENT_EDEFAULT; | ||
73 | |||
74 | /** | ||
75 | * The cached value of the '{@link #getMultiplicity() <em>Multiplicity</em>}' containment reference. | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <!-- end-user-doc --> | ||
78 | * @see #getMultiplicity() | ||
79 | * @generated | ||
80 | * @ordered | ||
81 | */ | ||
82 | protected Multiplicity multiplicity; | ||
83 | |||
84 | /** | ||
85 | * <!-- begin-user-doc --> | ||
86 | * <!-- end-user-doc --> | ||
87 | * @generated | ||
88 | */ | ||
89 | protected ReferenceDeclarationImpl() { | ||
90 | super(); | ||
91 | } | ||
92 | |||
93 | /** | ||
94 | * <!-- begin-user-doc --> | ||
95 | * <!-- end-user-doc --> | ||
96 | * @generated | ||
97 | */ | ||
98 | @Override | ||
99 | protected EClass eStaticClass() { | ||
100 | return ProblemPackage.Literals.REFERENCE_DECLARATION; | ||
101 | } | ||
102 | |||
103 | /** | ||
104 | * <!-- begin-user-doc --> | ||
105 | * <!-- end-user-doc --> | ||
106 | * @generated | ||
107 | */ | ||
108 | public Relation getReferenceType() { | ||
109 | if (referenceType != null && referenceType.eIsProxy()) { | ||
110 | InternalEObject oldReferenceType = (InternalEObject) referenceType; | ||
111 | referenceType = (Relation) eResolveProxy(oldReferenceType); | ||
112 | if (referenceType != oldReferenceType) { | ||
113 | if (eNotificationRequired()) | ||
114 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, | ||
115 | ProblemPackage.REFERENCE_DECLARATION__REFERENCE_TYPE, oldReferenceType, referenceType)); | ||
116 | } | ||
117 | } | ||
118 | return referenceType; | ||
119 | } | ||
120 | |||
121 | /** | ||
122 | * <!-- begin-user-doc --> | ||
123 | * <!-- end-user-doc --> | ||
124 | * @generated | ||
125 | */ | ||
126 | public Relation basicGetReferenceType() { | ||
127 | return referenceType; | ||
128 | } | ||
129 | |||
130 | /** | ||
131 | * <!-- begin-user-doc --> | ||
132 | * <!-- end-user-doc --> | ||
133 | * @generated | ||
134 | */ | ||
135 | public void setReferenceType(Relation newReferenceType) { | ||
136 | Relation oldReferenceType = referenceType; | ||
137 | referenceType = newReferenceType; | ||
138 | if (eNotificationRequired()) | ||
139 | eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.REFERENCE_DECLARATION__REFERENCE_TYPE, | ||
140 | oldReferenceType, referenceType)); | ||
141 | } | ||
142 | |||
143 | /** | ||
144 | * <!-- begin-user-doc --> | ||
145 | * <!-- end-user-doc --> | ||
146 | * @generated | ||
147 | */ | ||
148 | public ReferenceDeclaration getOpposite() { | ||
149 | if (opposite != null && opposite.eIsProxy()) { | ||
150 | InternalEObject oldOpposite = (InternalEObject) opposite; | ||
151 | opposite = (ReferenceDeclaration) eResolveProxy(oldOpposite); | ||
152 | if (opposite != oldOpposite) { | ||
153 | if (eNotificationRequired()) | ||
154 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, | ||
155 | ProblemPackage.REFERENCE_DECLARATION__OPPOSITE, oldOpposite, opposite)); | ||
156 | } | ||
157 | } | ||
158 | return opposite; | ||
159 | } | ||
160 | |||
161 | /** | ||
162 | * <!-- begin-user-doc --> | ||
163 | * <!-- end-user-doc --> | ||
164 | * @generated | ||
165 | */ | ||
166 | public ReferenceDeclaration basicGetOpposite() { | ||
167 | return opposite; | ||
168 | } | ||
169 | |||
170 | /** | ||
171 | * <!-- begin-user-doc --> | ||
172 | * <!-- end-user-doc --> | ||
173 | * @generated | ||
174 | */ | ||
175 | public void setOpposite(ReferenceDeclaration newOpposite) { | ||
176 | ReferenceDeclaration oldOpposite = opposite; | ||
177 | opposite = newOpposite; | ||
178 | if (eNotificationRequired()) | ||
179 | eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.REFERENCE_DECLARATION__OPPOSITE, | ||
180 | oldOpposite, opposite)); | ||
181 | } | ||
182 | |||
183 | /** | ||
184 | * <!-- begin-user-doc --> | ||
185 | * <!-- end-user-doc --> | ||
186 | * @generated | ||
187 | */ | ||
188 | public boolean isContainment() { | ||
189 | return containment; | ||
190 | } | ||
191 | |||
192 | /** | ||
193 | * <!-- begin-user-doc --> | ||
194 | * <!-- end-user-doc --> | ||
195 | * @generated | ||
196 | */ | ||
197 | public void setContainment(boolean newContainment) { | ||
198 | boolean oldContainment = containment; | ||
199 | containment = newContainment; | ||
200 | if (eNotificationRequired()) | ||
201 | eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.REFERENCE_DECLARATION__CONTAINMENT, | ||
202 | oldContainment, containment)); | ||
203 | } | ||
204 | |||
205 | /** | ||
206 | * <!-- begin-user-doc --> | ||
207 | * <!-- end-user-doc --> | ||
208 | * @generated | ||
209 | */ | ||
210 | public Multiplicity getMultiplicity() { | ||
211 | return multiplicity; | ||
212 | } | ||
213 | |||
214 | /** | ||
215 | * <!-- begin-user-doc --> | ||
216 | * <!-- end-user-doc --> | ||
217 | * @generated | ||
218 | */ | ||
219 | public NotificationChain basicSetMultiplicity(Multiplicity newMultiplicity, NotificationChain msgs) { | ||
220 | Multiplicity oldMultiplicity = multiplicity; | ||
221 | multiplicity = newMultiplicity; | ||
222 | if (eNotificationRequired()) { | ||
223 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, | ||
224 | ProblemPackage.REFERENCE_DECLARATION__MULTIPLICITY, oldMultiplicity, newMultiplicity); | ||
225 | if (msgs == null) | ||
226 | msgs = notification; | ||
227 | else | ||
228 | msgs.add(notification); | ||
229 | } | ||
230 | return msgs; | ||
231 | } | ||
232 | |||
233 | /** | ||
234 | * <!-- begin-user-doc --> | ||
235 | * <!-- end-user-doc --> | ||
236 | * @generated | ||
237 | */ | ||
238 | public void setMultiplicity(Multiplicity newMultiplicity) { | ||
239 | if (newMultiplicity != multiplicity) { | ||
240 | NotificationChain msgs = null; | ||
241 | if (multiplicity != null) | ||
242 | msgs = ((InternalEObject) multiplicity).eInverseRemove(this, | ||
243 | EOPPOSITE_FEATURE_BASE - ProblemPackage.REFERENCE_DECLARATION__MULTIPLICITY, null, msgs); | ||
244 | if (newMultiplicity != null) | ||
245 | msgs = ((InternalEObject) newMultiplicity).eInverseAdd(this, | ||
246 | EOPPOSITE_FEATURE_BASE - ProblemPackage.REFERENCE_DECLARATION__MULTIPLICITY, null, msgs); | ||
247 | msgs = basicSetMultiplicity(newMultiplicity, msgs); | ||
248 | if (msgs != null) | ||
249 | msgs.dispatch(); | ||
250 | } else if (eNotificationRequired()) | ||
251 | eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.REFERENCE_DECLARATION__MULTIPLICITY, | ||
252 | newMultiplicity, newMultiplicity)); | ||
253 | } | ||
254 | |||
255 | /** | ||
256 | * <!-- begin-user-doc --> | ||
257 | * <!-- end-user-doc --> | ||
258 | * @generated | ||
259 | */ | ||
260 | @Override | ||
261 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
262 | switch (featureID) { | ||
263 | case ProblemPackage.REFERENCE_DECLARATION__MULTIPLICITY: | ||
264 | return basicSetMultiplicity(null, msgs); | ||
265 | } | ||
266 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
267 | } | ||
268 | |||
269 | /** | ||
270 | * <!-- begin-user-doc --> | ||
271 | * <!-- end-user-doc --> | ||
272 | * @generated | ||
273 | */ | ||
274 | @Override | ||
275 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
276 | switch (featureID) { | ||
277 | case ProblemPackage.REFERENCE_DECLARATION__REFERENCE_TYPE: | ||
278 | if (resolve) | ||
279 | return getReferenceType(); | ||
280 | return basicGetReferenceType(); | ||
281 | case ProblemPackage.REFERENCE_DECLARATION__OPPOSITE: | ||
282 | if (resolve) | ||
283 | return getOpposite(); | ||
284 | return basicGetOpposite(); | ||
285 | case ProblemPackage.REFERENCE_DECLARATION__CONTAINMENT: | ||
286 | return isContainment(); | ||
287 | case ProblemPackage.REFERENCE_DECLARATION__MULTIPLICITY: | ||
288 | return getMultiplicity(); | ||
289 | } | ||
290 | return super.eGet(featureID, resolve, coreType); | ||
291 | } | ||
292 | |||
293 | /** | ||
294 | * <!-- begin-user-doc --> | ||
295 | * <!-- end-user-doc --> | ||
296 | * @generated | ||
297 | */ | ||
298 | @Override | ||
299 | public void eSet(int featureID, Object newValue) { | ||
300 | switch (featureID) { | ||
301 | case ProblemPackage.REFERENCE_DECLARATION__REFERENCE_TYPE: | ||
302 | setReferenceType((Relation) newValue); | ||
303 | return; | ||
304 | case ProblemPackage.REFERENCE_DECLARATION__OPPOSITE: | ||
305 | setOpposite((ReferenceDeclaration) newValue); | ||
306 | return; | ||
307 | case ProblemPackage.REFERENCE_DECLARATION__CONTAINMENT: | ||
308 | setContainment((Boolean) newValue); | ||
309 | return; | ||
310 | case ProblemPackage.REFERENCE_DECLARATION__MULTIPLICITY: | ||
311 | setMultiplicity((Multiplicity) newValue); | ||
312 | return; | ||
313 | } | ||
314 | super.eSet(featureID, newValue); | ||
315 | } | ||
316 | |||
317 | /** | ||
318 | * <!-- begin-user-doc --> | ||
319 | * <!-- end-user-doc --> | ||
320 | * @generated | ||
321 | */ | ||
322 | @Override | ||
323 | public void eUnset(int featureID) { | ||
324 | switch (featureID) { | ||
325 | case ProblemPackage.REFERENCE_DECLARATION__REFERENCE_TYPE: | ||
326 | setReferenceType((Relation) null); | ||
327 | return; | ||
328 | case ProblemPackage.REFERENCE_DECLARATION__OPPOSITE: | ||
329 | setOpposite((ReferenceDeclaration) null); | ||
330 | return; | ||
331 | case ProblemPackage.REFERENCE_DECLARATION__CONTAINMENT: | ||
332 | setContainment(CONTAINMENT_EDEFAULT); | ||
333 | return; | ||
334 | case ProblemPackage.REFERENCE_DECLARATION__MULTIPLICITY: | ||
335 | setMultiplicity((Multiplicity) null); | ||
336 | return; | ||
337 | } | ||
338 | super.eUnset(featureID); | ||
339 | } | ||
340 | |||
341 | /** | ||
342 | * <!-- begin-user-doc --> | ||
343 | * <!-- end-user-doc --> | ||
344 | * @generated | ||
345 | */ | ||
346 | @Override | ||
347 | public boolean eIsSet(int featureID) { | ||
348 | switch (featureID) { | ||
349 | case ProblemPackage.REFERENCE_DECLARATION__REFERENCE_TYPE: | ||
350 | return referenceType != null; | ||
351 | case ProblemPackage.REFERENCE_DECLARATION__OPPOSITE: | ||
352 | return opposite != null; | ||
353 | case ProblemPackage.REFERENCE_DECLARATION__CONTAINMENT: | ||
354 | return containment != CONTAINMENT_EDEFAULT; | ||
355 | case ProblemPackage.REFERENCE_DECLARATION__MULTIPLICITY: | ||
356 | return multiplicity != null; | ||
357 | } | ||
358 | return super.eIsSet(featureID); | ||
359 | } | ||
360 | |||
361 | /** | ||
362 | * <!-- begin-user-doc --> | ||
363 | * <!-- end-user-doc --> | ||
364 | * @generated | ||
365 | */ | ||
366 | @Override | ||
367 | public String toString() { | ||
368 | if (eIsProxy()) | ||
369 | return super.toString(); | ||
370 | |||
371 | StringBuilder result = new StringBuilder(super.toString()); | ||
372 | result.append(" (containment: "); | ||
373 | result.append(containment); | ||
374 | result.append(')'); | ||
375 | return result.toString(); | ||
376 | } | ||
377 | |||
378 | } //ReferenceDeclarationImpl | ||
diff --git a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/RelationImpl.java b/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/RelationImpl.java deleted file mode 100644 index 20d43043..00000000 --- a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/RelationImpl.java +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EClass; | ||
6 | |||
7 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
8 | import org.eclipse.viatra.solver.language.model.problem.Relation; | ||
9 | |||
10 | /** | ||
11 | * <!-- begin-user-doc --> | ||
12 | * An implementation of the model object '<em><b>Relation</b></em>'. | ||
13 | * <!-- end-user-doc --> | ||
14 | * | ||
15 | * @generated | ||
16 | */ | ||
17 | public abstract class RelationImpl extends NamedElementImpl implements Relation { | ||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * <!-- end-user-doc --> | ||
21 | * @generated | ||
22 | */ | ||
23 | protected RelationImpl() { | ||
24 | super(); | ||
25 | } | ||
26 | |||
27 | /** | ||
28 | * <!-- begin-user-doc --> | ||
29 | * <!-- end-user-doc --> | ||
30 | * @generated | ||
31 | */ | ||
32 | @Override | ||
33 | protected EClass eStaticClass() { | ||
34 | return ProblemPackage.Literals.RELATION; | ||
35 | } | ||
36 | |||
37 | } //RelationImpl | ||
diff --git a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ScopeDeclarationImpl.java b/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ScopeDeclarationImpl.java deleted file mode 100644 index f178d9e0..00000000 --- a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ScopeDeclarationImpl.java +++ /dev/null | |||
@@ -1,153 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import java.util.Collection; | ||
6 | |||
7 | import org.eclipse.emf.common.notify.NotificationChain; | ||
8 | |||
9 | import org.eclipse.emf.common.util.EList; | ||
10 | |||
11 | import org.eclipse.emf.ecore.EClass; | ||
12 | import org.eclipse.emf.ecore.InternalEObject; | ||
13 | |||
14 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
15 | |||
16 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
17 | import org.eclipse.emf.ecore.util.InternalEList; | ||
18 | |||
19 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
20 | import org.eclipse.viatra.solver.language.model.problem.ScopeDeclaration; | ||
21 | import org.eclipse.viatra.solver.language.model.problem.TypeScope; | ||
22 | |||
23 | /** | ||
24 | * <!-- begin-user-doc --> | ||
25 | * An implementation of the model object '<em><b>Scope Declaration</b></em>'. | ||
26 | * <!-- end-user-doc --> | ||
27 | * <p> | ||
28 | * The following features are implemented: | ||
29 | * </p> | ||
30 | * <ul> | ||
31 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.ScopeDeclarationImpl#getTypeScopes <em>Type Scopes</em>}</li> | ||
32 | * </ul> | ||
33 | * | ||
34 | * @generated | ||
35 | */ | ||
36 | public class ScopeDeclarationImpl extends MinimalEObjectImpl.Container implements ScopeDeclaration { | ||
37 | /** | ||
38 | * The cached value of the '{@link #getTypeScopes() <em>Type Scopes</em>}' containment reference list. | ||
39 | * <!-- begin-user-doc --> | ||
40 | * <!-- end-user-doc --> | ||
41 | * @see #getTypeScopes() | ||
42 | * @generated | ||
43 | * @ordered | ||
44 | */ | ||
45 | protected EList<TypeScope> typeScopes; | ||
46 | |||
47 | /** | ||
48 | * <!-- begin-user-doc --> | ||
49 | * <!-- end-user-doc --> | ||
50 | * @generated | ||
51 | */ | ||
52 | protected ScopeDeclarationImpl() { | ||
53 | super(); | ||
54 | } | ||
55 | |||
56 | /** | ||
57 | * <!-- begin-user-doc --> | ||
58 | * <!-- end-user-doc --> | ||
59 | * @generated | ||
60 | */ | ||
61 | @Override | ||
62 | protected EClass eStaticClass() { | ||
63 | return ProblemPackage.Literals.SCOPE_DECLARATION; | ||
64 | } | ||
65 | |||
66 | /** | ||
67 | * <!-- begin-user-doc --> | ||
68 | * <!-- end-user-doc --> | ||
69 | * @generated | ||
70 | */ | ||
71 | public EList<TypeScope> getTypeScopes() { | ||
72 | if (typeScopes == null) { | ||
73 | typeScopes = new EObjectContainmentEList<TypeScope>(TypeScope.class, this, | ||
74 | ProblemPackage.SCOPE_DECLARATION__TYPE_SCOPES); | ||
75 | } | ||
76 | return typeScopes; | ||
77 | } | ||
78 | |||
79 | /** | ||
80 | * <!-- begin-user-doc --> | ||
81 | * <!-- end-user-doc --> | ||
82 | * @generated | ||
83 | */ | ||
84 | @Override | ||
85 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
86 | switch (featureID) { | ||
87 | case ProblemPackage.SCOPE_DECLARATION__TYPE_SCOPES: | ||
88 | return ((InternalEList<?>) getTypeScopes()).basicRemove(otherEnd, msgs); | ||
89 | } | ||
90 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
91 | } | ||
92 | |||
93 | /** | ||
94 | * <!-- begin-user-doc --> | ||
95 | * <!-- end-user-doc --> | ||
96 | * @generated | ||
97 | */ | ||
98 | @Override | ||
99 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
100 | switch (featureID) { | ||
101 | case ProblemPackage.SCOPE_DECLARATION__TYPE_SCOPES: | ||
102 | return getTypeScopes(); | ||
103 | } | ||
104 | return super.eGet(featureID, resolve, coreType); | ||
105 | } | ||
106 | |||
107 | /** | ||
108 | * <!-- begin-user-doc --> | ||
109 | * <!-- end-user-doc --> | ||
110 | * @generated | ||
111 | */ | ||
112 | @SuppressWarnings("unchecked") | ||
113 | @Override | ||
114 | public void eSet(int featureID, Object newValue) { | ||
115 | switch (featureID) { | ||
116 | case ProblemPackage.SCOPE_DECLARATION__TYPE_SCOPES: | ||
117 | getTypeScopes().clear(); | ||
118 | getTypeScopes().addAll((Collection<? extends TypeScope>) newValue); | ||
119 | return; | ||
120 | } | ||
121 | super.eSet(featureID, newValue); | ||
122 | } | ||
123 | |||
124 | /** | ||
125 | * <!-- begin-user-doc --> | ||
126 | * <!-- end-user-doc --> | ||
127 | * @generated | ||
128 | */ | ||
129 | @Override | ||
130 | public void eUnset(int featureID) { | ||
131 | switch (featureID) { | ||
132 | case ProblemPackage.SCOPE_DECLARATION__TYPE_SCOPES: | ||
133 | getTypeScopes().clear(); | ||
134 | return; | ||
135 | } | ||
136 | super.eUnset(featureID); | ||
137 | } | ||
138 | |||
139 | /** | ||
140 | * <!-- begin-user-doc --> | ||
141 | * <!-- end-user-doc --> | ||
142 | * @generated | ||
143 | */ | ||
144 | @Override | ||
145 | public boolean eIsSet(int featureID) { | ||
146 | switch (featureID) { | ||
147 | case ProblemPackage.SCOPE_DECLARATION__TYPE_SCOPES: | ||
148 | return typeScopes != null && !typeScopes.isEmpty(); | ||
149 | } | ||
150 | return super.eIsSet(featureID); | ||
151 | } | ||
152 | |||
153 | } //ScopeDeclarationImpl | ||
diff --git a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/StringConstantImpl.java b/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/StringConstantImpl.java deleted file mode 100644 index 9eb05cf3..00000000 --- a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/StringConstantImpl.java +++ /dev/null | |||
@@ -1,164 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import org.eclipse.emf.common.notify.Notification; | ||
6 | |||
7 | import org.eclipse.emf.ecore.EClass; | ||
8 | |||
9 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
10 | |||
11 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
12 | import org.eclipse.viatra.solver.language.model.problem.StringConstant; | ||
13 | |||
14 | /** | ||
15 | * <!-- begin-user-doc --> | ||
16 | * An implementation of the model object '<em><b>String Constant</b></em>'. | ||
17 | * <!-- end-user-doc --> | ||
18 | * <p> | ||
19 | * The following features are implemented: | ||
20 | * </p> | ||
21 | * <ul> | ||
22 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.StringConstantImpl#getStringValue <em>String Value</em>}</li> | ||
23 | * </ul> | ||
24 | * | ||
25 | * @generated | ||
26 | */ | ||
27 | public class StringConstantImpl extends ConstantImpl implements StringConstant { | ||
28 | /** | ||
29 | * The default value of the '{@link #getStringValue() <em>String Value</em>}' attribute. | ||
30 | * <!-- begin-user-doc --> | ||
31 | * <!-- end-user-doc --> | ||
32 | * @see #getStringValue() | ||
33 | * @generated | ||
34 | * @ordered | ||
35 | */ | ||
36 | protected static final String STRING_VALUE_EDEFAULT = null; | ||
37 | |||
38 | /** | ||
39 | * The cached value of the '{@link #getStringValue() <em>String Value</em>}' attribute. | ||
40 | * <!-- begin-user-doc --> | ||
41 | * <!-- end-user-doc --> | ||
42 | * @see #getStringValue() | ||
43 | * @generated | ||
44 | * @ordered | ||
45 | */ | ||
46 | protected String stringValue = STRING_VALUE_EDEFAULT; | ||
47 | |||
48 | /** | ||
49 | * <!-- begin-user-doc --> | ||
50 | * <!-- end-user-doc --> | ||
51 | * @generated | ||
52 | */ | ||
53 | protected StringConstantImpl() { | ||
54 | super(); | ||
55 | } | ||
56 | |||
57 | /** | ||
58 | * <!-- begin-user-doc --> | ||
59 | * <!-- end-user-doc --> | ||
60 | * @generated | ||
61 | */ | ||
62 | @Override | ||
63 | protected EClass eStaticClass() { | ||
64 | return ProblemPackage.Literals.STRING_CONSTANT; | ||
65 | } | ||
66 | |||
67 | /** | ||
68 | * <!-- begin-user-doc --> | ||
69 | * <!-- end-user-doc --> | ||
70 | * @generated | ||
71 | */ | ||
72 | public String getStringValue() { | ||
73 | return stringValue; | ||
74 | } | ||
75 | |||
76 | /** | ||
77 | * <!-- begin-user-doc --> | ||
78 | * <!-- end-user-doc --> | ||
79 | * @generated | ||
80 | */ | ||
81 | public void setStringValue(String newStringValue) { | ||
82 | String oldStringValue = stringValue; | ||
83 | stringValue = newStringValue; | ||
84 | if (eNotificationRequired()) | ||
85 | eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.STRING_CONSTANT__STRING_VALUE, | ||
86 | oldStringValue, stringValue)); | ||
87 | } | ||
88 | |||
89 | /** | ||
90 | * <!-- begin-user-doc --> | ||
91 | * <!-- end-user-doc --> | ||
92 | * @generated | ||
93 | */ | ||
94 | @Override | ||
95 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
96 | switch (featureID) { | ||
97 | case ProblemPackage.STRING_CONSTANT__STRING_VALUE: | ||
98 | return getStringValue(); | ||
99 | } | ||
100 | return super.eGet(featureID, resolve, coreType); | ||
101 | } | ||
102 | |||
103 | /** | ||
104 | * <!-- begin-user-doc --> | ||
105 | * <!-- end-user-doc --> | ||
106 | * @generated | ||
107 | */ | ||
108 | @Override | ||
109 | public void eSet(int featureID, Object newValue) { | ||
110 | switch (featureID) { | ||
111 | case ProblemPackage.STRING_CONSTANT__STRING_VALUE: | ||
112 | setStringValue((String) newValue); | ||
113 | return; | ||
114 | } | ||
115 | super.eSet(featureID, newValue); | ||
116 | } | ||
117 | |||
118 | /** | ||
119 | * <!-- begin-user-doc --> | ||
120 | * <!-- end-user-doc --> | ||
121 | * @generated | ||
122 | */ | ||
123 | @Override | ||
124 | public void eUnset(int featureID) { | ||
125 | switch (featureID) { | ||
126 | case ProblemPackage.STRING_CONSTANT__STRING_VALUE: | ||
127 | setStringValue(STRING_VALUE_EDEFAULT); | ||
128 | return; | ||
129 | } | ||
130 | super.eUnset(featureID); | ||
131 | } | ||
132 | |||
133 | /** | ||
134 | * <!-- begin-user-doc --> | ||
135 | * <!-- end-user-doc --> | ||
136 | * @generated | ||
137 | */ | ||
138 | @Override | ||
139 | public boolean eIsSet(int featureID) { | ||
140 | switch (featureID) { | ||
141 | case ProblemPackage.STRING_CONSTANT__STRING_VALUE: | ||
142 | return STRING_VALUE_EDEFAULT == null ? stringValue != null : !STRING_VALUE_EDEFAULT.equals(stringValue); | ||
143 | } | ||
144 | return super.eIsSet(featureID); | ||
145 | } | ||
146 | |||
147 | /** | ||
148 | * <!-- begin-user-doc --> | ||
149 | * <!-- end-user-doc --> | ||
150 | * @generated | ||
151 | */ | ||
152 | @Override | ||
153 | public String toString() { | ||
154 | if (eIsProxy()) | ||
155 | return super.toString(); | ||
156 | |||
157 | StringBuilder result = new StringBuilder(super.toString()); | ||
158 | result.append(" (stringValue: "); | ||
159 | result.append(stringValue); | ||
160 | result.append(')'); | ||
161 | return result.toString(); | ||
162 | } | ||
163 | |||
164 | } //StringConstantImpl | ||
diff --git a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/TypeScopeImpl.java b/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/TypeScopeImpl.java deleted file mode 100644 index 608cc015..00000000 --- a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/TypeScopeImpl.java +++ /dev/null | |||
@@ -1,317 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import org.eclipse.emf.common.notify.Notification; | ||
6 | import org.eclipse.emf.common.notify.NotificationChain; | ||
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 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
13 | |||
14 | import org.eclipse.viatra.solver.language.model.problem.ClassDeclaration; | ||
15 | import org.eclipse.viatra.solver.language.model.problem.Multiplicity; | ||
16 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
17 | import org.eclipse.viatra.solver.language.model.problem.TypeScope; | ||
18 | |||
19 | /** | ||
20 | * <!-- begin-user-doc --> | ||
21 | * An implementation of the model object '<em><b>Type Scope</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.model.problem.impl.TypeScopeImpl#getTargetType <em>Target Type</em>}</li> | ||
28 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.TypeScopeImpl#isIncrement <em>Increment</em>}</li> | ||
29 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.TypeScopeImpl#getMultiplicity <em>Multiplicity</em>}</li> | ||
30 | * </ul> | ||
31 | * | ||
32 | * @generated | ||
33 | */ | ||
34 | public class TypeScopeImpl extends MinimalEObjectImpl.Container implements TypeScope { | ||
35 | /** | ||
36 | * The cached value of the '{@link #getTargetType() <em>Target Type</em>}' reference. | ||
37 | * <!-- begin-user-doc --> | ||
38 | * <!-- end-user-doc --> | ||
39 | * @see #getTargetType() | ||
40 | * @generated | ||
41 | * @ordered | ||
42 | */ | ||
43 | protected ClassDeclaration targetType; | ||
44 | |||
45 | /** | ||
46 | * The default value of the '{@link #isIncrement() <em>Increment</em>}' attribute. | ||
47 | * <!-- begin-user-doc --> | ||
48 | * <!-- end-user-doc --> | ||
49 | * @see #isIncrement() | ||
50 | * @generated | ||
51 | * @ordered | ||
52 | */ | ||
53 | protected static final boolean INCREMENT_EDEFAULT = false; | ||
54 | |||
55 | /** | ||
56 | * The cached value of the '{@link #isIncrement() <em>Increment</em>}' attribute. | ||
57 | * <!-- begin-user-doc --> | ||
58 | * <!-- end-user-doc --> | ||
59 | * @see #isIncrement() | ||
60 | * @generated | ||
61 | * @ordered | ||
62 | */ | ||
63 | protected boolean increment = INCREMENT_EDEFAULT; | ||
64 | |||
65 | /** | ||
66 | * The cached value of the '{@link #getMultiplicity() <em>Multiplicity</em>}' containment reference. | ||
67 | * <!-- begin-user-doc --> | ||
68 | * <!-- end-user-doc --> | ||
69 | * @see #getMultiplicity() | ||
70 | * @generated | ||
71 | * @ordered | ||
72 | */ | ||
73 | protected Multiplicity multiplicity; | ||
74 | |||
75 | /** | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <!-- end-user-doc --> | ||
78 | * @generated | ||
79 | */ | ||
80 | protected TypeScopeImpl() { | ||
81 | super(); | ||
82 | } | ||
83 | |||
84 | /** | ||
85 | * <!-- begin-user-doc --> | ||
86 | * <!-- end-user-doc --> | ||
87 | * @generated | ||
88 | */ | ||
89 | @Override | ||
90 | protected EClass eStaticClass() { | ||
91 | return ProblemPackage.Literals.TYPE_SCOPE; | ||
92 | } | ||
93 | |||
94 | /** | ||
95 | * <!-- begin-user-doc --> | ||
96 | * <!-- end-user-doc --> | ||
97 | * @generated | ||
98 | */ | ||
99 | public ClassDeclaration getTargetType() { | ||
100 | if (targetType != null && targetType.eIsProxy()) { | ||
101 | InternalEObject oldTargetType = (InternalEObject) targetType; | ||
102 | targetType = (ClassDeclaration) eResolveProxy(oldTargetType); | ||
103 | if (targetType != oldTargetType) { | ||
104 | if (eNotificationRequired()) | ||
105 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, ProblemPackage.TYPE_SCOPE__TARGET_TYPE, | ||
106 | oldTargetType, targetType)); | ||
107 | } | ||
108 | } | ||
109 | return targetType; | ||
110 | } | ||
111 | |||
112 | /** | ||
113 | * <!-- begin-user-doc --> | ||
114 | * <!-- end-user-doc --> | ||
115 | * @generated | ||
116 | */ | ||
117 | public ClassDeclaration basicGetTargetType() { | ||
118 | return targetType; | ||
119 | } | ||
120 | |||
121 | /** | ||
122 | * <!-- begin-user-doc --> | ||
123 | * <!-- end-user-doc --> | ||
124 | * @generated | ||
125 | */ | ||
126 | public void setTargetType(ClassDeclaration newTargetType) { | ||
127 | ClassDeclaration oldTargetType = targetType; | ||
128 | targetType = newTargetType; | ||
129 | if (eNotificationRequired()) | ||
130 | eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.TYPE_SCOPE__TARGET_TYPE, oldTargetType, | ||
131 | targetType)); | ||
132 | } | ||
133 | |||
134 | /** | ||
135 | * <!-- begin-user-doc --> | ||
136 | * <!-- end-user-doc --> | ||
137 | * @generated | ||
138 | */ | ||
139 | public boolean isIncrement() { | ||
140 | return increment; | ||
141 | } | ||
142 | |||
143 | /** | ||
144 | * <!-- begin-user-doc --> | ||
145 | * <!-- end-user-doc --> | ||
146 | * @generated | ||
147 | */ | ||
148 | public void setIncrement(boolean newIncrement) { | ||
149 | boolean oldIncrement = increment; | ||
150 | increment = newIncrement; | ||
151 | if (eNotificationRequired()) | ||
152 | eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.TYPE_SCOPE__INCREMENT, oldIncrement, | ||
153 | increment)); | ||
154 | } | ||
155 | |||
156 | /** | ||
157 | * <!-- begin-user-doc --> | ||
158 | * <!-- end-user-doc --> | ||
159 | * @generated | ||
160 | */ | ||
161 | public Multiplicity getMultiplicity() { | ||
162 | return multiplicity; | ||
163 | } | ||
164 | |||
165 | /** | ||
166 | * <!-- begin-user-doc --> | ||
167 | * <!-- end-user-doc --> | ||
168 | * @generated | ||
169 | */ | ||
170 | public NotificationChain basicSetMultiplicity(Multiplicity newMultiplicity, NotificationChain msgs) { | ||
171 | Multiplicity oldMultiplicity = multiplicity; | ||
172 | multiplicity = newMultiplicity; | ||
173 | if (eNotificationRequired()) { | ||
174 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, | ||
175 | ProblemPackage.TYPE_SCOPE__MULTIPLICITY, oldMultiplicity, newMultiplicity); | ||
176 | if (msgs == null) | ||
177 | msgs = notification; | ||
178 | else | ||
179 | msgs.add(notification); | ||
180 | } | ||
181 | return msgs; | ||
182 | } | ||
183 | |||
184 | /** | ||
185 | * <!-- begin-user-doc --> | ||
186 | * <!-- end-user-doc --> | ||
187 | * @generated | ||
188 | */ | ||
189 | public void setMultiplicity(Multiplicity newMultiplicity) { | ||
190 | if (newMultiplicity != multiplicity) { | ||
191 | NotificationChain msgs = null; | ||
192 | if (multiplicity != null) | ||
193 | msgs = ((InternalEObject) multiplicity).eInverseRemove(this, | ||
194 | EOPPOSITE_FEATURE_BASE - ProblemPackage.TYPE_SCOPE__MULTIPLICITY, null, msgs); | ||
195 | if (newMultiplicity != null) | ||
196 | msgs = ((InternalEObject) newMultiplicity).eInverseAdd(this, | ||
197 | EOPPOSITE_FEATURE_BASE - ProblemPackage.TYPE_SCOPE__MULTIPLICITY, null, msgs); | ||
198 | msgs = basicSetMultiplicity(newMultiplicity, msgs); | ||
199 | if (msgs != null) | ||
200 | msgs.dispatch(); | ||
201 | } else if (eNotificationRequired()) | ||
202 | eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.TYPE_SCOPE__MULTIPLICITY, | ||
203 | newMultiplicity, newMultiplicity)); | ||
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 | switch (featureID) { | ||
214 | case ProblemPackage.TYPE_SCOPE__MULTIPLICITY: | ||
215 | return basicSetMultiplicity(null, msgs); | ||
216 | } | ||
217 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
218 | } | ||
219 | |||
220 | /** | ||
221 | * <!-- begin-user-doc --> | ||
222 | * <!-- end-user-doc --> | ||
223 | * @generated | ||
224 | */ | ||
225 | @Override | ||
226 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
227 | switch (featureID) { | ||
228 | case ProblemPackage.TYPE_SCOPE__TARGET_TYPE: | ||
229 | if (resolve) | ||
230 | return getTargetType(); | ||
231 | return basicGetTargetType(); | ||
232 | case ProblemPackage.TYPE_SCOPE__INCREMENT: | ||
233 | return isIncrement(); | ||
234 | case ProblemPackage.TYPE_SCOPE__MULTIPLICITY: | ||
235 | return getMultiplicity(); | ||
236 | } | ||
237 | return super.eGet(featureID, resolve, coreType); | ||
238 | } | ||
239 | |||
240 | /** | ||
241 | * <!-- begin-user-doc --> | ||
242 | * <!-- end-user-doc --> | ||
243 | * @generated | ||
244 | */ | ||
245 | @Override | ||
246 | public void eSet(int featureID, Object newValue) { | ||
247 | switch (featureID) { | ||
248 | case ProblemPackage.TYPE_SCOPE__TARGET_TYPE: | ||
249 | setTargetType((ClassDeclaration) newValue); | ||
250 | return; | ||
251 | case ProblemPackage.TYPE_SCOPE__INCREMENT: | ||
252 | setIncrement((Boolean) newValue); | ||
253 | return; | ||
254 | case ProblemPackage.TYPE_SCOPE__MULTIPLICITY: | ||
255 | setMultiplicity((Multiplicity) newValue); | ||
256 | return; | ||
257 | } | ||
258 | super.eSet(featureID, newValue); | ||
259 | } | ||
260 | |||
261 | /** | ||
262 | * <!-- begin-user-doc --> | ||
263 | * <!-- end-user-doc --> | ||
264 | * @generated | ||
265 | */ | ||
266 | @Override | ||
267 | public void eUnset(int featureID) { | ||
268 | switch (featureID) { | ||
269 | case ProblemPackage.TYPE_SCOPE__TARGET_TYPE: | ||
270 | setTargetType((ClassDeclaration) null); | ||
271 | return; | ||
272 | case ProblemPackage.TYPE_SCOPE__INCREMENT: | ||
273 | setIncrement(INCREMENT_EDEFAULT); | ||
274 | return; | ||
275 | case ProblemPackage.TYPE_SCOPE__MULTIPLICITY: | ||
276 | setMultiplicity((Multiplicity) null); | ||
277 | return; | ||
278 | } | ||
279 | super.eUnset(featureID); | ||
280 | } | ||
281 | |||
282 | /** | ||
283 | * <!-- begin-user-doc --> | ||
284 | * <!-- end-user-doc --> | ||
285 | * @generated | ||
286 | */ | ||
287 | @Override | ||
288 | public boolean eIsSet(int featureID) { | ||
289 | switch (featureID) { | ||
290 | case ProblemPackage.TYPE_SCOPE__TARGET_TYPE: | ||
291 | return targetType != null; | ||
292 | case ProblemPackage.TYPE_SCOPE__INCREMENT: | ||
293 | return increment != INCREMENT_EDEFAULT; | ||
294 | case ProblemPackage.TYPE_SCOPE__MULTIPLICITY: | ||
295 | return multiplicity != null; | ||
296 | } | ||
297 | return super.eIsSet(featureID); | ||
298 | } | ||
299 | |||
300 | /** | ||
301 | * <!-- begin-user-doc --> | ||
302 | * <!-- end-user-doc --> | ||
303 | * @generated | ||
304 | */ | ||
305 | @Override | ||
306 | public String toString() { | ||
307 | if (eIsProxy()) | ||
308 | return super.toString(); | ||
309 | |||
310 | StringBuilder result = new StringBuilder(super.toString()); | ||
311 | result.append(" (increment: "); | ||
312 | result.append(increment); | ||
313 | result.append(')'); | ||
314 | return result.toString(); | ||
315 | } | ||
316 | |||
317 | } //TypeScopeImpl | ||
diff --git a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/UnboundedMultiplicityImpl.java b/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/UnboundedMultiplicityImpl.java deleted file mode 100644 index 34283189..00000000 --- a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/UnboundedMultiplicityImpl.java +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EClass; | ||
6 | |||
7 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
8 | import org.eclipse.viatra.solver.language.model.problem.UnboundedMultiplicity; | ||
9 | |||
10 | /** | ||
11 | * <!-- begin-user-doc --> | ||
12 | * An implementation of the model object '<em><b>Unbounded Multiplicity</b></em>'. | ||
13 | * <!-- end-user-doc --> | ||
14 | * | ||
15 | * @generated | ||
16 | */ | ||
17 | public class UnboundedMultiplicityImpl extends MultiplicityImpl implements UnboundedMultiplicity { | ||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * <!-- end-user-doc --> | ||
21 | * @generated | ||
22 | */ | ||
23 | protected UnboundedMultiplicityImpl() { | ||
24 | super(); | ||
25 | } | ||
26 | |||
27 | /** | ||
28 | * <!-- begin-user-doc --> | ||
29 | * <!-- end-user-doc --> | ||
30 | * @generated | ||
31 | */ | ||
32 | @Override | ||
33 | protected EClass eStaticClass() { | ||
34 | return ProblemPackage.Literals.UNBOUNDED_MULTIPLICITY; | ||
35 | } | ||
36 | |||
37 | } //UnboundedMultiplicityImpl | ||
diff --git a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/VariableImpl.java b/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/VariableImpl.java deleted file mode 100644 index 645ac39c..00000000 --- a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/VariableImpl.java +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EClass; | ||
6 | |||
7 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
8 | import org.eclipse.viatra.solver.language.model.problem.Variable; | ||
9 | |||
10 | /** | ||
11 | * <!-- begin-user-doc --> | ||
12 | * An implementation of the model object '<em><b>Variable</b></em>'. | ||
13 | * <!-- end-user-doc --> | ||
14 | * | ||
15 | * @generated | ||
16 | */ | ||
17 | public abstract class VariableImpl extends VariableOrNodeImpl implements Variable { | ||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * <!-- end-user-doc --> | ||
21 | * @generated | ||
22 | */ | ||
23 | protected VariableImpl() { | ||
24 | super(); | ||
25 | } | ||
26 | |||
27 | /** | ||
28 | * <!-- begin-user-doc --> | ||
29 | * <!-- end-user-doc --> | ||
30 | * @generated | ||
31 | */ | ||
32 | @Override | ||
33 | protected EClass eStaticClass() { | ||
34 | return ProblemPackage.Literals.VARIABLE; | ||
35 | } | ||
36 | |||
37 | } //VariableImpl | ||
diff --git a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/VariableOrNodeArgumentImpl.java b/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/VariableOrNodeArgumentImpl.java deleted file mode 100644 index 693d5cdd..00000000 --- a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/VariableOrNodeArgumentImpl.java +++ /dev/null | |||
@@ -1,251 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import org.eclipse.emf.common.notify.Notification; | ||
6 | import org.eclipse.emf.common.notify.NotificationChain; | ||
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.model.problem.ImplicitVariable; | ||
14 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
15 | import org.eclipse.viatra.solver.language.model.problem.VariableOrNode; | ||
16 | import org.eclipse.viatra.solver.language.model.problem.VariableOrNodeArgument; | ||
17 | |||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * An implementation of the model object '<em><b>Variable Or Node 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.model.problem.impl.VariableOrNodeArgumentImpl#getVariableOrNode <em>Variable Or Node</em>}</li> | ||
27 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.VariableOrNodeArgumentImpl#getSingletonVariable <em>Singleton Variable</em>}</li> | ||
28 | * </ul> | ||
29 | * | ||
30 | * @generated | ||
31 | */ | ||
32 | public class VariableOrNodeArgumentImpl extends ArgumentImpl implements VariableOrNodeArgument { | ||
33 | /** | ||
34 | * The cached value of the '{@link #getVariableOrNode() <em>Variable Or Node</em>}' reference. | ||
35 | * <!-- begin-user-doc --> | ||
36 | * <!-- end-user-doc --> | ||
37 | * @see #getVariableOrNode() | ||
38 | * @generated | ||
39 | * @ordered | ||
40 | */ | ||
41 | protected VariableOrNode variableOrNode; | ||
42 | |||
43 | /** | ||
44 | * The cached value of the '{@link #getSingletonVariable() <em>Singleton Variable</em>}' containment reference. | ||
45 | * <!-- begin-user-doc --> | ||
46 | * <!-- end-user-doc --> | ||
47 | * @see #getSingletonVariable() | ||
48 | * @generated | ||
49 | * @ordered | ||
50 | */ | ||
51 | protected ImplicitVariable singletonVariable; | ||
52 | |||
53 | /** | ||
54 | * <!-- begin-user-doc --> | ||
55 | * <!-- end-user-doc --> | ||
56 | * @generated | ||
57 | */ | ||
58 | protected VariableOrNodeArgumentImpl() { | ||
59 | super(); | ||
60 | } | ||
61 | |||
62 | /** | ||
63 | * <!-- begin-user-doc --> | ||
64 | * <!-- end-user-doc --> | ||
65 | * @generated | ||
66 | */ | ||
67 | @Override | ||
68 | protected EClass eStaticClass() { | ||
69 | return ProblemPackage.Literals.VARIABLE_OR_NODE_ARGUMENT; | ||
70 | } | ||
71 | |||
72 | /** | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @generated | ||
76 | */ | ||
77 | public VariableOrNode getVariableOrNode() { | ||
78 | if (variableOrNode != null && variableOrNode.eIsProxy()) { | ||
79 | InternalEObject oldVariableOrNode = (InternalEObject) variableOrNode; | ||
80 | variableOrNode = (VariableOrNode) eResolveProxy(oldVariableOrNode); | ||
81 | if (variableOrNode != oldVariableOrNode) { | ||
82 | if (eNotificationRequired()) | ||
83 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, | ||
84 | ProblemPackage.VARIABLE_OR_NODE_ARGUMENT__VARIABLE_OR_NODE, oldVariableOrNode, | ||
85 | variableOrNode)); | ||
86 | } | ||
87 | } | ||
88 | return variableOrNode; | ||
89 | } | ||
90 | |||
91 | /** | ||
92 | * <!-- begin-user-doc --> | ||
93 | * <!-- end-user-doc --> | ||
94 | * @generated | ||
95 | */ | ||
96 | public VariableOrNode basicGetVariableOrNode() { | ||
97 | return variableOrNode; | ||
98 | } | ||
99 | |||
100 | /** | ||
101 | * <!-- begin-user-doc --> | ||
102 | * <!-- end-user-doc --> | ||
103 | * @generated | ||
104 | */ | ||
105 | public void setVariableOrNode(VariableOrNode newVariableOrNode) { | ||
106 | VariableOrNode oldVariableOrNode = variableOrNode; | ||
107 | variableOrNode = newVariableOrNode; | ||
108 | if (eNotificationRequired()) | ||
109 | eNotify(new ENotificationImpl(this, Notification.SET, | ||
110 | ProblemPackage.VARIABLE_OR_NODE_ARGUMENT__VARIABLE_OR_NODE, oldVariableOrNode, variableOrNode)); | ||
111 | } | ||
112 | |||
113 | /** | ||
114 | * <!-- begin-user-doc --> | ||
115 | * <!-- end-user-doc --> | ||
116 | * @generated | ||
117 | */ | ||
118 | public ImplicitVariable getSingletonVariable() { | ||
119 | return singletonVariable; | ||
120 | } | ||
121 | |||
122 | /** | ||
123 | * <!-- begin-user-doc --> | ||
124 | * <!-- end-user-doc --> | ||
125 | * @generated | ||
126 | */ | ||
127 | public NotificationChain basicSetSingletonVariable(ImplicitVariable newSingletonVariable, NotificationChain msgs) { | ||
128 | ImplicitVariable oldSingletonVariable = singletonVariable; | ||
129 | singletonVariable = newSingletonVariable; | ||
130 | if (eNotificationRequired()) { | ||
131 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, | ||
132 | ProblemPackage.VARIABLE_OR_NODE_ARGUMENT__SINGLETON_VARIABLE, oldSingletonVariable, | ||
133 | newSingletonVariable); | ||
134 | if (msgs == null) | ||
135 | msgs = notification; | ||
136 | else | ||
137 | msgs.add(notification); | ||
138 | } | ||
139 | return msgs; | ||
140 | } | ||
141 | |||
142 | /** | ||
143 | * <!-- begin-user-doc --> | ||
144 | * <!-- end-user-doc --> | ||
145 | * @generated | ||
146 | */ | ||
147 | public void setSingletonVariable(ImplicitVariable newSingletonVariable) { | ||
148 | if (newSingletonVariable != singletonVariable) { | ||
149 | NotificationChain msgs = null; | ||
150 | if (singletonVariable != null) | ||
151 | msgs = ((InternalEObject) singletonVariable).eInverseRemove(this, | ||
152 | EOPPOSITE_FEATURE_BASE - ProblemPackage.VARIABLE_OR_NODE_ARGUMENT__SINGLETON_VARIABLE, null, | ||
153 | msgs); | ||
154 | if (newSingletonVariable != null) | ||
155 | msgs = ((InternalEObject) newSingletonVariable).eInverseAdd(this, | ||
156 | EOPPOSITE_FEATURE_BASE - ProblemPackage.VARIABLE_OR_NODE_ARGUMENT__SINGLETON_VARIABLE, null, | ||
157 | msgs); | ||
158 | msgs = basicSetSingletonVariable(newSingletonVariable, msgs); | ||
159 | if (msgs != null) | ||
160 | msgs.dispatch(); | ||
161 | } else if (eNotificationRequired()) | ||
162 | eNotify(new ENotificationImpl(this, Notification.SET, | ||
163 | ProblemPackage.VARIABLE_OR_NODE_ARGUMENT__SINGLETON_VARIABLE, newSingletonVariable, | ||
164 | newSingletonVariable)); | ||
165 | } | ||
166 | |||
167 | /** | ||
168 | * <!-- begin-user-doc --> | ||
169 | * <!-- end-user-doc --> | ||
170 | * @generated | ||
171 | */ | ||
172 | @Override | ||
173 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
174 | switch (featureID) { | ||
175 | case ProblemPackage.VARIABLE_OR_NODE_ARGUMENT__SINGLETON_VARIABLE: | ||
176 | return basicSetSingletonVariable(null, msgs); | ||
177 | } | ||
178 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
179 | } | ||
180 | |||
181 | /** | ||
182 | * <!-- begin-user-doc --> | ||
183 | * <!-- end-user-doc --> | ||
184 | * @generated | ||
185 | */ | ||
186 | @Override | ||
187 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
188 | switch (featureID) { | ||
189 | case ProblemPackage.VARIABLE_OR_NODE_ARGUMENT__VARIABLE_OR_NODE: | ||
190 | if (resolve) | ||
191 | return getVariableOrNode(); | ||
192 | return basicGetVariableOrNode(); | ||
193 | case ProblemPackage.VARIABLE_OR_NODE_ARGUMENT__SINGLETON_VARIABLE: | ||
194 | return getSingletonVariable(); | ||
195 | } | ||
196 | return super.eGet(featureID, resolve, coreType); | ||
197 | } | ||
198 | |||
199 | /** | ||
200 | * <!-- begin-user-doc --> | ||
201 | * <!-- end-user-doc --> | ||
202 | * @generated | ||
203 | */ | ||
204 | @Override | ||
205 | public void eSet(int featureID, Object newValue) { | ||
206 | switch (featureID) { | ||
207 | case ProblemPackage.VARIABLE_OR_NODE_ARGUMENT__VARIABLE_OR_NODE: | ||
208 | setVariableOrNode((VariableOrNode) newValue); | ||
209 | return; | ||
210 | case ProblemPackage.VARIABLE_OR_NODE_ARGUMENT__SINGLETON_VARIABLE: | ||
211 | setSingletonVariable((ImplicitVariable) newValue); | ||
212 | return; | ||
213 | } | ||
214 | super.eSet(featureID, newValue); | ||
215 | } | ||
216 | |||
217 | /** | ||
218 | * <!-- begin-user-doc --> | ||
219 | * <!-- end-user-doc --> | ||
220 | * @generated | ||
221 | */ | ||
222 | @Override | ||
223 | public void eUnset(int featureID) { | ||
224 | switch (featureID) { | ||
225 | case ProblemPackage.VARIABLE_OR_NODE_ARGUMENT__VARIABLE_OR_NODE: | ||
226 | setVariableOrNode((VariableOrNode) null); | ||
227 | return; | ||
228 | case ProblemPackage.VARIABLE_OR_NODE_ARGUMENT__SINGLETON_VARIABLE: | ||
229 | setSingletonVariable((ImplicitVariable) 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 | switch (featureID) { | ||
243 | case ProblemPackage.VARIABLE_OR_NODE_ARGUMENT__VARIABLE_OR_NODE: | ||
244 | return variableOrNode != null; | ||
245 | case ProblemPackage.VARIABLE_OR_NODE_ARGUMENT__SINGLETON_VARIABLE: | ||
246 | return singletonVariable != null; | ||
247 | } | ||
248 | return super.eIsSet(featureID); | ||
249 | } | ||
250 | |||
251 | } //VariableOrNodeArgumentImpl | ||
diff --git a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/VariableOrNodeImpl.java b/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/VariableOrNodeImpl.java deleted file mode 100644 index 4964a019..00000000 --- a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/VariableOrNodeImpl.java +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EClass; | ||
6 | |||
7 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
8 | import org.eclipse.viatra.solver.language.model.problem.VariableOrNode; | ||
9 | |||
10 | /** | ||
11 | * <!-- begin-user-doc --> | ||
12 | * An implementation of the model object '<em><b>Variable Or Node</b></em>'. | ||
13 | * <!-- end-user-doc --> | ||
14 | * | ||
15 | * @generated | ||
16 | */ | ||
17 | public abstract class VariableOrNodeImpl extends NamedElementImpl implements VariableOrNode { | ||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * <!-- end-user-doc --> | ||
21 | * @generated | ||
22 | */ | ||
23 | protected VariableOrNodeImpl() { | ||
24 | super(); | ||
25 | } | ||
26 | |||
27 | /** | ||
28 | * <!-- begin-user-doc --> | ||
29 | * <!-- end-user-doc --> | ||
30 | * @generated | ||
31 | */ | ||
32 | @Override | ||
33 | protected EClass eStaticClass() { | ||
34 | return ProblemPackage.Literals.VARIABLE_OR_NODE; | ||
35 | } | ||
36 | |||
37 | } //VariableOrNodeImpl | ||