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

COVERAGE SUMMARY FOR SOURCE FILE [UtilisationResultImpl.java]

nameclass, %method, %block, %line, %
UtilisationResultImpl.java0%   (0/1)0%   (0/19)0%   (0/403)0%   (0/107)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class UtilisationResultImpl0%   (0/1)0%   (0/19)0%   (0/403)0%   (0/107)
UtilisationResultImpl (): void 0%   (0/1)0%   (0/21)0%   (0/8)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/32)0%   (0/8)
eIsSet (int): boolean 0%   (0/1)0%   (0/58)0%   (0/8)
eSet (int, Object): void 0%   (0/1)0%   (0/43)0%   (0/15)
eStaticClass (): EClass 0%   (0/1)0%   (0/2)0%   (0/1)
eUnset (int): void 0%   (0/1)0%   (0/30)0%   (0/15)
getAverageQueueLength (): double 0%   (0/1)0%   (0/3)0%   (0/1)
getAverageWaitTime (): double 0%   (0/1)0%   (0/3)0%   (0/1)
getMaxQueueLength (): int 0%   (0/1)0%   (0/3)0%   (0/1)
getNormalisedResourceUtilisation (): double 0%   (0/1)0%   (0/3)0%   (0/1)
getNormalisedWaitTime (): double 0%   (0/1)0%   (0/3)0%   (0/1)
getResourceUtilisation (): double 0%   (0/1)0%   (0/3)0%   (0/1)
setAverageQueueLength (double): void 0%   (0/1)0%   (0/21)0%   (0/5)
setAverageWaitTime (double): void 0%   (0/1)0%   (0/21)0%   (0/5)
setMaxQueueLength (int): void 0%   (0/1)0%   (0/21)0%   (0/5)
setNormalisedResourceUtilisation (double): void 0%   (0/1)0%   (0/21)0%   (0/5)
setNormalisedWaitTime (double): void 0%   (0/1)0%   (0/21)0%   (0/5)
setResourceUtilisation (double): void 0%   (0/1)0%   (0/21)0%   (0/5)
toString (): String 0%   (0/1)0%   (0/73)0%   (0/16)

1/**
2 * <copyright>
3 * </copyright>
4 *
5 * $Id$
6 */
7package de.uka.ipd.sdq.pcm.resultdecorator.resourceenvironmentdecorator.impl;
8 
9import de.uka.ipd.sdq.pcm.core.entity.impl.NamedElementImpl;
10 
11import de.uka.ipd.sdq.pcm.resultdecorator.resourceenvironmentdecorator.ResourceenvironmentdecoratorPackage;
12import de.uka.ipd.sdq.pcm.resultdecorator.resourceenvironmentdecorator.UtilisationResult;
13 
14import org.eclipse.emf.common.notify.Notification;
15 
16import org.eclipse.emf.ecore.EClass;
17 
18import org.eclipse.emf.ecore.impl.ENotificationImpl;
19 
20/**
21 * <!-- begin-user-doc -->
22 * An implementation of the model object '<em><b>Utilisation Result</b></em>'.
23 * <!-- end-user-doc -->
24 * <p>
25 * The following features are implemented:
26 * <ul>
27 *   <li>{@link de.uka.ipd.sdq.pcm.resultdecorator.resourceenvironmentdecorator.impl.UtilisationResultImpl#getNormalisedResourceUtilisation <em>Normalised Resource Utilisation</em>}</li>
28 *   <li>{@link de.uka.ipd.sdq.pcm.resultdecorator.resourceenvironmentdecorator.impl.UtilisationResultImpl#getNormalisedWaitTime <em>Normalised Wait Time</em>}</li>
29 *   <li>{@link de.uka.ipd.sdq.pcm.resultdecorator.resourceenvironmentdecorator.impl.UtilisationResultImpl#getResourceUtilisation <em>Resource Utilisation</em>}</li>
30 *   <li>{@link de.uka.ipd.sdq.pcm.resultdecorator.resourceenvironmentdecorator.impl.UtilisationResultImpl#getAverageWaitTime <em>Average Wait Time</em>}</li>
31 *   <li>{@link de.uka.ipd.sdq.pcm.resultdecorator.resourceenvironmentdecorator.impl.UtilisationResultImpl#getAverageQueueLength <em>Average Queue Length</em>}</li>
32 *   <li>{@link de.uka.ipd.sdq.pcm.resultdecorator.resourceenvironmentdecorator.impl.UtilisationResultImpl#getMaxQueueLength <em>Max Queue Length</em>}</li>
33 * </ul>
34 * </p>
35 *
36 * @generated
37 */
38public abstract class UtilisationResultImpl extends NamedElementImpl implements UtilisationResult {
39        /**
40         * The default value of the '{@link #getNormalisedResourceUtilisation() <em>Normalised Resource Utilisation</em>}' attribute.
41         * <!-- begin-user-doc -->
42         * <!-- end-user-doc -->
43         * @see #getNormalisedResourceUtilisation()
44         * @generated
45         * @ordered
46         */
47        protected static final double NORMALISED_RESOURCE_UTILISATION_EDEFAULT = 0.0;
48 
49        /**
50         * The cached value of the '{@link #getNormalisedResourceUtilisation() <em>Normalised Resource Utilisation</em>}' attribute.
51         * <!-- begin-user-doc -->
52         * <!-- end-user-doc -->
53         * @see #getNormalisedResourceUtilisation()
54         * @generated
55         * @ordered
56         */
57        protected double normalisedResourceUtilisation = NORMALISED_RESOURCE_UTILISATION_EDEFAULT;
58 
59        /**
60         * The default value of the '{@link #getNormalisedWaitTime() <em>Normalised Wait Time</em>}' attribute.
61         * <!-- begin-user-doc -->
62         * <!-- end-user-doc -->
63         * @see #getNormalisedWaitTime()
64         * @generated
65         * @ordered
66         */
67        protected static final double NORMALISED_WAIT_TIME_EDEFAULT = 0.0;
68 
69        /**
70         * The cached value of the '{@link #getNormalisedWaitTime() <em>Normalised Wait Time</em>}' attribute.
71         * <!-- begin-user-doc -->
72         * <!-- end-user-doc -->
73         * @see #getNormalisedWaitTime()
74         * @generated
75         * @ordered
76         */
77        protected double normalisedWaitTime = NORMALISED_WAIT_TIME_EDEFAULT;
78 
79        /**
80         * The default value of the '{@link #getResourceUtilisation() <em>Resource Utilisation</em>}' attribute.
81         * <!-- begin-user-doc -->
82         * <!-- end-user-doc -->
83         * @see #getResourceUtilisation()
84         * @generated
85         * @ordered
86         */
87        protected static final double RESOURCE_UTILISATION_EDEFAULT = 0.0;
88 
89        /**
90         * The cached value of the '{@link #getResourceUtilisation() <em>Resource Utilisation</em>}' attribute.
91         * <!-- begin-user-doc -->
92         * <!-- end-user-doc -->
93         * @see #getResourceUtilisation()
94         * @generated
95         * @ordered
96         */
97        protected double resourceUtilisation = RESOURCE_UTILISATION_EDEFAULT;
98 
99        /**
100         * The default value of the '{@link #getAverageWaitTime() <em>Average Wait Time</em>}' attribute.
101         * <!-- begin-user-doc -->
102         * <!-- end-user-doc -->
103         * @see #getAverageWaitTime()
104         * @generated
105         * @ordered
106         */
107        protected static final double AVERAGE_WAIT_TIME_EDEFAULT = 0.0;
108 
109        /**
110         * The cached value of the '{@link #getAverageWaitTime() <em>Average Wait Time</em>}' attribute.
111         * <!-- begin-user-doc -->
112         * <!-- end-user-doc -->
113         * @see #getAverageWaitTime()
114         * @generated
115         * @ordered
116         */
117        protected double averageWaitTime = AVERAGE_WAIT_TIME_EDEFAULT;
118 
119        /**
120         * The default value of the '{@link #getAverageQueueLength() <em>Average Queue Length</em>}' attribute.
121         * <!-- begin-user-doc -->
122         * <!-- end-user-doc -->
123         * @see #getAverageQueueLength()
124         * @generated
125         * @ordered
126         */
127        protected static final double AVERAGE_QUEUE_LENGTH_EDEFAULT = 0.0;
128 
129        /**
130         * The cached value of the '{@link #getAverageQueueLength() <em>Average Queue Length</em>}' attribute.
131         * <!-- begin-user-doc -->
132         * <!-- end-user-doc -->
133         * @see #getAverageQueueLength()
134         * @generated
135         * @ordered
136         */
137        protected double averageQueueLength = AVERAGE_QUEUE_LENGTH_EDEFAULT;
138 
139        /**
140         * The default value of the '{@link #getMaxQueueLength() <em>Max Queue Length</em>}' attribute.
141         * <!-- begin-user-doc -->
142         * <!-- end-user-doc -->
143         * @see #getMaxQueueLength()
144         * @generated
145         * @ordered
146         */
147        protected static final int MAX_QUEUE_LENGTH_EDEFAULT = 0;
148 
149        /**
150         * The cached value of the '{@link #getMaxQueueLength() <em>Max Queue Length</em>}' attribute.
151         * <!-- begin-user-doc -->
152         * <!-- end-user-doc -->
153         * @see #getMaxQueueLength()
154         * @generated
155         * @ordered
156         */
157        protected int maxQueueLength = MAX_QUEUE_LENGTH_EDEFAULT;
158 
159        /**
160         * <!-- begin-user-doc -->
161         * <!-- end-user-doc -->
162         * @generated
163         */
164        protected UtilisationResultImpl() {
165                super();
166        }
167 
168        /**
169         * <!-- begin-user-doc -->
170         * <!-- end-user-doc -->
171         * @generated
172         */
173        @Override
174        protected EClass eStaticClass() {
175                return ResourceenvironmentdecoratorPackage.Literals.UTILISATION_RESULT;
176        }
177 
178        /**
179         * <!-- begin-user-doc -->
180         * <!-- end-user-doc -->
181         * @generated
182         */
183        public double getNormalisedResourceUtilisation() {
184                return normalisedResourceUtilisation;
185        }
186 
187        /**
188         * <!-- begin-user-doc -->
189         * <!-- end-user-doc -->
190         * @generated
191         */
192        public void setNormalisedResourceUtilisation(double newNormalisedResourceUtilisation) {
193                double oldNormalisedResourceUtilisation = normalisedResourceUtilisation;
194                normalisedResourceUtilisation = newNormalisedResourceUtilisation;
195                if (eNotificationRequired())
196                        eNotify(new ENotificationImpl(this, Notification.SET, ResourceenvironmentdecoratorPackage.UTILISATION_RESULT__NORMALISED_RESOURCE_UTILISATION, oldNormalisedResourceUtilisation, normalisedResourceUtilisation));
197        }
198 
199        /**
200         * <!-- begin-user-doc -->
201         * <!-- end-user-doc -->
202         * @generated
203         */
204        public double getNormalisedWaitTime() {
205                return normalisedWaitTime;
206        }
207 
208        /**
209         * <!-- begin-user-doc -->
210         * <!-- end-user-doc -->
211         * @generated
212         */
213        public void setNormalisedWaitTime(double newNormalisedWaitTime) {
214                double oldNormalisedWaitTime = normalisedWaitTime;
215                normalisedWaitTime = newNormalisedWaitTime;
216                if (eNotificationRequired())
217                        eNotify(new ENotificationImpl(this, Notification.SET, ResourceenvironmentdecoratorPackage.UTILISATION_RESULT__NORMALISED_WAIT_TIME, oldNormalisedWaitTime, normalisedWaitTime));
218        }
219 
220        /**
221         * <!-- begin-user-doc -->
222         * <!-- end-user-doc -->
223         * @generated
224         */
225        public double getResourceUtilisation() {
226                return resourceUtilisation;
227        }
228 
229        /**
230         * <!-- begin-user-doc -->
231         * <!-- end-user-doc -->
232         * @generated
233         */
234        public void setResourceUtilisation(double newResourceUtilisation) {
235                double oldResourceUtilisation = resourceUtilisation;
236                resourceUtilisation = newResourceUtilisation;
237                if (eNotificationRequired())
238                        eNotify(new ENotificationImpl(this, Notification.SET, ResourceenvironmentdecoratorPackage.UTILISATION_RESULT__RESOURCE_UTILISATION, oldResourceUtilisation, resourceUtilisation));
239        }
240 
241        /**
242         * <!-- begin-user-doc -->
243         * <!-- end-user-doc -->
244         * @generated
245         */
246        public double getAverageWaitTime() {
247                return averageWaitTime;
248        }
249 
250        /**
251         * <!-- begin-user-doc -->
252         * <!-- end-user-doc -->
253         * @generated
254         */
255        public void setAverageWaitTime(double newAverageWaitTime) {
256                double oldAverageWaitTime = averageWaitTime;
257                averageWaitTime = newAverageWaitTime;
258                if (eNotificationRequired())
259                        eNotify(new ENotificationImpl(this, Notification.SET, ResourceenvironmentdecoratorPackage.UTILISATION_RESULT__AVERAGE_WAIT_TIME, oldAverageWaitTime, averageWaitTime));
260        }
261 
262        /**
263         * <!-- begin-user-doc -->
264         * <!-- end-user-doc -->
265         * @generated
266         */
267        public double getAverageQueueLength() {
268                return averageQueueLength;
269        }
270 
271        /**
272         * <!-- begin-user-doc -->
273         * <!-- end-user-doc -->
274         * @generated
275         */
276        public void setAverageQueueLength(double newAverageQueueLength) {
277                double oldAverageQueueLength = averageQueueLength;
278                averageQueueLength = newAverageQueueLength;
279                if (eNotificationRequired())
280                        eNotify(new ENotificationImpl(this, Notification.SET, ResourceenvironmentdecoratorPackage.UTILISATION_RESULT__AVERAGE_QUEUE_LENGTH, oldAverageQueueLength, averageQueueLength));
281        }
282 
283        /**
284         * <!-- begin-user-doc -->
285         * <!-- end-user-doc -->
286         * @generated
287         */
288        public int getMaxQueueLength() {
289                return maxQueueLength;
290        }
291 
292        /**
293         * <!-- begin-user-doc -->
294         * <!-- end-user-doc -->
295         * @generated
296         */
297        public void setMaxQueueLength(int newMaxQueueLength) {
298                int oldMaxQueueLength = maxQueueLength;
299                maxQueueLength = newMaxQueueLength;
300                if (eNotificationRequired())
301                        eNotify(new ENotificationImpl(this, Notification.SET, ResourceenvironmentdecoratorPackage.UTILISATION_RESULT__MAX_QUEUE_LENGTH, oldMaxQueueLength, maxQueueLength));
302        }
303 
304        /**
305         * <!-- begin-user-doc -->
306         * <!-- end-user-doc -->
307         * @generated
308         */
309        @Override
310        public Object eGet(int featureID, boolean resolve, boolean coreType) {
311                switch (featureID) {
312                        case ResourceenvironmentdecoratorPackage.UTILISATION_RESULT__NORMALISED_RESOURCE_UTILISATION:
313                                return getNormalisedResourceUtilisation();
314                        case ResourceenvironmentdecoratorPackage.UTILISATION_RESULT__NORMALISED_WAIT_TIME:
315                                return getNormalisedWaitTime();
316                        case ResourceenvironmentdecoratorPackage.UTILISATION_RESULT__RESOURCE_UTILISATION:
317                                return getResourceUtilisation();
318                        case ResourceenvironmentdecoratorPackage.UTILISATION_RESULT__AVERAGE_WAIT_TIME:
319                                return getAverageWaitTime();
320                        case ResourceenvironmentdecoratorPackage.UTILISATION_RESULT__AVERAGE_QUEUE_LENGTH:
321                                return getAverageQueueLength();
322                        case ResourceenvironmentdecoratorPackage.UTILISATION_RESULT__MAX_QUEUE_LENGTH:
323                                return getMaxQueueLength();
324                }
325                return super.eGet(featureID, resolve, coreType);
326        }
327 
328        /**
329         * <!-- begin-user-doc -->
330         * <!-- end-user-doc -->
331         * @generated
332         */
333        @Override
334        public void eSet(int featureID, Object newValue) {
335                switch (featureID) {
336                        case ResourceenvironmentdecoratorPackage.UTILISATION_RESULT__NORMALISED_RESOURCE_UTILISATION:
337                                setNormalisedResourceUtilisation((Double)newValue);
338                                return;
339                        case ResourceenvironmentdecoratorPackage.UTILISATION_RESULT__NORMALISED_WAIT_TIME:
340                                setNormalisedWaitTime((Double)newValue);
341                                return;
342                        case ResourceenvironmentdecoratorPackage.UTILISATION_RESULT__RESOURCE_UTILISATION:
343                                setResourceUtilisation((Double)newValue);
344                                return;
345                        case ResourceenvironmentdecoratorPackage.UTILISATION_RESULT__AVERAGE_WAIT_TIME:
346                                setAverageWaitTime((Double)newValue);
347                                return;
348                        case ResourceenvironmentdecoratorPackage.UTILISATION_RESULT__AVERAGE_QUEUE_LENGTH:
349                                setAverageQueueLength((Double)newValue);
350                                return;
351                        case ResourceenvironmentdecoratorPackage.UTILISATION_RESULT__MAX_QUEUE_LENGTH:
352                                setMaxQueueLength((Integer)newValue);
353                                return;
354                }
355                super.eSet(featureID, newValue);
356        }
357 
358        /**
359         * <!-- begin-user-doc -->
360         * <!-- end-user-doc -->
361         * @generated
362         */
363        @Override
364        public void eUnset(int featureID) {
365                switch (featureID) {
366                        case ResourceenvironmentdecoratorPackage.UTILISATION_RESULT__NORMALISED_RESOURCE_UTILISATION:
367                                setNormalisedResourceUtilisation(NORMALISED_RESOURCE_UTILISATION_EDEFAULT);
368                                return;
369                        case ResourceenvironmentdecoratorPackage.UTILISATION_RESULT__NORMALISED_WAIT_TIME:
370                                setNormalisedWaitTime(NORMALISED_WAIT_TIME_EDEFAULT);
371                                return;
372                        case ResourceenvironmentdecoratorPackage.UTILISATION_RESULT__RESOURCE_UTILISATION:
373                                setResourceUtilisation(RESOURCE_UTILISATION_EDEFAULT);
374                                return;
375                        case ResourceenvironmentdecoratorPackage.UTILISATION_RESULT__AVERAGE_WAIT_TIME:
376                                setAverageWaitTime(AVERAGE_WAIT_TIME_EDEFAULT);
377                                return;
378                        case ResourceenvironmentdecoratorPackage.UTILISATION_RESULT__AVERAGE_QUEUE_LENGTH:
379                                setAverageQueueLength(AVERAGE_QUEUE_LENGTH_EDEFAULT);
380                                return;
381                        case ResourceenvironmentdecoratorPackage.UTILISATION_RESULT__MAX_QUEUE_LENGTH:
382                                setMaxQueueLength(MAX_QUEUE_LENGTH_EDEFAULT);
383                                return;
384                }
385                super.eUnset(featureID);
386        }
387 
388        /**
389         * <!-- begin-user-doc -->
390         * <!-- end-user-doc -->
391         * @generated
392         */
393        @Override
394        public boolean eIsSet(int featureID) {
395                switch (featureID) {
396                        case ResourceenvironmentdecoratorPackage.UTILISATION_RESULT__NORMALISED_RESOURCE_UTILISATION:
397                                return normalisedResourceUtilisation != NORMALISED_RESOURCE_UTILISATION_EDEFAULT;
398                        case ResourceenvironmentdecoratorPackage.UTILISATION_RESULT__NORMALISED_WAIT_TIME:
399                                return normalisedWaitTime != NORMALISED_WAIT_TIME_EDEFAULT;
400                        case ResourceenvironmentdecoratorPackage.UTILISATION_RESULT__RESOURCE_UTILISATION:
401                                return resourceUtilisation != RESOURCE_UTILISATION_EDEFAULT;
402                        case ResourceenvironmentdecoratorPackage.UTILISATION_RESULT__AVERAGE_WAIT_TIME:
403                                return averageWaitTime != AVERAGE_WAIT_TIME_EDEFAULT;
404                        case ResourceenvironmentdecoratorPackage.UTILISATION_RESULT__AVERAGE_QUEUE_LENGTH:
405                                return averageQueueLength != AVERAGE_QUEUE_LENGTH_EDEFAULT;
406                        case ResourceenvironmentdecoratorPackage.UTILISATION_RESULT__MAX_QUEUE_LENGTH:
407                                return maxQueueLength != MAX_QUEUE_LENGTH_EDEFAULT;
408                }
409                return super.eIsSet(featureID);
410        }
411 
412        /**
413         * <!-- begin-user-doc -->
414         * <!-- end-user-doc -->
415         * @generated
416         */
417        @Override
418        public String toString() {
419                if (eIsProxy()) return super.toString();
420 
421                StringBuffer result = new StringBuffer(super.toString());
422                result.append(" (normalisedResourceUtilisation: ");
423                result.append(normalisedResourceUtilisation);
424                result.append(", normalisedWaitTime: ");
425                result.append(normalisedWaitTime);
426                result.append(", resourceUtilisation: ");
427                result.append(resourceUtilisation);
428                result.append(", averageWaitTime: ");
429                result.append(averageWaitTime);
430                result.append(", averageQueueLength: ");
431                result.append(averageQueueLength);
432                result.append(", maxQueueLength: ");
433                result.append(maxQueueLength);
434                result.append(')');
435                return result.toString();
436        }
437 
438} //UtilisationResultImpl

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