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 [LoopIterationImpl.java]

nameclass, %method, %block, %line, %
LoopIterationImpl.java0%   (0/1)0%   (0/13)0%   (0/234)0%   (0/60)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class LoopIterationImpl0%   (0/1)0%   (0/13)0%   (0/234)0%   (0/60)
LoopIterationImpl (): void 0%   (0/1)0%   (0/3)0%   (0/2)
basicGetLoopaction_LoopIteration (): AbstractLoopAction 0%   (0/1)0%   (0/3)0%   (0/1)
basicSetSpecification_LoopIteration (PCMRandomVariable, NotificationChain): N... 0%   (0/1)0%   (0/29)0%   (0/6)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/19)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/20)0%   (0/4)
eSet (int, Object): void 0%   (0/1)0%   (0/17)0%   (0/7)
eStaticClass (): EClass 0%   (0/1)0%   (0/2)0%   (0/1)
eUnset (int): void 0%   (0/1)0%   (0/14)0%   (0/7)
getLoopaction_LoopIteration (): AbstractLoopAction 0%   (0/1)0%   (0/38)0%   (0/7)
getSpecification_LoopIteration (): PCMRandomVariable 0%   (0/1)0%   (0/3)0%   (0/1)
setLoopaction_LoopIteration (AbstractLoopAction): void 0%   (0/1)0%   (0/21)0%   (0/5)
setSpecification_LoopIteration (PCMRandomVariable): 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 org.eclipse.emf.common.notify.Notification;
9import org.eclipse.emf.common.notify.NotificationChain;
10import org.eclipse.emf.ecore.EClass;
11import org.eclipse.emf.ecore.InternalEObject;
12import org.eclipse.emf.ecore.impl.ENotificationImpl;
13import org.eclipse.emf.ecore.impl.EObjectImpl;
14 
15import de.uka.ipd.sdq.context.computed_usage.ComputedUsagePackage;
16import de.uka.ipd.sdq.context.computed_usage.LoopIteration;
17import de.uka.ipd.sdq.pcm.core.PCMRandomVariable;
18import de.uka.ipd.sdq.pcm.seff.AbstractLoopAction;
19 
20/**
21 * <!-- begin-user-doc -->
22 * An implementation of the model object '<em><b>Loop Iteration</b></em>'.
23 * <!-- end-user-doc -->
24 * <p>
25 * The following features are implemented:
26 * <ul>
27 *   <li>{@link de.uka.ipd.sdq.context.computed_usage.impl.LoopIterationImpl#getLoopaction_LoopIteration <em>Loopaction Loop Iteration</em>}</li>
28 *   <li>{@link de.uka.ipd.sdq.context.computed_usage.impl.LoopIterationImpl#getSpecification_LoopIteration <em>Specification Loop Iteration</em>}</li>
29 * </ul>
30 * </p>
31 *
32 * @generated
33 */
34public class LoopIterationImpl extends EObjectImpl implements LoopIteration {
35        /**
36         * <!-- begin-user-doc -->
37         * <!-- end-user-doc -->
38         * @generated
39         */
40        public static final String copyright = "Copyright 2006, SDQ Group, University Karlsruhe (TH)";
41 
42        /**
43         * The cached value of the '{@link #getLoopaction_LoopIteration() <em>Loopaction Loop Iteration</em>}' reference.
44         * <!-- begin-user-doc -->
45         * <!-- end-user-doc -->
46         * @see #getLoopaction_LoopIteration()
47         * @generated
48         * @ordered
49         */
50        protected AbstractLoopAction loopaction_LoopIteration;
51 
52        /**
53         * The cached value of the '{@link #getSpecification_LoopIteration() <em>Specification Loop Iteration</em>}' containment reference.
54         * <!-- begin-user-doc -->
55         * <!-- end-user-doc -->
56         * @see #getSpecification_LoopIteration()
57         * @generated
58         * @ordered
59         */
60        protected PCMRandomVariable specification_LoopIteration;
61 
62        /**
63         * <!-- begin-user-doc -->
64         * <!-- end-user-doc -->
65         * @generated
66         */
67        protected LoopIterationImpl() {
68                super();
69        }
70 
71        /**
72         * <!-- begin-user-doc -->
73         * <!-- end-user-doc -->
74         * @generated
75         */
76        @Override
77        protected EClass eStaticClass() {
78                return ComputedUsagePackage.Literals.LOOP_ITERATION;
79        }
80 
81        /**
82         * <!-- begin-user-doc -->
83         * <!-- end-user-doc -->
84         * @generated
85         */
86        public AbstractLoopAction getLoopaction_LoopIteration() {
87                if (loopaction_LoopIteration != null && loopaction_LoopIteration.eIsProxy()) {
88                        InternalEObject oldLoopaction_LoopIteration = (InternalEObject)loopaction_LoopIteration;
89                        loopaction_LoopIteration = (AbstractLoopAction)eResolveProxy(oldLoopaction_LoopIteration);
90                        if (loopaction_LoopIteration != oldLoopaction_LoopIteration) {
91                                if (eNotificationRequired())
92                                        eNotify(new ENotificationImpl(this, Notification.RESOLVE, ComputedUsagePackage.LOOP_ITERATION__LOOPACTION_LOOP_ITERATION, oldLoopaction_LoopIteration, loopaction_LoopIteration));
93                        }
94                }
95                return loopaction_LoopIteration;
96        }
97 
98        /**
99         * <!-- begin-user-doc -->
100         * <!-- end-user-doc -->
101         * @generated
102         */
103        public AbstractLoopAction basicGetLoopaction_LoopIteration() {
104                return loopaction_LoopIteration;
105        }
106 
107        /**
108         * <!-- begin-user-doc -->
109         * <!-- end-user-doc -->
110         * @generated
111         */
112        public void setLoopaction_LoopIteration(AbstractLoopAction newLoopaction_LoopIteration) {
113                AbstractLoopAction oldLoopaction_LoopIteration = loopaction_LoopIteration;
114                loopaction_LoopIteration = newLoopaction_LoopIteration;
115                if (eNotificationRequired())
116                        eNotify(new ENotificationImpl(this, Notification.SET, ComputedUsagePackage.LOOP_ITERATION__LOOPACTION_LOOP_ITERATION, oldLoopaction_LoopIteration, loopaction_LoopIteration));
117        }
118 
119        /**
120         * <!-- begin-user-doc -->
121         * <!-- end-user-doc -->
122         * @generated
123         */
124        public PCMRandomVariable getSpecification_LoopIteration() {
125                return specification_LoopIteration;
126        }
127 
128        /**
129         * <!-- begin-user-doc -->
130         * <!-- end-user-doc -->
131         * @generated
132         */
133        public NotificationChain basicSetSpecification_LoopIteration(PCMRandomVariable newSpecification_LoopIteration, NotificationChain msgs) {
134                PCMRandomVariable oldSpecification_LoopIteration = specification_LoopIteration;
135                specification_LoopIteration = newSpecification_LoopIteration;
136                if (eNotificationRequired()) {
137                        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ComputedUsagePackage.LOOP_ITERATION__SPECIFICATION_LOOP_ITERATION, oldSpecification_LoopIteration, newSpecification_LoopIteration);
138                        if (msgs == null) msgs = notification; else msgs.add(notification);
139                }
140                return msgs;
141        }
142 
143        /**
144         * <!-- begin-user-doc -->
145         * <!-- end-user-doc -->
146         * @generated
147         */
148        public void setSpecification_LoopIteration(PCMRandomVariable newSpecification_LoopIteration) {
149                if (newSpecification_LoopIteration != specification_LoopIteration) {
150                        NotificationChain msgs = null;
151                        if (specification_LoopIteration != null)
152                                msgs = ((InternalEObject)specification_LoopIteration).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ComputedUsagePackage.LOOP_ITERATION__SPECIFICATION_LOOP_ITERATION, null, msgs);
153                        if (newSpecification_LoopIteration != null)
154                                msgs = ((InternalEObject)newSpecification_LoopIteration).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ComputedUsagePackage.LOOP_ITERATION__SPECIFICATION_LOOP_ITERATION, null, msgs);
155                        msgs = basicSetSpecification_LoopIteration(newSpecification_LoopIteration, msgs);
156                        if (msgs != null) msgs.dispatch();
157                }
158                else if (eNotificationRequired())
159                        eNotify(new ENotificationImpl(this, Notification.SET, ComputedUsagePackage.LOOP_ITERATION__SPECIFICATION_LOOP_ITERATION, newSpecification_LoopIteration, newSpecification_LoopIteration));
160        }
161 
162        /**
163         * <!-- begin-user-doc -->
164         * <!-- end-user-doc -->
165         * @generated
166         */
167        @Override
168        public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
169                switch (featureID) {
170                        case ComputedUsagePackage.LOOP_ITERATION__SPECIFICATION_LOOP_ITERATION:
171                                return basicSetSpecification_LoopIteration(null, msgs);
172                }
173                return super.eInverseRemove(otherEnd, featureID, msgs);
174        }
175 
176        /**
177         * <!-- begin-user-doc -->
178         * <!-- end-user-doc -->
179         * @generated
180         */
181        @Override
182        public Object eGet(int featureID, boolean resolve, boolean coreType) {
183                switch (featureID) {
184                        case ComputedUsagePackage.LOOP_ITERATION__LOOPACTION_LOOP_ITERATION:
185                                if (resolve) return getLoopaction_LoopIteration();
186                                return basicGetLoopaction_LoopIteration();
187                        case ComputedUsagePackage.LOOP_ITERATION__SPECIFICATION_LOOP_ITERATION:
188                                return getSpecification_LoopIteration();
189                }
190                return super.eGet(featureID, resolve, coreType);
191        }
192 
193        /**
194         * <!-- begin-user-doc -->
195         * <!-- end-user-doc -->
196         * @generated
197         */
198        @Override
199        public void eSet(int featureID, Object newValue) {
200                switch (featureID) {
201                        case ComputedUsagePackage.LOOP_ITERATION__LOOPACTION_LOOP_ITERATION:
202                                setLoopaction_LoopIteration((AbstractLoopAction)newValue);
203                                return;
204                        case ComputedUsagePackage.LOOP_ITERATION__SPECIFICATION_LOOP_ITERATION:
205                                setSpecification_LoopIteration((PCMRandomVariable)newValue);
206                                return;
207                }
208                super.eSet(featureID, newValue);
209        }
210 
211        /**
212         * <!-- begin-user-doc -->
213         * <!-- end-user-doc -->
214         * @generated
215         */
216        @Override
217        public void eUnset(int featureID) {
218                switch (featureID) {
219                        case ComputedUsagePackage.LOOP_ITERATION__LOOPACTION_LOOP_ITERATION:
220                                setLoopaction_LoopIteration((AbstractLoopAction)null);
221                                return;
222                        case ComputedUsagePackage.LOOP_ITERATION__SPECIFICATION_LOOP_ITERATION:
223                                setSpecification_LoopIteration((PCMRandomVariable)null);
224                                return;
225                }
226                super.eUnset(featureID);
227        }
228 
229        /**
230         * <!-- begin-user-doc -->
231         * <!-- end-user-doc -->
232         * @generated
233         */
234        @Override
235        public boolean eIsSet(int featureID) {
236                switch (featureID) {
237                        case ComputedUsagePackage.LOOP_ITERATION__LOOPACTION_LOOP_ITERATION:
238                                return loopaction_LoopIteration != null;
239                        case ComputedUsagePackage.LOOP_ITERATION__SPECIFICATION_LOOP_ITERATION:
240                                return specification_LoopIteration != null;
241                }
242                return super.eIsSet(featureID);
243        }
244 
245} //LoopIterationImpl

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