aboutsummaryrefslogtreecommitdiffstats
path: root/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kris7topher@gmail.com>2019-05-07 11:53:38 -0400
committerLibravatar Kristóf Marussy <kris7topher@gmail.com>2019-05-07 11:53:38 -0400
commit9b83e33c055660f6de218d1b672f67734675f1f6 (patch)
tree9bd56534fdeb2bad776780a856065739d0d525cd /Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite
parentTrying to implement spacecraft case study (diff)
downloadVIATRA-Generator-9b83e33c055660f6de218d1b672f67734675f1f6.tar.gz
VIATRA-Generator-9b83e33c055660f6de218d1b672f67734675f1f6.tar.zst
VIATRA-Generator-9b83e33c055660f6de218d1b672f67734675f1f6.zip
Try to restructure satellite case study
Diffstat (limited to 'Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite')
-rw-r--r--Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/CommSubsystem.java27
-rw-r--r--Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/CommunicatingElement.java17
-rw-r--r--Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/CubeSat.java16
-rw-r--r--Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/CubeSat3U.java2
-rw-r--r--Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/CubeSat6U.java2
-rw-r--r--Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/SatellitePackage.java162
-rw-r--r--Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/Spacecraft.java1
-rw-r--r--Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CommSubsystemImpl.java91
-rw-r--r--Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CommunicatingElementImpl.java78
-rw-r--r--Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CubeSat3UImpl.java2
-rw-r--r--Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CubeSat6UImpl.java2
-rw-r--r--Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CubeSatImpl.java37
-rw-r--r--Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SatellitePackageImpl.java59
-rw-r--r--Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SpacecraftImpl.java12
-rw-r--r--Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/util/SatelliteAdapterFactory.java19
-rw-r--r--Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/util/SatelliteSwitch.java30
16 files changed, 424 insertions, 133 deletions
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/CommSubsystem.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/CommSubsystem.java
index 072a9705..1cee0c0d 100644
--- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/CommSubsystem.java
+++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/CommSubsystem.java
@@ -15,6 +15,7 @@ import org.eclipse.emf.ecore.EObject;
15 * <ul> 15 * <ul>
16 * <li>{@link satellite.CommSubsystem#getBand <em>Band</em>}</li> 16 * <li>{@link satellite.CommSubsystem#getBand <em>Band</em>}</li>
17 * <li>{@link satellite.CommSubsystem#getGain <em>Gain</em>}</li> 17 * <li>{@link satellite.CommSubsystem#getGain <em>Gain</em>}</li>
18 * <li>{@link satellite.CommSubsystem#getCommunicationLink <em>Communication Link</em>}</li>
18 * </ul> 19 * </ul>
19 * 20 *
20 * @see satellite.SatellitePackage#getCommSubsystem() 21 * @see satellite.SatellitePackage#getCommSubsystem()
@@ -80,4 +81,30 @@ public interface CommSubsystem extends EObject {
80 */ 81 */
81 void setGain(AntennaGain value); 82 void setGain(AntennaGain value);
82 83
84 /**
85 * Returns the value of the '<em><b>Communication Link</b></em>' containment reference.
86 * <!-- begin-user-doc -->
87 * <p>
88 * If the meaning of the '<em>Communication Link</em>' containment reference isn't clear,
89 * there really should be more of a description here...
90 * </p>
91 * <!-- end-user-doc -->
92 * @return the value of the '<em>Communication Link</em>' containment reference.
93 * @see #setCommunicationLink(DirectedCommunicationLink)
94 * @see satellite.SatellitePackage#getCommSubsystem_CommunicationLink()
95 * @model containment="true"
96 * @generated
97 */
98 DirectedCommunicationLink getCommunicationLink();
99
100 /**
101 * Sets the value of the '{@link satellite.CommSubsystem#getCommunicationLink <em>Communication Link</em>}' containment reference.
102 * <!-- begin-user-doc -->
103 * <!-- end-user-doc -->
104 * @param value the new value of the '<em>Communication Link</em>' containment reference.
105 * @see #getCommunicationLink()
106 * @generated
107 */
108 void setCommunicationLink(DirectedCommunicationLink value);
109
83} // CommSubsystem 110} // CommSubsystem
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/CommunicatingElement.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/CommunicatingElement.java
index b96b281f..6e12fd9f 100644
--- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/CommunicatingElement.java
+++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/CommunicatingElement.java
@@ -41,29 +41,18 @@ public interface CommunicatingElement extends EObject {
41 EList<CommSubsystem> getCommSubsystem(); 41 EList<CommSubsystem> getCommSubsystem();
42 42
43 /** 43 /**
44 * Returns the value of the '<em><b>Communication Link</b></em>' containment reference. 44 * Returns the value of the '<em><b>Communication Link</b></em>' reference.
45 * <!-- begin-user-doc --> 45 * <!-- begin-user-doc -->
46 * <p> 46 * <p>
47 * If the meaning of the '<em>Communication Link</em>' containment reference isn't clear, 47 * If the meaning of the '<em>Communication Link</em>' containment reference isn't clear,
48 * there really should be more of a description here... 48 * there really should be more of a description here...
49 * </p> 49 * </p>
50 * <!-- end-user-doc --> 50 * <!-- end-user-doc -->
51 * @return the value of the '<em>Communication Link</em>' containment reference. 51 * @return the value of the '<em>Communication Link</em>' reference.
52 * @see #setCommunicationLink(DirectedCommunicationLink)
53 * @see satellite.SatellitePackage#getCommunicatingElement_CommunicationLink() 52 * @see satellite.SatellitePackage#getCommunicatingElement_CommunicationLink()
54 * @model containment="true" 53 * @model transient="true" changeable="false" volatile="true" derived="true"
55 * @generated 54 * @generated
56 */ 55 */
57 DirectedCommunicationLink getCommunicationLink(); 56 DirectedCommunicationLink getCommunicationLink();
58 57
59 /**
60 * Sets the value of the '{@link satellite.CommunicatingElement#getCommunicationLink <em>Communication Link</em>}' containment reference.
61 * <!-- begin-user-doc -->
62 * <!-- end-user-doc -->
63 * @param value the new value of the '<em>Communication Link</em>' containment reference.
64 * @see #getCommunicationLink()
65 * @generated
66 */
67 void setCommunicationLink(DirectedCommunicationLink value);
68
69} // CommunicatingElement 58} // CommunicatingElement
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/CubeSat.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/CubeSat.java
new file mode 100644
index 00000000..a38926d4
--- /dev/null
+++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/CubeSat.java
@@ -0,0 +1,16 @@
1/**
2 */
3package satellite;
4
5/**
6 * <!-- begin-user-doc -->
7 * A representation of the model object '<em><b>Cube Sat</b></em>'.
8 * <!-- end-user-doc -->
9 *
10 *
11 * @see satellite.SatellitePackage#getCubeSat()
12 * @model abstract="true"
13 * @generated
14 */
15public interface CubeSat extends Spacecraft {
16} // CubeSat
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/CubeSat3U.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/CubeSat3U.java
index 5758e165..c68bf52c 100644
--- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/CubeSat3U.java
+++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/CubeSat3U.java
@@ -12,5 +12,5 @@ package satellite;
12 * @model 12 * @model
13 * @generated 13 * @generated
14 */ 14 */
15public interface CubeSat3U extends Spacecraft { 15public interface CubeSat3U extends CubeSat {
16} // CubeSat3U 16} // CubeSat3U
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/CubeSat6U.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/CubeSat6U.java
index a8d8830f..5ade601a 100644
--- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/CubeSat6U.java
+++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/CubeSat6U.java
@@ -12,5 +12,5 @@ package satellite;
12 * @model 12 * @model
13 * @generated 13 * @generated
14 */ 14 */
15public interface CubeSat6U extends Spacecraft { 15public interface CubeSat6U extends CubeSat {
16} // CubeSat6U 16} // CubeSat6U
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/SatellitePackage.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/SatellitePackage.java
index f0d80ac2..6e8723ae 100644
--- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/SatellitePackage.java
+++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/SatellitePackage.java
@@ -179,7 +179,7 @@ public interface SatellitePackage extends EPackage {
179 int COMMUNICATING_ELEMENT__COMM_SUBSYSTEM = 0; 179 int COMMUNICATING_ELEMENT__COMM_SUBSYSTEM = 0;
180 180
181 /** 181 /**
182 * The feature id for the '<em><b>Communication Link</b></em>' containment reference. 182 * The feature id for the '<em><b>Communication Link</b></em>' reference.
183 * <!-- begin-user-doc --> 183 * <!-- begin-user-doc -->
184 * <!-- end-user-doc --> 184 * <!-- end-user-doc -->
185 * @generated 185 * @generated
@@ -225,7 +225,7 @@ public interface SatellitePackage extends EPackage {
225 int GROUND_STATION_NETWORK__COMM_SUBSYSTEM = COMMUNICATING_ELEMENT__COMM_SUBSYSTEM; 225 int GROUND_STATION_NETWORK__COMM_SUBSYSTEM = COMMUNICATING_ELEMENT__COMM_SUBSYSTEM;
226 226
227 /** 227 /**
228 * The feature id for the '<em><b>Communication Link</b></em>' containment reference. 228 * The feature id for the '<em><b>Communication Link</b></em>' reference.
229 * <!-- begin-user-doc --> 229 * <!-- begin-user-doc -->
230 * <!-- end-user-doc --> 230 * <!-- end-user-doc -->
231 * @generated 231 * @generated
@@ -271,7 +271,7 @@ public interface SatellitePackage extends EPackage {
271 int SPACECRAFT__COMM_SUBSYSTEM = COMMUNICATING_ELEMENT__COMM_SUBSYSTEM; 271 int SPACECRAFT__COMM_SUBSYSTEM = COMMUNICATING_ELEMENT__COMM_SUBSYSTEM;
272 272
273 /** 273 /**
274 * The feature id for the '<em><b>Communication Link</b></em>' containment reference. 274 * The feature id for the '<em><b>Communication Link</b></em>' reference.
275 * <!-- begin-user-doc --> 275 * <!-- begin-user-doc -->
276 * <!-- end-user-doc --> 276 * <!-- end-user-doc -->
277 * @generated 277 * @generated
@@ -344,13 +344,22 @@ public interface SatellitePackage extends EPackage {
344 int COMM_SUBSYSTEM__GAIN = 1; 344 int COMM_SUBSYSTEM__GAIN = 1;
345 345
346 /** 346 /**
347 * The feature id for the '<em><b>Communication Link</b></em>' containment reference.
348 * <!-- begin-user-doc -->
349 * <!-- end-user-doc -->
350 * @generated
351 * @ordered
352 */
353 int COMM_SUBSYSTEM__COMMUNICATION_LINK = 2;
354
355 /**
347 * The number of structural features of the '<em>Comm Subsystem</em>' class. 356 * The number of structural features of the '<em>Comm Subsystem</em>' class.
348 * <!-- begin-user-doc --> 357 * <!-- begin-user-doc -->
349 * <!-- end-user-doc --> 358 * <!-- end-user-doc -->
350 * @generated 359 * @generated
351 * @ordered 360 * @ordered
352 */ 361 */
353 int COMM_SUBSYSTEM_FEATURE_COUNT = 2; 362 int COMM_SUBSYSTEM_FEATURE_COUNT = 3;
354 363
355 /** 364 /**
356 * The number of operations of the '<em>Comm Subsystem</em>' class. 365 * The number of operations of the '<em>Comm Subsystem</em>' class.
@@ -464,6 +473,70 @@ public interface SatellitePackage extends EPackage {
464 int INTERFEROMETRY_PAYLOAD_OPERATION_COUNT = PAYLOAD_OPERATION_COUNT + 0; 473 int INTERFEROMETRY_PAYLOAD_OPERATION_COUNT = PAYLOAD_OPERATION_COUNT + 0;
465 474
466 /** 475 /**
476 * The meta object id for the '{@link satellite.impl.CubeSatImpl <em>Cube Sat</em>}' class.
477 * <!-- begin-user-doc -->
478 * <!-- end-user-doc -->
479 * @see satellite.impl.CubeSatImpl
480 * @see satellite.impl.SatellitePackageImpl#getCubeSat()
481 * @generated
482 */
483 int CUBE_SAT = 12;
484
485 /**
486 * The feature id for the '<em><b>Comm Subsystem</b></em>' containment reference list.
487 * <!-- begin-user-doc -->
488 * <!-- end-user-doc -->
489 * @generated
490 * @ordered
491 */
492 int CUBE_SAT__COMM_SUBSYSTEM = SPACECRAFT__COMM_SUBSYSTEM;
493
494 /**
495 * The feature id for the '<em><b>Communication Link</b></em>' reference.
496 * <!-- begin-user-doc -->
497 * <!-- end-user-doc -->
498 * @generated
499 * @ordered
500 */
501 int CUBE_SAT__COMMUNICATION_LINK = SPACECRAFT__COMMUNICATION_LINK;
502
503 /**
504 * The feature id for the '<em><b>Payload</b></em>' containment reference.
505 * <!-- begin-user-doc -->
506 * <!-- end-user-doc -->
507 * @generated
508 * @ordered
509 */
510 int CUBE_SAT__PAYLOAD = SPACECRAFT__PAYLOAD;
511
512 /**
513 * The feature id for the '<em><b>Kind</b></em>' attribute.
514 * <!-- begin-user-doc -->
515 * <!-- end-user-doc -->
516 * @generated
517 * @ordered
518 */
519 int CUBE_SAT__KIND = SPACECRAFT__KIND;
520
521 /**
522 * The number of structural features of the '<em>Cube Sat</em>' class.
523 * <!-- begin-user-doc -->
524 * <!-- end-user-doc -->
525 * @generated
526 * @ordered
527 */
528 int CUBE_SAT_FEATURE_COUNT = SPACECRAFT_FEATURE_COUNT + 0;
529
530 /**
531 * The number of operations of the '<em>Cube Sat</em>' class.
532 * <!-- begin-user-doc -->
533 * <!-- end-user-doc -->
534 * @generated
535 * @ordered
536 */
537 int CUBE_SAT_OPERATION_COUNT = SPACECRAFT_OPERATION_COUNT + 0;
538
539 /**
467 * The meta object id for the '{@link satellite.impl.CubeSat3UImpl <em>Cube Sat3 U</em>}' class. 540 * The meta object id for the '{@link satellite.impl.CubeSat3UImpl <em>Cube Sat3 U</em>}' class.
468 * <!-- begin-user-doc --> 541 * <!-- begin-user-doc -->
469 * <!-- end-user-doc --> 542 * <!-- end-user-doc -->
@@ -480,16 +553,16 @@ public interface SatellitePackage extends EPackage {
480 * @generated 553 * @generated
481 * @ordered 554 * @ordered
482 */ 555 */
483 int CUBE_SAT3_U__COMM_SUBSYSTEM = SPACECRAFT__COMM_SUBSYSTEM; 556 int CUBE_SAT3_U__COMM_SUBSYSTEM = CUBE_SAT__COMM_SUBSYSTEM;
484 557
485 /** 558 /**
486 * The feature id for the '<em><b>Communication Link</b></em>' containment reference. 559 * The feature id for the '<em><b>Communication Link</b></em>' reference.
487 * <!-- begin-user-doc --> 560 * <!-- begin-user-doc -->
488 * <!-- end-user-doc --> 561 * <!-- end-user-doc -->
489 * @generated 562 * @generated
490 * @ordered 563 * @ordered
491 */ 564 */
492 int CUBE_SAT3_U__COMMUNICATION_LINK = SPACECRAFT__COMMUNICATION_LINK; 565 int CUBE_SAT3_U__COMMUNICATION_LINK = CUBE_SAT__COMMUNICATION_LINK;
493 566
494 /** 567 /**
495 * The feature id for the '<em><b>Payload</b></em>' containment reference. 568 * The feature id for the '<em><b>Payload</b></em>' containment reference.
@@ -498,7 +571,7 @@ public interface SatellitePackage extends EPackage {
498 * @generated 571 * @generated
499 * @ordered 572 * @ordered
500 */ 573 */
501 int CUBE_SAT3_U__PAYLOAD = SPACECRAFT__PAYLOAD; 574 int CUBE_SAT3_U__PAYLOAD = CUBE_SAT__PAYLOAD;
502 575
503 /** 576 /**
504 * The feature id for the '<em><b>Kind</b></em>' attribute. 577 * The feature id for the '<em><b>Kind</b></em>' attribute.
@@ -507,7 +580,7 @@ public interface SatellitePackage extends EPackage {
507 * @generated 580 * @generated
508 * @ordered 581 * @ordered
509 */ 582 */
510 int CUBE_SAT3_U__KIND = SPACECRAFT__KIND; 583 int CUBE_SAT3_U__KIND = CUBE_SAT__KIND;
511 584
512 /** 585 /**
513 * The number of structural features of the '<em>Cube Sat3 U</em>' class. 586 * The number of structural features of the '<em>Cube Sat3 U</em>' class.
@@ -516,7 +589,7 @@ public interface SatellitePackage extends EPackage {
516 * @generated 589 * @generated
517 * @ordered 590 * @ordered
518 */ 591 */
519 int CUBE_SAT3_U_FEATURE_COUNT = SPACECRAFT_FEATURE_COUNT + 0; 592 int CUBE_SAT3_U_FEATURE_COUNT = CUBE_SAT_FEATURE_COUNT + 0;
520 593
521 /** 594 /**
522 * The number of operations of the '<em>Cube Sat3 U</em>' class. 595 * The number of operations of the '<em>Cube Sat3 U</em>' class.
@@ -525,7 +598,7 @@ public interface SatellitePackage extends EPackage {
525 * @generated 598 * @generated
526 * @ordered 599 * @ordered
527 */ 600 */
528 int CUBE_SAT3_U_OPERATION_COUNT = SPACECRAFT_OPERATION_COUNT + 0; 601 int CUBE_SAT3_U_OPERATION_COUNT = CUBE_SAT_OPERATION_COUNT + 0;
529 602
530 /** 603 /**
531 * The meta object id for the '{@link satellite.impl.CubeSat6UImpl <em>Cube Sat6 U</em>}' class. 604 * The meta object id for the '{@link satellite.impl.CubeSat6UImpl <em>Cube Sat6 U</em>}' class.
@@ -544,16 +617,16 @@ public interface SatellitePackage extends EPackage {
544 * @generated 617 * @generated
545 * @ordered 618 * @ordered
546 */ 619 */
547 int CUBE_SAT6_U__COMM_SUBSYSTEM = SPACECRAFT__COMM_SUBSYSTEM; 620 int CUBE_SAT6_U__COMM_SUBSYSTEM = CUBE_SAT__COMM_SUBSYSTEM;
548 621
549 /** 622 /**
550 * The feature id for the '<em><b>Communication Link</b></em>' containment reference. 623 * The feature id for the '<em><b>Communication Link</b></em>' reference.
551 * <!-- begin-user-doc --> 624 * <!-- begin-user-doc -->
552 * <!-- end-user-doc --> 625 * <!-- end-user-doc -->
553 * @generated 626 * @generated
554 * @ordered 627 * @ordered
555 */ 628 */
556 int CUBE_SAT6_U__COMMUNICATION_LINK = SPACECRAFT__COMMUNICATION_LINK; 629 int CUBE_SAT6_U__COMMUNICATION_LINK = CUBE_SAT__COMMUNICATION_LINK;
557 630
558 /** 631 /**
559 * The feature id for the '<em><b>Payload</b></em>' containment reference. 632 * The feature id for the '<em><b>Payload</b></em>' containment reference.
@@ -562,7 +635,7 @@ public interface SatellitePackage extends EPackage {
562 * @generated 635 * @generated
563 * @ordered 636 * @ordered
564 */ 637 */
565 int CUBE_SAT6_U__PAYLOAD = SPACECRAFT__PAYLOAD; 638 int CUBE_SAT6_U__PAYLOAD = CUBE_SAT__PAYLOAD;
566 639
567 /** 640 /**
568 * The feature id for the '<em><b>Kind</b></em>' attribute. 641 * The feature id for the '<em><b>Kind</b></em>' attribute.
@@ -571,7 +644,7 @@ public interface SatellitePackage extends EPackage {
571 * @generated 644 * @generated
572 * @ordered 645 * @ordered
573 */ 646 */
574 int CUBE_SAT6_U__KIND = SPACECRAFT__KIND; 647 int CUBE_SAT6_U__KIND = CUBE_SAT__KIND;
575 648
576 /** 649 /**
577 * The number of structural features of the '<em>Cube Sat6 U</em>' class. 650 * The number of structural features of the '<em>Cube Sat6 U</em>' class.
@@ -580,7 +653,7 @@ public interface SatellitePackage extends EPackage {
580 * @generated 653 * @generated
581 * @ordered 654 * @ordered
582 */ 655 */
583 int CUBE_SAT6_U_FEATURE_COUNT = SPACECRAFT_FEATURE_COUNT + 0; 656 int CUBE_SAT6_U_FEATURE_COUNT = CUBE_SAT_FEATURE_COUNT + 0;
584 657
585 /** 658 /**
586 * The number of operations of the '<em>Cube Sat6 U</em>' class. 659 * The number of operations of the '<em>Cube Sat6 U</em>' class.
@@ -589,7 +662,7 @@ public interface SatellitePackage extends EPackage {
589 * @generated 662 * @generated
590 * @ordered 663 * @ordered
591 */ 664 */
592 int CUBE_SAT6_U_OPERATION_COUNT = SPACECRAFT_OPERATION_COUNT + 0; 665 int CUBE_SAT6_U_OPERATION_COUNT = CUBE_SAT_OPERATION_COUNT + 0;
593 666
594 /** 667 /**
595 * The meta object id for the '{@link satellite.impl.SmallSatImpl <em>Small Sat</em>}' class. 668 * The meta object id for the '{@link satellite.impl.SmallSatImpl <em>Small Sat</em>}' class.
@@ -611,7 +684,7 @@ public interface SatellitePackage extends EPackage {
611 int SMALL_SAT__COMM_SUBSYSTEM = SPACECRAFT__COMM_SUBSYSTEM; 684 int SMALL_SAT__COMM_SUBSYSTEM = SPACECRAFT__COMM_SUBSYSTEM;
612 685
613 /** 686 /**
614 * The feature id for the '<em><b>Communication Link</b></em>' containment reference. 687 * The feature id for the '<em><b>Communication Link</b></em>' reference.
615 * <!-- begin-user-doc --> 688 * <!-- begin-user-doc -->
616 * <!-- end-user-doc --> 689 * <!-- end-user-doc -->
617 * @generated 690 * @generated
@@ -663,7 +736,7 @@ public interface SatellitePackage extends EPackage {
663 * @see satellite.impl.SatellitePackageImpl#getTransceiverBand() 736 * @see satellite.impl.SatellitePackageImpl#getTransceiverBand()
664 * @generated 737 * @generated
665 */ 738 */
666 int TRANSCEIVER_BAND = 12; 739 int TRANSCEIVER_BAND = 13;
667 740
668 /** 741 /**
669 * The meta object id for the '{@link satellite.AntennaGain <em>Antenna Gain</em>}' enum. 742 * The meta object id for the '{@link satellite.AntennaGain <em>Antenna Gain</em>}' enum.
@@ -673,7 +746,7 @@ public interface SatellitePackage extends EPackage {
673 * @see satellite.impl.SatellitePackageImpl#getAntennaGain() 746 * @see satellite.impl.SatellitePackageImpl#getAntennaGain()
674 * @generated 747 * @generated
675 */ 748 */
676 int ANTENNA_GAIN = 13; 749 int ANTENNA_GAIN = 14;
677 750
678 /** 751 /**
679 * The meta object id for the '{@link satellite.SpacecraftKind <em>Spacecraft Kind</em>}' enum. 752 * The meta object id for the '{@link satellite.SpacecraftKind <em>Spacecraft Kind</em>}' enum.
@@ -683,7 +756,7 @@ public interface SatellitePackage extends EPackage {
683 * @see satellite.impl.SatellitePackageImpl#getSpacecraftKind() 756 * @see satellite.impl.SatellitePackageImpl#getSpacecraftKind()
684 * @generated 757 * @generated
685 */ 758 */
686 int SPACECRAFT_KIND = 14; 759 int SPACECRAFT_KIND = 15;
687 760
688 /** 761 /**
689 * Returns the meta object for class '{@link satellite.ConstellationMission <em>Constellation Mission</em>}'. 762 * Returns the meta object for class '{@link satellite.ConstellationMission <em>Constellation Mission</em>}'.
@@ -760,10 +833,10 @@ public interface SatellitePackage extends EPackage {
760 EReference getCommunicatingElement_CommSubsystem(); 833 EReference getCommunicatingElement_CommSubsystem();
761 834
762 /** 835 /**
763 * Returns the meta object for the containment reference '{@link satellite.CommunicatingElement#getCommunicationLink <em>Communication Link</em>}'. 836 * Returns the meta object for the reference '{@link satellite.CommunicatingElement#getCommunicationLink <em>Communication Link</em>}'.
764 * <!-- begin-user-doc --> 837 * <!-- begin-user-doc -->
765 * <!-- end-user-doc --> 838 * <!-- end-user-doc -->
766 * @return the meta object for the containment reference '<em>Communication Link</em>'. 839 * @return the meta object for the reference '<em>Communication Link</em>'.
767 * @see satellite.CommunicatingElement#getCommunicationLink() 840 * @see satellite.CommunicatingElement#getCommunicationLink()
768 * @see #getCommunicatingElement() 841 * @see #getCommunicatingElement()
769 * @generated 842 * @generated
@@ -845,6 +918,17 @@ public interface SatellitePackage extends EPackage {
845 EAttribute getCommSubsystem_Gain(); 918 EAttribute getCommSubsystem_Gain();
846 919
847 /** 920 /**
921 * Returns the meta object for the containment reference '{@link satellite.CommSubsystem#getCommunicationLink <em>Communication Link</em>}'.
922 * <!-- begin-user-doc -->
923 * <!-- end-user-doc -->
924 * @return the meta object for the containment reference '<em>Communication Link</em>'.
925 * @see satellite.CommSubsystem#getCommunicationLink()
926 * @see #getCommSubsystem()
927 * @generated
928 */
929 EReference getCommSubsystem_CommunicationLink();
930
931 /**
848 * Returns the meta object for class '{@link satellite.DirectedCommunicationLink <em>Directed Communication Link</em>}'. 932 * Returns the meta object for class '{@link satellite.DirectedCommunicationLink <em>Directed Communication Link</em>}'.
849 * <!-- begin-user-doc --> 933 * <!-- begin-user-doc -->
850 * <!-- end-user-doc --> 934 * <!-- end-user-doc -->
@@ -927,6 +1011,16 @@ public interface SatellitePackage extends EPackage {
927 EClass getSmallSat(); 1011 EClass getSmallSat();
928 1012
929 /** 1013 /**
1014 * Returns the meta object for class '{@link satellite.CubeSat <em>Cube Sat</em>}'.
1015 * <!-- begin-user-doc -->
1016 * <!-- end-user-doc -->
1017 * @return the meta object for class '<em>Cube Sat</em>'.
1018 * @see satellite.CubeSat
1019 * @generated
1020 */
1021 EClass getCubeSat();
1022
1023 /**
930 * Returns the meta object for enum '{@link satellite.TransceiverBand <em>Transceiver Band</em>}'. 1024 * Returns the meta object for enum '{@link satellite.TransceiverBand <em>Transceiver Band</em>}'.
931 * <!-- begin-user-doc --> 1025 * <!-- begin-user-doc -->
932 * <!-- end-user-doc --> 1026 * <!-- end-user-doc -->
@@ -1043,7 +1137,7 @@ public interface SatellitePackage extends EPackage {
1043 EReference COMMUNICATING_ELEMENT__COMM_SUBSYSTEM = eINSTANCE.getCommunicatingElement_CommSubsystem(); 1137 EReference COMMUNICATING_ELEMENT__COMM_SUBSYSTEM = eINSTANCE.getCommunicatingElement_CommSubsystem();
1044 1138
1045 /** 1139 /**
1046 * The meta object literal for the '<em><b>Communication Link</b></em>' containment reference feature. 1140 * The meta object literal for the '<em><b>Communication Link</b></em>' reference feature.
1047 * <!-- begin-user-doc --> 1141 * <!-- begin-user-doc -->
1048 * <!-- end-user-doc --> 1142 * <!-- end-user-doc -->
1049 * @generated 1143 * @generated
@@ -1113,6 +1207,14 @@ public interface SatellitePackage extends EPackage {
1113 EAttribute COMM_SUBSYSTEM__GAIN = eINSTANCE.getCommSubsystem_Gain(); 1207 EAttribute COMM_SUBSYSTEM__GAIN = eINSTANCE.getCommSubsystem_Gain();
1114 1208
1115 /** 1209 /**
1210 * The meta object literal for the '<em><b>Communication Link</b></em>' containment reference feature.
1211 * <!-- begin-user-doc -->
1212 * <!-- end-user-doc -->
1213 * @generated
1214 */
1215 EReference COMM_SUBSYSTEM__COMMUNICATION_LINK = eINSTANCE.getCommSubsystem_CommunicationLink();
1216
1217 /**
1116 * The meta object literal for the '{@link satellite.impl.DirectedCommunicationLinkImpl <em>Directed Communication Link</em>}' class. 1218 * The meta object literal for the '{@link satellite.impl.DirectedCommunicationLinkImpl <em>Directed Communication Link</em>}' class.
1117 * <!-- begin-user-doc --> 1219 * <!-- begin-user-doc -->
1118 * <!-- end-user-doc --> 1220 * <!-- end-user-doc -->
@@ -1189,6 +1291,16 @@ public interface SatellitePackage extends EPackage {
1189 EClass SMALL_SAT = eINSTANCE.getSmallSat(); 1291 EClass SMALL_SAT = eINSTANCE.getSmallSat();
1190 1292
1191 /** 1293 /**
1294 * The meta object literal for the '{@link satellite.impl.CubeSatImpl <em>Cube Sat</em>}' class.
1295 * <!-- begin-user-doc -->
1296 * <!-- end-user-doc -->
1297 * @see satellite.impl.CubeSatImpl
1298 * @see satellite.impl.SatellitePackageImpl#getCubeSat()
1299 * @generated
1300 */
1301 EClass CUBE_SAT = eINSTANCE.getCubeSat();
1302
1303 /**
1192 * The meta object literal for the '{@link satellite.TransceiverBand <em>Transceiver Band</em>}' enum. 1304 * The meta object literal for the '{@link satellite.TransceiverBand <em>Transceiver Band</em>}' enum.
1193 * <!-- begin-user-doc --> 1305 * <!-- begin-user-doc -->
1194 * <!-- end-user-doc --> 1306 * <!-- end-user-doc -->
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/Spacecraft.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/Spacecraft.java
index d8775572..6f72322e 100644
--- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/Spacecraft.java
+++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/Spacecraft.java
@@ -59,7 +59,6 @@ public interface Spacecraft extends CommunicatingElement {
59 * @see satellite.SpacecraftKind 59 * @see satellite.SpacecraftKind
60 * @see satellite.SatellitePackage#getSpacecraft_Kind() 60 * @see satellite.SatellitePackage#getSpacecraft_Kind()
61 * @model required="true" transient="true" changeable="false" volatile="true" derived="true" 61 * @model required="true" transient="true" changeable="false" volatile="true" derived="true"
62 * annotation="org.eclipse.viatra.query.querybasedfeature patternFQN='hu.bme.mit.inf.dslreasoner.domains.satellite.queries.spacecraftOfKind'"
63 * @generated 62 * @generated
64 */ 63 */
65 SpacecraftKind getKind(); 64 SpacecraftKind getKind();
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CommSubsystemImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CommSubsystemImpl.java
index cf8f1fe8..70ee268e 100644
--- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CommSubsystemImpl.java
+++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CommSubsystemImpl.java
@@ -4,13 +4,16 @@ package satellite.impl;
4 4
5import org.eclipse.emf.common.notify.Notification; 5import org.eclipse.emf.common.notify.Notification;
6 6
7import org.eclipse.emf.common.notify.NotificationChain;
7import org.eclipse.emf.ecore.EClass; 8import org.eclipse.emf.ecore.EClass;
8 9
10import org.eclipse.emf.ecore.InternalEObject;
9import org.eclipse.emf.ecore.impl.ENotificationImpl; 11import org.eclipse.emf.ecore.impl.ENotificationImpl;
10import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; 12import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
11 13
12import satellite.AntennaGain; 14import satellite.AntennaGain;
13import satellite.CommSubsystem; 15import satellite.CommSubsystem;
16import satellite.DirectedCommunicationLink;
14import satellite.SatellitePackage; 17import satellite.SatellitePackage;
15import satellite.TransceiverBand; 18import satellite.TransceiverBand;
16 19
@@ -24,6 +27,7 @@ import satellite.TransceiverBand;
24 * <ul> 27 * <ul>
25 * <li>{@link satellite.impl.CommSubsystemImpl#getBand <em>Band</em>}</li> 28 * <li>{@link satellite.impl.CommSubsystemImpl#getBand <em>Band</em>}</li>
26 * <li>{@link satellite.impl.CommSubsystemImpl#getGain <em>Gain</em>}</li> 29 * <li>{@link satellite.impl.CommSubsystemImpl#getGain <em>Gain</em>}</li>
30 * <li>{@link satellite.impl.CommSubsystemImpl#getCommunicationLink <em>Communication Link</em>}</li>
27 * </ul> 31 * </ul>
28 * 32 *
29 * @generated 33 * @generated
@@ -70,6 +74,16 @@ public class CommSubsystemImpl extends MinimalEObjectImpl.Container implements C
70 protected AntennaGain gain = GAIN_EDEFAULT; 74 protected AntennaGain gain = GAIN_EDEFAULT;
71 75
72 /** 76 /**
77 * The cached value of the '{@link #getCommunicationLink() <em>Communication Link</em>}' containment reference.
78 * <!-- begin-user-doc -->
79 * <!-- end-user-doc -->
80 * @see #getCommunicationLink()
81 * @generated
82 * @ordered
83 */
84 protected DirectedCommunicationLink communicationLink;
85
86 /**
73 * <!-- begin-user-doc --> 87 * <!-- begin-user-doc -->
74 * <!-- end-user-doc --> 88 * <!-- end-user-doc -->
75 * @generated 89 * @generated
@@ -142,12 +156,81 @@ public class CommSubsystemImpl extends MinimalEObjectImpl.Container implements C
142 * @generated 156 * @generated
143 */ 157 */
144 @Override 158 @Override
159 public DirectedCommunicationLink getCommunicationLink() {
160 return communicationLink;
161 }
162
163 /**
164 * <!-- begin-user-doc -->
165 * <!-- end-user-doc -->
166 * @generated
167 */
168 public NotificationChain basicSetCommunicationLink(DirectedCommunicationLink newCommunicationLink,
169 NotificationChain msgs) {
170 DirectedCommunicationLink oldCommunicationLink = communicationLink;
171 communicationLink = newCommunicationLink;
172 if (eNotificationRequired()) {
173 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
174 SatellitePackage.COMM_SUBSYSTEM__COMMUNICATION_LINK, oldCommunicationLink, newCommunicationLink);
175 if (msgs == null)
176 msgs = notification;
177 else
178 msgs.add(notification);
179 }
180 return msgs;
181 }
182
183 /**
184 * <!-- begin-user-doc -->
185 * <!-- end-user-doc -->
186 * @generated
187 */
188 @Override
189 public void setCommunicationLink(DirectedCommunicationLink newCommunicationLink) {
190 if (newCommunicationLink != communicationLink) {
191 NotificationChain msgs = null;
192 if (communicationLink != null)
193 msgs = ((InternalEObject) communicationLink).eInverseRemove(this,
194 EOPPOSITE_FEATURE_BASE - SatellitePackage.COMM_SUBSYSTEM__COMMUNICATION_LINK, null, msgs);
195 if (newCommunicationLink != null)
196 msgs = ((InternalEObject) newCommunicationLink).eInverseAdd(this,
197 EOPPOSITE_FEATURE_BASE - SatellitePackage.COMM_SUBSYSTEM__COMMUNICATION_LINK, null, msgs);
198 msgs = basicSetCommunicationLink(newCommunicationLink, msgs);
199 if (msgs != null)
200 msgs.dispatch();
201 } else if (eNotificationRequired())
202 eNotify(new ENotificationImpl(this, Notification.SET, SatellitePackage.COMM_SUBSYSTEM__COMMUNICATION_LINK,
203 newCommunicationLink, newCommunicationLink));
204 }
205
206 /**
207 * <!-- begin-user-doc -->
208 * <!-- end-user-doc -->
209 * @generated
210 */
211 @Override
212 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
213 switch (featureID) {
214 case SatellitePackage.COMM_SUBSYSTEM__COMMUNICATION_LINK:
215 return basicSetCommunicationLink(null, msgs);
216 }
217 return super.eInverseRemove(otherEnd, featureID, msgs);
218 }
219
220 /**
221 * <!-- begin-user-doc -->
222 * <!-- end-user-doc -->
223 * @generated
224 */
225 @Override
145 public Object eGet(int featureID, boolean resolve, boolean coreType) { 226 public Object eGet(int featureID, boolean resolve, boolean coreType) {
146 switch (featureID) { 227 switch (featureID) {
147 case SatellitePackage.COMM_SUBSYSTEM__BAND: 228 case SatellitePackage.COMM_SUBSYSTEM__BAND:
148 return getBand(); 229 return getBand();
149 case SatellitePackage.COMM_SUBSYSTEM__GAIN: 230 case SatellitePackage.COMM_SUBSYSTEM__GAIN:
150 return getGain(); 231 return getGain();
232 case SatellitePackage.COMM_SUBSYSTEM__COMMUNICATION_LINK:
233 return getCommunicationLink();
151 } 234 }
152 return super.eGet(featureID, resolve, coreType); 235 return super.eGet(featureID, resolve, coreType);
153 } 236 }
@@ -166,6 +249,9 @@ public class CommSubsystemImpl extends MinimalEObjectImpl.Container implements C
166 case SatellitePackage.COMM_SUBSYSTEM__GAIN: 249 case SatellitePackage.COMM_SUBSYSTEM__GAIN:
167 setGain((AntennaGain) newValue); 250 setGain((AntennaGain) newValue);
168 return; 251 return;
252 case SatellitePackage.COMM_SUBSYSTEM__COMMUNICATION_LINK:
253 setCommunicationLink((DirectedCommunicationLink) newValue);
254 return;
169 } 255 }
170 super.eSet(featureID, newValue); 256 super.eSet(featureID, newValue);
171 } 257 }
@@ -184,6 +270,9 @@ public class CommSubsystemImpl extends MinimalEObjectImpl.Container implements C
184 case SatellitePackage.COMM_SUBSYSTEM__GAIN: 270 case SatellitePackage.COMM_SUBSYSTEM__GAIN:
185 setGain(GAIN_EDEFAULT); 271 setGain(GAIN_EDEFAULT);
186 return; 272 return;
273 case SatellitePackage.COMM_SUBSYSTEM__COMMUNICATION_LINK:
274 setCommunicationLink((DirectedCommunicationLink) null);
275 return;
187 } 276 }
188 super.eUnset(featureID); 277 super.eUnset(featureID);
189 } 278 }
@@ -200,6 +289,8 @@ public class CommSubsystemImpl extends MinimalEObjectImpl.Container implements C
200 return band != BAND_EDEFAULT; 289 return band != BAND_EDEFAULT;
201 case SatellitePackage.COMM_SUBSYSTEM__GAIN: 290 case SatellitePackage.COMM_SUBSYSTEM__GAIN:
202 return gain != GAIN_EDEFAULT; 291 return gain != GAIN_EDEFAULT;
292 case SatellitePackage.COMM_SUBSYSTEM__COMMUNICATION_LINK:
293 return communicationLink != null;
203 } 294 }
204 return super.eIsSet(featureID); 295 return super.eIsSet(featureID);
205 } 296 }
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CommunicatingElementImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CommunicatingElementImpl.java
index 1f79da3b..f472580b 100644
--- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CommunicatingElementImpl.java
+++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CommunicatingElementImpl.java
@@ -3,16 +3,12 @@
3package satellite.impl; 3package satellite.impl;
4 4
5import java.util.Collection; 5import java.util.Collection;
6
7import org.eclipse.emf.common.notify.Notification;
8import org.eclipse.emf.common.notify.NotificationChain; 6import org.eclipse.emf.common.notify.NotificationChain;
9 7
10import org.eclipse.emf.common.util.EList; 8import org.eclipse.emf.common.util.EList;
11 9
12import org.eclipse.emf.ecore.EClass; 10import org.eclipse.emf.ecore.EClass;
13import org.eclipse.emf.ecore.InternalEObject; 11import org.eclipse.emf.ecore.InternalEObject;
14
15import org.eclipse.emf.ecore.impl.ENotificationImpl;
16import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; 12import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
17 13
18import org.eclipse.emf.ecore.util.EObjectContainmentEList; 14import org.eclipse.emf.ecore.util.EObjectContainmentEList;
@@ -49,16 +45,6 @@ public abstract class CommunicatingElementImpl extends MinimalEObjectImpl.Contai
49 protected EList<CommSubsystem> commSubsystem; 45 protected EList<CommSubsystem> commSubsystem;
50 46
51 /** 47 /**
52 * The cached value of the '{@link #getCommunicationLink() <em>Communication Link</em>}' containment reference.
53 * <!-- begin-user-doc -->
54 * <!-- end-user-doc -->
55 * @see #getCommunicationLink()
56 * @generated
57 * @ordered
58 */
59 protected DirectedCommunicationLink communicationLink;
60
61 /**
62 * <!-- begin-user-doc --> 48 * <!-- begin-user-doc -->
63 * <!-- end-user-doc --> 49 * <!-- end-user-doc -->
64 * @generated 50 * @generated
@@ -98,7 +84,10 @@ public abstract class CommunicatingElementImpl extends MinimalEObjectImpl.Contai
98 */ 84 */
99 @Override 85 @Override
100 public DirectedCommunicationLink getCommunicationLink() { 86 public DirectedCommunicationLink getCommunicationLink() {
101 return communicationLink; 87 DirectedCommunicationLink communicationLink = basicGetCommunicationLink();
88 return communicationLink != null && communicationLink.eIsProxy()
89 ? (DirectedCommunicationLink) eResolveProxy((InternalEObject) communicationLink)
90 : communicationLink;
102 } 91 }
103 92
104 /** 93 /**
@@ -106,46 +95,11 @@ public abstract class CommunicatingElementImpl extends MinimalEObjectImpl.Contai
106 * <!-- end-user-doc --> 95 * <!-- end-user-doc -->
107 * @generated 96 * @generated
108 */ 97 */
109 public NotificationChain basicSetCommunicationLink(DirectedCommunicationLink newCommunicationLink, 98 public DirectedCommunicationLink basicGetCommunicationLink() {
110 NotificationChain msgs) { 99 // TODO: implement this method to return the 'Communication Link' reference
111 DirectedCommunicationLink oldCommunicationLink = communicationLink; 100 // -> do not perform proxy resolution
112 communicationLink = newCommunicationLink; 101 // Ensure that you remove @generated or mark it @generated NOT
113 if (eNotificationRequired()) { 102 throw new UnsupportedOperationException();
114 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
115 SatellitePackage.COMMUNICATING_ELEMENT__COMMUNICATION_LINK, oldCommunicationLink,
116 newCommunicationLink);
117 if (msgs == null)
118 msgs = notification;
119 else
120 msgs.add(notification);
121 }
122 return msgs;
123 }
124
125 /**
126 * <!-- begin-user-doc -->
127 * <!-- end-user-doc -->
128 * @generated
129 */
130 @Override
131 public void setCommunicationLink(DirectedCommunicationLink newCommunicationLink) {
132 if (newCommunicationLink != communicationLink) {
133 NotificationChain msgs = null;
134 if (communicationLink != null)
135 msgs = ((InternalEObject) communicationLink).eInverseRemove(this,
136 EOPPOSITE_FEATURE_BASE - SatellitePackage.COMMUNICATING_ELEMENT__COMMUNICATION_LINK, null,
137 msgs);
138 if (newCommunicationLink != null)
139 msgs = ((InternalEObject) newCommunicationLink).eInverseAdd(this,
140 EOPPOSITE_FEATURE_BASE - SatellitePackage.COMMUNICATING_ELEMENT__COMMUNICATION_LINK, null,
141 msgs);
142 msgs = basicSetCommunicationLink(newCommunicationLink, msgs);
143 if (msgs != null)
144 msgs.dispatch();
145 } else if (eNotificationRequired())
146 eNotify(new ENotificationImpl(this, Notification.SET,
147 SatellitePackage.COMMUNICATING_ELEMENT__COMMUNICATION_LINK, newCommunicationLink,
148 newCommunicationLink));
149 } 103 }
150 104
151 /** 105 /**
@@ -158,8 +112,6 @@ public abstract class CommunicatingElementImpl extends MinimalEObjectImpl.Contai
158 switch (featureID) { 112 switch (featureID) {
159 case SatellitePackage.COMMUNICATING_ELEMENT__COMM_SUBSYSTEM: 113 case SatellitePackage.COMMUNICATING_ELEMENT__COMM_SUBSYSTEM:
160 return ((InternalEList<?>) getCommSubsystem()).basicRemove(otherEnd, msgs); 114 return ((InternalEList<?>) getCommSubsystem()).basicRemove(otherEnd, msgs);
161 case SatellitePackage.COMMUNICATING_ELEMENT__COMMUNICATION_LINK:
162 return basicSetCommunicationLink(null, msgs);
163 } 115 }
164 return super.eInverseRemove(otherEnd, featureID, msgs); 116 return super.eInverseRemove(otherEnd, featureID, msgs);
165 } 117 }
@@ -175,7 +127,9 @@ public abstract class CommunicatingElementImpl extends MinimalEObjectImpl.Contai
175 case SatellitePackage.COMMUNICATING_ELEMENT__COMM_SUBSYSTEM: 127 case SatellitePackage.COMMUNICATING_ELEMENT__COMM_SUBSYSTEM:
176 return getCommSubsystem(); 128 return getCommSubsystem();
177 case SatellitePackage.COMMUNICATING_ELEMENT__COMMUNICATION_LINK: 129 case SatellitePackage.COMMUNICATING_ELEMENT__COMMUNICATION_LINK:
178 return getCommunicationLink(); 130 if (resolve)
131 return getCommunicationLink();
132 return basicGetCommunicationLink();
179 } 133 }
180 return super.eGet(featureID, resolve, coreType); 134 return super.eGet(featureID, resolve, coreType);
181 } 135 }
@@ -193,9 +147,6 @@ public abstract class CommunicatingElementImpl extends MinimalEObjectImpl.Contai
193 getCommSubsystem().clear(); 147 getCommSubsystem().clear();
194 getCommSubsystem().addAll((Collection<? extends CommSubsystem>) newValue); 148 getCommSubsystem().addAll((Collection<? extends CommSubsystem>) newValue);
195 return; 149 return;
196 case SatellitePackage.COMMUNICATING_ELEMENT__COMMUNICATION_LINK:
197 setCommunicationLink((DirectedCommunicationLink) newValue);
198 return;
199 } 150 }
200 super.eSet(featureID, newValue); 151 super.eSet(featureID, newValue);
201 } 152 }
@@ -211,9 +162,6 @@ public abstract class CommunicatingElementImpl extends MinimalEObjectImpl.Contai
211 case SatellitePackage.COMMUNICATING_ELEMENT__COMM_SUBSYSTEM: 162 case SatellitePackage.COMMUNICATING_ELEMENT__COMM_SUBSYSTEM:
212 getCommSubsystem().clear(); 163 getCommSubsystem().clear();
213 return; 164 return;
214 case SatellitePackage.COMMUNICATING_ELEMENT__COMMUNICATION_LINK:
215 setCommunicationLink((DirectedCommunicationLink) null);
216 return;
217 } 165 }
218 super.eUnset(featureID); 166 super.eUnset(featureID);
219 } 167 }
@@ -229,7 +177,7 @@ public abstract class CommunicatingElementImpl extends MinimalEObjectImpl.Contai
229 case SatellitePackage.COMMUNICATING_ELEMENT__COMM_SUBSYSTEM: 177 case SatellitePackage.COMMUNICATING_ELEMENT__COMM_SUBSYSTEM:
230 return commSubsystem != null && !commSubsystem.isEmpty(); 178 return commSubsystem != null && !commSubsystem.isEmpty();
231 case SatellitePackage.COMMUNICATING_ELEMENT__COMMUNICATION_LINK: 179 case SatellitePackage.COMMUNICATING_ELEMENT__COMMUNICATION_LINK:
232 return communicationLink != null; 180 return basicGetCommunicationLink() != null;
233 } 181 }
234 return super.eIsSet(featureID); 182 return super.eIsSet(featureID);
235 } 183 }
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CubeSat3UImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CubeSat3UImpl.java
index a7ba37a7..350a9bcc 100644
--- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CubeSat3UImpl.java
+++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CubeSat3UImpl.java
@@ -14,7 +14,7 @@ import satellite.SatellitePackage;
14 * 14 *
15 * @generated 15 * @generated
16 */ 16 */
17public class CubeSat3UImpl extends SpacecraftImpl implements CubeSat3U { 17public class CubeSat3UImpl extends CubeSatImpl implements CubeSat3U {
18 /** 18 /**
19 * <!-- begin-user-doc --> 19 * <!-- begin-user-doc -->
20 * <!-- end-user-doc --> 20 * <!-- end-user-doc -->
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CubeSat6UImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CubeSat6UImpl.java
index d4f42e6c..3b9c5988 100644
--- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CubeSat6UImpl.java
+++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CubeSat6UImpl.java
@@ -14,7 +14,7 @@ import satellite.SatellitePackage;
14 * 14 *
15 * @generated 15 * @generated
16 */ 16 */
17public class CubeSat6UImpl extends SpacecraftImpl implements CubeSat6U { 17public class CubeSat6UImpl extends CubeSatImpl implements CubeSat6U {
18 /** 18 /**
19 * <!-- begin-user-doc --> 19 * <!-- begin-user-doc -->
20 * <!-- end-user-doc --> 20 * <!-- end-user-doc -->
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CubeSatImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CubeSatImpl.java
new file mode 100644
index 00000000..660bd062
--- /dev/null
+++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CubeSatImpl.java
@@ -0,0 +1,37 @@
1/**
2 */
3package satellite.impl;
4
5import org.eclipse.emf.ecore.EClass;
6
7import satellite.CubeSat;
8import satellite.SatellitePackage;
9
10/**
11 * <!-- begin-user-doc -->
12 * An implementation of the model object '<em><b>Cube Sat</b></em>'.
13 * <!-- end-user-doc -->
14 *
15 * @generated
16 */
17public abstract class CubeSatImpl extends SpacecraftImpl implements CubeSat {
18 /**
19 * <!-- begin-user-doc -->
20 * <!-- end-user-doc -->
21 * @generated
22 */
23 protected CubeSatImpl() {
24 super();
25 }
26
27 /**
28 * <!-- begin-user-doc -->
29 * <!-- end-user-doc -->
30 * @generated
31 */
32 @Override
33 protected EClass eStaticClass() {
34 return SatellitePackage.Literals.CUBE_SAT;
35 }
36
37} //CubeSatImpl
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..68e4ce30 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
@@ -14,6 +14,7 @@ import satellite.AntennaGain;
14import satellite.CommSubsystem; 14import satellite.CommSubsystem;
15import satellite.CommunicatingElement; 15import satellite.CommunicatingElement;
16import satellite.ConstellationMission; 16import satellite.ConstellationMission;
17import satellite.CubeSat;
17import satellite.CubeSat3U; 18import satellite.CubeSat3U;
18import satellite.CubeSat6U; 19import satellite.CubeSat6U;
19import satellite.DirectedCommunicationLink; 20import satellite.DirectedCommunicationLink;
@@ -124,6 +125,13 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka
124 * <!-- end-user-doc --> 125 * <!-- end-user-doc -->
125 * @generated 126 * @generated
126 */ 127 */
128 private EClass cubeSatEClass = null;
129
130 /**
131 * <!-- begin-user-doc -->
132 * <!-- end-user-doc -->
133 * @generated
134 */
127 private EEnum transceiverBandEEnum = null; 135 private EEnum transceiverBandEEnum = null;
128 136
129 /** 137 /**
@@ -360,6 +368,16 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka
360 * @generated 368 * @generated
361 */ 369 */
362 @Override 370 @Override
371 public EReference getCommSubsystem_CommunicationLink() {
372 return (EReference) commSubsystemEClass.getEStructuralFeatures().get(2);
373 }
374
375 /**
376 * <!-- begin-user-doc -->
377 * <!-- end-user-doc -->
378 * @generated
379 */
380 @Override
363 public EClass getDirectedCommunicationLink() { 381 public EClass getDirectedCommunicationLink() {
364 return directedCommunicationLinkEClass; 382 return directedCommunicationLinkEClass;
365 } 383 }
@@ -440,6 +458,16 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka
440 * @generated 458 * @generated
441 */ 459 */
442 @Override 460 @Override
461 public EClass getCubeSat() {
462 return cubeSatEClass;
463 }
464
465 /**
466 * <!-- begin-user-doc -->
467 * <!-- end-user-doc -->
468 * @generated
469 */
470 @Override
443 public EEnum getTransceiverBand() { 471 public EEnum getTransceiverBand() {
444 return transceiverBandEEnum; 472 return transceiverBandEEnum;
445 } 473 }
@@ -514,6 +542,7 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka
514 commSubsystemEClass = createEClass(COMM_SUBSYSTEM); 542 commSubsystemEClass = createEClass(COMM_SUBSYSTEM);
515 createEAttribute(commSubsystemEClass, COMM_SUBSYSTEM__BAND); 543 createEAttribute(commSubsystemEClass, COMM_SUBSYSTEM__BAND);
516 createEAttribute(commSubsystemEClass, COMM_SUBSYSTEM__GAIN); 544 createEAttribute(commSubsystemEClass, COMM_SUBSYSTEM__GAIN);
545 createEReference(commSubsystemEClass, COMM_SUBSYSTEM__COMMUNICATION_LINK);
517 546
518 directedCommunicationLinkEClass = createEClass(DIRECTED_COMMUNICATION_LINK); 547 directedCommunicationLinkEClass = createEClass(DIRECTED_COMMUNICATION_LINK);
519 createEReference(directedCommunicationLinkEClass, DIRECTED_COMMUNICATION_LINK__SOURCE); 548 createEReference(directedCommunicationLinkEClass, DIRECTED_COMMUNICATION_LINK__SOURCE);
@@ -529,6 +558,8 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka
529 558
530 smallSatEClass = createEClass(SMALL_SAT); 559 smallSatEClass = createEClass(SMALL_SAT);
531 560
561 cubeSatEClass = createEClass(CUBE_SAT);
562
532 // Create enums 563 // Create enums
533 transceiverBandEEnum = createEEnum(TRANSCEIVER_BAND); 564 transceiverBandEEnum = createEEnum(TRANSCEIVER_BAND);
534 antennaGainEEnum = createEEnum(ANTENNA_GAIN); 565 antennaGainEEnum = createEEnum(ANTENNA_GAIN);
@@ -568,9 +599,10 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka
568 groundStationNetworkEClass.getESuperTypes().add(this.getCommunicatingElement()); 599 groundStationNetworkEClass.getESuperTypes().add(this.getCommunicatingElement());
569 spacecraftEClass.getESuperTypes().add(this.getCommunicatingElement()); 600 spacecraftEClass.getESuperTypes().add(this.getCommunicatingElement());
570 interferometryPayloadEClass.getESuperTypes().add(this.getPayload()); 601 interferometryPayloadEClass.getESuperTypes().add(this.getPayload());
571 cubeSat3UEClass.getESuperTypes().add(this.getSpacecraft()); 602 cubeSat3UEClass.getESuperTypes().add(this.getCubeSat());
572 cubeSat6UEClass.getESuperTypes().add(this.getSpacecraft()); 603 cubeSat6UEClass.getESuperTypes().add(this.getCubeSat());
573 smallSatEClass.getESuperTypes().add(this.getSpacecraft()); 604 smallSatEClass.getESuperTypes().add(this.getSpacecraft());
605 cubeSatEClass.getESuperTypes().add(this.getSpacecraft());
574 606
575 // Initialize classes, features, and operations; add parameters 607 // Initialize classes, features, and operations; add parameters
576 initEClass(constellationMissionEClass, ConstellationMission.class, "ConstellationMission", IS_ABSTRACT, 608 initEClass(constellationMissionEClass, ConstellationMission.class, "ConstellationMission", IS_ABSTRACT,
@@ -594,8 +626,8 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka
594 2, CommunicatingElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, 626 2, CommunicatingElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,
595 !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 627 !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
596 initEReference(getCommunicatingElement_CommunicationLink(), this.getDirectedCommunicationLink(), null, 628 initEReference(getCommunicatingElement_CommunicationLink(), this.getDirectedCommunicationLink(), null,
597 "communicationLink", null, 0, 1, CommunicatingElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, 629 "communicationLink", null, 0, 1, CommunicatingElement.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE,
598 IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 630 !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
599 631
600 initEClass(groundStationNetworkEClass, GroundStationNetwork.class, "GroundStationNetwork", !IS_ABSTRACT, 632 initEClass(groundStationNetworkEClass, GroundStationNetwork.class, "GroundStationNetwork", !IS_ABSTRACT,
601 !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); 633 !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
@@ -614,6 +646,9 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka
614 !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 646 !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, 647 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); 648 !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
649 initEReference(getCommSubsystem_CommunicationLink(), this.getDirectedCommunicationLink(), null,
650 "communicationLink", null, 0, 1, CommSubsystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,
651 IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
617 652
618 initEClass(directedCommunicationLinkEClass, DirectedCommunicationLink.class, "DirectedCommunicationLink", 653 initEClass(directedCommunicationLinkEClass, DirectedCommunicationLink.class, "DirectedCommunicationLink",
619 !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); 654 !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
@@ -638,6 +673,8 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka
638 initEClass(smallSatEClass, SmallSat.class, "SmallSat", !IS_ABSTRACT, !IS_INTERFACE, 673 initEClass(smallSatEClass, SmallSat.class, "SmallSat", !IS_ABSTRACT, !IS_INTERFACE,
639 IS_GENERATED_INSTANCE_CLASS); 674 IS_GENERATED_INSTANCE_CLASS);
640 675
676 initEClass(cubeSatEClass, CubeSat.class, "CubeSat", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
677
641 // Initialize enums and add enum literals 678 // Initialize enums and add enum literals
642 initEEnum(transceiverBandEEnum, TransceiverBand.class, "TransceiverBand"); 679 initEEnum(transceiverBandEEnum, TransceiverBand.class, "TransceiverBand");
643 addEEnumLiteral(transceiverBandEEnum, TransceiverBand.UHF); 680 addEEnumLiteral(transceiverBandEEnum, TransceiverBand.UHF);
@@ -660,8 +697,6 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka
660 // Create annotations 697 // Create annotations
661 // http://www.eclipse.org/emf/2002/Ecore 698 // http://www.eclipse.org/emf/2002/Ecore
662 createEcoreAnnotations(); 699 createEcoreAnnotations();
663 // org.eclipse.viatra.query.querybasedfeature
664 createOrgAnnotations();
665 } 700 }
666 701
667 /** 702 /**
@@ -675,16 +710,4 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka
675 addAnnotation(this, source, new String[] { "settingDelegates", "org.eclipse.viatra.query.querybasedfeature" }); 710 addAnnotation(this, source, new String[] { "settingDelegates", "org.eclipse.viatra.query.querybasedfeature" });
676 } 711 }
677 712
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 }
689
690} //SatellitePackageImpl 713} //SatellitePackageImpl
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SpacecraftImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SpacecraftImpl.java
index 73609fbd..ef98fb07 100644
--- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SpacecraftImpl.java
+++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SpacecraftImpl.java
@@ -6,7 +6,6 @@ import org.eclipse.emf.common.notify.Notification;
6import org.eclipse.emf.common.notify.NotificationChain; 6import org.eclipse.emf.common.notify.NotificationChain;
7 7
8import org.eclipse.emf.ecore.EClass; 8import org.eclipse.emf.ecore.EClass;
9import org.eclipse.emf.ecore.EStructuralFeature;
10import org.eclipse.emf.ecore.InternalEObject; 9import org.eclipse.emf.ecore.InternalEObject;
11 10
12import org.eclipse.emf.ecore.impl.ENotificationImpl; 11import org.eclipse.emf.ecore.impl.ENotificationImpl;
@@ -42,15 +41,14 @@ public abstract class SpacecraftImpl extends CommunicatingElementImpl implements
42 protected Payload payload; 41 protected Payload payload;
43 42
44 /** 43 /**
45 * The cached setting delegate for the '{@link #getKind() <em>Kind</em>}' attribute. 44 * The default value of the '{@link #getKind() <em>Kind</em>}' attribute.
46 * <!-- begin-user-doc --> 45 * <!-- begin-user-doc -->
47 * <!-- end-user-doc --> 46 * <!-- end-user-doc -->
48 * @see #getKind() 47 * @see #getKind()
49 * @generated 48 * @generated
50 * @ordered 49 * @ordered
51 */ 50 */
52 protected EStructuralFeature.Internal.SettingDelegate KIND__ESETTING_DELEGATE = ((EStructuralFeature.Internal) SatellitePackage.Literals.SPACECRAFT__KIND) 51 protected static final SpacecraftKind KIND_EDEFAULT = SpacecraftKind.CUBE_SAT3_U;
53 .getSettingDelegate();
54 52
55 /** 53 /**
56 * <!-- begin-user-doc --> 54 * <!-- begin-user-doc -->
@@ -130,7 +128,9 @@ public abstract class SpacecraftImpl extends CommunicatingElementImpl implements
130 */ 128 */
131 @Override 129 @Override
132 public SpacecraftKind getKind() { 130 public SpacecraftKind getKind() {
133 return (SpacecraftKind) KIND__ESETTING_DELEGATE.dynamicGet(this, null, 0, true, false); 131 // TODO: implement this method to return the 'Kind' attribute
132 // Ensure that you remove @generated or mark it @generated NOT
133 throw new UnsupportedOperationException();
134 } 134 }
135 135
136 /** 136 /**
@@ -204,7 +204,7 @@ public abstract class SpacecraftImpl extends CommunicatingElementImpl implements
204 case SatellitePackage.SPACECRAFT__PAYLOAD: 204 case SatellitePackage.SPACECRAFT__PAYLOAD:
205 return payload != null; 205 return payload != null;
206 case SatellitePackage.SPACECRAFT__KIND: 206 case SatellitePackage.SPACECRAFT__KIND:
207 return KIND__ESETTING_DELEGATE.dynamicIsSet(this, null, 0); 207 return getKind() != KIND_EDEFAULT;
208 } 208 }
209 return super.eIsSet(featureID); 209 return super.eIsSet(featureID);
210 } 210 }
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/util/SatelliteAdapterFactory.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/util/SatelliteAdapterFactory.java
index 1ecf7b19..f71d8da5 100644
--- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/util/SatelliteAdapterFactory.java
+++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/util/SatelliteAdapterFactory.java
@@ -127,6 +127,11 @@ public class SatelliteAdapterFactory extends AdapterFactoryImpl {
127 } 127 }
128 128
129 @Override 129 @Override
130 public Adapter caseCubeSat(CubeSat object) {
131 return createCubeSatAdapter();
132 }
133
134 @Override
130 public Adapter defaultCase(EObject object) { 135 public Adapter defaultCase(EObject object) {
131 return createEObjectAdapter(); 136 return createEObjectAdapter();
132 } 137 }
@@ -314,6 +319,20 @@ public class SatelliteAdapterFactory extends AdapterFactoryImpl {
314 } 319 }
315 320
316 /** 321 /**
322 * Creates a new adapter for an object of class '{@link satellite.CubeSat <em>Cube Sat</em>}'.
323 * <!-- begin-user-doc -->
324 * This default implementation returns null so that we can easily ignore cases;
325 * it's useful to ignore a case when inheritance will catch all the cases anyway.
326 * <!-- end-user-doc -->
327 * @return the new adapter.
328 * @see satellite.CubeSat
329 * @generated
330 */
331 public Adapter createCubeSatAdapter() {
332 return null;
333 }
334
335 /**
317 * Creates a new adapter for the default case. 336 * Creates a new adapter for the default case.
318 * <!-- begin-user-doc --> 337 * <!-- begin-user-doc -->
319 * This default implementation returns null. 338 * This default implementation returns null.
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/util/SatelliteSwitch.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/util/SatelliteSwitch.java
index 3eb78d75..1e2fb04b 100644
--- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/util/SatelliteSwitch.java
+++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/util/SatelliteSwitch.java
@@ -141,6 +141,8 @@ public class SatelliteSwitch<T> extends Switch<T> {
141 CubeSat3U cubeSat3U = (CubeSat3U) theEObject; 141 CubeSat3U cubeSat3U = (CubeSat3U) theEObject;
142 T result = caseCubeSat3U(cubeSat3U); 142 T result = caseCubeSat3U(cubeSat3U);
143 if (result == null) 143 if (result == null)
144 result = caseCubeSat(cubeSat3U);
145 if (result == null)
144 result = caseSpacecraft(cubeSat3U); 146 result = caseSpacecraft(cubeSat3U);
145 if (result == null) 147 if (result == null)
146 result = caseCommunicatingElement(cubeSat3U); 148 result = caseCommunicatingElement(cubeSat3U);
@@ -152,6 +154,8 @@ public class SatelliteSwitch<T> extends Switch<T> {
152 CubeSat6U cubeSat6U = (CubeSat6U) theEObject; 154 CubeSat6U cubeSat6U = (CubeSat6U) theEObject;
153 T result = caseCubeSat6U(cubeSat6U); 155 T result = caseCubeSat6U(cubeSat6U);
154 if (result == null) 156 if (result == null)
157 result = caseCubeSat(cubeSat6U);
158 if (result == null)
155 result = caseSpacecraft(cubeSat6U); 159 result = caseSpacecraft(cubeSat6U);
156 if (result == null) 160 if (result == null)
157 result = caseCommunicatingElement(cubeSat6U); 161 result = caseCommunicatingElement(cubeSat6U);
@@ -170,6 +174,17 @@ public class SatelliteSwitch<T> extends Switch<T> {
170 result = defaultCase(theEObject); 174 result = defaultCase(theEObject);
171 return result; 175 return result;
172 } 176 }
177 case SatellitePackage.CUBE_SAT: {
178 CubeSat cubeSat = (CubeSat) theEObject;
179 T result = caseCubeSat(cubeSat);
180 if (result == null)
181 result = caseSpacecraft(cubeSat);
182 if (result == null)
183 result = caseCommunicatingElement(cubeSat);
184 if (result == null)
185 result = defaultCase(theEObject);
186 return result;
187 }
173 default: 188 default:
174 return defaultCase(theEObject); 189 return defaultCase(theEObject);
175 } 190 }
@@ -356,6 +371,21 @@ public class SatelliteSwitch<T> extends Switch<T> {
356 } 371 }
357 372
358 /** 373 /**
374 * Returns the result of interpreting the object as an instance of '<em>Cube Sat</em>'.
375 * <!-- begin-user-doc -->
376 * This implementation returns null;
377 * returning a non-null result will terminate the switch.
378 * <!-- end-user-doc -->
379 * @param object the target of the switch.
380 * @return the result of interpreting the object as an instance of '<em>Cube Sat</em>'.
381 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
382 * @generated
383 */
384 public T caseCubeSat(CubeSat object) {
385 return null;
386 }
387
388 /**
359 * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. 389 * Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
360 * <!-- begin-user-doc --> 390 * <!-- begin-user-doc -->
361 * This implementation returns null; 391 * This implementation returns null;