diff options
author | 2019-05-06 18:42:22 -0400 | |
---|---|---|
committer | 2019-05-06 18:42:22 -0400 | |
commit | 09b1255f11ee17828da706f682e33f50316887fe (patch) | |
tree | f3783961c521b73201a9d079be78feb26e8a285c /Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SatellitePackageImpl.java | |
parent | Merge remote-tracking branch 'origin/master' into kris (diff) | |
download | VIATRA-Generator-09b1255f11ee17828da706f682e33f50316887fe.tar.gz VIATRA-Generator-09b1255f11ee17828da706f682e33f50316887fe.tar.zst VIATRA-Generator-09b1255f11ee17828da706f682e33f50316887fe.zip |
Trying to implement spacecraft case study
Diffstat (limited to 'Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SatellitePackageImpl.java')
-rw-r--r-- | Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SatellitePackageImpl.java | 690 |
1 files changed, 690 insertions, 0 deletions
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SatellitePackageImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SatellitePackageImpl.java new file mode 100644 index 00000000..2347fe07 --- /dev/null +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SatellitePackageImpl.java | |||
@@ -0,0 +1,690 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package satellite.impl; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EAttribute; | ||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | import org.eclipse.emf.ecore.EEnum; | ||
8 | import org.eclipse.emf.ecore.EPackage; | ||
9 | import org.eclipse.emf.ecore.EReference; | ||
10 | |||
11 | import org.eclipse.emf.ecore.impl.EPackageImpl; | ||
12 | |||
13 | import satellite.AntennaGain; | ||
14 | import satellite.CommSubsystem; | ||
15 | import satellite.CommunicatingElement; | ||
16 | import satellite.ConstellationMission; | ||
17 | import satellite.CubeSat3U; | ||
18 | import satellite.CubeSat6U; | ||
19 | import satellite.DirectedCommunicationLink; | ||
20 | import satellite.GroundStationNetwork; | ||
21 | import satellite.InterferometryMission; | ||
22 | import satellite.InterferometryPayload; | ||
23 | import satellite.Payload; | ||
24 | import satellite.SatelliteFactory; | ||
25 | import satellite.SatellitePackage; | ||
26 | import satellite.SmallSat; | ||
27 | import satellite.Spacecraft; | ||
28 | import satellite.SpacecraftKind; | ||
29 | import satellite.TransceiverBand; | ||
30 | |||
31 | /** | ||
32 | * <!-- begin-user-doc --> | ||
33 | * An implementation of the model <b>Package</b>. | ||
34 | * <!-- end-user-doc --> | ||
35 | * @generated | ||
36 | */ | ||
37 | public class SatellitePackageImpl extends EPackageImpl implements SatellitePackage { | ||
38 | /** | ||
39 | * <!-- begin-user-doc --> | ||
40 | * <!-- end-user-doc --> | ||
41 | * @generated | ||
42 | */ | ||
43 | private EClass constellationMissionEClass = null; | ||
44 | |||
45 | /** | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @generated | ||
49 | */ | ||
50 | private EClass interferometryMissionEClass = null; | ||
51 | |||
52 | /** | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @generated | ||
56 | */ | ||
57 | private EClass communicatingElementEClass = null; | ||
58 | |||
59 | /** | ||
60 | * <!-- begin-user-doc --> | ||
61 | * <!-- end-user-doc --> | ||
62 | * @generated | ||
63 | */ | ||
64 | private EClass groundStationNetworkEClass = null; | ||
65 | |||
66 | /** | ||
67 | * <!-- begin-user-doc --> | ||
68 | * <!-- end-user-doc --> | ||
69 | * @generated | ||
70 | */ | ||
71 | private EClass spacecraftEClass = null; | ||
72 | |||
73 | /** | ||
74 | * <!-- begin-user-doc --> | ||
75 | * <!-- end-user-doc --> | ||
76 | * @generated | ||
77 | */ | ||
78 | private EClass commSubsystemEClass = null; | ||
79 | |||
80 | /** | ||
81 | * <!-- begin-user-doc --> | ||
82 | * <!-- end-user-doc --> | ||
83 | * @generated | ||
84 | */ | ||
85 | private EClass directedCommunicationLinkEClass = null; | ||
86 | |||
87 | /** | ||
88 | * <!-- begin-user-doc --> | ||
89 | * <!-- end-user-doc --> | ||
90 | * @generated | ||
91 | */ | ||
92 | private EClass payloadEClass = null; | ||
93 | |||
94 | /** | ||
95 | * <!-- begin-user-doc --> | ||
96 | * <!-- end-user-doc --> | ||
97 | * @generated | ||
98 | */ | ||
99 | private EClass interferometryPayloadEClass = null; | ||
100 | |||
101 | /** | ||
102 | * <!-- begin-user-doc --> | ||
103 | * <!-- end-user-doc --> | ||
104 | * @generated | ||
105 | */ | ||
106 | private EClass cubeSat3UEClass = null; | ||
107 | |||
108 | /** | ||
109 | * <!-- begin-user-doc --> | ||
110 | * <!-- end-user-doc --> | ||
111 | * @generated | ||
112 | */ | ||
113 | private EClass cubeSat6UEClass = null; | ||
114 | |||
115 | /** | ||
116 | * <!-- begin-user-doc --> | ||
117 | * <!-- end-user-doc --> | ||
118 | * @generated | ||
119 | */ | ||
120 | private EClass smallSatEClass = null; | ||
121 | |||
122 | /** | ||
123 | * <!-- begin-user-doc --> | ||
124 | * <!-- end-user-doc --> | ||
125 | * @generated | ||
126 | */ | ||
127 | private EEnum transceiverBandEEnum = null; | ||
128 | |||
129 | /** | ||
130 | * <!-- begin-user-doc --> | ||
131 | * <!-- end-user-doc --> | ||
132 | * @generated | ||
133 | */ | ||
134 | private EEnum antennaGainEEnum = null; | ||
135 | |||
136 | /** | ||
137 | * <!-- begin-user-doc --> | ||
138 | * <!-- end-user-doc --> | ||
139 | * @generated | ||
140 | */ | ||
141 | private EEnum spacecraftKindEEnum = null; | ||
142 | |||
143 | /** | ||
144 | * Creates an instance of the model <b>Package</b>, registered with | ||
145 | * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package | ||
146 | * package URI value. | ||
147 | * <p>Note: the correct way to create the package is via the static | ||
148 | * factory method {@link #init init()}, which also performs | ||
149 | * initialization of the package, or returns the registered package, | ||
150 | * if one already exists. | ||
151 | * <!-- begin-user-doc --> | ||
152 | * <!-- end-user-doc --> | ||
153 | * @see org.eclipse.emf.ecore.EPackage.Registry | ||
154 | * @see satellite.SatellitePackage#eNS_URI | ||
155 | * @see #init() | ||
156 | * @generated | ||
157 | */ | ||
158 | private SatellitePackageImpl() { | ||
159 | super(eNS_URI, SatelliteFactory.eINSTANCE); | ||
160 | } | ||
161 | |||
162 | /** | ||
163 | * <!-- begin-user-doc --> | ||
164 | * <!-- end-user-doc --> | ||
165 | * @generated | ||
166 | */ | ||
167 | private static boolean isInited = false; | ||
168 | |||
169 | /** | ||
170 | * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. | ||
171 | * | ||
172 | * <p>This method is used to initialize {@link SatellitePackage#eINSTANCE} when that field is accessed. | ||
173 | * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. | ||
174 | * <!-- begin-user-doc --> | ||
175 | * <!-- end-user-doc --> | ||
176 | * @see #eNS_URI | ||
177 | * @see #createPackageContents() | ||
178 | * @see #initializePackageContents() | ||
179 | * @generated | ||
180 | */ | ||
181 | public static SatellitePackage init() { | ||
182 | if (isInited) | ||
183 | return (SatellitePackage) EPackage.Registry.INSTANCE.getEPackage(SatellitePackage.eNS_URI); | ||
184 | |||
185 | // Obtain or create and register package | ||
186 | Object registeredSatellitePackage = EPackage.Registry.INSTANCE.get(eNS_URI); | ||
187 | SatellitePackageImpl theSatellitePackage = registeredSatellitePackage instanceof SatellitePackageImpl | ||
188 | ? (SatellitePackageImpl) registeredSatellitePackage | ||
189 | : new SatellitePackageImpl(); | ||
190 | |||
191 | isInited = true; | ||
192 | |||
193 | // Create package meta-data objects | ||
194 | theSatellitePackage.createPackageContents(); | ||
195 | |||
196 | // Initialize created meta-data | ||
197 | theSatellitePackage.initializePackageContents(); | ||
198 | |||
199 | // Mark meta-data to indicate it can't be changed | ||
200 | theSatellitePackage.freeze(); | ||
201 | |||
202 | // Update the registry and return the package | ||
203 | EPackage.Registry.INSTANCE.put(SatellitePackage.eNS_URI, theSatellitePackage); | ||
204 | return theSatellitePackage; | ||
205 | } | ||
206 | |||
207 | /** | ||
208 | * <!-- begin-user-doc --> | ||
209 | * <!-- end-user-doc --> | ||
210 | * @generated | ||
211 | */ | ||
212 | @Override | ||
213 | public EClass getConstellationMission() { | ||
214 | return constellationMissionEClass; | ||
215 | } | ||
216 | |||
217 | /** | ||
218 | * <!-- begin-user-doc --> | ||
219 | * <!-- end-user-doc --> | ||
220 | * @generated | ||
221 | */ | ||
222 | @Override | ||
223 | public EReference getConstellationMission_GroundStationNetwork() { | ||
224 | return (EReference) constellationMissionEClass.getEStructuralFeatures().get(0); | ||
225 | } | ||
226 | |||
227 | /** | ||
228 | * <!-- begin-user-doc --> | ||
229 | * <!-- end-user-doc --> | ||
230 | * @generated | ||
231 | */ | ||
232 | @Override | ||
233 | public EReference getConstellationMission_Spacecraft() { | ||
234 | return (EReference) constellationMissionEClass.getEStructuralFeatures().get(1); | ||
235 | } | ||
236 | |||
237 | /** | ||
238 | * <!-- begin-user-doc --> | ||
239 | * <!-- end-user-doc --> | ||
240 | * @generated | ||
241 | */ | ||
242 | @Override | ||
243 | public EClass getInterferometryMission() { | ||
244 | return interferometryMissionEClass; | ||
245 | } | ||
246 | |||
247 | /** | ||
248 | * <!-- begin-user-doc --> | ||
249 | * <!-- end-user-doc --> | ||
250 | * @generated | ||
251 | */ | ||
252 | @Override | ||
253 | public EAttribute getInterferometryMission_ObservationTime() { | ||
254 | return (EAttribute) interferometryMissionEClass.getEStructuralFeatures().get(0); | ||
255 | } | ||
256 | |||
257 | /** | ||
258 | * <!-- begin-user-doc --> | ||
259 | * <!-- end-user-doc --> | ||
260 | * @generated | ||
261 | */ | ||
262 | @Override | ||
263 | public EClass getCommunicatingElement() { | ||
264 | return communicatingElementEClass; | ||
265 | } | ||
266 | |||
267 | /** | ||
268 | * <!-- begin-user-doc --> | ||
269 | * <!-- end-user-doc --> | ||
270 | * @generated | ||
271 | */ | ||
272 | @Override | ||
273 | public EReference getCommunicatingElement_CommSubsystem() { | ||
274 | return (EReference) communicatingElementEClass.getEStructuralFeatures().get(0); | ||
275 | } | ||
276 | |||
277 | /** | ||
278 | * <!-- begin-user-doc --> | ||
279 | * <!-- end-user-doc --> | ||
280 | * @generated | ||
281 | */ | ||
282 | @Override | ||
283 | public EReference getCommunicatingElement_CommunicationLink() { | ||
284 | return (EReference) communicatingElementEClass.getEStructuralFeatures().get(1); | ||
285 | } | ||
286 | |||
287 | /** | ||
288 | * <!-- begin-user-doc --> | ||
289 | * <!-- end-user-doc --> | ||
290 | * @generated | ||
291 | */ | ||
292 | @Override | ||
293 | public EClass getGroundStationNetwork() { | ||
294 | return groundStationNetworkEClass; | ||
295 | } | ||
296 | |||
297 | /** | ||
298 | * <!-- begin-user-doc --> | ||
299 | * <!-- end-user-doc --> | ||
300 | * @generated | ||
301 | */ | ||
302 | @Override | ||
303 | public EClass getSpacecraft() { | ||
304 | return spacecraftEClass; | ||
305 | } | ||
306 | |||
307 | /** | ||
308 | * <!-- begin-user-doc --> | ||
309 | * <!-- end-user-doc --> | ||
310 | * @generated | ||
311 | */ | ||
312 | @Override | ||
313 | public EReference getSpacecraft_Payload() { | ||
314 | return (EReference) spacecraftEClass.getEStructuralFeatures().get(0); | ||
315 | } | ||
316 | |||
317 | /** | ||
318 | * <!-- begin-user-doc --> | ||
319 | * <!-- end-user-doc --> | ||
320 | * @generated | ||
321 | */ | ||
322 | @Override | ||
323 | public EAttribute getSpacecraft_Kind() { | ||
324 | return (EAttribute) spacecraftEClass.getEStructuralFeatures().get(1); | ||
325 | } | ||
326 | |||
327 | /** | ||
328 | * <!-- begin-user-doc --> | ||
329 | * <!-- end-user-doc --> | ||
330 | * @generated | ||
331 | */ | ||
332 | @Override | ||
333 | public EClass getCommSubsystem() { | ||
334 | return commSubsystemEClass; | ||
335 | } | ||
336 | |||
337 | /** | ||
338 | * <!-- begin-user-doc --> | ||
339 | * <!-- end-user-doc --> | ||
340 | * @generated | ||
341 | */ | ||
342 | @Override | ||
343 | public EAttribute getCommSubsystem_Band() { | ||
344 | return (EAttribute) commSubsystemEClass.getEStructuralFeatures().get(0); | ||
345 | } | ||
346 | |||
347 | /** | ||
348 | * <!-- begin-user-doc --> | ||
349 | * <!-- end-user-doc --> | ||
350 | * @generated | ||
351 | */ | ||
352 | @Override | ||
353 | public EAttribute getCommSubsystem_Gain() { | ||
354 | return (EAttribute) commSubsystemEClass.getEStructuralFeatures().get(1); | ||
355 | } | ||
356 | |||
357 | /** | ||
358 | * <!-- begin-user-doc --> | ||
359 | * <!-- end-user-doc --> | ||
360 | * @generated | ||
361 | */ | ||
362 | @Override | ||
363 | public EClass getDirectedCommunicationLink() { | ||
364 | return directedCommunicationLinkEClass; | ||
365 | } | ||
366 | |||
367 | /** | ||
368 | * <!-- begin-user-doc --> | ||
369 | * <!-- end-user-doc --> | ||
370 | * @generated | ||
371 | */ | ||
372 | @Override | ||
373 | public EReference getDirectedCommunicationLink_Source() { | ||
374 | return (EReference) directedCommunicationLinkEClass.getEStructuralFeatures().get(0); | ||
375 | } | ||
376 | |||
377 | /** | ||
378 | * <!-- begin-user-doc --> | ||
379 | * <!-- end-user-doc --> | ||
380 | * @generated | ||
381 | */ | ||
382 | @Override | ||
383 | public EReference getDirectedCommunicationLink_Target() { | ||
384 | return (EReference) directedCommunicationLinkEClass.getEStructuralFeatures().get(1); | ||
385 | } | ||
386 | |||
387 | /** | ||
388 | * <!-- begin-user-doc --> | ||
389 | * <!-- end-user-doc --> | ||
390 | * @generated | ||
391 | */ | ||
392 | @Override | ||
393 | public EClass getPayload() { | ||
394 | return payloadEClass; | ||
395 | } | ||
396 | |||
397 | /** | ||
398 | * <!-- begin-user-doc --> | ||
399 | * <!-- end-user-doc --> | ||
400 | * @generated | ||
401 | */ | ||
402 | @Override | ||
403 | public EClass getInterferometryPayload() { | ||
404 | return interferometryPayloadEClass; | ||
405 | } | ||
406 | |||
407 | /** | ||
408 | * <!-- begin-user-doc --> | ||
409 | * <!-- end-user-doc --> | ||
410 | * @generated | ||
411 | */ | ||
412 | @Override | ||
413 | public EClass getCubeSat3U() { | ||
414 | return cubeSat3UEClass; | ||
415 | } | ||
416 | |||
417 | /** | ||
418 | * <!-- begin-user-doc --> | ||
419 | * <!-- end-user-doc --> | ||
420 | * @generated | ||
421 | */ | ||
422 | @Override | ||
423 | public EClass getCubeSat6U() { | ||
424 | return cubeSat6UEClass; | ||
425 | } | ||
426 | |||
427 | /** | ||
428 | * <!-- begin-user-doc --> | ||
429 | * <!-- end-user-doc --> | ||
430 | * @generated | ||
431 | */ | ||
432 | @Override | ||
433 | public EClass getSmallSat() { | ||
434 | return smallSatEClass; | ||
435 | } | ||
436 | |||
437 | /** | ||
438 | * <!-- begin-user-doc --> | ||
439 | * <!-- end-user-doc --> | ||
440 | * @generated | ||
441 | */ | ||
442 | @Override | ||
443 | public EEnum getTransceiverBand() { | ||
444 | return transceiverBandEEnum; | ||
445 | } | ||
446 | |||
447 | /** | ||
448 | * <!-- begin-user-doc --> | ||
449 | * <!-- end-user-doc --> | ||
450 | * @generated | ||
451 | */ | ||
452 | @Override | ||
453 | public EEnum getAntennaGain() { | ||
454 | return antennaGainEEnum; | ||
455 | } | ||
456 | |||
457 | /** | ||
458 | * <!-- begin-user-doc --> | ||
459 | * <!-- end-user-doc --> | ||
460 | * @generated | ||
461 | */ | ||
462 | @Override | ||
463 | public EEnum getSpacecraftKind() { | ||
464 | return spacecraftKindEEnum; | ||
465 | } | ||
466 | |||
467 | /** | ||
468 | * <!-- begin-user-doc --> | ||
469 | * <!-- end-user-doc --> | ||
470 | * @generated | ||
471 | */ | ||
472 | @Override | ||
473 | public SatelliteFactory getSatelliteFactory() { | ||
474 | return (SatelliteFactory) getEFactoryInstance(); | ||
475 | } | ||
476 | |||
477 | /** | ||
478 | * <!-- begin-user-doc --> | ||
479 | * <!-- end-user-doc --> | ||
480 | * @generated | ||
481 | */ | ||
482 | private boolean isCreated = false; | ||
483 | |||
484 | /** | ||
485 | * Creates the meta-model objects for the package. This method is | ||
486 | * guarded to have no affect on any invocation but its first. | ||
487 | * <!-- begin-user-doc --> | ||
488 | * <!-- end-user-doc --> | ||
489 | * @generated | ||
490 | */ | ||
491 | public void createPackageContents() { | ||
492 | if (isCreated) | ||
493 | return; | ||
494 | isCreated = true; | ||
495 | |||
496 | // Create classes and their features | ||
497 | constellationMissionEClass = createEClass(CONSTELLATION_MISSION); | ||
498 | createEReference(constellationMissionEClass, CONSTELLATION_MISSION__GROUND_STATION_NETWORK); | ||
499 | createEReference(constellationMissionEClass, CONSTELLATION_MISSION__SPACECRAFT); | ||
500 | |||
501 | interferometryMissionEClass = createEClass(INTERFEROMETRY_MISSION); | ||
502 | createEAttribute(interferometryMissionEClass, INTERFEROMETRY_MISSION__OBSERVATION_TIME); | ||
503 | |||
504 | communicatingElementEClass = createEClass(COMMUNICATING_ELEMENT); | ||
505 | createEReference(communicatingElementEClass, COMMUNICATING_ELEMENT__COMM_SUBSYSTEM); | ||
506 | createEReference(communicatingElementEClass, COMMUNICATING_ELEMENT__COMMUNICATION_LINK); | ||
507 | |||
508 | groundStationNetworkEClass = createEClass(GROUND_STATION_NETWORK); | ||
509 | |||
510 | spacecraftEClass = createEClass(SPACECRAFT); | ||
511 | createEReference(spacecraftEClass, SPACECRAFT__PAYLOAD); | ||
512 | createEAttribute(spacecraftEClass, SPACECRAFT__KIND); | ||
513 | |||
514 | commSubsystemEClass = createEClass(COMM_SUBSYSTEM); | ||
515 | createEAttribute(commSubsystemEClass, COMM_SUBSYSTEM__BAND); | ||
516 | createEAttribute(commSubsystemEClass, COMM_SUBSYSTEM__GAIN); | ||
517 | |||
518 | directedCommunicationLinkEClass = createEClass(DIRECTED_COMMUNICATION_LINK); | ||
519 | createEReference(directedCommunicationLinkEClass, DIRECTED_COMMUNICATION_LINK__SOURCE); | ||
520 | createEReference(directedCommunicationLinkEClass, DIRECTED_COMMUNICATION_LINK__TARGET); | ||
521 | |||
522 | payloadEClass = createEClass(PAYLOAD); | ||
523 | |||
524 | interferometryPayloadEClass = createEClass(INTERFEROMETRY_PAYLOAD); | ||
525 | |||
526 | cubeSat3UEClass = createEClass(CUBE_SAT3_U); | ||
527 | |||
528 | cubeSat6UEClass = createEClass(CUBE_SAT6_U); | ||
529 | |||
530 | smallSatEClass = createEClass(SMALL_SAT); | ||
531 | |||
532 | // Create enums | ||
533 | transceiverBandEEnum = createEEnum(TRANSCEIVER_BAND); | ||
534 | antennaGainEEnum = createEEnum(ANTENNA_GAIN); | ||
535 | spacecraftKindEEnum = createEEnum(SPACECRAFT_KIND); | ||
536 | } | ||
537 | |||
538 | /** | ||
539 | * <!-- begin-user-doc --> | ||
540 | * <!-- end-user-doc --> | ||
541 | * @generated | ||
542 | */ | ||
543 | private boolean isInitialized = false; | ||
544 | |||
545 | /** | ||
546 | * Complete the initialization of the package and its meta-model. This | ||
547 | * method is guarded to have no affect on any invocation but its first. | ||
548 | * <!-- begin-user-doc --> | ||
549 | * <!-- end-user-doc --> | ||
550 | * @generated | ||
551 | */ | ||
552 | public void initializePackageContents() { | ||
553 | if (isInitialized) | ||
554 | return; | ||
555 | isInitialized = true; | ||
556 | |||
557 | // Initialize package | ||
558 | setName(eNAME); | ||
559 | setNsPrefix(eNS_PREFIX); | ||
560 | setNsURI(eNS_URI); | ||
561 | |||
562 | // Create type parameters | ||
563 | |||
564 | // Set bounds for type parameters | ||
565 | |||
566 | // Add supertypes to classes | ||
567 | interferometryMissionEClass.getESuperTypes().add(this.getConstellationMission()); | ||
568 | groundStationNetworkEClass.getESuperTypes().add(this.getCommunicatingElement()); | ||
569 | spacecraftEClass.getESuperTypes().add(this.getCommunicatingElement()); | ||
570 | interferometryPayloadEClass.getESuperTypes().add(this.getPayload()); | ||
571 | cubeSat3UEClass.getESuperTypes().add(this.getSpacecraft()); | ||
572 | cubeSat6UEClass.getESuperTypes().add(this.getSpacecraft()); | ||
573 | smallSatEClass.getESuperTypes().add(this.getSpacecraft()); | ||
574 | |||
575 | // Initialize classes, features, and operations; add parameters | ||
576 | initEClass(constellationMissionEClass, ConstellationMission.class, "ConstellationMission", IS_ABSTRACT, | ||
577 | !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
578 | initEReference(getConstellationMission_GroundStationNetwork(), this.getGroundStationNetwork(), null, | ||
579 | "groundStationNetwork", null, 1, 1, ConstellationMission.class, !IS_TRANSIENT, !IS_VOLATILE, | ||
580 | IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
581 | initEReference(getConstellationMission_Spacecraft(), this.getSpacecraft(), null, "spacecraft", null, 2, 50, | ||
582 | ConstellationMission.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, | ||
583 | !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
584 | |||
585 | initEClass(interferometryMissionEClass, InterferometryMission.class, "InterferometryMission", !IS_ABSTRACT, | ||
586 | !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
587 | initEAttribute(getInterferometryMission_ObservationTime(), ecorePackage.getEFloat(), "observationTime", "2.0", | ||
588 | 1, 1, InterferometryMission.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, | ||
589 | IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
590 | |||
591 | initEClass(communicatingElementEClass, CommunicatingElement.class, "CommunicatingElement", IS_ABSTRACT, | ||
592 | !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
593 | initEReference(getCommunicatingElement_CommSubsystem(), this.getCommSubsystem(), null, "commSubsystem", null, 1, | ||
594 | 2, CommunicatingElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, | ||
595 | !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
596 | initEReference(getCommunicatingElement_CommunicationLink(), this.getDirectedCommunicationLink(), null, | ||
597 | "communicationLink", null, 0, 1, CommunicatingElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, | ||
598 | IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
599 | |||
600 | initEClass(groundStationNetworkEClass, GroundStationNetwork.class, "GroundStationNetwork", !IS_ABSTRACT, | ||
601 | !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
602 | |||
603 | initEClass(spacecraftEClass, Spacecraft.class, "Spacecraft", IS_ABSTRACT, !IS_INTERFACE, | ||
604 | IS_GENERATED_INSTANCE_CLASS); | ||
605 | initEReference(getSpacecraft_Payload(), this.getPayload(), null, "payload", null, 0, 1, Spacecraft.class, | ||
606 | !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, | ||
607 | IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
608 | initEAttribute(getSpacecraft_Kind(), this.getSpacecraftKind(), "kind", null, 1, 1, Spacecraft.class, | ||
609 | IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED); | ||
610 | |||
611 | initEClass(commSubsystemEClass, CommSubsystem.class, "CommSubsystem", !IS_ABSTRACT, !IS_INTERFACE, | ||
612 | IS_GENERATED_INSTANCE_CLASS); | ||
613 | initEAttribute(getCommSubsystem_Band(), this.getTransceiverBand(), "band", null, 1, 1, CommSubsystem.class, | ||
614 | !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
615 | initEAttribute(getCommSubsystem_Gain(), this.getAntennaGain(), "gain", null, 1, 1, CommSubsystem.class, | ||
616 | !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
617 | |||
618 | initEClass(directedCommunicationLinkEClass, DirectedCommunicationLink.class, "DirectedCommunicationLink", | ||
619 | !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
620 | initEReference(getDirectedCommunicationLink_Source(), this.getCommSubsystem(), null, "source", null, 1, 1, | ||
621 | DirectedCommunicationLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, | ||
622 | IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
623 | initEReference(getDirectedCommunicationLink_Target(), this.getCommSubsystem(), null, "target", null, 1, 1, | ||
624 | DirectedCommunicationLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, | ||
625 | IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
626 | |||
627 | initEClass(payloadEClass, Payload.class, "Payload", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
628 | |||
629 | initEClass(interferometryPayloadEClass, InterferometryPayload.class, "InterferometryPayload", !IS_ABSTRACT, | ||
630 | !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
631 | |||
632 | initEClass(cubeSat3UEClass, CubeSat3U.class, "CubeSat3U", !IS_ABSTRACT, !IS_INTERFACE, | ||
633 | IS_GENERATED_INSTANCE_CLASS); | ||
634 | |||
635 | initEClass(cubeSat6UEClass, CubeSat6U.class, "CubeSat6U", !IS_ABSTRACT, !IS_INTERFACE, | ||
636 | IS_GENERATED_INSTANCE_CLASS); | ||
637 | |||
638 | initEClass(smallSatEClass, SmallSat.class, "SmallSat", !IS_ABSTRACT, !IS_INTERFACE, | ||
639 | IS_GENERATED_INSTANCE_CLASS); | ||
640 | |||
641 | // Initialize enums and add enum literals | ||
642 | initEEnum(transceiverBandEEnum, TransceiverBand.class, "TransceiverBand"); | ||
643 | addEEnumLiteral(transceiverBandEEnum, TransceiverBand.UHF); | ||
644 | addEEnumLiteral(transceiverBandEEnum, TransceiverBand.X); | ||
645 | addEEnumLiteral(transceiverBandEEnum, TransceiverBand.KA); | ||
646 | |||
647 | initEEnum(antennaGainEEnum, AntennaGain.class, "AntennaGain"); | ||
648 | addEEnumLiteral(antennaGainEEnum, AntennaGain.LOW); | ||
649 | addEEnumLiteral(antennaGainEEnum, AntennaGain.MEDIUM); | ||
650 | addEEnumLiteral(antennaGainEEnum, AntennaGain.HIGH); | ||
651 | |||
652 | initEEnum(spacecraftKindEEnum, SpacecraftKind.class, "SpacecraftKind"); | ||
653 | addEEnumLiteral(spacecraftKindEEnum, SpacecraftKind.CUBE_SAT3_U); | ||
654 | addEEnumLiteral(spacecraftKindEEnum, SpacecraftKind.CUBE_SAT6_U); | ||
655 | addEEnumLiteral(spacecraftKindEEnum, SpacecraftKind.SMALL_SAT); | ||
656 | |||
657 | // Create resource | ||
658 | createResource(eNS_URI); | ||
659 | |||
660 | // Create annotations | ||
661 | // http://www.eclipse.org/emf/2002/Ecore | ||
662 | createEcoreAnnotations(); | ||
663 | // org.eclipse.viatra.query.querybasedfeature | ||
664 | createOrgAnnotations(); | ||
665 | } | ||
666 | |||
667 | /** | ||
668 | * Initializes the annotations for <b>http://www.eclipse.org/emf/2002/Ecore</b>. | ||
669 | * <!-- begin-user-doc --> | ||
670 | * <!-- end-user-doc --> | ||
671 | * @generated | ||
672 | */ | ||
673 | protected void createEcoreAnnotations() { | ||
674 | String source = "http://www.eclipse.org/emf/2002/Ecore"; | ||
675 | addAnnotation(this, source, new String[] { "settingDelegates", "org.eclipse.viatra.query.querybasedfeature" }); | ||
676 | } | ||
677 | |||
678 | /** | ||
679 | * Initializes the annotations for <b>org.eclipse.viatra.query.querybasedfeature</b>. | ||
680 | * <!-- begin-user-doc --> | ||
681 | * <!-- end-user-doc --> | ||
682 | * @generated | ||
683 | */ | ||
684 | protected void createOrgAnnotations() { | ||
685 | String source = "org.eclipse.viatra.query.querybasedfeature"; | ||
686 | addAnnotation(getSpacecraft_Kind(), source, | ||
687 | new String[] { "patternFQN", "hu.bme.mit.inf.dslreasoner.domains.satellite.queries.spacecraftOfKind" }); | ||
688 | } | ||
689 | |||
690 | } //SatellitePackageImpl | ||