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

nameclass, %method, %block, %line, %
ServiceResultImpl.java0%   (0/1)0%   (0/14)0%   (0/255)0%   (0/67)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ServiceResultImpl0%   (0/1)0%   (0/14)0%   (0/255)0%   (0/67)
ServiceResultImpl (): void 0%   (0/1)0%   (0/9)0%   (0/4)
basicGetServiceEffectSpecification_ServiceResult (): ServiceEffectSpecification 0%   (0/1)0%   (0/3)0%   (0/1)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/24)0%   (0/6)
eIsSet (int): boolean 0%   (0/1)0%   (0/31)0%   (0/5)
eSet (int, Object): void 0%   (0/1)0%   (0/24)0%   (0/9)
eStaticClass (): EClass 0%   (0/1)0%   (0/2)0%   (0/1)
eUnset (int): void 0%   (0/1)0%   (0/18)0%   (0/9)
getMeanResponseTime (): double 0%   (0/1)0%   (0/3)0%   (0/1)
getServiceEffectSpecification_ServiceResult (): ServiceEffectSpecification 0%   (0/1)0%   (0/38)0%   (0/7)
getThroughput (): double 0%   (0/1)0%   (0/3)0%   (0/1)
setMeanResponseTime (double): void 0%   (0/1)0%   (0/21)0%   (0/5)
setServiceEffectSpecification_ServiceResult (ServiceEffectSpecification): void 0%   (0/1)0%   (0/21)0%   (0/5)
setThroughput (double): void 0%   (0/1)0%   (0/21)0%   (0/5)
toString (): String 0%   (0/1)0%   (0/37)0%   (0/8)

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.resultdecorator.repositorydecorator.RepositorydecoratorPackage;
10import de.uka.ipd.sdq.pcm.resultdecorator.repositorydecorator.ServiceResult;
11 
12import de.uka.ipd.sdq.pcm.seff.ServiceEffectSpecification;
13 
14import org.eclipse.emf.common.notify.Notification;
15 
16import org.eclipse.emf.ecore.EClass;
17import org.eclipse.emf.ecore.InternalEObject;
18 
19import org.eclipse.emf.ecore.impl.ENotificationImpl;
20import org.eclipse.emf.ecore.impl.EObjectImpl;
21 
22/**
23 * <!-- begin-user-doc -->
24 * An implementation of the model object '<em><b>Service Result</b></em>'.
25 * <!-- end-user-doc -->
26 * <p>
27 * The following features are implemented:
28 * <ul>
29 *   <li>{@link de.uka.ipd.sdq.pcm.resultdecorator.repositorydecorator.impl.ServiceResultImpl#getMeanResponseTime <em>Mean Response Time</em>}</li>
30 *   <li>{@link de.uka.ipd.sdq.pcm.resultdecorator.repositorydecorator.impl.ServiceResultImpl#getThroughput <em>Throughput</em>}</li>
31 *   <li>{@link de.uka.ipd.sdq.pcm.resultdecorator.repositorydecorator.impl.ServiceResultImpl#getServiceEffectSpecification_ServiceResult <em>Service Effect Specification Service Result</em>}</li>
32 * </ul>
33 * </p>
34 *
35 * @generated
36 */
37public abstract class ServiceResultImpl extends EObjectImpl implements ServiceResult {
38        /**
39         * The default value of the '{@link #getMeanResponseTime() <em>Mean Response Time</em>}' attribute.
40         * <!-- begin-user-doc -->
41         * <!-- end-user-doc -->
42         * @see #getMeanResponseTime()
43         * @generated
44         * @ordered
45         */
46        protected static final double MEAN_RESPONSE_TIME_EDEFAULT = 0.0;
47 
48        /**
49         * The cached value of the '{@link #getMeanResponseTime() <em>Mean Response Time</em>}' attribute.
50         * <!-- begin-user-doc -->
51         * <!-- end-user-doc -->
52         * @see #getMeanResponseTime()
53         * @generated
54         * @ordered
55         */
56        protected double meanResponseTime = MEAN_RESPONSE_TIME_EDEFAULT;
57 
58        /**
59         * The default value of the '{@link #getThroughput() <em>Throughput</em>}' attribute.
60         * <!-- begin-user-doc -->
61         * <!-- end-user-doc -->
62         * @see #getThroughput()
63         * @generated
64         * @ordered
65         */
66        protected static final double THROUGHPUT_EDEFAULT = 0.0;
67 
68        /**
69         * The cached value of the '{@link #getThroughput() <em>Throughput</em>}' attribute.
70         * <!-- begin-user-doc -->
71         * <!-- end-user-doc -->
72         * @see #getThroughput()
73         * @generated
74         * @ordered
75         */
76        protected double throughput = THROUGHPUT_EDEFAULT;
77 
78        /**
79         * The cached value of the '{@link #getServiceEffectSpecification_ServiceResult() <em>Service Effect Specification Service Result</em>}' reference.
80         * <!-- begin-user-doc -->
81         * <!-- end-user-doc -->
82         * @see #getServiceEffectSpecification_ServiceResult()
83         * @generated
84         * @ordered
85         */
86        protected ServiceEffectSpecification serviceEffectSpecification_ServiceResult;
87 
88        /**
89         * <!-- begin-user-doc -->
90         * <!-- end-user-doc -->
91         * @generated
92         */
93        protected ServiceResultImpl() {
94                super();
95        }
96 
97        /**
98         * <!-- begin-user-doc -->
99         * <!-- end-user-doc -->
100         * @generated
101         */
102        @Override
103        protected EClass eStaticClass() {
104                return RepositorydecoratorPackage.Literals.SERVICE_RESULT;
105        }
106 
107        /**
108         * <!-- begin-user-doc -->
109         * <!-- end-user-doc -->
110         * @generated
111         */
112        public double getMeanResponseTime() {
113                return meanResponseTime;
114        }
115 
116        /**
117         * <!-- begin-user-doc -->
118         * <!-- end-user-doc -->
119         * @generated
120         */
121        public void setMeanResponseTime(double newMeanResponseTime) {
122                double oldMeanResponseTime = meanResponseTime;
123                meanResponseTime = newMeanResponseTime;
124                if (eNotificationRequired())
125                        eNotify(new ENotificationImpl(this, Notification.SET, RepositorydecoratorPackage.SERVICE_RESULT__MEAN_RESPONSE_TIME, oldMeanResponseTime, meanResponseTime));
126        }
127 
128        /**
129         * <!-- begin-user-doc -->
130         * <!-- end-user-doc -->
131         * @generated
132         */
133        public double getThroughput() {
134                return throughput;
135        }
136 
137        /**
138         * <!-- begin-user-doc -->
139         * <!-- end-user-doc -->
140         * @generated
141         */
142        public void setThroughput(double newThroughput) {
143                double oldThroughput = throughput;
144                throughput = newThroughput;
145                if (eNotificationRequired())
146                        eNotify(new ENotificationImpl(this, Notification.SET, RepositorydecoratorPackage.SERVICE_RESULT__THROUGHPUT, oldThroughput, throughput));
147        }
148 
149        /**
150         * <!-- begin-user-doc -->
151         * <!-- end-user-doc -->
152         * @generated
153         */
154        public ServiceEffectSpecification getServiceEffectSpecification_ServiceResult() {
155                if (serviceEffectSpecification_ServiceResult != null && serviceEffectSpecification_ServiceResult.eIsProxy()) {
156                        InternalEObject oldServiceEffectSpecification_ServiceResult = (InternalEObject)serviceEffectSpecification_ServiceResult;
157                        serviceEffectSpecification_ServiceResult = (ServiceEffectSpecification)eResolveProxy(oldServiceEffectSpecification_ServiceResult);
158                        if (serviceEffectSpecification_ServiceResult != oldServiceEffectSpecification_ServiceResult) {
159                                if (eNotificationRequired())
160                                        eNotify(new ENotificationImpl(this, Notification.RESOLVE, RepositorydecoratorPackage.SERVICE_RESULT__SERVICE_EFFECT_SPECIFICATION_SERVICE_RESULT, oldServiceEffectSpecification_ServiceResult, serviceEffectSpecification_ServiceResult));
161                        }
162                }
163                return serviceEffectSpecification_ServiceResult;
164        }
165 
166        /**
167         * <!-- begin-user-doc -->
168         * <!-- end-user-doc -->
169         * @generated
170         */
171        public ServiceEffectSpecification basicGetServiceEffectSpecification_ServiceResult() {
172                return serviceEffectSpecification_ServiceResult;
173        }
174 
175        /**
176         * <!-- begin-user-doc -->
177         * <!-- end-user-doc -->
178         * @generated
179         */
180        public void setServiceEffectSpecification_ServiceResult(ServiceEffectSpecification newServiceEffectSpecification_ServiceResult) {
181                ServiceEffectSpecification oldServiceEffectSpecification_ServiceResult = serviceEffectSpecification_ServiceResult;
182                serviceEffectSpecification_ServiceResult = newServiceEffectSpecification_ServiceResult;
183                if (eNotificationRequired())
184                        eNotify(new ENotificationImpl(this, Notification.SET, RepositorydecoratorPackage.SERVICE_RESULT__SERVICE_EFFECT_SPECIFICATION_SERVICE_RESULT, oldServiceEffectSpecification_ServiceResult, serviceEffectSpecification_ServiceResult));
185        }
186 
187        /**
188         * <!-- begin-user-doc -->
189         * <!-- end-user-doc -->
190         * @generated
191         */
192        @Override
193        public Object eGet(int featureID, boolean resolve, boolean coreType) {
194                switch (featureID) {
195                        case RepositorydecoratorPackage.SERVICE_RESULT__MEAN_RESPONSE_TIME:
196                                return getMeanResponseTime();
197                        case RepositorydecoratorPackage.SERVICE_RESULT__THROUGHPUT:
198                                return getThroughput();
199                        case RepositorydecoratorPackage.SERVICE_RESULT__SERVICE_EFFECT_SPECIFICATION_SERVICE_RESULT:
200                                if (resolve) return getServiceEffectSpecification_ServiceResult();
201                                return basicGetServiceEffectSpecification_ServiceResult();
202                }
203                return super.eGet(featureID, resolve, coreType);
204        }
205 
206        /**
207         * <!-- begin-user-doc -->
208         * <!-- end-user-doc -->
209         * @generated
210         */
211        @Override
212        public void eSet(int featureID, Object newValue) {
213                switch (featureID) {
214                        case RepositorydecoratorPackage.SERVICE_RESULT__MEAN_RESPONSE_TIME:
215                                setMeanResponseTime((Double)newValue);
216                                return;
217                        case RepositorydecoratorPackage.SERVICE_RESULT__THROUGHPUT:
218                                setThroughput((Double)newValue);
219                                return;
220                        case RepositorydecoratorPackage.SERVICE_RESULT__SERVICE_EFFECT_SPECIFICATION_SERVICE_RESULT:
221                                setServiceEffectSpecification_ServiceResult((ServiceEffectSpecification)newValue);
222                                return;
223                }
224                super.eSet(featureID, newValue);
225        }
226 
227        /**
228         * <!-- begin-user-doc -->
229         * <!-- end-user-doc -->
230         * @generated
231         */
232        @Override
233        public void eUnset(int featureID) {
234                switch (featureID) {
235                        case RepositorydecoratorPackage.SERVICE_RESULT__MEAN_RESPONSE_TIME:
236                                setMeanResponseTime(MEAN_RESPONSE_TIME_EDEFAULT);
237                                return;
238                        case RepositorydecoratorPackage.SERVICE_RESULT__THROUGHPUT:
239                                setThroughput(THROUGHPUT_EDEFAULT);
240                                return;
241                        case RepositorydecoratorPackage.SERVICE_RESULT__SERVICE_EFFECT_SPECIFICATION_SERVICE_RESULT:
242                                setServiceEffectSpecification_ServiceResult((ServiceEffectSpecification)null);
243                                return;
244                }
245                super.eUnset(featureID);
246        }
247 
248        /**
249         * <!-- begin-user-doc -->
250         * <!-- end-user-doc -->
251         * @generated
252         */
253        @Override
254        public boolean eIsSet(int featureID) {
255                switch (featureID) {
256                        case RepositorydecoratorPackage.SERVICE_RESULT__MEAN_RESPONSE_TIME:
257                                return meanResponseTime != MEAN_RESPONSE_TIME_EDEFAULT;
258                        case RepositorydecoratorPackage.SERVICE_RESULT__THROUGHPUT:
259                                return throughput != THROUGHPUT_EDEFAULT;
260                        case RepositorydecoratorPackage.SERVICE_RESULT__SERVICE_EFFECT_SPECIFICATION_SERVICE_RESULT:
261                                return serviceEffectSpecification_ServiceResult != null;
262                }
263                return super.eIsSet(featureID);
264        }
265 
266        /**
267         * <!-- begin-user-doc -->
268         * <!-- end-user-doc -->
269         * @generated
270         */
271        @Override
272        public String toString() {
273                if (eIsProxy()) return super.toString();
274 
275                StringBuffer result = new StringBuffer(super.toString());
276                result.append(" (meanResponseTime: ");
277                result.append(meanResponseTime);
278                result.append(", throughput: ");
279                result.append(throughput);
280                result.append(')');
281                return result.toString();
282        }
283 
284} //ServiceResultImpl

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