diff options
Diffstat (limited to 'Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl')
56 files changed, 9765 insertions, 0 deletions
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/AllInstancesImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/AllInstancesImpl.java new file mode 100644 index 00000000..5da3bf30 --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/AllInstancesImpl.java | |||
@@ -0,0 +1,196 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | import org.eclipse.emf.common.notify.NotificationChain; | ||
8 | |||
9 | import org.eclipse.emf.ecore.EClass; | ||
10 | import org.eclipse.emf.ecore.InternalEObject; | ||
11 | |||
12 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
13 | |||
14 | import org.eclipse.viatra.solver.language.solverLanguage.AllInstances; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.Symbol; | ||
17 | |||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * An implementation of the model object '<em><b>All Instances</b></em>'. | ||
21 | * <!-- end-user-doc --> | ||
22 | * <p> | ||
23 | * The following features are implemented: | ||
24 | * </p> | ||
25 | * <ul> | ||
26 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.AllInstancesImpl#getSymbol <em>Symbol</em>}</li> | ||
27 | * </ul> | ||
28 | * | ||
29 | * @generated | ||
30 | */ | ||
31 | public class AllInstancesImpl extends ComplexObjectImpl implements AllInstances | ||
32 | { | ||
33 | /** | ||
34 | * The cached value of the '{@link #getSymbol() <em>Symbol</em>}' containment reference. | ||
35 | * <!-- begin-user-doc --> | ||
36 | * <!-- end-user-doc --> | ||
37 | * @see #getSymbol() | ||
38 | * @generated | ||
39 | * @ordered | ||
40 | */ | ||
41 | protected Symbol symbol; | ||
42 | |||
43 | /** | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @generated | ||
47 | */ | ||
48 | protected AllInstancesImpl() | ||
49 | { | ||
50 | super(); | ||
51 | } | ||
52 | |||
53 | /** | ||
54 | * <!-- begin-user-doc --> | ||
55 | * <!-- end-user-doc --> | ||
56 | * @generated | ||
57 | */ | ||
58 | @Override | ||
59 | protected EClass eStaticClass() | ||
60 | { | ||
61 | return SolverLanguagePackage.Literals.ALL_INSTANCES; | ||
62 | } | ||
63 | |||
64 | /** | ||
65 | * <!-- begin-user-doc --> | ||
66 | * <!-- end-user-doc --> | ||
67 | * @generated | ||
68 | */ | ||
69 | @Override | ||
70 | public Symbol getSymbol() | ||
71 | { | ||
72 | return symbol; | ||
73 | } | ||
74 | |||
75 | /** | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <!-- end-user-doc --> | ||
78 | * @generated | ||
79 | */ | ||
80 | public NotificationChain basicSetSymbol(Symbol newSymbol, NotificationChain msgs) | ||
81 | { | ||
82 | Symbol oldSymbol = symbol; | ||
83 | symbol = newSymbol; | ||
84 | if (eNotificationRequired()) | ||
85 | { | ||
86 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.ALL_INSTANCES__SYMBOL, oldSymbol, newSymbol); | ||
87 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
88 | } | ||
89 | return msgs; | ||
90 | } | ||
91 | |||
92 | /** | ||
93 | * <!-- begin-user-doc --> | ||
94 | * <!-- end-user-doc --> | ||
95 | * @generated | ||
96 | */ | ||
97 | @Override | ||
98 | public void setSymbol(Symbol newSymbol) | ||
99 | { | ||
100 | if (newSymbol != symbol) | ||
101 | { | ||
102 | NotificationChain msgs = null; | ||
103 | if (symbol != null) | ||
104 | msgs = ((InternalEObject)symbol).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.ALL_INSTANCES__SYMBOL, null, msgs); | ||
105 | if (newSymbol != null) | ||
106 | msgs = ((InternalEObject)newSymbol).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.ALL_INSTANCES__SYMBOL, null, msgs); | ||
107 | msgs = basicSetSymbol(newSymbol, msgs); | ||
108 | if (msgs != null) msgs.dispatch(); | ||
109 | } | ||
110 | else if (eNotificationRequired()) | ||
111 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.ALL_INSTANCES__SYMBOL, newSymbol, newSymbol)); | ||
112 | } | ||
113 | |||
114 | /** | ||
115 | * <!-- begin-user-doc --> | ||
116 | * <!-- end-user-doc --> | ||
117 | * @generated | ||
118 | */ | ||
119 | @Override | ||
120 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
121 | { | ||
122 | switch (featureID) | ||
123 | { | ||
124 | case SolverLanguagePackage.ALL_INSTANCES__SYMBOL: | ||
125 | return basicSetSymbol(null, msgs); | ||
126 | } | ||
127 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
128 | } | ||
129 | |||
130 | /** | ||
131 | * <!-- begin-user-doc --> | ||
132 | * <!-- end-user-doc --> | ||
133 | * @generated | ||
134 | */ | ||
135 | @Override | ||
136 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
137 | { | ||
138 | switch (featureID) | ||
139 | { | ||
140 | case SolverLanguagePackage.ALL_INSTANCES__SYMBOL: | ||
141 | return getSymbol(); | ||
142 | } | ||
143 | return super.eGet(featureID, resolve, coreType); | ||
144 | } | ||
145 | |||
146 | /** | ||
147 | * <!-- begin-user-doc --> | ||
148 | * <!-- end-user-doc --> | ||
149 | * @generated | ||
150 | */ | ||
151 | @Override | ||
152 | public void eSet(int featureID, Object newValue) | ||
153 | { | ||
154 | switch (featureID) | ||
155 | { | ||
156 | case SolverLanguagePackage.ALL_INSTANCES__SYMBOL: | ||
157 | setSymbol((Symbol)newValue); | ||
158 | return; | ||
159 | } | ||
160 | super.eSet(featureID, newValue); | ||
161 | } | ||
162 | |||
163 | /** | ||
164 | * <!-- begin-user-doc --> | ||
165 | * <!-- end-user-doc --> | ||
166 | * @generated | ||
167 | */ | ||
168 | @Override | ||
169 | public void eUnset(int featureID) | ||
170 | { | ||
171 | switch (featureID) | ||
172 | { | ||
173 | case SolverLanguagePackage.ALL_INSTANCES__SYMBOL: | ||
174 | setSymbol((Symbol)null); | ||
175 | return; | ||
176 | } | ||
177 | super.eUnset(featureID); | ||
178 | } | ||
179 | |||
180 | /** | ||
181 | * <!-- begin-user-doc --> | ||
182 | * <!-- end-user-doc --> | ||
183 | * @generated | ||
184 | */ | ||
185 | @Override | ||
186 | public boolean eIsSet(int featureID) | ||
187 | { | ||
188 | switch (featureID) | ||
189 | { | ||
190 | case SolverLanguagePackage.ALL_INSTANCES__SYMBOL: | ||
191 | return symbol != null; | ||
192 | } | ||
193 | return super.eIsSet(featureID); | ||
194 | } | ||
195 | |||
196 | } //AllInstancesImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/AllObjectsImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/AllObjectsImpl.java new file mode 100644 index 00000000..b1e9c3d0 --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/AllObjectsImpl.java | |||
@@ -0,0 +1,41 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | |||
8 | import org.eclipse.viatra.solver.language.solverLanguage.AllObjects; | ||
9 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * An implementation of the model object '<em><b>All Objects</b></em>'. | ||
14 | * <!-- end-user-doc --> | ||
15 | * | ||
16 | * @generated | ||
17 | */ | ||
18 | public class AllObjectsImpl extends ComplexObjectImpl implements AllObjects | ||
19 | { | ||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * <!-- end-user-doc --> | ||
23 | * @generated | ||
24 | */ | ||
25 | protected AllObjectsImpl() | ||
26 | { | ||
27 | super(); | ||
28 | } | ||
29 | |||
30 | /** | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @generated | ||
34 | */ | ||
35 | @Override | ||
36 | protected EClass eStaticClass() | ||
37 | { | ||
38 | return SolverLanguagePackage.Literals.ALL_OBJECTS; | ||
39 | } | ||
40 | |||
41 | } //AllObjectsImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/BasicInterpretationImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/BasicInterpretationImpl.java new file mode 100644 index 00000000..aef515f6 --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/BasicInterpretationImpl.java | |||
@@ -0,0 +1,318 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import java.util.Collection; | ||
7 | |||
8 | import org.eclipse.emf.common.notify.Notification; | ||
9 | import org.eclipse.emf.common.notify.NotificationChain; | ||
10 | |||
11 | import org.eclipse.emf.common.util.EList; | ||
12 | |||
13 | import org.eclipse.emf.ecore.EClass; | ||
14 | import org.eclipse.emf.ecore.InternalEObject; | ||
15 | |||
16 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
17 | |||
18 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
19 | import org.eclipse.emf.ecore.util.InternalEList; | ||
20 | |||
21 | import org.eclipse.viatra.solver.language.solverLanguage.BasicInterpretation; | ||
22 | import org.eclipse.viatra.solver.language.solverLanguage.ComplexObject; | ||
23 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
24 | import org.eclipse.viatra.solver.language.solverLanguage.Symbol; | ||
25 | import org.eclipse.viatra.solver.language.solverLanguage.TruthValue; | ||
26 | |||
27 | /** | ||
28 | * <!-- begin-user-doc --> | ||
29 | * An implementation of the model object '<em><b>Basic Interpretation</b></em>'. | ||
30 | * <!-- end-user-doc --> | ||
31 | * <p> | ||
32 | * The following features are implemented: | ||
33 | * </p> | ||
34 | * <ul> | ||
35 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.BasicInterpretationImpl#getSymbol <em>Symbol</em>}</li> | ||
36 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.BasicInterpretationImpl#getObjects <em>Objects</em>}</li> | ||
37 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.BasicInterpretationImpl#getValue <em>Value</em>}</li> | ||
38 | * </ul> | ||
39 | * | ||
40 | * @generated | ||
41 | */ | ||
42 | public class BasicInterpretationImpl extends InterpretationImpl implements BasicInterpretation | ||
43 | { | ||
44 | /** | ||
45 | * The cached value of the '{@link #getSymbol() <em>Symbol</em>}' containment reference. | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @see #getSymbol() | ||
49 | * @generated | ||
50 | * @ordered | ||
51 | */ | ||
52 | protected Symbol symbol; | ||
53 | |||
54 | /** | ||
55 | * The cached value of the '{@link #getObjects() <em>Objects</em>}' containment reference list. | ||
56 | * <!-- begin-user-doc --> | ||
57 | * <!-- end-user-doc --> | ||
58 | * @see #getObjects() | ||
59 | * @generated | ||
60 | * @ordered | ||
61 | */ | ||
62 | protected EList<ComplexObject> objects; | ||
63 | |||
64 | /** | ||
65 | * The cached value of the '{@link #getValue() <em>Value</em>}' containment reference. | ||
66 | * <!-- begin-user-doc --> | ||
67 | * <!-- end-user-doc --> | ||
68 | * @see #getValue() | ||
69 | * @generated | ||
70 | * @ordered | ||
71 | */ | ||
72 | protected TruthValue value; | ||
73 | |||
74 | /** | ||
75 | * <!-- begin-user-doc --> | ||
76 | * <!-- end-user-doc --> | ||
77 | * @generated | ||
78 | */ | ||
79 | protected BasicInterpretationImpl() | ||
80 | { | ||
81 | super(); | ||
82 | } | ||
83 | |||
84 | /** | ||
85 | * <!-- begin-user-doc --> | ||
86 | * <!-- end-user-doc --> | ||
87 | * @generated | ||
88 | */ | ||
89 | @Override | ||
90 | protected EClass eStaticClass() | ||
91 | { | ||
92 | return SolverLanguagePackage.Literals.BASIC_INTERPRETATION; | ||
93 | } | ||
94 | |||
95 | /** | ||
96 | * <!-- begin-user-doc --> | ||
97 | * <!-- end-user-doc --> | ||
98 | * @generated | ||
99 | */ | ||
100 | @Override | ||
101 | public Symbol getSymbol() | ||
102 | { | ||
103 | return symbol; | ||
104 | } | ||
105 | |||
106 | /** | ||
107 | * <!-- begin-user-doc --> | ||
108 | * <!-- end-user-doc --> | ||
109 | * @generated | ||
110 | */ | ||
111 | public NotificationChain basicSetSymbol(Symbol newSymbol, NotificationChain msgs) | ||
112 | { | ||
113 | Symbol oldSymbol = symbol; | ||
114 | symbol = newSymbol; | ||
115 | if (eNotificationRequired()) | ||
116 | { | ||
117 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.BASIC_INTERPRETATION__SYMBOL, oldSymbol, newSymbol); | ||
118 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
119 | } | ||
120 | return msgs; | ||
121 | } | ||
122 | |||
123 | /** | ||
124 | * <!-- begin-user-doc --> | ||
125 | * <!-- end-user-doc --> | ||
126 | * @generated | ||
127 | */ | ||
128 | @Override | ||
129 | public void setSymbol(Symbol newSymbol) | ||
130 | { | ||
131 | if (newSymbol != symbol) | ||
132 | { | ||
133 | NotificationChain msgs = null; | ||
134 | if (symbol != null) | ||
135 | msgs = ((InternalEObject)symbol).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.BASIC_INTERPRETATION__SYMBOL, null, msgs); | ||
136 | if (newSymbol != null) | ||
137 | msgs = ((InternalEObject)newSymbol).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.BASIC_INTERPRETATION__SYMBOL, null, msgs); | ||
138 | msgs = basicSetSymbol(newSymbol, msgs); | ||
139 | if (msgs != null) msgs.dispatch(); | ||
140 | } | ||
141 | else if (eNotificationRequired()) | ||
142 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.BASIC_INTERPRETATION__SYMBOL, newSymbol, newSymbol)); | ||
143 | } | ||
144 | |||
145 | /** | ||
146 | * <!-- begin-user-doc --> | ||
147 | * <!-- end-user-doc --> | ||
148 | * @generated | ||
149 | */ | ||
150 | @Override | ||
151 | public EList<ComplexObject> getObjects() | ||
152 | { | ||
153 | if (objects == null) | ||
154 | { | ||
155 | objects = new EObjectContainmentEList<ComplexObject>(ComplexObject.class, this, SolverLanguagePackage.BASIC_INTERPRETATION__OBJECTS); | ||
156 | } | ||
157 | return objects; | ||
158 | } | ||
159 | |||
160 | /** | ||
161 | * <!-- begin-user-doc --> | ||
162 | * <!-- end-user-doc --> | ||
163 | * @generated | ||
164 | */ | ||
165 | @Override | ||
166 | public TruthValue getValue() | ||
167 | { | ||
168 | return value; | ||
169 | } | ||
170 | |||
171 | /** | ||
172 | * <!-- begin-user-doc --> | ||
173 | * <!-- end-user-doc --> | ||
174 | * @generated | ||
175 | */ | ||
176 | public NotificationChain basicSetValue(TruthValue newValue, NotificationChain msgs) | ||
177 | { | ||
178 | TruthValue oldValue = value; | ||
179 | value = newValue; | ||
180 | if (eNotificationRequired()) | ||
181 | { | ||
182 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.BASIC_INTERPRETATION__VALUE, oldValue, newValue); | ||
183 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
184 | } | ||
185 | return msgs; | ||
186 | } | ||
187 | |||
188 | /** | ||
189 | * <!-- begin-user-doc --> | ||
190 | * <!-- end-user-doc --> | ||
191 | * @generated | ||
192 | */ | ||
193 | @Override | ||
194 | public void setValue(TruthValue newValue) | ||
195 | { | ||
196 | if (newValue != value) | ||
197 | { | ||
198 | NotificationChain msgs = null; | ||
199 | if (value != null) | ||
200 | msgs = ((InternalEObject)value).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.BASIC_INTERPRETATION__VALUE, null, msgs); | ||
201 | if (newValue != null) | ||
202 | msgs = ((InternalEObject)newValue).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.BASIC_INTERPRETATION__VALUE, null, msgs); | ||
203 | msgs = basicSetValue(newValue, msgs); | ||
204 | if (msgs != null) msgs.dispatch(); | ||
205 | } | ||
206 | else if (eNotificationRequired()) | ||
207 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.BASIC_INTERPRETATION__VALUE, newValue, newValue)); | ||
208 | } | ||
209 | |||
210 | /** | ||
211 | * <!-- begin-user-doc --> | ||
212 | * <!-- end-user-doc --> | ||
213 | * @generated | ||
214 | */ | ||
215 | @Override | ||
216 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
217 | { | ||
218 | switch (featureID) | ||
219 | { | ||
220 | case SolverLanguagePackage.BASIC_INTERPRETATION__SYMBOL: | ||
221 | return basicSetSymbol(null, msgs); | ||
222 | case SolverLanguagePackage.BASIC_INTERPRETATION__OBJECTS: | ||
223 | return ((InternalEList<?>)getObjects()).basicRemove(otherEnd, msgs); | ||
224 | case SolverLanguagePackage.BASIC_INTERPRETATION__VALUE: | ||
225 | return basicSetValue(null, msgs); | ||
226 | } | ||
227 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
228 | } | ||
229 | |||
230 | /** | ||
231 | * <!-- begin-user-doc --> | ||
232 | * <!-- end-user-doc --> | ||
233 | * @generated | ||
234 | */ | ||
235 | @Override | ||
236 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
237 | { | ||
238 | switch (featureID) | ||
239 | { | ||
240 | case SolverLanguagePackage.BASIC_INTERPRETATION__SYMBOL: | ||
241 | return getSymbol(); | ||
242 | case SolverLanguagePackage.BASIC_INTERPRETATION__OBJECTS: | ||
243 | return getObjects(); | ||
244 | case SolverLanguagePackage.BASIC_INTERPRETATION__VALUE: | ||
245 | return getValue(); | ||
246 | } | ||
247 | return super.eGet(featureID, resolve, coreType); | ||
248 | } | ||
249 | |||
250 | /** | ||
251 | * <!-- begin-user-doc --> | ||
252 | * <!-- end-user-doc --> | ||
253 | * @generated | ||
254 | */ | ||
255 | @SuppressWarnings("unchecked") | ||
256 | @Override | ||
257 | public void eSet(int featureID, Object newValue) | ||
258 | { | ||
259 | switch (featureID) | ||
260 | { | ||
261 | case SolverLanguagePackage.BASIC_INTERPRETATION__SYMBOL: | ||
262 | setSymbol((Symbol)newValue); | ||
263 | return; | ||
264 | case SolverLanguagePackage.BASIC_INTERPRETATION__OBJECTS: | ||
265 | getObjects().clear(); | ||
266 | getObjects().addAll((Collection<? extends ComplexObject>)newValue); | ||
267 | return; | ||
268 | case SolverLanguagePackage.BASIC_INTERPRETATION__VALUE: | ||
269 | setValue((TruthValue)newValue); | ||
270 | return; | ||
271 | } | ||
272 | super.eSet(featureID, newValue); | ||
273 | } | ||
274 | |||
275 | /** | ||
276 | * <!-- begin-user-doc --> | ||
277 | * <!-- end-user-doc --> | ||
278 | * @generated | ||
279 | */ | ||
280 | @Override | ||
281 | public void eUnset(int featureID) | ||
282 | { | ||
283 | switch (featureID) | ||
284 | { | ||
285 | case SolverLanguagePackage.BASIC_INTERPRETATION__SYMBOL: | ||
286 | setSymbol((Symbol)null); | ||
287 | return; | ||
288 | case SolverLanguagePackage.BASIC_INTERPRETATION__OBJECTS: | ||
289 | getObjects().clear(); | ||
290 | return; | ||
291 | case SolverLanguagePackage.BASIC_INTERPRETATION__VALUE: | ||
292 | setValue((TruthValue)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 | { | ||
306 | switch (featureID) | ||
307 | { | ||
308 | case SolverLanguagePackage.BASIC_INTERPRETATION__SYMBOL: | ||
309 | return symbol != null; | ||
310 | case SolverLanguagePackage.BASIC_INTERPRETATION__OBJECTS: | ||
311 | return objects != null && !objects.isEmpty(); | ||
312 | case SolverLanguagePackage.BASIC_INTERPRETATION__VALUE: | ||
313 | return value != null; | ||
314 | } | ||
315 | return super.eIsSet(featureID); | ||
316 | } | ||
317 | |||
318 | } //BasicInterpretationImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/BooleanFalseImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/BooleanFalseImpl.java new file mode 100644 index 00000000..ae78f540 --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/BooleanFalseImpl.java | |||
@@ -0,0 +1,41 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | |||
8 | import org.eclipse.viatra.solver.language.solverLanguage.BooleanFalse; | ||
9 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * An implementation of the model object '<em><b>Boolean False</b></em>'. | ||
14 | * <!-- end-user-doc --> | ||
15 | * | ||
16 | * @generated | ||
17 | */ | ||
18 | public class BooleanFalseImpl extends BooleanValueImpl implements BooleanFalse | ||
19 | { | ||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * <!-- end-user-doc --> | ||
23 | * @generated | ||
24 | */ | ||
25 | protected BooleanFalseImpl() | ||
26 | { | ||
27 | super(); | ||
28 | } | ||
29 | |||
30 | /** | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @generated | ||
34 | */ | ||
35 | @Override | ||
36 | protected EClass eStaticClass() | ||
37 | { | ||
38 | return SolverLanguagePackage.Literals.BOOLEAN_FALSE; | ||
39 | } | ||
40 | |||
41 | } //BooleanFalseImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/BooleanObjectImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/BooleanObjectImpl.java new file mode 100644 index 00000000..cb1a3ff4 --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/BooleanObjectImpl.java | |||
@@ -0,0 +1,196 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | import org.eclipse.emf.common.notify.NotificationChain; | ||
8 | |||
9 | import org.eclipse.emf.ecore.EClass; | ||
10 | import org.eclipse.emf.ecore.InternalEObject; | ||
11 | |||
12 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
13 | |||
14 | import org.eclipse.viatra.solver.language.solverLanguage.BooleanObject; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.BooleanValue; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
17 | |||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * An implementation of the model object '<em><b>Boolean Object</b></em>'. | ||
21 | * <!-- end-user-doc --> | ||
22 | * <p> | ||
23 | * The following features are implemented: | ||
24 | * </p> | ||
25 | * <ul> | ||
26 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.BooleanObjectImpl#getValue <em>Value</em>}</li> | ||
27 | * </ul> | ||
28 | * | ||
29 | * @generated | ||
30 | */ | ||
31 | public class BooleanObjectImpl extends DataObjectImpl implements BooleanObject | ||
32 | { | ||
33 | /** | ||
34 | * The cached value of the '{@link #getValue() <em>Value</em>}' containment reference. | ||
35 | * <!-- begin-user-doc --> | ||
36 | * <!-- end-user-doc --> | ||
37 | * @see #getValue() | ||
38 | * @generated | ||
39 | * @ordered | ||
40 | */ | ||
41 | protected BooleanValue value; | ||
42 | |||
43 | /** | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @generated | ||
47 | */ | ||
48 | protected BooleanObjectImpl() | ||
49 | { | ||
50 | super(); | ||
51 | } | ||
52 | |||
53 | /** | ||
54 | * <!-- begin-user-doc --> | ||
55 | * <!-- end-user-doc --> | ||
56 | * @generated | ||
57 | */ | ||
58 | @Override | ||
59 | protected EClass eStaticClass() | ||
60 | { | ||
61 | return SolverLanguagePackage.Literals.BOOLEAN_OBJECT; | ||
62 | } | ||
63 | |||
64 | /** | ||
65 | * <!-- begin-user-doc --> | ||
66 | * <!-- end-user-doc --> | ||
67 | * @generated | ||
68 | */ | ||
69 | @Override | ||
70 | public BooleanValue getValue() | ||
71 | { | ||
72 | return value; | ||
73 | } | ||
74 | |||
75 | /** | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <!-- end-user-doc --> | ||
78 | * @generated | ||
79 | */ | ||
80 | public NotificationChain basicSetValue(BooleanValue newValue, NotificationChain msgs) | ||
81 | { | ||
82 | BooleanValue oldValue = value; | ||
83 | value = newValue; | ||
84 | if (eNotificationRequired()) | ||
85 | { | ||
86 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.BOOLEAN_OBJECT__VALUE, oldValue, newValue); | ||
87 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
88 | } | ||
89 | return msgs; | ||
90 | } | ||
91 | |||
92 | /** | ||
93 | * <!-- begin-user-doc --> | ||
94 | * <!-- end-user-doc --> | ||
95 | * @generated | ||
96 | */ | ||
97 | @Override | ||
98 | public void setValue(BooleanValue newValue) | ||
99 | { | ||
100 | if (newValue != value) | ||
101 | { | ||
102 | NotificationChain msgs = null; | ||
103 | if (value != null) | ||
104 | msgs = ((InternalEObject)value).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.BOOLEAN_OBJECT__VALUE, null, msgs); | ||
105 | if (newValue != null) | ||
106 | msgs = ((InternalEObject)newValue).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.BOOLEAN_OBJECT__VALUE, null, msgs); | ||
107 | msgs = basicSetValue(newValue, msgs); | ||
108 | if (msgs != null) msgs.dispatch(); | ||
109 | } | ||
110 | else if (eNotificationRequired()) | ||
111 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.BOOLEAN_OBJECT__VALUE, newValue, newValue)); | ||
112 | } | ||
113 | |||
114 | /** | ||
115 | * <!-- begin-user-doc --> | ||
116 | * <!-- end-user-doc --> | ||
117 | * @generated | ||
118 | */ | ||
119 | @Override | ||
120 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
121 | { | ||
122 | switch (featureID) | ||
123 | { | ||
124 | case SolverLanguagePackage.BOOLEAN_OBJECT__VALUE: | ||
125 | return basicSetValue(null, msgs); | ||
126 | } | ||
127 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
128 | } | ||
129 | |||
130 | /** | ||
131 | * <!-- begin-user-doc --> | ||
132 | * <!-- end-user-doc --> | ||
133 | * @generated | ||
134 | */ | ||
135 | @Override | ||
136 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
137 | { | ||
138 | switch (featureID) | ||
139 | { | ||
140 | case SolverLanguagePackage.BOOLEAN_OBJECT__VALUE: | ||
141 | return getValue(); | ||
142 | } | ||
143 | return super.eGet(featureID, resolve, coreType); | ||
144 | } | ||
145 | |||
146 | /** | ||
147 | * <!-- begin-user-doc --> | ||
148 | * <!-- end-user-doc --> | ||
149 | * @generated | ||
150 | */ | ||
151 | @Override | ||
152 | public void eSet(int featureID, Object newValue) | ||
153 | { | ||
154 | switch (featureID) | ||
155 | { | ||
156 | case SolverLanguagePackage.BOOLEAN_OBJECT__VALUE: | ||
157 | setValue((BooleanValue)newValue); | ||
158 | return; | ||
159 | } | ||
160 | super.eSet(featureID, newValue); | ||
161 | } | ||
162 | |||
163 | /** | ||
164 | * <!-- begin-user-doc --> | ||
165 | * <!-- end-user-doc --> | ||
166 | * @generated | ||
167 | */ | ||
168 | @Override | ||
169 | public void eUnset(int featureID) | ||
170 | { | ||
171 | switch (featureID) | ||
172 | { | ||
173 | case SolverLanguagePackage.BOOLEAN_OBJECT__VALUE: | ||
174 | setValue((BooleanValue)null); | ||
175 | return; | ||
176 | } | ||
177 | super.eUnset(featureID); | ||
178 | } | ||
179 | |||
180 | /** | ||
181 | * <!-- begin-user-doc --> | ||
182 | * <!-- end-user-doc --> | ||
183 | * @generated | ||
184 | */ | ||
185 | @Override | ||
186 | public boolean eIsSet(int featureID) | ||
187 | { | ||
188 | switch (featureID) | ||
189 | { | ||
190 | case SolverLanguagePackage.BOOLEAN_OBJECT__VALUE: | ||
191 | return value != null; | ||
192 | } | ||
193 | return super.eIsSet(featureID); | ||
194 | } | ||
195 | |||
196 | } //BooleanObjectImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/BooleanSymbolImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/BooleanSymbolImpl.java new file mode 100644 index 00000000..49258091 --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/BooleanSymbolImpl.java | |||
@@ -0,0 +1,41 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | |||
8 | import org.eclipse.viatra.solver.language.solverLanguage.BooleanSymbol; | ||
9 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * An implementation of the model object '<em><b>Boolean Symbol</b></em>'. | ||
14 | * <!-- end-user-doc --> | ||
15 | * | ||
16 | * @generated | ||
17 | */ | ||
18 | public class BooleanSymbolImpl extends DataSymbolImpl implements BooleanSymbol | ||
19 | { | ||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * <!-- end-user-doc --> | ||
23 | * @generated | ||
24 | */ | ||
25 | protected BooleanSymbolImpl() | ||
26 | { | ||
27 | super(); | ||
28 | } | ||
29 | |||
30 | /** | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @generated | ||
34 | */ | ||
35 | @Override | ||
36 | protected EClass eStaticClass() | ||
37 | { | ||
38 | return SolverLanguagePackage.Literals.BOOLEAN_SYMBOL; | ||
39 | } | ||
40 | |||
41 | } //BooleanSymbolImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/BooleanTrueImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/BooleanTrueImpl.java new file mode 100644 index 00000000..4d110ee9 --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/BooleanTrueImpl.java | |||
@@ -0,0 +1,41 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | |||
8 | import org.eclipse.viatra.solver.language.solverLanguage.BooleanTrue; | ||
9 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * An implementation of the model object '<em><b>Boolean True</b></em>'. | ||
14 | * <!-- end-user-doc --> | ||
15 | * | ||
16 | * @generated | ||
17 | */ | ||
18 | public class BooleanTrueImpl extends BooleanValueImpl implements BooleanTrue | ||
19 | { | ||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * <!-- end-user-doc --> | ||
23 | * @generated | ||
24 | */ | ||
25 | protected BooleanTrueImpl() | ||
26 | { | ||
27 | super(); | ||
28 | } | ||
29 | |||
30 | /** | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @generated | ||
34 | */ | ||
35 | @Override | ||
36 | protected EClass eStaticClass() | ||
37 | { | ||
38 | return SolverLanguagePackage.Literals.BOOLEAN_TRUE; | ||
39 | } | ||
40 | |||
41 | } //BooleanTrueImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/BooleanValueImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/BooleanValueImpl.java new file mode 100644 index 00000000..b27ab959 --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/BooleanValueImpl.java | |||
@@ -0,0 +1,43 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | |||
8 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
9 | |||
10 | import org.eclipse.viatra.solver.language.solverLanguage.BooleanValue; | ||
11 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
12 | |||
13 | /** | ||
14 | * <!-- begin-user-doc --> | ||
15 | * An implementation of the model object '<em><b>Boolean Value</b></em>'. | ||
16 | * <!-- end-user-doc --> | ||
17 | * | ||
18 | * @generated | ||
19 | */ | ||
20 | public class BooleanValueImpl extends MinimalEObjectImpl.Container implements BooleanValue | ||
21 | { | ||
22 | /** | ||
23 | * <!-- begin-user-doc --> | ||
24 | * <!-- end-user-doc --> | ||
25 | * @generated | ||
26 | */ | ||
27 | protected BooleanValueImpl() | ||
28 | { | ||
29 | super(); | ||
30 | } | ||
31 | |||
32 | /** | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @generated | ||
36 | */ | ||
37 | @Override | ||
38 | protected EClass eStaticClass() | ||
39 | { | ||
40 | return SolverLanguagePackage.Literals.BOOLEAN_VALUE; | ||
41 | } | ||
42 | |||
43 | } //BooleanValueImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/CDInterpretationImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/CDInterpretationImpl.java new file mode 100644 index 00000000..b23bbba5 --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/CDInterpretationImpl.java | |||
@@ -0,0 +1,41 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | |||
8 | import org.eclipse.viatra.solver.language.solverLanguage.CDInterpretation; | ||
9 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * An implementation of the model object '<em><b>CD Interpretation</b></em>'. | ||
14 | * <!-- end-user-doc --> | ||
15 | * | ||
16 | * @generated | ||
17 | */ | ||
18 | public class CDInterpretationImpl extends InterpretationImpl implements CDInterpretation | ||
19 | { | ||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * <!-- end-user-doc --> | ||
23 | * @generated | ||
24 | */ | ||
25 | protected CDInterpretationImpl() | ||
26 | { | ||
27 | super(); | ||
28 | } | ||
29 | |||
30 | /** | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @generated | ||
34 | */ | ||
35 | @Override | ||
36 | protected EClass eStaticClass() | ||
37 | { | ||
38 | return SolverLanguagePackage.Literals.CD_INTERPRETATION; | ||
39 | } | ||
40 | |||
41 | } //CDInterpretationImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ClassInterpretationImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ClassInterpretationImpl.java new file mode 100644 index 00000000..effc5970 --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ClassInterpretationImpl.java | |||
@@ -0,0 +1,356 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import java.util.Collection; | ||
7 | |||
8 | import org.eclipse.emf.common.notify.Notification; | ||
9 | import org.eclipse.emf.common.notify.NotificationChain; | ||
10 | |||
11 | import org.eclipse.emf.common.util.EList; | ||
12 | |||
13 | import org.eclipse.emf.ecore.EClass; | ||
14 | import org.eclipse.emf.ecore.InternalEObject; | ||
15 | |||
16 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
17 | |||
18 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
19 | import org.eclipse.emf.ecore.util.InternalEList; | ||
20 | |||
21 | import org.eclipse.viatra.solver.language.solverLanguage.ClassInterpretation; | ||
22 | import org.eclipse.viatra.solver.language.solverLanguage.FieldRelationInterpretation; | ||
23 | import org.eclipse.viatra.solver.language.solverLanguage.ModelSymbol; | ||
24 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
25 | |||
26 | /** | ||
27 | * <!-- begin-user-doc --> | ||
28 | * An implementation of the model object '<em><b>Class Interpretation</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.solverLanguage.impl.ClassInterpretationImpl#isAbstract <em>Abstract</em>}</li> | ||
35 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ClassInterpretationImpl#getSymbol <em>Symbol</em>}</li> | ||
36 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ClassInterpretationImpl#getSupertypes <em>Supertypes</em>}</li> | ||
37 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ClassInterpretationImpl#getFielt <em>Fielt</em>}</li> | ||
38 | * </ul> | ||
39 | * | ||
40 | * @generated | ||
41 | */ | ||
42 | public class ClassInterpretationImpl extends CDInterpretationImpl implements ClassInterpretation | ||
43 | { | ||
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 #getSymbol() <em>Symbol</em>}' containment reference. | ||
66 | * <!-- begin-user-doc --> | ||
67 | * <!-- end-user-doc --> | ||
68 | * @see #getSymbol() | ||
69 | * @generated | ||
70 | * @ordered | ||
71 | */ | ||
72 | protected ModelSymbol symbol; | ||
73 | |||
74 | /** | ||
75 | * The cached value of the '{@link #getSupertypes() <em>Supertypes</em>}' containment reference list. | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <!-- end-user-doc --> | ||
78 | * @see #getSupertypes() | ||
79 | * @generated | ||
80 | * @ordered | ||
81 | */ | ||
82 | protected EList<ModelSymbol> supertypes; | ||
83 | |||
84 | /** | ||
85 | * The cached value of the '{@link #getFielt() <em>Fielt</em>}' containment reference list. | ||
86 | * <!-- begin-user-doc --> | ||
87 | * <!-- end-user-doc --> | ||
88 | * @see #getFielt() | ||
89 | * @generated | ||
90 | * @ordered | ||
91 | */ | ||
92 | protected EList<FieldRelationInterpretation> fielt; | ||
93 | |||
94 | /** | ||
95 | * <!-- begin-user-doc --> | ||
96 | * <!-- end-user-doc --> | ||
97 | * @generated | ||
98 | */ | ||
99 | protected ClassInterpretationImpl() | ||
100 | { | ||
101 | super(); | ||
102 | } | ||
103 | |||
104 | /** | ||
105 | * <!-- begin-user-doc --> | ||
106 | * <!-- end-user-doc --> | ||
107 | * @generated | ||
108 | */ | ||
109 | @Override | ||
110 | protected EClass eStaticClass() | ||
111 | { | ||
112 | return SolverLanguagePackage.Literals.CLASS_INTERPRETATION; | ||
113 | } | ||
114 | |||
115 | /** | ||
116 | * <!-- begin-user-doc --> | ||
117 | * <!-- end-user-doc --> | ||
118 | * @generated | ||
119 | */ | ||
120 | @Override | ||
121 | public boolean isAbstract() | ||
122 | { | ||
123 | return abstract_; | ||
124 | } | ||
125 | |||
126 | /** | ||
127 | * <!-- begin-user-doc --> | ||
128 | * <!-- end-user-doc --> | ||
129 | * @generated | ||
130 | */ | ||
131 | @Override | ||
132 | public void setAbstract(boolean newAbstract) | ||
133 | { | ||
134 | boolean oldAbstract = abstract_; | ||
135 | abstract_ = newAbstract; | ||
136 | if (eNotificationRequired()) | ||
137 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.CLASS_INTERPRETATION__ABSTRACT, oldAbstract, abstract_)); | ||
138 | } | ||
139 | |||
140 | /** | ||
141 | * <!-- begin-user-doc --> | ||
142 | * <!-- end-user-doc --> | ||
143 | * @generated | ||
144 | */ | ||
145 | @Override | ||
146 | public ModelSymbol getSymbol() | ||
147 | { | ||
148 | return symbol; | ||
149 | } | ||
150 | |||
151 | /** | ||
152 | * <!-- begin-user-doc --> | ||
153 | * <!-- end-user-doc --> | ||
154 | * @generated | ||
155 | */ | ||
156 | public NotificationChain basicSetSymbol(ModelSymbol newSymbol, NotificationChain msgs) | ||
157 | { | ||
158 | ModelSymbol oldSymbol = symbol; | ||
159 | symbol = newSymbol; | ||
160 | if (eNotificationRequired()) | ||
161 | { | ||
162 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.CLASS_INTERPRETATION__SYMBOL, oldSymbol, newSymbol); | ||
163 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
164 | } | ||
165 | return msgs; | ||
166 | } | ||
167 | |||
168 | /** | ||
169 | * <!-- begin-user-doc --> | ||
170 | * <!-- end-user-doc --> | ||
171 | * @generated | ||
172 | */ | ||
173 | @Override | ||
174 | public void setSymbol(ModelSymbol newSymbol) | ||
175 | { | ||
176 | if (newSymbol != symbol) | ||
177 | { | ||
178 | NotificationChain msgs = null; | ||
179 | if (symbol != null) | ||
180 | msgs = ((InternalEObject)symbol).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.CLASS_INTERPRETATION__SYMBOL, null, msgs); | ||
181 | if (newSymbol != null) | ||
182 | msgs = ((InternalEObject)newSymbol).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.CLASS_INTERPRETATION__SYMBOL, null, msgs); | ||
183 | msgs = basicSetSymbol(newSymbol, msgs); | ||
184 | if (msgs != null) msgs.dispatch(); | ||
185 | } | ||
186 | else if (eNotificationRequired()) | ||
187 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.CLASS_INTERPRETATION__SYMBOL, newSymbol, newSymbol)); | ||
188 | } | ||
189 | |||
190 | /** | ||
191 | * <!-- begin-user-doc --> | ||
192 | * <!-- end-user-doc --> | ||
193 | * @generated | ||
194 | */ | ||
195 | @Override | ||
196 | public EList<ModelSymbol> getSupertypes() | ||
197 | { | ||
198 | if (supertypes == null) | ||
199 | { | ||
200 | supertypes = new EObjectContainmentEList<ModelSymbol>(ModelSymbol.class, this, SolverLanguagePackage.CLASS_INTERPRETATION__SUPERTYPES); | ||
201 | } | ||
202 | return supertypes; | ||
203 | } | ||
204 | |||
205 | /** | ||
206 | * <!-- begin-user-doc --> | ||
207 | * <!-- end-user-doc --> | ||
208 | * @generated | ||
209 | */ | ||
210 | @Override | ||
211 | public EList<FieldRelationInterpretation> getFielt() | ||
212 | { | ||
213 | if (fielt == null) | ||
214 | { | ||
215 | fielt = new EObjectContainmentEList<FieldRelationInterpretation>(FieldRelationInterpretation.class, this, SolverLanguagePackage.CLASS_INTERPRETATION__FIELT); | ||
216 | } | ||
217 | return fielt; | ||
218 | } | ||
219 | |||
220 | /** | ||
221 | * <!-- begin-user-doc --> | ||
222 | * <!-- end-user-doc --> | ||
223 | * @generated | ||
224 | */ | ||
225 | @Override | ||
226 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
227 | { | ||
228 | switch (featureID) | ||
229 | { | ||
230 | case SolverLanguagePackage.CLASS_INTERPRETATION__SYMBOL: | ||
231 | return basicSetSymbol(null, msgs); | ||
232 | case SolverLanguagePackage.CLASS_INTERPRETATION__SUPERTYPES: | ||
233 | return ((InternalEList<?>)getSupertypes()).basicRemove(otherEnd, msgs); | ||
234 | case SolverLanguagePackage.CLASS_INTERPRETATION__FIELT: | ||
235 | return ((InternalEList<?>)getFielt()).basicRemove(otherEnd, msgs); | ||
236 | } | ||
237 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
238 | } | ||
239 | |||
240 | /** | ||
241 | * <!-- begin-user-doc --> | ||
242 | * <!-- end-user-doc --> | ||
243 | * @generated | ||
244 | */ | ||
245 | @Override | ||
246 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
247 | { | ||
248 | switch (featureID) | ||
249 | { | ||
250 | case SolverLanguagePackage.CLASS_INTERPRETATION__ABSTRACT: | ||
251 | return isAbstract(); | ||
252 | case SolverLanguagePackage.CLASS_INTERPRETATION__SYMBOL: | ||
253 | return getSymbol(); | ||
254 | case SolverLanguagePackage.CLASS_INTERPRETATION__SUPERTYPES: | ||
255 | return getSupertypes(); | ||
256 | case SolverLanguagePackage.CLASS_INTERPRETATION__FIELT: | ||
257 | return getFielt(); | ||
258 | } | ||
259 | return super.eGet(featureID, resolve, coreType); | ||
260 | } | ||
261 | |||
262 | /** | ||
263 | * <!-- begin-user-doc --> | ||
264 | * <!-- end-user-doc --> | ||
265 | * @generated | ||
266 | */ | ||
267 | @SuppressWarnings("unchecked") | ||
268 | @Override | ||
269 | public void eSet(int featureID, Object newValue) | ||
270 | { | ||
271 | switch (featureID) | ||
272 | { | ||
273 | case SolverLanguagePackage.CLASS_INTERPRETATION__ABSTRACT: | ||
274 | setAbstract((Boolean)newValue); | ||
275 | return; | ||
276 | case SolverLanguagePackage.CLASS_INTERPRETATION__SYMBOL: | ||
277 | setSymbol((ModelSymbol)newValue); | ||
278 | return; | ||
279 | case SolverLanguagePackage.CLASS_INTERPRETATION__SUPERTYPES: | ||
280 | getSupertypes().clear(); | ||
281 | getSupertypes().addAll((Collection<? extends ModelSymbol>)newValue); | ||
282 | return; | ||
283 | case SolverLanguagePackage.CLASS_INTERPRETATION__FIELT: | ||
284 | getFielt().clear(); | ||
285 | getFielt().addAll((Collection<? extends FieldRelationInterpretation>)newValue); | ||
286 | return; | ||
287 | } | ||
288 | super.eSet(featureID, newValue); | ||
289 | } | ||
290 | |||
291 | /** | ||
292 | * <!-- begin-user-doc --> | ||
293 | * <!-- end-user-doc --> | ||
294 | * @generated | ||
295 | */ | ||
296 | @Override | ||
297 | public void eUnset(int featureID) | ||
298 | { | ||
299 | switch (featureID) | ||
300 | { | ||
301 | case SolverLanguagePackage.CLASS_INTERPRETATION__ABSTRACT: | ||
302 | setAbstract(ABSTRACT_EDEFAULT); | ||
303 | return; | ||
304 | case SolverLanguagePackage.CLASS_INTERPRETATION__SYMBOL: | ||
305 | setSymbol((ModelSymbol)null); | ||
306 | return; | ||
307 | case SolverLanguagePackage.CLASS_INTERPRETATION__SUPERTYPES: | ||
308 | getSupertypes().clear(); | ||
309 | return; | ||
310 | case SolverLanguagePackage.CLASS_INTERPRETATION__FIELT: | ||
311 | getFielt().clear(); | ||
312 | return; | ||
313 | } | ||
314 | super.eUnset(featureID); | ||
315 | } | ||
316 | |||
317 | /** | ||
318 | * <!-- begin-user-doc --> | ||
319 | * <!-- end-user-doc --> | ||
320 | * @generated | ||
321 | */ | ||
322 | @Override | ||
323 | public boolean eIsSet(int featureID) | ||
324 | { | ||
325 | switch (featureID) | ||
326 | { | ||
327 | case SolverLanguagePackage.CLASS_INTERPRETATION__ABSTRACT: | ||
328 | return abstract_ != ABSTRACT_EDEFAULT; | ||
329 | case SolverLanguagePackage.CLASS_INTERPRETATION__SYMBOL: | ||
330 | return symbol != null; | ||
331 | case SolverLanguagePackage.CLASS_INTERPRETATION__SUPERTYPES: | ||
332 | return supertypes != null && !supertypes.isEmpty(); | ||
333 | case SolverLanguagePackage.CLASS_INTERPRETATION__FIELT: | ||
334 | return fielt != null && !fielt.isEmpty(); | ||
335 | } | ||
336 | return super.eIsSet(featureID); | ||
337 | } | ||
338 | |||
339 | /** | ||
340 | * <!-- begin-user-doc --> | ||
341 | * <!-- end-user-doc --> | ||
342 | * @generated | ||
343 | */ | ||
344 | @Override | ||
345 | public String toString() | ||
346 | { | ||
347 | if (eIsProxy()) return super.toString(); | ||
348 | |||
349 | StringBuilder result = new StringBuilder(super.toString()); | ||
350 | result.append(" (abstract: "); | ||
351 | result.append(abstract_); | ||
352 | result.append(')'); | ||
353 | return result.toString(); | ||
354 | } | ||
355 | |||
356 | } //ClassInterpretationImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ClosureTypeImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ClosureTypeImpl.java new file mode 100644 index 00000000..98136f79 --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ClosureTypeImpl.java | |||
@@ -0,0 +1,43 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | |||
8 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
9 | |||
10 | import org.eclipse.viatra.solver.language.solverLanguage.ClosureType; | ||
11 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
12 | |||
13 | /** | ||
14 | * <!-- begin-user-doc --> | ||
15 | * An implementation of the model object '<em><b>Closure Type</b></em>'. | ||
16 | * <!-- end-user-doc --> | ||
17 | * | ||
18 | * @generated | ||
19 | */ | ||
20 | public class ClosureTypeImpl extends MinimalEObjectImpl.Container implements ClosureType | ||
21 | { | ||
22 | /** | ||
23 | * <!-- begin-user-doc --> | ||
24 | * <!-- end-user-doc --> | ||
25 | * @generated | ||
26 | */ | ||
27 | protected ClosureTypeImpl() | ||
28 | { | ||
29 | super(); | ||
30 | } | ||
31 | |||
32 | /** | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @generated | ||
36 | */ | ||
37 | @Override | ||
38 | protected EClass eStaticClass() | ||
39 | { | ||
40 | return SolverLanguagePackage.Literals.CLOSURE_TYPE; | ||
41 | } | ||
42 | |||
43 | } //ClosureTypeImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ComplexObjectImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ComplexObjectImpl.java new file mode 100644 index 00000000..09ad8a6d --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ComplexObjectImpl.java | |||
@@ -0,0 +1,43 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | |||
8 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
9 | |||
10 | import org.eclipse.viatra.solver.language.solverLanguage.ComplexObject; | ||
11 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
12 | |||
13 | /** | ||
14 | * <!-- begin-user-doc --> | ||
15 | * An implementation of the model object '<em><b>Complex Object</b></em>'. | ||
16 | * <!-- end-user-doc --> | ||
17 | * | ||
18 | * @generated | ||
19 | */ | ||
20 | public class ComplexObjectImpl extends MinimalEObjectImpl.Container implements ComplexObject | ||
21 | { | ||
22 | /** | ||
23 | * <!-- begin-user-doc --> | ||
24 | * <!-- end-user-doc --> | ||
25 | * @generated | ||
26 | */ | ||
27 | protected ComplexObjectImpl() | ||
28 | { | ||
29 | super(); | ||
30 | } | ||
31 | |||
32 | /** | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @generated | ||
36 | */ | ||
37 | @Override | ||
38 | protected EClass eStaticClass() | ||
39 | { | ||
40 | return SolverLanguagePackage.Literals.COMPLEX_OBJECT; | ||
41 | } | ||
42 | |||
43 | } //ComplexObjectImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ConstraintImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ConstraintImpl.java new file mode 100644 index 00000000..2f990fee --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ConstraintImpl.java | |||
@@ -0,0 +1,393 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import java.util.Collection; | ||
7 | |||
8 | import org.eclipse.emf.common.notify.Notification; | ||
9 | import org.eclipse.emf.common.notify.NotificationChain; | ||
10 | |||
11 | import org.eclipse.emf.common.util.EList; | ||
12 | |||
13 | import org.eclipse.emf.ecore.EClass; | ||
14 | import org.eclipse.emf.ecore.InternalEObject; | ||
15 | |||
16 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
17 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
18 | |||
19 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
20 | import org.eclipse.emf.ecore.util.InternalEList; | ||
21 | |||
22 | import org.eclipse.viatra.solver.language.solverLanguage.ClosureType; | ||
23 | import org.eclipse.viatra.solver.language.solverLanguage.Constraint; | ||
24 | import org.eclipse.viatra.solver.language.solverLanguage.Literal; | ||
25 | import org.eclipse.viatra.solver.language.solverLanguage.ModelSymbol; | ||
26 | import org.eclipse.viatra.solver.language.solverLanguage.Polarity; | ||
27 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
28 | |||
29 | /** | ||
30 | * <!-- begin-user-doc --> | ||
31 | * An implementation of the model object '<em><b>Constraint</b></em>'. | ||
32 | * <!-- end-user-doc --> | ||
33 | * <p> | ||
34 | * The following features are implemented: | ||
35 | * </p> | ||
36 | * <ul> | ||
37 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ConstraintImpl#getPolarity <em>Polarity</em>}</li> | ||
38 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ConstraintImpl#getSymbol <em>Symbol</em>}</li> | ||
39 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ConstraintImpl#getParams <em>Params</em>}</li> | ||
40 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ConstraintImpl#getClosureType <em>Closure Type</em>}</li> | ||
41 | * </ul> | ||
42 | * | ||
43 | * @generated | ||
44 | */ | ||
45 | public class ConstraintImpl extends MinimalEObjectImpl.Container implements Constraint | ||
46 | { | ||
47 | /** | ||
48 | * The cached value of the '{@link #getPolarity() <em>Polarity</em>}' containment reference. | ||
49 | * <!-- begin-user-doc --> | ||
50 | * <!-- end-user-doc --> | ||
51 | * @see #getPolarity() | ||
52 | * @generated | ||
53 | * @ordered | ||
54 | */ | ||
55 | protected Polarity polarity; | ||
56 | |||
57 | /** | ||
58 | * The cached value of the '{@link #getSymbol() <em>Symbol</em>}' containment reference. | ||
59 | * <!-- begin-user-doc --> | ||
60 | * <!-- end-user-doc --> | ||
61 | * @see #getSymbol() | ||
62 | * @generated | ||
63 | * @ordered | ||
64 | */ | ||
65 | protected ModelSymbol symbol; | ||
66 | |||
67 | /** | ||
68 | * The cached value of the '{@link #getParams() <em>Params</em>}' containment reference list. | ||
69 | * <!-- begin-user-doc --> | ||
70 | * <!-- end-user-doc --> | ||
71 | * @see #getParams() | ||
72 | * @generated | ||
73 | * @ordered | ||
74 | */ | ||
75 | protected EList<Literal> params; | ||
76 | |||
77 | /** | ||
78 | * The cached value of the '{@link #getClosureType() <em>Closure Type</em>}' containment reference. | ||
79 | * <!-- begin-user-doc --> | ||
80 | * <!-- end-user-doc --> | ||
81 | * @see #getClosureType() | ||
82 | * @generated | ||
83 | * @ordered | ||
84 | */ | ||
85 | protected ClosureType closureType; | ||
86 | |||
87 | /** | ||
88 | * <!-- begin-user-doc --> | ||
89 | * <!-- end-user-doc --> | ||
90 | * @generated | ||
91 | */ | ||
92 | protected ConstraintImpl() | ||
93 | { | ||
94 | super(); | ||
95 | } | ||
96 | |||
97 | /** | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @generated | ||
101 | */ | ||
102 | @Override | ||
103 | protected EClass eStaticClass() | ||
104 | { | ||
105 | return SolverLanguagePackage.Literals.CONSTRAINT; | ||
106 | } | ||
107 | |||
108 | /** | ||
109 | * <!-- begin-user-doc --> | ||
110 | * <!-- end-user-doc --> | ||
111 | * @generated | ||
112 | */ | ||
113 | @Override | ||
114 | public Polarity getPolarity() | ||
115 | { | ||
116 | return polarity; | ||
117 | } | ||
118 | |||
119 | /** | ||
120 | * <!-- begin-user-doc --> | ||
121 | * <!-- end-user-doc --> | ||
122 | * @generated | ||
123 | */ | ||
124 | public NotificationChain basicSetPolarity(Polarity newPolarity, NotificationChain msgs) | ||
125 | { | ||
126 | Polarity oldPolarity = polarity; | ||
127 | polarity = newPolarity; | ||
128 | if (eNotificationRequired()) | ||
129 | { | ||
130 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.CONSTRAINT__POLARITY, oldPolarity, newPolarity); | ||
131 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
132 | } | ||
133 | return msgs; | ||
134 | } | ||
135 | |||
136 | /** | ||
137 | * <!-- begin-user-doc --> | ||
138 | * <!-- end-user-doc --> | ||
139 | * @generated | ||
140 | */ | ||
141 | @Override | ||
142 | public void setPolarity(Polarity newPolarity) | ||
143 | { | ||
144 | if (newPolarity != polarity) | ||
145 | { | ||
146 | NotificationChain msgs = null; | ||
147 | if (polarity != null) | ||
148 | msgs = ((InternalEObject)polarity).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.CONSTRAINT__POLARITY, null, msgs); | ||
149 | if (newPolarity != null) | ||
150 | msgs = ((InternalEObject)newPolarity).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.CONSTRAINT__POLARITY, null, msgs); | ||
151 | msgs = basicSetPolarity(newPolarity, msgs); | ||
152 | if (msgs != null) msgs.dispatch(); | ||
153 | } | ||
154 | else if (eNotificationRequired()) | ||
155 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.CONSTRAINT__POLARITY, newPolarity, newPolarity)); | ||
156 | } | ||
157 | |||
158 | /** | ||
159 | * <!-- begin-user-doc --> | ||
160 | * <!-- end-user-doc --> | ||
161 | * @generated | ||
162 | */ | ||
163 | @Override | ||
164 | public ModelSymbol getSymbol() | ||
165 | { | ||
166 | return symbol; | ||
167 | } | ||
168 | |||
169 | /** | ||
170 | * <!-- begin-user-doc --> | ||
171 | * <!-- end-user-doc --> | ||
172 | * @generated | ||
173 | */ | ||
174 | public NotificationChain basicSetSymbol(ModelSymbol newSymbol, NotificationChain msgs) | ||
175 | { | ||
176 | ModelSymbol oldSymbol = symbol; | ||
177 | symbol = newSymbol; | ||
178 | if (eNotificationRequired()) | ||
179 | { | ||
180 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.CONSTRAINT__SYMBOL, oldSymbol, newSymbol); | ||
181 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
182 | } | ||
183 | return msgs; | ||
184 | } | ||
185 | |||
186 | /** | ||
187 | * <!-- begin-user-doc --> | ||
188 | * <!-- end-user-doc --> | ||
189 | * @generated | ||
190 | */ | ||
191 | @Override | ||
192 | public void setSymbol(ModelSymbol newSymbol) | ||
193 | { | ||
194 | if (newSymbol != symbol) | ||
195 | { | ||
196 | NotificationChain msgs = null; | ||
197 | if (symbol != null) | ||
198 | msgs = ((InternalEObject)symbol).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.CONSTRAINT__SYMBOL, null, msgs); | ||
199 | if (newSymbol != null) | ||
200 | msgs = ((InternalEObject)newSymbol).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.CONSTRAINT__SYMBOL, null, msgs); | ||
201 | msgs = basicSetSymbol(newSymbol, msgs); | ||
202 | if (msgs != null) msgs.dispatch(); | ||
203 | } | ||
204 | else if (eNotificationRequired()) | ||
205 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.CONSTRAINT__SYMBOL, newSymbol, newSymbol)); | ||
206 | } | ||
207 | |||
208 | /** | ||
209 | * <!-- begin-user-doc --> | ||
210 | * <!-- end-user-doc --> | ||
211 | * @generated | ||
212 | */ | ||
213 | @Override | ||
214 | public EList<Literal> getParams() | ||
215 | { | ||
216 | if (params == null) | ||
217 | { | ||
218 | params = new EObjectContainmentEList<Literal>(Literal.class, this, SolverLanguagePackage.CONSTRAINT__PARAMS); | ||
219 | } | ||
220 | return params; | ||
221 | } | ||
222 | |||
223 | /** | ||
224 | * <!-- begin-user-doc --> | ||
225 | * <!-- end-user-doc --> | ||
226 | * @generated | ||
227 | */ | ||
228 | @Override | ||
229 | public ClosureType getClosureType() | ||
230 | { | ||
231 | return closureType; | ||
232 | } | ||
233 | |||
234 | /** | ||
235 | * <!-- begin-user-doc --> | ||
236 | * <!-- end-user-doc --> | ||
237 | * @generated | ||
238 | */ | ||
239 | public NotificationChain basicSetClosureType(ClosureType newClosureType, NotificationChain msgs) | ||
240 | { | ||
241 | ClosureType oldClosureType = closureType; | ||
242 | closureType = newClosureType; | ||
243 | if (eNotificationRequired()) | ||
244 | { | ||
245 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.CONSTRAINT__CLOSURE_TYPE, oldClosureType, newClosureType); | ||
246 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
247 | } | ||
248 | return msgs; | ||
249 | } | ||
250 | |||
251 | /** | ||
252 | * <!-- begin-user-doc --> | ||
253 | * <!-- end-user-doc --> | ||
254 | * @generated | ||
255 | */ | ||
256 | @Override | ||
257 | public void setClosureType(ClosureType newClosureType) | ||
258 | { | ||
259 | if (newClosureType != closureType) | ||
260 | { | ||
261 | NotificationChain msgs = null; | ||
262 | if (closureType != null) | ||
263 | msgs = ((InternalEObject)closureType).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.CONSTRAINT__CLOSURE_TYPE, null, msgs); | ||
264 | if (newClosureType != null) | ||
265 | msgs = ((InternalEObject)newClosureType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.CONSTRAINT__CLOSURE_TYPE, null, msgs); | ||
266 | msgs = basicSetClosureType(newClosureType, msgs); | ||
267 | if (msgs != null) msgs.dispatch(); | ||
268 | } | ||
269 | else if (eNotificationRequired()) | ||
270 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.CONSTRAINT__CLOSURE_TYPE, newClosureType, newClosureType)); | ||
271 | } | ||
272 | |||
273 | /** | ||
274 | * <!-- begin-user-doc --> | ||
275 | * <!-- end-user-doc --> | ||
276 | * @generated | ||
277 | */ | ||
278 | @Override | ||
279 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
280 | { | ||
281 | switch (featureID) | ||
282 | { | ||
283 | case SolverLanguagePackage.CONSTRAINT__POLARITY: | ||
284 | return basicSetPolarity(null, msgs); | ||
285 | case SolverLanguagePackage.CONSTRAINT__SYMBOL: | ||
286 | return basicSetSymbol(null, msgs); | ||
287 | case SolverLanguagePackage.CONSTRAINT__PARAMS: | ||
288 | return ((InternalEList<?>)getParams()).basicRemove(otherEnd, msgs); | ||
289 | case SolverLanguagePackage.CONSTRAINT__CLOSURE_TYPE: | ||
290 | return basicSetClosureType(null, msgs); | ||
291 | } | ||
292 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
293 | } | ||
294 | |||
295 | /** | ||
296 | * <!-- begin-user-doc --> | ||
297 | * <!-- end-user-doc --> | ||
298 | * @generated | ||
299 | */ | ||
300 | @Override | ||
301 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
302 | { | ||
303 | switch (featureID) | ||
304 | { | ||
305 | case SolverLanguagePackage.CONSTRAINT__POLARITY: | ||
306 | return getPolarity(); | ||
307 | case SolverLanguagePackage.CONSTRAINT__SYMBOL: | ||
308 | return getSymbol(); | ||
309 | case SolverLanguagePackage.CONSTRAINT__PARAMS: | ||
310 | return getParams(); | ||
311 | case SolverLanguagePackage.CONSTRAINT__CLOSURE_TYPE: | ||
312 | return getClosureType(); | ||
313 | } | ||
314 | return super.eGet(featureID, resolve, coreType); | ||
315 | } | ||
316 | |||
317 | /** | ||
318 | * <!-- begin-user-doc --> | ||
319 | * <!-- end-user-doc --> | ||
320 | * @generated | ||
321 | */ | ||
322 | @SuppressWarnings("unchecked") | ||
323 | @Override | ||
324 | public void eSet(int featureID, Object newValue) | ||
325 | { | ||
326 | switch (featureID) | ||
327 | { | ||
328 | case SolverLanguagePackage.CONSTRAINT__POLARITY: | ||
329 | setPolarity((Polarity)newValue); | ||
330 | return; | ||
331 | case SolverLanguagePackage.CONSTRAINT__SYMBOL: | ||
332 | setSymbol((ModelSymbol)newValue); | ||
333 | return; | ||
334 | case SolverLanguagePackage.CONSTRAINT__PARAMS: | ||
335 | getParams().clear(); | ||
336 | getParams().addAll((Collection<? extends Literal>)newValue); | ||
337 | return; | ||
338 | case SolverLanguagePackage.CONSTRAINT__CLOSURE_TYPE: | ||
339 | setClosureType((ClosureType)newValue); | ||
340 | return; | ||
341 | } | ||
342 | super.eSet(featureID, newValue); | ||
343 | } | ||
344 | |||
345 | /** | ||
346 | * <!-- begin-user-doc --> | ||
347 | * <!-- end-user-doc --> | ||
348 | * @generated | ||
349 | */ | ||
350 | @Override | ||
351 | public void eUnset(int featureID) | ||
352 | { | ||
353 | switch (featureID) | ||
354 | { | ||
355 | case SolverLanguagePackage.CONSTRAINT__POLARITY: | ||
356 | setPolarity((Polarity)null); | ||
357 | return; | ||
358 | case SolverLanguagePackage.CONSTRAINT__SYMBOL: | ||
359 | setSymbol((ModelSymbol)null); | ||
360 | return; | ||
361 | case SolverLanguagePackage.CONSTRAINT__PARAMS: | ||
362 | getParams().clear(); | ||
363 | return; | ||
364 | case SolverLanguagePackage.CONSTRAINT__CLOSURE_TYPE: | ||
365 | setClosureType((ClosureType)null); | ||
366 | return; | ||
367 | } | ||
368 | super.eUnset(featureID); | ||
369 | } | ||
370 | |||
371 | /** | ||
372 | * <!-- begin-user-doc --> | ||
373 | * <!-- end-user-doc --> | ||
374 | * @generated | ||
375 | */ | ||
376 | @Override | ||
377 | public boolean eIsSet(int featureID) | ||
378 | { | ||
379 | switch (featureID) | ||
380 | { | ||
381 | case SolverLanguagePackage.CONSTRAINT__POLARITY: | ||
382 | return polarity != null; | ||
383 | case SolverLanguagePackage.CONSTRAINT__SYMBOL: | ||
384 | return symbol != null; | ||
385 | case SolverLanguagePackage.CONSTRAINT__PARAMS: | ||
386 | return params != null && !params.isEmpty(); | ||
387 | case SolverLanguagePackage.CONSTRAINT__CLOSURE_TYPE: | ||
388 | return closureType != null; | ||
389 | } | ||
390 | return super.eIsSet(featureID); | ||
391 | } | ||
392 | |||
393 | } //ConstraintImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/DataObjectImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/DataObjectImpl.java new file mode 100644 index 00000000..33bee29f --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/DataObjectImpl.java | |||
@@ -0,0 +1,41 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | |||
8 | import org.eclipse.viatra.solver.language.solverLanguage.DataObject; | ||
9 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * An implementation of the model object '<em><b>Data Object</b></em>'. | ||
14 | * <!-- end-user-doc --> | ||
15 | * | ||
16 | * @generated | ||
17 | */ | ||
18 | public class DataObjectImpl extends ObjectImpl implements DataObject | ||
19 | { | ||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * <!-- end-user-doc --> | ||
23 | * @generated | ||
24 | */ | ||
25 | protected DataObjectImpl() | ||
26 | { | ||
27 | super(); | ||
28 | } | ||
29 | |||
30 | /** | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @generated | ||
34 | */ | ||
35 | @Override | ||
36 | protected EClass eStaticClass() | ||
37 | { | ||
38 | return SolverLanguagePackage.Literals.DATA_OBJECT; | ||
39 | } | ||
40 | |||
41 | } //DataObjectImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/DataSymbolImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/DataSymbolImpl.java new file mode 100644 index 00000000..221b4783 --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/DataSymbolImpl.java | |||
@@ -0,0 +1,41 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | |||
8 | import org.eclipse.viatra.solver.language.solverLanguage.DataSymbol; | ||
9 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * An implementation of the model object '<em><b>Data Symbol</b></em>'. | ||
14 | * <!-- end-user-doc --> | ||
15 | * | ||
16 | * @generated | ||
17 | */ | ||
18 | public class DataSymbolImpl extends SymbolImpl implements DataSymbol | ||
19 | { | ||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * <!-- end-user-doc --> | ||
23 | * @generated | ||
24 | */ | ||
25 | protected DataSymbolImpl() | ||
26 | { | ||
27 | super(); | ||
28 | } | ||
29 | |||
30 | /** | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @generated | ||
34 | */ | ||
35 | @Override | ||
36 | protected EClass eStaticClass() | ||
37 | { | ||
38 | return SolverLanguagePackage.Literals.DATA_SYMBOL; | ||
39 | } | ||
40 | |||
41 | } //DataSymbolImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/DefaultInterpretationImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/DefaultInterpretationImpl.java new file mode 100644 index 00000000..eb2835a0 --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/DefaultInterpretationImpl.java | |||
@@ -0,0 +1,196 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | import org.eclipse.emf.common.notify.NotificationChain; | ||
8 | |||
9 | import org.eclipse.emf.ecore.EClass; | ||
10 | import org.eclipse.emf.ecore.InternalEObject; | ||
11 | |||
12 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
13 | |||
14 | import org.eclipse.viatra.solver.language.solverLanguage.BasicInterpretation; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.DefaultInterpretation; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
17 | |||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * An implementation of the model object '<em><b>Default Interpretation</b></em>'. | ||
21 | * <!-- end-user-doc --> | ||
22 | * <p> | ||
23 | * The following features are implemented: | ||
24 | * </p> | ||
25 | * <ul> | ||
26 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.DefaultInterpretationImpl#getInterpretation <em>Interpretation</em>}</li> | ||
27 | * </ul> | ||
28 | * | ||
29 | * @generated | ||
30 | */ | ||
31 | public class DefaultInterpretationImpl extends InterpretationImpl implements DefaultInterpretation | ||
32 | { | ||
33 | /** | ||
34 | * The cached value of the '{@link #getInterpretation() <em>Interpretation</em>}' containment reference. | ||
35 | * <!-- begin-user-doc --> | ||
36 | * <!-- end-user-doc --> | ||
37 | * @see #getInterpretation() | ||
38 | * @generated | ||
39 | * @ordered | ||
40 | */ | ||
41 | protected BasicInterpretation interpretation; | ||
42 | |||
43 | /** | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @generated | ||
47 | */ | ||
48 | protected DefaultInterpretationImpl() | ||
49 | { | ||
50 | super(); | ||
51 | } | ||
52 | |||
53 | /** | ||
54 | * <!-- begin-user-doc --> | ||
55 | * <!-- end-user-doc --> | ||
56 | * @generated | ||
57 | */ | ||
58 | @Override | ||
59 | protected EClass eStaticClass() | ||
60 | { | ||
61 | return SolverLanguagePackage.Literals.DEFAULT_INTERPRETATION; | ||
62 | } | ||
63 | |||
64 | /** | ||
65 | * <!-- begin-user-doc --> | ||
66 | * <!-- end-user-doc --> | ||
67 | * @generated | ||
68 | */ | ||
69 | @Override | ||
70 | public BasicInterpretation getInterpretation() | ||
71 | { | ||
72 | return interpretation; | ||
73 | } | ||
74 | |||
75 | /** | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <!-- end-user-doc --> | ||
78 | * @generated | ||
79 | */ | ||
80 | public NotificationChain basicSetInterpretation(BasicInterpretation newInterpretation, NotificationChain msgs) | ||
81 | { | ||
82 | BasicInterpretation oldInterpretation = interpretation; | ||
83 | interpretation = newInterpretation; | ||
84 | if (eNotificationRequired()) | ||
85 | { | ||
86 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.DEFAULT_INTERPRETATION__INTERPRETATION, oldInterpretation, newInterpretation); | ||
87 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
88 | } | ||
89 | return msgs; | ||
90 | } | ||
91 | |||
92 | /** | ||
93 | * <!-- begin-user-doc --> | ||
94 | * <!-- end-user-doc --> | ||
95 | * @generated | ||
96 | */ | ||
97 | @Override | ||
98 | public void setInterpretation(BasicInterpretation newInterpretation) | ||
99 | { | ||
100 | if (newInterpretation != interpretation) | ||
101 | { | ||
102 | NotificationChain msgs = null; | ||
103 | if (interpretation != null) | ||
104 | msgs = ((InternalEObject)interpretation).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.DEFAULT_INTERPRETATION__INTERPRETATION, null, msgs); | ||
105 | if (newInterpretation != null) | ||
106 | msgs = ((InternalEObject)newInterpretation).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.DEFAULT_INTERPRETATION__INTERPRETATION, null, msgs); | ||
107 | msgs = basicSetInterpretation(newInterpretation, msgs); | ||
108 | if (msgs != null) msgs.dispatch(); | ||
109 | } | ||
110 | else if (eNotificationRequired()) | ||
111 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.DEFAULT_INTERPRETATION__INTERPRETATION, newInterpretation, newInterpretation)); | ||
112 | } | ||
113 | |||
114 | /** | ||
115 | * <!-- begin-user-doc --> | ||
116 | * <!-- end-user-doc --> | ||
117 | * @generated | ||
118 | */ | ||
119 | @Override | ||
120 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
121 | { | ||
122 | switch (featureID) | ||
123 | { | ||
124 | case SolverLanguagePackage.DEFAULT_INTERPRETATION__INTERPRETATION: | ||
125 | return basicSetInterpretation(null, msgs); | ||
126 | } | ||
127 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
128 | } | ||
129 | |||
130 | /** | ||
131 | * <!-- begin-user-doc --> | ||
132 | * <!-- end-user-doc --> | ||
133 | * @generated | ||
134 | */ | ||
135 | @Override | ||
136 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
137 | { | ||
138 | switch (featureID) | ||
139 | { | ||
140 | case SolverLanguagePackage.DEFAULT_INTERPRETATION__INTERPRETATION: | ||
141 | return getInterpretation(); | ||
142 | } | ||
143 | return super.eGet(featureID, resolve, coreType); | ||
144 | } | ||
145 | |||
146 | /** | ||
147 | * <!-- begin-user-doc --> | ||
148 | * <!-- end-user-doc --> | ||
149 | * @generated | ||
150 | */ | ||
151 | @Override | ||
152 | public void eSet(int featureID, Object newValue) | ||
153 | { | ||
154 | switch (featureID) | ||
155 | { | ||
156 | case SolverLanguagePackage.DEFAULT_INTERPRETATION__INTERPRETATION: | ||
157 | setInterpretation((BasicInterpretation)newValue); | ||
158 | return; | ||
159 | } | ||
160 | super.eSet(featureID, newValue); | ||
161 | } | ||
162 | |||
163 | /** | ||
164 | * <!-- begin-user-doc --> | ||
165 | * <!-- end-user-doc --> | ||
166 | * @generated | ||
167 | */ | ||
168 | @Override | ||
169 | public void eUnset(int featureID) | ||
170 | { | ||
171 | switch (featureID) | ||
172 | { | ||
173 | case SolverLanguagePackage.DEFAULT_INTERPRETATION__INTERPRETATION: | ||
174 | setInterpretation((BasicInterpretation)null); | ||
175 | return; | ||
176 | } | ||
177 | super.eUnset(featureID); | ||
178 | } | ||
179 | |||
180 | /** | ||
181 | * <!-- begin-user-doc --> | ||
182 | * <!-- end-user-doc --> | ||
183 | * @generated | ||
184 | */ | ||
185 | @Override | ||
186 | public boolean eIsSet(int featureID) | ||
187 | { | ||
188 | switch (featureID) | ||
189 | { | ||
190 | case SolverLanguagePackage.DEFAULT_INTERPRETATION__INTERPRETATION: | ||
191 | return interpretation != null; | ||
192 | } | ||
193 | return super.eIsSet(featureID); | ||
194 | } | ||
195 | |||
196 | } //DefaultInterpretationImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/EnumInterpretationImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/EnumInterpretationImpl.java new file mode 100644 index 00000000..efa12ea6 --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/EnumInterpretationImpl.java | |||
@@ -0,0 +1,244 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import java.util.Collection; | ||
7 | |||
8 | import org.eclipse.emf.common.notify.Notification; | ||
9 | import org.eclipse.emf.common.notify.NotificationChain; | ||
10 | |||
11 | import org.eclipse.emf.common.util.EList; | ||
12 | |||
13 | import org.eclipse.emf.ecore.EClass; | ||
14 | import org.eclipse.emf.ecore.InternalEObject; | ||
15 | |||
16 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
17 | |||
18 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
19 | import org.eclipse.emf.ecore.util.InternalEList; | ||
20 | |||
21 | import org.eclipse.viatra.solver.language.solverLanguage.EnumInterpretation; | ||
22 | import org.eclipse.viatra.solver.language.solverLanguage.ModelSymbol; | ||
23 | import org.eclipse.viatra.solver.language.solverLanguage.NamedObject; | ||
24 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
25 | |||
26 | /** | ||
27 | * <!-- begin-user-doc --> | ||
28 | * An implementation of the model object '<em><b>Enum Interpretation</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.solverLanguage.impl.EnumInterpretationImpl#getSymbol <em>Symbol</em>}</li> | ||
35 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.EnumInterpretationImpl#getObjects <em>Objects</em>}</li> | ||
36 | * </ul> | ||
37 | * | ||
38 | * @generated | ||
39 | */ | ||
40 | public class EnumInterpretationImpl extends CDInterpretationImpl implements EnumInterpretation | ||
41 | { | ||
42 | /** | ||
43 | * The cached value of the '{@link #getSymbol() <em>Symbol</em>}' containment reference. | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @see #getSymbol() | ||
47 | * @generated | ||
48 | * @ordered | ||
49 | */ | ||
50 | protected ModelSymbol symbol; | ||
51 | |||
52 | /** | ||
53 | * The cached value of the '{@link #getObjects() <em>Objects</em>}' containment reference list. | ||
54 | * <!-- begin-user-doc --> | ||
55 | * <!-- end-user-doc --> | ||
56 | * @see #getObjects() | ||
57 | * @generated | ||
58 | * @ordered | ||
59 | */ | ||
60 | protected EList<NamedObject> objects; | ||
61 | |||
62 | /** | ||
63 | * <!-- begin-user-doc --> | ||
64 | * <!-- end-user-doc --> | ||
65 | * @generated | ||
66 | */ | ||
67 | protected EnumInterpretationImpl() | ||
68 | { | ||
69 | super(); | ||
70 | } | ||
71 | |||
72 | /** | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @generated | ||
76 | */ | ||
77 | @Override | ||
78 | protected EClass eStaticClass() | ||
79 | { | ||
80 | return SolverLanguagePackage.Literals.ENUM_INTERPRETATION; | ||
81 | } | ||
82 | |||
83 | /** | ||
84 | * <!-- begin-user-doc --> | ||
85 | * <!-- end-user-doc --> | ||
86 | * @generated | ||
87 | */ | ||
88 | @Override | ||
89 | public ModelSymbol getSymbol() | ||
90 | { | ||
91 | return symbol; | ||
92 | } | ||
93 | |||
94 | /** | ||
95 | * <!-- begin-user-doc --> | ||
96 | * <!-- end-user-doc --> | ||
97 | * @generated | ||
98 | */ | ||
99 | public NotificationChain basicSetSymbol(ModelSymbol newSymbol, NotificationChain msgs) | ||
100 | { | ||
101 | ModelSymbol oldSymbol = symbol; | ||
102 | symbol = newSymbol; | ||
103 | if (eNotificationRequired()) | ||
104 | { | ||
105 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.ENUM_INTERPRETATION__SYMBOL, oldSymbol, newSymbol); | ||
106 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
107 | } | ||
108 | return msgs; | ||
109 | } | ||
110 | |||
111 | /** | ||
112 | * <!-- begin-user-doc --> | ||
113 | * <!-- end-user-doc --> | ||
114 | * @generated | ||
115 | */ | ||
116 | @Override | ||
117 | public void setSymbol(ModelSymbol newSymbol) | ||
118 | { | ||
119 | if (newSymbol != symbol) | ||
120 | { | ||
121 | NotificationChain msgs = null; | ||
122 | if (symbol != null) | ||
123 | msgs = ((InternalEObject)symbol).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.ENUM_INTERPRETATION__SYMBOL, null, msgs); | ||
124 | if (newSymbol != null) | ||
125 | msgs = ((InternalEObject)newSymbol).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.ENUM_INTERPRETATION__SYMBOL, null, msgs); | ||
126 | msgs = basicSetSymbol(newSymbol, msgs); | ||
127 | if (msgs != null) msgs.dispatch(); | ||
128 | } | ||
129 | else if (eNotificationRequired()) | ||
130 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.ENUM_INTERPRETATION__SYMBOL, newSymbol, newSymbol)); | ||
131 | } | ||
132 | |||
133 | /** | ||
134 | * <!-- begin-user-doc --> | ||
135 | * <!-- end-user-doc --> | ||
136 | * @generated | ||
137 | */ | ||
138 | @Override | ||
139 | public EList<NamedObject> getObjects() | ||
140 | { | ||
141 | if (objects == null) | ||
142 | { | ||
143 | objects = new EObjectContainmentEList<NamedObject>(NamedObject.class, this, SolverLanguagePackage.ENUM_INTERPRETATION__OBJECTS); | ||
144 | } | ||
145 | return objects; | ||
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 | { | ||
156 | switch (featureID) | ||
157 | { | ||
158 | case SolverLanguagePackage.ENUM_INTERPRETATION__SYMBOL: | ||
159 | return basicSetSymbol(null, msgs); | ||
160 | case SolverLanguagePackage.ENUM_INTERPRETATION__OBJECTS: | ||
161 | return ((InternalEList<?>)getObjects()).basicRemove(otherEnd, msgs); | ||
162 | } | ||
163 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
164 | } | ||
165 | |||
166 | /** | ||
167 | * <!-- begin-user-doc --> | ||
168 | * <!-- end-user-doc --> | ||
169 | * @generated | ||
170 | */ | ||
171 | @Override | ||
172 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
173 | { | ||
174 | switch (featureID) | ||
175 | { | ||
176 | case SolverLanguagePackage.ENUM_INTERPRETATION__SYMBOL: | ||
177 | return getSymbol(); | ||
178 | case SolverLanguagePackage.ENUM_INTERPRETATION__OBJECTS: | ||
179 | return getObjects(); | ||
180 | } | ||
181 | return super.eGet(featureID, resolve, coreType); | ||
182 | } | ||
183 | |||
184 | /** | ||
185 | * <!-- begin-user-doc --> | ||
186 | * <!-- end-user-doc --> | ||
187 | * @generated | ||
188 | */ | ||
189 | @SuppressWarnings("unchecked") | ||
190 | @Override | ||
191 | public void eSet(int featureID, Object newValue) | ||
192 | { | ||
193 | switch (featureID) | ||
194 | { | ||
195 | case SolverLanguagePackage.ENUM_INTERPRETATION__SYMBOL: | ||
196 | setSymbol((ModelSymbol)newValue); | ||
197 | return; | ||
198 | case SolverLanguagePackage.ENUM_INTERPRETATION__OBJECTS: | ||
199 | getObjects().clear(); | ||
200 | getObjects().addAll((Collection<? extends NamedObject>)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 | { | ||
214 | switch (featureID) | ||
215 | { | ||
216 | case SolverLanguagePackage.ENUM_INTERPRETATION__SYMBOL: | ||
217 | setSymbol((ModelSymbol)null); | ||
218 | return; | ||
219 | case SolverLanguagePackage.ENUM_INTERPRETATION__OBJECTS: | ||
220 | getObjects().clear(); | ||
221 | return; | ||
222 | } | ||
223 | super.eUnset(featureID); | ||
224 | } | ||
225 | |||
226 | /** | ||
227 | * <!-- begin-user-doc --> | ||
228 | * <!-- end-user-doc --> | ||
229 | * @generated | ||
230 | */ | ||
231 | @Override | ||
232 | public boolean eIsSet(int featureID) | ||
233 | { | ||
234 | switch (featureID) | ||
235 | { | ||
236 | case SolverLanguagePackage.ENUM_INTERPRETATION__SYMBOL: | ||
237 | return symbol != null; | ||
238 | case SolverLanguagePackage.ENUM_INTERPRETATION__OBJECTS: | ||
239 | return objects != null && !objects.isEmpty(); | ||
240 | } | ||
241 | return super.eIsSet(featureID); | ||
242 | } | ||
243 | |||
244 | } //EnumInterpretationImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/EqualsSymbolImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/EqualsSymbolImpl.java new file mode 100644 index 00000000..33929f42 --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/EqualsSymbolImpl.java | |||
@@ -0,0 +1,41 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | |||
8 | import org.eclipse.viatra.solver.language.solverLanguage.EqualsSymbol; | ||
9 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * An implementation of the model object '<em><b>Equals Symbol</b></em>'. | ||
14 | * <!-- end-user-doc --> | ||
15 | * | ||
16 | * @generated | ||
17 | */ | ||
18 | public class EqualsSymbolImpl extends PartialitySymbolImpl implements EqualsSymbol | ||
19 | { | ||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * <!-- end-user-doc --> | ||
23 | * @generated | ||
24 | */ | ||
25 | protected EqualsSymbolImpl() | ||
26 | { | ||
27 | super(); | ||
28 | } | ||
29 | |||
30 | /** | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @generated | ||
34 | */ | ||
35 | @Override | ||
36 | protected EClass eStaticClass() | ||
37 | { | ||
38 | return SolverLanguagePackage.Literals.EQUALS_SYMBOL; | ||
39 | } | ||
40 | |||
41 | } //EqualsSymbolImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ErrorImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ErrorImpl.java new file mode 100644 index 00000000..e58094a7 --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ErrorImpl.java | |||
@@ -0,0 +1,40 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | |||
8 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
9 | |||
10 | /** | ||
11 | * <!-- begin-user-doc --> | ||
12 | * An implementation of the model object '<em><b>Error</b></em>'. | ||
13 | * <!-- end-user-doc --> | ||
14 | * | ||
15 | * @generated | ||
16 | */ | ||
17 | public class ErrorImpl extends TruthValueImpl implements org.eclipse.viatra.solver.language.solverLanguage.Error | ||
18 | { | ||
19 | /** | ||
20 | * <!-- begin-user-doc --> | ||
21 | * <!-- end-user-doc --> | ||
22 | * @generated | ||
23 | */ | ||
24 | protected ErrorImpl() | ||
25 | { | ||
26 | super(); | ||
27 | } | ||
28 | |||
29 | /** | ||
30 | * <!-- begin-user-doc --> | ||
31 | * <!-- end-user-doc --> | ||
32 | * @generated | ||
33 | */ | ||
34 | @Override | ||
35 | protected EClass eStaticClass() | ||
36 | { | ||
37 | return SolverLanguagePackage.Literals.ERROR; | ||
38 | } | ||
39 | |||
40 | } //ErrorImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ErrorPredicateImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ErrorPredicateImpl.java new file mode 100644 index 00000000..f9b0e8c8 --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ErrorPredicateImpl.java | |||
@@ -0,0 +1,179 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | |||
10 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
11 | |||
12 | import org.eclipse.viatra.solver.language.solverLanguage.ErrorPredicate; | ||
13 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
14 | |||
15 | /** | ||
16 | * <!-- begin-user-doc --> | ||
17 | * An implementation of the model object '<em><b>Error Predicate</b></em>'. | ||
18 | * <!-- end-user-doc --> | ||
19 | * <p> | ||
20 | * The following features are implemented: | ||
21 | * </p> | ||
22 | * <ul> | ||
23 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ErrorPredicateImpl#getName <em>Name</em>}</li> | ||
24 | * </ul> | ||
25 | * | ||
26 | * @generated | ||
27 | */ | ||
28 | public class ErrorPredicateImpl extends PredicateImpl implements ErrorPredicate | ||
29 | { | ||
30 | /** | ||
31 | * The default value of the '{@link #getName() <em>Name</em>}' attribute. | ||
32 | * <!-- begin-user-doc --> | ||
33 | * <!-- end-user-doc --> | ||
34 | * @see #getName() | ||
35 | * @generated | ||
36 | * @ordered | ||
37 | */ | ||
38 | protected static final String NAME_EDEFAULT = null; | ||
39 | |||
40 | /** | ||
41 | * The cached value of the '{@link #getName() <em>Name</em>}' attribute. | ||
42 | * <!-- begin-user-doc --> | ||
43 | * <!-- end-user-doc --> | ||
44 | * @see #getName() | ||
45 | * @generated | ||
46 | * @ordered | ||
47 | */ | ||
48 | protected String name = NAME_EDEFAULT; | ||
49 | |||
50 | /** | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @generated | ||
54 | */ | ||
55 | protected ErrorPredicateImpl() | ||
56 | { | ||
57 | super(); | ||
58 | } | ||
59 | |||
60 | /** | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @generated | ||
64 | */ | ||
65 | @Override | ||
66 | protected EClass eStaticClass() | ||
67 | { | ||
68 | return SolverLanguagePackage.Literals.ERROR_PREDICATE; | ||
69 | } | ||
70 | |||
71 | /** | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @generated | ||
75 | */ | ||
76 | @Override | ||
77 | public String getName() | ||
78 | { | ||
79 | return name; | ||
80 | } | ||
81 | |||
82 | /** | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @generated | ||
86 | */ | ||
87 | @Override | ||
88 | public void setName(String newName) | ||
89 | { | ||
90 | String oldName = name; | ||
91 | name = newName; | ||
92 | if (eNotificationRequired()) | ||
93 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.ERROR_PREDICATE__NAME, oldName, name)); | ||
94 | } | ||
95 | |||
96 | /** | ||
97 | * <!-- begin-user-doc --> | ||
98 | * <!-- end-user-doc --> | ||
99 | * @generated | ||
100 | */ | ||
101 | @Override | ||
102 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
103 | { | ||
104 | switch (featureID) | ||
105 | { | ||
106 | case SolverLanguagePackage.ERROR_PREDICATE__NAME: | ||
107 | return getName(); | ||
108 | } | ||
109 | return super.eGet(featureID, resolve, coreType); | ||
110 | } | ||
111 | |||
112 | /** | ||
113 | * <!-- begin-user-doc --> | ||
114 | * <!-- end-user-doc --> | ||
115 | * @generated | ||
116 | */ | ||
117 | @Override | ||
118 | public void eSet(int featureID, Object newValue) | ||
119 | { | ||
120 | switch (featureID) | ||
121 | { | ||
122 | case SolverLanguagePackage.ERROR_PREDICATE__NAME: | ||
123 | setName((String)newValue); | ||
124 | return; | ||
125 | } | ||
126 | super.eSet(featureID, newValue); | ||
127 | } | ||
128 | |||
129 | /** | ||
130 | * <!-- begin-user-doc --> | ||
131 | * <!-- end-user-doc --> | ||
132 | * @generated | ||
133 | */ | ||
134 | @Override | ||
135 | public void eUnset(int featureID) | ||
136 | { | ||
137 | switch (featureID) | ||
138 | { | ||
139 | case SolverLanguagePackage.ERROR_PREDICATE__NAME: | ||
140 | setName(NAME_EDEFAULT); | ||
141 | return; | ||
142 | } | ||
143 | super.eUnset(featureID); | ||
144 | } | ||
145 | |||
146 | /** | ||
147 | * <!-- begin-user-doc --> | ||
148 | * <!-- end-user-doc --> | ||
149 | * @generated | ||
150 | */ | ||
151 | @Override | ||
152 | public boolean eIsSet(int featureID) | ||
153 | { | ||
154 | switch (featureID) | ||
155 | { | ||
156 | case SolverLanguagePackage.ERROR_PREDICATE__NAME: | ||
157 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); | ||
158 | } | ||
159 | return super.eIsSet(featureID); | ||
160 | } | ||
161 | |||
162 | /** | ||
163 | * <!-- begin-user-doc --> | ||
164 | * <!-- end-user-doc --> | ||
165 | * @generated | ||
166 | */ | ||
167 | @Override | ||
168 | public String toString() | ||
169 | { | ||
170 | if (eIsProxy()) return super.toString(); | ||
171 | |||
172 | StringBuilder result = new StringBuilder(super.toString()); | ||
173 | result.append(" (name: "); | ||
174 | result.append(name); | ||
175 | result.append(')'); | ||
176 | return result.toString(); | ||
177 | } | ||
178 | |||
179 | } //ErrorPredicateImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExistSymbolImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExistSymbolImpl.java new file mode 100644 index 00000000..2fd59e41 --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExistSymbolImpl.java | |||
@@ -0,0 +1,41 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | |||
8 | import org.eclipse.viatra.solver.language.solverLanguage.ExistSymbol; | ||
9 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * An implementation of the model object '<em><b>Exist Symbol</b></em>'. | ||
14 | * <!-- end-user-doc --> | ||
15 | * | ||
16 | * @generated | ||
17 | */ | ||
18 | public class ExistSymbolImpl extends PartialitySymbolImpl implements ExistSymbol | ||
19 | { | ||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * <!-- end-user-doc --> | ||
23 | * @generated | ||
24 | */ | ||
25 | protected ExistSymbolImpl() | ||
26 | { | ||
27 | super(); | ||
28 | } | ||
29 | |||
30 | /** | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @generated | ||
34 | */ | ||
35 | @Override | ||
36 | protected EClass eStaticClass() | ||
37 | { | ||
38 | return SolverLanguagePackage.Literals.EXIST_SYMBOL; | ||
39 | } | ||
40 | |||
41 | } //ExistSymbolImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/FalseImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/FalseImpl.java new file mode 100644 index 00000000..332f9af3 --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/FalseImpl.java | |||
@@ -0,0 +1,41 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | |||
8 | import org.eclipse.viatra.solver.language.solverLanguage.False; | ||
9 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * An implementation of the model object '<em><b>False</b></em>'. | ||
14 | * <!-- end-user-doc --> | ||
15 | * | ||
16 | * @generated | ||
17 | */ | ||
18 | public class FalseImpl extends TruthValueImpl implements False | ||
19 | { | ||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * <!-- end-user-doc --> | ||
23 | * @generated | ||
24 | */ | ||
25 | protected FalseImpl() | ||
26 | { | ||
27 | super(); | ||
28 | } | ||
29 | |||
30 | /** | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @generated | ||
34 | */ | ||
35 | @Override | ||
36 | protected EClass eStaticClass() | ||
37 | { | ||
38 | return SolverLanguagePackage.Literals.FALSE; | ||
39 | } | ||
40 | |||
41 | } //FalseImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/FieldRelationInterpretationImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/FieldRelationInterpretationImpl.java new file mode 100644 index 00000000..ea9b80b2 --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/FieldRelationInterpretationImpl.java | |||
@@ -0,0 +1,418 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | import org.eclipse.emf.common.notify.NotificationChain; | ||
8 | |||
9 | import org.eclipse.emf.ecore.EClass; | ||
10 | import org.eclipse.emf.ecore.InternalEObject; | ||
11 | |||
12 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
13 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
14 | |||
15 | import org.eclipse.viatra.solver.language.solverLanguage.FieldRelationInterpretation; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.ModelSymbol; | ||
17 | import org.eclipse.viatra.solver.language.solverLanguage.MultiplicityDefinition; | ||
18 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
19 | import org.eclipse.viatra.solver.language.solverLanguage.Symbol; | ||
20 | |||
21 | /** | ||
22 | * <!-- begin-user-doc --> | ||
23 | * An implementation of the model object '<em><b>Field Relation Interpretation</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.solverLanguage.impl.FieldRelationInterpretationImpl#isContainment <em>Containment</em>}</li> | ||
30 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.FieldRelationInterpretationImpl#getSymbol <em>Symbol</em>}</li> | ||
31 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.FieldRelationInterpretationImpl#getMultiplicity <em>Multiplicity</em>}</li> | ||
32 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.FieldRelationInterpretationImpl#getTarget <em>Target</em>}</li> | ||
33 | * </ul> | ||
34 | * | ||
35 | * @generated | ||
36 | */ | ||
37 | public class FieldRelationInterpretationImpl extends MinimalEObjectImpl.Container implements FieldRelationInterpretation | ||
38 | { | ||
39 | /** | ||
40 | * The default value of the '{@link #isContainment() <em>Containment</em>}' attribute. | ||
41 | * <!-- begin-user-doc --> | ||
42 | * <!-- end-user-doc --> | ||
43 | * @see #isContainment() | ||
44 | * @generated | ||
45 | * @ordered | ||
46 | */ | ||
47 | protected static final boolean CONTAINMENT_EDEFAULT = false; | ||
48 | |||
49 | /** | ||
50 | * The cached value of the '{@link #isContainment() <em>Containment</em>}' attribute. | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @see #isContainment() | ||
54 | * @generated | ||
55 | * @ordered | ||
56 | */ | ||
57 | protected boolean containment = CONTAINMENT_EDEFAULT; | ||
58 | |||
59 | /** | ||
60 | * The cached value of the '{@link #getSymbol() <em>Symbol</em>}' containment reference. | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @see #getSymbol() | ||
64 | * @generated | ||
65 | * @ordered | ||
66 | */ | ||
67 | protected ModelSymbol symbol; | ||
68 | |||
69 | /** | ||
70 | * The cached value of the '{@link #getMultiplicity() <em>Multiplicity</em>}' containment reference. | ||
71 | * <!-- begin-user-doc --> | ||
72 | * <!-- end-user-doc --> | ||
73 | * @see #getMultiplicity() | ||
74 | * @generated | ||
75 | * @ordered | ||
76 | */ | ||
77 | protected MultiplicityDefinition multiplicity; | ||
78 | |||
79 | /** | ||
80 | * The cached value of the '{@link #getTarget() <em>Target</em>}' containment reference. | ||
81 | * <!-- begin-user-doc --> | ||
82 | * <!-- end-user-doc --> | ||
83 | * @see #getTarget() | ||
84 | * @generated | ||
85 | * @ordered | ||
86 | */ | ||
87 | protected Symbol target; | ||
88 | |||
89 | /** | ||
90 | * <!-- begin-user-doc --> | ||
91 | * <!-- end-user-doc --> | ||
92 | * @generated | ||
93 | */ | ||
94 | protected FieldRelationInterpretationImpl() | ||
95 | { | ||
96 | super(); | ||
97 | } | ||
98 | |||
99 | /** | ||
100 | * <!-- begin-user-doc --> | ||
101 | * <!-- end-user-doc --> | ||
102 | * @generated | ||
103 | */ | ||
104 | @Override | ||
105 | protected EClass eStaticClass() | ||
106 | { | ||
107 | return SolverLanguagePackage.Literals.FIELD_RELATION_INTERPRETATION; | ||
108 | } | ||
109 | |||
110 | /** | ||
111 | * <!-- begin-user-doc --> | ||
112 | * <!-- end-user-doc --> | ||
113 | * @generated | ||
114 | */ | ||
115 | @Override | ||
116 | public boolean isContainment() | ||
117 | { | ||
118 | return containment; | ||
119 | } | ||
120 | |||
121 | /** | ||
122 | * <!-- begin-user-doc --> | ||
123 | * <!-- end-user-doc --> | ||
124 | * @generated | ||
125 | */ | ||
126 | @Override | ||
127 | public void setContainment(boolean newContainment) | ||
128 | { | ||
129 | boolean oldContainment = containment; | ||
130 | containment = newContainment; | ||
131 | if (eNotificationRequired()) | ||
132 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__CONTAINMENT, oldContainment, containment)); | ||
133 | } | ||
134 | |||
135 | /** | ||
136 | * <!-- begin-user-doc --> | ||
137 | * <!-- end-user-doc --> | ||
138 | * @generated | ||
139 | */ | ||
140 | @Override | ||
141 | public ModelSymbol getSymbol() | ||
142 | { | ||
143 | return symbol; | ||
144 | } | ||
145 | |||
146 | /** | ||
147 | * <!-- begin-user-doc --> | ||
148 | * <!-- end-user-doc --> | ||
149 | * @generated | ||
150 | */ | ||
151 | public NotificationChain basicSetSymbol(ModelSymbol newSymbol, NotificationChain msgs) | ||
152 | { | ||
153 | ModelSymbol oldSymbol = symbol; | ||
154 | symbol = newSymbol; | ||
155 | if (eNotificationRequired()) | ||
156 | { | ||
157 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__SYMBOL, oldSymbol, newSymbol); | ||
158 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
159 | } | ||
160 | return msgs; | ||
161 | } | ||
162 | |||
163 | /** | ||
164 | * <!-- begin-user-doc --> | ||
165 | * <!-- end-user-doc --> | ||
166 | * @generated | ||
167 | */ | ||
168 | @Override | ||
169 | public void setSymbol(ModelSymbol newSymbol) | ||
170 | { | ||
171 | if (newSymbol != symbol) | ||
172 | { | ||
173 | NotificationChain msgs = null; | ||
174 | if (symbol != null) | ||
175 | msgs = ((InternalEObject)symbol).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__SYMBOL, null, msgs); | ||
176 | if (newSymbol != null) | ||
177 | msgs = ((InternalEObject)newSymbol).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__SYMBOL, null, msgs); | ||
178 | msgs = basicSetSymbol(newSymbol, msgs); | ||
179 | if (msgs != null) msgs.dispatch(); | ||
180 | } | ||
181 | else if (eNotificationRequired()) | ||
182 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__SYMBOL, newSymbol, newSymbol)); | ||
183 | } | ||
184 | |||
185 | /** | ||
186 | * <!-- begin-user-doc --> | ||
187 | * <!-- end-user-doc --> | ||
188 | * @generated | ||
189 | */ | ||
190 | @Override | ||
191 | public MultiplicityDefinition getMultiplicity() | ||
192 | { | ||
193 | return multiplicity; | ||
194 | } | ||
195 | |||
196 | /** | ||
197 | * <!-- begin-user-doc --> | ||
198 | * <!-- end-user-doc --> | ||
199 | * @generated | ||
200 | */ | ||
201 | public NotificationChain basicSetMultiplicity(MultiplicityDefinition newMultiplicity, NotificationChain msgs) | ||
202 | { | ||
203 | MultiplicityDefinition oldMultiplicity = multiplicity; | ||
204 | multiplicity = newMultiplicity; | ||
205 | if (eNotificationRequired()) | ||
206 | { | ||
207 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__MULTIPLICITY, oldMultiplicity, newMultiplicity); | ||
208 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
209 | } | ||
210 | return msgs; | ||
211 | } | ||
212 | |||
213 | /** | ||
214 | * <!-- begin-user-doc --> | ||
215 | * <!-- end-user-doc --> | ||
216 | * @generated | ||
217 | */ | ||
218 | @Override | ||
219 | public void setMultiplicity(MultiplicityDefinition newMultiplicity) | ||
220 | { | ||
221 | if (newMultiplicity != multiplicity) | ||
222 | { | ||
223 | NotificationChain msgs = null; | ||
224 | if (multiplicity != null) | ||
225 | msgs = ((InternalEObject)multiplicity).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__MULTIPLICITY, null, msgs); | ||
226 | if (newMultiplicity != null) | ||
227 | msgs = ((InternalEObject)newMultiplicity).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__MULTIPLICITY, null, msgs); | ||
228 | msgs = basicSetMultiplicity(newMultiplicity, msgs); | ||
229 | if (msgs != null) msgs.dispatch(); | ||
230 | } | ||
231 | else if (eNotificationRequired()) | ||
232 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__MULTIPLICITY, newMultiplicity, newMultiplicity)); | ||
233 | } | ||
234 | |||
235 | /** | ||
236 | * <!-- begin-user-doc --> | ||
237 | * <!-- end-user-doc --> | ||
238 | * @generated | ||
239 | */ | ||
240 | @Override | ||
241 | public Symbol getTarget() | ||
242 | { | ||
243 | return target; | ||
244 | } | ||
245 | |||
246 | /** | ||
247 | * <!-- begin-user-doc --> | ||
248 | * <!-- end-user-doc --> | ||
249 | * @generated | ||
250 | */ | ||
251 | public NotificationChain basicSetTarget(Symbol newTarget, NotificationChain msgs) | ||
252 | { | ||
253 | Symbol oldTarget = target; | ||
254 | target = newTarget; | ||
255 | if (eNotificationRequired()) | ||
256 | { | ||
257 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__TARGET, oldTarget, newTarget); | ||
258 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
259 | } | ||
260 | return msgs; | ||
261 | } | ||
262 | |||
263 | /** | ||
264 | * <!-- begin-user-doc --> | ||
265 | * <!-- end-user-doc --> | ||
266 | * @generated | ||
267 | */ | ||
268 | @Override | ||
269 | public void setTarget(Symbol newTarget) | ||
270 | { | ||
271 | if (newTarget != target) | ||
272 | { | ||
273 | NotificationChain msgs = null; | ||
274 | if (target != null) | ||
275 | msgs = ((InternalEObject)target).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__TARGET, null, msgs); | ||
276 | if (newTarget != null) | ||
277 | msgs = ((InternalEObject)newTarget).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__TARGET, null, msgs); | ||
278 | msgs = basicSetTarget(newTarget, msgs); | ||
279 | if (msgs != null) msgs.dispatch(); | ||
280 | } | ||
281 | else if (eNotificationRequired()) | ||
282 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__TARGET, newTarget, newTarget)); | ||
283 | } | ||
284 | |||
285 | /** | ||
286 | * <!-- begin-user-doc --> | ||
287 | * <!-- end-user-doc --> | ||
288 | * @generated | ||
289 | */ | ||
290 | @Override | ||
291 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
292 | { | ||
293 | switch (featureID) | ||
294 | { | ||
295 | case SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__SYMBOL: | ||
296 | return basicSetSymbol(null, msgs); | ||
297 | case SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__MULTIPLICITY: | ||
298 | return basicSetMultiplicity(null, msgs); | ||
299 | case SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__TARGET: | ||
300 | return basicSetTarget(null, msgs); | ||
301 | } | ||
302 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
303 | } | ||
304 | |||
305 | /** | ||
306 | * <!-- begin-user-doc --> | ||
307 | * <!-- end-user-doc --> | ||
308 | * @generated | ||
309 | */ | ||
310 | @Override | ||
311 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
312 | { | ||
313 | switch (featureID) | ||
314 | { | ||
315 | case SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__CONTAINMENT: | ||
316 | return isContainment(); | ||
317 | case SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__SYMBOL: | ||
318 | return getSymbol(); | ||
319 | case SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__MULTIPLICITY: | ||
320 | return getMultiplicity(); | ||
321 | case SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__TARGET: | ||
322 | return getTarget(); | ||
323 | } | ||
324 | return super.eGet(featureID, resolve, coreType); | ||
325 | } | ||
326 | |||
327 | /** | ||
328 | * <!-- begin-user-doc --> | ||
329 | * <!-- end-user-doc --> | ||
330 | * @generated | ||
331 | */ | ||
332 | @Override | ||
333 | public void eSet(int featureID, Object newValue) | ||
334 | { | ||
335 | switch (featureID) | ||
336 | { | ||
337 | case SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__CONTAINMENT: | ||
338 | setContainment((Boolean)newValue); | ||
339 | return; | ||
340 | case SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__SYMBOL: | ||
341 | setSymbol((ModelSymbol)newValue); | ||
342 | return; | ||
343 | case SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__MULTIPLICITY: | ||
344 | setMultiplicity((MultiplicityDefinition)newValue); | ||
345 | return; | ||
346 | case SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__TARGET: | ||
347 | setTarget((Symbol)newValue); | ||
348 | return; | ||
349 | } | ||
350 | super.eSet(featureID, newValue); | ||
351 | } | ||
352 | |||
353 | /** | ||
354 | * <!-- begin-user-doc --> | ||
355 | * <!-- end-user-doc --> | ||
356 | * @generated | ||
357 | */ | ||
358 | @Override | ||
359 | public void eUnset(int featureID) | ||
360 | { | ||
361 | switch (featureID) | ||
362 | { | ||
363 | case SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__CONTAINMENT: | ||
364 | setContainment(CONTAINMENT_EDEFAULT); | ||
365 | return; | ||
366 | case SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__SYMBOL: | ||
367 | setSymbol((ModelSymbol)null); | ||
368 | return; | ||
369 | case SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__MULTIPLICITY: | ||
370 | setMultiplicity((MultiplicityDefinition)null); | ||
371 | return; | ||
372 | case SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__TARGET: | ||
373 | setTarget((Symbol)null); | ||
374 | return; | ||
375 | } | ||
376 | super.eUnset(featureID); | ||
377 | } | ||
378 | |||
379 | /** | ||
380 | * <!-- begin-user-doc --> | ||
381 | * <!-- end-user-doc --> | ||
382 | * @generated | ||
383 | */ | ||
384 | @Override | ||
385 | public boolean eIsSet(int featureID) | ||
386 | { | ||
387 | switch (featureID) | ||
388 | { | ||
389 | case SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__CONTAINMENT: | ||
390 | return containment != CONTAINMENT_EDEFAULT; | ||
391 | case SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__SYMBOL: | ||
392 | return symbol != null; | ||
393 | case SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__MULTIPLICITY: | ||
394 | return multiplicity != null; | ||
395 | case SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__TARGET: | ||
396 | return target != null; | ||
397 | } | ||
398 | return super.eIsSet(featureID); | ||
399 | } | ||
400 | |||
401 | /** | ||
402 | * <!-- begin-user-doc --> | ||
403 | * <!-- end-user-doc --> | ||
404 | * @generated | ||
405 | */ | ||
406 | @Override | ||
407 | public String toString() | ||
408 | { | ||
409 | if (eIsProxy()) return super.toString(); | ||
410 | |||
411 | StringBuilder result = new StringBuilder(super.toString()); | ||
412 | result.append(" (containment: "); | ||
413 | result.append(containment); | ||
414 | result.append(')'); | ||
415 | return result.toString(); | ||
416 | } | ||
417 | |||
418 | } //FieldRelationInterpretationImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/GlobalRelationInterpretationImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/GlobalRelationInterpretationImpl.java new file mode 100644 index 00000000..52f7a67d --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/GlobalRelationInterpretationImpl.java | |||
@@ -0,0 +1,563 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | import org.eclipse.emf.common.notify.NotificationChain; | ||
8 | |||
9 | import org.eclipse.emf.ecore.EClass; | ||
10 | import org.eclipse.emf.ecore.InternalEObject; | ||
11 | |||
12 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
13 | |||
14 | import org.eclipse.viatra.solver.language.solverLanguage.GlobalRelationInterpretation; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.ModelSymbol; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.MultiplicityDefinition; | ||
17 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
18 | import org.eclipse.viatra.solver.language.solverLanguage.Symbol; | ||
19 | |||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * An implementation of the model object '<em><b>Global Relation Interpretation</b></em>'. | ||
23 | * <!-- end-user-doc --> | ||
24 | * <p> | ||
25 | * The following features are implemented: | ||
26 | * </p> | ||
27 | * <ul> | ||
28 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.GlobalRelationInterpretationImpl#isContainment <em>Containment</em>}</li> | ||
29 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.GlobalRelationInterpretationImpl#getSymbol <em>Symbol</em>}</li> | ||
30 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.GlobalRelationInterpretationImpl#getSourceMultiplicity <em>Source Multiplicity</em>}</li> | ||
31 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.GlobalRelationInterpretationImpl#getSource <em>Source</em>}</li> | ||
32 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.GlobalRelationInterpretationImpl#getTargetMultiplicity <em>Target Multiplicity</em>}</li> | ||
33 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.GlobalRelationInterpretationImpl#getTarget <em>Target</em>}</li> | ||
34 | * </ul> | ||
35 | * | ||
36 | * @generated | ||
37 | */ | ||
38 | public class GlobalRelationInterpretationImpl extends CDInterpretationImpl implements GlobalRelationInterpretation | ||
39 | { | ||
40 | /** | ||
41 | * The default value of the '{@link #isContainment() <em>Containment</em>}' attribute. | ||
42 | * <!-- begin-user-doc --> | ||
43 | * <!-- end-user-doc --> | ||
44 | * @see #isContainment() | ||
45 | * @generated | ||
46 | * @ordered | ||
47 | */ | ||
48 | protected static final boolean CONTAINMENT_EDEFAULT = false; | ||
49 | |||
50 | /** | ||
51 | * The cached value of the '{@link #isContainment() <em>Containment</em>}' attribute. | ||
52 | * <!-- begin-user-doc --> | ||
53 | * <!-- end-user-doc --> | ||
54 | * @see #isContainment() | ||
55 | * @generated | ||
56 | * @ordered | ||
57 | */ | ||
58 | protected boolean containment = CONTAINMENT_EDEFAULT; | ||
59 | |||
60 | /** | ||
61 | * The cached value of the '{@link #getSymbol() <em>Symbol</em>}' containment reference. | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @see #getSymbol() | ||
65 | * @generated | ||
66 | * @ordered | ||
67 | */ | ||
68 | protected ModelSymbol symbol; | ||
69 | |||
70 | /** | ||
71 | * The cached value of the '{@link #getSourceMultiplicity() <em>Source Multiplicity</em>}' containment reference. | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @see #getSourceMultiplicity() | ||
75 | * @generated | ||
76 | * @ordered | ||
77 | */ | ||
78 | protected MultiplicityDefinition sourceMultiplicity; | ||
79 | |||
80 | /** | ||
81 | * The cached value of the '{@link #getSource() <em>Source</em>}' containment reference. | ||
82 | * <!-- begin-user-doc --> | ||
83 | * <!-- end-user-doc --> | ||
84 | * @see #getSource() | ||
85 | * @generated | ||
86 | * @ordered | ||
87 | */ | ||
88 | protected Symbol source; | ||
89 | |||
90 | /** | ||
91 | * The cached value of the '{@link #getTargetMultiplicity() <em>Target Multiplicity</em>}' containment reference. | ||
92 | * <!-- begin-user-doc --> | ||
93 | * <!-- end-user-doc --> | ||
94 | * @see #getTargetMultiplicity() | ||
95 | * @generated | ||
96 | * @ordered | ||
97 | */ | ||
98 | protected MultiplicityDefinition targetMultiplicity; | ||
99 | |||
100 | /** | ||
101 | * The cached value of the '{@link #getTarget() <em>Target</em>}' containment reference. | ||
102 | * <!-- begin-user-doc --> | ||
103 | * <!-- end-user-doc --> | ||
104 | * @see #getTarget() | ||
105 | * @generated | ||
106 | * @ordered | ||
107 | */ | ||
108 | protected Symbol target; | ||
109 | |||
110 | /** | ||
111 | * <!-- begin-user-doc --> | ||
112 | * <!-- end-user-doc --> | ||
113 | * @generated | ||
114 | */ | ||
115 | protected GlobalRelationInterpretationImpl() | ||
116 | { | ||
117 | super(); | ||
118 | } | ||
119 | |||
120 | /** | ||
121 | * <!-- begin-user-doc --> | ||
122 | * <!-- end-user-doc --> | ||
123 | * @generated | ||
124 | */ | ||
125 | @Override | ||
126 | protected EClass eStaticClass() | ||
127 | { | ||
128 | return SolverLanguagePackage.Literals.GLOBAL_RELATION_INTERPRETATION; | ||
129 | } | ||
130 | |||
131 | /** | ||
132 | * <!-- begin-user-doc --> | ||
133 | * <!-- end-user-doc --> | ||
134 | * @generated | ||
135 | */ | ||
136 | @Override | ||
137 | public boolean isContainment() | ||
138 | { | ||
139 | return containment; | ||
140 | } | ||
141 | |||
142 | /** | ||
143 | * <!-- begin-user-doc --> | ||
144 | * <!-- end-user-doc --> | ||
145 | * @generated | ||
146 | */ | ||
147 | @Override | ||
148 | public void setContainment(boolean newContainment) | ||
149 | { | ||
150 | boolean oldContainment = containment; | ||
151 | containment = newContainment; | ||
152 | if (eNotificationRequired()) | ||
153 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__CONTAINMENT, oldContainment, containment)); | ||
154 | } | ||
155 | |||
156 | /** | ||
157 | * <!-- begin-user-doc --> | ||
158 | * <!-- end-user-doc --> | ||
159 | * @generated | ||
160 | */ | ||
161 | @Override | ||
162 | public ModelSymbol getSymbol() | ||
163 | { | ||
164 | return symbol; | ||
165 | } | ||
166 | |||
167 | /** | ||
168 | * <!-- begin-user-doc --> | ||
169 | * <!-- end-user-doc --> | ||
170 | * @generated | ||
171 | */ | ||
172 | public NotificationChain basicSetSymbol(ModelSymbol newSymbol, NotificationChain msgs) | ||
173 | { | ||
174 | ModelSymbol oldSymbol = symbol; | ||
175 | symbol = newSymbol; | ||
176 | if (eNotificationRequired()) | ||
177 | { | ||
178 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__SYMBOL, oldSymbol, newSymbol); | ||
179 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
180 | } | ||
181 | return msgs; | ||
182 | } | ||
183 | |||
184 | /** | ||
185 | * <!-- begin-user-doc --> | ||
186 | * <!-- end-user-doc --> | ||
187 | * @generated | ||
188 | */ | ||
189 | @Override | ||
190 | public void setSymbol(ModelSymbol newSymbol) | ||
191 | { | ||
192 | if (newSymbol != symbol) | ||
193 | { | ||
194 | NotificationChain msgs = null; | ||
195 | if (symbol != null) | ||
196 | msgs = ((InternalEObject)symbol).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__SYMBOL, null, msgs); | ||
197 | if (newSymbol != null) | ||
198 | msgs = ((InternalEObject)newSymbol).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__SYMBOL, null, msgs); | ||
199 | msgs = basicSetSymbol(newSymbol, msgs); | ||
200 | if (msgs != null) msgs.dispatch(); | ||
201 | } | ||
202 | else if (eNotificationRequired()) | ||
203 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__SYMBOL, newSymbol, newSymbol)); | ||
204 | } | ||
205 | |||
206 | /** | ||
207 | * <!-- begin-user-doc --> | ||
208 | * <!-- end-user-doc --> | ||
209 | * @generated | ||
210 | */ | ||
211 | @Override | ||
212 | public MultiplicityDefinition getSourceMultiplicity() | ||
213 | { | ||
214 | return sourceMultiplicity; | ||
215 | } | ||
216 | |||
217 | /** | ||
218 | * <!-- begin-user-doc --> | ||
219 | * <!-- end-user-doc --> | ||
220 | * @generated | ||
221 | */ | ||
222 | public NotificationChain basicSetSourceMultiplicity(MultiplicityDefinition newSourceMultiplicity, NotificationChain msgs) | ||
223 | { | ||
224 | MultiplicityDefinition oldSourceMultiplicity = sourceMultiplicity; | ||
225 | sourceMultiplicity = newSourceMultiplicity; | ||
226 | if (eNotificationRequired()) | ||
227 | { | ||
228 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__SOURCE_MULTIPLICITY, oldSourceMultiplicity, newSourceMultiplicity); | ||
229 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
230 | } | ||
231 | return msgs; | ||
232 | } | ||
233 | |||
234 | /** | ||
235 | * <!-- begin-user-doc --> | ||
236 | * <!-- end-user-doc --> | ||
237 | * @generated | ||
238 | */ | ||
239 | @Override | ||
240 | public void setSourceMultiplicity(MultiplicityDefinition newSourceMultiplicity) | ||
241 | { | ||
242 | if (newSourceMultiplicity != sourceMultiplicity) | ||
243 | { | ||
244 | NotificationChain msgs = null; | ||
245 | if (sourceMultiplicity != null) | ||
246 | msgs = ((InternalEObject)sourceMultiplicity).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__SOURCE_MULTIPLICITY, null, msgs); | ||
247 | if (newSourceMultiplicity != null) | ||
248 | msgs = ((InternalEObject)newSourceMultiplicity).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__SOURCE_MULTIPLICITY, null, msgs); | ||
249 | msgs = basicSetSourceMultiplicity(newSourceMultiplicity, msgs); | ||
250 | if (msgs != null) msgs.dispatch(); | ||
251 | } | ||
252 | else if (eNotificationRequired()) | ||
253 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__SOURCE_MULTIPLICITY, newSourceMultiplicity, newSourceMultiplicity)); | ||
254 | } | ||
255 | |||
256 | /** | ||
257 | * <!-- begin-user-doc --> | ||
258 | * <!-- end-user-doc --> | ||
259 | * @generated | ||
260 | */ | ||
261 | @Override | ||
262 | public Symbol getSource() | ||
263 | { | ||
264 | return source; | ||
265 | } | ||
266 | |||
267 | /** | ||
268 | * <!-- begin-user-doc --> | ||
269 | * <!-- end-user-doc --> | ||
270 | * @generated | ||
271 | */ | ||
272 | public NotificationChain basicSetSource(Symbol newSource, NotificationChain msgs) | ||
273 | { | ||
274 | Symbol oldSource = source; | ||
275 | source = newSource; | ||
276 | if (eNotificationRequired()) | ||
277 | { | ||
278 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__SOURCE, oldSource, newSource); | ||
279 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
280 | } | ||
281 | return msgs; | ||
282 | } | ||
283 | |||
284 | /** | ||
285 | * <!-- begin-user-doc --> | ||
286 | * <!-- end-user-doc --> | ||
287 | * @generated | ||
288 | */ | ||
289 | @Override | ||
290 | public void setSource(Symbol newSource) | ||
291 | { | ||
292 | if (newSource != source) | ||
293 | { | ||
294 | NotificationChain msgs = null; | ||
295 | if (source != null) | ||
296 | msgs = ((InternalEObject)source).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__SOURCE, null, msgs); | ||
297 | if (newSource != null) | ||
298 | msgs = ((InternalEObject)newSource).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__SOURCE, null, msgs); | ||
299 | msgs = basicSetSource(newSource, msgs); | ||
300 | if (msgs != null) msgs.dispatch(); | ||
301 | } | ||
302 | else if (eNotificationRequired()) | ||
303 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__SOURCE, newSource, newSource)); | ||
304 | } | ||
305 | |||
306 | /** | ||
307 | * <!-- begin-user-doc --> | ||
308 | * <!-- end-user-doc --> | ||
309 | * @generated | ||
310 | */ | ||
311 | @Override | ||
312 | public MultiplicityDefinition getTargetMultiplicity() | ||
313 | { | ||
314 | return targetMultiplicity; | ||
315 | } | ||
316 | |||
317 | /** | ||
318 | * <!-- begin-user-doc --> | ||
319 | * <!-- end-user-doc --> | ||
320 | * @generated | ||
321 | */ | ||
322 | public NotificationChain basicSetTargetMultiplicity(MultiplicityDefinition newTargetMultiplicity, NotificationChain msgs) | ||
323 | { | ||
324 | MultiplicityDefinition oldTargetMultiplicity = targetMultiplicity; | ||
325 | targetMultiplicity = newTargetMultiplicity; | ||
326 | if (eNotificationRequired()) | ||
327 | { | ||
328 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__TARGET_MULTIPLICITY, oldTargetMultiplicity, newTargetMultiplicity); | ||
329 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
330 | } | ||
331 | return msgs; | ||
332 | } | ||
333 | |||
334 | /** | ||
335 | * <!-- begin-user-doc --> | ||
336 | * <!-- end-user-doc --> | ||
337 | * @generated | ||
338 | */ | ||
339 | @Override | ||
340 | public void setTargetMultiplicity(MultiplicityDefinition newTargetMultiplicity) | ||
341 | { | ||
342 | if (newTargetMultiplicity != targetMultiplicity) | ||
343 | { | ||
344 | NotificationChain msgs = null; | ||
345 | if (targetMultiplicity != null) | ||
346 | msgs = ((InternalEObject)targetMultiplicity).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__TARGET_MULTIPLICITY, null, msgs); | ||
347 | if (newTargetMultiplicity != null) | ||
348 | msgs = ((InternalEObject)newTargetMultiplicity).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__TARGET_MULTIPLICITY, null, msgs); | ||
349 | msgs = basicSetTargetMultiplicity(newTargetMultiplicity, msgs); | ||
350 | if (msgs != null) msgs.dispatch(); | ||
351 | } | ||
352 | else if (eNotificationRequired()) | ||
353 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__TARGET_MULTIPLICITY, newTargetMultiplicity, newTargetMultiplicity)); | ||
354 | } | ||
355 | |||
356 | /** | ||
357 | * <!-- begin-user-doc --> | ||
358 | * <!-- end-user-doc --> | ||
359 | * @generated | ||
360 | */ | ||
361 | @Override | ||
362 | public Symbol getTarget() | ||
363 | { | ||
364 | return target; | ||
365 | } | ||
366 | |||
367 | /** | ||
368 | * <!-- begin-user-doc --> | ||
369 | * <!-- end-user-doc --> | ||
370 | * @generated | ||
371 | */ | ||
372 | public NotificationChain basicSetTarget(Symbol newTarget, NotificationChain msgs) | ||
373 | { | ||
374 | Symbol oldTarget = target; | ||
375 | target = newTarget; | ||
376 | if (eNotificationRequired()) | ||
377 | { | ||
378 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__TARGET, oldTarget, newTarget); | ||
379 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
380 | } | ||
381 | return msgs; | ||
382 | } | ||
383 | |||
384 | /** | ||
385 | * <!-- begin-user-doc --> | ||
386 | * <!-- end-user-doc --> | ||
387 | * @generated | ||
388 | */ | ||
389 | @Override | ||
390 | public void setTarget(Symbol newTarget) | ||
391 | { | ||
392 | if (newTarget != target) | ||
393 | { | ||
394 | NotificationChain msgs = null; | ||
395 | if (target != null) | ||
396 | msgs = ((InternalEObject)target).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__TARGET, null, msgs); | ||
397 | if (newTarget != null) | ||
398 | msgs = ((InternalEObject)newTarget).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__TARGET, null, msgs); | ||
399 | msgs = basicSetTarget(newTarget, msgs); | ||
400 | if (msgs != null) msgs.dispatch(); | ||
401 | } | ||
402 | else if (eNotificationRequired()) | ||
403 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__TARGET, newTarget, newTarget)); | ||
404 | } | ||
405 | |||
406 | /** | ||
407 | * <!-- begin-user-doc --> | ||
408 | * <!-- end-user-doc --> | ||
409 | * @generated | ||
410 | */ | ||
411 | @Override | ||
412 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
413 | { | ||
414 | switch (featureID) | ||
415 | { | ||
416 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__SYMBOL: | ||
417 | return basicSetSymbol(null, msgs); | ||
418 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__SOURCE_MULTIPLICITY: | ||
419 | return basicSetSourceMultiplicity(null, msgs); | ||
420 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__SOURCE: | ||
421 | return basicSetSource(null, msgs); | ||
422 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__TARGET_MULTIPLICITY: | ||
423 | return basicSetTargetMultiplicity(null, msgs); | ||
424 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__TARGET: | ||
425 | return basicSetTarget(null, msgs); | ||
426 | } | ||
427 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
428 | } | ||
429 | |||
430 | /** | ||
431 | * <!-- begin-user-doc --> | ||
432 | * <!-- end-user-doc --> | ||
433 | * @generated | ||
434 | */ | ||
435 | @Override | ||
436 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
437 | { | ||
438 | switch (featureID) | ||
439 | { | ||
440 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__CONTAINMENT: | ||
441 | return isContainment(); | ||
442 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__SYMBOL: | ||
443 | return getSymbol(); | ||
444 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__SOURCE_MULTIPLICITY: | ||
445 | return getSourceMultiplicity(); | ||
446 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__SOURCE: | ||
447 | return getSource(); | ||
448 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__TARGET_MULTIPLICITY: | ||
449 | return getTargetMultiplicity(); | ||
450 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__TARGET: | ||
451 | return getTarget(); | ||
452 | } | ||
453 | return super.eGet(featureID, resolve, coreType); | ||
454 | } | ||
455 | |||
456 | /** | ||
457 | * <!-- begin-user-doc --> | ||
458 | * <!-- end-user-doc --> | ||
459 | * @generated | ||
460 | */ | ||
461 | @Override | ||
462 | public void eSet(int featureID, Object newValue) | ||
463 | { | ||
464 | switch (featureID) | ||
465 | { | ||
466 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__CONTAINMENT: | ||
467 | setContainment((Boolean)newValue); | ||
468 | return; | ||
469 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__SYMBOL: | ||
470 | setSymbol((ModelSymbol)newValue); | ||
471 | return; | ||
472 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__SOURCE_MULTIPLICITY: | ||
473 | setSourceMultiplicity((MultiplicityDefinition)newValue); | ||
474 | return; | ||
475 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__SOURCE: | ||
476 | setSource((Symbol)newValue); | ||
477 | return; | ||
478 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__TARGET_MULTIPLICITY: | ||
479 | setTargetMultiplicity((MultiplicityDefinition)newValue); | ||
480 | return; | ||
481 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__TARGET: | ||
482 | setTarget((Symbol)newValue); | ||
483 | return; | ||
484 | } | ||
485 | super.eSet(featureID, newValue); | ||
486 | } | ||
487 | |||
488 | /** | ||
489 | * <!-- begin-user-doc --> | ||
490 | * <!-- end-user-doc --> | ||
491 | * @generated | ||
492 | */ | ||
493 | @Override | ||
494 | public void eUnset(int featureID) | ||
495 | { | ||
496 | switch (featureID) | ||
497 | { | ||
498 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__CONTAINMENT: | ||
499 | setContainment(CONTAINMENT_EDEFAULT); | ||
500 | return; | ||
501 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__SYMBOL: | ||
502 | setSymbol((ModelSymbol)null); | ||
503 | return; | ||
504 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__SOURCE_MULTIPLICITY: | ||
505 | setSourceMultiplicity((MultiplicityDefinition)null); | ||
506 | return; | ||
507 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__SOURCE: | ||
508 | setSource((Symbol)null); | ||
509 | return; | ||
510 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__TARGET_MULTIPLICITY: | ||
511 | setTargetMultiplicity((MultiplicityDefinition)null); | ||
512 | return; | ||
513 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__TARGET: | ||
514 | setTarget((Symbol)null); | ||
515 | return; | ||
516 | } | ||
517 | super.eUnset(featureID); | ||
518 | } | ||
519 | |||
520 | /** | ||
521 | * <!-- begin-user-doc --> | ||
522 | * <!-- end-user-doc --> | ||
523 | * @generated | ||
524 | */ | ||
525 | @Override | ||
526 | public boolean eIsSet(int featureID) | ||
527 | { | ||
528 | switch (featureID) | ||
529 | { | ||
530 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__CONTAINMENT: | ||
531 | return containment != CONTAINMENT_EDEFAULT; | ||
532 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__SYMBOL: | ||
533 | return symbol != null; | ||
534 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__SOURCE_MULTIPLICITY: | ||
535 | return sourceMultiplicity != null; | ||
536 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__SOURCE: | ||
537 | return source != null; | ||
538 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__TARGET_MULTIPLICITY: | ||
539 | return targetMultiplicity != null; | ||
540 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__TARGET: | ||
541 | return target != null; | ||
542 | } | ||
543 | return super.eIsSet(featureID); | ||
544 | } | ||
545 | |||
546 | /** | ||
547 | * <!-- begin-user-doc --> | ||
548 | * <!-- end-user-doc --> | ||
549 | * @generated | ||
550 | */ | ||
551 | @Override | ||
552 | public String toString() | ||
553 | { | ||
554 | if (eIsProxy()) return super.toString(); | ||
555 | |||
556 | StringBuilder result = new StringBuilder(super.toString()); | ||
557 | result.append(" (containment: "); | ||
558 | result.append(containment); | ||
559 | result.append(')'); | ||
560 | return result.toString(); | ||
561 | } | ||
562 | |||
563 | } //GlobalRelationInterpretationImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/IntObjectImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/IntObjectImpl.java new file mode 100644 index 00000000..fa844b68 --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/IntObjectImpl.java | |||
@@ -0,0 +1,179 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | |||
10 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
11 | |||
12 | import org.eclipse.viatra.solver.language.solverLanguage.IntObject; | ||
13 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
14 | |||
15 | /** | ||
16 | * <!-- begin-user-doc --> | ||
17 | * An implementation of the model object '<em><b>Int Object</b></em>'. | ||
18 | * <!-- end-user-doc --> | ||
19 | * <p> | ||
20 | * The following features are implemented: | ||
21 | * </p> | ||
22 | * <ul> | ||
23 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.IntObjectImpl#getValue <em>Value</em>}</li> | ||
24 | * </ul> | ||
25 | * | ||
26 | * @generated | ||
27 | */ | ||
28 | public class IntObjectImpl extends DataObjectImpl implements IntObject | ||
29 | { | ||
30 | /** | ||
31 | * The default value of the '{@link #getValue() <em>Value</em>}' attribute. | ||
32 | * <!-- begin-user-doc --> | ||
33 | * <!-- end-user-doc --> | ||
34 | * @see #getValue() | ||
35 | * @generated | ||
36 | * @ordered | ||
37 | */ | ||
38 | protected static final int VALUE_EDEFAULT = 0; | ||
39 | |||
40 | /** | ||
41 | * The cached value of the '{@link #getValue() <em>Value</em>}' attribute. | ||
42 | * <!-- begin-user-doc --> | ||
43 | * <!-- end-user-doc --> | ||
44 | * @see #getValue() | ||
45 | * @generated | ||
46 | * @ordered | ||
47 | */ | ||
48 | protected int value = VALUE_EDEFAULT; | ||
49 | |||
50 | /** | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @generated | ||
54 | */ | ||
55 | protected IntObjectImpl() | ||
56 | { | ||
57 | super(); | ||
58 | } | ||
59 | |||
60 | /** | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @generated | ||
64 | */ | ||
65 | @Override | ||
66 | protected EClass eStaticClass() | ||
67 | { | ||
68 | return SolverLanguagePackage.Literals.INT_OBJECT; | ||
69 | } | ||
70 | |||
71 | /** | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @generated | ||
75 | */ | ||
76 | @Override | ||
77 | public int getValue() | ||
78 | { | ||
79 | return value; | ||
80 | } | ||
81 | |||
82 | /** | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @generated | ||
86 | */ | ||
87 | @Override | ||
88 | public void setValue(int newValue) | ||
89 | { | ||
90 | int oldValue = value; | ||
91 | value = newValue; | ||
92 | if (eNotificationRequired()) | ||
93 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.INT_OBJECT__VALUE, oldValue, value)); | ||
94 | } | ||
95 | |||
96 | /** | ||
97 | * <!-- begin-user-doc --> | ||
98 | * <!-- end-user-doc --> | ||
99 | * @generated | ||
100 | */ | ||
101 | @Override | ||
102 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
103 | { | ||
104 | switch (featureID) | ||
105 | { | ||
106 | case SolverLanguagePackage.INT_OBJECT__VALUE: | ||
107 | return getValue(); | ||
108 | } | ||
109 | return super.eGet(featureID, resolve, coreType); | ||
110 | } | ||
111 | |||
112 | /** | ||
113 | * <!-- begin-user-doc --> | ||
114 | * <!-- end-user-doc --> | ||
115 | * @generated | ||
116 | */ | ||
117 | @Override | ||
118 | public void eSet(int featureID, Object newValue) | ||
119 | { | ||
120 | switch (featureID) | ||
121 | { | ||
122 | case SolverLanguagePackage.INT_OBJECT__VALUE: | ||
123 | setValue((Integer)newValue); | ||
124 | return; | ||
125 | } | ||
126 | super.eSet(featureID, newValue); | ||
127 | } | ||
128 | |||
129 | /** | ||
130 | * <!-- begin-user-doc --> | ||
131 | * <!-- end-user-doc --> | ||
132 | * @generated | ||
133 | */ | ||
134 | @Override | ||
135 | public void eUnset(int featureID) | ||
136 | { | ||
137 | switch (featureID) | ||
138 | { | ||
139 | case SolverLanguagePackage.INT_OBJECT__VALUE: | ||
140 | setValue(VALUE_EDEFAULT); | ||
141 | return; | ||
142 | } | ||
143 | super.eUnset(featureID); | ||
144 | } | ||
145 | |||
146 | /** | ||
147 | * <!-- begin-user-doc --> | ||
148 | * <!-- end-user-doc --> | ||
149 | * @generated | ||
150 | */ | ||
151 | @Override | ||
152 | public boolean eIsSet(int featureID) | ||
153 | { | ||
154 | switch (featureID) | ||
155 | { | ||
156 | case SolverLanguagePackage.INT_OBJECT__VALUE: | ||
157 | return value != VALUE_EDEFAULT; | ||
158 | } | ||
159 | return super.eIsSet(featureID); | ||
160 | } | ||
161 | |||
162 | /** | ||
163 | * <!-- begin-user-doc --> | ||
164 | * <!-- end-user-doc --> | ||
165 | * @generated | ||
166 | */ | ||
167 | @Override | ||
168 | public String toString() | ||
169 | { | ||
170 | if (eIsProxy()) return super.toString(); | ||
171 | |||
172 | StringBuilder result = new StringBuilder(super.toString()); | ||
173 | result.append(" (value: "); | ||
174 | result.append(value); | ||
175 | result.append(')'); | ||
176 | return result.toString(); | ||
177 | } | ||
178 | |||
179 | } //IntObjectImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/IntegerSymbolImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/IntegerSymbolImpl.java new file mode 100644 index 00000000..bcd978fa --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/IntegerSymbolImpl.java | |||
@@ -0,0 +1,41 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | |||
8 | import org.eclipse.viatra.solver.language.solverLanguage.IntegerSymbol; | ||
9 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * An implementation of the model object '<em><b>Integer Symbol</b></em>'. | ||
14 | * <!-- end-user-doc --> | ||
15 | * | ||
16 | * @generated | ||
17 | */ | ||
18 | public class IntegerSymbolImpl extends DataSymbolImpl implements IntegerSymbol | ||
19 | { | ||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * <!-- end-user-doc --> | ||
23 | * @generated | ||
24 | */ | ||
25 | protected IntegerSymbolImpl() | ||
26 | { | ||
27 | super(); | ||
28 | } | ||
29 | |||
30 | /** | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @generated | ||
34 | */ | ||
35 | @Override | ||
36 | protected EClass eStaticClass() | ||
37 | { | ||
38 | return SolverLanguagePackage.Literals.INTEGER_SYMBOL; | ||
39 | } | ||
40 | |||
41 | } //IntegerSymbolImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/InterpretationImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/InterpretationImpl.java new file mode 100644 index 00000000..fb41d77d --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/InterpretationImpl.java | |||
@@ -0,0 +1,41 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | |||
8 | import org.eclipse.viatra.solver.language.solverLanguage.Interpretation; | ||
9 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * An implementation of the model object '<em><b>Interpretation</b></em>'. | ||
14 | * <!-- end-user-doc --> | ||
15 | * | ||
16 | * @generated | ||
17 | */ | ||
18 | public class InterpretationImpl extends StatementImpl implements Interpretation | ||
19 | { | ||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * <!-- end-user-doc --> | ||
23 | * @generated | ||
24 | */ | ||
25 | protected InterpretationImpl() | ||
26 | { | ||
27 | super(); | ||
28 | } | ||
29 | |||
30 | /** | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @generated | ||
34 | */ | ||
35 | @Override | ||
36 | protected EClass eStaticClass() | ||
37 | { | ||
38 | return SolverLanguagePackage.Literals.INTERPRETATION; | ||
39 | } | ||
40 | |||
41 | } //InterpretationImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/IrreflexiveClosureImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/IrreflexiveClosureImpl.java new file mode 100644 index 00000000..07ad66f9 --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/IrreflexiveClosureImpl.java | |||
@@ -0,0 +1,41 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | |||
8 | import org.eclipse.viatra.solver.language.solverLanguage.IrreflexiveClosure; | ||
9 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * An implementation of the model object '<em><b>Irreflexive Closure</b></em>'. | ||
14 | * <!-- end-user-doc --> | ||
15 | * | ||
16 | * @generated | ||
17 | */ | ||
18 | public class IrreflexiveClosureImpl extends ClosureTypeImpl implements IrreflexiveClosure | ||
19 | { | ||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * <!-- end-user-doc --> | ||
23 | * @generated | ||
24 | */ | ||
25 | protected IrreflexiveClosureImpl() | ||
26 | { | ||
27 | super(); | ||
28 | } | ||
29 | |||
30 | /** | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @generated | ||
34 | */ | ||
35 | @Override | ||
36 | protected EClass eStaticClass() | ||
37 | { | ||
38 | return SolverLanguagePackage.Literals.IRREFLEXIVE_CLOSURE; | ||
39 | } | ||
40 | |||
41 | } //IrreflexiveClosureImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/LiteralImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/LiteralImpl.java new file mode 100644 index 00000000..518aa2b7 --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/LiteralImpl.java | |||
@@ -0,0 +1,43 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | |||
8 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
9 | |||
10 | import org.eclipse.viatra.solver.language.solverLanguage.Literal; | ||
11 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
12 | |||
13 | /** | ||
14 | * <!-- begin-user-doc --> | ||
15 | * An implementation of the model object '<em><b>Literal</b></em>'. | ||
16 | * <!-- end-user-doc --> | ||
17 | * | ||
18 | * @generated | ||
19 | */ | ||
20 | public class LiteralImpl extends MinimalEObjectImpl.Container implements Literal | ||
21 | { | ||
22 | /** | ||
23 | * <!-- begin-user-doc --> | ||
24 | * <!-- end-user-doc --> | ||
25 | * @generated | ||
26 | */ | ||
27 | protected LiteralImpl() | ||
28 | { | ||
29 | super(); | ||
30 | } | ||
31 | |||
32 | /** | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @generated | ||
36 | */ | ||
37 | @Override | ||
38 | protected EClass eStaticClass() | ||
39 | { | ||
40 | return SolverLanguagePackage.Literals.LITERAL; | ||
41 | } | ||
42 | |||
43 | } //LiteralImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ModelSymbolImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ModelSymbolImpl.java new file mode 100644 index 00000000..bd195572 --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ModelSymbolImpl.java | |||
@@ -0,0 +1,179 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | |||
10 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
11 | |||
12 | import org.eclipse.viatra.solver.language.solverLanguage.ModelSymbol; | ||
13 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
14 | |||
15 | /** | ||
16 | * <!-- begin-user-doc --> | ||
17 | * An implementation of the model object '<em><b>Model Symbol</b></em>'. | ||
18 | * <!-- end-user-doc --> | ||
19 | * <p> | ||
20 | * The following features are implemented: | ||
21 | * </p> | ||
22 | * <ul> | ||
23 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ModelSymbolImpl#getName <em>Name</em>}</li> | ||
24 | * </ul> | ||
25 | * | ||
26 | * @generated | ||
27 | */ | ||
28 | public class ModelSymbolImpl extends SymbolImpl implements ModelSymbol | ||
29 | { | ||
30 | /** | ||
31 | * The default value of the '{@link #getName() <em>Name</em>}' attribute. | ||
32 | * <!-- begin-user-doc --> | ||
33 | * <!-- end-user-doc --> | ||
34 | * @see #getName() | ||
35 | * @generated | ||
36 | * @ordered | ||
37 | */ | ||
38 | protected static final String NAME_EDEFAULT = null; | ||
39 | |||
40 | /** | ||
41 | * The cached value of the '{@link #getName() <em>Name</em>}' attribute. | ||
42 | * <!-- begin-user-doc --> | ||
43 | * <!-- end-user-doc --> | ||
44 | * @see #getName() | ||
45 | * @generated | ||
46 | * @ordered | ||
47 | */ | ||
48 | protected String name = NAME_EDEFAULT; | ||
49 | |||
50 | /** | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @generated | ||
54 | */ | ||
55 | protected ModelSymbolImpl() | ||
56 | { | ||
57 | super(); | ||
58 | } | ||
59 | |||
60 | /** | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @generated | ||
64 | */ | ||
65 | @Override | ||
66 | protected EClass eStaticClass() | ||
67 | { | ||
68 | return SolverLanguagePackage.Literals.MODEL_SYMBOL; | ||
69 | } | ||
70 | |||
71 | /** | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @generated | ||
75 | */ | ||
76 | @Override | ||
77 | public String getName() | ||
78 | { | ||
79 | return name; | ||
80 | } | ||
81 | |||
82 | /** | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @generated | ||
86 | */ | ||
87 | @Override | ||
88 | public void setName(String newName) | ||
89 | { | ||
90 | String oldName = name; | ||
91 | name = newName; | ||
92 | if (eNotificationRequired()) | ||
93 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.MODEL_SYMBOL__NAME, oldName, name)); | ||
94 | } | ||
95 | |||
96 | /** | ||
97 | * <!-- begin-user-doc --> | ||
98 | * <!-- end-user-doc --> | ||
99 | * @generated | ||
100 | */ | ||
101 | @Override | ||
102 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
103 | { | ||
104 | switch (featureID) | ||
105 | { | ||
106 | case SolverLanguagePackage.MODEL_SYMBOL__NAME: | ||
107 | return getName(); | ||
108 | } | ||
109 | return super.eGet(featureID, resolve, coreType); | ||
110 | } | ||
111 | |||
112 | /** | ||
113 | * <!-- begin-user-doc --> | ||
114 | * <!-- end-user-doc --> | ||
115 | * @generated | ||
116 | */ | ||
117 | @Override | ||
118 | public void eSet(int featureID, Object newValue) | ||
119 | { | ||
120 | switch (featureID) | ||
121 | { | ||
122 | case SolverLanguagePackage.MODEL_SYMBOL__NAME: | ||
123 | setName((String)newValue); | ||
124 | return; | ||
125 | } | ||
126 | super.eSet(featureID, newValue); | ||
127 | } | ||
128 | |||
129 | /** | ||
130 | * <!-- begin-user-doc --> | ||
131 | * <!-- end-user-doc --> | ||
132 | * @generated | ||
133 | */ | ||
134 | @Override | ||
135 | public void eUnset(int featureID) | ||
136 | { | ||
137 | switch (featureID) | ||
138 | { | ||
139 | case SolverLanguagePackage.MODEL_SYMBOL__NAME: | ||
140 | setName(NAME_EDEFAULT); | ||
141 | return; | ||
142 | } | ||
143 | super.eUnset(featureID); | ||
144 | } | ||
145 | |||
146 | /** | ||
147 | * <!-- begin-user-doc --> | ||
148 | * <!-- end-user-doc --> | ||
149 | * @generated | ||
150 | */ | ||
151 | @Override | ||
152 | public boolean eIsSet(int featureID) | ||
153 | { | ||
154 | switch (featureID) | ||
155 | { | ||
156 | case SolverLanguagePackage.MODEL_SYMBOL__NAME: | ||
157 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); | ||
158 | } | ||
159 | return super.eIsSet(featureID); | ||
160 | } | ||
161 | |||
162 | /** | ||
163 | * <!-- begin-user-doc --> | ||
164 | * <!-- end-user-doc --> | ||
165 | * @generated | ||
166 | */ | ||
167 | @Override | ||
168 | public String toString() | ||
169 | { | ||
170 | if (eIsProxy()) return super.toString(); | ||
171 | |||
172 | StringBuilder result = new StringBuilder(super.toString()); | ||
173 | result.append(" (name: "); | ||
174 | result.append(name); | ||
175 | result.append(')'); | ||
176 | return result.toString(); | ||
177 | } | ||
178 | |||
179 | } //ModelSymbolImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/MultiplicityDefinitionImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/MultiplicityDefinitionImpl.java new file mode 100644 index 00000000..a346568c --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/MultiplicityDefinitionImpl.java | |||
@@ -0,0 +1,296 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | |||
10 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
11 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
12 | |||
13 | import org.eclipse.viatra.solver.language.solverLanguage.MultiplicityDefinition; | ||
14 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
15 | |||
16 | /** | ||
17 | * <!-- begin-user-doc --> | ||
18 | * An implementation of the model object '<em><b>Multiplicity Definition</b></em>'. | ||
19 | * <!-- end-user-doc --> | ||
20 | * <p> | ||
21 | * The following features are implemented: | ||
22 | * </p> | ||
23 | * <ul> | ||
24 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.MultiplicityDefinitionImpl#getLower <em>Lower</em>}</li> | ||
25 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.MultiplicityDefinitionImpl#getUpper <em>Upper</em>}</li> | ||
26 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.MultiplicityDefinitionImpl#isUnlimitedUpper <em>Unlimited Upper</em>}</li> | ||
27 | * </ul> | ||
28 | * | ||
29 | * @generated | ||
30 | */ | ||
31 | public class MultiplicityDefinitionImpl extends MinimalEObjectImpl.Container implements MultiplicityDefinition | ||
32 | { | ||
33 | /** | ||
34 | * The default value of the '{@link #getLower() <em>Lower</em>}' attribute. | ||
35 | * <!-- begin-user-doc --> | ||
36 | * <!-- end-user-doc --> | ||
37 | * @see #getLower() | ||
38 | * @generated | ||
39 | * @ordered | ||
40 | */ | ||
41 | protected static final int LOWER_EDEFAULT = 0; | ||
42 | |||
43 | /** | ||
44 | * The cached value of the '{@link #getLower() <em>Lower</em>}' attribute. | ||
45 | * <!-- begin-user-doc --> | ||
46 | * <!-- end-user-doc --> | ||
47 | * @see #getLower() | ||
48 | * @generated | ||
49 | * @ordered | ||
50 | */ | ||
51 | protected int lower = LOWER_EDEFAULT; | ||
52 | |||
53 | /** | ||
54 | * The default value of the '{@link #getUpper() <em>Upper</em>}' attribute. | ||
55 | * <!-- begin-user-doc --> | ||
56 | * <!-- end-user-doc --> | ||
57 | * @see #getUpper() | ||
58 | * @generated | ||
59 | * @ordered | ||
60 | */ | ||
61 | protected static final int UPPER_EDEFAULT = 0; | ||
62 | |||
63 | /** | ||
64 | * The cached value of the '{@link #getUpper() <em>Upper</em>}' attribute. | ||
65 | * <!-- begin-user-doc --> | ||
66 | * <!-- end-user-doc --> | ||
67 | * @see #getUpper() | ||
68 | * @generated | ||
69 | * @ordered | ||
70 | */ | ||
71 | protected int upper = UPPER_EDEFAULT; | ||
72 | |||
73 | /** | ||
74 | * The default value of the '{@link #isUnlimitedUpper() <em>Unlimited Upper</em>}' attribute. | ||
75 | * <!-- begin-user-doc --> | ||
76 | * <!-- end-user-doc --> | ||
77 | * @see #isUnlimitedUpper() | ||
78 | * @generated | ||
79 | * @ordered | ||
80 | */ | ||
81 | protected static final boolean UNLIMITED_UPPER_EDEFAULT = false; | ||
82 | |||
83 | /** | ||
84 | * The cached value of the '{@link #isUnlimitedUpper() <em>Unlimited Upper</em>}' attribute. | ||
85 | * <!-- begin-user-doc --> | ||
86 | * <!-- end-user-doc --> | ||
87 | * @see #isUnlimitedUpper() | ||
88 | * @generated | ||
89 | * @ordered | ||
90 | */ | ||
91 | protected boolean unlimitedUpper = UNLIMITED_UPPER_EDEFAULT; | ||
92 | |||
93 | /** | ||
94 | * <!-- begin-user-doc --> | ||
95 | * <!-- end-user-doc --> | ||
96 | * @generated | ||
97 | */ | ||
98 | protected MultiplicityDefinitionImpl() | ||
99 | { | ||
100 | super(); | ||
101 | } | ||
102 | |||
103 | /** | ||
104 | * <!-- begin-user-doc --> | ||
105 | * <!-- end-user-doc --> | ||
106 | * @generated | ||
107 | */ | ||
108 | @Override | ||
109 | protected EClass eStaticClass() | ||
110 | { | ||
111 | return SolverLanguagePackage.Literals.MULTIPLICITY_DEFINITION; | ||
112 | } | ||
113 | |||
114 | /** | ||
115 | * <!-- begin-user-doc --> | ||
116 | * <!-- end-user-doc --> | ||
117 | * @generated | ||
118 | */ | ||
119 | @Override | ||
120 | public int getLower() | ||
121 | { | ||
122 | return lower; | ||
123 | } | ||
124 | |||
125 | /** | ||
126 | * <!-- begin-user-doc --> | ||
127 | * <!-- end-user-doc --> | ||
128 | * @generated | ||
129 | */ | ||
130 | @Override | ||
131 | public void setLower(int newLower) | ||
132 | { | ||
133 | int oldLower = lower; | ||
134 | lower = newLower; | ||
135 | if (eNotificationRequired()) | ||
136 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.MULTIPLICITY_DEFINITION__LOWER, oldLower, lower)); | ||
137 | } | ||
138 | |||
139 | /** | ||
140 | * <!-- begin-user-doc --> | ||
141 | * <!-- end-user-doc --> | ||
142 | * @generated | ||
143 | */ | ||
144 | @Override | ||
145 | public int getUpper() | ||
146 | { | ||
147 | return upper; | ||
148 | } | ||
149 | |||
150 | /** | ||
151 | * <!-- begin-user-doc --> | ||
152 | * <!-- end-user-doc --> | ||
153 | * @generated | ||
154 | */ | ||
155 | @Override | ||
156 | public void setUpper(int newUpper) | ||
157 | { | ||
158 | int oldUpper = upper; | ||
159 | upper = newUpper; | ||
160 | if (eNotificationRequired()) | ||
161 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.MULTIPLICITY_DEFINITION__UPPER, oldUpper, upper)); | ||
162 | } | ||
163 | |||
164 | /** | ||
165 | * <!-- begin-user-doc --> | ||
166 | * <!-- end-user-doc --> | ||
167 | * @generated | ||
168 | */ | ||
169 | @Override | ||
170 | public boolean isUnlimitedUpper() | ||
171 | { | ||
172 | return unlimitedUpper; | ||
173 | } | ||
174 | |||
175 | /** | ||
176 | * <!-- begin-user-doc --> | ||
177 | * <!-- end-user-doc --> | ||
178 | * @generated | ||
179 | */ | ||
180 | @Override | ||
181 | public void setUnlimitedUpper(boolean newUnlimitedUpper) | ||
182 | { | ||
183 | boolean oldUnlimitedUpper = unlimitedUpper; | ||
184 | unlimitedUpper = newUnlimitedUpper; | ||
185 | if (eNotificationRequired()) | ||
186 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.MULTIPLICITY_DEFINITION__UNLIMITED_UPPER, oldUnlimitedUpper, unlimitedUpper)); | ||
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 | { | ||
197 | switch (featureID) | ||
198 | { | ||
199 | case SolverLanguagePackage.MULTIPLICITY_DEFINITION__LOWER: | ||
200 | return getLower(); | ||
201 | case SolverLanguagePackage.MULTIPLICITY_DEFINITION__UPPER: | ||
202 | return getUpper(); | ||
203 | case SolverLanguagePackage.MULTIPLICITY_DEFINITION__UNLIMITED_UPPER: | ||
204 | return isUnlimitedUpper(); | ||
205 | } | ||
206 | return super.eGet(featureID, resolve, coreType); | ||
207 | } | ||
208 | |||
209 | /** | ||
210 | * <!-- begin-user-doc --> | ||
211 | * <!-- end-user-doc --> | ||
212 | * @generated | ||
213 | */ | ||
214 | @Override | ||
215 | public void eSet(int featureID, Object newValue) | ||
216 | { | ||
217 | switch (featureID) | ||
218 | { | ||
219 | case SolverLanguagePackage.MULTIPLICITY_DEFINITION__LOWER: | ||
220 | setLower((Integer)newValue); | ||
221 | return; | ||
222 | case SolverLanguagePackage.MULTIPLICITY_DEFINITION__UPPER: | ||
223 | setUpper((Integer)newValue); | ||
224 | return; | ||
225 | case SolverLanguagePackage.MULTIPLICITY_DEFINITION__UNLIMITED_UPPER: | ||
226 | setUnlimitedUpper((Boolean)newValue); | ||
227 | return; | ||
228 | } | ||
229 | super.eSet(featureID, newValue); | ||
230 | } | ||
231 | |||
232 | /** | ||
233 | * <!-- begin-user-doc --> | ||
234 | * <!-- end-user-doc --> | ||
235 | * @generated | ||
236 | */ | ||
237 | @Override | ||
238 | public void eUnset(int featureID) | ||
239 | { | ||
240 | switch (featureID) | ||
241 | { | ||
242 | case SolverLanguagePackage.MULTIPLICITY_DEFINITION__LOWER: | ||
243 | setLower(LOWER_EDEFAULT); | ||
244 | return; | ||
245 | case SolverLanguagePackage.MULTIPLICITY_DEFINITION__UPPER: | ||
246 | setUpper(UPPER_EDEFAULT); | ||
247 | return; | ||
248 | case SolverLanguagePackage.MULTIPLICITY_DEFINITION__UNLIMITED_UPPER: | ||
249 | setUnlimitedUpper(UNLIMITED_UPPER_EDEFAULT); | ||
250 | return; | ||
251 | } | ||
252 | super.eUnset(featureID); | ||
253 | } | ||
254 | |||
255 | /** | ||
256 | * <!-- begin-user-doc --> | ||
257 | * <!-- end-user-doc --> | ||
258 | * @generated | ||
259 | */ | ||
260 | @Override | ||
261 | public boolean eIsSet(int featureID) | ||
262 | { | ||
263 | switch (featureID) | ||
264 | { | ||
265 | case SolverLanguagePackage.MULTIPLICITY_DEFINITION__LOWER: | ||
266 | return lower != LOWER_EDEFAULT; | ||
267 | case SolverLanguagePackage.MULTIPLICITY_DEFINITION__UPPER: | ||
268 | return upper != UPPER_EDEFAULT; | ||
269 | case SolverLanguagePackage.MULTIPLICITY_DEFINITION__UNLIMITED_UPPER: | ||
270 | return unlimitedUpper != UNLIMITED_UPPER_EDEFAULT; | ||
271 | } | ||
272 | return super.eIsSet(featureID); | ||
273 | } | ||
274 | |||
275 | /** | ||
276 | * <!-- begin-user-doc --> | ||
277 | * <!-- end-user-doc --> | ||
278 | * @generated | ||
279 | */ | ||
280 | @Override | ||
281 | public String toString() | ||
282 | { | ||
283 | if (eIsProxy()) return super.toString(); | ||
284 | |||
285 | StringBuilder result = new StringBuilder(super.toString()); | ||
286 | result.append(" (lower: "); | ||
287 | result.append(lower); | ||
288 | result.append(", upper: "); | ||
289 | result.append(upper); | ||
290 | result.append(", unlimitedUpper: "); | ||
291 | result.append(unlimitedUpper); | ||
292 | result.append(')'); | ||
293 | return result.toString(); | ||
294 | } | ||
295 | |||
296 | } //MultiplicityDefinitionImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/NamedObjectImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/NamedObjectImpl.java new file mode 100644 index 00000000..9d907661 --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/NamedObjectImpl.java | |||
@@ -0,0 +1,179 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | |||
10 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
11 | |||
12 | import org.eclipse.viatra.solver.language.solverLanguage.NamedObject; | ||
13 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
14 | |||
15 | /** | ||
16 | * <!-- begin-user-doc --> | ||
17 | * An implementation of the model object '<em><b>Named Object</b></em>'. | ||
18 | * <!-- end-user-doc --> | ||
19 | * <p> | ||
20 | * The following features are implemented: | ||
21 | * </p> | ||
22 | * <ul> | ||
23 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.NamedObjectImpl#getName <em>Name</em>}</li> | ||
24 | * </ul> | ||
25 | * | ||
26 | * @generated | ||
27 | */ | ||
28 | public class NamedObjectImpl extends ObjectImpl implements NamedObject | ||
29 | { | ||
30 | /** | ||
31 | * The default value of the '{@link #getName() <em>Name</em>}' attribute. | ||
32 | * <!-- begin-user-doc --> | ||
33 | * <!-- end-user-doc --> | ||
34 | * @see #getName() | ||
35 | * @generated | ||
36 | * @ordered | ||
37 | */ | ||
38 | protected static final String NAME_EDEFAULT = null; | ||
39 | |||
40 | /** | ||
41 | * The cached value of the '{@link #getName() <em>Name</em>}' attribute. | ||
42 | * <!-- begin-user-doc --> | ||
43 | * <!-- end-user-doc --> | ||
44 | * @see #getName() | ||
45 | * @generated | ||
46 | * @ordered | ||
47 | */ | ||
48 | protected String name = NAME_EDEFAULT; | ||
49 | |||
50 | /** | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @generated | ||
54 | */ | ||
55 | protected NamedObjectImpl() | ||
56 | { | ||
57 | super(); | ||
58 | } | ||
59 | |||
60 | /** | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @generated | ||
64 | */ | ||
65 | @Override | ||
66 | protected EClass eStaticClass() | ||
67 | { | ||
68 | return SolverLanguagePackage.Literals.NAMED_OBJECT; | ||
69 | } | ||
70 | |||
71 | /** | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @generated | ||
75 | */ | ||
76 | @Override | ||
77 | public String getName() | ||
78 | { | ||
79 | return name; | ||
80 | } | ||
81 | |||
82 | /** | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @generated | ||
86 | */ | ||
87 | @Override | ||
88 | public void setName(String newName) | ||
89 | { | ||
90 | String oldName = name; | ||
91 | name = newName; | ||
92 | if (eNotificationRequired()) | ||
93 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.NAMED_OBJECT__NAME, oldName, name)); | ||
94 | } | ||
95 | |||
96 | /** | ||
97 | * <!-- begin-user-doc --> | ||
98 | * <!-- end-user-doc --> | ||
99 | * @generated | ||
100 | */ | ||
101 | @Override | ||
102 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
103 | { | ||
104 | switch (featureID) | ||
105 | { | ||
106 | case SolverLanguagePackage.NAMED_OBJECT__NAME: | ||
107 | return getName(); | ||
108 | } | ||
109 | return super.eGet(featureID, resolve, coreType); | ||
110 | } | ||
111 | |||
112 | /** | ||
113 | * <!-- begin-user-doc --> | ||
114 | * <!-- end-user-doc --> | ||
115 | * @generated | ||
116 | */ | ||
117 | @Override | ||
118 | public void eSet(int featureID, Object newValue) | ||
119 | { | ||
120 | switch (featureID) | ||
121 | { | ||
122 | case SolverLanguagePackage.NAMED_OBJECT__NAME: | ||
123 | setName((String)newValue); | ||
124 | return; | ||
125 | } | ||
126 | super.eSet(featureID, newValue); | ||
127 | } | ||
128 | |||
129 | /** | ||
130 | * <!-- begin-user-doc --> | ||
131 | * <!-- end-user-doc --> | ||
132 | * @generated | ||
133 | */ | ||
134 | @Override | ||
135 | public void eUnset(int featureID) | ||
136 | { | ||
137 | switch (featureID) | ||
138 | { | ||
139 | case SolverLanguagePackage.NAMED_OBJECT__NAME: | ||
140 | setName(NAME_EDEFAULT); | ||
141 | return; | ||
142 | } | ||
143 | super.eUnset(featureID); | ||
144 | } | ||
145 | |||
146 | /** | ||
147 | * <!-- begin-user-doc --> | ||
148 | * <!-- end-user-doc --> | ||
149 | * @generated | ||
150 | */ | ||
151 | @Override | ||
152 | public boolean eIsSet(int featureID) | ||
153 | { | ||
154 | switch (featureID) | ||
155 | { | ||
156 | case SolverLanguagePackage.NAMED_OBJECT__NAME: | ||
157 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); | ||
158 | } | ||
159 | return super.eIsSet(featureID); | ||
160 | } | ||
161 | |||
162 | /** | ||
163 | * <!-- begin-user-doc --> | ||
164 | * <!-- end-user-doc --> | ||
165 | * @generated | ||
166 | */ | ||
167 | @Override | ||
168 | public String toString() | ||
169 | { | ||
170 | if (eIsProxy()) return super.toString(); | ||
171 | |||
172 | StringBuilder result = new StringBuilder(super.toString()); | ||
173 | result.append(" (name: "); | ||
174 | result.append(name); | ||
175 | result.append(')'); | ||
176 | return result.toString(); | ||
177 | } | ||
178 | |||
179 | } //NamedObjectImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/NegativeImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/NegativeImpl.java new file mode 100644 index 00000000..a30b228f --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/NegativeImpl.java | |||
@@ -0,0 +1,41 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | |||
8 | import org.eclipse.viatra.solver.language.solverLanguage.Negative; | ||
9 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * An implementation of the model object '<em><b>Negative</b></em>'. | ||
14 | * <!-- end-user-doc --> | ||
15 | * | ||
16 | * @generated | ||
17 | */ | ||
18 | public class NegativeImpl extends PolarityImpl implements Negative | ||
19 | { | ||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * <!-- end-user-doc --> | ||
23 | * @generated | ||
24 | */ | ||
25 | protected NegativeImpl() | ||
26 | { | ||
27 | super(); | ||
28 | } | ||
29 | |||
30 | /** | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @generated | ||
34 | */ | ||
35 | @Override | ||
36 | protected EClass eStaticClass() | ||
37 | { | ||
38 | return SolverLanguagePackage.Literals.NEGATIVE; | ||
39 | } | ||
40 | |||
41 | } //NegativeImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ObjectImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ObjectImpl.java new file mode 100644 index 00000000..d2f9b8d9 --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ObjectImpl.java | |||
@@ -0,0 +1,40 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | |||
8 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
9 | |||
10 | /** | ||
11 | * <!-- begin-user-doc --> | ||
12 | * An implementation of the model object '<em><b>Object</b></em>'. | ||
13 | * <!-- end-user-doc --> | ||
14 | * | ||
15 | * @generated | ||
16 | */ | ||
17 | public class ObjectImpl extends ComplexObjectImpl implements org.eclipse.viatra.solver.language.solverLanguage.Object | ||
18 | { | ||
19 | /** | ||
20 | * <!-- begin-user-doc --> | ||
21 | * <!-- end-user-doc --> | ||
22 | * @generated | ||
23 | */ | ||
24 | protected ObjectImpl() | ||
25 | { | ||
26 | super(); | ||
27 | } | ||
28 | |||
29 | /** | ||
30 | * <!-- begin-user-doc --> | ||
31 | * <!-- end-user-doc --> | ||
32 | * @generated | ||
33 | */ | ||
34 | @Override | ||
35 | protected EClass eStaticClass() | ||
36 | { | ||
37 | return SolverLanguagePackage.Literals.OBJECT; | ||
38 | } | ||
39 | |||
40 | } //ObjectImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ParameterImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ParameterImpl.java new file mode 100644 index 00000000..6281c4bc --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ParameterImpl.java | |||
@@ -0,0 +1,271 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | import org.eclipse.emf.common.notify.NotificationChain; | ||
8 | |||
9 | import org.eclipse.emf.ecore.EClass; | ||
10 | import org.eclipse.emf.ecore.InternalEObject; | ||
11 | |||
12 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
13 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
14 | |||
15 | import org.eclipse.viatra.solver.language.solverLanguage.Parameter; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
17 | import org.eclipse.viatra.solver.language.solverLanguage.Symbol; | ||
18 | import org.eclipse.viatra.solver.language.solverLanguage.Variable; | ||
19 | |||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * An implementation of the model object '<em><b>Parameter</b></em>'. | ||
23 | * <!-- end-user-doc --> | ||
24 | * <p> | ||
25 | * The following features are implemented: | ||
26 | * </p> | ||
27 | * <ul> | ||
28 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ParameterImpl#getVariable <em>Variable</em>}</li> | ||
29 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ParameterImpl#getType <em>Type</em>}</li> | ||
30 | * </ul> | ||
31 | * | ||
32 | * @generated | ||
33 | */ | ||
34 | public class ParameterImpl extends MinimalEObjectImpl.Container implements Parameter | ||
35 | { | ||
36 | /** | ||
37 | * The cached value of the '{@link #getVariable() <em>Variable</em>}' containment reference. | ||
38 | * <!-- begin-user-doc --> | ||
39 | * <!-- end-user-doc --> | ||
40 | * @see #getVariable() | ||
41 | * @generated | ||
42 | * @ordered | ||
43 | */ | ||
44 | protected Variable variable; | ||
45 | |||
46 | /** | ||
47 | * The cached value of the '{@link #getType() <em>Type</em>}' containment reference. | ||
48 | * <!-- begin-user-doc --> | ||
49 | * <!-- end-user-doc --> | ||
50 | * @see #getType() | ||
51 | * @generated | ||
52 | * @ordered | ||
53 | */ | ||
54 | protected Symbol type; | ||
55 | |||
56 | /** | ||
57 | * <!-- begin-user-doc --> | ||
58 | * <!-- end-user-doc --> | ||
59 | * @generated | ||
60 | */ | ||
61 | protected ParameterImpl() | ||
62 | { | ||
63 | super(); | ||
64 | } | ||
65 | |||
66 | /** | ||
67 | * <!-- begin-user-doc --> | ||
68 | * <!-- end-user-doc --> | ||
69 | * @generated | ||
70 | */ | ||
71 | @Override | ||
72 | protected EClass eStaticClass() | ||
73 | { | ||
74 | return SolverLanguagePackage.Literals.PARAMETER; | ||
75 | } | ||
76 | |||
77 | /** | ||
78 | * <!-- begin-user-doc --> | ||
79 | * <!-- end-user-doc --> | ||
80 | * @generated | ||
81 | */ | ||
82 | @Override | ||
83 | public Variable getVariable() | ||
84 | { | ||
85 | return variable; | ||
86 | } | ||
87 | |||
88 | /** | ||
89 | * <!-- begin-user-doc --> | ||
90 | * <!-- end-user-doc --> | ||
91 | * @generated | ||
92 | */ | ||
93 | public NotificationChain basicSetVariable(Variable newVariable, NotificationChain msgs) | ||
94 | { | ||
95 | Variable oldVariable = variable; | ||
96 | variable = newVariable; | ||
97 | if (eNotificationRequired()) | ||
98 | { | ||
99 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.PARAMETER__VARIABLE, oldVariable, newVariable); | ||
100 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
101 | } | ||
102 | return msgs; | ||
103 | } | ||
104 | |||
105 | /** | ||
106 | * <!-- begin-user-doc --> | ||
107 | * <!-- end-user-doc --> | ||
108 | * @generated | ||
109 | */ | ||
110 | @Override | ||
111 | public void setVariable(Variable newVariable) | ||
112 | { | ||
113 | if (newVariable != variable) | ||
114 | { | ||
115 | NotificationChain msgs = null; | ||
116 | if (variable != null) | ||
117 | msgs = ((InternalEObject)variable).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.PARAMETER__VARIABLE, null, msgs); | ||
118 | if (newVariable != null) | ||
119 | msgs = ((InternalEObject)newVariable).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.PARAMETER__VARIABLE, null, msgs); | ||
120 | msgs = basicSetVariable(newVariable, msgs); | ||
121 | if (msgs != null) msgs.dispatch(); | ||
122 | } | ||
123 | else if (eNotificationRequired()) | ||
124 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.PARAMETER__VARIABLE, newVariable, newVariable)); | ||
125 | } | ||
126 | |||
127 | /** | ||
128 | * <!-- begin-user-doc --> | ||
129 | * <!-- end-user-doc --> | ||
130 | * @generated | ||
131 | */ | ||
132 | @Override | ||
133 | public Symbol getType() | ||
134 | { | ||
135 | return type; | ||
136 | } | ||
137 | |||
138 | /** | ||
139 | * <!-- begin-user-doc --> | ||
140 | * <!-- end-user-doc --> | ||
141 | * @generated | ||
142 | */ | ||
143 | public NotificationChain basicSetType(Symbol newType, NotificationChain msgs) | ||
144 | { | ||
145 | Symbol oldType = type; | ||
146 | type = newType; | ||
147 | if (eNotificationRequired()) | ||
148 | { | ||
149 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.PARAMETER__TYPE, oldType, newType); | ||
150 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
151 | } | ||
152 | return msgs; | ||
153 | } | ||
154 | |||
155 | /** | ||
156 | * <!-- begin-user-doc --> | ||
157 | * <!-- end-user-doc --> | ||
158 | * @generated | ||
159 | */ | ||
160 | @Override | ||
161 | public void setType(Symbol newType) | ||
162 | { | ||
163 | if (newType != type) | ||
164 | { | ||
165 | NotificationChain msgs = null; | ||
166 | if (type != null) | ||
167 | msgs = ((InternalEObject)type).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.PARAMETER__TYPE, null, msgs); | ||
168 | if (newType != null) | ||
169 | msgs = ((InternalEObject)newType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.PARAMETER__TYPE, null, msgs); | ||
170 | msgs = basicSetType(newType, msgs); | ||
171 | if (msgs != null) msgs.dispatch(); | ||
172 | } | ||
173 | else if (eNotificationRequired()) | ||
174 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.PARAMETER__TYPE, newType, newType)); | ||
175 | } | ||
176 | |||
177 | /** | ||
178 | * <!-- begin-user-doc --> | ||
179 | * <!-- end-user-doc --> | ||
180 | * @generated | ||
181 | */ | ||
182 | @Override | ||
183 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
184 | { | ||
185 | switch (featureID) | ||
186 | { | ||
187 | case SolverLanguagePackage.PARAMETER__VARIABLE: | ||
188 | return basicSetVariable(null, msgs); | ||
189 | case SolverLanguagePackage.PARAMETER__TYPE: | ||
190 | return basicSetType(null, msgs); | ||
191 | } | ||
192 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
193 | } | ||
194 | |||
195 | /** | ||
196 | * <!-- begin-user-doc --> | ||
197 | * <!-- end-user-doc --> | ||
198 | * @generated | ||
199 | */ | ||
200 | @Override | ||
201 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
202 | { | ||
203 | switch (featureID) | ||
204 | { | ||
205 | case SolverLanguagePackage.PARAMETER__VARIABLE: | ||
206 | return getVariable(); | ||
207 | case SolverLanguagePackage.PARAMETER__TYPE: | ||
208 | return getType(); | ||
209 | } | ||
210 | return super.eGet(featureID, resolve, coreType); | ||
211 | } | ||
212 | |||
213 | /** | ||
214 | * <!-- begin-user-doc --> | ||
215 | * <!-- end-user-doc --> | ||
216 | * @generated | ||
217 | */ | ||
218 | @Override | ||
219 | public void eSet(int featureID, Object newValue) | ||
220 | { | ||
221 | switch (featureID) | ||
222 | { | ||
223 | case SolverLanguagePackage.PARAMETER__VARIABLE: | ||
224 | setVariable((Variable)newValue); | ||
225 | return; | ||
226 | case SolverLanguagePackage.PARAMETER__TYPE: | ||
227 | setType((Symbol)newValue); | ||
228 | return; | ||
229 | } | ||
230 | super.eSet(featureID, newValue); | ||
231 | } | ||
232 | |||
233 | /** | ||
234 | * <!-- begin-user-doc --> | ||
235 | * <!-- end-user-doc --> | ||
236 | * @generated | ||
237 | */ | ||
238 | @Override | ||
239 | public void eUnset(int featureID) | ||
240 | { | ||
241 | switch (featureID) | ||
242 | { | ||
243 | case SolverLanguagePackage.PARAMETER__VARIABLE: | ||
244 | setVariable((Variable)null); | ||
245 | return; | ||
246 | case SolverLanguagePackage.PARAMETER__TYPE: | ||
247 | setType((Symbol)null); | ||
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 | { | ||
261 | switch (featureID) | ||
262 | { | ||
263 | case SolverLanguagePackage.PARAMETER__VARIABLE: | ||
264 | return variable != null; | ||
265 | case SolverLanguagePackage.PARAMETER__TYPE: | ||
266 | return type != null; | ||
267 | } | ||
268 | return super.eIsSet(featureID); | ||
269 | } | ||
270 | |||
271 | } //ParameterImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/PartialitySymbolImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/PartialitySymbolImpl.java new file mode 100644 index 00000000..efc2c5f5 --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/PartialitySymbolImpl.java | |||
@@ -0,0 +1,41 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | |||
8 | import org.eclipse.viatra.solver.language.solverLanguage.PartialitySymbol; | ||
9 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * An implementation of the model object '<em><b>Partiality Symbol</b></em>'. | ||
14 | * <!-- end-user-doc --> | ||
15 | * | ||
16 | * @generated | ||
17 | */ | ||
18 | public class PartialitySymbolImpl extends SymbolImpl implements PartialitySymbol | ||
19 | { | ||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * <!-- end-user-doc --> | ||
23 | * @generated | ||
24 | */ | ||
25 | protected PartialitySymbolImpl() | ||
26 | { | ||
27 | super(); | ||
28 | } | ||
29 | |||
30 | /** | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @generated | ||
34 | */ | ||
35 | @Override | ||
36 | protected EClass eStaticClass() | ||
37 | { | ||
38 | return SolverLanguagePackage.Literals.PARTIALITY_SYMBOL; | ||
39 | } | ||
40 | |||
41 | } //PartialitySymbolImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/PatternBodyImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/PatternBodyImpl.java new file mode 100644 index 00000000..5cd03fbf --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/PatternBodyImpl.java | |||
@@ -0,0 +1,169 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import java.util.Collection; | ||
7 | |||
8 | import org.eclipse.emf.common.notify.NotificationChain; | ||
9 | |||
10 | import org.eclipse.emf.common.util.EList; | ||
11 | |||
12 | import org.eclipse.emf.ecore.EClass; | ||
13 | import org.eclipse.emf.ecore.InternalEObject; | ||
14 | |||
15 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
16 | |||
17 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
18 | import org.eclipse.emf.ecore.util.InternalEList; | ||
19 | |||
20 | import org.eclipse.viatra.solver.language.solverLanguage.Constraint; | ||
21 | import org.eclipse.viatra.solver.language.solverLanguage.PatternBody; | ||
22 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
23 | |||
24 | /** | ||
25 | * <!-- begin-user-doc --> | ||
26 | * An implementation of the model object '<em><b>Pattern Body</b></em>'. | ||
27 | * <!-- end-user-doc --> | ||
28 | * <p> | ||
29 | * The following features are implemented: | ||
30 | * </p> | ||
31 | * <ul> | ||
32 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.PatternBodyImpl#getConstraints <em>Constraints</em>}</li> | ||
33 | * </ul> | ||
34 | * | ||
35 | * @generated | ||
36 | */ | ||
37 | public class PatternBodyImpl extends MinimalEObjectImpl.Container implements PatternBody | ||
38 | { | ||
39 | /** | ||
40 | * The cached value of the '{@link #getConstraints() <em>Constraints</em>}' containment reference list. | ||
41 | * <!-- begin-user-doc --> | ||
42 | * <!-- end-user-doc --> | ||
43 | * @see #getConstraints() | ||
44 | * @generated | ||
45 | * @ordered | ||
46 | */ | ||
47 | protected EList<Constraint> constraints; | ||
48 | |||
49 | /** | ||
50 | * <!-- begin-user-doc --> | ||
51 | * <!-- end-user-doc --> | ||
52 | * @generated | ||
53 | */ | ||
54 | protected PatternBodyImpl() | ||
55 | { | ||
56 | super(); | ||
57 | } | ||
58 | |||
59 | /** | ||
60 | * <!-- begin-user-doc --> | ||
61 | * <!-- end-user-doc --> | ||
62 | * @generated | ||
63 | */ | ||
64 | @Override | ||
65 | protected EClass eStaticClass() | ||
66 | { | ||
67 | return SolverLanguagePackage.Literals.PATTERN_BODY; | ||
68 | } | ||
69 | |||
70 | /** | ||
71 | * <!-- begin-user-doc --> | ||
72 | * <!-- end-user-doc --> | ||
73 | * @generated | ||
74 | */ | ||
75 | @Override | ||
76 | public EList<Constraint> getConstraints() | ||
77 | { | ||
78 | if (constraints == null) | ||
79 | { | ||
80 | constraints = new EObjectContainmentEList<Constraint>(Constraint.class, this, SolverLanguagePackage.PATTERN_BODY__CONSTRAINTS); | ||
81 | } | ||
82 | return constraints; | ||
83 | } | ||
84 | |||
85 | /** | ||
86 | * <!-- begin-user-doc --> | ||
87 | * <!-- end-user-doc --> | ||
88 | * @generated | ||
89 | */ | ||
90 | @Override | ||
91 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
92 | { | ||
93 | switch (featureID) | ||
94 | { | ||
95 | case SolverLanguagePackage.PATTERN_BODY__CONSTRAINTS: | ||
96 | return ((InternalEList<?>)getConstraints()).basicRemove(otherEnd, msgs); | ||
97 | } | ||
98 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
99 | } | ||
100 | |||
101 | /** | ||
102 | * <!-- begin-user-doc --> | ||
103 | * <!-- end-user-doc --> | ||
104 | * @generated | ||
105 | */ | ||
106 | @Override | ||
107 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
108 | { | ||
109 | switch (featureID) | ||
110 | { | ||
111 | case SolverLanguagePackage.PATTERN_BODY__CONSTRAINTS: | ||
112 | return getConstraints(); | ||
113 | } | ||
114 | return super.eGet(featureID, resolve, coreType); | ||
115 | } | ||
116 | |||
117 | /** | ||
118 | * <!-- begin-user-doc --> | ||
119 | * <!-- end-user-doc --> | ||
120 | * @generated | ||
121 | */ | ||
122 | @SuppressWarnings("unchecked") | ||
123 | @Override | ||
124 | public void eSet(int featureID, Object newValue) | ||
125 | { | ||
126 | switch (featureID) | ||
127 | { | ||
128 | case SolverLanguagePackage.PATTERN_BODY__CONSTRAINTS: | ||
129 | getConstraints().clear(); | ||
130 | getConstraints().addAll((Collection<? extends Constraint>)newValue); | ||
131 | return; | ||
132 | } | ||
133 | super.eSet(featureID, newValue); | ||
134 | } | ||
135 | |||
136 | /** | ||
137 | * <!-- begin-user-doc --> | ||
138 | * <!-- end-user-doc --> | ||
139 | * @generated | ||
140 | */ | ||
141 | @Override | ||
142 | public void eUnset(int featureID) | ||
143 | { | ||
144 | switch (featureID) | ||
145 | { | ||
146 | case SolverLanguagePackage.PATTERN_BODY__CONSTRAINTS: | ||
147 | getConstraints().clear(); | ||
148 | return; | ||
149 | } | ||
150 | super.eUnset(featureID); | ||
151 | } | ||
152 | |||
153 | /** | ||
154 | * <!-- begin-user-doc --> | ||
155 | * <!-- end-user-doc --> | ||
156 | * @generated | ||
157 | */ | ||
158 | @Override | ||
159 | public boolean eIsSet(int featureID) | ||
160 | { | ||
161 | switch (featureID) | ||
162 | { | ||
163 | case SolverLanguagePackage.PATTERN_BODY__CONSTRAINTS: | ||
164 | return constraints != null && !constraints.isEmpty(); | ||
165 | } | ||
166 | return super.eIsSet(featureID); | ||
167 | } | ||
168 | |||
169 | } //PatternBodyImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/PolarityImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/PolarityImpl.java new file mode 100644 index 00000000..7c2ae07d --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/PolarityImpl.java | |||
@@ -0,0 +1,43 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | |||
8 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
9 | |||
10 | import org.eclipse.viatra.solver.language.solverLanguage.Polarity; | ||
11 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
12 | |||
13 | /** | ||
14 | * <!-- begin-user-doc --> | ||
15 | * An implementation of the model object '<em><b>Polarity</b></em>'. | ||
16 | * <!-- end-user-doc --> | ||
17 | * | ||
18 | * @generated | ||
19 | */ | ||
20 | public class PolarityImpl extends MinimalEObjectImpl.Container implements Polarity | ||
21 | { | ||
22 | /** | ||
23 | * <!-- begin-user-doc --> | ||
24 | * <!-- end-user-doc --> | ||
25 | * @generated | ||
26 | */ | ||
27 | protected PolarityImpl() | ||
28 | { | ||
29 | super(); | ||
30 | } | ||
31 | |||
32 | /** | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @generated | ||
36 | */ | ||
37 | @Override | ||
38 | protected EClass eStaticClass() | ||
39 | { | ||
40 | return SolverLanguagePackage.Literals.POLARITY; | ||
41 | } | ||
42 | |||
43 | } //PolarityImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/PositiveImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/PositiveImpl.java new file mode 100644 index 00000000..130cfe7a --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/PositiveImpl.java | |||
@@ -0,0 +1,41 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | |||
8 | import org.eclipse.viatra.solver.language.solverLanguage.Positive; | ||
9 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * An implementation of the model object '<em><b>Positive</b></em>'. | ||
14 | * <!-- end-user-doc --> | ||
15 | * | ||
16 | * @generated | ||
17 | */ | ||
18 | public class PositiveImpl extends PolarityImpl implements Positive | ||
19 | { | ||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * <!-- end-user-doc --> | ||
23 | * @generated | ||
24 | */ | ||
25 | protected PositiveImpl() | ||
26 | { | ||
27 | super(); | ||
28 | } | ||
29 | |||
30 | /** | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @generated | ||
34 | */ | ||
35 | @Override | ||
36 | protected EClass eStaticClass() | ||
37 | { | ||
38 | return SolverLanguagePackage.Literals.POSITIVE; | ||
39 | } | ||
40 | |||
41 | } //PositiveImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/PredicateImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/PredicateImpl.java new file mode 100644 index 00000000..947d74bb --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/PredicateImpl.java | |||
@@ -0,0 +1,207 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import java.util.Collection; | ||
7 | |||
8 | import org.eclipse.emf.common.notify.NotificationChain; | ||
9 | |||
10 | import org.eclipse.emf.common.util.EList; | ||
11 | |||
12 | import org.eclipse.emf.ecore.EClass; | ||
13 | import org.eclipse.emf.ecore.InternalEObject; | ||
14 | |||
15 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
16 | import org.eclipse.emf.ecore.util.InternalEList; | ||
17 | |||
18 | import org.eclipse.viatra.solver.language.solverLanguage.Parameter; | ||
19 | import org.eclipse.viatra.solver.language.solverLanguage.PatternBody; | ||
20 | import org.eclipse.viatra.solver.language.solverLanguage.Predicate; | ||
21 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
22 | |||
23 | /** | ||
24 | * <!-- begin-user-doc --> | ||
25 | * An implementation of the model object '<em><b>Predicate</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.solverLanguage.impl.PredicateImpl#getParameters <em>Parameters</em>}</li> | ||
32 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.PredicateImpl#getBodies <em>Bodies</em>}</li> | ||
33 | * </ul> | ||
34 | * | ||
35 | * @generated | ||
36 | */ | ||
37 | public class PredicateImpl extends StatementImpl implements Predicate | ||
38 | { | ||
39 | /** | ||
40 | * The cached value of the '{@link #getParameters() <em>Parameters</em>}' containment reference list. | ||
41 | * <!-- begin-user-doc --> | ||
42 | * <!-- end-user-doc --> | ||
43 | * @see #getParameters() | ||
44 | * @generated | ||
45 | * @ordered | ||
46 | */ | ||
47 | protected EList<Parameter> parameters; | ||
48 | |||
49 | /** | ||
50 | * The cached value of the '{@link #getBodies() <em>Bodies</em>}' containment reference list. | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @see #getBodies() | ||
54 | * @generated | ||
55 | * @ordered | ||
56 | */ | ||
57 | protected EList<PatternBody> bodies; | ||
58 | |||
59 | /** | ||
60 | * <!-- begin-user-doc --> | ||
61 | * <!-- end-user-doc --> | ||
62 | * @generated | ||
63 | */ | ||
64 | protected PredicateImpl() | ||
65 | { | ||
66 | super(); | ||
67 | } | ||
68 | |||
69 | /** | ||
70 | * <!-- begin-user-doc --> | ||
71 | * <!-- end-user-doc --> | ||
72 | * @generated | ||
73 | */ | ||
74 | @Override | ||
75 | protected EClass eStaticClass() | ||
76 | { | ||
77 | return SolverLanguagePackage.Literals.PREDICATE; | ||
78 | } | ||
79 | |||
80 | /** | ||
81 | * <!-- begin-user-doc --> | ||
82 | * <!-- end-user-doc --> | ||
83 | * @generated | ||
84 | */ | ||
85 | @Override | ||
86 | public EList<Parameter> getParameters() | ||
87 | { | ||
88 | if (parameters == null) | ||
89 | { | ||
90 | parameters = new EObjectContainmentEList<Parameter>(Parameter.class, this, SolverLanguagePackage.PREDICATE__PARAMETERS); | ||
91 | } | ||
92 | return parameters; | ||
93 | } | ||
94 | |||
95 | /** | ||
96 | * <!-- begin-user-doc --> | ||
97 | * <!-- end-user-doc --> | ||
98 | * @generated | ||
99 | */ | ||
100 | @Override | ||
101 | public EList<PatternBody> getBodies() | ||
102 | { | ||
103 | if (bodies == null) | ||
104 | { | ||
105 | bodies = new EObjectContainmentEList<PatternBody>(PatternBody.class, this, SolverLanguagePackage.PREDICATE__BODIES); | ||
106 | } | ||
107 | return bodies; | ||
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 | { | ||
118 | switch (featureID) | ||
119 | { | ||
120 | case SolverLanguagePackage.PREDICATE__PARAMETERS: | ||
121 | return ((InternalEList<?>)getParameters()).basicRemove(otherEnd, msgs); | ||
122 | case SolverLanguagePackage.PREDICATE__BODIES: | ||
123 | return ((InternalEList<?>)getBodies()).basicRemove(otherEnd, msgs); | ||
124 | } | ||
125 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
126 | } | ||
127 | |||
128 | /** | ||
129 | * <!-- begin-user-doc --> | ||
130 | * <!-- end-user-doc --> | ||
131 | * @generated | ||
132 | */ | ||
133 | @Override | ||
134 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
135 | { | ||
136 | switch (featureID) | ||
137 | { | ||
138 | case SolverLanguagePackage.PREDICATE__PARAMETERS: | ||
139 | return getParameters(); | ||
140 | case SolverLanguagePackage.PREDICATE__BODIES: | ||
141 | return getBodies(); | ||
142 | } | ||
143 | return super.eGet(featureID, resolve, coreType); | ||
144 | } | ||
145 | |||
146 | /** | ||
147 | * <!-- begin-user-doc --> | ||
148 | * <!-- end-user-doc --> | ||
149 | * @generated | ||
150 | */ | ||
151 | @SuppressWarnings("unchecked") | ||
152 | @Override | ||
153 | public void eSet(int featureID, Object newValue) | ||
154 | { | ||
155 | switch (featureID) | ||
156 | { | ||
157 | case SolverLanguagePackage.PREDICATE__PARAMETERS: | ||
158 | getParameters().clear(); | ||
159 | getParameters().addAll((Collection<? extends Parameter>)newValue); | ||
160 | return; | ||
161 | case SolverLanguagePackage.PREDICATE__BODIES: | ||
162 | getBodies().clear(); | ||
163 | getBodies().addAll((Collection<? extends PatternBody>)newValue); | ||
164 | return; | ||
165 | } | ||
166 | super.eSet(featureID, newValue); | ||
167 | } | ||
168 | |||
169 | /** | ||
170 | * <!-- begin-user-doc --> | ||
171 | * <!-- end-user-doc --> | ||
172 | * @generated | ||
173 | */ | ||
174 | @Override | ||
175 | public void eUnset(int featureID) | ||
176 | { | ||
177 | switch (featureID) | ||
178 | { | ||
179 | case SolverLanguagePackage.PREDICATE__PARAMETERS: | ||
180 | getParameters().clear(); | ||
181 | return; | ||
182 | case SolverLanguagePackage.PREDICATE__BODIES: | ||
183 | getBodies().clear(); | ||
184 | return; | ||
185 | } | ||
186 | super.eUnset(featureID); | ||
187 | } | ||
188 | |||
189 | /** | ||
190 | * <!-- begin-user-doc --> | ||
191 | * <!-- end-user-doc --> | ||
192 | * @generated | ||
193 | */ | ||
194 | @Override | ||
195 | public boolean eIsSet(int featureID) | ||
196 | { | ||
197 | switch (featureID) | ||
198 | { | ||
199 | case SolverLanguagePackage.PREDICATE__PARAMETERS: | ||
200 | return parameters != null && !parameters.isEmpty(); | ||
201 | case SolverLanguagePackage.PREDICATE__BODIES: | ||
202 | return bodies != null && !bodies.isEmpty(); | ||
203 | } | ||
204 | return super.eIsSet(featureID); | ||
205 | } | ||
206 | |||
207 | } //PredicateImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/PredicateSymbolImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/PredicateSymbolImpl.java new file mode 100644 index 00000000..f49c6701 --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/PredicateSymbolImpl.java | |||
@@ -0,0 +1,196 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | import org.eclipse.emf.common.notify.NotificationChain; | ||
8 | |||
9 | import org.eclipse.emf.ecore.EClass; | ||
10 | import org.eclipse.emf.ecore.InternalEObject; | ||
11 | |||
12 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
13 | |||
14 | import org.eclipse.viatra.solver.language.solverLanguage.ModelSymbol; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.PredicateSymbol; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
17 | |||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * An implementation of the model object '<em><b>Predicate Symbol</b></em>'. | ||
21 | * <!-- end-user-doc --> | ||
22 | * <p> | ||
23 | * The following features are implemented: | ||
24 | * </p> | ||
25 | * <ul> | ||
26 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.PredicateSymbolImpl#getSymbol <em>Symbol</em>}</li> | ||
27 | * </ul> | ||
28 | * | ||
29 | * @generated | ||
30 | */ | ||
31 | public class PredicateSymbolImpl extends PredicateImpl implements PredicateSymbol | ||
32 | { | ||
33 | /** | ||
34 | * The cached value of the '{@link #getSymbol() <em>Symbol</em>}' containment reference. | ||
35 | * <!-- begin-user-doc --> | ||
36 | * <!-- end-user-doc --> | ||
37 | * @see #getSymbol() | ||
38 | * @generated | ||
39 | * @ordered | ||
40 | */ | ||
41 | protected ModelSymbol symbol; | ||
42 | |||
43 | /** | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @generated | ||
47 | */ | ||
48 | protected PredicateSymbolImpl() | ||
49 | { | ||
50 | super(); | ||
51 | } | ||
52 | |||
53 | /** | ||
54 | * <!-- begin-user-doc --> | ||
55 | * <!-- end-user-doc --> | ||
56 | * @generated | ||
57 | */ | ||
58 | @Override | ||
59 | protected EClass eStaticClass() | ||
60 | { | ||
61 | return SolverLanguagePackage.Literals.PREDICATE_SYMBOL; | ||
62 | } | ||
63 | |||
64 | /** | ||
65 | * <!-- begin-user-doc --> | ||
66 | * <!-- end-user-doc --> | ||
67 | * @generated | ||
68 | */ | ||
69 | @Override | ||
70 | public ModelSymbol getSymbol() | ||
71 | { | ||
72 | return symbol; | ||
73 | } | ||
74 | |||
75 | /** | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <!-- end-user-doc --> | ||
78 | * @generated | ||
79 | */ | ||
80 | public NotificationChain basicSetSymbol(ModelSymbol newSymbol, NotificationChain msgs) | ||
81 | { | ||
82 | ModelSymbol oldSymbol = symbol; | ||
83 | symbol = newSymbol; | ||
84 | if (eNotificationRequired()) | ||
85 | { | ||
86 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.PREDICATE_SYMBOL__SYMBOL, oldSymbol, newSymbol); | ||
87 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
88 | } | ||
89 | return msgs; | ||
90 | } | ||
91 | |||
92 | /** | ||
93 | * <!-- begin-user-doc --> | ||
94 | * <!-- end-user-doc --> | ||
95 | * @generated | ||
96 | */ | ||
97 | @Override | ||
98 | public void setSymbol(ModelSymbol newSymbol) | ||
99 | { | ||
100 | if (newSymbol != symbol) | ||
101 | { | ||
102 | NotificationChain msgs = null; | ||
103 | if (symbol != null) | ||
104 | msgs = ((InternalEObject)symbol).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.PREDICATE_SYMBOL__SYMBOL, null, msgs); | ||
105 | if (newSymbol != null) | ||
106 | msgs = ((InternalEObject)newSymbol).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.PREDICATE_SYMBOL__SYMBOL, null, msgs); | ||
107 | msgs = basicSetSymbol(newSymbol, msgs); | ||
108 | if (msgs != null) msgs.dispatch(); | ||
109 | } | ||
110 | else if (eNotificationRequired()) | ||
111 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.PREDICATE_SYMBOL__SYMBOL, newSymbol, newSymbol)); | ||
112 | } | ||
113 | |||
114 | /** | ||
115 | * <!-- begin-user-doc --> | ||
116 | * <!-- end-user-doc --> | ||
117 | * @generated | ||
118 | */ | ||
119 | @Override | ||
120 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
121 | { | ||
122 | switch (featureID) | ||
123 | { | ||
124 | case SolverLanguagePackage.PREDICATE_SYMBOL__SYMBOL: | ||
125 | return basicSetSymbol(null, msgs); | ||
126 | } | ||
127 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
128 | } | ||
129 | |||
130 | /** | ||
131 | * <!-- begin-user-doc --> | ||
132 | * <!-- end-user-doc --> | ||
133 | * @generated | ||
134 | */ | ||
135 | @Override | ||
136 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
137 | { | ||
138 | switch (featureID) | ||
139 | { | ||
140 | case SolverLanguagePackage.PREDICATE_SYMBOL__SYMBOL: | ||
141 | return getSymbol(); | ||
142 | } | ||
143 | return super.eGet(featureID, resolve, coreType); | ||
144 | } | ||
145 | |||
146 | /** | ||
147 | * <!-- begin-user-doc --> | ||
148 | * <!-- end-user-doc --> | ||
149 | * @generated | ||
150 | */ | ||
151 | @Override | ||
152 | public void eSet(int featureID, Object newValue) | ||
153 | { | ||
154 | switch (featureID) | ||
155 | { | ||
156 | case SolverLanguagePackage.PREDICATE_SYMBOL__SYMBOL: | ||
157 | setSymbol((ModelSymbol)newValue); | ||
158 | return; | ||
159 | } | ||
160 | super.eSet(featureID, newValue); | ||
161 | } | ||
162 | |||
163 | /** | ||
164 | * <!-- begin-user-doc --> | ||
165 | * <!-- end-user-doc --> | ||
166 | * @generated | ||
167 | */ | ||
168 | @Override | ||
169 | public void eUnset(int featureID) | ||
170 | { | ||
171 | switch (featureID) | ||
172 | { | ||
173 | case SolverLanguagePackage.PREDICATE_SYMBOL__SYMBOL: | ||
174 | setSymbol((ModelSymbol)null); | ||
175 | return; | ||
176 | } | ||
177 | super.eUnset(featureID); | ||
178 | } | ||
179 | |||
180 | /** | ||
181 | * <!-- begin-user-doc --> | ||
182 | * <!-- end-user-doc --> | ||
183 | * @generated | ||
184 | */ | ||
185 | @Override | ||
186 | public boolean eIsSet(int featureID) | ||
187 | { | ||
188 | switch (featureID) | ||
189 | { | ||
190 | case SolverLanguagePackage.PREDICATE_SYMBOL__SYMBOL: | ||
191 | return symbol != null; | ||
192 | } | ||
193 | return super.eIsSet(featureID); | ||
194 | } | ||
195 | |||
196 | } //PredicateSymbolImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ProblemImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ProblemImpl.java new file mode 100644 index 00000000..e5cc3585 --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ProblemImpl.java | |||
@@ -0,0 +1,169 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import java.util.Collection; | ||
7 | |||
8 | import org.eclipse.emf.common.notify.NotificationChain; | ||
9 | |||
10 | import org.eclipse.emf.common.util.EList; | ||
11 | |||
12 | import org.eclipse.emf.ecore.EClass; | ||
13 | import org.eclipse.emf.ecore.InternalEObject; | ||
14 | |||
15 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
16 | |||
17 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
18 | import org.eclipse.emf.ecore.util.InternalEList; | ||
19 | |||
20 | import org.eclipse.viatra.solver.language.solverLanguage.Problem; | ||
21 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
22 | import org.eclipse.viatra.solver.language.solverLanguage.Statement; | ||
23 | |||
24 | /** | ||
25 | * <!-- begin-user-doc --> | ||
26 | * An implementation of the model object '<em><b>Problem</b></em>'. | ||
27 | * <!-- end-user-doc --> | ||
28 | * <p> | ||
29 | * The following features are implemented: | ||
30 | * </p> | ||
31 | * <ul> | ||
32 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ProblemImpl#getStatements <em>Statements</em>}</li> | ||
33 | * </ul> | ||
34 | * | ||
35 | * @generated | ||
36 | */ | ||
37 | public class ProblemImpl extends MinimalEObjectImpl.Container implements Problem | ||
38 | { | ||
39 | /** | ||
40 | * The cached value of the '{@link #getStatements() <em>Statements</em>}' containment reference list. | ||
41 | * <!-- begin-user-doc --> | ||
42 | * <!-- end-user-doc --> | ||
43 | * @see #getStatements() | ||
44 | * @generated | ||
45 | * @ordered | ||
46 | */ | ||
47 | protected EList<Statement> statements; | ||
48 | |||
49 | /** | ||
50 | * <!-- begin-user-doc --> | ||
51 | * <!-- end-user-doc --> | ||
52 | * @generated | ||
53 | */ | ||
54 | protected ProblemImpl() | ||
55 | { | ||
56 | super(); | ||
57 | } | ||
58 | |||
59 | /** | ||
60 | * <!-- begin-user-doc --> | ||
61 | * <!-- end-user-doc --> | ||
62 | * @generated | ||
63 | */ | ||
64 | @Override | ||
65 | protected EClass eStaticClass() | ||
66 | { | ||
67 | return SolverLanguagePackage.Literals.PROBLEM; | ||
68 | } | ||
69 | |||
70 | /** | ||
71 | * <!-- begin-user-doc --> | ||
72 | * <!-- end-user-doc --> | ||
73 | * @generated | ||
74 | */ | ||
75 | @Override | ||
76 | public EList<Statement> getStatements() | ||
77 | { | ||
78 | if (statements == null) | ||
79 | { | ||
80 | statements = new EObjectContainmentEList<Statement>(Statement.class, this, SolverLanguagePackage.PROBLEM__STATEMENTS); | ||
81 | } | ||
82 | return statements; | ||
83 | } | ||
84 | |||
85 | /** | ||
86 | * <!-- begin-user-doc --> | ||
87 | * <!-- end-user-doc --> | ||
88 | * @generated | ||
89 | */ | ||
90 | @Override | ||
91 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
92 | { | ||
93 | switch (featureID) | ||
94 | { | ||
95 | case SolverLanguagePackage.PROBLEM__STATEMENTS: | ||
96 | return ((InternalEList<?>)getStatements()).basicRemove(otherEnd, msgs); | ||
97 | } | ||
98 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
99 | } | ||
100 | |||
101 | /** | ||
102 | * <!-- begin-user-doc --> | ||
103 | * <!-- end-user-doc --> | ||
104 | * @generated | ||
105 | */ | ||
106 | @Override | ||
107 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
108 | { | ||
109 | switch (featureID) | ||
110 | { | ||
111 | case SolverLanguagePackage.PROBLEM__STATEMENTS: | ||
112 | return getStatements(); | ||
113 | } | ||
114 | return super.eGet(featureID, resolve, coreType); | ||
115 | } | ||
116 | |||
117 | /** | ||
118 | * <!-- begin-user-doc --> | ||
119 | * <!-- end-user-doc --> | ||
120 | * @generated | ||
121 | */ | ||
122 | @SuppressWarnings("unchecked") | ||
123 | @Override | ||
124 | public void eSet(int featureID, Object newValue) | ||
125 | { | ||
126 | switch (featureID) | ||
127 | { | ||
128 | case SolverLanguagePackage.PROBLEM__STATEMENTS: | ||
129 | getStatements().clear(); | ||
130 | getStatements().addAll((Collection<? extends Statement>)newValue); | ||
131 | return; | ||
132 | } | ||
133 | super.eSet(featureID, newValue); | ||
134 | } | ||
135 | |||
136 | /** | ||
137 | * <!-- begin-user-doc --> | ||
138 | * <!-- end-user-doc --> | ||
139 | * @generated | ||
140 | */ | ||
141 | @Override | ||
142 | public void eUnset(int featureID) | ||
143 | { | ||
144 | switch (featureID) | ||
145 | { | ||
146 | case SolverLanguagePackage.PROBLEM__STATEMENTS: | ||
147 | getStatements().clear(); | ||
148 | return; | ||
149 | } | ||
150 | super.eUnset(featureID); | ||
151 | } | ||
152 | |||
153 | /** | ||
154 | * <!-- begin-user-doc --> | ||
155 | * <!-- end-user-doc --> | ||
156 | * @generated | ||
157 | */ | ||
158 | @Override | ||
159 | public boolean eIsSet(int featureID) | ||
160 | { | ||
161 | switch (featureID) | ||
162 | { | ||
163 | case SolverLanguagePackage.PROBLEM__STATEMENTS: | ||
164 | return statements != null && !statements.isEmpty(); | ||
165 | } | ||
166 | return super.eIsSet(featureID); | ||
167 | } | ||
168 | |||
169 | } //ProblemImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/RealObjectImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/RealObjectImpl.java new file mode 100644 index 00000000..bc32a9a6 --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/RealObjectImpl.java | |||
@@ -0,0 +1,181 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import java.math.BigDecimal; | ||
7 | |||
8 | import org.eclipse.emf.common.notify.Notification; | ||
9 | |||
10 | import org.eclipse.emf.ecore.EClass; | ||
11 | |||
12 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
13 | |||
14 | import org.eclipse.viatra.solver.language.solverLanguage.RealObject; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
16 | |||
17 | /** | ||
18 | * <!-- begin-user-doc --> | ||
19 | * An implementation of the model object '<em><b>Real Object</b></em>'. | ||
20 | * <!-- end-user-doc --> | ||
21 | * <p> | ||
22 | * The following features are implemented: | ||
23 | * </p> | ||
24 | * <ul> | ||
25 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.RealObjectImpl#getValue <em>Value</em>}</li> | ||
26 | * </ul> | ||
27 | * | ||
28 | * @generated | ||
29 | */ | ||
30 | public class RealObjectImpl extends DataObjectImpl implements RealObject | ||
31 | { | ||
32 | /** | ||
33 | * The default value of the '{@link #getValue() <em>Value</em>}' attribute. | ||
34 | * <!-- begin-user-doc --> | ||
35 | * <!-- end-user-doc --> | ||
36 | * @see #getValue() | ||
37 | * @generated | ||
38 | * @ordered | ||
39 | */ | ||
40 | protected static final BigDecimal VALUE_EDEFAULT = null; | ||
41 | |||
42 | /** | ||
43 | * The cached value of the '{@link #getValue() <em>Value</em>}' attribute. | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @see #getValue() | ||
47 | * @generated | ||
48 | * @ordered | ||
49 | */ | ||
50 | protected BigDecimal value = VALUE_EDEFAULT; | ||
51 | |||
52 | /** | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @generated | ||
56 | */ | ||
57 | protected RealObjectImpl() | ||
58 | { | ||
59 | super(); | ||
60 | } | ||
61 | |||
62 | /** | ||
63 | * <!-- begin-user-doc --> | ||
64 | * <!-- end-user-doc --> | ||
65 | * @generated | ||
66 | */ | ||
67 | @Override | ||
68 | protected EClass eStaticClass() | ||
69 | { | ||
70 | return SolverLanguagePackage.Literals.REAL_OBJECT; | ||
71 | } | ||
72 | |||
73 | /** | ||
74 | * <!-- begin-user-doc --> | ||
75 | * <!-- end-user-doc --> | ||
76 | * @generated | ||
77 | */ | ||
78 | @Override | ||
79 | public BigDecimal getValue() | ||
80 | { | ||
81 | return value; | ||
82 | } | ||
83 | |||
84 | /** | ||
85 | * <!-- begin-user-doc --> | ||
86 | * <!-- end-user-doc --> | ||
87 | * @generated | ||
88 | */ | ||
89 | @Override | ||
90 | public void setValue(BigDecimal newValue) | ||
91 | { | ||
92 | BigDecimal oldValue = value; | ||
93 | value = newValue; | ||
94 | if (eNotificationRequired()) | ||
95 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.REAL_OBJECT__VALUE, oldValue, value)); | ||
96 | } | ||
97 | |||
98 | /** | ||
99 | * <!-- begin-user-doc --> | ||
100 | * <!-- end-user-doc --> | ||
101 | * @generated | ||
102 | */ | ||
103 | @Override | ||
104 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
105 | { | ||
106 | switch (featureID) | ||
107 | { | ||
108 | case SolverLanguagePackage.REAL_OBJECT__VALUE: | ||
109 | return getValue(); | ||
110 | } | ||
111 | return super.eGet(featureID, resolve, coreType); | ||
112 | } | ||
113 | |||
114 | /** | ||
115 | * <!-- begin-user-doc --> | ||
116 | * <!-- end-user-doc --> | ||
117 | * @generated | ||
118 | */ | ||
119 | @Override | ||
120 | public void eSet(int featureID, Object newValue) | ||
121 | { | ||
122 | switch (featureID) | ||
123 | { | ||
124 | case SolverLanguagePackage.REAL_OBJECT__VALUE: | ||
125 | setValue((BigDecimal)newValue); | ||
126 | return; | ||
127 | } | ||
128 | super.eSet(featureID, newValue); | ||
129 | } | ||
130 | |||
131 | /** | ||
132 | * <!-- begin-user-doc --> | ||
133 | * <!-- end-user-doc --> | ||
134 | * @generated | ||
135 | */ | ||
136 | @Override | ||
137 | public void eUnset(int featureID) | ||
138 | { | ||
139 | switch (featureID) | ||
140 | { | ||
141 | case SolverLanguagePackage.REAL_OBJECT__VALUE: | ||
142 | setValue(VALUE_EDEFAULT); | ||
143 | return; | ||
144 | } | ||
145 | super.eUnset(featureID); | ||
146 | } | ||
147 | |||
148 | /** | ||
149 | * <!-- begin-user-doc --> | ||
150 | * <!-- end-user-doc --> | ||
151 | * @generated | ||
152 | */ | ||
153 | @Override | ||
154 | public boolean eIsSet(int featureID) | ||
155 | { | ||
156 | switch (featureID) | ||
157 | { | ||
158 | case SolverLanguagePackage.REAL_OBJECT__VALUE: | ||
159 | return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); | ||
160 | } | ||
161 | return super.eIsSet(featureID); | ||
162 | } | ||
163 | |||
164 | /** | ||
165 | * <!-- begin-user-doc --> | ||
166 | * <!-- end-user-doc --> | ||
167 | * @generated | ||
168 | */ | ||
169 | @Override | ||
170 | public String toString() | ||
171 | { | ||
172 | if (eIsProxy()) return super.toString(); | ||
173 | |||
174 | StringBuilder result = new StringBuilder(super.toString()); | ||
175 | result.append(" (value: "); | ||
176 | result.append(value); | ||
177 | result.append(')'); | ||
178 | return result.toString(); | ||
179 | } | ||
180 | |||
181 | } //RealObjectImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/RealSymbolImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/RealSymbolImpl.java new file mode 100644 index 00000000..8cfd0980 --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/RealSymbolImpl.java | |||
@@ -0,0 +1,41 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | |||
8 | import org.eclipse.viatra.solver.language.solverLanguage.RealSymbol; | ||
9 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * An implementation of the model object '<em><b>Real Symbol</b></em>'. | ||
14 | * <!-- end-user-doc --> | ||
15 | * | ||
16 | * @generated | ||
17 | */ | ||
18 | public class RealSymbolImpl extends DataSymbolImpl implements RealSymbol | ||
19 | { | ||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * <!-- end-user-doc --> | ||
23 | * @generated | ||
24 | */ | ||
25 | protected RealSymbolImpl() | ||
26 | { | ||
27 | super(); | ||
28 | } | ||
29 | |||
30 | /** | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @generated | ||
34 | */ | ||
35 | @Override | ||
36 | protected EClass eStaticClass() | ||
37 | { | ||
38 | return SolverLanguagePackage.Literals.REAL_SYMBOL; | ||
39 | } | ||
40 | |||
41 | } //RealSymbolImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ReflexiveClosureImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ReflexiveClosureImpl.java new file mode 100644 index 00000000..111b48cb --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ReflexiveClosureImpl.java | |||
@@ -0,0 +1,41 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | |||
8 | import org.eclipse.viatra.solver.language.solverLanguage.ReflexiveClosure; | ||
9 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * An implementation of the model object '<em><b>Reflexive Closure</b></em>'. | ||
14 | * <!-- end-user-doc --> | ||
15 | * | ||
16 | * @generated | ||
17 | */ | ||
18 | public class ReflexiveClosureImpl extends ClosureTypeImpl implements ReflexiveClosure | ||
19 | { | ||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * <!-- end-user-doc --> | ||
23 | * @generated | ||
24 | */ | ||
25 | protected ReflexiveClosureImpl() | ||
26 | { | ||
27 | super(); | ||
28 | } | ||
29 | |||
30 | /** | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @generated | ||
34 | */ | ||
35 | @Override | ||
36 | protected EClass eStaticClass() | ||
37 | { | ||
38 | return SolverLanguagePackage.Literals.REFLEXIVE_CLOSURE; | ||
39 | } | ||
40 | |||
41 | } //ReflexiveClosureImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/SolverLanguageFactoryImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/SolverLanguageFactoryImpl.java new file mode 100644 index 00000000..12ffc551 --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/SolverLanguageFactoryImpl.java | |||
@@ -0,0 +1,851 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EClass; | ||
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.solverLanguage.AllInstances; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.AllObjects; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.BasicInterpretation; | ||
17 | import org.eclipse.viatra.solver.language.solverLanguage.BooleanFalse; | ||
18 | import org.eclipse.viatra.solver.language.solverLanguage.BooleanObject; | ||
19 | import org.eclipse.viatra.solver.language.solverLanguage.BooleanSymbol; | ||
20 | import org.eclipse.viatra.solver.language.solverLanguage.BooleanTrue; | ||
21 | import org.eclipse.viatra.solver.language.solverLanguage.BooleanValue; | ||
22 | import org.eclipse.viatra.solver.language.solverLanguage.CDInterpretation; | ||
23 | import org.eclipse.viatra.solver.language.solverLanguage.ClassInterpretation; | ||
24 | import org.eclipse.viatra.solver.language.solverLanguage.ClosureType; | ||
25 | import org.eclipse.viatra.solver.language.solverLanguage.ComplexObject; | ||
26 | import org.eclipse.viatra.solver.language.solverLanguage.Constraint; | ||
27 | import org.eclipse.viatra.solver.language.solverLanguage.DataObject; | ||
28 | import org.eclipse.viatra.solver.language.solverLanguage.DataSymbol; | ||
29 | import org.eclipse.viatra.solver.language.solverLanguage.DefaultInterpretation; | ||
30 | import org.eclipse.viatra.solver.language.solverLanguage.EnumInterpretation; | ||
31 | import org.eclipse.viatra.solver.language.solverLanguage.EqualsSymbol; | ||
32 | import org.eclipse.viatra.solver.language.solverLanguage.ErrorPredicate; | ||
33 | import org.eclipse.viatra.solver.language.solverLanguage.ExistSymbol; | ||
34 | import org.eclipse.viatra.solver.language.solverLanguage.False; | ||
35 | import org.eclipse.viatra.solver.language.solverLanguage.FieldRelationInterpretation; | ||
36 | import org.eclipse.viatra.solver.language.solverLanguage.GlobalRelationInterpretation; | ||
37 | import org.eclipse.viatra.solver.language.solverLanguage.IntObject; | ||
38 | import org.eclipse.viatra.solver.language.solverLanguage.IntegerSymbol; | ||
39 | import org.eclipse.viatra.solver.language.solverLanguage.Interpretation; | ||
40 | import org.eclipse.viatra.solver.language.solverLanguage.IrreflexiveClosure; | ||
41 | import org.eclipse.viatra.solver.language.solverLanguage.Literal; | ||
42 | import org.eclipse.viatra.solver.language.solverLanguage.ModelSymbol; | ||
43 | import org.eclipse.viatra.solver.language.solverLanguage.MultiplicityDefinition; | ||
44 | import org.eclipse.viatra.solver.language.solverLanguage.NamedObject; | ||
45 | import org.eclipse.viatra.solver.language.solverLanguage.Negative; | ||
46 | import org.eclipse.viatra.solver.language.solverLanguage.Parameter; | ||
47 | import org.eclipse.viatra.solver.language.solverLanguage.PartialitySymbol; | ||
48 | import org.eclipse.viatra.solver.language.solverLanguage.PatternBody; | ||
49 | import org.eclipse.viatra.solver.language.solverLanguage.Polarity; | ||
50 | import org.eclipse.viatra.solver.language.solverLanguage.Positive; | ||
51 | import org.eclipse.viatra.solver.language.solverLanguage.Predicate; | ||
52 | import org.eclipse.viatra.solver.language.solverLanguage.PredicateSymbol; | ||
53 | import org.eclipse.viatra.solver.language.solverLanguage.Problem; | ||
54 | import org.eclipse.viatra.solver.language.solverLanguage.RealObject; | ||
55 | import org.eclipse.viatra.solver.language.solverLanguage.RealSymbol; | ||
56 | import org.eclipse.viatra.solver.language.solverLanguage.ReflexiveClosure; | ||
57 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguageFactory; | ||
58 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
59 | import org.eclipse.viatra.solver.language.solverLanguage.Statement; | ||
60 | import org.eclipse.viatra.solver.language.solverLanguage.StringObject; | ||
61 | import org.eclipse.viatra.solver.language.solverLanguage.StringSymbol; | ||
62 | import org.eclipse.viatra.solver.language.solverLanguage.Symbol; | ||
63 | import org.eclipse.viatra.solver.language.solverLanguage.True; | ||
64 | import org.eclipse.viatra.solver.language.solverLanguage.TruthValue; | ||
65 | import org.eclipse.viatra.solver.language.solverLanguage.Unknown; | ||
66 | import org.eclipse.viatra.solver.language.solverLanguage.UnnamedObject; | ||
67 | import org.eclipse.viatra.solver.language.solverLanguage.Variable; | ||
68 | |||
69 | /** | ||
70 | * <!-- begin-user-doc --> | ||
71 | * An implementation of the model <b>Factory</b>. | ||
72 | * <!-- end-user-doc --> | ||
73 | * @generated | ||
74 | */ | ||
75 | public class SolverLanguageFactoryImpl extends EFactoryImpl implements SolverLanguageFactory | ||
76 | { | ||
77 | /** | ||
78 | * Creates the default factory implementation. | ||
79 | * <!-- begin-user-doc --> | ||
80 | * <!-- end-user-doc --> | ||
81 | * @generated | ||
82 | */ | ||
83 | public static SolverLanguageFactory init() | ||
84 | { | ||
85 | try | ||
86 | { | ||
87 | SolverLanguageFactory theSolverLanguageFactory = (SolverLanguageFactory)EPackage.Registry.INSTANCE.getEFactory(SolverLanguagePackage.eNS_URI); | ||
88 | if (theSolverLanguageFactory != null) | ||
89 | { | ||
90 | return theSolverLanguageFactory; | ||
91 | } | ||
92 | } | ||
93 | catch (Exception exception) | ||
94 | { | ||
95 | EcorePlugin.INSTANCE.log(exception); | ||
96 | } | ||
97 | return new SolverLanguageFactoryImpl(); | ||
98 | } | ||
99 | |||
100 | /** | ||
101 | * Creates an instance of the factory. | ||
102 | * <!-- begin-user-doc --> | ||
103 | * <!-- end-user-doc --> | ||
104 | * @generated | ||
105 | */ | ||
106 | public SolverLanguageFactoryImpl() | ||
107 | { | ||
108 | super(); | ||
109 | } | ||
110 | |||
111 | /** | ||
112 | * <!-- begin-user-doc --> | ||
113 | * <!-- end-user-doc --> | ||
114 | * @generated | ||
115 | */ | ||
116 | @Override | ||
117 | public EObject create(EClass eClass) | ||
118 | { | ||
119 | switch (eClass.getClassifierID()) | ||
120 | { | ||
121 | case SolverLanguagePackage.PROBLEM: return createProblem(); | ||
122 | case SolverLanguagePackage.STATEMENT: return createStatement(); | ||
123 | case SolverLanguagePackage.BOOLEAN_VALUE: return createBooleanValue(); | ||
124 | case SolverLanguagePackage.TRUTH_VALUE: return createTruthValue(); | ||
125 | case SolverLanguagePackage.INTERPRETATION: return createInterpretation(); | ||
126 | case SolverLanguagePackage.BASIC_INTERPRETATION: return createBasicInterpretation(); | ||
127 | case SolverLanguagePackage.SYMBOL: return createSymbol(); | ||
128 | case SolverLanguagePackage.MODEL_SYMBOL: return createModelSymbol(); | ||
129 | case SolverLanguagePackage.PARTIALITY_SYMBOL: return createPartialitySymbol(); | ||
130 | case SolverLanguagePackage.EXIST_SYMBOL: return createExistSymbol(); | ||
131 | case SolverLanguagePackage.EQUALS_SYMBOL: return createEqualsSymbol(); | ||
132 | case SolverLanguagePackage.DATA_SYMBOL: return createDataSymbol(); | ||
133 | case SolverLanguagePackage.BOOLEAN_SYMBOL: return createBooleanSymbol(); | ||
134 | case SolverLanguagePackage.INTEGER_SYMBOL: return createIntegerSymbol(); | ||
135 | case SolverLanguagePackage.REAL_SYMBOL: return createRealSymbol(); | ||
136 | case SolverLanguagePackage.STRING_SYMBOL: return createStringSymbol(); | ||
137 | case SolverLanguagePackage.COMPLEX_OBJECT: return createComplexObject(); | ||
138 | case SolverLanguagePackage.OBJECT: return createObject(); | ||
139 | case SolverLanguagePackage.NAMED_OBJECT: return createNamedObject(); | ||
140 | case SolverLanguagePackage.UNNAMED_OBJECT: return createUnnamedObject(); | ||
141 | case SolverLanguagePackage.DATA_OBJECT: return createDataObject(); | ||
142 | case SolverLanguagePackage.BOOLEAN_OBJECT: return createBooleanObject(); | ||
143 | case SolverLanguagePackage.INT_OBJECT: return createIntObject(); | ||
144 | case SolverLanguagePackage.REAL_OBJECT: return createRealObject(); | ||
145 | case SolverLanguagePackage.STRING_OBJECT: return createStringObject(); | ||
146 | case SolverLanguagePackage.PREDICATE: return createPredicate(); | ||
147 | case SolverLanguagePackage.PREDICATE_SYMBOL: return createPredicateSymbol(); | ||
148 | case SolverLanguagePackage.ERROR_PREDICATE: return createErrorPredicate(); | ||
149 | case SolverLanguagePackage.PARAMETER: return createParameter(); | ||
150 | case SolverLanguagePackage.PATTERN_BODY: return createPatternBody(); | ||
151 | case SolverLanguagePackage.POLARITY: return createPolarity(); | ||
152 | case SolverLanguagePackage.CONSTRAINT: return createConstraint(); | ||
153 | case SolverLanguagePackage.CLOSURE_TYPE: return createClosureType(); | ||
154 | case SolverLanguagePackage.LITERAL: return createLiteral(); | ||
155 | case SolverLanguagePackage.VARIABLE: return createVariable(); | ||
156 | case SolverLanguagePackage.ALL_INSTANCES: return createAllInstances(); | ||
157 | case SolverLanguagePackage.ALL_OBJECTS: return createAllObjects(); | ||
158 | case SolverLanguagePackage.DEFAULT_INTERPRETATION: return createDefaultInterpretation(); | ||
159 | case SolverLanguagePackage.CD_INTERPRETATION: return createCDInterpretation(); | ||
160 | case SolverLanguagePackage.CLASS_INTERPRETATION: return createClassInterpretation(); | ||
161 | case SolverLanguagePackage.ENUM_INTERPRETATION: return createEnumInterpretation(); | ||
162 | case SolverLanguagePackage.FIELD_RELATION_INTERPRETATION: return createFieldRelationInterpretation(); | ||
163 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION: return createGlobalRelationInterpretation(); | ||
164 | case SolverLanguagePackage.MULTIPLICITY_DEFINITION: return createMultiplicityDefinition(); | ||
165 | case SolverLanguagePackage.BOOLEAN_TRUE: return createBooleanTrue(); | ||
166 | case SolverLanguagePackage.BOOLEAN_FALSE: return createBooleanFalse(); | ||
167 | case SolverLanguagePackage.TRUE: return createTrue(); | ||
168 | case SolverLanguagePackage.FALSE: return createFalse(); | ||
169 | case SolverLanguagePackage.UNKNOWN: return createUnknown(); | ||
170 | case SolverLanguagePackage.ERROR: return createError(); | ||
171 | case SolverLanguagePackage.POSITIVE: return createPositive(); | ||
172 | case SolverLanguagePackage.NEGATIVE: return createNegative(); | ||
173 | case SolverLanguagePackage.REFLEXIVE_CLOSURE: return createReflexiveClosure(); | ||
174 | case SolverLanguagePackage.IRREFLEXIVE_CLOSURE: return createIrreflexiveClosure(); | ||
175 | default: | ||
176 | throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); | ||
177 | } | ||
178 | } | ||
179 | |||
180 | /** | ||
181 | * <!-- begin-user-doc --> | ||
182 | * <!-- end-user-doc --> | ||
183 | * @generated | ||
184 | */ | ||
185 | @Override | ||
186 | public Problem createProblem() | ||
187 | { | ||
188 | ProblemImpl problem = new ProblemImpl(); | ||
189 | return problem; | ||
190 | } | ||
191 | |||
192 | /** | ||
193 | * <!-- begin-user-doc --> | ||
194 | * <!-- end-user-doc --> | ||
195 | * @generated | ||
196 | */ | ||
197 | @Override | ||
198 | public Statement createStatement() | ||
199 | { | ||
200 | StatementImpl statement = new StatementImpl(); | ||
201 | return statement; | ||
202 | } | ||
203 | |||
204 | /** | ||
205 | * <!-- begin-user-doc --> | ||
206 | * <!-- end-user-doc --> | ||
207 | * @generated | ||
208 | */ | ||
209 | @Override | ||
210 | public BooleanValue createBooleanValue() | ||
211 | { | ||
212 | BooleanValueImpl booleanValue = new BooleanValueImpl(); | ||
213 | return booleanValue; | ||
214 | } | ||
215 | |||
216 | /** | ||
217 | * <!-- begin-user-doc --> | ||
218 | * <!-- end-user-doc --> | ||
219 | * @generated | ||
220 | */ | ||
221 | @Override | ||
222 | public TruthValue createTruthValue() | ||
223 | { | ||
224 | TruthValueImpl truthValue = new TruthValueImpl(); | ||
225 | return truthValue; | ||
226 | } | ||
227 | |||
228 | /** | ||
229 | * <!-- begin-user-doc --> | ||
230 | * <!-- end-user-doc --> | ||
231 | * @generated | ||
232 | */ | ||
233 | @Override | ||
234 | public Interpretation createInterpretation() | ||
235 | { | ||
236 | InterpretationImpl interpretation = new InterpretationImpl(); | ||
237 | return interpretation; | ||
238 | } | ||
239 | |||
240 | /** | ||
241 | * <!-- begin-user-doc --> | ||
242 | * <!-- end-user-doc --> | ||
243 | * @generated | ||
244 | */ | ||
245 | @Override | ||
246 | public BasicInterpretation createBasicInterpretation() | ||
247 | { | ||
248 | BasicInterpretationImpl basicInterpretation = new BasicInterpretationImpl(); | ||
249 | return basicInterpretation; | ||
250 | } | ||
251 | |||
252 | /** | ||
253 | * <!-- begin-user-doc --> | ||
254 | * <!-- end-user-doc --> | ||
255 | * @generated | ||
256 | */ | ||
257 | @Override | ||
258 | public Symbol createSymbol() | ||
259 | { | ||
260 | SymbolImpl symbol = new SymbolImpl(); | ||
261 | return symbol; | ||
262 | } | ||
263 | |||
264 | /** | ||
265 | * <!-- begin-user-doc --> | ||
266 | * <!-- end-user-doc --> | ||
267 | * @generated | ||
268 | */ | ||
269 | @Override | ||
270 | public ModelSymbol createModelSymbol() | ||
271 | { | ||
272 | ModelSymbolImpl modelSymbol = new ModelSymbolImpl(); | ||
273 | return modelSymbol; | ||
274 | } | ||
275 | |||
276 | /** | ||
277 | * <!-- begin-user-doc --> | ||
278 | * <!-- end-user-doc --> | ||
279 | * @generated | ||
280 | */ | ||
281 | @Override | ||
282 | public PartialitySymbol createPartialitySymbol() | ||
283 | { | ||
284 | PartialitySymbolImpl partialitySymbol = new PartialitySymbolImpl(); | ||
285 | return partialitySymbol; | ||
286 | } | ||
287 | |||
288 | /** | ||
289 | * <!-- begin-user-doc --> | ||
290 | * <!-- end-user-doc --> | ||
291 | * @generated | ||
292 | */ | ||
293 | @Override | ||
294 | public ExistSymbol createExistSymbol() | ||
295 | { | ||
296 | ExistSymbolImpl existSymbol = new ExistSymbolImpl(); | ||
297 | return existSymbol; | ||
298 | } | ||
299 | |||
300 | /** | ||
301 | * <!-- begin-user-doc --> | ||
302 | * <!-- end-user-doc --> | ||
303 | * @generated | ||
304 | */ | ||
305 | @Override | ||
306 | public EqualsSymbol createEqualsSymbol() | ||
307 | { | ||
308 | EqualsSymbolImpl equalsSymbol = new EqualsSymbolImpl(); | ||
309 | return equalsSymbol; | ||
310 | } | ||
311 | |||
312 | /** | ||
313 | * <!-- begin-user-doc --> | ||
314 | * <!-- end-user-doc --> | ||
315 | * @generated | ||
316 | */ | ||
317 | @Override | ||
318 | public DataSymbol createDataSymbol() | ||
319 | { | ||
320 | DataSymbolImpl dataSymbol = new DataSymbolImpl(); | ||
321 | return dataSymbol; | ||
322 | } | ||
323 | |||
324 | /** | ||
325 | * <!-- begin-user-doc --> | ||
326 | * <!-- end-user-doc --> | ||
327 | * @generated | ||
328 | */ | ||
329 | @Override | ||
330 | public BooleanSymbol createBooleanSymbol() | ||
331 | { | ||
332 | BooleanSymbolImpl booleanSymbol = new BooleanSymbolImpl(); | ||
333 | return booleanSymbol; | ||
334 | } | ||
335 | |||
336 | /** | ||
337 | * <!-- begin-user-doc --> | ||
338 | * <!-- end-user-doc --> | ||
339 | * @generated | ||
340 | */ | ||
341 | @Override | ||
342 | public IntegerSymbol createIntegerSymbol() | ||
343 | { | ||
344 | IntegerSymbolImpl integerSymbol = new IntegerSymbolImpl(); | ||
345 | return integerSymbol; | ||
346 | } | ||
347 | |||
348 | /** | ||
349 | * <!-- begin-user-doc --> | ||
350 | * <!-- end-user-doc --> | ||
351 | * @generated | ||
352 | */ | ||
353 | @Override | ||
354 | public RealSymbol createRealSymbol() | ||
355 | { | ||
356 | RealSymbolImpl realSymbol = new RealSymbolImpl(); | ||
357 | return realSymbol; | ||
358 | } | ||
359 | |||
360 | /** | ||
361 | * <!-- begin-user-doc --> | ||
362 | * <!-- end-user-doc --> | ||
363 | * @generated | ||
364 | */ | ||
365 | @Override | ||
366 | public StringSymbol createStringSymbol() | ||
367 | { | ||
368 | StringSymbolImpl stringSymbol = new StringSymbolImpl(); | ||
369 | return stringSymbol; | ||
370 | } | ||
371 | |||
372 | /** | ||
373 | * <!-- begin-user-doc --> | ||
374 | * <!-- end-user-doc --> | ||
375 | * @generated | ||
376 | */ | ||
377 | @Override | ||
378 | public ComplexObject createComplexObject() | ||
379 | { | ||
380 | ComplexObjectImpl complexObject = new ComplexObjectImpl(); | ||
381 | return complexObject; | ||
382 | } | ||
383 | |||
384 | /** | ||
385 | * <!-- begin-user-doc --> | ||
386 | * <!-- end-user-doc --> | ||
387 | * @generated | ||
388 | */ | ||
389 | @Override | ||
390 | public org.eclipse.viatra.solver.language.solverLanguage.Object createObject() | ||
391 | { | ||
392 | ObjectImpl object = new ObjectImpl(); | ||
393 | return object; | ||
394 | } | ||
395 | |||
396 | /** | ||
397 | * <!-- begin-user-doc --> | ||
398 | * <!-- end-user-doc --> | ||
399 | * @generated | ||
400 | */ | ||
401 | @Override | ||
402 | public NamedObject createNamedObject() | ||
403 | { | ||
404 | NamedObjectImpl namedObject = new NamedObjectImpl(); | ||
405 | return namedObject; | ||
406 | } | ||
407 | |||
408 | /** | ||
409 | * <!-- begin-user-doc --> | ||
410 | * <!-- end-user-doc --> | ||
411 | * @generated | ||
412 | */ | ||
413 | @Override | ||
414 | public UnnamedObject createUnnamedObject() | ||
415 | { | ||
416 | UnnamedObjectImpl unnamedObject = new UnnamedObjectImpl(); | ||
417 | return unnamedObject; | ||
418 | } | ||
419 | |||
420 | /** | ||
421 | * <!-- begin-user-doc --> | ||
422 | * <!-- end-user-doc --> | ||
423 | * @generated | ||
424 | */ | ||
425 | @Override | ||
426 | public DataObject createDataObject() | ||
427 | { | ||
428 | DataObjectImpl dataObject = new DataObjectImpl(); | ||
429 | return dataObject; | ||
430 | } | ||
431 | |||
432 | /** | ||
433 | * <!-- begin-user-doc --> | ||
434 | * <!-- end-user-doc --> | ||
435 | * @generated | ||
436 | */ | ||
437 | @Override | ||
438 | public BooleanObject createBooleanObject() | ||
439 | { | ||
440 | BooleanObjectImpl booleanObject = new BooleanObjectImpl(); | ||
441 | return booleanObject; | ||
442 | } | ||
443 | |||
444 | /** | ||
445 | * <!-- begin-user-doc --> | ||
446 | * <!-- end-user-doc --> | ||
447 | * @generated | ||
448 | */ | ||
449 | @Override | ||
450 | public IntObject createIntObject() | ||
451 | { | ||
452 | IntObjectImpl intObject = new IntObjectImpl(); | ||
453 | return intObject; | ||
454 | } | ||
455 | |||
456 | /** | ||
457 | * <!-- begin-user-doc --> | ||
458 | * <!-- end-user-doc --> | ||
459 | * @generated | ||
460 | */ | ||
461 | @Override | ||
462 | public RealObject createRealObject() | ||
463 | { | ||
464 | RealObjectImpl realObject = new RealObjectImpl(); | ||
465 | return realObject; | ||
466 | } | ||
467 | |||
468 | /** | ||
469 | * <!-- begin-user-doc --> | ||
470 | * <!-- end-user-doc --> | ||
471 | * @generated | ||
472 | */ | ||
473 | @Override | ||
474 | public StringObject createStringObject() | ||
475 | { | ||
476 | StringObjectImpl stringObject = new StringObjectImpl(); | ||
477 | return stringObject; | ||
478 | } | ||
479 | |||
480 | /** | ||
481 | * <!-- begin-user-doc --> | ||
482 | * <!-- end-user-doc --> | ||
483 | * @generated | ||
484 | */ | ||
485 | @Override | ||
486 | public Predicate createPredicate() | ||
487 | { | ||
488 | PredicateImpl predicate = new PredicateImpl(); | ||
489 | return predicate; | ||
490 | } | ||
491 | |||
492 | /** | ||
493 | * <!-- begin-user-doc --> | ||
494 | * <!-- end-user-doc --> | ||
495 | * @generated | ||
496 | */ | ||
497 | @Override | ||
498 | public PredicateSymbol createPredicateSymbol() | ||
499 | { | ||
500 | PredicateSymbolImpl predicateSymbol = new PredicateSymbolImpl(); | ||
501 | return predicateSymbol; | ||
502 | } | ||
503 | |||
504 | /** | ||
505 | * <!-- begin-user-doc --> | ||
506 | * <!-- end-user-doc --> | ||
507 | * @generated | ||
508 | */ | ||
509 | @Override | ||
510 | public ErrorPredicate createErrorPredicate() | ||
511 | { | ||
512 | ErrorPredicateImpl errorPredicate = new ErrorPredicateImpl(); | ||
513 | return errorPredicate; | ||
514 | } | ||
515 | |||
516 | /** | ||
517 | * <!-- begin-user-doc --> | ||
518 | * <!-- end-user-doc --> | ||
519 | * @generated | ||
520 | */ | ||
521 | @Override | ||
522 | public Parameter createParameter() | ||
523 | { | ||
524 | ParameterImpl parameter = new ParameterImpl(); | ||
525 | return parameter; | ||
526 | } | ||
527 | |||
528 | /** | ||
529 | * <!-- begin-user-doc --> | ||
530 | * <!-- end-user-doc --> | ||
531 | * @generated | ||
532 | */ | ||
533 | @Override | ||
534 | public PatternBody createPatternBody() | ||
535 | { | ||
536 | PatternBodyImpl patternBody = new PatternBodyImpl(); | ||
537 | return patternBody; | ||
538 | } | ||
539 | |||
540 | /** | ||
541 | * <!-- begin-user-doc --> | ||
542 | * <!-- end-user-doc --> | ||
543 | * @generated | ||
544 | */ | ||
545 | @Override | ||
546 | public Polarity createPolarity() | ||
547 | { | ||
548 | PolarityImpl polarity = new PolarityImpl(); | ||
549 | return polarity; | ||
550 | } | ||
551 | |||
552 | /** | ||
553 | * <!-- begin-user-doc --> | ||
554 | * <!-- end-user-doc --> | ||
555 | * @generated | ||
556 | */ | ||
557 | @Override | ||
558 | public Constraint createConstraint() | ||
559 | { | ||
560 | ConstraintImpl constraint = new ConstraintImpl(); | ||
561 | return constraint; | ||
562 | } | ||
563 | |||
564 | /** | ||
565 | * <!-- begin-user-doc --> | ||
566 | * <!-- end-user-doc --> | ||
567 | * @generated | ||
568 | */ | ||
569 | @Override | ||
570 | public ClosureType createClosureType() | ||
571 | { | ||
572 | ClosureTypeImpl closureType = new ClosureTypeImpl(); | ||
573 | return closureType; | ||
574 | } | ||
575 | |||
576 | /** | ||
577 | * <!-- begin-user-doc --> | ||
578 | * <!-- end-user-doc --> | ||
579 | * @generated | ||
580 | */ | ||
581 | @Override | ||
582 | public Literal createLiteral() | ||
583 | { | ||
584 | LiteralImpl literal = new LiteralImpl(); | ||
585 | return literal; | ||
586 | } | ||
587 | |||
588 | /** | ||
589 | * <!-- begin-user-doc --> | ||
590 | * <!-- end-user-doc --> | ||
591 | * @generated | ||
592 | */ | ||
593 | @Override | ||
594 | public Variable createVariable() | ||
595 | { | ||
596 | VariableImpl variable = new VariableImpl(); | ||
597 | return variable; | ||
598 | } | ||
599 | |||
600 | /** | ||
601 | * <!-- begin-user-doc --> | ||
602 | * <!-- end-user-doc --> | ||
603 | * @generated | ||
604 | */ | ||
605 | @Override | ||
606 | public AllInstances createAllInstances() | ||
607 | { | ||
608 | AllInstancesImpl allInstances = new AllInstancesImpl(); | ||
609 | return allInstances; | ||
610 | } | ||
611 | |||
612 | /** | ||
613 | * <!-- begin-user-doc --> | ||
614 | * <!-- end-user-doc --> | ||
615 | * @generated | ||
616 | */ | ||
617 | @Override | ||
618 | public AllObjects createAllObjects() | ||
619 | { | ||
620 | AllObjectsImpl allObjects = new AllObjectsImpl(); | ||
621 | return allObjects; | ||
622 | } | ||
623 | |||
624 | /** | ||
625 | * <!-- begin-user-doc --> | ||
626 | * <!-- end-user-doc --> | ||
627 | * @generated | ||
628 | */ | ||
629 | @Override | ||
630 | public DefaultInterpretation createDefaultInterpretation() | ||
631 | { | ||
632 | DefaultInterpretationImpl defaultInterpretation = new DefaultInterpretationImpl(); | ||
633 | return defaultInterpretation; | ||
634 | } | ||
635 | |||
636 | /** | ||
637 | * <!-- begin-user-doc --> | ||
638 | * <!-- end-user-doc --> | ||
639 | * @generated | ||
640 | */ | ||
641 | @Override | ||
642 | public CDInterpretation createCDInterpretation() | ||
643 | { | ||
644 | CDInterpretationImpl cdInterpretation = new CDInterpretationImpl(); | ||
645 | return cdInterpretation; | ||
646 | } | ||
647 | |||
648 | /** | ||
649 | * <!-- begin-user-doc --> | ||
650 | * <!-- end-user-doc --> | ||
651 | * @generated | ||
652 | */ | ||
653 | @Override | ||
654 | public ClassInterpretation createClassInterpretation() | ||
655 | { | ||
656 | ClassInterpretationImpl classInterpretation = new ClassInterpretationImpl(); | ||
657 | return classInterpretation; | ||
658 | } | ||
659 | |||
660 | /** | ||
661 | * <!-- begin-user-doc --> | ||
662 | * <!-- end-user-doc --> | ||
663 | * @generated | ||
664 | */ | ||
665 | @Override | ||
666 | public EnumInterpretation createEnumInterpretation() | ||
667 | { | ||
668 | EnumInterpretationImpl enumInterpretation = new EnumInterpretationImpl(); | ||
669 | return enumInterpretation; | ||
670 | } | ||
671 | |||
672 | /** | ||
673 | * <!-- begin-user-doc --> | ||
674 | * <!-- end-user-doc --> | ||
675 | * @generated | ||
676 | */ | ||
677 | @Override | ||
678 | public FieldRelationInterpretation createFieldRelationInterpretation() | ||
679 | { | ||
680 | FieldRelationInterpretationImpl fieldRelationInterpretation = new FieldRelationInterpretationImpl(); | ||
681 | return fieldRelationInterpretation; | ||
682 | } | ||
683 | |||
684 | /** | ||
685 | * <!-- begin-user-doc --> | ||
686 | * <!-- end-user-doc --> | ||
687 | * @generated | ||
688 | */ | ||
689 | @Override | ||
690 | public GlobalRelationInterpretation createGlobalRelationInterpretation() | ||
691 | { | ||
692 | GlobalRelationInterpretationImpl globalRelationInterpretation = new GlobalRelationInterpretationImpl(); | ||
693 | return globalRelationInterpretation; | ||
694 | } | ||
695 | |||
696 | /** | ||
697 | * <!-- begin-user-doc --> | ||
698 | * <!-- end-user-doc --> | ||
699 | * @generated | ||
700 | */ | ||
701 | @Override | ||
702 | public MultiplicityDefinition createMultiplicityDefinition() | ||
703 | { | ||
704 | MultiplicityDefinitionImpl multiplicityDefinition = new MultiplicityDefinitionImpl(); | ||
705 | return multiplicityDefinition; | ||
706 | } | ||
707 | |||
708 | /** | ||
709 | * <!-- begin-user-doc --> | ||
710 | * <!-- end-user-doc --> | ||
711 | * @generated | ||
712 | */ | ||
713 | @Override | ||
714 | public BooleanTrue createBooleanTrue() | ||
715 | { | ||
716 | BooleanTrueImpl booleanTrue = new BooleanTrueImpl(); | ||
717 | return booleanTrue; | ||
718 | } | ||
719 | |||
720 | /** | ||
721 | * <!-- begin-user-doc --> | ||
722 | * <!-- end-user-doc --> | ||
723 | * @generated | ||
724 | */ | ||
725 | @Override | ||
726 | public BooleanFalse createBooleanFalse() | ||
727 | { | ||
728 | BooleanFalseImpl booleanFalse = new BooleanFalseImpl(); | ||
729 | return booleanFalse; | ||
730 | } | ||
731 | |||
732 | /** | ||
733 | * <!-- begin-user-doc --> | ||
734 | * <!-- end-user-doc --> | ||
735 | * @generated | ||
736 | */ | ||
737 | @Override | ||
738 | public True createTrue() | ||
739 | { | ||
740 | TrueImpl true_ = new TrueImpl(); | ||
741 | return true_; | ||
742 | } | ||
743 | |||
744 | /** | ||
745 | * <!-- begin-user-doc --> | ||
746 | * <!-- end-user-doc --> | ||
747 | * @generated | ||
748 | */ | ||
749 | @Override | ||
750 | public False createFalse() | ||
751 | { | ||
752 | FalseImpl false_ = new FalseImpl(); | ||
753 | return false_; | ||
754 | } | ||
755 | |||
756 | /** | ||
757 | * <!-- begin-user-doc --> | ||
758 | * <!-- end-user-doc --> | ||
759 | * @generated | ||
760 | */ | ||
761 | @Override | ||
762 | public Unknown createUnknown() | ||
763 | { | ||
764 | UnknownImpl unknown = new UnknownImpl(); | ||
765 | return unknown; | ||
766 | } | ||
767 | |||
768 | /** | ||
769 | * <!-- begin-user-doc --> | ||
770 | * <!-- end-user-doc --> | ||
771 | * @generated | ||
772 | */ | ||
773 | @Override | ||
774 | public org.eclipse.viatra.solver.language.solverLanguage.Error createError() | ||
775 | { | ||
776 | ErrorImpl error = new ErrorImpl(); | ||
777 | return error; | ||
778 | } | ||
779 | |||
780 | /** | ||
781 | * <!-- begin-user-doc --> | ||
782 | * <!-- end-user-doc --> | ||
783 | * @generated | ||
784 | */ | ||
785 | @Override | ||
786 | public Positive createPositive() | ||
787 | { | ||
788 | PositiveImpl positive = new PositiveImpl(); | ||
789 | return positive; | ||
790 | } | ||
791 | |||
792 | /** | ||
793 | * <!-- begin-user-doc --> | ||
794 | * <!-- end-user-doc --> | ||
795 | * @generated | ||
796 | */ | ||
797 | @Override | ||
798 | public Negative createNegative() | ||
799 | { | ||
800 | NegativeImpl negative = new NegativeImpl(); | ||
801 | return negative; | ||
802 | } | ||
803 | |||
804 | /** | ||
805 | * <!-- begin-user-doc --> | ||
806 | * <!-- end-user-doc --> | ||
807 | * @generated | ||
808 | */ | ||
809 | @Override | ||
810 | public ReflexiveClosure createReflexiveClosure() | ||
811 | { | ||
812 | ReflexiveClosureImpl reflexiveClosure = new ReflexiveClosureImpl(); | ||
813 | return reflexiveClosure; | ||
814 | } | ||
815 | |||
816 | /** | ||
817 | * <!-- begin-user-doc --> | ||
818 | * <!-- end-user-doc --> | ||
819 | * @generated | ||
820 | */ | ||
821 | @Override | ||
822 | public IrreflexiveClosure createIrreflexiveClosure() | ||
823 | { | ||
824 | IrreflexiveClosureImpl irreflexiveClosure = new IrreflexiveClosureImpl(); | ||
825 | return irreflexiveClosure; | ||
826 | } | ||
827 | |||
828 | /** | ||
829 | * <!-- begin-user-doc --> | ||
830 | * <!-- end-user-doc --> | ||
831 | * @generated | ||
832 | */ | ||
833 | @Override | ||
834 | public SolverLanguagePackage getSolverLanguagePackage() | ||
835 | { | ||
836 | return (SolverLanguagePackage)getEPackage(); | ||
837 | } | ||
838 | |||
839 | /** | ||
840 | * <!-- begin-user-doc --> | ||
841 | * <!-- end-user-doc --> | ||
842 | * @deprecated | ||
843 | * @generated | ||
844 | */ | ||
845 | @Deprecated | ||
846 | public static SolverLanguagePackage getPackage() | ||
847 | { | ||
848 | return SolverLanguagePackage.eINSTANCE; | ||
849 | } | ||
850 | |||
851 | } //SolverLanguageFactoryImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/SolverLanguagePackageImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/SolverLanguagePackageImpl.java new file mode 100644 index 00000000..9e5d391b --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/SolverLanguagePackageImpl.java | |||
@@ -0,0 +1,2007 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EAttribute; | ||
7 | import org.eclipse.emf.ecore.EClass; | ||
8 | import org.eclipse.emf.ecore.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.solverLanguage.AllInstances; | ||
14 | import org.eclipse.viatra.solver.language.solverLanguage.AllObjects; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.BasicInterpretation; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.BooleanFalse; | ||
17 | import org.eclipse.viatra.solver.language.solverLanguage.BooleanObject; | ||
18 | import org.eclipse.viatra.solver.language.solverLanguage.BooleanSymbol; | ||
19 | import org.eclipse.viatra.solver.language.solverLanguage.BooleanTrue; | ||
20 | import org.eclipse.viatra.solver.language.solverLanguage.BooleanValue; | ||
21 | import org.eclipse.viatra.solver.language.solverLanguage.CDInterpretation; | ||
22 | import org.eclipse.viatra.solver.language.solverLanguage.ClassInterpretation; | ||
23 | import org.eclipse.viatra.solver.language.solverLanguage.ClosureType; | ||
24 | import org.eclipse.viatra.solver.language.solverLanguage.ComplexObject; | ||
25 | import org.eclipse.viatra.solver.language.solverLanguage.Constraint; | ||
26 | import org.eclipse.viatra.solver.language.solverLanguage.DataObject; | ||
27 | import org.eclipse.viatra.solver.language.solverLanguage.DataSymbol; | ||
28 | import org.eclipse.viatra.solver.language.solverLanguage.DefaultInterpretation; | ||
29 | import org.eclipse.viatra.solver.language.solverLanguage.EnumInterpretation; | ||
30 | import org.eclipse.viatra.solver.language.solverLanguage.EqualsSymbol; | ||
31 | import org.eclipse.viatra.solver.language.solverLanguage.ErrorPredicate; | ||
32 | import org.eclipse.viatra.solver.language.solverLanguage.ExistSymbol; | ||
33 | import org.eclipse.viatra.solver.language.solverLanguage.False; | ||
34 | import org.eclipse.viatra.solver.language.solverLanguage.FieldRelationInterpretation; | ||
35 | import org.eclipse.viatra.solver.language.solverLanguage.GlobalRelationInterpretation; | ||
36 | import org.eclipse.viatra.solver.language.solverLanguage.IntObject; | ||
37 | import org.eclipse.viatra.solver.language.solverLanguage.IntegerSymbol; | ||
38 | import org.eclipse.viatra.solver.language.solverLanguage.Interpretation; | ||
39 | import org.eclipse.viatra.solver.language.solverLanguage.IrreflexiveClosure; | ||
40 | import org.eclipse.viatra.solver.language.solverLanguage.Literal; | ||
41 | import org.eclipse.viatra.solver.language.solverLanguage.ModelSymbol; | ||
42 | import org.eclipse.viatra.solver.language.solverLanguage.MultiplicityDefinition; | ||
43 | import org.eclipse.viatra.solver.language.solverLanguage.NamedObject; | ||
44 | import org.eclipse.viatra.solver.language.solverLanguage.Negative; | ||
45 | import org.eclipse.viatra.solver.language.solverLanguage.Parameter; | ||
46 | import org.eclipse.viatra.solver.language.solverLanguage.PartialitySymbol; | ||
47 | import org.eclipse.viatra.solver.language.solverLanguage.PatternBody; | ||
48 | import org.eclipse.viatra.solver.language.solverLanguage.Polarity; | ||
49 | import org.eclipse.viatra.solver.language.solverLanguage.Positive; | ||
50 | import org.eclipse.viatra.solver.language.solverLanguage.Predicate; | ||
51 | import org.eclipse.viatra.solver.language.solverLanguage.PredicateSymbol; | ||
52 | import org.eclipse.viatra.solver.language.solverLanguage.Problem; | ||
53 | import org.eclipse.viatra.solver.language.solverLanguage.RealObject; | ||
54 | import org.eclipse.viatra.solver.language.solverLanguage.RealSymbol; | ||
55 | import org.eclipse.viatra.solver.language.solverLanguage.ReflexiveClosure; | ||
56 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguageFactory; | ||
57 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
58 | import org.eclipse.viatra.solver.language.solverLanguage.Statement; | ||
59 | import org.eclipse.viatra.solver.language.solverLanguage.StringObject; | ||
60 | import org.eclipse.viatra.solver.language.solverLanguage.StringSymbol; | ||
61 | import org.eclipse.viatra.solver.language.solverLanguage.Symbol; | ||
62 | import org.eclipse.viatra.solver.language.solverLanguage.True; | ||
63 | import org.eclipse.viatra.solver.language.solverLanguage.TruthValue; | ||
64 | import org.eclipse.viatra.solver.language.solverLanguage.Unknown; | ||
65 | import org.eclipse.viatra.solver.language.solverLanguage.UnnamedObject; | ||
66 | import org.eclipse.viatra.solver.language.solverLanguage.Variable; | ||
67 | |||
68 | /** | ||
69 | * <!-- begin-user-doc --> | ||
70 | * An implementation of the model <b>Package</b>. | ||
71 | * <!-- end-user-doc --> | ||
72 | * @generated | ||
73 | */ | ||
74 | public class SolverLanguagePackageImpl extends EPackageImpl implements SolverLanguagePackage | ||
75 | { | ||
76 | /** | ||
77 | * <!-- begin-user-doc --> | ||
78 | * <!-- end-user-doc --> | ||
79 | * @generated | ||
80 | */ | ||
81 | private EClass problemEClass = null; | ||
82 | |||
83 | /** | ||
84 | * <!-- begin-user-doc --> | ||
85 | * <!-- end-user-doc --> | ||
86 | * @generated | ||
87 | */ | ||
88 | private EClass statementEClass = null; | ||
89 | |||
90 | /** | ||
91 | * <!-- begin-user-doc --> | ||
92 | * <!-- end-user-doc --> | ||
93 | * @generated | ||
94 | */ | ||
95 | private EClass booleanValueEClass = null; | ||
96 | |||
97 | /** | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @generated | ||
101 | */ | ||
102 | private EClass truthValueEClass = null; | ||
103 | |||
104 | /** | ||
105 | * <!-- begin-user-doc --> | ||
106 | * <!-- end-user-doc --> | ||
107 | * @generated | ||
108 | */ | ||
109 | private EClass interpretationEClass = null; | ||
110 | |||
111 | /** | ||
112 | * <!-- begin-user-doc --> | ||
113 | * <!-- end-user-doc --> | ||
114 | * @generated | ||
115 | */ | ||
116 | private EClass basicInterpretationEClass = null; | ||
117 | |||
118 | /** | ||
119 | * <!-- begin-user-doc --> | ||
120 | * <!-- end-user-doc --> | ||
121 | * @generated | ||
122 | */ | ||
123 | private EClass symbolEClass = null; | ||
124 | |||
125 | /** | ||
126 | * <!-- begin-user-doc --> | ||
127 | * <!-- end-user-doc --> | ||
128 | * @generated | ||
129 | */ | ||
130 | private EClass modelSymbolEClass = null; | ||
131 | |||
132 | /** | ||
133 | * <!-- begin-user-doc --> | ||
134 | * <!-- end-user-doc --> | ||
135 | * @generated | ||
136 | */ | ||
137 | private EClass partialitySymbolEClass = null; | ||
138 | |||
139 | /** | ||
140 | * <!-- begin-user-doc --> | ||
141 | * <!-- end-user-doc --> | ||
142 | * @generated | ||
143 | */ | ||
144 | private EClass existSymbolEClass = null; | ||
145 | |||
146 | /** | ||
147 | * <!-- begin-user-doc --> | ||
148 | * <!-- end-user-doc --> | ||
149 | * @generated | ||
150 | */ | ||
151 | private EClass equalsSymbolEClass = null; | ||
152 | |||
153 | /** | ||
154 | * <!-- begin-user-doc --> | ||
155 | * <!-- end-user-doc --> | ||
156 | * @generated | ||
157 | */ | ||
158 | private EClass dataSymbolEClass = null; | ||
159 | |||
160 | /** | ||
161 | * <!-- begin-user-doc --> | ||
162 | * <!-- end-user-doc --> | ||
163 | * @generated | ||
164 | */ | ||
165 | private EClass booleanSymbolEClass = null; | ||
166 | |||
167 | /** | ||
168 | * <!-- begin-user-doc --> | ||
169 | * <!-- end-user-doc --> | ||
170 | * @generated | ||
171 | */ | ||
172 | private EClass integerSymbolEClass = null; | ||
173 | |||
174 | /** | ||
175 | * <!-- begin-user-doc --> | ||
176 | * <!-- end-user-doc --> | ||
177 | * @generated | ||
178 | */ | ||
179 | private EClass realSymbolEClass = null; | ||
180 | |||
181 | /** | ||
182 | * <!-- begin-user-doc --> | ||
183 | * <!-- end-user-doc --> | ||
184 | * @generated | ||
185 | */ | ||
186 | private EClass stringSymbolEClass = null; | ||
187 | |||
188 | /** | ||
189 | * <!-- begin-user-doc --> | ||
190 | * <!-- end-user-doc --> | ||
191 | * @generated | ||
192 | */ | ||
193 | private EClass complexObjectEClass = null; | ||
194 | |||
195 | /** | ||
196 | * <!-- begin-user-doc --> | ||
197 | * <!-- end-user-doc --> | ||
198 | * @generated | ||
199 | */ | ||
200 | private EClass objectEClass = null; | ||
201 | |||
202 | /** | ||
203 | * <!-- begin-user-doc --> | ||
204 | * <!-- end-user-doc --> | ||
205 | * @generated | ||
206 | */ | ||
207 | private EClass namedObjectEClass = null; | ||
208 | |||
209 | /** | ||
210 | * <!-- begin-user-doc --> | ||
211 | * <!-- end-user-doc --> | ||
212 | * @generated | ||
213 | */ | ||
214 | private EClass unnamedObjectEClass = null; | ||
215 | |||
216 | /** | ||
217 | * <!-- begin-user-doc --> | ||
218 | * <!-- end-user-doc --> | ||
219 | * @generated | ||
220 | */ | ||
221 | private EClass dataObjectEClass = null; | ||
222 | |||
223 | /** | ||
224 | * <!-- begin-user-doc --> | ||
225 | * <!-- end-user-doc --> | ||
226 | * @generated | ||
227 | */ | ||
228 | private EClass booleanObjectEClass = null; | ||
229 | |||
230 | /** | ||
231 | * <!-- begin-user-doc --> | ||
232 | * <!-- end-user-doc --> | ||
233 | * @generated | ||
234 | */ | ||
235 | private EClass intObjectEClass = null; | ||
236 | |||
237 | /** | ||
238 | * <!-- begin-user-doc --> | ||
239 | * <!-- end-user-doc --> | ||
240 | * @generated | ||
241 | */ | ||
242 | private EClass realObjectEClass = null; | ||
243 | |||
244 | /** | ||
245 | * <!-- begin-user-doc --> | ||
246 | * <!-- end-user-doc --> | ||
247 | * @generated | ||
248 | */ | ||
249 | private EClass stringObjectEClass = null; | ||
250 | |||
251 | /** | ||
252 | * <!-- begin-user-doc --> | ||
253 | * <!-- end-user-doc --> | ||
254 | * @generated | ||
255 | */ | ||
256 | private EClass predicateEClass = null; | ||
257 | |||
258 | /** | ||
259 | * <!-- begin-user-doc --> | ||
260 | * <!-- end-user-doc --> | ||
261 | * @generated | ||
262 | */ | ||
263 | private EClass predicateSymbolEClass = null; | ||
264 | |||
265 | /** | ||
266 | * <!-- begin-user-doc --> | ||
267 | * <!-- end-user-doc --> | ||
268 | * @generated | ||
269 | */ | ||
270 | private EClass errorPredicateEClass = null; | ||
271 | |||
272 | /** | ||
273 | * <!-- begin-user-doc --> | ||
274 | * <!-- end-user-doc --> | ||
275 | * @generated | ||
276 | */ | ||
277 | private EClass parameterEClass = null; | ||
278 | |||
279 | /** | ||
280 | * <!-- begin-user-doc --> | ||
281 | * <!-- end-user-doc --> | ||
282 | * @generated | ||
283 | */ | ||
284 | private EClass patternBodyEClass = null; | ||
285 | |||
286 | /** | ||
287 | * <!-- begin-user-doc --> | ||
288 | * <!-- end-user-doc --> | ||
289 | * @generated | ||
290 | */ | ||
291 | private EClass polarityEClass = null; | ||
292 | |||
293 | /** | ||
294 | * <!-- begin-user-doc --> | ||
295 | * <!-- end-user-doc --> | ||
296 | * @generated | ||
297 | */ | ||
298 | private EClass constraintEClass = null; | ||
299 | |||
300 | /** | ||
301 | * <!-- begin-user-doc --> | ||
302 | * <!-- end-user-doc --> | ||
303 | * @generated | ||
304 | */ | ||
305 | private EClass closureTypeEClass = null; | ||
306 | |||
307 | /** | ||
308 | * <!-- begin-user-doc --> | ||
309 | * <!-- end-user-doc --> | ||
310 | * @generated | ||
311 | */ | ||
312 | private EClass literalEClass = null; | ||
313 | |||
314 | /** | ||
315 | * <!-- begin-user-doc --> | ||
316 | * <!-- end-user-doc --> | ||
317 | * @generated | ||
318 | */ | ||
319 | private EClass variableEClass = null; | ||
320 | |||
321 | /** | ||
322 | * <!-- begin-user-doc --> | ||
323 | * <!-- end-user-doc --> | ||
324 | * @generated | ||
325 | */ | ||
326 | private EClass allInstancesEClass = null; | ||
327 | |||
328 | /** | ||
329 | * <!-- begin-user-doc --> | ||
330 | * <!-- end-user-doc --> | ||
331 | * @generated | ||
332 | */ | ||
333 | private EClass allObjectsEClass = null; | ||
334 | |||
335 | /** | ||
336 | * <!-- begin-user-doc --> | ||
337 | * <!-- end-user-doc --> | ||
338 | * @generated | ||
339 | */ | ||
340 | private EClass defaultInterpretationEClass = null; | ||
341 | |||
342 | /** | ||
343 | * <!-- begin-user-doc --> | ||
344 | * <!-- end-user-doc --> | ||
345 | * @generated | ||
346 | */ | ||
347 | private EClass cdInterpretationEClass = null; | ||
348 | |||
349 | /** | ||
350 | * <!-- begin-user-doc --> | ||
351 | * <!-- end-user-doc --> | ||
352 | * @generated | ||
353 | */ | ||
354 | private EClass classInterpretationEClass = null; | ||
355 | |||
356 | /** | ||
357 | * <!-- begin-user-doc --> | ||
358 | * <!-- end-user-doc --> | ||
359 | * @generated | ||
360 | */ | ||
361 | private EClass enumInterpretationEClass = null; | ||
362 | |||
363 | /** | ||
364 | * <!-- begin-user-doc --> | ||
365 | * <!-- end-user-doc --> | ||
366 | * @generated | ||
367 | */ | ||
368 | private EClass fieldRelationInterpretationEClass = null; | ||
369 | |||
370 | /** | ||
371 | * <!-- begin-user-doc --> | ||
372 | * <!-- end-user-doc --> | ||
373 | * @generated | ||
374 | */ | ||
375 | private EClass globalRelationInterpretationEClass = null; | ||
376 | |||
377 | /** | ||
378 | * <!-- begin-user-doc --> | ||
379 | * <!-- end-user-doc --> | ||
380 | * @generated | ||
381 | */ | ||
382 | private EClass multiplicityDefinitionEClass = null; | ||
383 | |||
384 | /** | ||
385 | * <!-- begin-user-doc --> | ||
386 | * <!-- end-user-doc --> | ||
387 | * @generated | ||
388 | */ | ||
389 | private EClass booleanTrueEClass = null; | ||
390 | |||
391 | /** | ||
392 | * <!-- begin-user-doc --> | ||
393 | * <!-- end-user-doc --> | ||
394 | * @generated | ||
395 | */ | ||
396 | private EClass booleanFalseEClass = null; | ||
397 | |||
398 | /** | ||
399 | * <!-- begin-user-doc --> | ||
400 | * <!-- end-user-doc --> | ||
401 | * @generated | ||
402 | */ | ||
403 | private EClass trueEClass = null; | ||
404 | |||
405 | /** | ||
406 | * <!-- begin-user-doc --> | ||
407 | * <!-- end-user-doc --> | ||
408 | * @generated | ||
409 | */ | ||
410 | private EClass falseEClass = null; | ||
411 | |||
412 | /** | ||
413 | * <!-- begin-user-doc --> | ||
414 | * <!-- end-user-doc --> | ||
415 | * @generated | ||
416 | */ | ||
417 | private EClass unknownEClass = null; | ||
418 | |||
419 | /** | ||
420 | * <!-- begin-user-doc --> | ||
421 | * <!-- end-user-doc --> | ||
422 | * @generated | ||
423 | */ | ||
424 | private EClass errorEClass = null; | ||
425 | |||
426 | /** | ||
427 | * <!-- begin-user-doc --> | ||
428 | * <!-- end-user-doc --> | ||
429 | * @generated | ||
430 | */ | ||
431 | private EClass positiveEClass = null; | ||
432 | |||
433 | /** | ||
434 | * <!-- begin-user-doc --> | ||
435 | * <!-- end-user-doc --> | ||
436 | * @generated | ||
437 | */ | ||
438 | private EClass negativeEClass = null; | ||
439 | |||
440 | /** | ||
441 | * <!-- begin-user-doc --> | ||
442 | * <!-- end-user-doc --> | ||
443 | * @generated | ||
444 | */ | ||
445 | private EClass reflexiveClosureEClass = null; | ||
446 | |||
447 | /** | ||
448 | * <!-- begin-user-doc --> | ||
449 | * <!-- end-user-doc --> | ||
450 | * @generated | ||
451 | */ | ||
452 | private EClass irreflexiveClosureEClass = null; | ||
453 | |||
454 | /** | ||
455 | * Creates an instance of the model <b>Package</b>, registered with | ||
456 | * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package | ||
457 | * package URI value. | ||
458 | * <p>Note: the correct way to create the package is via the static | ||
459 | * factory method {@link #init init()}, which also performs | ||
460 | * initialization of the package, or returns the registered package, | ||
461 | * if one already exists. | ||
462 | * <!-- begin-user-doc --> | ||
463 | * <!-- end-user-doc --> | ||
464 | * @see org.eclipse.emf.ecore.EPackage.Registry | ||
465 | * @see org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage#eNS_URI | ||
466 | * @see #init() | ||
467 | * @generated | ||
468 | */ | ||
469 | private SolverLanguagePackageImpl() | ||
470 | { | ||
471 | super(eNS_URI, SolverLanguageFactory.eINSTANCE); | ||
472 | } | ||
473 | |||
474 | /** | ||
475 | * <!-- begin-user-doc --> | ||
476 | * <!-- end-user-doc --> | ||
477 | * @generated | ||
478 | */ | ||
479 | private static boolean isInited = false; | ||
480 | |||
481 | /** | ||
482 | * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. | ||
483 | * | ||
484 | * <p>This method is used to initialize {@link SolverLanguagePackage#eINSTANCE} when that field is accessed. | ||
485 | * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. | ||
486 | * <!-- begin-user-doc --> | ||
487 | * <!-- end-user-doc --> | ||
488 | * @see #eNS_URI | ||
489 | * @see #createPackageContents() | ||
490 | * @see #initializePackageContents() | ||
491 | * @generated | ||
492 | */ | ||
493 | public static SolverLanguagePackage init() | ||
494 | { | ||
495 | if (isInited) return (SolverLanguagePackage)EPackage.Registry.INSTANCE.getEPackage(SolverLanguagePackage.eNS_URI); | ||
496 | |||
497 | // Obtain or create and register package | ||
498 | Object registeredSolverLanguagePackage = EPackage.Registry.INSTANCE.get(eNS_URI); | ||
499 | SolverLanguagePackageImpl theSolverLanguagePackage = registeredSolverLanguagePackage instanceof SolverLanguagePackageImpl ? (SolverLanguagePackageImpl)registeredSolverLanguagePackage : new SolverLanguagePackageImpl(); | ||
500 | |||
501 | isInited = true; | ||
502 | |||
503 | // Create package meta-data objects | ||
504 | theSolverLanguagePackage.createPackageContents(); | ||
505 | |||
506 | // Initialize created meta-data | ||
507 | theSolverLanguagePackage.initializePackageContents(); | ||
508 | |||
509 | // Mark meta-data to indicate it can't be changed | ||
510 | theSolverLanguagePackage.freeze(); | ||
511 | |||
512 | // Update the registry and return the package | ||
513 | EPackage.Registry.INSTANCE.put(SolverLanguagePackage.eNS_URI, theSolverLanguagePackage); | ||
514 | return theSolverLanguagePackage; | ||
515 | } | ||
516 | |||
517 | /** | ||
518 | * <!-- begin-user-doc --> | ||
519 | * <!-- end-user-doc --> | ||
520 | * @generated | ||
521 | */ | ||
522 | @Override | ||
523 | public EClass getProblem() | ||
524 | { | ||
525 | return problemEClass; | ||
526 | } | ||
527 | |||
528 | /** | ||
529 | * <!-- begin-user-doc --> | ||
530 | * <!-- end-user-doc --> | ||
531 | * @generated | ||
532 | */ | ||
533 | @Override | ||
534 | public EReference getProblem_Statements() | ||
535 | { | ||
536 | return (EReference)problemEClass.getEStructuralFeatures().get(0); | ||
537 | } | ||
538 | |||
539 | /** | ||
540 | * <!-- begin-user-doc --> | ||
541 | * <!-- end-user-doc --> | ||
542 | * @generated | ||
543 | */ | ||
544 | @Override | ||
545 | public EClass getStatement() | ||
546 | { | ||
547 | return statementEClass; | ||
548 | } | ||
549 | |||
550 | /** | ||
551 | * <!-- begin-user-doc --> | ||
552 | * <!-- end-user-doc --> | ||
553 | * @generated | ||
554 | */ | ||
555 | @Override | ||
556 | public EClass getBooleanValue() | ||
557 | { | ||
558 | return booleanValueEClass; | ||
559 | } | ||
560 | |||
561 | /** | ||
562 | * <!-- begin-user-doc --> | ||
563 | * <!-- end-user-doc --> | ||
564 | * @generated | ||
565 | */ | ||
566 | @Override | ||
567 | public EClass getTruthValue() | ||
568 | { | ||
569 | return truthValueEClass; | ||
570 | } | ||
571 | |||
572 | /** | ||
573 | * <!-- begin-user-doc --> | ||
574 | * <!-- end-user-doc --> | ||
575 | * @generated | ||
576 | */ | ||
577 | @Override | ||
578 | public EClass getInterpretation() | ||
579 | { | ||
580 | return interpretationEClass; | ||
581 | } | ||
582 | |||
583 | /** | ||
584 | * <!-- begin-user-doc --> | ||
585 | * <!-- end-user-doc --> | ||
586 | * @generated | ||
587 | */ | ||
588 | @Override | ||
589 | public EClass getBasicInterpretation() | ||
590 | { | ||
591 | return basicInterpretationEClass; | ||
592 | } | ||
593 | |||
594 | /** | ||
595 | * <!-- begin-user-doc --> | ||
596 | * <!-- end-user-doc --> | ||
597 | * @generated | ||
598 | */ | ||
599 | @Override | ||
600 | public EReference getBasicInterpretation_Symbol() | ||
601 | { | ||
602 | return (EReference)basicInterpretationEClass.getEStructuralFeatures().get(0); | ||
603 | } | ||
604 | |||
605 | /** | ||
606 | * <!-- begin-user-doc --> | ||
607 | * <!-- end-user-doc --> | ||
608 | * @generated | ||
609 | */ | ||
610 | @Override | ||
611 | public EReference getBasicInterpretation_Objects() | ||
612 | { | ||
613 | return (EReference)basicInterpretationEClass.getEStructuralFeatures().get(1); | ||
614 | } | ||
615 | |||
616 | /** | ||
617 | * <!-- begin-user-doc --> | ||
618 | * <!-- end-user-doc --> | ||
619 | * @generated | ||
620 | */ | ||
621 | @Override | ||
622 | public EReference getBasicInterpretation_Value() | ||
623 | { | ||
624 | return (EReference)basicInterpretationEClass.getEStructuralFeatures().get(2); | ||
625 | } | ||
626 | |||
627 | /** | ||
628 | * <!-- begin-user-doc --> | ||
629 | * <!-- end-user-doc --> | ||
630 | * @generated | ||
631 | */ | ||
632 | @Override | ||
633 | public EClass getSymbol() | ||
634 | { | ||
635 | return symbolEClass; | ||
636 | } | ||
637 | |||
638 | /** | ||
639 | * <!-- begin-user-doc --> | ||
640 | * <!-- end-user-doc --> | ||
641 | * @generated | ||
642 | */ | ||
643 | @Override | ||
644 | public EClass getModelSymbol() | ||
645 | { | ||
646 | return modelSymbolEClass; | ||
647 | } | ||
648 | |||
649 | /** | ||
650 | * <!-- begin-user-doc --> | ||
651 | * <!-- end-user-doc --> | ||
652 | * @generated | ||
653 | */ | ||
654 | @Override | ||
655 | public EAttribute getModelSymbol_Name() | ||
656 | { | ||
657 | return (EAttribute)modelSymbolEClass.getEStructuralFeatures().get(0); | ||
658 | } | ||
659 | |||
660 | /** | ||
661 | * <!-- begin-user-doc --> | ||
662 | * <!-- end-user-doc --> | ||
663 | * @generated | ||
664 | */ | ||
665 | @Override | ||
666 | public EClass getPartialitySymbol() | ||
667 | { | ||
668 | return partialitySymbolEClass; | ||
669 | } | ||
670 | |||
671 | /** | ||
672 | * <!-- begin-user-doc --> | ||
673 | * <!-- end-user-doc --> | ||
674 | * @generated | ||
675 | */ | ||
676 | @Override | ||
677 | public EClass getExistSymbol() | ||
678 | { | ||
679 | return existSymbolEClass; | ||
680 | } | ||
681 | |||
682 | /** | ||
683 | * <!-- begin-user-doc --> | ||
684 | * <!-- end-user-doc --> | ||
685 | * @generated | ||
686 | */ | ||
687 | @Override | ||
688 | public EClass getEqualsSymbol() | ||
689 | { | ||
690 | return equalsSymbolEClass; | ||
691 | } | ||
692 | |||
693 | /** | ||
694 | * <!-- begin-user-doc --> | ||
695 | * <!-- end-user-doc --> | ||
696 | * @generated | ||
697 | */ | ||
698 | @Override | ||
699 | public EClass getDataSymbol() | ||
700 | { | ||
701 | return dataSymbolEClass; | ||
702 | } | ||
703 | |||
704 | /** | ||
705 | * <!-- begin-user-doc --> | ||
706 | * <!-- end-user-doc --> | ||
707 | * @generated | ||
708 | */ | ||
709 | @Override | ||
710 | public EClass getBooleanSymbol() | ||
711 | { | ||
712 | return booleanSymbolEClass; | ||
713 | } | ||
714 | |||
715 | /** | ||
716 | * <!-- begin-user-doc --> | ||
717 | * <!-- end-user-doc --> | ||
718 | * @generated | ||
719 | */ | ||
720 | @Override | ||
721 | public EClass getIntegerSymbol() | ||
722 | { | ||
723 | return integerSymbolEClass; | ||
724 | } | ||
725 | |||
726 | /** | ||
727 | * <!-- begin-user-doc --> | ||
728 | * <!-- end-user-doc --> | ||
729 | * @generated | ||
730 | */ | ||
731 | @Override | ||
732 | public EClass getRealSymbol() | ||
733 | { | ||
734 | return realSymbolEClass; | ||
735 | } | ||
736 | |||
737 | /** | ||
738 | * <!-- begin-user-doc --> | ||
739 | * <!-- end-user-doc --> | ||
740 | * @generated | ||
741 | */ | ||
742 | @Override | ||
743 | public EClass getStringSymbol() | ||
744 | { | ||
745 | return stringSymbolEClass; | ||
746 | } | ||
747 | |||
748 | /** | ||
749 | * <!-- begin-user-doc --> | ||
750 | * <!-- end-user-doc --> | ||
751 | * @generated | ||
752 | */ | ||
753 | @Override | ||
754 | public EClass getComplexObject() | ||
755 | { | ||
756 | return complexObjectEClass; | ||
757 | } | ||
758 | |||
759 | /** | ||
760 | * <!-- begin-user-doc --> | ||
761 | * <!-- end-user-doc --> | ||
762 | * @generated | ||
763 | */ | ||
764 | @Override | ||
765 | public EClass getObject() | ||
766 | { | ||
767 | return objectEClass; | ||
768 | } | ||
769 | |||
770 | /** | ||
771 | * <!-- begin-user-doc --> | ||
772 | * <!-- end-user-doc --> | ||
773 | * @generated | ||
774 | */ | ||
775 | @Override | ||
776 | public EClass getNamedObject() | ||
777 | { | ||
778 | return namedObjectEClass; | ||
779 | } | ||
780 | |||
781 | /** | ||
782 | * <!-- begin-user-doc --> | ||
783 | * <!-- end-user-doc --> | ||
784 | * @generated | ||
785 | */ | ||
786 | @Override | ||
787 | public EAttribute getNamedObject_Name() | ||
788 | { | ||
789 | return (EAttribute)namedObjectEClass.getEStructuralFeatures().get(0); | ||
790 | } | ||
791 | |||
792 | /** | ||
793 | * <!-- begin-user-doc --> | ||
794 | * <!-- end-user-doc --> | ||
795 | * @generated | ||
796 | */ | ||
797 | @Override | ||
798 | public EClass getUnnamedObject() | ||
799 | { | ||
800 | return unnamedObjectEClass; | ||
801 | } | ||
802 | |||
803 | /** | ||
804 | * <!-- begin-user-doc --> | ||
805 | * <!-- end-user-doc --> | ||
806 | * @generated | ||
807 | */ | ||
808 | @Override | ||
809 | public EAttribute getUnnamedObject_Name() | ||
810 | { | ||
811 | return (EAttribute)unnamedObjectEClass.getEStructuralFeatures().get(0); | ||
812 | } | ||
813 | |||
814 | /** | ||
815 | * <!-- begin-user-doc --> | ||
816 | * <!-- end-user-doc --> | ||
817 | * @generated | ||
818 | */ | ||
819 | @Override | ||
820 | public EClass getDataObject() | ||
821 | { | ||
822 | return dataObjectEClass; | ||
823 | } | ||
824 | |||
825 | /** | ||
826 | * <!-- begin-user-doc --> | ||
827 | * <!-- end-user-doc --> | ||
828 | * @generated | ||
829 | */ | ||
830 | @Override | ||
831 | public EClass getBooleanObject() | ||
832 | { | ||
833 | return booleanObjectEClass; | ||
834 | } | ||
835 | |||
836 | /** | ||
837 | * <!-- begin-user-doc --> | ||
838 | * <!-- end-user-doc --> | ||
839 | * @generated | ||
840 | */ | ||
841 | @Override | ||
842 | public EReference getBooleanObject_Value() | ||
843 | { | ||
844 | return (EReference)booleanObjectEClass.getEStructuralFeatures().get(0); | ||
845 | } | ||
846 | |||
847 | /** | ||
848 | * <!-- begin-user-doc --> | ||
849 | * <!-- end-user-doc --> | ||
850 | * @generated | ||
851 | */ | ||
852 | @Override | ||
853 | public EClass getIntObject() | ||
854 | { | ||
855 | return intObjectEClass; | ||
856 | } | ||
857 | |||
858 | /** | ||
859 | * <!-- begin-user-doc --> | ||
860 | * <!-- end-user-doc --> | ||
861 | * @generated | ||
862 | */ | ||
863 | @Override | ||
864 | public EAttribute getIntObject_Value() | ||
865 | { | ||
866 | return (EAttribute)intObjectEClass.getEStructuralFeatures().get(0); | ||
867 | } | ||
868 | |||
869 | /** | ||
870 | * <!-- begin-user-doc --> | ||
871 | * <!-- end-user-doc --> | ||
872 | * @generated | ||
873 | */ | ||
874 | @Override | ||
875 | public EClass getRealObject() | ||
876 | { | ||
877 | return realObjectEClass; | ||
878 | } | ||
879 | |||
880 | /** | ||
881 | * <!-- begin-user-doc --> | ||
882 | * <!-- end-user-doc --> | ||
883 | * @generated | ||
884 | */ | ||
885 | @Override | ||
886 | public EAttribute getRealObject_Value() | ||
887 | { | ||
888 | return (EAttribute)realObjectEClass.getEStructuralFeatures().get(0); | ||
889 | } | ||
890 | |||
891 | /** | ||
892 | * <!-- begin-user-doc --> | ||
893 | * <!-- end-user-doc --> | ||
894 | * @generated | ||
895 | */ | ||
896 | @Override | ||
897 | public EClass getStringObject() | ||
898 | { | ||
899 | return stringObjectEClass; | ||
900 | } | ||
901 | |||
902 | /** | ||
903 | * <!-- begin-user-doc --> | ||
904 | * <!-- end-user-doc --> | ||
905 | * @generated | ||
906 | */ | ||
907 | @Override | ||
908 | public EAttribute getStringObject_Value() | ||
909 | { | ||
910 | return (EAttribute)stringObjectEClass.getEStructuralFeatures().get(0); | ||
911 | } | ||
912 | |||
913 | /** | ||
914 | * <!-- begin-user-doc --> | ||
915 | * <!-- end-user-doc --> | ||
916 | * @generated | ||
917 | */ | ||
918 | @Override | ||
919 | public EClass getPredicate() | ||
920 | { | ||
921 | return predicateEClass; | ||
922 | } | ||
923 | |||
924 | /** | ||
925 | * <!-- begin-user-doc --> | ||
926 | * <!-- end-user-doc --> | ||
927 | * @generated | ||
928 | */ | ||
929 | @Override | ||
930 | public EReference getPredicate_Parameters() | ||
931 | { | ||
932 | return (EReference)predicateEClass.getEStructuralFeatures().get(0); | ||
933 | } | ||
934 | |||
935 | /** | ||
936 | * <!-- begin-user-doc --> | ||
937 | * <!-- end-user-doc --> | ||
938 | * @generated | ||
939 | */ | ||
940 | @Override | ||
941 | public EReference getPredicate_Bodies() | ||
942 | { | ||
943 | return (EReference)predicateEClass.getEStructuralFeatures().get(1); | ||
944 | } | ||
945 | |||
946 | /** | ||
947 | * <!-- begin-user-doc --> | ||
948 | * <!-- end-user-doc --> | ||
949 | * @generated | ||
950 | */ | ||
951 | @Override | ||
952 | public EClass getPredicateSymbol() | ||
953 | { | ||
954 | return predicateSymbolEClass; | ||
955 | } | ||
956 | |||
957 | /** | ||
958 | * <!-- begin-user-doc --> | ||
959 | * <!-- end-user-doc --> | ||
960 | * @generated | ||
961 | */ | ||
962 | @Override | ||
963 | public EReference getPredicateSymbol_Symbol() | ||
964 | { | ||
965 | return (EReference)predicateSymbolEClass.getEStructuralFeatures().get(0); | ||
966 | } | ||
967 | |||
968 | /** | ||
969 | * <!-- begin-user-doc --> | ||
970 | * <!-- end-user-doc --> | ||
971 | * @generated | ||
972 | */ | ||
973 | @Override | ||
974 | public EClass getErrorPredicate() | ||
975 | { | ||
976 | return errorPredicateEClass; | ||
977 | } | ||
978 | |||
979 | /** | ||
980 | * <!-- begin-user-doc --> | ||
981 | * <!-- end-user-doc --> | ||
982 | * @generated | ||
983 | */ | ||
984 | @Override | ||
985 | public EAttribute getErrorPredicate_Name() | ||
986 | { | ||
987 | return (EAttribute)errorPredicateEClass.getEStructuralFeatures().get(0); | ||
988 | } | ||
989 | |||
990 | /** | ||
991 | * <!-- begin-user-doc --> | ||
992 | * <!-- end-user-doc --> | ||
993 | * @generated | ||
994 | */ | ||
995 | @Override | ||
996 | public EClass getParameter() | ||
997 | { | ||
998 | return parameterEClass; | ||
999 | } | ||
1000 | |||
1001 | /** | ||
1002 | * <!-- begin-user-doc --> | ||
1003 | * <!-- end-user-doc --> | ||
1004 | * @generated | ||
1005 | */ | ||
1006 | @Override | ||
1007 | public EReference getParameter_Variable() | ||
1008 | { | ||
1009 | return (EReference)parameterEClass.getEStructuralFeatures().get(0); | ||
1010 | } | ||
1011 | |||
1012 | /** | ||
1013 | * <!-- begin-user-doc --> | ||
1014 | * <!-- end-user-doc --> | ||
1015 | * @generated | ||
1016 | */ | ||
1017 | @Override | ||
1018 | public EReference getParameter_Type() | ||
1019 | { | ||
1020 | return (EReference)parameterEClass.getEStructuralFeatures().get(1); | ||
1021 | } | ||
1022 | |||
1023 | /** | ||
1024 | * <!-- begin-user-doc --> | ||
1025 | * <!-- end-user-doc --> | ||
1026 | * @generated | ||
1027 | */ | ||
1028 | @Override | ||
1029 | public EClass getPatternBody() | ||
1030 | { | ||
1031 | return patternBodyEClass; | ||
1032 | } | ||
1033 | |||
1034 | /** | ||
1035 | * <!-- begin-user-doc --> | ||
1036 | * <!-- end-user-doc --> | ||
1037 | * @generated | ||
1038 | */ | ||
1039 | @Override | ||
1040 | public EReference getPatternBody_Constraints() | ||
1041 | { | ||
1042 | return (EReference)patternBodyEClass.getEStructuralFeatures().get(0); | ||
1043 | } | ||
1044 | |||
1045 | /** | ||
1046 | * <!-- begin-user-doc --> | ||
1047 | * <!-- end-user-doc --> | ||
1048 | * @generated | ||
1049 | */ | ||
1050 | @Override | ||
1051 | public EClass getPolarity() | ||
1052 | { | ||
1053 | return polarityEClass; | ||
1054 | } | ||
1055 | |||
1056 | /** | ||
1057 | * <!-- begin-user-doc --> | ||
1058 | * <!-- end-user-doc --> | ||
1059 | * @generated | ||
1060 | */ | ||
1061 | @Override | ||
1062 | public EClass getConstraint() | ||
1063 | { | ||
1064 | return constraintEClass; | ||
1065 | } | ||
1066 | |||
1067 | /** | ||
1068 | * <!-- begin-user-doc --> | ||
1069 | * <!-- end-user-doc --> | ||
1070 | * @generated | ||
1071 | */ | ||
1072 | @Override | ||
1073 | public EReference getConstraint_Polarity() | ||
1074 | { | ||
1075 | return (EReference)constraintEClass.getEStructuralFeatures().get(0); | ||
1076 | } | ||
1077 | |||
1078 | /** | ||
1079 | * <!-- begin-user-doc --> | ||
1080 | * <!-- end-user-doc --> | ||
1081 | * @generated | ||
1082 | */ | ||
1083 | @Override | ||
1084 | public EReference getConstraint_Symbol() | ||
1085 | { | ||
1086 | return (EReference)constraintEClass.getEStructuralFeatures().get(1); | ||
1087 | } | ||
1088 | |||
1089 | /** | ||
1090 | * <!-- begin-user-doc --> | ||
1091 | * <!-- end-user-doc --> | ||
1092 | * @generated | ||
1093 | */ | ||
1094 | @Override | ||
1095 | public EReference getConstraint_Params() | ||
1096 | { | ||
1097 | return (EReference)constraintEClass.getEStructuralFeatures().get(2); | ||
1098 | } | ||
1099 | |||
1100 | /** | ||
1101 | * <!-- begin-user-doc --> | ||
1102 | * <!-- end-user-doc --> | ||
1103 | * @generated | ||
1104 | */ | ||
1105 | @Override | ||
1106 | public EReference getConstraint_ClosureType() | ||
1107 | { | ||
1108 | return (EReference)constraintEClass.getEStructuralFeatures().get(3); | ||
1109 | } | ||
1110 | |||
1111 | /** | ||
1112 | * <!-- begin-user-doc --> | ||
1113 | * <!-- end-user-doc --> | ||
1114 | * @generated | ||
1115 | */ | ||
1116 | @Override | ||
1117 | public EClass getClosureType() | ||
1118 | { | ||
1119 | return closureTypeEClass; | ||
1120 | } | ||
1121 | |||
1122 | /** | ||
1123 | * <!-- begin-user-doc --> | ||
1124 | * <!-- end-user-doc --> | ||
1125 | * @generated | ||
1126 | */ | ||
1127 | @Override | ||
1128 | public EClass getLiteral() | ||
1129 | { | ||
1130 | return literalEClass; | ||
1131 | } | ||
1132 | |||
1133 | /** | ||
1134 | * <!-- begin-user-doc --> | ||
1135 | * <!-- end-user-doc --> | ||
1136 | * @generated | ||
1137 | */ | ||
1138 | @Override | ||
1139 | public EClass getVariable() | ||
1140 | { | ||
1141 | return variableEClass; | ||
1142 | } | ||
1143 | |||
1144 | /** | ||
1145 | * <!-- begin-user-doc --> | ||
1146 | * <!-- end-user-doc --> | ||
1147 | * @generated | ||
1148 | */ | ||
1149 | @Override | ||
1150 | public EAttribute getVariable_Name() | ||
1151 | { | ||
1152 | return (EAttribute)variableEClass.getEStructuralFeatures().get(0); | ||
1153 | } | ||
1154 | |||
1155 | /** | ||
1156 | * <!-- begin-user-doc --> | ||
1157 | * <!-- end-user-doc --> | ||
1158 | * @generated | ||
1159 | */ | ||
1160 | @Override | ||
1161 | public EClass getAllInstances() | ||
1162 | { | ||
1163 | return allInstancesEClass; | ||
1164 | } | ||
1165 | |||
1166 | /** | ||
1167 | * <!-- begin-user-doc --> | ||
1168 | * <!-- end-user-doc --> | ||
1169 | * @generated | ||
1170 | */ | ||
1171 | @Override | ||
1172 | public EReference getAllInstances_Symbol() | ||
1173 | { | ||
1174 | return (EReference)allInstancesEClass.getEStructuralFeatures().get(0); | ||
1175 | } | ||
1176 | |||
1177 | /** | ||
1178 | * <!-- begin-user-doc --> | ||
1179 | * <!-- end-user-doc --> | ||
1180 | * @generated | ||
1181 | */ | ||
1182 | @Override | ||
1183 | public EClass getAllObjects() | ||
1184 | { | ||
1185 | return allObjectsEClass; | ||
1186 | } | ||
1187 | |||
1188 | /** | ||
1189 | * <!-- begin-user-doc --> | ||
1190 | * <!-- end-user-doc --> | ||
1191 | * @generated | ||
1192 | */ | ||
1193 | @Override | ||
1194 | public EClass getDefaultInterpretation() | ||
1195 | { | ||
1196 | return defaultInterpretationEClass; | ||
1197 | } | ||
1198 | |||
1199 | /** | ||
1200 | * <!-- begin-user-doc --> | ||
1201 | * <!-- end-user-doc --> | ||
1202 | * @generated | ||
1203 | */ | ||
1204 | @Override | ||
1205 | public EReference getDefaultInterpretation_Interpretation() | ||
1206 | { | ||
1207 | return (EReference)defaultInterpretationEClass.getEStructuralFeatures().get(0); | ||
1208 | } | ||
1209 | |||
1210 | /** | ||
1211 | * <!-- begin-user-doc --> | ||
1212 | * <!-- end-user-doc --> | ||
1213 | * @generated | ||
1214 | */ | ||
1215 | @Override | ||
1216 | public EClass getCDInterpretation() | ||
1217 | { | ||
1218 | return cdInterpretationEClass; | ||
1219 | } | ||
1220 | |||
1221 | /** | ||
1222 | * <!-- begin-user-doc --> | ||
1223 | * <!-- end-user-doc --> | ||
1224 | * @generated | ||
1225 | */ | ||
1226 | @Override | ||
1227 | public EClass getClassInterpretation() | ||
1228 | { | ||
1229 | return classInterpretationEClass; | ||
1230 | } | ||
1231 | |||
1232 | /** | ||
1233 | * <!-- begin-user-doc --> | ||
1234 | * <!-- end-user-doc --> | ||
1235 | * @generated | ||
1236 | */ | ||
1237 | @Override | ||
1238 | public EAttribute getClassInterpretation_Abstract() | ||
1239 | { | ||
1240 | return (EAttribute)classInterpretationEClass.getEStructuralFeatures().get(0); | ||
1241 | } | ||
1242 | |||
1243 | /** | ||
1244 | * <!-- begin-user-doc --> | ||
1245 | * <!-- end-user-doc --> | ||
1246 | * @generated | ||
1247 | */ | ||
1248 | @Override | ||
1249 | public EReference getClassInterpretation_Symbol() | ||
1250 | { | ||
1251 | return (EReference)classInterpretationEClass.getEStructuralFeatures().get(1); | ||
1252 | } | ||
1253 | |||
1254 | /** | ||
1255 | * <!-- begin-user-doc --> | ||
1256 | * <!-- end-user-doc --> | ||
1257 | * @generated | ||
1258 | */ | ||
1259 | @Override | ||
1260 | public EReference getClassInterpretation_Supertypes() | ||
1261 | { | ||
1262 | return (EReference)classInterpretationEClass.getEStructuralFeatures().get(2); | ||
1263 | } | ||
1264 | |||
1265 | /** | ||
1266 | * <!-- begin-user-doc --> | ||
1267 | * <!-- end-user-doc --> | ||
1268 | * @generated | ||
1269 | */ | ||
1270 | @Override | ||
1271 | public EReference getClassInterpretation_Fielt() | ||
1272 | { | ||
1273 | return (EReference)classInterpretationEClass.getEStructuralFeatures().get(3); | ||
1274 | } | ||
1275 | |||
1276 | /** | ||
1277 | * <!-- begin-user-doc --> | ||
1278 | * <!-- end-user-doc --> | ||
1279 | * @generated | ||
1280 | */ | ||
1281 | @Override | ||
1282 | public EClass getEnumInterpretation() | ||
1283 | { | ||
1284 | return enumInterpretationEClass; | ||
1285 | } | ||
1286 | |||
1287 | /** | ||
1288 | * <!-- begin-user-doc --> | ||
1289 | * <!-- end-user-doc --> | ||
1290 | * @generated | ||
1291 | */ | ||
1292 | @Override | ||
1293 | public EReference getEnumInterpretation_Symbol() | ||
1294 | { | ||
1295 | return (EReference)enumInterpretationEClass.getEStructuralFeatures().get(0); | ||
1296 | } | ||
1297 | |||
1298 | /** | ||
1299 | * <!-- begin-user-doc --> | ||
1300 | * <!-- end-user-doc --> | ||
1301 | * @generated | ||
1302 | */ | ||
1303 | @Override | ||
1304 | public EReference getEnumInterpretation_Objects() | ||
1305 | { | ||
1306 | return (EReference)enumInterpretationEClass.getEStructuralFeatures().get(1); | ||
1307 | } | ||
1308 | |||
1309 | /** | ||
1310 | * <!-- begin-user-doc --> | ||
1311 | * <!-- end-user-doc --> | ||
1312 | * @generated | ||
1313 | */ | ||
1314 | @Override | ||
1315 | public EClass getFieldRelationInterpretation() | ||
1316 | { | ||
1317 | return fieldRelationInterpretationEClass; | ||
1318 | } | ||
1319 | |||
1320 | /** | ||
1321 | * <!-- begin-user-doc --> | ||
1322 | * <!-- end-user-doc --> | ||
1323 | * @generated | ||
1324 | */ | ||
1325 | @Override | ||
1326 | public EAttribute getFieldRelationInterpretation_Containment() | ||
1327 | { | ||
1328 | return (EAttribute)fieldRelationInterpretationEClass.getEStructuralFeatures().get(0); | ||
1329 | } | ||
1330 | |||
1331 | /** | ||
1332 | * <!-- begin-user-doc --> | ||
1333 | * <!-- end-user-doc --> | ||
1334 | * @generated | ||
1335 | */ | ||
1336 | @Override | ||
1337 | public EReference getFieldRelationInterpretation_Symbol() | ||
1338 | { | ||
1339 | return (EReference)fieldRelationInterpretationEClass.getEStructuralFeatures().get(1); | ||
1340 | } | ||
1341 | |||
1342 | /** | ||
1343 | * <!-- begin-user-doc --> | ||
1344 | * <!-- end-user-doc --> | ||
1345 | * @generated | ||
1346 | */ | ||
1347 | @Override | ||
1348 | public EReference getFieldRelationInterpretation_Multiplicity() | ||
1349 | { | ||
1350 | return (EReference)fieldRelationInterpretationEClass.getEStructuralFeatures().get(2); | ||
1351 | } | ||
1352 | |||
1353 | /** | ||
1354 | * <!-- begin-user-doc --> | ||
1355 | * <!-- end-user-doc --> | ||
1356 | * @generated | ||
1357 | */ | ||
1358 | @Override | ||
1359 | public EReference getFieldRelationInterpretation_Target() | ||
1360 | { | ||
1361 | return (EReference)fieldRelationInterpretationEClass.getEStructuralFeatures().get(3); | ||
1362 | } | ||
1363 | |||
1364 | /** | ||
1365 | * <!-- begin-user-doc --> | ||
1366 | * <!-- end-user-doc --> | ||
1367 | * @generated | ||
1368 | */ | ||
1369 | @Override | ||
1370 | public EClass getGlobalRelationInterpretation() | ||
1371 | { | ||
1372 | return globalRelationInterpretationEClass; | ||
1373 | } | ||
1374 | |||
1375 | /** | ||
1376 | * <!-- begin-user-doc --> | ||
1377 | * <!-- end-user-doc --> | ||
1378 | * @generated | ||
1379 | */ | ||
1380 | @Override | ||
1381 | public EAttribute getGlobalRelationInterpretation_Containment() | ||
1382 | { | ||
1383 | return (EAttribute)globalRelationInterpretationEClass.getEStructuralFeatures().get(0); | ||
1384 | } | ||
1385 | |||
1386 | /** | ||
1387 | * <!-- begin-user-doc --> | ||
1388 | * <!-- end-user-doc --> | ||
1389 | * @generated | ||
1390 | */ | ||
1391 | @Override | ||
1392 | public EReference getGlobalRelationInterpretation_Symbol() | ||
1393 | { | ||
1394 | return (EReference)globalRelationInterpretationEClass.getEStructuralFeatures().get(1); | ||
1395 | } | ||
1396 | |||
1397 | /** | ||
1398 | * <!-- begin-user-doc --> | ||
1399 | * <!-- end-user-doc --> | ||
1400 | * @generated | ||
1401 | */ | ||
1402 | @Override | ||
1403 | public EReference getGlobalRelationInterpretation_SourceMultiplicity() | ||
1404 | { | ||
1405 | return (EReference)globalRelationInterpretationEClass.getEStructuralFeatures().get(2); | ||
1406 | } | ||
1407 | |||
1408 | /** | ||
1409 | * <!-- begin-user-doc --> | ||
1410 | * <!-- end-user-doc --> | ||
1411 | * @generated | ||
1412 | */ | ||
1413 | @Override | ||
1414 | public EReference getGlobalRelationInterpretation_Source() | ||
1415 | { | ||
1416 | return (EReference)globalRelationInterpretationEClass.getEStructuralFeatures().get(3); | ||
1417 | } | ||
1418 | |||
1419 | /** | ||
1420 | * <!-- begin-user-doc --> | ||
1421 | * <!-- end-user-doc --> | ||
1422 | * @generated | ||
1423 | */ | ||
1424 | @Override | ||
1425 | public EReference getGlobalRelationInterpretation_TargetMultiplicity() | ||
1426 | { | ||
1427 | return (EReference)globalRelationInterpretationEClass.getEStructuralFeatures().get(4); | ||
1428 | } | ||
1429 | |||
1430 | /** | ||
1431 | * <!-- begin-user-doc --> | ||
1432 | * <!-- end-user-doc --> | ||
1433 | * @generated | ||
1434 | */ | ||
1435 | @Override | ||
1436 | public EReference getGlobalRelationInterpretation_Target() | ||
1437 | { | ||
1438 | return (EReference)globalRelationInterpretationEClass.getEStructuralFeatures().get(5); | ||
1439 | } | ||
1440 | |||
1441 | /** | ||
1442 | * <!-- begin-user-doc --> | ||
1443 | * <!-- end-user-doc --> | ||
1444 | * @generated | ||
1445 | */ | ||
1446 | @Override | ||
1447 | public EClass getMultiplicityDefinition() | ||
1448 | { | ||
1449 | return multiplicityDefinitionEClass; | ||
1450 | } | ||
1451 | |||
1452 | /** | ||
1453 | * <!-- begin-user-doc --> | ||
1454 | * <!-- end-user-doc --> | ||
1455 | * @generated | ||
1456 | */ | ||
1457 | @Override | ||
1458 | public EAttribute getMultiplicityDefinition_Lower() | ||
1459 | { | ||
1460 | return (EAttribute)multiplicityDefinitionEClass.getEStructuralFeatures().get(0); | ||
1461 | } | ||
1462 | |||
1463 | /** | ||
1464 | * <!-- begin-user-doc --> | ||
1465 | * <!-- end-user-doc --> | ||
1466 | * @generated | ||
1467 | */ | ||
1468 | @Override | ||
1469 | public EAttribute getMultiplicityDefinition_Upper() | ||
1470 | { | ||
1471 | return (EAttribute)multiplicityDefinitionEClass.getEStructuralFeatures().get(1); | ||
1472 | } | ||
1473 | |||
1474 | /** | ||
1475 | * <!-- begin-user-doc --> | ||
1476 | * <!-- end-user-doc --> | ||
1477 | * @generated | ||
1478 | */ | ||
1479 | @Override | ||
1480 | public EAttribute getMultiplicityDefinition_UnlimitedUpper() | ||
1481 | { | ||
1482 | return (EAttribute)multiplicityDefinitionEClass.getEStructuralFeatures().get(2); | ||
1483 | } | ||
1484 | |||
1485 | /** | ||
1486 | * <!-- begin-user-doc --> | ||
1487 | * <!-- end-user-doc --> | ||
1488 | * @generated | ||
1489 | */ | ||
1490 | @Override | ||
1491 | public EClass getBooleanTrue() | ||
1492 | { | ||
1493 | return booleanTrueEClass; | ||
1494 | } | ||
1495 | |||
1496 | /** | ||
1497 | * <!-- begin-user-doc --> | ||
1498 | * <!-- end-user-doc --> | ||
1499 | * @generated | ||
1500 | */ | ||
1501 | @Override | ||
1502 | public EClass getBooleanFalse() | ||
1503 | { | ||
1504 | return booleanFalseEClass; | ||
1505 | } | ||
1506 | |||
1507 | /** | ||
1508 | * <!-- begin-user-doc --> | ||
1509 | * <!-- end-user-doc --> | ||
1510 | * @generated | ||
1511 | */ | ||
1512 | @Override | ||
1513 | public EClass getTrue() | ||
1514 | { | ||
1515 | return trueEClass; | ||
1516 | } | ||
1517 | |||
1518 | /** | ||
1519 | * <!-- begin-user-doc --> | ||
1520 | * <!-- end-user-doc --> | ||
1521 | * @generated | ||
1522 | */ | ||
1523 | @Override | ||
1524 | public EClass getFalse() | ||
1525 | { | ||
1526 | return falseEClass; | ||
1527 | } | ||
1528 | |||
1529 | /** | ||
1530 | * <!-- begin-user-doc --> | ||
1531 | * <!-- end-user-doc --> | ||
1532 | * @generated | ||
1533 | */ | ||
1534 | @Override | ||
1535 | public EClass getUnknown() | ||
1536 | { | ||
1537 | return unknownEClass; | ||
1538 | } | ||
1539 | |||
1540 | /** | ||
1541 | * <!-- begin-user-doc --> | ||
1542 | * <!-- end-user-doc --> | ||
1543 | * @generated | ||
1544 | */ | ||
1545 | @Override | ||
1546 | public EClass getError() | ||
1547 | { | ||
1548 | return errorEClass; | ||
1549 | } | ||
1550 | |||
1551 | /** | ||
1552 | * <!-- begin-user-doc --> | ||
1553 | * <!-- end-user-doc --> | ||
1554 | * @generated | ||
1555 | */ | ||
1556 | @Override | ||
1557 | public EClass getPositive() | ||
1558 | { | ||
1559 | return positiveEClass; | ||
1560 | } | ||
1561 | |||
1562 | /** | ||
1563 | * <!-- begin-user-doc --> | ||
1564 | * <!-- end-user-doc --> | ||
1565 | * @generated | ||
1566 | */ | ||
1567 | @Override | ||
1568 | public EClass getNegative() | ||
1569 | { | ||
1570 | return negativeEClass; | ||
1571 | } | ||
1572 | |||
1573 | /** | ||
1574 | * <!-- begin-user-doc --> | ||
1575 | * <!-- end-user-doc --> | ||
1576 | * @generated | ||
1577 | */ | ||
1578 | @Override | ||
1579 | public EClass getReflexiveClosure() | ||
1580 | { | ||
1581 | return reflexiveClosureEClass; | ||
1582 | } | ||
1583 | |||
1584 | /** | ||
1585 | * <!-- begin-user-doc --> | ||
1586 | * <!-- end-user-doc --> | ||
1587 | * @generated | ||
1588 | */ | ||
1589 | @Override | ||
1590 | public EClass getIrreflexiveClosure() | ||
1591 | { | ||
1592 | return irreflexiveClosureEClass; | ||
1593 | } | ||
1594 | |||
1595 | /** | ||
1596 | * <!-- begin-user-doc --> | ||
1597 | * <!-- end-user-doc --> | ||
1598 | * @generated | ||
1599 | */ | ||
1600 | @Override | ||
1601 | public SolverLanguageFactory getSolverLanguageFactory() | ||
1602 | { | ||
1603 | return (SolverLanguageFactory)getEFactoryInstance(); | ||
1604 | } | ||
1605 | |||
1606 | /** | ||
1607 | * <!-- begin-user-doc --> | ||
1608 | * <!-- end-user-doc --> | ||
1609 | * @generated | ||
1610 | */ | ||
1611 | private boolean isCreated = false; | ||
1612 | |||
1613 | /** | ||
1614 | * Creates the meta-model objects for the package. This method is | ||
1615 | * guarded to have no affect on any invocation but its first. | ||
1616 | * <!-- begin-user-doc --> | ||
1617 | * <!-- end-user-doc --> | ||
1618 | * @generated | ||
1619 | */ | ||
1620 | public void createPackageContents() | ||
1621 | { | ||
1622 | if (isCreated) return; | ||
1623 | isCreated = true; | ||
1624 | |||
1625 | // Create classes and their features | ||
1626 | problemEClass = createEClass(PROBLEM); | ||
1627 | createEReference(problemEClass, PROBLEM__STATEMENTS); | ||
1628 | |||
1629 | statementEClass = createEClass(STATEMENT); | ||
1630 | |||
1631 | booleanValueEClass = createEClass(BOOLEAN_VALUE); | ||
1632 | |||
1633 | truthValueEClass = createEClass(TRUTH_VALUE); | ||
1634 | |||
1635 | interpretationEClass = createEClass(INTERPRETATION); | ||
1636 | |||
1637 | basicInterpretationEClass = createEClass(BASIC_INTERPRETATION); | ||
1638 | createEReference(basicInterpretationEClass, BASIC_INTERPRETATION__SYMBOL); | ||
1639 | createEReference(basicInterpretationEClass, BASIC_INTERPRETATION__OBJECTS); | ||
1640 | createEReference(basicInterpretationEClass, BASIC_INTERPRETATION__VALUE); | ||
1641 | |||
1642 | symbolEClass = createEClass(SYMBOL); | ||
1643 | |||
1644 | modelSymbolEClass = createEClass(MODEL_SYMBOL); | ||
1645 | createEAttribute(modelSymbolEClass, MODEL_SYMBOL__NAME); | ||
1646 | |||
1647 | partialitySymbolEClass = createEClass(PARTIALITY_SYMBOL); | ||
1648 | |||
1649 | existSymbolEClass = createEClass(EXIST_SYMBOL); | ||
1650 | |||
1651 | equalsSymbolEClass = createEClass(EQUALS_SYMBOL); | ||
1652 | |||
1653 | dataSymbolEClass = createEClass(DATA_SYMBOL); | ||
1654 | |||
1655 | booleanSymbolEClass = createEClass(BOOLEAN_SYMBOL); | ||
1656 | |||
1657 | integerSymbolEClass = createEClass(INTEGER_SYMBOL); | ||
1658 | |||
1659 | realSymbolEClass = createEClass(REAL_SYMBOL); | ||
1660 | |||
1661 | stringSymbolEClass = createEClass(STRING_SYMBOL); | ||
1662 | |||
1663 | complexObjectEClass = createEClass(COMPLEX_OBJECT); | ||
1664 | |||
1665 | objectEClass = createEClass(OBJECT); | ||
1666 | |||
1667 | namedObjectEClass = createEClass(NAMED_OBJECT); | ||
1668 | createEAttribute(namedObjectEClass, NAMED_OBJECT__NAME); | ||
1669 | |||
1670 | unnamedObjectEClass = createEClass(UNNAMED_OBJECT); | ||
1671 | createEAttribute(unnamedObjectEClass, UNNAMED_OBJECT__NAME); | ||
1672 | |||
1673 | dataObjectEClass = createEClass(DATA_OBJECT); | ||
1674 | |||
1675 | booleanObjectEClass = createEClass(BOOLEAN_OBJECT); | ||
1676 | createEReference(booleanObjectEClass, BOOLEAN_OBJECT__VALUE); | ||
1677 | |||
1678 | intObjectEClass = createEClass(INT_OBJECT); | ||
1679 | createEAttribute(intObjectEClass, INT_OBJECT__VALUE); | ||
1680 | |||
1681 | realObjectEClass = createEClass(REAL_OBJECT); | ||
1682 | createEAttribute(realObjectEClass, REAL_OBJECT__VALUE); | ||
1683 | |||
1684 | stringObjectEClass = createEClass(STRING_OBJECT); | ||
1685 | createEAttribute(stringObjectEClass, STRING_OBJECT__VALUE); | ||
1686 | |||
1687 | predicateEClass = createEClass(PREDICATE); | ||
1688 | createEReference(predicateEClass, PREDICATE__PARAMETERS); | ||
1689 | createEReference(predicateEClass, PREDICATE__BODIES); | ||
1690 | |||
1691 | predicateSymbolEClass = createEClass(PREDICATE_SYMBOL); | ||
1692 | createEReference(predicateSymbolEClass, PREDICATE_SYMBOL__SYMBOL); | ||
1693 | |||
1694 | errorPredicateEClass = createEClass(ERROR_PREDICATE); | ||
1695 | createEAttribute(errorPredicateEClass, ERROR_PREDICATE__NAME); | ||
1696 | |||
1697 | parameterEClass = createEClass(PARAMETER); | ||
1698 | createEReference(parameterEClass, PARAMETER__VARIABLE); | ||
1699 | createEReference(parameterEClass, PARAMETER__TYPE); | ||
1700 | |||
1701 | patternBodyEClass = createEClass(PATTERN_BODY); | ||
1702 | createEReference(patternBodyEClass, PATTERN_BODY__CONSTRAINTS); | ||
1703 | |||
1704 | polarityEClass = createEClass(POLARITY); | ||
1705 | |||
1706 | constraintEClass = createEClass(CONSTRAINT); | ||
1707 | createEReference(constraintEClass, CONSTRAINT__POLARITY); | ||
1708 | createEReference(constraintEClass, CONSTRAINT__SYMBOL); | ||
1709 | createEReference(constraintEClass, CONSTRAINT__PARAMS); | ||
1710 | createEReference(constraintEClass, CONSTRAINT__CLOSURE_TYPE); | ||
1711 | |||
1712 | closureTypeEClass = createEClass(CLOSURE_TYPE); | ||
1713 | |||
1714 | literalEClass = createEClass(LITERAL); | ||
1715 | |||
1716 | variableEClass = createEClass(VARIABLE); | ||
1717 | createEAttribute(variableEClass, VARIABLE__NAME); | ||
1718 | |||
1719 | allInstancesEClass = createEClass(ALL_INSTANCES); | ||
1720 | createEReference(allInstancesEClass, ALL_INSTANCES__SYMBOL); | ||
1721 | |||
1722 | allObjectsEClass = createEClass(ALL_OBJECTS); | ||
1723 | |||
1724 | defaultInterpretationEClass = createEClass(DEFAULT_INTERPRETATION); | ||
1725 | createEReference(defaultInterpretationEClass, DEFAULT_INTERPRETATION__INTERPRETATION); | ||
1726 | |||
1727 | cdInterpretationEClass = createEClass(CD_INTERPRETATION); | ||
1728 | |||
1729 | classInterpretationEClass = createEClass(CLASS_INTERPRETATION); | ||
1730 | createEAttribute(classInterpretationEClass, CLASS_INTERPRETATION__ABSTRACT); | ||
1731 | createEReference(classInterpretationEClass, CLASS_INTERPRETATION__SYMBOL); | ||
1732 | createEReference(classInterpretationEClass, CLASS_INTERPRETATION__SUPERTYPES); | ||
1733 | createEReference(classInterpretationEClass, CLASS_INTERPRETATION__FIELT); | ||
1734 | |||
1735 | enumInterpretationEClass = createEClass(ENUM_INTERPRETATION); | ||
1736 | createEReference(enumInterpretationEClass, ENUM_INTERPRETATION__SYMBOL); | ||
1737 | createEReference(enumInterpretationEClass, ENUM_INTERPRETATION__OBJECTS); | ||
1738 | |||
1739 | fieldRelationInterpretationEClass = createEClass(FIELD_RELATION_INTERPRETATION); | ||
1740 | createEAttribute(fieldRelationInterpretationEClass, FIELD_RELATION_INTERPRETATION__CONTAINMENT); | ||
1741 | createEReference(fieldRelationInterpretationEClass, FIELD_RELATION_INTERPRETATION__SYMBOL); | ||
1742 | createEReference(fieldRelationInterpretationEClass, FIELD_RELATION_INTERPRETATION__MULTIPLICITY); | ||
1743 | createEReference(fieldRelationInterpretationEClass, FIELD_RELATION_INTERPRETATION__TARGET); | ||
1744 | |||
1745 | globalRelationInterpretationEClass = createEClass(GLOBAL_RELATION_INTERPRETATION); | ||
1746 | createEAttribute(globalRelationInterpretationEClass, GLOBAL_RELATION_INTERPRETATION__CONTAINMENT); | ||
1747 | createEReference(globalRelationInterpretationEClass, GLOBAL_RELATION_INTERPRETATION__SYMBOL); | ||
1748 | createEReference(globalRelationInterpretationEClass, GLOBAL_RELATION_INTERPRETATION__SOURCE_MULTIPLICITY); | ||
1749 | createEReference(globalRelationInterpretationEClass, GLOBAL_RELATION_INTERPRETATION__SOURCE); | ||
1750 | createEReference(globalRelationInterpretationEClass, GLOBAL_RELATION_INTERPRETATION__TARGET_MULTIPLICITY); | ||
1751 | createEReference(globalRelationInterpretationEClass, GLOBAL_RELATION_INTERPRETATION__TARGET); | ||
1752 | |||
1753 | multiplicityDefinitionEClass = createEClass(MULTIPLICITY_DEFINITION); | ||
1754 | createEAttribute(multiplicityDefinitionEClass, MULTIPLICITY_DEFINITION__LOWER); | ||
1755 | createEAttribute(multiplicityDefinitionEClass, MULTIPLICITY_DEFINITION__UPPER); | ||
1756 | createEAttribute(multiplicityDefinitionEClass, MULTIPLICITY_DEFINITION__UNLIMITED_UPPER); | ||
1757 | |||
1758 | booleanTrueEClass = createEClass(BOOLEAN_TRUE); | ||
1759 | |||
1760 | booleanFalseEClass = createEClass(BOOLEAN_FALSE); | ||
1761 | |||
1762 | trueEClass = createEClass(TRUE); | ||
1763 | |||
1764 | falseEClass = createEClass(FALSE); | ||
1765 | |||
1766 | unknownEClass = createEClass(UNKNOWN); | ||
1767 | |||
1768 | errorEClass = createEClass(ERROR); | ||
1769 | |||
1770 | positiveEClass = createEClass(POSITIVE); | ||
1771 | |||
1772 | negativeEClass = createEClass(NEGATIVE); | ||
1773 | |||
1774 | reflexiveClosureEClass = createEClass(REFLEXIVE_CLOSURE); | ||
1775 | |||
1776 | irreflexiveClosureEClass = createEClass(IRREFLEXIVE_CLOSURE); | ||
1777 | } | ||
1778 | |||
1779 | /** | ||
1780 | * <!-- begin-user-doc --> | ||
1781 | * <!-- end-user-doc --> | ||
1782 | * @generated | ||
1783 | */ | ||
1784 | private boolean isInitialized = false; | ||
1785 | |||
1786 | /** | ||
1787 | * Complete the initialization of the package and its meta-model. This | ||
1788 | * method is guarded to have no affect on any invocation but its first. | ||
1789 | * <!-- begin-user-doc --> | ||
1790 | * <!-- end-user-doc --> | ||
1791 | * @generated | ||
1792 | */ | ||
1793 | public void initializePackageContents() | ||
1794 | { | ||
1795 | if (isInitialized) return; | ||
1796 | isInitialized = true; | ||
1797 | |||
1798 | // Initialize package | ||
1799 | setName(eNAME); | ||
1800 | setNsPrefix(eNS_PREFIX); | ||
1801 | setNsURI(eNS_URI); | ||
1802 | |||
1803 | // Create type parameters | ||
1804 | |||
1805 | // Set bounds for type parameters | ||
1806 | |||
1807 | // Add supertypes to classes | ||
1808 | interpretationEClass.getESuperTypes().add(this.getStatement()); | ||
1809 | basicInterpretationEClass.getESuperTypes().add(this.getInterpretation()); | ||
1810 | modelSymbolEClass.getESuperTypes().add(this.getSymbol()); | ||
1811 | partialitySymbolEClass.getESuperTypes().add(this.getSymbol()); | ||
1812 | existSymbolEClass.getESuperTypes().add(this.getPartialitySymbol()); | ||
1813 | equalsSymbolEClass.getESuperTypes().add(this.getPartialitySymbol()); | ||
1814 | dataSymbolEClass.getESuperTypes().add(this.getSymbol()); | ||
1815 | booleanSymbolEClass.getESuperTypes().add(this.getDataSymbol()); | ||
1816 | integerSymbolEClass.getESuperTypes().add(this.getDataSymbol()); | ||
1817 | realSymbolEClass.getESuperTypes().add(this.getDataSymbol()); | ||
1818 | stringSymbolEClass.getESuperTypes().add(this.getDataSymbol()); | ||
1819 | objectEClass.getESuperTypes().add(this.getComplexObject()); | ||
1820 | namedObjectEClass.getESuperTypes().add(this.getObject()); | ||
1821 | unnamedObjectEClass.getESuperTypes().add(this.getObject()); | ||
1822 | dataObjectEClass.getESuperTypes().add(this.getObject()); | ||
1823 | dataObjectEClass.getESuperTypes().add(this.getLiteral()); | ||
1824 | booleanObjectEClass.getESuperTypes().add(this.getDataObject()); | ||
1825 | intObjectEClass.getESuperTypes().add(this.getDataObject()); | ||
1826 | realObjectEClass.getESuperTypes().add(this.getDataObject()); | ||
1827 | stringObjectEClass.getESuperTypes().add(this.getDataObject()); | ||
1828 | predicateEClass.getESuperTypes().add(this.getStatement()); | ||
1829 | predicateSymbolEClass.getESuperTypes().add(this.getPredicate()); | ||
1830 | errorPredicateEClass.getESuperTypes().add(this.getPredicate()); | ||
1831 | variableEClass.getESuperTypes().add(this.getLiteral()); | ||
1832 | allInstancesEClass.getESuperTypes().add(this.getComplexObject()); | ||
1833 | allObjectsEClass.getESuperTypes().add(this.getComplexObject()); | ||
1834 | defaultInterpretationEClass.getESuperTypes().add(this.getInterpretation()); | ||
1835 | cdInterpretationEClass.getESuperTypes().add(this.getInterpretation()); | ||
1836 | classInterpretationEClass.getESuperTypes().add(this.getCDInterpretation()); | ||
1837 | enumInterpretationEClass.getESuperTypes().add(this.getCDInterpretation()); | ||
1838 | globalRelationInterpretationEClass.getESuperTypes().add(this.getCDInterpretation()); | ||
1839 | booleanTrueEClass.getESuperTypes().add(this.getBooleanValue()); | ||
1840 | booleanFalseEClass.getESuperTypes().add(this.getBooleanValue()); | ||
1841 | trueEClass.getESuperTypes().add(this.getTruthValue()); | ||
1842 | falseEClass.getESuperTypes().add(this.getTruthValue()); | ||
1843 | unknownEClass.getESuperTypes().add(this.getTruthValue()); | ||
1844 | errorEClass.getESuperTypes().add(this.getTruthValue()); | ||
1845 | positiveEClass.getESuperTypes().add(this.getPolarity()); | ||
1846 | negativeEClass.getESuperTypes().add(this.getPolarity()); | ||
1847 | reflexiveClosureEClass.getESuperTypes().add(this.getClosureType()); | ||
1848 | irreflexiveClosureEClass.getESuperTypes().add(this.getClosureType()); | ||
1849 | |||
1850 | // Initialize classes and features; add operations and parameters | ||
1851 | initEClass(problemEClass, Problem.class, "Problem", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1852 | initEReference(getProblem_Statements(), this.getStatement(), null, "statements", null, 0, -1, Problem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1853 | |||
1854 | initEClass(statementEClass, Statement.class, "Statement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1855 | |||
1856 | initEClass(booleanValueEClass, BooleanValue.class, "BooleanValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1857 | |||
1858 | initEClass(truthValueEClass, TruthValue.class, "TruthValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1859 | |||
1860 | initEClass(interpretationEClass, Interpretation.class, "Interpretation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1861 | |||
1862 | initEClass(basicInterpretationEClass, BasicInterpretation.class, "BasicInterpretation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1863 | initEReference(getBasicInterpretation_Symbol(), this.getSymbol(), null, "symbol", null, 0, 1, BasicInterpretation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1864 | initEReference(getBasicInterpretation_Objects(), this.getComplexObject(), null, "objects", null, 0, -1, BasicInterpretation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1865 | initEReference(getBasicInterpretation_Value(), this.getTruthValue(), null, "value", null, 0, 1, BasicInterpretation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1866 | |||
1867 | initEClass(symbolEClass, Symbol.class, "Symbol", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1868 | |||
1869 | initEClass(modelSymbolEClass, ModelSymbol.class, "ModelSymbol", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1870 | initEAttribute(getModelSymbol_Name(), ecorePackage.getEString(), "name", null, 0, 1, ModelSymbol.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1871 | |||
1872 | initEClass(partialitySymbolEClass, PartialitySymbol.class, "PartialitySymbol", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1873 | |||
1874 | initEClass(existSymbolEClass, ExistSymbol.class, "ExistSymbol", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1875 | |||
1876 | initEClass(equalsSymbolEClass, EqualsSymbol.class, "EqualsSymbol", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1877 | |||
1878 | initEClass(dataSymbolEClass, DataSymbol.class, "DataSymbol", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1879 | |||
1880 | initEClass(booleanSymbolEClass, BooleanSymbol.class, "BooleanSymbol", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1881 | |||
1882 | initEClass(integerSymbolEClass, IntegerSymbol.class, "IntegerSymbol", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1883 | |||
1884 | initEClass(realSymbolEClass, RealSymbol.class, "RealSymbol", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1885 | |||
1886 | initEClass(stringSymbolEClass, StringSymbol.class, "StringSymbol", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1887 | |||
1888 | initEClass(complexObjectEClass, ComplexObject.class, "ComplexObject", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1889 | |||
1890 | initEClass(objectEClass, org.eclipse.viatra.solver.language.solverLanguage.Object.class, "Object", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1891 | |||
1892 | initEClass(namedObjectEClass, NamedObject.class, "NamedObject", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1893 | initEAttribute(getNamedObject_Name(), ecorePackage.getEString(), "name", null, 0, 1, NamedObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1894 | |||
1895 | initEClass(unnamedObjectEClass, UnnamedObject.class, "UnnamedObject", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1896 | initEAttribute(getUnnamedObject_Name(), ecorePackage.getEString(), "name", null, 0, 1, UnnamedObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1897 | |||
1898 | initEClass(dataObjectEClass, DataObject.class, "DataObject", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1899 | |||
1900 | initEClass(booleanObjectEClass, BooleanObject.class, "BooleanObject", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1901 | initEReference(getBooleanObject_Value(), this.getBooleanValue(), null, "value", null, 0, 1, BooleanObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1902 | |||
1903 | initEClass(intObjectEClass, IntObject.class, "IntObject", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1904 | initEAttribute(getIntObject_Value(), ecorePackage.getEInt(), "value", null, 0, 1, IntObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1905 | |||
1906 | initEClass(realObjectEClass, RealObject.class, "RealObject", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1907 | initEAttribute(getRealObject_Value(), ecorePackage.getEBigDecimal(), "value", null, 0, 1, RealObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1908 | |||
1909 | initEClass(stringObjectEClass, StringObject.class, "StringObject", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1910 | initEAttribute(getStringObject_Value(), ecorePackage.getEString(), "value", null, 0, 1, StringObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1911 | |||
1912 | initEClass(predicateEClass, Predicate.class, "Predicate", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1913 | initEReference(getPredicate_Parameters(), this.getParameter(), null, "parameters", null, 0, -1, Predicate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1914 | initEReference(getPredicate_Bodies(), this.getPatternBody(), null, "bodies", null, 0, -1, Predicate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1915 | |||
1916 | initEClass(predicateSymbolEClass, PredicateSymbol.class, "PredicateSymbol", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1917 | initEReference(getPredicateSymbol_Symbol(), this.getModelSymbol(), null, "symbol", null, 0, 1, PredicateSymbol.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1918 | |||
1919 | initEClass(errorPredicateEClass, ErrorPredicate.class, "ErrorPredicate", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1920 | initEAttribute(getErrorPredicate_Name(), ecorePackage.getEString(), "name", null, 0, 1, ErrorPredicate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1921 | |||
1922 | initEClass(parameterEClass, Parameter.class, "Parameter", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1923 | initEReference(getParameter_Variable(), this.getVariable(), null, "variable", null, 0, 1, Parameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1924 | initEReference(getParameter_Type(), this.getSymbol(), null, "type", null, 0, 1, Parameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1925 | |||
1926 | initEClass(patternBodyEClass, PatternBody.class, "PatternBody", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1927 | initEReference(getPatternBody_Constraints(), this.getConstraint(), null, "constraints", null, 0, -1, PatternBody.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1928 | |||
1929 | initEClass(polarityEClass, Polarity.class, "Polarity", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1930 | |||
1931 | initEClass(constraintEClass, Constraint.class, "Constraint", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1932 | initEReference(getConstraint_Polarity(), this.getPolarity(), null, "polarity", null, 0, 1, Constraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1933 | initEReference(getConstraint_Symbol(), this.getModelSymbol(), null, "symbol", null, 0, 1, Constraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1934 | initEReference(getConstraint_Params(), this.getLiteral(), null, "params", null, 0, -1, Constraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1935 | initEReference(getConstraint_ClosureType(), this.getClosureType(), null, "closureType", null, 0, 1, Constraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1936 | |||
1937 | initEClass(closureTypeEClass, ClosureType.class, "ClosureType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1938 | |||
1939 | initEClass(literalEClass, Literal.class, "Literal", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1940 | |||
1941 | initEClass(variableEClass, Variable.class, "Variable", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1942 | initEAttribute(getVariable_Name(), ecorePackage.getEString(), "name", null, 0, 1, Variable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1943 | |||
1944 | initEClass(allInstancesEClass, AllInstances.class, "AllInstances", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1945 | initEReference(getAllInstances_Symbol(), this.getSymbol(), null, "symbol", null, 0, 1, AllInstances.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1946 | |||
1947 | initEClass(allObjectsEClass, AllObjects.class, "AllObjects", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1948 | |||
1949 | initEClass(defaultInterpretationEClass, DefaultInterpretation.class, "DefaultInterpretation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1950 | initEReference(getDefaultInterpretation_Interpretation(), this.getBasicInterpretation(), null, "interpretation", null, 0, 1, DefaultInterpretation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1951 | |||
1952 | initEClass(cdInterpretationEClass, CDInterpretation.class, "CDInterpretation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1953 | |||
1954 | initEClass(classInterpretationEClass, ClassInterpretation.class, "ClassInterpretation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1955 | initEAttribute(getClassInterpretation_Abstract(), ecorePackage.getEBoolean(), "abstract", null, 0, 1, ClassInterpretation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1956 | initEReference(getClassInterpretation_Symbol(), this.getModelSymbol(), null, "symbol", null, 0, 1, ClassInterpretation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1957 | initEReference(getClassInterpretation_Supertypes(), this.getModelSymbol(), null, "supertypes", null, 0, -1, ClassInterpretation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1958 | initEReference(getClassInterpretation_Fielt(), this.getFieldRelationInterpretation(), null, "fielt", null, 0, -1, ClassInterpretation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1959 | |||
1960 | initEClass(enumInterpretationEClass, EnumInterpretation.class, "EnumInterpretation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1961 | initEReference(getEnumInterpretation_Symbol(), this.getModelSymbol(), null, "Symbol", null, 0, 1, EnumInterpretation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1962 | initEReference(getEnumInterpretation_Objects(), this.getNamedObject(), null, "objects", null, 0, -1, EnumInterpretation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1963 | |||
1964 | initEClass(fieldRelationInterpretationEClass, FieldRelationInterpretation.class, "FieldRelationInterpretation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1965 | initEAttribute(getFieldRelationInterpretation_Containment(), ecorePackage.getEBoolean(), "containment", null, 0, 1, FieldRelationInterpretation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1966 | initEReference(getFieldRelationInterpretation_Symbol(), this.getModelSymbol(), null, "symbol", null, 0, 1, FieldRelationInterpretation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1967 | initEReference(getFieldRelationInterpretation_Multiplicity(), this.getMultiplicityDefinition(), null, "multiplicity", null, 0, 1, FieldRelationInterpretation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1968 | initEReference(getFieldRelationInterpretation_Target(), this.getSymbol(), null, "target", null, 0, 1, FieldRelationInterpretation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1969 | |||
1970 | initEClass(globalRelationInterpretationEClass, GlobalRelationInterpretation.class, "GlobalRelationInterpretation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1971 | initEAttribute(getGlobalRelationInterpretation_Containment(), ecorePackage.getEBoolean(), "containment", null, 0, 1, GlobalRelationInterpretation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1972 | initEReference(getGlobalRelationInterpretation_Symbol(), this.getModelSymbol(), null, "symbol", null, 0, 1, GlobalRelationInterpretation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1973 | initEReference(getGlobalRelationInterpretation_SourceMultiplicity(), this.getMultiplicityDefinition(), null, "sourceMultiplicity", null, 0, 1, GlobalRelationInterpretation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1974 | initEReference(getGlobalRelationInterpretation_Source(), this.getSymbol(), null, "source", null, 0, 1, GlobalRelationInterpretation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1975 | initEReference(getGlobalRelationInterpretation_TargetMultiplicity(), this.getMultiplicityDefinition(), null, "targetMultiplicity", null, 0, 1, GlobalRelationInterpretation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1976 | initEReference(getGlobalRelationInterpretation_Target(), this.getSymbol(), null, "target", null, 0, 1, GlobalRelationInterpretation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1977 | |||
1978 | initEClass(multiplicityDefinitionEClass, MultiplicityDefinition.class, "MultiplicityDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1979 | initEAttribute(getMultiplicityDefinition_Lower(), ecorePackage.getEInt(), "lower", null, 0, 1, MultiplicityDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1980 | initEAttribute(getMultiplicityDefinition_Upper(), ecorePackage.getEInt(), "upper", null, 0, 1, MultiplicityDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1981 | initEAttribute(getMultiplicityDefinition_UnlimitedUpper(), ecorePackage.getEBoolean(), "unlimitedUpper", null, 0, 1, MultiplicityDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1982 | |||
1983 | initEClass(booleanTrueEClass, BooleanTrue.class, "BooleanTrue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1984 | |||
1985 | initEClass(booleanFalseEClass, BooleanFalse.class, "BooleanFalse", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1986 | |||
1987 | initEClass(trueEClass, True.class, "True", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1988 | |||
1989 | initEClass(falseEClass, False.class, "False", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1990 | |||
1991 | initEClass(unknownEClass, Unknown.class, "Unknown", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1992 | |||
1993 | initEClass(errorEClass, org.eclipse.viatra.solver.language.solverLanguage.Error.class, "Error", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1994 | |||
1995 | initEClass(positiveEClass, Positive.class, "Positive", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1996 | |||
1997 | initEClass(negativeEClass, Negative.class, "Negative", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1998 | |||
1999 | initEClass(reflexiveClosureEClass, ReflexiveClosure.class, "ReflexiveClosure", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2000 | |||
2001 | initEClass(irreflexiveClosureEClass, IrreflexiveClosure.class, "IrreflexiveClosure", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2002 | |||
2003 | // Create resource | ||
2004 | createResource(eNS_URI); | ||
2005 | } | ||
2006 | |||
2007 | } //SolverLanguagePackageImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/StatementImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/StatementImpl.java new file mode 100644 index 00000000..6e660396 --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/StatementImpl.java | |||
@@ -0,0 +1,43 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | |||
8 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
9 | |||
10 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
11 | import org.eclipse.viatra.solver.language.solverLanguage.Statement; | ||
12 | |||
13 | /** | ||
14 | * <!-- begin-user-doc --> | ||
15 | * An implementation of the model object '<em><b>Statement</b></em>'. | ||
16 | * <!-- end-user-doc --> | ||
17 | * | ||
18 | * @generated | ||
19 | */ | ||
20 | public class StatementImpl extends MinimalEObjectImpl.Container implements Statement | ||
21 | { | ||
22 | /** | ||
23 | * <!-- begin-user-doc --> | ||
24 | * <!-- end-user-doc --> | ||
25 | * @generated | ||
26 | */ | ||
27 | protected StatementImpl() | ||
28 | { | ||
29 | super(); | ||
30 | } | ||
31 | |||
32 | /** | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @generated | ||
36 | */ | ||
37 | @Override | ||
38 | protected EClass eStaticClass() | ||
39 | { | ||
40 | return SolverLanguagePackage.Literals.STATEMENT; | ||
41 | } | ||
42 | |||
43 | } //StatementImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/StringObjectImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/StringObjectImpl.java new file mode 100644 index 00000000..7a7866a7 --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/StringObjectImpl.java | |||
@@ -0,0 +1,179 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | |||
10 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
11 | |||
12 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
13 | import org.eclipse.viatra.solver.language.solverLanguage.StringObject; | ||
14 | |||
15 | /** | ||
16 | * <!-- begin-user-doc --> | ||
17 | * An implementation of the model object '<em><b>String Object</b></em>'. | ||
18 | * <!-- end-user-doc --> | ||
19 | * <p> | ||
20 | * The following features are implemented: | ||
21 | * </p> | ||
22 | * <ul> | ||
23 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.StringObjectImpl#getValue <em>Value</em>}</li> | ||
24 | * </ul> | ||
25 | * | ||
26 | * @generated | ||
27 | */ | ||
28 | public class StringObjectImpl extends DataObjectImpl implements StringObject | ||
29 | { | ||
30 | /** | ||
31 | * The default value of the '{@link #getValue() <em>Value</em>}' attribute. | ||
32 | * <!-- begin-user-doc --> | ||
33 | * <!-- end-user-doc --> | ||
34 | * @see #getValue() | ||
35 | * @generated | ||
36 | * @ordered | ||
37 | */ | ||
38 | protected static final String VALUE_EDEFAULT = null; | ||
39 | |||
40 | /** | ||
41 | * The cached value of the '{@link #getValue() <em>Value</em>}' attribute. | ||
42 | * <!-- begin-user-doc --> | ||
43 | * <!-- end-user-doc --> | ||
44 | * @see #getValue() | ||
45 | * @generated | ||
46 | * @ordered | ||
47 | */ | ||
48 | protected String value = VALUE_EDEFAULT; | ||
49 | |||
50 | /** | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @generated | ||
54 | */ | ||
55 | protected StringObjectImpl() | ||
56 | { | ||
57 | super(); | ||
58 | } | ||
59 | |||
60 | /** | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @generated | ||
64 | */ | ||
65 | @Override | ||
66 | protected EClass eStaticClass() | ||
67 | { | ||
68 | return SolverLanguagePackage.Literals.STRING_OBJECT; | ||
69 | } | ||
70 | |||
71 | /** | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @generated | ||
75 | */ | ||
76 | @Override | ||
77 | public String getValue() | ||
78 | { | ||
79 | return value; | ||
80 | } | ||
81 | |||
82 | /** | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @generated | ||
86 | */ | ||
87 | @Override | ||
88 | public void setValue(String newValue) | ||
89 | { | ||
90 | String oldValue = value; | ||
91 | value = newValue; | ||
92 | if (eNotificationRequired()) | ||
93 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.STRING_OBJECT__VALUE, oldValue, value)); | ||
94 | } | ||
95 | |||
96 | /** | ||
97 | * <!-- begin-user-doc --> | ||
98 | * <!-- end-user-doc --> | ||
99 | * @generated | ||
100 | */ | ||
101 | @Override | ||
102 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
103 | { | ||
104 | switch (featureID) | ||
105 | { | ||
106 | case SolverLanguagePackage.STRING_OBJECT__VALUE: | ||
107 | return getValue(); | ||
108 | } | ||
109 | return super.eGet(featureID, resolve, coreType); | ||
110 | } | ||
111 | |||
112 | /** | ||
113 | * <!-- begin-user-doc --> | ||
114 | * <!-- end-user-doc --> | ||
115 | * @generated | ||
116 | */ | ||
117 | @Override | ||
118 | public void eSet(int featureID, Object newValue) | ||
119 | { | ||
120 | switch (featureID) | ||
121 | { | ||
122 | case SolverLanguagePackage.STRING_OBJECT__VALUE: | ||
123 | setValue((String)newValue); | ||
124 | return; | ||
125 | } | ||
126 | super.eSet(featureID, newValue); | ||
127 | } | ||
128 | |||
129 | /** | ||
130 | * <!-- begin-user-doc --> | ||
131 | * <!-- end-user-doc --> | ||
132 | * @generated | ||
133 | */ | ||
134 | @Override | ||
135 | public void eUnset(int featureID) | ||
136 | { | ||
137 | switch (featureID) | ||
138 | { | ||
139 | case SolverLanguagePackage.STRING_OBJECT__VALUE: | ||
140 | setValue(VALUE_EDEFAULT); | ||
141 | return; | ||
142 | } | ||
143 | super.eUnset(featureID); | ||
144 | } | ||
145 | |||
146 | /** | ||
147 | * <!-- begin-user-doc --> | ||
148 | * <!-- end-user-doc --> | ||
149 | * @generated | ||
150 | */ | ||
151 | @Override | ||
152 | public boolean eIsSet(int featureID) | ||
153 | { | ||
154 | switch (featureID) | ||
155 | { | ||
156 | case SolverLanguagePackage.STRING_OBJECT__VALUE: | ||
157 | return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); | ||
158 | } | ||
159 | return super.eIsSet(featureID); | ||
160 | } | ||
161 | |||
162 | /** | ||
163 | * <!-- begin-user-doc --> | ||
164 | * <!-- end-user-doc --> | ||
165 | * @generated | ||
166 | */ | ||
167 | @Override | ||
168 | public String toString() | ||
169 | { | ||
170 | if (eIsProxy()) return super.toString(); | ||
171 | |||
172 | StringBuilder result = new StringBuilder(super.toString()); | ||
173 | result.append(" (value: "); | ||
174 | result.append(value); | ||
175 | result.append(')'); | ||
176 | return result.toString(); | ||
177 | } | ||
178 | |||
179 | } //StringObjectImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/StringSymbolImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/StringSymbolImpl.java new file mode 100644 index 00000000..faf3f06a --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/StringSymbolImpl.java | |||
@@ -0,0 +1,41 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | |||
8 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
9 | import org.eclipse.viatra.solver.language.solverLanguage.StringSymbol; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * An implementation of the model object '<em><b>String Symbol</b></em>'. | ||
14 | * <!-- end-user-doc --> | ||
15 | * | ||
16 | * @generated | ||
17 | */ | ||
18 | public class StringSymbolImpl extends DataSymbolImpl implements StringSymbol | ||
19 | { | ||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * <!-- end-user-doc --> | ||
23 | * @generated | ||
24 | */ | ||
25 | protected StringSymbolImpl() | ||
26 | { | ||
27 | super(); | ||
28 | } | ||
29 | |||
30 | /** | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @generated | ||
34 | */ | ||
35 | @Override | ||
36 | protected EClass eStaticClass() | ||
37 | { | ||
38 | return SolverLanguagePackage.Literals.STRING_SYMBOL; | ||
39 | } | ||
40 | |||
41 | } //StringSymbolImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/SymbolImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/SymbolImpl.java new file mode 100644 index 00000000..15d1294e --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/SymbolImpl.java | |||
@@ -0,0 +1,43 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | |||
8 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
9 | |||
10 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
11 | import org.eclipse.viatra.solver.language.solverLanguage.Symbol; | ||
12 | |||
13 | /** | ||
14 | * <!-- begin-user-doc --> | ||
15 | * An implementation of the model object '<em><b>Symbol</b></em>'. | ||
16 | * <!-- end-user-doc --> | ||
17 | * | ||
18 | * @generated | ||
19 | */ | ||
20 | public class SymbolImpl extends MinimalEObjectImpl.Container implements Symbol | ||
21 | { | ||
22 | /** | ||
23 | * <!-- begin-user-doc --> | ||
24 | * <!-- end-user-doc --> | ||
25 | * @generated | ||
26 | */ | ||
27 | protected SymbolImpl() | ||
28 | { | ||
29 | super(); | ||
30 | } | ||
31 | |||
32 | /** | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @generated | ||
36 | */ | ||
37 | @Override | ||
38 | protected EClass eStaticClass() | ||
39 | { | ||
40 | return SolverLanguagePackage.Literals.SYMBOL; | ||
41 | } | ||
42 | |||
43 | } //SymbolImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/TrueImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/TrueImpl.java new file mode 100644 index 00000000..c0e04a9a --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/TrueImpl.java | |||
@@ -0,0 +1,41 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | |||
8 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
9 | import org.eclipse.viatra.solver.language.solverLanguage.True; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * An implementation of the model object '<em><b>True</b></em>'. | ||
14 | * <!-- end-user-doc --> | ||
15 | * | ||
16 | * @generated | ||
17 | */ | ||
18 | public class TrueImpl extends TruthValueImpl implements True | ||
19 | { | ||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * <!-- end-user-doc --> | ||
23 | * @generated | ||
24 | */ | ||
25 | protected TrueImpl() | ||
26 | { | ||
27 | super(); | ||
28 | } | ||
29 | |||
30 | /** | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @generated | ||
34 | */ | ||
35 | @Override | ||
36 | protected EClass eStaticClass() | ||
37 | { | ||
38 | return SolverLanguagePackage.Literals.TRUE; | ||
39 | } | ||
40 | |||
41 | } //TrueImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/TruthValueImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/TruthValueImpl.java new file mode 100644 index 00000000..f5b0fba6 --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/TruthValueImpl.java | |||
@@ -0,0 +1,43 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | |||
8 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
9 | |||
10 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
11 | import org.eclipse.viatra.solver.language.solverLanguage.TruthValue; | ||
12 | |||
13 | /** | ||
14 | * <!-- begin-user-doc --> | ||
15 | * An implementation of the model object '<em><b>Truth Value</b></em>'. | ||
16 | * <!-- end-user-doc --> | ||
17 | * | ||
18 | * @generated | ||
19 | */ | ||
20 | public class TruthValueImpl extends MinimalEObjectImpl.Container implements TruthValue | ||
21 | { | ||
22 | /** | ||
23 | * <!-- begin-user-doc --> | ||
24 | * <!-- end-user-doc --> | ||
25 | * @generated | ||
26 | */ | ||
27 | protected TruthValueImpl() | ||
28 | { | ||
29 | super(); | ||
30 | } | ||
31 | |||
32 | /** | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @generated | ||
36 | */ | ||
37 | @Override | ||
38 | protected EClass eStaticClass() | ||
39 | { | ||
40 | return SolverLanguagePackage.Literals.TRUTH_VALUE; | ||
41 | } | ||
42 | |||
43 | } //TruthValueImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/UnknownImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/UnknownImpl.java new file mode 100644 index 00000000..44195feb --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/UnknownImpl.java | |||
@@ -0,0 +1,41 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | |||
8 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
9 | import org.eclipse.viatra.solver.language.solverLanguage.Unknown; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * An implementation of the model object '<em><b>Unknown</b></em>'. | ||
14 | * <!-- end-user-doc --> | ||
15 | * | ||
16 | * @generated | ||
17 | */ | ||
18 | public class UnknownImpl extends TruthValueImpl implements Unknown | ||
19 | { | ||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * <!-- end-user-doc --> | ||
23 | * @generated | ||
24 | */ | ||
25 | protected UnknownImpl() | ||
26 | { | ||
27 | super(); | ||
28 | } | ||
29 | |||
30 | /** | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @generated | ||
34 | */ | ||
35 | @Override | ||
36 | protected EClass eStaticClass() | ||
37 | { | ||
38 | return SolverLanguagePackage.Literals.UNKNOWN; | ||
39 | } | ||
40 | |||
41 | } //UnknownImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/UnnamedObjectImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/UnnamedObjectImpl.java new file mode 100644 index 00000000..39bec164 --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/UnnamedObjectImpl.java | |||
@@ -0,0 +1,179 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | |||
10 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
11 | |||
12 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
13 | import org.eclipse.viatra.solver.language.solverLanguage.UnnamedObject; | ||
14 | |||
15 | /** | ||
16 | * <!-- begin-user-doc --> | ||
17 | * An implementation of the model object '<em><b>Unnamed Object</b></em>'. | ||
18 | * <!-- end-user-doc --> | ||
19 | * <p> | ||
20 | * The following features are implemented: | ||
21 | * </p> | ||
22 | * <ul> | ||
23 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.UnnamedObjectImpl#getName <em>Name</em>}</li> | ||
24 | * </ul> | ||
25 | * | ||
26 | * @generated | ||
27 | */ | ||
28 | public class UnnamedObjectImpl extends ObjectImpl implements UnnamedObject | ||
29 | { | ||
30 | /** | ||
31 | * The default value of the '{@link #getName() <em>Name</em>}' attribute. | ||
32 | * <!-- begin-user-doc --> | ||
33 | * <!-- end-user-doc --> | ||
34 | * @see #getName() | ||
35 | * @generated | ||
36 | * @ordered | ||
37 | */ | ||
38 | protected static final String NAME_EDEFAULT = null; | ||
39 | |||
40 | /** | ||
41 | * The cached value of the '{@link #getName() <em>Name</em>}' attribute. | ||
42 | * <!-- begin-user-doc --> | ||
43 | * <!-- end-user-doc --> | ||
44 | * @see #getName() | ||
45 | * @generated | ||
46 | * @ordered | ||
47 | */ | ||
48 | protected String name = NAME_EDEFAULT; | ||
49 | |||
50 | /** | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @generated | ||
54 | */ | ||
55 | protected UnnamedObjectImpl() | ||
56 | { | ||
57 | super(); | ||
58 | } | ||
59 | |||
60 | /** | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @generated | ||
64 | */ | ||
65 | @Override | ||
66 | protected EClass eStaticClass() | ||
67 | { | ||
68 | return SolverLanguagePackage.Literals.UNNAMED_OBJECT; | ||
69 | } | ||
70 | |||
71 | /** | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @generated | ||
75 | */ | ||
76 | @Override | ||
77 | public String getName() | ||
78 | { | ||
79 | return name; | ||
80 | } | ||
81 | |||
82 | /** | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @generated | ||
86 | */ | ||
87 | @Override | ||
88 | public void setName(String newName) | ||
89 | { | ||
90 | String oldName = name; | ||
91 | name = newName; | ||
92 | if (eNotificationRequired()) | ||
93 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.UNNAMED_OBJECT__NAME, oldName, name)); | ||
94 | } | ||
95 | |||
96 | /** | ||
97 | * <!-- begin-user-doc --> | ||
98 | * <!-- end-user-doc --> | ||
99 | * @generated | ||
100 | */ | ||
101 | @Override | ||
102 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
103 | { | ||
104 | switch (featureID) | ||
105 | { | ||
106 | case SolverLanguagePackage.UNNAMED_OBJECT__NAME: | ||
107 | return getName(); | ||
108 | } | ||
109 | return super.eGet(featureID, resolve, coreType); | ||
110 | } | ||
111 | |||
112 | /** | ||
113 | * <!-- begin-user-doc --> | ||
114 | * <!-- end-user-doc --> | ||
115 | * @generated | ||
116 | */ | ||
117 | @Override | ||
118 | public void eSet(int featureID, Object newValue) | ||
119 | { | ||
120 | switch (featureID) | ||
121 | { | ||
122 | case SolverLanguagePackage.UNNAMED_OBJECT__NAME: | ||
123 | setName((String)newValue); | ||
124 | return; | ||
125 | } | ||
126 | super.eSet(featureID, newValue); | ||
127 | } | ||
128 | |||
129 | /** | ||
130 | * <!-- begin-user-doc --> | ||
131 | * <!-- end-user-doc --> | ||
132 | * @generated | ||
133 | */ | ||
134 | @Override | ||
135 | public void eUnset(int featureID) | ||
136 | { | ||
137 | switch (featureID) | ||
138 | { | ||
139 | case SolverLanguagePackage.UNNAMED_OBJECT__NAME: | ||
140 | setName(NAME_EDEFAULT); | ||
141 | return; | ||
142 | } | ||
143 | super.eUnset(featureID); | ||
144 | } | ||
145 | |||
146 | /** | ||
147 | * <!-- begin-user-doc --> | ||
148 | * <!-- end-user-doc --> | ||
149 | * @generated | ||
150 | */ | ||
151 | @Override | ||
152 | public boolean eIsSet(int featureID) | ||
153 | { | ||
154 | switch (featureID) | ||
155 | { | ||
156 | case SolverLanguagePackage.UNNAMED_OBJECT__NAME: | ||
157 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); | ||
158 | } | ||
159 | return super.eIsSet(featureID); | ||
160 | } | ||
161 | |||
162 | /** | ||
163 | * <!-- begin-user-doc --> | ||
164 | * <!-- end-user-doc --> | ||
165 | * @generated | ||
166 | */ | ||
167 | @Override | ||
168 | public String toString() | ||
169 | { | ||
170 | if (eIsProxy()) return super.toString(); | ||
171 | |||
172 | StringBuilder result = new StringBuilder(super.toString()); | ||
173 | result.append(" (name: "); | ||
174 | result.append(name); | ||
175 | result.append(')'); | ||
176 | return result.toString(); | ||
177 | } | ||
178 | |||
179 | } //UnnamedObjectImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/VariableImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/VariableImpl.java new file mode 100644 index 00000000..9a254023 --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/VariableImpl.java | |||
@@ -0,0 +1,179 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | |||
10 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
11 | |||
12 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
13 | import org.eclipse.viatra.solver.language.solverLanguage.Variable; | ||
14 | |||
15 | /** | ||
16 | * <!-- begin-user-doc --> | ||
17 | * An implementation of the model object '<em><b>Variable</b></em>'. | ||
18 | * <!-- end-user-doc --> | ||
19 | * <p> | ||
20 | * The following features are implemented: | ||
21 | * </p> | ||
22 | * <ul> | ||
23 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.VariableImpl#getName <em>Name</em>}</li> | ||
24 | * </ul> | ||
25 | * | ||
26 | * @generated | ||
27 | */ | ||
28 | public class VariableImpl extends LiteralImpl implements Variable | ||
29 | { | ||
30 | /** | ||
31 | * The default value of the '{@link #getName() <em>Name</em>}' attribute. | ||
32 | * <!-- begin-user-doc --> | ||
33 | * <!-- end-user-doc --> | ||
34 | * @see #getName() | ||
35 | * @generated | ||
36 | * @ordered | ||
37 | */ | ||
38 | protected static final String NAME_EDEFAULT = null; | ||
39 | |||
40 | /** | ||
41 | * The cached value of the '{@link #getName() <em>Name</em>}' attribute. | ||
42 | * <!-- begin-user-doc --> | ||
43 | * <!-- end-user-doc --> | ||
44 | * @see #getName() | ||
45 | * @generated | ||
46 | * @ordered | ||
47 | */ | ||
48 | protected String name = NAME_EDEFAULT; | ||
49 | |||
50 | /** | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @generated | ||
54 | */ | ||
55 | protected VariableImpl() | ||
56 | { | ||
57 | super(); | ||
58 | } | ||
59 | |||
60 | /** | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @generated | ||
64 | */ | ||
65 | @Override | ||
66 | protected EClass eStaticClass() | ||
67 | { | ||
68 | return SolverLanguagePackage.Literals.VARIABLE; | ||
69 | } | ||
70 | |||
71 | /** | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @generated | ||
75 | */ | ||
76 | @Override | ||
77 | public String getName() | ||
78 | { | ||
79 | return name; | ||
80 | } | ||
81 | |||
82 | /** | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @generated | ||
86 | */ | ||
87 | @Override | ||
88 | public void setName(String newName) | ||
89 | { | ||
90 | String oldName = name; | ||
91 | name = newName; | ||
92 | if (eNotificationRequired()) | ||
93 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.VARIABLE__NAME, oldName, name)); | ||
94 | } | ||
95 | |||
96 | /** | ||
97 | * <!-- begin-user-doc --> | ||
98 | * <!-- end-user-doc --> | ||
99 | * @generated | ||
100 | */ | ||
101 | @Override | ||
102 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
103 | { | ||
104 | switch (featureID) | ||
105 | { | ||
106 | case SolverLanguagePackage.VARIABLE__NAME: | ||
107 | return getName(); | ||
108 | } | ||
109 | return super.eGet(featureID, resolve, coreType); | ||
110 | } | ||
111 | |||
112 | /** | ||
113 | * <!-- begin-user-doc --> | ||
114 | * <!-- end-user-doc --> | ||
115 | * @generated | ||
116 | */ | ||
117 | @Override | ||
118 | public void eSet(int featureID, Object newValue) | ||
119 | { | ||
120 | switch (featureID) | ||
121 | { | ||
122 | case SolverLanguagePackage.VARIABLE__NAME: | ||
123 | setName((String)newValue); | ||
124 | return; | ||
125 | } | ||
126 | super.eSet(featureID, newValue); | ||
127 | } | ||
128 | |||
129 | /** | ||
130 | * <!-- begin-user-doc --> | ||
131 | * <!-- end-user-doc --> | ||
132 | * @generated | ||
133 | */ | ||
134 | @Override | ||
135 | public void eUnset(int featureID) | ||
136 | { | ||
137 | switch (featureID) | ||
138 | { | ||
139 | case SolverLanguagePackage.VARIABLE__NAME: | ||
140 | setName(NAME_EDEFAULT); | ||
141 | return; | ||
142 | } | ||
143 | super.eUnset(featureID); | ||
144 | } | ||
145 | |||
146 | /** | ||
147 | * <!-- begin-user-doc --> | ||
148 | * <!-- end-user-doc --> | ||
149 | * @generated | ||
150 | */ | ||
151 | @Override | ||
152 | public boolean eIsSet(int featureID) | ||
153 | { | ||
154 | switch (featureID) | ||
155 | { | ||
156 | case SolverLanguagePackage.VARIABLE__NAME: | ||
157 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); | ||
158 | } | ||
159 | return super.eIsSet(featureID); | ||
160 | } | ||
161 | |||
162 | /** | ||
163 | * <!-- begin-user-doc --> | ||
164 | * <!-- end-user-doc --> | ||
165 | * @generated | ||
166 | */ | ||
167 | @Override | ||
168 | public String toString() | ||
169 | { | ||
170 | if (eIsProxy()) return super.toString(); | ||
171 | |||
172 | StringBuilder result = new StringBuilder(super.toString()); | ||
173 | result.append(" (name: "); | ||
174 | result.append(name); | ||
175 | result.append(')'); | ||
176 | return result.toString(); | ||
177 | } | ||
178 | |||
179 | } //VariableImpl | ||