| 1 | /** |
| 2 | * Copyright 2006, SDQ Group, University Karlsruhe (TH) |
| 3 | * |
| 4 | * $Id$ |
| 5 | */ |
| 6 | package de.uka.ipd.sdq.context.computed_usage.impl; |
| 7 | |
| 8 | import org.eclipse.emf.ecore.EAttribute; |
| 9 | import org.eclipse.emf.ecore.EClass; |
| 10 | import org.eclipse.emf.ecore.EPackage; |
| 11 | import org.eclipse.emf.ecore.EReference; |
| 12 | import org.eclipse.emf.ecore.impl.EPackageImpl; |
| 13 | |
| 14 | import de.uka.ipd.sdq.context.aggregatedUsageContext.AggregatedUsageContextPackage; |
| 15 | import de.uka.ipd.sdq.context.aggregatedUsageContext.impl.AggregatedUsageContextPackageImpl; |
| 16 | import de.uka.ipd.sdq.context.computed_allocation.ComputedAllocationPackage; |
| 17 | import de.uka.ipd.sdq.context.computed_allocation.impl.ComputedAllocationPackageImpl; |
| 18 | import de.uka.ipd.sdq.context.computed_usage.BranchProbability; |
| 19 | import de.uka.ipd.sdq.context.computed_usage.ComputedUsage; |
| 20 | import de.uka.ipd.sdq.context.computed_usage.ComputedUsageContext; |
| 21 | import de.uka.ipd.sdq.context.computed_usage.ComputedUsageFactory; |
| 22 | import de.uka.ipd.sdq.context.computed_usage.ComputedUsagePackage; |
| 23 | import de.uka.ipd.sdq.context.computed_usage.ExternalCallInput; |
| 24 | import de.uka.ipd.sdq.context.computed_usage.ExternalCallOutput; |
| 25 | import de.uka.ipd.sdq.context.computed_usage.Input; |
| 26 | import de.uka.ipd.sdq.context.computed_usage.LoopIteration; |
| 27 | import de.uka.ipd.sdq.context.computed_usage.Output; |
| 28 | import de.uka.ipd.sdq.pcm.PcmPackage; |
| 29 | import de.uka.ipd.sdq.pcm.core.CorePackage; |
| 30 | import de.uka.ipd.sdq.pcm.core.composition.CompositionPackage; |
| 31 | import de.uka.ipd.sdq.pcm.core.entity.EntityPackage; |
| 32 | import de.uka.ipd.sdq.pcm.parameter.ParameterPackage; |
| 33 | import de.uka.ipd.sdq.pcm.seff.SeffPackage; |
| 34 | |
| 35 | /** |
| 36 | * <!-- begin-user-doc --> |
| 37 | * An implementation of the model <b>Package</b>. |
| 38 | * <!-- end-user-doc --> |
| 39 | * @generated |
| 40 | */ |
| 41 | public class ComputedUsagePackageImpl extends EPackageImpl implements ComputedUsagePackage { |
| 42 | /** |
| 43 | * <!-- begin-user-doc --> |
| 44 | * <!-- end-user-doc --> |
| 45 | * @generated |
| 46 | */ |
| 47 | public static final String copyright = "Copyright 2006, SDQ Group, University Karlsruhe (TH)"; |
| 48 | |
| 49 | /** |
| 50 | * <!-- begin-user-doc --> |
| 51 | * <!-- end-user-doc --> |
| 52 | * @generated |
| 53 | */ |
| 54 | private EClass computedUsageContextEClass = null; |
| 55 | |
| 56 | /** |
| 57 | * <!-- begin-user-doc --> |
| 58 | * <!-- end-user-doc --> |
| 59 | * @generated |
| 60 | */ |
| 61 | private EClass branchProbabilityEClass = null; |
| 62 | |
| 63 | /** |
| 64 | * <!-- begin-user-doc --> |
| 65 | * <!-- end-user-doc --> |
| 66 | * @generated |
| 67 | */ |
| 68 | private EClass loopIterationEClass = null; |
| 69 | |
| 70 | /** |
| 71 | * <!-- begin-user-doc --> |
| 72 | * <!-- end-user-doc --> |
| 73 | * @generated |
| 74 | */ |
| 75 | private EClass inputEClass = null; |
| 76 | |
| 77 | /** |
| 78 | * <!-- begin-user-doc --> |
| 79 | * <!-- end-user-doc --> |
| 80 | * @generated |
| 81 | */ |
| 82 | private EClass externalCallOutputEClass = null; |
| 83 | |
| 84 | /** |
| 85 | * <!-- begin-user-doc --> |
| 86 | * <!-- end-user-doc --> |
| 87 | * @generated |
| 88 | */ |
| 89 | private EClass externalCallInputEClass = null; |
| 90 | |
| 91 | /** |
| 92 | * <!-- begin-user-doc --> |
| 93 | * <!-- end-user-doc --> |
| 94 | * @generated |
| 95 | */ |
| 96 | private EClass outputEClass = null; |
| 97 | |
| 98 | /** |
| 99 | * <!-- begin-user-doc --> |
| 100 | * <!-- end-user-doc --> |
| 101 | * @generated |
| 102 | */ |
| 103 | private EClass computedUsageEClass = null; |
| 104 | |
| 105 | /** |
| 106 | * Creates an instance of the model <b>Package</b>, registered with |
| 107 | * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package |
| 108 | * package URI value. |
| 109 | * <p>Note: the correct way to create the package is via the static |
| 110 | * factory method {@link #init init()}, which also performs |
| 111 | * initialization of the package, or returns the registered package, |
| 112 | * if one already exists. |
| 113 | * <!-- begin-user-doc --> |
| 114 | * <!-- end-user-doc --> |
| 115 | * @see org.eclipse.emf.ecore.EPackage.Registry |
| 116 | * @see de.uka.ipd.sdq.context.computed_usage.ComputedUsagePackage#eNS_URI |
| 117 | * @see #init() |
| 118 | * @generated |
| 119 | */ |
| 120 | private ComputedUsagePackageImpl() { |
| 121 | super(eNS_URI, ComputedUsageFactory.eINSTANCE); |
| 122 | } |
| 123 | |
| 124 | /** |
| 125 | * <!-- begin-user-doc --> |
| 126 | * <!-- end-user-doc --> |
| 127 | * @generated |
| 128 | */ |
| 129 | private static boolean isInited = false; |
| 130 | |
| 131 | /** |
| 132 | * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. |
| 133 | * |
| 134 | * <p>This method is used to initialize {@link ComputedUsagePackage#eINSTANCE} when that field is accessed. |
| 135 | * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. |
| 136 | * <!-- begin-user-doc --> |
| 137 | * <!-- end-user-doc --> |
| 138 | * @see #eNS_URI |
| 139 | * @see #createPackageContents() |
| 140 | * @see #initializePackageContents() |
| 141 | * @generated |
| 142 | */ |
| 143 | public static ComputedUsagePackage init() { |
| 144 | if (isInited) return (ComputedUsagePackage)EPackage.Registry.INSTANCE.getEPackage(ComputedUsagePackage.eNS_URI); |
| 145 | |
| 146 | // Obtain or create and register package |
| 147 | ComputedUsagePackageImpl theComputedUsagePackage = (ComputedUsagePackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof ComputedUsagePackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new ComputedUsagePackageImpl()); |
| 148 | |
| 149 | isInited = true; |
| 150 | |
| 151 | // Initialize simple dependencies |
| 152 | PcmPackage.eINSTANCE.eClass(); |
| 153 | |
| 154 | // Obtain or create and register interdependencies |
| 155 | ComputedAllocationPackageImpl theComputedAllocationPackage = (ComputedAllocationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ComputedAllocationPackage.eNS_URI) instanceof ComputedAllocationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ComputedAllocationPackage.eNS_URI) : ComputedAllocationPackage.eINSTANCE); |
| 156 | AggregatedUsageContextPackageImpl theAggregatedUsageContextPackage = (AggregatedUsageContextPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(AggregatedUsageContextPackage.eNS_URI) instanceof AggregatedUsageContextPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(AggregatedUsageContextPackage.eNS_URI) : AggregatedUsageContextPackage.eINSTANCE); |
| 157 | |
| 158 | // Create package meta-data objects |
| 159 | theComputedUsagePackage.createPackageContents(); |
| 160 | theComputedAllocationPackage.createPackageContents(); |
| 161 | theAggregatedUsageContextPackage.createPackageContents(); |
| 162 | |
| 163 | // Initialize created meta-data |
| 164 | theComputedUsagePackage.initializePackageContents(); |
| 165 | theComputedAllocationPackage.initializePackageContents(); |
| 166 | theAggregatedUsageContextPackage.initializePackageContents(); |
| 167 | |
| 168 | // Mark meta-data to indicate it can't be changed |
| 169 | theComputedUsagePackage.freeze(); |
| 170 | |
| 171 | |
| 172 | // Update the registry and return the package |
| 173 | EPackage.Registry.INSTANCE.put(ComputedUsagePackage.eNS_URI, theComputedUsagePackage); |
| 174 | return theComputedUsagePackage; |
| 175 | } |
| 176 | |
| 177 | /** |
| 178 | * <!-- begin-user-doc --> |
| 179 | * <!-- end-user-doc --> |
| 180 | * @generated |
| 181 | */ |
| 182 | public EClass getComputedUsageContext() { |
| 183 | return computedUsageContextEClass; |
| 184 | } |
| 185 | |
| 186 | /** |
| 187 | * <!-- begin-user-doc --> |
| 188 | * <!-- end-user-doc --> |
| 189 | * @generated |
| 190 | */ |
| 191 | public EReference getComputedUsageContext_BranchProbabilities_ComputedUsageContext() { |
| 192 | return (EReference)computedUsageContextEClass.getEStructuralFeatures().get(0); |
| 193 | } |
| 194 | |
| 195 | /** |
| 196 | * <!-- begin-user-doc --> |
| 197 | * <!-- end-user-doc --> |
| 198 | * @generated |
| 199 | */ |
| 200 | public EReference getComputedUsageContext_Loopiterations_ComputedUsageContext() { |
| 201 | return (EReference)computedUsageContextEClass.getEStructuralFeatures().get(1); |
| 202 | } |
| 203 | |
| 204 | /** |
| 205 | * <!-- begin-user-doc --> |
| 206 | * <!-- end-user-doc --> |
| 207 | * @generated |
| 208 | */ |
| 209 | public EReference getComputedUsageContext_AssemblyContext_ComputedUsageContext() { |
| 210 | return (EReference)computedUsageContextEClass.getEStructuralFeatures().get(2); |
| 211 | } |
| 212 | |
| 213 | /** |
| 214 | * <!-- begin-user-doc --> |
| 215 | * <!-- end-user-doc --> |
| 216 | * @generated |
| 217 | */ |
| 218 | public EReference getComputedUsageContext_Input_ComputedUsageContext() { |
| 219 | return (EReference)computedUsageContextEClass.getEStructuralFeatures().get(3); |
| 220 | } |
| 221 | |
| 222 | /** |
| 223 | * <!-- begin-user-doc --> |
| 224 | * <!-- end-user-doc --> |
| 225 | * @generated |
| 226 | */ |
| 227 | public EReference getComputedUsageContext_ExternalCallOutput_ComputedUsageContext() { |
| 228 | return (EReference)computedUsageContextEClass.getEStructuralFeatures().get(4); |
| 229 | } |
| 230 | |
| 231 | /** |
| 232 | * <!-- begin-user-doc --> |
| 233 | * <!-- end-user-doc --> |
| 234 | * @generated |
| 235 | */ |
| 236 | public EReference getComputedUsageContext_ExternalCallInput_ComputedUsageContext() { |
| 237 | return (EReference)computedUsageContextEClass.getEStructuralFeatures().get(5); |
| 238 | } |
| 239 | |
| 240 | /** |
| 241 | * <!-- begin-user-doc --> |
| 242 | * <!-- end-user-doc --> |
| 243 | * @generated |
| 244 | */ |
| 245 | public EReference getComputedUsageContext_Output_ComputedUsageContext() { |
| 246 | return (EReference)computedUsageContextEClass.getEStructuralFeatures().get(6); |
| 247 | } |
| 248 | |
| 249 | /** |
| 250 | * <!-- begin-user-doc --> |
| 251 | * <!-- end-user-doc --> |
| 252 | * @generated |
| 253 | */ |
| 254 | public EClass getBranchProbability() { |
| 255 | return branchProbabilityEClass; |
| 256 | } |
| 257 | |
| 258 | /** |
| 259 | * <!-- begin-user-doc --> |
| 260 | * <!-- end-user-doc --> |
| 261 | * @generated |
| 262 | */ |
| 263 | public EAttribute getBranchProbability_Probability() { |
| 264 | return (EAttribute)branchProbabilityEClass.getEStructuralFeatures().get(0); |
| 265 | } |
| 266 | |
| 267 | /** |
| 268 | * <!-- begin-user-doc --> |
| 269 | * <!-- end-user-doc --> |
| 270 | * @generated |
| 271 | */ |
| 272 | public EReference getBranchProbability_Branchtransition_BranchProbability() { |
| 273 | return (EReference)branchProbabilityEClass.getEStructuralFeatures().get(1); |
| 274 | } |
| 275 | |
| 276 | /** |
| 277 | * <!-- begin-user-doc --> |
| 278 | * <!-- end-user-doc --> |
| 279 | * @generated |
| 280 | */ |
| 281 | public EClass getLoopIteration() { |
| 282 | return loopIterationEClass; |
| 283 | } |
| 284 | |
| 285 | /** |
| 286 | * <!-- begin-user-doc --> |
| 287 | * <!-- end-user-doc --> |
| 288 | * @generated |
| 289 | */ |
| 290 | public EReference getLoopIteration_Loopaction_LoopIteration() { |
| 291 | return (EReference)loopIterationEClass.getEStructuralFeatures().get(0); |
| 292 | } |
| 293 | |
| 294 | /** |
| 295 | * <!-- begin-user-doc --> |
| 296 | * <!-- end-user-doc --> |
| 297 | * @generated |
| 298 | */ |
| 299 | public EReference getLoopIteration_Specification_LoopIteration() { |
| 300 | return (EReference)loopIterationEClass.getEStructuralFeatures().get(1); |
| 301 | } |
| 302 | |
| 303 | /** |
| 304 | * <!-- begin-user-doc --> |
| 305 | * <!-- end-user-doc --> |
| 306 | * @generated |
| 307 | */ |
| 308 | public EClass getInput() { |
| 309 | return inputEClass; |
| 310 | } |
| 311 | |
| 312 | /** |
| 313 | * <!-- begin-user-doc --> |
| 314 | * <!-- end-user-doc --> |
| 315 | * @generated |
| 316 | */ |
| 317 | public EReference getInput_ParameterChacterisations_Input() { |
| 318 | return (EReference)inputEClass.getEStructuralFeatures().get(0); |
| 319 | } |
| 320 | |
| 321 | /** |
| 322 | * <!-- begin-user-doc --> |
| 323 | * <!-- end-user-doc --> |
| 324 | * @generated |
| 325 | */ |
| 326 | public EClass getExternalCallOutput() { |
| 327 | return externalCallOutputEClass; |
| 328 | } |
| 329 | |
| 330 | /** |
| 331 | * <!-- begin-user-doc --> |
| 332 | * <!-- end-user-doc --> |
| 333 | * @generated |
| 334 | */ |
| 335 | public EReference getExternalCallOutput_ParameterCharacterisations_ExternalCallOutput() { |
| 336 | return (EReference)externalCallOutputEClass.getEStructuralFeatures().get(0); |
| 337 | } |
| 338 | |
| 339 | /** |
| 340 | * <!-- begin-user-doc --> |
| 341 | * <!-- end-user-doc --> |
| 342 | * @generated |
| 343 | */ |
| 344 | public EReference getExternalCallOutput_ExternalCallAction_ExternalCallOutput() { |
| 345 | return (EReference)externalCallOutputEClass.getEStructuralFeatures().get(1); |
| 346 | } |
| 347 | |
| 348 | /** |
| 349 | * <!-- begin-user-doc --> |
| 350 | * <!-- end-user-doc --> |
| 351 | * @generated |
| 352 | */ |
| 353 | public EClass getExternalCallInput() { |
| 354 | return externalCallInputEClass; |
| 355 | } |
| 356 | |
| 357 | /** |
| 358 | * <!-- begin-user-doc --> |
| 359 | * <!-- end-user-doc --> |
| 360 | * @generated |
| 361 | */ |
| 362 | public EReference getExternalCallInput_ParameterCharacterisations_ExternalCallInput() { |
| 363 | return (EReference)externalCallInputEClass.getEStructuralFeatures().get(0); |
| 364 | } |
| 365 | |
| 366 | /** |
| 367 | * <!-- begin-user-doc --> |
| 368 | * <!-- end-user-doc --> |
| 369 | * @generated |
| 370 | */ |
| 371 | public EReference getExternalCallInput_ExternalCallAction_ExternalCallInput() { |
| 372 | return (EReference)externalCallInputEClass.getEStructuralFeatures().get(1); |
| 373 | } |
| 374 | |
| 375 | /** |
| 376 | * <!-- begin-user-doc --> |
| 377 | * <!-- end-user-doc --> |
| 378 | * @generated |
| 379 | */ |
| 380 | public EReference getExternalCallInput_ComputedUsageContext_ExternalCallInput() { |
| 381 | return (EReference)externalCallInputEClass.getEStructuralFeatures().get(2); |
| 382 | } |
| 383 | |
| 384 | /** |
| 385 | * <!-- begin-user-doc --> |
| 386 | * <!-- end-user-doc --> |
| 387 | * @generated |
| 388 | */ |
| 389 | public EClass getOutput() { |
| 390 | return outputEClass; |
| 391 | } |
| 392 | |
| 393 | /** |
| 394 | * <!-- begin-user-doc --> |
| 395 | * <!-- end-user-doc --> |
| 396 | * @generated |
| 397 | */ |
| 398 | public EReference getOutput_ParameterCharacterisations_Output() { |
| 399 | return (EReference)outputEClass.getEStructuralFeatures().get(0); |
| 400 | } |
| 401 | |
| 402 | /** |
| 403 | * <!-- begin-user-doc --> |
| 404 | * <!-- end-user-doc --> |
| 405 | * @generated |
| 406 | */ |
| 407 | public EClass getComputedUsage() { |
| 408 | return computedUsageEClass; |
| 409 | } |
| 410 | |
| 411 | /** |
| 412 | * <!-- begin-user-doc --> |
| 413 | * <!-- end-user-doc --> |
| 414 | * @generated |
| 415 | */ |
| 416 | public EReference getComputedUsage_UsageContexts_ComputedUsage() { |
| 417 | return (EReference)computedUsageEClass.getEStructuralFeatures().get(0); |
| 418 | } |
| 419 | |
| 420 | /** |
| 421 | * <!-- begin-user-doc --> |
| 422 | * <!-- end-user-doc --> |
| 423 | * @generated |
| 424 | */ |
| 425 | public ComputedUsageFactory getComputedUsageFactory() { |
| 426 | return (ComputedUsageFactory)getEFactoryInstance(); |
| 427 | } |
| 428 | |
| 429 | /** |
| 430 | * <!-- begin-user-doc --> |
| 431 | * <!-- end-user-doc --> |
| 432 | * @generated |
| 433 | */ |
| 434 | private boolean isCreated = false; |
| 435 | |
| 436 | /** |
| 437 | * Creates the meta-model objects for the package. This method is |
| 438 | * guarded to have no affect on any invocation but its first. |
| 439 | * <!-- begin-user-doc --> |
| 440 | * <!-- end-user-doc --> |
| 441 | * @generated |
| 442 | */ |
| 443 | public void createPackageContents() { |
| 444 | if (isCreated) return; |
| 445 | isCreated = true; |
| 446 | |
| 447 | // Create classes and their features |
| 448 | computedUsageContextEClass = createEClass(COMPUTED_USAGE_CONTEXT); |
| 449 | createEReference(computedUsageContextEClass, COMPUTED_USAGE_CONTEXT__BRANCH_PROBABILITIES_COMPUTED_USAGE_CONTEXT); |
| 450 | createEReference(computedUsageContextEClass, COMPUTED_USAGE_CONTEXT__LOOPITERATIONS_COMPUTED_USAGE_CONTEXT); |
| 451 | createEReference(computedUsageContextEClass, COMPUTED_USAGE_CONTEXT__ASSEMBLY_CONTEXT_COMPUTED_USAGE_CONTEXT); |
| 452 | createEReference(computedUsageContextEClass, COMPUTED_USAGE_CONTEXT__INPUT_COMPUTED_USAGE_CONTEXT); |
| 453 | createEReference(computedUsageContextEClass, COMPUTED_USAGE_CONTEXT__EXTERNAL_CALL_OUTPUT_COMPUTED_USAGE_CONTEXT); |
| 454 | createEReference(computedUsageContextEClass, COMPUTED_USAGE_CONTEXT__EXTERNAL_CALL_INPUT_COMPUTED_USAGE_CONTEXT); |
| 455 | createEReference(computedUsageContextEClass, COMPUTED_USAGE_CONTEXT__OUTPUT_COMPUTED_USAGE_CONTEXT); |
| 456 | |
| 457 | branchProbabilityEClass = createEClass(BRANCH_PROBABILITY); |
| 458 | createEAttribute(branchProbabilityEClass, BRANCH_PROBABILITY__PROBABILITY); |
| 459 | createEReference(branchProbabilityEClass, BRANCH_PROBABILITY__BRANCHTRANSITION_BRANCH_PROBABILITY); |
| 460 | |
| 461 | loopIterationEClass = createEClass(LOOP_ITERATION); |
| 462 | createEReference(loopIterationEClass, LOOP_ITERATION__LOOPACTION_LOOP_ITERATION); |
| 463 | createEReference(loopIterationEClass, LOOP_ITERATION__SPECIFICATION_LOOP_ITERATION); |
| 464 | |
| 465 | inputEClass = createEClass(INPUT); |
| 466 | createEReference(inputEClass, INPUT__PARAMETER_CHACTERISATIONS_INPUT); |
| 467 | |
| 468 | externalCallOutputEClass = createEClass(EXTERNAL_CALL_OUTPUT); |
| 469 | createEReference(externalCallOutputEClass, EXTERNAL_CALL_OUTPUT__PARAMETER_CHARACTERISATIONS_EXTERNAL_CALL_OUTPUT); |
| 470 | createEReference(externalCallOutputEClass, EXTERNAL_CALL_OUTPUT__EXTERNAL_CALL_ACTION_EXTERNAL_CALL_OUTPUT); |
| 471 | |
| 472 | externalCallInputEClass = createEClass(EXTERNAL_CALL_INPUT); |
| 473 | createEReference(externalCallInputEClass, EXTERNAL_CALL_INPUT__PARAMETER_CHARACTERISATIONS_EXTERNAL_CALL_INPUT); |
| 474 | createEReference(externalCallInputEClass, EXTERNAL_CALL_INPUT__EXTERNAL_CALL_ACTION_EXTERNAL_CALL_INPUT); |
| 475 | createEReference(externalCallInputEClass, EXTERNAL_CALL_INPUT__COMPUTED_USAGE_CONTEXT_EXTERNAL_CALL_INPUT); |
| 476 | |
| 477 | outputEClass = createEClass(OUTPUT); |
| 478 | createEReference(outputEClass, OUTPUT__PARAMETER_CHARACTERISATIONS_OUTPUT); |
| 479 | |
| 480 | computedUsageEClass = createEClass(COMPUTED_USAGE); |
| 481 | createEReference(computedUsageEClass, COMPUTED_USAGE__USAGE_CONTEXTS_COMPUTED_USAGE); |
| 482 | } |
| 483 | |
| 484 | /** |
| 485 | * <!-- begin-user-doc --> |
| 486 | * <!-- end-user-doc --> |
| 487 | * @generated |
| 488 | */ |
| 489 | private boolean isInitialized = false; |
| 490 | |
| 491 | /** |
| 492 | * Complete the initialization of the package and its meta-model. This |
| 493 | * method is guarded to have no affect on any invocation but its first. |
| 494 | * <!-- begin-user-doc --> |
| 495 | * <!-- end-user-doc --> |
| 496 | * @generated |
| 497 | */ |
| 498 | public void initializePackageContents() { |
| 499 | if (isInitialized) return; |
| 500 | isInitialized = true; |
| 501 | |
| 502 | // Initialize package |
| 503 | setName(eNAME); |
| 504 | setNsPrefix(eNS_PREFIX); |
| 505 | setNsURI(eNS_URI); |
| 506 | |
| 507 | // Obtain other dependent packages |
| 508 | EntityPackage theEntityPackage = (EntityPackage)EPackage.Registry.INSTANCE.getEPackage(EntityPackage.eNS_URI); |
| 509 | CompositionPackage theCompositionPackage = (CompositionPackage)EPackage.Registry.INSTANCE.getEPackage(CompositionPackage.eNS_URI); |
| 510 | SeffPackage theSeffPackage = (SeffPackage)EPackage.Registry.INSTANCE.getEPackage(SeffPackage.eNS_URI); |
| 511 | CorePackage theCorePackage = (CorePackage)EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI); |
| 512 | ParameterPackage theParameterPackage = (ParameterPackage)EPackage.Registry.INSTANCE.getEPackage(ParameterPackage.eNS_URI); |
| 513 | |
| 514 | // Create type parameters |
| 515 | |
| 516 | // Set bounds for type parameters |
| 517 | |
| 518 | // Add supertypes to classes |
| 519 | computedUsageContextEClass.getESuperTypes().add(theEntityPackage.getEntity()); |
| 520 | |
| 521 | // Initialize classes and features; add operations and parameters |
| 522 | initEClass(computedUsageContextEClass, ComputedUsageContext.class, "ComputedUsageContext", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 523 | initEReference(getComputedUsageContext_BranchProbabilities_ComputedUsageContext(), this.getBranchProbability(), null, "branchProbabilities_ComputedUsageContext", null, 0, -1, ComputedUsageContext.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 524 | initEReference(getComputedUsageContext_Loopiterations_ComputedUsageContext(), this.getLoopIteration(), null, "loopiterations_ComputedUsageContext", null, 0, -1, ComputedUsageContext.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 525 | initEReference(getComputedUsageContext_AssemblyContext_ComputedUsageContext(), theCompositionPackage.getAssemblyContext(), null, "assemblyContext_ComputedUsageContext", null, 1, 1, ComputedUsageContext.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 526 | initEReference(getComputedUsageContext_Input_ComputedUsageContext(), this.getInput(), null, "input_ComputedUsageContext", null, 1, 1, ComputedUsageContext.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 527 | initEReference(getComputedUsageContext_ExternalCallOutput_ComputedUsageContext(), this.getExternalCallOutput(), null, "externalCallOutput_ComputedUsageContext", null, 0, -1, ComputedUsageContext.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 528 | initEReference(getComputedUsageContext_ExternalCallInput_ComputedUsageContext(), this.getExternalCallInput(), this.getExternalCallInput_ComputedUsageContext_ExternalCallInput(), "externalCallInput_ComputedUsageContext", null, 0, -1, ComputedUsageContext.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 529 | initEReference(getComputedUsageContext_Output_ComputedUsageContext(), this.getOutput(), null, "output_ComputedUsageContext", null, 1, 1, ComputedUsageContext.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 530 | |
| 531 | initEClass(branchProbabilityEClass, BranchProbability.class, "BranchProbability", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 532 | initEAttribute(getBranchProbability_Probability(), ecorePackage.getEDouble(), "probability", null, 1, 1, BranchProbability.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 533 | initEReference(getBranchProbability_Branchtransition_BranchProbability(), theSeffPackage.getAbstractBranchTransition(), null, "branchtransition_BranchProbability", null, 1, 1, BranchProbability.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 534 | |
| 535 | initEClass(loopIterationEClass, LoopIteration.class, "LoopIteration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 536 | initEReference(getLoopIteration_Loopaction_LoopIteration(), theSeffPackage.getAbstractLoopAction(), null, "loopaction_LoopIteration", null, 1, 1, LoopIteration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 537 | initEReference(getLoopIteration_Specification_LoopIteration(), theCorePackage.getPCMRandomVariable(), null, "specification_LoopIteration", null, 1, 1, LoopIteration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 538 | |
| 539 | initEClass(inputEClass, Input.class, "Input", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 540 | initEReference(getInput_ParameterChacterisations_Input(), theParameterPackage.getVariableUsage(), null, "parameterChacterisations_Input", null, 0, -1, Input.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 541 | |
| 542 | initEClass(externalCallOutputEClass, ExternalCallOutput.class, "ExternalCallOutput", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 543 | initEReference(getExternalCallOutput_ParameterCharacterisations_ExternalCallOutput(), theParameterPackage.getVariableUsage(), null, "parameterCharacterisations_ExternalCallOutput", null, 0, -1, ExternalCallOutput.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 544 | initEReference(getExternalCallOutput_ExternalCallAction_ExternalCallOutput(), theSeffPackage.getExternalCallAction(), null, "externalCallAction_ExternalCallOutput", null, 1, 1, ExternalCallOutput.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 545 | |
| 546 | initEClass(externalCallInputEClass, ExternalCallInput.class, "ExternalCallInput", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 547 | initEReference(getExternalCallInput_ParameterCharacterisations_ExternalCallInput(), theParameterPackage.getVariableUsage(), null, "parameterCharacterisations_ExternalCallInput", null, 0, -1, ExternalCallInput.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 548 | initEReference(getExternalCallInput_ExternalCallAction_ExternalCallInput(), theSeffPackage.getExternalCallAction(), null, "externalCallAction_ExternalCallInput", null, 1, 1, ExternalCallInput.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 549 | initEReference(getExternalCallInput_ComputedUsageContext_ExternalCallInput(), this.getComputedUsageContext(), this.getComputedUsageContext_ExternalCallInput_ComputedUsageContext(), "computedUsageContext_ExternalCallInput", null, 1, 1, ExternalCallInput.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 550 | |
| 551 | initEClass(outputEClass, Output.class, "Output", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 552 | initEReference(getOutput_ParameterCharacterisations_Output(), theParameterPackage.getVariableUsage(), null, "parameterCharacterisations_Output", null, 0, -1, Output.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 553 | |
| 554 | initEClass(computedUsageEClass, ComputedUsage.class, "ComputedUsage", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 555 | initEReference(getComputedUsage_UsageContexts_ComputedUsage(), this.getComputedUsageContext(), null, "usageContexts_ComputedUsage", null, 0, -1, ComputedUsage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 556 | |
| 557 | // Create resource |
| 558 | createResource(eNS_URI); |
| 559 | } |
| 560 | |
| 561 | } //ComputedUsagePackageImpl |