| 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 org.eclipse.emf.ecore.EClass; |
| 9 | import org.eclipse.emf.ecore.EGenericType; |
| 10 | import org.eclipse.emf.ecore.EOperation; |
| 11 | import org.eclipse.emf.ecore.EPackage; |
| 12 | import org.eclipse.emf.ecore.EReference; |
| 13 | import org.eclipse.emf.ecore.EValidator; |
| 14 | import org.eclipse.emf.ecore.impl.EPackageImpl; |
| 15 | |
| 16 | import de.uka.ipd.sdq.identifier.IdentifierPackage; |
| 17 | import de.uka.ipd.sdq.pcm.PcmPackage; |
| 18 | import de.uka.ipd.sdq.pcm.allocation.AllocationPackage; |
| 19 | import de.uka.ipd.sdq.pcm.allocation.impl.AllocationPackageImpl; |
| 20 | import de.uka.ipd.sdq.pcm.core.CorePackage; |
| 21 | import de.uka.ipd.sdq.pcm.core.composition.CompositionPackage; |
| 22 | import de.uka.ipd.sdq.pcm.core.composition.impl.CompositionPackageImpl; |
| 23 | import de.uka.ipd.sdq.pcm.core.entity.EntityPackage; |
| 24 | import de.uka.ipd.sdq.pcm.core.entity.impl.EntityPackageImpl; |
| 25 | import de.uka.ipd.sdq.pcm.core.impl.CorePackageImpl; |
| 26 | import de.uka.ipd.sdq.pcm.impl.PcmPackageImpl; |
| 27 | import de.uka.ipd.sdq.pcm.parameter.ParameterPackage; |
| 28 | import de.uka.ipd.sdq.pcm.parameter.impl.ParameterPackageImpl; |
| 29 | import de.uka.ipd.sdq.pcm.protocol.ProtocolPackage; |
| 30 | import de.uka.ipd.sdq.pcm.protocol.impl.ProtocolPackageImpl; |
| 31 | import de.uka.ipd.sdq.pcm.qosannotations.QosannotationsPackage; |
| 32 | import de.uka.ipd.sdq.pcm.qosannotations.impl.QosannotationsPackageImpl; |
| 33 | import de.uka.ipd.sdq.pcm.qosannotations.qos_performance.Qos_performancePackage; |
| 34 | import de.uka.ipd.sdq.pcm.qosannotations.qos_performance.impl.Qos_performancePackageImpl; |
| 35 | import de.uka.ipd.sdq.pcm.qosannotations.qos_reliability.Qos_reliabilityPackage; |
| 36 | import de.uka.ipd.sdq.pcm.qosannotations.qos_reliability.impl.Qos_reliabilityPackageImpl; |
| 37 | import de.uka.ipd.sdq.pcm.reliability.ReliabilityPackage; |
| 38 | import de.uka.ipd.sdq.pcm.reliability.impl.ReliabilityPackageImpl; |
| 39 | import de.uka.ipd.sdq.pcm.repository.RepositoryPackage; |
| 40 | import de.uka.ipd.sdq.pcm.repository.impl.RepositoryPackageImpl; |
| 41 | import de.uka.ipd.sdq.pcm.resourceenvironment.ResourceenvironmentPackage; |
| 42 | import de.uka.ipd.sdq.pcm.resourceenvironment.impl.ResourceenvironmentPackageImpl; |
| 43 | import de.uka.ipd.sdq.pcm.resourcetype.ResourcetypePackage; |
| 44 | import de.uka.ipd.sdq.pcm.resourcetype.impl.ResourcetypePackageImpl; |
| 45 | import de.uka.ipd.sdq.pcm.seff.SeffPackage; |
| 46 | import de.uka.ipd.sdq.pcm.seff.impl.SeffPackageImpl; |
| 47 | import de.uka.ipd.sdq.pcm.seff.seff_performance.InfrastructureCall; |
| 48 | import de.uka.ipd.sdq.pcm.seff.seff_performance.ParametricResourceDemand; |
| 49 | import de.uka.ipd.sdq.pcm.seff.seff_performance.ResourceCall; |
| 50 | import de.uka.ipd.sdq.pcm.seff.seff_performance.Seff_performanceFactory; |
| 51 | import de.uka.ipd.sdq.pcm.seff.seff_performance.Seff_performancePackage; |
| 52 | import de.uka.ipd.sdq.pcm.seff.seff_performance.util.Seff_performanceValidator; |
| 53 | import de.uka.ipd.sdq.pcm.seff.seff_reliability.Seff_reliabilityPackage; |
| 54 | import de.uka.ipd.sdq.pcm.seff.seff_reliability.impl.Seff_reliabilityPackageImpl; |
| 55 | import de.uka.ipd.sdq.pcm.subsystem.SubsystemPackage; |
| 56 | import de.uka.ipd.sdq.pcm.subsystem.impl.SubsystemPackageImpl; |
| 57 | import de.uka.ipd.sdq.pcm.system.SystemPackage; |
| 58 | import de.uka.ipd.sdq.pcm.system.impl.SystemPackageImpl; |
| 59 | import de.uka.ipd.sdq.pcm.usagemodel.UsagemodelPackage; |
| 60 | import de.uka.ipd.sdq.pcm.usagemodel.impl.UsagemodelPackageImpl; |
| 61 | import de.uka.ipd.sdq.stoex.StoexPackage; |
| 62 | |
| 63 | /** |
| 64 | * <!-- begin-user-doc --> |
| 65 | * An implementation of the model <b>Package</b>. |
| 66 | * <!-- end-user-doc --> |
| 67 | * @generated |
| 68 | */ |
| 69 | public class Seff_performancePackageImpl extends EPackageImpl implements Seff_performancePackage { |
| 70 | /** |
| 71 | * <!-- begin-user-doc --> |
| 72 | * <!-- end-user-doc --> |
| 73 | * @generated |
| 74 | */ |
| 75 | public static final String copyright = "Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany"; |
| 76 | |
| 77 | /** |
| 78 | * <!-- begin-user-doc --> |
| 79 | * <!-- end-user-doc --> |
| 80 | * @generated |
| 81 | */ |
| 82 | private EClass infrastructureCallEClass = null; |
| 83 | |
| 84 | /** |
| 85 | * <!-- begin-user-doc --> |
| 86 | * <!-- end-user-doc --> |
| 87 | * @generated |
| 88 | */ |
| 89 | private EClass resourceCallEClass = null; |
| 90 | |
| 91 | /** |
| 92 | * <!-- begin-user-doc --> |
| 93 | * <!-- end-user-doc --> |
| 94 | * @generated |
| 95 | */ |
| 96 | private EClass parametricResourceDemandEClass = null; |
| 97 | |
| 98 | /** |
| 99 | * Creates an instance of the model <b>Package</b>, registered with |
| 100 | * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package |
| 101 | * package URI value. |
| 102 | * <p>Note: the correct way to create the package is via the static |
| 103 | * factory method {@link #init init()}, which also performs |
| 104 | * initialization of the package, or returns the registered package, |
| 105 | * if one already exists. |
| 106 | * <!-- begin-user-doc --> |
| 107 | * <!-- end-user-doc --> |
| 108 | * @see org.eclipse.emf.ecore.EPackage.Registry |
| 109 | * @see de.uka.ipd.sdq.pcm.seff.seff_performance.Seff_performancePackage#eNS_URI |
| 110 | * @see #init() |
| 111 | * @generated |
| 112 | */ |
| 113 | private Seff_performancePackageImpl() { |
| 114 | super(eNS_URI, Seff_performanceFactory.eINSTANCE); |
| 115 | } |
| 116 | |
| 117 | /** |
| 118 | * <!-- begin-user-doc --> |
| 119 | * <!-- end-user-doc --> |
| 120 | * @generated |
| 121 | */ |
| 122 | private static boolean isInited = false; |
| 123 | |
| 124 | /** |
| 125 | * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. |
| 126 | * |
| 127 | * <p>This method is used to initialize {@link Seff_performancePackage#eINSTANCE} when that field is accessed. |
| 128 | * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. |
| 129 | * <!-- begin-user-doc --> |
| 130 | * <!-- end-user-doc --> |
| 131 | * @see #eNS_URI |
| 132 | * @see #createPackageContents() |
| 133 | * @see #initializePackageContents() |
| 134 | * @generated |
| 135 | */ |
| 136 | public static Seff_performancePackage init() { |
| 137 | if (isInited) return (Seff_performancePackage)EPackage.Registry.INSTANCE.getEPackage(Seff_performancePackage.eNS_URI); |
| 138 | |
| 139 | // Obtain or create and register package |
| 140 | Seff_performancePackageImpl theSeff_performancePackage = (Seff_performancePackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof Seff_performancePackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new Seff_performancePackageImpl()); |
| 141 | |
| 142 | isInited = true; |
| 143 | |
| 144 | // Initialize simple dependencies |
| 145 | IdentifierPackage.eINSTANCE.eClass(); |
| 146 | StoexPackage.eINSTANCE.eClass(); |
| 147 | |
| 148 | // Obtain or create and register interdependencies |
| 149 | PcmPackageImpl thePcmPackage = (PcmPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(PcmPackage.eNS_URI) instanceof PcmPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(PcmPackage.eNS_URI) : PcmPackage.eINSTANCE); |
| 150 | CorePackageImpl theCorePackage = (CorePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI) instanceof CorePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI) : CorePackage.eINSTANCE); |
| 151 | EntityPackageImpl theEntityPackage = (EntityPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(EntityPackage.eNS_URI) instanceof EntityPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(EntityPackage.eNS_URI) : EntityPackage.eINSTANCE); |
| 152 | CompositionPackageImpl theCompositionPackage = (CompositionPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CompositionPackage.eNS_URI) instanceof CompositionPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CompositionPackage.eNS_URI) : CompositionPackage.eINSTANCE); |
| 153 | UsagemodelPackageImpl theUsagemodelPackage = (UsagemodelPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(UsagemodelPackage.eNS_URI) instanceof UsagemodelPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(UsagemodelPackage.eNS_URI) : UsagemodelPackage.eINSTANCE); |
| 154 | RepositoryPackageImpl theRepositoryPackage = (RepositoryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RepositoryPackage.eNS_URI) instanceof RepositoryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RepositoryPackage.eNS_URI) : RepositoryPackage.eINSTANCE); |
| 155 | ResourcetypePackageImpl theResourcetypePackage = (ResourcetypePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ResourcetypePackage.eNS_URI) instanceof ResourcetypePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ResourcetypePackage.eNS_URI) : ResourcetypePackage.eINSTANCE); |
| 156 | ProtocolPackageImpl theProtocolPackage = (ProtocolPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ProtocolPackage.eNS_URI) instanceof ProtocolPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ProtocolPackage.eNS_URI) : ProtocolPackage.eINSTANCE); |
| 157 | ParameterPackageImpl theParameterPackage = (ParameterPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ParameterPackage.eNS_URI) instanceof ParameterPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ParameterPackage.eNS_URI) : ParameterPackage.eINSTANCE); |
| 158 | ReliabilityPackageImpl theReliabilityPackage = (ReliabilityPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ReliabilityPackage.eNS_URI) instanceof ReliabilityPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ReliabilityPackage.eNS_URI) : ReliabilityPackage.eINSTANCE); |
| 159 | SeffPackageImpl theSeffPackage = (SeffPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SeffPackage.eNS_URI) instanceof SeffPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SeffPackage.eNS_URI) : SeffPackage.eINSTANCE); |
| 160 | Seff_reliabilityPackageImpl theSeff_reliabilityPackage = (Seff_reliabilityPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Seff_reliabilityPackage.eNS_URI) instanceof Seff_reliabilityPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(Seff_reliabilityPackage.eNS_URI) : Seff_reliabilityPackage.eINSTANCE); |
| 161 | QosannotationsPackageImpl theQosannotationsPackage = (QosannotationsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(QosannotationsPackage.eNS_URI) instanceof QosannotationsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(QosannotationsPackage.eNS_URI) : QosannotationsPackage.eINSTANCE); |
| 162 | Qos_performancePackageImpl theQos_performancePackage = (Qos_performancePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Qos_performancePackage.eNS_URI) instanceof Qos_performancePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(Qos_performancePackage.eNS_URI) : Qos_performancePackage.eINSTANCE); |
| 163 | Qos_reliabilityPackageImpl theQos_reliabilityPackage = (Qos_reliabilityPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Qos_reliabilityPackage.eNS_URI) instanceof Qos_reliabilityPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(Qos_reliabilityPackage.eNS_URI) : Qos_reliabilityPackage.eINSTANCE); |
| 164 | SystemPackageImpl theSystemPackage = (SystemPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SystemPackage.eNS_URI) instanceof SystemPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SystemPackage.eNS_URI) : SystemPackage.eINSTANCE); |
| 165 | ResourceenvironmentPackageImpl theResourceenvironmentPackage = (ResourceenvironmentPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ResourceenvironmentPackage.eNS_URI) instanceof ResourceenvironmentPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ResourceenvironmentPackage.eNS_URI) : ResourceenvironmentPackage.eINSTANCE); |
| 166 | AllocationPackageImpl theAllocationPackage = (AllocationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(AllocationPackage.eNS_URI) instanceof AllocationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(AllocationPackage.eNS_URI) : AllocationPackage.eINSTANCE); |
| 167 | SubsystemPackageImpl theSubsystemPackage = (SubsystemPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SubsystemPackage.eNS_URI) instanceof SubsystemPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SubsystemPackage.eNS_URI) : SubsystemPackage.eINSTANCE); |
| 168 | |
| 169 | // Create package meta-data objects |
| 170 | theSeff_performancePackage.createPackageContents(); |
| 171 | thePcmPackage.createPackageContents(); |
| 172 | theCorePackage.createPackageContents(); |
| 173 | theEntityPackage.createPackageContents(); |
| 174 | theCompositionPackage.createPackageContents(); |
| 175 | theUsagemodelPackage.createPackageContents(); |
| 176 | theRepositoryPackage.createPackageContents(); |
| 177 | theResourcetypePackage.createPackageContents(); |
| 178 | theProtocolPackage.createPackageContents(); |
| 179 | theParameterPackage.createPackageContents(); |
| 180 | theReliabilityPackage.createPackageContents(); |
| 181 | theSeffPackage.createPackageContents(); |
| 182 | theSeff_reliabilityPackage.createPackageContents(); |
| 183 | theQosannotationsPackage.createPackageContents(); |
| 184 | theQos_performancePackage.createPackageContents(); |
| 185 | theQos_reliabilityPackage.createPackageContents(); |
| 186 | theSystemPackage.createPackageContents(); |
| 187 | theResourceenvironmentPackage.createPackageContents(); |
| 188 | theAllocationPackage.createPackageContents(); |
| 189 | theSubsystemPackage.createPackageContents(); |
| 190 | |
| 191 | // Initialize created meta-data |
| 192 | theSeff_performancePackage.initializePackageContents(); |
| 193 | thePcmPackage.initializePackageContents(); |
| 194 | theCorePackage.initializePackageContents(); |
| 195 | theEntityPackage.initializePackageContents(); |
| 196 | theCompositionPackage.initializePackageContents(); |
| 197 | theUsagemodelPackage.initializePackageContents(); |
| 198 | theRepositoryPackage.initializePackageContents(); |
| 199 | theResourcetypePackage.initializePackageContents(); |
| 200 | theProtocolPackage.initializePackageContents(); |
| 201 | theParameterPackage.initializePackageContents(); |
| 202 | theReliabilityPackage.initializePackageContents(); |
| 203 | theSeffPackage.initializePackageContents(); |
| 204 | theSeff_reliabilityPackage.initializePackageContents(); |
| 205 | theQosannotationsPackage.initializePackageContents(); |
| 206 | theQos_performancePackage.initializePackageContents(); |
| 207 | theQos_reliabilityPackage.initializePackageContents(); |
| 208 | theSystemPackage.initializePackageContents(); |
| 209 | theResourceenvironmentPackage.initializePackageContents(); |
| 210 | theAllocationPackage.initializePackageContents(); |
| 211 | theSubsystemPackage.initializePackageContents(); |
| 212 | |
| 213 | // Register package validator |
| 214 | EValidator.Registry.INSTANCE.put |
| 215 | (theSeff_performancePackage, |
| 216 | new EValidator.Descriptor() { |
| 217 | public EValidator getEValidator() { |
| 218 | return Seff_performanceValidator.INSTANCE; |
| 219 | } |
| 220 | }); |
| 221 | |
| 222 | // Mark meta-data to indicate it can't be changed |
| 223 | theSeff_performancePackage.freeze(); |
| 224 | |
| 225 | |
| 226 | // Update the registry and return the package |
| 227 | EPackage.Registry.INSTANCE.put(Seff_performancePackage.eNS_URI, theSeff_performancePackage); |
| 228 | return theSeff_performancePackage; |
| 229 | } |
| 230 | |
| 231 | /** |
| 232 | * <!-- begin-user-doc --> |
| 233 | * <!-- end-user-doc --> |
| 234 | * @generated |
| 235 | */ |
| 236 | public EClass getInfrastructureCall() { |
| 237 | return infrastructureCallEClass; |
| 238 | } |
| 239 | |
| 240 | /** |
| 241 | * <!-- begin-user-doc --> |
| 242 | * <!-- end-user-doc --> |
| 243 | * @generated |
| 244 | */ |
| 245 | public EReference getInfrastructureCall_Signature__InfrastructureCall() { |
| 246 | return (EReference)infrastructureCallEClass.getEStructuralFeatures().get(0); |
| 247 | } |
| 248 | |
| 249 | /** |
| 250 | * <!-- begin-user-doc --> |
| 251 | * <!-- end-user-doc --> |
| 252 | * @generated |
| 253 | */ |
| 254 | public EReference getInfrastructureCall_NumberOfCalls__InfrastructureCall() { |
| 255 | return (EReference)infrastructureCallEClass.getEStructuralFeatures().get(1); |
| 256 | } |
| 257 | |
| 258 | /** |
| 259 | * <!-- begin-user-doc --> |
| 260 | * <!-- end-user-doc --> |
| 261 | * @generated |
| 262 | */ |
| 263 | public EReference getInfrastructureCall_Action__InfrastructureCall() { |
| 264 | return (EReference)infrastructureCallEClass.getEStructuralFeatures().get(2); |
| 265 | } |
| 266 | |
| 267 | /** |
| 268 | * <!-- begin-user-doc --> |
| 269 | * <!-- end-user-doc --> |
| 270 | * @generated |
| 271 | */ |
| 272 | public EReference getInfrastructureCall_RequiredRole__InfrastructureCall() { |
| 273 | return (EReference)infrastructureCallEClass.getEStructuralFeatures().get(3); |
| 274 | } |
| 275 | |
| 276 | /** |
| 277 | * <!-- begin-user-doc --> |
| 278 | * <!-- end-user-doc --> |
| 279 | * @generated |
| 280 | */ |
| 281 | public EClass getResourceCall() { |
| 282 | return resourceCallEClass; |
| 283 | } |
| 284 | |
| 285 | /** |
| 286 | * <!-- begin-user-doc --> |
| 287 | * <!-- end-user-doc --> |
| 288 | * @generated |
| 289 | */ |
| 290 | public EReference getResourceCall_Action__ResourceCall() { |
| 291 | return (EReference)resourceCallEClass.getEStructuralFeatures().get(0); |
| 292 | } |
| 293 | |
| 294 | /** |
| 295 | * <!-- begin-user-doc --> |
| 296 | * <!-- end-user-doc --> |
| 297 | * @generated |
| 298 | */ |
| 299 | public EReference getResourceCall_ResourceRequiredRole__ResourceCall() { |
| 300 | return (EReference)resourceCallEClass.getEStructuralFeatures().get(1); |
| 301 | } |
| 302 | |
| 303 | /** |
| 304 | * <!-- begin-user-doc --> |
| 305 | * <!-- end-user-doc --> |
| 306 | * @generated |
| 307 | */ |
| 308 | public EReference getResourceCall_Signature__ResourceCall() { |
| 309 | return (EReference)resourceCallEClass.getEStructuralFeatures().get(2); |
| 310 | } |
| 311 | |
| 312 | /** |
| 313 | * <!-- begin-user-doc --> |
| 314 | * <!-- end-user-doc --> |
| 315 | * @generated |
| 316 | */ |
| 317 | public EReference getResourceCall_NumberOfCalls__ResourceCall() { |
| 318 | return (EReference)resourceCallEClass.getEStructuralFeatures().get(3); |
| 319 | } |
| 320 | |
| 321 | /** |
| 322 | * <!-- begin-user-doc --> |
| 323 | * <!-- end-user-doc --> |
| 324 | * @generated |
| 325 | */ |
| 326 | public EClass getParametricResourceDemand() { |
| 327 | return parametricResourceDemandEClass; |
| 328 | } |
| 329 | |
| 330 | /** |
| 331 | * <!-- begin-user-doc --> |
| 332 | * <!-- end-user-doc --> |
| 333 | * @generated |
| 334 | */ |
| 335 | public EReference getParametricResourceDemand_Specification_ParametericResourceDemand() { |
| 336 | return (EReference)parametricResourceDemandEClass.getEStructuralFeatures().get(0); |
| 337 | } |
| 338 | |
| 339 | /** |
| 340 | * <!-- begin-user-doc --> |
| 341 | * <!-- end-user-doc --> |
| 342 | * @generated |
| 343 | */ |
| 344 | public EReference getParametricResourceDemand_RequiredResource_ParametricResourceDemand() { |
| 345 | return (EReference)parametricResourceDemandEClass.getEStructuralFeatures().get(1); |
| 346 | } |
| 347 | |
| 348 | /** |
| 349 | * <!-- begin-user-doc --> |
| 350 | * <!-- end-user-doc --> |
| 351 | * @generated |
| 352 | */ |
| 353 | public EReference getParametricResourceDemand_Action_ParametricResourceDemand() { |
| 354 | return (EReference)parametricResourceDemandEClass.getEStructuralFeatures().get(2); |
| 355 | } |
| 356 | |
| 357 | /** |
| 358 | * <!-- begin-user-doc --> |
| 359 | * <!-- end-user-doc --> |
| 360 | * @generated |
| 361 | */ |
| 362 | public Seff_performanceFactory getSeff_performanceFactory() { |
| 363 | return (Seff_performanceFactory)getEFactoryInstance(); |
| 364 | } |
| 365 | |
| 366 | /** |
| 367 | * <!-- begin-user-doc --> |
| 368 | * <!-- end-user-doc --> |
| 369 | * @generated |
| 370 | */ |
| 371 | private boolean isCreated = false; |
| 372 | |
| 373 | /** |
| 374 | * Creates the meta-model objects for the package. This method is |
| 375 | * guarded to have no affect on any invocation but its first. |
| 376 | * <!-- begin-user-doc --> |
| 377 | * <!-- end-user-doc --> |
| 378 | * @generated |
| 379 | */ |
| 380 | public void createPackageContents() { |
| 381 | if (isCreated) return; |
| 382 | isCreated = true; |
| 383 | |
| 384 | // Create classes and their features |
| 385 | infrastructureCallEClass = createEClass(INFRASTRUCTURE_CALL); |
| 386 | createEReference(infrastructureCallEClass, INFRASTRUCTURE_CALL__SIGNATURE_INFRASTRUCTURE_CALL); |
| 387 | createEReference(infrastructureCallEClass, INFRASTRUCTURE_CALL__NUMBER_OF_CALLS_INFRASTRUCTURE_CALL); |
| 388 | createEReference(infrastructureCallEClass, INFRASTRUCTURE_CALL__ACTION_INFRASTRUCTURE_CALL); |
| 389 | createEReference(infrastructureCallEClass, INFRASTRUCTURE_CALL__REQUIRED_ROLE_INFRASTRUCTURE_CALL); |
| 390 | |
| 391 | resourceCallEClass = createEClass(RESOURCE_CALL); |
| 392 | createEReference(resourceCallEClass, RESOURCE_CALL__ACTION_RESOURCE_CALL); |
| 393 | createEReference(resourceCallEClass, RESOURCE_CALL__RESOURCE_REQUIRED_ROLE_RESOURCE_CALL); |
| 394 | createEReference(resourceCallEClass, RESOURCE_CALL__SIGNATURE_RESOURCE_CALL); |
| 395 | createEReference(resourceCallEClass, RESOURCE_CALL__NUMBER_OF_CALLS_RESOURCE_CALL); |
| 396 | |
| 397 | parametricResourceDemandEClass = createEClass(PARAMETRIC_RESOURCE_DEMAND); |
| 398 | createEReference(parametricResourceDemandEClass, PARAMETRIC_RESOURCE_DEMAND__SPECIFICATION_PARAMETERIC_RESOURCE_DEMAND); |
| 399 | createEReference(parametricResourceDemandEClass, PARAMETRIC_RESOURCE_DEMAND__REQUIRED_RESOURCE_PARAMETRIC_RESOURCE_DEMAND); |
| 400 | createEReference(parametricResourceDemandEClass, PARAMETRIC_RESOURCE_DEMAND__ACTION_PARAMETRIC_RESOURCE_DEMAND); |
| 401 | } |
| 402 | |
| 403 | /** |
| 404 | * <!-- begin-user-doc --> |
| 405 | * <!-- end-user-doc --> |
| 406 | * @generated |
| 407 | */ |
| 408 | private boolean isInitialized = false; |
| 409 | |
| 410 | /** |
| 411 | * Complete the initialization of the package and its meta-model. This |
| 412 | * method is guarded to have no affect on any invocation but its first. |
| 413 | * <!-- begin-user-doc --> |
| 414 | * <!-- end-user-doc --> |
| 415 | * @generated |
| 416 | */ |
| 417 | public void initializePackageContents() { |
| 418 | if (isInitialized) return; |
| 419 | isInitialized = true; |
| 420 | |
| 421 | // Initialize package |
| 422 | setName(eNAME); |
| 423 | setNsPrefix(eNS_PREFIX); |
| 424 | setNsURI(eNS_URI); |
| 425 | |
| 426 | // Obtain other dependent packages |
| 427 | SeffPackage theSeffPackage = (SeffPackage)EPackage.Registry.INSTANCE.getEPackage(SeffPackage.eNS_URI); |
| 428 | RepositoryPackage theRepositoryPackage = (RepositoryPackage)EPackage.Registry.INSTANCE.getEPackage(RepositoryPackage.eNS_URI); |
| 429 | CorePackage theCorePackage = (CorePackage)EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI); |
| 430 | EntityPackage theEntityPackage = (EntityPackage)EPackage.Registry.INSTANCE.getEPackage(EntityPackage.eNS_URI); |
| 431 | ResourcetypePackage theResourcetypePackage = (ResourcetypePackage)EPackage.Registry.INSTANCE.getEPackage(ResourcetypePackage.eNS_URI); |
| 432 | |
| 433 | // Create type parameters |
| 434 | |
| 435 | // Set bounds for type parameters |
| 436 | |
| 437 | // Add supertypes to classes |
| 438 | infrastructureCallEClass.getESuperTypes().add(theSeffPackage.getCallAction()); |
| 439 | resourceCallEClass.getESuperTypes().add(theSeffPackage.getCallAction()); |
| 440 | |
| 441 | // Initialize classes and features; add operations and parameters |
| 442 | initEClass(infrastructureCallEClass, InfrastructureCall.class, "InfrastructureCall", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 443 | initEReference(getInfrastructureCall_Signature__InfrastructureCall(), theRepositoryPackage.getInfrastructureSignature(), null, "signature__InfrastructureCall", null, 1, 1, InfrastructureCall.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 444 | initEReference(getInfrastructureCall_NumberOfCalls__InfrastructureCall(), theCorePackage.getPCMRandomVariable(), theCorePackage.getPCMRandomVariable_InfrastructureCall__PCMRandomVariable(), "numberOfCalls__InfrastructureCall", null, 1, 1, InfrastructureCall.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 445 | initEReference(getInfrastructureCall_Action__InfrastructureCall(), theSeffPackage.getAbstractInternalControlFlowAction(), theSeffPackage.getAbstractInternalControlFlowAction_InfrastructureCall__Action(), "action__InfrastructureCall", null, 1, 1, InfrastructureCall.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 446 | initEReference(getInfrastructureCall_RequiredRole__InfrastructureCall(), theRepositoryPackage.getInfrastructureRequiredRole(), null, "requiredRole__InfrastructureCall", null, 1, 1, InfrastructureCall.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 447 | |
| 448 | EOperation op = addEOperation(infrastructureCallEClass, ecorePackage.getEBoolean(), "SignatureMustBelongToUsedRequiredRole", 0, 1, IS_UNIQUE, IS_ORDERED); |
| 449 | addEParameter(op, ecorePackage.getEDiagnosticChain(), "diagnostics", 0, 1, IS_UNIQUE, IS_ORDERED); |
| 450 | EGenericType g1 = createEGenericType(ecorePackage.getEMap()); |
| 451 | EGenericType g2 = createEGenericType(ecorePackage.getEJavaObject()); |
| 452 | g1.getETypeArguments().add(g2); |
| 453 | g2 = createEGenericType(ecorePackage.getEJavaObject()); |
| 454 | g1.getETypeArguments().add(g2); |
| 455 | addEParameter(op, g1, "context", 0, 1, IS_UNIQUE, IS_ORDERED); |
| 456 | |
| 457 | initEClass(resourceCallEClass, ResourceCall.class, "ResourceCall", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 458 | initEReference(getResourceCall_Action__ResourceCall(), theSeffPackage.getAbstractInternalControlFlowAction(), theSeffPackage.getAbstractInternalControlFlowAction_ResourceCall__Action(), "action__ResourceCall", null, 1, 1, ResourceCall.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 459 | initEReference(getResourceCall_ResourceRequiredRole__ResourceCall(), theEntityPackage.getResourceRequiredRole(), null, "resourceRequiredRole__ResourceCall", null, 1, 1, ResourceCall.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 460 | initEReference(getResourceCall_Signature__ResourceCall(), theResourcetypePackage.getResourceSignature(), null, "signature__ResourceCall", null, 1, 1, ResourceCall.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 461 | initEReference(getResourceCall_NumberOfCalls__ResourceCall(), theCorePackage.getPCMRandomVariable(), theCorePackage.getPCMRandomVariable_ResourceCall__PCMRandomVariable(), "numberOfCalls__ResourceCall", null, 1, 1, ResourceCall.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 462 | |
| 463 | op = addEOperation(resourceCallEClass, ecorePackage.getEBoolean(), "ResourceSignatureBelongsToResourceRequiredRole", 0, 1, IS_UNIQUE, IS_ORDERED); |
| 464 | addEParameter(op, ecorePackage.getEDiagnosticChain(), "diagnostics", 0, 1, IS_UNIQUE, IS_ORDERED); |
| 465 | g1 = createEGenericType(ecorePackage.getEMap()); |
| 466 | g2 = createEGenericType(ecorePackage.getEJavaObject()); |
| 467 | g1.getETypeArguments().add(g2); |
| 468 | g2 = createEGenericType(ecorePackage.getEJavaObject()); |
| 469 | g1.getETypeArguments().add(g2); |
| 470 | addEParameter(op, g1, "context", 0, 1, IS_UNIQUE, IS_ORDERED); |
| 471 | |
| 472 | initEClass(parametricResourceDemandEClass, ParametricResourceDemand.class, "ParametricResourceDemand", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 473 | initEReference(getParametricResourceDemand_Specification_ParametericResourceDemand(), theCorePackage.getPCMRandomVariable(), theCorePackage.getPCMRandomVariable_ParametricResourceDemand_PCMRandomVariable(), "specification_ParametericResourceDemand", null, 1, 1, ParametricResourceDemand.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 474 | initEReference(getParametricResourceDemand_RequiredResource_ParametricResourceDemand(), theResourcetypePackage.getProcessingResourceType(), null, "requiredResource_ParametricResourceDemand", null, 1, 1, ParametricResourceDemand.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 475 | initEReference(getParametricResourceDemand_Action_ParametricResourceDemand(), theSeffPackage.getAbstractInternalControlFlowAction(), theSeffPackage.getAbstractInternalControlFlowAction_ResourceDemand_Action(), "action_ParametricResourceDemand", null, 1, 1, ParametricResourceDemand.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 476 | } |
| 477 | |
| 478 | } //Seff_performancePackageImpl |