diff options
author | Aren Babikian <aren.babikian@mail.mcgill.ca> | 2021-01-05 23:44:50 +0100 |
---|---|---|
committer | Aren Babikian <aren.babikian@mail.mcgill.ca> | 2021-01-05 23:44:50 +0100 |
commit | d53ae070b68fc3bc429c1467f62779ba08d35755 (patch) | |
tree | 88e2de252727011a2ba2033aa0267eb211eec208 /Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/satellite/util/SatelliteAdapterFactory.java | |
parent | Prefer the global scope insted of nsURI in application configuration (diff) | |
parent | add readme and diversity measurements (diff) | |
download | VIATRA-Generator-d53ae070b68fc3bc429c1467f62779ba08d35755.tar.gz VIATRA-Generator-d53ae070b68fc3bc429c1467f62779ba08d35755.tar.zst VIATRA-Generator-d53ae070b68fc3bc429c1467f62779ba08d35755.zip |
merge models20 measurements
Diffstat (limited to 'Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/satellite/util/SatelliteAdapterFactory.java')
-rw-r--r-- | Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/satellite/util/SatelliteAdapterFactory.java | 372 |
1 files changed, 372 insertions, 0 deletions
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/satellite/util/SatelliteAdapterFactory.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/satellite/util/SatelliteAdapterFactory.java new file mode 100644 index 00000000..1e06efde --- /dev/null +++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/satellite/util/SatelliteAdapterFactory.java | |||
@@ -0,0 +1,372 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package satellite.util; | ||
4 | |||
5 | import org.eclipse.emf.common.notify.Adapter; | ||
6 | import org.eclipse.emf.common.notify.Notifier; | ||
7 | |||
8 | import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; | ||
9 | |||
10 | import org.eclipse.emf.ecore.EObject; | ||
11 | |||
12 | import satellite.*; | ||
13 | |||
14 | /** | ||
15 | * <!-- begin-user-doc --> | ||
16 | * The <b>Adapter Factory</b> for the model. | ||
17 | * It provides an adapter <code>createXXX</code> method for each class of the model. | ||
18 | * <!-- end-user-doc --> | ||
19 | * @see satellite.SatellitePackage | ||
20 | * @generated | ||
21 | */ | ||
22 | public class SatelliteAdapterFactory extends AdapterFactoryImpl { | ||
23 | /** | ||
24 | * The cached model package. | ||
25 | * <!-- begin-user-doc --> | ||
26 | * <!-- end-user-doc --> | ||
27 | * @generated | ||
28 | */ | ||
29 | protected static SatellitePackage modelPackage; | ||
30 | |||
31 | /** | ||
32 | * Creates an instance of the adapter factory. | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @generated | ||
36 | */ | ||
37 | public SatelliteAdapterFactory() { | ||
38 | if (modelPackage == null) { | ||
39 | modelPackage = SatellitePackage.eINSTANCE; | ||
40 | } | ||
41 | } | ||
42 | |||
43 | /** | ||
44 | * Returns whether this factory is applicable for the type of the object. | ||
45 | * <!-- begin-user-doc --> | ||
46 | * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. | ||
47 | * <!-- end-user-doc --> | ||
48 | * @return whether this factory is applicable for the type of the object. | ||
49 | * @generated | ||
50 | */ | ||
51 | @Override | ||
52 | public boolean isFactoryForType(Object object) { | ||
53 | if (object == modelPackage) { | ||
54 | return true; | ||
55 | } | ||
56 | if (object instanceof EObject) { | ||
57 | return ((EObject)object).eClass().getEPackage() == modelPackage; | ||
58 | } | ||
59 | return false; | ||
60 | } | ||
61 | |||
62 | /** | ||
63 | * The switch that delegates to the <code>createXXX</code> methods. | ||
64 | * <!-- begin-user-doc --> | ||
65 | * <!-- end-user-doc --> | ||
66 | * @generated | ||
67 | */ | ||
68 | protected SatelliteSwitch<Adapter> modelSwitch = | ||
69 | new SatelliteSwitch<Adapter>() { | ||
70 | @Override | ||
71 | public Adapter caseConstellationMission(ConstellationMission object) { | ||
72 | return createConstellationMissionAdapter(); | ||
73 | } | ||
74 | @Override | ||
75 | public Adapter caseInterferometryMission(InterferometryMission object) { | ||
76 | return createInterferometryMissionAdapter(); | ||
77 | } | ||
78 | @Override | ||
79 | public Adapter caseCommunicatingElement(CommunicatingElement object) { | ||
80 | return createCommunicatingElementAdapter(); | ||
81 | } | ||
82 | @Override | ||
83 | public Adapter caseGroundStationNetwork(GroundStationNetwork object) { | ||
84 | return createGroundStationNetworkAdapter(); | ||
85 | } | ||
86 | @Override | ||
87 | public Adapter caseSpacecraft(Spacecraft object) { | ||
88 | return createSpacecraftAdapter(); | ||
89 | } | ||
90 | @Override | ||
91 | public Adapter caseCommSubsystem(CommSubsystem object) { | ||
92 | return createCommSubsystemAdapter(); | ||
93 | } | ||
94 | @Override | ||
95 | public Adapter casePayload(Payload object) { | ||
96 | return createPayloadAdapter(); | ||
97 | } | ||
98 | @Override | ||
99 | public Adapter caseInterferometryPayload(InterferometryPayload object) { | ||
100 | return createInterferometryPayloadAdapter(); | ||
101 | } | ||
102 | @Override | ||
103 | public Adapter caseCubeSat3U(CubeSat3U object) { | ||
104 | return createCubeSat3UAdapter(); | ||
105 | } | ||
106 | @Override | ||
107 | public Adapter caseCubeSat6U(CubeSat6U object) { | ||
108 | return createCubeSat6UAdapter(); | ||
109 | } | ||
110 | @Override | ||
111 | public Adapter caseSmallSat(SmallSat object) { | ||
112 | return createSmallSatAdapter(); | ||
113 | } | ||
114 | @Override | ||
115 | public Adapter caseCubeSat(CubeSat object) { | ||
116 | return createCubeSatAdapter(); | ||
117 | } | ||
118 | @Override | ||
119 | public Adapter caseUHFCommSubsystem(UHFCommSubsystem object) { | ||
120 | return createUHFCommSubsystemAdapter(); | ||
121 | } | ||
122 | @Override | ||
123 | public Adapter caseXCommSubsystem(XCommSubsystem object) { | ||
124 | return createXCommSubsystemAdapter(); | ||
125 | } | ||
126 | @Override | ||
127 | public Adapter caseKaCommSubsystem(KaCommSubsystem object) { | ||
128 | return createKaCommSubsystemAdapter(); | ||
129 | } | ||
130 | @Override | ||
131 | public Adapter defaultCase(EObject object) { | ||
132 | return createEObjectAdapter(); | ||
133 | } | ||
134 | }; | ||
135 | |||
136 | /** | ||
137 | * Creates an adapter for the <code>target</code>. | ||
138 | * <!-- begin-user-doc --> | ||
139 | * <!-- end-user-doc --> | ||
140 | * @param target the object to adapt. | ||
141 | * @return the adapter for the <code>target</code>. | ||
142 | * @generated | ||
143 | */ | ||
144 | @Override | ||
145 | public Adapter createAdapter(Notifier target) { | ||
146 | return modelSwitch.doSwitch((EObject)target); | ||
147 | } | ||
148 | |||
149 | |||
150 | /** | ||
151 | * Creates a new adapter for an object of class '{@link satellite.ConstellationMission <em>Constellation Mission</em>}'. | ||
152 | * <!-- begin-user-doc --> | ||
153 | * This default implementation returns null so that we can easily ignore cases; | ||
154 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
155 | * <!-- end-user-doc --> | ||
156 | * @return the new adapter. | ||
157 | * @see satellite.ConstellationMission | ||
158 | * @generated | ||
159 | */ | ||
160 | public Adapter createConstellationMissionAdapter() { | ||
161 | return null; | ||
162 | } | ||
163 | |||
164 | /** | ||
165 | * Creates a new adapter for an object of class '{@link satellite.InterferometryMission <em>Interferometry Mission</em>}'. | ||
166 | * <!-- begin-user-doc --> | ||
167 | * This default implementation returns null so that we can easily ignore cases; | ||
168 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
169 | * <!-- end-user-doc --> | ||
170 | * @return the new adapter. | ||
171 | * @see satellite.InterferometryMission | ||
172 | * @generated | ||
173 | */ | ||
174 | public Adapter createInterferometryMissionAdapter() { | ||
175 | return null; | ||
176 | } | ||
177 | |||
178 | /** | ||
179 | * Creates a new adapter for an object of class '{@link satellite.CommunicatingElement <em>Communicating Element</em>}'. | ||
180 | * <!-- begin-user-doc --> | ||
181 | * This default implementation returns null so that we can easily ignore cases; | ||
182 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
183 | * <!-- end-user-doc --> | ||
184 | * @return the new adapter. | ||
185 | * @see satellite.CommunicatingElement | ||
186 | * @generated | ||
187 | */ | ||
188 | public Adapter createCommunicatingElementAdapter() { | ||
189 | return null; | ||
190 | } | ||
191 | |||
192 | /** | ||
193 | * Creates a new adapter for an object of class '{@link satellite.GroundStationNetwork <em>Ground Station Network</em>}'. | ||
194 | * <!-- begin-user-doc --> | ||
195 | * This default implementation returns null so that we can easily ignore cases; | ||
196 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
197 | * <!-- end-user-doc --> | ||
198 | * @return the new adapter. | ||
199 | * @see satellite.GroundStationNetwork | ||
200 | * @generated | ||
201 | */ | ||
202 | public Adapter createGroundStationNetworkAdapter() { | ||
203 | return null; | ||
204 | } | ||
205 | |||
206 | /** | ||
207 | * Creates a new adapter for an object of class '{@link satellite.Spacecraft <em>Spacecraft</em>}'. | ||
208 | * <!-- begin-user-doc --> | ||
209 | * This default implementation returns null so that we can easily ignore cases; | ||
210 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
211 | * <!-- end-user-doc --> | ||
212 | * @return the new adapter. | ||
213 | * @see satellite.Spacecraft | ||
214 | * @generated | ||
215 | */ | ||
216 | public Adapter createSpacecraftAdapter() { | ||
217 | return null; | ||
218 | } | ||
219 | |||
220 | /** | ||
221 | * Creates a new adapter for an object of class '{@link satellite.CommSubsystem <em>Comm Subsystem</em>}'. | ||
222 | * <!-- begin-user-doc --> | ||
223 | * This default implementation returns null so that we can easily ignore cases; | ||
224 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
225 | * <!-- end-user-doc --> | ||
226 | * @return the new adapter. | ||
227 | * @see satellite.CommSubsystem | ||
228 | * @generated | ||
229 | */ | ||
230 | public Adapter createCommSubsystemAdapter() { | ||
231 | return null; | ||
232 | } | ||
233 | |||
234 | /** | ||
235 | * Creates a new adapter for an object of class '{@link satellite.Payload <em>Payload</em>}'. | ||
236 | * <!-- begin-user-doc --> | ||
237 | * This default implementation returns null so that we can easily ignore cases; | ||
238 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
239 | * <!-- end-user-doc --> | ||
240 | * @return the new adapter. | ||
241 | * @see satellite.Payload | ||
242 | * @generated | ||
243 | */ | ||
244 | public Adapter createPayloadAdapter() { | ||
245 | return null; | ||
246 | } | ||
247 | |||
248 | /** | ||
249 | * Creates a new adapter for an object of class '{@link satellite.InterferometryPayload <em>Interferometry Payload</em>}'. | ||
250 | * <!-- begin-user-doc --> | ||
251 | * This default implementation returns null so that we can easily ignore cases; | ||
252 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
253 | * <!-- end-user-doc --> | ||
254 | * @return the new adapter. | ||
255 | * @see satellite.InterferometryPayload | ||
256 | * @generated | ||
257 | */ | ||
258 | public Adapter createInterferometryPayloadAdapter() { | ||
259 | return null; | ||
260 | } | ||
261 | |||
262 | /** | ||
263 | * Creates a new adapter for an object of class '{@link satellite.CubeSat3U <em>Cube Sat3 U</em>}'. | ||
264 | * <!-- begin-user-doc --> | ||
265 | * This default implementation returns null so that we can easily ignore cases; | ||
266 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
267 | * <!-- end-user-doc --> | ||
268 | * @return the new adapter. | ||
269 | * @see satellite.CubeSat3U | ||
270 | * @generated | ||
271 | */ | ||
272 | public Adapter createCubeSat3UAdapter() { | ||
273 | return null; | ||
274 | } | ||
275 | |||
276 | /** | ||
277 | * Creates a new adapter for an object of class '{@link satellite.CubeSat6U <em>Cube Sat6 U</em>}'. | ||
278 | * <!-- begin-user-doc --> | ||
279 | * This default implementation returns null so that we can easily ignore cases; | ||
280 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
281 | * <!-- end-user-doc --> | ||
282 | * @return the new adapter. | ||
283 | * @see satellite.CubeSat6U | ||
284 | * @generated | ||
285 | */ | ||
286 | public Adapter createCubeSat6UAdapter() { | ||
287 | return null; | ||
288 | } | ||
289 | |||
290 | /** | ||
291 | * Creates a new adapter for an object of class '{@link satellite.SmallSat <em>Small Sat</em>}'. | ||
292 | * <!-- begin-user-doc --> | ||
293 | * This default implementation returns null so that we can easily ignore cases; | ||
294 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
295 | * <!-- end-user-doc --> | ||
296 | * @return the new adapter. | ||
297 | * @see satellite.SmallSat | ||
298 | * @generated | ||
299 | */ | ||
300 | public Adapter createSmallSatAdapter() { | ||
301 | return null; | ||
302 | } | ||
303 | |||
304 | /** | ||
305 | * Creates a new adapter for an object of class '{@link satellite.CubeSat <em>Cube Sat</em>}'. | ||
306 | * <!-- begin-user-doc --> | ||
307 | * This default implementation returns null so that we can easily ignore cases; | ||
308 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
309 | * <!-- end-user-doc --> | ||
310 | * @return the new adapter. | ||
311 | * @see satellite.CubeSat | ||
312 | * @generated | ||
313 | */ | ||
314 | public Adapter createCubeSatAdapter() { | ||
315 | return null; | ||
316 | } | ||
317 | |||
318 | /** | ||
319 | * Creates a new adapter for an object of class '{@link satellite.UHFCommSubsystem <em>UHF Comm Subsystem</em>}'. | ||
320 | * <!-- begin-user-doc --> | ||
321 | * This default implementation returns null so that we can easily ignore cases; | ||
322 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
323 | * <!-- end-user-doc --> | ||
324 | * @return the new adapter. | ||
325 | * @see satellite.UHFCommSubsystem | ||
326 | * @generated | ||
327 | */ | ||
328 | public Adapter createUHFCommSubsystemAdapter() { | ||
329 | return null; | ||
330 | } | ||
331 | |||
332 | /** | ||
333 | * Creates a new adapter for an object of class '{@link satellite.XCommSubsystem <em>XComm Subsystem</em>}'. | ||
334 | * <!-- begin-user-doc --> | ||
335 | * This default implementation returns null so that we can easily ignore cases; | ||
336 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
337 | * <!-- end-user-doc --> | ||
338 | * @return the new adapter. | ||
339 | * @see satellite.XCommSubsystem | ||
340 | * @generated | ||
341 | */ | ||
342 | public Adapter createXCommSubsystemAdapter() { | ||
343 | return null; | ||
344 | } | ||
345 | |||
346 | /** | ||
347 | * Creates a new adapter for an object of class '{@link satellite.KaCommSubsystem <em>Ka Comm Subsystem</em>}'. | ||
348 | * <!-- begin-user-doc --> | ||
349 | * This default implementation returns null so that we can easily ignore cases; | ||
350 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
351 | * <!-- end-user-doc --> | ||
352 | * @return the new adapter. | ||
353 | * @see satellite.KaCommSubsystem | ||
354 | * @generated | ||
355 | */ | ||
356 | public Adapter createKaCommSubsystemAdapter() { | ||
357 | return null; | ||
358 | } | ||
359 | |||
360 | /** | ||
361 | * Creates a new adapter for the default case. | ||
362 | * <!-- begin-user-doc --> | ||
363 | * This default implementation returns null. | ||
364 | * <!-- end-user-doc --> | ||
365 | * @return the new adapter. | ||
366 | * @generated | ||
367 | */ | ||
368 | public Adapter createEObjectAdapter() { | ||
369 | return null; | ||
370 | } | ||
371 | |||
372 | } //SatelliteAdapterFactory | ||