diff options
author | 2019-08-01 14:49:53 +0200 | |
---|---|---|
committer | 2019-08-01 14:49:53 +0200 | |
commit | 972baab642bd889d2c3476c0c9e17a6929e0c318 (patch) | |
tree | 8f724cb348c60e4fc45d446d8532988ed8e40748 /Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/MappingDefinitionImpl.java | |
parent | Counting scope propagator (simpler than BasicTypeHierarchy) (diff) | |
download | VIATRA-Generator-972baab642bd889d2c3476c0c9e17a6929e0c318.tar.gz VIATRA-Generator-972baab642bd889d2c3476c0c9e17a6929e0c318.tar.zst VIATRA-Generator-972baab642bd889d2c3476c0c9e17a6929e0c318.zip |
[Stochastic] Remove fault tree support for now
Diffstat (limited to 'Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/MappingDefinitionImpl.java')
-rw-r--r-- | Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/MappingDefinitionImpl.java | 467 |
1 files changed, 0 insertions, 467 deletions
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/MappingDefinitionImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/MappingDefinitionImpl.java deleted file mode 100644 index d92dd935..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/MappingDefinitionImpl.java +++ /dev/null | |||
@@ -1,467 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentInstance; | ||
9 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.LookupDefinition; | ||
10 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition; | ||
11 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingParameter; | ||
12 | |||
13 | import java.util.Collection; | ||
14 | |||
15 | import org.eclipse.emf.common.notify.Notification; | ||
16 | import org.eclipse.emf.common.notify.NotificationChain; | ||
17 | |||
18 | import org.eclipse.emf.common.util.EList; | ||
19 | |||
20 | import org.eclipse.emf.ecore.EClass; | ||
21 | import org.eclipse.emf.ecore.InternalEObject; | ||
22 | |||
23 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
24 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
25 | |||
26 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
27 | import org.eclipse.emf.ecore.util.InternalEList; | ||
28 | |||
29 | import org.eclipse.viatra.query.patternlanguage.emf.vql.Pattern; | ||
30 | |||
31 | /** | ||
32 | * <!-- begin-user-doc --> | ||
33 | * An implementation of the model object '<em><b>Mapping Definition</b></em>'. | ||
34 | * <!-- end-user-doc --> | ||
35 | * <p> | ||
36 | * The following features are implemented: | ||
37 | * </p> | ||
38 | * <ul> | ||
39 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.MappingDefinitionImpl#isTopLevel <em>Top Level</em>}</li> | ||
40 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.MappingDefinitionImpl#getPattern <em>Pattern</em>}</li> | ||
41 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.MappingDefinitionImpl#getParameters <em>Parameters</em>}</li> | ||
42 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.MappingDefinitionImpl#getComponentInstance <em>Component Instance</em>}</li> | ||
43 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.MappingDefinitionImpl#getLookupDefinitions <em>Lookup Definitions</em>}</li> | ||
44 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.MappingDefinitionImpl#getAssignments <em>Assignments</em>}</li> | ||
45 | * </ul> | ||
46 | * | ||
47 | * @generated | ||
48 | */ | ||
49 | public class MappingDefinitionImpl extends MinimalEObjectImpl.Container implements MappingDefinition | ||
50 | { | ||
51 | /** | ||
52 | * The default value of the '{@link #isTopLevel() <em>Top Level</em>}' attribute. | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @see #isTopLevel() | ||
56 | * @generated | ||
57 | * @ordered | ||
58 | */ | ||
59 | protected static final boolean TOP_LEVEL_EDEFAULT = false; | ||
60 | |||
61 | /** | ||
62 | * The cached value of the '{@link #isTopLevel() <em>Top Level</em>}' attribute. | ||
63 | * <!-- begin-user-doc --> | ||
64 | * <!-- end-user-doc --> | ||
65 | * @see #isTopLevel() | ||
66 | * @generated | ||
67 | * @ordered | ||
68 | */ | ||
69 | protected boolean topLevel = TOP_LEVEL_EDEFAULT; | ||
70 | |||
71 | /** | ||
72 | * The cached value of the '{@link #getPattern() <em>Pattern</em>}' reference. | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @see #getPattern() | ||
76 | * @generated | ||
77 | * @ordered | ||
78 | */ | ||
79 | protected Pattern pattern; | ||
80 | |||
81 | /** | ||
82 | * The cached value of the '{@link #getParameters() <em>Parameters</em>}' containment reference list. | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @see #getParameters() | ||
86 | * @generated | ||
87 | * @ordered | ||
88 | */ | ||
89 | protected EList<MappingParameter> parameters; | ||
90 | |||
91 | /** | ||
92 | * The cached value of the '{@link #getComponentInstance() <em>Component Instance</em>}' containment reference. | ||
93 | * <!-- begin-user-doc --> | ||
94 | * <!-- end-user-doc --> | ||
95 | * @see #getComponentInstance() | ||
96 | * @generated | ||
97 | * @ordered | ||
98 | */ | ||
99 | protected ComponentInstance componentInstance; | ||
100 | |||
101 | /** | ||
102 | * The cached value of the '{@link #getLookupDefinitions() <em>Lookup Definitions</em>}' containment reference list. | ||
103 | * <!-- begin-user-doc --> | ||
104 | * <!-- end-user-doc --> | ||
105 | * @see #getLookupDefinitions() | ||
106 | * @generated | ||
107 | * @ordered | ||
108 | */ | ||
109 | protected EList<LookupDefinition> lookupDefinitions; | ||
110 | |||
111 | /** | ||
112 | * The cached value of the '{@link #getAssignments() <em>Assignments</em>}' containment reference list. | ||
113 | * <!-- begin-user-doc --> | ||
114 | * <!-- end-user-doc --> | ||
115 | * @see #getAssignments() | ||
116 | * @generated | ||
117 | * @ordered | ||
118 | */ | ||
119 | protected EList<Assignment> assignments; | ||
120 | |||
121 | /** | ||
122 | * <!-- begin-user-doc --> | ||
123 | * <!-- end-user-doc --> | ||
124 | * @generated | ||
125 | */ | ||
126 | protected MappingDefinitionImpl() | ||
127 | { | ||
128 | super(); | ||
129 | } | ||
130 | |||
131 | /** | ||
132 | * <!-- begin-user-doc --> | ||
133 | * <!-- end-user-doc --> | ||
134 | * @generated | ||
135 | */ | ||
136 | @Override | ||
137 | protected EClass eStaticClass() | ||
138 | { | ||
139 | return CftLanguagePackage.Literals.MAPPING_DEFINITION; | ||
140 | } | ||
141 | |||
142 | /** | ||
143 | * <!-- begin-user-doc --> | ||
144 | * <!-- end-user-doc --> | ||
145 | * @generated | ||
146 | */ | ||
147 | @Override | ||
148 | public boolean isTopLevel() | ||
149 | { | ||
150 | return topLevel; | ||
151 | } | ||
152 | |||
153 | /** | ||
154 | * <!-- begin-user-doc --> | ||
155 | * <!-- end-user-doc --> | ||
156 | * @generated | ||
157 | */ | ||
158 | @Override | ||
159 | public void setTopLevel(boolean newTopLevel) | ||
160 | { | ||
161 | boolean oldTopLevel = topLevel; | ||
162 | topLevel = newTopLevel; | ||
163 | if (eNotificationRequired()) | ||
164 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.MAPPING_DEFINITION__TOP_LEVEL, oldTopLevel, topLevel)); | ||
165 | } | ||
166 | |||
167 | /** | ||
168 | * <!-- begin-user-doc --> | ||
169 | * <!-- end-user-doc --> | ||
170 | * @generated | ||
171 | */ | ||
172 | @Override | ||
173 | public Pattern getPattern() | ||
174 | { | ||
175 | if (pattern != null && pattern.eIsProxy()) | ||
176 | { | ||
177 | InternalEObject oldPattern = (InternalEObject)pattern; | ||
178 | pattern = (Pattern)eResolveProxy(oldPattern); | ||
179 | if (pattern != oldPattern) | ||
180 | { | ||
181 | if (eNotificationRequired()) | ||
182 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, CftLanguagePackage.MAPPING_DEFINITION__PATTERN, oldPattern, pattern)); | ||
183 | } | ||
184 | } | ||
185 | return pattern; | ||
186 | } | ||
187 | |||
188 | /** | ||
189 | * <!-- begin-user-doc --> | ||
190 | * <!-- end-user-doc --> | ||
191 | * @generated | ||
192 | */ | ||
193 | public Pattern basicGetPattern() | ||
194 | { | ||
195 | return pattern; | ||
196 | } | ||
197 | |||
198 | /** | ||
199 | * <!-- begin-user-doc --> | ||
200 | * <!-- end-user-doc --> | ||
201 | * @generated | ||
202 | */ | ||
203 | @Override | ||
204 | public void setPattern(Pattern newPattern) | ||
205 | { | ||
206 | Pattern oldPattern = pattern; | ||
207 | pattern = newPattern; | ||
208 | if (eNotificationRequired()) | ||
209 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.MAPPING_DEFINITION__PATTERN, oldPattern, pattern)); | ||
210 | } | ||
211 | |||
212 | /** | ||
213 | * <!-- begin-user-doc --> | ||
214 | * <!-- end-user-doc --> | ||
215 | * @generated | ||
216 | */ | ||
217 | @Override | ||
218 | public EList<MappingParameter> getParameters() | ||
219 | { | ||
220 | if (parameters == null) | ||
221 | { | ||
222 | parameters = new EObjectContainmentEList<MappingParameter>(MappingParameter.class, this, CftLanguagePackage.MAPPING_DEFINITION__PARAMETERS); | ||
223 | } | ||
224 | return parameters; | ||
225 | } | ||
226 | |||
227 | /** | ||
228 | * <!-- begin-user-doc --> | ||
229 | * <!-- end-user-doc --> | ||
230 | * @generated | ||
231 | */ | ||
232 | @Override | ||
233 | public ComponentInstance getComponentInstance() | ||
234 | { | ||
235 | return componentInstance; | ||
236 | } | ||
237 | |||
238 | /** | ||
239 | * <!-- begin-user-doc --> | ||
240 | * <!-- end-user-doc --> | ||
241 | * @generated | ||
242 | */ | ||
243 | public NotificationChain basicSetComponentInstance(ComponentInstance newComponentInstance, NotificationChain msgs) | ||
244 | { | ||
245 | ComponentInstance oldComponentInstance = componentInstance; | ||
246 | componentInstance = newComponentInstance; | ||
247 | if (eNotificationRequired()) | ||
248 | { | ||
249 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, CftLanguagePackage.MAPPING_DEFINITION__COMPONENT_INSTANCE, oldComponentInstance, newComponentInstance); | ||
250 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
251 | } | ||
252 | return msgs; | ||
253 | } | ||
254 | |||
255 | /** | ||
256 | * <!-- begin-user-doc --> | ||
257 | * <!-- end-user-doc --> | ||
258 | * @generated | ||
259 | */ | ||
260 | @Override | ||
261 | public void setComponentInstance(ComponentInstance newComponentInstance) | ||
262 | { | ||
263 | if (newComponentInstance != componentInstance) | ||
264 | { | ||
265 | NotificationChain msgs = null; | ||
266 | if (componentInstance != null) | ||
267 | msgs = ((InternalEObject)componentInstance).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - CftLanguagePackage.MAPPING_DEFINITION__COMPONENT_INSTANCE, null, msgs); | ||
268 | if (newComponentInstance != null) | ||
269 | msgs = ((InternalEObject)newComponentInstance).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - CftLanguagePackage.MAPPING_DEFINITION__COMPONENT_INSTANCE, null, msgs); | ||
270 | msgs = basicSetComponentInstance(newComponentInstance, msgs); | ||
271 | if (msgs != null) msgs.dispatch(); | ||
272 | } | ||
273 | else if (eNotificationRequired()) | ||
274 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.MAPPING_DEFINITION__COMPONENT_INSTANCE, newComponentInstance, newComponentInstance)); | ||
275 | } | ||
276 | |||
277 | /** | ||
278 | * <!-- begin-user-doc --> | ||
279 | * <!-- end-user-doc --> | ||
280 | * @generated | ||
281 | */ | ||
282 | @Override | ||
283 | public EList<LookupDefinition> getLookupDefinitions() | ||
284 | { | ||
285 | if (lookupDefinitions == null) | ||
286 | { | ||
287 | lookupDefinitions = new EObjectContainmentEList<LookupDefinition>(LookupDefinition.class, this, CftLanguagePackage.MAPPING_DEFINITION__LOOKUP_DEFINITIONS); | ||
288 | } | ||
289 | return lookupDefinitions; | ||
290 | } | ||
291 | |||
292 | /** | ||
293 | * <!-- begin-user-doc --> | ||
294 | * <!-- end-user-doc --> | ||
295 | * @generated | ||
296 | */ | ||
297 | @Override | ||
298 | public EList<Assignment> getAssignments() | ||
299 | { | ||
300 | if (assignments == null) | ||
301 | { | ||
302 | assignments = new EObjectContainmentEList<Assignment>(Assignment.class, this, CftLanguagePackage.MAPPING_DEFINITION__ASSIGNMENTS); | ||
303 | } | ||
304 | return assignments; | ||
305 | } | ||
306 | |||
307 | /** | ||
308 | * <!-- begin-user-doc --> | ||
309 | * <!-- end-user-doc --> | ||
310 | * @generated | ||
311 | */ | ||
312 | @Override | ||
313 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
314 | { | ||
315 | switch (featureID) | ||
316 | { | ||
317 | case CftLanguagePackage.MAPPING_DEFINITION__PARAMETERS: | ||
318 | return ((InternalEList<?>)getParameters()).basicRemove(otherEnd, msgs); | ||
319 | case CftLanguagePackage.MAPPING_DEFINITION__COMPONENT_INSTANCE: | ||
320 | return basicSetComponentInstance(null, msgs); | ||
321 | case CftLanguagePackage.MAPPING_DEFINITION__LOOKUP_DEFINITIONS: | ||
322 | return ((InternalEList<?>)getLookupDefinitions()).basicRemove(otherEnd, msgs); | ||
323 | case CftLanguagePackage.MAPPING_DEFINITION__ASSIGNMENTS: | ||
324 | return ((InternalEList<?>)getAssignments()).basicRemove(otherEnd, msgs); | ||
325 | } | ||
326 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
327 | } | ||
328 | |||
329 | /** | ||
330 | * <!-- begin-user-doc --> | ||
331 | * <!-- end-user-doc --> | ||
332 | * @generated | ||
333 | */ | ||
334 | @Override | ||
335 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
336 | { | ||
337 | switch (featureID) | ||
338 | { | ||
339 | case CftLanguagePackage.MAPPING_DEFINITION__TOP_LEVEL: | ||
340 | return isTopLevel(); | ||
341 | case CftLanguagePackage.MAPPING_DEFINITION__PATTERN: | ||
342 | if (resolve) return getPattern(); | ||
343 | return basicGetPattern(); | ||
344 | case CftLanguagePackage.MAPPING_DEFINITION__PARAMETERS: | ||
345 | return getParameters(); | ||
346 | case CftLanguagePackage.MAPPING_DEFINITION__COMPONENT_INSTANCE: | ||
347 | return getComponentInstance(); | ||
348 | case CftLanguagePackage.MAPPING_DEFINITION__LOOKUP_DEFINITIONS: | ||
349 | return getLookupDefinitions(); | ||
350 | case CftLanguagePackage.MAPPING_DEFINITION__ASSIGNMENTS: | ||
351 | return getAssignments(); | ||
352 | } | ||
353 | return super.eGet(featureID, resolve, coreType); | ||
354 | } | ||
355 | |||
356 | /** | ||
357 | * <!-- begin-user-doc --> | ||
358 | * <!-- end-user-doc --> | ||
359 | * @generated | ||
360 | */ | ||
361 | @SuppressWarnings("unchecked") | ||
362 | @Override | ||
363 | public void eSet(int featureID, Object newValue) | ||
364 | { | ||
365 | switch (featureID) | ||
366 | { | ||
367 | case CftLanguagePackage.MAPPING_DEFINITION__TOP_LEVEL: | ||
368 | setTopLevel((Boolean)newValue); | ||
369 | return; | ||
370 | case CftLanguagePackage.MAPPING_DEFINITION__PATTERN: | ||
371 | setPattern((Pattern)newValue); | ||
372 | return; | ||
373 | case CftLanguagePackage.MAPPING_DEFINITION__PARAMETERS: | ||
374 | getParameters().clear(); | ||
375 | getParameters().addAll((Collection<? extends MappingParameter>)newValue); | ||
376 | return; | ||
377 | case CftLanguagePackage.MAPPING_DEFINITION__COMPONENT_INSTANCE: | ||
378 | setComponentInstance((ComponentInstance)newValue); | ||
379 | return; | ||
380 | case CftLanguagePackage.MAPPING_DEFINITION__LOOKUP_DEFINITIONS: | ||
381 | getLookupDefinitions().clear(); | ||
382 | getLookupDefinitions().addAll((Collection<? extends LookupDefinition>)newValue); | ||
383 | return; | ||
384 | case CftLanguagePackage.MAPPING_DEFINITION__ASSIGNMENTS: | ||
385 | getAssignments().clear(); | ||
386 | getAssignments().addAll((Collection<? extends Assignment>)newValue); | ||
387 | return; | ||
388 | } | ||
389 | super.eSet(featureID, newValue); | ||
390 | } | ||
391 | |||
392 | /** | ||
393 | * <!-- begin-user-doc --> | ||
394 | * <!-- end-user-doc --> | ||
395 | * @generated | ||
396 | */ | ||
397 | @Override | ||
398 | public void eUnset(int featureID) | ||
399 | { | ||
400 | switch (featureID) | ||
401 | { | ||
402 | case CftLanguagePackage.MAPPING_DEFINITION__TOP_LEVEL: | ||
403 | setTopLevel(TOP_LEVEL_EDEFAULT); | ||
404 | return; | ||
405 | case CftLanguagePackage.MAPPING_DEFINITION__PATTERN: | ||
406 | setPattern((Pattern)null); | ||
407 | return; | ||
408 | case CftLanguagePackage.MAPPING_DEFINITION__PARAMETERS: | ||
409 | getParameters().clear(); | ||
410 | return; | ||
411 | case CftLanguagePackage.MAPPING_DEFINITION__COMPONENT_INSTANCE: | ||
412 | setComponentInstance((ComponentInstance)null); | ||
413 | return; | ||
414 | case CftLanguagePackage.MAPPING_DEFINITION__LOOKUP_DEFINITIONS: | ||
415 | getLookupDefinitions().clear(); | ||
416 | return; | ||
417 | case CftLanguagePackage.MAPPING_DEFINITION__ASSIGNMENTS: | ||
418 | getAssignments().clear(); | ||
419 | return; | ||
420 | } | ||
421 | super.eUnset(featureID); | ||
422 | } | ||
423 | |||
424 | /** | ||
425 | * <!-- begin-user-doc --> | ||
426 | * <!-- end-user-doc --> | ||
427 | * @generated | ||
428 | */ | ||
429 | @Override | ||
430 | public boolean eIsSet(int featureID) | ||
431 | { | ||
432 | switch (featureID) | ||
433 | { | ||
434 | case CftLanguagePackage.MAPPING_DEFINITION__TOP_LEVEL: | ||
435 | return topLevel != TOP_LEVEL_EDEFAULT; | ||
436 | case CftLanguagePackage.MAPPING_DEFINITION__PATTERN: | ||
437 | return pattern != null; | ||
438 | case CftLanguagePackage.MAPPING_DEFINITION__PARAMETERS: | ||
439 | return parameters != null && !parameters.isEmpty(); | ||
440 | case CftLanguagePackage.MAPPING_DEFINITION__COMPONENT_INSTANCE: | ||
441 | return componentInstance != null; | ||
442 | case CftLanguagePackage.MAPPING_DEFINITION__LOOKUP_DEFINITIONS: | ||
443 | return lookupDefinitions != null && !lookupDefinitions.isEmpty(); | ||
444 | case CftLanguagePackage.MAPPING_DEFINITION__ASSIGNMENTS: | ||
445 | return assignments != null && !assignments.isEmpty(); | ||
446 | } | ||
447 | return super.eIsSet(featureID); | ||
448 | } | ||
449 | |||
450 | /** | ||
451 | * <!-- begin-user-doc --> | ||
452 | * <!-- end-user-doc --> | ||
453 | * @generated | ||
454 | */ | ||
455 | @Override | ||
456 | public String toString() | ||
457 | { | ||
458 | if (eIsProxy()) return super.toString(); | ||
459 | |||
460 | StringBuilder result = new StringBuilder(super.toString()); | ||
461 | result.append(" (topLevel: "); | ||
462 | result.append(topLevel); | ||
463 | result.append(')'); | ||
464 | return result.toString(); | ||
465 | } | ||
466 | |||
467 | } //MappingDefinitionImpl | ||