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

nameclass, %method, %block, %line, %
ActiveResourceUtilisationResultImpl.java0%   (0/1)0%   (0/11)0%   (0/169)0%   (0/47)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ActiveResourceUtilisationResultImpl0%   (0/1)0%   (0/11)0%   (0/169)0%   (0/47)
ActiveResourceUtilisationResultImpl (): void 0%   (0/1)0%   (0/9)0%   (0/4)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/16)0%   (0/4)
eIsSet (int): boolean 0%   (0/1)0%   (0/24)0%   (0/4)
eSet (int, Object): void 0%   (0/1)0%   (0/19)0%   (0/7)
eStaticClass (): EClass 0%   (0/1)0%   (0/2)0%   (0/1)
eUnset (int): void 0%   (0/1)0%   (0/14)0%   (0/7)
getDemandedTime (): double 0%   (0/1)0%   (0/3)0%   (0/1)
getNormalisedDemandedTime (): double 0%   (0/1)0%   (0/3)0%   (0/1)
setDemandedTime (double): void 0%   (0/1)0%   (0/21)0%   (0/5)
setNormalisedDemandedTime (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.resourceenvironmentdecorator.impl;
8 
9import de.uka.ipd.sdq.pcm.resultdecorator.resourceenvironmentdecorator.ActiveResourceUtilisationResult;
10import de.uka.ipd.sdq.pcm.resultdecorator.resourceenvironmentdecorator.ResourceenvironmentdecoratorPackage;
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>Active Resource Utilisation Result</b></em>'.
21 * <!-- end-user-doc -->
22 * <p>
23 * The following features are implemented:
24 * <ul>
25 *   <li>{@link de.uka.ipd.sdq.pcm.resultdecorator.resourceenvironmentdecorator.impl.ActiveResourceUtilisationResultImpl#getNormalisedDemandedTime <em>Normalised Demanded Time</em>}</li>
26 *   <li>{@link de.uka.ipd.sdq.pcm.resultdecorator.resourceenvironmentdecorator.impl.ActiveResourceUtilisationResultImpl#getDemandedTime <em>Demanded Time</em>}</li>
27 * </ul>
28 * </p>
29 *
30 * @generated
31 */
32public abstract class ActiveResourceUtilisationResultImpl extends UtilisationResultImpl implements ActiveResourceUtilisationResult {
33        /**
34         * The default value of the '{@link #getNormalisedDemandedTime() <em>Normalised Demanded Time</em>}' attribute.
35         * <!-- begin-user-doc -->
36         * <!-- end-user-doc -->
37         * @see #getNormalisedDemandedTime()
38         * @generated
39         * @ordered
40         */
41        protected static final double NORMALISED_DEMANDED_TIME_EDEFAULT = 0.0;
42 
43        /**
44         * The cached value of the '{@link #getNormalisedDemandedTime() <em>Normalised Demanded Time</em>}' attribute.
45         * <!-- begin-user-doc -->
46         * <!-- end-user-doc -->
47         * @see #getNormalisedDemandedTime()
48         * @generated
49         * @ordered
50         */
51        protected double normalisedDemandedTime = NORMALISED_DEMANDED_TIME_EDEFAULT;
52 
53        /**
54         * The default value of the '{@link #getDemandedTime() <em>Demanded Time</em>}' attribute.
55         * <!-- begin-user-doc -->
56         * <!-- end-user-doc -->
57         * @see #getDemandedTime()
58         * @generated
59         * @ordered
60         */
61        protected static final double DEMANDED_TIME_EDEFAULT = 0.0;
62 
63        /**
64         * The cached value of the '{@link #getDemandedTime() <em>Demanded Time</em>}' attribute.
65         * <!-- begin-user-doc -->
66         * <!-- end-user-doc -->
67         * @see #getDemandedTime()
68         * @generated
69         * @ordered
70         */
71        protected double demandedTime = DEMANDED_TIME_EDEFAULT;
72 
73        /**
74         * <!-- begin-user-doc -->
75         * <!-- end-user-doc -->
76         * @generated
77         */
78        protected ActiveResourceUtilisationResultImpl() {
79                super();
80        }
81 
82        /**
83         * <!-- begin-user-doc -->
84         * <!-- end-user-doc -->
85         * @generated
86         */
87        @Override
88        protected EClass eStaticClass() {
89                return ResourceenvironmentdecoratorPackage.Literals.ACTIVE_RESOURCE_UTILISATION_RESULT;
90        }
91 
92        /**
93         * <!-- begin-user-doc -->
94         * <!-- end-user-doc -->
95         * @generated
96         */
97        public double getNormalisedDemandedTime() {
98                return normalisedDemandedTime;
99        }
100 
101        /**
102         * <!-- begin-user-doc -->
103         * <!-- end-user-doc -->
104         * @generated
105         */
106        public void setNormalisedDemandedTime(double newNormalisedDemandedTime) {
107                double oldNormalisedDemandedTime = normalisedDemandedTime;
108                normalisedDemandedTime = newNormalisedDemandedTime;
109                if (eNotificationRequired())
110                        eNotify(new ENotificationImpl(this, Notification.SET, ResourceenvironmentdecoratorPackage.ACTIVE_RESOURCE_UTILISATION_RESULT__NORMALISED_DEMANDED_TIME, oldNormalisedDemandedTime, normalisedDemandedTime));
111        }
112 
113        /**
114         * <!-- begin-user-doc -->
115         * <!-- end-user-doc -->
116         * @generated
117         */
118        public double getDemandedTime() {
119                return demandedTime;
120        }
121 
122        /**
123         * <!-- begin-user-doc -->
124         * <!-- end-user-doc -->
125         * @generated
126         */
127        public void setDemandedTime(double newDemandedTime) {
128                double oldDemandedTime = demandedTime;
129                demandedTime = newDemandedTime;
130                if (eNotificationRequired())
131                        eNotify(new ENotificationImpl(this, Notification.SET, ResourceenvironmentdecoratorPackage.ACTIVE_RESOURCE_UTILISATION_RESULT__DEMANDED_TIME, oldDemandedTime, demandedTime));
132        }
133 
134        /**
135         * <!-- begin-user-doc -->
136         * <!-- end-user-doc -->
137         * @generated
138         */
139        @Override
140        public Object eGet(int featureID, boolean resolve, boolean coreType) {
141                switch (featureID) {
142                        case ResourceenvironmentdecoratorPackage.ACTIVE_RESOURCE_UTILISATION_RESULT__NORMALISED_DEMANDED_TIME:
143                                return getNormalisedDemandedTime();
144                        case ResourceenvironmentdecoratorPackage.ACTIVE_RESOURCE_UTILISATION_RESULT__DEMANDED_TIME:
145                                return getDemandedTime();
146                }
147                return super.eGet(featureID, resolve, coreType);
148        }
149 
150        /**
151         * <!-- begin-user-doc -->
152         * <!-- end-user-doc -->
153         * @generated
154         */
155        @Override
156        public void eSet(int featureID, Object newValue) {
157                switch (featureID) {
158                        case ResourceenvironmentdecoratorPackage.ACTIVE_RESOURCE_UTILISATION_RESULT__NORMALISED_DEMANDED_TIME:
159                                setNormalisedDemandedTime((Double)newValue);
160                                return;
161                        case ResourceenvironmentdecoratorPackage.ACTIVE_RESOURCE_UTILISATION_RESULT__DEMANDED_TIME:
162                                setDemandedTime((Double)newValue);
163                                return;
164                }
165                super.eSet(featureID, newValue);
166        }
167 
168        /**
169         * <!-- begin-user-doc -->
170         * <!-- end-user-doc -->
171         * @generated
172         */
173        @Override
174        public void eUnset(int featureID) {
175                switch (featureID) {
176                        case ResourceenvironmentdecoratorPackage.ACTIVE_RESOURCE_UTILISATION_RESULT__NORMALISED_DEMANDED_TIME:
177                                setNormalisedDemandedTime(NORMALISED_DEMANDED_TIME_EDEFAULT);
178                                return;
179                        case ResourceenvironmentdecoratorPackage.ACTIVE_RESOURCE_UTILISATION_RESULT__DEMANDED_TIME:
180                                setDemandedTime(DEMANDED_TIME_EDEFAULT);
181                                return;
182                }
183                super.eUnset(featureID);
184        }
185 
186        /**
187         * <!-- begin-user-doc -->
188         * <!-- end-user-doc -->
189         * @generated
190         */
191        @Override
192        public boolean eIsSet(int featureID) {
193                switch (featureID) {
194                        case ResourceenvironmentdecoratorPackage.ACTIVE_RESOURCE_UTILISATION_RESULT__NORMALISED_DEMANDED_TIME:
195                                return normalisedDemandedTime != NORMALISED_DEMANDED_TIME_EDEFAULT;
196                        case ResourceenvironmentdecoratorPackage.ACTIVE_RESOURCE_UTILISATION_RESULT__DEMANDED_TIME:
197                                return demandedTime != DEMANDED_TIME_EDEFAULT;
198                }
199                return super.eIsSet(featureID);
200        }
201 
202        /**
203         * <!-- begin-user-doc -->
204         * <!-- end-user-doc -->
205         * @generated
206         */
207        @Override
208        public String toString() {
209                if (eIsProxy()) return super.toString();
210 
211                StringBuffer result = new StringBuffer(super.toString());
212                result.append(" (normalisedDemandedTime: ");
213                result.append(normalisedDemandedTime);
214                result.append(", demandedTime: ");
215                result.append(demandedTime);
216                result.append(')');
217                return result.toString();
218        }
219 
220} //ActiveResourceUtilisationResultImpl

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