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

COVERAGE SUMMARY FOR SOURCE FILE [SensitivityParameterImpl.java]

nameclass, %method, %block, %line, %
SensitivityParameterImpl.java0%   (0/1)0%   (0/15)0%   (0/321)0%   (0/75)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class SensitivityParameterImpl0%   (0/1)0%   (0/15)0%   (0/321)0%   (0/75)
SensitivityParameterImpl (): void 0%   (0/1)0%   (0/3)0%   (0/2)
basicSetParentParameter__SensitivityParameter (CombinedSensitivityParameter, ... 0%   (0/1)0%   (0/9)0%   (0/2)
basicSetSensitivityConfiguration__SensitivityParameter (SensitivityConfigurat... 0%   (0/1)0%   (0/9)0%   (0/2)
eBasicRemoveFromContainerFeature (NotificationChain): NotificationChain 0%   (0/1)0%   (0/23)0%   (0/4)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/14)0%   (0/4)
eInverseAdd (InternalEObject, int, NotificationChain): NotificationChain 0%   (0/1)0%   (0/34)0%   (0/8)
eInverseRemove (InternalEObject, int, NotificationChain): NotificationChain 0%   (0/1)0%   (0/18)0%   (0/4)
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)
getParentParameter__SensitivityParameter (): CombinedSensitivityParameter 0%   (0/1)0%   (0/10)0%   (0/2)
getSensitivityConfiguration__SensitivityParameter (): SensitivityConfiguration 0%   (0/1)0%   (0/10)0%   (0/2)
setParentParameter__SensitivityParameter (CombinedSensitivityParameter): void 0%   (0/1)0%   (0/69)0%   (0/13)
setSensitivityConfiguration__SensitivityParameter (SensitivityConfiguration):... 0%   (0/1)0%   (0/69)0%   (0/13)

1/**
2 * <copyright>
3 * </copyright>
4 *
5 * $Id$
6 */
7package de.uka.ipd.sdq.sensitivity.impl;
8 
9import de.uka.ipd.sdq.pcm.core.entity.impl.EntityImpl;
10 
11import de.uka.ipd.sdq.sensitivity.CombinedSensitivityParameter;
12import de.uka.ipd.sdq.sensitivity.SensitivityConfiguration;
13import de.uka.ipd.sdq.sensitivity.SensitivityPackage;
14import de.uka.ipd.sdq.sensitivity.SensitivityParameter;
15 
16import org.eclipse.emf.common.notify.Notification;
17import org.eclipse.emf.common.notify.NotificationChain;
18 
19import org.eclipse.emf.ecore.EClass;
20import org.eclipse.emf.ecore.InternalEObject;
21 
22import org.eclipse.emf.ecore.impl.ENotificationImpl;
23 
24import org.eclipse.emf.ecore.util.EcoreUtil;
25 
26/**
27 * <!-- begin-user-doc -->
28 * An implementation of the model object '<em><b>Parameter</b></em>'.
29 * <!-- end-user-doc -->
30 * <p>
31 * The following features are implemented:
32 * <ul>
33 *   <li>{@link de.uka.ipd.sdq.sensitivity.impl.SensitivityParameterImpl#getParentParameter__SensitivityParameter <em>Parent Parameter Sensitivity Parameter</em>}</li>
34 *   <li>{@link de.uka.ipd.sdq.sensitivity.impl.SensitivityParameterImpl#getSensitivityConfiguration__SensitivityParameter <em>Sensitivity Configuration Sensitivity Parameter</em>}</li>
35 * </ul>
36 * </p>
37 *
38 * @generated
39 */
40public abstract class SensitivityParameterImpl extends EntityImpl implements SensitivityParameter {
41        /**
42         * <!-- begin-user-doc -->
43         * <!-- end-user-doc -->
44         * @generated
45         */
46        protected SensitivityParameterImpl() {
47                super();
48        }
49 
50        /**
51         * <!-- begin-user-doc -->
52         * <!-- end-user-doc -->
53         * @generated
54         */
55        @Override
56        protected EClass eStaticClass() {
57                return SensitivityPackage.Literals.SENSITIVITY_PARAMETER;
58        }
59 
60        /**
61         * <!-- begin-user-doc -->
62         * <!-- end-user-doc -->
63         * @generated
64         */
65        public CombinedSensitivityParameter getParentParameter__SensitivityParameter() {
66                if (eContainerFeatureID() != SensitivityPackage.SENSITIVITY_PARAMETER__PARENT_PARAMETER_SENSITIVITY_PARAMETER) return null;
67                return (CombinedSensitivityParameter)eContainer();
68        }
69 
70        /**
71         * <!-- begin-user-doc -->
72         * <!-- end-user-doc -->
73         * @generated
74         */
75        public NotificationChain basicSetParentParameter__SensitivityParameter(CombinedSensitivityParameter newParentParameter__SensitivityParameter, NotificationChain msgs) {
76                msgs = eBasicSetContainer((InternalEObject)newParentParameter__SensitivityParameter, SensitivityPackage.SENSITIVITY_PARAMETER__PARENT_PARAMETER_SENSITIVITY_PARAMETER, msgs);
77                return msgs;
78        }
79 
80        /**
81         * <!-- begin-user-doc -->
82         * <!-- end-user-doc -->
83         * @generated
84         */
85        public void setParentParameter__SensitivityParameter(CombinedSensitivityParameter newParentParameter__SensitivityParameter) {
86                if (newParentParameter__SensitivityParameter != eInternalContainer() || (eContainerFeatureID() != SensitivityPackage.SENSITIVITY_PARAMETER__PARENT_PARAMETER_SENSITIVITY_PARAMETER && newParentParameter__SensitivityParameter != null)) {
87                        if (EcoreUtil.isAncestor(this, newParentParameter__SensitivityParameter))
88                                throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
89                        NotificationChain msgs = null;
90                        if (eInternalContainer() != null)
91                                msgs = eBasicRemoveFromContainer(msgs);
92                        if (newParentParameter__SensitivityParameter != null)
93                                msgs = ((InternalEObject)newParentParameter__SensitivityParameter).eInverseAdd(this, SensitivityPackage.COMBINED_SENSITIVITY_PARAMETER__CHILD_PARAMETERS_COMBINED_SENSITIVITY_PARAMETER, CombinedSensitivityParameter.class, msgs);
94                        msgs = basicSetParentParameter__SensitivityParameter(newParentParameter__SensitivityParameter, msgs);
95                        if (msgs != null) msgs.dispatch();
96                }
97                else if (eNotificationRequired())
98                        eNotify(new ENotificationImpl(this, Notification.SET, SensitivityPackage.SENSITIVITY_PARAMETER__PARENT_PARAMETER_SENSITIVITY_PARAMETER, newParentParameter__SensitivityParameter, newParentParameter__SensitivityParameter));
99        }
100 
101        /**
102         * <!-- begin-user-doc -->
103         * <!-- end-user-doc -->
104         * @generated
105         */
106        public SensitivityConfiguration getSensitivityConfiguration__SensitivityParameter() {
107                if (eContainerFeatureID() != SensitivityPackage.SENSITIVITY_PARAMETER__SENSITIVITY_CONFIGURATION_SENSITIVITY_PARAMETER) return null;
108                return (SensitivityConfiguration)eContainer();
109        }
110 
111        /**
112         * <!-- begin-user-doc -->
113         * <!-- end-user-doc -->
114         * @generated
115         */
116        public NotificationChain basicSetSensitivityConfiguration__SensitivityParameter(SensitivityConfiguration newSensitivityConfiguration__SensitivityParameter, NotificationChain msgs) {
117                msgs = eBasicSetContainer((InternalEObject)newSensitivityConfiguration__SensitivityParameter, SensitivityPackage.SENSITIVITY_PARAMETER__SENSITIVITY_CONFIGURATION_SENSITIVITY_PARAMETER, msgs);
118                return msgs;
119        }
120 
121        /**
122         * <!-- begin-user-doc -->
123         * <!-- end-user-doc -->
124         * @generated
125         */
126        public void setSensitivityConfiguration__SensitivityParameter(SensitivityConfiguration newSensitivityConfiguration__SensitivityParameter) {
127                if (newSensitivityConfiguration__SensitivityParameter != eInternalContainer() || (eContainerFeatureID() != SensitivityPackage.SENSITIVITY_PARAMETER__SENSITIVITY_CONFIGURATION_SENSITIVITY_PARAMETER && newSensitivityConfiguration__SensitivityParameter != null)) {
128                        if (EcoreUtil.isAncestor(this, newSensitivityConfiguration__SensitivityParameter))
129                                throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
130                        NotificationChain msgs = null;
131                        if (eInternalContainer() != null)
132                                msgs = eBasicRemoveFromContainer(msgs);
133                        if (newSensitivityConfiguration__SensitivityParameter != null)
134                                msgs = ((InternalEObject)newSensitivityConfiguration__SensitivityParameter).eInverseAdd(this, SensitivityPackage.SENSITIVITY_CONFIGURATION__SENSITIVITY_PARAMETERS_SENSITIVITY_CONFIGURATION, SensitivityConfiguration.class, msgs);
135                        msgs = basicSetSensitivityConfiguration__SensitivityParameter(newSensitivityConfiguration__SensitivityParameter, msgs);
136                        if (msgs != null) msgs.dispatch();
137                }
138                else if (eNotificationRequired())
139                        eNotify(new ENotificationImpl(this, Notification.SET, SensitivityPackage.SENSITIVITY_PARAMETER__SENSITIVITY_CONFIGURATION_SENSITIVITY_PARAMETER, newSensitivityConfiguration__SensitivityParameter, newSensitivityConfiguration__SensitivityParameter));
140        }
141 
142        /**
143         * <!-- begin-user-doc -->
144         * <!-- end-user-doc -->
145         * @generated
146         */
147        @Override
148        public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
149                switch (featureID) {
150                        case SensitivityPackage.SENSITIVITY_PARAMETER__PARENT_PARAMETER_SENSITIVITY_PARAMETER:
151                                if (eInternalContainer() != null)
152                                        msgs = eBasicRemoveFromContainer(msgs);
153                                return basicSetParentParameter__SensitivityParameter((CombinedSensitivityParameter)otherEnd, msgs);
154                        case SensitivityPackage.SENSITIVITY_PARAMETER__SENSITIVITY_CONFIGURATION_SENSITIVITY_PARAMETER:
155                                if (eInternalContainer() != null)
156                                        msgs = eBasicRemoveFromContainer(msgs);
157                                return basicSetSensitivityConfiguration__SensitivityParameter((SensitivityConfiguration)otherEnd, msgs);
158                }
159                return super.eInverseAdd(otherEnd, featureID, msgs);
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 SensitivityPackage.SENSITIVITY_PARAMETER__PARENT_PARAMETER_SENSITIVITY_PARAMETER:
171                                return basicSetParentParameter__SensitivityParameter(null, msgs);
172                        case SensitivityPackage.SENSITIVITY_PARAMETER__SENSITIVITY_CONFIGURATION_SENSITIVITY_PARAMETER:
173                                return basicSetSensitivityConfiguration__SensitivityParameter(null, msgs);
174                }
175                return super.eInverseRemove(otherEnd, featureID, msgs);
176        }
177 
178        /**
179         * <!-- begin-user-doc -->
180         * <!-- end-user-doc -->
181         * @generated
182         */
183        @Override
184        public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) {
185                switch (eContainerFeatureID()) {
186                        case SensitivityPackage.SENSITIVITY_PARAMETER__PARENT_PARAMETER_SENSITIVITY_PARAMETER:
187                                return eInternalContainer().eInverseRemove(this, SensitivityPackage.COMBINED_SENSITIVITY_PARAMETER__CHILD_PARAMETERS_COMBINED_SENSITIVITY_PARAMETER, CombinedSensitivityParameter.class, msgs);
188                        case SensitivityPackage.SENSITIVITY_PARAMETER__SENSITIVITY_CONFIGURATION_SENSITIVITY_PARAMETER:
189                                return eInternalContainer().eInverseRemove(this, SensitivityPackage.SENSITIVITY_CONFIGURATION__SENSITIVITY_PARAMETERS_SENSITIVITY_CONFIGURATION, SensitivityConfiguration.class, msgs);
190                }
191                return super.eBasicRemoveFromContainerFeature(msgs);
192        }
193 
194        /**
195         * <!-- begin-user-doc -->
196         * <!-- end-user-doc -->
197         * @generated
198         */
199        @Override
200        public Object eGet(int featureID, boolean resolve, boolean coreType) {
201                switch (featureID) {
202                        case SensitivityPackage.SENSITIVITY_PARAMETER__PARENT_PARAMETER_SENSITIVITY_PARAMETER:
203                                return getParentParameter__SensitivityParameter();
204                        case SensitivityPackage.SENSITIVITY_PARAMETER__SENSITIVITY_CONFIGURATION_SENSITIVITY_PARAMETER:
205                                return getSensitivityConfiguration__SensitivityParameter();
206                }
207                return super.eGet(featureID, resolve, coreType);
208        }
209 
210        /**
211         * <!-- begin-user-doc -->
212         * <!-- end-user-doc -->
213         * @generated
214         */
215        @Override
216        public void eSet(int featureID, Object newValue) {
217                switch (featureID) {
218                        case SensitivityPackage.SENSITIVITY_PARAMETER__PARENT_PARAMETER_SENSITIVITY_PARAMETER:
219                                setParentParameter__SensitivityParameter((CombinedSensitivityParameter)newValue);
220                                return;
221                        case SensitivityPackage.SENSITIVITY_PARAMETER__SENSITIVITY_CONFIGURATION_SENSITIVITY_PARAMETER:
222                                setSensitivityConfiguration__SensitivityParameter((SensitivityConfiguration)newValue);
223                                return;
224                }
225                super.eSet(featureID, newValue);
226        }
227 
228        /**
229         * <!-- begin-user-doc -->
230         * <!-- end-user-doc -->
231         * @generated
232         */
233        @Override
234        public void eUnset(int featureID) {
235                switch (featureID) {
236                        case SensitivityPackage.SENSITIVITY_PARAMETER__PARENT_PARAMETER_SENSITIVITY_PARAMETER:
237                                setParentParameter__SensitivityParameter((CombinedSensitivityParameter)null);
238                                return;
239                        case SensitivityPackage.SENSITIVITY_PARAMETER__SENSITIVITY_CONFIGURATION_SENSITIVITY_PARAMETER:
240                                setSensitivityConfiguration__SensitivityParameter((SensitivityConfiguration)null);
241                                return;
242                }
243                super.eUnset(featureID);
244        }
245 
246        /**
247         * <!-- begin-user-doc -->
248         * <!-- end-user-doc -->
249         * @generated
250         */
251        @Override
252        public boolean eIsSet(int featureID) {
253                switch (featureID) {
254                        case SensitivityPackage.SENSITIVITY_PARAMETER__PARENT_PARAMETER_SENSITIVITY_PARAMETER:
255                                return getParentParameter__SensitivityParameter() != null;
256                        case SensitivityPackage.SENSITIVITY_PARAMETER__SENSITIVITY_CONFIGURATION_SENSITIVITY_PARAMETER:
257                                return getSensitivityConfiguration__SensitivityParameter() != null;
258                }
259                return super.eIsSet(featureID);
260        }
261 
262} //SensitivityParameterImpl

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