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

COVERAGE SUMMARY FOR SOURCE FILE [ComputedUsageContextImpl.java]

nameclass, %method, %block, %line, %
ComputedUsageContextImpl.java0%   (0/1)0%   (0/21)0%   (0/554)0%   (0/132)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ComputedUsageContextImpl0%   (0/1)0%   (0/21)0%   (0/554)0%   (0/132)
ComputedUsageContextImpl (): void 0%   (0/1)0%   (0/3)0%   (0/2)
basicGetAssemblyContext_ComputedUsageContext (): AssemblyContext 0%   (0/1)0%   (0/3)0%   (0/1)
basicSetInput_ComputedUsageContext (Input, NotificationChain): NotificationChain 0%   (0/1)0%   (0/29)0%   (0/6)
basicSetOutput_ComputedUsageContext (Output, NotificationChain): Notification... 0%   (0/1)0%   (0/29)0%   (0/6)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/34)0%   (0/10)
eInverseAdd (InternalEObject, int, NotificationChain): NotificationChain 0%   (0/1)0%   (0/15)0%   (0/3)
eInverseRemove (InternalEObject, int, NotificationChain): NotificationChain 0%   (0/1)0%   (0/46)0%   (0/8)
eIsSet (int): boolean 0%   (0/1)0%   (0/71)0%   (0/9)
eSet (int, Object): void 0%   (0/1)0%   (0/62)0%   (0/21)
eStaticClass (): EClass 0%   (0/1)0%   (0/2)0%   (0/1)
eUnset (int): void 0%   (0/1)0%   (0/34)0%   (0/17)
getAssemblyContext_ComputedUsageContext (): AssemblyContext 0%   (0/1)0%   (0/38)0%   (0/7)
getBranchProbabilities_ComputedUsageContext (): EList 0%   (0/1)0%   (0/14)0%   (0/3)
getExternalCallInput_ComputedUsageContext (): EList 0%   (0/1)0%   (0/15)0%   (0/3)
getExternalCallOutput_ComputedUsageContext (): EList 0%   (0/1)0%   (0/14)0%   (0/3)
getInput_ComputedUsageContext (): Input 0%   (0/1)0%   (0/3)0%   (0/1)
getLoopiterations_ComputedUsageContext (): EList 0%   (0/1)0%   (0/14)0%   (0/3)
getOutput_ComputedUsageContext (): Output 0%   (0/1)0%   (0/3)0%   (0/1)
setAssemblyContext_ComputedUsageContext (AssemblyContext): void 0%   (0/1)0%   (0/21)0%   (0/5)
setInput_ComputedUsageContext (Input): void 0%   (0/1)0%   (0/52)0%   (0/11)
setOutput_ComputedUsageContext (Output): void 0%   (0/1)0%   (0/52)0%   (0/11)

1/**
2 * Copyright 2006, SDQ Group, University Karlsruhe (TH)
3 *
4 * $Id$
5 */
6package de.uka.ipd.sdq.context.computed_usage.impl;
7 
8import java.util.Collection;
9 
10import org.eclipse.emf.common.notify.Notification;
11import org.eclipse.emf.common.notify.NotificationChain;
12import org.eclipse.emf.common.util.EList;
13import org.eclipse.emf.ecore.EClass;
14import org.eclipse.emf.ecore.InternalEObject;
15import org.eclipse.emf.ecore.impl.ENotificationImpl;
16import org.eclipse.emf.ecore.util.EObjectContainmentEList;
17import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList;
18import org.eclipse.emf.ecore.util.InternalEList;
19 
20import de.uka.ipd.sdq.context.computed_usage.BranchProbability;
21import de.uka.ipd.sdq.context.computed_usage.ComputedUsageContext;
22import de.uka.ipd.sdq.context.computed_usage.ComputedUsagePackage;
23import de.uka.ipd.sdq.context.computed_usage.ExternalCallInput;
24import de.uka.ipd.sdq.context.computed_usage.ExternalCallOutput;
25import de.uka.ipd.sdq.context.computed_usage.Input;
26import de.uka.ipd.sdq.context.computed_usage.LoopIteration;
27import de.uka.ipd.sdq.context.computed_usage.Output;
28import de.uka.ipd.sdq.pcm.core.composition.AssemblyContext;
29import de.uka.ipd.sdq.pcm.core.entity.impl.EntityImpl;
30 
31/**
32 * <!-- begin-user-doc -->
33 * An implementation of the model object '<em><b>Context</b></em>'.
34 * <!-- end-user-doc -->
35 * <p>
36 * The following features are implemented:
37 * <ul>
38 *   <li>{@link de.uka.ipd.sdq.context.computed_usage.impl.ComputedUsageContextImpl#getBranchProbabilities_ComputedUsageContext <em>Branch Probabilities Computed Usage Context</em>}</li>
39 *   <li>{@link de.uka.ipd.sdq.context.computed_usage.impl.ComputedUsageContextImpl#getLoopiterations_ComputedUsageContext <em>Loopiterations Computed Usage Context</em>}</li>
40 *   <li>{@link de.uka.ipd.sdq.context.computed_usage.impl.ComputedUsageContextImpl#getAssemblyContext_ComputedUsageContext <em>Assembly Context Computed Usage Context</em>}</li>
41 *   <li>{@link de.uka.ipd.sdq.context.computed_usage.impl.ComputedUsageContextImpl#getInput_ComputedUsageContext <em>Input Computed Usage Context</em>}</li>
42 *   <li>{@link de.uka.ipd.sdq.context.computed_usage.impl.ComputedUsageContextImpl#getExternalCallOutput_ComputedUsageContext <em>External Call Output Computed Usage Context</em>}</li>
43 *   <li>{@link de.uka.ipd.sdq.context.computed_usage.impl.ComputedUsageContextImpl#getExternalCallInput_ComputedUsageContext <em>External Call Input Computed Usage Context</em>}</li>
44 *   <li>{@link de.uka.ipd.sdq.context.computed_usage.impl.ComputedUsageContextImpl#getOutput_ComputedUsageContext <em>Output Computed Usage Context</em>}</li>
45 * </ul>
46 * </p>
47 *
48 * @generated
49 */
50public class ComputedUsageContextImpl extends EntityImpl implements ComputedUsageContext {
51        /**
52         * <!-- begin-user-doc -->
53         * <!-- end-user-doc -->
54         * @generated
55         */
56        public static final String copyright = "Copyright 2006, SDQ Group, University Karlsruhe (TH)";
57 
58        /**
59         * The cached value of the '{@link #getBranchProbabilities_ComputedUsageContext() <em>Branch Probabilities Computed Usage Context</em>}' containment reference list.
60         * <!-- begin-user-doc -->
61         * <!-- end-user-doc -->
62         * @see #getBranchProbabilities_ComputedUsageContext()
63         * @generated
64         * @ordered
65         */
66        protected EList<BranchProbability> branchProbabilities_ComputedUsageContext;
67 
68        /**
69         * The cached value of the '{@link #getLoopiterations_ComputedUsageContext() <em>Loopiterations Computed Usage Context</em>}' containment reference list.
70         * <!-- begin-user-doc -->
71         * <!-- end-user-doc -->
72         * @see #getLoopiterations_ComputedUsageContext()
73         * @generated
74         * @ordered
75         */
76        protected EList<LoopIteration> loopiterations_ComputedUsageContext;
77 
78        /**
79         * The cached value of the '{@link #getAssemblyContext_ComputedUsageContext() <em>Assembly Context Computed Usage Context</em>}' reference.
80         * <!-- begin-user-doc -->
81         * <!-- end-user-doc -->
82         * @see #getAssemblyContext_ComputedUsageContext()
83         * @generated
84         * @ordered
85         */
86        protected AssemblyContext assemblyContext_ComputedUsageContext;
87 
88        /**
89         * The cached value of the '{@link #getInput_ComputedUsageContext() <em>Input Computed Usage Context</em>}' containment reference.
90         * <!-- begin-user-doc -->
91         * <!-- end-user-doc -->
92         * @see #getInput_ComputedUsageContext()
93         * @generated
94         * @ordered
95         */
96        protected Input input_ComputedUsageContext;
97 
98        /**
99         * The cached value of the '{@link #getExternalCallOutput_ComputedUsageContext() <em>External Call Output Computed Usage Context</em>}' containment reference list.
100         * <!-- begin-user-doc -->
101         * <!-- end-user-doc -->
102         * @see #getExternalCallOutput_ComputedUsageContext()
103         * @generated
104         * @ordered
105         */
106        protected EList<ExternalCallOutput> externalCallOutput_ComputedUsageContext;
107 
108        /**
109         * The cached value of the '{@link #getExternalCallInput_ComputedUsageContext() <em>External Call Input Computed Usage Context</em>}' containment reference list.
110         * <!-- begin-user-doc -->
111         * <!-- end-user-doc -->
112         * @see #getExternalCallInput_ComputedUsageContext()
113         * @generated
114         * @ordered
115         */
116        protected EList<ExternalCallInput> externalCallInput_ComputedUsageContext;
117 
118        /**
119         * The cached value of the '{@link #getOutput_ComputedUsageContext() <em>Output Computed Usage Context</em>}' containment reference.
120         * <!-- begin-user-doc -->
121         * <!-- end-user-doc -->
122         * @see #getOutput_ComputedUsageContext()
123         * @generated
124         * @ordered
125         */
126        protected Output output_ComputedUsageContext;
127 
128        /**
129         * <!-- begin-user-doc -->
130         * <!-- end-user-doc -->
131         * @generated
132         */
133        protected ComputedUsageContextImpl() {
134                super();
135        }
136 
137        /**
138         * <!-- begin-user-doc -->
139         * <!-- end-user-doc -->
140         * @generated
141         */
142        @Override
143        protected EClass eStaticClass() {
144                return ComputedUsagePackage.Literals.COMPUTED_USAGE_CONTEXT;
145        }
146 
147        /**
148         * <!-- begin-user-doc -->
149         * <!-- end-user-doc -->
150         * @generated
151         */
152        public EList<BranchProbability> getBranchProbabilities_ComputedUsageContext() {
153                if (branchProbabilities_ComputedUsageContext == null) {
154                        branchProbabilities_ComputedUsageContext = new EObjectContainmentEList<BranchProbability>(BranchProbability.class, this, ComputedUsagePackage.COMPUTED_USAGE_CONTEXT__BRANCH_PROBABILITIES_COMPUTED_USAGE_CONTEXT);
155                }
156                return branchProbabilities_ComputedUsageContext;
157        }
158 
159        /**
160         * <!-- begin-user-doc -->
161         * <!-- end-user-doc -->
162         * @generated
163         */
164        public EList<LoopIteration> getLoopiterations_ComputedUsageContext() {
165                if (loopiterations_ComputedUsageContext == null) {
166                        loopiterations_ComputedUsageContext = new EObjectContainmentEList<LoopIteration>(LoopIteration.class, this, ComputedUsagePackage.COMPUTED_USAGE_CONTEXT__LOOPITERATIONS_COMPUTED_USAGE_CONTEXT);
167                }
168                return loopiterations_ComputedUsageContext;
169        }
170 
171        /**
172         * <!-- begin-user-doc -->
173         * <!-- end-user-doc -->
174         * @generated
175         */
176        public AssemblyContext getAssemblyContext_ComputedUsageContext() {
177                if (assemblyContext_ComputedUsageContext != null && assemblyContext_ComputedUsageContext.eIsProxy()) {
178                        InternalEObject oldAssemblyContext_ComputedUsageContext = (InternalEObject)assemblyContext_ComputedUsageContext;
179                        assemblyContext_ComputedUsageContext = (AssemblyContext)eResolveProxy(oldAssemblyContext_ComputedUsageContext);
180                        if (assemblyContext_ComputedUsageContext != oldAssemblyContext_ComputedUsageContext) {
181                                if (eNotificationRequired())
182                                        eNotify(new ENotificationImpl(this, Notification.RESOLVE, ComputedUsagePackage.COMPUTED_USAGE_CONTEXT__ASSEMBLY_CONTEXT_COMPUTED_USAGE_CONTEXT, oldAssemblyContext_ComputedUsageContext, assemblyContext_ComputedUsageContext));
183                        }
184                }
185                return assemblyContext_ComputedUsageContext;
186        }
187 
188        /**
189         * <!-- begin-user-doc -->
190         * <!-- end-user-doc -->
191         * @generated
192         */
193        public AssemblyContext basicGetAssemblyContext_ComputedUsageContext() {
194                return assemblyContext_ComputedUsageContext;
195        }
196 
197        /**
198         * <!-- begin-user-doc -->
199         * <!-- end-user-doc -->
200         * @generated
201         */
202        public void setAssemblyContext_ComputedUsageContext(AssemblyContext newAssemblyContext_ComputedUsageContext) {
203                AssemblyContext oldAssemblyContext_ComputedUsageContext = assemblyContext_ComputedUsageContext;
204                assemblyContext_ComputedUsageContext = newAssemblyContext_ComputedUsageContext;
205                if (eNotificationRequired())
206                        eNotify(new ENotificationImpl(this, Notification.SET, ComputedUsagePackage.COMPUTED_USAGE_CONTEXT__ASSEMBLY_CONTEXT_COMPUTED_USAGE_CONTEXT, oldAssemblyContext_ComputedUsageContext, assemblyContext_ComputedUsageContext));
207        }
208 
209        /**
210         * <!-- begin-user-doc -->
211         * <!-- end-user-doc -->
212         * @generated
213         */
214        public Input getInput_ComputedUsageContext() {
215                return input_ComputedUsageContext;
216        }
217 
218        /**
219         * <!-- begin-user-doc -->
220         * <!-- end-user-doc -->
221         * @generated
222         */
223        public NotificationChain basicSetInput_ComputedUsageContext(Input newInput_ComputedUsageContext, NotificationChain msgs) {
224                Input oldInput_ComputedUsageContext = input_ComputedUsageContext;
225                input_ComputedUsageContext = newInput_ComputedUsageContext;
226                if (eNotificationRequired()) {
227                        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ComputedUsagePackage.COMPUTED_USAGE_CONTEXT__INPUT_COMPUTED_USAGE_CONTEXT, oldInput_ComputedUsageContext, newInput_ComputedUsageContext);
228                        if (msgs == null) msgs = notification; else msgs.add(notification);
229                }
230                return msgs;
231        }
232 
233        /**
234         * <!-- begin-user-doc -->
235         * <!-- end-user-doc -->
236         * @generated
237         */
238        public void setInput_ComputedUsageContext(Input newInput_ComputedUsageContext) {
239                if (newInput_ComputedUsageContext != input_ComputedUsageContext) {
240                        NotificationChain msgs = null;
241                        if (input_ComputedUsageContext != null)
242                                msgs = ((InternalEObject)input_ComputedUsageContext).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ComputedUsagePackage.COMPUTED_USAGE_CONTEXT__INPUT_COMPUTED_USAGE_CONTEXT, null, msgs);
243                        if (newInput_ComputedUsageContext != null)
244                                msgs = ((InternalEObject)newInput_ComputedUsageContext).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ComputedUsagePackage.COMPUTED_USAGE_CONTEXT__INPUT_COMPUTED_USAGE_CONTEXT, null, msgs);
245                        msgs = basicSetInput_ComputedUsageContext(newInput_ComputedUsageContext, msgs);
246                        if (msgs != null) msgs.dispatch();
247                }
248                else if (eNotificationRequired())
249                        eNotify(new ENotificationImpl(this, Notification.SET, ComputedUsagePackage.COMPUTED_USAGE_CONTEXT__INPUT_COMPUTED_USAGE_CONTEXT, newInput_ComputedUsageContext, newInput_ComputedUsageContext));
250        }
251 
252        /**
253         * <!-- begin-user-doc -->
254         * <!-- end-user-doc -->
255         * @generated
256         */
257        public EList<ExternalCallOutput> getExternalCallOutput_ComputedUsageContext() {
258                if (externalCallOutput_ComputedUsageContext == null) {
259                        externalCallOutput_ComputedUsageContext = new EObjectContainmentEList<ExternalCallOutput>(ExternalCallOutput.class, this, ComputedUsagePackage.COMPUTED_USAGE_CONTEXT__EXTERNAL_CALL_OUTPUT_COMPUTED_USAGE_CONTEXT);
260                }
261                return externalCallOutput_ComputedUsageContext;
262        }
263 
264        /**
265         * <!-- begin-user-doc -->
266         * <!-- end-user-doc -->
267         * @generated
268         */
269        public EList<ExternalCallInput> getExternalCallInput_ComputedUsageContext() {
270                if (externalCallInput_ComputedUsageContext == null) {
271                        externalCallInput_ComputedUsageContext = new EObjectContainmentWithInverseEList<ExternalCallInput>(ExternalCallInput.class, this, ComputedUsagePackage.COMPUTED_USAGE_CONTEXT__EXTERNAL_CALL_INPUT_COMPUTED_USAGE_CONTEXT, ComputedUsagePackage.EXTERNAL_CALL_INPUT__COMPUTED_USAGE_CONTEXT_EXTERNAL_CALL_INPUT);
272                }
273                return externalCallInput_ComputedUsageContext;
274        }
275 
276        /**
277         * <!-- begin-user-doc -->
278         * <!-- end-user-doc -->
279         * @generated
280         */
281        public Output getOutput_ComputedUsageContext() {
282                return output_ComputedUsageContext;
283        }
284 
285        /**
286         * <!-- begin-user-doc -->
287         * <!-- end-user-doc -->
288         * @generated
289         */
290        public NotificationChain basicSetOutput_ComputedUsageContext(Output newOutput_ComputedUsageContext, NotificationChain msgs) {
291                Output oldOutput_ComputedUsageContext = output_ComputedUsageContext;
292                output_ComputedUsageContext = newOutput_ComputedUsageContext;
293                if (eNotificationRequired()) {
294                        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ComputedUsagePackage.COMPUTED_USAGE_CONTEXT__OUTPUT_COMPUTED_USAGE_CONTEXT, oldOutput_ComputedUsageContext, newOutput_ComputedUsageContext);
295                        if (msgs == null) msgs = notification; else msgs.add(notification);
296                }
297                return msgs;
298        }
299 
300        /**
301         * <!-- begin-user-doc -->
302         * <!-- end-user-doc -->
303         * @generated
304         */
305        public void setOutput_ComputedUsageContext(Output newOutput_ComputedUsageContext) {
306                if (newOutput_ComputedUsageContext != output_ComputedUsageContext) {
307                        NotificationChain msgs = null;
308                        if (output_ComputedUsageContext != null)
309                                msgs = ((InternalEObject)output_ComputedUsageContext).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ComputedUsagePackage.COMPUTED_USAGE_CONTEXT__OUTPUT_COMPUTED_USAGE_CONTEXT, null, msgs);
310                        if (newOutput_ComputedUsageContext != null)
311                                msgs = ((InternalEObject)newOutput_ComputedUsageContext).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ComputedUsagePackage.COMPUTED_USAGE_CONTEXT__OUTPUT_COMPUTED_USAGE_CONTEXT, null, msgs);
312                        msgs = basicSetOutput_ComputedUsageContext(newOutput_ComputedUsageContext, msgs);
313                        if (msgs != null) msgs.dispatch();
314                }
315                else if (eNotificationRequired())
316                        eNotify(new ENotificationImpl(this, Notification.SET, ComputedUsagePackage.COMPUTED_USAGE_CONTEXT__OUTPUT_COMPUTED_USAGE_CONTEXT, newOutput_ComputedUsageContext, newOutput_ComputedUsageContext));
317        }
318 
319        /**
320         * <!-- begin-user-doc -->
321         * <!-- end-user-doc -->
322         * @generated
323         */
324        @SuppressWarnings("unchecked")
325        @Override
326        public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
327                switch (featureID) {
328                        case ComputedUsagePackage.COMPUTED_USAGE_CONTEXT__EXTERNAL_CALL_INPUT_COMPUTED_USAGE_CONTEXT:
329                                return ((InternalEList<InternalEObject>)(InternalEList<?>)getExternalCallInput_ComputedUsageContext()).basicAdd(otherEnd, msgs);
330                }
331                return super.eInverseAdd(otherEnd, featureID, msgs);
332        }
333 
334        /**
335         * <!-- begin-user-doc -->
336         * <!-- end-user-doc -->
337         * @generated
338         */
339        @Override
340        public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
341                switch (featureID) {
342                        case ComputedUsagePackage.COMPUTED_USAGE_CONTEXT__BRANCH_PROBABILITIES_COMPUTED_USAGE_CONTEXT:
343                                return ((InternalEList<?>)getBranchProbabilities_ComputedUsageContext()).basicRemove(otherEnd, msgs);
344                        case ComputedUsagePackage.COMPUTED_USAGE_CONTEXT__LOOPITERATIONS_COMPUTED_USAGE_CONTEXT:
345                                return ((InternalEList<?>)getLoopiterations_ComputedUsageContext()).basicRemove(otherEnd, msgs);
346                        case ComputedUsagePackage.COMPUTED_USAGE_CONTEXT__INPUT_COMPUTED_USAGE_CONTEXT:
347                                return basicSetInput_ComputedUsageContext(null, msgs);
348                        case ComputedUsagePackage.COMPUTED_USAGE_CONTEXT__EXTERNAL_CALL_OUTPUT_COMPUTED_USAGE_CONTEXT:
349                                return ((InternalEList<?>)getExternalCallOutput_ComputedUsageContext()).basicRemove(otherEnd, msgs);
350                        case ComputedUsagePackage.COMPUTED_USAGE_CONTEXT__EXTERNAL_CALL_INPUT_COMPUTED_USAGE_CONTEXT:
351                                return ((InternalEList<?>)getExternalCallInput_ComputedUsageContext()).basicRemove(otherEnd, msgs);
352                        case ComputedUsagePackage.COMPUTED_USAGE_CONTEXT__OUTPUT_COMPUTED_USAGE_CONTEXT:
353                                return basicSetOutput_ComputedUsageContext(null, msgs);
354                }
355                return super.eInverseRemove(otherEnd, featureID, msgs);
356        }
357 
358        /**
359         * <!-- begin-user-doc -->
360         * <!-- end-user-doc -->
361         * @generated
362         */
363        @Override
364        public Object eGet(int featureID, boolean resolve, boolean coreType) {
365                switch (featureID) {
366                        case ComputedUsagePackage.COMPUTED_USAGE_CONTEXT__BRANCH_PROBABILITIES_COMPUTED_USAGE_CONTEXT:
367                                return getBranchProbabilities_ComputedUsageContext();
368                        case ComputedUsagePackage.COMPUTED_USAGE_CONTEXT__LOOPITERATIONS_COMPUTED_USAGE_CONTEXT:
369                                return getLoopiterations_ComputedUsageContext();
370                        case ComputedUsagePackage.COMPUTED_USAGE_CONTEXT__ASSEMBLY_CONTEXT_COMPUTED_USAGE_CONTEXT:
371                                if (resolve) return getAssemblyContext_ComputedUsageContext();
372                                return basicGetAssemblyContext_ComputedUsageContext();
373                        case ComputedUsagePackage.COMPUTED_USAGE_CONTEXT__INPUT_COMPUTED_USAGE_CONTEXT:
374                                return getInput_ComputedUsageContext();
375                        case ComputedUsagePackage.COMPUTED_USAGE_CONTEXT__EXTERNAL_CALL_OUTPUT_COMPUTED_USAGE_CONTEXT:
376                                return getExternalCallOutput_ComputedUsageContext();
377                        case ComputedUsagePackage.COMPUTED_USAGE_CONTEXT__EXTERNAL_CALL_INPUT_COMPUTED_USAGE_CONTEXT:
378                                return getExternalCallInput_ComputedUsageContext();
379                        case ComputedUsagePackage.COMPUTED_USAGE_CONTEXT__OUTPUT_COMPUTED_USAGE_CONTEXT:
380                                return getOutput_ComputedUsageContext();
381                }
382                return super.eGet(featureID, resolve, coreType);
383        }
384 
385        /**
386         * <!-- begin-user-doc -->
387         * <!-- end-user-doc -->
388         * @generated
389         */
390        @SuppressWarnings("unchecked")
391                @Override
392        public void eSet(int featureID, Object newValue) {
393                switch (featureID) {
394                        case ComputedUsagePackage.COMPUTED_USAGE_CONTEXT__BRANCH_PROBABILITIES_COMPUTED_USAGE_CONTEXT:
395                                getBranchProbabilities_ComputedUsageContext().clear();
396                                getBranchProbabilities_ComputedUsageContext().addAll((Collection<? extends BranchProbability>)newValue);
397                                return;
398                        case ComputedUsagePackage.COMPUTED_USAGE_CONTEXT__LOOPITERATIONS_COMPUTED_USAGE_CONTEXT:
399                                getLoopiterations_ComputedUsageContext().clear();
400                                getLoopiterations_ComputedUsageContext().addAll((Collection<? extends LoopIteration>)newValue);
401                                return;
402                        case ComputedUsagePackage.COMPUTED_USAGE_CONTEXT__ASSEMBLY_CONTEXT_COMPUTED_USAGE_CONTEXT:
403                                setAssemblyContext_ComputedUsageContext((AssemblyContext)newValue);
404                                return;
405                        case ComputedUsagePackage.COMPUTED_USAGE_CONTEXT__INPUT_COMPUTED_USAGE_CONTEXT:
406                                setInput_ComputedUsageContext((Input)newValue);
407                                return;
408                        case ComputedUsagePackage.COMPUTED_USAGE_CONTEXT__EXTERNAL_CALL_OUTPUT_COMPUTED_USAGE_CONTEXT:
409                                getExternalCallOutput_ComputedUsageContext().clear();
410                                getExternalCallOutput_ComputedUsageContext().addAll((Collection<? extends ExternalCallOutput>)newValue);
411                                return;
412                        case ComputedUsagePackage.COMPUTED_USAGE_CONTEXT__EXTERNAL_CALL_INPUT_COMPUTED_USAGE_CONTEXT:
413                                getExternalCallInput_ComputedUsageContext().clear();
414                                getExternalCallInput_ComputedUsageContext().addAll((Collection<? extends ExternalCallInput>)newValue);
415                                return;
416                        case ComputedUsagePackage.COMPUTED_USAGE_CONTEXT__OUTPUT_COMPUTED_USAGE_CONTEXT:
417                                setOutput_ComputedUsageContext((Output)newValue);
418                                return;
419                }
420                super.eSet(featureID, newValue);
421        }
422 
423        /**
424         * <!-- begin-user-doc -->
425         * <!-- end-user-doc -->
426         * @generated
427         */
428        @Override
429        public void eUnset(int featureID) {
430                switch (featureID) {
431                        case ComputedUsagePackage.COMPUTED_USAGE_CONTEXT__BRANCH_PROBABILITIES_COMPUTED_USAGE_CONTEXT:
432                                getBranchProbabilities_ComputedUsageContext().clear();
433                                return;
434                        case ComputedUsagePackage.COMPUTED_USAGE_CONTEXT__LOOPITERATIONS_COMPUTED_USAGE_CONTEXT:
435                                getLoopiterations_ComputedUsageContext().clear();
436                                return;
437                        case ComputedUsagePackage.COMPUTED_USAGE_CONTEXT__ASSEMBLY_CONTEXT_COMPUTED_USAGE_CONTEXT:
438                                setAssemblyContext_ComputedUsageContext((AssemblyContext)null);
439                                return;
440                        case ComputedUsagePackage.COMPUTED_USAGE_CONTEXT__INPUT_COMPUTED_USAGE_CONTEXT:
441                                setInput_ComputedUsageContext((Input)null);
442                                return;
443                        case ComputedUsagePackage.COMPUTED_USAGE_CONTEXT__EXTERNAL_CALL_OUTPUT_COMPUTED_USAGE_CONTEXT:
444                                getExternalCallOutput_ComputedUsageContext().clear();
445                                return;
446                        case ComputedUsagePackage.COMPUTED_USAGE_CONTEXT__EXTERNAL_CALL_INPUT_COMPUTED_USAGE_CONTEXT:
447                                getExternalCallInput_ComputedUsageContext().clear();
448                                return;
449                        case ComputedUsagePackage.COMPUTED_USAGE_CONTEXT__OUTPUT_COMPUTED_USAGE_CONTEXT:
450                                setOutput_ComputedUsageContext((Output)null);
451                                return;
452                }
453                super.eUnset(featureID);
454        }
455 
456        /**
457         * <!-- begin-user-doc -->
458         * <!-- end-user-doc -->
459         * @generated
460         */
461        @Override
462        public boolean eIsSet(int featureID) {
463                switch (featureID) {
464                        case ComputedUsagePackage.COMPUTED_USAGE_CONTEXT__BRANCH_PROBABILITIES_COMPUTED_USAGE_CONTEXT:
465                                return branchProbabilities_ComputedUsageContext != null && !branchProbabilities_ComputedUsageContext.isEmpty();
466                        case ComputedUsagePackage.COMPUTED_USAGE_CONTEXT__LOOPITERATIONS_COMPUTED_USAGE_CONTEXT:
467                                return loopiterations_ComputedUsageContext != null && !loopiterations_ComputedUsageContext.isEmpty();
468                        case ComputedUsagePackage.COMPUTED_USAGE_CONTEXT__ASSEMBLY_CONTEXT_COMPUTED_USAGE_CONTEXT:
469                                return assemblyContext_ComputedUsageContext != null;
470                        case ComputedUsagePackage.COMPUTED_USAGE_CONTEXT__INPUT_COMPUTED_USAGE_CONTEXT:
471                                return input_ComputedUsageContext != null;
472                        case ComputedUsagePackage.COMPUTED_USAGE_CONTEXT__EXTERNAL_CALL_OUTPUT_COMPUTED_USAGE_CONTEXT:
473                                return externalCallOutput_ComputedUsageContext != null && !externalCallOutput_ComputedUsageContext.isEmpty();
474                        case ComputedUsagePackage.COMPUTED_USAGE_CONTEXT__EXTERNAL_CALL_INPUT_COMPUTED_USAGE_CONTEXT:
475                                return externalCallInput_ComputedUsageContext != null && !externalCallInput_ComputedUsageContext.isEmpty();
476                        case ComputedUsagePackage.COMPUTED_USAGE_CONTEXT__OUTPUT_COMPUTED_USAGE_CONTEXT:
477                                return output_ComputedUsageContext != null;
478                }
479                return super.eIsSet(featureID);
480        }
481 
482} //ComputedUsageContextImpl

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