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

COVERAGE SUMMARY FOR SOURCE FILE [SensitivityFactoryImpl.java]

nameclass, %method, %block, %line, %
SensitivityFactoryImpl.java0%   (0/1)0%   (0/34)0%   (0/392)0%   (0/97)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class SensitivityFactoryImpl0%   (0/1)0%   (0/34)0%   (0/392)0%   (0/97)
SensitivityFactoryImpl (): void 0%   (0/1)0%   (0/3)0%   (0/2)
convertDoubleOffsetTypeToString (EDataType, Object): String 0%   (0/1)0%   (0/7)0%   (0/1)
convertFailureDimensionToString (EDataType, Object): String 0%   (0/1)0%   (0/7)0%   (0/1)
convertToString (EDataType, Object): String 0%   (0/1)0%   (0/32)0%   (0/5)
convertVariableUsageTypeToString (EDataType, Object): String 0%   (0/1)0%   (0/7)0%   (0/1)
create (EClass): EObject 0%   (0/1)0%   (0/80)0%   (0/23)
createCombinedSensitivityParameter (): CombinedSensitivityParameter 0%   (0/1)0%   (0/6)0%   (0/2)
createCommunicationLinkReliabilityParameter (): CommunicationLinkReliabilityP... 0%   (0/1)0%   (0/6)0%   (0/2)
createComponentReliabilityParameter (): ComponentReliabilityParameter 0%   (0/1)0%   (0/6)0%   (0/2)
createDoubleOffsetSequence (): DoubleOffsetSequence 0%   (0/1)0%   (0/6)0%   (0/2)
createDoubleOffsetTypeFromString (EDataType, String): DoubleOffsetType 0%   (0/1)0%   (0/25)0%   (0/3)
createDoubleParameterRange (): DoubleParameterRange 0%   (0/1)0%   (0/6)0%   (0/2)
createDoubleParameterSequence (): DoubleParameterSequence 0%   (0/1)0%   (0/6)0%   (0/2)
createFailureDimensionFromString (EDataType, String): FailureDimension 0%   (0/1)0%   (0/25)0%   (0/3)
createFailureDimensionResultSpecification (): FailureDimensionResultSpecifica... 0%   (0/1)0%   (0/6)0%   (0/2)
createFailureTypeResultSpecification (): FailureTypeResultSpecification 0%   (0/1)0%   (0/6)0%   (0/2)
createFromString (EDataType, String): Object 0%   (0/1)0%   (0/32)0%   (0/5)
createHardwareMTTFParameter (): HardwareMTTFParameter 0%   (0/1)0%   (0/6)0%   (0/2)
createHardwareMTTRParameter (): HardwareMTTRParameter 0%   (0/1)0%   (0/6)0%   (0/2)
createInternalActionReliabilityParameter (): InternalActionReliabilityParameter 0%   (0/1)0%   (0/6)0%   (0/2)
createNetworkReliabilityParameter (): NetworkReliabilityParameter 0%   (0/1)0%   (0/6)0%   (0/2)
createProbabilisticBranchParameter (): ProbabilisticBranchParameter 0%   (0/1)0%   (0/6)0%   (0/2)
createResourceMTTFParameter (): ResourceMTTFParameter 0%   (0/1)0%   (0/6)0%   (0/2)
createResourceMTTRParameter (): ResourceMTTRParameter 0%   (0/1)0%   (0/6)0%   (0/2)
createSensitivityConfiguration (): SensitivityConfiguration 0%   (0/1)0%   (0/6)0%   (0/2)
createSoftwareFailureTypesParameter (): SoftwareFailureTypesParameter 0%   (0/1)0%   (0/6)0%   (0/2)
createSoftwareReliabilityParameter (): SoftwareReliabilityParameter 0%   (0/1)0%   (0/6)0%   (0/2)
createStringParameterSequence (): StringParameterSequence 0%   (0/1)0%   (0/6)0%   (0/2)
createUsageBranchParameter (): UsageBranchParameter 0%   (0/1)0%   (0/6)0%   (0/2)
createVariableUsageParameter (): VariableUsageParameter 0%   (0/1)0%   (0/6)0%   (0/2)
createVariableUsageTypeFromString (EDataType, String): VariableUsageType 0%   (0/1)0%   (0/25)0%   (0/3)
getPackage (): SensitivityPackage 0%   (0/1)0%   (0/2)0%   (0/1)
getSensitivityPackage (): SensitivityPackage 0%   (0/1)0%   (0/4)0%   (0/1)
init (): SensitivityFactory 0%   (0/1)0%   (0/17)0%   (0/6)

1/**
2 * <copyright>
3 * </copyright>
4 *
5 * $Id$
6 */
7package de.uka.ipd.sdq.sensitivity.impl;
8 
9import de.uka.ipd.sdq.sensitivity.*;
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 SensitivityFactoryImpl extends EFactoryImpl implements SensitivityFactory {
27        /**
28         * Creates the default factory implementation.
29         * <!-- begin-user-doc -->
30         * <!-- end-user-doc -->
31         * @generated
32         */
33        public static SensitivityFactory init() {
34                try {
35                        SensitivityFactory theSensitivityFactory = (SensitivityFactory)EPackage.Registry.INSTANCE.getEFactory("http://sdq.ipd.uka.de/Sensitivity/1.0"); 
36                        if (theSensitivityFactory != null) {
37                                return theSensitivityFactory;
38                        }
39                }
40                catch (Exception exception) {
41                        EcorePlugin.INSTANCE.log(exception);
42                }
43                return new SensitivityFactoryImpl();
44        }
45 
46        /**
47         * Creates an instance of the factory.
48         * <!-- begin-user-doc -->
49         * <!-- end-user-doc -->
50         * @generated
51         */
52        public SensitivityFactoryImpl() {
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 SensitivityPackage.SENSITIVITY_CONFIGURATION: return createSensitivityConfiguration();
65                        case SensitivityPackage.COMBINED_SENSITIVITY_PARAMETER: return createCombinedSensitivityParameter();
66                        case SensitivityPackage.COMPONENT_RELIABILITY_PARAMETER: return createComponentReliabilityParameter();
67                        case SensitivityPackage.STRING_PARAMETER_SEQUENCE: return createStringParameterSequence();
68                        case SensitivityPackage.DOUBLE_PARAMETER_RANGE: return createDoubleParameterRange();
69                        case SensitivityPackage.DOUBLE_PARAMETER_SEQUENCE: return createDoubleParameterSequence();
70                        case SensitivityPackage.INTERNAL_ACTION_RELIABILITY_PARAMETER: return createInternalActionReliabilityParameter();
71                        case SensitivityPackage.PROBABILISTIC_BRANCH_PARAMETER: return createProbabilisticBranchParameter();
72                        case SensitivityPackage.HARDWARE_MTTF_PARAMETER: return createHardwareMTTFParameter();
73                        case SensitivityPackage.HARDWARE_MTTR_PARAMETER: return createHardwareMTTRParameter();
74                        case SensitivityPackage.RESOURCE_MTTF_PARAMETER: return createResourceMTTFParameter();
75                        case SensitivityPackage.RESOURCE_MTTR_PARAMETER: return createResourceMTTRParameter();
76                        case SensitivityPackage.NETWORK_RELIABILITY_PARAMETER: return createNetworkReliabilityParameter();
77                        case SensitivityPackage.COMMUNICATION_LINK_RELIABILITY_PARAMETER: return createCommunicationLinkReliabilityParameter();
78                        case SensitivityPackage.SOFTWARE_RELIABILITY_PARAMETER: return createSoftwareReliabilityParameter();
79                        case SensitivityPackage.VARIABLE_USAGE_PARAMETER: return createVariableUsageParameter();
80                        case SensitivityPackage.USAGE_BRANCH_PARAMETER: return createUsageBranchParameter();
81                        case SensitivityPackage.DOUBLE_OFFSET_SEQUENCE: return createDoubleOffsetSequence();
82                        case SensitivityPackage.SOFTWARE_FAILURE_TYPES_PARAMETER: return createSoftwareFailureTypesParameter();
83                        case SensitivityPackage.FAILURE_TYPE_RESULT_SPECIFICATION: return createFailureTypeResultSpecification();
84                        case SensitivityPackage.FAILURE_DIMENSION_RESULT_SPECIFICATION: return createFailureDimensionResultSpecification();
85                        default:
86                                throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
87                }
88        }
89 
90        /**
91         * <!-- begin-user-doc -->
92         * <!-- end-user-doc -->
93         * @generated
94         */
95        @Override
96        public Object createFromString(EDataType eDataType, String initialValue) {
97                switch (eDataType.getClassifierID()) {
98                        case SensitivityPackage.VARIABLE_USAGE_TYPE:
99                                return createVariableUsageTypeFromString(eDataType, initialValue);
100                        case SensitivityPackage.DOUBLE_OFFSET_TYPE:
101                                return createDoubleOffsetTypeFromString(eDataType, initialValue);
102                        case SensitivityPackage.FAILURE_DIMENSION:
103                                return createFailureDimensionFromString(eDataType, initialValue);
104                        default:
105                                throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
106                }
107        }
108 
109        /**
110         * <!-- begin-user-doc -->
111         * <!-- end-user-doc -->
112         * @generated
113         */
114        @Override
115        public String convertToString(EDataType eDataType, Object instanceValue) {
116                switch (eDataType.getClassifierID()) {
117                        case SensitivityPackage.VARIABLE_USAGE_TYPE:
118                                return convertVariableUsageTypeToString(eDataType, instanceValue);
119                        case SensitivityPackage.DOUBLE_OFFSET_TYPE:
120                                return convertDoubleOffsetTypeToString(eDataType, instanceValue);
121                        case SensitivityPackage.FAILURE_DIMENSION:
122                                return convertFailureDimensionToString(eDataType, instanceValue);
123                        default:
124                                throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
125                }
126        }
127 
128        /**
129         * <!-- begin-user-doc -->
130         * <!-- end-user-doc -->
131         * @generated
132         */
133        public SensitivityConfiguration createSensitivityConfiguration() {
134                SensitivityConfigurationImpl sensitivityConfiguration = new SensitivityConfigurationImpl();
135                return sensitivityConfiguration;
136        }
137 
138        /**
139         * <!-- begin-user-doc -->
140         * <!-- end-user-doc -->
141         * @generated
142         */
143        public CombinedSensitivityParameter createCombinedSensitivityParameter() {
144                CombinedSensitivityParameterImpl combinedSensitivityParameter = new CombinedSensitivityParameterImpl();
145                return combinedSensitivityParameter;
146        }
147 
148        /**
149         * <!-- begin-user-doc -->
150         * <!-- end-user-doc -->
151         * @generated
152         */
153        public ComponentReliabilityParameter createComponentReliabilityParameter() {
154                ComponentReliabilityParameterImpl componentReliabilityParameter = new ComponentReliabilityParameterImpl();
155                return componentReliabilityParameter;
156        }
157 
158        /**
159         * <!-- begin-user-doc -->
160         * <!-- end-user-doc -->
161         * @generated
162         */
163        public StringParameterSequence createStringParameterSequence() {
164                StringParameterSequenceImpl stringParameterSequence = new StringParameterSequenceImpl();
165                return stringParameterSequence;
166        }
167 
168        /**
169         * <!-- begin-user-doc -->
170         * <!-- end-user-doc -->
171         * @generated
172         */
173        public DoubleParameterRange createDoubleParameterRange() {
174                DoubleParameterRangeImpl doubleParameterRange = new DoubleParameterRangeImpl();
175                return doubleParameterRange;
176        }
177 
178        /**
179         * <!-- begin-user-doc -->
180         * <!-- end-user-doc -->
181         * @generated
182         */
183        public DoubleParameterSequence createDoubleParameterSequence() {
184                DoubleParameterSequenceImpl doubleParameterSequence = new DoubleParameterSequenceImpl();
185                return doubleParameterSequence;
186        }
187 
188        /**
189         * <!-- begin-user-doc -->
190         * <!-- end-user-doc -->
191         * @generated
192         */
193        public InternalActionReliabilityParameter createInternalActionReliabilityParameter() {
194                InternalActionReliabilityParameterImpl internalActionReliabilityParameter = new InternalActionReliabilityParameterImpl();
195                return internalActionReliabilityParameter;
196        }
197 
198        /**
199         * <!-- begin-user-doc -->
200         * <!-- end-user-doc -->
201         * @generated
202         */
203        public ProbabilisticBranchParameter createProbabilisticBranchParameter() {
204                ProbabilisticBranchParameterImpl probabilisticBranchParameter = new ProbabilisticBranchParameterImpl();
205                return probabilisticBranchParameter;
206        }
207 
208        /**
209         * <!-- begin-user-doc -->
210         * <!-- end-user-doc -->
211         * @generated
212         */
213        public HardwareMTTFParameter createHardwareMTTFParameter() {
214                HardwareMTTFParameterImpl hardwareMTTFParameter = new HardwareMTTFParameterImpl();
215                return hardwareMTTFParameter;
216        }
217 
218        /**
219         * <!-- begin-user-doc -->
220         * <!-- end-user-doc -->
221         * @generated
222         */
223        public HardwareMTTRParameter createHardwareMTTRParameter() {
224                HardwareMTTRParameterImpl hardwareMTTRParameter = new HardwareMTTRParameterImpl();
225                return hardwareMTTRParameter;
226        }
227 
228        /**
229         * <!-- begin-user-doc -->
230         * <!-- end-user-doc -->
231         * @generated
232         */
233        public ResourceMTTFParameter createResourceMTTFParameter() {
234                ResourceMTTFParameterImpl resourceMTTFParameter = new ResourceMTTFParameterImpl();
235                return resourceMTTFParameter;
236        }
237 
238        /**
239         * <!-- begin-user-doc -->
240         * <!-- end-user-doc -->
241         * @generated
242         */
243        public ResourceMTTRParameter createResourceMTTRParameter() {
244                ResourceMTTRParameterImpl resourceMTTRParameter = new ResourceMTTRParameterImpl();
245                return resourceMTTRParameter;
246        }
247 
248        /**
249         * <!-- begin-user-doc -->
250         * <!-- end-user-doc -->
251         * @generated
252         */
253        public NetworkReliabilityParameter createNetworkReliabilityParameter() {
254                NetworkReliabilityParameterImpl networkReliabilityParameter = new NetworkReliabilityParameterImpl();
255                return networkReliabilityParameter;
256        }
257 
258        /**
259         * <!-- begin-user-doc -->
260         * <!-- end-user-doc -->
261         * @generated
262         */
263        public CommunicationLinkReliabilityParameter createCommunicationLinkReliabilityParameter() {
264                CommunicationLinkReliabilityParameterImpl communicationLinkReliabilityParameter = new CommunicationLinkReliabilityParameterImpl();
265                return communicationLinkReliabilityParameter;
266        }
267 
268        /**
269         * <!-- begin-user-doc -->
270         * <!-- end-user-doc -->
271         * @generated
272         */
273        public SoftwareReliabilityParameter createSoftwareReliabilityParameter() {
274                SoftwareReliabilityParameterImpl softwareReliabilityParameter = new SoftwareReliabilityParameterImpl();
275                return softwareReliabilityParameter;
276        }
277 
278        /**
279         * <!-- begin-user-doc -->
280         * <!-- end-user-doc -->
281         * @generated
282         */
283        public VariableUsageParameter createVariableUsageParameter() {
284                VariableUsageParameterImpl variableUsageParameter = new VariableUsageParameterImpl();
285                return variableUsageParameter;
286        }
287 
288        /**
289         * <!-- begin-user-doc -->
290         * <!-- end-user-doc -->
291         * @generated
292         */
293        public UsageBranchParameter createUsageBranchParameter() {
294                UsageBranchParameterImpl usageBranchParameter = new UsageBranchParameterImpl();
295                return usageBranchParameter;
296        }
297 
298        /**
299         * <!-- begin-user-doc -->
300         * <!-- end-user-doc -->
301         * @generated
302         */
303        public DoubleOffsetSequence createDoubleOffsetSequence() {
304                DoubleOffsetSequenceImpl doubleOffsetSequence = new DoubleOffsetSequenceImpl();
305                return doubleOffsetSequence;
306        }
307 
308        /**
309         * <!-- begin-user-doc -->
310         * <!-- end-user-doc -->
311         * @generated
312         */
313        public SoftwareFailureTypesParameter createSoftwareFailureTypesParameter() {
314                SoftwareFailureTypesParameterImpl softwareFailureTypesParameter = new SoftwareFailureTypesParameterImpl();
315                return softwareFailureTypesParameter;
316        }
317 
318        /**
319         * <!-- begin-user-doc -->
320         * <!-- end-user-doc -->
321         * @generated
322         */
323        public FailureTypeResultSpecification createFailureTypeResultSpecification() {
324                FailureTypeResultSpecificationImpl failureTypeResultSpecification = new FailureTypeResultSpecificationImpl();
325                return failureTypeResultSpecification;
326        }
327 
328        /**
329         * <!-- begin-user-doc -->
330         * <!-- end-user-doc -->
331         * @generated
332         */
333        public FailureDimensionResultSpecification createFailureDimensionResultSpecification() {
334                FailureDimensionResultSpecificationImpl failureDimensionResultSpecification = new FailureDimensionResultSpecificationImpl();
335                return failureDimensionResultSpecification;
336        }
337 
338        /**
339         * <!-- begin-user-doc -->
340         * <!-- end-user-doc -->
341         * @generated
342         */
343        public VariableUsageType createVariableUsageTypeFromString(EDataType eDataType, String initialValue) {
344                VariableUsageType result = VariableUsageType.get(initialValue);
345                if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
346                return result;
347        }
348 
349        /**
350         * <!-- begin-user-doc -->
351         * <!-- end-user-doc -->
352         * @generated
353         */
354        public String convertVariableUsageTypeToString(EDataType eDataType, Object instanceValue) {
355                return instanceValue == null ? null : instanceValue.toString();
356        }
357 
358        /**
359         * <!-- begin-user-doc -->
360         * <!-- end-user-doc -->
361         * @generated
362         */
363        public DoubleOffsetType createDoubleOffsetTypeFromString(EDataType eDataType, String initialValue) {
364                DoubleOffsetType result = DoubleOffsetType.get(initialValue);
365                if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
366                return result;
367        }
368 
369        /**
370         * <!-- begin-user-doc -->
371         * <!-- end-user-doc -->
372         * @generated
373         */
374        public String convertDoubleOffsetTypeToString(EDataType eDataType, Object instanceValue) {
375                return instanceValue == null ? null : instanceValue.toString();
376        }
377 
378        /**
379         * <!-- begin-user-doc -->
380         * <!-- end-user-doc -->
381         * @generated
382         */
383        public FailureDimension createFailureDimensionFromString(EDataType eDataType, String initialValue) {
384                FailureDimension result = FailureDimension.get(initialValue);
385                if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
386                return result;
387        }
388 
389        /**
390         * <!-- begin-user-doc -->
391         * <!-- end-user-doc -->
392         * @generated
393         */
394        public String convertFailureDimensionToString(EDataType eDataType, Object instanceValue) {
395                return instanceValue == null ? null : instanceValue.toString();
396        }
397 
398        /**
399         * <!-- begin-user-doc -->
400         * <!-- end-user-doc -->
401         * @generated
402         */
403        public SensitivityPackage getSensitivityPackage() {
404                return (SensitivityPackage)getEPackage();
405        }
406 
407        /**
408         * <!-- begin-user-doc -->
409         * <!-- end-user-doc -->
410         * @deprecated
411         * @generated
412         */
413        @Deprecated
414        public static SensitivityPackage getPackage() {
415                return SensitivityPackage.eINSTANCE;
416        }
417 
418} //SensitivityFactoryImpl

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