diff options
author | 2021-01-12 13:30:52 -0500 | |
---|---|---|
committer | 2021-01-12 13:30:52 -0500 | |
commit | a5c911874a2c15aaca81c747c6f267e3a6776d04 (patch) | |
tree | 0a0e72f2030f14b0485754d4c4fc49cd38476428 /Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/impl/LaneImpl.java | |
parent | first version of the simpleScenario MM+VQL. noRealMatches bug found (diff) | |
download | VIATRA-Generator-a5c911874a2c15aaca81c747c6f267e3a6776d04.tar.gz VIATRA-Generator-a5c911874a2c15aaca81c747c6f267e3a6776d04.tar.zst VIATRA-Generator-a5c911874a2c15aaca81c747c6f267e3a6776d04.zip |
rename simpleScenario folder
Diffstat (limited to 'Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/impl/LaneImpl.java')
-rw-r--r-- | Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/impl/LaneImpl.java | 446 |
1 files changed, 0 insertions, 446 deletions
diff --git a/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/impl/LaneImpl.java b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/impl/LaneImpl.java deleted file mode 100644 index f0b4b811..00000000 --- a/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/impl/LaneImpl.java +++ /dev/null | |||
@@ -1,446 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package simpleScenario.impl; | ||
4 | |||
5 | import java.util.Collection; | ||
6 | |||
7 | import org.eclipse.emf.common.notify.Notification; | ||
8 | import org.eclipse.emf.common.notify.NotificationChain; | ||
9 | |||
10 | import org.eclipse.emf.common.util.EList; | ||
11 | |||
12 | import org.eclipse.emf.ecore.EClass; | ||
13 | import org.eclipse.emf.ecore.InternalEObject; | ||
14 | |||
15 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
16 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
17 | |||
18 | import org.eclipse.emf.ecore.util.EObjectResolvingEList; | ||
19 | import org.eclipse.emf.ecore.util.EObjectWithInverseResolvingEList; | ||
20 | import org.eclipse.emf.ecore.util.InternalEList; | ||
21 | |||
22 | import simpleScenario.Actor; | ||
23 | import simpleScenario.Lane; | ||
24 | import simpleScenario.Orientation; | ||
25 | import simpleScenario.SimpleScenarioPackage; | ||
26 | import simpleScenario.Size; | ||
27 | |||
28 | /** | ||
29 | * <!-- begin-user-doc --> | ||
30 | * An implementation of the model object '<em><b>Lane</b></em>'. | ||
31 | * <!-- end-user-doc --> | ||
32 | * <p> | ||
33 | * The following features are implemented: | ||
34 | * </p> | ||
35 | * <ul> | ||
36 | * <li>{@link simpleScenario.impl.LaneImpl#getOrientation <em>Orientation</em>}</li> | ||
37 | * <li>{@link simpleScenario.impl.LaneImpl#getWidth <em>Width</em>}</li> | ||
38 | * <li>{@link simpleScenario.impl.LaneImpl#getReferenceCoord <em>Reference Coord</em>}</li> | ||
39 | * <li>{@link simpleScenario.impl.LaneImpl#getAdjacent <em>Adjacent</em>}</li> | ||
40 | * <li>{@link simpleScenario.impl.LaneImpl#getActors <em>Actors</em>}</li> | ||
41 | * <li>{@link simpleScenario.impl.LaneImpl#getWidthNum <em>Width Num</em>}</li> | ||
42 | * </ul> | ||
43 | * | ||
44 | * @generated | ||
45 | */ | ||
46 | public class LaneImpl extends MinimalEObjectImpl.Container implements Lane { | ||
47 | /** | ||
48 | * The default value of the '{@link #getOrientation() <em>Orientation</em>}' attribute. | ||
49 | * <!-- begin-user-doc --> | ||
50 | * <!-- end-user-doc --> | ||
51 | * @see #getOrientation() | ||
52 | * @generated | ||
53 | * @ordered | ||
54 | */ | ||
55 | protected static final Orientation ORIENTATION_EDEFAULT = Orientation.VERTICAL; | ||
56 | |||
57 | /** | ||
58 | * The cached value of the '{@link #getOrientation() <em>Orientation</em>}' attribute. | ||
59 | * <!-- begin-user-doc --> | ||
60 | * <!-- end-user-doc --> | ||
61 | * @see #getOrientation() | ||
62 | * @generated | ||
63 | * @ordered | ||
64 | */ | ||
65 | protected Orientation orientation = ORIENTATION_EDEFAULT; | ||
66 | |||
67 | /** | ||
68 | * The default value of the '{@link #getWidth() <em>Width</em>}' attribute. | ||
69 | * <!-- begin-user-doc --> | ||
70 | * <!-- end-user-doc --> | ||
71 | * @see #getWidth() | ||
72 | * @generated | ||
73 | * @ordered | ||
74 | */ | ||
75 | protected static final Size WIDTH_EDEFAULT = Size.SMALL; | ||
76 | |||
77 | /** | ||
78 | * The cached value of the '{@link #getWidth() <em>Width</em>}' attribute. | ||
79 | * <!-- begin-user-doc --> | ||
80 | * <!-- end-user-doc --> | ||
81 | * @see #getWidth() | ||
82 | * @generated | ||
83 | * @ordered | ||
84 | */ | ||
85 | protected Size width = WIDTH_EDEFAULT; | ||
86 | |||
87 | /** | ||
88 | * The default value of the '{@link #getReferenceCoord() <em>Reference Coord</em>}' attribute. | ||
89 | * <!-- begin-user-doc --> | ||
90 | * <!-- end-user-doc --> | ||
91 | * @see #getReferenceCoord() | ||
92 | * @generated | ||
93 | * @ordered | ||
94 | */ | ||
95 | protected static final double REFERENCE_COORD_EDEFAULT = 0.0; | ||
96 | |||
97 | /** | ||
98 | * The cached value of the '{@link #getReferenceCoord() <em>Reference Coord</em>}' attribute. | ||
99 | * <!-- begin-user-doc --> | ||
100 | * <!-- end-user-doc --> | ||
101 | * @see #getReferenceCoord() | ||
102 | * @generated | ||
103 | * @ordered | ||
104 | */ | ||
105 | protected double referenceCoord = REFERENCE_COORD_EDEFAULT; | ||
106 | |||
107 | /** | ||
108 | * The cached value of the '{@link #getAdjacent() <em>Adjacent</em>}' reference list. | ||
109 | * <!-- begin-user-doc --> | ||
110 | * <!-- end-user-doc --> | ||
111 | * @see #getAdjacent() | ||
112 | * @generated | ||
113 | * @ordered | ||
114 | */ | ||
115 | protected EList<Lane> adjacent; | ||
116 | |||
117 | /** | ||
118 | * The cached value of the '{@link #getActors() <em>Actors</em>}' reference list. | ||
119 | * <!-- begin-user-doc --> | ||
120 | * <!-- end-user-doc --> | ||
121 | * @see #getActors() | ||
122 | * @generated | ||
123 | * @ordered | ||
124 | */ | ||
125 | protected EList<Actor> actors; | ||
126 | |||
127 | /** | ||
128 | * The default value of the '{@link #getWidthNum() <em>Width Num</em>}' attribute. | ||
129 | * <!-- begin-user-doc --> | ||
130 | * <!-- end-user-doc --> | ||
131 | * @see #getWidthNum() | ||
132 | * @generated | ||
133 | * @ordered | ||
134 | */ | ||
135 | protected static final double WIDTH_NUM_EDEFAULT = 0.0; | ||
136 | |||
137 | /** | ||
138 | * The cached value of the '{@link #getWidthNum() <em>Width Num</em>}' attribute. | ||
139 | * <!-- begin-user-doc --> | ||
140 | * <!-- end-user-doc --> | ||
141 | * @see #getWidthNum() | ||
142 | * @generated | ||
143 | * @ordered | ||
144 | */ | ||
145 | protected double widthNum = WIDTH_NUM_EDEFAULT; | ||
146 | |||
147 | /** | ||
148 | * <!-- begin-user-doc --> | ||
149 | * <!-- end-user-doc --> | ||
150 | * @generated | ||
151 | */ | ||
152 | protected LaneImpl() { | ||
153 | super(); | ||
154 | } | ||
155 | |||
156 | /** | ||
157 | * <!-- begin-user-doc --> | ||
158 | * <!-- end-user-doc --> | ||
159 | * @generated | ||
160 | */ | ||
161 | @Override | ||
162 | protected EClass eStaticClass() { | ||
163 | return SimpleScenarioPackage.Literals.LANE; | ||
164 | } | ||
165 | |||
166 | /** | ||
167 | * <!-- begin-user-doc --> | ||
168 | * <!-- end-user-doc --> | ||
169 | * @generated | ||
170 | */ | ||
171 | @Override | ||
172 | public Orientation getOrientation() { | ||
173 | return orientation; | ||
174 | } | ||
175 | |||
176 | /** | ||
177 | * <!-- begin-user-doc --> | ||
178 | * <!-- end-user-doc --> | ||
179 | * @generated | ||
180 | */ | ||
181 | @Override | ||
182 | public void setOrientation(Orientation newOrientation) { | ||
183 | Orientation oldOrientation = orientation; | ||
184 | orientation = newOrientation == null ? ORIENTATION_EDEFAULT : newOrientation; | ||
185 | if (eNotificationRequired()) | ||
186 | eNotify(new ENotificationImpl(this, Notification.SET, SimpleScenarioPackage.LANE__ORIENTATION, oldOrientation, orientation)); | ||
187 | } | ||
188 | |||
189 | /** | ||
190 | * <!-- begin-user-doc --> | ||
191 | * <!-- end-user-doc --> | ||
192 | * @generated | ||
193 | */ | ||
194 | @Override | ||
195 | public Size getWidth() { | ||
196 | return width; | ||
197 | } | ||
198 | |||
199 | /** | ||
200 | * <!-- begin-user-doc --> | ||
201 | * <!-- end-user-doc --> | ||
202 | * @generated | ||
203 | */ | ||
204 | @Override | ||
205 | public void setWidth(Size newWidth) { | ||
206 | Size oldWidth = width; | ||
207 | width = newWidth == null ? WIDTH_EDEFAULT : newWidth; | ||
208 | if (eNotificationRequired()) | ||
209 | eNotify(new ENotificationImpl(this, Notification.SET, SimpleScenarioPackage.LANE__WIDTH, oldWidth, width)); | ||
210 | } | ||
211 | |||
212 | /** | ||
213 | * <!-- begin-user-doc --> | ||
214 | * <!-- end-user-doc --> | ||
215 | * @generated | ||
216 | */ | ||
217 | @Override | ||
218 | public double getReferenceCoord() { | ||
219 | return referenceCoord; | ||
220 | } | ||
221 | |||
222 | /** | ||
223 | * <!-- begin-user-doc --> | ||
224 | * <!-- end-user-doc --> | ||
225 | * @generated | ||
226 | */ | ||
227 | @Override | ||
228 | public void setReferenceCoord(double newReferenceCoord) { | ||
229 | double oldReferenceCoord = referenceCoord; | ||
230 | referenceCoord = newReferenceCoord; | ||
231 | if (eNotificationRequired()) | ||
232 | eNotify(new ENotificationImpl(this, Notification.SET, SimpleScenarioPackage.LANE__REFERENCE_COORD, oldReferenceCoord, referenceCoord)); | ||
233 | } | ||
234 | |||
235 | /** | ||
236 | * <!-- begin-user-doc --> | ||
237 | * <!-- end-user-doc --> | ||
238 | * @generated | ||
239 | */ | ||
240 | @Override | ||
241 | public EList<Lane> getAdjacent() { | ||
242 | if (adjacent == null) { | ||
243 | adjacent = new EObjectResolvingEList<Lane>(Lane.class, this, SimpleScenarioPackage.LANE__ADJACENT); | ||
244 | } | ||
245 | return adjacent; | ||
246 | } | ||
247 | |||
248 | /** | ||
249 | * <!-- begin-user-doc --> | ||
250 | * <!-- end-user-doc --> | ||
251 | * @generated | ||
252 | */ | ||
253 | @Override | ||
254 | public EList<Actor> getActors() { | ||
255 | if (actors == null) { | ||
256 | actors = new EObjectWithInverseResolvingEList<Actor>(Actor.class, this, SimpleScenarioPackage.LANE__ACTORS, SimpleScenarioPackage.ACTOR__PLACED_ON); | ||
257 | } | ||
258 | return actors; | ||
259 | } | ||
260 | |||
261 | /** | ||
262 | * <!-- begin-user-doc --> | ||
263 | * <!-- end-user-doc --> | ||
264 | * @generated | ||
265 | */ | ||
266 | @Override | ||
267 | public double getWidthNum() { | ||
268 | return widthNum; | ||
269 | } | ||
270 | |||
271 | /** | ||
272 | * <!-- begin-user-doc --> | ||
273 | * <!-- end-user-doc --> | ||
274 | * @generated | ||
275 | */ | ||
276 | @Override | ||
277 | public void setWidthNum(double newWidthNum) { | ||
278 | double oldWidthNum = widthNum; | ||
279 | widthNum = newWidthNum; | ||
280 | if (eNotificationRequired()) | ||
281 | eNotify(new ENotificationImpl(this, Notification.SET, SimpleScenarioPackage.LANE__WIDTH_NUM, oldWidthNum, widthNum)); | ||
282 | } | ||
283 | |||
284 | /** | ||
285 | * <!-- begin-user-doc --> | ||
286 | * <!-- end-user-doc --> | ||
287 | * @generated | ||
288 | */ | ||
289 | @SuppressWarnings("unchecked") | ||
290 | @Override | ||
291 | public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
292 | switch (featureID) { | ||
293 | case SimpleScenarioPackage.LANE__ACTORS: | ||
294 | return ((InternalEList<InternalEObject>)(InternalEList<?>)getActors()).basicAdd(otherEnd, msgs); | ||
295 | } | ||
296 | return super.eInverseAdd(otherEnd, featureID, msgs); | ||
297 | } | ||
298 | |||
299 | /** | ||
300 | * <!-- begin-user-doc --> | ||
301 | * <!-- end-user-doc --> | ||
302 | * @generated | ||
303 | */ | ||
304 | @Override | ||
305 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
306 | switch (featureID) { | ||
307 | case SimpleScenarioPackage.LANE__ACTORS: | ||
308 | return ((InternalEList<?>)getActors()).basicRemove(otherEnd, msgs); | ||
309 | } | ||
310 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
311 | } | ||
312 | |||
313 | /** | ||
314 | * <!-- begin-user-doc --> | ||
315 | * <!-- end-user-doc --> | ||
316 | * @generated | ||
317 | */ | ||
318 | @Override | ||
319 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
320 | switch (featureID) { | ||
321 | case SimpleScenarioPackage.LANE__ORIENTATION: | ||
322 | return getOrientation(); | ||
323 | case SimpleScenarioPackage.LANE__WIDTH: | ||
324 | return getWidth(); | ||
325 | case SimpleScenarioPackage.LANE__REFERENCE_COORD: | ||
326 | return getReferenceCoord(); | ||
327 | case SimpleScenarioPackage.LANE__ADJACENT: | ||
328 | return getAdjacent(); | ||
329 | case SimpleScenarioPackage.LANE__ACTORS: | ||
330 | return getActors(); | ||
331 | case SimpleScenarioPackage.LANE__WIDTH_NUM: | ||
332 | return getWidthNum(); | ||
333 | } | ||
334 | return super.eGet(featureID, resolve, coreType); | ||
335 | } | ||
336 | |||
337 | /** | ||
338 | * <!-- begin-user-doc --> | ||
339 | * <!-- end-user-doc --> | ||
340 | * @generated | ||
341 | */ | ||
342 | @SuppressWarnings("unchecked") | ||
343 | @Override | ||
344 | public void eSet(int featureID, Object newValue) { | ||
345 | switch (featureID) { | ||
346 | case SimpleScenarioPackage.LANE__ORIENTATION: | ||
347 | setOrientation((Orientation)newValue); | ||
348 | return; | ||
349 | case SimpleScenarioPackage.LANE__WIDTH: | ||
350 | setWidth((Size)newValue); | ||
351 | return; | ||
352 | case SimpleScenarioPackage.LANE__REFERENCE_COORD: | ||
353 | setReferenceCoord((Double)newValue); | ||
354 | return; | ||
355 | case SimpleScenarioPackage.LANE__ADJACENT: | ||
356 | getAdjacent().clear(); | ||
357 | getAdjacent().addAll((Collection<? extends Lane>)newValue); | ||
358 | return; | ||
359 | case SimpleScenarioPackage.LANE__ACTORS: | ||
360 | getActors().clear(); | ||
361 | getActors().addAll((Collection<? extends Actor>)newValue); | ||
362 | return; | ||
363 | case SimpleScenarioPackage.LANE__WIDTH_NUM: | ||
364 | setWidthNum((Double)newValue); | ||
365 | return; | ||
366 | } | ||
367 | super.eSet(featureID, newValue); | ||
368 | } | ||
369 | |||
370 | /** | ||
371 | * <!-- begin-user-doc --> | ||
372 | * <!-- end-user-doc --> | ||
373 | * @generated | ||
374 | */ | ||
375 | @Override | ||
376 | public void eUnset(int featureID) { | ||
377 | switch (featureID) { | ||
378 | case SimpleScenarioPackage.LANE__ORIENTATION: | ||
379 | setOrientation(ORIENTATION_EDEFAULT); | ||
380 | return; | ||
381 | case SimpleScenarioPackage.LANE__WIDTH: | ||
382 | setWidth(WIDTH_EDEFAULT); | ||
383 | return; | ||
384 | case SimpleScenarioPackage.LANE__REFERENCE_COORD: | ||
385 | setReferenceCoord(REFERENCE_COORD_EDEFAULT); | ||
386 | return; | ||
387 | case SimpleScenarioPackage.LANE__ADJACENT: | ||
388 | getAdjacent().clear(); | ||
389 | return; | ||
390 | case SimpleScenarioPackage.LANE__ACTORS: | ||
391 | getActors().clear(); | ||
392 | return; | ||
393 | case SimpleScenarioPackage.LANE__WIDTH_NUM: | ||
394 | setWidthNum(WIDTH_NUM_EDEFAULT); | ||
395 | return; | ||
396 | } | ||
397 | super.eUnset(featureID); | ||
398 | } | ||
399 | |||
400 | /** | ||
401 | * <!-- begin-user-doc --> | ||
402 | * <!-- end-user-doc --> | ||
403 | * @generated | ||
404 | */ | ||
405 | @Override | ||
406 | public boolean eIsSet(int featureID) { | ||
407 | switch (featureID) { | ||
408 | case SimpleScenarioPackage.LANE__ORIENTATION: | ||
409 | return orientation != ORIENTATION_EDEFAULT; | ||
410 | case SimpleScenarioPackage.LANE__WIDTH: | ||
411 | return width != WIDTH_EDEFAULT; | ||
412 | case SimpleScenarioPackage.LANE__REFERENCE_COORD: | ||
413 | return referenceCoord != REFERENCE_COORD_EDEFAULT; | ||
414 | case SimpleScenarioPackage.LANE__ADJACENT: | ||
415 | return adjacent != null && !adjacent.isEmpty(); | ||
416 | case SimpleScenarioPackage.LANE__ACTORS: | ||
417 | return actors != null && !actors.isEmpty(); | ||
418 | case SimpleScenarioPackage.LANE__WIDTH_NUM: | ||
419 | return widthNum != WIDTH_NUM_EDEFAULT; | ||
420 | } | ||
421 | return super.eIsSet(featureID); | ||
422 | } | ||
423 | |||
424 | /** | ||
425 | * <!-- begin-user-doc --> | ||
426 | * <!-- end-user-doc --> | ||
427 | * @generated | ||
428 | */ | ||
429 | @Override | ||
430 | public String toString() { | ||
431 | if (eIsProxy()) return super.toString(); | ||
432 | |||
433 | StringBuilder result = new StringBuilder(super.toString()); | ||
434 | result.append(" (orientation: "); | ||
435 | result.append(orientation); | ||
436 | result.append(", width: "); | ||
437 | result.append(width); | ||
438 | result.append(", referenceCoord: "); | ||
439 | result.append(referenceCoord); | ||
440 | result.append(", widthNum: "); | ||
441 | result.append(widthNum); | ||
442 | result.append(')'); | ||
443 | return result.toString(); | ||
444 | } | ||
445 | |||
446 | } //LaneImpl | ||