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

COVERAGE SUMMARY FOR SOURCE FILE [LognormalDistributionImpl.java]

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

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class LognormalDistributionImpl0%   (0/1)0%   (0/11)0%   (0/169)0%   (0/47)
LognormalDistributionImpl (): 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)
getMu (): double 0%   (0/1)0%   (0/3)0%   (0/1)
getSigma (): double 0%   (0/1)0%   (0/3)0%   (0/1)
setMu (double): void 0%   (0/1)0%   (0/21)0%   (0/5)
setSigma (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 2007-2009, SDQ, IPD, U Karlsruhe
3 *
4 * $Id$
5 */
6package de.uka.ipd.sdq.probfunction.impl;
7 
8import de.uka.ipd.sdq.probfunction.LognormalDistribution;
9import de.uka.ipd.sdq.probfunction.ProbfunctionPackage;
10 
11import org.eclipse.emf.common.notify.Notification;
12 
13import org.eclipse.emf.ecore.EClass;
14 
15import org.eclipse.emf.ecore.impl.ENotificationImpl;
16 
17/**
18 * <!-- begin-user-doc -->
19 * An implementation of the model object '<em><b>Lognormal Distribution</b></em>'.
20 * <!-- end-user-doc -->
21 * <p>
22 * The following features are implemented:
23 * <ul>
24 *   <li>{@link de.uka.ipd.sdq.probfunction.impl.LognormalDistributionImpl#getMu <em>Mu</em>}</li>
25 *   <li>{@link de.uka.ipd.sdq.probfunction.impl.LognormalDistributionImpl#getSigma <em>Sigma</em>}</li>
26 * </ul>
27 * </p>
28 *
29 * @generated
30 */
31public class LognormalDistributionImpl extends ContinuousPDFImpl implements LognormalDistribution {
32        /**
33         * <!-- begin-user-doc -->
34         * <!-- end-user-doc -->
35         * @generated
36         */
37        public static final String copyright = "Copyright 2007-2009, SDQ, IPD, U Karlsruhe";
38 
39        /**
40         * The default value of the '{@link #getMu() <em>Mu</em>}' attribute.
41         * <!-- begin-user-doc -->
42         * <!-- end-user-doc -->
43         * @see #getMu()
44         * @generated
45         * @ordered
46         */
47        protected static final double MU_EDEFAULT = 0.0;
48 
49        /**
50         * The cached value of the '{@link #getMu() <em>Mu</em>}' attribute.
51         * <!-- begin-user-doc -->
52         * <!-- end-user-doc -->
53         * @see #getMu()
54         * @generated
55         * @ordered
56         */
57        protected double mu = MU_EDEFAULT;
58 
59        /**
60         * The default value of the '{@link #getSigma() <em>Sigma</em>}' attribute.
61         * <!-- begin-user-doc -->
62         * <!-- end-user-doc -->
63         * @see #getSigma()
64         * @generated
65         * @ordered
66         */
67        protected static final double SIGMA_EDEFAULT = 0.0;
68 
69        /**
70         * The cached value of the '{@link #getSigma() <em>Sigma</em>}' attribute.
71         * <!-- begin-user-doc -->
72         * <!-- end-user-doc -->
73         * @see #getSigma()
74         * @generated
75         * @ordered
76         */
77        protected double sigma = SIGMA_EDEFAULT;
78 
79        /**
80         * <!-- begin-user-doc -->
81         * <!-- end-user-doc -->
82         * @generated
83         */
84        protected LognormalDistributionImpl() {
85                super();
86        }
87 
88        /**
89         * <!-- begin-user-doc -->
90         * <!-- end-user-doc -->
91         * @generated
92         */
93        @Override
94        protected EClass eStaticClass() {
95                return ProbfunctionPackage.Literals.LOGNORMAL_DISTRIBUTION;
96        }
97 
98        /**
99         * <!-- begin-user-doc -->
100         * <!-- end-user-doc -->
101         * @generated
102         */
103        public double getMu() {
104                return mu;
105        }
106 
107        /**
108         * <!-- begin-user-doc -->
109         * <!-- end-user-doc -->
110         * @generated
111         */
112        public void setMu(double newMu) {
113                double oldMu = mu;
114                mu = newMu;
115                if (eNotificationRequired())
116                        eNotify(new ENotificationImpl(this, Notification.SET, ProbfunctionPackage.LOGNORMAL_DISTRIBUTION__MU, oldMu, mu));
117        }
118 
119        /**
120         * <!-- begin-user-doc -->
121         * <!-- end-user-doc -->
122         * @generated
123         */
124        public double getSigma() {
125                return sigma;
126        }
127 
128        /**
129         * <!-- begin-user-doc -->
130         * <!-- end-user-doc -->
131         * @generated
132         */
133        public void setSigma(double newSigma) {
134                double oldSigma = sigma;
135                sigma = newSigma;
136                if (eNotificationRequired())
137                        eNotify(new ENotificationImpl(this, Notification.SET, ProbfunctionPackage.LOGNORMAL_DISTRIBUTION__SIGMA, oldSigma, sigma));
138        }
139 
140        /**
141         * <!-- begin-user-doc -->
142         * <!-- end-user-doc -->
143         * @generated
144         */
145        @Override
146        public Object eGet(int featureID, boolean resolve, boolean coreType) {
147                switch (featureID) {
148                        case ProbfunctionPackage.LOGNORMAL_DISTRIBUTION__MU:
149                                return getMu();
150                        case ProbfunctionPackage.LOGNORMAL_DISTRIBUTION__SIGMA:
151                                return getSigma();
152                }
153                return super.eGet(featureID, resolve, coreType);
154        }
155 
156        /**
157         * <!-- begin-user-doc -->
158         * <!-- end-user-doc -->
159         * @generated
160         */
161        @Override
162        public void eSet(int featureID, Object newValue) {
163                switch (featureID) {
164                        case ProbfunctionPackage.LOGNORMAL_DISTRIBUTION__MU:
165                                setMu((Double)newValue);
166                                return;
167                        case ProbfunctionPackage.LOGNORMAL_DISTRIBUTION__SIGMA:
168                                setSigma((Double)newValue);
169                                return;
170                }
171                super.eSet(featureID, newValue);
172        }
173 
174        /**
175         * <!-- begin-user-doc -->
176         * <!-- end-user-doc -->
177         * @generated
178         */
179        @Override
180        public void eUnset(int featureID) {
181                switch (featureID) {
182                        case ProbfunctionPackage.LOGNORMAL_DISTRIBUTION__MU:
183                                setMu(MU_EDEFAULT);
184                                return;
185                        case ProbfunctionPackage.LOGNORMAL_DISTRIBUTION__SIGMA:
186                                setSigma(SIGMA_EDEFAULT);
187                                return;
188                }
189                super.eUnset(featureID);
190        }
191 
192        /**
193         * <!-- begin-user-doc -->
194         * <!-- end-user-doc -->
195         * @generated
196         */
197        @Override
198        public boolean eIsSet(int featureID) {
199                switch (featureID) {
200                        case ProbfunctionPackage.LOGNORMAL_DISTRIBUTION__MU:
201                                return mu != MU_EDEFAULT;
202                        case ProbfunctionPackage.LOGNORMAL_DISTRIBUTION__SIGMA:
203                                return sigma != SIGMA_EDEFAULT;
204                }
205                return super.eIsSet(featureID);
206        }
207 
208        /**
209         * <!-- begin-user-doc -->
210         * <!-- end-user-doc -->
211         * @generated
212         */
213        @Override
214        public String toString() {
215                if (eIsProxy()) return super.toString();
216 
217                StringBuffer result = new StringBuffer(super.toString());
218                result.append(" (mu: ");
219                result.append(mu);
220                result.append(", sigma: ");
221                result.append(sigma);
222                result.append(')');
223                return result.toString();
224        }
225 
226} //LognormalDistributionImpl

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