diff options
Diffstat (limited to 'Domains/crossingScenario/ecore-gen/crossingScenario/impl/CrossingScenarioImpl.java')
-rw-r--r-- | Domains/crossingScenario/ecore-gen/crossingScenario/impl/CrossingScenarioImpl.java | 129 |
1 files changed, 20 insertions, 109 deletions
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/impl/CrossingScenarioImpl.java b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/CrossingScenarioImpl.java index 5dd65a39..b2b0d579 100644 --- a/Domains/crossingScenario/ecore-gen/crossingScenario/impl/CrossingScenarioImpl.java +++ b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/CrossingScenarioImpl.java | |||
@@ -6,9 +6,7 @@ import crossingScenario.Actor; | |||
6 | import crossingScenario.CrossingScenario; | 6 | import crossingScenario.CrossingScenario; |
7 | import crossingScenario.CrossingScenarioPackage; | 7 | import crossingScenario.CrossingScenarioPackage; |
8 | import crossingScenario.Lane; | 8 | import crossingScenario.Lane; |
9 | 9 | import crossingScenario.Relation; | |
10 | import crossingScenario.Lane_Horizontal; | ||
11 | import crossingScenario.Lane_Vertical; | ||
12 | import java.util.Collection; | 10 | import java.util.Collection; |
13 | 11 | ||
14 | import org.eclipse.emf.common.notify.Notification; | 12 | import org.eclipse.emf.common.notify.Notification; |
@@ -38,8 +36,7 @@ import org.eclipse.emf.ecore.util.InternalEList; | |||
38 | * <li>{@link crossingScenario.impl.CrossingScenarioImpl#getActors <em>Actors</em>}</li> | 36 | * <li>{@link crossingScenario.impl.CrossingScenarioImpl#getActors <em>Actors</em>}</li> |
39 | * <li>{@link crossingScenario.impl.CrossingScenarioImpl#getLanes <em>Lanes</em>}</li> | 37 | * <li>{@link crossingScenario.impl.CrossingScenarioImpl#getLanes <em>Lanes</em>}</li> |
40 | * <li>{@link crossingScenario.impl.CrossingScenarioImpl#getMaxTime <em>Max Time</em>}</li> | 38 | * <li>{@link crossingScenario.impl.CrossingScenarioImpl#getMaxTime <em>Max Time</em>}</li> |
41 | * <li>{@link crossingScenario.impl.CrossingScenarioImpl#getHorizontal_head <em>Horizontal head</em>}</li> | 39 | * <li>{@link crossingScenario.impl.CrossingScenarioImpl#getRelations <em>Relations</em>}</li> |
42 | * <li>{@link crossingScenario.impl.CrossingScenarioImpl#getVertical_head <em>Vertical head</em>}</li> | ||
43 | * </ul> | 40 | * </ul> |
44 | * | 41 | * |
45 | * @generated | 42 | * @generated |
@@ -126,24 +123,14 @@ public class CrossingScenarioImpl extends MinimalEObjectImpl.Container implement | |||
126 | protected double maxTime = MAX_TIME_EDEFAULT; | 123 | protected double maxTime = MAX_TIME_EDEFAULT; |
127 | 124 | ||
128 | /** | 125 | /** |
129 | * The cached value of the '{@link #getHorizontal_head() <em>Horizontal head</em>}' reference. | 126 | * The cached value of the '{@link #getRelations() <em>Relations</em>}' containment reference list. |
130 | * <!-- begin-user-doc --> | 127 | * <!-- begin-user-doc --> |
131 | * <!-- end-user-doc --> | 128 | * <!-- end-user-doc --> |
132 | * @see #getHorizontal_head() | 129 | * @see #getRelations() |
133 | * @generated | 130 | * @generated |
134 | * @ordered | 131 | * @ordered |
135 | */ | 132 | */ |
136 | protected Lane_Horizontal horizontal_head; | 133 | protected EList<Relation> relations; |
137 | |||
138 | /** | ||
139 | * The cached value of the '{@link #getVertical_head() <em>Vertical head</em>}' reference. | ||
140 | * <!-- begin-user-doc --> | ||
141 | * <!-- end-user-doc --> | ||
142 | * @see #getVertical_head() | ||
143 | * @generated | ||
144 | * @ordered | ||
145 | */ | ||
146 | protected Lane_Vertical vertical_head; | ||
147 | 134 | ||
148 | /** | 135 | /** |
149 | * <!-- begin-user-doc --> | 136 | * <!-- begin-user-doc --> |
@@ -265,78 +252,11 @@ public class CrossingScenarioImpl extends MinimalEObjectImpl.Container implement | |||
265 | * @generated | 252 | * @generated |
266 | */ | 253 | */ |
267 | @Override | 254 | @Override |
268 | public Lane_Horizontal getHorizontal_head() { | 255 | public EList<Relation> getRelations() { |
269 | if (horizontal_head != null && horizontal_head.eIsProxy()) { | 256 | if (relations == null) { |
270 | InternalEObject oldHorizontal_head = (InternalEObject)horizontal_head; | 257 | relations = new EObjectContainmentEList<Relation>(Relation.class, this, CrossingScenarioPackage.CROSSING_SCENARIO__RELATIONS); |
271 | horizontal_head = (Lane_Horizontal)eResolveProxy(oldHorizontal_head); | ||
272 | if (horizontal_head != oldHorizontal_head) { | ||
273 | if (eNotificationRequired()) | ||
274 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, CrossingScenarioPackage.CROSSING_SCENARIO__HORIZONTAL_HEAD, oldHorizontal_head, horizontal_head)); | ||
275 | } | ||
276 | } | 258 | } |
277 | return horizontal_head; | 259 | return relations; |
278 | } | ||
279 | |||
280 | /** | ||
281 | * <!-- begin-user-doc --> | ||
282 | * <!-- end-user-doc --> | ||
283 | * @generated | ||
284 | */ | ||
285 | public Lane_Horizontal basicGetHorizontal_head() { | ||
286 | return horizontal_head; | ||
287 | } | ||
288 | |||
289 | /** | ||
290 | * <!-- begin-user-doc --> | ||
291 | * <!-- end-user-doc --> | ||
292 | * @generated | ||
293 | */ | ||
294 | @Override | ||
295 | public void setHorizontal_head(Lane_Horizontal newHorizontal_head) { | ||
296 | Lane_Horizontal oldHorizontal_head = horizontal_head; | ||
297 | horizontal_head = newHorizontal_head; | ||
298 | if (eNotificationRequired()) | ||
299 | eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.CROSSING_SCENARIO__HORIZONTAL_HEAD, oldHorizontal_head, horizontal_head)); | ||
300 | } | ||
301 | |||
302 | /** | ||
303 | * <!-- begin-user-doc --> | ||
304 | * <!-- end-user-doc --> | ||
305 | * @generated | ||
306 | */ | ||
307 | @Override | ||
308 | public Lane_Vertical getVertical_head() { | ||
309 | if (vertical_head != null && vertical_head.eIsProxy()) { | ||
310 | InternalEObject oldVertical_head = (InternalEObject)vertical_head; | ||
311 | vertical_head = (Lane_Vertical)eResolveProxy(oldVertical_head); | ||
312 | if (vertical_head != oldVertical_head) { | ||
313 | if (eNotificationRequired()) | ||
314 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, CrossingScenarioPackage.CROSSING_SCENARIO__VERTICAL_HEAD, oldVertical_head, vertical_head)); | ||
315 | } | ||
316 | } | ||
317 | return vertical_head; | ||
318 | } | ||
319 | |||
320 | /** | ||
321 | * <!-- begin-user-doc --> | ||
322 | * <!-- end-user-doc --> | ||
323 | * @generated | ||
324 | */ | ||
325 | public Lane_Vertical basicGetVertical_head() { | ||
326 | return vertical_head; | ||
327 | } | ||
328 | |||
329 | /** | ||
330 | * <!-- begin-user-doc --> | ||
331 | * <!-- end-user-doc --> | ||
332 | * @generated | ||
333 | */ | ||
334 | @Override | ||
335 | public void setVertical_head(Lane_Vertical newVertical_head) { | ||
336 | Lane_Vertical oldVertical_head = vertical_head; | ||
337 | vertical_head = newVertical_head; | ||
338 | if (eNotificationRequired()) | ||
339 | eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.CROSSING_SCENARIO__VERTICAL_HEAD, oldVertical_head, vertical_head)); | ||
340 | } | 260 | } |
341 | 261 | ||
342 | /** | 262 | /** |
@@ -351,6 +271,8 @@ public class CrossingScenarioImpl extends MinimalEObjectImpl.Container implement | |||
351 | return ((InternalEList<?>)getActors()).basicRemove(otherEnd, msgs); | 271 | return ((InternalEList<?>)getActors()).basicRemove(otherEnd, msgs); |
352 | case CrossingScenarioPackage.CROSSING_SCENARIO__LANES: | 272 | case CrossingScenarioPackage.CROSSING_SCENARIO__LANES: |
353 | return ((InternalEList<?>)getLanes()).basicRemove(otherEnd, msgs); | 273 | return ((InternalEList<?>)getLanes()).basicRemove(otherEnd, msgs); |
274 | case CrossingScenarioPackage.CROSSING_SCENARIO__RELATIONS: | ||
275 | return ((InternalEList<?>)getRelations()).basicRemove(otherEnd, msgs); | ||
354 | } | 276 | } |
355 | return super.eInverseRemove(otherEnd, featureID, msgs); | 277 | return super.eInverseRemove(otherEnd, featureID, msgs); |
356 | } | 278 | } |
@@ -373,12 +295,8 @@ public class CrossingScenarioImpl extends MinimalEObjectImpl.Container implement | |||
373 | return getLanes(); | 295 | return getLanes(); |
374 | case CrossingScenarioPackage.CROSSING_SCENARIO__MAX_TIME: | 296 | case CrossingScenarioPackage.CROSSING_SCENARIO__MAX_TIME: |
375 | return getMaxTime(); | 297 | return getMaxTime(); |
376 | case CrossingScenarioPackage.CROSSING_SCENARIO__HORIZONTAL_HEAD: | 298 | case CrossingScenarioPackage.CROSSING_SCENARIO__RELATIONS: |
377 | if (resolve) return getHorizontal_head(); | 299 | return getRelations(); |
378 | return basicGetHorizontal_head(); | ||
379 | case CrossingScenarioPackage.CROSSING_SCENARIO__VERTICAL_HEAD: | ||
380 | if (resolve) return getVertical_head(); | ||
381 | return basicGetVertical_head(); | ||
382 | } | 300 | } |
383 | return super.eGet(featureID, resolve, coreType); | 301 | return super.eGet(featureID, resolve, coreType); |
384 | } | 302 | } |
@@ -409,11 +327,9 @@ public class CrossingScenarioImpl extends MinimalEObjectImpl.Container implement | |||
409 | case CrossingScenarioPackage.CROSSING_SCENARIO__MAX_TIME: | 327 | case CrossingScenarioPackage.CROSSING_SCENARIO__MAX_TIME: |
410 | setMaxTime((Double)newValue); | 328 | setMaxTime((Double)newValue); |
411 | return; | 329 | return; |
412 | case CrossingScenarioPackage.CROSSING_SCENARIO__HORIZONTAL_HEAD: | 330 | case CrossingScenarioPackage.CROSSING_SCENARIO__RELATIONS: |
413 | setHorizontal_head((Lane_Horizontal)newValue); | 331 | getRelations().clear(); |
414 | return; | 332 | getRelations().addAll((Collection<? extends Relation>)newValue); |
415 | case CrossingScenarioPackage.CROSSING_SCENARIO__VERTICAL_HEAD: | ||
416 | setVertical_head((Lane_Vertical)newValue); | ||
417 | return; | 333 | return; |
418 | } | 334 | } |
419 | super.eSet(featureID, newValue); | 335 | super.eSet(featureID, newValue); |
@@ -442,11 +358,8 @@ public class CrossingScenarioImpl extends MinimalEObjectImpl.Container implement | |||
442 | case CrossingScenarioPackage.CROSSING_SCENARIO__MAX_TIME: | 358 | case CrossingScenarioPackage.CROSSING_SCENARIO__MAX_TIME: |
443 | setMaxTime(MAX_TIME_EDEFAULT); | 359 | setMaxTime(MAX_TIME_EDEFAULT); |
444 | return; | 360 | return; |
445 | case CrossingScenarioPackage.CROSSING_SCENARIO__HORIZONTAL_HEAD: | 361 | case CrossingScenarioPackage.CROSSING_SCENARIO__RELATIONS: |
446 | setHorizontal_head((Lane_Horizontal)null); | 362 | getRelations().clear(); |
447 | return; | ||
448 | case CrossingScenarioPackage.CROSSING_SCENARIO__VERTICAL_HEAD: | ||
449 | setVertical_head((Lane_Vertical)null); | ||
450 | return; | 363 | return; |
451 | } | 364 | } |
452 | super.eUnset(featureID); | 365 | super.eUnset(featureID); |
@@ -470,10 +383,8 @@ public class CrossingScenarioImpl extends MinimalEObjectImpl.Container implement | |||
470 | return lanes != null && !lanes.isEmpty(); | 383 | return lanes != null && !lanes.isEmpty(); |
471 | case CrossingScenarioPackage.CROSSING_SCENARIO__MAX_TIME: | 384 | case CrossingScenarioPackage.CROSSING_SCENARIO__MAX_TIME: |
472 | return maxTime != MAX_TIME_EDEFAULT; | 385 | return maxTime != MAX_TIME_EDEFAULT; |
473 | case CrossingScenarioPackage.CROSSING_SCENARIO__HORIZONTAL_HEAD: | 386 | case CrossingScenarioPackage.CROSSING_SCENARIO__RELATIONS: |
474 | return horizontal_head != null; | 387 | return relations != null && !relations.isEmpty(); |
475 | case CrossingScenarioPackage.CROSSING_SCENARIO__VERTICAL_HEAD: | ||
476 | return vertical_head != null; | ||
477 | } | 388 | } |
478 | return super.eIsSet(featureID); | 389 | return super.eIsSet(featureID); |
479 | } | 390 | } |