diff options
Diffstat (limited to 'Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf')
12 files changed, 446 insertions, 592 deletions
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/SatelliteFactory.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/SatelliteFactory.java index 3b77a668..958bbc08 100644 --- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/SatelliteFactory.java +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/SatelliteFactory.java | |||
@@ -40,33 +40,6 @@ public interface SatelliteFactory extends EFactory { | |||
40 | GroundStationNetwork createGroundStationNetwork(); | 40 | GroundStationNetwork createGroundStationNetwork(); |
41 | 41 | ||
42 | /** | 42 | /** |
43 | * Returns a new object of class '<em>Cube Sat3 U</em>'. | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @return a new object of class '<em>Cube Sat3 U</em>'. | ||
47 | * @generated | ||
48 | */ | ||
49 | CubeSat3U createCubeSat3U(); | ||
50 | |||
51 | /** | ||
52 | * Returns a new object of class '<em>Cube Sat6 U</em>'. | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @return a new object of class '<em>Cube Sat6 U</em>'. | ||
56 | * @generated | ||
57 | */ | ||
58 | CubeSat6U createCubeSat6U(); | ||
59 | |||
60 | /** | ||
61 | * Returns a new object of class '<em>Small Sat</em>'. | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @return a new object of class '<em>Small Sat</em>'. | ||
65 | * @generated | ||
66 | */ | ||
67 | SmallSat createSmallSat(); | ||
68 | |||
69 | /** | ||
70 | * Returns a new object of class '<em>Comm Subsystem</em>'. | 43 | * Returns a new object of class '<em>Comm Subsystem</em>'. |
71 | * <!-- begin-user-doc --> | 44 | * <!-- begin-user-doc --> |
72 | * <!-- end-user-doc --> | 45 | * <!-- end-user-doc --> |
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/SatellitePackage.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/SatellitePackage.java index 7c590f4f..61da12a0 100644 --- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/SatellitePackage.java +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/SatellitePackage.java | |||
@@ -288,187 +288,31 @@ public interface SatellitePackage extends EPackage { | |||
288 | int SPACECRAFT__PAYLOAD = COMMUNICATING_ELEMENT_FEATURE_COUNT + 0; | 288 | int SPACECRAFT__PAYLOAD = COMMUNICATING_ELEMENT_FEATURE_COUNT + 0; |
289 | 289 | ||
290 | /** | 290 | /** |
291 | * The number of structural features of the '<em>Spacecraft</em>' class. | 291 | * The feature id for the '<em><b>Kind</b></em>' attribute. |
292 | * <!-- begin-user-doc --> | ||
293 | * <!-- end-user-doc --> | ||
294 | * @generated | ||
295 | * @ordered | ||
296 | */ | ||
297 | int SPACECRAFT_FEATURE_COUNT = COMMUNICATING_ELEMENT_FEATURE_COUNT + 1; | ||
298 | |||
299 | /** | ||
300 | * The number of operations of the '<em>Spacecraft</em>' class. | ||
301 | * <!-- begin-user-doc --> | ||
302 | * <!-- end-user-doc --> | ||
303 | * @generated | ||
304 | * @ordered | ||
305 | */ | ||
306 | int SPACECRAFT_OPERATION_COUNT = COMMUNICATING_ELEMENT_OPERATION_COUNT + 0; | ||
307 | |||
308 | /** | ||
309 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.domains.satellite.impl.CubeSat3UImpl <em>Cube Sat3 U</em>}' class. | ||
310 | * <!-- begin-user-doc --> | ||
311 | * <!-- end-user-doc --> | ||
312 | * @see hu.bme.mit.inf.dslreasoner.domains.satellite.impl.CubeSat3UImpl | ||
313 | * @see hu.bme.mit.inf.dslreasoner.domains.satellite.impl.SatellitePackageImpl#getCubeSat3U() | ||
314 | * @generated | ||
315 | */ | ||
316 | int CUBE_SAT3_U = 5; | ||
317 | |||
318 | /** | ||
319 | * The feature id for the '<em><b>Comm Subsystem</b></em>' containment reference list. | ||
320 | * <!-- begin-user-doc --> | ||
321 | * <!-- end-user-doc --> | ||
322 | * @generated | ||
323 | * @ordered | ||
324 | */ | ||
325 | int CUBE_SAT3_U__COMM_SUBSYSTEM = SPACECRAFT__COMM_SUBSYSTEM; | ||
326 | |||
327 | /** | ||
328 | * The feature id for the '<em><b>Communication Link</b></em>' containment reference. | ||
329 | * <!-- begin-user-doc --> | ||
330 | * <!-- end-user-doc --> | ||
331 | * @generated | ||
332 | * @ordered | ||
333 | */ | ||
334 | int CUBE_SAT3_U__COMMUNICATION_LINK = SPACECRAFT__COMMUNICATION_LINK; | ||
335 | |||
336 | /** | ||
337 | * The feature id for the '<em><b>Payload</b></em>' containment reference. | ||
338 | * <!-- begin-user-doc --> | ||
339 | * <!-- end-user-doc --> | ||
340 | * @generated | ||
341 | * @ordered | ||
342 | */ | ||
343 | int CUBE_SAT3_U__PAYLOAD = SPACECRAFT__PAYLOAD; | ||
344 | |||
345 | /** | ||
346 | * The number of structural features of the '<em>Cube Sat3 U</em>' class. | ||
347 | * <!-- begin-user-doc --> | ||
348 | * <!-- end-user-doc --> | ||
349 | * @generated | ||
350 | * @ordered | ||
351 | */ | ||
352 | int CUBE_SAT3_U_FEATURE_COUNT = SPACECRAFT_FEATURE_COUNT + 0; | ||
353 | |||
354 | /** | ||
355 | * The number of operations of the '<em>Cube Sat3 U</em>' class. | ||
356 | * <!-- begin-user-doc --> | ||
357 | * <!-- end-user-doc --> | ||
358 | * @generated | ||
359 | * @ordered | ||
360 | */ | ||
361 | int CUBE_SAT3_U_OPERATION_COUNT = SPACECRAFT_OPERATION_COUNT + 0; | ||
362 | |||
363 | /** | ||
364 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.domains.satellite.impl.CubeSat6UImpl <em>Cube Sat6 U</em>}' class. | ||
365 | * <!-- begin-user-doc --> | ||
366 | * <!-- end-user-doc --> | ||
367 | * @see hu.bme.mit.inf.dslreasoner.domains.satellite.impl.CubeSat6UImpl | ||
368 | * @see hu.bme.mit.inf.dslreasoner.domains.satellite.impl.SatellitePackageImpl#getCubeSat6U() | ||
369 | * @generated | ||
370 | */ | ||
371 | int CUBE_SAT6_U = 6; | ||
372 | |||
373 | /** | ||
374 | * The feature id for the '<em><b>Comm Subsystem</b></em>' containment reference list. | ||
375 | * <!-- begin-user-doc --> | ||
376 | * <!-- end-user-doc --> | ||
377 | * @generated | ||
378 | * @ordered | ||
379 | */ | ||
380 | int CUBE_SAT6_U__COMM_SUBSYSTEM = SPACECRAFT__COMM_SUBSYSTEM; | ||
381 | |||
382 | /** | ||
383 | * The feature id for the '<em><b>Communication Link</b></em>' containment reference. | ||
384 | * <!-- begin-user-doc --> | ||
385 | * <!-- end-user-doc --> | ||
386 | * @generated | ||
387 | * @ordered | ||
388 | */ | ||
389 | int CUBE_SAT6_U__COMMUNICATION_LINK = SPACECRAFT__COMMUNICATION_LINK; | ||
390 | |||
391 | /** | ||
392 | * The feature id for the '<em><b>Payload</b></em>' containment reference. | ||
393 | * <!-- begin-user-doc --> | ||
394 | * <!-- end-user-doc --> | ||
395 | * @generated | ||
396 | * @ordered | ||
397 | */ | ||
398 | int CUBE_SAT6_U__PAYLOAD = SPACECRAFT__PAYLOAD; | ||
399 | |||
400 | /** | ||
401 | * The number of structural features of the '<em>Cube Sat6 U</em>' class. | ||
402 | * <!-- begin-user-doc --> | ||
403 | * <!-- end-user-doc --> | ||
404 | * @generated | ||
405 | * @ordered | ||
406 | */ | ||
407 | int CUBE_SAT6_U_FEATURE_COUNT = SPACECRAFT_FEATURE_COUNT + 0; | ||
408 | |||
409 | /** | ||
410 | * The number of operations of the '<em>Cube Sat6 U</em>' class. | ||
411 | * <!-- begin-user-doc --> | ||
412 | * <!-- end-user-doc --> | ||
413 | * @generated | ||
414 | * @ordered | ||
415 | */ | ||
416 | int CUBE_SAT6_U_OPERATION_COUNT = SPACECRAFT_OPERATION_COUNT + 0; | ||
417 | |||
418 | /** | ||
419 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.domains.satellite.impl.SmallSatImpl <em>Small Sat</em>}' class. | ||
420 | * <!-- begin-user-doc --> | ||
421 | * <!-- end-user-doc --> | ||
422 | * @see hu.bme.mit.inf.dslreasoner.domains.satellite.impl.SmallSatImpl | ||
423 | * @see hu.bme.mit.inf.dslreasoner.domains.satellite.impl.SatellitePackageImpl#getSmallSat() | ||
424 | * @generated | ||
425 | */ | ||
426 | int SMALL_SAT = 7; | ||
427 | |||
428 | /** | ||
429 | * The feature id for the '<em><b>Comm Subsystem</b></em>' containment reference list. | ||
430 | * <!-- begin-user-doc --> | ||
431 | * <!-- end-user-doc --> | ||
432 | * @generated | ||
433 | * @ordered | ||
434 | */ | ||
435 | int SMALL_SAT__COMM_SUBSYSTEM = SPACECRAFT__COMM_SUBSYSTEM; | ||
436 | |||
437 | /** | ||
438 | * The feature id for the '<em><b>Communication Link</b></em>' containment reference. | ||
439 | * <!-- begin-user-doc --> | 292 | * <!-- begin-user-doc --> |
440 | * <!-- end-user-doc --> | 293 | * <!-- end-user-doc --> |
441 | * @generated | 294 | * @generated |
442 | * @ordered | 295 | * @ordered |
443 | */ | 296 | */ |
444 | int SMALL_SAT__COMMUNICATION_LINK = SPACECRAFT__COMMUNICATION_LINK; | 297 | int SPACECRAFT__KIND = COMMUNICATING_ELEMENT_FEATURE_COUNT + 1; |
445 | 298 | ||
446 | /** | 299 | /** |
447 | * The feature id for the '<em><b>Payload</b></em>' containment reference. | 300 | * The number of structural features of the '<em>Spacecraft</em>' class. |
448 | * <!-- begin-user-doc --> | ||
449 | * <!-- end-user-doc --> | ||
450 | * @generated | ||
451 | * @ordered | ||
452 | */ | ||
453 | int SMALL_SAT__PAYLOAD = SPACECRAFT__PAYLOAD; | ||
454 | |||
455 | /** | ||
456 | * The number of structural features of the '<em>Small Sat</em>' class. | ||
457 | * <!-- begin-user-doc --> | 301 | * <!-- begin-user-doc --> |
458 | * <!-- end-user-doc --> | 302 | * <!-- end-user-doc --> |
459 | * @generated | 303 | * @generated |
460 | * @ordered | 304 | * @ordered |
461 | */ | 305 | */ |
462 | int SMALL_SAT_FEATURE_COUNT = SPACECRAFT_FEATURE_COUNT + 0; | 306 | int SPACECRAFT_FEATURE_COUNT = COMMUNICATING_ELEMENT_FEATURE_COUNT + 2; |
463 | 307 | ||
464 | /** | 308 | /** |
465 | * The number of operations of the '<em>Small Sat</em>' class. | 309 | * The number of operations of the '<em>Spacecraft</em>' class. |
466 | * <!-- begin-user-doc --> | 310 | * <!-- begin-user-doc --> |
467 | * <!-- end-user-doc --> | 311 | * <!-- end-user-doc --> |
468 | * @generated | 312 | * @generated |
469 | * @ordered | 313 | * @ordered |
470 | */ | 314 | */ |
471 | int SMALL_SAT_OPERATION_COUNT = SPACECRAFT_OPERATION_COUNT + 0; | 315 | int SPACECRAFT_OPERATION_COUNT = COMMUNICATING_ELEMENT_OPERATION_COUNT + 0; |
472 | 316 | ||
473 | /** | 317 | /** |
474 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.domains.satellite.impl.CommSubsystemImpl <em>Comm Subsystem</em>}' class. | 318 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.domains.satellite.impl.CommSubsystemImpl <em>Comm Subsystem</em>}' class. |
@@ -478,7 +322,7 @@ public interface SatellitePackage extends EPackage { | |||
478 | * @see hu.bme.mit.inf.dslreasoner.domains.satellite.impl.SatellitePackageImpl#getCommSubsystem() | 322 | * @see hu.bme.mit.inf.dslreasoner.domains.satellite.impl.SatellitePackageImpl#getCommSubsystem() |
479 | * @generated | 323 | * @generated |
480 | */ | 324 | */ |
481 | int COMM_SUBSYSTEM = 8; | 325 | int COMM_SUBSYSTEM = 5; |
482 | 326 | ||
483 | /** | 327 | /** |
484 | * The feature id for the '<em><b>Band</b></em>' attribute. | 328 | * The feature id for the '<em><b>Band</b></em>' attribute. |
@@ -524,7 +368,7 @@ public interface SatellitePackage extends EPackage { | |||
524 | * @see hu.bme.mit.inf.dslreasoner.domains.satellite.impl.SatellitePackageImpl#getDirectedCommunicationLink() | 368 | * @see hu.bme.mit.inf.dslreasoner.domains.satellite.impl.SatellitePackageImpl#getDirectedCommunicationLink() |
525 | * @generated | 369 | * @generated |
526 | */ | 370 | */ |
527 | int DIRECTED_COMMUNICATION_LINK = 9; | 371 | int DIRECTED_COMMUNICATION_LINK = 6; |
528 | 372 | ||
529 | /** | 373 | /** |
530 | * The feature id for the '<em><b>Source</b></em>' reference. | 374 | * The feature id for the '<em><b>Source</b></em>' reference. |
@@ -570,7 +414,7 @@ public interface SatellitePackage extends EPackage { | |||
570 | * @see hu.bme.mit.inf.dslreasoner.domains.satellite.impl.SatellitePackageImpl#getPayload() | 414 | * @see hu.bme.mit.inf.dslreasoner.domains.satellite.impl.SatellitePackageImpl#getPayload() |
571 | * @generated | 415 | * @generated |
572 | */ | 416 | */ |
573 | int PAYLOAD = 10; | 417 | int PAYLOAD = 7; |
574 | 418 | ||
575 | /** | 419 | /** |
576 | * The number of structural features of the '<em>Payload</em>' class. | 420 | * The number of structural features of the '<em>Payload</em>' class. |
@@ -598,7 +442,7 @@ public interface SatellitePackage extends EPackage { | |||
598 | * @see hu.bme.mit.inf.dslreasoner.domains.satellite.impl.SatellitePackageImpl#getInterferometryPayload() | 442 | * @see hu.bme.mit.inf.dslreasoner.domains.satellite.impl.SatellitePackageImpl#getInterferometryPayload() |
599 | * @generated | 443 | * @generated |
600 | */ | 444 | */ |
601 | int INTERFEROMETRY_PAYLOAD = 11; | 445 | int INTERFEROMETRY_PAYLOAD = 8; |
602 | 446 | ||
603 | /** | 447 | /** |
604 | * The number of structural features of the '<em>Interferometry Payload</em>' class. | 448 | * The number of structural features of the '<em>Interferometry Payload</em>' class. |
@@ -626,7 +470,7 @@ public interface SatellitePackage extends EPackage { | |||
626 | * @see hu.bme.mit.inf.dslreasoner.domains.satellite.impl.SatellitePackageImpl#getTransceiverBand() | 470 | * @see hu.bme.mit.inf.dslreasoner.domains.satellite.impl.SatellitePackageImpl#getTransceiverBand() |
627 | * @generated | 471 | * @generated |
628 | */ | 472 | */ |
629 | int TRANSCEIVER_BAND = 12; | 473 | int TRANSCEIVER_BAND = 9; |
630 | 474 | ||
631 | /** | 475 | /** |
632 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.domains.satellite.AntennaGain <em>Antenna Gain</em>}' enum. | 476 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.domains.satellite.AntennaGain <em>Antenna Gain</em>}' enum. |
@@ -636,7 +480,17 @@ public interface SatellitePackage extends EPackage { | |||
636 | * @see hu.bme.mit.inf.dslreasoner.domains.satellite.impl.SatellitePackageImpl#getAntennaGain() | 480 | * @see hu.bme.mit.inf.dslreasoner.domains.satellite.impl.SatellitePackageImpl#getAntennaGain() |
637 | * @generated | 481 | * @generated |
638 | */ | 482 | */ |
639 | int ANTENNA_GAIN = 13; | 483 | int ANTENNA_GAIN = 10; |
484 | |||
485 | /** | ||
486 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.domains.satellite.SpacecraftKind <em>Spacecraft Kind</em>}' enum. | ||
487 | * <!-- begin-user-doc --> | ||
488 | * <!-- end-user-doc --> | ||
489 | * @see hu.bme.mit.inf.dslreasoner.domains.satellite.SpacecraftKind | ||
490 | * @see hu.bme.mit.inf.dslreasoner.domains.satellite.impl.SatellitePackageImpl#getSpacecraftKind() | ||
491 | * @generated | ||
492 | */ | ||
493 | int SPACECRAFT_KIND = 11; | ||
640 | 494 | ||
641 | /** | 495 | /** |
642 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.domains.satellite.ConstellationMission <em>Constellation Mission</em>}'. | 496 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.domains.satellite.ConstellationMission <em>Constellation Mission</em>}'. |
@@ -755,34 +609,15 @@ public interface SatellitePackage extends EPackage { | |||
755 | EReference getSpacecraft_Payload(); | 609 | EReference getSpacecraft_Payload(); |
756 | 610 | ||
757 | /** | 611 | /** |
758 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.domains.satellite.CubeSat3U <em>Cube Sat3 U</em>}'. | 612 | * Returns the meta object for the attribute '{@link hu.bme.mit.inf.dslreasoner.domains.satellite.Spacecraft#getKind <em>Kind</em>}'. |
759 | * <!-- begin-user-doc --> | ||
760 | * <!-- end-user-doc --> | ||
761 | * @return the meta object for class '<em>Cube Sat3 U</em>'. | ||
762 | * @see hu.bme.mit.inf.dslreasoner.domains.satellite.CubeSat3U | ||
763 | * @generated | ||
764 | */ | ||
765 | EClass getCubeSat3U(); | ||
766 | |||
767 | /** | ||
768 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.domains.satellite.CubeSat6U <em>Cube Sat6 U</em>}'. | ||
769 | * <!-- begin-user-doc --> | 613 | * <!-- begin-user-doc --> |
770 | * <!-- end-user-doc --> | 614 | * <!-- end-user-doc --> |
771 | * @return the meta object for class '<em>Cube Sat6 U</em>'. | 615 | * @return the meta object for the attribute '<em>Kind</em>'. |
772 | * @see hu.bme.mit.inf.dslreasoner.domains.satellite.CubeSat6U | 616 | * @see hu.bme.mit.inf.dslreasoner.domains.satellite.Spacecraft#getKind() |
773 | * @generated | 617 | * @see #getSpacecraft() |
774 | */ | ||
775 | EClass getCubeSat6U(); | ||
776 | |||
777 | /** | ||
778 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.domains.satellite.SmallSat <em>Small Sat</em>}'. | ||
779 | * <!-- begin-user-doc --> | ||
780 | * <!-- end-user-doc --> | ||
781 | * @return the meta object for class '<em>Small Sat</em>'. | ||
782 | * @see hu.bme.mit.inf.dslreasoner.domains.satellite.SmallSat | ||
783 | * @generated | 618 | * @generated |
784 | */ | 619 | */ |
785 | EClass getSmallSat(); | 620 | EAttribute getSpacecraft_Kind(); |
786 | 621 | ||
787 | /** | 622 | /** |
788 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.domains.satellite.CommSubsystem <em>Comm Subsystem</em>}'. | 623 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.domains.satellite.CommSubsystem <em>Comm Subsystem</em>}'. |
@@ -889,6 +724,16 @@ public interface SatellitePackage extends EPackage { | |||
889 | EEnum getAntennaGain(); | 724 | EEnum getAntennaGain(); |
890 | 725 | ||
891 | /** | 726 | /** |
727 | * Returns the meta object for enum '{@link hu.bme.mit.inf.dslreasoner.domains.satellite.SpacecraftKind <em>Spacecraft Kind</em>}'. | ||
728 | * <!-- begin-user-doc --> | ||
729 | * <!-- end-user-doc --> | ||
730 | * @return the meta object for enum '<em>Spacecraft Kind</em>'. | ||
731 | * @see hu.bme.mit.inf.dslreasoner.domains.satellite.SpacecraftKind | ||
732 | * @generated | ||
733 | */ | ||
734 | EEnum getSpacecraftKind(); | ||
735 | |||
736 | /** | ||
892 | * Returns the factory that creates the instances of the model. | 737 | * Returns the factory that creates the instances of the model. |
893 | * <!-- begin-user-doc --> | 738 | * <!-- begin-user-doc --> |
894 | * <!-- end-user-doc --> | 739 | * <!-- end-user-doc --> |
@@ -1011,34 +856,12 @@ public interface SatellitePackage extends EPackage { | |||
1011 | EReference SPACECRAFT__PAYLOAD = eINSTANCE.getSpacecraft_Payload(); | 856 | EReference SPACECRAFT__PAYLOAD = eINSTANCE.getSpacecraft_Payload(); |
1012 | 857 | ||
1013 | /** | 858 | /** |
1014 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.domains.satellite.impl.CubeSat3UImpl <em>Cube Sat3 U</em>}' class. | 859 | * The meta object literal for the '<em><b>Kind</b></em>' attribute feature. |
1015 | * <!-- begin-user-doc --> | 860 | * <!-- begin-user-doc --> |
1016 | * <!-- end-user-doc --> | 861 | * <!-- end-user-doc --> |
1017 | * @see hu.bme.mit.inf.dslreasoner.domains.satellite.impl.CubeSat3UImpl | ||
1018 | * @see hu.bme.mit.inf.dslreasoner.domains.satellite.impl.SatellitePackageImpl#getCubeSat3U() | ||
1019 | * @generated | 862 | * @generated |
1020 | */ | 863 | */ |
1021 | EClass CUBE_SAT3_U = eINSTANCE.getCubeSat3U(); | 864 | EAttribute SPACECRAFT__KIND = eINSTANCE.getSpacecraft_Kind(); |
1022 | |||
1023 | /** | ||
1024 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.domains.satellite.impl.CubeSat6UImpl <em>Cube Sat6 U</em>}' class. | ||
1025 | * <!-- begin-user-doc --> | ||
1026 | * <!-- end-user-doc --> | ||
1027 | * @see hu.bme.mit.inf.dslreasoner.domains.satellite.impl.CubeSat6UImpl | ||
1028 | * @see hu.bme.mit.inf.dslreasoner.domains.satellite.impl.SatellitePackageImpl#getCubeSat6U() | ||
1029 | * @generated | ||
1030 | */ | ||
1031 | EClass CUBE_SAT6_U = eINSTANCE.getCubeSat6U(); | ||
1032 | |||
1033 | /** | ||
1034 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.domains.satellite.impl.SmallSatImpl <em>Small Sat</em>}' class. | ||
1035 | * <!-- begin-user-doc --> | ||
1036 | * <!-- end-user-doc --> | ||
1037 | * @see hu.bme.mit.inf.dslreasoner.domains.satellite.impl.SmallSatImpl | ||
1038 | * @see hu.bme.mit.inf.dslreasoner.domains.satellite.impl.SatellitePackageImpl#getSmallSat() | ||
1039 | * @generated | ||
1040 | */ | ||
1041 | EClass SMALL_SAT = eINSTANCE.getSmallSat(); | ||
1042 | 865 | ||
1043 | /** | 866 | /** |
1044 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.domains.satellite.impl.CommSubsystemImpl <em>Comm Subsystem</em>}' class. | 867 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.domains.satellite.impl.CommSubsystemImpl <em>Comm Subsystem</em>}' class. |
@@ -1132,6 +955,16 @@ public interface SatellitePackage extends EPackage { | |||
1132 | */ | 955 | */ |
1133 | EEnum ANTENNA_GAIN = eINSTANCE.getAntennaGain(); | 956 | EEnum ANTENNA_GAIN = eINSTANCE.getAntennaGain(); |
1134 | 957 | ||
958 | /** | ||
959 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.domains.satellite.SpacecraftKind <em>Spacecraft Kind</em>}' enum. | ||
960 | * <!-- begin-user-doc --> | ||
961 | * <!-- end-user-doc --> | ||
962 | * @see hu.bme.mit.inf.dslreasoner.domains.satellite.SpacecraftKind | ||
963 | * @see hu.bme.mit.inf.dslreasoner.domains.satellite.impl.SatellitePackageImpl#getSpacecraftKind() | ||
964 | * @generated | ||
965 | */ | ||
966 | EEnum SPACECRAFT_KIND = eINSTANCE.getSpacecraftKind(); | ||
967 | |||
1135 | } | 968 | } |
1136 | 969 | ||
1137 | } //SatellitePackage | 970 | } //SatellitePackage |
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/Spacecraft.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/Spacecraft.java index 2e5e5044..cc4b85a1 100644 --- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/Spacecraft.java +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/Spacecraft.java | |||
@@ -12,6 +12,7 @@ package hu.bme.mit.inf.dslreasoner.domains.satellite; | |||
12 | * </p> | 12 | * </p> |
13 | * <ul> | 13 | * <ul> |
14 | * <li>{@link hu.bme.mit.inf.dslreasoner.domains.satellite.Spacecraft#getPayload <em>Payload</em>}</li> | 14 | * <li>{@link hu.bme.mit.inf.dslreasoner.domains.satellite.Spacecraft#getPayload <em>Payload</em>}</li> |
15 | * <li>{@link hu.bme.mit.inf.dslreasoner.domains.satellite.Spacecraft#getKind <em>Kind</em>}</li> | ||
15 | * </ul> | 16 | * </ul> |
16 | * | 17 | * |
17 | * @see hu.bme.mit.inf.dslreasoner.domains.satellite.SatellitePackage#getSpacecraft() | 18 | * @see hu.bme.mit.inf.dslreasoner.domains.satellite.SatellitePackage#getSpacecraft() |
@@ -45,4 +46,33 @@ public interface Spacecraft extends CommunicatingElement { | |||
45 | */ | 46 | */ |
46 | void setPayload(Payload value); | 47 | void setPayload(Payload value); |
47 | 48 | ||
49 | /** | ||
50 | * Returns the value of the '<em><b>Kind</b></em>' attribute. | ||
51 | * The literals are from the enumeration {@link hu.bme.mit.inf.dslreasoner.domains.satellite.SpacecraftKind}. | ||
52 | * <!-- begin-user-doc --> | ||
53 | * <p> | ||
54 | * If the meaning of the '<em>Kind</em>' attribute isn't clear, | ||
55 | * there really should be more of a description here... | ||
56 | * </p> | ||
57 | * <!-- end-user-doc --> | ||
58 | * @return the value of the '<em>Kind</em>' attribute. | ||
59 | * @see hu.bme.mit.inf.dslreasoner.domains.satellite.SpacecraftKind | ||
60 | * @see #setKind(SpacecraftKind) | ||
61 | * @see hu.bme.mit.inf.dslreasoner.domains.satellite.SatellitePackage#getSpacecraft_Kind() | ||
62 | * @model required="true" | ||
63 | * @generated | ||
64 | */ | ||
65 | SpacecraftKind getKind(); | ||
66 | |||
67 | /** | ||
68 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.domains.satellite.Spacecraft#getKind <em>Kind</em>}' attribute. | ||
69 | * <!-- begin-user-doc --> | ||
70 | * <!-- end-user-doc --> | ||
71 | * @param value the new value of the '<em>Kind</em>' attribute. | ||
72 | * @see hu.bme.mit.inf.dslreasoner.domains.satellite.SpacecraftKind | ||
73 | * @see #getKind() | ||
74 | * @generated | ||
75 | */ | ||
76 | void setKind(SpacecraftKind value); | ||
77 | |||
48 | } // Spacecraft | 78 | } // Spacecraft |
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/SpacecraftKind.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/SpacecraftKind.java new file mode 100644 index 00000000..8be6abc1 --- /dev/null +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/SpacecraftKind.java | |||
@@ -0,0 +1,241 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.domains.satellite; | ||
4 | |||
5 | import java.util.Arrays; | ||
6 | import java.util.Collections; | ||
7 | import java.util.List; | ||
8 | |||
9 | import org.eclipse.emf.common.util.Enumerator; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * A representation of the literals of the enumeration '<em><b>Spacecraft Kind</b></em>', | ||
14 | * and utility methods for working with them. | ||
15 | * <!-- end-user-doc --> | ||
16 | * @see hu.bme.mit.inf.dslreasoner.domains.satellite.SatellitePackage#getSpacecraftKind() | ||
17 | * @model | ||
18 | * @generated | ||
19 | */ | ||
20 | public enum SpacecraftKind implements Enumerator { | ||
21 | /** | ||
22 | * The '<em><b>Cube Sat3 U</b></em>' literal object. | ||
23 | * <!-- begin-user-doc --> | ||
24 | * <!-- end-user-doc --> | ||
25 | * @see #CUBE_SAT3_U_VALUE | ||
26 | * @generated | ||
27 | * @ordered | ||
28 | */ | ||
29 | CUBE_SAT3_U(0, "CubeSat3U", "CubeSat3U"), | ||
30 | |||
31 | /** | ||
32 | * The '<em><b>Cube Sat6 U</b></em>' literal object. | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @see #CUBE_SAT6_U_VALUE | ||
36 | * @generated | ||
37 | * @ordered | ||
38 | */ | ||
39 | CUBE_SAT6_U(1, "CubeSat6U", "CubeSat6U"), | ||
40 | /** | ||
41 | * The '<em><b>Small Sat</b></em>' literal object. | ||
42 | * <!-- begin-user-doc --> | ||
43 | * <!-- end-user-doc --> | ||
44 | * @see #SMALL_SAT_VALUE | ||
45 | * @generated | ||
46 | * @ordered | ||
47 | */ | ||
48 | SMALL_SAT(2, "SmallSat", "SmallSat"); | ||
49 | |||
50 | /** | ||
51 | * The '<em><b>Cube Sat3 U</b></em>' literal value. | ||
52 | * <!-- begin-user-doc --> | ||
53 | * <p> | ||
54 | * If the meaning of '<em><b>Cube Sat3 U</b></em>' literal object isn't clear, | ||
55 | * there really should be more of a description here... | ||
56 | * </p> | ||
57 | * <!-- end-user-doc --> | ||
58 | * @see #CUBE_SAT3_U | ||
59 | * @model name="CubeSat3U" | ||
60 | * @generated | ||
61 | * @ordered | ||
62 | */ | ||
63 | public static final int CUBE_SAT3_U_VALUE = 0; | ||
64 | |||
65 | /** | ||
66 | * The '<em><b>Cube Sat6 U</b></em>' literal value. | ||
67 | * <!-- begin-user-doc --> | ||
68 | * <p> | ||
69 | * If the meaning of '<em><b>Cube Sat6 U</b></em>' literal object isn't clear, | ||
70 | * there really should be more of a description here... | ||
71 | * </p> | ||
72 | * <!-- end-user-doc --> | ||
73 | * @see #CUBE_SAT6_U | ||
74 | * @model name="CubeSat6U" | ||
75 | * @generated | ||
76 | * @ordered | ||
77 | */ | ||
78 | public static final int CUBE_SAT6_U_VALUE = 1; | ||
79 | |||
80 | /** | ||
81 | * The '<em><b>Small Sat</b></em>' literal value. | ||
82 | * <!-- begin-user-doc --> | ||
83 | * <p> | ||
84 | * If the meaning of '<em><b>Small Sat</b></em>' literal object isn't clear, | ||
85 | * there really should be more of a description here... | ||
86 | * </p> | ||
87 | * <!-- end-user-doc --> | ||
88 | * @see #SMALL_SAT | ||
89 | * @model name="SmallSat" | ||
90 | * @generated | ||
91 | * @ordered | ||
92 | */ | ||
93 | public static final int SMALL_SAT_VALUE = 2; | ||
94 | |||
95 | /** | ||
96 | * An array of all the '<em><b>Spacecraft Kind</b></em>' enumerators. | ||
97 | * <!-- begin-user-doc --> | ||
98 | * <!-- end-user-doc --> | ||
99 | * @generated | ||
100 | */ | ||
101 | private static final SpacecraftKind[] VALUES_ARRAY = new SpacecraftKind[] { CUBE_SAT3_U, CUBE_SAT6_U, SMALL_SAT, }; | ||
102 | |||
103 | /** | ||
104 | * A public read-only list of all the '<em><b>Spacecraft Kind</b></em>' enumerators. | ||
105 | * <!-- begin-user-doc --> | ||
106 | * <!-- end-user-doc --> | ||
107 | * @generated | ||
108 | */ | ||
109 | public static final List<SpacecraftKind> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); | ||
110 | |||
111 | /** | ||
112 | * Returns the '<em><b>Spacecraft Kind</b></em>' literal with the specified literal value. | ||
113 | * <!-- begin-user-doc --> | ||
114 | * <!-- end-user-doc --> | ||
115 | * @param literal the literal. | ||
116 | * @return the matching enumerator or <code>null</code>. | ||
117 | * @generated | ||
118 | */ | ||
119 | public static SpacecraftKind get(String literal) { | ||
120 | for (int i = 0; i < VALUES_ARRAY.length; ++i) { | ||
121 | SpacecraftKind result = VALUES_ARRAY[i]; | ||
122 | if (result.toString().equals(literal)) { | ||
123 | return result; | ||
124 | } | ||
125 | } | ||
126 | return null; | ||
127 | } | ||
128 | |||
129 | /** | ||
130 | * Returns the '<em><b>Spacecraft Kind</b></em>' literal with the specified name. | ||
131 | * <!-- begin-user-doc --> | ||
132 | * <!-- end-user-doc --> | ||
133 | * @param name the name. | ||
134 | * @return the matching enumerator or <code>null</code>. | ||
135 | * @generated | ||
136 | */ | ||
137 | public static SpacecraftKind getByName(String name) { | ||
138 | for (int i = 0; i < VALUES_ARRAY.length; ++i) { | ||
139 | SpacecraftKind result = VALUES_ARRAY[i]; | ||
140 | if (result.getName().equals(name)) { | ||
141 | return result; | ||
142 | } | ||
143 | } | ||
144 | return null; | ||
145 | } | ||
146 | |||
147 | /** | ||
148 | * Returns the '<em><b>Spacecraft Kind</b></em>' literal with the specified integer value. | ||
149 | * <!-- begin-user-doc --> | ||
150 | * <!-- end-user-doc --> | ||
151 | * @param value the integer value. | ||
152 | * @return the matching enumerator or <code>null</code>. | ||
153 | * @generated | ||
154 | */ | ||
155 | public static SpacecraftKind get(int value) { | ||
156 | switch (value) { | ||
157 | case CUBE_SAT3_U_VALUE: | ||
158 | return CUBE_SAT3_U; | ||
159 | case CUBE_SAT6_U_VALUE: | ||
160 | return CUBE_SAT6_U; | ||
161 | case SMALL_SAT_VALUE: | ||
162 | return SMALL_SAT; | ||
163 | } | ||
164 | return null; | ||
165 | } | ||
166 | |||
167 | /** | ||
168 | * <!-- begin-user-doc --> | ||
169 | * <!-- end-user-doc --> | ||
170 | * @generated | ||
171 | */ | ||
172 | private final int value; | ||
173 | |||
174 | /** | ||
175 | * <!-- begin-user-doc --> | ||
176 | * <!-- end-user-doc --> | ||
177 | * @generated | ||
178 | */ | ||
179 | private final String name; | ||
180 | |||
181 | /** | ||
182 | * <!-- begin-user-doc --> | ||
183 | * <!-- end-user-doc --> | ||
184 | * @generated | ||
185 | */ | ||
186 | private final String literal; | ||
187 | |||
188 | /** | ||
189 | * Only this class can construct instances. | ||
190 | * <!-- begin-user-doc --> | ||
191 | * <!-- end-user-doc --> | ||
192 | * @generated | ||
193 | */ | ||
194 | private SpacecraftKind(int value, String name, String literal) { | ||
195 | this.value = value; | ||
196 | this.name = name; | ||
197 | this.literal = literal; | ||
198 | } | ||
199 | |||
200 | /** | ||
201 | * <!-- begin-user-doc --> | ||
202 | * <!-- end-user-doc --> | ||
203 | * @generated | ||
204 | */ | ||
205 | @Override | ||
206 | public int getValue() { | ||
207 | return value; | ||
208 | } | ||
209 | |||
210 | /** | ||
211 | * <!-- begin-user-doc --> | ||
212 | * <!-- end-user-doc --> | ||
213 | * @generated | ||
214 | */ | ||
215 | @Override | ||
216 | public String getName() { | ||
217 | return name; | ||
218 | } | ||
219 | |||
220 | /** | ||
221 | * <!-- begin-user-doc --> | ||
222 | * <!-- end-user-doc --> | ||
223 | * @generated | ||
224 | */ | ||
225 | @Override | ||
226 | public String getLiteral() { | ||
227 | return literal; | ||
228 | } | ||
229 | |||
230 | /** | ||
231 | * Returns the literal value of the enumerator, which is its string representation. | ||
232 | * <!-- begin-user-doc --> | ||
233 | * <!-- end-user-doc --> | ||
234 | * @generated | ||
235 | */ | ||
236 | @Override | ||
237 | public String toString() { | ||
238 | return literal; | ||
239 | } | ||
240 | |||
241 | } //SpacecraftKind | ||
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/CubeSat3UImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/CubeSat3UImpl.java deleted file mode 100644 index 0057b3d4..00000000 --- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/CubeSat3UImpl.java +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.domains.satellite.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.domains.satellite.CubeSat3U; | ||
6 | import hu.bme.mit.inf.dslreasoner.domains.satellite.SatellitePackage; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | |||
10 | /** | ||
11 | * <!-- begin-user-doc --> | ||
12 | * An implementation of the model object '<em><b>Cube Sat3 U</b></em>'. | ||
13 | * <!-- end-user-doc --> | ||
14 | * | ||
15 | * @generated | ||
16 | */ | ||
17 | public class CubeSat3UImpl extends SpacecraftImpl implements CubeSat3U { | ||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * <!-- end-user-doc --> | ||
21 | * @generated | ||
22 | */ | ||
23 | protected CubeSat3UImpl() { | ||
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_SAT3_U; | ||
35 | } | ||
36 | |||
37 | } //CubeSat3UImpl | ||
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/CubeSat6UImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/CubeSat6UImpl.java deleted file mode 100644 index 3f34c6ea..00000000 --- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/CubeSat6UImpl.java +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.domains.satellite.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.domains.satellite.CubeSat6U; | ||
6 | import hu.bme.mit.inf.dslreasoner.domains.satellite.SatellitePackage; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | |||
10 | /** | ||
11 | * <!-- begin-user-doc --> | ||
12 | * An implementation of the model object '<em><b>Cube Sat6 U</b></em>'. | ||
13 | * <!-- end-user-doc --> | ||
14 | * | ||
15 | * @generated | ||
16 | */ | ||
17 | public class CubeSat6UImpl extends SpacecraftImpl implements CubeSat6U { | ||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * <!-- end-user-doc --> | ||
21 | * @generated | ||
22 | */ | ||
23 | protected CubeSat6UImpl() { | ||
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_SAT6_U; | ||
35 | } | ||
36 | |||
37 | } //CubeSat6UImpl | ||
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/SatelliteFactoryImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/SatelliteFactoryImpl.java index 5deb0c05..0cb07cfa 100644 --- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/SatelliteFactoryImpl.java +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/SatelliteFactoryImpl.java | |||
@@ -61,12 +61,6 @@ public class SatelliteFactoryImpl extends EFactoryImpl implements SatelliteFacto | |||
61 | return createInterferometryMission(); | 61 | return createInterferometryMission(); |
62 | case SatellitePackage.GROUND_STATION_NETWORK: | 62 | case SatellitePackage.GROUND_STATION_NETWORK: |
63 | return createGroundStationNetwork(); | 63 | return createGroundStationNetwork(); |
64 | case SatellitePackage.CUBE_SAT3_U: | ||
65 | return createCubeSat3U(); | ||
66 | case SatellitePackage.CUBE_SAT6_U: | ||
67 | return createCubeSat6U(); | ||
68 | case SatellitePackage.SMALL_SAT: | ||
69 | return createSmallSat(); | ||
70 | case SatellitePackage.COMM_SUBSYSTEM: | 64 | case SatellitePackage.COMM_SUBSYSTEM: |
71 | return createCommSubsystem(); | 65 | return createCommSubsystem(); |
72 | case SatellitePackage.DIRECTED_COMMUNICATION_LINK: | 66 | case SatellitePackage.DIRECTED_COMMUNICATION_LINK: |
@@ -90,6 +84,8 @@ public class SatelliteFactoryImpl extends EFactoryImpl implements SatelliteFacto | |||
90 | return createTransceiverBandFromString(eDataType, initialValue); | 84 | return createTransceiverBandFromString(eDataType, initialValue); |
91 | case SatellitePackage.ANTENNA_GAIN: | 85 | case SatellitePackage.ANTENNA_GAIN: |
92 | return createAntennaGainFromString(eDataType, initialValue); | 86 | return createAntennaGainFromString(eDataType, initialValue); |
87 | case SatellitePackage.SPACECRAFT_KIND: | ||
88 | return createSpacecraftKindFromString(eDataType, initialValue); | ||
93 | default: | 89 | default: |
94 | throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); | 90 | throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); |
95 | } | 91 | } |
@@ -107,6 +103,8 @@ public class SatelliteFactoryImpl extends EFactoryImpl implements SatelliteFacto | |||
107 | return convertTransceiverBandToString(eDataType, instanceValue); | 103 | return convertTransceiverBandToString(eDataType, instanceValue); |
108 | case SatellitePackage.ANTENNA_GAIN: | 104 | case SatellitePackage.ANTENNA_GAIN: |
109 | return convertAntennaGainToString(eDataType, instanceValue); | 105 | return convertAntennaGainToString(eDataType, instanceValue); |
106 | case SatellitePackage.SPACECRAFT_KIND: | ||
107 | return convertSpacecraftKindToString(eDataType, instanceValue); | ||
110 | default: | 108 | default: |
111 | throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); | 109 | throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); |
112 | } | 110 | } |
@@ -140,39 +138,6 @@ public class SatelliteFactoryImpl extends EFactoryImpl implements SatelliteFacto | |||
140 | * @generated | 138 | * @generated |
141 | */ | 139 | */ |
142 | @Override | 140 | @Override |
143 | public CubeSat3U createCubeSat3U() { | ||
144 | CubeSat3UImpl cubeSat3U = new CubeSat3UImpl(); | ||
145 | return cubeSat3U; | ||
146 | } | ||
147 | |||
148 | /** | ||
149 | * <!-- begin-user-doc --> | ||
150 | * <!-- end-user-doc --> | ||
151 | * @generated | ||
152 | */ | ||
153 | @Override | ||
154 | public CubeSat6U createCubeSat6U() { | ||
155 | CubeSat6UImpl cubeSat6U = new CubeSat6UImpl(); | ||
156 | return cubeSat6U; | ||
157 | } | ||
158 | |||
159 | /** | ||
160 | * <!-- begin-user-doc --> | ||
161 | * <!-- end-user-doc --> | ||
162 | * @generated | ||
163 | */ | ||
164 | @Override | ||
165 | public SmallSat createSmallSat() { | ||
166 | SmallSatImpl smallSat = new SmallSatImpl(); | ||
167 | return smallSat; | ||
168 | } | ||
169 | |||
170 | /** | ||
171 | * <!-- begin-user-doc --> | ||
172 | * <!-- end-user-doc --> | ||
173 | * @generated | ||
174 | */ | ||
175 | @Override | ||
176 | public CommSubsystem createCommSubsystem() { | 141 | public CommSubsystem createCommSubsystem() { |
177 | CommSubsystemImpl commSubsystem = new CommSubsystemImpl(); | 142 | CommSubsystemImpl commSubsystem = new CommSubsystemImpl(); |
178 | return commSubsystem; | 143 | return commSubsystem; |
@@ -249,6 +214,28 @@ public class SatelliteFactoryImpl extends EFactoryImpl implements SatelliteFacto | |||
249 | * <!-- end-user-doc --> | 214 | * <!-- end-user-doc --> |
250 | * @generated | 215 | * @generated |
251 | */ | 216 | */ |
217 | public SpacecraftKind createSpacecraftKindFromString(EDataType eDataType, String initialValue) { | ||
218 | SpacecraftKind result = SpacecraftKind.get(initialValue); | ||
219 | if (result == null) | ||
220 | throw new IllegalArgumentException( | ||
221 | "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); | ||
222 | return result; | ||
223 | } | ||
224 | |||
225 | /** | ||
226 | * <!-- begin-user-doc --> | ||
227 | * <!-- end-user-doc --> | ||
228 | * @generated | ||
229 | */ | ||
230 | public String convertSpacecraftKindToString(EDataType eDataType, Object instanceValue) { | ||
231 | return instanceValue == null ? null : instanceValue.toString(); | ||
232 | } | ||
233 | |||
234 | /** | ||
235 | * <!-- begin-user-doc --> | ||
236 | * <!-- end-user-doc --> | ||
237 | * @generated | ||
238 | */ | ||
252 | @Override | 239 | @Override |
253 | public SatellitePackage getSatellitePackage() { | 240 | public SatellitePackage getSatellitePackage() { |
254 | return (SatellitePackage) getEPackage(); | 241 | return (SatellitePackage) getEPackage(); |
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/SatellitePackageImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/SatellitePackageImpl.java index 067eabd4..48ba32b8 100644 --- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/SatellitePackageImpl.java +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/SatellitePackageImpl.java | |||
@@ -6,8 +6,6 @@ import hu.bme.mit.inf.dslreasoner.domains.satellite.AntennaGain; | |||
6 | import hu.bme.mit.inf.dslreasoner.domains.satellite.CommSubsystem; | 6 | import hu.bme.mit.inf.dslreasoner.domains.satellite.CommSubsystem; |
7 | import hu.bme.mit.inf.dslreasoner.domains.satellite.CommunicatingElement; | 7 | import hu.bme.mit.inf.dslreasoner.domains.satellite.CommunicatingElement; |
8 | import hu.bme.mit.inf.dslreasoner.domains.satellite.ConstellationMission; | 8 | import hu.bme.mit.inf.dslreasoner.domains.satellite.ConstellationMission; |
9 | import hu.bme.mit.inf.dslreasoner.domains.satellite.CubeSat3U; | ||
10 | import hu.bme.mit.inf.dslreasoner.domains.satellite.CubeSat6U; | ||
11 | import hu.bme.mit.inf.dslreasoner.domains.satellite.DirectedCommunicationLink; | 9 | import hu.bme.mit.inf.dslreasoner.domains.satellite.DirectedCommunicationLink; |
12 | import hu.bme.mit.inf.dslreasoner.domains.satellite.GroundStationNetwork; | 10 | import hu.bme.mit.inf.dslreasoner.domains.satellite.GroundStationNetwork; |
13 | import hu.bme.mit.inf.dslreasoner.domains.satellite.InterferometryMission; | 11 | import hu.bme.mit.inf.dslreasoner.domains.satellite.InterferometryMission; |
@@ -15,8 +13,8 @@ import hu.bme.mit.inf.dslreasoner.domains.satellite.InterferometryPayload; | |||
15 | import hu.bme.mit.inf.dslreasoner.domains.satellite.Payload; | 13 | import hu.bme.mit.inf.dslreasoner.domains.satellite.Payload; |
16 | import hu.bme.mit.inf.dslreasoner.domains.satellite.SatelliteFactory; | 14 | import hu.bme.mit.inf.dslreasoner.domains.satellite.SatelliteFactory; |
17 | import hu.bme.mit.inf.dslreasoner.domains.satellite.SatellitePackage; | 15 | import hu.bme.mit.inf.dslreasoner.domains.satellite.SatellitePackage; |
18 | import hu.bme.mit.inf.dslreasoner.domains.satellite.SmallSat; | ||
19 | import hu.bme.mit.inf.dslreasoner.domains.satellite.Spacecraft; | 16 | import hu.bme.mit.inf.dslreasoner.domains.satellite.Spacecraft; |
17 | import hu.bme.mit.inf.dslreasoner.domains.satellite.SpacecraftKind; | ||
20 | import hu.bme.mit.inf.dslreasoner.domains.satellite.TransceiverBand; | 18 | import hu.bme.mit.inf.dslreasoner.domains.satellite.TransceiverBand; |
21 | 19 | ||
22 | import org.eclipse.emf.ecore.EAttribute; | 20 | import org.eclipse.emf.ecore.EAttribute; |
@@ -74,27 +72,6 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
74 | * <!-- end-user-doc --> | 72 | * <!-- end-user-doc --> |
75 | * @generated | 73 | * @generated |
76 | */ | 74 | */ |
77 | private EClass cubeSat3UEClass = null; | ||
78 | |||
79 | /** | ||
80 | * <!-- begin-user-doc --> | ||
81 | * <!-- end-user-doc --> | ||
82 | * @generated | ||
83 | */ | ||
84 | private EClass cubeSat6UEClass = null; | ||
85 | |||
86 | /** | ||
87 | * <!-- begin-user-doc --> | ||
88 | * <!-- end-user-doc --> | ||
89 | * @generated | ||
90 | */ | ||
91 | private EClass smallSatEClass = null; | ||
92 | |||
93 | /** | ||
94 | * <!-- begin-user-doc --> | ||
95 | * <!-- end-user-doc --> | ||
96 | * @generated | ||
97 | */ | ||
98 | private EClass commSubsystemEClass = null; | 75 | private EClass commSubsystemEClass = null; |
99 | 76 | ||
100 | /** | 77 | /** |
@@ -133,6 +110,13 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
133 | private EEnum antennaGainEEnum = null; | 110 | private EEnum antennaGainEEnum = null; |
134 | 111 | ||
135 | /** | 112 | /** |
113 | * <!-- begin-user-doc --> | ||
114 | * <!-- end-user-doc --> | ||
115 | * @generated | ||
116 | */ | ||
117 | private EEnum spacecraftKindEEnum = null; | ||
118 | |||
119 | /** | ||
136 | * Creates an instance of the model <b>Package</b>, registered with | 120 | * Creates an instance of the model <b>Package</b>, registered with |
137 | * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package | 121 | * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package |
138 | * package URI value. | 122 | * package URI value. |
@@ -312,28 +296,8 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
312 | * @generated | 296 | * @generated |
313 | */ | 297 | */ |
314 | @Override | 298 | @Override |
315 | public EClass getCubeSat3U() { | 299 | public EAttribute getSpacecraft_Kind() { |
316 | return cubeSat3UEClass; | 300 | return (EAttribute) spacecraftEClass.getEStructuralFeatures().get(1); |
317 | } | ||
318 | |||
319 | /** | ||
320 | * <!-- begin-user-doc --> | ||
321 | * <!-- end-user-doc --> | ||
322 | * @generated | ||
323 | */ | ||
324 | @Override | ||
325 | public EClass getCubeSat6U() { | ||
326 | return cubeSat6UEClass; | ||
327 | } | ||
328 | |||
329 | /** | ||
330 | * <!-- begin-user-doc --> | ||
331 | * <!-- end-user-doc --> | ||
332 | * @generated | ||
333 | */ | ||
334 | @Override | ||
335 | public EClass getSmallSat() { | ||
336 | return smallSatEClass; | ||
337 | } | 301 | } |
338 | 302 | ||
339 | /** | 303 | /** |
@@ -442,6 +406,16 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
442 | * @generated | 406 | * @generated |
443 | */ | 407 | */ |
444 | @Override | 408 | @Override |
409 | public EEnum getSpacecraftKind() { | ||
410 | return spacecraftKindEEnum; | ||
411 | } | ||
412 | |||
413 | /** | ||
414 | * <!-- begin-user-doc --> | ||
415 | * <!-- end-user-doc --> | ||
416 | * @generated | ||
417 | */ | ||
418 | @Override | ||
445 | public SatelliteFactory getSatelliteFactory() { | 419 | public SatelliteFactory getSatelliteFactory() { |
446 | return (SatelliteFactory) getEFactoryInstance(); | 420 | return (SatelliteFactory) getEFactoryInstance(); |
447 | } | 421 | } |
@@ -481,12 +455,7 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
481 | 455 | ||
482 | spacecraftEClass = createEClass(SPACECRAFT); | 456 | spacecraftEClass = createEClass(SPACECRAFT); |
483 | createEReference(spacecraftEClass, SPACECRAFT__PAYLOAD); | 457 | createEReference(spacecraftEClass, SPACECRAFT__PAYLOAD); |
484 | 458 | createEAttribute(spacecraftEClass, SPACECRAFT__KIND); | |
485 | cubeSat3UEClass = createEClass(CUBE_SAT3_U); | ||
486 | |||
487 | cubeSat6UEClass = createEClass(CUBE_SAT6_U); | ||
488 | |||
489 | smallSatEClass = createEClass(SMALL_SAT); | ||
490 | 459 | ||
491 | commSubsystemEClass = createEClass(COMM_SUBSYSTEM); | 460 | commSubsystemEClass = createEClass(COMM_SUBSYSTEM); |
492 | createEAttribute(commSubsystemEClass, COMM_SUBSYSTEM__BAND); | 461 | createEAttribute(commSubsystemEClass, COMM_SUBSYSTEM__BAND); |
@@ -503,6 +472,7 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
503 | // Create enums | 472 | // Create enums |
504 | transceiverBandEEnum = createEEnum(TRANSCEIVER_BAND); | 473 | transceiverBandEEnum = createEEnum(TRANSCEIVER_BAND); |
505 | antennaGainEEnum = createEEnum(ANTENNA_GAIN); | 474 | antennaGainEEnum = createEEnum(ANTENNA_GAIN); |
475 | spacecraftKindEEnum = createEEnum(SPACECRAFT_KIND); | ||
506 | } | 476 | } |
507 | 477 | ||
508 | /** | 478 | /** |
@@ -537,9 +507,6 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
537 | interferometryMissionEClass.getESuperTypes().add(this.getConstellationMission()); | 507 | interferometryMissionEClass.getESuperTypes().add(this.getConstellationMission()); |
538 | groundStationNetworkEClass.getESuperTypes().add(this.getCommunicatingElement()); | 508 | groundStationNetworkEClass.getESuperTypes().add(this.getCommunicatingElement()); |
539 | spacecraftEClass.getESuperTypes().add(this.getCommunicatingElement()); | 509 | spacecraftEClass.getESuperTypes().add(this.getCommunicatingElement()); |
540 | cubeSat3UEClass.getESuperTypes().add(this.getSpacecraft()); | ||
541 | cubeSat6UEClass.getESuperTypes().add(this.getSpacecraft()); | ||
542 | smallSatEClass.getESuperTypes().add(this.getSpacecraft()); | ||
543 | interferometryPayloadEClass.getESuperTypes().add(this.getPayload()); | 510 | interferometryPayloadEClass.getESuperTypes().add(this.getPayload()); |
544 | 511 | ||
545 | // Initialize classes, features, and operations; add parameters | 512 | // Initialize classes, features, and operations; add parameters |
@@ -575,15 +542,8 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
575 | initEReference(getSpacecraft_Payload(), this.getPayload(), null, "payload", null, 0, 1, Spacecraft.class, | 542 | initEReference(getSpacecraft_Payload(), this.getPayload(), null, "payload", null, 0, 1, Spacecraft.class, |
576 | !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, | 543 | !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, |
577 | IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | 544 | IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
578 | 545 | initEAttribute(getSpacecraft_Kind(), this.getSpacecraftKind(), "kind", null, 1, 1, Spacecraft.class, | |
579 | initEClass(cubeSat3UEClass, CubeSat3U.class, "CubeSat3U", !IS_ABSTRACT, !IS_INTERFACE, | 546 | !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
580 | IS_GENERATED_INSTANCE_CLASS); | ||
581 | |||
582 | initEClass(cubeSat6UEClass, CubeSat6U.class, "CubeSat6U", !IS_ABSTRACT, !IS_INTERFACE, | ||
583 | IS_GENERATED_INSTANCE_CLASS); | ||
584 | |||
585 | initEClass(smallSatEClass, SmallSat.class, "SmallSat", !IS_ABSTRACT, !IS_INTERFACE, | ||
586 | IS_GENERATED_INSTANCE_CLASS); | ||
587 | 547 | ||
588 | initEClass(commSubsystemEClass, CommSubsystem.class, "CommSubsystem", !IS_ABSTRACT, !IS_INTERFACE, | 548 | initEClass(commSubsystemEClass, CommSubsystem.class, "CommSubsystem", !IS_ABSTRACT, !IS_INTERFACE, |
589 | IS_GENERATED_INSTANCE_CLASS); | 549 | IS_GENERATED_INSTANCE_CLASS); |
@@ -617,6 +577,11 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
617 | addEEnumLiteral(antennaGainEEnum, AntennaGain.MEDIUM); | 577 | addEEnumLiteral(antennaGainEEnum, AntennaGain.MEDIUM); |
618 | addEEnumLiteral(antennaGainEEnum, AntennaGain.HIGH); | 578 | addEEnumLiteral(antennaGainEEnum, AntennaGain.HIGH); |
619 | 579 | ||
580 | initEEnum(spacecraftKindEEnum, SpacecraftKind.class, "SpacecraftKind"); | ||
581 | addEEnumLiteral(spacecraftKindEEnum, SpacecraftKind.CUBE_SAT3_U); | ||
582 | addEEnumLiteral(spacecraftKindEEnum, SpacecraftKind.CUBE_SAT6_U); | ||
583 | addEEnumLiteral(spacecraftKindEEnum, SpacecraftKind.SMALL_SAT); | ||
584 | |||
620 | // Create resource | 585 | // Create resource |
621 | createResource(eNS_URI); | 586 | createResource(eNS_URI); |
622 | } | 587 | } |
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/SmallSatImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/SmallSatImpl.java deleted file mode 100644 index 522991ad..00000000 --- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/SmallSatImpl.java +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.domains.satellite.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.domains.satellite.SatellitePackage; | ||
6 | import hu.bme.mit.inf.dslreasoner.domains.satellite.SmallSat; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | |||
10 | /** | ||
11 | * <!-- begin-user-doc --> | ||
12 | * An implementation of the model object '<em><b>Small Sat</b></em>'. | ||
13 | * <!-- end-user-doc --> | ||
14 | * | ||
15 | * @generated | ||
16 | */ | ||
17 | public class SmallSatImpl extends SpacecraftImpl implements SmallSat { | ||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * <!-- end-user-doc --> | ||
21 | * @generated | ||
22 | */ | ||
23 | protected SmallSatImpl() { | ||
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.SMALL_SAT; | ||
35 | } | ||
36 | |||
37 | } //SmallSatImpl | ||
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/SpacecraftImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/SpacecraftImpl.java index caefd377..2135af2c 100644 --- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/SpacecraftImpl.java +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/SpacecraftImpl.java | |||
@@ -6,6 +6,7 @@ import hu.bme.mit.inf.dslreasoner.domains.satellite.Payload; | |||
6 | import hu.bme.mit.inf.dslreasoner.domains.satellite.SatellitePackage; | 6 | import hu.bme.mit.inf.dslreasoner.domains.satellite.SatellitePackage; |
7 | import hu.bme.mit.inf.dslreasoner.domains.satellite.Spacecraft; | 7 | import hu.bme.mit.inf.dslreasoner.domains.satellite.Spacecraft; |
8 | 8 | ||
9 | import hu.bme.mit.inf.dslreasoner.domains.satellite.SpacecraftKind; | ||
9 | import org.eclipse.emf.common.notify.Notification; | 10 | import org.eclipse.emf.common.notify.Notification; |
10 | import org.eclipse.emf.common.notify.NotificationChain; | 11 | import org.eclipse.emf.common.notify.NotificationChain; |
11 | 12 | ||
@@ -23,6 +24,7 @@ import org.eclipse.emf.ecore.impl.ENotificationImpl; | |||
23 | * </p> | 24 | * </p> |
24 | * <ul> | 25 | * <ul> |
25 | * <li>{@link hu.bme.mit.inf.dslreasoner.domains.satellite.impl.SpacecraftImpl#getPayload <em>Payload</em>}</li> | 26 | * <li>{@link hu.bme.mit.inf.dslreasoner.domains.satellite.impl.SpacecraftImpl#getPayload <em>Payload</em>}</li> |
27 | * <li>{@link hu.bme.mit.inf.dslreasoner.domains.satellite.impl.SpacecraftImpl#getKind <em>Kind</em>}</li> | ||
26 | * </ul> | 28 | * </ul> |
27 | * | 29 | * |
28 | * @generated | 30 | * @generated |
@@ -39,6 +41,25 @@ public abstract class SpacecraftImpl extends CommunicatingElementImpl implements | |||
39 | protected Payload payload; | 41 | protected Payload payload; |
40 | 42 | ||
41 | /** | 43 | /** |
44 | * The default value of the '{@link #getKind() <em>Kind</em>}' attribute. | ||
45 | * <!-- begin-user-doc --> | ||
46 | * <!-- end-user-doc --> | ||
47 | * @see #getKind() | ||
48 | * @generated | ||
49 | * @ordered | ||
50 | */ | ||
51 | protected static final SpacecraftKind KIND_EDEFAULT = SpacecraftKind.CUBE_SAT3_U; | ||
52 | /** | ||
53 | * The cached value of the '{@link #getKind() <em>Kind</em>}' attribute. | ||
54 | * <!-- begin-user-doc --> | ||
55 | * <!-- end-user-doc --> | ||
56 | * @see #getKind() | ||
57 | * @generated | ||
58 | * @ordered | ||
59 | */ | ||
60 | protected SpacecraftKind kind = KIND_EDEFAULT; | ||
61 | |||
62 | /** | ||
42 | * <!-- begin-user-doc --> | 63 | * <!-- begin-user-doc --> |
43 | * <!-- end-user-doc --> | 64 | * <!-- end-user-doc --> |
44 | * @generated | 65 | * @generated |
@@ -115,6 +136,29 @@ public abstract class SpacecraftImpl extends CommunicatingElementImpl implements | |||
115 | * @generated | 136 | * @generated |
116 | */ | 137 | */ |
117 | @Override | 138 | @Override |
139 | public SpacecraftKind getKind() { | ||
140 | return kind; | ||
141 | } | ||
142 | |||
143 | /** | ||
144 | * <!-- begin-user-doc --> | ||
145 | * <!-- end-user-doc --> | ||
146 | * @generated | ||
147 | */ | ||
148 | @Override | ||
149 | public void setKind(SpacecraftKind newKind) { | ||
150 | SpacecraftKind oldKind = kind; | ||
151 | kind = newKind == null ? KIND_EDEFAULT : newKind; | ||
152 | if (eNotificationRequired()) | ||
153 | eNotify(new ENotificationImpl(this, Notification.SET, SatellitePackage.SPACECRAFT__KIND, oldKind, kind)); | ||
154 | } | ||
155 | |||
156 | /** | ||
157 | * <!-- begin-user-doc --> | ||
158 | * <!-- end-user-doc --> | ||
159 | * @generated | ||
160 | */ | ||
161 | @Override | ||
118 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | 162 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { |
119 | switch (featureID) { | 163 | switch (featureID) { |
120 | case SatellitePackage.SPACECRAFT__PAYLOAD: | 164 | case SatellitePackage.SPACECRAFT__PAYLOAD: |
@@ -133,6 +177,8 @@ public abstract class SpacecraftImpl extends CommunicatingElementImpl implements | |||
133 | switch (featureID) { | 177 | switch (featureID) { |
134 | case SatellitePackage.SPACECRAFT__PAYLOAD: | 178 | case SatellitePackage.SPACECRAFT__PAYLOAD: |
135 | return getPayload(); | 179 | return getPayload(); |
180 | case SatellitePackage.SPACECRAFT__KIND: | ||
181 | return getKind(); | ||
136 | } | 182 | } |
137 | return super.eGet(featureID, resolve, coreType); | 183 | return super.eGet(featureID, resolve, coreType); |
138 | } | 184 | } |
@@ -148,6 +194,9 @@ public abstract class SpacecraftImpl extends CommunicatingElementImpl implements | |||
148 | case SatellitePackage.SPACECRAFT__PAYLOAD: | 194 | case SatellitePackage.SPACECRAFT__PAYLOAD: |
149 | setPayload((Payload) newValue); | 195 | setPayload((Payload) newValue); |
150 | return; | 196 | return; |
197 | case SatellitePackage.SPACECRAFT__KIND: | ||
198 | setKind((SpacecraftKind) newValue); | ||
199 | return; | ||
151 | } | 200 | } |
152 | super.eSet(featureID, newValue); | 201 | super.eSet(featureID, newValue); |
153 | } | 202 | } |
@@ -163,6 +212,9 @@ public abstract class SpacecraftImpl extends CommunicatingElementImpl implements | |||
163 | case SatellitePackage.SPACECRAFT__PAYLOAD: | 212 | case SatellitePackage.SPACECRAFT__PAYLOAD: |
164 | setPayload((Payload) null); | 213 | setPayload((Payload) null); |
165 | return; | 214 | return; |
215 | case SatellitePackage.SPACECRAFT__KIND: | ||
216 | setKind(KIND_EDEFAULT); | ||
217 | return; | ||
166 | } | 218 | } |
167 | super.eUnset(featureID); | 219 | super.eUnset(featureID); |
168 | } | 220 | } |
@@ -177,8 +229,27 @@ public abstract class SpacecraftImpl extends CommunicatingElementImpl implements | |||
177 | switch (featureID) { | 229 | switch (featureID) { |
178 | case SatellitePackage.SPACECRAFT__PAYLOAD: | 230 | case SatellitePackage.SPACECRAFT__PAYLOAD: |
179 | return payload != null; | 231 | return payload != null; |
232 | case SatellitePackage.SPACECRAFT__KIND: | ||
233 | return kind != KIND_EDEFAULT; | ||
180 | } | 234 | } |
181 | return super.eIsSet(featureID); | 235 | return super.eIsSet(featureID); |
182 | } | 236 | } |
183 | 237 | ||
238 | /** | ||
239 | * <!-- begin-user-doc --> | ||
240 | * <!-- end-user-doc --> | ||
241 | * @generated | ||
242 | */ | ||
243 | @Override | ||
244 | public String toString() { | ||
245 | if (eIsProxy()) | ||
246 | return super.toString(); | ||
247 | |||
248 | StringBuilder result = new StringBuilder(super.toString()); | ||
249 | result.append(" (kind: "); | ||
250 | result.append(kind); | ||
251 | result.append(')'); | ||
252 | return result.toString(); | ||
253 | } | ||
254 | |||
184 | } //SpacecraftImpl | 255 | } //SpacecraftImpl |
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/util/SatelliteAdapterFactory.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/util/SatelliteAdapterFactory.java index c2ba615b..639a40b7 100644 --- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/util/SatelliteAdapterFactory.java +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/util/SatelliteAdapterFactory.java | |||
@@ -92,21 +92,6 @@ public class SatelliteAdapterFactory extends AdapterFactoryImpl { | |||
92 | } | 92 | } |
93 | 93 | ||
94 | @Override | 94 | @Override |
95 | public Adapter caseCubeSat3U(CubeSat3U object) { | ||
96 | return createCubeSat3UAdapter(); | ||
97 | } | ||
98 | |||
99 | @Override | ||
100 | public Adapter caseCubeSat6U(CubeSat6U object) { | ||
101 | return createCubeSat6UAdapter(); | ||
102 | } | ||
103 | |||
104 | @Override | ||
105 | public Adapter caseSmallSat(SmallSat object) { | ||
106 | return createSmallSatAdapter(); | ||
107 | } | ||
108 | |||
109 | @Override | ||
110 | public Adapter caseCommSubsystem(CommSubsystem object) { | 95 | public Adapter caseCommSubsystem(CommSubsystem object) { |
111 | return createCommSubsystemAdapter(); | 96 | return createCommSubsystemAdapter(); |
112 | } | 97 | } |
@@ -216,48 +201,6 @@ public class SatelliteAdapterFactory extends AdapterFactoryImpl { | |||
216 | } | 201 | } |
217 | 202 | ||
218 | /** | 203 | /** |
219 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.domains.satellite.CubeSat3U <em>Cube Sat3 U</em>}'. | ||
220 | * <!-- begin-user-doc --> | ||
221 | * This default implementation returns null so that we can easily ignore cases; | ||
222 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
223 | * <!-- end-user-doc --> | ||
224 | * @return the new adapter. | ||
225 | * @see hu.bme.mit.inf.dslreasoner.domains.satellite.CubeSat3U | ||
226 | * @generated | ||
227 | */ | ||
228 | public Adapter createCubeSat3UAdapter() { | ||
229 | return null; | ||
230 | } | ||
231 | |||
232 | /** | ||
233 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.domains.satellite.CubeSat6U <em>Cube Sat6 U</em>}'. | ||
234 | * <!-- begin-user-doc --> | ||
235 | * This default implementation returns null so that we can easily ignore cases; | ||
236 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
237 | * <!-- end-user-doc --> | ||
238 | * @return the new adapter. | ||
239 | * @see hu.bme.mit.inf.dslreasoner.domains.satellite.CubeSat6U | ||
240 | * @generated | ||
241 | */ | ||
242 | public Adapter createCubeSat6UAdapter() { | ||
243 | return null; | ||
244 | } | ||
245 | |||
246 | /** | ||
247 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.domains.satellite.SmallSat <em>Small Sat</em>}'. | ||
248 | * <!-- begin-user-doc --> | ||
249 | * This default implementation returns null so that we can easily ignore cases; | ||
250 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
251 | * <!-- end-user-doc --> | ||
252 | * @return the new adapter. | ||
253 | * @see hu.bme.mit.inf.dslreasoner.domains.satellite.SmallSat | ||
254 | * @generated | ||
255 | */ | ||
256 | public Adapter createSmallSatAdapter() { | ||
257 | return null; | ||
258 | } | ||
259 | |||
260 | /** | ||
261 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.domains.satellite.CommSubsystem <em>Comm Subsystem</em>}'. | 204 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.domains.satellite.CommSubsystem <em>Comm Subsystem</em>}'. |
262 | * <!-- begin-user-doc --> | 205 | * <!-- begin-user-doc --> |
263 | * This default implementation returns null so that we can easily ignore cases; | 206 | * This default implementation returns null so that we can easily ignore cases; |
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/util/SatelliteSwitch.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/util/SatelliteSwitch.java index 65b24430..e78a1cd2 100644 --- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/util/SatelliteSwitch.java +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/util/SatelliteSwitch.java | |||
@@ -107,39 +107,6 @@ public class SatelliteSwitch<T> extends Switch<T> { | |||
107 | result = defaultCase(theEObject); | 107 | result = defaultCase(theEObject); |
108 | return result; | 108 | return result; |
109 | } | 109 | } |
110 | case SatellitePackage.CUBE_SAT3_U: { | ||
111 | CubeSat3U cubeSat3U = (CubeSat3U) theEObject; | ||
112 | T result = caseCubeSat3U(cubeSat3U); | ||
113 | if (result == null) | ||
114 | result = caseSpacecraft(cubeSat3U); | ||
115 | if (result == null) | ||
116 | result = caseCommunicatingElement(cubeSat3U); | ||
117 | if (result == null) | ||
118 | result = defaultCase(theEObject); | ||
119 | return result; | ||
120 | } | ||
121 | case SatellitePackage.CUBE_SAT6_U: { | ||
122 | CubeSat6U cubeSat6U = (CubeSat6U) theEObject; | ||
123 | T result = caseCubeSat6U(cubeSat6U); | ||
124 | if (result == null) | ||
125 | result = caseSpacecraft(cubeSat6U); | ||
126 | if (result == null) | ||
127 | result = caseCommunicatingElement(cubeSat6U); | ||
128 | if (result == null) | ||
129 | result = defaultCase(theEObject); | ||
130 | return result; | ||
131 | } | ||
132 | case SatellitePackage.SMALL_SAT: { | ||
133 | SmallSat smallSat = (SmallSat) theEObject; | ||
134 | T result = caseSmallSat(smallSat); | ||
135 | if (result == null) | ||
136 | result = caseSpacecraft(smallSat); | ||
137 | if (result == null) | ||
138 | result = caseCommunicatingElement(smallSat); | ||
139 | if (result == null) | ||
140 | result = defaultCase(theEObject); | ||
141 | return result; | ||
142 | } | ||
143 | case SatellitePackage.COMM_SUBSYSTEM: { | 110 | case SatellitePackage.COMM_SUBSYSTEM: { |
144 | CommSubsystem commSubsystem = (CommSubsystem) theEObject; | 111 | CommSubsystem commSubsystem = (CommSubsystem) theEObject; |
145 | T result = caseCommSubsystem(commSubsystem); | 112 | T result = caseCommSubsystem(commSubsystem); |
@@ -251,51 +218,6 @@ public class SatelliteSwitch<T> extends Switch<T> { | |||
251 | } | 218 | } |
252 | 219 | ||
253 | /** | 220 | /** |
254 | * Returns the result of interpreting the object as an instance of '<em>Cube Sat3 U</em>'. | ||
255 | * <!-- begin-user-doc --> | ||
256 | * This implementation returns null; | ||
257 | * returning a non-null result will terminate the switch. | ||
258 | * <!-- end-user-doc --> | ||
259 | * @param object the target of the switch. | ||
260 | * @return the result of interpreting the object as an instance of '<em>Cube Sat3 U</em>'. | ||
261 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
262 | * @generated | ||
263 | */ | ||
264 | public T caseCubeSat3U(CubeSat3U object) { | ||
265 | return null; | ||
266 | } | ||
267 | |||
268 | /** | ||
269 | * Returns the result of interpreting the object as an instance of '<em>Cube Sat6 U</em>'. | ||
270 | * <!-- begin-user-doc --> | ||
271 | * This implementation returns null; | ||
272 | * returning a non-null result will terminate the switch. | ||
273 | * <!-- end-user-doc --> | ||
274 | * @param object the target of the switch. | ||
275 | * @return the result of interpreting the object as an instance of '<em>Cube Sat6 U</em>'. | ||
276 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
277 | * @generated | ||
278 | */ | ||
279 | public T caseCubeSat6U(CubeSat6U object) { | ||
280 | return null; | ||
281 | } | ||
282 | |||
283 | /** | ||
284 | * Returns the result of interpreting the object as an instance of '<em>Small Sat</em>'. | ||
285 | * <!-- begin-user-doc --> | ||
286 | * This implementation returns null; | ||
287 | * returning a non-null result will terminate the switch. | ||
288 | * <!-- end-user-doc --> | ||
289 | * @param object the target of the switch. | ||
290 | * @return the result of interpreting the object as an instance of '<em>Small Sat</em>'. | ||
291 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
292 | * @generated | ||
293 | */ | ||
294 | public T caseSmallSat(SmallSat object) { | ||
295 | return null; | ||
296 | } | ||
297 | |||
298 | /** | ||
299 | * Returns the result of interpreting the object as an instance of '<em>Comm Subsystem</em>'. | 221 | * Returns the result of interpreting the object as an instance of '<em>Comm Subsystem</em>'. |
300 | * <!-- begin-user-doc --> | 222 | * <!-- begin-user-doc --> |
301 | * This implementation returns null; | 223 | * This implementation returns null; |