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

nameclass, %method, %block, %line, %
DoubleParameterRangeImpl.java0%   (0/1)0%   (0/17)0%   (0/338)0%   (0/92)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class DoubleParameterRangeImpl0%   (0/1)0%   (0/17)0%   (0/338)0%   (0/92)
DoubleParameterRangeImpl (): void 0%   (0/1)0%   (0/18)0%   (0/7)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/28)0%   (0/7)
eIsSet (int): boolean 0%   (0/1)0%   (0/43)0%   (0/7)
eSet (int, Object): void 0%   (0/1)0%   (0/37)0%   (0/13)
eStaticClass (): EClass 0%   (0/1)0%   (0/2)0%   (0/1)
eUnset (int): void 0%   (0/1)0%   (0/26)0%   (0/13)
getFirstValue (): double 0%   (0/1)0%   (0/3)0%   (0/1)
getLastValue (): double 0%   (0/1)0%   (0/3)0%   (0/1)
getStepCount (): int 0%   (0/1)0%   (0/3)0%   (0/1)
getStepSize (): double 0%   (0/1)0%   (0/3)0%   (0/1)
isConsiderStepSize (): boolean 0%   (0/1)0%   (0/3)0%   (0/1)
setConsiderStepSize (boolean): void 0%   (0/1)0%   (0/21)0%   (0/5)
setFirstValue (double): void 0%   (0/1)0%   (0/21)0%   (0/5)
setLastValue (double): void 0%   (0/1)0%   (0/21)0%   (0/5)
setStepCount (int): void 0%   (0/1)0%   (0/21)0%   (0/5)
setStepSize (double): void 0%   (0/1)0%   (0/21)0%   (0/5)
toString (): String 0%   (0/1)0%   (0/64)0%   (0/14)

1/**
2 * <copyright>
3 * </copyright>
4 *
5 * $Id$
6 */
7package de.uka.ipd.sdq.sensitivity.impl;
8 
9import de.uka.ipd.sdq.sensitivity.DoubleParameterRange;
10import de.uka.ipd.sdq.sensitivity.SensitivityPackage;
11 
12import org.eclipse.emf.common.notify.Notification;
13 
14import org.eclipse.emf.ecore.EClass;
15 
16import org.eclipse.emf.ecore.impl.ENotificationImpl;
17 
18/**
19 * <!-- begin-user-doc -->
20 * An implementation of the model object '<em><b>Double Parameter Range</b></em>'.
21 * <!-- end-user-doc -->
22 * <p>
23 * The following features are implemented:
24 * <ul>
25 *   <li>{@link de.uka.ipd.sdq.sensitivity.impl.DoubleParameterRangeImpl#isConsiderStepSize <em>Consider Step Size</em>}</li>
26 *   <li>{@link de.uka.ipd.sdq.sensitivity.impl.DoubleParameterRangeImpl#getFirstValue <em>First Value</em>}</li>
27 *   <li>{@link de.uka.ipd.sdq.sensitivity.impl.DoubleParameterRangeImpl#getLastValue <em>Last Value</em>}</li>
28 *   <li>{@link de.uka.ipd.sdq.sensitivity.impl.DoubleParameterRangeImpl#getStepSize <em>Step Size</em>}</li>
29 *   <li>{@link de.uka.ipd.sdq.sensitivity.impl.DoubleParameterRangeImpl#getStepCount <em>Step Count</em>}</li>
30 * </ul>
31 * </p>
32 *
33 * @generated
34 */
35public class DoubleParameterRangeImpl extends DoubleParameterVariationImpl implements DoubleParameterRange {
36        /**
37         * The default value of the '{@link #isConsiderStepSize() <em>Consider Step Size</em>}' attribute.
38         * <!-- begin-user-doc -->
39         * <!-- end-user-doc -->
40         * @see #isConsiderStepSize()
41         * @generated
42         * @ordered
43         */
44        protected static final boolean CONSIDER_STEP_SIZE_EDEFAULT = false;
45 
46        /**
47         * The cached value of the '{@link #isConsiderStepSize() <em>Consider Step Size</em>}' attribute.
48         * <!-- begin-user-doc -->
49         * <!-- end-user-doc -->
50         * @see #isConsiderStepSize()
51         * @generated
52         * @ordered
53         */
54        protected boolean considerStepSize = CONSIDER_STEP_SIZE_EDEFAULT;
55 
56        /**
57         * The default value of the '{@link #getFirstValue() <em>First Value</em>}' attribute.
58         * <!-- begin-user-doc -->
59         * <!-- end-user-doc -->
60         * @see #getFirstValue()
61         * @generated
62         * @ordered
63         */
64        protected static final double FIRST_VALUE_EDEFAULT = 0.0;
65 
66        /**
67         * The cached value of the '{@link #getFirstValue() <em>First Value</em>}' attribute.
68         * <!-- begin-user-doc -->
69         * <!-- end-user-doc -->
70         * @see #getFirstValue()
71         * @generated
72         * @ordered
73         */
74        protected double firstValue = FIRST_VALUE_EDEFAULT;
75 
76        /**
77         * The default value of the '{@link #getLastValue() <em>Last Value</em>}' attribute.
78         * <!-- begin-user-doc -->
79         * <!-- end-user-doc -->
80         * @see #getLastValue()
81         * @generated
82         * @ordered
83         */
84        protected static final double LAST_VALUE_EDEFAULT = 0.0;
85 
86        /**
87         * The cached value of the '{@link #getLastValue() <em>Last Value</em>}' attribute.
88         * <!-- begin-user-doc -->
89         * <!-- end-user-doc -->
90         * @see #getLastValue()
91         * @generated
92         * @ordered
93         */
94        protected double lastValue = LAST_VALUE_EDEFAULT;
95 
96        /**
97         * The default value of the '{@link #getStepSize() <em>Step Size</em>}' attribute.
98         * <!-- begin-user-doc -->
99         * <!-- end-user-doc -->
100         * @see #getStepSize()
101         * @generated
102         * @ordered
103         */
104        protected static final double STEP_SIZE_EDEFAULT = 0.0;
105 
106        /**
107         * The cached value of the '{@link #getStepSize() <em>Step Size</em>}' attribute.
108         * <!-- begin-user-doc -->
109         * <!-- end-user-doc -->
110         * @see #getStepSize()
111         * @generated
112         * @ordered
113         */
114        protected double stepSize = STEP_SIZE_EDEFAULT;
115 
116        /**
117         * The default value of the '{@link #getStepCount() <em>Step Count</em>}' attribute.
118         * <!-- begin-user-doc -->
119         * <!-- end-user-doc -->
120         * @see #getStepCount()
121         * @generated
122         * @ordered
123         */
124        protected static final int STEP_COUNT_EDEFAULT = 0;
125 
126        /**
127         * The cached value of the '{@link #getStepCount() <em>Step Count</em>}' attribute.
128         * <!-- begin-user-doc -->
129         * <!-- end-user-doc -->
130         * @see #getStepCount()
131         * @generated
132         * @ordered
133         */
134        protected int stepCount = STEP_COUNT_EDEFAULT;
135 
136        /**
137         * <!-- begin-user-doc -->
138         * <!-- end-user-doc -->
139         * @generated
140         */
141        protected DoubleParameterRangeImpl() {
142                super();
143        }
144 
145        /**
146         * <!-- begin-user-doc -->
147         * <!-- end-user-doc -->
148         * @generated
149         */
150        @Override
151        protected EClass eStaticClass() {
152                return SensitivityPackage.Literals.DOUBLE_PARAMETER_RANGE;
153        }
154 
155        /**
156         * <!-- begin-user-doc -->
157         * <!-- end-user-doc -->
158         * @generated
159         */
160        public boolean isConsiderStepSize() {
161                return considerStepSize;
162        }
163 
164        /**
165         * <!-- begin-user-doc -->
166         * <!-- end-user-doc -->
167         * @generated
168         */
169        public void setConsiderStepSize(boolean newConsiderStepSize) {
170                boolean oldConsiderStepSize = considerStepSize;
171                considerStepSize = newConsiderStepSize;
172                if (eNotificationRequired())
173                        eNotify(new ENotificationImpl(this, Notification.SET, SensitivityPackage.DOUBLE_PARAMETER_RANGE__CONSIDER_STEP_SIZE, oldConsiderStepSize, considerStepSize));
174        }
175 
176        /**
177         * <!-- begin-user-doc -->
178         * <!-- end-user-doc -->
179         * @generated
180         */
181        public double getFirstValue() {
182                return firstValue;
183        }
184 
185        /**
186         * <!-- begin-user-doc -->
187         * <!-- end-user-doc -->
188         * @generated
189         */
190        public void setFirstValue(double newFirstValue) {
191                double oldFirstValue = firstValue;
192                firstValue = newFirstValue;
193                if (eNotificationRequired())
194                        eNotify(new ENotificationImpl(this, Notification.SET, SensitivityPackage.DOUBLE_PARAMETER_RANGE__FIRST_VALUE, oldFirstValue, firstValue));
195        }
196 
197        /**
198         * <!-- begin-user-doc -->
199         * <!-- end-user-doc -->
200         * @generated
201         */
202        public double getLastValue() {
203                return lastValue;
204        }
205 
206        /**
207         * <!-- begin-user-doc -->
208         * <!-- end-user-doc -->
209         * @generated
210         */
211        public void setLastValue(double newLastValue) {
212                double oldLastValue = lastValue;
213                lastValue = newLastValue;
214                if (eNotificationRequired())
215                        eNotify(new ENotificationImpl(this, Notification.SET, SensitivityPackage.DOUBLE_PARAMETER_RANGE__LAST_VALUE, oldLastValue, lastValue));
216        }
217 
218        /**
219         * <!-- begin-user-doc -->
220         * <!-- end-user-doc -->
221         * @generated
222         */
223        public double getStepSize() {
224                return stepSize;
225        }
226 
227        /**
228         * <!-- begin-user-doc -->
229         * <!-- end-user-doc -->
230         * @generated
231         */
232        public void setStepSize(double newStepSize) {
233                double oldStepSize = stepSize;
234                stepSize = newStepSize;
235                if (eNotificationRequired())
236                        eNotify(new ENotificationImpl(this, Notification.SET, SensitivityPackage.DOUBLE_PARAMETER_RANGE__STEP_SIZE, oldStepSize, stepSize));
237        }
238 
239        /**
240         * <!-- begin-user-doc -->
241         * <!-- end-user-doc -->
242         * @generated
243         */
244        public int getStepCount() {
245                return stepCount;
246        }
247 
248        /**
249         * <!-- begin-user-doc -->
250         * <!-- end-user-doc -->
251         * @generated
252         */
253        public void setStepCount(int newStepCount) {
254                int oldStepCount = stepCount;
255                stepCount = newStepCount;
256                if (eNotificationRequired())
257                        eNotify(new ENotificationImpl(this, Notification.SET, SensitivityPackage.DOUBLE_PARAMETER_RANGE__STEP_COUNT, oldStepCount, stepCount));
258        }
259 
260        /**
261         * <!-- begin-user-doc -->
262         * <!-- end-user-doc -->
263         * @generated
264         */
265        @Override
266        public Object eGet(int featureID, boolean resolve, boolean coreType) {
267                switch (featureID) {
268                        case SensitivityPackage.DOUBLE_PARAMETER_RANGE__CONSIDER_STEP_SIZE:
269                                return isConsiderStepSize();
270                        case SensitivityPackage.DOUBLE_PARAMETER_RANGE__FIRST_VALUE:
271                                return getFirstValue();
272                        case SensitivityPackage.DOUBLE_PARAMETER_RANGE__LAST_VALUE:
273                                return getLastValue();
274                        case SensitivityPackage.DOUBLE_PARAMETER_RANGE__STEP_SIZE:
275                                return getStepSize();
276                        case SensitivityPackage.DOUBLE_PARAMETER_RANGE__STEP_COUNT:
277                                return getStepCount();
278                }
279                return super.eGet(featureID, resolve, coreType);
280        }
281 
282        /**
283         * <!-- begin-user-doc -->
284         * <!-- end-user-doc -->
285         * @generated
286         */
287        @Override
288        public void eSet(int featureID, Object newValue) {
289                switch (featureID) {
290                        case SensitivityPackage.DOUBLE_PARAMETER_RANGE__CONSIDER_STEP_SIZE:
291                                setConsiderStepSize((Boolean)newValue);
292                                return;
293                        case SensitivityPackage.DOUBLE_PARAMETER_RANGE__FIRST_VALUE:
294                                setFirstValue((Double)newValue);
295                                return;
296                        case SensitivityPackage.DOUBLE_PARAMETER_RANGE__LAST_VALUE:
297                                setLastValue((Double)newValue);
298                                return;
299                        case SensitivityPackage.DOUBLE_PARAMETER_RANGE__STEP_SIZE:
300                                setStepSize((Double)newValue);
301                                return;
302                        case SensitivityPackage.DOUBLE_PARAMETER_RANGE__STEP_COUNT:
303                                setStepCount((Integer)newValue);
304                                return;
305                }
306                super.eSet(featureID, newValue);
307        }
308 
309        /**
310         * <!-- begin-user-doc -->
311         * <!-- end-user-doc -->
312         * @generated
313         */
314        @Override
315        public void eUnset(int featureID) {
316                switch (featureID) {
317                        case SensitivityPackage.DOUBLE_PARAMETER_RANGE__CONSIDER_STEP_SIZE:
318                                setConsiderStepSize(CONSIDER_STEP_SIZE_EDEFAULT);
319                                return;
320                        case SensitivityPackage.DOUBLE_PARAMETER_RANGE__FIRST_VALUE:
321                                setFirstValue(FIRST_VALUE_EDEFAULT);
322                                return;
323                        case SensitivityPackage.DOUBLE_PARAMETER_RANGE__LAST_VALUE:
324                                setLastValue(LAST_VALUE_EDEFAULT);
325                                return;
326                        case SensitivityPackage.DOUBLE_PARAMETER_RANGE__STEP_SIZE:
327                                setStepSize(STEP_SIZE_EDEFAULT);
328                                return;
329                        case SensitivityPackage.DOUBLE_PARAMETER_RANGE__STEP_COUNT:
330                                setStepCount(STEP_COUNT_EDEFAULT);
331                                return;
332                }
333                super.eUnset(featureID);
334        }
335 
336        /**
337         * <!-- begin-user-doc -->
338         * <!-- end-user-doc -->
339         * @generated
340         */
341        @Override
342        public boolean eIsSet(int featureID) {
343                switch (featureID) {
344                        case SensitivityPackage.DOUBLE_PARAMETER_RANGE__CONSIDER_STEP_SIZE:
345                                return considerStepSize != CONSIDER_STEP_SIZE_EDEFAULT;
346                        case SensitivityPackage.DOUBLE_PARAMETER_RANGE__FIRST_VALUE:
347                                return firstValue != FIRST_VALUE_EDEFAULT;
348                        case SensitivityPackage.DOUBLE_PARAMETER_RANGE__LAST_VALUE:
349                                return lastValue != LAST_VALUE_EDEFAULT;
350                        case SensitivityPackage.DOUBLE_PARAMETER_RANGE__STEP_SIZE:
351                                return stepSize != STEP_SIZE_EDEFAULT;
352                        case SensitivityPackage.DOUBLE_PARAMETER_RANGE__STEP_COUNT:
353                                return stepCount != STEP_COUNT_EDEFAULT;
354                }
355                return super.eIsSet(featureID);
356        }
357 
358        /**
359         * <!-- begin-user-doc -->
360         * <!-- end-user-doc -->
361         * @generated
362         */
363        @Override
364        public String toString() {
365                if (eIsProxy()) return super.toString();
366 
367                StringBuffer result = new StringBuffer(super.toString());
368                result.append(" (considerStepSize: ");
369                result.append(considerStepSize);
370                result.append(", firstValue: ");
371                result.append(firstValue);
372                result.append(", lastValue: ");
373                result.append(lastValue);
374                result.append(", stepSize: ");
375                result.append(stepSize);
376                result.append(", stepCount: ");
377                result.append(stepCount);
378                result.append(')');
379                return result.toString();
380        }
381 
382} //DoubleParameterRangeImpl

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