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/ActorImpl.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/ActorImpl.java')
-rw-r--r-- | Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/impl/ActorImpl.java | 609 |
1 files changed, 0 insertions, 609 deletions
diff --git a/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/impl/ActorImpl.java b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/impl/ActorImpl.java deleted file mode 100644 index 10375e9b..00000000 --- a/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/impl/ActorImpl.java +++ /dev/null | |||
@@ -1,609 +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.EObjectContainmentEList; | ||
19 | import org.eclipse.emf.ecore.util.InternalEList; | ||
20 | |||
21 | import simpleScenario.Actor; | ||
22 | import simpleScenario.ActorType; | ||
23 | import simpleScenario.Lane; | ||
24 | import simpleScenario.Relation; | ||
25 | import simpleScenario.SimpleScenarioPackage; | ||
26 | |||
27 | /** | ||
28 | * <!-- begin-user-doc --> | ||
29 | * An implementation of the model object '<em><b>Actor</b></em>'. | ||
30 | * <!-- end-user-doc --> | ||
31 | * <p> | ||
32 | * The following features are implemented: | ||
33 | * </p> | ||
34 | * <ul> | ||
35 | * <li>{@link simpleScenario.impl.ActorImpl#getType <em>Type</em>}</li> | ||
36 | * <li>{@link simpleScenario.impl.ActorImpl#getXPos <em>XPos</em>}</li> | ||
37 | * <li>{@link simpleScenario.impl.ActorImpl#getYPos <em>YPos</em>}</li> | ||
38 | * <li>{@link simpleScenario.impl.ActorImpl#getLength <em>Length</em>}</li> | ||
39 | * <li>{@link simpleScenario.impl.ActorImpl#getWidth <em>Width</em>}</li> | ||
40 | * <li>{@link simpleScenario.impl.ActorImpl#getSpeed <em>Speed</em>}</li> | ||
41 | * <li>{@link simpleScenario.impl.ActorImpl#getRelations <em>Relations</em>}</li> | ||
42 | * <li>{@link simpleScenario.impl.ActorImpl#getPlacedOn <em>Placed On</em>}</li> | ||
43 | * </ul> | ||
44 | * | ||
45 | * @generated | ||
46 | */ | ||
47 | public class ActorImpl extends MinimalEObjectImpl.Container implements Actor { | ||
48 | /** | ||
49 | * The default value of the '{@link #getType() <em>Type</em>}' attribute. | ||
50 | * <!-- begin-user-doc --> | ||
51 | * <!-- end-user-doc --> | ||
52 | * @see #getType() | ||
53 | * @generated | ||
54 | * @ordered | ||
55 | */ | ||
56 | protected static final ActorType TYPE_EDEFAULT = ActorType.PEDESTRIAN; | ||
57 | |||
58 | /** | ||
59 | * The cached value of the '{@link #getType() <em>Type</em>}' attribute. | ||
60 | * <!-- begin-user-doc --> | ||
61 | * <!-- end-user-doc --> | ||
62 | * @see #getType() | ||
63 | * @generated | ||
64 | * @ordered | ||
65 | */ | ||
66 | protected ActorType type = TYPE_EDEFAULT; | ||
67 | |||
68 | /** | ||
69 | * The default value of the '{@link #getXPos() <em>XPos</em>}' attribute. | ||
70 | * <!-- begin-user-doc --> | ||
71 | * <!-- end-user-doc --> | ||
72 | * @see #getXPos() | ||
73 | * @generated | ||
74 | * @ordered | ||
75 | */ | ||
76 | protected static final double XPOS_EDEFAULT = 0.0; | ||
77 | |||
78 | /** | ||
79 | * The cached value of the '{@link #getXPos() <em>XPos</em>}' attribute. | ||
80 | * <!-- begin-user-doc --> | ||
81 | * <!-- end-user-doc --> | ||
82 | * @see #getXPos() | ||
83 | * @generated | ||
84 | * @ordered | ||
85 | */ | ||
86 | protected double xPos = XPOS_EDEFAULT; | ||
87 | |||
88 | /** | ||
89 | * The default value of the '{@link #getYPos() <em>YPos</em>}' attribute. | ||
90 | * <!-- begin-user-doc --> | ||
91 | * <!-- end-user-doc --> | ||
92 | * @see #getYPos() | ||
93 | * @generated | ||
94 | * @ordered | ||
95 | */ | ||
96 | protected static final double YPOS_EDEFAULT = 0.0; | ||
97 | |||
98 | /** | ||
99 | * The cached value of the '{@link #getYPos() <em>YPos</em>}' attribute. | ||
100 | * <!-- begin-user-doc --> | ||
101 | * <!-- end-user-doc --> | ||
102 | * @see #getYPos() | ||
103 | * @generated | ||
104 | * @ordered | ||
105 | */ | ||
106 | protected double yPos = YPOS_EDEFAULT; | ||
107 | |||
108 | /** | ||
109 | * The default value of the '{@link #getLength() <em>Length</em>}' attribute. | ||
110 | * <!-- begin-user-doc --> | ||
111 | * <!-- end-user-doc --> | ||
112 | * @see #getLength() | ||
113 | * @generated | ||
114 | * @ordered | ||
115 | */ | ||
116 | protected static final double LENGTH_EDEFAULT = 0.0; | ||
117 | |||
118 | /** | ||
119 | * The cached value of the '{@link #getLength() <em>Length</em>}' attribute. | ||
120 | * <!-- begin-user-doc --> | ||
121 | * <!-- end-user-doc --> | ||
122 | * @see #getLength() | ||
123 | * @generated | ||
124 | * @ordered | ||
125 | */ | ||
126 | protected double length = LENGTH_EDEFAULT; | ||
127 | |||
128 | /** | ||
129 | * The default value of the '{@link #getWidth() <em>Width</em>}' attribute. | ||
130 | * <!-- begin-user-doc --> | ||
131 | * <!-- end-user-doc --> | ||
132 | * @see #getWidth() | ||
133 | * @generated | ||
134 | * @ordered | ||
135 | */ | ||
136 | protected static final double WIDTH_EDEFAULT = 0.0; | ||
137 | |||
138 | /** | ||
139 | * The cached value of the '{@link #getWidth() <em>Width</em>}' attribute. | ||
140 | * <!-- begin-user-doc --> | ||
141 | * <!-- end-user-doc --> | ||
142 | * @see #getWidth() | ||
143 | * @generated | ||
144 | * @ordered | ||
145 | */ | ||
146 | protected double width = WIDTH_EDEFAULT; | ||
147 | |||
148 | /** | ||
149 | * The default value of the '{@link #getSpeed() <em>Speed</em>}' attribute. | ||
150 | * <!-- begin-user-doc --> | ||
151 | * <!-- end-user-doc --> | ||
152 | * @see #getSpeed() | ||
153 | * @generated | ||
154 | * @ordered | ||
155 | */ | ||
156 | protected static final double SPEED_EDEFAULT = 0.0; | ||
157 | |||
158 | /** | ||
159 | * The cached value of the '{@link #getSpeed() <em>Speed</em>}' attribute. | ||
160 | * <!-- begin-user-doc --> | ||
161 | * <!-- end-user-doc --> | ||
162 | * @see #getSpeed() | ||
163 | * @generated | ||
164 | * @ordered | ||
165 | */ | ||
166 | protected double speed = SPEED_EDEFAULT; | ||
167 | |||
168 | /** | ||
169 | * The cached value of the '{@link #getRelations() <em>Relations</em>}' containment reference list. | ||
170 | * <!-- begin-user-doc --> | ||
171 | * <!-- end-user-doc --> | ||
172 | * @see #getRelations() | ||
173 | * @generated | ||
174 | * @ordered | ||
175 | */ | ||
176 | protected EList<Relation> relations; | ||
177 | |||
178 | /** | ||
179 | * The cached value of the '{@link #getPlacedOn() <em>Placed On</em>}' reference. | ||
180 | * <!-- begin-user-doc --> | ||
181 | * <!-- end-user-doc --> | ||
182 | * @see #getPlacedOn() | ||
183 | * @generated | ||
184 | * @ordered | ||
185 | */ | ||
186 | protected Lane placedOn; | ||
187 | |||
188 | /** | ||
189 | * <!-- begin-user-doc --> | ||
190 | * <!-- end-user-doc --> | ||
191 | * @generated | ||
192 | */ | ||
193 | protected ActorImpl() { | ||
194 | super(); | ||
195 | } | ||
196 | |||
197 | /** | ||
198 | * <!-- begin-user-doc --> | ||
199 | * <!-- end-user-doc --> | ||
200 | * @generated | ||
201 | */ | ||
202 | @Override | ||
203 | protected EClass eStaticClass() { | ||
204 | return SimpleScenarioPackage.Literals.ACTOR; | ||
205 | } | ||
206 | |||
207 | /** | ||
208 | * <!-- begin-user-doc --> | ||
209 | * <!-- end-user-doc --> | ||
210 | * @generated | ||
211 | */ | ||
212 | @Override | ||
213 | public ActorType getType() { | ||
214 | return type; | ||
215 | } | ||
216 | |||
217 | /** | ||
218 | * <!-- begin-user-doc --> | ||
219 | * <!-- end-user-doc --> | ||
220 | * @generated | ||
221 | */ | ||
222 | @Override | ||
223 | public void setType(ActorType newType) { | ||
224 | ActorType oldType = type; | ||
225 | type = newType == null ? TYPE_EDEFAULT : newType; | ||
226 | if (eNotificationRequired()) | ||
227 | eNotify(new ENotificationImpl(this, Notification.SET, SimpleScenarioPackage.ACTOR__TYPE, oldType, type)); | ||
228 | } | ||
229 | |||
230 | /** | ||
231 | * <!-- begin-user-doc --> | ||
232 | * <!-- end-user-doc --> | ||
233 | * @generated | ||
234 | */ | ||
235 | @Override | ||
236 | public double getXPos() { | ||
237 | return xPos; | ||
238 | } | ||
239 | |||
240 | /** | ||
241 | * <!-- begin-user-doc --> | ||
242 | * <!-- end-user-doc --> | ||
243 | * @generated | ||
244 | */ | ||
245 | @Override | ||
246 | public void setXPos(double newXPos) { | ||
247 | double oldXPos = xPos; | ||
248 | xPos = newXPos; | ||
249 | if (eNotificationRequired()) | ||
250 | eNotify(new ENotificationImpl(this, Notification.SET, SimpleScenarioPackage.ACTOR__XPOS, oldXPos, xPos)); | ||
251 | } | ||
252 | |||
253 | /** | ||
254 | * <!-- begin-user-doc --> | ||
255 | * <!-- end-user-doc --> | ||
256 | * @generated | ||
257 | */ | ||
258 | @Override | ||
259 | public double getYPos() { | ||
260 | return yPos; | ||
261 | } | ||
262 | |||
263 | /** | ||
264 | * <!-- begin-user-doc --> | ||
265 | * <!-- end-user-doc --> | ||
266 | * @generated | ||
267 | */ | ||
268 | @Override | ||
269 | public void setYPos(double newYPos) { | ||
270 | double oldYPos = yPos; | ||
271 | yPos = newYPos; | ||
272 | if (eNotificationRequired()) | ||
273 | eNotify(new ENotificationImpl(this, Notification.SET, SimpleScenarioPackage.ACTOR__YPOS, oldYPos, yPos)); | ||
274 | } | ||
275 | |||
276 | /** | ||
277 | * <!-- begin-user-doc --> | ||
278 | * <!-- end-user-doc --> | ||
279 | * @generated | ||
280 | */ | ||
281 | @Override | ||
282 | public double getLength() { | ||
283 | return length; | ||
284 | } | ||
285 | |||
286 | /** | ||
287 | * <!-- begin-user-doc --> | ||
288 | * <!-- end-user-doc --> | ||
289 | * @generated | ||
290 | */ | ||
291 | @Override | ||
292 | public void setLength(double newLength) { | ||
293 | double oldLength = length; | ||
294 | length = newLength; | ||
295 | if (eNotificationRequired()) | ||
296 | eNotify(new ENotificationImpl(this, Notification.SET, SimpleScenarioPackage.ACTOR__LENGTH, oldLength, length)); | ||
297 | } | ||
298 | |||
299 | /** | ||
300 | * <!-- begin-user-doc --> | ||
301 | * <!-- end-user-doc --> | ||
302 | * @generated | ||
303 | */ | ||
304 | @Override | ||
305 | public double getWidth() { | ||
306 | return width; | ||
307 | } | ||
308 | |||
309 | /** | ||
310 | * <!-- begin-user-doc --> | ||
311 | * <!-- end-user-doc --> | ||
312 | * @generated | ||
313 | */ | ||
314 | @Override | ||
315 | public void setWidth(double newWidth) { | ||
316 | double oldWidth = width; | ||
317 | width = newWidth; | ||
318 | if (eNotificationRequired()) | ||
319 | eNotify(new ENotificationImpl(this, Notification.SET, SimpleScenarioPackage.ACTOR__WIDTH, oldWidth, width)); | ||
320 | } | ||
321 | |||
322 | /** | ||
323 | * <!-- begin-user-doc --> | ||
324 | * <!-- end-user-doc --> | ||
325 | * @generated | ||
326 | */ | ||
327 | @Override | ||
328 | public double getSpeed() { | ||
329 | return speed; | ||
330 | } | ||
331 | |||
332 | /** | ||
333 | * <!-- begin-user-doc --> | ||
334 | * <!-- end-user-doc --> | ||
335 | * @generated | ||
336 | */ | ||
337 | @Override | ||
338 | public void setSpeed(double newSpeed) { | ||
339 | double oldSpeed = speed; | ||
340 | speed = newSpeed; | ||
341 | if (eNotificationRequired()) | ||
342 | eNotify(new ENotificationImpl(this, Notification.SET, SimpleScenarioPackage.ACTOR__SPEED, oldSpeed, speed)); | ||
343 | } | ||
344 | |||
345 | /** | ||
346 | * <!-- begin-user-doc --> | ||
347 | * <!-- end-user-doc --> | ||
348 | * @generated | ||
349 | */ | ||
350 | @Override | ||
351 | public EList<Relation> getRelations() { | ||
352 | if (relations == null) { | ||
353 | relations = new EObjectContainmentEList<Relation>(Relation.class, this, SimpleScenarioPackage.ACTOR__RELATIONS); | ||
354 | } | ||
355 | return relations; | ||
356 | } | ||
357 | |||
358 | /** | ||
359 | * <!-- begin-user-doc --> | ||
360 | * <!-- end-user-doc --> | ||
361 | * @generated | ||
362 | */ | ||
363 | @Override | ||
364 | public Lane getPlacedOn() { | ||
365 | if (placedOn != null && placedOn.eIsProxy()) { | ||
366 | InternalEObject oldPlacedOn = (InternalEObject)placedOn; | ||
367 | placedOn = (Lane)eResolveProxy(oldPlacedOn); | ||
368 | if (placedOn != oldPlacedOn) { | ||
369 | if (eNotificationRequired()) | ||
370 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, SimpleScenarioPackage.ACTOR__PLACED_ON, oldPlacedOn, placedOn)); | ||
371 | } | ||
372 | } | ||
373 | return placedOn; | ||
374 | } | ||
375 | |||
376 | /** | ||
377 | * <!-- begin-user-doc --> | ||
378 | * <!-- end-user-doc --> | ||
379 | * @generated | ||
380 | */ | ||
381 | public Lane basicGetPlacedOn() { | ||
382 | return placedOn; | ||
383 | } | ||
384 | |||
385 | /** | ||
386 | * <!-- begin-user-doc --> | ||
387 | * <!-- end-user-doc --> | ||
388 | * @generated | ||
389 | */ | ||
390 | public NotificationChain basicSetPlacedOn(Lane newPlacedOn, NotificationChain msgs) { | ||
391 | Lane oldPlacedOn = placedOn; | ||
392 | placedOn = newPlacedOn; | ||
393 | if (eNotificationRequired()) { | ||
394 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SimpleScenarioPackage.ACTOR__PLACED_ON, oldPlacedOn, newPlacedOn); | ||
395 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
396 | } | ||
397 | return msgs; | ||
398 | } | ||
399 | |||
400 | /** | ||
401 | * <!-- begin-user-doc --> | ||
402 | * <!-- end-user-doc --> | ||
403 | * @generated | ||
404 | */ | ||
405 | @Override | ||
406 | public void setPlacedOn(Lane newPlacedOn) { | ||
407 | if (newPlacedOn != placedOn) { | ||
408 | NotificationChain msgs = null; | ||
409 | if (placedOn != null) | ||
410 | msgs = ((InternalEObject)placedOn).eInverseRemove(this, SimpleScenarioPackage.LANE__ACTORS, Lane.class, msgs); | ||
411 | if (newPlacedOn != null) | ||
412 | msgs = ((InternalEObject)newPlacedOn).eInverseAdd(this, SimpleScenarioPackage.LANE__ACTORS, Lane.class, msgs); | ||
413 | msgs = basicSetPlacedOn(newPlacedOn, msgs); | ||
414 | if (msgs != null) msgs.dispatch(); | ||
415 | } | ||
416 | else if (eNotificationRequired()) | ||
417 | eNotify(new ENotificationImpl(this, Notification.SET, SimpleScenarioPackage.ACTOR__PLACED_ON, newPlacedOn, newPlacedOn)); | ||
418 | } | ||
419 | |||
420 | /** | ||
421 | * <!-- begin-user-doc --> | ||
422 | * <!-- end-user-doc --> | ||
423 | * @generated | ||
424 | */ | ||
425 | @Override | ||
426 | public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
427 | switch (featureID) { | ||
428 | case SimpleScenarioPackage.ACTOR__PLACED_ON: | ||
429 | if (placedOn != null) | ||
430 | msgs = ((InternalEObject)placedOn).eInverseRemove(this, SimpleScenarioPackage.LANE__ACTORS, Lane.class, msgs); | ||
431 | return basicSetPlacedOn((Lane)otherEnd, msgs); | ||
432 | } | ||
433 | return super.eInverseAdd(otherEnd, featureID, msgs); | ||
434 | } | ||
435 | |||
436 | /** | ||
437 | * <!-- begin-user-doc --> | ||
438 | * <!-- end-user-doc --> | ||
439 | * @generated | ||
440 | */ | ||
441 | @Override | ||
442 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
443 | switch (featureID) { | ||
444 | case SimpleScenarioPackage.ACTOR__RELATIONS: | ||
445 | return ((InternalEList<?>)getRelations()).basicRemove(otherEnd, msgs); | ||
446 | case SimpleScenarioPackage.ACTOR__PLACED_ON: | ||
447 | return basicSetPlacedOn(null, msgs); | ||
448 | } | ||
449 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
450 | } | ||
451 | |||
452 | /** | ||
453 | * <!-- begin-user-doc --> | ||
454 | * <!-- end-user-doc --> | ||
455 | * @generated | ||
456 | */ | ||
457 | @Override | ||
458 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
459 | switch (featureID) { | ||
460 | case SimpleScenarioPackage.ACTOR__TYPE: | ||
461 | return getType(); | ||
462 | case SimpleScenarioPackage.ACTOR__XPOS: | ||
463 | return getXPos(); | ||
464 | case SimpleScenarioPackage.ACTOR__YPOS: | ||
465 | return getYPos(); | ||
466 | case SimpleScenarioPackage.ACTOR__LENGTH: | ||
467 | return getLength(); | ||
468 | case SimpleScenarioPackage.ACTOR__WIDTH: | ||
469 | return getWidth(); | ||
470 | case SimpleScenarioPackage.ACTOR__SPEED: | ||
471 | return getSpeed(); | ||
472 | case SimpleScenarioPackage.ACTOR__RELATIONS: | ||
473 | return getRelations(); | ||
474 | case SimpleScenarioPackage.ACTOR__PLACED_ON: | ||
475 | if (resolve) return getPlacedOn(); | ||
476 | return basicGetPlacedOn(); | ||
477 | } | ||
478 | return super.eGet(featureID, resolve, coreType); | ||
479 | } | ||
480 | |||
481 | /** | ||
482 | * <!-- begin-user-doc --> | ||
483 | * <!-- end-user-doc --> | ||
484 | * @generated | ||
485 | */ | ||
486 | @SuppressWarnings("unchecked") | ||
487 | @Override | ||
488 | public void eSet(int featureID, Object newValue) { | ||
489 | switch (featureID) { | ||
490 | case SimpleScenarioPackage.ACTOR__TYPE: | ||
491 | setType((ActorType)newValue); | ||
492 | return; | ||
493 | case SimpleScenarioPackage.ACTOR__XPOS: | ||
494 | setXPos((Double)newValue); | ||
495 | return; | ||
496 | case SimpleScenarioPackage.ACTOR__YPOS: | ||
497 | setYPos((Double)newValue); | ||
498 | return; | ||
499 | case SimpleScenarioPackage.ACTOR__LENGTH: | ||
500 | setLength((Double)newValue); | ||
501 | return; | ||
502 | case SimpleScenarioPackage.ACTOR__WIDTH: | ||
503 | setWidth((Double)newValue); | ||
504 | return; | ||
505 | case SimpleScenarioPackage.ACTOR__SPEED: | ||
506 | setSpeed((Double)newValue); | ||
507 | return; | ||
508 | case SimpleScenarioPackage.ACTOR__RELATIONS: | ||
509 | getRelations().clear(); | ||
510 | getRelations().addAll((Collection<? extends Relation>)newValue); | ||
511 | return; | ||
512 | case SimpleScenarioPackage.ACTOR__PLACED_ON: | ||
513 | setPlacedOn((Lane)newValue); | ||
514 | return; | ||
515 | } | ||
516 | super.eSet(featureID, newValue); | ||
517 | } | ||
518 | |||
519 | /** | ||
520 | * <!-- begin-user-doc --> | ||
521 | * <!-- end-user-doc --> | ||
522 | * @generated | ||
523 | */ | ||
524 | @Override | ||
525 | public void eUnset(int featureID) { | ||
526 | switch (featureID) { | ||
527 | case SimpleScenarioPackage.ACTOR__TYPE: | ||
528 | setType(TYPE_EDEFAULT); | ||
529 | return; | ||
530 | case SimpleScenarioPackage.ACTOR__XPOS: | ||
531 | setXPos(XPOS_EDEFAULT); | ||
532 | return; | ||
533 | case SimpleScenarioPackage.ACTOR__YPOS: | ||
534 | setYPos(YPOS_EDEFAULT); | ||
535 | return; | ||
536 | case SimpleScenarioPackage.ACTOR__LENGTH: | ||
537 | setLength(LENGTH_EDEFAULT); | ||
538 | return; | ||
539 | case SimpleScenarioPackage.ACTOR__WIDTH: | ||
540 | setWidth(WIDTH_EDEFAULT); | ||
541 | return; | ||
542 | case SimpleScenarioPackage.ACTOR__SPEED: | ||
543 | setSpeed(SPEED_EDEFAULT); | ||
544 | return; | ||
545 | case SimpleScenarioPackage.ACTOR__RELATIONS: | ||
546 | getRelations().clear(); | ||
547 | return; | ||
548 | case SimpleScenarioPackage.ACTOR__PLACED_ON: | ||
549 | setPlacedOn((Lane)null); | ||
550 | return; | ||
551 | } | ||
552 | super.eUnset(featureID); | ||
553 | } | ||
554 | |||
555 | /** | ||
556 | * <!-- begin-user-doc --> | ||
557 | * <!-- end-user-doc --> | ||
558 | * @generated | ||
559 | */ | ||
560 | @Override | ||
561 | public boolean eIsSet(int featureID) { | ||
562 | switch (featureID) { | ||
563 | case SimpleScenarioPackage.ACTOR__TYPE: | ||
564 | return type != TYPE_EDEFAULT; | ||
565 | case SimpleScenarioPackage.ACTOR__XPOS: | ||
566 | return xPos != XPOS_EDEFAULT; | ||
567 | case SimpleScenarioPackage.ACTOR__YPOS: | ||
568 | return yPos != YPOS_EDEFAULT; | ||
569 | case SimpleScenarioPackage.ACTOR__LENGTH: | ||
570 | return length != LENGTH_EDEFAULT; | ||
571 | case SimpleScenarioPackage.ACTOR__WIDTH: | ||
572 | return width != WIDTH_EDEFAULT; | ||
573 | case SimpleScenarioPackage.ACTOR__SPEED: | ||
574 | return speed != SPEED_EDEFAULT; | ||
575 | case SimpleScenarioPackage.ACTOR__RELATIONS: | ||
576 | return relations != null && !relations.isEmpty(); | ||
577 | case SimpleScenarioPackage.ACTOR__PLACED_ON: | ||
578 | return placedOn != null; | ||
579 | } | ||
580 | return super.eIsSet(featureID); | ||
581 | } | ||
582 | |||
583 | /** | ||
584 | * <!-- begin-user-doc --> | ||
585 | * <!-- end-user-doc --> | ||
586 | * @generated | ||
587 | */ | ||
588 | @Override | ||
589 | public String toString() { | ||
590 | if (eIsProxy()) return super.toString(); | ||
591 | |||
592 | StringBuilder result = new StringBuilder(super.toString()); | ||
593 | result.append(" (type: "); | ||
594 | result.append(type); | ||
595 | result.append(", xPos: "); | ||
596 | result.append(xPos); | ||
597 | result.append(", yPos: "); | ||
598 | result.append(yPos); | ||
599 | result.append(", length: "); | ||
600 | result.append(length); | ||
601 | result.append(", width: "); | ||
602 | result.append(width); | ||
603 | result.append(", speed: "); | ||
604 | result.append(speed); | ||
605 | result.append(')'); | ||
606 | return result.toString(); | ||
607 | } | ||
608 | |||
609 | } //ActorImpl | ||