1 | /** |
2 | * Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany |
3 | * |
4 | * $Id$ |
5 | */ |
6 | package de.uka.ipd.sdq.pcm.core.composition.impl; |
7 | |
8 | import org.eclipse.emf.common.notify.Notification; |
9 | import org.eclipse.emf.common.notify.NotificationChain; |
10 | import org.eclipse.emf.ecore.EClass; |
11 | import org.eclipse.emf.ecore.InternalEObject; |
12 | import org.eclipse.emf.ecore.impl.ENotificationImpl; |
13 | |
14 | import de.uka.ipd.sdq.pcm.core.CorePackage; |
15 | import de.uka.ipd.sdq.pcm.core.PCMRandomVariable; |
16 | import de.uka.ipd.sdq.pcm.core.composition.AssemblyContext; |
17 | import de.uka.ipd.sdq.pcm.core.composition.AssemblyEventConnector; |
18 | import de.uka.ipd.sdq.pcm.core.composition.CompositionPackage; |
19 | import de.uka.ipd.sdq.pcm.repository.SinkRole; |
20 | import de.uka.ipd.sdq.pcm.repository.SourceRole; |
21 | |
22 | /** |
23 | * <!-- begin-user-doc --> |
24 | * An implementation of the model object '<em><b>Assembly Event Connector</b></em>'. |
25 | * <!-- end-user-doc --> |
26 | * <p> |
27 | * The following features are implemented: |
28 | * <ul> |
29 | * <li>{@link de.uka.ipd.sdq.pcm.core.composition.impl.AssemblyEventConnectorImpl#getSinkRole__AssemblyEventConnector <em>Sink Role Assembly Event Connector</em>}</li> |
30 | * <li>{@link de.uka.ipd.sdq.pcm.core.composition.impl.AssemblyEventConnectorImpl#getSourceRole__AssemblyEventConnector <em>Source Role Assembly Event Connector</em>}</li> |
31 | * <li>{@link de.uka.ipd.sdq.pcm.core.composition.impl.AssemblyEventConnectorImpl#getSinkAssemblyContext__AssemblyEventConnector <em>Sink Assembly Context Assembly Event Connector</em>}</li> |
32 | * <li>{@link de.uka.ipd.sdq.pcm.core.composition.impl.AssemblyEventConnectorImpl#getSourceAssemblyContext__AssemblyEventConnector <em>Source Assembly Context Assembly Event Connector</em>}</li> |
33 | * <li>{@link de.uka.ipd.sdq.pcm.core.composition.impl.AssemblyEventConnectorImpl#getFilterCondition__AssemblyEventConnector <em>Filter Condition Assembly Event Connector</em>}</li> |
34 | * </ul> |
35 | * </p> |
36 | * |
37 | * @generated |
38 | */ |
39 | public class AssemblyEventConnectorImpl extends ConnectorImpl implements AssemblyEventConnector { |
40 | /** |
41 | * <!-- begin-user-doc --> |
42 | * <!-- end-user-doc --> |
43 | * @generated |
44 | */ |
45 | public static final String copyright = "Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany"; |
46 | |
47 | /** |
48 | * The cached value of the '{@link #getSinkRole__AssemblyEventConnector() <em>Sink Role Assembly Event Connector</em>}' reference. |
49 | * <!-- begin-user-doc --> |
50 | * <!-- end-user-doc --> |
51 | * @see #getSinkRole__AssemblyEventConnector() |
52 | * @generated |
53 | * @ordered |
54 | */ |
55 | protected SinkRole sinkRole__AssemblyEventConnector; |
56 | |
57 | /** |
58 | * The cached value of the '{@link #getSourceRole__AssemblyEventConnector() <em>Source Role Assembly Event Connector</em>}' reference. |
59 | * <!-- begin-user-doc --> |
60 | * <!-- end-user-doc --> |
61 | * @see #getSourceRole__AssemblyEventConnector() |
62 | * @generated |
63 | * @ordered |
64 | */ |
65 | protected SourceRole sourceRole__AssemblyEventConnector; |
66 | |
67 | /** |
68 | * The cached value of the '{@link #getSinkAssemblyContext__AssemblyEventConnector() <em>Sink Assembly Context Assembly Event Connector</em>}' reference. |
69 | * <!-- begin-user-doc --> |
70 | * <!-- end-user-doc --> |
71 | * @see #getSinkAssemblyContext__AssemblyEventConnector() |
72 | * @generated |
73 | * @ordered |
74 | */ |
75 | protected AssemblyContext sinkAssemblyContext__AssemblyEventConnector; |
76 | |
77 | /** |
78 | * The cached value of the '{@link #getSourceAssemblyContext__AssemblyEventConnector() <em>Source Assembly Context Assembly Event Connector</em>}' reference. |
79 | * <!-- begin-user-doc --> |
80 | * <!-- end-user-doc --> |
81 | * @see #getSourceAssemblyContext__AssemblyEventConnector() |
82 | * @generated |
83 | * @ordered |
84 | */ |
85 | protected AssemblyContext sourceAssemblyContext__AssemblyEventConnector; |
86 | |
87 | /** |
88 | * The cached value of the '{@link #getFilterCondition__AssemblyEventConnector() <em>Filter Condition Assembly Event Connector</em>}' containment reference. |
89 | * <!-- begin-user-doc --> |
90 | * <!-- end-user-doc --> |
91 | * @see #getFilterCondition__AssemblyEventConnector() |
92 | * @generated |
93 | * @ordered |
94 | */ |
95 | protected PCMRandomVariable filterCondition__AssemblyEventConnector; |
96 | |
97 | /** |
98 | * <!-- begin-user-doc --> |
99 | * <!-- end-user-doc --> |
100 | * @generated |
101 | */ |
102 | protected AssemblyEventConnectorImpl() { |
103 | super(); |
104 | } |
105 | |
106 | /** |
107 | * <!-- begin-user-doc --> |
108 | * <!-- end-user-doc --> |
109 | * @generated |
110 | */ |
111 | @Override |
112 | protected EClass eStaticClass() { |
113 | return CompositionPackage.Literals.ASSEMBLY_EVENT_CONNECTOR; |
114 | } |
115 | |
116 | /** |
117 | * <!-- begin-user-doc --> |
118 | * <!-- end-user-doc --> |
119 | * @generated |
120 | */ |
121 | public SinkRole getSinkRole__AssemblyEventConnector() { |
122 | if (sinkRole__AssemblyEventConnector != null && sinkRole__AssemblyEventConnector.eIsProxy()) { |
123 | InternalEObject oldSinkRole__AssemblyEventConnector = (InternalEObject)sinkRole__AssemblyEventConnector; |
124 | sinkRole__AssemblyEventConnector = (SinkRole)eResolveProxy(oldSinkRole__AssemblyEventConnector); |
125 | if (sinkRole__AssemblyEventConnector != oldSinkRole__AssemblyEventConnector) { |
126 | if (eNotificationRequired()) |
127 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, CompositionPackage.ASSEMBLY_EVENT_CONNECTOR__SINK_ROLE_ASSEMBLY_EVENT_CONNECTOR, oldSinkRole__AssemblyEventConnector, sinkRole__AssemblyEventConnector)); |
128 | } |
129 | } |
130 | return sinkRole__AssemblyEventConnector; |
131 | } |
132 | |
133 | /** |
134 | * <!-- begin-user-doc --> |
135 | * <!-- end-user-doc --> |
136 | * @generated |
137 | */ |
138 | public SinkRole basicGetSinkRole__AssemblyEventConnector() { |
139 | return sinkRole__AssemblyEventConnector; |
140 | } |
141 | |
142 | /** |
143 | * <!-- begin-user-doc --> |
144 | * <!-- end-user-doc --> |
145 | * @generated |
146 | */ |
147 | public void setSinkRole__AssemblyEventConnector(SinkRole newSinkRole__AssemblyEventConnector) { |
148 | SinkRole oldSinkRole__AssemblyEventConnector = sinkRole__AssemblyEventConnector; |
149 | sinkRole__AssemblyEventConnector = newSinkRole__AssemblyEventConnector; |
150 | if (eNotificationRequired()) |
151 | eNotify(new ENotificationImpl(this, Notification.SET, CompositionPackage.ASSEMBLY_EVENT_CONNECTOR__SINK_ROLE_ASSEMBLY_EVENT_CONNECTOR, oldSinkRole__AssemblyEventConnector, sinkRole__AssemblyEventConnector)); |
152 | } |
153 | |
154 | /** |
155 | * <!-- begin-user-doc --> |
156 | * <!-- end-user-doc --> |
157 | * @generated |
158 | */ |
159 | public SourceRole getSourceRole__AssemblyEventConnector() { |
160 | if (sourceRole__AssemblyEventConnector != null && sourceRole__AssemblyEventConnector.eIsProxy()) { |
161 | InternalEObject oldSourceRole__AssemblyEventConnector = (InternalEObject)sourceRole__AssemblyEventConnector; |
162 | sourceRole__AssemblyEventConnector = (SourceRole)eResolveProxy(oldSourceRole__AssemblyEventConnector); |
163 | if (sourceRole__AssemblyEventConnector != oldSourceRole__AssemblyEventConnector) { |
164 | if (eNotificationRequired()) |
165 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, CompositionPackage.ASSEMBLY_EVENT_CONNECTOR__SOURCE_ROLE_ASSEMBLY_EVENT_CONNECTOR, oldSourceRole__AssemblyEventConnector, sourceRole__AssemblyEventConnector)); |
166 | } |
167 | } |
168 | return sourceRole__AssemblyEventConnector; |
169 | } |
170 | |
171 | /** |
172 | * <!-- begin-user-doc --> |
173 | * <!-- end-user-doc --> |
174 | * @generated |
175 | */ |
176 | public SourceRole basicGetSourceRole__AssemblyEventConnector() { |
177 | return sourceRole__AssemblyEventConnector; |
178 | } |
179 | |
180 | /** |
181 | * <!-- begin-user-doc --> |
182 | * <!-- end-user-doc --> |
183 | * @generated |
184 | */ |
185 | public void setSourceRole__AssemblyEventConnector(SourceRole newSourceRole__AssemblyEventConnector) { |
186 | SourceRole oldSourceRole__AssemblyEventConnector = sourceRole__AssemblyEventConnector; |
187 | sourceRole__AssemblyEventConnector = newSourceRole__AssemblyEventConnector; |
188 | if (eNotificationRequired()) |
189 | eNotify(new ENotificationImpl(this, Notification.SET, CompositionPackage.ASSEMBLY_EVENT_CONNECTOR__SOURCE_ROLE_ASSEMBLY_EVENT_CONNECTOR, oldSourceRole__AssemblyEventConnector, sourceRole__AssemblyEventConnector)); |
190 | } |
191 | |
192 | /** |
193 | * <!-- begin-user-doc --> |
194 | * <!-- end-user-doc --> |
195 | * @generated |
196 | */ |
197 | public AssemblyContext getSinkAssemblyContext__AssemblyEventConnector() { |
198 | if (sinkAssemblyContext__AssemblyEventConnector != null && sinkAssemblyContext__AssemblyEventConnector.eIsProxy()) { |
199 | InternalEObject oldSinkAssemblyContext__AssemblyEventConnector = (InternalEObject)sinkAssemblyContext__AssemblyEventConnector; |
200 | sinkAssemblyContext__AssemblyEventConnector = (AssemblyContext)eResolveProxy(oldSinkAssemblyContext__AssemblyEventConnector); |
201 | if (sinkAssemblyContext__AssemblyEventConnector != oldSinkAssemblyContext__AssemblyEventConnector) { |
202 | if (eNotificationRequired()) |
203 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, CompositionPackage.ASSEMBLY_EVENT_CONNECTOR__SINK_ASSEMBLY_CONTEXT_ASSEMBLY_EVENT_CONNECTOR, oldSinkAssemblyContext__AssemblyEventConnector, sinkAssemblyContext__AssemblyEventConnector)); |
204 | } |
205 | } |
206 | return sinkAssemblyContext__AssemblyEventConnector; |
207 | } |
208 | |
209 | /** |
210 | * <!-- begin-user-doc --> |
211 | * <!-- end-user-doc --> |
212 | * @generated |
213 | */ |
214 | public AssemblyContext basicGetSinkAssemblyContext__AssemblyEventConnector() { |
215 | return sinkAssemblyContext__AssemblyEventConnector; |
216 | } |
217 | |
218 | /** |
219 | * <!-- begin-user-doc --> |
220 | * <!-- end-user-doc --> |
221 | * @generated |
222 | */ |
223 | public void setSinkAssemblyContext__AssemblyEventConnector(AssemblyContext newSinkAssemblyContext__AssemblyEventConnector) { |
224 | AssemblyContext oldSinkAssemblyContext__AssemblyEventConnector = sinkAssemblyContext__AssemblyEventConnector; |
225 | sinkAssemblyContext__AssemblyEventConnector = newSinkAssemblyContext__AssemblyEventConnector; |
226 | if (eNotificationRequired()) |
227 | eNotify(new ENotificationImpl(this, Notification.SET, CompositionPackage.ASSEMBLY_EVENT_CONNECTOR__SINK_ASSEMBLY_CONTEXT_ASSEMBLY_EVENT_CONNECTOR, oldSinkAssemblyContext__AssemblyEventConnector, sinkAssemblyContext__AssemblyEventConnector)); |
228 | } |
229 | |
230 | /** |
231 | * <!-- begin-user-doc --> |
232 | * <!-- end-user-doc --> |
233 | * @generated |
234 | */ |
235 | public AssemblyContext getSourceAssemblyContext__AssemblyEventConnector() { |
236 | if (sourceAssemblyContext__AssemblyEventConnector != null && sourceAssemblyContext__AssemblyEventConnector.eIsProxy()) { |
237 | InternalEObject oldSourceAssemblyContext__AssemblyEventConnector = (InternalEObject)sourceAssemblyContext__AssemblyEventConnector; |
238 | sourceAssemblyContext__AssemblyEventConnector = (AssemblyContext)eResolveProxy(oldSourceAssemblyContext__AssemblyEventConnector); |
239 | if (sourceAssemblyContext__AssemblyEventConnector != oldSourceAssemblyContext__AssemblyEventConnector) { |
240 | if (eNotificationRequired()) |
241 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, CompositionPackage.ASSEMBLY_EVENT_CONNECTOR__SOURCE_ASSEMBLY_CONTEXT_ASSEMBLY_EVENT_CONNECTOR, oldSourceAssemblyContext__AssemblyEventConnector, sourceAssemblyContext__AssemblyEventConnector)); |
242 | } |
243 | } |
244 | return sourceAssemblyContext__AssemblyEventConnector; |
245 | } |
246 | |
247 | /** |
248 | * <!-- begin-user-doc --> |
249 | * <!-- end-user-doc --> |
250 | * @generated |
251 | */ |
252 | public AssemblyContext basicGetSourceAssemblyContext__AssemblyEventConnector() { |
253 | return sourceAssemblyContext__AssemblyEventConnector; |
254 | } |
255 | |
256 | /** |
257 | * <!-- begin-user-doc --> |
258 | * <!-- end-user-doc --> |
259 | * @generated |
260 | */ |
261 | public void setSourceAssemblyContext__AssemblyEventConnector(AssemblyContext newSourceAssemblyContext__AssemblyEventConnector) { |
262 | AssemblyContext oldSourceAssemblyContext__AssemblyEventConnector = sourceAssemblyContext__AssemblyEventConnector; |
263 | sourceAssemblyContext__AssemblyEventConnector = newSourceAssemblyContext__AssemblyEventConnector; |
264 | if (eNotificationRequired()) |
265 | eNotify(new ENotificationImpl(this, Notification.SET, CompositionPackage.ASSEMBLY_EVENT_CONNECTOR__SOURCE_ASSEMBLY_CONTEXT_ASSEMBLY_EVENT_CONNECTOR, oldSourceAssemblyContext__AssemblyEventConnector, sourceAssemblyContext__AssemblyEventConnector)); |
266 | } |
267 | |
268 | /** |
269 | * <!-- begin-user-doc --> |
270 | * <!-- end-user-doc --> |
271 | * @generated |
272 | */ |
273 | public PCMRandomVariable getFilterCondition__AssemblyEventConnector() { |
274 | return filterCondition__AssemblyEventConnector; |
275 | } |
276 | |
277 | /** |
278 | * <!-- begin-user-doc --> |
279 | * <!-- end-user-doc --> |
280 | * @generated |
281 | */ |
282 | public NotificationChain basicSetFilterCondition__AssemblyEventConnector(PCMRandomVariable newFilterCondition__AssemblyEventConnector, NotificationChain msgs) { |
283 | PCMRandomVariable oldFilterCondition__AssemblyEventConnector = filterCondition__AssemblyEventConnector; |
284 | filterCondition__AssemblyEventConnector = newFilterCondition__AssemblyEventConnector; |
285 | if (eNotificationRequired()) { |
286 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, CompositionPackage.ASSEMBLY_EVENT_CONNECTOR__FILTER_CONDITION_ASSEMBLY_EVENT_CONNECTOR, oldFilterCondition__AssemblyEventConnector, newFilterCondition__AssemblyEventConnector); |
287 | if (msgs == null) msgs = notification; else msgs.add(notification); |
288 | } |
289 | return msgs; |
290 | } |
291 | |
292 | /** |
293 | * <!-- begin-user-doc --> |
294 | * <!-- end-user-doc --> |
295 | * @generated |
296 | */ |
297 | public void setFilterCondition__AssemblyEventConnector(PCMRandomVariable newFilterCondition__AssemblyEventConnector) { |
298 | if (newFilterCondition__AssemblyEventConnector != filterCondition__AssemblyEventConnector) { |
299 | NotificationChain msgs = null; |
300 | if (filterCondition__AssemblyEventConnector != null) |
301 | msgs = ((InternalEObject)filterCondition__AssemblyEventConnector).eInverseRemove(this, CorePackage.PCM_RANDOM_VARIABLE__ASSEMBLY_EVENT_CONNECTOR_FILTER_CONDITION, PCMRandomVariable.class, msgs); |
302 | if (newFilterCondition__AssemblyEventConnector != null) |
303 | msgs = ((InternalEObject)newFilterCondition__AssemblyEventConnector).eInverseAdd(this, CorePackage.PCM_RANDOM_VARIABLE__ASSEMBLY_EVENT_CONNECTOR_FILTER_CONDITION, PCMRandomVariable.class, msgs); |
304 | msgs = basicSetFilterCondition__AssemblyEventConnector(newFilterCondition__AssemblyEventConnector, msgs); |
305 | if (msgs != null) msgs.dispatch(); |
306 | } |
307 | else if (eNotificationRequired()) |
308 | eNotify(new ENotificationImpl(this, Notification.SET, CompositionPackage.ASSEMBLY_EVENT_CONNECTOR__FILTER_CONDITION_ASSEMBLY_EVENT_CONNECTOR, newFilterCondition__AssemblyEventConnector, newFilterCondition__AssemblyEventConnector)); |
309 | } |
310 | |
311 | /** |
312 | * <!-- begin-user-doc --> |
313 | * <!-- end-user-doc --> |
314 | * @generated |
315 | */ |
316 | @Override |
317 | public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { |
318 | switch (featureID) { |
319 | case CompositionPackage.ASSEMBLY_EVENT_CONNECTOR__FILTER_CONDITION_ASSEMBLY_EVENT_CONNECTOR: |
320 | if (filterCondition__AssemblyEventConnector != null) |
321 | msgs = ((InternalEObject)filterCondition__AssemblyEventConnector).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - CompositionPackage.ASSEMBLY_EVENT_CONNECTOR__FILTER_CONDITION_ASSEMBLY_EVENT_CONNECTOR, null, msgs); |
322 | return basicSetFilterCondition__AssemblyEventConnector((PCMRandomVariable)otherEnd, msgs); |
323 | } |
324 | return super.eInverseAdd(otherEnd, featureID, msgs); |
325 | } |
326 | |
327 | /** |
328 | * <!-- begin-user-doc --> |
329 | * <!-- end-user-doc --> |
330 | * @generated |
331 | */ |
332 | @Override |
333 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { |
334 | switch (featureID) { |
335 | case CompositionPackage.ASSEMBLY_EVENT_CONNECTOR__FILTER_CONDITION_ASSEMBLY_EVENT_CONNECTOR: |
336 | return basicSetFilterCondition__AssemblyEventConnector(null, msgs); |
337 | } |
338 | return super.eInverseRemove(otherEnd, featureID, msgs); |
339 | } |
340 | |
341 | /** |
342 | * <!-- begin-user-doc --> |
343 | * <!-- end-user-doc --> |
344 | * @generated |
345 | */ |
346 | @Override |
347 | public Object eGet(int featureID, boolean resolve, boolean coreType) { |
348 | switch (featureID) { |
349 | case CompositionPackage.ASSEMBLY_EVENT_CONNECTOR__SINK_ROLE_ASSEMBLY_EVENT_CONNECTOR: |
350 | if (resolve) return getSinkRole__AssemblyEventConnector(); |
351 | return basicGetSinkRole__AssemblyEventConnector(); |
352 | case CompositionPackage.ASSEMBLY_EVENT_CONNECTOR__SOURCE_ROLE_ASSEMBLY_EVENT_CONNECTOR: |
353 | if (resolve) return getSourceRole__AssemblyEventConnector(); |
354 | return basicGetSourceRole__AssemblyEventConnector(); |
355 | case CompositionPackage.ASSEMBLY_EVENT_CONNECTOR__SINK_ASSEMBLY_CONTEXT_ASSEMBLY_EVENT_CONNECTOR: |
356 | if (resolve) return getSinkAssemblyContext__AssemblyEventConnector(); |
357 | return basicGetSinkAssemblyContext__AssemblyEventConnector(); |
358 | case CompositionPackage.ASSEMBLY_EVENT_CONNECTOR__SOURCE_ASSEMBLY_CONTEXT_ASSEMBLY_EVENT_CONNECTOR: |
359 | if (resolve) return getSourceAssemblyContext__AssemblyEventConnector(); |
360 | return basicGetSourceAssemblyContext__AssemblyEventConnector(); |
361 | case CompositionPackage.ASSEMBLY_EVENT_CONNECTOR__FILTER_CONDITION_ASSEMBLY_EVENT_CONNECTOR: |
362 | return getFilterCondition__AssemblyEventConnector(); |
363 | } |
364 | return super.eGet(featureID, resolve, coreType); |
365 | } |
366 | |
367 | /** |
368 | * <!-- begin-user-doc --> |
369 | * <!-- end-user-doc --> |
370 | * @generated |
371 | */ |
372 | @Override |
373 | public void eSet(int featureID, Object newValue) { |
374 | switch (featureID) { |
375 | case CompositionPackage.ASSEMBLY_EVENT_CONNECTOR__SINK_ROLE_ASSEMBLY_EVENT_CONNECTOR: |
376 | setSinkRole__AssemblyEventConnector((SinkRole)newValue); |
377 | return; |
378 | case CompositionPackage.ASSEMBLY_EVENT_CONNECTOR__SOURCE_ROLE_ASSEMBLY_EVENT_CONNECTOR: |
379 | setSourceRole__AssemblyEventConnector((SourceRole)newValue); |
380 | return; |
381 | case CompositionPackage.ASSEMBLY_EVENT_CONNECTOR__SINK_ASSEMBLY_CONTEXT_ASSEMBLY_EVENT_CONNECTOR: |
382 | setSinkAssemblyContext__AssemblyEventConnector((AssemblyContext)newValue); |
383 | return; |
384 | case CompositionPackage.ASSEMBLY_EVENT_CONNECTOR__SOURCE_ASSEMBLY_CONTEXT_ASSEMBLY_EVENT_CONNECTOR: |
385 | setSourceAssemblyContext__AssemblyEventConnector((AssemblyContext)newValue); |
386 | return; |
387 | case CompositionPackage.ASSEMBLY_EVENT_CONNECTOR__FILTER_CONDITION_ASSEMBLY_EVENT_CONNECTOR: |
388 | setFilterCondition__AssemblyEventConnector((PCMRandomVariable)newValue); |
389 | return; |
390 | } |
391 | super.eSet(featureID, newValue); |
392 | } |
393 | |
394 | /** |
395 | * <!-- begin-user-doc --> |
396 | * <!-- end-user-doc --> |
397 | * @generated |
398 | */ |
399 | @Override |
400 | public void eUnset(int featureID) { |
401 | switch (featureID) { |
402 | case CompositionPackage.ASSEMBLY_EVENT_CONNECTOR__SINK_ROLE_ASSEMBLY_EVENT_CONNECTOR: |
403 | setSinkRole__AssemblyEventConnector((SinkRole)null); |
404 | return; |
405 | case CompositionPackage.ASSEMBLY_EVENT_CONNECTOR__SOURCE_ROLE_ASSEMBLY_EVENT_CONNECTOR: |
406 | setSourceRole__AssemblyEventConnector((SourceRole)null); |
407 | return; |
408 | case CompositionPackage.ASSEMBLY_EVENT_CONNECTOR__SINK_ASSEMBLY_CONTEXT_ASSEMBLY_EVENT_CONNECTOR: |
409 | setSinkAssemblyContext__AssemblyEventConnector((AssemblyContext)null); |
410 | return; |
411 | case CompositionPackage.ASSEMBLY_EVENT_CONNECTOR__SOURCE_ASSEMBLY_CONTEXT_ASSEMBLY_EVENT_CONNECTOR: |
412 | setSourceAssemblyContext__AssemblyEventConnector((AssemblyContext)null); |
413 | return; |
414 | case CompositionPackage.ASSEMBLY_EVENT_CONNECTOR__FILTER_CONDITION_ASSEMBLY_EVENT_CONNECTOR: |
415 | setFilterCondition__AssemblyEventConnector((PCMRandomVariable)null); |
416 | return; |
417 | } |
418 | super.eUnset(featureID); |
419 | } |
420 | |
421 | /** |
422 | * <!-- begin-user-doc --> |
423 | * <!-- end-user-doc --> |
424 | * @generated |
425 | */ |
426 | @Override |
427 | public boolean eIsSet(int featureID) { |
428 | switch (featureID) { |
429 | case CompositionPackage.ASSEMBLY_EVENT_CONNECTOR__SINK_ROLE_ASSEMBLY_EVENT_CONNECTOR: |
430 | return sinkRole__AssemblyEventConnector != null; |
431 | case CompositionPackage.ASSEMBLY_EVENT_CONNECTOR__SOURCE_ROLE_ASSEMBLY_EVENT_CONNECTOR: |
432 | return sourceRole__AssemblyEventConnector != null; |
433 | case CompositionPackage.ASSEMBLY_EVENT_CONNECTOR__SINK_ASSEMBLY_CONTEXT_ASSEMBLY_EVENT_CONNECTOR: |
434 | return sinkAssemblyContext__AssemblyEventConnector != null; |
435 | case CompositionPackage.ASSEMBLY_EVENT_CONNECTOR__SOURCE_ASSEMBLY_CONTEXT_ASSEMBLY_EVENT_CONNECTOR: |
436 | return sourceAssemblyContext__AssemblyEventConnector != null; |
437 | case CompositionPackage.ASSEMBLY_EVENT_CONNECTOR__FILTER_CONDITION_ASSEMBLY_EVENT_CONNECTOR: |
438 | return filterCondition__AssemblyEventConnector != null; |
439 | } |
440 | return super.eIsSet(featureID); |
441 | } |
442 | |
443 | } //AssemblyEventConnectorImpl |