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

nameclass, %method, %block, %line, %
CombinedSensitivityParameterImpl.java0%   (0/1)0%   (0/12)0%   (0/177)0%   (0/48)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class CombinedSensitivityParameterImpl0%   (0/1)0%   (0/12)0%   (0/177)0%   (0/48)
CombinedSensitivityParameterImpl (): void 0%   (0/1)0%   (0/6)0%   (0/3)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/15)0%   (0/4)
eInverseAdd (InternalEObject, int, NotificationChain): NotificationChain 0%   (0/1)0%   (0/15)0%   (0/3)
eInverseRemove (InternalEObject, int, NotificationChain): NotificationChain 0%   (0/1)0%   (0/15)0%   (0/3)
eIsSet (int): boolean 0%   (0/1)0%   (0/20)0%   (0/4)
eSet (int, Object): void 0%   (0/1)0%   (0/23)0%   (0/8)
eStaticClass (): EClass 0%   (0/1)0%   (0/2)0%   (0/1)
eUnset (int): void 0%   (0/1)0%   (0/14)0%   (0/7)
getChildParameters__CombinedSensitivityParameter (): EList 0%   (0/1)0%   (0/15)0%   (0/3)
isCombinatory (): boolean 0%   (0/1)0%   (0/3)0%   (0/1)
setIsCombinatory (boolean): void 0%   (0/1)0%   (0/21)0%   (0/5)
toString (): String 0%   (0/1)0%   (0/28)0%   (0/6)

1/**
2 * <copyright>
3 * </copyright>
4 *
5 * $Id$
6 */
7package de.uka.ipd.sdq.sensitivity.impl;
8 
9import de.uka.ipd.sdq.sensitivity.CombinedSensitivityParameter;
10import de.uka.ipd.sdq.sensitivity.SensitivityPackage;
11import de.uka.ipd.sdq.sensitivity.SensitivityParameter;
12 
13import java.util.Collection;
14 
15import org.eclipse.emf.common.notify.Notification;
16import org.eclipse.emf.common.notify.NotificationChain;
17 
18import org.eclipse.emf.common.util.EList;
19 
20import org.eclipse.emf.ecore.EClass;
21import org.eclipse.emf.ecore.InternalEObject;
22 
23import org.eclipse.emf.ecore.impl.ENotificationImpl;
24 
25import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList;
26import org.eclipse.emf.ecore.util.InternalEList;
27 
28/**
29 * <!-- begin-user-doc -->
30 * An implementation of the model object '<em><b>Combined Sensitivity Parameter</b></em>'.
31 * <!-- end-user-doc -->
32 * <p>
33 * The following features are implemented:
34 * <ul>
35 *   <li>{@link de.uka.ipd.sdq.sensitivity.impl.CombinedSensitivityParameterImpl#isCombinatory <em>Is Combinatory</em>}</li>
36 *   <li>{@link de.uka.ipd.sdq.sensitivity.impl.CombinedSensitivityParameterImpl#getChildParameters__CombinedSensitivityParameter <em>Child Parameters Combined Sensitivity Parameter</em>}</li>
37 * </ul>
38 * </p>
39 *
40 * @generated
41 */
42public class CombinedSensitivityParameterImpl extends SensitivityParameterImpl implements CombinedSensitivityParameter {
43        /**
44         * The default value of the '{@link #isCombinatory() <em>Is Combinatory</em>}' attribute.
45         * <!-- begin-user-doc -->
46         * <!-- end-user-doc -->
47         * @see #isCombinatory()
48         * @generated
49         * @ordered
50         */
51        protected static final boolean IS_COMBINATORY_EDEFAULT = false;
52 
53        /**
54         * The cached value of the '{@link #isCombinatory() <em>Is Combinatory</em>}' attribute.
55         * <!-- begin-user-doc -->
56         * <!-- end-user-doc -->
57         * @see #isCombinatory()
58         * @generated
59         * @ordered
60         */
61        protected boolean isCombinatory = IS_COMBINATORY_EDEFAULT;
62 
63        /**
64         * The cached value of the '{@link #getChildParameters__CombinedSensitivityParameter() <em>Child Parameters Combined Sensitivity Parameter</em>}' containment reference list.
65         * <!-- begin-user-doc -->
66         * <!-- end-user-doc -->
67         * @see #getChildParameters__CombinedSensitivityParameter()
68         * @generated
69         * @ordered
70         */
71        protected EList<SensitivityParameter> childParameters__CombinedSensitivityParameter;
72 
73        /**
74         * <!-- begin-user-doc -->
75         * <!-- end-user-doc -->
76         * @generated
77         */
78        protected CombinedSensitivityParameterImpl() {
79                super();
80        }
81 
82        /**
83         * <!-- begin-user-doc -->
84         * <!-- end-user-doc -->
85         * @generated
86         */
87        @Override
88        protected EClass eStaticClass() {
89                return SensitivityPackage.Literals.COMBINED_SENSITIVITY_PARAMETER;
90        }
91 
92        /**
93         * <!-- begin-user-doc -->
94         * <!-- end-user-doc -->
95         * @generated
96         */
97        public boolean isCombinatory() {
98                return isCombinatory;
99        }
100 
101        /**
102         * <!-- begin-user-doc -->
103         * <!-- end-user-doc -->
104         * @generated
105         */
106        public void setIsCombinatory(boolean newIsCombinatory) {
107                boolean oldIsCombinatory = isCombinatory;
108                isCombinatory = newIsCombinatory;
109                if (eNotificationRequired())
110                        eNotify(new ENotificationImpl(this, Notification.SET, SensitivityPackage.COMBINED_SENSITIVITY_PARAMETER__IS_COMBINATORY, oldIsCombinatory, isCombinatory));
111        }
112 
113        /**
114         * <!-- begin-user-doc -->
115         * <!-- end-user-doc -->
116         * @generated
117         */
118        public EList<SensitivityParameter> getChildParameters__CombinedSensitivityParameter() {
119                if (childParameters__CombinedSensitivityParameter == null) {
120                        childParameters__CombinedSensitivityParameter = new EObjectContainmentWithInverseEList<SensitivityParameter>(SensitivityParameter.class, this, SensitivityPackage.COMBINED_SENSITIVITY_PARAMETER__CHILD_PARAMETERS_COMBINED_SENSITIVITY_PARAMETER, SensitivityPackage.SENSITIVITY_PARAMETER__PARENT_PARAMETER_SENSITIVITY_PARAMETER);
121                }
122                return childParameters__CombinedSensitivityParameter;
123        }
124 
125        /**
126         * <!-- begin-user-doc -->
127         * <!-- end-user-doc -->
128         * @generated
129         */
130        @SuppressWarnings("unchecked")
131        @Override
132        public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
133                switch (featureID) {
134                        case SensitivityPackage.COMBINED_SENSITIVITY_PARAMETER__CHILD_PARAMETERS_COMBINED_SENSITIVITY_PARAMETER:
135                                return ((InternalEList<InternalEObject>)(InternalEList<?>)getChildParameters__CombinedSensitivityParameter()).basicAdd(otherEnd, msgs);
136                }
137                return super.eInverseAdd(otherEnd, featureID, msgs);
138        }
139 
140        /**
141         * <!-- begin-user-doc -->
142         * <!-- end-user-doc -->
143         * @generated
144         */
145        @Override
146        public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
147                switch (featureID) {
148                        case SensitivityPackage.COMBINED_SENSITIVITY_PARAMETER__CHILD_PARAMETERS_COMBINED_SENSITIVITY_PARAMETER:
149                                return ((InternalEList<?>)getChildParameters__CombinedSensitivityParameter()).basicRemove(otherEnd, msgs);
150                }
151                return super.eInverseRemove(otherEnd, featureID, msgs);
152        }
153 
154        /**
155         * <!-- begin-user-doc -->
156         * <!-- end-user-doc -->
157         * @generated
158         */
159        @Override
160        public Object eGet(int featureID, boolean resolve, boolean coreType) {
161                switch (featureID) {
162                        case SensitivityPackage.COMBINED_SENSITIVITY_PARAMETER__IS_COMBINATORY:
163                                return isCombinatory();
164                        case SensitivityPackage.COMBINED_SENSITIVITY_PARAMETER__CHILD_PARAMETERS_COMBINED_SENSITIVITY_PARAMETER:
165                                return getChildParameters__CombinedSensitivityParameter();
166                }
167                return super.eGet(featureID, resolve, coreType);
168        }
169 
170        /**
171         * <!-- begin-user-doc -->
172         * <!-- end-user-doc -->
173         * @generated
174         */
175        @SuppressWarnings("unchecked")
176        @Override
177        public void eSet(int featureID, Object newValue) {
178                switch (featureID) {
179                        case SensitivityPackage.COMBINED_SENSITIVITY_PARAMETER__IS_COMBINATORY:
180                                setIsCombinatory((Boolean)newValue);
181                                return;
182                        case SensitivityPackage.COMBINED_SENSITIVITY_PARAMETER__CHILD_PARAMETERS_COMBINED_SENSITIVITY_PARAMETER:
183                                getChildParameters__CombinedSensitivityParameter().clear();
184                                getChildParameters__CombinedSensitivityParameter().addAll((Collection<? extends SensitivityParameter>)newValue);
185                                return;
186                }
187                super.eSet(featureID, newValue);
188        }
189 
190        /**
191         * <!-- begin-user-doc -->
192         * <!-- end-user-doc -->
193         * @generated
194         */
195        @Override
196        public void eUnset(int featureID) {
197                switch (featureID) {
198                        case SensitivityPackage.COMBINED_SENSITIVITY_PARAMETER__IS_COMBINATORY:
199                                setIsCombinatory(IS_COMBINATORY_EDEFAULT);
200                                return;
201                        case SensitivityPackage.COMBINED_SENSITIVITY_PARAMETER__CHILD_PARAMETERS_COMBINED_SENSITIVITY_PARAMETER:
202                                getChildParameters__CombinedSensitivityParameter().clear();
203                                return;
204                }
205                super.eUnset(featureID);
206        }
207 
208        /**
209         * <!-- begin-user-doc -->
210         * <!-- end-user-doc -->
211         * @generated
212         */
213        @Override
214        public boolean eIsSet(int featureID) {
215                switch (featureID) {
216                        case SensitivityPackage.COMBINED_SENSITIVITY_PARAMETER__IS_COMBINATORY:
217                                return isCombinatory != IS_COMBINATORY_EDEFAULT;
218                        case SensitivityPackage.COMBINED_SENSITIVITY_PARAMETER__CHILD_PARAMETERS_COMBINED_SENSITIVITY_PARAMETER:
219                                return childParameters__CombinedSensitivityParameter != null && !childParameters__CombinedSensitivityParameter.isEmpty();
220                }
221                return super.eIsSet(featureID);
222        }
223 
224        /**
225         * <!-- begin-user-doc -->
226         * <!-- end-user-doc -->
227         * @generated
228         */
229        @Override
230        public String toString() {
231                if (eIsProxy()) return super.toString();
232 
233                StringBuffer result = new StringBuffer(super.toString());
234                result.append(" (isCombinatory: ");
235                result.append(isCombinatory);
236                result.append(')');
237                return result.toString();
238        }
239 
240} //CombinedSensitivityParameterImpl

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