diff options
Diffstat (limited to 'Domains/crossingScenario/ecore-gen/crossingScenario/impl/LaneImpl.java')
-rw-r--r-- | Domains/crossingScenario/ecore-gen/crossingScenario/impl/LaneImpl.java | 178 |
1 files changed, 1 insertions, 177 deletions
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/impl/LaneImpl.java b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/LaneImpl.java index c0a25d6e..be316759 100644 --- a/Domains/crossingScenario/ecore-gen/crossingScenario/impl/LaneImpl.java +++ b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/LaneImpl.java | |||
@@ -5,8 +5,6 @@ package crossingScenario.impl; | |||
5 | import crossingScenario.Actor; | 5 | import crossingScenario.Actor; |
6 | import crossingScenario.CrossingScenarioPackage; | 6 | import crossingScenario.CrossingScenarioPackage; |
7 | import crossingScenario.Lane; | 7 | import crossingScenario.Lane; |
8 | import crossingScenario.Size; | ||
9 | |||
10 | import java.util.Collection; | 8 | import java.util.Collection; |
11 | 9 | ||
12 | import org.eclipse.emf.common.notify.Notification; | 10 | import org.eclipse.emf.common.notify.Notification; |
@@ -31,37 +29,14 @@ import org.eclipse.emf.ecore.util.InternalEList; | |||
31 | * The following features are implemented: | 29 | * The following features are implemented: |
32 | * </p> | 30 | * </p> |
33 | * <ul> | 31 | * <ul> |
34 | * <li>{@link crossingScenario.impl.LaneImpl#getWidth <em>Width</em>}</li> | ||
35 | * <li>{@link crossingScenario.impl.LaneImpl#getReferenceCoord <em>Reference Coord</em>}</li> | 32 | * <li>{@link crossingScenario.impl.LaneImpl#getReferenceCoord <em>Reference Coord</em>}</li> |
36 | * <li>{@link crossingScenario.impl.LaneImpl#getPrevLane <em>Prev Lane</em>}</li> | ||
37 | * <li>{@link crossingScenario.impl.LaneImpl#getActors <em>Actors</em>}</li> | 33 | * <li>{@link crossingScenario.impl.LaneImpl#getActors <em>Actors</em>}</li> |
38 | * <li>{@link crossingScenario.impl.LaneImpl#getNumWidth <em>Num Width</em>}</li> | ||
39 | * </ul> | 34 | * </ul> |
40 | * | 35 | * |
41 | * @generated | 36 | * @generated |
42 | */ | 37 | */ |
43 | public abstract class LaneImpl extends MinimalEObjectImpl.Container implements Lane { | 38 | public abstract class LaneImpl extends MinimalEObjectImpl.Container implements Lane { |
44 | /** | 39 | /** |
45 | * The default value of the '{@link #getWidth() <em>Width</em>}' attribute. | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @see #getWidth() | ||
49 | * @generated | ||
50 | * @ordered | ||
51 | */ | ||
52 | protected static final Size WIDTH_EDEFAULT = Size.SSMALL; | ||
53 | |||
54 | /** | ||
55 | * The cached value of the '{@link #getWidth() <em>Width</em>}' attribute. | ||
56 | * <!-- begin-user-doc --> | ||
57 | * <!-- end-user-doc --> | ||
58 | * @see #getWidth() | ||
59 | * @generated | ||
60 | * @ordered | ||
61 | */ | ||
62 | protected Size width = WIDTH_EDEFAULT; | ||
63 | |||
64 | /** | ||
65 | * The default value of the '{@link #getReferenceCoord() <em>Reference Coord</em>}' attribute. | 40 | * The default value of the '{@link #getReferenceCoord() <em>Reference Coord</em>}' attribute. |
66 | * <!-- begin-user-doc --> | 41 | * <!-- begin-user-doc --> |
67 | * <!-- end-user-doc --> | 42 | * <!-- end-user-doc --> |
@@ -82,16 +57,6 @@ public abstract class LaneImpl extends MinimalEObjectImpl.Container implements L | |||
82 | protected double referenceCoord = REFERENCE_COORD_EDEFAULT; | 57 | protected double referenceCoord = REFERENCE_COORD_EDEFAULT; |
83 | 58 | ||
84 | /** | 59 | /** |
85 | * The cached value of the '{@link #getPrevLane() <em>Prev Lane</em>}' reference. | ||
86 | * <!-- begin-user-doc --> | ||
87 | * <!-- end-user-doc --> | ||
88 | * @see #getPrevLane() | ||
89 | * @generated | ||
90 | * @ordered | ||
91 | */ | ||
92 | protected Lane prevLane; | ||
93 | |||
94 | /** | ||
95 | * The cached value of the '{@link #getActors() <em>Actors</em>}' reference list. | 60 | * The cached value of the '{@link #getActors() <em>Actors</em>}' reference list. |
96 | * <!-- begin-user-doc --> | 61 | * <!-- begin-user-doc --> |
97 | * <!-- end-user-doc --> | 62 | * <!-- end-user-doc --> |
@@ -102,26 +67,6 @@ public abstract class LaneImpl extends MinimalEObjectImpl.Container implements L | |||
102 | protected EList<Actor> actors; | 67 | protected EList<Actor> actors; |
103 | 68 | ||
104 | /** | 69 | /** |
105 | * The default value of the '{@link #getNumWidth() <em>Num Width</em>}' attribute. | ||
106 | * <!-- begin-user-doc --> | ||
107 | * <!-- end-user-doc --> | ||
108 | * @see #getNumWidth() | ||
109 | * @generated | ||
110 | * @ordered | ||
111 | */ | ||
112 | protected static final double NUM_WIDTH_EDEFAULT = 0.0; | ||
113 | |||
114 | /** | ||
115 | * The cached value of the '{@link #getNumWidth() <em>Num Width</em>}' attribute. | ||
116 | * <!-- begin-user-doc --> | ||
117 | * <!-- end-user-doc --> | ||
118 | * @see #getNumWidth() | ||
119 | * @generated | ||
120 | * @ordered | ||
121 | */ | ||
122 | protected double numWidth = NUM_WIDTH_EDEFAULT; | ||
123 | |||
124 | /** | ||
125 | * <!-- begin-user-doc --> | 70 | * <!-- begin-user-doc --> |
126 | * <!-- end-user-doc --> | 71 | * <!-- end-user-doc --> |
127 | * @generated | 72 | * @generated |
@@ -146,29 +91,6 @@ public abstract class LaneImpl extends MinimalEObjectImpl.Container implements L | |||
146 | * @generated | 91 | * @generated |
147 | */ | 92 | */ |
148 | @Override | 93 | @Override |
149 | public Size getWidth() { | ||
150 | return width; | ||
151 | } | ||
152 | |||
153 | /** | ||
154 | * <!-- begin-user-doc --> | ||
155 | * <!-- end-user-doc --> | ||
156 | * @generated | ||
157 | */ | ||
158 | @Override | ||
159 | public void setWidth(Size newWidth) { | ||
160 | Size oldWidth = width; | ||
161 | width = newWidth == null ? WIDTH_EDEFAULT : newWidth; | ||
162 | if (eNotificationRequired()) | ||
163 | eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.LANE__WIDTH, oldWidth, width)); | ||
164 | } | ||
165 | |||
166 | /** | ||
167 | * <!-- begin-user-doc --> | ||
168 | * <!-- end-user-doc --> | ||
169 | * @generated | ||
170 | */ | ||
171 | @Override | ||
172 | public double getReferenceCoord() { | 94 | public double getReferenceCoord() { |
173 | return referenceCoord; | 95 | return referenceCoord; |
174 | } | 96 | } |
@@ -192,46 +114,6 @@ public abstract class LaneImpl extends MinimalEObjectImpl.Container implements L | |||
192 | * @generated | 114 | * @generated |
193 | */ | 115 | */ |
194 | @Override | 116 | @Override |
195 | public Lane getPrevLane() { | ||
196 | if (prevLane != null && prevLane.eIsProxy()) { | ||
197 | InternalEObject oldPrevLane = (InternalEObject)prevLane; | ||
198 | prevLane = (Lane)eResolveProxy(oldPrevLane); | ||
199 | if (prevLane != oldPrevLane) { | ||
200 | if (eNotificationRequired()) | ||
201 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, CrossingScenarioPackage.LANE__PREV_LANE, oldPrevLane, prevLane)); | ||
202 | } | ||
203 | } | ||
204 | return prevLane; | ||
205 | } | ||
206 | |||
207 | /** | ||
208 | * <!-- begin-user-doc --> | ||
209 | * <!-- end-user-doc --> | ||
210 | * @generated | ||
211 | */ | ||
212 | public Lane basicGetPrevLane() { | ||
213 | return prevLane; | ||
214 | } | ||
215 | |||
216 | /** | ||
217 | * <!-- begin-user-doc --> | ||
218 | * <!-- end-user-doc --> | ||
219 | * @generated | ||
220 | */ | ||
221 | @Override | ||
222 | public void setPrevLane(Lane newPrevLane) { | ||
223 | Lane oldPrevLane = prevLane; | ||
224 | prevLane = newPrevLane; | ||
225 | if (eNotificationRequired()) | ||
226 | eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.LANE__PREV_LANE, oldPrevLane, prevLane)); | ||
227 | } | ||
228 | |||
229 | /** | ||
230 | * <!-- begin-user-doc --> | ||
231 | * <!-- end-user-doc --> | ||
232 | * @generated | ||
233 | */ | ||
234 | @Override | ||
235 | public EList<Actor> getActors() { | 117 | public EList<Actor> getActors() { |
236 | if (actors == null) { | 118 | if (actors == null) { |
237 | actors = new EObjectWithInverseResolvingEList<Actor>(Actor.class, this, CrossingScenarioPackage.LANE__ACTORS, CrossingScenarioPackage.ACTOR__PLACED_ON); | 119 | actors = new EObjectWithInverseResolvingEList<Actor>(Actor.class, this, CrossingScenarioPackage.LANE__ACTORS, CrossingScenarioPackage.ACTOR__PLACED_ON); |
@@ -244,29 +126,6 @@ public abstract class LaneImpl extends MinimalEObjectImpl.Container implements L | |||
244 | * <!-- end-user-doc --> | 126 | * <!-- end-user-doc --> |
245 | * @generated | 127 | * @generated |
246 | */ | 128 | */ |
247 | @Override | ||
248 | public double getNumWidth() { | ||
249 | return numWidth; | ||
250 | } | ||
251 | |||
252 | /** | ||
253 | * <!-- begin-user-doc --> | ||
254 | * <!-- end-user-doc --> | ||
255 | * @generated | ||
256 | */ | ||
257 | @Override | ||
258 | public void setNumWidth(double newNumWidth) { | ||
259 | double oldNumWidth = numWidth; | ||
260 | numWidth = newNumWidth; | ||
261 | if (eNotificationRequired()) | ||
262 | eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.LANE__NUM_WIDTH, oldNumWidth, numWidth)); | ||
263 | } | ||
264 | |||
265 | /** | ||
266 | * <!-- begin-user-doc --> | ||
267 | * <!-- end-user-doc --> | ||
268 | * @generated | ||
269 | */ | ||
270 | @SuppressWarnings("unchecked") | 129 | @SuppressWarnings("unchecked") |
271 | @Override | 130 | @Override |
272 | public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | 131 | public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { |
@@ -299,17 +158,10 @@ public abstract class LaneImpl extends MinimalEObjectImpl.Container implements L | |||
299 | @Override | 158 | @Override |
300 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | 159 | public Object eGet(int featureID, boolean resolve, boolean coreType) { |
301 | switch (featureID) { | 160 | switch (featureID) { |
302 | case CrossingScenarioPackage.LANE__WIDTH: | ||
303 | return getWidth(); | ||
304 | case CrossingScenarioPackage.LANE__REFERENCE_COORD: | 161 | case CrossingScenarioPackage.LANE__REFERENCE_COORD: |
305 | return getReferenceCoord(); | 162 | return getReferenceCoord(); |
306 | case CrossingScenarioPackage.LANE__PREV_LANE: | ||
307 | if (resolve) return getPrevLane(); | ||
308 | return basicGetPrevLane(); | ||
309 | case CrossingScenarioPackage.LANE__ACTORS: | 163 | case CrossingScenarioPackage.LANE__ACTORS: |
310 | return getActors(); | 164 | return getActors(); |
311 | case CrossingScenarioPackage.LANE__NUM_WIDTH: | ||
312 | return getNumWidth(); | ||
313 | } | 165 | } |
314 | return super.eGet(featureID, resolve, coreType); | 166 | return super.eGet(featureID, resolve, coreType); |
315 | } | 167 | } |
@@ -323,22 +175,13 @@ public abstract class LaneImpl extends MinimalEObjectImpl.Container implements L | |||
323 | @Override | 175 | @Override |
324 | public void eSet(int featureID, Object newValue) { | 176 | public void eSet(int featureID, Object newValue) { |
325 | switch (featureID) { | 177 | switch (featureID) { |
326 | case CrossingScenarioPackage.LANE__WIDTH: | ||
327 | setWidth((Size)newValue); | ||
328 | return; | ||
329 | case CrossingScenarioPackage.LANE__REFERENCE_COORD: | 178 | case CrossingScenarioPackage.LANE__REFERENCE_COORD: |
330 | setReferenceCoord((Double)newValue); | 179 | setReferenceCoord((Double)newValue); |
331 | return; | 180 | return; |
332 | case CrossingScenarioPackage.LANE__PREV_LANE: | ||
333 | setPrevLane((Lane)newValue); | ||
334 | return; | ||
335 | case CrossingScenarioPackage.LANE__ACTORS: | 181 | case CrossingScenarioPackage.LANE__ACTORS: |
336 | getActors().clear(); | 182 | getActors().clear(); |
337 | getActors().addAll((Collection<? extends Actor>)newValue); | 183 | getActors().addAll((Collection<? extends Actor>)newValue); |
338 | return; | 184 | return; |
339 | case CrossingScenarioPackage.LANE__NUM_WIDTH: | ||
340 | setNumWidth((Double)newValue); | ||
341 | return; | ||
342 | } | 185 | } |
343 | super.eSet(featureID, newValue); | 186 | super.eSet(featureID, newValue); |
344 | } | 187 | } |
@@ -351,21 +194,12 @@ public abstract class LaneImpl extends MinimalEObjectImpl.Container implements L | |||
351 | @Override | 194 | @Override |
352 | public void eUnset(int featureID) { | 195 | public void eUnset(int featureID) { |
353 | switch (featureID) { | 196 | switch (featureID) { |
354 | case CrossingScenarioPackage.LANE__WIDTH: | ||
355 | setWidth(WIDTH_EDEFAULT); | ||
356 | return; | ||
357 | case CrossingScenarioPackage.LANE__REFERENCE_COORD: | 197 | case CrossingScenarioPackage.LANE__REFERENCE_COORD: |
358 | setReferenceCoord(REFERENCE_COORD_EDEFAULT); | 198 | setReferenceCoord(REFERENCE_COORD_EDEFAULT); |
359 | return; | 199 | return; |
360 | case CrossingScenarioPackage.LANE__PREV_LANE: | ||
361 | setPrevLane((Lane)null); | ||
362 | return; | ||
363 | case CrossingScenarioPackage.LANE__ACTORS: | 200 | case CrossingScenarioPackage.LANE__ACTORS: |
364 | getActors().clear(); | 201 | getActors().clear(); |
365 | return; | 202 | return; |
366 | case CrossingScenarioPackage.LANE__NUM_WIDTH: | ||
367 | setNumWidth(NUM_WIDTH_EDEFAULT); | ||
368 | return; | ||
369 | } | 203 | } |
370 | super.eUnset(featureID); | 204 | super.eUnset(featureID); |
371 | } | 205 | } |
@@ -378,16 +212,10 @@ public abstract class LaneImpl extends MinimalEObjectImpl.Container implements L | |||
378 | @Override | 212 | @Override |
379 | public boolean eIsSet(int featureID) { | 213 | public boolean eIsSet(int featureID) { |
380 | switch (featureID) { | 214 | switch (featureID) { |
381 | case CrossingScenarioPackage.LANE__WIDTH: | ||
382 | return width != WIDTH_EDEFAULT; | ||
383 | case CrossingScenarioPackage.LANE__REFERENCE_COORD: | 215 | case CrossingScenarioPackage.LANE__REFERENCE_COORD: |
384 | return referenceCoord != REFERENCE_COORD_EDEFAULT; | 216 | return referenceCoord != REFERENCE_COORD_EDEFAULT; |
385 | case CrossingScenarioPackage.LANE__PREV_LANE: | ||
386 | return prevLane != null; | ||
387 | case CrossingScenarioPackage.LANE__ACTORS: | 217 | case CrossingScenarioPackage.LANE__ACTORS: |
388 | return actors != null && !actors.isEmpty(); | 218 | return actors != null && !actors.isEmpty(); |
389 | case CrossingScenarioPackage.LANE__NUM_WIDTH: | ||
390 | return numWidth != NUM_WIDTH_EDEFAULT; | ||
391 | } | 219 | } |
392 | return super.eIsSet(featureID); | 220 | return super.eIsSet(featureID); |
393 | } | 221 | } |
@@ -402,12 +230,8 @@ public abstract class LaneImpl extends MinimalEObjectImpl.Container implements L | |||
402 | if (eIsProxy()) return super.toString(); | 230 | if (eIsProxy()) return super.toString(); |
403 | 231 | ||
404 | StringBuilder result = new StringBuilder(super.toString()); | 232 | StringBuilder result = new StringBuilder(super.toString()); |
405 | result.append(" (width: "); | 233 | result.append(" (referenceCoord: "); |
406 | result.append(width); | ||
407 | result.append(", referenceCoord: "); | ||
408 | result.append(referenceCoord); | 234 | result.append(referenceCoord); |
409 | result.append(", numWidth: "); | ||
410 | result.append(numWidth); | ||
411 | result.append(')'); | 235 | result.append(')'); |
412 | return result.toString(); | 236 | return result.toString(); |
413 | } | 237 | } |