aboutsummaryrefslogtreecommitdiffstats
path: root/Domains/crossingScenario/ecore-gen
diff options
context:
space:
mode:
authorLibravatar Aren Babikian <aren.babikian@mail.mcgill.ca>2021-01-14 10:34:59 -0500
committerLibravatar Aren Babikian <aren.babikian@mail.mcgill.ca>2021-01-14 10:34:59 -0500
commitdc931c24870432efcd3c3fca4fb6fbd401c70420 (patch)
tree60e417e047ac712be38058a5b358d5ea2f24c3fe /Domains/crossingScenario/ecore-gen
parentdeactivate the constraints used for debugging (diff)
downloadVIATRA-Generator-dc931c24870432efcd3c3fca4fb6fbd401c70420.tar.gz
VIATRA-Generator-dc931c24870432efcd3c3fca4fb6fbd401c70420.tar.zst
VIATRA-Generator-dc931c24870432efcd3c3fca4fb6fbd401c70420.zip
refactor simpleScenario->crossingScenario
Diffstat (limited to 'Domains/crossingScenario/ecore-gen')
-rw-r--r--Domains/crossingScenario/ecore-gen/crossingScenario/Actor.java203
-rw-r--r--Domains/crossingScenario/ecore-gen/crossingScenario/CollisionDoesNotExist.java17
-rw-r--r--Domains/crossingScenario/ecore-gen/crossingScenario/CollisionExists.java45
-rw-r--r--Domains/crossingScenario/ecore-gen/crossingScenario/CrossingScenario.java120
-rw-r--r--Domains/crossingScenario/ecore-gen/crossingScenario/CrossingScenarioFactory.java105
-rw-r--r--Domains/crossingScenario/ecore-gen/crossingScenario/CrossingScenarioPackage.java1594
-rw-r--r--Domains/crossingScenario/ecore-gen/crossingScenario/Distance.java232
-rw-r--r--Domains/crossingScenario/ecore-gen/crossingScenario/Lane.java162
-rw-r--r--Domains/crossingScenario/ecore-gen/crossingScenario/Orientation.java209
-rw-r--r--Domains/crossingScenario/ecore-gen/crossingScenario/Pedestrian.java17
-rw-r--r--Domains/crossingScenario/ecore-gen/crossingScenario/Relation.java46
-rw-r--r--Domains/crossingScenario/ecore-gen/crossingScenario/SeparationDistance.java48
-rw-r--r--Domains/crossingScenario/ecore-gen/crossingScenario/Size.java232
-rw-r--r--Domains/crossingScenario/ecore-gen/crossingScenario/SpatialRelation.java17
-rw-r--r--Domains/crossingScenario/ecore-gen/crossingScenario/TemporalRelation.java17
-rw-r--r--Domains/crossingScenario/ecore-gen/crossingScenario/Vehicle.java17
-rw-r--r--Domains/crossingScenario/ecore-gen/crossingScenario/VisionBlocked.java45
-rw-r--r--Domains/crossingScenario/ecore-gen/crossingScenario/impl/ActorImpl.java608
-rw-r--r--Domains/crossingScenario/ecore-gen/crossingScenario/impl/CollisionDoesNotExistImpl.java37
-rw-r--r--Domains/crossingScenario/ecore-gen/crossingScenario/impl/CollisionExistsImpl.java164
-rw-r--r--Domains/crossingScenario/ecore-gen/crossingScenario/impl/CrossingScenarioFactoryImpl.java280
-rw-r--r--Domains/crossingScenario/ecore-gen/crossingScenario/impl/CrossingScenarioImpl.java375
-rw-r--r--Domains/crossingScenario/ecore-gen/crossingScenario/impl/CrossingScenarioPackageImpl.java770
-rw-r--r--Domains/crossingScenario/ecore-gen/crossingScenario/impl/LaneImpl.java472
-rw-r--r--Domains/crossingScenario/ecore-gen/crossingScenario/impl/PedestrianImpl.java37
-rw-r--r--Domains/crossingScenario/ecore-gen/crossingScenario/impl/RelationImpl.java159
-rw-r--r--Domains/crossingScenario/ecore-gen/crossingScenario/impl/SeparationDistanceImpl.java165
-rw-r--r--Domains/crossingScenario/ecore-gen/crossingScenario/impl/SpatialRelationImpl.java37
-rw-r--r--Domains/crossingScenario/ecore-gen/crossingScenario/impl/TemporalRelationImpl.java37
-rw-r--r--Domains/crossingScenario/ecore-gen/crossingScenario/impl/VehicleImpl.java37
-rw-r--r--Domains/crossingScenario/ecore-gen/crossingScenario/impl/VisionBlockedImpl.java158
-rw-r--r--Domains/crossingScenario/ecore-gen/crossingScenario/util/CrossingScenarioAdapterFactory.java318
-rw-r--r--Domains/crossingScenario/ecore-gen/crossingScenario/util/CrossingScenarioSwitch.java353
33 files changed, 7133 insertions, 0 deletions
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/Actor.java b/Domains/crossingScenario/ecore-gen/crossingScenario/Actor.java
new file mode 100644
index 00000000..035aafcc
--- /dev/null
+++ b/Domains/crossingScenario/ecore-gen/crossingScenario/Actor.java
@@ -0,0 +1,203 @@
1/**
2 */
3package crossingScenario;
4
5import org.eclipse.emf.common.util.EList;
6
7import org.eclipse.emf.ecore.EObject;
8
9/**
10 * <!-- begin-user-doc -->
11 * A representation of the model object '<em><b>Actor</b></em>'.
12 * <!-- end-user-doc -->
13 *
14 * <p>
15 * The following features are supported:
16 * </p>
17 * <ul>
18 * <li>{@link crossingScenario.Actor#getXPos <em>XPos</em>}</li>
19 * <li>{@link crossingScenario.Actor#getYPos <em>YPos</em>}</li>
20 * <li>{@link crossingScenario.Actor#getLength <em>Length</em>}</li>
21 * <li>{@link crossingScenario.Actor#getWidth <em>Width</em>}</li>
22 * <li>{@link crossingScenario.Actor#getXSpeed <em>XSpeed</em>}</li>
23 * <li>{@link crossingScenario.Actor#getRelations <em>Relations</em>}</li>
24 * <li>{@link crossingScenario.Actor#getPlacedOn <em>Placed On</em>}</li>
25 * <li>{@link crossingScenario.Actor#getYSpeed <em>YSpeed</em>}</li>
26 * </ul>
27 *
28 * @see crossingScenario.CrossingScenarioPackage#getActor()
29 * @model abstract="true"
30 * @generated
31 */
32public interface Actor extends EObject {
33 /**
34 * Returns the value of the '<em><b>XPos</b></em>' attribute.
35 * <!-- begin-user-doc -->
36 * <!-- end-user-doc -->
37 * @return the value of the '<em>XPos</em>' attribute.
38 * @see #setXPos(double)
39 * @see crossingScenario.CrossingScenarioPackage#getActor_XPos()
40 * @model required="true"
41 * @generated
42 */
43 double getXPos();
44
45 /**
46 * Sets the value of the '{@link crossingScenario.Actor#getXPos <em>XPos</em>}' attribute.
47 * <!-- begin-user-doc -->
48 * <!-- end-user-doc -->
49 * @param value the new value of the '<em>XPos</em>' attribute.
50 * @see #getXPos()
51 * @generated
52 */
53 void setXPos(double value);
54
55 /**
56 * Returns the value of the '<em><b>YPos</b></em>' attribute.
57 * <!-- begin-user-doc -->
58 * <!-- end-user-doc -->
59 * @return the value of the '<em>YPos</em>' attribute.
60 * @see #setYPos(double)
61 * @see crossingScenario.CrossingScenarioPackage#getActor_YPos()
62 * @model required="true"
63 * @generated
64 */
65 double getYPos();
66
67 /**
68 * Sets the value of the '{@link crossingScenario.Actor#getYPos <em>YPos</em>}' attribute.
69 * <!-- begin-user-doc -->
70 * <!-- end-user-doc -->
71 * @param value the new value of the '<em>YPos</em>' attribute.
72 * @see #getYPos()
73 * @generated
74 */
75 void setYPos(double value);
76
77 /**
78 * Returns the value of the '<em><b>Length</b></em>' attribute.
79 * The default value is <code>"0.0"</code>.
80 * <!-- begin-user-doc -->
81 * <!-- end-user-doc -->
82 * @return the value of the '<em>Length</em>' attribute.
83 * @see #setLength(double)
84 * @see crossingScenario.CrossingScenarioPackage#getActor_Length()
85 * @model default="0.0" required="true" derived="true"
86 * @generated
87 */
88 double getLength();
89
90 /**
91 * Sets the value of the '{@link crossingScenario.Actor#getLength <em>Length</em>}' attribute.
92 * <!-- begin-user-doc -->
93 * <!-- end-user-doc -->
94 * @param value the new value of the '<em>Length</em>' attribute.
95 * @see #getLength()
96 * @generated
97 */
98 void setLength(double value);
99
100 /**
101 * Returns the value of the '<em><b>Width</b></em>' attribute.
102 * <!-- begin-user-doc -->
103 * <!-- end-user-doc -->
104 * @return the value of the '<em>Width</em>' attribute.
105 * @see #setWidth(double)
106 * @see crossingScenario.CrossingScenarioPackage#getActor_Width()
107 * @model required="true" derived="true"
108 * @generated
109 */
110 double getWidth();
111
112 /**
113 * Sets the value of the '{@link crossingScenario.Actor#getWidth <em>Width</em>}' attribute.
114 * <!-- begin-user-doc -->
115 * <!-- end-user-doc -->
116 * @param value the new value of the '<em>Width</em>' attribute.
117 * @see #getWidth()
118 * @generated
119 */
120 void setWidth(double value);
121
122 /**
123 * Returns the value of the '<em><b>XSpeed</b></em>' attribute.
124 * The default value is <code>"0.0"</code>.
125 * <!-- begin-user-doc -->
126 * <!-- end-user-doc -->
127 * @return the value of the '<em>XSpeed</em>' attribute.
128 * @see #setXSpeed(double)
129 * @see crossingScenario.CrossingScenarioPackage#getActor_XSpeed()
130 * @model default="0.0" required="true"
131 * @generated
132 */
133 double getXSpeed();
134
135 /**
136 * Sets the value of the '{@link crossingScenario.Actor#getXSpeed <em>XSpeed</em>}' attribute.
137 * <!-- begin-user-doc -->
138 * <!-- end-user-doc -->
139 * @param value the new value of the '<em>XSpeed</em>' attribute.
140 * @see #getXSpeed()
141 * @generated
142 */
143 void setXSpeed(double value);
144
145 /**
146 * Returns the value of the '<em><b>Relations</b></em>' containment reference list.
147 * The list contents are of type {@link crossingScenario.Relation}.
148 * <!-- begin-user-doc -->
149 * <!-- end-user-doc -->
150 * @return the value of the '<em>Relations</em>' containment reference list.
151 * @see crossingScenario.CrossingScenarioPackage#getActor_Relations()
152 * @model containment="true"
153 * @generated
154 */
155 EList<Relation> getRelations();
156
157 /**
158 * Returns the value of the '<em><b>Placed On</b></em>' reference.
159 * It is bidirectional and its opposite is '{@link crossingScenario.Lane#getActors <em>Actors</em>}'.
160 * <!-- begin-user-doc -->
161 * <!-- end-user-doc -->
162 * @return the value of the '<em>Placed On</em>' reference.
163 * @see #setPlacedOn(Lane)
164 * @see crossingScenario.CrossingScenarioPackage#getActor_PlacedOn()
165 * @see crossingScenario.Lane#getActors
166 * @model opposite="actors" required="true"
167 * @generated
168 */
169 Lane getPlacedOn();
170
171 /**
172 * Sets the value of the '{@link crossingScenario.Actor#getPlacedOn <em>Placed On</em>}' reference.
173 * <!-- begin-user-doc -->
174 * <!-- end-user-doc -->
175 * @param value the new value of the '<em>Placed On</em>' reference.
176 * @see #getPlacedOn()
177 * @generated
178 */
179 void setPlacedOn(Lane value);
180
181 /**
182 * Returns the value of the '<em><b>YSpeed</b></em>' attribute.
183 * <!-- begin-user-doc -->
184 * <!-- end-user-doc -->
185 * @return the value of the '<em>YSpeed</em>' attribute.
186 * @see #setYSpeed(double)
187 * @see crossingScenario.CrossingScenarioPackage#getActor_YSpeed()
188 * @model required="true"
189 * @generated
190 */
191 double getYSpeed();
192
193 /**
194 * Sets the value of the '{@link crossingScenario.Actor#getYSpeed <em>YSpeed</em>}' attribute.
195 * <!-- begin-user-doc -->
196 * <!-- end-user-doc -->
197 * @param value the new value of the '<em>YSpeed</em>' attribute.
198 * @see #getYSpeed()
199 * @generated
200 */
201 void setYSpeed(double value);
202
203} // Actor
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/CollisionDoesNotExist.java b/Domains/crossingScenario/ecore-gen/crossingScenario/CollisionDoesNotExist.java
new file mode 100644
index 00000000..1347c478
--- /dev/null
+++ b/Domains/crossingScenario/ecore-gen/crossingScenario/CollisionDoesNotExist.java
@@ -0,0 +1,17 @@
1/**
2 */
3package crossingScenario;
4
5
6/**
7 * <!-- begin-user-doc -->
8 * A representation of the model object '<em><b>Collision Does Not Exist</b></em>'.
9 * <!-- end-user-doc -->
10 *
11 *
12 * @see crossingScenario.CrossingScenarioPackage#getCollisionDoesNotExist()
13 * @model
14 * @generated
15 */
16public interface CollisionDoesNotExist extends TemporalRelation {
17} // CollisionDoesNotExist
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/CollisionExists.java b/Domains/crossingScenario/ecore-gen/crossingScenario/CollisionExists.java
new file mode 100644
index 00000000..95e95217
--- /dev/null
+++ b/Domains/crossingScenario/ecore-gen/crossingScenario/CollisionExists.java
@@ -0,0 +1,45 @@
1/**
2 */
3package crossingScenario;
4
5
6/**
7 * <!-- begin-user-doc -->
8 * A representation of the model object '<em><b>Collision Exists</b></em>'.
9 * <!-- end-user-doc -->
10 *
11 * <p>
12 * The following features are supported:
13 * </p>
14 * <ul>
15 * <li>{@link crossingScenario.CollisionExists#getCollisionTime <em>Collision Time</em>}</li>
16 * </ul>
17 *
18 * @see crossingScenario.CrossingScenarioPackage#getCollisionExists()
19 * @model
20 * @generated
21 */
22public interface CollisionExists extends TemporalRelation {
23 /**
24 * Returns the value of the '<em><b>Collision Time</b></em>' attribute.
25 * <!-- begin-user-doc -->
26 * <!-- end-user-doc -->
27 * @return the value of the '<em>Collision Time</em>' attribute.
28 * @see #setCollisionTime(double)
29 * @see crossingScenario.CrossingScenarioPackage#getCollisionExists_CollisionTime()
30 * @model required="true"
31 * @generated
32 */
33 double getCollisionTime();
34
35 /**
36 * Sets the value of the '{@link crossingScenario.CollisionExists#getCollisionTime <em>Collision Time</em>}' attribute.
37 * <!-- begin-user-doc -->
38 * <!-- end-user-doc -->
39 * @param value the new value of the '<em>Collision Time</em>' attribute.
40 * @see #getCollisionTime()
41 * @generated
42 */
43 void setCollisionTime(double value);
44
45} // CollisionExists
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/CrossingScenario.java b/Domains/crossingScenario/ecore-gen/crossingScenario/CrossingScenario.java
new file mode 100644
index 00000000..afbe34e7
--- /dev/null
+++ b/Domains/crossingScenario/ecore-gen/crossingScenario/CrossingScenario.java
@@ -0,0 +1,120 @@
1/**
2 */
3package crossingScenario;
4
5import org.eclipse.emf.common.util.EList;
6
7import org.eclipse.emf.ecore.EObject;
8
9/**
10 * <!-- begin-user-doc -->
11 * A representation of the model object '<em><b>Crossing Scenario</b></em>'.
12 * <!-- end-user-doc -->
13 *
14 * <p>
15 * The following features are supported:
16 * </p>
17 * <ul>
18 * <li>{@link crossingScenario.CrossingScenario#getXSize <em>XSize</em>}</li>
19 * <li>{@link crossingScenario.CrossingScenario#getYSize <em>YSize</em>}</li>
20 * <li>{@link crossingScenario.CrossingScenario#getActors <em>Actors</em>}</li>
21 * <li>{@link crossingScenario.CrossingScenario#getLanes <em>Lanes</em>}</li>
22 * <li>{@link crossingScenario.CrossingScenario#getMaxTime <em>Max Time</em>}</li>
23 * </ul>
24 *
25 * @see crossingScenario.CrossingScenarioPackage#getCrossingScenario()
26 * @model
27 * @generated
28 */
29public interface CrossingScenario extends EObject {
30 /**
31 * Returns the value of the '<em><b>XSize</b></em>' attribute.
32 * <!-- begin-user-doc -->
33 * <!-- end-user-doc -->
34 * @return the value of the '<em>XSize</em>' attribute.
35 * @see #setXSize(double)
36 * @see crossingScenario.CrossingScenarioPackage#getCrossingScenario_XSize()
37 * @model
38 * @generated
39 */
40 double getXSize();
41
42 /**
43 * Sets the value of the '{@link crossingScenario.CrossingScenario#getXSize <em>XSize</em>}' attribute.
44 * <!-- begin-user-doc -->
45 * <!-- end-user-doc -->
46 * @param value the new value of the '<em>XSize</em>' attribute.
47 * @see #getXSize()
48 * @generated
49 */
50 void setXSize(double value);
51
52 /**
53 * Returns the value of the '<em><b>YSize</b></em>' attribute.
54 * <!-- begin-user-doc -->
55 * <!-- end-user-doc -->
56 * @return the value of the '<em>YSize</em>' attribute.
57 * @see #setYSize(double)
58 * @see crossingScenario.CrossingScenarioPackage#getCrossingScenario_YSize()
59 * @model
60 * @generated
61 */
62 double getYSize();
63
64 /**
65 * Sets the value of the '{@link crossingScenario.CrossingScenario#getYSize <em>YSize</em>}' attribute.
66 * <!-- begin-user-doc -->
67 * <!-- end-user-doc -->
68 * @param value the new value of the '<em>YSize</em>' attribute.
69 * @see #getYSize()
70 * @generated
71 */
72 void setYSize(double value);
73
74 /**
75 * Returns the value of the '<em><b>Actors</b></em>' containment reference list.
76 * The list contents are of type {@link crossingScenario.Actor}.
77 * <!-- begin-user-doc -->
78 * <!-- end-user-doc -->
79 * @return the value of the '<em>Actors</em>' containment reference list.
80 * @see crossingScenario.CrossingScenarioPackage#getCrossingScenario_Actors()
81 * @model containment="true"
82 * @generated
83 */
84 EList<Actor> getActors();
85
86 /**
87 * Returns the value of the '<em><b>Lanes</b></em>' containment reference list.
88 * The list contents are of type {@link crossingScenario.Lane}.
89 * <!-- begin-user-doc -->
90 * <!-- end-user-doc -->
91 * @return the value of the '<em>Lanes</em>' containment reference list.
92 * @see crossingScenario.CrossingScenarioPackage#getCrossingScenario_Lanes()
93 * @model containment="true"
94 * @generated
95 */
96 EList<Lane> getLanes();
97
98 /**
99 * Returns the value of the '<em><b>Max Time</b></em>' attribute.
100 * <!-- begin-user-doc -->
101 * <!-- end-user-doc -->
102 * @return the value of the '<em>Max Time</em>' attribute.
103 * @see #setMaxTime(double)
104 * @see crossingScenario.CrossingScenarioPackage#getCrossingScenario_MaxTime()
105 * @model
106 * @generated
107 */
108 double getMaxTime();
109
110 /**
111 * Sets the value of the '{@link crossingScenario.CrossingScenario#getMaxTime <em>Max Time</em>}' attribute.
112 * <!-- begin-user-doc -->
113 * <!-- end-user-doc -->
114 * @param value the new value of the '<em>Max Time</em>' attribute.
115 * @see #getMaxTime()
116 * @generated
117 */
118 void setMaxTime(double value);
119
120} // CrossingScenario
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/CrossingScenarioFactory.java b/Domains/crossingScenario/ecore-gen/crossingScenario/CrossingScenarioFactory.java
new file mode 100644
index 00000000..b281559c
--- /dev/null
+++ b/Domains/crossingScenario/ecore-gen/crossingScenario/CrossingScenarioFactory.java
@@ -0,0 +1,105 @@
1/**
2 */
3package crossingScenario;
4
5import org.eclipse.emf.ecore.EFactory;
6
7/**
8 * <!-- begin-user-doc -->
9 * The <b>Factory</b> for the model.
10 * It provides a create method for each non-abstract class of the model.
11 * <!-- end-user-doc -->
12 * @see crossingScenario.CrossingScenarioPackage
13 * @generated
14 */
15public interface CrossingScenarioFactory extends EFactory {
16 /**
17 * The singleton instance of the factory.
18 * <!-- begin-user-doc -->
19 * <!-- end-user-doc -->
20 * @generated
21 */
22 CrossingScenarioFactory eINSTANCE = crossingScenario.impl.CrossingScenarioFactoryImpl.init();
23
24 /**
25 * Returns a new object of class '<em>Crossing Scenario</em>'.
26 * <!-- begin-user-doc -->
27 * <!-- end-user-doc -->
28 * @return a new object of class '<em>Crossing Scenario</em>'.
29 * @generated
30 */
31 CrossingScenario createCrossingScenario();
32
33 /**
34 * Returns a new object of class '<em>Lane</em>'.
35 * <!-- begin-user-doc -->
36 * <!-- end-user-doc -->
37 * @return a new object of class '<em>Lane</em>'.
38 * @generated
39 */
40 Lane createLane();
41
42 /**
43 * Returns a new object of class '<em>Vision Blocked</em>'.
44 * <!-- begin-user-doc -->
45 * <!-- end-user-doc -->
46 * @return a new object of class '<em>Vision Blocked</em>'.
47 * @generated
48 */
49 VisionBlocked createVisionBlocked();
50
51 /**
52 * Returns a new object of class '<em>Separation Distance</em>'.
53 * <!-- begin-user-doc -->
54 * <!-- end-user-doc -->
55 * @return a new object of class '<em>Separation Distance</em>'.
56 * @generated
57 */
58 SeparationDistance createSeparationDistance();
59
60 /**
61 * Returns a new object of class '<em>Collision Exists</em>'.
62 * <!-- begin-user-doc -->
63 * <!-- end-user-doc -->
64 * @return a new object of class '<em>Collision Exists</em>'.
65 * @generated
66 */
67 CollisionExists createCollisionExists();
68
69 /**
70 * Returns a new object of class '<em>Collision Does Not Exist</em>'.
71 * <!-- begin-user-doc -->
72 * <!-- end-user-doc -->
73 * @return a new object of class '<em>Collision Does Not Exist</em>'.
74 * @generated
75 */
76 CollisionDoesNotExist createCollisionDoesNotExist();
77
78 /**
79 * Returns a new object of class '<em>Pedestrian</em>'.
80 * <!-- begin-user-doc -->
81 * <!-- end-user-doc -->
82 * @return a new object of class '<em>Pedestrian</em>'.
83 * @generated
84 */
85 Pedestrian createPedestrian();
86
87 /**
88 * Returns a new object of class '<em>Vehicle</em>'.
89 * <!-- begin-user-doc -->
90 * <!-- end-user-doc -->
91 * @return a new object of class '<em>Vehicle</em>'.
92 * @generated
93 */
94 Vehicle createVehicle();
95
96 /**
97 * Returns the package supported by this factory.
98 * <!-- begin-user-doc -->
99 * <!-- end-user-doc -->
100 * @return the package supported by this factory.
101 * @generated
102 */
103 CrossingScenarioPackage getCrossingScenarioPackage();
104
105} //CrossingScenarioFactory
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/CrossingScenarioPackage.java b/Domains/crossingScenario/ecore-gen/crossingScenario/CrossingScenarioPackage.java
new file mode 100644
index 00000000..c690a23c
--- /dev/null
+++ b/Domains/crossingScenario/ecore-gen/crossingScenario/CrossingScenarioPackage.java
@@ -0,0 +1,1594 @@
1/**
2 */
3package crossingScenario;
4
5import org.eclipse.emf.ecore.EAttribute;
6import org.eclipse.emf.ecore.EClass;
7import org.eclipse.emf.ecore.EEnum;
8import org.eclipse.emf.ecore.EPackage;
9import org.eclipse.emf.ecore.EReference;
10
11/**
12 * <!-- begin-user-doc -->
13 * The <b>Package</b> for the model.
14 * It contains accessors for the meta objects to represent
15 * <ul>
16 * <li>each class,</li>
17 * <li>each feature of each class,</li>
18 * <li>each operation of each class,</li>
19 * <li>each enum,</li>
20 * <li>and each data type</li>
21 * </ul>
22 * <!-- end-user-doc -->
23 * @see crossingScenario.CrossingScenarioFactory
24 * @model kind="package"
25 * @generated
26 */
27public interface CrossingScenarioPackage extends EPackage {
28 /**
29 * The package name.
30 * <!-- begin-user-doc -->
31 * <!-- end-user-doc -->
32 * @generated
33 */
34 String eNAME = "crossingScenario";
35
36 /**
37 * The package namespace URI.
38 * <!-- begin-user-doc -->
39 * <!-- end-user-doc -->
40 * @generated
41 */
42 String eNS_URI = "http://www.example.com/crossingScenario";
43
44 /**
45 * The package namespace name.
46 * <!-- begin-user-doc -->
47 * <!-- end-user-doc -->
48 * @generated
49 */
50 String eNS_PREFIX = "crossingScenario";
51
52 /**
53 * The singleton instance of the package.
54 * <!-- begin-user-doc -->
55 * <!-- end-user-doc -->
56 * @generated
57 */
58 CrossingScenarioPackage eINSTANCE = crossingScenario.impl.CrossingScenarioPackageImpl.init();
59
60 /**
61 * The meta object id for the '{@link crossingScenario.impl.CrossingScenarioImpl <em>Crossing Scenario</em>}' class.
62 * <!-- begin-user-doc -->
63 * <!-- end-user-doc -->
64 * @see crossingScenario.impl.CrossingScenarioImpl
65 * @see crossingScenario.impl.CrossingScenarioPackageImpl#getCrossingScenario()
66 * @generated
67 */
68 int CROSSING_SCENARIO = 0;
69
70 /**
71 * The feature id for the '<em><b>XSize</b></em>' attribute.
72 * <!-- begin-user-doc -->
73 * <!-- end-user-doc -->
74 * @generated
75 * @ordered
76 */
77 int CROSSING_SCENARIO__XSIZE = 0;
78
79 /**
80 * The feature id for the '<em><b>YSize</b></em>' attribute.
81 * <!-- begin-user-doc -->
82 * <!-- end-user-doc -->
83 * @generated
84 * @ordered
85 */
86 int CROSSING_SCENARIO__YSIZE = 1;
87
88 /**
89 * The feature id for the '<em><b>Actors</b></em>' containment reference list.
90 * <!-- begin-user-doc -->
91 * <!-- end-user-doc -->
92 * @generated
93 * @ordered
94 */
95 int CROSSING_SCENARIO__ACTORS = 2;
96
97 /**
98 * The feature id for the '<em><b>Lanes</b></em>' containment reference list.
99 * <!-- begin-user-doc -->
100 * <!-- end-user-doc -->
101 * @generated
102 * @ordered
103 */
104 int CROSSING_SCENARIO__LANES = 3;
105
106 /**
107 * The feature id for the '<em><b>Max Time</b></em>' attribute.
108 * <!-- begin-user-doc -->
109 * <!-- end-user-doc -->
110 * @generated
111 * @ordered
112 */
113 int CROSSING_SCENARIO__MAX_TIME = 4;
114
115 /**
116 * The number of structural features of the '<em>Crossing Scenario</em>' class.
117 * <!-- begin-user-doc -->
118 * <!-- end-user-doc -->
119 * @generated
120 * @ordered
121 */
122 int CROSSING_SCENARIO_FEATURE_COUNT = 5;
123
124 /**
125 * The number of operations of the '<em>Crossing Scenario</em>' class.
126 * <!-- begin-user-doc -->
127 * <!-- end-user-doc -->
128 * @generated
129 * @ordered
130 */
131 int CROSSING_SCENARIO_OPERATION_COUNT = 0;
132
133 /**
134 * The meta object id for the '{@link crossingScenario.impl.LaneImpl <em>Lane</em>}' class.
135 * <!-- begin-user-doc -->
136 * <!-- end-user-doc -->
137 * @see crossingScenario.impl.LaneImpl
138 * @see crossingScenario.impl.CrossingScenarioPackageImpl#getLane()
139 * @generated
140 */
141 int LANE = 1;
142
143 /**
144 * The feature id for the '<em><b>Orientation</b></em>' attribute.
145 * <!-- begin-user-doc -->
146 * <!-- end-user-doc -->
147 * @generated
148 * @ordered
149 */
150 int LANE__ORIENTATION = 0;
151
152 /**
153 * The feature id for the '<em><b>Width</b></em>' attribute.
154 * <!-- begin-user-doc -->
155 * <!-- end-user-doc -->
156 * @generated
157 * @ordered
158 */
159 int LANE__WIDTH = 1;
160
161 /**
162 * The feature id for the '<em><b>Reference Coord</b></em>' attribute.
163 * <!-- begin-user-doc -->
164 * <!-- end-user-doc -->
165 * @generated
166 * @ordered
167 */
168 int LANE__REFERENCE_COORD = 2;
169
170 /**
171 * The feature id for the '<em><b>Prev Lane</b></em>' reference.
172 * <!-- begin-user-doc -->
173 * <!-- end-user-doc -->
174 * @generated
175 * @ordered
176 */
177 int LANE__PREV_LANE = 3;
178
179 /**
180 * The feature id for the '<em><b>Actors</b></em>' reference list.
181 * <!-- begin-user-doc -->
182 * <!-- end-user-doc -->
183 * @generated
184 * @ordered
185 */
186 int LANE__ACTORS = 4;
187
188 /**
189 * The feature id for the '<em><b>Num Width</b></em>' attribute.
190 * <!-- begin-user-doc -->
191 * <!-- end-user-doc -->
192 * @generated
193 * @ordered
194 */
195 int LANE__NUM_WIDTH = 5;
196
197 /**
198 * The number of structural features of the '<em>Lane</em>' class.
199 * <!-- begin-user-doc -->
200 * <!-- end-user-doc -->
201 * @generated
202 * @ordered
203 */
204 int LANE_FEATURE_COUNT = 6;
205
206 /**
207 * The number of operations of the '<em>Lane</em>' class.
208 * <!-- begin-user-doc -->
209 * <!-- end-user-doc -->
210 * @generated
211 * @ordered
212 */
213 int LANE_OPERATION_COUNT = 0;
214
215 /**
216 * The meta object id for the '{@link crossingScenario.impl.ActorImpl <em>Actor</em>}' class.
217 * <!-- begin-user-doc -->
218 * <!-- end-user-doc -->
219 * @see crossingScenario.impl.ActorImpl
220 * @see crossingScenario.impl.CrossingScenarioPackageImpl#getActor()
221 * @generated
222 */
223 int ACTOR = 2;
224
225 /**
226 * The feature id for the '<em><b>XPos</b></em>' attribute.
227 * <!-- begin-user-doc -->
228 * <!-- end-user-doc -->
229 * @generated
230 * @ordered
231 */
232 int ACTOR__XPOS = 0;
233
234 /**
235 * The feature id for the '<em><b>YPos</b></em>' attribute.
236 * <!-- begin-user-doc -->
237 * <!-- end-user-doc -->
238 * @generated
239 * @ordered
240 */
241 int ACTOR__YPOS = 1;
242
243 /**
244 * The feature id for the '<em><b>Length</b></em>' attribute.
245 * <!-- begin-user-doc -->
246 * <!-- end-user-doc -->
247 * @generated
248 * @ordered
249 */
250 int ACTOR__LENGTH = 2;
251
252 /**
253 * The feature id for the '<em><b>Width</b></em>' attribute.
254 * <!-- begin-user-doc -->
255 * <!-- end-user-doc -->
256 * @generated
257 * @ordered
258 */
259 int ACTOR__WIDTH = 3;
260
261 /**
262 * The feature id for the '<em><b>XSpeed</b></em>' attribute.
263 * <!-- begin-user-doc -->
264 * <!-- end-user-doc -->
265 * @generated
266 * @ordered
267 */
268 int ACTOR__XSPEED = 4;
269
270 /**
271 * The feature id for the '<em><b>Relations</b></em>' containment reference list.
272 * <!-- begin-user-doc -->
273 * <!-- end-user-doc -->
274 * @generated
275 * @ordered
276 */
277 int ACTOR__RELATIONS = 5;
278
279 /**
280 * The feature id for the '<em><b>Placed On</b></em>' reference.
281 * <!-- begin-user-doc -->
282 * <!-- end-user-doc -->
283 * @generated
284 * @ordered
285 */
286 int ACTOR__PLACED_ON = 6;
287
288 /**
289 * The feature id for the '<em><b>YSpeed</b></em>' attribute.
290 * <!-- begin-user-doc -->
291 * <!-- end-user-doc -->
292 * @generated
293 * @ordered
294 */
295 int ACTOR__YSPEED = 7;
296
297 /**
298 * The number of structural features of the '<em>Actor</em>' class.
299 * <!-- begin-user-doc -->
300 * <!-- end-user-doc -->
301 * @generated
302 * @ordered
303 */
304 int ACTOR_FEATURE_COUNT = 8;
305
306 /**
307 * The number of operations of the '<em>Actor</em>' class.
308 * <!-- begin-user-doc -->
309 * <!-- end-user-doc -->
310 * @generated
311 * @ordered
312 */
313 int ACTOR_OPERATION_COUNT = 0;
314
315 /**
316 * The meta object id for the '{@link crossingScenario.impl.RelationImpl <em>Relation</em>}' class.
317 * <!-- begin-user-doc -->
318 * <!-- end-user-doc -->
319 * @see crossingScenario.impl.RelationImpl
320 * @see crossingScenario.impl.CrossingScenarioPackageImpl#getRelation()
321 * @generated
322 */
323 int RELATION = 3;
324
325 /**
326 * The feature id for the '<em><b>Target</b></em>' reference.
327 * <!-- begin-user-doc -->
328 * <!-- end-user-doc -->
329 * @generated
330 * @ordered
331 */
332 int RELATION__TARGET = 0;
333
334 /**
335 * The number of structural features of the '<em>Relation</em>' class.
336 * <!-- begin-user-doc -->
337 * <!-- end-user-doc -->
338 * @generated
339 * @ordered
340 */
341 int RELATION_FEATURE_COUNT = 1;
342
343 /**
344 * The number of operations of the '<em>Relation</em>' class.
345 * <!-- begin-user-doc -->
346 * <!-- end-user-doc -->
347 * @generated
348 * @ordered
349 */
350 int RELATION_OPERATION_COUNT = 0;
351
352 /**
353 * The meta object id for the '{@link crossingScenario.impl.SpatialRelationImpl <em>Spatial Relation</em>}' class.
354 * <!-- begin-user-doc -->
355 * <!-- end-user-doc -->
356 * @see crossingScenario.impl.SpatialRelationImpl
357 * @see crossingScenario.impl.CrossingScenarioPackageImpl#getSpatialRelation()
358 * @generated
359 */
360 int SPATIAL_RELATION = 4;
361
362 /**
363 * The feature id for the '<em><b>Target</b></em>' reference.
364 * <!-- begin-user-doc -->
365 * <!-- end-user-doc -->
366 * @generated
367 * @ordered
368 */
369 int SPATIAL_RELATION__TARGET = RELATION__TARGET;
370
371 /**
372 * The number of structural features of the '<em>Spatial Relation</em>' class.
373 * <!-- begin-user-doc -->
374 * <!-- end-user-doc -->
375 * @generated
376 * @ordered
377 */
378 int SPATIAL_RELATION_FEATURE_COUNT = RELATION_FEATURE_COUNT + 0;
379
380 /**
381 * The number of operations of the '<em>Spatial Relation</em>' class.
382 * <!-- begin-user-doc -->
383 * <!-- end-user-doc -->
384 * @generated
385 * @ordered
386 */
387 int SPATIAL_RELATION_OPERATION_COUNT = RELATION_OPERATION_COUNT + 0;
388
389 /**
390 * The meta object id for the '{@link crossingScenario.impl.TemporalRelationImpl <em>Temporal Relation</em>}' class.
391 * <!-- begin-user-doc -->
392 * <!-- end-user-doc -->
393 * @see crossingScenario.impl.TemporalRelationImpl
394 * @see crossingScenario.impl.CrossingScenarioPackageImpl#getTemporalRelation()
395 * @generated
396 */
397 int TEMPORAL_RELATION = 5;
398
399 /**
400 * The feature id for the '<em><b>Target</b></em>' reference.
401 * <!-- begin-user-doc -->
402 * <!-- end-user-doc -->
403 * @generated
404 * @ordered
405 */
406 int TEMPORAL_RELATION__TARGET = RELATION__TARGET;
407
408 /**
409 * The number of structural features of the '<em>Temporal Relation</em>' class.
410 * <!-- begin-user-doc -->
411 * <!-- end-user-doc -->
412 * @generated
413 * @ordered
414 */
415 int TEMPORAL_RELATION_FEATURE_COUNT = RELATION_FEATURE_COUNT + 0;
416
417 /**
418 * The number of operations of the '<em>Temporal Relation</em>' class.
419 * <!-- begin-user-doc -->
420 * <!-- end-user-doc -->
421 * @generated
422 * @ordered
423 */
424 int TEMPORAL_RELATION_OPERATION_COUNT = RELATION_OPERATION_COUNT + 0;
425
426 /**
427 * The meta object id for the '{@link crossingScenario.impl.VisionBlockedImpl <em>Vision Blocked</em>}' class.
428 * <!-- begin-user-doc -->
429 * <!-- end-user-doc -->
430 * @see crossingScenario.impl.VisionBlockedImpl
431 * @see crossingScenario.impl.CrossingScenarioPackageImpl#getVisionBlocked()
432 * @generated
433 */
434 int VISION_BLOCKED = 6;
435
436 /**
437 * The feature id for the '<em><b>Target</b></em>' reference.
438 * <!-- begin-user-doc -->
439 * <!-- end-user-doc -->
440 * @generated
441 * @ordered
442 */
443 int VISION_BLOCKED__TARGET = SPATIAL_RELATION__TARGET;
444
445 /**
446 * The feature id for the '<em><b>Blocked By</b></em>' reference.
447 * <!-- begin-user-doc -->
448 * <!-- end-user-doc -->
449 * @generated
450 * @ordered
451 */
452 int VISION_BLOCKED__BLOCKED_BY = SPATIAL_RELATION_FEATURE_COUNT + 0;
453
454 /**
455 * The number of structural features of the '<em>Vision Blocked</em>' class.
456 * <!-- begin-user-doc -->
457 * <!-- end-user-doc -->
458 * @generated
459 * @ordered
460 */
461 int VISION_BLOCKED_FEATURE_COUNT = SPATIAL_RELATION_FEATURE_COUNT + 1;
462
463 /**
464 * The number of operations of the '<em>Vision Blocked</em>' class.
465 * <!-- begin-user-doc -->
466 * <!-- end-user-doc -->
467 * @generated
468 * @ordered
469 */
470 int VISION_BLOCKED_OPERATION_COUNT = SPATIAL_RELATION_OPERATION_COUNT + 0;
471
472 /**
473 * The meta object id for the '{@link crossingScenario.impl.SeparationDistanceImpl <em>Separation Distance</em>}' class.
474 * <!-- begin-user-doc -->
475 * <!-- end-user-doc -->
476 * @see crossingScenario.impl.SeparationDistanceImpl
477 * @see crossingScenario.impl.CrossingScenarioPackageImpl#getSeparationDistance()
478 * @generated
479 */
480 int SEPARATION_DISTANCE = 7;
481
482 /**
483 * The feature id for the '<em><b>Target</b></em>' reference.
484 * <!-- begin-user-doc -->
485 * <!-- end-user-doc -->
486 * @generated
487 * @ordered
488 */
489 int SEPARATION_DISTANCE__TARGET = SPATIAL_RELATION__TARGET;
490
491 /**
492 * The feature id for the '<em><b>Distance</b></em>' attribute.
493 * <!-- begin-user-doc -->
494 * <!-- end-user-doc -->
495 * @generated
496 * @ordered
497 */
498 int SEPARATION_DISTANCE__DISTANCE = SPATIAL_RELATION_FEATURE_COUNT + 0;
499
500 /**
501 * The number of structural features of the '<em>Separation Distance</em>' class.
502 * <!-- begin-user-doc -->
503 * <!-- end-user-doc -->
504 * @generated
505 * @ordered
506 */
507 int SEPARATION_DISTANCE_FEATURE_COUNT = SPATIAL_RELATION_FEATURE_COUNT + 1;
508
509 /**
510 * The number of operations of the '<em>Separation Distance</em>' class.
511 * <!-- begin-user-doc -->
512 * <!-- end-user-doc -->
513 * @generated
514 * @ordered
515 */
516 int SEPARATION_DISTANCE_OPERATION_COUNT = SPATIAL_RELATION_OPERATION_COUNT + 0;
517
518 /**
519 * The meta object id for the '{@link crossingScenario.impl.CollisionExistsImpl <em>Collision Exists</em>}' class.
520 * <!-- begin-user-doc -->
521 * <!-- end-user-doc -->
522 * @see crossingScenario.impl.CollisionExistsImpl
523 * @see crossingScenario.impl.CrossingScenarioPackageImpl#getCollisionExists()
524 * @generated
525 */
526 int COLLISION_EXISTS = 8;
527
528 /**
529 * The feature id for the '<em><b>Target</b></em>' reference.
530 * <!-- begin-user-doc -->
531 * <!-- end-user-doc -->
532 * @generated
533 * @ordered
534 */
535 int COLLISION_EXISTS__TARGET = TEMPORAL_RELATION__TARGET;
536
537 /**
538 * The feature id for the '<em><b>Collision Time</b></em>' attribute.
539 * <!-- begin-user-doc -->
540 * <!-- end-user-doc -->
541 * @generated
542 * @ordered
543 */
544 int COLLISION_EXISTS__COLLISION_TIME = TEMPORAL_RELATION_FEATURE_COUNT + 0;
545
546 /**
547 * The number of structural features of the '<em>Collision Exists</em>' class.
548 * <!-- begin-user-doc -->
549 * <!-- end-user-doc -->
550 * @generated
551 * @ordered
552 */
553 int COLLISION_EXISTS_FEATURE_COUNT = TEMPORAL_RELATION_FEATURE_COUNT + 1;
554
555 /**
556 * The number of operations of the '<em>Collision Exists</em>' class.
557 * <!-- begin-user-doc -->
558 * <!-- end-user-doc -->
559 * @generated
560 * @ordered
561 */
562 int COLLISION_EXISTS_OPERATION_COUNT = TEMPORAL_RELATION_OPERATION_COUNT + 0;
563
564 /**
565 * The meta object id for the '{@link crossingScenario.impl.CollisionDoesNotExistImpl <em>Collision Does Not Exist</em>}' class.
566 * <!-- begin-user-doc -->
567 * <!-- end-user-doc -->
568 * @see crossingScenario.impl.CollisionDoesNotExistImpl
569 * @see crossingScenario.impl.CrossingScenarioPackageImpl#getCollisionDoesNotExist()
570 * @generated
571 */
572 int COLLISION_DOES_NOT_EXIST = 9;
573
574 /**
575 * The feature id for the '<em><b>Target</b></em>' reference.
576 * <!-- begin-user-doc -->
577 * <!-- end-user-doc -->
578 * @generated
579 * @ordered
580 */
581 int COLLISION_DOES_NOT_EXIST__TARGET = TEMPORAL_RELATION__TARGET;
582
583 /**
584 * The number of structural features of the '<em>Collision Does Not Exist</em>' class.
585 * <!-- begin-user-doc -->
586 * <!-- end-user-doc -->
587 * @generated
588 * @ordered
589 */
590 int COLLISION_DOES_NOT_EXIST_FEATURE_COUNT = TEMPORAL_RELATION_FEATURE_COUNT + 0;
591
592 /**
593 * The number of operations of the '<em>Collision Does Not Exist</em>' class.
594 * <!-- begin-user-doc -->
595 * <!-- end-user-doc -->
596 * @generated
597 * @ordered
598 */
599 int COLLISION_DOES_NOT_EXIST_OPERATION_COUNT = TEMPORAL_RELATION_OPERATION_COUNT + 0;
600
601 /**
602 * The meta object id for the '{@link crossingScenario.impl.PedestrianImpl <em>Pedestrian</em>}' class.
603 * <!-- begin-user-doc -->
604 * <!-- end-user-doc -->
605 * @see crossingScenario.impl.PedestrianImpl
606 * @see crossingScenario.impl.CrossingScenarioPackageImpl#getPedestrian()
607 * @generated
608 */
609 int PEDESTRIAN = 10;
610
611 /**
612 * The feature id for the '<em><b>XPos</b></em>' attribute.
613 * <!-- begin-user-doc -->
614 * <!-- end-user-doc -->
615 * @generated
616 * @ordered
617 */
618 int PEDESTRIAN__XPOS = ACTOR__XPOS;
619
620 /**
621 * The feature id for the '<em><b>YPos</b></em>' attribute.
622 * <!-- begin-user-doc -->
623 * <!-- end-user-doc -->
624 * @generated
625 * @ordered
626 */
627 int PEDESTRIAN__YPOS = ACTOR__YPOS;
628
629 /**
630 * The feature id for the '<em><b>Length</b></em>' attribute.
631 * <!-- begin-user-doc -->
632 * <!-- end-user-doc -->
633 * @generated
634 * @ordered
635 */
636 int PEDESTRIAN__LENGTH = ACTOR__LENGTH;
637
638 /**
639 * The feature id for the '<em><b>Width</b></em>' attribute.
640 * <!-- begin-user-doc -->
641 * <!-- end-user-doc -->
642 * @generated
643 * @ordered
644 */
645 int PEDESTRIAN__WIDTH = ACTOR__WIDTH;
646
647 /**
648 * The feature id for the '<em><b>XSpeed</b></em>' attribute.
649 * <!-- begin-user-doc -->
650 * <!-- end-user-doc -->
651 * @generated
652 * @ordered
653 */
654 int PEDESTRIAN__XSPEED = ACTOR__XSPEED;
655
656 /**
657 * The feature id for the '<em><b>Relations</b></em>' containment reference list.
658 * <!-- begin-user-doc -->
659 * <!-- end-user-doc -->
660 * @generated
661 * @ordered
662 */
663 int PEDESTRIAN__RELATIONS = ACTOR__RELATIONS;
664
665 /**
666 * The feature id for the '<em><b>Placed On</b></em>' reference.
667 * <!-- begin-user-doc -->
668 * <!-- end-user-doc -->
669 * @generated
670 * @ordered
671 */
672 int PEDESTRIAN__PLACED_ON = ACTOR__PLACED_ON;
673
674 /**
675 * The feature id for the '<em><b>YSpeed</b></em>' attribute.
676 * <!-- begin-user-doc -->
677 * <!-- end-user-doc -->
678 * @generated
679 * @ordered
680 */
681 int PEDESTRIAN__YSPEED = ACTOR__YSPEED;
682
683 /**
684 * The number of structural features of the '<em>Pedestrian</em>' class.
685 * <!-- begin-user-doc -->
686 * <!-- end-user-doc -->
687 * @generated
688 * @ordered
689 */
690 int PEDESTRIAN_FEATURE_COUNT = ACTOR_FEATURE_COUNT + 0;
691
692 /**
693 * The number of operations of the '<em>Pedestrian</em>' class.
694 * <!-- begin-user-doc -->
695 * <!-- end-user-doc -->
696 * @generated
697 * @ordered
698 */
699 int PEDESTRIAN_OPERATION_COUNT = ACTOR_OPERATION_COUNT + 0;
700
701 /**
702 * The meta object id for the '{@link crossingScenario.impl.VehicleImpl <em>Vehicle</em>}' class.
703 * <!-- begin-user-doc -->
704 * <!-- end-user-doc -->
705 * @see crossingScenario.impl.VehicleImpl
706 * @see crossingScenario.impl.CrossingScenarioPackageImpl#getVehicle()
707 * @generated
708 */
709 int VEHICLE = 11;
710
711 /**
712 * The feature id for the '<em><b>XPos</b></em>' attribute.
713 * <!-- begin-user-doc -->
714 * <!-- end-user-doc -->
715 * @generated
716 * @ordered
717 */
718 int VEHICLE__XPOS = ACTOR__XPOS;
719
720 /**
721 * The feature id for the '<em><b>YPos</b></em>' attribute.
722 * <!-- begin-user-doc -->
723 * <!-- end-user-doc -->
724 * @generated
725 * @ordered
726 */
727 int VEHICLE__YPOS = ACTOR__YPOS;
728
729 /**
730 * The feature id for the '<em><b>Length</b></em>' attribute.
731 * <!-- begin-user-doc -->
732 * <!-- end-user-doc -->
733 * @generated
734 * @ordered
735 */
736 int VEHICLE__LENGTH = ACTOR__LENGTH;
737
738 /**
739 * The feature id for the '<em><b>Width</b></em>' attribute.
740 * <!-- begin-user-doc -->
741 * <!-- end-user-doc -->
742 * @generated
743 * @ordered
744 */
745 int VEHICLE__WIDTH = ACTOR__WIDTH;
746
747 /**
748 * The feature id for the '<em><b>XSpeed</b></em>' attribute.
749 * <!-- begin-user-doc -->
750 * <!-- end-user-doc -->
751 * @generated
752 * @ordered
753 */
754 int VEHICLE__XSPEED = ACTOR__XSPEED;
755
756 /**
757 * The feature id for the '<em><b>Relations</b></em>' containment reference list.
758 * <!-- begin-user-doc -->
759 * <!-- end-user-doc -->
760 * @generated
761 * @ordered
762 */
763 int VEHICLE__RELATIONS = ACTOR__RELATIONS;
764
765 /**
766 * The feature id for the '<em><b>Placed On</b></em>' reference.
767 * <!-- begin-user-doc -->
768 * <!-- end-user-doc -->
769 * @generated
770 * @ordered
771 */
772 int VEHICLE__PLACED_ON = ACTOR__PLACED_ON;
773
774 /**
775 * The feature id for the '<em><b>YSpeed</b></em>' attribute.
776 * <!-- begin-user-doc -->
777 * <!-- end-user-doc -->
778 * @generated
779 * @ordered
780 */
781 int VEHICLE__YSPEED = ACTOR__YSPEED;
782
783 /**
784 * The number of structural features of the '<em>Vehicle</em>' class.
785 * <!-- begin-user-doc -->
786 * <!-- end-user-doc -->
787 * @generated
788 * @ordered
789 */
790 int VEHICLE_FEATURE_COUNT = ACTOR_FEATURE_COUNT + 0;
791
792 /**
793 * The number of operations of the '<em>Vehicle</em>' class.
794 * <!-- begin-user-doc -->
795 * <!-- end-user-doc -->
796 * @generated
797 * @ordered
798 */
799 int VEHICLE_OPERATION_COUNT = ACTOR_OPERATION_COUNT + 0;
800
801 /**
802 * The meta object id for the '{@link crossingScenario.Orientation <em>Orientation</em>}' enum.
803 * <!-- begin-user-doc -->
804 * <!-- end-user-doc -->
805 * @see crossingScenario.Orientation
806 * @see crossingScenario.impl.CrossingScenarioPackageImpl#getOrientation()
807 * @generated
808 */
809 int ORIENTATION = 12;
810
811 /**
812 * The meta object id for the '{@link crossingScenario.Size <em>Size</em>}' enum.
813 * <!-- begin-user-doc -->
814 * <!-- end-user-doc -->
815 * @see crossingScenario.Size
816 * @see crossingScenario.impl.CrossingScenarioPackageImpl#getSize()
817 * @generated
818 */
819 int SIZE = 13;
820
821 /**
822 * The meta object id for the '{@link crossingScenario.Distance <em>Distance</em>}' enum.
823 * <!-- begin-user-doc -->
824 * <!-- end-user-doc -->
825 * @see crossingScenario.Distance
826 * @see crossingScenario.impl.CrossingScenarioPackageImpl#getDistance()
827 * @generated
828 */
829 int DISTANCE = 14;
830
831
832 /**
833 * Returns the meta object for class '{@link crossingScenario.CrossingScenario <em>Crossing Scenario</em>}'.
834 * <!-- begin-user-doc -->
835 * <!-- end-user-doc -->
836 * @return the meta object for class '<em>Crossing Scenario</em>'.
837 * @see crossingScenario.CrossingScenario
838 * @generated
839 */
840 EClass getCrossingScenario();
841
842 /**
843 * Returns the meta object for the attribute '{@link crossingScenario.CrossingScenario#getXSize <em>XSize</em>}'.
844 * <!-- begin-user-doc -->
845 * <!-- end-user-doc -->
846 * @return the meta object for the attribute '<em>XSize</em>'.
847 * @see crossingScenario.CrossingScenario#getXSize()
848 * @see #getCrossingScenario()
849 * @generated
850 */
851 EAttribute getCrossingScenario_XSize();
852
853 /**
854 * Returns the meta object for the attribute '{@link crossingScenario.CrossingScenario#getYSize <em>YSize</em>}'.
855 * <!-- begin-user-doc -->
856 * <!-- end-user-doc -->
857 * @return the meta object for the attribute '<em>YSize</em>'.
858 * @see crossingScenario.CrossingScenario#getYSize()
859 * @see #getCrossingScenario()
860 * @generated
861 */
862 EAttribute getCrossingScenario_YSize();
863
864 /**
865 * Returns the meta object for the containment reference list '{@link crossingScenario.CrossingScenario#getActors <em>Actors</em>}'.
866 * <!-- begin-user-doc -->
867 * <!-- end-user-doc -->
868 * @return the meta object for the containment reference list '<em>Actors</em>'.
869 * @see crossingScenario.CrossingScenario#getActors()
870 * @see #getCrossingScenario()
871 * @generated
872 */
873 EReference getCrossingScenario_Actors();
874
875 /**
876 * Returns the meta object for the containment reference list '{@link crossingScenario.CrossingScenario#getLanes <em>Lanes</em>}'.
877 * <!-- begin-user-doc -->
878 * <!-- end-user-doc -->
879 * @return the meta object for the containment reference list '<em>Lanes</em>'.
880 * @see crossingScenario.CrossingScenario#getLanes()
881 * @see #getCrossingScenario()
882 * @generated
883 */
884 EReference getCrossingScenario_Lanes();
885
886 /**
887 * Returns the meta object for the attribute '{@link crossingScenario.CrossingScenario#getMaxTime <em>Max Time</em>}'.
888 * <!-- begin-user-doc -->
889 * <!-- end-user-doc -->
890 * @return the meta object for the attribute '<em>Max Time</em>'.
891 * @see crossingScenario.CrossingScenario#getMaxTime()
892 * @see #getCrossingScenario()
893 * @generated
894 */
895 EAttribute getCrossingScenario_MaxTime();
896
897 /**
898 * Returns the meta object for class '{@link crossingScenario.Lane <em>Lane</em>}'.
899 * <!-- begin-user-doc -->
900 * <!-- end-user-doc -->
901 * @return the meta object for class '<em>Lane</em>'.
902 * @see crossingScenario.Lane
903 * @generated
904 */
905 EClass getLane();
906
907 /**
908 * Returns the meta object for the attribute '{@link crossingScenario.Lane#getOrientation <em>Orientation</em>}'.
909 * <!-- begin-user-doc -->
910 * <!-- end-user-doc -->
911 * @return the meta object for the attribute '<em>Orientation</em>'.
912 * @see crossingScenario.Lane#getOrientation()
913 * @see #getLane()
914 * @generated
915 */
916 EAttribute getLane_Orientation();
917
918 /**
919 * Returns the meta object for the attribute '{@link crossingScenario.Lane#getWidth <em>Width</em>}'.
920 * <!-- begin-user-doc -->
921 * <!-- end-user-doc -->
922 * @return the meta object for the attribute '<em>Width</em>'.
923 * @see crossingScenario.Lane#getWidth()
924 * @see #getLane()
925 * @generated
926 */
927 EAttribute getLane_Width();
928
929 /**
930 * Returns the meta object for the attribute '{@link crossingScenario.Lane#getReferenceCoord <em>Reference Coord</em>}'.
931 * <!-- begin-user-doc -->
932 * <!-- end-user-doc -->
933 * @return the meta object for the attribute '<em>Reference Coord</em>'.
934 * @see crossingScenario.Lane#getReferenceCoord()
935 * @see #getLane()
936 * @generated
937 */
938 EAttribute getLane_ReferenceCoord();
939
940 /**
941 * Returns the meta object for the reference '{@link crossingScenario.Lane#getPrevLane <em>Prev Lane</em>}'.
942 * <!-- begin-user-doc -->
943 * <!-- end-user-doc -->
944 * @return the meta object for the reference '<em>Prev Lane</em>'.
945 * @see crossingScenario.Lane#getPrevLane()
946 * @see #getLane()
947 * @generated
948 */
949 EReference getLane_PrevLane();
950
951 /**
952 * Returns the meta object for the reference list '{@link crossingScenario.Lane#getActors <em>Actors</em>}'.
953 * <!-- begin-user-doc -->
954 * <!-- end-user-doc -->
955 * @return the meta object for the reference list '<em>Actors</em>'.
956 * @see crossingScenario.Lane#getActors()
957 * @see #getLane()
958 * @generated
959 */
960 EReference getLane_Actors();
961
962 /**
963 * Returns the meta object for the attribute '{@link crossingScenario.Lane#getNumWidth <em>Num Width</em>}'.
964 * <!-- begin-user-doc -->
965 * <!-- end-user-doc -->
966 * @return the meta object for the attribute '<em>Num Width</em>'.
967 * @see crossingScenario.Lane#getNumWidth()
968 * @see #getLane()
969 * @generated
970 */
971 EAttribute getLane_NumWidth();
972
973 /**
974 * Returns the meta object for class '{@link crossingScenario.Actor <em>Actor</em>}'.
975 * <!-- begin-user-doc -->
976 * <!-- end-user-doc -->
977 * @return the meta object for class '<em>Actor</em>'.
978 * @see crossingScenario.Actor
979 * @generated
980 */
981 EClass getActor();
982
983 /**
984 * Returns the meta object for the attribute '{@link crossingScenario.Actor#getXPos <em>XPos</em>}'.
985 * <!-- begin-user-doc -->
986 * <!-- end-user-doc -->
987 * @return the meta object for the attribute '<em>XPos</em>'.
988 * @see crossingScenario.Actor#getXPos()
989 * @see #getActor()
990 * @generated
991 */
992 EAttribute getActor_XPos();
993
994 /**
995 * Returns the meta object for the attribute '{@link crossingScenario.Actor#getYPos <em>YPos</em>}'.
996 * <!-- begin-user-doc -->
997 * <!-- end-user-doc -->
998 * @return the meta object for the attribute '<em>YPos</em>'.
999 * @see crossingScenario.Actor#getYPos()
1000 * @see #getActor()
1001 * @generated
1002 */
1003 EAttribute getActor_YPos();
1004
1005 /**
1006 * Returns the meta object for the attribute '{@link crossingScenario.Actor#getLength <em>Length</em>}'.
1007 * <!-- begin-user-doc -->
1008 * <!-- end-user-doc -->
1009 * @return the meta object for the attribute '<em>Length</em>'.
1010 * @see crossingScenario.Actor#getLength()
1011 * @see #getActor()
1012 * @generated
1013 */
1014 EAttribute getActor_Length();
1015
1016 /**
1017 * Returns the meta object for the attribute '{@link crossingScenario.Actor#getWidth <em>Width</em>}'.
1018 * <!-- begin-user-doc -->
1019 * <!-- end-user-doc -->
1020 * @return the meta object for the attribute '<em>Width</em>'.
1021 * @see crossingScenario.Actor#getWidth()
1022 * @see #getActor()
1023 * @generated
1024 */
1025 EAttribute getActor_Width();
1026
1027 /**
1028 * Returns the meta object for the attribute '{@link crossingScenario.Actor#getXSpeed <em>XSpeed</em>}'.
1029 * <!-- begin-user-doc -->
1030 * <!-- end-user-doc -->
1031 * @return the meta object for the attribute '<em>XSpeed</em>'.
1032 * @see crossingScenario.Actor#getXSpeed()
1033 * @see #getActor()
1034 * @generated
1035 */
1036 EAttribute getActor_XSpeed();
1037
1038 /**
1039 * Returns the meta object for the containment reference list '{@link crossingScenario.Actor#getRelations <em>Relations</em>}'.
1040 * <!-- begin-user-doc -->
1041 * <!-- end-user-doc -->
1042 * @return the meta object for the containment reference list '<em>Relations</em>'.
1043 * @see crossingScenario.Actor#getRelations()
1044 * @see #getActor()
1045 * @generated
1046 */
1047 EReference getActor_Relations();
1048
1049 /**
1050 * Returns the meta object for the reference '{@link crossingScenario.Actor#getPlacedOn <em>Placed On</em>}'.
1051 * <!-- begin-user-doc -->
1052 * <!-- end-user-doc -->
1053 * @return the meta object for the reference '<em>Placed On</em>'.
1054 * @see crossingScenario.Actor#getPlacedOn()
1055 * @see #getActor()
1056 * @generated
1057 */
1058 EReference getActor_PlacedOn();
1059
1060 /**
1061 * Returns the meta object for the attribute '{@link crossingScenario.Actor#getYSpeed <em>YSpeed</em>}'.
1062 * <!-- begin-user-doc -->
1063 * <!-- end-user-doc -->
1064 * @return the meta object for the attribute '<em>YSpeed</em>'.
1065 * @see crossingScenario.Actor#getYSpeed()
1066 * @see #getActor()
1067 * @generated
1068 */
1069 EAttribute getActor_YSpeed();
1070
1071 /**
1072 * Returns the meta object for class '{@link crossingScenario.Relation <em>Relation</em>}'.
1073 * <!-- begin-user-doc -->
1074 * <!-- end-user-doc -->
1075 * @return the meta object for class '<em>Relation</em>'.
1076 * @see crossingScenario.Relation
1077 * @generated
1078 */
1079 EClass getRelation();
1080
1081 /**
1082 * Returns the meta object for the reference '{@link crossingScenario.Relation#getTarget <em>Target</em>}'.
1083 * <!-- begin-user-doc -->
1084 * <!-- end-user-doc -->
1085 * @return the meta object for the reference '<em>Target</em>'.
1086 * @see crossingScenario.Relation#getTarget()
1087 * @see #getRelation()
1088 * @generated
1089 */
1090 EReference getRelation_Target();
1091
1092 /**
1093 * Returns the meta object for class '{@link crossingScenario.SpatialRelation <em>Spatial Relation</em>}'.
1094 * <!-- begin-user-doc -->
1095 * <!-- end-user-doc -->
1096 * @return the meta object for class '<em>Spatial Relation</em>'.
1097 * @see crossingScenario.SpatialRelation
1098 * @generated
1099 */
1100 EClass getSpatialRelation();
1101
1102 /**
1103 * Returns the meta object for class '{@link crossingScenario.TemporalRelation <em>Temporal Relation</em>}'.
1104 * <!-- begin-user-doc -->
1105 * <!-- end-user-doc -->
1106 * @return the meta object for class '<em>Temporal Relation</em>'.
1107 * @see crossingScenario.TemporalRelation
1108 * @generated
1109 */
1110 EClass getTemporalRelation();
1111
1112 /**
1113 * Returns the meta object for class '{@link crossingScenario.VisionBlocked <em>Vision Blocked</em>}'.
1114 * <!-- begin-user-doc -->
1115 * <!-- end-user-doc -->
1116 * @return the meta object for class '<em>Vision Blocked</em>'.
1117 * @see crossingScenario.VisionBlocked
1118 * @generated
1119 */
1120 EClass getVisionBlocked();
1121
1122 /**
1123 * Returns the meta object for the reference '{@link crossingScenario.VisionBlocked#getBlockedBy <em>Blocked By</em>}'.
1124 * <!-- begin-user-doc -->
1125 * <!-- end-user-doc -->
1126 * @return the meta object for the reference '<em>Blocked By</em>'.
1127 * @see crossingScenario.VisionBlocked#getBlockedBy()
1128 * @see #getVisionBlocked()
1129 * @generated
1130 */
1131 EReference getVisionBlocked_BlockedBy();
1132
1133 /**
1134 * Returns the meta object for class '{@link crossingScenario.SeparationDistance <em>Separation Distance</em>}'.
1135 * <!-- begin-user-doc -->
1136 * <!-- end-user-doc -->
1137 * @return the meta object for class '<em>Separation Distance</em>'.
1138 * @see crossingScenario.SeparationDistance
1139 * @generated
1140 */
1141 EClass getSeparationDistance();
1142
1143 /**
1144 * Returns the meta object for the attribute '{@link crossingScenario.SeparationDistance#getDistance <em>Distance</em>}'.
1145 * <!-- begin-user-doc -->
1146 * <!-- end-user-doc -->
1147 * @return the meta object for the attribute '<em>Distance</em>'.
1148 * @see crossingScenario.SeparationDistance#getDistance()
1149 * @see #getSeparationDistance()
1150 * @generated
1151 */
1152 EAttribute getSeparationDistance_Distance();
1153
1154 /**
1155 * Returns the meta object for class '{@link crossingScenario.CollisionExists <em>Collision Exists</em>}'.
1156 * <!-- begin-user-doc -->
1157 * <!-- end-user-doc -->
1158 * @return the meta object for class '<em>Collision Exists</em>'.
1159 * @see crossingScenario.CollisionExists
1160 * @generated
1161 */
1162 EClass getCollisionExists();
1163
1164 /**
1165 * Returns the meta object for the attribute '{@link crossingScenario.CollisionExists#getCollisionTime <em>Collision Time</em>}'.
1166 * <!-- begin-user-doc -->
1167 * <!-- end-user-doc -->
1168 * @return the meta object for the attribute '<em>Collision Time</em>'.
1169 * @see crossingScenario.CollisionExists#getCollisionTime()
1170 * @see #getCollisionExists()
1171 * @generated
1172 */
1173 EAttribute getCollisionExists_CollisionTime();
1174
1175 /**
1176 * Returns the meta object for class '{@link crossingScenario.CollisionDoesNotExist <em>Collision Does Not Exist</em>}'.
1177 * <!-- begin-user-doc -->
1178 * <!-- end-user-doc -->
1179 * @return the meta object for class '<em>Collision Does Not Exist</em>'.
1180 * @see crossingScenario.CollisionDoesNotExist
1181 * @generated
1182 */
1183 EClass getCollisionDoesNotExist();
1184
1185 /**
1186 * Returns the meta object for class '{@link crossingScenario.Pedestrian <em>Pedestrian</em>}'.
1187 * <!-- begin-user-doc -->
1188 * <!-- end-user-doc -->
1189 * @return the meta object for class '<em>Pedestrian</em>'.
1190 * @see crossingScenario.Pedestrian
1191 * @generated
1192 */
1193 EClass getPedestrian();
1194
1195 /**
1196 * Returns the meta object for class '{@link crossingScenario.Vehicle <em>Vehicle</em>}'.
1197 * <!-- begin-user-doc -->
1198 * <!-- end-user-doc -->
1199 * @return the meta object for class '<em>Vehicle</em>'.
1200 * @see crossingScenario.Vehicle
1201 * @generated
1202 */
1203 EClass getVehicle();
1204
1205 /**
1206 * Returns the meta object for enum '{@link crossingScenario.Orientation <em>Orientation</em>}'.
1207 * <!-- begin-user-doc -->
1208 * <!-- end-user-doc -->
1209 * @return the meta object for enum '<em>Orientation</em>'.
1210 * @see crossingScenario.Orientation
1211 * @generated
1212 */
1213 EEnum getOrientation();
1214
1215 /**
1216 * Returns the meta object for enum '{@link crossingScenario.Size <em>Size</em>}'.
1217 * <!-- begin-user-doc -->
1218 * <!-- end-user-doc -->
1219 * @return the meta object for enum '<em>Size</em>'.
1220 * @see crossingScenario.Size
1221 * @generated
1222 */
1223 EEnum getSize();
1224
1225 /**
1226 * Returns the meta object for enum '{@link crossingScenario.Distance <em>Distance</em>}'.
1227 * <!-- begin-user-doc -->
1228 * <!-- end-user-doc -->
1229 * @return the meta object for enum '<em>Distance</em>'.
1230 * @see crossingScenario.Distance
1231 * @generated
1232 */
1233 EEnum getDistance();
1234
1235 /**
1236 * Returns the factory that creates the instances of the model.
1237 * <!-- begin-user-doc -->
1238 * <!-- end-user-doc -->
1239 * @return the factory that creates the instances of the model.
1240 * @generated
1241 */
1242 CrossingScenarioFactory getCrossingScenarioFactory();
1243
1244 /**
1245 * <!-- begin-user-doc -->
1246 * Defines literals for the meta objects that represent
1247 * <ul>
1248 * <li>each class,</li>
1249 * <li>each feature of each class,</li>
1250 * <li>each operation of each class,</li>
1251 * <li>each enum,</li>
1252 * <li>and each data type</li>
1253 * </ul>
1254 * <!-- end-user-doc -->
1255 * @generated
1256 */
1257 interface Literals {
1258 /**
1259 * The meta object literal for the '{@link crossingScenario.impl.CrossingScenarioImpl <em>Crossing Scenario</em>}' class.
1260 * <!-- begin-user-doc -->
1261 * <!-- end-user-doc -->
1262 * @see crossingScenario.impl.CrossingScenarioImpl
1263 * @see crossingScenario.impl.CrossingScenarioPackageImpl#getCrossingScenario()
1264 * @generated
1265 */
1266 EClass CROSSING_SCENARIO = eINSTANCE.getCrossingScenario();
1267
1268 /**
1269 * The meta object literal for the '<em><b>XSize</b></em>' attribute feature.
1270 * <!-- begin-user-doc -->
1271 * <!-- end-user-doc -->
1272 * @generated
1273 */
1274 EAttribute CROSSING_SCENARIO__XSIZE = eINSTANCE.getCrossingScenario_XSize();
1275
1276 /**
1277 * The meta object literal for the '<em><b>YSize</b></em>' attribute feature.
1278 * <!-- begin-user-doc -->
1279 * <!-- end-user-doc -->
1280 * @generated
1281 */
1282 EAttribute CROSSING_SCENARIO__YSIZE = eINSTANCE.getCrossingScenario_YSize();
1283
1284 /**
1285 * The meta object literal for the '<em><b>Actors</b></em>' containment reference list feature.
1286 * <!-- begin-user-doc -->
1287 * <!-- end-user-doc -->
1288 * @generated
1289 */
1290 EReference CROSSING_SCENARIO__ACTORS = eINSTANCE.getCrossingScenario_Actors();
1291
1292 /**
1293 * The meta object literal for the '<em><b>Lanes</b></em>' containment reference list feature.
1294 * <!-- begin-user-doc -->
1295 * <!-- end-user-doc -->
1296 * @generated
1297 */
1298 EReference CROSSING_SCENARIO__LANES = eINSTANCE.getCrossingScenario_Lanes();
1299
1300 /**
1301 * The meta object literal for the '<em><b>Max Time</b></em>' attribute feature.
1302 * <!-- begin-user-doc -->
1303 * <!-- end-user-doc -->
1304 * @generated
1305 */
1306 EAttribute CROSSING_SCENARIO__MAX_TIME = eINSTANCE.getCrossingScenario_MaxTime();
1307
1308 /**
1309 * The meta object literal for the '{@link crossingScenario.impl.LaneImpl <em>Lane</em>}' class.
1310 * <!-- begin-user-doc -->
1311 * <!-- end-user-doc -->
1312 * @see crossingScenario.impl.LaneImpl
1313 * @see crossingScenario.impl.CrossingScenarioPackageImpl#getLane()
1314 * @generated
1315 */
1316 EClass LANE = eINSTANCE.getLane();
1317
1318 /**
1319 * The meta object literal for the '<em><b>Orientation</b></em>' attribute feature.
1320 * <!-- begin-user-doc -->
1321 * <!-- end-user-doc -->
1322 * @generated
1323 */
1324 EAttribute LANE__ORIENTATION = eINSTANCE.getLane_Orientation();
1325
1326 /**
1327 * The meta object literal for the '<em><b>Width</b></em>' attribute feature.
1328 * <!-- begin-user-doc -->
1329 * <!-- end-user-doc -->
1330 * @generated
1331 */
1332 EAttribute LANE__WIDTH = eINSTANCE.getLane_Width();
1333
1334 /**
1335 * The meta object literal for the '<em><b>Reference Coord</b></em>' attribute feature.
1336 * <!-- begin-user-doc -->
1337 * <!-- end-user-doc -->
1338 * @generated
1339 */
1340 EAttribute LANE__REFERENCE_COORD = eINSTANCE.getLane_ReferenceCoord();
1341
1342 /**
1343 * The meta object literal for the '<em><b>Prev Lane</b></em>' reference feature.
1344 * <!-- begin-user-doc -->
1345 * <!-- end-user-doc -->
1346 * @generated
1347 */
1348 EReference LANE__PREV_LANE = eINSTANCE.getLane_PrevLane();
1349
1350 /**
1351 * The meta object literal for the '<em><b>Actors</b></em>' reference list feature.
1352 * <!-- begin-user-doc -->
1353 * <!-- end-user-doc -->
1354 * @generated
1355 */
1356 EReference LANE__ACTORS = eINSTANCE.getLane_Actors();
1357
1358 /**
1359 * The meta object literal for the '<em><b>Num Width</b></em>' attribute feature.
1360 * <!-- begin-user-doc -->
1361 * <!-- end-user-doc -->
1362 * @generated
1363 */
1364 EAttribute LANE__NUM_WIDTH = eINSTANCE.getLane_NumWidth();
1365
1366 /**
1367 * The meta object literal for the '{@link crossingScenario.impl.ActorImpl <em>Actor</em>}' class.
1368 * <!-- begin-user-doc -->
1369 * <!-- end-user-doc -->
1370 * @see crossingScenario.impl.ActorImpl
1371 * @see crossingScenario.impl.CrossingScenarioPackageImpl#getActor()
1372 * @generated
1373 */
1374 EClass ACTOR = eINSTANCE.getActor();
1375
1376 /**
1377 * The meta object literal for the '<em><b>XPos</b></em>' attribute feature.
1378 * <!-- begin-user-doc -->
1379 * <!-- end-user-doc -->
1380 * @generated
1381 */
1382 EAttribute ACTOR__XPOS = eINSTANCE.getActor_XPos();
1383
1384 /**
1385 * The meta object literal for the '<em><b>YPos</b></em>' attribute feature.
1386 * <!-- begin-user-doc -->
1387 * <!-- end-user-doc -->
1388 * @generated
1389 */
1390 EAttribute ACTOR__YPOS = eINSTANCE.getActor_YPos();
1391
1392 /**
1393 * The meta object literal for the '<em><b>Length</b></em>' attribute feature.
1394 * <!-- begin-user-doc -->
1395 * <!-- end-user-doc -->
1396 * @generated
1397 */
1398 EAttribute ACTOR__LENGTH = eINSTANCE.getActor_Length();
1399
1400 /**
1401 * The meta object literal for the '<em><b>Width</b></em>' attribute feature.
1402 * <!-- begin-user-doc -->
1403 * <!-- end-user-doc -->
1404 * @generated
1405 */
1406 EAttribute ACTOR__WIDTH = eINSTANCE.getActor_Width();
1407
1408 /**
1409 * The meta object literal for the '<em><b>XSpeed</b></em>' attribute feature.
1410 * <!-- begin-user-doc -->
1411 * <!-- end-user-doc -->
1412 * @generated
1413 */
1414 EAttribute ACTOR__XSPEED = eINSTANCE.getActor_XSpeed();
1415
1416 /**
1417 * The meta object literal for the '<em><b>Relations</b></em>' containment reference list feature.
1418 * <!-- begin-user-doc -->
1419 * <!-- end-user-doc -->
1420 * @generated
1421 */
1422 EReference ACTOR__RELATIONS = eINSTANCE.getActor_Relations();
1423
1424 /**
1425 * The meta object literal for the '<em><b>Placed On</b></em>' reference feature.
1426 * <!-- begin-user-doc -->
1427 * <!-- end-user-doc -->
1428 * @generated
1429 */
1430 EReference ACTOR__PLACED_ON = eINSTANCE.getActor_PlacedOn();
1431
1432 /**
1433 * The meta object literal for the '<em><b>YSpeed</b></em>' attribute feature.
1434 * <!-- begin-user-doc -->
1435 * <!-- end-user-doc -->
1436 * @generated
1437 */
1438 EAttribute ACTOR__YSPEED = eINSTANCE.getActor_YSpeed();
1439
1440 /**
1441 * The meta object literal for the '{@link crossingScenario.impl.RelationImpl <em>Relation</em>}' class.
1442 * <!-- begin-user-doc -->
1443 * <!-- end-user-doc -->
1444 * @see crossingScenario.impl.RelationImpl
1445 * @see crossingScenario.impl.CrossingScenarioPackageImpl#getRelation()
1446 * @generated
1447 */
1448 EClass RELATION = eINSTANCE.getRelation();
1449
1450 /**
1451 * The meta object literal for the '<em><b>Target</b></em>' reference feature.
1452 * <!-- begin-user-doc -->
1453 * <!-- end-user-doc -->
1454 * @generated
1455 */
1456 EReference RELATION__TARGET = eINSTANCE.getRelation_Target();
1457
1458 /**
1459 * The meta object literal for the '{@link crossingScenario.impl.SpatialRelationImpl <em>Spatial Relation</em>}' class.
1460 * <!-- begin-user-doc -->
1461 * <!-- end-user-doc -->
1462 * @see crossingScenario.impl.SpatialRelationImpl
1463 * @see crossingScenario.impl.CrossingScenarioPackageImpl#getSpatialRelation()
1464 * @generated
1465 */
1466 EClass SPATIAL_RELATION = eINSTANCE.getSpatialRelation();
1467
1468 /**
1469 * The meta object literal for the '{@link crossingScenario.impl.TemporalRelationImpl <em>Temporal Relation</em>}' class.
1470 * <!-- begin-user-doc -->
1471 * <!-- end-user-doc -->
1472 * @see crossingScenario.impl.TemporalRelationImpl
1473 * @see crossingScenario.impl.CrossingScenarioPackageImpl#getTemporalRelation()
1474 * @generated
1475 */
1476 EClass TEMPORAL_RELATION = eINSTANCE.getTemporalRelation();
1477
1478 /**
1479 * The meta object literal for the '{@link crossingScenario.impl.VisionBlockedImpl <em>Vision Blocked</em>}' class.
1480 * <!-- begin-user-doc -->
1481 * <!-- end-user-doc -->
1482 * @see crossingScenario.impl.VisionBlockedImpl
1483 * @see crossingScenario.impl.CrossingScenarioPackageImpl#getVisionBlocked()
1484 * @generated
1485 */
1486 EClass VISION_BLOCKED = eINSTANCE.getVisionBlocked();
1487
1488 /**
1489 * The meta object literal for the '<em><b>Blocked By</b></em>' reference feature.
1490 * <!-- begin-user-doc -->
1491 * <!-- end-user-doc -->
1492 * @generated
1493 */
1494 EReference VISION_BLOCKED__BLOCKED_BY = eINSTANCE.getVisionBlocked_BlockedBy();
1495
1496 /**
1497 * The meta object literal for the '{@link crossingScenario.impl.SeparationDistanceImpl <em>Separation Distance</em>}' class.
1498 * <!-- begin-user-doc -->
1499 * <!-- end-user-doc -->
1500 * @see crossingScenario.impl.SeparationDistanceImpl
1501 * @see crossingScenario.impl.CrossingScenarioPackageImpl#getSeparationDistance()
1502 * @generated
1503 */
1504 EClass SEPARATION_DISTANCE = eINSTANCE.getSeparationDistance();
1505
1506 /**
1507 * The meta object literal for the '<em><b>Distance</b></em>' attribute feature.
1508 * <!-- begin-user-doc -->
1509 * <!-- end-user-doc -->
1510 * @generated
1511 */
1512 EAttribute SEPARATION_DISTANCE__DISTANCE = eINSTANCE.getSeparationDistance_Distance();
1513
1514 /**
1515 * The meta object literal for the '{@link crossingScenario.impl.CollisionExistsImpl <em>Collision Exists</em>}' class.
1516 * <!-- begin-user-doc -->
1517 * <!-- end-user-doc -->
1518 * @see crossingScenario.impl.CollisionExistsImpl
1519 * @see crossingScenario.impl.CrossingScenarioPackageImpl#getCollisionExists()
1520 * @generated
1521 */
1522 EClass COLLISION_EXISTS = eINSTANCE.getCollisionExists();
1523
1524 /**
1525 * The meta object literal for the '<em><b>Collision Time</b></em>' attribute feature.
1526 * <!-- begin-user-doc -->
1527 * <!-- end-user-doc -->
1528 * @generated
1529 */
1530 EAttribute COLLISION_EXISTS__COLLISION_TIME = eINSTANCE.getCollisionExists_CollisionTime();
1531
1532 /**
1533 * The meta object literal for the '{@link crossingScenario.impl.CollisionDoesNotExistImpl <em>Collision Does Not Exist</em>}' class.
1534 * <!-- begin-user-doc -->
1535 * <!-- end-user-doc -->
1536 * @see crossingScenario.impl.CollisionDoesNotExistImpl
1537 * @see crossingScenario.impl.CrossingScenarioPackageImpl#getCollisionDoesNotExist()
1538 * @generated
1539 */
1540 EClass COLLISION_DOES_NOT_EXIST = eINSTANCE.getCollisionDoesNotExist();
1541
1542 /**
1543 * The meta object literal for the '{@link crossingScenario.impl.PedestrianImpl <em>Pedestrian</em>}' class.
1544 * <!-- begin-user-doc -->
1545 * <!-- end-user-doc -->
1546 * @see crossingScenario.impl.PedestrianImpl
1547 * @see crossingScenario.impl.CrossingScenarioPackageImpl#getPedestrian()
1548 * @generated
1549 */
1550 EClass PEDESTRIAN = eINSTANCE.getPedestrian();
1551
1552 /**
1553 * The meta object literal for the '{@link crossingScenario.impl.VehicleImpl <em>Vehicle</em>}' class.
1554 * <!-- begin-user-doc -->
1555 * <!-- end-user-doc -->
1556 * @see crossingScenario.impl.VehicleImpl
1557 * @see crossingScenario.impl.CrossingScenarioPackageImpl#getVehicle()
1558 * @generated
1559 */
1560 EClass VEHICLE = eINSTANCE.getVehicle();
1561
1562 /**
1563 * The meta object literal for the '{@link crossingScenario.Orientation <em>Orientation</em>}' enum.
1564 * <!-- begin-user-doc -->
1565 * <!-- end-user-doc -->
1566 * @see crossingScenario.Orientation
1567 * @see crossingScenario.impl.CrossingScenarioPackageImpl#getOrientation()
1568 * @generated
1569 */
1570 EEnum ORIENTATION = eINSTANCE.getOrientation();
1571
1572 /**
1573 * The meta object literal for the '{@link crossingScenario.Size <em>Size</em>}' enum.
1574 * <!-- begin-user-doc -->
1575 * <!-- end-user-doc -->
1576 * @see crossingScenario.Size
1577 * @see crossingScenario.impl.CrossingScenarioPackageImpl#getSize()
1578 * @generated
1579 */
1580 EEnum SIZE = eINSTANCE.getSize();
1581
1582 /**
1583 * The meta object literal for the '{@link crossingScenario.Distance <em>Distance</em>}' enum.
1584 * <!-- begin-user-doc -->
1585 * <!-- end-user-doc -->
1586 * @see crossingScenario.Distance
1587 * @see crossingScenario.impl.CrossingScenarioPackageImpl#getDistance()
1588 * @generated
1589 */
1590 EEnum DISTANCE = eINSTANCE.getDistance();
1591
1592 }
1593
1594} //CrossingScenarioPackage
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/Distance.java b/Domains/crossingScenario/ecore-gen/crossingScenario/Distance.java
new file mode 100644
index 00000000..68a0deb6
--- /dev/null
+++ b/Domains/crossingScenario/ecore-gen/crossingScenario/Distance.java
@@ -0,0 +1,232 @@
1/**
2 */
3package crossingScenario;
4
5import java.util.Arrays;
6import java.util.Collections;
7import java.util.List;
8
9import org.eclipse.emf.common.util.Enumerator;
10
11/**
12 * <!-- begin-user-doc -->
13 * A representation of the literals of the enumeration '<em><b>Distance</b></em>',
14 * and utility methods for working with them.
15 * <!-- end-user-doc -->
16 * @see crossingScenario.CrossingScenarioPackage#getDistance()
17 * @model
18 * @generated
19 */
20public enum Distance implements Enumerator {
21 /**
22 * The '<em><b>Near</b></em>' literal object.
23 * <!-- begin-user-doc -->
24 * <!-- end-user-doc -->
25 * @see #NEAR_VALUE
26 * @generated
27 * @ordered
28 */
29 NEAR(0, "Near", "Near"),
30
31 /**
32 * The '<em><b>Medium</b></em>' literal object.
33 * <!-- begin-user-doc -->
34 * <!-- end-user-doc -->
35 * @see #MEDIUM_VALUE
36 * @generated
37 * @ordered
38 */
39 MEDIUM(1, "Medium", "Medium"),
40
41 /**
42 * The '<em><b>Far</b></em>' literal object.
43 * <!-- begin-user-doc -->
44 * <!-- end-user-doc -->
45 * @see #FAR_VALUE
46 * @generated
47 * @ordered
48 */
49 FAR(2, "Far", "Far");
50
51 /**
52 * The '<em><b>Near</b></em>' literal value.
53 * <!-- begin-user-doc -->
54 * <!-- end-user-doc -->
55 * @see #NEAR
56 * @model name="Near"
57 * @generated
58 * @ordered
59 */
60 public static final int NEAR_VALUE = 0;
61
62 /**
63 * The '<em><b>Medium</b></em>' literal value.
64 * <!-- begin-user-doc -->
65 * <!-- end-user-doc -->
66 * @see #MEDIUM
67 * @model name="Medium"
68 * @generated
69 * @ordered
70 */
71 public static final int MEDIUM_VALUE = 1;
72
73 /**
74 * The '<em><b>Far</b></em>' literal value.
75 * <!-- begin-user-doc -->
76 * <!-- end-user-doc -->
77 * @see #FAR
78 * @model name="Far"
79 * @generated
80 * @ordered
81 */
82 public static final int FAR_VALUE = 2;
83
84 /**
85 * An array of all the '<em><b>Distance</b></em>' enumerators.
86 * <!-- begin-user-doc -->
87 * <!-- end-user-doc -->
88 * @generated
89 */
90 private static final Distance[] VALUES_ARRAY =
91 new Distance[] {
92 NEAR,
93 MEDIUM,
94 FAR,
95 };
96
97 /**
98 * A public read-only list of all the '<em><b>Distance</b></em>' enumerators.
99 * <!-- begin-user-doc -->
100 * <!-- end-user-doc -->
101 * @generated
102 */
103 public static final List<Distance> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
104
105 /**
106 * Returns the '<em><b>Distance</b></em>' literal with the specified literal value.
107 * <!-- begin-user-doc -->
108 * <!-- end-user-doc -->
109 * @param literal the literal.
110 * @return the matching enumerator or <code>null</code>.
111 * @generated
112 */
113 public static Distance get(String literal) {
114 for (int i = 0; i < VALUES_ARRAY.length; ++i) {
115 Distance result = VALUES_ARRAY[i];
116 if (result.toString().equals(literal)) {
117 return result;
118 }
119 }
120 return null;
121 }
122
123 /**
124 * Returns the '<em><b>Distance</b></em>' literal with the specified name.
125 * <!-- begin-user-doc -->
126 * <!-- end-user-doc -->
127 * @param name the name.
128 * @return the matching enumerator or <code>null</code>.
129 * @generated
130 */
131 public static Distance getByName(String name) {
132 for (int i = 0; i < VALUES_ARRAY.length; ++i) {
133 Distance result = VALUES_ARRAY[i];
134 if (result.getName().equals(name)) {
135 return result;
136 }
137 }
138 return null;
139 }
140
141 /**
142 * Returns the '<em><b>Distance</b></em>' literal with the specified integer value.
143 * <!-- begin-user-doc -->
144 * <!-- end-user-doc -->
145 * @param value the integer value.
146 * @return the matching enumerator or <code>null</code>.
147 * @generated
148 */
149 public static Distance get(int value) {
150 switch (value) {
151 case NEAR_VALUE: return NEAR;
152 case MEDIUM_VALUE: return MEDIUM;
153 case FAR_VALUE: return FAR;
154 }
155 return null;
156 }
157
158 /**
159 * <!-- begin-user-doc -->
160 * <!-- end-user-doc -->
161 * @generated
162 */
163 private final int value;
164
165 /**
166 * <!-- begin-user-doc -->
167 * <!-- end-user-doc -->
168 * @generated
169 */
170 private final String name;
171
172 /**
173 * <!-- begin-user-doc -->
174 * <!-- end-user-doc -->
175 * @generated
176 */
177 private final String literal;
178
179 /**
180 * Only this class can construct instances.
181 * <!-- begin-user-doc -->
182 * <!-- end-user-doc -->
183 * @generated
184 */
185 private Distance(int value, String name, String literal) {
186 this.value = value;
187 this.name = name;
188 this.literal = literal;
189 }
190
191 /**
192 * <!-- begin-user-doc -->
193 * <!-- end-user-doc -->
194 * @generated
195 */
196 @Override
197 public int getValue() {
198 return value;
199 }
200
201 /**
202 * <!-- begin-user-doc -->
203 * <!-- end-user-doc -->
204 * @generated
205 */
206 @Override
207 public String getName() {
208 return name;
209 }
210
211 /**
212 * <!-- begin-user-doc -->
213 * <!-- end-user-doc -->
214 * @generated
215 */
216 @Override
217 public String getLiteral() {
218 return literal;
219 }
220
221 /**
222 * Returns the literal value of the enumerator, which is its string representation.
223 * <!-- begin-user-doc -->
224 * <!-- end-user-doc -->
225 * @generated
226 */
227 @Override
228 public String toString() {
229 return literal;
230 }
231
232} //Distance
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/Lane.java b/Domains/crossingScenario/ecore-gen/crossingScenario/Lane.java
new file mode 100644
index 00000000..fd04b3c9
--- /dev/null
+++ b/Domains/crossingScenario/ecore-gen/crossingScenario/Lane.java
@@ -0,0 +1,162 @@
1/**
2 */
3package crossingScenario;
4
5import org.eclipse.emf.common.util.EList;
6
7import org.eclipse.emf.ecore.EObject;
8
9/**
10 * <!-- begin-user-doc -->
11 * A representation of the model object '<em><b>Lane</b></em>'.
12 * <!-- end-user-doc -->
13 *
14 * <p>
15 * The following features are supported:
16 * </p>
17 * <ul>
18 * <li>{@link crossingScenario.Lane#getOrientation <em>Orientation</em>}</li>
19 * <li>{@link crossingScenario.Lane#getWidth <em>Width</em>}</li>
20 * <li>{@link crossingScenario.Lane#getReferenceCoord <em>Reference Coord</em>}</li>
21 * <li>{@link crossingScenario.Lane#getPrevLane <em>Prev Lane</em>}</li>
22 * <li>{@link crossingScenario.Lane#getActors <em>Actors</em>}</li>
23 * <li>{@link crossingScenario.Lane#getNumWidth <em>Num Width</em>}</li>
24 * </ul>
25 *
26 * @see crossingScenario.CrossingScenarioPackage#getLane()
27 * @model
28 * @generated
29 */
30public interface Lane extends EObject {
31 /**
32 * Returns the value of the '<em><b>Orientation</b></em>' attribute.
33 * The literals are from the enumeration {@link crossingScenario.Orientation}.
34 * <!-- begin-user-doc -->
35 * <!-- end-user-doc -->
36 * @return the value of the '<em>Orientation</em>' attribute.
37 * @see crossingScenario.Orientation
38 * @see #setOrientation(Orientation)
39 * @see crossingScenario.CrossingScenarioPackage#getLane_Orientation()
40 * @model required="true"
41 * @generated
42 */
43 Orientation getOrientation();
44
45 /**
46 * Sets the value of the '{@link crossingScenario.Lane#getOrientation <em>Orientation</em>}' attribute.
47 * <!-- begin-user-doc -->
48 * <!-- end-user-doc -->
49 * @param value the new value of the '<em>Orientation</em>' attribute.
50 * @see crossingScenario.Orientation
51 * @see #getOrientation()
52 * @generated
53 */
54 void setOrientation(Orientation value);
55
56 /**
57 * Returns the value of the '<em><b>Width</b></em>' attribute.
58 * The literals are from the enumeration {@link crossingScenario.Size}.
59 * <!-- begin-user-doc -->
60 * <!-- end-user-doc -->
61 * @return the value of the '<em>Width</em>' attribute.
62 * @see crossingScenario.Size
63 * @see #setWidth(Size)
64 * @see crossingScenario.CrossingScenarioPackage#getLane_Width()
65 * @model required="true"
66 * @generated
67 */
68 Size getWidth();
69
70 /**
71 * Sets the value of the '{@link crossingScenario.Lane#getWidth <em>Width</em>}' attribute.
72 * <!-- begin-user-doc -->
73 * <!-- end-user-doc -->
74 * @param value the new value of the '<em>Width</em>' attribute.
75 * @see crossingScenario.Size
76 * @see #getWidth()
77 * @generated
78 */
79 void setWidth(Size value);
80
81 /**
82 * Returns the value of the '<em><b>Reference Coord</b></em>' attribute.
83 * <!-- begin-user-doc -->
84 * <!-- end-user-doc -->
85 * @return the value of the '<em>Reference Coord</em>' attribute.
86 * @see #setReferenceCoord(double)
87 * @see crossingScenario.CrossingScenarioPackage#getLane_ReferenceCoord()
88 * @model required="true"
89 * @generated
90 */
91 double getReferenceCoord();
92
93 /**
94 * Sets the value of the '{@link crossingScenario.Lane#getReferenceCoord <em>Reference Coord</em>}' attribute.
95 * <!-- begin-user-doc -->
96 * <!-- end-user-doc -->
97 * @param value the new value of the '<em>Reference Coord</em>' attribute.
98 * @see #getReferenceCoord()
99 * @generated
100 */
101 void setReferenceCoord(double value);
102
103 /**
104 * Returns the value of the '<em><b>Prev Lane</b></em>' reference.
105 * <!-- begin-user-doc -->
106 * <!-- end-user-doc -->
107 * @return the value of the '<em>Prev Lane</em>' reference.
108 * @see #setPrevLane(Lane)
109 * @see crossingScenario.CrossingScenarioPackage#getLane_PrevLane()
110 * @model
111 * @generated
112 */
113 Lane getPrevLane();
114
115 /**
116 * Sets the value of the '{@link crossingScenario.Lane#getPrevLane <em>Prev Lane</em>}' reference.
117 * <!-- begin-user-doc -->
118 * <!-- end-user-doc -->
119 * @param value the new value of the '<em>Prev Lane</em>' reference.
120 * @see #getPrevLane()
121 * @generated
122 */
123 void setPrevLane(Lane value);
124
125 /**
126 * Returns the value of the '<em><b>Actors</b></em>' reference list.
127 * The list contents are of type {@link crossingScenario.Actor}.
128 * It is bidirectional and its opposite is '{@link crossingScenario.Actor#getPlacedOn <em>Placed On</em>}'.
129 * <!-- begin-user-doc -->
130 * <!-- end-user-doc -->
131 * @return the value of the '<em>Actors</em>' reference list.
132 * @see crossingScenario.CrossingScenarioPackage#getLane_Actors()
133 * @see crossingScenario.Actor#getPlacedOn
134 * @model opposite="placedOn"
135 * @generated
136 */
137 EList<Actor> getActors();
138
139 /**
140 * Returns the value of the '<em><b>Num Width</b></em>' attribute.
141 * The default value is <code>"0.0"</code>.
142 * <!-- begin-user-doc -->
143 * <!-- end-user-doc -->
144 * @return the value of the '<em>Num Width</em>' attribute.
145 * @see #setNumWidth(double)
146 * @see crossingScenario.CrossingScenarioPackage#getLane_NumWidth()
147 * @model default="0.0" required="true"
148 * @generated
149 */
150 double getNumWidth();
151
152 /**
153 * Sets the value of the '{@link crossingScenario.Lane#getNumWidth <em>Num Width</em>}' attribute.
154 * <!-- begin-user-doc -->
155 * <!-- end-user-doc -->
156 * @param value the new value of the '<em>Num Width</em>' attribute.
157 * @see #getNumWidth()
158 * @generated
159 */
160 void setNumWidth(double value);
161
162} // Lane
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/Orientation.java b/Domains/crossingScenario/ecore-gen/crossingScenario/Orientation.java
new file mode 100644
index 00000000..a295e683
--- /dev/null
+++ b/Domains/crossingScenario/ecore-gen/crossingScenario/Orientation.java
@@ -0,0 +1,209 @@
1/**
2 */
3package crossingScenario;
4
5import java.util.Arrays;
6import java.util.Collections;
7import java.util.List;
8
9import org.eclipse.emf.common.util.Enumerator;
10
11/**
12 * <!-- begin-user-doc -->
13 * A representation of the literals of the enumeration '<em><b>Orientation</b></em>',
14 * and utility methods for working with them.
15 * <!-- end-user-doc -->
16 * @see crossingScenario.CrossingScenarioPackage#getOrientation()
17 * @model
18 * @generated
19 */
20public enum Orientation implements Enumerator {
21 /**
22 * The '<em><b>Vertical</b></em>' literal object.
23 * <!-- begin-user-doc -->
24 * <!-- end-user-doc -->
25 * @see #VERTICAL_VALUE
26 * @generated
27 * @ordered
28 */
29 VERTICAL(0, "Vertical", "Vertical"),
30
31 /**
32 * The '<em><b>Horizontal</b></em>' literal object.
33 * <!-- begin-user-doc -->
34 * <!-- end-user-doc -->
35 * @see #HORIZONTAL_VALUE
36 * @generated
37 * @ordered
38 */
39 HORIZONTAL(1, "Horizontal", "Horizontal");
40
41 /**
42 * The '<em><b>Vertical</b></em>' literal value.
43 * <!-- begin-user-doc -->
44 * <!-- end-user-doc -->
45 * @see #VERTICAL
46 * @model name="Vertical"
47 * @generated
48 * @ordered
49 */
50 public static final int VERTICAL_VALUE = 0;
51
52 /**
53 * The '<em><b>Horizontal</b></em>' literal value.
54 * <!-- begin-user-doc -->
55 * <!-- end-user-doc -->
56 * @see #HORIZONTAL
57 * @model name="Horizontal"
58 * @generated
59 * @ordered
60 */
61 public static final int HORIZONTAL_VALUE = 1;
62
63 /**
64 * An array of all the '<em><b>Orientation</b></em>' enumerators.
65 * <!-- begin-user-doc -->
66 * <!-- end-user-doc -->
67 * @generated
68 */
69 private static final Orientation[] VALUES_ARRAY =
70 new Orientation[] {
71 VERTICAL,
72 HORIZONTAL,
73 };
74
75 /**
76 * A public read-only list of all the '<em><b>Orientation</b></em>' enumerators.
77 * <!-- begin-user-doc -->
78 * <!-- end-user-doc -->
79 * @generated
80 */
81 public static final List<Orientation> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
82
83 /**
84 * Returns the '<em><b>Orientation</b></em>' literal with the specified literal value.
85 * <!-- begin-user-doc -->
86 * <!-- end-user-doc -->
87 * @param literal the literal.
88 * @return the matching enumerator or <code>null</code>.
89 * @generated
90 */
91 public static Orientation get(String literal) {
92 for (int i = 0; i < VALUES_ARRAY.length; ++i) {
93 Orientation result = VALUES_ARRAY[i];
94 if (result.toString().equals(literal)) {
95 return result;
96 }
97 }
98 return null;
99 }
100
101 /**
102 * Returns the '<em><b>Orientation</b></em>' literal with the specified name.
103 * <!-- begin-user-doc -->
104 * <!-- end-user-doc -->
105 * @param name the name.
106 * @return the matching enumerator or <code>null</code>.
107 * @generated
108 */
109 public static Orientation getByName(String name) {
110 for (int i = 0; i < VALUES_ARRAY.length; ++i) {
111 Orientation result = VALUES_ARRAY[i];
112 if (result.getName().equals(name)) {
113 return result;
114 }
115 }
116 return null;
117 }
118
119 /**
120 * Returns the '<em><b>Orientation</b></em>' literal with the specified integer value.
121 * <!-- begin-user-doc -->
122 * <!-- end-user-doc -->
123 * @param value the integer value.
124 * @return the matching enumerator or <code>null</code>.
125 * @generated
126 */
127 public static Orientation get(int value) {
128 switch (value) {
129 case VERTICAL_VALUE: return VERTICAL;
130 case HORIZONTAL_VALUE: return HORIZONTAL;
131 }
132 return null;
133 }
134
135 /**
136 * <!-- begin-user-doc -->
137 * <!-- end-user-doc -->
138 * @generated
139 */
140 private final int value;
141
142 /**
143 * <!-- begin-user-doc -->
144 * <!-- end-user-doc -->
145 * @generated
146 */
147 private final String name;
148
149 /**
150 * <!-- begin-user-doc -->
151 * <!-- end-user-doc -->
152 * @generated
153 */
154 private final String literal;
155
156 /**
157 * Only this class can construct instances.
158 * <!-- begin-user-doc -->
159 * <!-- end-user-doc -->
160 * @generated
161 */
162 private Orientation(int value, String name, String literal) {
163 this.value = value;
164 this.name = name;
165 this.literal = literal;
166 }
167
168 /**
169 * <!-- begin-user-doc -->
170 * <!-- end-user-doc -->
171 * @generated
172 */
173 @Override
174 public int getValue() {
175 return value;
176 }
177
178 /**
179 * <!-- begin-user-doc -->
180 * <!-- end-user-doc -->
181 * @generated
182 */
183 @Override
184 public String getName() {
185 return name;
186 }
187
188 /**
189 * <!-- begin-user-doc -->
190 * <!-- end-user-doc -->
191 * @generated
192 */
193 @Override
194 public String getLiteral() {
195 return literal;
196 }
197
198 /**
199 * Returns the literal value of the enumerator, which is its string representation.
200 * <!-- begin-user-doc -->
201 * <!-- end-user-doc -->
202 * @generated
203 */
204 @Override
205 public String toString() {
206 return literal;
207 }
208
209} //Orientation
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/Pedestrian.java b/Domains/crossingScenario/ecore-gen/crossingScenario/Pedestrian.java
new file mode 100644
index 00000000..faedd6c4
--- /dev/null
+++ b/Domains/crossingScenario/ecore-gen/crossingScenario/Pedestrian.java
@@ -0,0 +1,17 @@
1/**
2 */
3package crossingScenario;
4
5
6/**
7 * <!-- begin-user-doc -->
8 * A representation of the model object '<em><b>Pedestrian</b></em>'.
9 * <!-- end-user-doc -->
10 *
11 *
12 * @see crossingScenario.CrossingScenarioPackage#getPedestrian()
13 * @model
14 * @generated
15 */
16public interface Pedestrian extends Actor {
17} // Pedestrian
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/Relation.java b/Domains/crossingScenario/ecore-gen/crossingScenario/Relation.java
new file mode 100644
index 00000000..213f4df2
--- /dev/null
+++ b/Domains/crossingScenario/ecore-gen/crossingScenario/Relation.java
@@ -0,0 +1,46 @@
1/**
2 */
3package crossingScenario;
4
5import org.eclipse.emf.ecore.EObject;
6
7/**
8 * <!-- begin-user-doc -->
9 * A representation of the model object '<em><b>Relation</b></em>'.
10 * <!-- end-user-doc -->
11 *
12 * <p>
13 * The following features are supported:
14 * </p>
15 * <ul>
16 * <li>{@link crossingScenario.Relation#getTarget <em>Target</em>}</li>
17 * </ul>
18 *
19 * @see crossingScenario.CrossingScenarioPackage#getRelation()
20 * @model abstract="true"
21 * @generated
22 */
23public interface Relation extends EObject {
24 /**
25 * Returns the value of the '<em><b>Target</b></em>' reference.
26 * <!-- begin-user-doc -->
27 * <!-- end-user-doc -->
28 * @return the value of the '<em>Target</em>' reference.
29 * @see #setTarget(Actor)
30 * @see crossingScenario.CrossingScenarioPackage#getRelation_Target()
31 * @model required="true"
32 * @generated
33 */
34 Actor getTarget();
35
36 /**
37 * Sets the value of the '{@link crossingScenario.Relation#getTarget <em>Target</em>}' reference.
38 * <!-- begin-user-doc -->
39 * <!-- end-user-doc -->
40 * @param value the new value of the '<em>Target</em>' reference.
41 * @see #getTarget()
42 * @generated
43 */
44 void setTarget(Actor value);
45
46} // Relation
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/SeparationDistance.java b/Domains/crossingScenario/ecore-gen/crossingScenario/SeparationDistance.java
new file mode 100644
index 00000000..37e31607
--- /dev/null
+++ b/Domains/crossingScenario/ecore-gen/crossingScenario/SeparationDistance.java
@@ -0,0 +1,48 @@
1/**
2 */
3package crossingScenario;
4
5
6/**
7 * <!-- begin-user-doc -->
8 * A representation of the model object '<em><b>Separation Distance</b></em>'.
9 * <!-- end-user-doc -->
10 *
11 * <p>
12 * The following features are supported:
13 * </p>
14 * <ul>
15 * <li>{@link crossingScenario.SeparationDistance#getDistance <em>Distance</em>}</li>
16 * </ul>
17 *
18 * @see crossingScenario.CrossingScenarioPackage#getSeparationDistance()
19 * @model
20 * @generated
21 */
22public interface SeparationDistance extends SpatialRelation {
23 /**
24 * Returns the value of the '<em><b>Distance</b></em>' attribute.
25 * The literals are from the enumeration {@link crossingScenario.Distance}.
26 * <!-- begin-user-doc -->
27 * <!-- end-user-doc -->
28 * @return the value of the '<em>Distance</em>' attribute.
29 * @see crossingScenario.Distance
30 * @see #setDistance(Distance)
31 * @see crossingScenario.CrossingScenarioPackage#getSeparationDistance_Distance()
32 * @model required="true"
33 * @generated
34 */
35 Distance getDistance();
36
37 /**
38 * Sets the value of the '{@link crossingScenario.SeparationDistance#getDistance <em>Distance</em>}' attribute.
39 * <!-- begin-user-doc -->
40 * <!-- end-user-doc -->
41 * @param value the new value of the '<em>Distance</em>' attribute.
42 * @see crossingScenario.Distance
43 * @see #getDistance()
44 * @generated
45 */
46 void setDistance(Distance value);
47
48} // SeparationDistance
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/Size.java b/Domains/crossingScenario/ecore-gen/crossingScenario/Size.java
new file mode 100644
index 00000000..f4915b2e
--- /dev/null
+++ b/Domains/crossingScenario/ecore-gen/crossingScenario/Size.java
@@ -0,0 +1,232 @@
1/**
2 */
3package crossingScenario;
4
5import java.util.Arrays;
6import java.util.Collections;
7import java.util.List;
8
9import org.eclipse.emf.common.util.Enumerator;
10
11/**
12 * <!-- begin-user-doc -->
13 * A representation of the literals of the enumeration '<em><b>Size</b></em>',
14 * and utility methods for working with them.
15 * <!-- end-user-doc -->
16 * @see crossingScenario.CrossingScenarioPackage#getSize()
17 * @model
18 * @generated
19 */
20public enum Size implements Enumerator {
21 /**
22 * The '<em><b>Small</b></em>' literal object.
23 * <!-- begin-user-doc -->
24 * <!-- end-user-doc -->
25 * @see #SMALL_VALUE
26 * @generated
27 * @ordered
28 */
29 SMALL(0, "Small", "Small"),
30
31 /**
32 * The '<em><b>Medium</b></em>' literal object.
33 * <!-- begin-user-doc -->
34 * <!-- end-user-doc -->
35 * @see #MEDIUM_VALUE
36 * @generated
37 * @ordered
38 */
39 MEDIUM(1, "Medium", "Medium"),
40
41 /**
42 * The '<em><b>Large</b></em>' literal object.
43 * <!-- begin-user-doc -->
44 * <!-- end-user-doc -->
45 * @see #LARGE_VALUE
46 * @generated
47 * @ordered
48 */
49 LARGE(2, "Large", "Large");
50
51 /**
52 * The '<em><b>Small</b></em>' literal value.
53 * <!-- begin-user-doc -->
54 * <!-- end-user-doc -->
55 * @see #SMALL
56 * @model name="Small"
57 * @generated
58 * @ordered
59 */
60 public static final int SMALL_VALUE = 0;
61
62 /**
63 * The '<em><b>Medium</b></em>' literal value.
64 * <!-- begin-user-doc -->
65 * <!-- end-user-doc -->
66 * @see #MEDIUM
67 * @model name="Medium"
68 * @generated
69 * @ordered
70 */
71 public static final int MEDIUM_VALUE = 1;
72
73 /**
74 * The '<em><b>Large</b></em>' literal value.
75 * <!-- begin-user-doc -->
76 * <!-- end-user-doc -->
77 * @see #LARGE
78 * @model name="Large"
79 * @generated
80 * @ordered
81 */
82 public static final int LARGE_VALUE = 2;
83
84 /**
85 * An array of all the '<em><b>Size</b></em>' enumerators.
86 * <!-- begin-user-doc -->
87 * <!-- end-user-doc -->
88 * @generated
89 */
90 private static final Size[] VALUES_ARRAY =
91 new Size[] {
92 SMALL,
93 MEDIUM,
94 LARGE,
95 };
96
97 /**
98 * A public read-only list of all the '<em><b>Size</b></em>' enumerators.
99 * <!-- begin-user-doc -->
100 * <!-- end-user-doc -->
101 * @generated
102 */
103 public static final List<Size> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
104
105 /**
106 * Returns the '<em><b>Size</b></em>' literal with the specified literal value.
107 * <!-- begin-user-doc -->
108 * <!-- end-user-doc -->
109 * @param literal the literal.
110 * @return the matching enumerator or <code>null</code>.
111 * @generated
112 */
113 public static Size get(String literal) {
114 for (int i = 0; i < VALUES_ARRAY.length; ++i) {
115 Size result = VALUES_ARRAY[i];
116 if (result.toString().equals(literal)) {
117 return result;
118 }
119 }
120 return null;
121 }
122
123 /**
124 * Returns the '<em><b>Size</b></em>' literal with the specified name.
125 * <!-- begin-user-doc -->
126 * <!-- end-user-doc -->
127 * @param name the name.
128 * @return the matching enumerator or <code>null</code>.
129 * @generated
130 */
131 public static Size getByName(String name) {
132 for (int i = 0; i < VALUES_ARRAY.length; ++i) {
133 Size result = VALUES_ARRAY[i];
134 if (result.getName().equals(name)) {
135 return result;
136 }
137 }
138 return null;
139 }
140
141 /**
142 * Returns the '<em><b>Size</b></em>' literal with the specified integer value.
143 * <!-- begin-user-doc -->
144 * <!-- end-user-doc -->
145 * @param value the integer value.
146 * @return the matching enumerator or <code>null</code>.
147 * @generated
148 */
149 public static Size get(int value) {
150 switch (value) {
151 case SMALL_VALUE: return SMALL;
152 case MEDIUM_VALUE: return MEDIUM;
153 case LARGE_VALUE: return LARGE;
154 }
155 return null;
156 }
157
158 /**
159 * <!-- begin-user-doc -->
160 * <!-- end-user-doc -->
161 * @generated
162 */
163 private final int value;
164
165 /**
166 * <!-- begin-user-doc -->
167 * <!-- end-user-doc -->
168 * @generated
169 */
170 private final String name;
171
172 /**
173 * <!-- begin-user-doc -->
174 * <!-- end-user-doc -->
175 * @generated
176 */
177 private final String literal;
178
179 /**
180 * Only this class can construct instances.
181 * <!-- begin-user-doc -->
182 * <!-- end-user-doc -->
183 * @generated
184 */
185 private Size(int value, String name, String literal) {
186 this.value = value;
187 this.name = name;
188 this.literal = literal;
189 }
190
191 /**
192 * <!-- begin-user-doc -->
193 * <!-- end-user-doc -->
194 * @generated
195 */
196 @Override
197 public int getValue() {
198 return value;
199 }
200
201 /**
202 * <!-- begin-user-doc -->
203 * <!-- end-user-doc -->
204 * @generated
205 */
206 @Override
207 public String getName() {
208 return name;
209 }
210
211 /**
212 * <!-- begin-user-doc -->
213 * <!-- end-user-doc -->
214 * @generated
215 */
216 @Override
217 public String getLiteral() {
218 return literal;
219 }
220
221 /**
222 * Returns the literal value of the enumerator, which is its string representation.
223 * <!-- begin-user-doc -->
224 * <!-- end-user-doc -->
225 * @generated
226 */
227 @Override
228 public String toString() {
229 return literal;
230 }
231
232} //Size
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/SpatialRelation.java b/Domains/crossingScenario/ecore-gen/crossingScenario/SpatialRelation.java
new file mode 100644
index 00000000..495ac20c
--- /dev/null
+++ b/Domains/crossingScenario/ecore-gen/crossingScenario/SpatialRelation.java
@@ -0,0 +1,17 @@
1/**
2 */
3package crossingScenario;
4
5
6/**
7 * <!-- begin-user-doc -->
8 * A representation of the model object '<em><b>Spatial Relation</b></em>'.
9 * <!-- end-user-doc -->
10 *
11 *
12 * @see crossingScenario.CrossingScenarioPackage#getSpatialRelation()
13 * @model abstract="true"
14 * @generated
15 */
16public interface SpatialRelation extends Relation {
17} // SpatialRelation
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/TemporalRelation.java b/Domains/crossingScenario/ecore-gen/crossingScenario/TemporalRelation.java
new file mode 100644
index 00000000..2f688d4a
--- /dev/null
+++ b/Domains/crossingScenario/ecore-gen/crossingScenario/TemporalRelation.java
@@ -0,0 +1,17 @@
1/**
2 */
3package crossingScenario;
4
5
6/**
7 * <!-- begin-user-doc -->
8 * A representation of the model object '<em><b>Temporal Relation</b></em>'.
9 * <!-- end-user-doc -->
10 *
11 *
12 * @see crossingScenario.CrossingScenarioPackage#getTemporalRelation()
13 * @model abstract="true"
14 * @generated
15 */
16public interface TemporalRelation extends Relation {
17} // TemporalRelation
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/Vehicle.java b/Domains/crossingScenario/ecore-gen/crossingScenario/Vehicle.java
new file mode 100644
index 00000000..7be9e3ba
--- /dev/null
+++ b/Domains/crossingScenario/ecore-gen/crossingScenario/Vehicle.java
@@ -0,0 +1,17 @@
1/**
2 */
3package crossingScenario;
4
5
6/**
7 * <!-- begin-user-doc -->
8 * A representation of the model object '<em><b>Vehicle</b></em>'.
9 * <!-- end-user-doc -->
10 *
11 *
12 * @see crossingScenario.CrossingScenarioPackage#getVehicle()
13 * @model
14 * @generated
15 */
16public interface Vehicle extends Actor {
17} // Vehicle
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/VisionBlocked.java b/Domains/crossingScenario/ecore-gen/crossingScenario/VisionBlocked.java
new file mode 100644
index 00000000..91e075ef
--- /dev/null
+++ b/Domains/crossingScenario/ecore-gen/crossingScenario/VisionBlocked.java
@@ -0,0 +1,45 @@
1/**
2 */
3package crossingScenario;
4
5
6/**
7 * <!-- begin-user-doc -->
8 * A representation of the model object '<em><b>Vision Blocked</b></em>'.
9 * <!-- end-user-doc -->
10 *
11 * <p>
12 * The following features are supported:
13 * </p>
14 * <ul>
15 * <li>{@link crossingScenario.VisionBlocked#getBlockedBy <em>Blocked By</em>}</li>
16 * </ul>
17 *
18 * @see crossingScenario.CrossingScenarioPackage#getVisionBlocked()
19 * @model
20 * @generated
21 */
22public interface VisionBlocked extends SpatialRelation {
23 /**
24 * Returns the value of the '<em><b>Blocked By</b></em>' reference.
25 * <!-- begin-user-doc -->
26 * <!-- end-user-doc -->
27 * @return the value of the '<em>Blocked By</em>' reference.
28 * @see #setBlockedBy(Actor)
29 * @see crossingScenario.CrossingScenarioPackage#getVisionBlocked_BlockedBy()
30 * @model required="true"
31 * @generated
32 */
33 Actor getBlockedBy();
34
35 /**
36 * Sets the value of the '{@link crossingScenario.VisionBlocked#getBlockedBy <em>Blocked By</em>}' reference.
37 * <!-- begin-user-doc -->
38 * <!-- end-user-doc -->
39 * @param value the new value of the '<em>Blocked By</em>' reference.
40 * @see #getBlockedBy()
41 * @generated
42 */
43 void setBlockedBy(Actor value);
44
45} // VisionBlocked
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/impl/ActorImpl.java b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/ActorImpl.java
new file mode 100644
index 00000000..46e60ec2
--- /dev/null
+++ b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/ActorImpl.java
@@ -0,0 +1,608 @@
1/**
2 */
3package crossingScenario.impl;
4
5import crossingScenario.Actor;
6import crossingScenario.CrossingScenarioPackage;
7import crossingScenario.Lane;
8import crossingScenario.Relation;
9
10import java.util.Collection;
11
12import org.eclipse.emf.common.notify.Notification;
13import org.eclipse.emf.common.notify.NotificationChain;
14
15import org.eclipse.emf.common.util.EList;
16
17import org.eclipse.emf.ecore.EClass;
18import org.eclipse.emf.ecore.InternalEObject;
19
20import org.eclipse.emf.ecore.impl.ENotificationImpl;
21import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
22
23import org.eclipse.emf.ecore.util.EObjectContainmentEList;
24import org.eclipse.emf.ecore.util.InternalEList;
25
26/**
27 * <!-- begin-user-doc -->
28 * An implementation of the model object '<em><b>Actor</b></em>'.
29 * <!-- end-user-doc -->
30 * <p>
31 * The following features are implemented:
32 * </p>
33 * <ul>
34 * <li>{@link crossingScenario.impl.ActorImpl#getXPos <em>XPos</em>}</li>
35 * <li>{@link crossingScenario.impl.ActorImpl#getYPos <em>YPos</em>}</li>
36 * <li>{@link crossingScenario.impl.ActorImpl#getLength <em>Length</em>}</li>
37 * <li>{@link crossingScenario.impl.ActorImpl#getWidth <em>Width</em>}</li>
38 * <li>{@link crossingScenario.impl.ActorImpl#getXSpeed <em>XSpeed</em>}</li>
39 * <li>{@link crossingScenario.impl.ActorImpl#getRelations <em>Relations</em>}</li>
40 * <li>{@link crossingScenario.impl.ActorImpl#getPlacedOn <em>Placed On</em>}</li>
41 * <li>{@link crossingScenario.impl.ActorImpl#getYSpeed <em>YSpeed</em>}</li>
42 * </ul>
43 *
44 * @generated
45 */
46public abstract class ActorImpl extends MinimalEObjectImpl.Container implements Actor {
47 /**
48 * The default value of the '{@link #getXPos() <em>XPos</em>}' attribute.
49 * <!-- begin-user-doc -->
50 * <!-- end-user-doc -->
51 * @see #getXPos()
52 * @generated
53 * @ordered
54 */
55 protected static final double XPOS_EDEFAULT = 0.0;
56
57 /**
58 * The cached value of the '{@link #getXPos() <em>XPos</em>}' attribute.
59 * <!-- begin-user-doc -->
60 * <!-- end-user-doc -->
61 * @see #getXPos()
62 * @generated
63 * @ordered
64 */
65 protected double xPos = XPOS_EDEFAULT;
66
67 /**
68 * The default value of the '{@link #getYPos() <em>YPos</em>}' attribute.
69 * <!-- begin-user-doc -->
70 * <!-- end-user-doc -->
71 * @see #getYPos()
72 * @generated
73 * @ordered
74 */
75 protected static final double YPOS_EDEFAULT = 0.0;
76
77 /**
78 * The cached value of the '{@link #getYPos() <em>YPos</em>}' attribute.
79 * <!-- begin-user-doc -->
80 * <!-- end-user-doc -->
81 * @see #getYPos()
82 * @generated
83 * @ordered
84 */
85 protected double yPos = YPOS_EDEFAULT;
86
87 /**
88 * The default value of the '{@link #getLength() <em>Length</em>}' attribute.
89 * <!-- begin-user-doc -->
90 * <!-- end-user-doc -->
91 * @see #getLength()
92 * @generated
93 * @ordered
94 */
95 protected static final double LENGTH_EDEFAULT = 0.0;
96
97 /**
98 * The cached value of the '{@link #getLength() <em>Length</em>}' attribute.
99 * <!-- begin-user-doc -->
100 * <!-- end-user-doc -->
101 * @see #getLength()
102 * @generated
103 * @ordered
104 */
105 protected double length = LENGTH_EDEFAULT;
106
107 /**
108 * The default value of the '{@link #getWidth() <em>Width</em>}' attribute.
109 * <!-- begin-user-doc -->
110 * <!-- end-user-doc -->
111 * @see #getWidth()
112 * @generated
113 * @ordered
114 */
115 protected static final double WIDTH_EDEFAULT = 0.0;
116
117 /**
118 * The cached value of the '{@link #getWidth() <em>Width</em>}' attribute.
119 * <!-- begin-user-doc -->
120 * <!-- end-user-doc -->
121 * @see #getWidth()
122 * @generated
123 * @ordered
124 */
125 protected double width = WIDTH_EDEFAULT;
126
127 /**
128 * The default value of the '{@link #getXSpeed() <em>XSpeed</em>}' attribute.
129 * <!-- begin-user-doc -->
130 * <!-- end-user-doc -->
131 * @see #getXSpeed()
132 * @generated
133 * @ordered
134 */
135 protected static final double XSPEED_EDEFAULT = 0.0;
136
137 /**
138 * The cached value of the '{@link #getXSpeed() <em>XSpeed</em>}' attribute.
139 * <!-- begin-user-doc -->
140 * <!-- end-user-doc -->
141 * @see #getXSpeed()
142 * @generated
143 * @ordered
144 */
145 protected double xSpeed = XSPEED_EDEFAULT;
146
147 /**
148 * The cached value of the '{@link #getRelations() <em>Relations</em>}' containment reference list.
149 * <!-- begin-user-doc -->
150 * <!-- end-user-doc -->
151 * @see #getRelations()
152 * @generated
153 * @ordered
154 */
155 protected EList<Relation> relations;
156
157 /**
158 * The cached value of the '{@link #getPlacedOn() <em>Placed On</em>}' reference.
159 * <!-- begin-user-doc -->
160 * <!-- end-user-doc -->
161 * @see #getPlacedOn()
162 * @generated
163 * @ordered
164 */
165 protected Lane placedOn;
166
167 /**
168 * The default value of the '{@link #getYSpeed() <em>YSpeed</em>}' attribute.
169 * <!-- begin-user-doc -->
170 * <!-- end-user-doc -->
171 * @see #getYSpeed()
172 * @generated
173 * @ordered
174 */
175 protected static final double YSPEED_EDEFAULT = 0.0;
176
177 /**
178 * The cached value of the '{@link #getYSpeed() <em>YSpeed</em>}' attribute.
179 * <!-- begin-user-doc -->
180 * <!-- end-user-doc -->
181 * @see #getYSpeed()
182 * @generated
183 * @ordered
184 */
185 protected double ySpeed = YSPEED_EDEFAULT;
186
187 /**
188 * <!-- begin-user-doc -->
189 * <!-- end-user-doc -->
190 * @generated
191 */
192 protected ActorImpl() {
193 super();
194 }
195
196 /**
197 * <!-- begin-user-doc -->
198 * <!-- end-user-doc -->
199 * @generated
200 */
201 @Override
202 protected EClass eStaticClass() {
203 return CrossingScenarioPackage.Literals.ACTOR;
204 }
205
206 /**
207 * <!-- begin-user-doc -->
208 * <!-- end-user-doc -->
209 * @generated
210 */
211 @Override
212 public double getXPos() {
213 return xPos;
214 }
215
216 /**
217 * <!-- begin-user-doc -->
218 * <!-- end-user-doc -->
219 * @generated
220 */
221 @Override
222 public void setXPos(double newXPos) {
223 double oldXPos = xPos;
224 xPos = newXPos;
225 if (eNotificationRequired())
226 eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.ACTOR__XPOS, oldXPos, xPos));
227 }
228
229 /**
230 * <!-- begin-user-doc -->
231 * <!-- end-user-doc -->
232 * @generated
233 */
234 @Override
235 public double getYPos() {
236 return yPos;
237 }
238
239 /**
240 * <!-- begin-user-doc -->
241 * <!-- end-user-doc -->
242 * @generated
243 */
244 @Override
245 public void setYPos(double newYPos) {
246 double oldYPos = yPos;
247 yPos = newYPos;
248 if (eNotificationRequired())
249 eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.ACTOR__YPOS, oldYPos, yPos));
250 }
251
252 /**
253 * <!-- begin-user-doc -->
254 * <!-- end-user-doc -->
255 * @generated
256 */
257 @Override
258 public double getLength() {
259 return length;
260 }
261
262 /**
263 * <!-- begin-user-doc -->
264 * <!-- end-user-doc -->
265 * @generated
266 */
267 @Override
268 public void setLength(double newLength) {
269 double oldLength = length;
270 length = newLength;
271 if (eNotificationRequired())
272 eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.ACTOR__LENGTH, oldLength, length));
273 }
274
275 /**
276 * <!-- begin-user-doc -->
277 * <!-- end-user-doc -->
278 * @generated
279 */
280 @Override
281 public double getWidth() {
282 return width;
283 }
284
285 /**
286 * <!-- begin-user-doc -->
287 * <!-- end-user-doc -->
288 * @generated
289 */
290 @Override
291 public void setWidth(double newWidth) {
292 double oldWidth = width;
293 width = newWidth;
294 if (eNotificationRequired())
295 eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.ACTOR__WIDTH, oldWidth, width));
296 }
297
298 /**
299 * <!-- begin-user-doc -->
300 * <!-- end-user-doc -->
301 * @generated
302 */
303 @Override
304 public double getXSpeed() {
305 return xSpeed;
306 }
307
308 /**
309 * <!-- begin-user-doc -->
310 * <!-- end-user-doc -->
311 * @generated
312 */
313 @Override
314 public void setXSpeed(double newXSpeed) {
315 double oldXSpeed = xSpeed;
316 xSpeed = newXSpeed;
317 if (eNotificationRequired())
318 eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.ACTOR__XSPEED, oldXSpeed, xSpeed));
319 }
320
321 /**
322 * <!-- begin-user-doc -->
323 * <!-- end-user-doc -->
324 * @generated
325 */
326 @Override
327 public EList<Relation> getRelations() {
328 if (relations == null) {
329 relations = new EObjectContainmentEList<Relation>(Relation.class, this, CrossingScenarioPackage.ACTOR__RELATIONS);
330 }
331 return relations;
332 }
333
334 /**
335 * <!-- begin-user-doc -->
336 * <!-- end-user-doc -->
337 * @generated
338 */
339 @Override
340 public Lane getPlacedOn() {
341 if (placedOn != null && placedOn.eIsProxy()) {
342 InternalEObject oldPlacedOn = (InternalEObject)placedOn;
343 placedOn = (Lane)eResolveProxy(oldPlacedOn);
344 if (placedOn != oldPlacedOn) {
345 if (eNotificationRequired())
346 eNotify(new ENotificationImpl(this, Notification.RESOLVE, CrossingScenarioPackage.ACTOR__PLACED_ON, oldPlacedOn, placedOn));
347 }
348 }
349 return placedOn;
350 }
351
352 /**
353 * <!-- begin-user-doc -->
354 * <!-- end-user-doc -->
355 * @generated
356 */
357 public Lane basicGetPlacedOn() {
358 return placedOn;
359 }
360
361 /**
362 * <!-- begin-user-doc -->
363 * <!-- end-user-doc -->
364 * @generated
365 */
366 public NotificationChain basicSetPlacedOn(Lane newPlacedOn, NotificationChain msgs) {
367 Lane oldPlacedOn = placedOn;
368 placedOn = newPlacedOn;
369 if (eNotificationRequired()) {
370 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.ACTOR__PLACED_ON, oldPlacedOn, newPlacedOn);
371 if (msgs == null) msgs = notification; else msgs.add(notification);
372 }
373 return msgs;
374 }
375
376 /**
377 * <!-- begin-user-doc -->
378 * <!-- end-user-doc -->
379 * @generated
380 */
381 @Override
382 public void setPlacedOn(Lane newPlacedOn) {
383 if (newPlacedOn != placedOn) {
384 NotificationChain msgs = null;
385 if (placedOn != null)
386 msgs = ((InternalEObject)placedOn).eInverseRemove(this, CrossingScenarioPackage.LANE__ACTORS, Lane.class, msgs);
387 if (newPlacedOn != null)
388 msgs = ((InternalEObject)newPlacedOn).eInverseAdd(this, CrossingScenarioPackage.LANE__ACTORS, Lane.class, msgs);
389 msgs = basicSetPlacedOn(newPlacedOn, msgs);
390 if (msgs != null) msgs.dispatch();
391 }
392 else if (eNotificationRequired())
393 eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.ACTOR__PLACED_ON, newPlacedOn, newPlacedOn));
394 }
395
396 /**
397 * <!-- begin-user-doc -->
398 * <!-- end-user-doc -->
399 * @generated
400 */
401 @Override
402 public double getYSpeed() {
403 return ySpeed;
404 }
405
406 /**
407 * <!-- begin-user-doc -->
408 * <!-- end-user-doc -->
409 * @generated
410 */
411 @Override
412 public void setYSpeed(double newYSpeed) {
413 double oldYSpeed = ySpeed;
414 ySpeed = newYSpeed;
415 if (eNotificationRequired())
416 eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.ACTOR__YSPEED, oldYSpeed, ySpeed));
417 }
418
419 /**
420 * <!-- begin-user-doc -->
421 * <!-- end-user-doc -->
422 * @generated
423 */
424 @Override
425 public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
426 switch (featureID) {
427 case CrossingScenarioPackage.ACTOR__PLACED_ON:
428 if (placedOn != null)
429 msgs = ((InternalEObject)placedOn).eInverseRemove(this, CrossingScenarioPackage.LANE__ACTORS, Lane.class, msgs);
430 return basicSetPlacedOn((Lane)otherEnd, msgs);
431 }
432 return super.eInverseAdd(otherEnd, featureID, msgs);
433 }
434
435 /**
436 * <!-- begin-user-doc -->
437 * <!-- end-user-doc -->
438 * @generated
439 */
440 @Override
441 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
442 switch (featureID) {
443 case CrossingScenarioPackage.ACTOR__RELATIONS:
444 return ((InternalEList<?>)getRelations()).basicRemove(otherEnd, msgs);
445 case CrossingScenarioPackage.ACTOR__PLACED_ON:
446 return basicSetPlacedOn(null, msgs);
447 }
448 return super.eInverseRemove(otherEnd, featureID, msgs);
449 }
450
451 /**
452 * <!-- begin-user-doc -->
453 * <!-- end-user-doc -->
454 * @generated
455 */
456 @Override
457 public Object eGet(int featureID, boolean resolve, boolean coreType) {
458 switch (featureID) {
459 case CrossingScenarioPackage.ACTOR__XPOS:
460 return getXPos();
461 case CrossingScenarioPackage.ACTOR__YPOS:
462 return getYPos();
463 case CrossingScenarioPackage.ACTOR__LENGTH:
464 return getLength();
465 case CrossingScenarioPackage.ACTOR__WIDTH:
466 return getWidth();
467 case CrossingScenarioPackage.ACTOR__XSPEED:
468 return getXSpeed();
469 case CrossingScenarioPackage.ACTOR__RELATIONS:
470 return getRelations();
471 case CrossingScenarioPackage.ACTOR__PLACED_ON:
472 if (resolve) return getPlacedOn();
473 return basicGetPlacedOn();
474 case CrossingScenarioPackage.ACTOR__YSPEED:
475 return getYSpeed();
476 }
477 return super.eGet(featureID, resolve, coreType);
478 }
479
480 /**
481 * <!-- begin-user-doc -->
482 * <!-- end-user-doc -->
483 * @generated
484 */
485 @SuppressWarnings("unchecked")
486 @Override
487 public void eSet(int featureID, Object newValue) {
488 switch (featureID) {
489 case CrossingScenarioPackage.ACTOR__XPOS:
490 setXPos((Double)newValue);
491 return;
492 case CrossingScenarioPackage.ACTOR__YPOS:
493 setYPos((Double)newValue);
494 return;
495 case CrossingScenarioPackage.ACTOR__LENGTH:
496 setLength((Double)newValue);
497 return;
498 case CrossingScenarioPackage.ACTOR__WIDTH:
499 setWidth((Double)newValue);
500 return;
501 case CrossingScenarioPackage.ACTOR__XSPEED:
502 setXSpeed((Double)newValue);
503 return;
504 case CrossingScenarioPackage.ACTOR__RELATIONS:
505 getRelations().clear();
506 getRelations().addAll((Collection<? extends Relation>)newValue);
507 return;
508 case CrossingScenarioPackage.ACTOR__PLACED_ON:
509 setPlacedOn((Lane)newValue);
510 return;
511 case CrossingScenarioPackage.ACTOR__YSPEED:
512 setYSpeed((Double)newValue);
513 return;
514 }
515 super.eSet(featureID, newValue);
516 }
517
518 /**
519 * <!-- begin-user-doc -->
520 * <!-- end-user-doc -->
521 * @generated
522 */
523 @Override
524 public void eUnset(int featureID) {
525 switch (featureID) {
526 case CrossingScenarioPackage.ACTOR__XPOS:
527 setXPos(XPOS_EDEFAULT);
528 return;
529 case CrossingScenarioPackage.ACTOR__YPOS:
530 setYPos(YPOS_EDEFAULT);
531 return;
532 case CrossingScenarioPackage.ACTOR__LENGTH:
533 setLength(LENGTH_EDEFAULT);
534 return;
535 case CrossingScenarioPackage.ACTOR__WIDTH:
536 setWidth(WIDTH_EDEFAULT);
537 return;
538 case CrossingScenarioPackage.ACTOR__XSPEED:
539 setXSpeed(XSPEED_EDEFAULT);
540 return;
541 case CrossingScenarioPackage.ACTOR__RELATIONS:
542 getRelations().clear();
543 return;
544 case CrossingScenarioPackage.ACTOR__PLACED_ON:
545 setPlacedOn((Lane)null);
546 return;
547 case CrossingScenarioPackage.ACTOR__YSPEED:
548 setYSpeed(YSPEED_EDEFAULT);
549 return;
550 }
551 super.eUnset(featureID);
552 }
553
554 /**
555 * <!-- begin-user-doc -->
556 * <!-- end-user-doc -->
557 * @generated
558 */
559 @Override
560 public boolean eIsSet(int featureID) {
561 switch (featureID) {
562 case CrossingScenarioPackage.ACTOR__XPOS:
563 return xPos != XPOS_EDEFAULT;
564 case CrossingScenarioPackage.ACTOR__YPOS:
565 return yPos != YPOS_EDEFAULT;
566 case CrossingScenarioPackage.ACTOR__LENGTH:
567 return length != LENGTH_EDEFAULT;
568 case CrossingScenarioPackage.ACTOR__WIDTH:
569 return width != WIDTH_EDEFAULT;
570 case CrossingScenarioPackage.ACTOR__XSPEED:
571 return xSpeed != XSPEED_EDEFAULT;
572 case CrossingScenarioPackage.ACTOR__RELATIONS:
573 return relations != null && !relations.isEmpty();
574 case CrossingScenarioPackage.ACTOR__PLACED_ON:
575 return placedOn != null;
576 case CrossingScenarioPackage.ACTOR__YSPEED:
577 return ySpeed != YSPEED_EDEFAULT;
578 }
579 return super.eIsSet(featureID);
580 }
581
582 /**
583 * <!-- begin-user-doc -->
584 * <!-- end-user-doc -->
585 * @generated
586 */
587 @Override
588 public String toString() {
589 if (eIsProxy()) return super.toString();
590
591 StringBuilder result = new StringBuilder(super.toString());
592 result.append(" (xPos: ");
593 result.append(xPos);
594 result.append(", yPos: ");
595 result.append(yPos);
596 result.append(", length: ");
597 result.append(length);
598 result.append(", width: ");
599 result.append(width);
600 result.append(", xSpeed: ");
601 result.append(xSpeed);
602 result.append(", ySpeed: ");
603 result.append(ySpeed);
604 result.append(')');
605 return result.toString();
606 }
607
608} //ActorImpl
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/impl/CollisionDoesNotExistImpl.java b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/CollisionDoesNotExistImpl.java
new file mode 100644
index 00000000..7cdcb6ac
--- /dev/null
+++ b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/CollisionDoesNotExistImpl.java
@@ -0,0 +1,37 @@
1/**
2 */
3package crossingScenario.impl;
4
5import crossingScenario.CollisionDoesNotExist;
6import crossingScenario.CrossingScenarioPackage;
7
8import org.eclipse.emf.ecore.EClass;
9
10/**
11 * <!-- begin-user-doc -->
12 * An implementation of the model object '<em><b>Collision Does Not Exist</b></em>'.
13 * <!-- end-user-doc -->
14 *
15 * @generated
16 */
17public class CollisionDoesNotExistImpl extends TemporalRelationImpl implements CollisionDoesNotExist {
18 /**
19 * <!-- begin-user-doc -->
20 * <!-- end-user-doc -->
21 * @generated
22 */
23 protected CollisionDoesNotExistImpl() {
24 super();
25 }
26
27 /**
28 * <!-- begin-user-doc -->
29 * <!-- end-user-doc -->
30 * @generated
31 */
32 @Override
33 protected EClass eStaticClass() {
34 return CrossingScenarioPackage.Literals.COLLISION_DOES_NOT_EXIST;
35 }
36
37} //CollisionDoesNotExistImpl
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/impl/CollisionExistsImpl.java b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/CollisionExistsImpl.java
new file mode 100644
index 00000000..9fd2c2a9
--- /dev/null
+++ b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/CollisionExistsImpl.java
@@ -0,0 +1,164 @@
1/**
2 */
3package crossingScenario.impl;
4
5import crossingScenario.CollisionExists;
6import crossingScenario.CrossingScenarioPackage;
7
8import org.eclipse.emf.common.notify.Notification;
9
10import org.eclipse.emf.ecore.EClass;
11
12import org.eclipse.emf.ecore.impl.ENotificationImpl;
13
14/**
15 * <!-- begin-user-doc -->
16 * An implementation of the model object '<em><b>Collision Exists</b></em>'.
17 * <!-- end-user-doc -->
18 * <p>
19 * The following features are implemented:
20 * </p>
21 * <ul>
22 * <li>{@link crossingScenario.impl.CollisionExistsImpl#getCollisionTime <em>Collision Time</em>}</li>
23 * </ul>
24 *
25 * @generated
26 */
27public class CollisionExistsImpl extends TemporalRelationImpl implements CollisionExists {
28 /**
29 * The default value of the '{@link #getCollisionTime() <em>Collision Time</em>}' attribute.
30 * <!-- begin-user-doc -->
31 * <!-- end-user-doc -->
32 * @see #getCollisionTime()
33 * @generated
34 * @ordered
35 */
36 protected static final double COLLISION_TIME_EDEFAULT = 0.0;
37
38 /**
39 * The cached value of the '{@link #getCollisionTime() <em>Collision Time</em>}' attribute.
40 * <!-- begin-user-doc -->
41 * <!-- end-user-doc -->
42 * @see #getCollisionTime()
43 * @generated
44 * @ordered
45 */
46 protected double collisionTime = COLLISION_TIME_EDEFAULT;
47
48 /**
49 * <!-- begin-user-doc -->
50 * <!-- end-user-doc -->
51 * @generated
52 */
53 protected CollisionExistsImpl() {
54 super();
55 }
56
57 /**
58 * <!-- begin-user-doc -->
59 * <!-- end-user-doc -->
60 * @generated
61 */
62 @Override
63 protected EClass eStaticClass() {
64 return CrossingScenarioPackage.Literals.COLLISION_EXISTS;
65 }
66
67 /**
68 * <!-- begin-user-doc -->
69 * <!-- end-user-doc -->
70 * @generated
71 */
72 @Override
73 public double getCollisionTime() {
74 return collisionTime;
75 }
76
77 /**
78 * <!-- begin-user-doc -->
79 * <!-- end-user-doc -->
80 * @generated
81 */
82 @Override
83 public void setCollisionTime(double newCollisionTime) {
84 double oldCollisionTime = collisionTime;
85 collisionTime = newCollisionTime;
86 if (eNotificationRequired())
87 eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.COLLISION_EXISTS__COLLISION_TIME, oldCollisionTime, collisionTime));
88 }
89
90 /**
91 * <!-- begin-user-doc -->
92 * <!-- end-user-doc -->
93 * @generated
94 */
95 @Override
96 public Object eGet(int featureID, boolean resolve, boolean coreType) {
97 switch (featureID) {
98 case CrossingScenarioPackage.COLLISION_EXISTS__COLLISION_TIME:
99 return getCollisionTime();
100 }
101 return super.eGet(featureID, resolve, coreType);
102 }
103
104 /**
105 * <!-- begin-user-doc -->
106 * <!-- end-user-doc -->
107 * @generated
108 */
109 @Override
110 public void eSet(int featureID, Object newValue) {
111 switch (featureID) {
112 case CrossingScenarioPackage.COLLISION_EXISTS__COLLISION_TIME:
113 setCollisionTime((Double)newValue);
114 return;
115 }
116 super.eSet(featureID, newValue);
117 }
118
119 /**
120 * <!-- begin-user-doc -->
121 * <!-- end-user-doc -->
122 * @generated
123 */
124 @Override
125 public void eUnset(int featureID) {
126 switch (featureID) {
127 case CrossingScenarioPackage.COLLISION_EXISTS__COLLISION_TIME:
128 setCollisionTime(COLLISION_TIME_EDEFAULT);
129 return;
130 }
131 super.eUnset(featureID);
132 }
133
134 /**
135 * <!-- begin-user-doc -->
136 * <!-- end-user-doc -->
137 * @generated
138 */
139 @Override
140 public boolean eIsSet(int featureID) {
141 switch (featureID) {
142 case CrossingScenarioPackage.COLLISION_EXISTS__COLLISION_TIME:
143 return collisionTime != COLLISION_TIME_EDEFAULT;
144 }
145 return super.eIsSet(featureID);
146 }
147
148 /**
149 * <!-- begin-user-doc -->
150 * <!-- end-user-doc -->
151 * @generated
152 */
153 @Override
154 public String toString() {
155 if (eIsProxy()) return super.toString();
156
157 StringBuilder result = new StringBuilder(super.toString());
158 result.append(" (collisionTime: ");
159 result.append(collisionTime);
160 result.append(')');
161 return result.toString();
162 }
163
164} //CollisionExistsImpl
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/impl/CrossingScenarioFactoryImpl.java b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/CrossingScenarioFactoryImpl.java
new file mode 100644
index 00000000..6e5bab16
--- /dev/null
+++ b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/CrossingScenarioFactoryImpl.java
@@ -0,0 +1,280 @@
1/**
2 */
3package crossingScenario.impl;
4
5import crossingScenario.*;
6
7import org.eclipse.emf.ecore.EClass;
8import org.eclipse.emf.ecore.EDataType;
9import org.eclipse.emf.ecore.EObject;
10import org.eclipse.emf.ecore.EPackage;
11
12import org.eclipse.emf.ecore.impl.EFactoryImpl;
13
14import org.eclipse.emf.ecore.plugin.EcorePlugin;
15
16/**
17 * <!-- begin-user-doc -->
18 * An implementation of the model <b>Factory</b>.
19 * <!-- end-user-doc -->
20 * @generated
21 */
22public class CrossingScenarioFactoryImpl extends EFactoryImpl implements CrossingScenarioFactory {
23 /**
24 * Creates the default factory implementation.
25 * <!-- begin-user-doc -->
26 * <!-- end-user-doc -->
27 * @generated
28 */
29 public static CrossingScenarioFactory init() {
30 try {
31 CrossingScenarioFactory theCrossingScenarioFactory = (CrossingScenarioFactory)EPackage.Registry.INSTANCE.getEFactory(CrossingScenarioPackage.eNS_URI);
32 if (theCrossingScenarioFactory != null) {
33 return theCrossingScenarioFactory;
34 }
35 }
36 catch (Exception exception) {
37 EcorePlugin.INSTANCE.log(exception);
38 }
39 return new CrossingScenarioFactoryImpl();
40 }
41
42 /**
43 * Creates an instance of the factory.
44 * <!-- begin-user-doc -->
45 * <!-- end-user-doc -->
46 * @generated
47 */
48 public CrossingScenarioFactoryImpl() {
49 super();
50 }
51
52 /**
53 * <!-- begin-user-doc -->
54 * <!-- end-user-doc -->
55 * @generated
56 */
57 @Override
58 public EObject create(EClass eClass) {
59 switch (eClass.getClassifierID()) {
60 case CrossingScenarioPackage.CROSSING_SCENARIO: return createCrossingScenario();
61 case CrossingScenarioPackage.LANE: return createLane();
62 case CrossingScenarioPackage.VISION_BLOCKED: return createVisionBlocked();
63 case CrossingScenarioPackage.SEPARATION_DISTANCE: return createSeparationDistance();
64 case CrossingScenarioPackage.COLLISION_EXISTS: return createCollisionExists();
65 case CrossingScenarioPackage.COLLISION_DOES_NOT_EXIST: return createCollisionDoesNotExist();
66 case CrossingScenarioPackage.PEDESTRIAN: return createPedestrian();
67 case CrossingScenarioPackage.VEHICLE: return createVehicle();
68 default:
69 throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
70 }
71 }
72
73 /**
74 * <!-- begin-user-doc -->
75 * <!-- end-user-doc -->
76 * @generated
77 */
78 @Override
79 public Object createFromString(EDataType eDataType, String initialValue) {
80 switch (eDataType.getClassifierID()) {
81 case CrossingScenarioPackage.ORIENTATION:
82 return createOrientationFromString(eDataType, initialValue);
83 case CrossingScenarioPackage.SIZE:
84 return createSizeFromString(eDataType, initialValue);
85 case CrossingScenarioPackage.DISTANCE:
86 return createDistanceFromString(eDataType, initialValue);
87 default:
88 throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
89 }
90 }
91
92 /**
93 * <!-- begin-user-doc -->
94 * <!-- end-user-doc -->
95 * @generated
96 */
97 @Override
98 public String convertToString(EDataType eDataType, Object instanceValue) {
99 switch (eDataType.getClassifierID()) {
100 case CrossingScenarioPackage.ORIENTATION:
101 return convertOrientationToString(eDataType, instanceValue);
102 case CrossingScenarioPackage.SIZE:
103 return convertSizeToString(eDataType, instanceValue);
104 case CrossingScenarioPackage.DISTANCE:
105 return convertDistanceToString(eDataType, instanceValue);
106 default:
107 throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
108 }
109 }
110
111 /**
112 * <!-- begin-user-doc -->
113 * <!-- end-user-doc -->
114 * @generated
115 */
116 @Override
117 public CrossingScenario createCrossingScenario() {
118 CrossingScenarioImpl crossingScenario = new CrossingScenarioImpl();
119 return crossingScenario;
120 }
121
122 /**
123 * <!-- begin-user-doc -->
124 * <!-- end-user-doc -->
125 * @generated
126 */
127 @Override
128 public Lane createLane() {
129 LaneImpl lane = new LaneImpl();
130 return lane;
131 }
132
133 /**
134 * <!-- begin-user-doc -->
135 * <!-- end-user-doc -->
136 * @generated
137 */
138 @Override
139 public VisionBlocked createVisionBlocked() {
140 VisionBlockedImpl visionBlocked = new VisionBlockedImpl();
141 return visionBlocked;
142 }
143
144 /**
145 * <!-- begin-user-doc -->
146 * <!-- end-user-doc -->
147 * @generated
148 */
149 @Override
150 public SeparationDistance createSeparationDistance() {
151 SeparationDistanceImpl separationDistance = new SeparationDistanceImpl();
152 return separationDistance;
153 }
154
155 /**
156 * <!-- begin-user-doc -->
157 * <!-- end-user-doc -->
158 * @generated
159 */
160 @Override
161 public CollisionExists createCollisionExists() {
162 CollisionExistsImpl collisionExists = new CollisionExistsImpl();
163 return collisionExists;
164 }
165
166 /**
167 * <!-- begin-user-doc -->
168 * <!-- end-user-doc -->
169 * @generated
170 */
171 @Override
172 public CollisionDoesNotExist createCollisionDoesNotExist() {
173 CollisionDoesNotExistImpl collisionDoesNotExist = new CollisionDoesNotExistImpl();
174 return collisionDoesNotExist;
175 }
176
177 /**
178 * <!-- begin-user-doc -->
179 * <!-- end-user-doc -->
180 * @generated
181 */
182 @Override
183 public Pedestrian createPedestrian() {
184 PedestrianImpl pedestrian = new PedestrianImpl();
185 return pedestrian;
186 }
187
188 /**
189 * <!-- begin-user-doc -->
190 * <!-- end-user-doc -->
191 * @generated
192 */
193 @Override
194 public Vehicle createVehicle() {
195 VehicleImpl vehicle = new VehicleImpl();
196 return vehicle;
197 }
198
199 /**
200 * <!-- begin-user-doc -->
201 * <!-- end-user-doc -->
202 * @generated
203 */
204 public Orientation createOrientationFromString(EDataType eDataType, String initialValue) {
205 Orientation result = Orientation.get(initialValue);
206 if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
207 return result;
208 }
209
210 /**
211 * <!-- begin-user-doc -->
212 * <!-- end-user-doc -->
213 * @generated
214 */
215 public String convertOrientationToString(EDataType eDataType, Object instanceValue) {
216 return instanceValue == null ? null : instanceValue.toString();
217 }
218
219 /**
220 * <!-- begin-user-doc -->
221 * <!-- end-user-doc -->
222 * @generated
223 */
224 public Size createSizeFromString(EDataType eDataType, String initialValue) {
225 Size result = Size.get(initialValue);
226 if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
227 return result;
228 }
229
230 /**
231 * <!-- begin-user-doc -->
232 * <!-- end-user-doc -->
233 * @generated
234 */
235 public String convertSizeToString(EDataType eDataType, Object instanceValue) {
236 return instanceValue == null ? null : instanceValue.toString();
237 }
238
239 /**
240 * <!-- begin-user-doc -->
241 * <!-- end-user-doc -->
242 * @generated
243 */
244 public Distance createDistanceFromString(EDataType eDataType, String initialValue) {
245 Distance result = Distance.get(initialValue);
246 if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
247 return result;
248 }
249
250 /**
251 * <!-- begin-user-doc -->
252 * <!-- end-user-doc -->
253 * @generated
254 */
255 public String convertDistanceToString(EDataType eDataType, Object instanceValue) {
256 return instanceValue == null ? null : instanceValue.toString();
257 }
258
259 /**
260 * <!-- begin-user-doc -->
261 * <!-- end-user-doc -->
262 * @generated
263 */
264 @Override
265 public CrossingScenarioPackage getCrossingScenarioPackage() {
266 return (CrossingScenarioPackage)getEPackage();
267 }
268
269 /**
270 * <!-- begin-user-doc -->
271 * <!-- end-user-doc -->
272 * @deprecated
273 * @generated
274 */
275 @Deprecated
276 public static CrossingScenarioPackage getPackage() {
277 return CrossingScenarioPackage.eINSTANCE;
278 }
279
280} //CrossingScenarioFactoryImpl
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/impl/CrossingScenarioImpl.java b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/CrossingScenarioImpl.java
new file mode 100644
index 00000000..ad8ee90d
--- /dev/null
+++ b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/CrossingScenarioImpl.java
@@ -0,0 +1,375 @@
1/**
2 */
3package crossingScenario.impl;
4
5import crossingScenario.Actor;
6import crossingScenario.CrossingScenario;
7import crossingScenario.CrossingScenarioPackage;
8import crossingScenario.Lane;
9
10import java.util.Collection;
11
12import org.eclipse.emf.common.notify.Notification;
13import org.eclipse.emf.common.notify.NotificationChain;
14
15import org.eclipse.emf.common.util.EList;
16
17import org.eclipse.emf.ecore.EClass;
18import org.eclipse.emf.ecore.InternalEObject;
19
20import org.eclipse.emf.ecore.impl.ENotificationImpl;
21import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
22
23import org.eclipse.emf.ecore.util.EObjectContainmentEList;
24import org.eclipse.emf.ecore.util.InternalEList;
25
26/**
27 * <!-- begin-user-doc -->
28 * An implementation of the model object '<em><b>Crossing Scenario</b></em>'.
29 * <!-- end-user-doc -->
30 * <p>
31 * The following features are implemented:
32 * </p>
33 * <ul>
34 * <li>{@link crossingScenario.impl.CrossingScenarioImpl#getXSize <em>XSize</em>}</li>
35 * <li>{@link crossingScenario.impl.CrossingScenarioImpl#getYSize <em>YSize</em>}</li>
36 * <li>{@link crossingScenario.impl.CrossingScenarioImpl#getActors <em>Actors</em>}</li>
37 * <li>{@link crossingScenario.impl.CrossingScenarioImpl#getLanes <em>Lanes</em>}</li>
38 * <li>{@link crossingScenario.impl.CrossingScenarioImpl#getMaxTime <em>Max Time</em>}</li>
39 * </ul>
40 *
41 * @generated
42 */
43public class CrossingScenarioImpl extends MinimalEObjectImpl.Container implements CrossingScenario {
44 /**
45 * The default value of the '{@link #getXSize() <em>XSize</em>}' attribute.
46 * <!-- begin-user-doc -->
47 * <!-- end-user-doc -->
48 * @see #getXSize()
49 * @generated
50 * @ordered
51 */
52 protected static final double XSIZE_EDEFAULT = 0.0;
53
54 /**
55 * The cached value of the '{@link #getXSize() <em>XSize</em>}' attribute.
56 * <!-- begin-user-doc -->
57 * <!-- end-user-doc -->
58 * @see #getXSize()
59 * @generated
60 * @ordered
61 */
62 protected double xSize = XSIZE_EDEFAULT;
63
64 /**
65 * The default value of the '{@link #getYSize() <em>YSize</em>}' attribute.
66 * <!-- begin-user-doc -->
67 * <!-- end-user-doc -->
68 * @see #getYSize()
69 * @generated
70 * @ordered
71 */
72 protected static final double YSIZE_EDEFAULT = 0.0;
73
74 /**
75 * The cached value of the '{@link #getYSize() <em>YSize</em>}' attribute.
76 * <!-- begin-user-doc -->
77 * <!-- end-user-doc -->
78 * @see #getYSize()
79 * @generated
80 * @ordered
81 */
82 protected double ySize = YSIZE_EDEFAULT;
83
84 /**
85 * The cached value of the '{@link #getActors() <em>Actors</em>}' containment reference list.
86 * <!-- begin-user-doc -->
87 * <!-- end-user-doc -->
88 * @see #getActors()
89 * @generated
90 * @ordered
91 */
92 protected EList<Actor> actors;
93
94 /**
95 * The cached value of the '{@link #getLanes() <em>Lanes</em>}' containment reference list.
96 * <!-- begin-user-doc -->
97 * <!-- end-user-doc -->
98 * @see #getLanes()
99 * @generated
100 * @ordered
101 */
102 protected EList<Lane> lanes;
103
104 /**
105 * The default value of the '{@link #getMaxTime() <em>Max Time</em>}' attribute.
106 * <!-- begin-user-doc -->
107 * <!-- end-user-doc -->
108 * @see #getMaxTime()
109 * @generated
110 * @ordered
111 */
112 protected static final double MAX_TIME_EDEFAULT = 0.0;
113
114 /**
115 * The cached value of the '{@link #getMaxTime() <em>Max Time</em>}' attribute.
116 * <!-- begin-user-doc -->
117 * <!-- end-user-doc -->
118 * @see #getMaxTime()
119 * @generated
120 * @ordered
121 */
122 protected double maxTime = MAX_TIME_EDEFAULT;
123
124 /**
125 * <!-- begin-user-doc -->
126 * <!-- end-user-doc -->
127 * @generated
128 */
129 protected CrossingScenarioImpl() {
130 super();
131 }
132
133 /**
134 * <!-- begin-user-doc -->
135 * <!-- end-user-doc -->
136 * @generated
137 */
138 @Override
139 protected EClass eStaticClass() {
140 return CrossingScenarioPackage.Literals.CROSSING_SCENARIO;
141 }
142
143 /**
144 * <!-- begin-user-doc -->
145 * <!-- end-user-doc -->
146 * @generated
147 */
148 @Override
149 public double getXSize() {
150 return xSize;
151 }
152
153 /**
154 * <!-- begin-user-doc -->
155 * <!-- end-user-doc -->
156 * @generated
157 */
158 @Override
159 public void setXSize(double newXSize) {
160 double oldXSize = xSize;
161 xSize = newXSize;
162 if (eNotificationRequired())
163 eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.CROSSING_SCENARIO__XSIZE, oldXSize, xSize));
164 }
165
166 /**
167 * <!-- begin-user-doc -->
168 * <!-- end-user-doc -->
169 * @generated
170 */
171 @Override
172 public double getYSize() {
173 return ySize;
174 }
175
176 /**
177 * <!-- begin-user-doc -->
178 * <!-- end-user-doc -->
179 * @generated
180 */
181 @Override
182 public void setYSize(double newYSize) {
183 double oldYSize = ySize;
184 ySize = newYSize;
185 if (eNotificationRequired())
186 eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.CROSSING_SCENARIO__YSIZE, oldYSize, ySize));
187 }
188
189 /**
190 * <!-- begin-user-doc -->
191 * <!-- end-user-doc -->
192 * @generated
193 */
194 @Override
195 public EList<Actor> getActors() {
196 if (actors == null) {
197 actors = new EObjectContainmentEList<Actor>(Actor.class, this, CrossingScenarioPackage.CROSSING_SCENARIO__ACTORS);
198 }
199 return actors;
200 }
201
202 /**
203 * <!-- begin-user-doc -->
204 * <!-- end-user-doc -->
205 * @generated
206 */
207 @Override
208 public EList<Lane> getLanes() {
209 if (lanes == null) {
210 lanes = new EObjectContainmentEList<Lane>(Lane.class, this, CrossingScenarioPackage.CROSSING_SCENARIO__LANES);
211 }
212 return lanes;
213 }
214
215 /**
216 * <!-- begin-user-doc -->
217 * <!-- end-user-doc -->
218 * @generated
219 */
220 @Override
221 public double getMaxTime() {
222 return maxTime;
223 }
224
225 /**
226 * <!-- begin-user-doc -->
227 * <!-- end-user-doc -->
228 * @generated
229 */
230 @Override
231 public void setMaxTime(double newMaxTime) {
232 double oldMaxTime = maxTime;
233 maxTime = newMaxTime;
234 if (eNotificationRequired())
235 eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.CROSSING_SCENARIO__MAX_TIME, oldMaxTime, maxTime));
236 }
237
238 /**
239 * <!-- begin-user-doc -->
240 * <!-- end-user-doc -->
241 * @generated
242 */
243 @Override
244 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
245 switch (featureID) {
246 case CrossingScenarioPackage.CROSSING_SCENARIO__ACTORS:
247 return ((InternalEList<?>)getActors()).basicRemove(otherEnd, msgs);
248 case CrossingScenarioPackage.CROSSING_SCENARIO__LANES:
249 return ((InternalEList<?>)getLanes()).basicRemove(otherEnd, msgs);
250 }
251 return super.eInverseRemove(otherEnd, featureID, msgs);
252 }
253
254 /**
255 * <!-- begin-user-doc -->
256 * <!-- end-user-doc -->
257 * @generated
258 */
259 @Override
260 public Object eGet(int featureID, boolean resolve, boolean coreType) {
261 switch (featureID) {
262 case CrossingScenarioPackage.CROSSING_SCENARIO__XSIZE:
263 return getXSize();
264 case CrossingScenarioPackage.CROSSING_SCENARIO__YSIZE:
265 return getYSize();
266 case CrossingScenarioPackage.CROSSING_SCENARIO__ACTORS:
267 return getActors();
268 case CrossingScenarioPackage.CROSSING_SCENARIO__LANES:
269 return getLanes();
270 case CrossingScenarioPackage.CROSSING_SCENARIO__MAX_TIME:
271 return getMaxTime();
272 }
273 return super.eGet(featureID, resolve, coreType);
274 }
275
276 /**
277 * <!-- begin-user-doc -->
278 * <!-- end-user-doc -->
279 * @generated
280 */
281 @SuppressWarnings("unchecked")
282 @Override
283 public void eSet(int featureID, Object newValue) {
284 switch (featureID) {
285 case CrossingScenarioPackage.CROSSING_SCENARIO__XSIZE:
286 setXSize((Double)newValue);
287 return;
288 case CrossingScenarioPackage.CROSSING_SCENARIO__YSIZE:
289 setYSize((Double)newValue);
290 return;
291 case CrossingScenarioPackage.CROSSING_SCENARIO__ACTORS:
292 getActors().clear();
293 getActors().addAll((Collection<? extends Actor>)newValue);
294 return;
295 case CrossingScenarioPackage.CROSSING_SCENARIO__LANES:
296 getLanes().clear();
297 getLanes().addAll((Collection<? extends Lane>)newValue);
298 return;
299 case CrossingScenarioPackage.CROSSING_SCENARIO__MAX_TIME:
300 setMaxTime((Double)newValue);
301 return;
302 }
303 super.eSet(featureID, newValue);
304 }
305
306 /**
307 * <!-- begin-user-doc -->
308 * <!-- end-user-doc -->
309 * @generated
310 */
311 @Override
312 public void eUnset(int featureID) {
313 switch (featureID) {
314 case CrossingScenarioPackage.CROSSING_SCENARIO__XSIZE:
315 setXSize(XSIZE_EDEFAULT);
316 return;
317 case CrossingScenarioPackage.CROSSING_SCENARIO__YSIZE:
318 setYSize(YSIZE_EDEFAULT);
319 return;
320 case CrossingScenarioPackage.CROSSING_SCENARIO__ACTORS:
321 getActors().clear();
322 return;
323 case CrossingScenarioPackage.CROSSING_SCENARIO__LANES:
324 getLanes().clear();
325 return;
326 case CrossingScenarioPackage.CROSSING_SCENARIO__MAX_TIME:
327 setMaxTime(MAX_TIME_EDEFAULT);
328 return;
329 }
330 super.eUnset(featureID);
331 }
332
333 /**
334 * <!-- begin-user-doc -->
335 * <!-- end-user-doc -->
336 * @generated
337 */
338 @Override
339 public boolean eIsSet(int featureID) {
340 switch (featureID) {
341 case CrossingScenarioPackage.CROSSING_SCENARIO__XSIZE:
342 return xSize != XSIZE_EDEFAULT;
343 case CrossingScenarioPackage.CROSSING_SCENARIO__YSIZE:
344 return ySize != YSIZE_EDEFAULT;
345 case CrossingScenarioPackage.CROSSING_SCENARIO__ACTORS:
346 return actors != null && !actors.isEmpty();
347 case CrossingScenarioPackage.CROSSING_SCENARIO__LANES:
348 return lanes != null && !lanes.isEmpty();
349 case CrossingScenarioPackage.CROSSING_SCENARIO__MAX_TIME:
350 return maxTime != MAX_TIME_EDEFAULT;
351 }
352 return super.eIsSet(featureID);
353 }
354
355 /**
356 * <!-- begin-user-doc -->
357 * <!-- end-user-doc -->
358 * @generated
359 */
360 @Override
361 public String toString() {
362 if (eIsProxy()) return super.toString();
363
364 StringBuilder result = new StringBuilder(super.toString());
365 result.append(" (xSize: ");
366 result.append(xSize);
367 result.append(", ySize: ");
368 result.append(ySize);
369 result.append(", maxTime: ");
370 result.append(maxTime);
371 result.append(')');
372 return result.toString();
373 }
374
375} //CrossingScenarioImpl
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/impl/CrossingScenarioPackageImpl.java b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/CrossingScenarioPackageImpl.java
new file mode 100644
index 00000000..6819135b
--- /dev/null
+++ b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/CrossingScenarioPackageImpl.java
@@ -0,0 +1,770 @@
1/**
2 */
3package crossingScenario.impl;
4
5import crossingScenario.Actor;
6import crossingScenario.CollisionDoesNotExist;
7import crossingScenario.CollisionExists;
8import crossingScenario.CrossingScenario;
9import crossingScenario.CrossingScenarioFactory;
10import crossingScenario.CrossingScenarioPackage;
11import crossingScenario.Distance;
12import crossingScenario.Lane;
13import crossingScenario.Orientation;
14import crossingScenario.Pedestrian;
15import crossingScenario.Relation;
16import crossingScenario.SeparationDistance;
17import crossingScenario.Size;
18import crossingScenario.SpatialRelation;
19import crossingScenario.TemporalRelation;
20import crossingScenario.Vehicle;
21import crossingScenario.VisionBlocked;
22
23import org.eclipse.emf.ecore.EAttribute;
24import org.eclipse.emf.ecore.EClass;
25import org.eclipse.emf.ecore.EEnum;
26import org.eclipse.emf.ecore.EPackage;
27import org.eclipse.emf.ecore.EReference;
28
29import org.eclipse.emf.ecore.impl.EPackageImpl;
30
31/**
32 * <!-- begin-user-doc -->
33 * An implementation of the model <b>Package</b>.
34 * <!-- end-user-doc -->
35 * @generated
36 */
37public class CrossingScenarioPackageImpl extends EPackageImpl implements CrossingScenarioPackage {
38 /**
39 * <!-- begin-user-doc -->
40 * <!-- end-user-doc -->
41 * @generated
42 */
43 private EClass crossingScenarioEClass = 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 separationDistanceEClass = 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 crossingScenario.CrossingScenarioPackage#eNS_URI
155 * @see #init()
156 * @generated
157 */
158 private CrossingScenarioPackageImpl() {
159 super(eNS_URI, CrossingScenarioFactory.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 CrossingScenarioPackage#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 CrossingScenarioPackage init() {
182 if (isInited) return (CrossingScenarioPackage)EPackage.Registry.INSTANCE.getEPackage(CrossingScenarioPackage.eNS_URI);
183
184 // Obtain or create and register package
185 Object registeredCrossingScenarioPackage = EPackage.Registry.INSTANCE.get(eNS_URI);
186 CrossingScenarioPackageImpl theCrossingScenarioPackage = registeredCrossingScenarioPackage instanceof CrossingScenarioPackageImpl ? (CrossingScenarioPackageImpl)registeredCrossingScenarioPackage : new CrossingScenarioPackageImpl();
187
188 isInited = true;
189
190 // Create package meta-data objects
191 theCrossingScenarioPackage.createPackageContents();
192
193 // Initialize created meta-data
194 theCrossingScenarioPackage.initializePackageContents();
195
196 // Mark meta-data to indicate it can't be changed
197 theCrossingScenarioPackage.freeze();
198
199 // Update the registry and return the package
200 EPackage.Registry.INSTANCE.put(CrossingScenarioPackage.eNS_URI, theCrossingScenarioPackage);
201 return theCrossingScenarioPackage;
202 }
203
204 /**
205 * <!-- begin-user-doc -->
206 * <!-- end-user-doc -->
207 * @generated
208 */
209 @Override
210 public EClass getCrossingScenario() {
211 return crossingScenarioEClass;
212 }
213
214 /**
215 * <!-- begin-user-doc -->
216 * <!-- end-user-doc -->
217 * @generated
218 */
219 @Override
220 public EAttribute getCrossingScenario_XSize() {
221 return (EAttribute)crossingScenarioEClass.getEStructuralFeatures().get(0);
222 }
223
224 /**
225 * <!-- begin-user-doc -->
226 * <!-- end-user-doc -->
227 * @generated
228 */
229 @Override
230 public EAttribute getCrossingScenario_YSize() {
231 return (EAttribute)crossingScenarioEClass.getEStructuralFeatures().get(1);
232 }
233
234 /**
235 * <!-- begin-user-doc -->
236 * <!-- end-user-doc -->
237 * @generated
238 */
239 @Override
240 public EReference getCrossingScenario_Actors() {
241 return (EReference)crossingScenarioEClass.getEStructuralFeatures().get(2);
242 }
243
244 /**
245 * <!-- begin-user-doc -->
246 * <!-- end-user-doc -->
247 * @generated
248 */
249 @Override
250 public EReference getCrossingScenario_Lanes() {
251 return (EReference)crossingScenarioEClass.getEStructuralFeatures().get(3);
252 }
253
254 /**
255 * <!-- begin-user-doc -->
256 * <!-- end-user-doc -->
257 * @generated
258 */
259 @Override
260 public EAttribute getCrossingScenario_MaxTime() {
261 return (EAttribute)crossingScenarioEClass.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 getSeparationDistance() {
491 return separationDistanceEClass;
492 }
493
494 /**
495 * <!-- begin-user-doc -->
496 * <!-- end-user-doc -->
497 * @generated
498 */
499 @Override
500 public EAttribute getSeparationDistance_Distance() {
501 return (EAttribute)separationDistanceEClass.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 CrossingScenarioFactory getCrossingScenarioFactory() {
591 return (CrossingScenarioFactory)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 crossingScenarioEClass = createEClass(CROSSING_SCENARIO);
614 createEAttribute(crossingScenarioEClass, CROSSING_SCENARIO__XSIZE);
615 createEAttribute(crossingScenarioEClass, CROSSING_SCENARIO__YSIZE);
616 createEReference(crossingScenarioEClass, CROSSING_SCENARIO__ACTORS);
617 createEReference(crossingScenarioEClass, CROSSING_SCENARIO__LANES);
618 createEAttribute(crossingScenarioEClass, CROSSING_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 separationDistanceEClass = createEClass(SEPARATION_DISTANCE);
649 createEAttribute(separationDistanceEClass, SEPARATION_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 separationDistanceEClass.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(crossingScenarioEClass, CrossingScenario.class, "CrossingScenario", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
705 initEAttribute(getCrossingScenario_XSize(), ecorePackage.getEDouble(), "xSize", null, 0, 1, CrossingScenario.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
706 initEAttribute(getCrossingScenario_YSize(), ecorePackage.getEDouble(), "ySize", null, 0, 1, CrossingScenario.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
707 initEReference(getCrossingScenario_Actors(), this.getActor(), null, "actors", null, 0, -1, CrossingScenario.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
708 initEReference(getCrossingScenario_Lanes(), this.getLane(), null, "lanes", null, 0, -1, CrossingScenario.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
709 initEAttribute(getCrossingScenario_MaxTime(), ecorePackage.getEDouble(), "maxTime", null, 0, 1, CrossingScenario.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(separationDistanceEClass, SeparationDistance.class, "SeparationDistance", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
740 initEAttribute(getSeparationDistance_Distance(), this.getDistance(), "distance", null, 1, 1, SeparationDistance.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} //CrossingScenarioPackageImpl
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/impl/LaneImpl.java b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/LaneImpl.java
new file mode 100644
index 00000000..a97c02fc
--- /dev/null
+++ b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/LaneImpl.java
@@ -0,0 +1,472 @@
1/**
2 */
3package crossingScenario.impl;
4
5import crossingScenario.Actor;
6import crossingScenario.CrossingScenarioPackage;
7import crossingScenario.Lane;
8import crossingScenario.Orientation;
9import crossingScenario.Size;
10
11import java.util.Collection;
12
13import org.eclipse.emf.common.notify.Notification;
14import org.eclipse.emf.common.notify.NotificationChain;
15
16import org.eclipse.emf.common.util.EList;
17
18import org.eclipse.emf.ecore.EClass;
19import org.eclipse.emf.ecore.InternalEObject;
20
21import org.eclipse.emf.ecore.impl.ENotificationImpl;
22import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
23
24import org.eclipse.emf.ecore.util.EObjectWithInverseResolvingEList;
25import org.eclipse.emf.ecore.util.InternalEList;
26
27/**
28 * <!-- begin-user-doc -->
29 * An implementation of the model object '<em><b>Lane</b></em>'.
30 * <!-- end-user-doc -->
31 * <p>
32 * The following features are implemented:
33 * </p>
34 * <ul>
35 * <li>{@link crossingScenario.impl.LaneImpl#getOrientation <em>Orientation</em>}</li>
36 * <li>{@link crossingScenario.impl.LaneImpl#getWidth <em>Width</em>}</li>
37 * <li>{@link crossingScenario.impl.LaneImpl#getReferenceCoord <em>Reference Coord</em>}</li>
38 * <li>{@link crossingScenario.impl.LaneImpl#getPrevLane <em>Prev Lane</em>}</li>
39 * <li>{@link crossingScenario.impl.LaneImpl#getActors <em>Actors</em>}</li>
40 * <li>{@link crossingScenario.impl.LaneImpl#getNumWidth <em>Num Width</em>}</li>
41 * </ul>
42 *
43 * @generated
44 */
45public 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 /**
67 * The default value of the '{@link #getWidth() <em>Width</em>}' attribute.
68 * <!-- begin-user-doc -->
69 * <!-- end-user-doc -->
70 * @see #getWidth()
71 * @generated
72 * @ordered
73 */
74 protected static final Size WIDTH_EDEFAULT = Size.SMALL;
75
76 /**
77 * The cached value of the '{@link #getWidth() <em>Width</em>}' attribute.
78 * <!-- begin-user-doc -->
79 * <!-- end-user-doc -->
80 * @see #getWidth()
81 * @generated
82 * @ordered
83 */
84 protected Size width = WIDTH_EDEFAULT;
85
86 /**
87 * The default value of the '{@link #getReferenceCoord() <em>Reference Coord</em>}' attribute.
88 * <!-- begin-user-doc -->
89 * <!-- end-user-doc -->
90 * @see #getReferenceCoord()
91 * @generated
92 * @ordered
93 */
94 protected static final double REFERENCE_COORD_EDEFAULT = 0.0;
95
96 /**
97 * The cached value of the '{@link #getReferenceCoord() <em>Reference Coord</em>}' attribute.
98 * <!-- begin-user-doc -->
99 * <!-- end-user-doc -->
100 * @see #getReferenceCoord()
101 * @generated
102 * @ordered
103 */
104 protected double referenceCoord = REFERENCE_COORD_EDEFAULT;
105
106 /**
107 * The cached value of the '{@link #getPrevLane() <em>Prev Lane</em>}' reference.
108 * <!-- begin-user-doc -->
109 * <!-- end-user-doc -->
110 * @see #getPrevLane()
111 * @generated
112 * @ordered
113 */
114 protected Lane prevLane;
115
116 /**
117 * The cached value of the '{@link #getActors() <em>Actors</em>}' reference list.
118 * <!-- begin-user-doc -->
119 * <!-- end-user-doc -->
120 * @see #getActors()
121 * @generated
122 * @ordered
123 */
124 protected EList<Actor> actors;
125
126 /**
127 * The default value of the '{@link #getNumWidth() <em>Num Width</em>}' attribute.
128 * <!-- begin-user-doc -->
129 * <!-- end-user-doc -->
130 * @see #getNumWidth()
131 * @generated
132 * @ordered
133 */
134 protected static final double NUM_WIDTH_EDEFAULT = 0.0;
135
136 /**
137 * The cached value of the '{@link #getNumWidth() <em>Num Width</em>}' attribute.
138 * <!-- begin-user-doc -->
139 * <!-- end-user-doc -->
140 * @see #getNumWidth()
141 * @generated
142 * @ordered
143 */
144 protected double numWidth = NUM_WIDTH_EDEFAULT;
145
146 /**
147 * <!-- begin-user-doc -->
148 * <!-- end-user-doc -->
149 * @generated
150 */
151 protected LaneImpl() {
152 super();
153 }
154
155 /**
156 * <!-- begin-user-doc -->
157 * <!-- end-user-doc -->
158 * @generated
159 */
160 @Override
161 protected EClass eStaticClass() {
162 return CrossingScenarioPackage.Literals.LANE;
163 }
164
165 /**
166 * <!-- begin-user-doc -->
167 * <!-- end-user-doc -->
168 * @generated
169 */
170 @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() {
195 return width;
196 }
197
198 /**
199 * <!-- begin-user-doc -->
200 * <!-- end-user-doc -->
201 * @generated
202 */
203 @Override
204 public void setWidth(Size newWidth) {
205 Size oldWidth = width;
206 width = newWidth == null ? WIDTH_EDEFAULT : newWidth;
207 if (eNotificationRequired())
208 eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.LANE__WIDTH, oldWidth, width));
209 }
210
211 /**
212 * <!-- begin-user-doc -->
213 * <!-- end-user-doc -->
214 * @generated
215 */
216 @Override
217 public double getReferenceCoord() {
218 return referenceCoord;
219 }
220
221 /**
222 * <!-- begin-user-doc -->
223 * <!-- end-user-doc -->
224 * @generated
225 */
226 @Override
227 public void setReferenceCoord(double newReferenceCoord) {
228 double oldReferenceCoord = referenceCoord;
229 referenceCoord = newReferenceCoord;
230 if (eNotificationRequired())
231 eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.LANE__REFERENCE_COORD, oldReferenceCoord, referenceCoord));
232 }
233
234 /**
235 * <!-- begin-user-doc -->
236 * <!-- end-user-doc -->
237 * @generated
238 */
239 @Override
240 public Lane getPrevLane() {
241 if (prevLane != null && prevLane.eIsProxy()) {
242 InternalEObject oldPrevLane = (InternalEObject)prevLane;
243 prevLane = (Lane)eResolveProxy(oldPrevLane);
244 if (prevLane != oldPrevLane) {
245 if (eNotificationRequired())
246 eNotify(new ENotificationImpl(this, Notification.RESOLVE, CrossingScenarioPackage.LANE__PREV_LANE, oldPrevLane, prevLane));
247 }
248 }
249 return prevLane;
250 }
251
252 /**
253 * <!-- begin-user-doc -->
254 * <!-- end-user-doc -->
255 * @generated
256 */
257 public Lane basicGetPrevLane() {
258 return prevLane;
259 }
260
261 /**
262 * <!-- begin-user-doc -->
263 * <!-- end-user-doc -->
264 * @generated
265 */
266 @Override
267 public void setPrevLane(Lane newPrevLane) {
268 Lane oldPrevLane = prevLane;
269 prevLane = newPrevLane;
270 if (eNotificationRequired())
271 eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.LANE__PREV_LANE, oldPrevLane, prevLane));
272 }
273
274 /**
275 * <!-- begin-user-doc -->
276 * <!-- end-user-doc -->
277 * @generated
278 */
279 @Override
280 public EList<Actor> getActors() {
281 if (actors == null) {
282 actors = new EObjectWithInverseResolvingEList<Actor>(Actor.class, this, CrossingScenarioPackage.LANE__ACTORS, CrossingScenarioPackage.ACTOR__PLACED_ON);
283 }
284 return actors;
285 }
286
287 /**
288 * <!-- begin-user-doc -->
289 * <!-- end-user-doc -->
290 * @generated
291 */
292 @Override
293 public double getNumWidth() {
294 return numWidth;
295 }
296
297 /**
298 * <!-- begin-user-doc -->
299 * <!-- end-user-doc -->
300 * @generated
301 */
302 @Override
303 public void setNumWidth(double newNumWidth) {
304 double oldNumWidth = numWidth;
305 numWidth = newNumWidth;
306 if (eNotificationRequired())
307 eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.LANE__NUM_WIDTH, oldNumWidth, numWidth));
308 }
309
310 /**
311 * <!-- begin-user-doc -->
312 * <!-- end-user-doc -->
313 * @generated
314 */
315 @SuppressWarnings("unchecked")
316 @Override
317 public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
318 switch (featureID) {
319 case CrossingScenarioPackage.LANE__ACTORS:
320 return ((InternalEList<InternalEObject>)(InternalEList<?>)getActors()).basicAdd(otherEnd, msgs);
321 }
322 return super.eInverseAdd(otherEnd, featureID, msgs);
323 }
324
325 /**
326 * <!-- begin-user-doc -->
327 * <!-- end-user-doc -->
328 * @generated
329 */
330 @Override
331 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
332 switch (featureID) {
333 case CrossingScenarioPackage.LANE__ACTORS:
334 return ((InternalEList<?>)getActors()).basicRemove(otherEnd, msgs);
335 }
336 return super.eInverseRemove(otherEnd, featureID, msgs);
337 }
338
339 /**
340 * <!-- begin-user-doc -->
341 * <!-- end-user-doc -->
342 * @generated
343 */
344 @Override
345 public Object eGet(int featureID, boolean resolve, boolean coreType) {
346 switch (featureID) {
347 case CrossingScenarioPackage.LANE__ORIENTATION:
348 return getOrientation();
349 case CrossingScenarioPackage.LANE__WIDTH:
350 return getWidth();
351 case CrossingScenarioPackage.LANE__REFERENCE_COORD:
352 return getReferenceCoord();
353 case CrossingScenarioPackage.LANE__PREV_LANE:
354 if (resolve) return getPrevLane();
355 return basicGetPrevLane();
356 case CrossingScenarioPackage.LANE__ACTORS:
357 return getActors();
358 case CrossingScenarioPackage.LANE__NUM_WIDTH:
359 return getNumWidth();
360 }
361 return super.eGet(featureID, resolve, coreType);
362 }
363
364 /**
365 * <!-- begin-user-doc -->
366 * <!-- end-user-doc -->
367 * @generated
368 */
369 @SuppressWarnings("unchecked")
370 @Override
371 public void eSet(int featureID, Object newValue) {
372 switch (featureID) {
373 case CrossingScenarioPackage.LANE__ORIENTATION:
374 setOrientation((Orientation)newValue);
375 return;
376 case CrossingScenarioPackage.LANE__WIDTH:
377 setWidth((Size)newValue);
378 return;
379 case CrossingScenarioPackage.LANE__REFERENCE_COORD:
380 setReferenceCoord((Double)newValue);
381 return;
382 case CrossingScenarioPackage.LANE__PREV_LANE:
383 setPrevLane((Lane)newValue);
384 return;
385 case CrossingScenarioPackage.LANE__ACTORS:
386 getActors().clear();
387 getActors().addAll((Collection<? extends Actor>)newValue);
388 return;
389 case CrossingScenarioPackage.LANE__NUM_WIDTH:
390 setNumWidth((Double)newValue);
391 return;
392 }
393 super.eSet(featureID, newValue);
394 }
395
396 /**
397 * <!-- begin-user-doc -->
398 * <!-- end-user-doc -->
399 * @generated
400 */
401 @Override
402 public void eUnset(int featureID) {
403 switch (featureID) {
404 case CrossingScenarioPackage.LANE__ORIENTATION:
405 setOrientation(ORIENTATION_EDEFAULT);
406 return;
407 case CrossingScenarioPackage.LANE__WIDTH:
408 setWidth(WIDTH_EDEFAULT);
409 return;
410 case CrossingScenarioPackage.LANE__REFERENCE_COORD:
411 setReferenceCoord(REFERENCE_COORD_EDEFAULT);
412 return;
413 case CrossingScenarioPackage.LANE__PREV_LANE:
414 setPrevLane((Lane)null);
415 return;
416 case CrossingScenarioPackage.LANE__ACTORS:
417 getActors().clear();
418 return;
419 case CrossingScenarioPackage.LANE__NUM_WIDTH:
420 setNumWidth(NUM_WIDTH_EDEFAULT);
421 return;
422 }
423 super.eUnset(featureID);
424 }
425
426 /**
427 * <!-- begin-user-doc -->
428 * <!-- end-user-doc -->
429 * @generated
430 */
431 @Override
432 public boolean eIsSet(int featureID) {
433 switch (featureID) {
434 case CrossingScenarioPackage.LANE__ORIENTATION:
435 return orientation != ORIENTATION_EDEFAULT;
436 case CrossingScenarioPackage.LANE__WIDTH:
437 return width != WIDTH_EDEFAULT;
438 case CrossingScenarioPackage.LANE__REFERENCE_COORD:
439 return referenceCoord != REFERENCE_COORD_EDEFAULT;
440 case CrossingScenarioPackage.LANE__PREV_LANE:
441 return prevLane != null;
442 case CrossingScenarioPackage.LANE__ACTORS:
443 return actors != null && !actors.isEmpty();
444 case CrossingScenarioPackage.LANE__NUM_WIDTH:
445 return numWidth != NUM_WIDTH_EDEFAULT;
446 }
447 return super.eIsSet(featureID);
448 }
449
450 /**
451 * <!-- begin-user-doc -->
452 * <!-- end-user-doc -->
453 * @generated
454 */
455 @Override
456 public String toString() {
457 if (eIsProxy()) return super.toString();
458
459 StringBuilder result = new StringBuilder(super.toString());
460 result.append(" (orientation: ");
461 result.append(orientation);
462 result.append(", width: ");
463 result.append(width);
464 result.append(", referenceCoord: ");
465 result.append(referenceCoord);
466 result.append(", numWidth: ");
467 result.append(numWidth);
468 result.append(')');
469 return result.toString();
470 }
471
472} //LaneImpl
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/impl/PedestrianImpl.java b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/PedestrianImpl.java
new file mode 100644
index 00000000..b7bf48f0
--- /dev/null
+++ b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/PedestrianImpl.java
@@ -0,0 +1,37 @@
1/**
2 */
3package crossingScenario.impl;
4
5import crossingScenario.CrossingScenarioPackage;
6import crossingScenario.Pedestrian;
7
8import org.eclipse.emf.ecore.EClass;
9
10/**
11 * <!-- begin-user-doc -->
12 * An implementation of the model object '<em><b>Pedestrian</b></em>'.
13 * <!-- end-user-doc -->
14 *
15 * @generated
16 */
17public class PedestrianImpl extends ActorImpl implements Pedestrian {
18 /**
19 * <!-- begin-user-doc -->
20 * <!-- end-user-doc -->
21 * @generated
22 */
23 protected PedestrianImpl() {
24 super();
25 }
26
27 /**
28 * <!-- begin-user-doc -->
29 * <!-- end-user-doc -->
30 * @generated
31 */
32 @Override
33 protected EClass eStaticClass() {
34 return CrossingScenarioPackage.Literals.PEDESTRIAN;
35 }
36
37} //PedestrianImpl
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/impl/RelationImpl.java b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/RelationImpl.java
new file mode 100644
index 00000000..5b8ec921
--- /dev/null
+++ b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/RelationImpl.java
@@ -0,0 +1,159 @@
1/**
2 */
3package crossingScenario.impl;
4
5import crossingScenario.Actor;
6import crossingScenario.CrossingScenarioPackage;
7import crossingScenario.Relation;
8
9import org.eclipse.emf.common.notify.Notification;
10
11import org.eclipse.emf.ecore.EClass;
12import org.eclipse.emf.ecore.InternalEObject;
13
14import org.eclipse.emf.ecore.impl.ENotificationImpl;
15import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
16
17/**
18 * <!-- begin-user-doc -->
19 * An implementation of the model object '<em><b>Relation</b></em>'.
20 * <!-- end-user-doc -->
21 * <p>
22 * The following features are implemented:
23 * </p>
24 * <ul>
25 * <li>{@link crossingScenario.impl.RelationImpl#getTarget <em>Target</em>}</li>
26 * </ul>
27 *
28 * @generated
29 */
30public abstract class RelationImpl extends MinimalEObjectImpl.Container implements Relation {
31 /**
32 * The cached value of the '{@link #getTarget() <em>Target</em>}' reference.
33 * <!-- begin-user-doc -->
34 * <!-- end-user-doc -->
35 * @see #getTarget()
36 * @generated
37 * @ordered
38 */
39 protected Actor target;
40
41 /**
42 * <!-- begin-user-doc -->
43 * <!-- end-user-doc -->
44 * @generated
45 */
46 protected RelationImpl() {
47 super();
48 }
49
50 /**
51 * <!-- begin-user-doc -->
52 * <!-- end-user-doc -->
53 * @generated
54 */
55 @Override
56 protected EClass eStaticClass() {
57 return CrossingScenarioPackage.Literals.RELATION;
58 }
59
60 /**
61 * <!-- begin-user-doc -->
62 * <!-- end-user-doc -->
63 * @generated
64 */
65 @Override
66 public Actor getTarget() {
67 if (target != null && target.eIsProxy()) {
68 InternalEObject oldTarget = (InternalEObject)target;
69 target = (Actor)eResolveProxy(oldTarget);
70 if (target != oldTarget) {
71 if (eNotificationRequired())
72 eNotify(new ENotificationImpl(this, Notification.RESOLVE, CrossingScenarioPackage.RELATION__TARGET, oldTarget, target));
73 }
74 }
75 return target;
76 }
77
78 /**
79 * <!-- begin-user-doc -->
80 * <!-- end-user-doc -->
81 * @generated
82 */
83 public Actor basicGetTarget() {
84 return target;
85 }
86
87 /**
88 * <!-- begin-user-doc -->
89 * <!-- end-user-doc -->
90 * @generated
91 */
92 @Override
93 public void setTarget(Actor newTarget) {
94 Actor oldTarget = target;
95 target = newTarget;
96 if (eNotificationRequired())
97 eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.RELATION__TARGET, oldTarget, target));
98 }
99
100 /**
101 * <!-- begin-user-doc -->
102 * <!-- end-user-doc -->
103 * @generated
104 */
105 @Override
106 public Object eGet(int featureID, boolean resolve, boolean coreType) {
107 switch (featureID) {
108 case CrossingScenarioPackage.RELATION__TARGET:
109 if (resolve) return getTarget();
110 return basicGetTarget();
111 }
112 return super.eGet(featureID, resolve, coreType);
113 }
114
115 /**
116 * <!-- begin-user-doc -->
117 * <!-- end-user-doc -->
118 * @generated
119 */
120 @Override
121 public void eSet(int featureID, Object newValue) {
122 switch (featureID) {
123 case CrossingScenarioPackage.RELATION__TARGET:
124 setTarget((Actor)newValue);
125 return;
126 }
127 super.eSet(featureID, newValue);
128 }
129
130 /**
131 * <!-- begin-user-doc -->
132 * <!-- end-user-doc -->
133 * @generated
134 */
135 @Override
136 public void eUnset(int featureID) {
137 switch (featureID) {
138 case CrossingScenarioPackage.RELATION__TARGET:
139 setTarget((Actor)null);
140 return;
141 }
142 super.eUnset(featureID);
143 }
144
145 /**
146 * <!-- begin-user-doc -->
147 * <!-- end-user-doc -->
148 * @generated
149 */
150 @Override
151 public boolean eIsSet(int featureID) {
152 switch (featureID) {
153 case CrossingScenarioPackage.RELATION__TARGET:
154 return target != null;
155 }
156 return super.eIsSet(featureID);
157 }
158
159} //RelationImpl
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/impl/SeparationDistanceImpl.java b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/SeparationDistanceImpl.java
new file mode 100644
index 00000000..bad91f1c
--- /dev/null
+++ b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/SeparationDistanceImpl.java
@@ -0,0 +1,165 @@
1/**
2 */
3package crossingScenario.impl;
4
5import crossingScenario.CrossingScenarioPackage;
6import crossingScenario.Distance;
7import crossingScenario.SeparationDistance;
8
9import org.eclipse.emf.common.notify.Notification;
10
11import org.eclipse.emf.ecore.EClass;
12
13import org.eclipse.emf.ecore.impl.ENotificationImpl;
14
15/**
16 * <!-- begin-user-doc -->
17 * An implementation of the model object '<em><b>Separation Distance</b></em>'.
18 * <!-- end-user-doc -->
19 * <p>
20 * The following features are implemented:
21 * </p>
22 * <ul>
23 * <li>{@link crossingScenario.impl.SeparationDistanceImpl#getDistance <em>Distance</em>}</li>
24 * </ul>
25 *
26 * @generated
27 */
28public class SeparationDistanceImpl extends SpatialRelationImpl implements SeparationDistance {
29 /**
30 * The default value of the '{@link #getDistance() <em>Distance</em>}' attribute.
31 * <!-- begin-user-doc -->
32 * <!-- end-user-doc -->
33 * @see #getDistance()
34 * @generated
35 * @ordered
36 */
37 protected static final Distance DISTANCE_EDEFAULT = Distance.NEAR;
38
39 /**
40 * The cached value of the '{@link #getDistance() <em>Distance</em>}' attribute.
41 * <!-- begin-user-doc -->
42 * <!-- end-user-doc -->
43 * @see #getDistance()
44 * @generated
45 * @ordered
46 */
47 protected Distance distance = DISTANCE_EDEFAULT;
48
49 /**
50 * <!-- begin-user-doc -->
51 * <!-- end-user-doc -->
52 * @generated
53 */
54 protected SeparationDistanceImpl() {
55 super();
56 }
57
58 /**
59 * <!-- begin-user-doc -->
60 * <!-- end-user-doc -->
61 * @generated
62 */
63 @Override
64 protected EClass eStaticClass() {
65 return CrossingScenarioPackage.Literals.SEPARATION_DISTANCE;
66 }
67
68 /**
69 * <!-- begin-user-doc -->
70 * <!-- end-user-doc -->
71 * @generated
72 */
73 @Override
74 public Distance getDistance() {
75 return distance;
76 }
77
78 /**
79 * <!-- begin-user-doc -->
80 * <!-- end-user-doc -->
81 * @generated
82 */
83 @Override
84 public void setDistance(Distance newDistance) {
85 Distance oldDistance = distance;
86 distance = newDistance == null ? DISTANCE_EDEFAULT : newDistance;
87 if (eNotificationRequired())
88 eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.SEPARATION_DISTANCE__DISTANCE, oldDistance, distance));
89 }
90
91 /**
92 * <!-- begin-user-doc -->
93 * <!-- end-user-doc -->
94 * @generated
95 */
96 @Override
97 public Object eGet(int featureID, boolean resolve, boolean coreType) {
98 switch (featureID) {
99 case CrossingScenarioPackage.SEPARATION_DISTANCE__DISTANCE:
100 return getDistance();
101 }
102 return super.eGet(featureID, resolve, coreType);
103 }
104
105 /**
106 * <!-- begin-user-doc -->
107 * <!-- end-user-doc -->
108 * @generated
109 */
110 @Override
111 public void eSet(int featureID, Object newValue) {
112 switch (featureID) {
113 case CrossingScenarioPackage.SEPARATION_DISTANCE__DISTANCE:
114 setDistance((Distance)newValue);
115 return;
116 }
117 super.eSet(featureID, newValue);
118 }
119
120 /**
121 * <!-- begin-user-doc -->
122 * <!-- end-user-doc -->
123 * @generated
124 */
125 @Override
126 public void eUnset(int featureID) {
127 switch (featureID) {
128 case CrossingScenarioPackage.SEPARATION_DISTANCE__DISTANCE:
129 setDistance(DISTANCE_EDEFAULT);
130 return;
131 }
132 super.eUnset(featureID);
133 }
134
135 /**
136 * <!-- begin-user-doc -->
137 * <!-- end-user-doc -->
138 * @generated
139 */
140 @Override
141 public boolean eIsSet(int featureID) {
142 switch (featureID) {
143 case CrossingScenarioPackage.SEPARATION_DISTANCE__DISTANCE:
144 return distance != DISTANCE_EDEFAULT;
145 }
146 return super.eIsSet(featureID);
147 }
148
149 /**
150 * <!-- begin-user-doc -->
151 * <!-- end-user-doc -->
152 * @generated
153 */
154 @Override
155 public String toString() {
156 if (eIsProxy()) return super.toString();
157
158 StringBuilder result = new StringBuilder(super.toString());
159 result.append(" (distance: ");
160 result.append(distance);
161 result.append(')');
162 return result.toString();
163 }
164
165} //SeparationDistanceImpl
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/impl/SpatialRelationImpl.java b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/SpatialRelationImpl.java
new file mode 100644
index 00000000..29dcf9f8
--- /dev/null
+++ b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/SpatialRelationImpl.java
@@ -0,0 +1,37 @@
1/**
2 */
3package crossingScenario.impl;
4
5import crossingScenario.CrossingScenarioPackage;
6import crossingScenario.SpatialRelation;
7
8import org.eclipse.emf.ecore.EClass;
9
10/**
11 * <!-- begin-user-doc -->
12 * An implementation of the model object '<em><b>Spatial Relation</b></em>'.
13 * <!-- end-user-doc -->
14 *
15 * @generated
16 */
17public abstract class SpatialRelationImpl extends RelationImpl implements SpatialRelation {
18 /**
19 * <!-- begin-user-doc -->
20 * <!-- end-user-doc -->
21 * @generated
22 */
23 protected SpatialRelationImpl() {
24 super();
25 }
26
27 /**
28 * <!-- begin-user-doc -->
29 * <!-- end-user-doc -->
30 * @generated
31 */
32 @Override
33 protected EClass eStaticClass() {
34 return CrossingScenarioPackage.Literals.SPATIAL_RELATION;
35 }
36
37} //SpatialRelationImpl
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/impl/TemporalRelationImpl.java b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/TemporalRelationImpl.java
new file mode 100644
index 00000000..7fc113b7
--- /dev/null
+++ b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/TemporalRelationImpl.java
@@ -0,0 +1,37 @@
1/**
2 */
3package crossingScenario.impl;
4
5import crossingScenario.CrossingScenarioPackage;
6import crossingScenario.TemporalRelation;
7
8import org.eclipse.emf.ecore.EClass;
9
10/**
11 * <!-- begin-user-doc -->
12 * An implementation of the model object '<em><b>Temporal Relation</b></em>'.
13 * <!-- end-user-doc -->
14 *
15 * @generated
16 */
17public abstract class TemporalRelationImpl extends RelationImpl implements TemporalRelation {
18 /**
19 * <!-- begin-user-doc -->
20 * <!-- end-user-doc -->
21 * @generated
22 */
23 protected TemporalRelationImpl() {
24 super();
25 }
26
27 /**
28 * <!-- begin-user-doc -->
29 * <!-- end-user-doc -->
30 * @generated
31 */
32 @Override
33 protected EClass eStaticClass() {
34 return CrossingScenarioPackage.Literals.TEMPORAL_RELATION;
35 }
36
37} //TemporalRelationImpl
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/impl/VehicleImpl.java b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/VehicleImpl.java
new file mode 100644
index 00000000..15f25fd5
--- /dev/null
+++ b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/VehicleImpl.java
@@ -0,0 +1,37 @@
1/**
2 */
3package crossingScenario.impl;
4
5import crossingScenario.CrossingScenarioPackage;
6import crossingScenario.Vehicle;
7
8import org.eclipse.emf.ecore.EClass;
9
10/**
11 * <!-- begin-user-doc -->
12 * An implementation of the model object '<em><b>Vehicle</b></em>'.
13 * <!-- end-user-doc -->
14 *
15 * @generated
16 */
17public class VehicleImpl extends ActorImpl implements Vehicle {
18 /**
19 * <!-- begin-user-doc -->
20 * <!-- end-user-doc -->
21 * @generated
22 */
23 protected VehicleImpl() {
24 super();
25 }
26
27 /**
28 * <!-- begin-user-doc -->
29 * <!-- end-user-doc -->
30 * @generated
31 */
32 @Override
33 protected EClass eStaticClass() {
34 return CrossingScenarioPackage.Literals.VEHICLE;
35 }
36
37} //VehicleImpl
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/impl/VisionBlockedImpl.java b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/VisionBlockedImpl.java
new file mode 100644
index 00000000..169cd57c
--- /dev/null
+++ b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/VisionBlockedImpl.java
@@ -0,0 +1,158 @@
1/**
2 */
3package crossingScenario.impl;
4
5import crossingScenario.Actor;
6import crossingScenario.CrossingScenarioPackage;
7import crossingScenario.VisionBlocked;
8
9import org.eclipse.emf.common.notify.Notification;
10
11import org.eclipse.emf.ecore.EClass;
12import org.eclipse.emf.ecore.InternalEObject;
13
14import org.eclipse.emf.ecore.impl.ENotificationImpl;
15
16/**
17 * <!-- begin-user-doc -->
18 * An implementation of the model object '<em><b>Vision Blocked</b></em>'.
19 * <!-- end-user-doc -->
20 * <p>
21 * The following features are implemented:
22 * </p>
23 * <ul>
24 * <li>{@link crossingScenario.impl.VisionBlockedImpl#getBlockedBy <em>Blocked By</em>}</li>
25 * </ul>
26 *
27 * @generated
28 */
29public class VisionBlockedImpl extends SpatialRelationImpl implements VisionBlocked {
30 /**
31 * The cached value of the '{@link #getBlockedBy() <em>Blocked By</em>}' reference.
32 * <!-- begin-user-doc -->
33 * <!-- end-user-doc -->
34 * @see #getBlockedBy()
35 * @generated
36 * @ordered
37 */
38 protected Actor blockedBy;
39
40 /**
41 * <!-- begin-user-doc -->
42 * <!-- end-user-doc -->
43 * @generated
44 */
45 protected VisionBlockedImpl() {
46 super();
47 }
48
49 /**
50 * <!-- begin-user-doc -->
51 * <!-- end-user-doc -->
52 * @generated
53 */
54 @Override
55 protected EClass eStaticClass() {
56 return CrossingScenarioPackage.Literals.VISION_BLOCKED;
57 }
58
59 /**
60 * <!-- begin-user-doc -->
61 * <!-- end-user-doc -->
62 * @generated
63 */
64 @Override
65 public Actor getBlockedBy() {
66 if (blockedBy != null && blockedBy.eIsProxy()) {
67 InternalEObject oldBlockedBy = (InternalEObject)blockedBy;
68 blockedBy = (Actor)eResolveProxy(oldBlockedBy);
69 if (blockedBy != oldBlockedBy) {
70 if (eNotificationRequired())
71 eNotify(new ENotificationImpl(this, Notification.RESOLVE, CrossingScenarioPackage.VISION_BLOCKED__BLOCKED_BY, oldBlockedBy, blockedBy));
72 }
73 }
74 return blockedBy;
75 }
76
77 /**
78 * <!-- begin-user-doc -->
79 * <!-- end-user-doc -->
80 * @generated
81 */
82 public Actor basicGetBlockedBy() {
83 return blockedBy;
84 }
85
86 /**
87 * <!-- begin-user-doc -->
88 * <!-- end-user-doc -->
89 * @generated
90 */
91 @Override
92 public void setBlockedBy(Actor newBlockedBy) {
93 Actor oldBlockedBy = blockedBy;
94 blockedBy = newBlockedBy;
95 if (eNotificationRequired())
96 eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.VISION_BLOCKED__BLOCKED_BY, oldBlockedBy, blockedBy));
97 }
98
99 /**
100 * <!-- begin-user-doc -->
101 * <!-- end-user-doc -->
102 * @generated
103 */
104 @Override
105 public Object eGet(int featureID, boolean resolve, boolean coreType) {
106 switch (featureID) {
107 case CrossingScenarioPackage.VISION_BLOCKED__BLOCKED_BY:
108 if (resolve) return getBlockedBy();
109 return basicGetBlockedBy();
110 }
111 return super.eGet(featureID, resolve, coreType);
112 }
113
114 /**
115 * <!-- begin-user-doc -->
116 * <!-- end-user-doc -->
117 * @generated
118 */
119 @Override
120 public void eSet(int featureID, Object newValue) {
121 switch (featureID) {
122 case CrossingScenarioPackage.VISION_BLOCKED__BLOCKED_BY:
123 setBlockedBy((Actor)newValue);
124 return;
125 }
126 super.eSet(featureID, newValue);
127 }
128
129 /**
130 * <!-- begin-user-doc -->
131 * <!-- end-user-doc -->
132 * @generated
133 */
134 @Override
135 public void eUnset(int featureID) {
136 switch (featureID) {
137 case CrossingScenarioPackage.VISION_BLOCKED__BLOCKED_BY:
138 setBlockedBy((Actor)null);
139 return;
140 }
141 super.eUnset(featureID);
142 }
143
144 /**
145 * <!-- begin-user-doc -->
146 * <!-- end-user-doc -->
147 * @generated
148 */
149 @Override
150 public boolean eIsSet(int featureID) {
151 switch (featureID) {
152 case CrossingScenarioPackage.VISION_BLOCKED__BLOCKED_BY:
153 return blockedBy != null;
154 }
155 return super.eIsSet(featureID);
156 }
157
158} //VisionBlockedImpl
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/util/CrossingScenarioAdapterFactory.java b/Domains/crossingScenario/ecore-gen/crossingScenario/util/CrossingScenarioAdapterFactory.java
new file mode 100644
index 00000000..0035a0ee
--- /dev/null
+++ b/Domains/crossingScenario/ecore-gen/crossingScenario/util/CrossingScenarioAdapterFactory.java
@@ -0,0 +1,318 @@
1/**
2 */
3package crossingScenario.util;
4
5import crossingScenario.*;
6
7import org.eclipse.emf.common.notify.Adapter;
8import org.eclipse.emf.common.notify.Notifier;
9
10import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
11
12import org.eclipse.emf.ecore.EObject;
13
14/**
15 * <!-- begin-user-doc -->
16 * The <b>Adapter Factory</b> for the model.
17 * It provides an adapter <code>createXXX</code> method for each class of the model.
18 * <!-- end-user-doc -->
19 * @see crossingScenario.CrossingScenarioPackage
20 * @generated
21 */
22public class CrossingScenarioAdapterFactory extends AdapterFactoryImpl {
23 /**
24 * The cached model package.
25 * <!-- begin-user-doc -->
26 * <!-- end-user-doc -->
27 * @generated
28 */
29 protected static CrossingScenarioPackage modelPackage;
30
31 /**
32 * Creates an instance of the adapter factory.
33 * <!-- begin-user-doc -->
34 * <!-- end-user-doc -->
35 * @generated
36 */
37 public CrossingScenarioAdapterFactory() {
38 if (modelPackage == null) {
39 modelPackage = CrossingScenarioPackage.eINSTANCE;
40 }
41 }
42
43 /**
44 * Returns whether this factory is applicable for the type of the object.
45 * <!-- begin-user-doc -->
46 * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
47 * <!-- end-user-doc -->
48 * @return whether this factory is applicable for the type of the object.
49 * @generated
50 */
51 @Override
52 public boolean isFactoryForType(Object object) {
53 if (object == modelPackage) {
54 return true;
55 }
56 if (object instanceof EObject) {
57 return ((EObject)object).eClass().getEPackage() == modelPackage;
58 }
59 return false;
60 }
61
62 /**
63 * The switch that delegates to the <code>createXXX</code> methods.
64 * <!-- begin-user-doc -->
65 * <!-- end-user-doc -->
66 * @generated
67 */
68 protected CrossingScenarioSwitch<Adapter> modelSwitch =
69 new CrossingScenarioSwitch<Adapter>() {
70 @Override
71 public Adapter caseCrossingScenario(CrossingScenario object) {
72 return createCrossingScenarioAdapter();
73 }
74 @Override
75 public Adapter caseLane(Lane object) {
76 return createLaneAdapter();
77 }
78 @Override
79 public Adapter caseActor(Actor object) {
80 return createActorAdapter();
81 }
82 @Override
83 public Adapter caseRelation(Relation object) {
84 return createRelationAdapter();
85 }
86 @Override
87 public Adapter caseSpatialRelation(SpatialRelation object) {
88 return createSpatialRelationAdapter();
89 }
90 @Override
91 public Adapter caseTemporalRelation(TemporalRelation object) {
92 return createTemporalRelationAdapter();
93 }
94 @Override
95 public Adapter caseVisionBlocked(VisionBlocked object) {
96 return createVisionBlockedAdapter();
97 }
98 @Override
99 public Adapter caseSeparationDistance(SeparationDistance object) {
100 return createSeparationDistanceAdapter();
101 }
102 @Override
103 public Adapter caseCollisionExists(CollisionExists object) {
104 return createCollisionExistsAdapter();
105 }
106 @Override
107 public Adapter caseCollisionDoesNotExist(CollisionDoesNotExist object) {
108 return createCollisionDoesNotExistAdapter();
109 }
110 @Override
111 public Adapter casePedestrian(Pedestrian object) {
112 return createPedestrianAdapter();
113 }
114 @Override
115 public Adapter caseVehicle(Vehicle object) {
116 return createVehicleAdapter();
117 }
118 @Override
119 public Adapter defaultCase(EObject object) {
120 return createEObjectAdapter();
121 }
122 };
123
124 /**
125 * Creates an adapter for the <code>target</code>.
126 * <!-- begin-user-doc -->
127 * <!-- end-user-doc -->
128 * @param target the object to adapt.
129 * @return the adapter for the <code>target</code>.
130 * @generated
131 */
132 @Override
133 public Adapter createAdapter(Notifier target) {
134 return modelSwitch.doSwitch((EObject)target);
135 }
136
137
138 /**
139 * Creates a new adapter for an object of class '{@link crossingScenario.CrossingScenario <em>Crossing Scenario</em>}'.
140 * <!-- begin-user-doc -->
141 * This default implementation returns null so that we can easily ignore cases;
142 * it's useful to ignore a case when inheritance will catch all the cases anyway.
143 * <!-- end-user-doc -->
144 * @return the new adapter.
145 * @see crossingScenario.CrossingScenario
146 * @generated
147 */
148 public Adapter createCrossingScenarioAdapter() {
149 return null;
150 }
151
152 /**
153 * Creates a new adapter for an object of class '{@link crossingScenario.Lane <em>Lane</em>}'.
154 * <!-- begin-user-doc -->
155 * This default implementation returns null so that we can easily ignore cases;
156 * it's useful to ignore a case when inheritance will catch all the cases anyway.
157 * <!-- end-user-doc -->
158 * @return the new adapter.
159 * @see crossingScenario.Lane
160 * @generated
161 */
162 public Adapter createLaneAdapter() {
163 return null;
164 }
165
166 /**
167 * Creates a new adapter for an object of class '{@link crossingScenario.Actor <em>Actor</em>}'.
168 * <!-- begin-user-doc -->
169 * This default implementation returns null so that we can easily ignore cases;
170 * it's useful to ignore a case when inheritance will catch all the cases anyway.
171 * <!-- end-user-doc -->
172 * @return the new adapter.
173 * @see crossingScenario.Actor
174 * @generated
175 */
176 public Adapter createActorAdapter() {
177 return null;
178 }
179
180 /**
181 * Creates a new adapter for an object of class '{@link crossingScenario.Relation <em>Relation</em>}'.
182 * <!-- begin-user-doc -->
183 * This default implementation returns null so that we can easily ignore cases;
184 * it's useful to ignore a case when inheritance will catch all the cases anyway.
185 * <!-- end-user-doc -->
186 * @return the new adapter.
187 * @see crossingScenario.Relation
188 * @generated
189 */
190 public Adapter createRelationAdapter() {
191 return null;
192 }
193
194 /**
195 * Creates a new adapter for an object of class '{@link crossingScenario.SpatialRelation <em>Spatial Relation</em>}'.
196 * <!-- begin-user-doc -->
197 * This default implementation returns null so that we can easily ignore cases;
198 * it's useful to ignore a case when inheritance will catch all the cases anyway.
199 * <!-- end-user-doc -->
200 * @return the new adapter.
201 * @see crossingScenario.SpatialRelation
202 * @generated
203 */
204 public Adapter createSpatialRelationAdapter() {
205 return null;
206 }
207
208 /**
209 * Creates a new adapter for an object of class '{@link crossingScenario.TemporalRelation <em>Temporal Relation</em>}'.
210 * <!-- begin-user-doc -->
211 * This default implementation returns null so that we can easily ignore cases;
212 * it's useful to ignore a case when inheritance will catch all the cases anyway.
213 * <!-- end-user-doc -->
214 * @return the new adapter.
215 * @see crossingScenario.TemporalRelation
216 * @generated
217 */
218 public Adapter createTemporalRelationAdapter() {
219 return null;
220 }
221
222 /**
223 * Creates a new adapter for an object of class '{@link crossingScenario.VisionBlocked <em>Vision Blocked</em>}'.
224 * <!-- begin-user-doc -->
225 * This default implementation returns null so that we can easily ignore cases;
226 * it's useful to ignore a case when inheritance will catch all the cases anyway.
227 * <!-- end-user-doc -->
228 * @return the new adapter.
229 * @see crossingScenario.VisionBlocked
230 * @generated
231 */
232 public Adapter createVisionBlockedAdapter() {
233 return null;
234 }
235
236 /**
237 * Creates a new adapter for an object of class '{@link crossingScenario.SeparationDistance <em>Separation Distance</em>}'.
238 * <!-- begin-user-doc -->
239 * This default implementation returns null so that we can easily ignore cases;
240 * it's useful to ignore a case when inheritance will catch all the cases anyway.
241 * <!-- end-user-doc -->
242 * @return the new adapter.
243 * @see crossingScenario.SeparationDistance
244 * @generated
245 */
246 public Adapter createSeparationDistanceAdapter() {
247 return null;
248 }
249
250 /**
251 * Creates a new adapter for an object of class '{@link crossingScenario.CollisionExists <em>Collision Exists</em>}'.
252 * <!-- begin-user-doc -->
253 * This default implementation returns null so that we can easily ignore cases;
254 * it's useful to ignore a case when inheritance will catch all the cases anyway.
255 * <!-- end-user-doc -->
256 * @return the new adapter.
257 * @see crossingScenario.CollisionExists
258 * @generated
259 */
260 public Adapter createCollisionExistsAdapter() {
261 return null;
262 }
263
264 /**
265 * Creates a new adapter for an object of class '{@link crossingScenario.CollisionDoesNotExist <em>Collision Does Not Exist</em>}'.
266 * <!-- begin-user-doc -->
267 * This default implementation returns null so that we can easily ignore cases;
268 * it's useful to ignore a case when inheritance will catch all the cases anyway.
269 * <!-- end-user-doc -->
270 * @return the new adapter.
271 * @see crossingScenario.CollisionDoesNotExist
272 * @generated
273 */
274 public Adapter createCollisionDoesNotExistAdapter() {
275 return null;
276 }
277
278 /**
279 * Creates a new adapter for an object of class '{@link crossingScenario.Pedestrian <em>Pedestrian</em>}'.
280 * <!-- begin-user-doc -->
281 * This default implementation returns null so that we can easily ignore cases;
282 * it's useful to ignore a case when inheritance will catch all the cases anyway.
283 * <!-- end-user-doc -->
284 * @return the new adapter.
285 * @see crossingScenario.Pedestrian
286 * @generated
287 */
288 public Adapter createPedestrianAdapter() {
289 return null;
290 }
291
292 /**
293 * Creates a new adapter for an object of class '{@link crossingScenario.Vehicle <em>Vehicle</em>}'.
294 * <!-- begin-user-doc -->
295 * This default implementation returns null so that we can easily ignore cases;
296 * it's useful to ignore a case when inheritance will catch all the cases anyway.
297 * <!-- end-user-doc -->
298 * @return the new adapter.
299 * @see crossingScenario.Vehicle
300 * @generated
301 */
302 public Adapter createVehicleAdapter() {
303 return null;
304 }
305
306 /**
307 * Creates a new adapter for the default case.
308 * <!-- begin-user-doc -->
309 * This default implementation returns null.
310 * <!-- end-user-doc -->
311 * @return the new adapter.
312 * @generated
313 */
314 public Adapter createEObjectAdapter() {
315 return null;
316 }
317
318} //CrossingScenarioAdapterFactory
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/util/CrossingScenarioSwitch.java b/Domains/crossingScenario/ecore-gen/crossingScenario/util/CrossingScenarioSwitch.java
new file mode 100644
index 00000000..b14a5c24
--- /dev/null
+++ b/Domains/crossingScenario/ecore-gen/crossingScenario/util/CrossingScenarioSwitch.java
@@ -0,0 +1,353 @@
1/**
2 */
3package crossingScenario.util;
4
5import crossingScenario.*;
6
7import org.eclipse.emf.ecore.EObject;
8import org.eclipse.emf.ecore.EPackage;
9
10import org.eclipse.emf.ecore.util.Switch;
11
12/**
13 * <!-- begin-user-doc -->
14 * The <b>Switch</b> for the model's inheritance hierarchy.
15 * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
16 * to invoke the <code>caseXXX</code> method for each class of the model,
17 * starting with the actual class of the object
18 * and proceeding up the inheritance hierarchy
19 * until a non-null result is returned,
20 * which is the result of the switch.
21 * <!-- end-user-doc -->
22 * @see crossingScenario.CrossingScenarioPackage
23 * @generated
24 */
25public class CrossingScenarioSwitch<T> extends Switch<T> {
26 /**
27 * The cached model package
28 * <!-- begin-user-doc -->
29 * <!-- end-user-doc -->
30 * @generated
31 */
32 protected static CrossingScenarioPackage modelPackage;
33
34 /**
35 * Creates an instance of the switch.
36 * <!-- begin-user-doc -->
37 * <!-- end-user-doc -->
38 * @generated
39 */
40 public CrossingScenarioSwitch() {
41 if (modelPackage == null) {
42 modelPackage = CrossingScenarioPackage.eINSTANCE;
43 }
44 }
45
46 /**
47 * Checks whether this is a switch for the given package.
48 * <!-- begin-user-doc -->
49 * <!-- end-user-doc -->
50 * @param ePackage the package in question.
51 * @return whether this is a switch for the given package.
52 * @generated
53 */
54 @Override
55 protected boolean isSwitchFor(EPackage ePackage) {
56 return ePackage == modelPackage;
57 }
58
59 /**
60 * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
61 * <!-- begin-user-doc -->
62 * <!-- end-user-doc -->
63 * @return the first non-null result returned by a <code>caseXXX</code> call.
64 * @generated
65 */
66 @Override
67 protected T doSwitch(int classifierID, EObject theEObject) {
68 switch (classifierID) {
69 case CrossingScenarioPackage.CROSSING_SCENARIO: {
70 CrossingScenario crossingScenario = (CrossingScenario)theEObject;
71 T result = caseCrossingScenario(crossingScenario);
72 if (result == null) result = defaultCase(theEObject);
73 return result;
74 }
75 case CrossingScenarioPackage.LANE: {
76 Lane lane = (Lane)theEObject;
77 T result = caseLane(lane);
78 if (result == null) result = defaultCase(theEObject);
79 return result;
80 }
81 case CrossingScenarioPackage.ACTOR: {
82 Actor actor = (Actor)theEObject;
83 T result = caseActor(actor);
84 if (result == null) result = defaultCase(theEObject);
85 return result;
86 }
87 case CrossingScenarioPackage.RELATION: {
88 Relation relation = (Relation)theEObject;
89 T result = caseRelation(relation);
90 if (result == null) result = defaultCase(theEObject);
91 return result;
92 }
93 case CrossingScenarioPackage.SPATIAL_RELATION: {
94 SpatialRelation spatialRelation = (SpatialRelation)theEObject;
95 T result = caseSpatialRelation(spatialRelation);
96 if (result == null) result = caseRelation(spatialRelation);
97 if (result == null) result = defaultCase(theEObject);
98 return result;
99 }
100 case CrossingScenarioPackage.TEMPORAL_RELATION: {
101 TemporalRelation temporalRelation = (TemporalRelation)theEObject;
102 T result = caseTemporalRelation(temporalRelation);
103 if (result == null) result = caseRelation(temporalRelation);
104 if (result == null) result = defaultCase(theEObject);
105 return result;
106 }
107 case CrossingScenarioPackage.VISION_BLOCKED: {
108 VisionBlocked visionBlocked = (VisionBlocked)theEObject;
109 T result = caseVisionBlocked(visionBlocked);
110 if (result == null) result = caseSpatialRelation(visionBlocked);
111 if (result == null) result = caseRelation(visionBlocked);
112 if (result == null) result = defaultCase(theEObject);
113 return result;
114 }
115 case CrossingScenarioPackage.SEPARATION_DISTANCE: {
116 SeparationDistance separationDistance = (SeparationDistance)theEObject;
117 T result = caseSeparationDistance(separationDistance);
118 if (result == null) result = caseSpatialRelation(separationDistance);
119 if (result == null) result = caseRelation(separationDistance);
120 if (result == null) result = defaultCase(theEObject);
121 return result;
122 }
123 case CrossingScenarioPackage.COLLISION_EXISTS: {
124 CollisionExists collisionExists = (CollisionExists)theEObject;
125 T result = caseCollisionExists(collisionExists);
126 if (result == null) result = caseTemporalRelation(collisionExists);
127 if (result == null) result = caseRelation(collisionExists);
128 if (result == null) result = defaultCase(theEObject);
129 return result;
130 }
131 case CrossingScenarioPackage.COLLISION_DOES_NOT_EXIST: {
132 CollisionDoesNotExist collisionDoesNotExist = (CollisionDoesNotExist)theEObject;
133 T result = caseCollisionDoesNotExist(collisionDoesNotExist);
134 if (result == null) result = caseTemporalRelation(collisionDoesNotExist);
135 if (result == null) result = caseRelation(collisionDoesNotExist);
136 if (result == null) result = defaultCase(theEObject);
137 return result;
138 }
139 case CrossingScenarioPackage.PEDESTRIAN: {
140 Pedestrian pedestrian = (Pedestrian)theEObject;
141 T result = casePedestrian(pedestrian);
142 if (result == null) result = caseActor(pedestrian);
143 if (result == null) result = defaultCase(theEObject);
144 return result;
145 }
146 case CrossingScenarioPackage.VEHICLE: {
147 Vehicle vehicle = (Vehicle)theEObject;
148 T result = caseVehicle(vehicle);
149 if (result == null) result = caseActor(vehicle);
150 if (result == null) result = defaultCase(theEObject);
151 return result;
152 }
153 default: return defaultCase(theEObject);
154 }
155 }
156
157 /**
158 * Returns the result of interpreting the object as an instance of '<em>Crossing Scenario</em>'.
159 * <!-- begin-user-doc -->
160 * This implementation returns null;
161 * returning a non-null result will terminate the switch.
162 * <!-- end-user-doc -->
163 * @param object the target of the switch.
164 * @return the result of interpreting the object as an instance of '<em>Crossing Scenario</em>'.
165 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
166 * @generated
167 */
168 public T caseCrossingScenario(CrossingScenario object) {
169 return null;
170 }
171
172 /**
173 * Returns the result of interpreting the object as an instance of '<em>Lane</em>'.
174 * <!-- begin-user-doc -->
175 * This implementation returns null;
176 * returning a non-null result will terminate the switch.
177 * <!-- end-user-doc -->
178 * @param object the target of the switch.
179 * @return the result of interpreting the object as an instance of '<em>Lane</em>'.
180 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
181 * @generated
182 */
183 public T caseLane(Lane object) {
184 return null;
185 }
186
187 /**
188 * Returns the result of interpreting the object as an instance of '<em>Actor</em>'.
189 * <!-- begin-user-doc -->
190 * This implementation returns null;
191 * returning a non-null result will terminate the switch.
192 * <!-- end-user-doc -->
193 * @param object the target of the switch.
194 * @return the result of interpreting the object as an instance of '<em>Actor</em>'.
195 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
196 * @generated
197 */
198 public T caseActor(Actor object) {
199 return null;
200 }
201
202 /**
203 * Returns the result of interpreting the object as an instance of '<em>Relation</em>'.
204 * <!-- begin-user-doc -->
205 * This implementation returns null;
206 * returning a non-null result will terminate the switch.
207 * <!-- end-user-doc -->
208 * @param object the target of the switch.
209 * @return the result of interpreting the object as an instance of '<em>Relation</em>'.
210 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
211 * @generated
212 */
213 public T caseRelation(Relation object) {
214 return null;
215 }
216
217 /**
218 * Returns the result of interpreting the object as an instance of '<em>Spatial Relation</em>'.
219 * <!-- begin-user-doc -->
220 * This implementation returns null;
221 * returning a non-null result will terminate the switch.
222 * <!-- end-user-doc -->
223 * @param object the target of the switch.
224 * @return the result of interpreting the object as an instance of '<em>Spatial Relation</em>'.
225 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
226 * @generated
227 */
228 public T caseSpatialRelation(SpatialRelation object) {
229 return null;
230 }
231
232 /**
233 * Returns the result of interpreting the object as an instance of '<em>Temporal Relation</em>'.
234 * <!-- begin-user-doc -->
235 * This implementation returns null;
236 * returning a non-null result will terminate the switch.
237 * <!-- end-user-doc -->
238 * @param object the target of the switch.
239 * @return the result of interpreting the object as an instance of '<em>Temporal Relation</em>'.
240 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
241 * @generated
242 */
243 public T caseTemporalRelation(TemporalRelation object) {
244 return null;
245 }
246
247 /**
248 * Returns the result of interpreting the object as an instance of '<em>Vision Blocked</em>'.
249 * <!-- begin-user-doc -->
250 * This implementation returns null;
251 * returning a non-null result will terminate the switch.
252 * <!-- end-user-doc -->
253 * @param object the target of the switch.
254 * @return the result of interpreting the object as an instance of '<em>Vision Blocked</em>'.
255 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
256 * @generated
257 */
258 public T caseVisionBlocked(VisionBlocked object) {
259 return null;
260 }
261
262 /**
263 * Returns the result of interpreting the object as an instance of '<em>Separation Distance</em>'.
264 * <!-- begin-user-doc -->
265 * This implementation returns null;
266 * returning a non-null result will terminate the switch.
267 * <!-- end-user-doc -->
268 * @param object the target of the switch.
269 * @return the result of interpreting the object as an instance of '<em>Separation Distance</em>'.
270 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
271 * @generated
272 */
273 public T caseSeparationDistance(SeparationDistance object) {
274 return null;
275 }
276
277 /**
278 * Returns the result of interpreting the object as an instance of '<em>Collision Exists</em>'.
279 * <!-- begin-user-doc -->
280 * This implementation returns null;
281 * returning a non-null result will terminate the switch.
282 * <!-- end-user-doc -->
283 * @param object the target of the switch.
284 * @return the result of interpreting the object as an instance of '<em>Collision Exists</em>'.
285 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
286 * @generated
287 */
288 public T caseCollisionExists(CollisionExists object) {
289 return null;
290 }
291
292 /**
293 * Returns the result of interpreting the object as an instance of '<em>Collision Does Not Exist</em>'.
294 * <!-- begin-user-doc -->
295 * This implementation returns null;
296 * returning a non-null result will terminate the switch.
297 * <!-- end-user-doc -->
298 * @param object the target of the switch.
299 * @return the result of interpreting the object as an instance of '<em>Collision Does Not Exist</em>'.
300 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
301 * @generated
302 */
303 public T caseCollisionDoesNotExist(CollisionDoesNotExist object) {
304 return null;
305 }
306
307 /**
308 * Returns the result of interpreting the object as an instance of '<em>Pedestrian</em>'.
309 * <!-- begin-user-doc -->
310 * This implementation returns null;
311 * returning a non-null result will terminate the switch.
312 * <!-- end-user-doc -->
313 * @param object the target of the switch.
314 * @return the result of interpreting the object as an instance of '<em>Pedestrian</em>'.
315 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
316 * @generated
317 */
318 public T casePedestrian(Pedestrian object) {
319 return null;
320 }
321
322 /**
323 * Returns the result of interpreting the object as an instance of '<em>Vehicle</em>'.
324 * <!-- begin-user-doc -->
325 * This implementation returns null;
326 * returning a non-null result will terminate the switch.
327 * <!-- end-user-doc -->
328 * @param object the target of the switch.
329 * @return the result of interpreting the object as an instance of '<em>Vehicle</em>'.
330 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
331 * @generated
332 */
333 public T caseVehicle(Vehicle object) {
334 return null;
335 }
336
337 /**
338 * Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
339 * <!-- begin-user-doc -->
340 * This implementation returns null;
341 * returning a non-null result will terminate the switch, but this is the last case anyway.
342 * <!-- end-user-doc -->
343 * @param object the target of the switch.
344 * @return the result of interpreting the object as an instance of '<em>EObject</em>'.
345 * @see #doSwitch(org.eclipse.emf.ecore.EObject)
346 * @generated
347 */
348 @Override
349 public T defaultCase(EObject object) {
350 return null;
351 }
352
353} //CrossingScenarioSwitch