aboutsummaryrefslogtreecommitdiffstats
path: root/Domains/crossingScenario/ecore-gen/crossingScenario/impl/LaneImpl.java
diff options
context:
space:
mode:
Diffstat (limited to 'Domains/crossingScenario/ecore-gen/crossingScenario/impl/LaneImpl.java')
-rw-r--r--Domains/crossingScenario/ecore-gen/crossingScenario/impl/LaneImpl.java61
1 files changed, 2 insertions, 59 deletions
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/impl/LaneImpl.java b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/LaneImpl.java
index 110f26c8..c0a25d6e 100644
--- a/Domains/crossingScenario/ecore-gen/crossingScenario/impl/LaneImpl.java
+++ b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/LaneImpl.java
@@ -5,7 +5,6 @@ package crossingScenario.impl;
5import crossingScenario.Actor; 5import crossingScenario.Actor;
6import crossingScenario.CrossingScenarioPackage; 6import crossingScenario.CrossingScenarioPackage;
7import crossingScenario.Lane; 7import crossingScenario.Lane;
8import crossingScenario.Orientation;
9import crossingScenario.Size; 8import crossingScenario.Size;
10 9
11import java.util.Collection; 10import java.util.Collection;
@@ -32,7 +31,6 @@ import org.eclipse.emf.ecore.util.InternalEList;
32 * The following features are implemented: 31 * The following features are implemented:
33 * </p> 32 * </p>
34 * <ul> 33 * <ul>
35 * <li>{@link crossingScenario.impl.LaneImpl#getOrientation <em>Orientation</em>}</li>
36 * <li>{@link crossingScenario.impl.LaneImpl#getWidth <em>Width</em>}</li> 34 * <li>{@link crossingScenario.impl.LaneImpl#getWidth <em>Width</em>}</li>
37 * <li>{@link crossingScenario.impl.LaneImpl#getReferenceCoord <em>Reference Coord</em>}</li> 35 * <li>{@link crossingScenario.impl.LaneImpl#getReferenceCoord <em>Reference Coord</em>}</li>
38 * <li>{@link crossingScenario.impl.LaneImpl#getPrevLane <em>Prev Lane</em>}</li> 36 * <li>{@link crossingScenario.impl.LaneImpl#getPrevLane <em>Prev Lane</em>}</li>
@@ -42,27 +40,7 @@ import org.eclipse.emf.ecore.util.InternalEList;
42 * 40 *
43 * @generated 41 * @generated
44 */ 42 */
45public class LaneImpl extends MinimalEObjectImpl.Container implements Lane { 43public abstract class LaneImpl extends MinimalEObjectImpl.Container implements Lane {
46 /**
47 * The default value of the '{@link #getOrientation() <em>Orientation</em>}' attribute.
48 * <!-- begin-user-doc -->
49 * <!-- end-user-doc -->
50 * @see #getOrientation()
51 * @generated
52 * @ordered
53 */
54 protected static final Orientation ORIENTATION_EDEFAULT = Orientation.VERTICAL;
55
56 /**
57 * The cached value of the '{@link #getOrientation() <em>Orientation</em>}' attribute.
58 * <!-- begin-user-doc -->
59 * <!-- end-user-doc -->
60 * @see #getOrientation()
61 * @generated
62 * @ordered
63 */
64 protected Orientation orientation = ORIENTATION_EDEFAULT;
65
66 /** 44 /**
67 * The default value of the '{@link #getWidth() <em>Width</em>}' attribute. 45 * The default value of the '{@link #getWidth() <em>Width</em>}' attribute.
68 * <!-- begin-user-doc --> 46 * <!-- begin-user-doc -->
@@ -168,29 +146,6 @@ public class LaneImpl extends MinimalEObjectImpl.Container implements Lane {
168 * @generated 146 * @generated
169 */ 147 */
170 @Override 148 @Override
171 public Orientation getOrientation() {
172 return orientation;
173 }
174
175 /**
176 * <!-- begin-user-doc -->
177 * <!-- end-user-doc -->
178 * @generated
179 */
180 @Override
181 public void setOrientation(Orientation newOrientation) {
182 Orientation oldOrientation = orientation;
183 orientation = newOrientation == null ? ORIENTATION_EDEFAULT : newOrientation;
184 if (eNotificationRequired())
185 eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.LANE__ORIENTATION, oldOrientation, orientation));
186 }
187
188 /**
189 * <!-- begin-user-doc -->
190 * <!-- end-user-doc -->
191 * @generated
192 */
193 @Override
194 public Size getWidth() { 149 public Size getWidth() {
195 return width; 150 return width;
196 } 151 }
@@ -344,8 +299,6 @@ public class LaneImpl extends MinimalEObjectImpl.Container implements Lane {
344 @Override 299 @Override
345 public Object eGet(int featureID, boolean resolve, boolean coreType) { 300 public Object eGet(int featureID, boolean resolve, boolean coreType) {
346 switch (featureID) { 301 switch (featureID) {
347 case CrossingScenarioPackage.LANE__ORIENTATION:
348 return getOrientation();
349 case CrossingScenarioPackage.LANE__WIDTH: 302 case CrossingScenarioPackage.LANE__WIDTH:
350 return getWidth(); 303 return getWidth();
351 case CrossingScenarioPackage.LANE__REFERENCE_COORD: 304 case CrossingScenarioPackage.LANE__REFERENCE_COORD:
@@ -370,9 +323,6 @@ public class LaneImpl extends MinimalEObjectImpl.Container implements Lane {
370 @Override 323 @Override
371 public void eSet(int featureID, Object newValue) { 324 public void eSet(int featureID, Object newValue) {
372 switch (featureID) { 325 switch (featureID) {
373 case CrossingScenarioPackage.LANE__ORIENTATION:
374 setOrientation((Orientation)newValue);
375 return;
376 case CrossingScenarioPackage.LANE__WIDTH: 326 case CrossingScenarioPackage.LANE__WIDTH:
377 setWidth((Size)newValue); 327 setWidth((Size)newValue);
378 return; 328 return;
@@ -401,9 +351,6 @@ public class LaneImpl extends MinimalEObjectImpl.Container implements Lane {
401 @Override 351 @Override
402 public void eUnset(int featureID) { 352 public void eUnset(int featureID) {
403 switch (featureID) { 353 switch (featureID) {
404 case CrossingScenarioPackage.LANE__ORIENTATION:
405 setOrientation(ORIENTATION_EDEFAULT);
406 return;
407 case CrossingScenarioPackage.LANE__WIDTH: 354 case CrossingScenarioPackage.LANE__WIDTH:
408 setWidth(WIDTH_EDEFAULT); 355 setWidth(WIDTH_EDEFAULT);
409 return; 356 return;
@@ -431,8 +378,6 @@ public class LaneImpl extends MinimalEObjectImpl.Container implements Lane {
431 @Override 378 @Override
432 public boolean eIsSet(int featureID) { 379 public boolean eIsSet(int featureID) {
433 switch (featureID) { 380 switch (featureID) {
434 case CrossingScenarioPackage.LANE__ORIENTATION:
435 return orientation != ORIENTATION_EDEFAULT;
436 case CrossingScenarioPackage.LANE__WIDTH: 381 case CrossingScenarioPackage.LANE__WIDTH:
437 return width != WIDTH_EDEFAULT; 382 return width != WIDTH_EDEFAULT;
438 case CrossingScenarioPackage.LANE__REFERENCE_COORD: 383 case CrossingScenarioPackage.LANE__REFERENCE_COORD:
@@ -457,9 +402,7 @@ public class LaneImpl extends MinimalEObjectImpl.Container implements Lane {
457 if (eIsProxy()) return super.toString(); 402 if (eIsProxy()) return super.toString();
458 403
459 StringBuilder result = new StringBuilder(super.toString()); 404 StringBuilder result = new StringBuilder(super.toString());
460 result.append(" (orientation: "); 405 result.append(" (width: ");
461 result.append(orientation);
462 result.append(", width: ");
463 result.append(width); 406 result.append(width);
464 result.append(", referenceCoord: "); 407 result.append(", referenceCoord: ");
465 result.append(referenceCoord); 408 result.append(referenceCoord);