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/SimpleScenarioImpl.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/SimpleScenarioImpl.java')
-rw-r--r-- | Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/impl/SimpleScenarioImpl.java | 319 |
1 files changed, 0 insertions, 319 deletions
diff --git a/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/impl/SimpleScenarioImpl.java b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/impl/SimpleScenarioImpl.java deleted file mode 100644 index 9d542c65..00000000 --- a/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/impl/SimpleScenarioImpl.java +++ /dev/null | |||
@@ -1,319 +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.Lane; | ||
23 | import simpleScenario.SimpleScenario; | ||
24 | import simpleScenario.SimpleScenarioPackage; | ||
25 | |||
26 | /** | ||
27 | * <!-- begin-user-doc --> | ||
28 | * An implementation of the model object '<em><b>Simple Scenario</b></em>'. | ||
29 | * <!-- end-user-doc --> | ||
30 | * <p> | ||
31 | * The following features are implemented: | ||
32 | * </p> | ||
33 | * <ul> | ||
34 | * <li>{@link simpleScenario.impl.SimpleScenarioImpl#getXSize <em>XSize</em>}</li> | ||
35 | * <li>{@link simpleScenario.impl.SimpleScenarioImpl#getYSize <em>YSize</em>}</li> | ||
36 | * <li>{@link simpleScenario.impl.SimpleScenarioImpl#getActors <em>Actors</em>}</li> | ||
37 | * <li>{@link simpleScenario.impl.SimpleScenarioImpl#getLanes <em>Lanes</em>}</li> | ||
38 | * </ul> | ||
39 | * | ||
40 | * @generated | ||
41 | */ | ||
42 | public class SimpleScenarioImpl extends MinimalEObjectImpl.Container implements SimpleScenario { | ||
43 | /** | ||
44 | * The default value of the '{@link #getXSize() <em>XSize</em>}' attribute. | ||
45 | * <!-- begin-user-doc --> | ||
46 | * <!-- end-user-doc --> | ||
47 | * @see #getXSize() | ||
48 | * @generated | ||
49 | * @ordered | ||
50 | */ | ||
51 | protected static final double XSIZE_EDEFAULT = 0.0; | ||
52 | |||
53 | /** | ||
54 | * The cached value of the '{@link #getXSize() <em>XSize</em>}' attribute. | ||
55 | * <!-- begin-user-doc --> | ||
56 | * <!-- end-user-doc --> | ||
57 | * @see #getXSize() | ||
58 | * @generated | ||
59 | * @ordered | ||
60 | */ | ||
61 | protected double xSize = XSIZE_EDEFAULT; | ||
62 | |||
63 | /** | ||
64 | * The default value of the '{@link #getYSize() <em>YSize</em>}' attribute. | ||
65 | * <!-- begin-user-doc --> | ||
66 | * <!-- end-user-doc --> | ||
67 | * @see #getYSize() | ||
68 | * @generated | ||
69 | * @ordered | ||
70 | */ | ||
71 | protected static final double YSIZE_EDEFAULT = 0.0; | ||
72 | |||
73 | /** | ||
74 | * The cached value of the '{@link #getYSize() <em>YSize</em>}' attribute. | ||
75 | * <!-- begin-user-doc --> | ||
76 | * <!-- end-user-doc --> | ||
77 | * @see #getYSize() | ||
78 | * @generated | ||
79 | * @ordered | ||
80 | */ | ||
81 | protected double ySize = YSIZE_EDEFAULT; | ||
82 | |||
83 | /** | ||
84 | * The cached value of the '{@link #getActors() <em>Actors</em>}' containment reference list. | ||
85 | * <!-- begin-user-doc --> | ||
86 | * <!-- end-user-doc --> | ||
87 | * @see #getActors() | ||
88 | * @generated | ||
89 | * @ordered | ||
90 | */ | ||
91 | protected EList<Actor> actors; | ||
92 | |||
93 | /** | ||
94 | * The cached value of the '{@link #getLanes() <em>Lanes</em>}' containment reference list. | ||
95 | * <!-- begin-user-doc --> | ||
96 | * <!-- end-user-doc --> | ||
97 | * @see #getLanes() | ||
98 | * @generated | ||
99 | * @ordered | ||
100 | */ | ||
101 | protected EList<Lane> lanes; | ||
102 | |||
103 | /** | ||
104 | * <!-- begin-user-doc --> | ||
105 | * <!-- end-user-doc --> | ||
106 | * @generated | ||
107 | */ | ||
108 | protected SimpleScenarioImpl() { | ||
109 | super(); | ||
110 | } | ||
111 | |||
112 | /** | ||
113 | * <!-- begin-user-doc --> | ||
114 | * <!-- end-user-doc --> | ||
115 | * @generated | ||
116 | */ | ||
117 | @Override | ||
118 | protected EClass eStaticClass() { | ||
119 | return SimpleScenarioPackage.Literals.SIMPLE_SCENARIO; | ||
120 | } | ||
121 | |||
122 | /** | ||
123 | * <!-- begin-user-doc --> | ||
124 | * <!-- end-user-doc --> | ||
125 | * @generated | ||
126 | */ | ||
127 | @Override | ||
128 | public double getXSize() { | ||
129 | return xSize; | ||
130 | } | ||
131 | |||
132 | /** | ||
133 | * <!-- begin-user-doc --> | ||
134 | * <!-- end-user-doc --> | ||
135 | * @generated | ||
136 | */ | ||
137 | @Override | ||
138 | public void setXSize(double newXSize) { | ||
139 | double oldXSize = xSize; | ||
140 | xSize = newXSize; | ||
141 | if (eNotificationRequired()) | ||
142 | eNotify(new ENotificationImpl(this, Notification.SET, SimpleScenarioPackage.SIMPLE_SCENARIO__XSIZE, oldXSize, xSize)); | ||
143 | } | ||
144 | |||
145 | /** | ||
146 | * <!-- begin-user-doc --> | ||
147 | * <!-- end-user-doc --> | ||
148 | * @generated | ||
149 | */ | ||
150 | @Override | ||
151 | public double getYSize() { | ||
152 | return ySize; | ||
153 | } | ||
154 | |||
155 | /** | ||
156 | * <!-- begin-user-doc --> | ||
157 | * <!-- end-user-doc --> | ||
158 | * @generated | ||
159 | */ | ||
160 | @Override | ||
161 | public void setYSize(double newYSize) { | ||
162 | double oldYSize = ySize; | ||
163 | ySize = newYSize; | ||
164 | if (eNotificationRequired()) | ||
165 | eNotify(new ENotificationImpl(this, Notification.SET, SimpleScenarioPackage.SIMPLE_SCENARIO__YSIZE, oldYSize, ySize)); | ||
166 | } | ||
167 | |||
168 | /** | ||
169 | * <!-- begin-user-doc --> | ||
170 | * <!-- end-user-doc --> | ||
171 | * @generated | ||
172 | */ | ||
173 | @Override | ||
174 | public EList<Actor> getActors() { | ||
175 | if (actors == null) { | ||
176 | actors = new EObjectContainmentEList<Actor>(Actor.class, this, SimpleScenarioPackage.SIMPLE_SCENARIO__ACTORS); | ||
177 | } | ||
178 | return actors; | ||
179 | } | ||
180 | |||
181 | /** | ||
182 | * <!-- begin-user-doc --> | ||
183 | * <!-- end-user-doc --> | ||
184 | * @generated | ||
185 | */ | ||
186 | @Override | ||
187 | public EList<Lane> getLanes() { | ||
188 | if (lanes == null) { | ||
189 | lanes = new EObjectContainmentEList<Lane>(Lane.class, this, SimpleScenarioPackage.SIMPLE_SCENARIO__LANES); | ||
190 | } | ||
191 | return lanes; | ||
192 | } | ||
193 | |||
194 | /** | ||
195 | * <!-- begin-user-doc --> | ||
196 | * <!-- end-user-doc --> | ||
197 | * @generated | ||
198 | */ | ||
199 | @Override | ||
200 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
201 | switch (featureID) { | ||
202 | case SimpleScenarioPackage.SIMPLE_SCENARIO__ACTORS: | ||
203 | return ((InternalEList<?>)getActors()).basicRemove(otherEnd, msgs); | ||
204 | case SimpleScenarioPackage.SIMPLE_SCENARIO__LANES: | ||
205 | return ((InternalEList<?>)getLanes()).basicRemove(otherEnd, msgs); | ||
206 | } | ||
207 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
208 | } | ||
209 | |||
210 | /** | ||
211 | * <!-- begin-user-doc --> | ||
212 | * <!-- end-user-doc --> | ||
213 | * @generated | ||
214 | */ | ||
215 | @Override | ||
216 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
217 | switch (featureID) { | ||
218 | case SimpleScenarioPackage.SIMPLE_SCENARIO__XSIZE: | ||
219 | return getXSize(); | ||
220 | case SimpleScenarioPackage.SIMPLE_SCENARIO__YSIZE: | ||
221 | return getYSize(); | ||
222 | case SimpleScenarioPackage.SIMPLE_SCENARIO__ACTORS: | ||
223 | return getActors(); | ||
224 | case SimpleScenarioPackage.SIMPLE_SCENARIO__LANES: | ||
225 | return getLanes(); | ||
226 | } | ||
227 | return super.eGet(featureID, resolve, coreType); | ||
228 | } | ||
229 | |||
230 | /** | ||
231 | * <!-- begin-user-doc --> | ||
232 | * <!-- end-user-doc --> | ||
233 | * @generated | ||
234 | */ | ||
235 | @SuppressWarnings("unchecked") | ||
236 | @Override | ||
237 | public void eSet(int featureID, Object newValue) { | ||
238 | switch (featureID) { | ||
239 | case SimpleScenarioPackage.SIMPLE_SCENARIO__XSIZE: | ||
240 | setXSize((Double)newValue); | ||
241 | return; | ||
242 | case SimpleScenarioPackage.SIMPLE_SCENARIO__YSIZE: | ||
243 | setYSize((Double)newValue); | ||
244 | return; | ||
245 | case SimpleScenarioPackage.SIMPLE_SCENARIO__ACTORS: | ||
246 | getActors().clear(); | ||
247 | getActors().addAll((Collection<? extends Actor>)newValue); | ||
248 | return; | ||
249 | case SimpleScenarioPackage.SIMPLE_SCENARIO__LANES: | ||
250 | getLanes().clear(); | ||
251 | getLanes().addAll((Collection<? extends Lane>)newValue); | ||
252 | return; | ||
253 | } | ||
254 | super.eSet(featureID, newValue); | ||
255 | } | ||
256 | |||
257 | /** | ||
258 | * <!-- begin-user-doc --> | ||
259 | * <!-- end-user-doc --> | ||
260 | * @generated | ||
261 | */ | ||
262 | @Override | ||
263 | public void eUnset(int featureID) { | ||
264 | switch (featureID) { | ||
265 | case SimpleScenarioPackage.SIMPLE_SCENARIO__XSIZE: | ||
266 | setXSize(XSIZE_EDEFAULT); | ||
267 | return; | ||
268 | case SimpleScenarioPackage.SIMPLE_SCENARIO__YSIZE: | ||
269 | setYSize(YSIZE_EDEFAULT); | ||
270 | return; | ||
271 | case SimpleScenarioPackage.SIMPLE_SCENARIO__ACTORS: | ||
272 | getActors().clear(); | ||
273 | return; | ||
274 | case SimpleScenarioPackage.SIMPLE_SCENARIO__LANES: | ||
275 | getLanes().clear(); | ||
276 | return; | ||
277 | } | ||
278 | super.eUnset(featureID); | ||
279 | } | ||
280 | |||
281 | /** | ||
282 | * <!-- begin-user-doc --> | ||
283 | * <!-- end-user-doc --> | ||
284 | * @generated | ||
285 | */ | ||
286 | @Override | ||
287 | public boolean eIsSet(int featureID) { | ||
288 | switch (featureID) { | ||
289 | case SimpleScenarioPackage.SIMPLE_SCENARIO__XSIZE: | ||
290 | return xSize != XSIZE_EDEFAULT; | ||
291 | case SimpleScenarioPackage.SIMPLE_SCENARIO__YSIZE: | ||
292 | return ySize != YSIZE_EDEFAULT; | ||
293 | case SimpleScenarioPackage.SIMPLE_SCENARIO__ACTORS: | ||
294 | return actors != null && !actors.isEmpty(); | ||
295 | case SimpleScenarioPackage.SIMPLE_SCENARIO__LANES: | ||
296 | return lanes != null && !lanes.isEmpty(); | ||
297 | } | ||
298 | return super.eIsSet(featureID); | ||
299 | } | ||
300 | |||
301 | /** | ||
302 | * <!-- begin-user-doc --> | ||
303 | * <!-- end-user-doc --> | ||
304 | * @generated | ||
305 | */ | ||
306 | @Override | ||
307 | public String toString() { | ||
308 | if (eIsProxy()) return super.toString(); | ||
309 | |||
310 | StringBuilder result = new StringBuilder(super.toString()); | ||
311 | result.append(" (xSize: "); | ||
312 | result.append(xSize); | ||
313 | result.append(", ySize: "); | ||
314 | result.append(ySize); | ||
315 | result.append(')'); | ||
316 | return result.toString(); | ||
317 | } | ||
318 | |||
319 | } //SimpleScenarioImpl | ||