diff options
Diffstat (limited to 'Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/satellite/util/SatelliteSwitch.java')
-rw-r--r-- | Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/satellite/util/SatelliteSwitch.java | 421 |
1 files changed, 421 insertions, 0 deletions
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/satellite/util/SatelliteSwitch.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/satellite/util/SatelliteSwitch.java new file mode 100644 index 00000000..a380d3f6 --- /dev/null +++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/satellite/util/SatelliteSwitch.java | |||
@@ -0,0 +1,421 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package satellite.util; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EObject; | ||
6 | import org.eclipse.emf.ecore.EPackage; | ||
7 | |||
8 | import org.eclipse.emf.ecore.util.Switch; | ||
9 | |||
10 | import satellite.*; | ||
11 | |||
12 | /** | ||
13 | * <!-- begin-user-doc --> | ||
14 | * The <b>Switch</b> for the model's inheritance hierarchy. | ||
15 | * It supports the call {@link #doSwitch(EObject) doSwitch(object)} | ||
16 | * to invoke the <code>caseXXX</code> method for each class of the model, | ||
17 | * starting with the actual class of the object | ||
18 | * and proceeding up the inheritance hierarchy | ||
19 | * until a non-null result is returned, | ||
20 | * which is the result of the switch. | ||
21 | * <!-- end-user-doc --> | ||
22 | * @see satellite.SatellitePackage | ||
23 | * @generated | ||
24 | */ | ||
25 | public class SatelliteSwitch<T> extends Switch<T> { | ||
26 | /** | ||
27 | * The cached model package | ||
28 | * <!-- begin-user-doc --> | ||
29 | * <!-- end-user-doc --> | ||
30 | * @generated | ||
31 | */ | ||
32 | protected static SatellitePackage modelPackage; | ||
33 | |||
34 | /** | ||
35 | * Creates an instance of the switch. | ||
36 | * <!-- begin-user-doc --> | ||
37 | * <!-- end-user-doc --> | ||
38 | * @generated | ||
39 | */ | ||
40 | public SatelliteSwitch() { | ||
41 | if (modelPackage == null) { | ||
42 | modelPackage = SatellitePackage.eINSTANCE; | ||
43 | } | ||
44 | } | ||
45 | |||
46 | /** | ||
47 | * Checks whether this is a switch for the given package. | ||
48 | * <!-- begin-user-doc --> | ||
49 | * <!-- end-user-doc --> | ||
50 | * @param ePackage the package in question. | ||
51 | * @return whether this is a switch for the given package. | ||
52 | * @generated | ||
53 | */ | ||
54 | @Override | ||
55 | protected boolean isSwitchFor(EPackage ePackage) { | ||
56 | return ePackage == modelPackage; | ||
57 | } | ||
58 | |||
59 | /** | ||
60 | * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @return the first non-null result returned by a <code>caseXXX</code> call. | ||
64 | * @generated | ||
65 | */ | ||
66 | @Override | ||
67 | protected T doSwitch(int classifierID, EObject theEObject) { | ||
68 | switch (classifierID) { | ||
69 | case SatellitePackage.CONSTELLATION_MISSION: { | ||
70 | ConstellationMission constellationMission = (ConstellationMission)theEObject; | ||
71 | T result = caseConstellationMission(constellationMission); | ||
72 | if (result == null) result = defaultCase(theEObject); | ||
73 | return result; | ||
74 | } | ||
75 | case SatellitePackage.INTERFEROMETRY_MISSION: { | ||
76 | InterferometryMission interferometryMission = (InterferometryMission)theEObject; | ||
77 | T result = caseInterferometryMission(interferometryMission); | ||
78 | if (result == null) result = caseConstellationMission(interferometryMission); | ||
79 | if (result == null) result = defaultCase(theEObject); | ||
80 | return result; | ||
81 | } | ||
82 | case SatellitePackage.COMMUNICATING_ELEMENT: { | ||
83 | CommunicatingElement communicatingElement = (CommunicatingElement)theEObject; | ||
84 | T result = caseCommunicatingElement(communicatingElement); | ||
85 | if (result == null) result = defaultCase(theEObject); | ||
86 | return result; | ||
87 | } | ||
88 | case SatellitePackage.GROUND_STATION_NETWORK: { | ||
89 | GroundStationNetwork groundStationNetwork = (GroundStationNetwork)theEObject; | ||
90 | T result = caseGroundStationNetwork(groundStationNetwork); | ||
91 | if (result == null) result = caseCommunicatingElement(groundStationNetwork); | ||
92 | if (result == null) result = defaultCase(theEObject); | ||
93 | return result; | ||
94 | } | ||
95 | case SatellitePackage.SPACECRAFT: { | ||
96 | Spacecraft spacecraft = (Spacecraft)theEObject; | ||
97 | T result = caseSpacecraft(spacecraft); | ||
98 | if (result == null) result = caseCommunicatingElement(spacecraft); | ||
99 | if (result == null) result = defaultCase(theEObject); | ||
100 | return result; | ||
101 | } | ||
102 | case SatellitePackage.COMM_SUBSYSTEM: { | ||
103 | CommSubsystem commSubsystem = (CommSubsystem)theEObject; | ||
104 | T result = caseCommSubsystem(commSubsystem); | ||
105 | if (result == null) result = defaultCase(theEObject); | ||
106 | return result; | ||
107 | } | ||
108 | case SatellitePackage.PAYLOAD: { | ||
109 | Payload payload = (Payload)theEObject; | ||
110 | T result = casePayload(payload); | ||
111 | if (result == null) result = defaultCase(theEObject); | ||
112 | return result; | ||
113 | } | ||
114 | case SatellitePackage.INTERFEROMETRY_PAYLOAD: { | ||
115 | InterferometryPayload interferometryPayload = (InterferometryPayload)theEObject; | ||
116 | T result = caseInterferometryPayload(interferometryPayload); | ||
117 | if (result == null) result = casePayload(interferometryPayload); | ||
118 | if (result == null) result = defaultCase(theEObject); | ||
119 | return result; | ||
120 | } | ||
121 | case SatellitePackage.CUBE_SAT3_U: { | ||
122 | CubeSat3U cubeSat3U = (CubeSat3U)theEObject; | ||
123 | T result = caseCubeSat3U(cubeSat3U); | ||
124 | if (result == null) result = caseCubeSat(cubeSat3U); | ||
125 | if (result == null) result = caseSpacecraft(cubeSat3U); | ||
126 | if (result == null) result = caseCommunicatingElement(cubeSat3U); | ||
127 | if (result == null) result = defaultCase(theEObject); | ||
128 | return result; | ||
129 | } | ||
130 | case SatellitePackage.CUBE_SAT6_U: { | ||
131 | CubeSat6U cubeSat6U = (CubeSat6U)theEObject; | ||
132 | T result = caseCubeSat6U(cubeSat6U); | ||
133 | if (result == null) result = caseCubeSat(cubeSat6U); | ||
134 | if (result == null) result = caseSpacecraft(cubeSat6U); | ||
135 | if (result == null) result = caseCommunicatingElement(cubeSat6U); | ||
136 | if (result == null) result = defaultCase(theEObject); | ||
137 | return result; | ||
138 | } | ||
139 | case SatellitePackage.SMALL_SAT: { | ||
140 | SmallSat smallSat = (SmallSat)theEObject; | ||
141 | T result = caseSmallSat(smallSat); | ||
142 | if (result == null) result = caseSpacecraft(smallSat); | ||
143 | if (result == null) result = caseCommunicatingElement(smallSat); | ||
144 | if (result == null) result = defaultCase(theEObject); | ||
145 | return result; | ||
146 | } | ||
147 | case SatellitePackage.CUBE_SAT: { | ||
148 | CubeSat cubeSat = (CubeSat)theEObject; | ||
149 | T result = caseCubeSat(cubeSat); | ||
150 | if (result == null) result = caseSpacecraft(cubeSat); | ||
151 | if (result == null) result = caseCommunicatingElement(cubeSat); | ||
152 | if (result == null) result = defaultCase(theEObject); | ||
153 | return result; | ||
154 | } | ||
155 | case SatellitePackage.UHF_COMM_SUBSYSTEM: { | ||
156 | UHFCommSubsystem uhfCommSubsystem = (UHFCommSubsystem)theEObject; | ||
157 | T result = caseUHFCommSubsystem(uhfCommSubsystem); | ||
158 | if (result == null) result = caseCommSubsystem(uhfCommSubsystem); | ||
159 | if (result == null) result = defaultCase(theEObject); | ||
160 | return result; | ||
161 | } | ||
162 | case SatellitePackage.XCOMM_SUBSYSTEM: { | ||
163 | XCommSubsystem xCommSubsystem = (XCommSubsystem)theEObject; | ||
164 | T result = caseXCommSubsystem(xCommSubsystem); | ||
165 | if (result == null) result = caseCommSubsystem(xCommSubsystem); | ||
166 | if (result == null) result = defaultCase(theEObject); | ||
167 | return result; | ||
168 | } | ||
169 | case SatellitePackage.KA_COMM_SUBSYSTEM: { | ||
170 | KaCommSubsystem kaCommSubsystem = (KaCommSubsystem)theEObject; | ||
171 | T result = caseKaCommSubsystem(kaCommSubsystem); | ||
172 | if (result == null) result = caseCommSubsystem(kaCommSubsystem); | ||
173 | if (result == null) result = defaultCase(theEObject); | ||
174 | return result; | ||
175 | } | ||
176 | default: return defaultCase(theEObject); | ||
177 | } | ||
178 | } | ||
179 | |||
180 | /** | ||
181 | * Returns the result of interpreting the object as an instance of '<em>Constellation Mission</em>'. | ||
182 | * <!-- begin-user-doc --> | ||
183 | * This implementation returns null; | ||
184 | * returning a non-null result will terminate the switch. | ||
185 | * <!-- end-user-doc --> | ||
186 | * @param object the target of the switch. | ||
187 | * @return the result of interpreting the object as an instance of '<em>Constellation Mission</em>'. | ||
188 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
189 | * @generated | ||
190 | */ | ||
191 | public T caseConstellationMission(ConstellationMission object) { | ||
192 | return null; | ||
193 | } | ||
194 | |||
195 | /** | ||
196 | * Returns the result of interpreting the object as an instance of '<em>Interferometry Mission</em>'. | ||
197 | * <!-- begin-user-doc --> | ||
198 | * This implementation returns null; | ||
199 | * returning a non-null result will terminate the switch. | ||
200 | * <!-- end-user-doc --> | ||
201 | * @param object the target of the switch. | ||
202 | * @return the result of interpreting the object as an instance of '<em>Interferometry Mission</em>'. | ||
203 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
204 | * @generated | ||
205 | */ | ||
206 | public T caseInterferometryMission(InterferometryMission object) { | ||
207 | return null; | ||
208 | } | ||
209 | |||
210 | /** | ||
211 | * Returns the result of interpreting the object as an instance of '<em>Communicating Element</em>'. | ||
212 | * <!-- begin-user-doc --> | ||
213 | * This implementation returns null; | ||
214 | * returning a non-null result will terminate the switch. | ||
215 | * <!-- end-user-doc --> | ||
216 | * @param object the target of the switch. | ||
217 | * @return the result of interpreting the object as an instance of '<em>Communicating Element</em>'. | ||
218 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
219 | * @generated | ||
220 | */ | ||
221 | public T caseCommunicatingElement(CommunicatingElement object) { | ||
222 | return null; | ||
223 | } | ||
224 | |||
225 | /** | ||
226 | * Returns the result of interpreting the object as an instance of '<em>Ground Station Network</em>'. | ||
227 | * <!-- begin-user-doc --> | ||
228 | * This implementation returns null; | ||
229 | * returning a non-null result will terminate the switch. | ||
230 | * <!-- end-user-doc --> | ||
231 | * @param object the target of the switch. | ||
232 | * @return the result of interpreting the object as an instance of '<em>Ground Station Network</em>'. | ||
233 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
234 | * @generated | ||
235 | */ | ||
236 | public T caseGroundStationNetwork(GroundStationNetwork object) { | ||
237 | return null; | ||
238 | } | ||
239 | |||
240 | /** | ||
241 | * Returns the result of interpreting the object as an instance of '<em>Spacecraft</em>'. | ||
242 | * <!-- begin-user-doc --> | ||
243 | * This implementation returns null; | ||
244 | * returning a non-null result will terminate the switch. | ||
245 | * <!-- end-user-doc --> | ||
246 | * @param object the target of the switch. | ||
247 | * @return the result of interpreting the object as an instance of '<em>Spacecraft</em>'. | ||
248 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
249 | * @generated | ||
250 | */ | ||
251 | public T caseSpacecraft(Spacecraft object) { | ||
252 | return null; | ||
253 | } | ||
254 | |||
255 | /** | ||
256 | * Returns the result of interpreting the object as an instance of '<em>Comm Subsystem</em>'. | ||
257 | * <!-- begin-user-doc --> | ||
258 | * This implementation returns null; | ||
259 | * returning a non-null result will terminate the switch. | ||
260 | * <!-- end-user-doc --> | ||
261 | * @param object the target of the switch. | ||
262 | * @return the result of interpreting the object as an instance of '<em>Comm Subsystem</em>'. | ||
263 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
264 | * @generated | ||
265 | */ | ||
266 | public T caseCommSubsystem(CommSubsystem object) { | ||
267 | return null; | ||
268 | } | ||
269 | |||
270 | /** | ||
271 | * Returns the result of interpreting the object as an instance of '<em>Payload</em>'. | ||
272 | * <!-- begin-user-doc --> | ||
273 | * This implementation returns null; | ||
274 | * returning a non-null result will terminate the switch. | ||
275 | * <!-- end-user-doc --> | ||
276 | * @param object the target of the switch. | ||
277 | * @return the result of interpreting the object as an instance of '<em>Payload</em>'. | ||
278 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
279 | * @generated | ||
280 | */ | ||
281 | public T casePayload(Payload object) { | ||
282 | return null; | ||
283 | } | ||
284 | |||
285 | /** | ||
286 | * Returns the result of interpreting the object as an instance of '<em>Interferometry Payload</em>'. | ||
287 | * <!-- begin-user-doc --> | ||
288 | * This implementation returns null; | ||
289 | * returning a non-null result will terminate the switch. | ||
290 | * <!-- end-user-doc --> | ||
291 | * @param object the target of the switch. | ||
292 | * @return the result of interpreting the object as an instance of '<em>Interferometry Payload</em>'. | ||
293 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
294 | * @generated | ||
295 | */ | ||
296 | public T caseInterferometryPayload(InterferometryPayload object) { | ||
297 | return null; | ||
298 | } | ||
299 | |||
300 | /** | ||
301 | * Returns the result of interpreting the object as an instance of '<em>Cube Sat3 U</em>'. | ||
302 | * <!-- begin-user-doc --> | ||
303 | * This implementation returns null; | ||
304 | * returning a non-null result will terminate the switch. | ||
305 | * <!-- end-user-doc --> | ||
306 | * @param object the target of the switch. | ||
307 | * @return the result of interpreting the object as an instance of '<em>Cube Sat3 U</em>'. | ||
308 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
309 | * @generated | ||
310 | */ | ||
311 | public T caseCubeSat3U(CubeSat3U object) { | ||
312 | return null; | ||
313 | } | ||
314 | |||
315 | /** | ||
316 | * Returns the result of interpreting the object as an instance of '<em>Cube Sat6 U</em>'. | ||
317 | * <!-- begin-user-doc --> | ||
318 | * This implementation returns null; | ||
319 | * returning a non-null result will terminate the switch. | ||
320 | * <!-- end-user-doc --> | ||
321 | * @param object the target of the switch. | ||
322 | * @return the result of interpreting the object as an instance of '<em>Cube Sat6 U</em>'. | ||
323 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
324 | * @generated | ||
325 | */ | ||
326 | public T caseCubeSat6U(CubeSat6U object) { | ||
327 | return null; | ||
328 | } | ||
329 | |||
330 | /** | ||
331 | * Returns the result of interpreting the object as an instance of '<em>Small Sat</em>'. | ||
332 | * <!-- begin-user-doc --> | ||
333 | * This implementation returns null; | ||
334 | * returning a non-null result will terminate the switch. | ||
335 | * <!-- end-user-doc --> | ||
336 | * @param object the target of the switch. | ||
337 | * @return the result of interpreting the object as an instance of '<em>Small Sat</em>'. | ||
338 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
339 | * @generated | ||
340 | */ | ||
341 | public T caseSmallSat(SmallSat object) { | ||
342 | return null; | ||
343 | } | ||
344 | |||
345 | /** | ||
346 | * Returns the result of interpreting the object as an instance of '<em>Cube Sat</em>'. | ||
347 | * <!-- begin-user-doc --> | ||
348 | * This implementation returns null; | ||
349 | * returning a non-null result will terminate the switch. | ||
350 | * <!-- end-user-doc --> | ||
351 | * @param object the target of the switch. | ||
352 | * @return the result of interpreting the object as an instance of '<em>Cube Sat</em>'. | ||
353 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
354 | * @generated | ||
355 | */ | ||
356 | public T caseCubeSat(CubeSat object) { | ||
357 | return null; | ||
358 | } | ||
359 | |||
360 | /** | ||
361 | * Returns the result of interpreting the object as an instance of '<em>UHF Comm Subsystem</em>'. | ||
362 | * <!-- begin-user-doc --> | ||
363 | * This implementation returns null; | ||
364 | * returning a non-null result will terminate the switch. | ||
365 | * <!-- end-user-doc --> | ||
366 | * @param object the target of the switch. | ||
367 | * @return the result of interpreting the object as an instance of '<em>UHF Comm Subsystem</em>'. | ||
368 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
369 | * @generated | ||
370 | */ | ||
371 | public T caseUHFCommSubsystem(UHFCommSubsystem object) { | ||
372 | return null; | ||
373 | } | ||
374 | |||
375 | /** | ||
376 | * Returns the result of interpreting the object as an instance of '<em>XComm Subsystem</em>'. | ||
377 | * <!-- begin-user-doc --> | ||
378 | * This implementation returns null; | ||
379 | * returning a non-null result will terminate the switch. | ||
380 | * <!-- end-user-doc --> | ||
381 | * @param object the target of the switch. | ||
382 | * @return the result of interpreting the object as an instance of '<em>XComm Subsystem</em>'. | ||
383 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
384 | * @generated | ||
385 | */ | ||
386 | public T caseXCommSubsystem(XCommSubsystem object) { | ||
387 | return null; | ||
388 | } | ||
389 | |||
390 | /** | ||
391 | * Returns the result of interpreting the object as an instance of '<em>Ka Comm Subsystem</em>'. | ||
392 | * <!-- begin-user-doc --> | ||
393 | * This implementation returns null; | ||
394 | * returning a non-null result will terminate the switch. | ||
395 | * <!-- end-user-doc --> | ||
396 | * @param object the target of the switch. | ||
397 | * @return the result of interpreting the object as an instance of '<em>Ka Comm Subsystem</em>'. | ||
398 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
399 | * @generated | ||
400 | */ | ||
401 | public T caseKaCommSubsystem(KaCommSubsystem object) { | ||
402 | return null; | ||
403 | } | ||
404 | |||
405 | /** | ||
406 | * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. | ||
407 | * <!-- begin-user-doc --> | ||
408 | * This implementation returns null; | ||
409 | * returning a non-null result will terminate the switch, but this is the last case anyway. | ||
410 | * <!-- end-user-doc --> | ||
411 | * @param object the target of the switch. | ||
412 | * @return the result of interpreting the object as an instance of '<em>EObject</em>'. | ||
413 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) | ||
414 | * @generated | ||
415 | */ | ||
416 | @Override | ||
417 | public T defaultCase(EObject object) { | ||
418 | return null; | ||
419 | } | ||
420 | |||
421 | } //SatelliteSwitch | ||