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