| 1 | /** |
| 2 | * Copyright 2008, sdq.ipd.uka.de, U KA |
| 3 | * |
| 4 | * $Id$ |
| 5 | */ |
| 6 | package de.uka.ipd.sdq.simucomframework.simucomstatus.impl; |
| 7 | |
| 8 | import de.uka.ipd.sdq.simucomframework.simucomstatus.Action; |
| 9 | import de.uka.ipd.sdq.simucomframework.simucomstatus.ActiveResouce; |
| 10 | import de.uka.ipd.sdq.simucomframework.simucomstatus.PassiveResource; |
| 11 | import de.uka.ipd.sdq.simucomframework.simucomstatus.SimuComStatus; |
| 12 | import de.uka.ipd.sdq.simucomframework.simucomstatus.SimucomstatusFactory; |
| 13 | import de.uka.ipd.sdq.simucomframework.simucomstatus.SimucomstatusPackage; |
| 14 | import de.uka.ipd.sdq.simucomframework.simucomstatus.SimulatedProcesses; |
| 15 | import de.uka.ipd.sdq.simucomframework.simucomstatus.SimulatedResources; |
| 16 | import de.uka.ipd.sdq.simucomframework.simucomstatus.WaitForAcquire; |
| 17 | import de.uka.ipd.sdq.simucomframework.simucomstatus.WaitForDelay; |
| 18 | import de.uka.ipd.sdq.simucomframework.simucomstatus.WaitForDemand; |
| 19 | |
| 20 | import org.eclipse.emf.ecore.EAttribute; |
| 21 | import org.eclipse.emf.ecore.EClass; |
| 22 | import org.eclipse.emf.ecore.EPackage; |
| 23 | import org.eclipse.emf.ecore.EReference; |
| 24 | |
| 25 | import org.eclipse.emf.ecore.impl.EPackageImpl; |
| 26 | |
| 27 | /** |
| 28 | * <!-- begin-user-doc --> |
| 29 | * An implementation of the model <b>Package</b>. |
| 30 | * <!-- end-user-doc --> |
| 31 | * @generated |
| 32 | */ |
| 33 | public class SimucomstatusPackageImpl extends EPackageImpl implements SimucomstatusPackage { |
| 34 | /** |
| 35 | * <!-- begin-user-doc --> |
| 36 | * <!-- end-user-doc --> |
| 37 | * @generated |
| 38 | */ |
| 39 | private EClass simuComStatusEClass = null; |
| 40 | |
| 41 | /** |
| 42 | * <!-- begin-user-doc --> |
| 43 | * <!-- end-user-doc --> |
| 44 | * @generated |
| 45 | */ |
| 46 | private EClass simulatedProcessesEClass = null; |
| 47 | |
| 48 | /** |
| 49 | * <!-- begin-user-doc --> |
| 50 | * <!-- end-user-doc --> |
| 51 | * @generated |
| 52 | */ |
| 53 | private EClass processEClass = null; |
| 54 | |
| 55 | /** |
| 56 | * <!-- begin-user-doc --> |
| 57 | * <!-- end-user-doc --> |
| 58 | * @generated |
| 59 | */ |
| 60 | private EClass actionEClass = null; |
| 61 | |
| 62 | /** |
| 63 | * <!-- begin-user-doc --> |
| 64 | * <!-- end-user-doc --> |
| 65 | * @generated |
| 66 | */ |
| 67 | private EClass simulatedResourcesEClass = null; |
| 68 | |
| 69 | /** |
| 70 | * <!-- begin-user-doc --> |
| 71 | * <!-- end-user-doc --> |
| 72 | * @generated |
| 73 | */ |
| 74 | private EClass activeResouceEClass = null; |
| 75 | |
| 76 | /** |
| 77 | * <!-- begin-user-doc --> |
| 78 | * <!-- end-user-doc --> |
| 79 | * @generated |
| 80 | */ |
| 81 | private EClass waitForDemandEClass = null; |
| 82 | |
| 83 | /** |
| 84 | * <!-- begin-user-doc --> |
| 85 | * <!-- end-user-doc --> |
| 86 | * @generated |
| 87 | */ |
| 88 | private EClass passiveResourceEClass = null; |
| 89 | |
| 90 | /** |
| 91 | * <!-- begin-user-doc --> |
| 92 | * <!-- end-user-doc --> |
| 93 | * @generated |
| 94 | */ |
| 95 | private EClass waitForAcquireEClass = null; |
| 96 | |
| 97 | /** |
| 98 | * <!-- begin-user-doc --> |
| 99 | * <!-- end-user-doc --> |
| 100 | * @generated |
| 101 | */ |
| 102 | private EClass waitForDelayEClass = null; |
| 103 | |
| 104 | /** |
| 105 | * Creates an instance of the model <b>Package</b>, registered with |
| 106 | * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package |
| 107 | * package URI value. |
| 108 | * <p>Note: the correct way to create the package is via the static |
| 109 | * factory method {@link #init init()}, which also performs |
| 110 | * initialization of the package, or returns the registered package, |
| 111 | * if one already exists. |
| 112 | * <!-- begin-user-doc --> |
| 113 | * <!-- end-user-doc --> |
| 114 | * @see org.eclipse.emf.ecore.EPackage.Registry |
| 115 | * @see de.uka.ipd.sdq.simucomframework.simucomstatus.SimucomstatusPackage#eNS_URI |
| 116 | * @see #init() |
| 117 | * @generated |
| 118 | */ |
| 119 | private SimucomstatusPackageImpl() { |
| 120 | super(eNS_URI, SimucomstatusFactory.eINSTANCE); |
| 121 | } |
| 122 | |
| 123 | /** |
| 124 | * <!-- begin-user-doc --> |
| 125 | * <!-- end-user-doc --> |
| 126 | * @generated |
| 127 | */ |
| 128 | private static boolean isInited = false; |
| 129 | |
| 130 | /** |
| 131 | * Creates, registers, and initializes the <b>Package</b> for this |
| 132 | * model, and for any others upon which it depends. Simple |
| 133 | * dependencies are satisfied by calling this method on all |
| 134 | * dependent packages before doing anything else. This method drives |
| 135 | * initialization for interdependent packages directly, in parallel |
| 136 | * with this package, itself. |
| 137 | * <p>Of this package and its interdependencies, all packages which |
| 138 | * have not yet been registered by their URI values are first created |
| 139 | * and registered. The packages are then initialized in two steps: |
| 140 | * meta-model objects for all of the packages are created before any |
| 141 | * are initialized, since one package's meta-model objects may refer to |
| 142 | * those of another. |
| 143 | * <p>Invocation of this method will not affect any packages that have |
| 144 | * already been initialized. |
| 145 | * <!-- begin-user-doc --> |
| 146 | * <!-- end-user-doc --> |
| 147 | * @see #eNS_URI |
| 148 | * @see #createPackageContents() |
| 149 | * @see #initializePackageContents() |
| 150 | * @generated |
| 151 | */ |
| 152 | public static SimucomstatusPackage init() { |
| 153 | if (isInited) return (SimucomstatusPackage)EPackage.Registry.INSTANCE.getEPackage(SimucomstatusPackage.eNS_URI); |
| 154 | |
| 155 | // Obtain or create and register package |
| 156 | SimucomstatusPackageImpl theSimucomstatusPackage = (SimucomstatusPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof SimucomstatusPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new SimucomstatusPackageImpl()); |
| 157 | |
| 158 | isInited = true; |
| 159 | |
| 160 | // Create package meta-data objects |
| 161 | theSimucomstatusPackage.createPackageContents(); |
| 162 | |
| 163 | // Initialize created meta-data |
| 164 | theSimucomstatusPackage.initializePackageContents(); |
| 165 | |
| 166 | // Mark meta-data to indicate it can't be changed |
| 167 | theSimucomstatusPackage.freeze(); |
| 168 | |
| 169 | return theSimucomstatusPackage; |
| 170 | } |
| 171 | |
| 172 | /** |
| 173 | * <!-- begin-user-doc --> |
| 174 | * <!-- end-user-doc --> |
| 175 | * @generated |
| 176 | */ |
| 177 | public EClass getSimuComStatus() { |
| 178 | return simuComStatusEClass; |
| 179 | } |
| 180 | |
| 181 | /** |
| 182 | * <!-- begin-user-doc --> |
| 183 | * <!-- end-user-doc --> |
| 184 | * @generated |
| 185 | */ |
| 186 | public EReference getSimuComStatus_ProcessStatus() { |
| 187 | return (EReference)simuComStatusEClass.getEStructuralFeatures().get(0); |
| 188 | } |
| 189 | |
| 190 | /** |
| 191 | * <!-- begin-user-doc --> |
| 192 | * <!-- end-user-doc --> |
| 193 | * @generated |
| 194 | */ |
| 195 | public EReference getSimuComStatus_ResourceStatus() { |
| 196 | return (EReference)simuComStatusEClass.getEStructuralFeatures().get(1); |
| 197 | } |
| 198 | |
| 199 | /** |
| 200 | * <!-- begin-user-doc --> |
| 201 | * <!-- end-user-doc --> |
| 202 | * @generated |
| 203 | */ |
| 204 | public EAttribute getSimuComStatus_CurrentSimulationTime() { |
| 205 | return (EAttribute)simuComStatusEClass.getEStructuralFeatures().get(2); |
| 206 | } |
| 207 | |
| 208 | /** |
| 209 | * <!-- begin-user-doc --> |
| 210 | * <!-- end-user-doc --> |
| 211 | * @generated |
| 212 | */ |
| 213 | public EClass getSimulatedProcesses() { |
| 214 | return simulatedProcessesEClass; |
| 215 | } |
| 216 | |
| 217 | /** |
| 218 | * <!-- begin-user-doc --> |
| 219 | * <!-- end-user-doc --> |
| 220 | * @generated |
| 221 | */ |
| 222 | public EReference getSimulatedProcesses_Processes() { |
| 223 | return (EReference)simulatedProcessesEClass.getEStructuralFeatures().get(0); |
| 224 | } |
| 225 | |
| 226 | /** |
| 227 | * <!-- begin-user-doc --> |
| 228 | * <!-- end-user-doc --> |
| 229 | * @generated |
| 230 | */ |
| 231 | public EClass getProcess() { |
| 232 | return processEClass; |
| 233 | } |
| 234 | |
| 235 | /** |
| 236 | * <!-- begin-user-doc --> |
| 237 | * <!-- end-user-doc --> |
| 238 | * @generated |
| 239 | */ |
| 240 | public EReference getProcess_CurrentAction() { |
| 241 | return (EReference)processEClass.getEStructuralFeatures().get(0); |
| 242 | } |
| 243 | |
| 244 | /** |
| 245 | * <!-- begin-user-doc --> |
| 246 | * <!-- end-user-doc --> |
| 247 | * @generated |
| 248 | */ |
| 249 | public EAttribute getProcess_Id() { |
| 250 | return (EAttribute)processEClass.getEStructuralFeatures().get(1); |
| 251 | } |
| 252 | |
| 253 | /** |
| 254 | * <!-- begin-user-doc --> |
| 255 | * <!-- end-user-doc --> |
| 256 | * @generated |
| 257 | */ |
| 258 | public EAttribute getProcess_ProcessStartTime() { |
| 259 | return (EAttribute)processEClass.getEStructuralFeatures().get(2); |
| 260 | } |
| 261 | |
| 262 | /** |
| 263 | * <!-- begin-user-doc --> |
| 264 | * <!-- end-user-doc --> |
| 265 | * @generated |
| 266 | */ |
| 267 | public EClass getAction() { |
| 268 | return actionEClass; |
| 269 | } |
| 270 | |
| 271 | /** |
| 272 | * <!-- begin-user-doc --> |
| 273 | * <!-- end-user-doc --> |
| 274 | * @generated |
| 275 | */ |
| 276 | public EAttribute getAction_ActionStartTime() { |
| 277 | return (EAttribute)actionEClass.getEStructuralFeatures().get(0); |
| 278 | } |
| 279 | |
| 280 | /** |
| 281 | * <!-- begin-user-doc --> |
| 282 | * <!-- end-user-doc --> |
| 283 | * @generated |
| 284 | */ |
| 285 | public EAttribute getAction_ActionDuration() { |
| 286 | return (EAttribute)actionEClass.getEStructuralFeatures().get(1); |
| 287 | } |
| 288 | |
| 289 | /** |
| 290 | * <!-- begin-user-doc --> |
| 291 | * <!-- end-user-doc --> |
| 292 | * @generated |
| 293 | */ |
| 294 | public EClass getSimulatedResources() { |
| 295 | return simulatedResourcesEClass; |
| 296 | } |
| 297 | |
| 298 | /** |
| 299 | * <!-- begin-user-doc --> |
| 300 | * <!-- end-user-doc --> |
| 301 | * @generated |
| 302 | */ |
| 303 | public EReference getSimulatedResources_ActiveResources() { |
| 304 | return (EReference)simulatedResourcesEClass.getEStructuralFeatures().get(0); |
| 305 | } |
| 306 | |
| 307 | /** |
| 308 | * <!-- begin-user-doc --> |
| 309 | * <!-- end-user-doc --> |
| 310 | * @generated |
| 311 | */ |
| 312 | public EReference getSimulatedResources_PassiveResources() { |
| 313 | return (EReference)simulatedResourcesEClass.getEStructuralFeatures().get(1); |
| 314 | } |
| 315 | |
| 316 | /** |
| 317 | * <!-- begin-user-doc --> |
| 318 | * <!-- end-user-doc --> |
| 319 | * @generated |
| 320 | */ |
| 321 | public EClass getActiveResouce() { |
| 322 | return activeResouceEClass; |
| 323 | } |
| 324 | |
| 325 | /** |
| 326 | * <!-- begin-user-doc --> |
| 327 | * <!-- end-user-doc --> |
| 328 | * @generated |
| 329 | */ |
| 330 | public EReference getActiveResouce_WaitingDemands() { |
| 331 | return (EReference)activeResouceEClass.getEStructuralFeatures().get(0); |
| 332 | } |
| 333 | |
| 334 | /** |
| 335 | * <!-- begin-user-doc --> |
| 336 | * <!-- end-user-doc --> |
| 337 | * @generated |
| 338 | */ |
| 339 | public EAttribute getActiveResouce_Id() { |
| 340 | return (EAttribute)activeResouceEClass.getEStructuralFeatures().get(1); |
| 341 | } |
| 342 | |
| 343 | /** |
| 344 | * <!-- begin-user-doc --> |
| 345 | * <!-- end-user-doc --> |
| 346 | * @generated |
| 347 | */ |
| 348 | public EClass getWaitForDemand() { |
| 349 | return waitForDemandEClass; |
| 350 | } |
| 351 | |
| 352 | /** |
| 353 | * <!-- begin-user-doc --> |
| 354 | * <!-- end-user-doc --> |
| 355 | * @generated |
| 356 | */ |
| 357 | public EAttribute getWaitForDemand_Demand() { |
| 358 | return (EAttribute)waitForDemandEClass.getEStructuralFeatures().get(0); |
| 359 | } |
| 360 | |
| 361 | /** |
| 362 | * <!-- begin-user-doc --> |
| 363 | * <!-- end-user-doc --> |
| 364 | * @generated |
| 365 | */ |
| 366 | public EReference getWaitForDemand_Resource() { |
| 367 | return (EReference)waitForDemandEClass.getEStructuralFeatures().get(1); |
| 368 | } |
| 369 | |
| 370 | /** |
| 371 | * <!-- begin-user-doc --> |
| 372 | * <!-- end-user-doc --> |
| 373 | * @generated |
| 374 | */ |
| 375 | public EClass getPassiveResource() { |
| 376 | return passiveResourceEClass; |
| 377 | } |
| 378 | |
| 379 | /** |
| 380 | * <!-- begin-user-doc --> |
| 381 | * <!-- end-user-doc --> |
| 382 | * @generated |
| 383 | */ |
| 384 | public EReference getPassiveResource_WaitingProcesses() { |
| 385 | return (EReference)passiveResourceEClass.getEStructuralFeatures().get(0); |
| 386 | } |
| 387 | |
| 388 | /** |
| 389 | * <!-- begin-user-doc --> |
| 390 | * <!-- end-user-doc --> |
| 391 | * @generated |
| 392 | */ |
| 393 | public EAttribute getPassiveResource_InitialResourceCount() { |
| 394 | return (EAttribute)passiveResourceEClass.getEStructuralFeatures().get(1); |
| 395 | } |
| 396 | |
| 397 | /** |
| 398 | * <!-- begin-user-doc --> |
| 399 | * <!-- end-user-doc --> |
| 400 | * @generated |
| 401 | */ |
| 402 | public EAttribute getPassiveResource_ResourcesAvailable() { |
| 403 | return (EAttribute)passiveResourceEClass.getEStructuralFeatures().get(2); |
| 404 | } |
| 405 | |
| 406 | /** |
| 407 | * <!-- begin-user-doc --> |
| 408 | * <!-- end-user-doc --> |
| 409 | * @generated |
| 410 | */ |
| 411 | public EAttribute getPassiveResource_Id() { |
| 412 | return (EAttribute)passiveResourceEClass.getEStructuralFeatures().get(3); |
| 413 | } |
| 414 | |
| 415 | /** |
| 416 | * <!-- begin-user-doc --> |
| 417 | * <!-- end-user-doc --> |
| 418 | * @generated |
| 419 | */ |
| 420 | public EClass getWaitForAcquire() { |
| 421 | return waitForAcquireEClass; |
| 422 | } |
| 423 | |
| 424 | /** |
| 425 | * <!-- begin-user-doc --> |
| 426 | * <!-- end-user-doc --> |
| 427 | * @generated |
| 428 | */ |
| 429 | public EReference getWaitForAcquire_Resource() { |
| 430 | return (EReference)waitForAcquireEClass.getEStructuralFeatures().get(0); |
| 431 | } |
| 432 | |
| 433 | /** |
| 434 | * <!-- begin-user-doc --> |
| 435 | * <!-- end-user-doc --> |
| 436 | * @generated |
| 437 | */ |
| 438 | public EClass getWaitForDelay() { |
| 439 | return waitForDelayEClass; |
| 440 | } |
| 441 | |
| 442 | /** |
| 443 | * <!-- begin-user-doc --> |
| 444 | * <!-- end-user-doc --> |
| 445 | * @generated |
| 446 | */ |
| 447 | public EAttribute getWaitForDelay_Delay() { |
| 448 | return (EAttribute)waitForDelayEClass.getEStructuralFeatures().get(0); |
| 449 | } |
| 450 | |
| 451 | /** |
| 452 | * <!-- begin-user-doc --> |
| 453 | * <!-- end-user-doc --> |
| 454 | * @generated |
| 455 | */ |
| 456 | public SimucomstatusFactory getSimucomstatusFactory() { |
| 457 | return (SimucomstatusFactory)getEFactoryInstance(); |
| 458 | } |
| 459 | |
| 460 | /** |
| 461 | * <!-- begin-user-doc --> |
| 462 | * <!-- end-user-doc --> |
| 463 | * @generated |
| 464 | */ |
| 465 | private boolean isCreated = false; |
| 466 | |
| 467 | /** |
| 468 | * Creates the meta-model objects for the package. This method is |
| 469 | * guarded to have no affect on any invocation but its first. |
| 470 | * <!-- begin-user-doc --> |
| 471 | * <!-- end-user-doc --> |
| 472 | * @generated |
| 473 | */ |
| 474 | public void createPackageContents() { |
| 475 | if (isCreated) return; |
| 476 | isCreated = true; |
| 477 | |
| 478 | // Create classes and their features |
| 479 | simuComStatusEClass = createEClass(SIMU_COM_STATUS); |
| 480 | createEReference(simuComStatusEClass, SIMU_COM_STATUS__PROCESS_STATUS); |
| 481 | createEReference(simuComStatusEClass, SIMU_COM_STATUS__RESOURCE_STATUS); |
| 482 | createEAttribute(simuComStatusEClass, SIMU_COM_STATUS__CURRENT_SIMULATION_TIME); |
| 483 | |
| 484 | simulatedProcessesEClass = createEClass(SIMULATED_PROCESSES); |
| 485 | createEReference(simulatedProcessesEClass, SIMULATED_PROCESSES__PROCESSES); |
| 486 | |
| 487 | processEClass = createEClass(PROCESS); |
| 488 | createEReference(processEClass, PROCESS__CURRENT_ACTION); |
| 489 | createEAttribute(processEClass, PROCESS__ID); |
| 490 | createEAttribute(processEClass, PROCESS__PROCESS_START_TIME); |
| 491 | |
| 492 | actionEClass = createEClass(ACTION); |
| 493 | createEAttribute(actionEClass, ACTION__ACTION_START_TIME); |
| 494 | createEAttribute(actionEClass, ACTION__ACTION_DURATION); |
| 495 | |
| 496 | simulatedResourcesEClass = createEClass(SIMULATED_RESOURCES); |
| 497 | createEReference(simulatedResourcesEClass, SIMULATED_RESOURCES__ACTIVE_RESOURCES); |
| 498 | createEReference(simulatedResourcesEClass, SIMULATED_RESOURCES__PASSIVE_RESOURCES); |
| 499 | |
| 500 | activeResouceEClass = createEClass(ACTIVE_RESOUCE); |
| 501 | createEReference(activeResouceEClass, ACTIVE_RESOUCE__WAITING_DEMANDS); |
| 502 | createEAttribute(activeResouceEClass, ACTIVE_RESOUCE__ID); |
| 503 | |
| 504 | waitForDemandEClass = createEClass(WAIT_FOR_DEMAND); |
| 505 | createEAttribute(waitForDemandEClass, WAIT_FOR_DEMAND__DEMAND); |
| 506 | createEReference(waitForDemandEClass, WAIT_FOR_DEMAND__RESOURCE); |
| 507 | |
| 508 | passiveResourceEClass = createEClass(PASSIVE_RESOURCE); |
| 509 | createEReference(passiveResourceEClass, PASSIVE_RESOURCE__WAITING_PROCESSES); |
| 510 | createEAttribute(passiveResourceEClass, PASSIVE_RESOURCE__INITIAL_RESOURCE_COUNT); |
| 511 | createEAttribute(passiveResourceEClass, PASSIVE_RESOURCE__RESOURCES_AVAILABLE); |
| 512 | createEAttribute(passiveResourceEClass, PASSIVE_RESOURCE__ID); |
| 513 | |
| 514 | waitForAcquireEClass = createEClass(WAIT_FOR_ACQUIRE); |
| 515 | createEReference(waitForAcquireEClass, WAIT_FOR_ACQUIRE__RESOURCE); |
| 516 | |
| 517 | waitForDelayEClass = createEClass(WAIT_FOR_DELAY); |
| 518 | createEAttribute(waitForDelayEClass, WAIT_FOR_DELAY__DELAY); |
| 519 | } |
| 520 | |
| 521 | /** |
| 522 | * <!-- begin-user-doc --> |
| 523 | * <!-- end-user-doc --> |
| 524 | * @generated |
| 525 | */ |
| 526 | private boolean isInitialized = false; |
| 527 | |
| 528 | /** |
| 529 | * Complete the initialization of the package and its meta-model. This |
| 530 | * method is guarded to have no affect on any invocation but its first. |
| 531 | * <!-- begin-user-doc --> |
| 532 | * <!-- end-user-doc --> |
| 533 | * @generated |
| 534 | */ |
| 535 | public void initializePackageContents() { |
| 536 | if (isInitialized) return; |
| 537 | isInitialized = true; |
| 538 | |
| 539 | // Initialize package |
| 540 | setName(eNAME); |
| 541 | setNsPrefix(eNS_PREFIX); |
| 542 | setNsURI(eNS_URI); |
| 543 | |
| 544 | // Create type parameters |
| 545 | |
| 546 | // Set bounds for type parameters |
| 547 | |
| 548 | // Add supertypes to classes |
| 549 | waitForDemandEClass.getESuperTypes().add(this.getAction()); |
| 550 | waitForAcquireEClass.getESuperTypes().add(this.getAction()); |
| 551 | waitForDelayEClass.getESuperTypes().add(this.getAction()); |
| 552 | |
| 553 | // Initialize classes and features; add operations and parameters |
| 554 | initEClass(simuComStatusEClass, SimuComStatus.class, "SimuComStatus", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 555 | initEReference(getSimuComStatus_ProcessStatus(), this.getSimulatedProcesses(), null, "processStatus", null, 1, 1, SimuComStatus.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 556 | initEReference(getSimuComStatus_ResourceStatus(), this.getSimulatedResources(), null, "resourceStatus", null, 1, 1, SimuComStatus.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 557 | initEAttribute(getSimuComStatus_CurrentSimulationTime(), ecorePackage.getEDouble(), "currentSimulationTime", null, 1, 1, SimuComStatus.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 558 | |
| 559 | initEClass(simulatedProcessesEClass, SimulatedProcesses.class, "SimulatedProcesses", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 560 | initEReference(getSimulatedProcesses_Processes(), this.getProcess(), null, "processes", null, 0, -1, SimulatedProcesses.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 561 | |
| 562 | initEClass(processEClass, de.uka.ipd.sdq.simucomframework.simucomstatus.Process.class, "Process", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 563 | initEReference(getProcess_CurrentAction(), this.getAction(), null, "currentAction", null, 1, 1, de.uka.ipd.sdq.simucomframework.simucomstatus.Process.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 564 | initEAttribute(getProcess_Id(), ecorePackage.getEString(), "id", null, 1, 1, de.uka.ipd.sdq.simucomframework.simucomstatus.Process.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 565 | initEAttribute(getProcess_ProcessStartTime(), ecorePackage.getEDouble(), "processStartTime", null, 1, 1, de.uka.ipd.sdq.simucomframework.simucomstatus.Process.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 566 | |
| 567 | initEClass(actionEClass, Action.class, "Action", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 568 | initEAttribute(getAction_ActionStartTime(), ecorePackage.getEDouble(), "actionStartTime", null, 1, 1, Action.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 569 | initEAttribute(getAction_ActionDuration(), ecorePackage.getEDouble(), "actionDuration", null, 1, 1, Action.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 570 | |
| 571 | initEClass(simulatedResourcesEClass, SimulatedResources.class, "SimulatedResources", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 572 | initEReference(getSimulatedResources_ActiveResources(), this.getActiveResouce(), null, "activeResources", null, 0, -1, SimulatedResources.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 573 | initEReference(getSimulatedResources_PassiveResources(), this.getPassiveResource(), null, "passiveResources", null, 0, -1, SimulatedResources.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 574 | |
| 575 | initEClass(activeResouceEClass, ActiveResouce.class, "ActiveResouce", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 576 | initEReference(getActiveResouce_WaitingDemands(), this.getWaitForDemand(), this.getWaitForDemand_Resource(), "waitingDemands", null, 0, -1, ActiveResouce.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 577 | initEAttribute(getActiveResouce_Id(), ecorePackage.getEString(), "id", null, 1, 1, ActiveResouce.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 578 | |
| 579 | initEClass(waitForDemandEClass, WaitForDemand.class, "WaitForDemand", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 580 | initEAttribute(getWaitForDemand_Demand(), ecorePackage.getEDouble(), "demand", null, 1, 1, WaitForDemand.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 581 | initEReference(getWaitForDemand_Resource(), this.getActiveResouce(), this.getActiveResouce_WaitingDemands(), "resource", null, 1, 1, WaitForDemand.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 582 | |
| 583 | initEClass(passiveResourceEClass, PassiveResource.class, "PassiveResource", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 584 | initEReference(getPassiveResource_WaitingProcesses(), this.getWaitForAcquire(), this.getWaitForAcquire_Resource(), "waitingProcesses", null, 0, -1, PassiveResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 585 | initEAttribute(getPassiveResource_InitialResourceCount(), ecorePackage.getEDouble(), "initialResourceCount", null, 1, 1, PassiveResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 586 | initEAttribute(getPassiveResource_ResourcesAvailable(), ecorePackage.getEDouble(), "resourcesAvailable", null, 1, 1, PassiveResource.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 587 | initEAttribute(getPassiveResource_Id(), ecorePackage.getEString(), "id", null, 1, 1, PassiveResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 588 | |
| 589 | initEClass(waitForAcquireEClass, WaitForAcquire.class, "WaitForAcquire", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 590 | initEReference(getWaitForAcquire_Resource(), this.getPassiveResource(), this.getPassiveResource_WaitingProcesses(), "resource", null, 1, 1, WaitForAcquire.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 591 | |
| 592 | initEClass(waitForDelayEClass, WaitForDelay.class, "WaitForDelay", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 593 | initEAttribute(getWaitForDelay_Delay(), ecorePackage.getEDouble(), "delay", null, 1, 1, WaitForDelay.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 594 | |
| 595 | // Create resource |
| 596 | createResource(eNS_URI); |
| 597 | } |
| 598 | |
| 599 | } //SimucomstatusPackageImpl |