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