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/util/SatelliteSwitch.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/util/SatelliteSwitch.java')
-rw-r--r-- | Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/util/SatelliteSwitch.java | 374 |
1 files changed, 374 insertions, 0 deletions
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/util/SatelliteSwitch.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/util/SatelliteSwitch.java new file mode 100644 index 00000000..3eb78d75 --- /dev/null +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/util/SatelliteSwitch.java | |||
@@ -0,0 +1,374 @@ | |||
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) | ||
73 | result = defaultCase(theEObject); | ||
74 | return result; | ||
75 | } | ||
76 | case SatellitePackage.INTERFEROMETRY_MISSION: { | ||
77 | InterferometryMission interferometryMission = (InterferometryMission) theEObject; | ||
78 | T result = caseInterferometryMission(interferometryMission); | ||
79 | if (result == null) | ||
80 | result = caseConstellationMission(interferometryMission); | ||
81 | if (result == null) | ||
82 | result = defaultCase(theEObject); | ||
83 | return result; | ||
84 | } | ||
85 | case SatellitePackage.COMMUNICATING_ELEMENT: { | ||
86 | CommunicatingElement communicatingElement = (CommunicatingElement) theEObject; | ||
87 | T result = caseCommunicatingElement(communicatingElement); | ||
88 | if (result == null) | ||
89 | result = defaultCase(theEObject); | ||
90 | return result; | ||
91 | } | ||
92 | case SatellitePackage.GROUND_STATION_NETWORK: { | ||
93 | GroundStationNetwork groundStationNetwork = (GroundStationNetwork) theEObject; | ||
94 | T result = caseGroundStationNetwork(groundStationNetwork); | ||
95 | if (result == null) | ||
96 | result = caseCommunicatingElement(groundStationNetwork); | ||
97 | if (result == null) | ||
98 | result = defaultCase(theEObject); | ||
99 | return result; | ||
100 | } | ||
101 | case SatellitePackage.SPACECRAFT: { | ||
102 | Spacecraft spacecraft = (Spacecraft) theEObject; | ||
103 | T result = caseSpacecraft(spacecraft); | ||
104 | if (result == null) | ||
105 | result = caseCommunicatingElement(spacecraft); | ||
106 | if (result == null) | ||
107 | result = defaultCase(theEObject); | ||
108 | return result; | ||
109 | } | ||
110 | case SatellitePackage.COMM_SUBSYSTEM: { | ||
111 | CommSubsystem commSubsystem = (CommSubsystem) theEObject; | ||
112 | T result = caseCommSubsystem(commSubsystem); | ||
113 | if (result == null) | ||
114 | result = defaultCase(theEObject); | ||
115 | return result; | ||
116 | } | ||
117 | case SatellitePackage.DIRECTED_COMMUNICATION_LINK: { | ||
118 | DirectedCommunicationLink directedCommunicationLink = (DirectedCommunicationLink) theEObject; | ||
119 | T result = caseDirectedCommunicationLink(directedCommunicationLink); | ||
120 | if (result == null) | ||
121 | result = defaultCase(theEObject); | ||
122 | return result; | ||
123 | } | ||
124 | case SatellitePackage.PAYLOAD: { | ||
125 | Payload payload = (Payload) theEObject; | ||
126 | T result = casePayload(payload); | ||
127 | if (result == null) | ||
128 | result = defaultCase(theEObject); | ||
129 | return result; | ||
130 | } | ||
131 | case SatellitePackage.INTERFEROMETRY_PAYLOAD: { | ||
132 | InterferometryPayload interferometryPayload = (InterferometryPayload) theEObject; | ||
133 | T result = caseInterferometryPayload(interferometryPayload); | ||
134 | if (result == null) | ||
135 | result = casePayload(interferometryPayload); | ||
136 | if (result == null) | ||
137 | result = defaultCase(theEObject); | ||
138 | return result; | ||
139 | } | ||
140 | case SatellitePackage.CUBE_SAT3_U: { | ||
141 | CubeSat3U cubeSat3U = (CubeSat3U) theEObject; | ||
142 | T result = caseCubeSat3U(cubeSat3U); | ||
143 | if (result == null) | ||
144 | result = caseSpacecraft(cubeSat3U); | ||
145 | if (result == null) | ||
146 | result = caseCommunicatingElement(cubeSat3U); | ||
147 | if (result == null) | ||
148 | result = defaultCase(theEObject); | ||
149 | return result; | ||
150 | } | ||
151 | case SatellitePackage.CUBE_SAT6_U: { | ||
152 | CubeSat6U cubeSat6U = (CubeSat6U) theEObject; | ||
153 | T result = caseCubeSat6U(cubeSat6U); | ||
154 | if (result == null) | ||
155 | result = caseSpacecraft(cubeSat6U); | ||
156 | if (result == null) | ||
157 | result = caseCommunicatingElement(cubeSat6U); | ||
158 | if (result == null) | ||
159 | result = defaultCase(theEObject); | ||
160 | return result; | ||
161 | } | ||
162 | case SatellitePackage.SMALL_SAT: { | ||
163 | SmallSat smallSat = (SmallSat) theEObject; | ||
164 | T result = caseSmallSat(smallSat); | ||
165 | if (result == null) | ||
166 | result = caseSpacecraft(smallSat); | ||
167 | if (result == null) | ||
168 | result = caseCommunicatingElement(smallSat); | ||
169 | if (result == null) | ||
170 | result = defaultCase(theEObject); | ||
171 | return result; | ||
172 | } | ||
173 | default: | ||
174 | return defaultCase(theEObject); | ||
175 | } | ||
176 | } | ||
177 | |||
178 | /** | ||
179 | * Returns the result of interpreting the object as an instance of '<em>Constellation Mission</em>'. | ||
180 | * <!-- begin-user-doc --> | ||
181 | * This implementation returns null; | ||
182 | * returning a non-null result will terminate the switch. | ||
183 | * <!-- end-user-doc --> | ||
184 | * @param object the target of the switch. | ||
185 | * @return the result of interpreting the object as an instance of '<em>Constellation Mission</em>'. | ||
186 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
187 | * @generated | ||
188 | */ | ||
189 | public T caseConstellationMission(ConstellationMission object) { | ||
190 | return null; | ||
191 | } | ||
192 | |||
193 | /** | ||
194 | * Returns the result of interpreting the object as an instance of '<em>Interferometry Mission</em>'. | ||
195 | * <!-- begin-user-doc --> | ||
196 | * This implementation returns null; | ||
197 | * returning a non-null result will terminate the switch. | ||
198 | * <!-- end-user-doc --> | ||
199 | * @param object the target of the switch. | ||
200 | * @return the result of interpreting the object as an instance of '<em>Interferometry Mission</em>'. | ||
201 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
202 | * @generated | ||
203 | */ | ||
204 | public T caseInterferometryMission(InterferometryMission object) { | ||
205 | return null; | ||
206 | } | ||
207 | |||
208 | /** | ||
209 | * Returns the result of interpreting the object as an instance of '<em>Communicating Element</em>'. | ||
210 | * <!-- begin-user-doc --> | ||
211 | * This implementation returns null; | ||
212 | * returning a non-null result will terminate the switch. | ||
213 | * <!-- end-user-doc --> | ||
214 | * @param object the target of the switch. | ||
215 | * @return the result of interpreting the object as an instance of '<em>Communicating Element</em>'. | ||
216 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
217 | * @generated | ||
218 | */ | ||
219 | public T caseCommunicatingElement(CommunicatingElement object) { | ||
220 | return null; | ||
221 | } | ||
222 | |||
223 | /** | ||
224 | * Returns the result of interpreting the object as an instance of '<em>Ground Station Network</em>'. | ||
225 | * <!-- begin-user-doc --> | ||
226 | * This implementation returns null; | ||
227 | * returning a non-null result will terminate the switch. | ||
228 | * <!-- end-user-doc --> | ||
229 | * @param object the target of the switch. | ||
230 | * @return the result of interpreting the object as an instance of '<em>Ground Station Network</em>'. | ||
231 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
232 | * @generated | ||
233 | */ | ||
234 | public T caseGroundStationNetwork(GroundStationNetwork object) { | ||
235 | return null; | ||
236 | } | ||
237 | |||
238 | /** | ||
239 | * Returns the result of interpreting the object as an instance of '<em>Spacecraft</em>'. | ||
240 | * <!-- begin-user-doc --> | ||
241 | * This implementation returns null; | ||
242 | * returning a non-null result will terminate the switch. | ||
243 | * <!-- end-user-doc --> | ||
244 | * @param object the target of the switch. | ||
245 | * @return the result of interpreting the object as an instance of '<em>Spacecraft</em>'. | ||
246 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
247 | * @generated | ||
248 | */ | ||
249 | public T caseSpacecraft(Spacecraft object) { | ||
250 | return null; | ||
251 | } | ||
252 | |||
253 | /** | ||
254 | * Returns the result of interpreting the object as an instance of '<em>Comm Subsystem</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>Comm Subsystem</em>'. | ||
261 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
262 | * @generated | ||
263 | */ | ||
264 | public T caseCommSubsystem(CommSubsystem object) { | ||
265 | return null; | ||
266 | } | ||
267 | |||
268 | /** | ||
269 | * Returns the result of interpreting the object as an instance of '<em>Directed Communication Link</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>Directed Communication Link</em>'. | ||
276 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
277 | * @generated | ||
278 | */ | ||
279 | public T caseDirectedCommunicationLink(DirectedCommunicationLink object) { | ||
280 | return null; | ||
281 | } | ||
282 | |||
283 | /** | ||
284 | * Returns the result of interpreting the object as an instance of '<em>Payload</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>Payload</em>'. | ||
291 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
292 | * @generated | ||
293 | */ | ||
294 | public T casePayload(Payload object) { | ||
295 | return null; | ||
296 | } | ||
297 | |||
298 | /** | ||
299 | * Returns the result of interpreting the object as an instance of '<em>Interferometry Payload</em>'. | ||
300 | * <!-- begin-user-doc --> | ||
301 | * This implementation returns null; | ||
302 | * returning a non-null result will terminate the switch. | ||
303 | * <!-- end-user-doc --> | ||
304 | * @param object the target of the switch. | ||
305 | * @return the result of interpreting the object as an instance of '<em>Interferometry Payload</em>'. | ||
306 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
307 | * @generated | ||
308 | */ | ||
309 | public T caseInterferometryPayload(InterferometryPayload object) { | ||
310 | return null; | ||
311 | } | ||
312 | |||
313 | /** | ||
314 | * Returns the result of interpreting the object as an instance of '<em>Cube Sat3 U</em>'. | ||
315 | * <!-- begin-user-doc --> | ||
316 | * This implementation returns null; | ||
317 | * returning a non-null result will terminate the switch. | ||
318 | * <!-- end-user-doc --> | ||
319 | * @param object the target of the switch. | ||
320 | * @return the result of interpreting the object as an instance of '<em>Cube Sat3 U</em>'. | ||
321 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
322 | * @generated | ||
323 | */ | ||
324 | public T caseCubeSat3U(CubeSat3U object) { | ||
325 | return null; | ||
326 | } | ||
327 | |||
328 | /** | ||
329 | * Returns the result of interpreting the object as an instance of '<em>Cube Sat6 U</em>'. | ||
330 | * <!-- begin-user-doc --> | ||
331 | * This implementation returns null; | ||
332 | * returning a non-null result will terminate the switch. | ||
333 | * <!-- end-user-doc --> | ||
334 | * @param object the target of the switch. | ||
335 | * @return the result of interpreting the object as an instance of '<em>Cube Sat6 U</em>'. | ||
336 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
337 | * @generated | ||
338 | */ | ||
339 | public T caseCubeSat6U(CubeSat6U object) { | ||
340 | return null; | ||
341 | } | ||
342 | |||
343 | /** | ||
344 | * Returns the result of interpreting the object as an instance of '<em>Small Sat</em>'. | ||
345 | * <!-- begin-user-doc --> | ||
346 | * This implementation returns null; | ||
347 | * returning a non-null result will terminate the switch. | ||
348 | * <!-- end-user-doc --> | ||
349 | * @param object the target of the switch. | ||
350 | * @return the result of interpreting the object as an instance of '<em>Small Sat</em>'. | ||
351 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
352 | * @generated | ||
353 | */ | ||
354 | public T caseSmallSat(SmallSat object) { | ||
355 | return null; | ||
356 | } | ||
357 | |||
358 | /** | ||
359 | * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. | ||
360 | * <!-- begin-user-doc --> | ||
361 | * This implementation returns null; | ||
362 | * returning a non-null result will terminate the switch, but this is the last case anyway. | ||
363 | * <!-- end-user-doc --> | ||
364 | * @param object the target of the switch. | ||
365 | * @return the result of interpreting the object as an instance of '<em>EObject</em>'. | ||
366 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) | ||
367 | * @generated | ||
368 | */ | ||
369 | @Override | ||
370 | public T defaultCase(EObject object) { | ||
371 | return null; | ||
372 | } | ||
373 | |||
374 | } //SatelliteSwitch | ||