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

COVERAGE SUMMARY FOR SOURCE FILE [probespecFactoryImpl.java]

nameclass, %method, %block, %line, %
probespecFactoryImpl.java0%   (0/1)0%   (0/28)0%   (0/290)0%   (0/79)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class probespecFactoryImpl0%   (0/1)0%   (0/28)0%   (0/290)0%   (0/79)
convertProbeSetPositionToString (EDataType, Object): String 0%   (0/1)0%   (0/7)0%   (0/1)
convertToString (EDataType, Object): String 0%   (0/1)0%   (0/22)0%   (0/3)
create (EClass): EObject 0%   (0/1)0%   (0/74)0%   (0/21)
createCPUDemandCalculator (): CPUDemandCalculator 0%   (0/1)0%   (0/6)0%   (0/2)
createCPUDemandProbe (): CPUDemandProbe 0%   (0/1)0%   (0/6)0%   (0/2)
createCPUStateCalculator (): CPUStateCalculator 0%   (0/1)0%   (0/6)0%   (0/2)
createCPUStateProbe (): CPUStateProbe 0%   (0/1)0%   (0/6)0%   (0/2)
createCurrentTimeProbe (): CurrentTimeProbe 0%   (0/1)0%   (0/6)0%   (0/2)
createFromString (EDataType, String): Object 0%   (0/1)0%   (0/22)0%   (0/3)
createHDDDemandCalculator (): HDDDemandCalculator 0%   (0/1)0%   (0/6)0%   (0/2)
createHDDDemandProbe (): HDDDemandProbe 0%   (0/1)0%   (0/6)0%   (0/2)
createHDDStateCalculator (): HDDStateCalculator 0%   (0/1)0%   (0/6)0%   (0/2)
createHDDStateProbe (): HDDStateProbe 0%   (0/1)0%   (0/6)0%   (0/2)
createPassiveResourceCalculator (): PassiveResourceCalculator 0%   (0/1)0%   (0/6)0%   (0/2)
createPassiveResourceStateProbe (): PassiveResourceStateProbe 0%   (0/1)0%   (0/6)0%   (0/2)
createProbeSet (): ProbeSet 0%   (0/1)0%   (0/6)0%   (0/2)
createProbeSetPositionFromString (EDataType, String): ProbeSetPosition 0%   (0/1)0%   (0/25)0%   (0/3)
createProbeSpecRepository (): ProbeSpecRepository 0%   (0/1)0%   (0/6)0%   (0/2)
createResponseTimeCalculator (): ResponseTimeCalculator 0%   (0/1)0%   (0/6)0%   (0/2)
createSEFFParameterCalculator (): SEFFParameterCalculator 0%   (0/1)0%   (0/6)0%   (0/2)
createSEFFParameterProbe (): SEFFParameterProbe 0%   (0/1)0%   (0/6)0%   (0/2)
createStoExCalculator (): StoExCalculator 0%   (0/1)0%   (0/6)0%   (0/2)
createStoExProbe (): StoExProbe 0%   (0/1)0%   (0/6)0%   (0/2)
createWaitingTimeCalculator (): WaitingTimeCalculator 0%   (0/1)0%   (0/6)0%   (0/2)
getPackage (): probespecPackage 0%   (0/1)0%   (0/2)0%   (0/1)
getprobespecPackage (): probespecPackage 0%   (0/1)0%   (0/4)0%   (0/1)
init (): probespecFactory 0%   (0/1)0%   (0/17)0%   (0/6)
probespecFactoryImpl (): void 0%   (0/1)0%   (0/3)0%   (0/2)

1/**
2 * <copyright>
3 * </copyright>
4 *
5 * $Id$
6 */
7package de.uka.ipd.sdq.probespec.impl;
8 
9import de.uka.ipd.sdq.probespec.*;
10 
11import org.eclipse.emf.ecore.EClass;
12import org.eclipse.emf.ecore.EDataType;
13import org.eclipse.emf.ecore.EObject;
14import org.eclipse.emf.ecore.EPackage;
15 
16import org.eclipse.emf.ecore.impl.EFactoryImpl;
17 
18import org.eclipse.emf.ecore.plugin.EcorePlugin;
19 
20/**
21 * <!-- begin-user-doc -->
22 * An implementation of the model <b>Factory</b>.
23 * <!-- end-user-doc -->
24 * @generated
25 */
26public class probespecFactoryImpl extends EFactoryImpl implements probespecFactory {
27        /**
28         * Creates the default factory implementation.
29         * <!-- begin-user-doc -->
30         * <!-- end-user-doc -->
31         * @generated
32         */
33        public static probespecFactory init() {
34                try {
35                        probespecFactory theprobespecFactory = (probespecFactory)EPackage.Registry.INSTANCE.getEFactory("http://sdq.ipd.uka.de/ProbeSpec/0.1"); 
36                        if (theprobespecFactory != null) {
37                                return theprobespecFactory;
38                        }
39                }
40                catch (Exception exception) {
41                        EcorePlugin.INSTANCE.log(exception);
42                }
43                return new probespecFactoryImpl();
44        }
45 
46        /**
47         * Creates an instance of the factory.
48         * <!-- begin-user-doc -->
49         * <!-- end-user-doc -->
50         * @generated
51         */
52        public probespecFactoryImpl() {
53                super();
54        }
55 
56        /**
57         * <!-- begin-user-doc -->
58         * <!-- end-user-doc -->
59         * @generated
60         */
61        @Override
62        public EObject create(EClass eClass) {
63                switch (eClass.getClassifierID()) {
64                        case probespecPackage.PASSIVE_RESOURCE_CALCULATOR: return createPassiveResourceCalculator();
65                        case probespecPackage.PROBE_SET: return createProbeSet();
66                        case probespecPackage.PASSIVE_RESOURCE_STATE_PROBE: return createPassiveResourceStateProbe();
67                        case probespecPackage.STO_EX_PROBE: return createStoExProbe();
68                        case probespecPackage.SEFF_PARAMETER_PROBE: return createSEFFParameterProbe();
69                        case probespecPackage.CURRENT_TIME_PROBE: return createCurrentTimeProbe();
70                        case probespecPackage.STO_EX_CALCULATOR: return createStoExCalculator();
71                        case probespecPackage.SEFF_PARAMETER_CALCULATOR: return createSEFFParameterCalculator();
72                        case probespecPackage.RESPONSE_TIME_CALCULATOR: return createResponseTimeCalculator();
73                        case probespecPackage.WAITING_TIME_CALCULATOR: return createWaitingTimeCalculator();
74                        case probespecPackage.PROBE_SPEC_REPOSITORY: return createProbeSpecRepository();
75                        case probespecPackage.CPU_STATE_PROBE: return createCPUStateProbe();
76                        case probespecPackage.HDD_STATE_PROBE: return createHDDStateProbe();
77                        case probespecPackage.CPU_DEMAND_PROBE: return createCPUDemandProbe();
78                        case probespecPackage.HDD_DEMAND_PROBE: return createHDDDemandProbe();
79                        case probespecPackage.HDD_STATE_CALCULATOR: return createHDDStateCalculator();
80                        case probespecPackage.CPU_STATE_CALCULATOR: return createCPUStateCalculator();
81                        case probespecPackage.CPU_DEMAND_CALCULATOR: return createCPUDemandCalculator();
82                        case probespecPackage.HDD_DEMAND_CALCULATOR: return createHDDDemandCalculator();
83                        default:
84                                throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
85                }
86        }
87 
88        /**
89         * <!-- begin-user-doc -->
90         * <!-- end-user-doc -->
91         * @generated
92         */
93        @Override
94        public Object createFromString(EDataType eDataType, String initialValue) {
95                switch (eDataType.getClassifierID()) {
96                        case probespecPackage.PROBE_SET_POSITION:
97                                return createProbeSetPositionFromString(eDataType, initialValue);
98                        default:
99                                throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
100                }
101        }
102 
103        /**
104         * <!-- begin-user-doc -->
105         * <!-- end-user-doc -->
106         * @generated
107         */
108        @Override
109        public String convertToString(EDataType eDataType, Object instanceValue) {
110                switch (eDataType.getClassifierID()) {
111                        case probespecPackage.PROBE_SET_POSITION:
112                                return convertProbeSetPositionToString(eDataType, instanceValue);
113                        default:
114                                throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
115                }
116        }
117 
118        /**
119         * <!-- begin-user-doc -->
120         * <!-- end-user-doc -->
121         * @generated
122         */
123        public PassiveResourceCalculator createPassiveResourceCalculator() {
124                PassiveResourceCalculatorImpl passiveResourceCalculator = new PassiveResourceCalculatorImpl();
125                return passiveResourceCalculator;
126        }
127 
128        /**
129         * <!-- begin-user-doc -->
130         * <!-- end-user-doc -->
131         * @generated
132         */
133        public ProbeSet createProbeSet() {
134                ProbeSetImpl probeSet = new ProbeSetImpl();
135                return probeSet;
136        }
137 
138        /**
139         * <!-- begin-user-doc -->
140         * <!-- end-user-doc -->
141         * @generated
142         */
143        public PassiveResourceStateProbe createPassiveResourceStateProbe() {
144                PassiveResourceStateProbeImpl passiveResourceStateProbe = new PassiveResourceStateProbeImpl();
145                return passiveResourceStateProbe;
146        }
147 
148        /**
149         * <!-- begin-user-doc -->
150         * <!-- end-user-doc -->
151         * @generated
152         */
153        public StoExProbe createStoExProbe() {
154                StoExProbeImpl stoExProbe = new StoExProbeImpl();
155                return stoExProbe;
156        }
157 
158        /**
159         * <!-- begin-user-doc -->
160         * <!-- end-user-doc -->
161         * @generated
162         */
163        public SEFFParameterProbe createSEFFParameterProbe() {
164                SEFFParameterProbeImpl seffParameterProbe = new SEFFParameterProbeImpl();
165                return seffParameterProbe;
166        }
167 
168        /**
169         * <!-- begin-user-doc -->
170         * <!-- end-user-doc -->
171         * @generated
172         */
173        public CurrentTimeProbe createCurrentTimeProbe() {
174                CurrentTimeProbeImpl currentTimeProbe = new CurrentTimeProbeImpl();
175                return currentTimeProbe;
176        }
177 
178        /**
179         * <!-- begin-user-doc -->
180         * <!-- end-user-doc -->
181         * @generated
182         */
183        public StoExCalculator createStoExCalculator() {
184                StoExCalculatorImpl stoExCalculator = new StoExCalculatorImpl();
185                return stoExCalculator;
186        }
187 
188        /**
189         * <!-- begin-user-doc -->
190         * <!-- end-user-doc -->
191         * @generated
192         */
193        public SEFFParameterCalculator createSEFFParameterCalculator() {
194                SEFFParameterCalculatorImpl seffParameterCalculator = new SEFFParameterCalculatorImpl();
195                return seffParameterCalculator;
196        }
197 
198        /**
199         * <!-- begin-user-doc -->
200         * <!-- end-user-doc -->
201         * @generated
202         */
203        public ResponseTimeCalculator createResponseTimeCalculator() {
204                ResponseTimeCalculatorImpl responseTimeCalculator = new ResponseTimeCalculatorImpl();
205                return responseTimeCalculator;
206        }
207 
208        /**
209         * <!-- begin-user-doc -->
210         * <!-- end-user-doc -->
211         * @generated
212         */
213        public WaitingTimeCalculator createWaitingTimeCalculator() {
214                WaitingTimeCalculatorImpl waitingTimeCalculator = new WaitingTimeCalculatorImpl();
215                return waitingTimeCalculator;
216        }
217 
218        /**
219         * <!-- begin-user-doc -->
220         * <!-- end-user-doc -->
221         * @generated
222         */
223        public ProbeSpecRepository createProbeSpecRepository() {
224                ProbeSpecRepositoryImpl probeSpecRepository = new ProbeSpecRepositoryImpl();
225                return probeSpecRepository;
226        }
227 
228        /**
229         * <!-- begin-user-doc -->
230         * <!-- end-user-doc -->
231         * @generated
232         */
233        public CPUStateProbe createCPUStateProbe() {
234                CPUStateProbeImpl cpuStateProbe = new CPUStateProbeImpl();
235                return cpuStateProbe;
236        }
237 
238        /**
239         * <!-- begin-user-doc -->
240         * <!-- end-user-doc -->
241         * @generated
242         */
243        public HDDStateProbe createHDDStateProbe() {
244                HDDStateProbeImpl hddStateProbe = new HDDStateProbeImpl();
245                return hddStateProbe;
246        }
247 
248        /**
249         * <!-- begin-user-doc -->
250         * <!-- end-user-doc -->
251         * @generated
252         */
253        public CPUDemandProbe createCPUDemandProbe() {
254                CPUDemandProbeImpl cpuDemandProbe = new CPUDemandProbeImpl();
255                return cpuDemandProbe;
256        }
257 
258        /**
259         * <!-- begin-user-doc -->
260         * <!-- end-user-doc -->
261         * @generated
262         */
263        public HDDDemandProbe createHDDDemandProbe() {
264                HDDDemandProbeImpl hddDemandProbe = new HDDDemandProbeImpl();
265                return hddDemandProbe;
266        }
267 
268        /**
269         * <!-- begin-user-doc -->
270         * <!-- end-user-doc -->
271         * @generated
272         */
273        public HDDStateCalculator createHDDStateCalculator() {
274                HDDStateCalculatorImpl hddStateCalculator = new HDDStateCalculatorImpl();
275                return hddStateCalculator;
276        }
277 
278        /**
279         * <!-- begin-user-doc -->
280         * <!-- end-user-doc -->
281         * @generated
282         */
283        public CPUStateCalculator createCPUStateCalculator() {
284                CPUStateCalculatorImpl cpuStateCalculator = new CPUStateCalculatorImpl();
285                return cpuStateCalculator;
286        }
287 
288        /**
289         * <!-- begin-user-doc -->
290         * <!-- end-user-doc -->
291         * @generated
292         */
293        public CPUDemandCalculator createCPUDemandCalculator() {
294                CPUDemandCalculatorImpl cpuDemandCalculator = new CPUDemandCalculatorImpl();
295                return cpuDemandCalculator;
296        }
297 
298        /**
299         * <!-- begin-user-doc -->
300         * <!-- end-user-doc -->
301         * @generated
302         */
303        public HDDDemandCalculator createHDDDemandCalculator() {
304                HDDDemandCalculatorImpl hddDemandCalculator = new HDDDemandCalculatorImpl();
305                return hddDemandCalculator;
306        }
307 
308        /**
309         * <!-- begin-user-doc -->
310         * <!-- end-user-doc -->
311         * @generated
312         */
313        public ProbeSetPosition createProbeSetPositionFromString(EDataType eDataType, String initialValue) {
314                ProbeSetPosition result = ProbeSetPosition.get(initialValue);
315                if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
316                return result;
317        }
318 
319        /**
320         * <!-- begin-user-doc -->
321         * <!-- end-user-doc -->
322         * @generated
323         */
324        public String convertProbeSetPositionToString(EDataType eDataType, Object instanceValue) {
325                return instanceValue == null ? null : instanceValue.toString();
326        }
327 
328        /**
329         * <!-- begin-user-doc -->
330         * <!-- end-user-doc -->
331         * @generated
332         */
333        public probespecPackage getprobespecPackage() {
334                return (probespecPackage)getEPackage();
335        }
336 
337        /**
338         * <!-- begin-user-doc -->
339         * <!-- end-user-doc -->
340         * @deprecated
341         * @generated
342         */
343        @Deprecated
344        public static probespecPackage getPackage() {
345                return probespecPackage.eINSTANCE;
346        }
347 
348} //probespecFactoryImpl

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