| 1 | /** |
| 2 | * Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany |
| 3 | * |
| 4 | * $Id$ |
| 5 | */ |
| 6 | package de.uka.ipd.sdq.pcm.seff.seff_performance.impl; |
| 7 | |
| 8 | import de.uka.ipd.sdq.pcm.seff.seff_performance.*; |
| 9 | import org.eclipse.emf.ecore.EClass; |
| 10 | import org.eclipse.emf.ecore.EObject; |
| 11 | import org.eclipse.emf.ecore.EPackage; |
| 12 | import org.eclipse.emf.ecore.impl.EFactoryImpl; |
| 13 | import org.eclipse.emf.ecore.plugin.EcorePlugin; |
| 14 | |
| 15 | import de.uka.ipd.sdq.pcm.seff.seff_performance.InfrastructureCall; |
| 16 | import de.uka.ipd.sdq.pcm.seff.seff_performance.ParametricResourceDemand; |
| 17 | import de.uka.ipd.sdq.pcm.seff.seff_performance.ResourceCall; |
| 18 | import de.uka.ipd.sdq.pcm.seff.seff_performance.Seff_performanceFactory; |
| 19 | import de.uka.ipd.sdq.pcm.seff.seff_performance.Seff_performancePackage; |
| 20 | |
| 21 | /** |
| 22 | * <!-- begin-user-doc --> |
| 23 | * An implementation of the model <b>Factory</b>. |
| 24 | * <!-- end-user-doc --> |
| 25 | * @generated |
| 26 | */ |
| 27 | public class Seff_performanceFactoryImpl extends EFactoryImpl implements Seff_performanceFactory { |
| 28 | /** |
| 29 | * <!-- begin-user-doc --> |
| 30 | * <!-- end-user-doc --> |
| 31 | * @generated |
| 32 | */ |
| 33 | public static final String copyright = "Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany"; |
| 34 | |
| 35 | /** |
| 36 | * Creates the default factory implementation. |
| 37 | * <!-- begin-user-doc --> |
| 38 | * <!-- end-user-doc --> |
| 39 | * @generated |
| 40 | */ |
| 41 | public static Seff_performanceFactory init() { |
| 42 | try { |
| 43 | Seff_performanceFactory theSeff_performanceFactory = (Seff_performanceFactory)EPackage.Registry.INSTANCE.getEFactory("http://sdq.ipd.uka.de/PalladioComponentModel/SEFF/SEFF_Performance/1.0"); |
| 44 | if (theSeff_performanceFactory != null) { |
| 45 | return theSeff_performanceFactory; |
| 46 | } |
| 47 | } |
| 48 | catch (Exception exception) { |
| 49 | EcorePlugin.INSTANCE.log(exception); |
| 50 | } |
| 51 | return new Seff_performanceFactoryImpl(); |
| 52 | } |
| 53 | |
| 54 | /** |
| 55 | * Creates an instance of the factory. |
| 56 | * <!-- begin-user-doc --> |
| 57 | * <!-- end-user-doc --> |
| 58 | * @generated |
| 59 | */ |
| 60 | public Seff_performanceFactoryImpl() { |
| 61 | super(); |
| 62 | } |
| 63 | |
| 64 | /** |
| 65 | * <!-- begin-user-doc --> |
| 66 | * <!-- end-user-doc --> |
| 67 | * @generated |
| 68 | */ |
| 69 | @Override |
| 70 | public EObject create(EClass eClass) { |
| 71 | switch (eClass.getClassifierID()) { |
| 72 | case Seff_performancePackage.INFRASTRUCTURE_CALL: return createInfrastructureCall(); |
| 73 | case Seff_performancePackage.RESOURCE_CALL: return createResourceCall(); |
| 74 | case Seff_performancePackage.PARAMETRIC_RESOURCE_DEMAND: return createParametricResourceDemand(); |
| 75 | default: |
| 76 | throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | /** |
| 81 | * <!-- begin-user-doc --> |
| 82 | * <!-- end-user-doc --> |
| 83 | * @generated |
| 84 | */ |
| 85 | public InfrastructureCall createInfrastructureCall() { |
| 86 | InfrastructureCallImpl infrastructureCall = new InfrastructureCallImpl(); |
| 87 | return infrastructureCall; |
| 88 | } |
| 89 | |
| 90 | /** |
| 91 | * <!-- begin-user-doc --> |
| 92 | * <!-- end-user-doc --> |
| 93 | * @generated |
| 94 | */ |
| 95 | public ResourceCall createResourceCall() { |
| 96 | ResourceCallImpl resourceCall = new ResourceCallImpl(); |
| 97 | return resourceCall; |
| 98 | } |
| 99 | |
| 100 | /** |
| 101 | * <!-- begin-user-doc --> |
| 102 | * <!-- end-user-doc --> |
| 103 | * @generated |
| 104 | */ |
| 105 | public ParametricResourceDemand createParametricResourceDemand() { |
| 106 | ParametricResourceDemandImpl parametricResourceDemand = new ParametricResourceDemandImpl(); |
| 107 | return parametricResourceDemand; |
| 108 | } |
| 109 | |
| 110 | /** |
| 111 | * <!-- begin-user-doc --> |
| 112 | * <!-- end-user-doc --> |
| 113 | * @generated |
| 114 | */ |
| 115 | public Seff_performancePackage getSeff_performancePackage() { |
| 116 | return (Seff_performancePackage)getEPackage(); |
| 117 | } |
| 118 | |
| 119 | /** |
| 120 | * <!-- begin-user-doc --> |
| 121 | * <!-- end-user-doc --> |
| 122 | * @deprecated |
| 123 | * @generated |
| 124 | */ |
| 125 | @Deprecated |
| 126 | public static Seff_performancePackage getPackage() { |
| 127 | return Seff_performancePackage.eINSTANCE; |
| 128 | } |
| 129 | |
| 130 | } //Seff_performanceFactoryImpl |