| 1 | /** |
| 2 | * <copyright> |
| 3 | * </copyright> |
| 4 | * |
| 5 | * $Id$ |
| 6 | */ |
| 7 | package de.uka.ipd.sdq.pcm.cost.impl; |
| 8 | |
| 9 | import de.uka.ipd.sdq.pcm.PcmPackage; |
| 10 | import de.uka.ipd.sdq.pcm.allocation.AllocationPackage; |
| 11 | |
| 12 | import de.uka.ipd.sdq.pcm.cost.ComponentCost; |
| 13 | import de.uka.ipd.sdq.pcm.cost.ComponentCostPerInstance; |
| 14 | import de.uka.ipd.sdq.pcm.cost.ComponentCostPerType; |
| 15 | import de.uka.ipd.sdq.pcm.core.CorePackage; |
| 16 | |
| 17 | import de.uka.ipd.sdq.pcm.cost.Cost; |
| 18 | import de.uka.ipd.sdq.pcm.cost.CostRepository; |
| 19 | import de.uka.ipd.sdq.pcm.cost.FixedLinkingResourceCost; |
| 20 | import de.uka.ipd.sdq.pcm.cost.FixedProcessingResourceCost; |
| 21 | import de.uka.ipd.sdq.pcm.cost.LinkingResourceCost; |
| 22 | import de.uka.ipd.sdq.pcm.cost.ProcessingResourceCost; |
| 23 | import de.uka.ipd.sdq.pcm.cost.ScalarFunction; |
| 24 | import de.uka.ipd.sdq.pcm.cost.VariableCost; |
| 25 | import de.uka.ipd.sdq.pcm.cost.VariableLinkingResourceCost; |
| 26 | import de.uka.ipd.sdq.pcm.cost.VariableProcessingResourceCost; |
| 27 | import de.uka.ipd.sdq.pcm.cost.costFactory; |
| 28 | import de.uka.ipd.sdq.pcm.cost.costPackage; |
| 29 | |
| 30 | import de.uka.ipd.sdq.pcm.parameter.ParameterPackage; |
| 31 | |
| 32 | import de.uka.ipd.sdq.pcm.protocol.ProtocolPackage; |
| 33 | |
| 34 | import de.uka.ipd.sdq.pcm.qosannotations.QosannotationsPackage; |
| 35 | |
| 36 | import de.uka.ipd.sdq.pcm.repository.RepositoryPackage; |
| 37 | |
| 38 | import de.uka.ipd.sdq.pcm.resourceenvironment.ResourceenvironmentPackage; |
| 39 | |
| 40 | import de.uka.ipd.sdq.pcm.resourcetype.ResourcetypePackage; |
| 41 | |
| 42 | import de.uka.ipd.sdq.pcm.seff.SeffPackage; |
| 43 | |
| 44 | import de.uka.ipd.sdq.pcm.subsystem.SubsystemPackage; |
| 45 | |
| 46 | import de.uka.ipd.sdq.pcm.system.SystemPackage; |
| 47 | |
| 48 | import de.uka.ipd.sdq.pcm.usagemodel.UsagemodelPackage; |
| 49 | |
| 50 | import de.uka.ipd.sdq.stoex.StoexPackage; |
| 51 | import org.eclipse.emf.ecore.EAttribute; |
| 52 | import org.eclipse.emf.ecore.EClass; |
| 53 | import org.eclipse.emf.ecore.EPackage; |
| 54 | import org.eclipse.emf.ecore.EReference; |
| 55 | |
| 56 | import org.eclipse.emf.ecore.EcorePackage; |
| 57 | import org.eclipse.emf.ecore.impl.EPackageImpl; |
| 58 | |
| 59 | /** |
| 60 | * <!-- begin-user-doc --> |
| 61 | * An implementation of the model <b>Package</b>. |
| 62 | * <!-- end-user-doc --> |
| 63 | * @generated |
| 64 | */ |
| 65 | public class costPackageImpl extends EPackageImpl implements costPackage { |
| 66 | /** |
| 67 | * <!-- begin-user-doc --> |
| 68 | * <!-- end-user-doc --> |
| 69 | * @generated |
| 70 | */ |
| 71 | private EClass componentCostEClass = null; |
| 72 | |
| 73 | /** |
| 74 | * <!-- begin-user-doc --> |
| 75 | * <!-- end-user-doc --> |
| 76 | * @generated |
| 77 | */ |
| 78 | private EClass costEClass = null; |
| 79 | |
| 80 | /** |
| 81 | * <!-- begin-user-doc --> |
| 82 | * <!-- end-user-doc --> |
| 83 | * @generated |
| 84 | */ |
| 85 | private EClass fixedLinkingResourceCostEClass = null; |
| 86 | |
| 87 | /** |
| 88 | * <!-- begin-user-doc --> |
| 89 | * <!-- end-user-doc --> |
| 90 | * @generated |
| 91 | */ |
| 92 | private EClass linkingResourceCostEClass = null; |
| 93 | |
| 94 | /** |
| 95 | * <!-- begin-user-doc --> |
| 96 | * <!-- end-user-doc --> |
| 97 | * @generated |
| 98 | */ |
| 99 | private EClass fixedProcessingResourceCostEClass = null; |
| 100 | |
| 101 | /** |
| 102 | * <!-- begin-user-doc --> |
| 103 | * <!-- end-user-doc --> |
| 104 | * @generated |
| 105 | */ |
| 106 | private EClass processingResourceCostEClass = null; |
| 107 | |
| 108 | /** |
| 109 | * <!-- begin-user-doc --> |
| 110 | * <!-- end-user-doc --> |
| 111 | * @generated |
| 112 | */ |
| 113 | private EClass variableCostEClass = null; |
| 114 | |
| 115 | /** |
| 116 | * <!-- begin-user-doc --> |
| 117 | * <!-- end-user-doc --> |
| 118 | * @generated |
| 119 | */ |
| 120 | private EClass variableLinkingResourceCostEClass = null; |
| 121 | |
| 122 | /** |
| 123 | * <!-- begin-user-doc --> |
| 124 | * <!-- end-user-doc --> |
| 125 | * @generated |
| 126 | */ |
| 127 | private EClass variableProcessingResourceCostEClass = null; |
| 128 | |
| 129 | /** |
| 130 | * <!-- begin-user-doc --> |
| 131 | * <!-- end-user-doc --> |
| 132 | * @generated |
| 133 | */ |
| 134 | private EClass scalarFunctionEClass = null; |
| 135 | |
| 136 | /** |
| 137 | * <!-- begin-user-doc --> |
| 138 | * <!-- end-user-doc --> |
| 139 | * @generated |
| 140 | */ |
| 141 | private EClass costRepositoryEClass = null; |
| 142 | |
| 143 | /** |
| 144 | * <!-- begin-user-doc --> |
| 145 | * <!-- end-user-doc --> |
| 146 | * @generated |
| 147 | */ |
| 148 | private EClass componentCostPerInstanceEClass = null; |
| 149 | |
| 150 | /** |
| 151 | * Creates an instance of the model <b>Package</b>, registered with |
| 152 | * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package |
| 153 | * package URI value. |
| 154 | * <p>Note: the correct way to create the package is via the static |
| 155 | * factory method {@link #init init()}, which also performs |
| 156 | * initialization of the package, or returns the registered package, |
| 157 | * if one already exists. |
| 158 | * <!-- begin-user-doc --> |
| 159 | * <!-- end-user-doc --> |
| 160 | * @see org.eclipse.emf.ecore.EPackage.Registry |
| 161 | * @see de.uka.ipd.sdq.pcm.cost.costPackage#eNS_URI |
| 162 | * @see #init() |
| 163 | * @generated |
| 164 | */ |
| 165 | private costPackageImpl() { |
| 166 | super(eNS_URI, costFactory.eINSTANCE); |
| 167 | } |
| 168 | |
| 169 | /** |
| 170 | * <!-- begin-user-doc --> |
| 171 | * <!-- end-user-doc --> |
| 172 | * @generated |
| 173 | */ |
| 174 | private static boolean isInited = false; |
| 175 | |
| 176 | /** |
| 177 | * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. |
| 178 | * |
| 179 | * <p>This method is used to initialize {@link costPackage#eINSTANCE} when that field is accessed. |
| 180 | * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. |
| 181 | * <!-- begin-user-doc --> |
| 182 | * <!-- end-user-doc --> |
| 183 | * @see #eNS_URI |
| 184 | * @see #createPackageContents() |
| 185 | * @see #initializePackageContents() |
| 186 | * @generated |
| 187 | */ |
| 188 | public static costPackage init() { |
| 189 | if (isInited) return (costPackage)EPackage.Registry.INSTANCE.getEPackage(costPackage.eNS_URI); |
| 190 | |
| 191 | // Obtain or create and register package |
| 192 | costPackageImpl thecostPackage = (costPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof costPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new costPackageImpl()); |
| 193 | |
| 194 | isInited = true; |
| 195 | |
| 196 | // Initialize simple dependencies |
| 197 | EcorePackage.eINSTANCE.eClass(); |
| 198 | PcmPackage.eINSTANCE.eClass(); |
| 199 | |
| 200 | // Create package meta-data objects |
| 201 | thecostPackage.createPackageContents(); |
| 202 | |
| 203 | // Initialize created meta-data |
| 204 | thecostPackage.initializePackageContents(); |
| 205 | |
| 206 | // Mark meta-data to indicate it can't be changed |
| 207 | thecostPackage.freeze(); |
| 208 | |
| 209 | |
| 210 | // Update the registry and return the package |
| 211 | EPackage.Registry.INSTANCE.put(costPackage.eNS_URI, thecostPackage); |
| 212 | return thecostPackage; |
| 213 | } |
| 214 | |
| 215 | /** |
| 216 | * <!-- begin-user-doc --> |
| 217 | * <!-- end-user-doc --> |
| 218 | * @generated |
| 219 | */ |
| 220 | public EClass getComponentCost() { |
| 221 | return componentCostEClass; |
| 222 | } |
| 223 | |
| 224 | /** |
| 225 | * <!-- begin-user-doc --> |
| 226 | * <!-- end-user-doc --> |
| 227 | * @generated |
| 228 | */ |
| 229 | public EAttribute getComponentCost_ComponentOperatingCost() { |
| 230 | return (EAttribute)componentCostEClass.getEStructuralFeatures().get(0); |
| 231 | } |
| 232 | |
| 233 | /** |
| 234 | * <!-- begin-user-doc --> |
| 235 | * <!-- end-user-doc --> |
| 236 | * @generated |
| 237 | */ |
| 238 | public EAttribute getComponentCost_ComponentInitialCost() { |
| 239 | return (EAttribute)componentCostEClass.getEStructuralFeatures().get(1); |
| 240 | } |
| 241 | |
| 242 | /** |
| 243 | * <!-- begin-user-doc --> |
| 244 | * <!-- end-user-doc --> |
| 245 | * @generated |
| 246 | */ |
| 247 | public EReference getComponentCost_RepositoryComponent() { |
| 248 | return (EReference)componentCostEClass.getEStructuralFeatures().get(2); |
| 249 | } |
| 250 | |
| 251 | /** |
| 252 | * <!-- begin-user-doc --> |
| 253 | * <!-- end-user-doc --> |
| 254 | * @generated |
| 255 | */ |
| 256 | public EClass getCost() { |
| 257 | return costEClass; |
| 258 | } |
| 259 | |
| 260 | /** |
| 261 | * <!-- begin-user-doc --> |
| 262 | * <!-- end-user-doc --> |
| 263 | * @generated |
| 264 | */ |
| 265 | public EReference getCost_AnnotatedElement() { |
| 266 | return (EReference)costEClass.getEStructuralFeatures().get(0); |
| 267 | } |
| 268 | |
| 269 | /** |
| 270 | * <!-- begin-user-doc --> |
| 271 | * <!-- end-user-doc --> |
| 272 | * @generated |
| 273 | */ |
| 274 | public EAttribute getCost_OperatingCost() { |
| 275 | return (EAttribute)costEClass.getEStructuralFeatures().get(1); |
| 276 | } |
| 277 | |
| 278 | /** |
| 279 | * <!-- begin-user-doc --> |
| 280 | * <!-- end-user-doc --> |
| 281 | * @generated |
| 282 | */ |
| 283 | public EAttribute getCost_InitialCost() { |
| 284 | return (EAttribute)costEClass.getEStructuralFeatures().get(2); |
| 285 | } |
| 286 | |
| 287 | /** |
| 288 | * <!-- begin-user-doc --> |
| 289 | * <!-- end-user-doc --> |
| 290 | * @generated |
| 291 | */ |
| 292 | public EClass getFixedLinkingResourceCost() { |
| 293 | return fixedLinkingResourceCostEClass; |
| 294 | } |
| 295 | |
| 296 | /** |
| 297 | * <!-- begin-user-doc --> |
| 298 | * <!-- end-user-doc --> |
| 299 | * @generated |
| 300 | */ |
| 301 | public EClass getLinkingResourceCost() { |
| 302 | return linkingResourceCostEClass; |
| 303 | } |
| 304 | |
| 305 | /** |
| 306 | * <!-- begin-user-doc --> |
| 307 | * <!-- end-user-doc --> |
| 308 | * @generated |
| 309 | */ |
| 310 | public EReference getLinkingResourceCost_Linkingresource() { |
| 311 | return (EReference)linkingResourceCostEClass.getEStructuralFeatures().get(0); |
| 312 | } |
| 313 | |
| 314 | /** |
| 315 | * <!-- begin-user-doc --> |
| 316 | * <!-- end-user-doc --> |
| 317 | * @generated |
| 318 | */ |
| 319 | public EClass getFixedProcessingResourceCost() { |
| 320 | return fixedProcessingResourceCostEClass; |
| 321 | } |
| 322 | |
| 323 | /** |
| 324 | * <!-- begin-user-doc --> |
| 325 | * <!-- end-user-doc --> |
| 326 | * @generated |
| 327 | */ |
| 328 | public EAttribute getFixedProcessingResourceCost_FixedOperatingCost() { |
| 329 | return (EAttribute)fixedProcessingResourceCostEClass.getEStructuralFeatures().get(0); |
| 330 | } |
| 331 | |
| 332 | /** |
| 333 | * <!-- begin-user-doc --> |
| 334 | * <!-- end-user-doc --> |
| 335 | * @generated |
| 336 | */ |
| 337 | public EAttribute getFixedProcessingResourceCost_FixedInitialCost() { |
| 338 | return (EAttribute)fixedProcessingResourceCostEClass.getEStructuralFeatures().get(1); |
| 339 | } |
| 340 | |
| 341 | /** |
| 342 | * <!-- begin-user-doc --> |
| 343 | * <!-- end-user-doc --> |
| 344 | * @generated |
| 345 | */ |
| 346 | public EClass getProcessingResourceCost() { |
| 347 | return processingResourceCostEClass; |
| 348 | } |
| 349 | |
| 350 | /** |
| 351 | * <!-- begin-user-doc --> |
| 352 | * <!-- end-user-doc --> |
| 353 | * @generated |
| 354 | */ |
| 355 | public EReference getProcessingResourceCost_Processingresourcespecification() { |
| 356 | return (EReference)processingResourceCostEClass.getEStructuralFeatures().get(0); |
| 357 | } |
| 358 | |
| 359 | /** |
| 360 | * <!-- begin-user-doc --> |
| 361 | * <!-- end-user-doc --> |
| 362 | * @generated |
| 363 | */ |
| 364 | public EClass getVariableCost() { |
| 365 | return variableCostEClass; |
| 366 | } |
| 367 | |
| 368 | /** |
| 369 | * <!-- begin-user-doc --> |
| 370 | * <!-- end-user-doc --> |
| 371 | * @generated |
| 372 | */ |
| 373 | public EAttribute getVariableCost_FixedInitialCost() { |
| 374 | return (EAttribute)variableCostEClass.getEStructuralFeatures().get(0); |
| 375 | } |
| 376 | |
| 377 | /** |
| 378 | * <!-- begin-user-doc --> |
| 379 | * <!-- end-user-doc --> |
| 380 | * @generated |
| 381 | */ |
| 382 | public EAttribute getVariableCost_FixedOperatingCost() { |
| 383 | return (EAttribute)variableCostEClass.getEStructuralFeatures().get(1); |
| 384 | } |
| 385 | |
| 386 | /** |
| 387 | * <!-- begin-user-doc --> |
| 388 | * <!-- end-user-doc --> |
| 389 | * @generated |
| 390 | */ |
| 391 | public EClass getVariableLinkingResourceCost() { |
| 392 | return variableLinkingResourceCostEClass; |
| 393 | } |
| 394 | |
| 395 | /** |
| 396 | * <!-- begin-user-doc --> |
| 397 | * <!-- end-user-doc --> |
| 398 | * @generated |
| 399 | */ |
| 400 | public EAttribute getVariableLinkingResourceCost_BandwithInitialFactor() { |
| 401 | return (EAttribute)variableLinkingResourceCostEClass.getEStructuralFeatures().get(0); |
| 402 | } |
| 403 | |
| 404 | /** |
| 405 | * <!-- begin-user-doc --> |
| 406 | * <!-- end-user-doc --> |
| 407 | * @generated |
| 408 | */ |
| 409 | public EAttribute getVariableLinkingResourceCost_BandwidthOperatingFactor() { |
| 410 | return (EAttribute)variableLinkingResourceCostEClass.getEStructuralFeatures().get(1); |
| 411 | } |
| 412 | |
| 413 | /** |
| 414 | * <!-- begin-user-doc --> |
| 415 | * <!-- end-user-doc --> |
| 416 | * @generated |
| 417 | */ |
| 418 | public EClass getVariableProcessingResourceCost() { |
| 419 | return variableProcessingResourceCostEClass; |
| 420 | } |
| 421 | |
| 422 | /** |
| 423 | * <!-- begin-user-doc --> |
| 424 | * <!-- end-user-doc --> |
| 425 | * @generated |
| 426 | */ |
| 427 | public EReference getVariableProcessingResourceCost_ProcessingRateInitialFunction() { |
| 428 | return (EReference)variableProcessingResourceCostEClass.getEStructuralFeatures().get(0); |
| 429 | } |
| 430 | |
| 431 | /** |
| 432 | * <!-- begin-user-doc --> |
| 433 | * <!-- end-user-doc --> |
| 434 | * @generated |
| 435 | */ |
| 436 | public EReference getVariableProcessingResourceCost_ProcessingRateOperatingFunction() { |
| 437 | return (EReference)variableProcessingResourceCostEClass.getEStructuralFeatures().get(1); |
| 438 | } |
| 439 | |
| 440 | /** |
| 441 | * <!-- begin-user-doc --> |
| 442 | * <!-- end-user-doc --> |
| 443 | * @generated |
| 444 | */ |
| 445 | public EClass getScalarFunction() { |
| 446 | return scalarFunctionEClass; |
| 447 | } |
| 448 | |
| 449 | /** |
| 450 | * <!-- begin-user-doc --> |
| 451 | * <!-- end-user-doc --> |
| 452 | * @generated |
| 453 | */ |
| 454 | public EAttribute getScalarFunction_Specification() { |
| 455 | return (EAttribute)scalarFunctionEClass.getEStructuralFeatures().get(0); |
| 456 | } |
| 457 | |
| 458 | /** |
| 459 | * <!-- begin-user-doc --> |
| 460 | * <!-- end-user-doc --> |
| 461 | * @generated |
| 462 | */ |
| 463 | public EReference getScalarFunction_Term() { |
| 464 | return (EReference)scalarFunctionEClass.getEStructuralFeatures().get(1); |
| 465 | } |
| 466 | |
| 467 | /** |
| 468 | * <!-- begin-user-doc --> |
| 469 | * <!-- end-user-doc --> |
| 470 | * @generated |
| 471 | */ |
| 472 | public EClass getCostRepository() { |
| 473 | return costRepositoryEClass; |
| 474 | } |
| 475 | |
| 476 | /** |
| 477 | * <!-- begin-user-doc --> |
| 478 | * <!-- end-user-doc --> |
| 479 | * @generated |
| 480 | */ |
| 481 | public EReference getCostRepository_Cost() { |
| 482 | return (EReference)costRepositoryEClass.getEStructuralFeatures().get(0); |
| 483 | } |
| 484 | |
| 485 | /** |
| 486 | * <!-- begin-user-doc --> |
| 487 | * <!-- end-user-doc --> |
| 488 | * @generated |
| 489 | */ |
| 490 | public EClass getComponentCostPerInstance() { |
| 491 | return componentCostPerInstanceEClass; |
| 492 | } |
| 493 | |
| 494 | /** |
| 495 | * <!-- begin-user-doc --> |
| 496 | * <!-- end-user-doc --> |
| 497 | * @generated |
| 498 | */ |
| 499 | public EReference getComponentCostPerInstance_Allocation() { |
| 500 | return (EReference)componentCostPerInstanceEClass.getEStructuralFeatures().get(0); |
| 501 | } |
| 502 | |
| 503 | /** |
| 504 | * <!-- begin-user-doc --> |
| 505 | * <!-- end-user-doc --> |
| 506 | * @generated |
| 507 | */ |
| 508 | public costFactory getcostFactory() { |
| 509 | return (costFactory)getEFactoryInstance(); |
| 510 | } |
| 511 | |
| 512 | /** |
| 513 | * <!-- begin-user-doc --> |
| 514 | * <!-- end-user-doc --> |
| 515 | * @generated |
| 516 | */ |
| 517 | private boolean isCreated = false; |
| 518 | |
| 519 | /** |
| 520 | * Creates the meta-model objects for the package. This method is |
| 521 | * guarded to have no affect on any invocation but its first. |
| 522 | * <!-- begin-user-doc --> |
| 523 | * <!-- end-user-doc --> |
| 524 | * @generated |
| 525 | */ |
| 526 | public void createPackageContents() { |
| 527 | if (isCreated) return; |
| 528 | isCreated = true; |
| 529 | |
| 530 | // Create classes and their features |
| 531 | componentCostEClass = createEClass(COMPONENT_COST); |
| 532 | createEAttribute(componentCostEClass, COMPONENT_COST__COMPONENT_OPERATING_COST); |
| 533 | createEAttribute(componentCostEClass, COMPONENT_COST__COMPONENT_INITIAL_COST); |
| 534 | createEReference(componentCostEClass, COMPONENT_COST__REPOSITORY_COMPONENT); |
| 535 | |
| 536 | costEClass = createEClass(COST); |
| 537 | createEReference(costEClass, COST__ANNOTATED_ELEMENT); |
| 538 | createEAttribute(costEClass, COST__OPERATING_COST); |
| 539 | createEAttribute(costEClass, COST__INITIAL_COST); |
| 540 | |
| 541 | fixedLinkingResourceCostEClass = createEClass(FIXED_LINKING_RESOURCE_COST); |
| 542 | |
| 543 | linkingResourceCostEClass = createEClass(LINKING_RESOURCE_COST); |
| 544 | createEReference(linkingResourceCostEClass, LINKING_RESOURCE_COST__LINKINGRESOURCE); |
| 545 | |
| 546 | fixedProcessingResourceCostEClass = createEClass(FIXED_PROCESSING_RESOURCE_COST); |
| 547 | createEAttribute(fixedProcessingResourceCostEClass, FIXED_PROCESSING_RESOURCE_COST__FIXED_OPERATING_COST); |
| 548 | createEAttribute(fixedProcessingResourceCostEClass, FIXED_PROCESSING_RESOURCE_COST__FIXED_INITIAL_COST); |
| 549 | |
| 550 | processingResourceCostEClass = createEClass(PROCESSING_RESOURCE_COST); |
| 551 | createEReference(processingResourceCostEClass, PROCESSING_RESOURCE_COST__PROCESSINGRESOURCESPECIFICATION); |
| 552 | |
| 553 | variableCostEClass = createEClass(VARIABLE_COST); |
| 554 | createEAttribute(variableCostEClass, VARIABLE_COST__FIXED_INITIAL_COST); |
| 555 | createEAttribute(variableCostEClass, VARIABLE_COST__FIXED_OPERATING_COST); |
| 556 | |
| 557 | variableLinkingResourceCostEClass = createEClass(VARIABLE_LINKING_RESOURCE_COST); |
| 558 | createEAttribute(variableLinkingResourceCostEClass, VARIABLE_LINKING_RESOURCE_COST__BANDWITH_INITIAL_FACTOR); |
| 559 | createEAttribute(variableLinkingResourceCostEClass, VARIABLE_LINKING_RESOURCE_COST__BANDWIDTH_OPERATING_FACTOR); |
| 560 | |
| 561 | variableProcessingResourceCostEClass = createEClass(VARIABLE_PROCESSING_RESOURCE_COST); |
| 562 | createEReference(variableProcessingResourceCostEClass, VARIABLE_PROCESSING_RESOURCE_COST__PROCESSING_RATE_INITIAL_FUNCTION); |
| 563 | createEReference(variableProcessingResourceCostEClass, VARIABLE_PROCESSING_RESOURCE_COST__PROCESSING_RATE_OPERATING_FUNCTION); |
| 564 | |
| 565 | scalarFunctionEClass = createEClass(SCALAR_FUNCTION); |
| 566 | createEAttribute(scalarFunctionEClass, SCALAR_FUNCTION__SPECIFICATION); |
| 567 | createEReference(scalarFunctionEClass, SCALAR_FUNCTION__TERM); |
| 568 | |
| 569 | costRepositoryEClass = createEClass(COST_REPOSITORY); |
| 570 | createEReference(costRepositoryEClass, COST_REPOSITORY__COST); |
| 571 | |
| 572 | componentCostPerInstanceEClass = createEClass(COMPONENT_COST_PER_INSTANCE); |
| 573 | createEReference(componentCostPerInstanceEClass, COMPONENT_COST_PER_INSTANCE__ALLOCATION); |
| 574 | } |
| 575 | |
| 576 | /** |
| 577 | * <!-- begin-user-doc --> |
| 578 | * <!-- end-user-doc --> |
| 579 | * @generated |
| 580 | */ |
| 581 | private boolean isInitialized = false; |
| 582 | |
| 583 | /** |
| 584 | * Complete the initialization of the package and its meta-model. This |
| 585 | * method is guarded to have no affect on any invocation but its first. |
| 586 | * <!-- begin-user-doc --> |
| 587 | * <!-- end-user-doc --> |
| 588 | * @generated |
| 589 | */ |
| 590 | public void initializePackageContents() { |
| 591 | if (isInitialized) return; |
| 592 | isInitialized = true; |
| 593 | |
| 594 | // Initialize package |
| 595 | setName(eNAME); |
| 596 | setNsPrefix(eNS_PREFIX); |
| 597 | setNsURI(eNS_URI); |
| 598 | |
| 599 | // Obtain other dependent packages |
| 600 | RepositoryPackage theRepositoryPackage = (RepositoryPackage)EPackage.Registry.INSTANCE.getEPackage(RepositoryPackage.eNS_URI); |
| 601 | EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); |
| 602 | ResourceenvironmentPackage theResourceenvironmentPackage = (ResourceenvironmentPackage)EPackage.Registry.INSTANCE.getEPackage(ResourceenvironmentPackage.eNS_URI); |
| 603 | StoexPackage theStoexPackage = (StoexPackage)EPackage.Registry.INSTANCE.getEPackage(StoexPackage.eNS_URI); |
| 604 | AllocationPackage theAllocationPackage = (AllocationPackage)EPackage.Registry.INSTANCE.getEPackage(AllocationPackage.eNS_URI); |
| 605 | |
| 606 | // Create type parameters |
| 607 | |
| 608 | // Set bounds for type parameters |
| 609 | |
| 610 | // Add supertypes to classes |
| 611 | componentCostEClass.getESuperTypes().add(this.getCost()); |
| 612 | fixedLinkingResourceCostEClass.getESuperTypes().add(this.getLinkingResourceCost()); |
| 613 | fixedLinkingResourceCostEClass.getESuperTypes().add(this.getCost()); |
| 614 | linkingResourceCostEClass.getESuperTypes().add(this.getCost()); |
| 615 | fixedProcessingResourceCostEClass.getESuperTypes().add(this.getProcessingResourceCost()); |
| 616 | fixedProcessingResourceCostEClass.getESuperTypes().add(this.getCost()); |
| 617 | processingResourceCostEClass.getESuperTypes().add(this.getCost()); |
| 618 | variableCostEClass.getESuperTypes().add(this.getCost()); |
| 619 | variableLinkingResourceCostEClass.getESuperTypes().add(this.getVariableCost()); |
| 620 | variableLinkingResourceCostEClass.getESuperTypes().add(this.getLinkingResourceCost()); |
| 621 | variableProcessingResourceCostEClass.getESuperTypes().add(this.getVariableCost()); |
| 622 | variableProcessingResourceCostEClass.getESuperTypes().add(this.getProcessingResourceCost()); |
| 623 | componentCostPerInstanceEClass.getESuperTypes().add(this.getComponentCost()); |
| 624 | |
| 625 | // Initialize classes and features; add operations and parameters |
| 626 | initEClass(componentCostEClass, ComponentCost.class, "ComponentCost", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 627 | initEAttribute(getComponentCost_ComponentOperatingCost(), ecorePackage.getEDouble(), "componentOperatingCost", null, 1, 1, ComponentCost.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 628 | initEAttribute(getComponentCost_ComponentInitialCost(), ecorePackage.getEDouble(), "componentInitialCost", null, 1, 1, ComponentCost.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 629 | initEReference(getComponentCost_RepositoryComponent(), theRepositoryPackage.getRepositoryComponent(), null, "repositoryComponent", null, 1, 1, ComponentCost.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 630 | |
| 631 | initEClass(costEClass, Cost.class, "Cost", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 632 | initEReference(getCost_AnnotatedElement(), theEcorePackage.getEObject(), null, "annotatedElement", null, 1, 1, Cost.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, !IS_ORDERED); |
| 633 | initEAttribute(getCost_OperatingCost(), ecorePackage.getEDouble(), "operatingCost", null, 1, 1, Cost.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, !IS_ORDERED); |
| 634 | initEAttribute(getCost_InitialCost(), ecorePackage.getEDouble(), "initialCost", null, 1, 1, Cost.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, !IS_ORDERED); |
| 635 | |
| 636 | initEClass(fixedLinkingResourceCostEClass, FixedLinkingResourceCost.class, "FixedLinkingResourceCost", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 637 | |
| 638 | initEClass(linkingResourceCostEClass, LinkingResourceCost.class, "LinkingResourceCost", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 639 | initEReference(getLinkingResourceCost_Linkingresource(), theResourceenvironmentPackage.getLinkingResource(), null, "linkingresource", null, 1, 1, LinkingResourceCost.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 640 | |
| 641 | initEClass(fixedProcessingResourceCostEClass, FixedProcessingResourceCost.class, "FixedProcessingResourceCost", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 642 | initEAttribute(getFixedProcessingResourceCost_FixedOperatingCost(), theEcorePackage.getEDouble(), "fixedOperatingCost", null, 1, 1, FixedProcessingResourceCost.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 643 | initEAttribute(getFixedProcessingResourceCost_FixedInitialCost(), theEcorePackage.getEDouble(), "fixedInitialCost", null, 1, 1, FixedProcessingResourceCost.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 644 | |
| 645 | initEClass(processingResourceCostEClass, ProcessingResourceCost.class, "ProcessingResourceCost", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 646 | initEReference(getProcessingResourceCost_Processingresourcespecification(), theResourceenvironmentPackage.getProcessingResourceSpecification(), null, "processingresourcespecification", null, 1, 1, ProcessingResourceCost.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 647 | |
| 648 | initEClass(variableCostEClass, VariableCost.class, "VariableCost", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 649 | initEAttribute(getVariableCost_FixedInitialCost(), ecorePackage.getEDouble(), "fixedInitialCost", null, 1, 1, VariableCost.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 650 | initEAttribute(getVariableCost_FixedOperatingCost(), ecorePackage.getEDouble(), "fixedOperatingCost", null, 1, 1, VariableCost.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 651 | |
| 652 | initEClass(variableLinkingResourceCostEClass, VariableLinkingResourceCost.class, "VariableLinkingResourceCost", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 653 | initEAttribute(getVariableLinkingResourceCost_BandwithInitialFactor(), ecorePackage.getEDouble(), "bandwithInitialFactor", null, 1, 1, VariableLinkingResourceCost.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 654 | initEAttribute(getVariableLinkingResourceCost_BandwidthOperatingFactor(), ecorePackage.getEDouble(), "bandwidthOperatingFactor", null, 1, 1, VariableLinkingResourceCost.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 655 | |
| 656 | initEClass(variableProcessingResourceCostEClass, VariableProcessingResourceCost.class, "VariableProcessingResourceCost", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 657 | initEReference(getVariableProcessingResourceCost_ProcessingRateInitialFunction(), this.getScalarFunction(), null, "processingRateInitialFunction", null, 1, 1, VariableProcessingResourceCost.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 658 | initEReference(getVariableProcessingResourceCost_ProcessingRateOperatingFunction(), this.getScalarFunction(), null, "processingRateOperatingFunction", null, 1, 1, VariableProcessingResourceCost.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 659 | |
| 660 | initEClass(scalarFunctionEClass, ScalarFunction.class, "ScalarFunction", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 661 | initEAttribute(getScalarFunction_Specification(), ecorePackage.getEString(), "specification", null, 1, 1, ScalarFunction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 662 | initEReference(getScalarFunction_Term(), theStoexPackage.getTerm(), null, "term", null, 1, 1, ScalarFunction.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, !IS_ORDERED); |
| 663 | |
| 664 | initEClass(costRepositoryEClass, CostRepository.class, "CostRepository", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 665 | initEReference(getCostRepository_Cost(), this.getCost(), null, "cost", null, 0, -1, CostRepository.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 666 | |
| 667 | initEClass(componentCostPerInstanceEClass, ComponentCostPerInstance.class, "ComponentCostPerInstance", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 668 | initEReference(getComponentCostPerInstance_Allocation(), theAllocationPackage.getAllocation(), null, "allocation", null, 0, 1, ComponentCostPerInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 669 | |
| 670 | // Create resource |
| 671 | createResource(eNS_URI); |
| 672 | |
| 673 | // Create annotations |
| 674 | // http:///org/eclipse/emf/ecore/util/ExtendedMetaData |
| 675 | createExtendedMetaDataAnnotations(); |
| 676 | } |
| 677 | |
| 678 | /** |
| 679 | * Initializes the annotations for <b>http:///org/eclipse/emf/ecore/util/ExtendedMetaData</b>. |
| 680 | * <!-- begin-user-doc --> |
| 681 | * <!-- end-user-doc --> |
| 682 | * @generated |
| 683 | */ |
| 684 | protected void createExtendedMetaDataAnnotations() { |
| 685 | String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData"; |
| 686 | addAnnotation |
| 687 | (getScalarFunction_Term(), |
| 688 | source, |
| 689 | new String[] { |
| 690 | "namespace", "" |
| 691 | }); |
| 692 | } |
| 693 | |
| 694 | } //costPackageImpl |