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

COVERAGE SUMMARY FOR SOURCE FILE [ComponentResultImpl.java]

nameclass, %method, %block, %line, %
ComponentResultImpl.java0%   (0/1)0%   (0/17)0%   (0/346)0%   (0/92)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ComponentResultImpl0%   (0/1)0%   (0/17)0%   (0/346)0%   (0/92)
ComponentResultImpl (): 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/51)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)
getAverageNumberOfSentMessages (): double 0%   (0/1)0%   (0/3)0%   (0/1)
getAverageResourceDemand (): double 0%   (0/1)0%   (0/3)0%   (0/1)
getMeanResponseTime (): double 0%   (0/1)0%   (0/3)0%   (0/1)
getNormalisedResourceDemand (): double 0%   (0/1)0%   (0/3)0%   (0/1)
getNormalisedResponseTime (): double 0%   (0/1)0%   (0/3)0%   (0/1)
setAverageNumberOfSentMessages (double): void 0%   (0/1)0%   (0/21)0%   (0/5)
setAverageResourceDemand (double): void 0%   (0/1)0%   (0/21)0%   (0/5)
setMeanResponseTime (double): void 0%   (0/1)0%   (0/21)0%   (0/5)
setNormalisedResourceDemand (double): void 0%   (0/1)0%   (0/21)0%   (0/5)
setNormalisedResponseTime (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.pcm.resultdecorator.repositorydecorator.impl;
8 
9import de.uka.ipd.sdq.pcm.core.entity.impl.NamedElementImpl;
10 
11import de.uka.ipd.sdq.pcm.resultdecorator.repositorydecorator.ComponentResult;
12import de.uka.ipd.sdq.pcm.resultdecorator.repositorydecorator.RepositorydecoratorPackage;
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>Component 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.repositorydecorator.impl.ComponentResultImpl#getNormalisedResourceDemand <em>Normalised Resource Demand</em>}</li>
28 *   <li>{@link de.uka.ipd.sdq.pcm.resultdecorator.repositorydecorator.impl.ComponentResultImpl#getNormalisedResponseTime <em>Normalised Response Time</em>}</li>
29 *   <li>{@link de.uka.ipd.sdq.pcm.resultdecorator.repositorydecorator.impl.ComponentResultImpl#getAverageResourceDemand <em>Average Resource Demand</em>}</li>
30 *   <li>{@link de.uka.ipd.sdq.pcm.resultdecorator.repositorydecorator.impl.ComponentResultImpl#getMeanResponseTime <em>Mean Response Time</em>}</li>
31 *   <li>{@link de.uka.ipd.sdq.pcm.resultdecorator.repositorydecorator.impl.ComponentResultImpl#getAverageNumberOfSentMessages <em>Average Number Of Sent Messages</em>}</li>
32 * </ul>
33 * </p>
34 *
35 * @generated
36 */
37public abstract class ComponentResultImpl extends NamedElementImpl implements ComponentResult {
38        /**
39         * The default value of the '{@link #getNormalisedResourceDemand() <em>Normalised Resource Demand</em>}' attribute.
40         * <!-- begin-user-doc -->
41         * <!-- end-user-doc -->
42         * @see #getNormalisedResourceDemand()
43         * @generated
44         * @ordered
45         */
46        protected static final double NORMALISED_RESOURCE_DEMAND_EDEFAULT = 0.0;
47 
48        /**
49         * The cached value of the '{@link #getNormalisedResourceDemand() <em>Normalised Resource Demand</em>}' attribute.
50         * <!-- begin-user-doc -->
51         * <!-- end-user-doc -->
52         * @see #getNormalisedResourceDemand()
53         * @generated
54         * @ordered
55         */
56        protected double normalisedResourceDemand = NORMALISED_RESOURCE_DEMAND_EDEFAULT;
57 
58        /**
59         * The default value of the '{@link #getNormalisedResponseTime() <em>Normalised Response Time</em>}' attribute.
60         * <!-- begin-user-doc -->
61         * <!-- end-user-doc -->
62         * @see #getNormalisedResponseTime()
63         * @generated
64         * @ordered
65         */
66        protected static final double NORMALISED_RESPONSE_TIME_EDEFAULT = 0.0;
67 
68        /**
69         * The cached value of the '{@link #getNormalisedResponseTime() <em>Normalised Response Time</em>}' attribute.
70         * <!-- begin-user-doc -->
71         * <!-- end-user-doc -->
72         * @see #getNormalisedResponseTime()
73         * @generated
74         * @ordered
75         */
76        protected double normalisedResponseTime = NORMALISED_RESPONSE_TIME_EDEFAULT;
77 
78        /**
79         * The default value of the '{@link #getAverageResourceDemand() <em>Average Resource Demand</em>}' attribute.
80         * <!-- begin-user-doc -->
81         * <!-- end-user-doc -->
82         * @see #getAverageResourceDemand()
83         * @generated
84         * @ordered
85         */
86        protected static final double AVERAGE_RESOURCE_DEMAND_EDEFAULT = 0.0;
87 
88        /**
89         * The cached value of the '{@link #getAverageResourceDemand() <em>Average Resource Demand</em>}' attribute.
90         * <!-- begin-user-doc -->
91         * <!-- end-user-doc -->
92         * @see #getAverageResourceDemand()
93         * @generated
94         * @ordered
95         */
96        protected double averageResourceDemand = AVERAGE_RESOURCE_DEMAND_EDEFAULT;
97 
98        /**
99         * The default value of the '{@link #getMeanResponseTime() <em>Mean Response Time</em>}' attribute.
100         * <!-- begin-user-doc -->
101         * <!-- end-user-doc -->
102         * @see #getMeanResponseTime()
103         * @generated
104         * @ordered
105         */
106        protected static final double MEAN_RESPONSE_TIME_EDEFAULT = 0.0;
107 
108        /**
109         * The cached value of the '{@link #getMeanResponseTime() <em>Mean Response Time</em>}' attribute.
110         * <!-- begin-user-doc -->
111         * <!-- end-user-doc -->
112         * @see #getMeanResponseTime()
113         * @generated
114         * @ordered
115         */
116        protected double meanResponseTime = MEAN_RESPONSE_TIME_EDEFAULT;
117 
118        /**
119         * The default value of the '{@link #getAverageNumberOfSentMessages() <em>Average Number Of Sent Messages</em>}' attribute.
120         * <!-- begin-user-doc -->
121         * <!-- end-user-doc -->
122         * @see #getAverageNumberOfSentMessages()
123         * @generated
124         * @ordered
125         */
126        protected static final double AVERAGE_NUMBER_OF_SENT_MESSAGES_EDEFAULT = 0.0;
127 
128        /**
129         * The cached value of the '{@link #getAverageNumberOfSentMessages() <em>Average Number Of Sent Messages</em>}' attribute.
130         * <!-- begin-user-doc -->
131         * <!-- end-user-doc -->
132         * @see #getAverageNumberOfSentMessages()
133         * @generated
134         * @ordered
135         */
136        protected double averageNumberOfSentMessages = AVERAGE_NUMBER_OF_SENT_MESSAGES_EDEFAULT;
137 
138        /**
139         * <!-- begin-user-doc -->
140         * <!-- end-user-doc -->
141         * @generated
142         */
143        protected ComponentResultImpl() {
144                super();
145        }
146 
147        /**
148         * <!-- begin-user-doc -->
149         * <!-- end-user-doc -->
150         * @generated
151         */
152        @Override
153        protected EClass eStaticClass() {
154                return RepositorydecoratorPackage.Literals.COMPONENT_RESULT;
155        }
156 
157        /**
158         * <!-- begin-user-doc -->
159         * <!-- end-user-doc -->
160         * @generated
161         */
162        public double getNormalisedResourceDemand() {
163                return normalisedResourceDemand;
164        }
165 
166        /**
167         * <!-- begin-user-doc -->
168         * <!-- end-user-doc -->
169         * @generated
170         */
171        public void setNormalisedResourceDemand(double newNormalisedResourceDemand) {
172                double oldNormalisedResourceDemand = normalisedResourceDemand;
173                normalisedResourceDemand = newNormalisedResourceDemand;
174                if (eNotificationRequired())
175                        eNotify(new ENotificationImpl(this, Notification.SET, RepositorydecoratorPackage.COMPONENT_RESULT__NORMALISED_RESOURCE_DEMAND, oldNormalisedResourceDemand, normalisedResourceDemand));
176        }
177 
178        /**
179         * <!-- begin-user-doc -->
180         * <!-- end-user-doc -->
181         * @generated
182         */
183        public double getNormalisedResponseTime() {
184                return normalisedResponseTime;
185        }
186 
187        /**
188         * <!-- begin-user-doc -->
189         * <!-- end-user-doc -->
190         * @generated
191         */
192        public void setNormalisedResponseTime(double newNormalisedResponseTime) {
193                double oldNormalisedResponseTime = normalisedResponseTime;
194                normalisedResponseTime = newNormalisedResponseTime;
195                if (eNotificationRequired())
196                        eNotify(new ENotificationImpl(this, Notification.SET, RepositorydecoratorPackage.COMPONENT_RESULT__NORMALISED_RESPONSE_TIME, oldNormalisedResponseTime, normalisedResponseTime));
197        }
198 
199        /**
200         * <!-- begin-user-doc -->
201         * <!-- end-user-doc -->
202         * @generated
203         */
204        public double getAverageResourceDemand() {
205                return averageResourceDemand;
206        }
207 
208        /**
209         * <!-- begin-user-doc -->
210         * <!-- end-user-doc -->
211         * @generated
212         */
213        public void setAverageResourceDemand(double newAverageResourceDemand) {
214                double oldAverageResourceDemand = averageResourceDemand;
215                averageResourceDemand = newAverageResourceDemand;
216                if (eNotificationRequired())
217                        eNotify(new ENotificationImpl(this, Notification.SET, RepositorydecoratorPackage.COMPONENT_RESULT__AVERAGE_RESOURCE_DEMAND, oldAverageResourceDemand, averageResourceDemand));
218        }
219 
220        /**
221         * <!-- begin-user-doc -->
222         * <!-- end-user-doc -->
223         * @generated
224         */
225        public double getMeanResponseTime() {
226                return meanResponseTime;
227        }
228 
229        /**
230         * <!-- begin-user-doc -->
231         * <!-- end-user-doc -->
232         * @generated
233         */
234        public void setMeanResponseTime(double newMeanResponseTime) {
235                double oldMeanResponseTime = meanResponseTime;
236                meanResponseTime = newMeanResponseTime;
237                if (eNotificationRequired())
238                        eNotify(new ENotificationImpl(this, Notification.SET, RepositorydecoratorPackage.COMPONENT_RESULT__MEAN_RESPONSE_TIME, oldMeanResponseTime, meanResponseTime));
239        }
240 
241        /**
242         * <!-- begin-user-doc -->
243         * <!-- end-user-doc -->
244         * @generated
245         */
246        public double getAverageNumberOfSentMessages() {
247                return averageNumberOfSentMessages;
248        }
249 
250        /**
251         * <!-- begin-user-doc -->
252         * <!-- end-user-doc -->
253         * @generated
254         */
255        public void setAverageNumberOfSentMessages(double newAverageNumberOfSentMessages) {
256                double oldAverageNumberOfSentMessages = averageNumberOfSentMessages;
257                averageNumberOfSentMessages = newAverageNumberOfSentMessages;
258                if (eNotificationRequired())
259                        eNotify(new ENotificationImpl(this, Notification.SET, RepositorydecoratorPackage.COMPONENT_RESULT__AVERAGE_NUMBER_OF_SENT_MESSAGES, oldAverageNumberOfSentMessages, averageNumberOfSentMessages));
260        }
261 
262        /**
263         * <!-- begin-user-doc -->
264         * <!-- end-user-doc -->
265         * @generated
266         */
267        @Override
268        public Object eGet(int featureID, boolean resolve, boolean coreType) {
269                switch (featureID) {
270                        case RepositorydecoratorPackage.COMPONENT_RESULT__NORMALISED_RESOURCE_DEMAND:
271                                return getNormalisedResourceDemand();
272                        case RepositorydecoratorPackage.COMPONENT_RESULT__NORMALISED_RESPONSE_TIME:
273                                return getNormalisedResponseTime();
274                        case RepositorydecoratorPackage.COMPONENT_RESULT__AVERAGE_RESOURCE_DEMAND:
275                                return getAverageResourceDemand();
276                        case RepositorydecoratorPackage.COMPONENT_RESULT__MEAN_RESPONSE_TIME:
277                                return getMeanResponseTime();
278                        case RepositorydecoratorPackage.COMPONENT_RESULT__AVERAGE_NUMBER_OF_SENT_MESSAGES:
279                                return getAverageNumberOfSentMessages();
280                }
281                return super.eGet(featureID, resolve, coreType);
282        }
283 
284        /**
285         * <!-- begin-user-doc -->
286         * <!-- end-user-doc -->
287         * @generated
288         */
289        @Override
290        public void eSet(int featureID, Object newValue) {
291                switch (featureID) {
292                        case RepositorydecoratorPackage.COMPONENT_RESULT__NORMALISED_RESOURCE_DEMAND:
293                                setNormalisedResourceDemand((Double)newValue);
294                                return;
295                        case RepositorydecoratorPackage.COMPONENT_RESULT__NORMALISED_RESPONSE_TIME:
296                                setNormalisedResponseTime((Double)newValue);
297                                return;
298                        case RepositorydecoratorPackage.COMPONENT_RESULT__AVERAGE_RESOURCE_DEMAND:
299                                setAverageResourceDemand((Double)newValue);
300                                return;
301                        case RepositorydecoratorPackage.COMPONENT_RESULT__MEAN_RESPONSE_TIME:
302                                setMeanResponseTime((Double)newValue);
303                                return;
304                        case RepositorydecoratorPackage.COMPONENT_RESULT__AVERAGE_NUMBER_OF_SENT_MESSAGES:
305                                setAverageNumberOfSentMessages((Double)newValue);
306                                return;
307                }
308                super.eSet(featureID, newValue);
309        }
310 
311        /**
312         * <!-- begin-user-doc -->
313         * <!-- end-user-doc -->
314         * @generated
315         */
316        @Override
317        public void eUnset(int featureID) {
318                switch (featureID) {
319                        case RepositorydecoratorPackage.COMPONENT_RESULT__NORMALISED_RESOURCE_DEMAND:
320                                setNormalisedResourceDemand(NORMALISED_RESOURCE_DEMAND_EDEFAULT);
321                                return;
322                        case RepositorydecoratorPackage.COMPONENT_RESULT__NORMALISED_RESPONSE_TIME:
323                                setNormalisedResponseTime(NORMALISED_RESPONSE_TIME_EDEFAULT);
324                                return;
325                        case RepositorydecoratorPackage.COMPONENT_RESULT__AVERAGE_RESOURCE_DEMAND:
326                                setAverageResourceDemand(AVERAGE_RESOURCE_DEMAND_EDEFAULT);
327                                return;
328                        case RepositorydecoratorPackage.COMPONENT_RESULT__MEAN_RESPONSE_TIME:
329                                setMeanResponseTime(MEAN_RESPONSE_TIME_EDEFAULT);
330                                return;
331                        case RepositorydecoratorPackage.COMPONENT_RESULT__AVERAGE_NUMBER_OF_SENT_MESSAGES:
332                                setAverageNumberOfSentMessages(AVERAGE_NUMBER_OF_SENT_MESSAGES_EDEFAULT);
333                                return;
334                }
335                super.eUnset(featureID);
336        }
337 
338        /**
339         * <!-- begin-user-doc -->
340         * <!-- end-user-doc -->
341         * @generated
342         */
343        @Override
344        public boolean eIsSet(int featureID) {
345                switch (featureID) {
346                        case RepositorydecoratorPackage.COMPONENT_RESULT__NORMALISED_RESOURCE_DEMAND:
347                                return normalisedResourceDemand != NORMALISED_RESOURCE_DEMAND_EDEFAULT;
348                        case RepositorydecoratorPackage.COMPONENT_RESULT__NORMALISED_RESPONSE_TIME:
349                                return normalisedResponseTime != NORMALISED_RESPONSE_TIME_EDEFAULT;
350                        case RepositorydecoratorPackage.COMPONENT_RESULT__AVERAGE_RESOURCE_DEMAND:
351                                return averageResourceDemand != AVERAGE_RESOURCE_DEMAND_EDEFAULT;
352                        case RepositorydecoratorPackage.COMPONENT_RESULT__MEAN_RESPONSE_TIME:
353                                return meanResponseTime != MEAN_RESPONSE_TIME_EDEFAULT;
354                        case RepositorydecoratorPackage.COMPONENT_RESULT__AVERAGE_NUMBER_OF_SENT_MESSAGES:
355                                return averageNumberOfSentMessages != AVERAGE_NUMBER_OF_SENT_MESSAGES_EDEFAULT;
356                }
357                return super.eIsSet(featureID);
358        }
359 
360        /**
361         * <!-- begin-user-doc -->
362         * <!-- end-user-doc -->
363         * @generated
364         */
365        @Override
366        public String toString() {
367                if (eIsProxy()) return super.toString();
368 
369                StringBuffer result = new StringBuffer(super.toString());
370                result.append(" (normalisedResourceDemand: ");
371                result.append(normalisedResourceDemand);
372                result.append(", normalisedResponseTime: ");
373                result.append(normalisedResponseTime);
374                result.append(", averageResourceDemand: ");
375                result.append(averageResourceDemand);
376                result.append(", meanResponseTime: ");
377                result.append(meanResponseTime);
378                result.append(", averageNumberOfSentMessages: ");
379                result.append(averageNumberOfSentMessages);
380                result.append(')');
381                return result.toString();
382        }
383 
384} //ComponentResultImpl

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