EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012)
[all classes][de.uka.ipd.sdq.pcm.allocation.impl]

COVERAGE SUMMARY FOR SOURCE FILE [AllocationContextImpl.java]

nameclass, %method, %block, %line, %
AllocationContextImpl.java0%   (0/1)0%   (0/23)0%   (0/511)0%   (0/126)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class AllocationContextImpl0%   (0/1)0%   (0/23)0%   (0/511)0%   (0/126)
<static initializer> 0%   (0/1)0%   (0/3)0%   (0/2)
AllocationContextImpl (): void 0%   (0/1)0%   (0/3)0%   (0/2)
OneAssemblyContextOrOneEventChannelShouldBeReferred (DiagnosticChain, Map): b... 0%   (0/1)0%   (0/62)0%   (0/17)
basicGetAssemblyContext_AllocationContext (): AssemblyContext 0%   (0/1)0%   (0/3)0%   (0/1)
basicGetEventChannel__AllocationContext (): EventChannel 0%   (0/1)0%   (0/3)0%   (0/1)
basicGetResourceContainer_AllocationContext (): ResourceContainer 0%   (0/1)0%   (0/3)0%   (0/1)
basicSetAllocation_AllocationContext (Allocation, NotificationChain): Notific... 0%   (0/1)0%   (0/9)0%   (0/2)
eBasicRemoveFromContainerFeature (NotificationChain): NotificationChain 0%   (0/1)0%   (0/15)0%   (0/3)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/35)0%   (0/9)
eInverseAdd (InternalEObject, int, NotificationChain): NotificationChain 0%   (0/1)0%   (0/21)0%   (0/5)
eInverseRemove (InternalEObject, int, NotificationChain): NotificationChain 0%   (0/1)0%   (0/13)0%   (0/3)
eIsSet (int): boolean 0%   (0/1)0%   (0/34)0%   (0/6)
eSet (int, Object): void 0%   (0/1)0%   (0/27)0%   (0/11)
eStaticClass (): EClass 0%   (0/1)0%   (0/2)0%   (0/1)
eUnset (int): void 0%   (0/1)0%   (0/22)0%   (0/11)
getAllocation_AllocationContext (): Allocation 0%   (0/1)0%   (0/10)0%   (0/2)
getAssemblyContext_AllocationContext (): AssemblyContext 0%   (0/1)0%   (0/38)0%   (0/7)
getEventChannel__AllocationContext (): EventChannel 0%   (0/1)0%   (0/38)0%   (0/7)
getResourceContainer_AllocationContext (): ResourceContainer 0%   (0/1)0%   (0/38)0%   (0/7)
setAllocation_AllocationContext (Allocation): void 0%   (0/1)0%   (0/69)0%   (0/13)
setAssemblyContext_AllocationContext (AssemblyContext): void 0%   (0/1)0%   (0/21)0%   (0/5)
setEventChannel__AllocationContext (EventChannel): void 0%   (0/1)0%   (0/21)0%   (0/5)
setResourceContainer_AllocationContext (ResourceContainer): void 0%   (0/1)0%   (0/21)0%   (0/5)

1/**
2 * Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany
3 *
4 * $Id$
5 */
6package de.uka.ipd.sdq.pcm.allocation.impl;
7 
8import java.util.Map;
9 
10import org.eclipse.emf.common.notify.Notification;
11import org.eclipse.emf.common.notify.NotificationChain;
12import org.eclipse.emf.common.util.BasicDiagnostic;
13import org.eclipse.emf.common.util.Diagnostic;
14import org.eclipse.emf.common.util.DiagnosticChain;
15import org.eclipse.emf.ecore.EClass;
16import org.eclipse.emf.ecore.InternalEObject;
17import org.eclipse.emf.ecore.impl.ENotificationImpl;
18import org.eclipse.emf.ecore.plugin.EcorePlugin;
19import org.eclipse.emf.ecore.util.EObjectValidator;
20import org.eclipse.emf.ecore.util.EcoreUtil;
21import org.eclipse.ocl.ParserException;
22import org.eclipse.ocl.ecore.Constraint;
23import org.eclipse.ocl.ecore.OCL;
24 
25import de.uka.ipd.sdq.pcm.allocation.Allocation;
26import de.uka.ipd.sdq.pcm.allocation.AllocationContext;
27import de.uka.ipd.sdq.pcm.allocation.AllocationPackage;
28import de.uka.ipd.sdq.pcm.allocation.util.AllocationValidator;
29import de.uka.ipd.sdq.pcm.core.composition.AssemblyContext;
30import de.uka.ipd.sdq.pcm.core.composition.EventChannel;
31import de.uka.ipd.sdq.pcm.core.entity.impl.EntityImpl;
32import de.uka.ipd.sdq.pcm.resourceenvironment.ResourceContainer;
33 
34/**
35 * <!-- begin-user-doc -->
36 * An implementation of the model object '<em><b>Context</b></em>'.
37 * <!-- end-user-doc -->
38 * <p>
39 * The following features are implemented:
40 * <ul>
41 *   <li>{@link de.uka.ipd.sdq.pcm.allocation.impl.AllocationContextImpl#getResourceContainer_AllocationContext <em>Resource Container Allocation Context</em>}</li>
42 *   <li>{@link de.uka.ipd.sdq.pcm.allocation.impl.AllocationContextImpl#getAssemblyContext_AllocationContext <em>Assembly Context Allocation Context</em>}</li>
43 *   <li>{@link de.uka.ipd.sdq.pcm.allocation.impl.AllocationContextImpl#getAllocation_AllocationContext <em>Allocation Allocation Context</em>}</li>
44 *   <li>{@link de.uka.ipd.sdq.pcm.allocation.impl.AllocationContextImpl#getEventChannel__AllocationContext <em>Event Channel Allocation Context</em>}</li>
45 * </ul>
46 * </p>
47 *
48 * @generated
49 */
50public class AllocationContextImpl extends EntityImpl implements AllocationContext {
51        /**
52         * <!-- begin-user-doc -->
53         * <!-- end-user-doc -->
54         * @generated
55         */
56        public static final String copyright = "Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany";
57 
58        /**
59         * The cached value of the '{@link #getResourceContainer_AllocationContext() <em>Resource Container Allocation Context</em>}' reference.
60         * <!-- begin-user-doc -->
61         * <!-- end-user-doc -->
62         * @see #getResourceContainer_AllocationContext()
63         * @generated
64         * @ordered
65         */
66        protected ResourceContainer resourceContainer_AllocationContext;
67 
68        /**
69         * The cached value of the '{@link #getAssemblyContext_AllocationContext() <em>Assembly Context Allocation Context</em>}' reference.
70         * <!-- begin-user-doc -->
71         * <!-- end-user-doc -->
72         * @see #getAssemblyContext_AllocationContext()
73         * @generated
74         * @ordered
75         */
76        protected AssemblyContext assemblyContext_AllocationContext;
77 
78        /**
79         * The cached value of the '{@link #getEventChannel__AllocationContext() <em>Event Channel Allocation Context</em>}' reference.
80         * <!-- begin-user-doc -->
81         * <!-- end-user-doc -->
82         * @see #getEventChannel__AllocationContext()
83         * @generated
84         * @ordered
85         */
86        protected EventChannel eventChannel__AllocationContext;
87 
88        /**
89         * <!-- begin-user-doc -->
90         * <!-- end-user-doc -->
91         * @generated
92         */
93        protected AllocationContextImpl() {
94                super();
95        }
96 
97        /**
98         * <!-- begin-user-doc -->
99         * <!-- end-user-doc -->
100         * @generated
101         */
102        @Override
103        protected EClass eStaticClass() {
104                return AllocationPackage.Literals.ALLOCATION_CONTEXT;
105        }
106 
107        /**
108         * <!-- begin-user-doc -->
109         * <!-- end-user-doc -->
110         * @generated
111         */
112        public ResourceContainer getResourceContainer_AllocationContext() {
113                if (resourceContainer_AllocationContext != null && resourceContainer_AllocationContext.eIsProxy()) {
114                        InternalEObject oldResourceContainer_AllocationContext = (InternalEObject)resourceContainer_AllocationContext;
115                        resourceContainer_AllocationContext = (ResourceContainer)eResolveProxy(oldResourceContainer_AllocationContext);
116                        if (resourceContainer_AllocationContext != oldResourceContainer_AllocationContext) {
117                                if (eNotificationRequired())
118                                        eNotify(new ENotificationImpl(this, Notification.RESOLVE, AllocationPackage.ALLOCATION_CONTEXT__RESOURCE_CONTAINER_ALLOCATION_CONTEXT, oldResourceContainer_AllocationContext, resourceContainer_AllocationContext));
119                        }
120                }
121                return resourceContainer_AllocationContext;
122        }
123 
124        /**
125         * <!-- begin-user-doc -->
126         * <!-- end-user-doc -->
127         * @generated
128         */
129        public ResourceContainer basicGetResourceContainer_AllocationContext() {
130                return resourceContainer_AllocationContext;
131        }
132 
133        /**
134         * <!-- begin-user-doc -->
135         * <!-- end-user-doc -->
136         * @generated
137         */
138        public void setResourceContainer_AllocationContext(ResourceContainer newResourceContainer_AllocationContext) {
139                ResourceContainer oldResourceContainer_AllocationContext = resourceContainer_AllocationContext;
140                resourceContainer_AllocationContext = newResourceContainer_AllocationContext;
141                if (eNotificationRequired())
142                        eNotify(new ENotificationImpl(this, Notification.SET, AllocationPackage.ALLOCATION_CONTEXT__RESOURCE_CONTAINER_ALLOCATION_CONTEXT, oldResourceContainer_AllocationContext, resourceContainer_AllocationContext));
143        }
144 
145        /**
146         * <!-- begin-user-doc -->
147         * <!-- end-user-doc -->
148         * @generated
149         */
150        public AssemblyContext getAssemblyContext_AllocationContext() {
151                if (assemblyContext_AllocationContext != null && assemblyContext_AllocationContext.eIsProxy()) {
152                        InternalEObject oldAssemblyContext_AllocationContext = (InternalEObject)assemblyContext_AllocationContext;
153                        assemblyContext_AllocationContext = (AssemblyContext)eResolveProxy(oldAssemblyContext_AllocationContext);
154                        if (assemblyContext_AllocationContext != oldAssemblyContext_AllocationContext) {
155                                if (eNotificationRequired())
156                                        eNotify(new ENotificationImpl(this, Notification.RESOLVE, AllocationPackage.ALLOCATION_CONTEXT__ASSEMBLY_CONTEXT_ALLOCATION_CONTEXT, oldAssemblyContext_AllocationContext, assemblyContext_AllocationContext));
157                        }
158                }
159                return assemblyContext_AllocationContext;
160        }
161 
162        /**
163         * <!-- begin-user-doc -->
164         * <!-- end-user-doc -->
165         * @generated
166         */
167        public AssemblyContext basicGetAssemblyContext_AllocationContext() {
168                return assemblyContext_AllocationContext;
169        }
170 
171        /**
172         * <!-- begin-user-doc -->
173         * <!-- end-user-doc -->
174         * @generated
175         */
176        public void setAssemblyContext_AllocationContext(AssemblyContext newAssemblyContext_AllocationContext) {
177                AssemblyContext oldAssemblyContext_AllocationContext = assemblyContext_AllocationContext;
178                assemblyContext_AllocationContext = newAssemblyContext_AllocationContext;
179                if (eNotificationRequired())
180                        eNotify(new ENotificationImpl(this, Notification.SET, AllocationPackage.ALLOCATION_CONTEXT__ASSEMBLY_CONTEXT_ALLOCATION_CONTEXT, oldAssemblyContext_AllocationContext, assemblyContext_AllocationContext));
181        }
182 
183        /**
184         * <!-- begin-user-doc -->
185         * <!-- end-user-doc -->
186         * @generated
187         */
188        public Allocation getAllocation_AllocationContext() {
189                if (eContainerFeatureID() != AllocationPackage.ALLOCATION_CONTEXT__ALLOCATION_ALLOCATION_CONTEXT) return null;
190                return (Allocation)eContainer();
191        }
192 
193        /**
194         * <!-- begin-user-doc -->
195         * <!-- end-user-doc -->
196         * @generated
197         */
198        public NotificationChain basicSetAllocation_AllocationContext(Allocation newAllocation_AllocationContext, NotificationChain msgs) {
199                msgs = eBasicSetContainer((InternalEObject)newAllocation_AllocationContext, AllocationPackage.ALLOCATION_CONTEXT__ALLOCATION_ALLOCATION_CONTEXT, msgs);
200                return msgs;
201        }
202 
203        /**
204         * <!-- begin-user-doc -->
205         * <!-- end-user-doc -->
206         * @generated
207         */
208        public void setAllocation_AllocationContext(Allocation newAllocation_AllocationContext) {
209                if (newAllocation_AllocationContext != eInternalContainer() || (eContainerFeatureID() != AllocationPackage.ALLOCATION_CONTEXT__ALLOCATION_ALLOCATION_CONTEXT && newAllocation_AllocationContext != null)) {
210                        if (EcoreUtil.isAncestor(this, newAllocation_AllocationContext))
211                                throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
212                        NotificationChain msgs = null;
213                        if (eInternalContainer() != null)
214                                msgs = eBasicRemoveFromContainer(msgs);
215                        if (newAllocation_AllocationContext != null)
216                                msgs = ((InternalEObject)newAllocation_AllocationContext).eInverseAdd(this, AllocationPackage.ALLOCATION__ALLOCATION_CONTEXTS_ALLOCATION, Allocation.class, msgs);
217                        msgs = basicSetAllocation_AllocationContext(newAllocation_AllocationContext, msgs);
218                        if (msgs != null) msgs.dispatch();
219                }
220                else if (eNotificationRequired())
221                        eNotify(new ENotificationImpl(this, Notification.SET, AllocationPackage.ALLOCATION_CONTEXT__ALLOCATION_ALLOCATION_CONTEXT, newAllocation_AllocationContext, newAllocation_AllocationContext));
222        }
223 
224        /**
225         * <!-- begin-user-doc -->
226         * <!-- end-user-doc -->
227         * @generated
228         */
229        public EventChannel getEventChannel__AllocationContext() {
230                if (eventChannel__AllocationContext != null && eventChannel__AllocationContext.eIsProxy()) {
231                        InternalEObject oldEventChannel__AllocationContext = (InternalEObject)eventChannel__AllocationContext;
232                        eventChannel__AllocationContext = (EventChannel)eResolveProxy(oldEventChannel__AllocationContext);
233                        if (eventChannel__AllocationContext != oldEventChannel__AllocationContext) {
234                                if (eNotificationRequired())
235                                        eNotify(new ENotificationImpl(this, Notification.RESOLVE, AllocationPackage.ALLOCATION_CONTEXT__EVENT_CHANNEL_ALLOCATION_CONTEXT, oldEventChannel__AllocationContext, eventChannel__AllocationContext));
236                        }
237                }
238                return eventChannel__AllocationContext;
239        }
240 
241        /**
242         * <!-- begin-user-doc -->
243         * <!-- end-user-doc -->
244         * @generated
245         */
246        public EventChannel basicGetEventChannel__AllocationContext() {
247                return eventChannel__AllocationContext;
248        }
249 
250        /**
251         * <!-- begin-user-doc -->
252         * <!-- end-user-doc -->
253         * @generated
254         */
255        public void setEventChannel__AllocationContext(EventChannel newEventChannel__AllocationContext) {
256                EventChannel oldEventChannel__AllocationContext = eventChannel__AllocationContext;
257                eventChannel__AllocationContext = newEventChannel__AllocationContext;
258                if (eNotificationRequired())
259                        eNotify(new ENotificationImpl(this, Notification.SET, AllocationPackage.ALLOCATION_CONTEXT__EVENT_CHANNEL_ALLOCATION_CONTEXT, oldEventChannel__AllocationContext, eventChannel__AllocationContext));
260        }
261 
262        /**
263         * The cached OCL expression body for the '{@link #OneAssemblyContextOrOneEventChannelShouldBeReferred(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map) <em>One Assembly Context Or One Event Channel Should Be Referred</em>}' operation.
264         * <!-- begin-user-doc -->
265         * <!-- end-user-doc -->
266         * @see #OneAssemblyContextOrOneEventChannelShouldBeReferred(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map)
267         * @generated
268         * @ordered
269         */
270        protected static final String ONE_ASSEMBLY_CONTEXT_OR_ONE_EVENT_CHANNEL_SHOULD_BE_REFERRED__DIAGNOSTIC_CHAIN_MAP__EOCL_EXP = "not(self.assemblyContext_AllocationContext.oclIsUndefined()) xor not(self.eventChannel__AllocationContext.oclIsUndefined())";
271 
272        /**
273         * The cached OCL invariant for the '{@link #OneAssemblyContextOrOneEventChannelShouldBeReferred(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map) <em>One Assembly Context Or One Event Channel Should Be Referred</em>}' invariant operation.
274         * <!-- begin-user-doc -->
275         * <!-- end-user-doc -->
276         * @see #OneAssemblyContextOrOneEventChannelShouldBeReferred(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map)
277         * @generated
278         * @ordered
279         */
280        protected static Constraint ONE_ASSEMBLY_CONTEXT_OR_ONE_EVENT_CHANNEL_SHOULD_BE_REFERRED__DIAGNOSTIC_CHAIN_MAP__EOCL_INV;
281 
282        /**
283         * <!-- begin-user-doc -->
284         * <!-- end-user-doc -->
285         * @generated
286         */
287        public boolean OneAssemblyContextOrOneEventChannelShouldBeReferred(DiagnosticChain diagnostics, Map<Object, Object> context) {
288                if (ONE_ASSEMBLY_CONTEXT_OR_ONE_EVENT_CHANNEL_SHOULD_BE_REFERRED__DIAGNOSTIC_CHAIN_MAP__EOCL_INV == null) {
289                        OCL.Helper helper = EOCL_ENV.createOCLHelper();
290                        helper.setContext(AllocationPackage.Literals.ALLOCATION_CONTEXT);
291                        try {
292                                ONE_ASSEMBLY_CONTEXT_OR_ONE_EVENT_CHANNEL_SHOULD_BE_REFERRED__DIAGNOSTIC_CHAIN_MAP__EOCL_INV = helper.createInvariant(ONE_ASSEMBLY_CONTEXT_OR_ONE_EVENT_CHANNEL_SHOULD_BE_REFERRED__DIAGNOSTIC_CHAIN_MAP__EOCL_EXP);
293                        }
294                        catch (ParserException pe) {
295                                throw new UnsupportedOperationException(pe.getLocalizedMessage());
296                        }
297                }
298                if (!EOCL_ENV.createQuery(ONE_ASSEMBLY_CONTEXT_OR_ONE_EVENT_CHANNEL_SHOULD_BE_REFERRED__DIAGNOSTIC_CHAIN_MAP__EOCL_INV).check(this)) {
299                        if (diagnostics != null) {
300                                diagnostics.add
301                                        (new BasicDiagnostic
302                                                (Diagnostic.ERROR,
303                                                 AllocationValidator.DIAGNOSTIC_SOURCE,
304                                                 AllocationValidator.ALLOCATION_CONTEXT__ONE_ASSEMBLY_CONTEXT_OR_ONE_EVENT_CHANNEL_SHOULD_BE_REFERRED,
305                                                 EcorePlugin.INSTANCE.getString("_UI_GenericInvariant_diagnostic", new Object[] { "OneAssemblyContextOrOneEventChannelShouldBeReferred", EObjectValidator.getObjectLabel(this, context) }),
306                                                 new Object [] { this }));
307                        }
308                        return false;
309                }
310                return true;
311        }
312 
313        /**
314         * <!-- begin-user-doc -->
315         * <!-- end-user-doc -->
316         * @generated
317         */
318        @Override
319        public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
320                switch (featureID) {
321                        case AllocationPackage.ALLOCATION_CONTEXT__ALLOCATION_ALLOCATION_CONTEXT:
322                                if (eInternalContainer() != null)
323                                        msgs = eBasicRemoveFromContainer(msgs);
324                                return basicSetAllocation_AllocationContext((Allocation)otherEnd, msgs);
325                }
326                return super.eInverseAdd(otherEnd, featureID, msgs);
327        }
328 
329        /**
330         * <!-- begin-user-doc -->
331         * <!-- end-user-doc -->
332         * @generated
333         */
334        @Override
335        public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
336                switch (featureID) {
337                        case AllocationPackage.ALLOCATION_CONTEXT__ALLOCATION_ALLOCATION_CONTEXT:
338                                return basicSetAllocation_AllocationContext(null, msgs);
339                }
340                return super.eInverseRemove(otherEnd, featureID, msgs);
341        }
342 
343        /**
344         * <!-- begin-user-doc -->
345         * <!-- end-user-doc -->
346         * @generated
347         */
348        @Override
349        public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) {
350                switch (eContainerFeatureID()) {
351                        case AllocationPackage.ALLOCATION_CONTEXT__ALLOCATION_ALLOCATION_CONTEXT:
352                                return eInternalContainer().eInverseRemove(this, AllocationPackage.ALLOCATION__ALLOCATION_CONTEXTS_ALLOCATION, Allocation.class, msgs);
353                }
354                return super.eBasicRemoveFromContainerFeature(msgs);
355        }
356 
357        /**
358         * <!-- begin-user-doc -->
359         * <!-- end-user-doc -->
360         * @generated
361         */
362        @Override
363        public Object eGet(int featureID, boolean resolve, boolean coreType) {
364                switch (featureID) {
365                        case AllocationPackage.ALLOCATION_CONTEXT__RESOURCE_CONTAINER_ALLOCATION_CONTEXT:
366                                if (resolve) return getResourceContainer_AllocationContext();
367                                return basicGetResourceContainer_AllocationContext();
368                        case AllocationPackage.ALLOCATION_CONTEXT__ASSEMBLY_CONTEXT_ALLOCATION_CONTEXT:
369                                if (resolve) return getAssemblyContext_AllocationContext();
370                                return basicGetAssemblyContext_AllocationContext();
371                        case AllocationPackage.ALLOCATION_CONTEXT__ALLOCATION_ALLOCATION_CONTEXT:
372                                return getAllocation_AllocationContext();
373                        case AllocationPackage.ALLOCATION_CONTEXT__EVENT_CHANNEL_ALLOCATION_CONTEXT:
374                                if (resolve) return getEventChannel__AllocationContext();
375                                return basicGetEventChannel__AllocationContext();
376                }
377                return super.eGet(featureID, resolve, coreType);
378        }
379 
380        /**
381         * <!-- begin-user-doc -->
382         * <!-- end-user-doc -->
383         * @generated
384         */
385        @Override
386        public void eSet(int featureID, Object newValue) {
387                switch (featureID) {
388                        case AllocationPackage.ALLOCATION_CONTEXT__RESOURCE_CONTAINER_ALLOCATION_CONTEXT:
389                                setResourceContainer_AllocationContext((ResourceContainer)newValue);
390                                return;
391                        case AllocationPackage.ALLOCATION_CONTEXT__ASSEMBLY_CONTEXT_ALLOCATION_CONTEXT:
392                                setAssemblyContext_AllocationContext((AssemblyContext)newValue);
393                                return;
394                        case AllocationPackage.ALLOCATION_CONTEXT__ALLOCATION_ALLOCATION_CONTEXT:
395                                setAllocation_AllocationContext((Allocation)newValue);
396                                return;
397                        case AllocationPackage.ALLOCATION_CONTEXT__EVENT_CHANNEL_ALLOCATION_CONTEXT:
398                                setEventChannel__AllocationContext((EventChannel)newValue);
399                                return;
400                }
401                super.eSet(featureID, newValue);
402        }
403 
404        /**
405         * <!-- begin-user-doc -->
406         * <!-- end-user-doc -->
407         * @generated
408         */
409        @Override
410        public void eUnset(int featureID) {
411                switch (featureID) {
412                        case AllocationPackage.ALLOCATION_CONTEXT__RESOURCE_CONTAINER_ALLOCATION_CONTEXT:
413                                setResourceContainer_AllocationContext((ResourceContainer)null);
414                                return;
415                        case AllocationPackage.ALLOCATION_CONTEXT__ASSEMBLY_CONTEXT_ALLOCATION_CONTEXT:
416                                setAssemblyContext_AllocationContext((AssemblyContext)null);
417                                return;
418                        case AllocationPackage.ALLOCATION_CONTEXT__ALLOCATION_ALLOCATION_CONTEXT:
419                                setAllocation_AllocationContext((Allocation)null);
420                                return;
421                        case AllocationPackage.ALLOCATION_CONTEXT__EVENT_CHANNEL_ALLOCATION_CONTEXT:
422                                setEventChannel__AllocationContext((EventChannel)null);
423                                return;
424                }
425                super.eUnset(featureID);
426        }
427 
428        /**
429         * <!-- begin-user-doc -->
430         * <!-- end-user-doc -->
431         * @generated
432         */
433        @Override
434        public boolean eIsSet(int featureID) {
435                switch (featureID) {
436                        case AllocationPackage.ALLOCATION_CONTEXT__RESOURCE_CONTAINER_ALLOCATION_CONTEXT:
437                                return resourceContainer_AllocationContext != null;
438                        case AllocationPackage.ALLOCATION_CONTEXT__ASSEMBLY_CONTEXT_ALLOCATION_CONTEXT:
439                                return assemblyContext_AllocationContext != null;
440                        case AllocationPackage.ALLOCATION_CONTEXT__ALLOCATION_ALLOCATION_CONTEXT:
441                                return getAllocation_AllocationContext() != null;
442                        case AllocationPackage.ALLOCATION_CONTEXT__EVENT_CHANNEL_ALLOCATION_CONTEXT:
443                                return eventChannel__AllocationContext != null;
444                }
445                return super.eIsSet(featureID);
446        }
447 
448        /**
449         * The cached environment for evaluating OCL expressions.
450         * <!-- begin-user-doc -->
451         * <!-- end-user-doc -->
452         * @generated
453         * @ordered
454         */
455        protected static final OCL EOCL_ENV = OCL.newInstance();
456 
457} //AllocationContextImpl

[all classes][de.uka.ipd.sdq.pcm.allocation.impl]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov