diff options
author | 2021-01-11 06:42:10 -0500 | |
---|---|---|
committer | 2021-01-11 06:42:10 -0500 | |
commit | e3774317421935b8d63e2e0ad08a141853d31908 (patch) | |
tree | 2bed27fb1471b56cc04b14ce27dbc4bda12dfcda /Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/util/SimpleScenarioSwitch.java | |
parent | remove local-docker file transfer (diff) | |
download | VIATRA-Generator-e3774317421935b8d63e2e0ad08a141853d31908.tar.gz VIATRA-Generator-e3774317421935b8d63e2e0ad08a141853d31908.tar.zst VIATRA-Generator-e3774317421935b8d63e2e0ad08a141853d31908.zip |
first version of the simpleScenario MM+VQL. noRealMatches bug found
Diffstat (limited to 'Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/util/SimpleScenarioSwitch.java')
-rw-r--r-- | Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/util/SimpleScenarioSwitch.java | 309 |
1 files changed, 309 insertions, 0 deletions
diff --git a/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/util/SimpleScenarioSwitch.java b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/util/SimpleScenarioSwitch.java new file mode 100644 index 00000000..204ac66f --- /dev/null +++ b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/util/SimpleScenarioSwitch.java | |||
@@ -0,0 +1,309 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package simpleScenario.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 simpleScenario.*; | ||
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 simpleScenario.SimpleScenarioPackage | ||
23 | * @generated | ||
24 | */ | ||
25 | public class SimpleScenarioSwitch<T> extends Switch<T> { | ||
26 | /** | ||
27 | * The cached model package | ||
28 | * <!-- begin-user-doc --> | ||
29 | * <!-- end-user-doc --> | ||
30 | * @generated | ||
31 | */ | ||
32 | protected static SimpleScenarioPackage modelPackage; | ||
33 | |||
34 | /** | ||
35 | * Creates an instance of the switch. | ||
36 | * <!-- begin-user-doc --> | ||
37 | * <!-- end-user-doc --> | ||
38 | * @generated | ||
39 | */ | ||
40 | public SimpleScenarioSwitch() { | ||
41 | if (modelPackage == null) { | ||
42 | modelPackage = SimpleScenarioPackage.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 SimpleScenarioPackage.SIMPLE_SCENARIO: { | ||
70 | SimpleScenario simpleScenario = (SimpleScenario)theEObject; | ||
71 | T result = caseSimpleScenario(simpleScenario); | ||
72 | if (result == null) result = defaultCase(theEObject); | ||
73 | return result; | ||
74 | } | ||
75 | case SimpleScenarioPackage.LANE: { | ||
76 | Lane lane = (Lane)theEObject; | ||
77 | T result = caseLane(lane); | ||
78 | if (result == null) result = defaultCase(theEObject); | ||
79 | return result; | ||
80 | } | ||
81 | case SimpleScenarioPackage.ACTOR: { | ||
82 | Actor actor = (Actor)theEObject; | ||
83 | T result = caseActor(actor); | ||
84 | if (result == null) result = defaultCase(theEObject); | ||
85 | return result; | ||
86 | } | ||
87 | case SimpleScenarioPackage.RELATION: { | ||
88 | Relation relation = (Relation)theEObject; | ||
89 | T result = caseRelation(relation); | ||
90 | if (result == null) result = defaultCase(theEObject); | ||
91 | return result; | ||
92 | } | ||
93 | case SimpleScenarioPackage.SPATIAL_RELATION: { | ||
94 | SpatialRelation spatialRelation = (SpatialRelation)theEObject; | ||
95 | T result = caseSpatialRelation(spatialRelation); | ||
96 | if (result == null) result = caseRelation(spatialRelation); | ||
97 | if (result == null) result = defaultCase(theEObject); | ||
98 | return result; | ||
99 | } | ||
100 | case SimpleScenarioPackage.TEMPORAL_RELATION: { | ||
101 | TemporalRelation temporalRelation = (TemporalRelation)theEObject; | ||
102 | T result = caseTemporalRelation(temporalRelation); | ||
103 | if (result == null) result = caseRelation(temporalRelation); | ||
104 | if (result == null) result = defaultCase(theEObject); | ||
105 | return result; | ||
106 | } | ||
107 | case SimpleScenarioPackage.VISION_BLOCKED: { | ||
108 | VisionBlocked visionBlocked = (VisionBlocked)theEObject; | ||
109 | T result = caseVisionBlocked(visionBlocked); | ||
110 | if (result == null) result = caseSpatialRelation(visionBlocked); | ||
111 | if (result == null) result = caseRelation(visionBlocked); | ||
112 | if (result == null) result = defaultCase(theEObject); | ||
113 | return result; | ||
114 | } | ||
115 | case SimpleScenarioPackage.SEPERATION_DISTANCE: { | ||
116 | SeperationDistance seperationDistance = (SeperationDistance)theEObject; | ||
117 | T result = caseSeperationDistance(seperationDistance); | ||
118 | if (result == null) result = caseSpatialRelation(seperationDistance); | ||
119 | if (result == null) result = caseRelation(seperationDistance); | ||
120 | if (result == null) result = defaultCase(theEObject); | ||
121 | return result; | ||
122 | } | ||
123 | case SimpleScenarioPackage.COLLISION_EXISTS: { | ||
124 | CollisionExists collisionExists = (CollisionExists)theEObject; | ||
125 | T result = caseCollisionExists(collisionExists); | ||
126 | if (result == null) result = caseTemporalRelation(collisionExists); | ||
127 | if (result == null) result = caseRelation(collisionExists); | ||
128 | if (result == null) result = defaultCase(theEObject); | ||
129 | return result; | ||
130 | } | ||
131 | case SimpleScenarioPackage.COLLISION_DOES_NOT_EXIST: { | ||
132 | CollisionDoesNotExist collisionDoesNotExist = (CollisionDoesNotExist)theEObject; | ||
133 | T result = caseCollisionDoesNotExist(collisionDoesNotExist); | ||
134 | if (result == null) result = caseTemporalRelation(collisionDoesNotExist); | ||
135 | if (result == null) result = caseRelation(collisionDoesNotExist); | ||
136 | if (result == null) result = defaultCase(theEObject); | ||
137 | return result; | ||
138 | } | ||
139 | default: return defaultCase(theEObject); | ||
140 | } | ||
141 | } | ||
142 | |||
143 | /** | ||
144 | * Returns the result of interpreting the object as an instance of '<em>Simple Scenario</em>'. | ||
145 | * <!-- begin-user-doc --> | ||
146 | * This implementation returns null; | ||
147 | * returning a non-null result will terminate the switch. | ||
148 | * <!-- end-user-doc --> | ||
149 | * @param object the target of the switch. | ||
150 | * @return the result of interpreting the object as an instance of '<em>Simple Scenario</em>'. | ||
151 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
152 | * @generated | ||
153 | */ | ||
154 | public T caseSimpleScenario(SimpleScenario object) { | ||
155 | return null; | ||
156 | } | ||
157 | |||
158 | /** | ||
159 | * Returns the result of interpreting the object as an instance of '<em>Lane</em>'. | ||
160 | * <!-- begin-user-doc --> | ||
161 | * This implementation returns null; | ||
162 | * returning a non-null result will terminate the switch. | ||
163 | * <!-- end-user-doc --> | ||
164 | * @param object the target of the switch. | ||
165 | * @return the result of interpreting the object as an instance of '<em>Lane</em>'. | ||
166 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
167 | * @generated | ||
168 | */ | ||
169 | public T caseLane(Lane object) { | ||
170 | return null; | ||
171 | } | ||
172 | |||
173 | /** | ||
174 | * Returns the result of interpreting the object as an instance of '<em>Actor</em>'. | ||
175 | * <!-- begin-user-doc --> | ||
176 | * This implementation returns null; | ||
177 | * returning a non-null result will terminate the switch. | ||
178 | * <!-- end-user-doc --> | ||
179 | * @param object the target of the switch. | ||
180 | * @return the result of interpreting the object as an instance of '<em>Actor</em>'. | ||
181 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
182 | * @generated | ||
183 | */ | ||
184 | public T caseActor(Actor object) { | ||
185 | return null; | ||
186 | } | ||
187 | |||
188 | /** | ||
189 | * Returns the result of interpreting the object as an instance of '<em>Relation</em>'. | ||
190 | * <!-- begin-user-doc --> | ||
191 | * This implementation returns null; | ||
192 | * returning a non-null result will terminate the switch. | ||
193 | * <!-- end-user-doc --> | ||
194 | * @param object the target of the switch. | ||
195 | * @return the result of interpreting the object as an instance of '<em>Relation</em>'. | ||
196 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
197 | * @generated | ||
198 | */ | ||
199 | public T caseRelation(Relation object) { | ||
200 | return null; | ||
201 | } | ||
202 | |||
203 | /** | ||
204 | * Returns the result of interpreting the object as an instance of '<em>Spatial Relation</em>'. | ||
205 | * <!-- begin-user-doc --> | ||
206 | * This implementation returns null; | ||
207 | * returning a non-null result will terminate the switch. | ||
208 | * <!-- end-user-doc --> | ||
209 | * @param object the target of the switch. | ||
210 | * @return the result of interpreting the object as an instance of '<em>Spatial Relation</em>'. | ||
211 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
212 | * @generated | ||
213 | */ | ||
214 | public T caseSpatialRelation(SpatialRelation object) { | ||
215 | return null; | ||
216 | } | ||
217 | |||
218 | /** | ||
219 | * Returns the result of interpreting the object as an instance of '<em>Temporal Relation</em>'. | ||
220 | * <!-- begin-user-doc --> | ||
221 | * This implementation returns null; | ||
222 | * returning a non-null result will terminate the switch. | ||
223 | * <!-- end-user-doc --> | ||
224 | * @param object the target of the switch. | ||
225 | * @return the result of interpreting the object as an instance of '<em>Temporal Relation</em>'. | ||
226 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
227 | * @generated | ||
228 | */ | ||
229 | public T caseTemporalRelation(TemporalRelation object) { | ||
230 | return null; | ||
231 | } | ||
232 | |||
233 | /** | ||
234 | * Returns the result of interpreting the object as an instance of '<em>Vision Blocked</em>'. | ||
235 | * <!-- begin-user-doc --> | ||
236 | * This implementation returns null; | ||
237 | * returning a non-null result will terminate the switch. | ||
238 | * <!-- end-user-doc --> | ||
239 | * @param object the target of the switch. | ||
240 | * @return the result of interpreting the object as an instance of '<em>Vision Blocked</em>'. | ||
241 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
242 | * @generated | ||
243 | */ | ||
244 | public T caseVisionBlocked(VisionBlocked object) { | ||
245 | return null; | ||
246 | } | ||
247 | |||
248 | /** | ||
249 | * Returns the result of interpreting the object as an instance of '<em>Seperation Distance</em>'. | ||
250 | * <!-- begin-user-doc --> | ||
251 | * This implementation returns null; | ||
252 | * returning a non-null result will terminate the switch. | ||
253 | * <!-- end-user-doc --> | ||
254 | * @param object the target of the switch. | ||
255 | * @return the result of interpreting the object as an instance of '<em>Seperation Distance</em>'. | ||
256 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
257 | * @generated | ||
258 | */ | ||
259 | public T caseSeperationDistance(SeperationDistance object) { | ||
260 | return null; | ||
261 | } | ||
262 | |||
263 | /** | ||
264 | * Returns the result of interpreting the object as an instance of '<em>Collision Exists</em>'. | ||
265 | * <!-- begin-user-doc --> | ||
266 | * This implementation returns null; | ||
267 | * returning a non-null result will terminate the switch. | ||
268 | * <!-- end-user-doc --> | ||
269 | * @param object the target of the switch. | ||
270 | * @return the result of interpreting the object as an instance of '<em>Collision Exists</em>'. | ||
271 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
272 | * @generated | ||
273 | */ | ||
274 | public T caseCollisionExists(CollisionExists object) { | ||
275 | return null; | ||
276 | } | ||
277 | |||
278 | /** | ||
279 | * Returns the result of interpreting the object as an instance of '<em>Collision Does Not Exist</em>'. | ||
280 | * <!-- begin-user-doc --> | ||
281 | * This implementation returns null; | ||
282 | * returning a non-null result will terminate the switch. | ||
283 | * <!-- end-user-doc --> | ||
284 | * @param object the target of the switch. | ||
285 | * @return the result of interpreting the object as an instance of '<em>Collision Does Not Exist</em>'. | ||
286 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
287 | * @generated | ||
288 | */ | ||
289 | public T caseCollisionDoesNotExist(CollisionDoesNotExist object) { | ||
290 | return null; | ||
291 | } | ||
292 | |||
293 | /** | ||
294 | * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. | ||
295 | * <!-- begin-user-doc --> | ||
296 | * This implementation returns null; | ||
297 | * returning a non-null result will terminate the switch, but this is the last case anyway. | ||
298 | * <!-- end-user-doc --> | ||
299 | * @param object the target of the switch. | ||
300 | * @return the result of interpreting the object as an instance of '<em>EObject</em>'. | ||
301 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) | ||
302 | * @generated | ||
303 | */ | ||
304 | @Override | ||
305 | public T defaultCase(EObject object) { | ||
306 | return null; | ||
307 | } | ||
308 | |||
309 | } //SimpleScenarioSwitch | ||