diff options
Diffstat (limited to 'Domains/simpleScenario/ecore-gen/simpleScenario/impl/SimpleScenarioPackageImpl.java')
-rw-r--r-- | Domains/simpleScenario/ecore-gen/simpleScenario/impl/SimpleScenarioPackageImpl.java | 770 |
1 files changed, 0 insertions, 770 deletions
diff --git a/Domains/simpleScenario/ecore-gen/simpleScenario/impl/SimpleScenarioPackageImpl.java b/Domains/simpleScenario/ecore-gen/simpleScenario/impl/SimpleScenarioPackageImpl.java deleted file mode 100644 index d68c10c9..00000000 --- a/Domains/simpleScenario/ecore-gen/simpleScenario/impl/SimpleScenarioPackageImpl.java +++ /dev/null | |||
@@ -1,770 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package simpleScenario.impl; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EAttribute; | ||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | import org.eclipse.emf.ecore.EEnum; | ||
8 | import org.eclipse.emf.ecore.EPackage; | ||
9 | import org.eclipse.emf.ecore.EReference; | ||
10 | |||
11 | import org.eclipse.emf.ecore.impl.EPackageImpl; | ||
12 | |||
13 | import simpleScenario.Actor; | ||
14 | import simpleScenario.CollisionDoesNotExist; | ||
15 | import simpleScenario.CollisionExists; | ||
16 | import simpleScenario.Distance; | ||
17 | import simpleScenario.Lane; | ||
18 | import simpleScenario.Orientation; | ||
19 | import simpleScenario.Pedestrian; | ||
20 | import simpleScenario.Relation; | ||
21 | import simpleScenario.SeperationDistance; | ||
22 | import simpleScenario.SimpleScenario; | ||
23 | import simpleScenario.SimpleScenarioFactory; | ||
24 | import simpleScenario.SimpleScenarioPackage; | ||
25 | import simpleScenario.Size; | ||
26 | import simpleScenario.SpatialRelation; | ||
27 | import simpleScenario.TemporalRelation; | ||
28 | import simpleScenario.Vehicle; | ||
29 | import simpleScenario.VisionBlocked; | ||
30 | |||
31 | /** | ||
32 | * <!-- begin-user-doc --> | ||
33 | * An implementation of the model <b>Package</b>. | ||
34 | * <!-- end-user-doc --> | ||
35 | * @generated | ||
36 | */ | ||
37 | public class SimpleScenarioPackageImpl extends EPackageImpl implements SimpleScenarioPackage { | ||
38 | /** | ||
39 | * <!-- begin-user-doc --> | ||
40 | * <!-- end-user-doc --> | ||
41 | * @generated | ||
42 | */ | ||
43 | private EClass simpleScenarioEClass = null; | ||
44 | |||
45 | /** | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @generated | ||
49 | */ | ||
50 | private EClass laneEClass = null; | ||
51 | |||
52 | /** | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @generated | ||
56 | */ | ||
57 | private EClass actorEClass = null; | ||
58 | |||
59 | /** | ||
60 | * <!-- begin-user-doc --> | ||
61 | * <!-- end-user-doc --> | ||
62 | * @generated | ||
63 | */ | ||
64 | private EClass relationEClass = null; | ||
65 | |||
66 | /** | ||
67 | * <!-- begin-user-doc --> | ||
68 | * <!-- end-user-doc --> | ||
69 | * @generated | ||
70 | */ | ||
71 | private EClass spatialRelationEClass = null; | ||
72 | |||
73 | /** | ||
74 | * <!-- begin-user-doc --> | ||
75 | * <!-- end-user-doc --> | ||
76 | * @generated | ||
77 | */ | ||
78 | private EClass temporalRelationEClass = null; | ||
79 | |||
80 | /** | ||
81 | * <!-- begin-user-doc --> | ||
82 | * <!-- end-user-doc --> | ||
83 | * @generated | ||
84 | */ | ||
85 | private EClass visionBlockedEClass = null; | ||
86 | |||
87 | /** | ||
88 | * <!-- begin-user-doc --> | ||
89 | * <!-- end-user-doc --> | ||
90 | * @generated | ||
91 | */ | ||
92 | private EClass seperationDistanceEClass = null; | ||
93 | |||
94 | /** | ||
95 | * <!-- begin-user-doc --> | ||
96 | * <!-- end-user-doc --> | ||
97 | * @generated | ||
98 | */ | ||
99 | private EClass collisionExistsEClass = null; | ||
100 | |||
101 | /** | ||
102 | * <!-- begin-user-doc --> | ||
103 | * <!-- end-user-doc --> | ||
104 | * @generated | ||
105 | */ | ||
106 | private EClass collisionDoesNotExistEClass = null; | ||
107 | |||
108 | /** | ||
109 | * <!-- begin-user-doc --> | ||
110 | * <!-- end-user-doc --> | ||
111 | * @generated | ||
112 | */ | ||
113 | private EClass pedestrianEClass = null; | ||
114 | |||
115 | /** | ||
116 | * <!-- begin-user-doc --> | ||
117 | * <!-- end-user-doc --> | ||
118 | * @generated | ||
119 | */ | ||
120 | private EClass vehicleEClass = null; | ||
121 | |||
122 | /** | ||
123 | * <!-- begin-user-doc --> | ||
124 | * <!-- end-user-doc --> | ||
125 | * @generated | ||
126 | */ | ||
127 | private EEnum orientationEEnum = null; | ||
128 | |||
129 | /** | ||
130 | * <!-- begin-user-doc --> | ||
131 | * <!-- end-user-doc --> | ||
132 | * @generated | ||
133 | */ | ||
134 | private EEnum sizeEEnum = null; | ||
135 | |||
136 | /** | ||
137 | * <!-- begin-user-doc --> | ||
138 | * <!-- end-user-doc --> | ||
139 | * @generated | ||
140 | */ | ||
141 | private EEnum distanceEEnum = null; | ||
142 | |||
143 | /** | ||
144 | * Creates an instance of the model <b>Package</b>, registered with | ||
145 | * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package | ||
146 | * package URI value. | ||
147 | * <p>Note: the correct way to create the package is via the static | ||
148 | * factory method {@link #init init()}, which also performs | ||
149 | * initialization of the package, or returns the registered package, | ||
150 | * if one already exists. | ||
151 | * <!-- begin-user-doc --> | ||
152 | * <!-- end-user-doc --> | ||
153 | * @see org.eclipse.emf.ecore.EPackage.Registry | ||
154 | * @see simpleScenario.SimpleScenarioPackage#eNS_URI | ||
155 | * @see #init() | ||
156 | * @generated | ||
157 | */ | ||
158 | private SimpleScenarioPackageImpl() { | ||
159 | super(eNS_URI, SimpleScenarioFactory.eINSTANCE); | ||
160 | } | ||
161 | |||
162 | /** | ||
163 | * <!-- begin-user-doc --> | ||
164 | * <!-- end-user-doc --> | ||
165 | * @generated | ||
166 | */ | ||
167 | private static boolean isInited = false; | ||
168 | |||
169 | /** | ||
170 | * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. | ||
171 | * | ||
172 | * <p>This method is used to initialize {@link SimpleScenarioPackage#eINSTANCE} when that field is accessed. | ||
173 | * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. | ||
174 | * <!-- begin-user-doc --> | ||
175 | * <!-- end-user-doc --> | ||
176 | * @see #eNS_URI | ||
177 | * @see #createPackageContents() | ||
178 | * @see #initializePackageContents() | ||
179 | * @generated | ||
180 | */ | ||
181 | public static SimpleScenarioPackage init() { | ||
182 | if (isInited) return (SimpleScenarioPackage)EPackage.Registry.INSTANCE.getEPackage(SimpleScenarioPackage.eNS_URI); | ||
183 | |||
184 | // Obtain or create and register package | ||
185 | Object registeredSimpleScenarioPackage = EPackage.Registry.INSTANCE.get(eNS_URI); | ||
186 | SimpleScenarioPackageImpl theSimpleScenarioPackage = registeredSimpleScenarioPackage instanceof SimpleScenarioPackageImpl ? (SimpleScenarioPackageImpl)registeredSimpleScenarioPackage : new SimpleScenarioPackageImpl(); | ||
187 | |||
188 | isInited = true; | ||
189 | |||
190 | // Create package meta-data objects | ||
191 | theSimpleScenarioPackage.createPackageContents(); | ||
192 | |||
193 | // Initialize created meta-data | ||
194 | theSimpleScenarioPackage.initializePackageContents(); | ||
195 | |||
196 | // Mark meta-data to indicate it can't be changed | ||
197 | theSimpleScenarioPackage.freeze(); | ||
198 | |||
199 | // Update the registry and return the package | ||
200 | EPackage.Registry.INSTANCE.put(SimpleScenarioPackage.eNS_URI, theSimpleScenarioPackage); | ||
201 | return theSimpleScenarioPackage; | ||
202 | } | ||
203 | |||
204 | /** | ||
205 | * <!-- begin-user-doc --> | ||
206 | * <!-- end-user-doc --> | ||
207 | * @generated | ||
208 | */ | ||
209 | @Override | ||
210 | public EClass getSimpleScenario() { | ||
211 | return simpleScenarioEClass; | ||
212 | } | ||
213 | |||
214 | /** | ||
215 | * <!-- begin-user-doc --> | ||
216 | * <!-- end-user-doc --> | ||
217 | * @generated | ||
218 | */ | ||
219 | @Override | ||
220 | public EAttribute getSimpleScenario_XSize() { | ||
221 | return (EAttribute)simpleScenarioEClass.getEStructuralFeatures().get(0); | ||
222 | } | ||
223 | |||
224 | /** | ||
225 | * <!-- begin-user-doc --> | ||
226 | * <!-- end-user-doc --> | ||
227 | * @generated | ||
228 | */ | ||
229 | @Override | ||
230 | public EAttribute getSimpleScenario_YSize() { | ||
231 | return (EAttribute)simpleScenarioEClass.getEStructuralFeatures().get(1); | ||
232 | } | ||
233 | |||
234 | /** | ||
235 | * <!-- begin-user-doc --> | ||
236 | * <!-- end-user-doc --> | ||
237 | * @generated | ||
238 | */ | ||
239 | @Override | ||
240 | public EReference getSimpleScenario_Actors() { | ||
241 | return (EReference)simpleScenarioEClass.getEStructuralFeatures().get(2); | ||
242 | } | ||
243 | |||
244 | /** | ||
245 | * <!-- begin-user-doc --> | ||
246 | * <!-- end-user-doc --> | ||
247 | * @generated | ||
248 | */ | ||
249 | @Override | ||
250 | public EReference getSimpleScenario_Lanes() { | ||
251 | return (EReference)simpleScenarioEClass.getEStructuralFeatures().get(3); | ||
252 | } | ||
253 | |||
254 | /** | ||
255 | * <!-- begin-user-doc --> | ||
256 | * <!-- end-user-doc --> | ||
257 | * @generated | ||
258 | */ | ||
259 | @Override | ||
260 | public EAttribute getSimpleScenario_MaxTime() { | ||
261 | return (EAttribute)simpleScenarioEClass.getEStructuralFeatures().get(4); | ||
262 | } | ||
263 | |||
264 | /** | ||
265 | * <!-- begin-user-doc --> | ||
266 | * <!-- end-user-doc --> | ||
267 | * @generated | ||
268 | */ | ||
269 | @Override | ||
270 | public EClass getLane() { | ||
271 | return laneEClass; | ||
272 | } | ||
273 | |||
274 | /** | ||
275 | * <!-- begin-user-doc --> | ||
276 | * <!-- end-user-doc --> | ||
277 | * @generated | ||
278 | */ | ||
279 | @Override | ||
280 | public EAttribute getLane_Orientation() { | ||
281 | return (EAttribute)laneEClass.getEStructuralFeatures().get(0); | ||
282 | } | ||
283 | |||
284 | /** | ||
285 | * <!-- begin-user-doc --> | ||
286 | * <!-- end-user-doc --> | ||
287 | * @generated | ||
288 | */ | ||
289 | @Override | ||
290 | public EAttribute getLane_Width() { | ||
291 | return (EAttribute)laneEClass.getEStructuralFeatures().get(1); | ||
292 | } | ||
293 | |||
294 | /** | ||
295 | * <!-- begin-user-doc --> | ||
296 | * <!-- end-user-doc --> | ||
297 | * @generated | ||
298 | */ | ||
299 | @Override | ||
300 | public EAttribute getLane_ReferenceCoord() { | ||
301 | return (EAttribute)laneEClass.getEStructuralFeatures().get(2); | ||
302 | } | ||
303 | |||
304 | /** | ||
305 | * <!-- begin-user-doc --> | ||
306 | * <!-- end-user-doc --> | ||
307 | * @generated | ||
308 | */ | ||
309 | @Override | ||
310 | public EReference getLane_PrevLane() { | ||
311 | return (EReference)laneEClass.getEStructuralFeatures().get(3); | ||
312 | } | ||
313 | |||
314 | /** | ||
315 | * <!-- begin-user-doc --> | ||
316 | * <!-- end-user-doc --> | ||
317 | * @generated | ||
318 | */ | ||
319 | @Override | ||
320 | public EReference getLane_Actors() { | ||
321 | return (EReference)laneEClass.getEStructuralFeatures().get(4); | ||
322 | } | ||
323 | |||
324 | /** | ||
325 | * <!-- begin-user-doc --> | ||
326 | * <!-- end-user-doc --> | ||
327 | * @generated | ||
328 | */ | ||
329 | @Override | ||
330 | public EAttribute getLane_NumWidth() { | ||
331 | return (EAttribute)laneEClass.getEStructuralFeatures().get(5); | ||
332 | } | ||
333 | |||
334 | /** | ||
335 | * <!-- begin-user-doc --> | ||
336 | * <!-- end-user-doc --> | ||
337 | * @generated | ||
338 | */ | ||
339 | @Override | ||
340 | public EClass getActor() { | ||
341 | return actorEClass; | ||
342 | } | ||
343 | |||
344 | /** | ||
345 | * <!-- begin-user-doc --> | ||
346 | * <!-- end-user-doc --> | ||
347 | * @generated | ||
348 | */ | ||
349 | @Override | ||
350 | public EAttribute getActor_XPos() { | ||
351 | return (EAttribute)actorEClass.getEStructuralFeatures().get(0); | ||
352 | } | ||
353 | |||
354 | /** | ||
355 | * <!-- begin-user-doc --> | ||
356 | * <!-- end-user-doc --> | ||
357 | * @generated | ||
358 | */ | ||
359 | @Override | ||
360 | public EAttribute getActor_YPos() { | ||
361 | return (EAttribute)actorEClass.getEStructuralFeatures().get(1); | ||
362 | } | ||
363 | |||
364 | /** | ||
365 | * <!-- begin-user-doc --> | ||
366 | * <!-- end-user-doc --> | ||
367 | * @generated | ||
368 | */ | ||
369 | @Override | ||
370 | public EAttribute getActor_Length() { | ||
371 | return (EAttribute)actorEClass.getEStructuralFeatures().get(2); | ||
372 | } | ||
373 | |||
374 | /** | ||
375 | * <!-- begin-user-doc --> | ||
376 | * <!-- end-user-doc --> | ||
377 | * @generated | ||
378 | */ | ||
379 | @Override | ||
380 | public EAttribute getActor_Width() { | ||
381 | return (EAttribute)actorEClass.getEStructuralFeatures().get(3); | ||
382 | } | ||
383 | |||
384 | /** | ||
385 | * <!-- begin-user-doc --> | ||
386 | * <!-- end-user-doc --> | ||
387 | * @generated | ||
388 | */ | ||
389 | @Override | ||
390 | public EAttribute getActor_XSpeed() { | ||
391 | return (EAttribute)actorEClass.getEStructuralFeatures().get(4); | ||
392 | } | ||
393 | |||
394 | /** | ||
395 | * <!-- begin-user-doc --> | ||
396 | * <!-- end-user-doc --> | ||
397 | * @generated | ||
398 | */ | ||
399 | @Override | ||
400 | public EReference getActor_Relations() { | ||
401 | return (EReference)actorEClass.getEStructuralFeatures().get(5); | ||
402 | } | ||
403 | |||
404 | /** | ||
405 | * <!-- begin-user-doc --> | ||
406 | * <!-- end-user-doc --> | ||
407 | * @generated | ||
408 | */ | ||
409 | @Override | ||
410 | public EReference getActor_PlacedOn() { | ||
411 | return (EReference)actorEClass.getEStructuralFeatures().get(6); | ||
412 | } | ||
413 | |||
414 | /** | ||
415 | * <!-- begin-user-doc --> | ||
416 | * <!-- end-user-doc --> | ||
417 | * @generated | ||
418 | */ | ||
419 | @Override | ||
420 | public EAttribute getActor_YSpeed() { | ||
421 | return (EAttribute)actorEClass.getEStructuralFeatures().get(7); | ||
422 | } | ||
423 | |||
424 | /** | ||
425 | * <!-- begin-user-doc --> | ||
426 | * <!-- end-user-doc --> | ||
427 | * @generated | ||
428 | */ | ||
429 | @Override | ||
430 | public EClass getRelation() { | ||
431 | return relationEClass; | ||
432 | } | ||
433 | |||
434 | /** | ||
435 | * <!-- begin-user-doc --> | ||
436 | * <!-- end-user-doc --> | ||
437 | * @generated | ||
438 | */ | ||
439 | @Override | ||
440 | public EReference getRelation_Target() { | ||
441 | return (EReference)relationEClass.getEStructuralFeatures().get(0); | ||
442 | } | ||
443 | |||
444 | /** | ||
445 | * <!-- begin-user-doc --> | ||
446 | * <!-- end-user-doc --> | ||
447 | * @generated | ||
448 | */ | ||
449 | @Override | ||
450 | public EClass getSpatialRelation() { | ||
451 | return spatialRelationEClass; | ||
452 | } | ||
453 | |||
454 | /** | ||
455 | * <!-- begin-user-doc --> | ||
456 | * <!-- end-user-doc --> | ||
457 | * @generated | ||
458 | */ | ||
459 | @Override | ||
460 | public EClass getTemporalRelation() { | ||
461 | return temporalRelationEClass; | ||
462 | } | ||
463 | |||
464 | /** | ||
465 | * <!-- begin-user-doc --> | ||
466 | * <!-- end-user-doc --> | ||
467 | * @generated | ||
468 | */ | ||
469 | @Override | ||
470 | public EClass getVisionBlocked() { | ||
471 | return visionBlockedEClass; | ||
472 | } | ||
473 | |||
474 | /** | ||
475 | * <!-- begin-user-doc --> | ||
476 | * <!-- end-user-doc --> | ||
477 | * @generated | ||
478 | */ | ||
479 | @Override | ||
480 | public EReference getVisionBlocked_BlockedBy() { | ||
481 | return (EReference)visionBlockedEClass.getEStructuralFeatures().get(0); | ||
482 | } | ||
483 | |||
484 | /** | ||
485 | * <!-- begin-user-doc --> | ||
486 | * <!-- end-user-doc --> | ||
487 | * @generated | ||
488 | */ | ||
489 | @Override | ||
490 | public EClass getSeperationDistance() { | ||
491 | return seperationDistanceEClass; | ||
492 | } | ||
493 | |||
494 | /** | ||
495 | * <!-- begin-user-doc --> | ||
496 | * <!-- end-user-doc --> | ||
497 | * @generated | ||
498 | */ | ||
499 | @Override | ||
500 | public EAttribute getSeperationDistance_Distance() { | ||
501 | return (EAttribute)seperationDistanceEClass.getEStructuralFeatures().get(0); | ||
502 | } | ||
503 | |||
504 | /** | ||
505 | * <!-- begin-user-doc --> | ||
506 | * <!-- end-user-doc --> | ||
507 | * @generated | ||
508 | */ | ||
509 | @Override | ||
510 | public EClass getCollisionExists() { | ||
511 | return collisionExistsEClass; | ||
512 | } | ||
513 | |||
514 | /** | ||
515 | * <!-- begin-user-doc --> | ||
516 | * <!-- end-user-doc --> | ||
517 | * @generated | ||
518 | */ | ||
519 | @Override | ||
520 | public EAttribute getCollisionExists_CollisionTime() { | ||
521 | return (EAttribute)collisionExistsEClass.getEStructuralFeatures().get(0); | ||
522 | } | ||
523 | |||
524 | /** | ||
525 | * <!-- begin-user-doc --> | ||
526 | * <!-- end-user-doc --> | ||
527 | * @generated | ||
528 | */ | ||
529 | @Override | ||
530 | public EClass getCollisionDoesNotExist() { | ||
531 | return collisionDoesNotExistEClass; | ||
532 | } | ||
533 | |||
534 | /** | ||
535 | * <!-- begin-user-doc --> | ||
536 | * <!-- end-user-doc --> | ||
537 | * @generated | ||
538 | */ | ||
539 | @Override | ||
540 | public EClass getPedestrian() { | ||
541 | return pedestrianEClass; | ||
542 | } | ||
543 | |||
544 | /** | ||
545 | * <!-- begin-user-doc --> | ||
546 | * <!-- end-user-doc --> | ||
547 | * @generated | ||
548 | */ | ||
549 | @Override | ||
550 | public EClass getVehicle() { | ||
551 | return vehicleEClass; | ||
552 | } | ||
553 | |||
554 | /** | ||
555 | * <!-- begin-user-doc --> | ||
556 | * <!-- end-user-doc --> | ||
557 | * @generated | ||
558 | */ | ||
559 | @Override | ||
560 | public EEnum getOrientation() { | ||
561 | return orientationEEnum; | ||
562 | } | ||
563 | |||
564 | /** | ||
565 | * <!-- begin-user-doc --> | ||
566 | * <!-- end-user-doc --> | ||
567 | * @generated | ||
568 | */ | ||
569 | @Override | ||
570 | public EEnum getSize() { | ||
571 | return sizeEEnum; | ||
572 | } | ||
573 | |||
574 | /** | ||
575 | * <!-- begin-user-doc --> | ||
576 | * <!-- end-user-doc --> | ||
577 | * @generated | ||
578 | */ | ||
579 | @Override | ||
580 | public EEnum getDistance() { | ||
581 | return distanceEEnum; | ||
582 | } | ||
583 | |||
584 | /** | ||
585 | * <!-- begin-user-doc --> | ||
586 | * <!-- end-user-doc --> | ||
587 | * @generated | ||
588 | */ | ||
589 | @Override | ||
590 | public SimpleScenarioFactory getSimpleScenarioFactory() { | ||
591 | return (SimpleScenarioFactory)getEFactoryInstance(); | ||
592 | } | ||
593 | |||
594 | /** | ||
595 | * <!-- begin-user-doc --> | ||
596 | * <!-- end-user-doc --> | ||
597 | * @generated | ||
598 | */ | ||
599 | private boolean isCreated = false; | ||
600 | |||
601 | /** | ||
602 | * Creates the meta-model objects for the package. This method is | ||
603 | * guarded to have no affect on any invocation but its first. | ||
604 | * <!-- begin-user-doc --> | ||
605 | * <!-- end-user-doc --> | ||
606 | * @generated | ||
607 | */ | ||
608 | public void createPackageContents() { | ||
609 | if (isCreated) return; | ||
610 | isCreated = true; | ||
611 | |||
612 | // Create classes and their features | ||
613 | simpleScenarioEClass = createEClass(SIMPLE_SCENARIO); | ||
614 | createEAttribute(simpleScenarioEClass, SIMPLE_SCENARIO__XSIZE); | ||
615 | createEAttribute(simpleScenarioEClass, SIMPLE_SCENARIO__YSIZE); | ||
616 | createEReference(simpleScenarioEClass, SIMPLE_SCENARIO__ACTORS); | ||
617 | createEReference(simpleScenarioEClass, SIMPLE_SCENARIO__LANES); | ||
618 | createEAttribute(simpleScenarioEClass, SIMPLE_SCENARIO__MAX_TIME); | ||
619 | |||
620 | laneEClass = createEClass(LANE); | ||
621 | createEAttribute(laneEClass, LANE__ORIENTATION); | ||
622 | createEAttribute(laneEClass, LANE__WIDTH); | ||
623 | createEAttribute(laneEClass, LANE__REFERENCE_COORD); | ||
624 | createEReference(laneEClass, LANE__PREV_LANE); | ||
625 | createEReference(laneEClass, LANE__ACTORS); | ||
626 | createEAttribute(laneEClass, LANE__NUM_WIDTH); | ||
627 | |||
628 | actorEClass = createEClass(ACTOR); | ||
629 | createEAttribute(actorEClass, ACTOR__XPOS); | ||
630 | createEAttribute(actorEClass, ACTOR__YPOS); | ||
631 | createEAttribute(actorEClass, ACTOR__LENGTH); | ||
632 | createEAttribute(actorEClass, ACTOR__WIDTH); | ||
633 | createEAttribute(actorEClass, ACTOR__XSPEED); | ||
634 | createEReference(actorEClass, ACTOR__RELATIONS); | ||
635 | createEReference(actorEClass, ACTOR__PLACED_ON); | ||
636 | createEAttribute(actorEClass, ACTOR__YSPEED); | ||
637 | |||
638 | relationEClass = createEClass(RELATION); | ||
639 | createEReference(relationEClass, RELATION__TARGET); | ||
640 | |||
641 | spatialRelationEClass = createEClass(SPATIAL_RELATION); | ||
642 | |||
643 | temporalRelationEClass = createEClass(TEMPORAL_RELATION); | ||
644 | |||
645 | visionBlockedEClass = createEClass(VISION_BLOCKED); | ||
646 | createEReference(visionBlockedEClass, VISION_BLOCKED__BLOCKED_BY); | ||
647 | |||
648 | seperationDistanceEClass = createEClass(SEPERATION_DISTANCE); | ||
649 | createEAttribute(seperationDistanceEClass, SEPERATION_DISTANCE__DISTANCE); | ||
650 | |||
651 | collisionExistsEClass = createEClass(COLLISION_EXISTS); | ||
652 | createEAttribute(collisionExistsEClass, COLLISION_EXISTS__COLLISION_TIME); | ||
653 | |||
654 | collisionDoesNotExistEClass = createEClass(COLLISION_DOES_NOT_EXIST); | ||
655 | |||
656 | pedestrianEClass = createEClass(PEDESTRIAN); | ||
657 | |||
658 | vehicleEClass = createEClass(VEHICLE); | ||
659 | |||
660 | // Create enums | ||
661 | orientationEEnum = createEEnum(ORIENTATION); | ||
662 | sizeEEnum = createEEnum(SIZE); | ||
663 | distanceEEnum = createEEnum(DISTANCE); | ||
664 | } | ||
665 | |||
666 | /** | ||
667 | * <!-- begin-user-doc --> | ||
668 | * <!-- end-user-doc --> | ||
669 | * @generated | ||
670 | */ | ||
671 | private boolean isInitialized = false; | ||
672 | |||
673 | /** | ||
674 | * Complete the initialization of the package and its meta-model. This | ||
675 | * method is guarded to have no affect on any invocation but its first. | ||
676 | * <!-- begin-user-doc --> | ||
677 | * <!-- end-user-doc --> | ||
678 | * @generated | ||
679 | */ | ||
680 | public void initializePackageContents() { | ||
681 | if (isInitialized) return; | ||
682 | isInitialized = true; | ||
683 | |||
684 | // Initialize package | ||
685 | setName(eNAME); | ||
686 | setNsPrefix(eNS_PREFIX); | ||
687 | setNsURI(eNS_URI); | ||
688 | |||
689 | // Create type parameters | ||
690 | |||
691 | // Set bounds for type parameters | ||
692 | |||
693 | // Add supertypes to classes | ||
694 | spatialRelationEClass.getESuperTypes().add(this.getRelation()); | ||
695 | temporalRelationEClass.getESuperTypes().add(this.getRelation()); | ||
696 | visionBlockedEClass.getESuperTypes().add(this.getSpatialRelation()); | ||
697 | seperationDistanceEClass.getESuperTypes().add(this.getSpatialRelation()); | ||
698 | collisionExistsEClass.getESuperTypes().add(this.getTemporalRelation()); | ||
699 | collisionDoesNotExistEClass.getESuperTypes().add(this.getTemporalRelation()); | ||
700 | pedestrianEClass.getESuperTypes().add(this.getActor()); | ||
701 | vehicleEClass.getESuperTypes().add(this.getActor()); | ||
702 | |||
703 | // Initialize classes, features, and operations; add parameters | ||
704 | initEClass(simpleScenarioEClass, SimpleScenario.class, "SimpleScenario", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
705 | initEAttribute(getSimpleScenario_XSize(), ecorePackage.getEDouble(), "xSize", null, 0, 1, SimpleScenario.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
706 | initEAttribute(getSimpleScenario_YSize(), ecorePackage.getEDouble(), "ySize", null, 0, 1, SimpleScenario.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
707 | initEReference(getSimpleScenario_Actors(), this.getActor(), null, "actors", null, 0, -1, SimpleScenario.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
708 | initEReference(getSimpleScenario_Lanes(), this.getLane(), null, "lanes", null, 0, -1, SimpleScenario.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
709 | initEAttribute(getSimpleScenario_MaxTime(), ecorePackage.getEDouble(), "maxTime", null, 0, 1, SimpleScenario.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
710 | |||
711 | initEClass(laneEClass, Lane.class, "Lane", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
712 | initEAttribute(getLane_Orientation(), this.getOrientation(), "orientation", null, 1, 1, Lane.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
713 | initEAttribute(getLane_Width(), this.getSize(), "width", null, 1, 1, Lane.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
714 | initEAttribute(getLane_ReferenceCoord(), ecorePackage.getEDouble(), "referenceCoord", null, 1, 1, Lane.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
715 | initEReference(getLane_PrevLane(), this.getLane(), null, "prevLane", null, 0, 1, Lane.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
716 | initEReference(getLane_Actors(), this.getActor(), this.getActor_PlacedOn(), "actors", null, 0, -1, Lane.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
717 | initEAttribute(getLane_NumWidth(), ecorePackage.getEDouble(), "numWidth", "0.0", 1, 1, Lane.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
718 | |||
719 | initEClass(actorEClass, Actor.class, "Actor", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
720 | initEAttribute(getActor_XPos(), ecorePackage.getEDouble(), "xPos", null, 1, 1, Actor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
721 | initEAttribute(getActor_YPos(), ecorePackage.getEDouble(), "yPos", null, 1, 1, Actor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
722 | initEAttribute(getActor_Length(), ecorePackage.getEDouble(), "length", "0.0", 1, 1, Actor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED); | ||
723 | initEAttribute(getActor_Width(), ecorePackage.getEDouble(), "width", null, 1, 1, Actor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED); | ||
724 | initEAttribute(getActor_XSpeed(), ecorePackage.getEDouble(), "xSpeed", "0.0", 1, 1, Actor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
725 | initEReference(getActor_Relations(), this.getRelation(), null, "relations", null, 0, -1, Actor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
726 | initEReference(getActor_PlacedOn(), this.getLane(), this.getLane_Actors(), "placedOn", null, 1, 1, Actor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
727 | initEAttribute(getActor_YSpeed(), ecorePackage.getEDouble(), "ySpeed", null, 1, 1, Actor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
728 | |||
729 | initEClass(relationEClass, Relation.class, "Relation", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
730 | initEReference(getRelation_Target(), this.getActor(), null, "target", null, 1, 1, Relation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
731 | |||
732 | initEClass(spatialRelationEClass, SpatialRelation.class, "SpatialRelation", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
733 | |||
734 | initEClass(temporalRelationEClass, TemporalRelation.class, "TemporalRelation", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
735 | |||
736 | initEClass(visionBlockedEClass, VisionBlocked.class, "VisionBlocked", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
737 | initEReference(getVisionBlocked_BlockedBy(), this.getActor(), null, "blockedBy", null, 1, 1, VisionBlocked.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
738 | |||
739 | initEClass(seperationDistanceEClass, SeperationDistance.class, "SeperationDistance", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
740 | initEAttribute(getSeperationDistance_Distance(), this.getDistance(), "distance", null, 1, 1, SeperationDistance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
741 | |||
742 | initEClass(collisionExistsEClass, CollisionExists.class, "CollisionExists", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
743 | initEAttribute(getCollisionExists_CollisionTime(), ecorePackage.getEDouble(), "collisionTime", null, 1, 1, CollisionExists.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
744 | |||
745 | initEClass(collisionDoesNotExistEClass, CollisionDoesNotExist.class, "CollisionDoesNotExist", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
746 | |||
747 | initEClass(pedestrianEClass, Pedestrian.class, "Pedestrian", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
748 | |||
749 | initEClass(vehicleEClass, Vehicle.class, "Vehicle", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
750 | |||
751 | // Initialize enums and add enum literals | ||
752 | initEEnum(orientationEEnum, Orientation.class, "Orientation"); | ||
753 | addEEnumLiteral(orientationEEnum, Orientation.VERTICAL); | ||
754 | addEEnumLiteral(orientationEEnum, Orientation.HORIZONTAL); | ||
755 | |||
756 | initEEnum(sizeEEnum, Size.class, "Size"); | ||
757 | addEEnumLiteral(sizeEEnum, Size.SMALL); | ||
758 | addEEnumLiteral(sizeEEnum, Size.MEDIUM); | ||
759 | addEEnumLiteral(sizeEEnum, Size.LARGE); | ||
760 | |||
761 | initEEnum(distanceEEnum, Distance.class, "Distance"); | ||
762 | addEEnumLiteral(distanceEEnum, Distance.NEAR); | ||
763 | addEEnumLiteral(distanceEEnum, Distance.MEDIUM); | ||
764 | addEEnumLiteral(distanceEEnum, Distance.FAR); | ||
765 | |||
766 | // Create resource | ||
767 | createResource(eNS_URI); | ||
768 | } | ||
769 | |||
770 | } //SimpleScenarioPackageImpl | ||