diff options
Diffstat (limited to 'Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/BasicInterpretationImpl.java')
-rw-r--r-- | Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/BasicInterpretationImpl.java | 318 |
1 files changed, 0 insertions, 318 deletions
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 deleted file mode 100644 index aef515f6..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/BasicInterpretationImpl.java +++ /dev/null | |||
@@ -1,318 +0,0 @@ | |||
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 | ||