diff options
author | Kristóf Marussy <kris7topher@gmail.com> | 2019-06-08 19:17:34 -0400 |
---|---|---|
committer | Kristóf Marussy <kris7topher@gmail.com> | 2019-06-08 19:17:34 -0400 |
commit | b21af04ea821c3daa9ce8a6d26c63e9cd198f9a5 (patch) | |
tree | 4be566b25415ca97cb007b5da7d89f216ef515b2 /Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SatellitePackageImpl.java | |
parent | Merge remote-tracking branch 'origin/master' into kris (diff) | |
download | VIATRA-Generator-b21af04ea821c3daa9ce8a6d26c63e9cd198f9a5.tar.gz VIATRA-Generator-b21af04ea821c3daa9ce8a6d26c63e9cd198f9a5.tar.zst VIATRA-Generator-b21af04ea821c3daa9ce8a6d26c63e9cd198f9a5.zip |
Trying to simplify Satellite case study
Diffstat (limited to 'Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SatellitePackageImpl.java')
-rw-r--r-- | Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SatellitePackageImpl.java | 154 |
1 files changed, 52 insertions, 102 deletions
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SatellitePackageImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SatellitePackageImpl.java index 2347fe07..daec68a9 100644 --- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SatellitePackageImpl.java +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SatellitePackageImpl.java | |||
@@ -4,29 +4,28 @@ package satellite.impl; | |||
4 | 4 | ||
5 | import org.eclipse.emf.ecore.EAttribute; | 5 | import org.eclipse.emf.ecore.EAttribute; |
6 | import org.eclipse.emf.ecore.EClass; | 6 | import org.eclipse.emf.ecore.EClass; |
7 | import org.eclipse.emf.ecore.EEnum; | ||
8 | import org.eclipse.emf.ecore.EPackage; | 7 | import org.eclipse.emf.ecore.EPackage; |
9 | import org.eclipse.emf.ecore.EReference; | 8 | import org.eclipse.emf.ecore.EReference; |
10 | 9 | ||
11 | import org.eclipse.emf.ecore.impl.EPackageImpl; | 10 | import org.eclipse.emf.ecore.impl.EPackageImpl; |
12 | |||
13 | import satellite.AntennaGain; | ||
14 | import satellite.CommSubsystem; | 11 | import satellite.CommSubsystem; |
15 | import satellite.CommunicatingElement; | 12 | import satellite.CommunicatingElement; |
16 | import satellite.ConstellationMission; | 13 | import satellite.ConstellationMission; |
14 | import satellite.CubeSat; | ||
17 | import satellite.CubeSat3U; | 15 | import satellite.CubeSat3U; |
18 | import satellite.CubeSat6U; | 16 | import satellite.CubeSat6U; |
19 | import satellite.DirectedCommunicationLink; | 17 | import satellite.DirectedCommunicationLink; |
20 | import satellite.GroundStationNetwork; | 18 | import satellite.GroundStationNetwork; |
21 | import satellite.InterferometryMission; | 19 | import satellite.InterferometryMission; |
22 | import satellite.InterferometryPayload; | 20 | import satellite.InterferometryPayload; |
21 | import satellite.KaCommSubsystem; | ||
23 | import satellite.Payload; | 22 | import satellite.Payload; |
24 | import satellite.SatelliteFactory; | 23 | import satellite.SatelliteFactory; |
25 | import satellite.SatellitePackage; | 24 | import satellite.SatellitePackage; |
26 | import satellite.SmallSat; | 25 | import satellite.SmallSat; |
27 | import satellite.Spacecraft; | 26 | import satellite.Spacecraft; |
28 | import satellite.SpacecraftKind; | 27 | import satellite.UHFCommSubsystem; |
29 | import satellite.TransceiverBand; | 28 | import satellite.XCommSubsystem; |
30 | 29 | ||
31 | /** | 30 | /** |
32 | * <!-- begin-user-doc --> | 31 | * <!-- begin-user-doc --> |
@@ -124,21 +123,28 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
124 | * <!-- end-user-doc --> | 123 | * <!-- end-user-doc --> |
125 | * @generated | 124 | * @generated |
126 | */ | 125 | */ |
127 | private EEnum transceiverBandEEnum = null; | 126 | private EClass cubeSatEClass = null; |
127 | |||
128 | /** | ||
129 | * <!-- begin-user-doc --> | ||
130 | * <!-- end-user-doc --> | ||
131 | * @generated | ||
132 | */ | ||
133 | private EClass uhfCommSubsystemEClass = null; | ||
128 | 134 | ||
129 | /** | 135 | /** |
130 | * <!-- begin-user-doc --> | 136 | * <!-- begin-user-doc --> |
131 | * <!-- end-user-doc --> | 137 | * <!-- end-user-doc --> |
132 | * @generated | 138 | * @generated |
133 | */ | 139 | */ |
134 | private EEnum antennaGainEEnum = null; | 140 | private EClass xCommSubsystemEClass = null; |
135 | 141 | ||
136 | /** | 142 | /** |
137 | * <!-- begin-user-doc --> | 143 | * <!-- begin-user-doc --> |
138 | * <!-- end-user-doc --> | 144 | * <!-- end-user-doc --> |
139 | * @generated | 145 | * @generated |
140 | */ | 146 | */ |
141 | private EEnum spacecraftKindEEnum = null; | 147 | private EClass kaCommSubsystemEClass = null; |
142 | 148 | ||
143 | /** | 149 | /** |
144 | * Creates an instance of the model <b>Package</b>, registered with | 150 | * Creates an instance of the model <b>Package</b>, registered with |
@@ -320,16 +326,6 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
320 | * @generated | 326 | * @generated |
321 | */ | 327 | */ |
322 | @Override | 328 | @Override |
323 | public EAttribute getSpacecraft_Kind() { | ||
324 | return (EAttribute) spacecraftEClass.getEStructuralFeatures().get(1); | ||
325 | } | ||
326 | |||
327 | /** | ||
328 | * <!-- begin-user-doc --> | ||
329 | * <!-- end-user-doc --> | ||
330 | * @generated | ||
331 | */ | ||
332 | @Override | ||
333 | public EClass getCommSubsystem() { | 329 | public EClass getCommSubsystem() { |
334 | return commSubsystemEClass; | 330 | return commSubsystemEClass; |
335 | } | 331 | } |
@@ -340,26 +336,6 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
340 | * @generated | 336 | * @generated |
341 | */ | 337 | */ |
342 | @Override | 338 | @Override |
343 | public EAttribute getCommSubsystem_Band() { | ||
344 | return (EAttribute) commSubsystemEClass.getEStructuralFeatures().get(0); | ||
345 | } | ||
346 | |||
347 | /** | ||
348 | * <!-- begin-user-doc --> | ||
349 | * <!-- end-user-doc --> | ||
350 | * @generated | ||
351 | */ | ||
352 | @Override | ||
353 | public EAttribute getCommSubsystem_Gain() { | ||
354 | return (EAttribute) commSubsystemEClass.getEStructuralFeatures().get(1); | ||
355 | } | ||
356 | |||
357 | /** | ||
358 | * <!-- begin-user-doc --> | ||
359 | * <!-- end-user-doc --> | ||
360 | * @generated | ||
361 | */ | ||
362 | @Override | ||
363 | public EClass getDirectedCommunicationLink() { | 339 | public EClass getDirectedCommunicationLink() { |
364 | return directedCommunicationLinkEClass; | 340 | return directedCommunicationLinkEClass; |
365 | } | 341 | } |
@@ -440,8 +416,8 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
440 | * @generated | 416 | * @generated |
441 | */ | 417 | */ |
442 | @Override | 418 | @Override |
443 | public EEnum getTransceiverBand() { | 419 | public EClass getCubeSat() { |
444 | return transceiverBandEEnum; | 420 | return cubeSatEClass; |
445 | } | 421 | } |
446 | 422 | ||
447 | /** | 423 | /** |
@@ -450,8 +426,8 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
450 | * @generated | 426 | * @generated |
451 | */ | 427 | */ |
452 | @Override | 428 | @Override |
453 | public EEnum getAntennaGain() { | 429 | public EClass getUHFCommSubsystem() { |
454 | return antennaGainEEnum; | 430 | return uhfCommSubsystemEClass; |
455 | } | 431 | } |
456 | 432 | ||
457 | /** | 433 | /** |
@@ -460,8 +436,18 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
460 | * @generated | 436 | * @generated |
461 | */ | 437 | */ |
462 | @Override | 438 | @Override |
463 | public EEnum getSpacecraftKind() { | 439 | public EClass getXCommSubsystem() { |
464 | return spacecraftKindEEnum; | 440 | return xCommSubsystemEClass; |
441 | } | ||
442 | |||
443 | /** | ||
444 | * <!-- begin-user-doc --> | ||
445 | * <!-- end-user-doc --> | ||
446 | * @generated | ||
447 | */ | ||
448 | @Override | ||
449 | public EClass getKaCommSubsystem() { | ||
450 | return kaCommSubsystemEClass; | ||
465 | } | 451 | } |
466 | 452 | ||
467 | /** | 453 | /** |
@@ -509,11 +495,8 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
509 | 495 | ||
510 | spacecraftEClass = createEClass(SPACECRAFT); | 496 | spacecraftEClass = createEClass(SPACECRAFT); |
511 | createEReference(spacecraftEClass, SPACECRAFT__PAYLOAD); | 497 | createEReference(spacecraftEClass, SPACECRAFT__PAYLOAD); |
512 | createEAttribute(spacecraftEClass, SPACECRAFT__KIND); | ||
513 | 498 | ||
514 | commSubsystemEClass = createEClass(COMM_SUBSYSTEM); | 499 | commSubsystemEClass = createEClass(COMM_SUBSYSTEM); |
515 | createEAttribute(commSubsystemEClass, COMM_SUBSYSTEM__BAND); | ||
516 | createEAttribute(commSubsystemEClass, COMM_SUBSYSTEM__GAIN); | ||
517 | 500 | ||
518 | directedCommunicationLinkEClass = createEClass(DIRECTED_COMMUNICATION_LINK); | 501 | directedCommunicationLinkEClass = createEClass(DIRECTED_COMMUNICATION_LINK); |
519 | createEReference(directedCommunicationLinkEClass, DIRECTED_COMMUNICATION_LINK__SOURCE); | 502 | createEReference(directedCommunicationLinkEClass, DIRECTED_COMMUNICATION_LINK__SOURCE); |
@@ -529,10 +512,13 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
529 | 512 | ||
530 | smallSatEClass = createEClass(SMALL_SAT); | 513 | smallSatEClass = createEClass(SMALL_SAT); |
531 | 514 | ||
532 | // Create enums | 515 | cubeSatEClass = createEClass(CUBE_SAT); |
533 | transceiverBandEEnum = createEEnum(TRANSCEIVER_BAND); | 516 | |
534 | antennaGainEEnum = createEEnum(ANTENNA_GAIN); | 517 | uhfCommSubsystemEClass = createEClass(UHF_COMM_SUBSYSTEM); |
535 | spacecraftKindEEnum = createEEnum(SPACECRAFT_KIND); | 518 | |
519 | xCommSubsystemEClass = createEClass(XCOMM_SUBSYSTEM); | ||
520 | |||
521 | kaCommSubsystemEClass = createEClass(KA_COMM_SUBSYSTEM); | ||
536 | } | 522 | } |
537 | 523 | ||
538 | /** | 524 | /** |
@@ -568,9 +554,13 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
568 | groundStationNetworkEClass.getESuperTypes().add(this.getCommunicatingElement()); | 554 | groundStationNetworkEClass.getESuperTypes().add(this.getCommunicatingElement()); |
569 | spacecraftEClass.getESuperTypes().add(this.getCommunicatingElement()); | 555 | spacecraftEClass.getESuperTypes().add(this.getCommunicatingElement()); |
570 | interferometryPayloadEClass.getESuperTypes().add(this.getPayload()); | 556 | interferometryPayloadEClass.getESuperTypes().add(this.getPayload()); |
571 | cubeSat3UEClass.getESuperTypes().add(this.getSpacecraft()); | 557 | cubeSat3UEClass.getESuperTypes().add(this.getCubeSat()); |
572 | cubeSat6UEClass.getESuperTypes().add(this.getSpacecraft()); | 558 | cubeSat6UEClass.getESuperTypes().add(this.getCubeSat()); |
573 | smallSatEClass.getESuperTypes().add(this.getSpacecraft()); | 559 | smallSatEClass.getESuperTypes().add(this.getSpacecraft()); |
560 | cubeSatEClass.getESuperTypes().add(this.getSpacecraft()); | ||
561 | uhfCommSubsystemEClass.getESuperTypes().add(this.getCommSubsystem()); | ||
562 | xCommSubsystemEClass.getESuperTypes().add(this.getCommSubsystem()); | ||
563 | kaCommSubsystemEClass.getESuperTypes().add(this.getCommSubsystem()); | ||
574 | 564 | ||
575 | // Initialize classes, features, and operations; add parameters | 565 | // Initialize classes, features, and operations; add parameters |
576 | initEClass(constellationMissionEClass, ConstellationMission.class, "ConstellationMission", IS_ABSTRACT, | 566 | initEClass(constellationMissionEClass, ConstellationMission.class, "ConstellationMission", IS_ABSTRACT, |
@@ -605,15 +595,9 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
605 | initEReference(getSpacecraft_Payload(), this.getPayload(), null, "payload", null, 0, 1, Spacecraft.class, | 595 | initEReference(getSpacecraft_Payload(), this.getPayload(), null, "payload", null, 0, 1, Spacecraft.class, |
606 | !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, | 596 | !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, |
607 | IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | 597 | IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
608 | initEAttribute(getSpacecraft_Kind(), this.getSpacecraftKind(), "kind", null, 1, 1, Spacecraft.class, | ||
609 | IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED); | ||
610 | 598 | ||
611 | initEClass(commSubsystemEClass, CommSubsystem.class, "CommSubsystem", !IS_ABSTRACT, !IS_INTERFACE, | 599 | initEClass(commSubsystemEClass, CommSubsystem.class, "CommSubsystem", IS_ABSTRACT, !IS_INTERFACE, |
612 | IS_GENERATED_INSTANCE_CLASS); | 600 | IS_GENERATED_INSTANCE_CLASS); |
613 | initEAttribute(getCommSubsystem_Band(), this.getTransceiverBand(), "band", null, 1, 1, CommSubsystem.class, | ||
614 | !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
615 | initEAttribute(getCommSubsystem_Gain(), this.getAntennaGain(), "gain", null, 1, 1, CommSubsystem.class, | ||
616 | !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
617 | 601 | ||
618 | initEClass(directedCommunicationLinkEClass, DirectedCommunicationLink.class, "DirectedCommunicationLink", | 602 | initEClass(directedCommunicationLinkEClass, DirectedCommunicationLink.class, "DirectedCommunicationLink", |
619 | !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | 603 | !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
@@ -638,53 +622,19 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
638 | initEClass(smallSatEClass, SmallSat.class, "SmallSat", !IS_ABSTRACT, !IS_INTERFACE, | 622 | initEClass(smallSatEClass, SmallSat.class, "SmallSat", !IS_ABSTRACT, !IS_INTERFACE, |
639 | IS_GENERATED_INSTANCE_CLASS); | 623 | IS_GENERATED_INSTANCE_CLASS); |
640 | 624 | ||
641 | // Initialize enums and add enum literals | 625 | initEClass(cubeSatEClass, CubeSat.class, "CubeSat", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
642 | initEEnum(transceiverBandEEnum, TransceiverBand.class, "TransceiverBand"); | ||
643 | addEEnumLiteral(transceiverBandEEnum, TransceiverBand.UHF); | ||
644 | addEEnumLiteral(transceiverBandEEnum, TransceiverBand.X); | ||
645 | addEEnumLiteral(transceiverBandEEnum, TransceiverBand.KA); | ||
646 | 626 | ||
647 | initEEnum(antennaGainEEnum, AntennaGain.class, "AntennaGain"); | 627 | initEClass(uhfCommSubsystemEClass, UHFCommSubsystem.class, "UHFCommSubsystem", !IS_ABSTRACT, !IS_INTERFACE, |
648 | addEEnumLiteral(antennaGainEEnum, AntennaGain.LOW); | 628 | IS_GENERATED_INSTANCE_CLASS); |
649 | addEEnumLiteral(antennaGainEEnum, AntennaGain.MEDIUM); | ||
650 | addEEnumLiteral(antennaGainEEnum, AntennaGain.HIGH); | ||
651 | 629 | ||
652 | initEEnum(spacecraftKindEEnum, SpacecraftKind.class, "SpacecraftKind"); | 630 | initEClass(xCommSubsystemEClass, XCommSubsystem.class, "XCommSubsystem", !IS_ABSTRACT, !IS_INTERFACE, |
653 | addEEnumLiteral(spacecraftKindEEnum, SpacecraftKind.CUBE_SAT3_U); | 631 | IS_GENERATED_INSTANCE_CLASS); |
654 | addEEnumLiteral(spacecraftKindEEnum, SpacecraftKind.CUBE_SAT6_U); | 632 | |
655 | addEEnumLiteral(spacecraftKindEEnum, SpacecraftKind.SMALL_SAT); | 633 | initEClass(kaCommSubsystemEClass, KaCommSubsystem.class, "KaCommSubsystem", !IS_ABSTRACT, !IS_INTERFACE, |
634 | IS_GENERATED_INSTANCE_CLASS); | ||
656 | 635 | ||
657 | // Create resource | 636 | // Create resource |
658 | createResource(eNS_URI); | 637 | createResource(eNS_URI); |
659 | |||
660 | // Create annotations | ||
661 | // http://www.eclipse.org/emf/2002/Ecore | ||
662 | createEcoreAnnotations(); | ||
663 | // org.eclipse.viatra.query.querybasedfeature | ||
664 | createOrgAnnotations(); | ||
665 | } | ||
666 | |||
667 | /** | ||
668 | * Initializes the annotations for <b>http://www.eclipse.org/emf/2002/Ecore</b>. | ||
669 | * <!-- begin-user-doc --> | ||
670 | * <!-- end-user-doc --> | ||
671 | * @generated | ||
672 | */ | ||
673 | protected void createEcoreAnnotations() { | ||
674 | String source = "http://www.eclipse.org/emf/2002/Ecore"; | ||
675 | addAnnotation(this, source, new String[] { "settingDelegates", "org.eclipse.viatra.query.querybasedfeature" }); | ||
676 | } | ||
677 | |||
678 | /** | ||
679 | * Initializes the annotations for <b>org.eclipse.viatra.query.querybasedfeature</b>. | ||
680 | * <!-- begin-user-doc --> | ||
681 | * <!-- end-user-doc --> | ||
682 | * @generated | ||
683 | */ | ||
684 | protected void createOrgAnnotations() { | ||
685 | String source = "org.eclipse.viatra.query.querybasedfeature"; | ||
686 | addAnnotation(getSpacecraft_Kind(), source, | ||
687 | new String[] { "patternFQN", "hu.bme.mit.inf.dslreasoner.domains.satellite.queries.spacecraftOfKind" }); | ||
688 | } | 638 | } |
689 | 639 | ||
690 | } //SatellitePackageImpl | 640 | } //SatellitePackageImpl |