diff options
48 files changed, 7200 insertions, 8058 deletions
diff --git a/Domains/crossingScenario/.classpath b/Domains/crossingScenario/.classpath index 693aa2b8..5bc9ff04 100644 --- a/Domains/crossingScenario/.classpath +++ b/Domains/crossingScenario/.classpath | |||
@@ -3,6 +3,6 @@ | |||
3 | <classpathentry kind="src" path="ecore-gen"/> | 3 | <classpathentry kind="src" path="ecore-gen"/> |
4 | <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/> | 4 | <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/> |
5 | <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> | 5 | <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> |
6 | <classpathentry kind="src" path="src"/> | 6 | <classpathentry kind="src" path="src"/> |
7 | <classpathentry kind="output" path="bin"/> | 7 | <classpathentry kind="output" path="bin"/> |
8 | </classpath> | 8 | </classpath> |
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/Actor.java b/Domains/crossingScenario/ecore-gen/crossingScenario/Actor.java index 729ad25f..1b570b6f 100644 --- a/Domains/crossingScenario/ecore-gen/crossingScenario/Actor.java +++ b/Domains/crossingScenario/ecore-gen/crossingScenario/Actor.java | |||
@@ -1,229 +1,229 @@ | |||
1 | /** | 1 | /** |
2 | */ | 2 | */ |
3 | package crossingScenario; | 3 | package crossingScenario; |
4 | 4 | ||
5 | import org.eclipse.emf.common.util.EList; | 5 | import org.eclipse.emf.common.util.EList; |
6 | 6 | ||
7 | import org.eclipse.emf.ecore.EObject; | 7 | import org.eclipse.emf.ecore.EObject; |
8 | 8 | ||
9 | /** | 9 | /** |
10 | * <!-- begin-user-doc --> | 10 | * <!-- begin-user-doc --> |
11 | * A representation of the model object '<em><b>Actor</b></em>'. | 11 | * A representation of the model object '<em><b>Actor</b></em>'. |
12 | * <!-- end-user-doc --> | 12 | * <!-- end-user-doc --> |
13 | * | 13 | * |
14 | * <p> | 14 | * <p> |
15 | * The following features are supported: | 15 | * The following features are supported: |
16 | * </p> | 16 | * </p> |
17 | * <ul> | 17 | * <ul> |
18 | * <li>{@link crossingScenario.Actor#getXPos <em>XPos</em>}</li> | 18 | * <li>{@link crossingScenario.Actor#getXPos <em>XPos</em>}</li> |
19 | * <li>{@link crossingScenario.Actor#getYPos <em>YPos</em>}</li> | 19 | * <li>{@link crossingScenario.Actor#getYPos <em>YPos</em>}</li> |
20 | * <li>{@link crossingScenario.Actor#getLength <em>Length</em>}</li> | 20 | * <li>{@link crossingScenario.Actor#getLength <em>Length</em>}</li> |
21 | * <li>{@link crossingScenario.Actor#getWidth <em>Width</em>}</li> | 21 | * <li>{@link crossingScenario.Actor#getWidth <em>Width</em>}</li> |
22 | * <li>{@link crossingScenario.Actor#getXSpeed <em>XSpeed</em>}</li> | 22 | * <li>{@link crossingScenario.Actor#getXSpeed <em>XSpeed</em>}</li> |
23 | * <li>{@link crossingScenario.Actor#getPlacedOn <em>Placed On</em>}</li> | 23 | * <li>{@link crossingScenario.Actor#getPlacedOn <em>Placed On</em>}</li> |
24 | * <li>{@link crossingScenario.Actor#getYSpeed <em>YSpeed</em>}</li> | 24 | * <li>{@link crossingScenario.Actor#getYSpeed <em>YSpeed</em>}</li> |
25 | * <li>{@link crossingScenario.Actor#getDist_near <em>Dist near</em>}</li> | 25 | * <li>{@link crossingScenario.Actor#getDist_near <em>Dist near</em>}</li> |
26 | * <li>{@link crossingScenario.Actor#getDist_med <em>Dist med</em>}</li> | 26 | * <li>{@link crossingScenario.Actor#getDist_med <em>Dist med</em>}</li> |
27 | * <li>{@link crossingScenario.Actor#getDist_far <em>Dist far</em>}</li> | 27 | * <li>{@link crossingScenario.Actor#getDist_far <em>Dist far</em>}</li> |
28 | * </ul> | 28 | * </ul> |
29 | * | 29 | * |
30 | * @see crossingScenario.CrossingScenarioPackage#getActor() | 30 | * @see crossingScenario.CrossingScenarioPackage#getActor() |
31 | * @model abstract="true" | 31 | * @model abstract="true" |
32 | * @generated | 32 | * @generated |
33 | */ | 33 | */ |
34 | public interface Actor extends EObject { | 34 | public interface Actor extends EObject { |
35 | /** | 35 | /** |
36 | * Returns the value of the '<em><b>XPos</b></em>' attribute. | 36 | * Returns the value of the '<em><b>XPos</b></em>' attribute. |
37 | * <!-- begin-user-doc --> | 37 | * <!-- begin-user-doc --> |
38 | * <!-- end-user-doc --> | 38 | * <!-- end-user-doc --> |
39 | * @return the value of the '<em>XPos</em>' attribute. | 39 | * @return the value of the '<em>XPos</em>' attribute. |
40 | * @see #setXPos(double) | 40 | * @see #setXPos(double) |
41 | * @see crossingScenario.CrossingScenarioPackage#getActor_XPos() | 41 | * @see crossingScenario.CrossingScenarioPackage#getActor_XPos() |
42 | * @model required="true" | 42 | * @model required="true" |
43 | * @generated | 43 | * @generated |
44 | */ | 44 | */ |
45 | double getXPos(); | 45 | double getXPos(); |
46 | 46 | ||
47 | /** | 47 | /** |
48 | * Sets the value of the '{@link crossingScenario.Actor#getXPos <em>XPos</em>}' attribute. | 48 | * Sets the value of the '{@link crossingScenario.Actor#getXPos <em>XPos</em>}' attribute. |
49 | * <!-- begin-user-doc --> | 49 | * <!-- begin-user-doc --> |
50 | * <!-- end-user-doc --> | 50 | * <!-- end-user-doc --> |
51 | * @param value the new value of the '<em>XPos</em>' attribute. | 51 | * @param value the new value of the '<em>XPos</em>' attribute. |
52 | * @see #getXPos() | 52 | * @see #getXPos() |
53 | * @generated | 53 | * @generated |
54 | */ | 54 | */ |
55 | void setXPos(double value); | 55 | void setXPos(double value); |
56 | 56 | ||
57 | /** | 57 | /** |
58 | * Returns the value of the '<em><b>YPos</b></em>' attribute. | 58 | * Returns the value of the '<em><b>YPos</b></em>' attribute. |
59 | * <!-- begin-user-doc --> | 59 | * <!-- begin-user-doc --> |
60 | * <!-- end-user-doc --> | 60 | * <!-- end-user-doc --> |
61 | * @return the value of the '<em>YPos</em>' attribute. | 61 | * @return the value of the '<em>YPos</em>' attribute. |
62 | * @see #setYPos(double) | 62 | * @see #setYPos(double) |
63 | * @see crossingScenario.CrossingScenarioPackage#getActor_YPos() | 63 | * @see crossingScenario.CrossingScenarioPackage#getActor_YPos() |
64 | * @model required="true" | 64 | * @model required="true" |
65 | * @generated | 65 | * @generated |
66 | */ | 66 | */ |
67 | double getYPos(); | 67 | double getYPos(); |
68 | 68 | ||
69 | /** | 69 | /** |
70 | * Sets the value of the '{@link crossingScenario.Actor#getYPos <em>YPos</em>}' attribute. | 70 | * Sets the value of the '{@link crossingScenario.Actor#getYPos <em>YPos</em>}' attribute. |
71 | * <!-- begin-user-doc --> | 71 | * <!-- begin-user-doc --> |
72 | * <!-- end-user-doc --> | 72 | * <!-- end-user-doc --> |
73 | * @param value the new value of the '<em>YPos</em>' attribute. | 73 | * @param value the new value of the '<em>YPos</em>' attribute. |
74 | * @see #getYPos() | 74 | * @see #getYPos() |
75 | * @generated | 75 | * @generated |
76 | */ | 76 | */ |
77 | void setYPos(double value); | 77 | void setYPos(double value); |
78 | 78 | ||
79 | /** | 79 | /** |
80 | * Returns the value of the '<em><b>Length</b></em>' attribute. | 80 | * Returns the value of the '<em><b>Length</b></em>' attribute. |
81 | * The default value is <code>"0.0"</code>. | 81 | * The default value is <code>"0.0"</code>. |
82 | * <!-- begin-user-doc --> | 82 | * <!-- begin-user-doc --> |
83 | * <!-- end-user-doc --> | 83 | * <!-- end-user-doc --> |
84 | * @return the value of the '<em>Length</em>' attribute. | 84 | * @return the value of the '<em>Length</em>' attribute. |
85 | * @see #setLength(double) | 85 | * @see #setLength(double) |
86 | * @see crossingScenario.CrossingScenarioPackage#getActor_Length() | 86 | * @see crossingScenario.CrossingScenarioPackage#getActor_Length() |
87 | * @model default="0.0" required="true" | 87 | * @model default="0.0" required="true" |
88 | * @generated | 88 | * @generated |
89 | */ | 89 | */ |
90 | double getLength(); | 90 | double getLength(); |
91 | 91 | ||
92 | /** | 92 | /** |
93 | * Sets the value of the '{@link crossingScenario.Actor#getLength <em>Length</em>}' attribute. | 93 | * Sets the value of the '{@link crossingScenario.Actor#getLength <em>Length</em>}' attribute. |
94 | * <!-- begin-user-doc --> | 94 | * <!-- begin-user-doc --> |
95 | * <!-- end-user-doc --> | 95 | * <!-- end-user-doc --> |
96 | * @param value the new value of the '<em>Length</em>' attribute. | 96 | * @param value the new value of the '<em>Length</em>' attribute. |
97 | * @see #getLength() | 97 | * @see #getLength() |
98 | * @generated | 98 | * @generated |
99 | */ | 99 | */ |
100 | void setLength(double value); | 100 | void setLength(double value); |
101 | 101 | ||
102 | /** | 102 | /** |
103 | * Returns the value of the '<em><b>Width</b></em>' attribute. | 103 | * Returns the value of the '<em><b>Width</b></em>' attribute. |
104 | * <!-- begin-user-doc --> | 104 | * <!-- begin-user-doc --> |
105 | * <!-- end-user-doc --> | 105 | * <!-- end-user-doc --> |
106 | * @return the value of the '<em>Width</em>' attribute. | 106 | * @return the value of the '<em>Width</em>' attribute. |
107 | * @see #setWidth(double) | 107 | * @see #setWidth(double) |
108 | * @see crossingScenario.CrossingScenarioPackage#getActor_Width() | 108 | * @see crossingScenario.CrossingScenarioPackage#getActor_Width() |
109 | * @model required="true" | 109 | * @model required="true" |
110 | * @generated | 110 | * @generated |
111 | */ | 111 | */ |
112 | double getWidth(); | 112 | double getWidth(); |
113 | 113 | ||
114 | /** | 114 | /** |
115 | * Sets the value of the '{@link crossingScenario.Actor#getWidth <em>Width</em>}' attribute. | 115 | * Sets the value of the '{@link crossingScenario.Actor#getWidth <em>Width</em>}' attribute. |
116 | * <!-- begin-user-doc --> | 116 | * <!-- begin-user-doc --> |
117 | * <!-- end-user-doc --> | 117 | * <!-- end-user-doc --> |
118 | * @param value the new value of the '<em>Width</em>' attribute. | 118 | * @param value the new value of the '<em>Width</em>' attribute. |
119 | * @see #getWidth() | 119 | * @see #getWidth() |
120 | * @generated | 120 | * @generated |
121 | */ | 121 | */ |
122 | void setWidth(double value); | 122 | void setWidth(double value); |
123 | 123 | ||
124 | /** | 124 | /** |
125 | * Returns the value of the '<em><b>XSpeed</b></em>' attribute. | 125 | * Returns the value of the '<em><b>XSpeed</b></em>' attribute. |
126 | * The default value is <code>"0.0"</code>. | 126 | * The default value is <code>"0.0"</code>. |
127 | * <!-- begin-user-doc --> | 127 | * <!-- begin-user-doc --> |
128 | * <!-- end-user-doc --> | 128 | * <!-- end-user-doc --> |
129 | * @return the value of the '<em>XSpeed</em>' attribute. | 129 | * @return the value of the '<em>XSpeed</em>' attribute. |
130 | * @see #setXSpeed(double) | 130 | * @see #setXSpeed(double) |
131 | * @see crossingScenario.CrossingScenarioPackage#getActor_XSpeed() | 131 | * @see crossingScenario.CrossingScenarioPackage#getActor_XSpeed() |
132 | * @model default="0.0" required="true" | 132 | * @model default="0.0" required="true" |
133 | * @generated | 133 | * @generated |
134 | */ | 134 | */ |
135 | double getXSpeed(); | 135 | double getXSpeed(); |
136 | 136 | ||
137 | /** | 137 | /** |
138 | * Sets the value of the '{@link crossingScenario.Actor#getXSpeed <em>XSpeed</em>}' attribute. | 138 | * Sets the value of the '{@link crossingScenario.Actor#getXSpeed <em>XSpeed</em>}' attribute. |
139 | * <!-- begin-user-doc --> | 139 | * <!-- begin-user-doc --> |
140 | * <!-- end-user-doc --> | 140 | * <!-- end-user-doc --> |
141 | * @param value the new value of the '<em>XSpeed</em>' attribute. | 141 | * @param value the new value of the '<em>XSpeed</em>' attribute. |
142 | * @see #getXSpeed() | 142 | * @see #getXSpeed() |
143 | * @generated | 143 | * @generated |
144 | */ | 144 | */ |
145 | void setXSpeed(double value); | 145 | void setXSpeed(double value); |
146 | 146 | ||
147 | /** | 147 | /** |
148 | * Returns the value of the '<em><b>Placed On</b></em>' reference. | 148 | * Returns the value of the '<em><b>Placed On</b></em>' reference. |
149 | * It is bidirectional and its opposite is '{@link crossingScenario.Lane#getActors <em>Actors</em>}'. | 149 | * It is bidirectional and its opposite is '{@link crossingScenario.Lane#getActors <em>Actors</em>}'. |
150 | * <!-- begin-user-doc --> | 150 | * <!-- begin-user-doc --> |
151 | * <!-- end-user-doc --> | 151 | * <!-- end-user-doc --> |
152 | * @return the value of the '<em>Placed On</em>' reference. | 152 | * @return the value of the '<em>Placed On</em>' reference. |
153 | * @see #setPlacedOn(Lane) | 153 | * @see #setPlacedOn(Lane) |
154 | * @see crossingScenario.CrossingScenarioPackage#getActor_PlacedOn() | 154 | * @see crossingScenario.CrossingScenarioPackage#getActor_PlacedOn() |
155 | * @see crossingScenario.Lane#getActors | 155 | * @see crossingScenario.Lane#getActors |
156 | * @model opposite="actors" required="true" | 156 | * @model opposite="actors" required="true" |
157 | * @generated | 157 | * @generated |
158 | */ | 158 | */ |
159 | Lane getPlacedOn(); | 159 | Lane getPlacedOn(); |
160 | 160 | ||
161 | /** | 161 | /** |
162 | * Sets the value of the '{@link crossingScenario.Actor#getPlacedOn <em>Placed On</em>}' reference. | 162 | * Sets the value of the '{@link crossingScenario.Actor#getPlacedOn <em>Placed On</em>}' reference. |
163 | * <!-- begin-user-doc --> | 163 | * <!-- begin-user-doc --> |
164 | * <!-- end-user-doc --> | 164 | * <!-- end-user-doc --> |
165 | * @param value the new value of the '<em>Placed On</em>' reference. | 165 | * @param value the new value of the '<em>Placed On</em>' reference. |
166 | * @see #getPlacedOn() | 166 | * @see #getPlacedOn() |
167 | * @generated | 167 | * @generated |
168 | */ | 168 | */ |
169 | void setPlacedOn(Lane value); | 169 | void setPlacedOn(Lane value); |
170 | 170 | ||
171 | /** | 171 | /** |
172 | * Returns the value of the '<em><b>YSpeed</b></em>' attribute. | 172 | * Returns the value of the '<em><b>YSpeed</b></em>' attribute. |
173 | * <!-- begin-user-doc --> | 173 | * <!-- begin-user-doc --> |
174 | * <!-- end-user-doc --> | 174 | * <!-- end-user-doc --> |
175 | * @return the value of the '<em>YSpeed</em>' attribute. | 175 | * @return the value of the '<em>YSpeed</em>' attribute. |
176 | * @see #setYSpeed(double) | 176 | * @see #setYSpeed(double) |
177 | * @see crossingScenario.CrossingScenarioPackage#getActor_YSpeed() | 177 | * @see crossingScenario.CrossingScenarioPackage#getActor_YSpeed() |
178 | * @model required="true" | 178 | * @model required="true" |
179 | * @generated | 179 | * @generated |
180 | */ | 180 | */ |
181 | double getYSpeed(); | 181 | double getYSpeed(); |
182 | 182 | ||
183 | /** | 183 | /** |
184 | * Sets the value of the '{@link crossingScenario.Actor#getYSpeed <em>YSpeed</em>}' attribute. | 184 | * Sets the value of the '{@link crossingScenario.Actor#getYSpeed <em>YSpeed</em>}' attribute. |
185 | * <!-- begin-user-doc --> | 185 | * <!-- begin-user-doc --> |
186 | * <!-- end-user-doc --> | 186 | * <!-- end-user-doc --> |
187 | * @param value the new value of the '<em>YSpeed</em>' attribute. | 187 | * @param value the new value of the '<em>YSpeed</em>' attribute. |
188 | * @see #getYSpeed() | 188 | * @see #getYSpeed() |
189 | * @generated | 189 | * @generated |
190 | */ | 190 | */ |
191 | void setYSpeed(double value); | 191 | void setYSpeed(double value); |
192 | 192 | ||
193 | /** | 193 | /** |
194 | * Returns the value of the '<em><b>Dist near</b></em>' reference list. | 194 | * Returns the value of the '<em><b>Dist near</b></em>' reference list. |
195 | * The list contents are of type {@link crossingScenario.Actor}. | 195 | * The list contents are of type {@link crossingScenario.Actor}. |
196 | * <!-- begin-user-doc --> | 196 | * <!-- begin-user-doc --> |
197 | * <!-- end-user-doc --> | 197 | * <!-- end-user-doc --> |
198 | * @return the value of the '<em>Dist near</em>' reference list. | 198 | * @return the value of the '<em>Dist near</em>' reference list. |
199 | * @see crossingScenario.CrossingScenarioPackage#getActor_Dist_near() | 199 | * @see crossingScenario.CrossingScenarioPackage#getActor_Dist_near() |
200 | * @model transient="true" volatile="true" derived="true" | 200 | * @model transient="true" volatile="true" derived="true" |
201 | * @generated | 201 | * @generated |
202 | */ | 202 | */ |
203 | EList<Actor> getDist_near(); | 203 | EList<Actor> getDist_near(); |
204 | 204 | ||
205 | /** | 205 | /** |
206 | * Returns the value of the '<em><b>Dist med</b></em>' reference list. | 206 | * Returns the value of the '<em><b>Dist med</b></em>' reference list. |
207 | * The list contents are of type {@link crossingScenario.Actor}. | 207 | * The list contents are of type {@link crossingScenario.Actor}. |
208 | * <!-- begin-user-doc --> | 208 | * <!-- begin-user-doc --> |
209 | * <!-- end-user-doc --> | 209 | * <!-- end-user-doc --> |
210 | * @return the value of the '<em>Dist med</em>' reference list. | 210 | * @return the value of the '<em>Dist med</em>' reference list. |
211 | * @see crossingScenario.CrossingScenarioPackage#getActor_Dist_med() | 211 | * @see crossingScenario.CrossingScenarioPackage#getActor_Dist_med() |
212 | * @model transient="true" volatile="true" derived="true" | 212 | * @model transient="true" volatile="true" derived="true" |
213 | * @generated | 213 | * @generated |
214 | */ | 214 | */ |
215 | EList<Actor> getDist_med(); | 215 | EList<Actor> getDist_med(); |
216 | 216 | ||
217 | /** | 217 | /** |
218 | * Returns the value of the '<em><b>Dist far</b></em>' reference list. | 218 | * Returns the value of the '<em><b>Dist far</b></em>' reference list. |
219 | * The list contents are of type {@link crossingScenario.Actor}. | 219 | * The list contents are of type {@link crossingScenario.Actor}. |
220 | * <!-- begin-user-doc --> | 220 | * <!-- begin-user-doc --> |
221 | * <!-- end-user-doc --> | 221 | * <!-- end-user-doc --> |
222 | * @return the value of the '<em>Dist far</em>' reference list. | 222 | * @return the value of the '<em>Dist far</em>' reference list. |
223 | * @see crossingScenario.CrossingScenarioPackage#getActor_Dist_far() | 223 | * @see crossingScenario.CrossingScenarioPackage#getActor_Dist_far() |
224 | * @model transient="true" volatile="true" derived="true" | 224 | * @model transient="true" volatile="true" derived="true" |
225 | * @generated | 225 | * @generated |
226 | */ | 226 | */ |
227 | EList<Actor> getDist_far(); | 227 | EList<Actor> getDist_far(); |
228 | 228 | ||
229 | } // Actor | 229 | } // Actor |
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/CollisionDoesNotExist.java b/Domains/crossingScenario/ecore-gen/crossingScenario/CollisionDoesNotExist.java deleted file mode 100644 index 1347c478..00000000 --- a/Domains/crossingScenario/ecore-gen/crossingScenario/CollisionDoesNotExist.java +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package 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 | */ | ||
16 | public interface CollisionDoesNotExist extends TemporalRelation { | ||
17 | } // CollisionDoesNotExist | ||
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/CollisionExists.java b/Domains/crossingScenario/ecore-gen/crossingScenario/CollisionExists.java index 95e95217..940cc305 100644 --- a/Domains/crossingScenario/ecore-gen/crossingScenario/CollisionExists.java +++ b/Domains/crossingScenario/ecore-gen/crossingScenario/CollisionExists.java | |||
@@ -1,45 +1,45 @@ | |||
1 | /** | 1 | /** |
2 | */ | 2 | */ |
3 | package crossingScenario; | 3 | package crossingScenario; |
4 | 4 | ||
5 | 5 | ||
6 | /** | 6 | /** |
7 | * <!-- begin-user-doc --> | 7 | * <!-- begin-user-doc --> |
8 | * A representation of the model object '<em><b>Collision Exists</b></em>'. | 8 | * A representation of the model object '<em><b>Collision Exists</b></em>'. |
9 | * <!-- end-user-doc --> | 9 | * <!-- end-user-doc --> |
10 | * | 10 | * |
11 | * <p> | 11 | * <p> |
12 | * The following features are supported: | 12 | * The following features are supported: |
13 | * </p> | 13 | * </p> |
14 | * <ul> | 14 | * <ul> |
15 | * <li>{@link crossingScenario.CollisionExists#getCollisionTime <em>Collision Time</em>}</li> | 15 | * <li>{@link crossingScenario.CollisionExists#getCollisionTime <em>Collision Time</em>}</li> |
16 | * </ul> | 16 | * </ul> |
17 | * | 17 | * |
18 | * @see crossingScenario.CrossingScenarioPackage#getCollisionExists() | 18 | * @see crossingScenario.CrossingScenarioPackage#getCollisionExists() |
19 | * @model | 19 | * @model |
20 | * @generated | 20 | * @generated |
21 | */ | 21 | */ |
22 | public interface CollisionExists extends TemporalRelation { | 22 | public interface CollisionExists extends TemporalRelation { |
23 | /** | 23 | /** |
24 | * Returns the value of the '<em><b>Collision Time</b></em>' attribute. | 24 | * Returns the value of the '<em><b>Collision Time</b></em>' attribute. |
25 | * <!-- begin-user-doc --> | 25 | * <!-- begin-user-doc --> |
26 | * <!-- end-user-doc --> | 26 | * <!-- end-user-doc --> |
27 | * @return the value of the '<em>Collision Time</em>' attribute. | 27 | * @return the value of the '<em>Collision Time</em>' attribute. |
28 | * @see #setCollisionTime(double) | 28 | * @see #setCollisionTime(double) |
29 | * @see crossingScenario.CrossingScenarioPackage#getCollisionExists_CollisionTime() | 29 | * @see crossingScenario.CrossingScenarioPackage#getCollisionExists_CollisionTime() |
30 | * @model required="true" | 30 | * @model required="true" |
31 | * @generated | 31 | * @generated |
32 | */ | 32 | */ |
33 | double getCollisionTime(); | 33 | double getCollisionTime(); |
34 | 34 | ||
35 | /** | 35 | /** |
36 | * Sets the value of the '{@link crossingScenario.CollisionExists#getCollisionTime <em>Collision Time</em>}' attribute. | 36 | * Sets the value of the '{@link crossingScenario.CollisionExists#getCollisionTime <em>Collision Time</em>}' attribute. |
37 | * <!-- begin-user-doc --> | 37 | * <!-- begin-user-doc --> |
38 | * <!-- end-user-doc --> | 38 | * <!-- end-user-doc --> |
39 | * @param value the new value of the '<em>Collision Time</em>' attribute. | 39 | * @param value the new value of the '<em>Collision Time</em>' attribute. |
40 | * @see #getCollisionTime() | 40 | * @see #getCollisionTime() |
41 | * @generated | 41 | * @generated |
42 | */ | 42 | */ |
43 | void setCollisionTime(double value); | 43 | void setCollisionTime(double value); |
44 | 44 | ||
45 | } // CollisionExists | 45 | } // CollisionExists |
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/CrossingScenario.java b/Domains/crossingScenario/ecore-gen/crossingScenario/CrossingScenario.java index 0f8eb79b..aa59e20a 100644 --- a/Domains/crossingScenario/ecore-gen/crossingScenario/CrossingScenario.java +++ b/Domains/crossingScenario/ecore-gen/crossingScenario/CrossingScenario.java | |||
@@ -1,181 +1,181 @@ | |||
1 | /** | 1 | /** |
2 | */ | 2 | */ |
3 | package crossingScenario; | 3 | package crossingScenario; |
4 | 4 | ||
5 | import org.eclipse.emf.common.util.EList; | 5 | import org.eclipse.emf.common.util.EList; |
6 | 6 | ||
7 | import org.eclipse.emf.ecore.EObject; | 7 | import org.eclipse.emf.ecore.EObject; |
8 | 8 | ||
9 | /** | 9 | /** |
10 | * <!-- begin-user-doc --> | 10 | * <!-- begin-user-doc --> |
11 | * A representation of the model object '<em><b>Crossing Scenario</b></em>'. | 11 | * A representation of the model object '<em><b>Crossing Scenario</b></em>'. |
12 | * <!-- end-user-doc --> | 12 | * <!-- end-user-doc --> |
13 | * | 13 | * |
14 | * <p> | 14 | * <p> |
15 | * The following features are supported: | 15 | * The following features are supported: |
16 | * </p> | 16 | * </p> |
17 | * <ul> | 17 | * <ul> |
18 | * <li>{@link crossingScenario.CrossingScenario#getXSize <em>XSize</em>}</li> | 18 | * <li>{@link crossingScenario.CrossingScenario#getXSize <em>XSize</em>}</li> |
19 | * <li>{@link crossingScenario.CrossingScenario#getYSize <em>YSize</em>}</li> | 19 | * <li>{@link crossingScenario.CrossingScenario#getYSize <em>YSize</em>}</li> |
20 | * <li>{@link crossingScenario.CrossingScenario#getActors <em>Actors</em>}</li> | 20 | * <li>{@link crossingScenario.CrossingScenario#getActors <em>Actors</em>}</li> |
21 | * <li>{@link crossingScenario.CrossingScenario#getLanes <em>Lanes</em>}</li> | 21 | * <li>{@link crossingScenario.CrossingScenario#getLanes <em>Lanes</em>}</li> |
22 | * <li>{@link crossingScenario.CrossingScenario#getMaxTime <em>Max Time</em>}</li> | 22 | * <li>{@link crossingScenario.CrossingScenario#getMaxTime <em>Max Time</em>}</li> |
23 | * <li>{@link crossingScenario.CrossingScenario#getRelations <em>Relations</em>}</li> | 23 | * <li>{@link crossingScenario.CrossingScenario#getRelations <em>Relations</em>}</li> |
24 | * <li>{@link crossingScenario.CrossingScenario#getMaxXSpeed <em>Max XSpeed</em>}</li> | 24 | * <li>{@link crossingScenario.CrossingScenario#getMaxXSpeed <em>Max XSpeed</em>}</li> |
25 | * <li>{@link crossingScenario.CrossingScenario#getMaxYSpeed <em>Max YSpeed</em>}</li> | 25 | * <li>{@link crossingScenario.CrossingScenario#getMaxYSpeed <em>Max YSpeed</em>}</li> |
26 | * </ul> | 26 | * </ul> |
27 | * | 27 | * |
28 | * @see crossingScenario.CrossingScenarioPackage#getCrossingScenario() | 28 | * @see crossingScenario.CrossingScenarioPackage#getCrossingScenario() |
29 | * @model | 29 | * @model |
30 | * @generated | 30 | * @generated |
31 | */ | 31 | */ |
32 | public interface CrossingScenario extends EObject { | 32 | public interface CrossingScenario extends EObject { |
33 | /** | 33 | /** |
34 | * Returns the value of the '<em><b>XSize</b></em>' attribute. | 34 | * Returns the value of the '<em><b>XSize</b></em>' attribute. |
35 | * <!-- begin-user-doc --> | 35 | * <!-- begin-user-doc --> |
36 | * <!-- end-user-doc --> | 36 | * <!-- end-user-doc --> |
37 | * @return the value of the '<em>XSize</em>' attribute. | 37 | * @return the value of the '<em>XSize</em>' attribute. |
38 | * @see #setXSize(double) | 38 | * @see #setXSize(double) |
39 | * @see crossingScenario.CrossingScenarioPackage#getCrossingScenario_XSize() | 39 | * @see crossingScenario.CrossingScenarioPackage#getCrossingScenario_XSize() |
40 | * @model | 40 | * @model |
41 | * @generated | 41 | * @generated |
42 | */ | 42 | */ |
43 | double getXSize(); | 43 | double getXSize(); |
44 | 44 | ||
45 | /** | 45 | /** |
46 | * Sets the value of the '{@link crossingScenario.CrossingScenario#getXSize <em>XSize</em>}' attribute. | 46 | * Sets the value of the '{@link crossingScenario.CrossingScenario#getXSize <em>XSize</em>}' attribute. |
47 | * <!-- begin-user-doc --> | 47 | * <!-- begin-user-doc --> |
48 | * <!-- end-user-doc --> | 48 | * <!-- end-user-doc --> |
49 | * @param value the new value of the '<em>XSize</em>' attribute. | 49 | * @param value the new value of the '<em>XSize</em>' attribute. |
50 | * @see #getXSize() | 50 | * @see #getXSize() |
51 | * @generated | 51 | * @generated |
52 | */ | 52 | */ |
53 | void setXSize(double value); | 53 | void setXSize(double value); |
54 | 54 | ||
55 | /** | 55 | /** |
56 | * Returns the value of the '<em><b>YSize</b></em>' attribute. | 56 | * Returns the value of the '<em><b>YSize</b></em>' attribute. |
57 | * <!-- begin-user-doc --> | 57 | * <!-- begin-user-doc --> |
58 | * <!-- end-user-doc --> | 58 | * <!-- end-user-doc --> |
59 | * @return the value of the '<em>YSize</em>' attribute. | 59 | * @return the value of the '<em>YSize</em>' attribute. |
60 | * @see #setYSize(double) | 60 | * @see #setYSize(double) |
61 | * @see crossingScenario.CrossingScenarioPackage#getCrossingScenario_YSize() | 61 | * @see crossingScenario.CrossingScenarioPackage#getCrossingScenario_YSize() |
62 | * @model | 62 | * @model |
63 | * @generated | 63 | * @generated |
64 | */ | 64 | */ |
65 | double getYSize(); | 65 | double getYSize(); |
66 | 66 | ||
67 | /** | 67 | /** |
68 | * Sets the value of the '{@link crossingScenario.CrossingScenario#getYSize <em>YSize</em>}' attribute. | 68 | * Sets the value of the '{@link crossingScenario.CrossingScenario#getYSize <em>YSize</em>}' attribute. |
69 | * <!-- begin-user-doc --> | 69 | * <!-- begin-user-doc --> |
70 | * <!-- end-user-doc --> | 70 | * <!-- end-user-doc --> |
71 | * @param value the new value of the '<em>YSize</em>' attribute. | 71 | * @param value the new value of the '<em>YSize</em>' attribute. |
72 | * @see #getYSize() | 72 | * @see #getYSize() |
73 | * @generated | 73 | * @generated |
74 | */ | 74 | */ |
75 | void setYSize(double value); | 75 | void setYSize(double value); |
76 | 76 | ||
77 | /** | 77 | /** |
78 | * Returns the value of the '<em><b>Actors</b></em>' containment reference list. | 78 | * Returns the value of the '<em><b>Actors</b></em>' containment reference list. |
79 | * The list contents are of type {@link crossingScenario.Actor}. | 79 | * The list contents are of type {@link crossingScenario.Actor}. |
80 | * <!-- begin-user-doc --> | 80 | * <!-- begin-user-doc --> |
81 | * <!-- end-user-doc --> | 81 | * <!-- end-user-doc --> |
82 | * @return the value of the '<em>Actors</em>' containment reference list. | 82 | * @return the value of the '<em>Actors</em>' containment reference list. |
83 | * @see crossingScenario.CrossingScenarioPackage#getCrossingScenario_Actors() | 83 | * @see crossingScenario.CrossingScenarioPackage#getCrossingScenario_Actors() |
84 | * @model containment="true" | 84 | * @model containment="true" |
85 | * @generated | 85 | * @generated |
86 | */ | 86 | */ |
87 | EList<Actor> getActors(); | 87 | EList<Actor> getActors(); |
88 | 88 | ||
89 | /** | 89 | /** |
90 | * Returns the value of the '<em><b>Lanes</b></em>' containment reference list. | 90 | * Returns the value of the '<em><b>Lanes</b></em>' containment reference list. |
91 | * The list contents are of type {@link crossingScenario.Lane}. | 91 | * The list contents are of type {@link crossingScenario.Lane}. |
92 | * <!-- begin-user-doc --> | 92 | * <!-- begin-user-doc --> |
93 | * <!-- end-user-doc --> | 93 | * <!-- end-user-doc --> |
94 | * @return the value of the '<em>Lanes</em>' containment reference list. | 94 | * @return the value of the '<em>Lanes</em>' containment reference list. |
95 | * @see crossingScenario.CrossingScenarioPackage#getCrossingScenario_Lanes() | 95 | * @see crossingScenario.CrossingScenarioPackage#getCrossingScenario_Lanes() |
96 | * @model containment="true" | 96 | * @model containment="true" |
97 | * @generated | 97 | * @generated |
98 | */ | 98 | */ |
99 | EList<Lane> getLanes(); | 99 | EList<Lane> getLanes(); |
100 | 100 | ||
101 | /** | 101 | /** |
102 | * Returns the value of the '<em><b>Max Time</b></em>' attribute. | 102 | * Returns the value of the '<em><b>Max Time</b></em>' attribute. |
103 | * <!-- begin-user-doc --> | 103 | * <!-- begin-user-doc --> |
104 | * <!-- end-user-doc --> | 104 | * <!-- end-user-doc --> |
105 | * @return the value of the '<em>Max Time</em>' attribute. | 105 | * @return the value of the '<em>Max Time</em>' attribute. |
106 | * @see #setMaxTime(double) | 106 | * @see #setMaxTime(double) |
107 | * @see crossingScenario.CrossingScenarioPackage#getCrossingScenario_MaxTime() | 107 | * @see crossingScenario.CrossingScenarioPackage#getCrossingScenario_MaxTime() |
108 | * @model | 108 | * @model |
109 | * @generated | 109 | * @generated |
110 | */ | 110 | */ |
111 | double getMaxTime(); | 111 | double getMaxTime(); |
112 | 112 | ||
113 | /** | 113 | /** |
114 | * Sets the value of the '{@link crossingScenario.CrossingScenario#getMaxTime <em>Max Time</em>}' attribute. | 114 | * Sets the value of the '{@link crossingScenario.CrossingScenario#getMaxTime <em>Max Time</em>}' attribute. |
115 | * <!-- begin-user-doc --> | 115 | * <!-- begin-user-doc --> |
116 | * <!-- end-user-doc --> | 116 | * <!-- end-user-doc --> |
117 | * @param value the new value of the '<em>Max Time</em>' attribute. | 117 | * @param value the new value of the '<em>Max Time</em>' attribute. |
118 | * @see #getMaxTime() | 118 | * @see #getMaxTime() |
119 | * @generated | 119 | * @generated |
120 | */ | 120 | */ |
121 | void setMaxTime(double value); | 121 | void setMaxTime(double value); |
122 | 122 | ||
123 | /** | 123 | /** |
124 | * Returns the value of the '<em><b>Relations</b></em>' containment reference list. | 124 | * Returns the value of the '<em><b>Relations</b></em>' containment reference list. |
125 | * The list contents are of type {@link crossingScenario.Relation}. | 125 | * The list contents are of type {@link crossingScenario.Relation}. |
126 | * <!-- begin-user-doc --> | 126 | * <!-- begin-user-doc --> |
127 | * <!-- end-user-doc --> | 127 | * <!-- end-user-doc --> |
128 | * @return the value of the '<em>Relations</em>' containment reference list. | 128 | * @return the value of the '<em>Relations</em>' containment reference list. |
129 | * @see crossingScenario.CrossingScenarioPackage#getCrossingScenario_Relations() | 129 | * @see crossingScenario.CrossingScenarioPackage#getCrossingScenario_Relations() |
130 | * @model containment="true" | 130 | * @model containment="true" |
131 | * @generated | 131 | * @generated |
132 | */ | 132 | */ |
133 | EList<Relation> getRelations(); | 133 | EList<Relation> getRelations(); |
134 | 134 | ||
135 | /** | 135 | /** |
136 | * Returns the value of the '<em><b>Max XSpeed</b></em>' attribute. | 136 | * Returns the value of the '<em><b>Max XSpeed</b></em>' attribute. |
137 | * The default value is <code>"0.0"</code>. | 137 | * The default value is <code>"0.0"</code>. |
138 | * <!-- begin-user-doc --> | 138 | * <!-- begin-user-doc --> |
139 | * <!-- end-user-doc --> | 139 | * <!-- end-user-doc --> |
140 | * @return the value of the '<em>Max XSpeed</em>' attribute. | 140 | * @return the value of the '<em>Max XSpeed</em>' attribute. |
141 | * @see #setMaxXSpeed(double) | 141 | * @see #setMaxXSpeed(double) |
142 | * @see crossingScenario.CrossingScenarioPackage#getCrossingScenario_MaxXSpeed() | 142 | * @see crossingScenario.CrossingScenarioPackage#getCrossingScenario_MaxXSpeed() |
143 | * @model default="0.0" | 143 | * @model default="0.0" |
144 | * @generated | 144 | * @generated |
145 | */ | 145 | */ |
146 | double getMaxXSpeed(); | 146 | double getMaxXSpeed(); |
147 | 147 | ||
148 | /** | 148 | /** |
149 | * Sets the value of the '{@link crossingScenario.CrossingScenario#getMaxXSpeed <em>Max XSpeed</em>}' attribute. | 149 | * Sets the value of the '{@link crossingScenario.CrossingScenario#getMaxXSpeed <em>Max XSpeed</em>}' attribute. |
150 | * <!-- begin-user-doc --> | 150 | * <!-- begin-user-doc --> |
151 | * <!-- end-user-doc --> | 151 | * <!-- end-user-doc --> |
152 | * @param value the new value of the '<em>Max XSpeed</em>' attribute. | 152 | * @param value the new value of the '<em>Max XSpeed</em>' attribute. |
153 | * @see #getMaxXSpeed() | 153 | * @see #getMaxXSpeed() |
154 | * @generated | 154 | * @generated |
155 | */ | 155 | */ |
156 | void setMaxXSpeed(double value); | 156 | void setMaxXSpeed(double value); |
157 | 157 | ||
158 | /** | 158 | /** |
159 | * Returns the value of the '<em><b>Max YSpeed</b></em>' attribute. | 159 | * Returns the value of the '<em><b>Max YSpeed</b></em>' attribute. |
160 | * The default value is <code>"0.0"</code>. | 160 | * The default value is <code>"0.0"</code>. |
161 | * <!-- begin-user-doc --> | 161 | * <!-- begin-user-doc --> |
162 | * <!-- end-user-doc --> | 162 | * <!-- end-user-doc --> |
163 | * @return the value of the '<em>Max YSpeed</em>' attribute. | 163 | * @return the value of the '<em>Max YSpeed</em>' attribute. |
164 | * @see #setMaxYSpeed(double) | 164 | * @see #setMaxYSpeed(double) |
165 | * @see crossingScenario.CrossingScenarioPackage#getCrossingScenario_MaxYSpeed() | 165 | * @see crossingScenario.CrossingScenarioPackage#getCrossingScenario_MaxYSpeed() |
166 | * @model default="0.0" | 166 | * @model default="0.0" |
167 | * @generated | 167 | * @generated |
168 | */ | 168 | */ |
169 | double getMaxYSpeed(); | 169 | double getMaxYSpeed(); |
170 | 170 | ||
171 | /** | 171 | /** |
172 | * Sets the value of the '{@link crossingScenario.CrossingScenario#getMaxYSpeed <em>Max YSpeed</em>}' attribute. | 172 | * Sets the value of the '{@link crossingScenario.CrossingScenario#getMaxYSpeed <em>Max YSpeed</em>}' attribute. |
173 | * <!-- begin-user-doc --> | 173 | * <!-- begin-user-doc --> |
174 | * <!-- end-user-doc --> | 174 | * <!-- end-user-doc --> |
175 | * @param value the new value of the '<em>Max YSpeed</em>' attribute. | 175 | * @param value the new value of the '<em>Max YSpeed</em>' attribute. |
176 | * @see #getMaxYSpeed() | 176 | * @see #getMaxYSpeed() |
177 | * @generated | 177 | * @generated |
178 | */ | 178 | */ |
179 | void setMaxYSpeed(double value); | 179 | void setMaxYSpeed(double value); |
180 | 180 | ||
181 | } // CrossingScenario | 181 | } // CrossingScenario |
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/CrossingScenarioFactory.java b/Domains/crossingScenario/ecore-gen/crossingScenario/CrossingScenarioFactory.java index 8ac3df81..ccf54da7 100644 --- a/Domains/crossingScenario/ecore-gen/crossingScenario/CrossingScenarioFactory.java +++ b/Domains/crossingScenario/ecore-gen/crossingScenario/CrossingScenarioFactory.java | |||
@@ -1,114 +1,96 @@ | |||
1 | /** | 1 | /** |
2 | */ | 2 | */ |
3 | package crossingScenario; | 3 | package crossingScenario; |
4 | 4 | ||
5 | import org.eclipse.emf.ecore.EFactory; | 5 | import org.eclipse.emf.ecore.EFactory; |
6 | 6 | ||
7 | /** | 7 | /** |
8 | * <!-- begin-user-doc --> | 8 | * <!-- begin-user-doc --> |
9 | * The <b>Factory</b> for the model. | 9 | * The <b>Factory</b> for the model. |
10 | * It provides a create method for each non-abstract class of the model. | 10 | * It provides a create method for each non-abstract class of the model. |
11 | * <!-- end-user-doc --> | 11 | * <!-- end-user-doc --> |
12 | * @see crossingScenario.CrossingScenarioPackage | 12 | * @see crossingScenario.CrossingScenarioPackage |
13 | * @generated | 13 | * @generated |
14 | */ | 14 | */ |
15 | public interface CrossingScenarioFactory extends EFactory { | 15 | public interface CrossingScenarioFactory extends EFactory { |
16 | /** | 16 | /** |
17 | * The singleton instance of the factory. | 17 | * The singleton instance of the factory. |
18 | * <!-- begin-user-doc --> | 18 | * <!-- begin-user-doc --> |
19 | * <!-- end-user-doc --> | 19 | * <!-- end-user-doc --> |
20 | * @generated | 20 | * @generated |
21 | */ | 21 | */ |
22 | CrossingScenarioFactory eINSTANCE = crossingScenario.impl.CrossingScenarioFactoryImpl.init(); | 22 | CrossingScenarioFactory eINSTANCE = crossingScenario.impl.CrossingScenarioFactoryImpl.init(); |
23 | 23 | ||
24 | /** | 24 | /** |
25 | * Returns a new object of class '<em>Crossing Scenario</em>'. | 25 | * Returns a new object of class '<em>Crossing Scenario</em>'. |
26 | * <!-- begin-user-doc --> | 26 | * <!-- begin-user-doc --> |
27 | * <!-- end-user-doc --> | 27 | * <!-- end-user-doc --> |
28 | * @return a new object of class '<em>Crossing Scenario</em>'. | 28 | * @return a new object of class '<em>Crossing Scenario</em>'. |
29 | * @generated | 29 | * @generated |
30 | */ | 30 | */ |
31 | CrossingScenario createCrossingScenario(); | 31 | CrossingScenario createCrossingScenario(); |
32 | 32 | ||
33 | /** | 33 | /** |
34 | * Returns a new object of class '<em>Vision Blocked</em>'. | 34 | * Returns a new object of class '<em>Vision Blocked</em>'. |
35 | * <!-- begin-user-doc --> | 35 | * <!-- begin-user-doc --> |
36 | * <!-- end-user-doc --> | 36 | * <!-- end-user-doc --> |
37 | * @return a new object of class '<em>Vision Blocked</em>'. | 37 | * @return a new object of class '<em>Vision Blocked</em>'. |
38 | * @generated | 38 | * @generated |
39 | */ | 39 | */ |
40 | VisionBlocked createVisionBlocked(); | 40 | VisionBlocked createVisionBlocked(); |
41 | 41 | ||
42 | /** | 42 | /** |
43 | * Returns a new object of class '<em>Separation Distance</em>'. | 43 | * Returns a new object of class '<em>Collision Exists</em>'. |
44 | * <!-- begin-user-doc --> | 44 | * <!-- begin-user-doc --> |
45 | * <!-- end-user-doc --> | 45 | * <!-- end-user-doc --> |
46 | * @return a new object of class '<em>Separation Distance</em>'. | 46 | * @return a new object of class '<em>Collision Exists</em>'. |
47 | * @generated | 47 | * @generated |
48 | */ | 48 | */ |
49 | SeparationDistance createSeparationDistance(); | 49 | CollisionExists createCollisionExists(); |
50 | 50 | ||
51 | /** | 51 | /** |
52 | * Returns a new object of class '<em>Collision Exists</em>'. | 52 | * Returns a new object of class '<em>Pedestrian</em>'. |
53 | * <!-- begin-user-doc --> | 53 | * <!-- begin-user-doc --> |
54 | * <!-- end-user-doc --> | 54 | * <!-- end-user-doc --> |
55 | * @return a new object of class '<em>Collision Exists</em>'. | 55 | * @return a new object of class '<em>Pedestrian</em>'. |
56 | * @generated | 56 | * @generated |
57 | */ | 57 | */ |
58 | CollisionExists createCollisionExists(); | 58 | Pedestrian createPedestrian(); |
59 | 59 | ||
60 | /** | 60 | /** |
61 | * Returns a new object of class '<em>Collision Does Not Exist</em>'. | 61 | * Returns a new object of class '<em>Vehicle</em>'. |
62 | * <!-- begin-user-doc --> | 62 | * <!-- begin-user-doc --> |
63 | * <!-- end-user-doc --> | 63 | * <!-- end-user-doc --> |
64 | * @return a new object of class '<em>Collision Does Not Exist</em>'. | 64 | * @return a new object of class '<em>Vehicle</em>'. |
65 | * @generated | 65 | * @generated |
66 | */ | 66 | */ |
67 | CollisionDoesNotExist createCollisionDoesNotExist(); | 67 | Vehicle createVehicle(); |
68 | 68 | ||
69 | /** | 69 | /** |
70 | * Returns a new object of class '<em>Pedestrian</em>'. | 70 | * Returns a new object of class '<em>Lane Horizontal</em>'. |
71 | * <!-- begin-user-doc --> | 71 | * <!-- begin-user-doc --> |
72 | * <!-- end-user-doc --> | 72 | * <!-- end-user-doc --> |
73 | * @return a new object of class '<em>Pedestrian</em>'. | 73 | * @return a new object of class '<em>Lane Horizontal</em>'. |
74 | * @generated | 74 | * @generated |
75 | */ | 75 | */ |
76 | Pedestrian createPedestrian(); | 76 | Lane_Horizontal createLane_Horizontal(); |
77 | 77 | ||
78 | /** | 78 | /** |
79 | * Returns a new object of class '<em>Vehicle</em>'. | 79 | * Returns a new object of class '<em>Lane Vertical</em>'. |
80 | * <!-- begin-user-doc --> | 80 | * <!-- begin-user-doc --> |
81 | * <!-- end-user-doc --> | 81 | * <!-- end-user-doc --> |
82 | * @return a new object of class '<em>Vehicle</em>'. | 82 | * @return a new object of class '<em>Lane Vertical</em>'. |
83 | * @generated | 83 | * @generated |
84 | */ | 84 | */ |
85 | Vehicle createVehicle(); | 85 | Lane_Vertical createLane_Vertical(); |
86 | 86 | ||
87 | /** | 87 | /** |
88 | * Returns a new object of class '<em>Lane Horizontal</em>'. | 88 | * Returns the package supported by this factory. |
89 | * <!-- begin-user-doc --> | 89 | * <!-- begin-user-doc --> |
90 | * <!-- end-user-doc --> | 90 | * <!-- end-user-doc --> |
91 | * @return a new object of class '<em>Lane Horizontal</em>'. | 91 | * @return the package supported by this factory. |
92 | * @generated | 92 | * @generated |
93 | */ | 93 | */ |
94 | Lane_Horizontal createLane_Horizontal(); | 94 | CrossingScenarioPackage getCrossingScenarioPackage(); |
95 | 95 | ||
96 | /** | 96 | } //CrossingScenarioFactory |
97 | * Returns a new object of class '<em>Lane Vertical</em>'. | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @return a new object of class '<em>Lane Vertical</em>'. | ||
101 | * @generated | ||
102 | */ | ||
103 | Lane_Vertical createLane_Vertical(); | ||
104 | |||
105 | /** | ||
106 | * Returns the package supported by this factory. | ||
107 | * <!-- begin-user-doc --> | ||
108 | * <!-- end-user-doc --> | ||
109 | * @return the package supported by this factory. | ||
110 | * @generated | ||
111 | */ | ||
112 | CrossingScenarioPackage getCrossingScenarioPackage(); | ||
113 | |||
114 | } //CrossingScenarioFactory | ||
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/CrossingScenarioPackage.java b/Domains/crossingScenario/ecore-gen/crossingScenario/CrossingScenarioPackage.java index bafc5e69..bdc531f6 100644 --- a/Domains/crossingScenario/ecore-gen/crossingScenario/CrossingScenarioPackage.java +++ b/Domains/crossingScenario/ecore-gen/crossingScenario/CrossingScenarioPackage.java | |||
@@ -1,1812 +1,1621 @@ | |||
1 | /** | 1 | /** |
2 | */ | 2 | */ |
3 | package crossingScenario; | 3 | package crossingScenario; |
4 | 4 | ||
5 | import org.eclipse.emf.ecore.EAttribute; | 5 | import org.eclipse.emf.ecore.EAttribute; |
6 | import org.eclipse.emf.ecore.EClass; | 6 | import org.eclipse.emf.ecore.EClass; |
7 | import org.eclipse.emf.ecore.EEnum; | 7 | import org.eclipse.emf.ecore.EPackage; |
8 | import org.eclipse.emf.ecore.EPackage; | 8 | import org.eclipse.emf.ecore.EReference; |
9 | import org.eclipse.emf.ecore.EReference; | 9 | |
10 | 10 | /** | |
11 | /** | 11 | * <!-- begin-user-doc --> |
12 | * <!-- begin-user-doc --> | 12 | * The <b>Package</b> for the model. |
13 | * The <b>Package</b> for the model. | 13 | * It contains accessors for the meta objects to represent |
14 | * It contains accessors for the meta objects to represent | 14 | * <ul> |
15 | * <ul> | 15 | * <li>each class,</li> |
16 | * <li>each class,</li> | 16 | * <li>each feature of each class,</li> |
17 | * <li>each feature of each class,</li> | 17 | * <li>each operation of each class,</li> |
18 | * <li>each operation of each class,</li> | 18 | * <li>each enum,</li> |
19 | * <li>each enum,</li> | 19 | * <li>and each data type</li> |
20 | * <li>and each data type</li> | 20 | * </ul> |
21 | * </ul> | 21 | * <!-- end-user-doc --> |
22 | * <!-- end-user-doc --> | 22 | * @see crossingScenario.CrossingScenarioFactory |
23 | * @see crossingScenario.CrossingScenarioFactory | 23 | * @model kind="package" |
24 | * @model kind="package" | 24 | * @generated |
25 | * @generated | 25 | */ |
26 | */ | 26 | public interface CrossingScenarioPackage extends EPackage { |
27 | public interface CrossingScenarioPackage extends EPackage { | 27 | /** |
28 | /** | 28 | * The package name. |
29 | * The package name. | 29 | * <!-- begin-user-doc --> |
30 | * <!-- begin-user-doc --> | 30 | * <!-- end-user-doc --> |
31 | * <!-- end-user-doc --> | 31 | * @generated |
32 | * @generated | 32 | */ |
33 | */ | 33 | String eNAME = "crossingScenario"; |
34 | String eNAME = "crossingScenario"; | 34 | |
35 | 35 | /** | |
36 | /** | 36 | * The package namespace URI. |
37 | * The package namespace URI. | 37 | * <!-- begin-user-doc --> |
38 | * <!-- begin-user-doc --> | 38 | * <!-- end-user-doc --> |
39 | * <!-- end-user-doc --> | 39 | * @generated |
40 | * @generated | 40 | */ |
41 | */ | 41 | String eNS_URI = "http://www.example.com/crossingScenario"; |
42 | String eNS_URI = "http://www.example.com/crossingScenario"; | 42 | |
43 | 43 | /** | |
44 | /** | 44 | * The package namespace name. |
45 | * The package namespace name. | 45 | * <!-- begin-user-doc --> |
46 | * <!-- begin-user-doc --> | 46 | * <!-- end-user-doc --> |
47 | * <!-- end-user-doc --> | 47 | * @generated |
48 | * @generated | 48 | */ |
49 | */ | 49 | String eNS_PREFIX = "crossingScenario"; |
50 | String eNS_PREFIX = "crossingScenario"; | 50 | |
51 | 51 | /** | |
52 | /** | 52 | * The singleton instance of the package. |
53 | * The singleton instance of the package. | 53 | * <!-- begin-user-doc --> |
54 | * <!-- begin-user-doc --> | 54 | * <!-- end-user-doc --> |
55 | * <!-- end-user-doc --> | 55 | * @generated |
56 | * @generated | 56 | */ |
57 | */ | 57 | CrossingScenarioPackage eINSTANCE = crossingScenario.impl.CrossingScenarioPackageImpl.init(); |
58 | CrossingScenarioPackage eINSTANCE = crossingScenario.impl.CrossingScenarioPackageImpl.init(); | 58 | |
59 | 59 | /** | |
60 | /** | 60 | * The meta object id for the '{@link crossingScenario.impl.CrossingScenarioImpl <em>Crossing Scenario</em>}' class. |
61 | * The meta object id for the '{@link crossingScenario.impl.CrossingScenarioImpl <em>Crossing Scenario</em>}' class. | 61 | * <!-- begin-user-doc --> |
62 | * <!-- begin-user-doc --> | 62 | * <!-- end-user-doc --> |
63 | * <!-- end-user-doc --> | 63 | * @see crossingScenario.impl.CrossingScenarioImpl |
64 | * @see crossingScenario.impl.CrossingScenarioImpl | 64 | * @see crossingScenario.impl.CrossingScenarioPackageImpl#getCrossingScenario() |
65 | * @see crossingScenario.impl.CrossingScenarioPackageImpl#getCrossingScenario() | 65 | * @generated |
66 | * @generated | 66 | */ |
67 | */ | 67 | int CROSSING_SCENARIO = 0; |
68 | int CROSSING_SCENARIO = 0; | 68 | |
69 | 69 | /** | |
70 | /** | 70 | * The feature id for the '<em><b>XSize</b></em>' attribute. |
71 | * The feature id for the '<em><b>XSize</b></em>' attribute. | 71 | * <!-- begin-user-doc --> |
72 | * <!-- begin-user-doc --> | 72 | * <!-- end-user-doc --> |
73 | * <!-- end-user-doc --> | 73 | * @generated |
74 | * @generated | 74 | * @ordered |
75 | * @ordered | 75 | */ |
76 | */ | 76 | int CROSSING_SCENARIO__XSIZE = 0; |
77 | int CROSSING_SCENARIO__XSIZE = 0; | 77 | |
78 | 78 | /** | |
79 | /** | 79 | * The feature id for the '<em><b>YSize</b></em>' attribute. |
80 | * The feature id for the '<em><b>YSize</b></em>' attribute. | 80 | * <!-- begin-user-doc --> |
81 | * <!-- begin-user-doc --> | 81 | * <!-- end-user-doc --> |
82 | * <!-- end-user-doc --> | 82 | * @generated |
83 | * @generated | 83 | * @ordered |
84 | * @ordered | 84 | */ |
85 | */ | 85 | int CROSSING_SCENARIO__YSIZE = 1; |
86 | int CROSSING_SCENARIO__YSIZE = 1; | 86 | |
87 | 87 | /** | |
88 | /** | 88 | * The feature id for the '<em><b>Actors</b></em>' containment reference list. |
89 | * The feature id for the '<em><b>Actors</b></em>' containment reference list. | 89 | * <!-- begin-user-doc --> |
90 | * <!-- begin-user-doc --> | 90 | * <!-- end-user-doc --> |
91 | * <!-- end-user-doc --> | 91 | * @generated |
92 | * @generated | 92 | * @ordered |
93 | * @ordered | 93 | */ |
94 | */ | 94 | int CROSSING_SCENARIO__ACTORS = 2; |
95 | int CROSSING_SCENARIO__ACTORS = 2; | 95 | |
96 | 96 | /** | |
97 | /** | 97 | * The feature id for the '<em><b>Lanes</b></em>' containment reference list. |
98 | * The feature id for the '<em><b>Lanes</b></em>' containment reference list. | 98 | * <!-- begin-user-doc --> |
99 | * <!-- begin-user-doc --> | 99 | * <!-- end-user-doc --> |
100 | * <!-- end-user-doc --> | 100 | * @generated |
101 | * @generated | 101 | * @ordered |
102 | * @ordered | 102 | */ |
103 | */ | 103 | int CROSSING_SCENARIO__LANES = 3; |
104 | int CROSSING_SCENARIO__LANES = 3; | 104 | |
105 | 105 | /** | |
106 | /** | 106 | * The feature id for the '<em><b>Max Time</b></em>' attribute. |
107 | * The feature id for the '<em><b>Max Time</b></em>' attribute. | 107 | * <!-- begin-user-doc --> |
108 | * <!-- begin-user-doc --> | 108 | * <!-- end-user-doc --> |
109 | * <!-- end-user-doc --> | 109 | * @generated |
110 | * @generated | 110 | * @ordered |
111 | * @ordered | 111 | */ |
112 | */ | 112 | int CROSSING_SCENARIO__MAX_TIME = 4; |
113 | int CROSSING_SCENARIO__MAX_TIME = 4; | 113 | |
114 | 114 | /** | |
115 | /** | 115 | * The feature id for the '<em><b>Relations</b></em>' containment reference list. |
116 | * The feature id for the '<em><b>Relations</b></em>' containment reference list. | 116 | * <!-- begin-user-doc --> |
117 | * <!-- begin-user-doc --> | 117 | * <!-- end-user-doc --> |
118 | * <!-- end-user-doc --> | 118 | * @generated |
119 | * @generated | 119 | * @ordered |
120 | * @ordered | 120 | */ |
121 | */ | 121 | int CROSSING_SCENARIO__RELATIONS = 5; |
122 | int CROSSING_SCENARIO__RELATIONS = 5; | 122 | |
123 | 123 | /** | |
124 | /** | 124 | * The feature id for the '<em><b>Max XSpeed</b></em>' attribute. |
125 | * The feature id for the '<em><b>Max XSpeed</b></em>' attribute. | 125 | * <!-- begin-user-doc --> |
126 | * <!-- begin-user-doc --> | 126 | * <!-- end-user-doc --> |
127 | * <!-- end-user-doc --> | 127 | * @generated |
128 | * @generated | 128 | * @ordered |
129 | * @ordered | 129 | */ |
130 | */ | 130 | int CROSSING_SCENARIO__MAX_XSPEED = 6; |
131 | int CROSSING_SCENARIO__MAX_XSPEED = 6; | 131 | |
132 | 132 | /** | |
133 | /** | 133 | * The feature id for the '<em><b>Max YSpeed</b></em>' attribute. |
134 | * The feature id for the '<em><b>Max YSpeed</b></em>' attribute. | 134 | * <!-- begin-user-doc --> |
135 | * <!-- begin-user-doc --> | 135 | * <!-- end-user-doc --> |
136 | * <!-- end-user-doc --> | 136 | * @generated |
137 | * @generated | 137 | * @ordered |
138 | * @ordered | 138 | */ |
139 | */ | 139 | int CROSSING_SCENARIO__MAX_YSPEED = 7; |
140 | int CROSSING_SCENARIO__MAX_YSPEED = 7; | 140 | |
141 | 141 | /** | |
142 | /** | 142 | * The number of structural features of the '<em>Crossing Scenario</em>' class. |
143 | * The number of structural features of the '<em>Crossing Scenario</em>' class. | 143 | * <!-- begin-user-doc --> |
144 | * <!-- begin-user-doc --> | 144 | * <!-- end-user-doc --> |
145 | * <!-- end-user-doc --> | 145 | * @generated |
146 | * @generated | 146 | * @ordered |
147 | * @ordered | 147 | */ |
148 | */ | 148 | int CROSSING_SCENARIO_FEATURE_COUNT = 8; |
149 | int CROSSING_SCENARIO_FEATURE_COUNT = 8; | 149 | |
150 | 150 | /** | |
151 | /** | 151 | * The number of operations of the '<em>Crossing Scenario</em>' class. |
152 | * The number of operations of the '<em>Crossing Scenario</em>' class. | 152 | * <!-- begin-user-doc --> |
153 | * <!-- begin-user-doc --> | 153 | * <!-- end-user-doc --> |
154 | * <!-- end-user-doc --> | 154 | * @generated |
155 | * @generated | 155 | * @ordered |
156 | * @ordered | 156 | */ |
157 | */ | 157 | int CROSSING_SCENARIO_OPERATION_COUNT = 0; |
158 | int CROSSING_SCENARIO_OPERATION_COUNT = 0; | 158 | |
159 | 159 | /** | |
160 | /** | 160 | * The meta object id for the '{@link crossingScenario.impl.LaneImpl <em>Lane</em>}' class. |
161 | * The meta object id for the '{@link crossingScenario.impl.LaneImpl <em>Lane</em>}' class. | 161 | * <!-- begin-user-doc --> |
162 | * <!-- begin-user-doc --> | 162 | * <!-- end-user-doc --> |
163 | * <!-- end-user-doc --> | 163 | * @see crossingScenario.impl.LaneImpl |
164 | * @see crossingScenario.impl.LaneImpl | 164 | * @see crossingScenario.impl.CrossingScenarioPackageImpl#getLane() |
165 | * @see crossingScenario.impl.CrossingScenarioPackageImpl#getLane() | 165 | * @generated |
166 | * @generated | 166 | */ |
167 | */ | 167 | int LANE = 1; |
168 | int LANE = 1; | 168 | |
169 | 169 | /** | |
170 | /** | 170 | * The feature id for the '<em><b>Reference Coord</b></em>' attribute. |
171 | * The feature id for the '<em><b>Reference Coord</b></em>' attribute. | 171 | * <!-- begin-user-doc --> |
172 | * <!-- begin-user-doc --> | 172 | * <!-- end-user-doc --> |
173 | * <!-- end-user-doc --> | 173 | * @generated |
174 | * @generated | 174 | * @ordered |
175 | * @ordered | 175 | */ |
176 | */ | 176 | int LANE__REFERENCE_COORD = 0; |
177 | int LANE__REFERENCE_COORD = 0; | 177 | |
178 | 178 | /** | |
179 | /** | 179 | * The feature id for the '<em><b>Actors</b></em>' reference list. |
180 | * The feature id for the '<em><b>Actors</b></em>' reference list. | 180 | * <!-- begin-user-doc --> |
181 | * <!-- begin-user-doc --> | 181 | * <!-- end-user-doc --> |
182 | * <!-- end-user-doc --> | 182 | * @generated |
183 | * @generated | 183 | * @ordered |
184 | * @ordered | 184 | */ |
185 | */ | 185 | int LANE__ACTORS = 1; |
186 | int LANE__ACTORS = 1; | 186 | |
187 | 187 | /** | |
188 | /** | 188 | * The number of structural features of the '<em>Lane</em>' class. |
189 | * The number of structural features of the '<em>Lane</em>' class. | 189 | * <!-- begin-user-doc --> |
190 | * <!-- begin-user-doc --> | 190 | * <!-- end-user-doc --> |
191 | * <!-- end-user-doc --> | 191 | * @generated |
192 | * @generated | 192 | * @ordered |
193 | * @ordered | 193 | */ |
194 | */ | 194 | int LANE_FEATURE_COUNT = 2; |
195 | int LANE_FEATURE_COUNT = 2; | 195 | |
196 | 196 | /** | |
197 | /** | 197 | * The number of operations of the '<em>Lane</em>' class. |
198 | * The number of operations of the '<em>Lane</em>' class. | 198 | * <!-- begin-user-doc --> |
199 | * <!-- begin-user-doc --> | 199 | * <!-- end-user-doc --> |
200 | * <!-- end-user-doc --> | 200 | * @generated |
201 | * @generated | 201 | * @ordered |
202 | * @ordered | 202 | */ |
203 | */ | 203 | int LANE_OPERATION_COUNT = 0; |
204 | int LANE_OPERATION_COUNT = 0; | 204 | |
205 | 205 | /** | |
206 | /** | 206 | * The meta object id for the '{@link crossingScenario.impl.ActorImpl <em>Actor</em>}' class. |
207 | * The meta object id for the '{@link crossingScenario.impl.ActorImpl <em>Actor</em>}' class. | 207 | * <!-- begin-user-doc --> |
208 | * <!-- begin-user-doc --> | 208 | * <!-- end-user-doc --> |
209 | * <!-- end-user-doc --> | 209 | * @see crossingScenario.impl.ActorImpl |
210 | * @see crossingScenario.impl.ActorImpl | 210 | * @see crossingScenario.impl.CrossingScenarioPackageImpl#getActor() |
211 | * @see crossingScenario.impl.CrossingScenarioPackageImpl#getActor() | 211 | * @generated |
212 | * @generated | 212 | */ |
213 | */ | 213 | int ACTOR = 2; |
214 | int ACTOR = 2; | 214 | |
215 | 215 | /** | |
216 | /** | 216 | * The feature id for the '<em><b>XPos</b></em>' attribute. |
217 | * The feature id for the '<em><b>XPos</b></em>' attribute. | 217 | * <!-- begin-user-doc --> |
218 | * <!-- begin-user-doc --> | 218 | * <!-- end-user-doc --> |
219 | * <!-- end-user-doc --> | 219 | * @generated |
220 | * @generated | 220 | * @ordered |
221 | * @ordered | 221 | */ |
222 | */ | 222 | int ACTOR__XPOS = 0; |
223 | int ACTOR__XPOS = 0; | 223 | |
224 | 224 | /** | |
225 | /** | 225 | * The feature id for the '<em><b>YPos</b></em>' attribute. |
226 | * The feature id for the '<em><b>YPos</b></em>' attribute. | 226 | * <!-- begin-user-doc --> |
227 | * <!-- begin-user-doc --> | 227 | * <!-- end-user-doc --> |
228 | * <!-- end-user-doc --> | 228 | * @generated |
229 | * @generated | 229 | * @ordered |
230 | * @ordered | 230 | */ |
231 | */ | 231 | int ACTOR__YPOS = 1; |
232 | int ACTOR__YPOS = 1; | 232 | |
233 | 233 | /** | |
234 | /** | 234 | * The feature id for the '<em><b>Length</b></em>' attribute. |
235 | * The feature id for the '<em><b>Length</b></em>' attribute. | 235 | * <!-- begin-user-doc --> |
236 | * <!-- begin-user-doc --> | 236 | * <!-- end-user-doc --> |
237 | * <!-- end-user-doc --> | 237 | * @generated |
238 | * @generated | 238 | * @ordered |
239 | * @ordered | 239 | */ |
240 | */ | 240 | int ACTOR__LENGTH = 2; |
241 | int ACTOR__LENGTH = 2; | 241 | |
242 | 242 | /** | |
243 | /** | 243 | * The feature id for the '<em><b>Width</b></em>' attribute. |
244 | * The feature id for the '<em><b>Width</b></em>' attribute. | 244 | * <!-- begin-user-doc --> |
245 | * <!-- begin-user-doc --> | 245 | * <!-- end-user-doc --> |
246 | * <!-- end-user-doc --> | 246 | * @generated |
247 | * @generated | 247 | * @ordered |
248 | * @ordered | 248 | */ |
249 | */ | 249 | int ACTOR__WIDTH = 3; |
250 | int ACTOR__WIDTH = 3; | 250 | |
251 | 251 | /** | |
252 | /** | 252 | * The feature id for the '<em><b>XSpeed</b></em>' attribute. |
253 | * The feature id for the '<em><b>XSpeed</b></em>' attribute. | 253 | * <!-- begin-user-doc --> |
254 | * <!-- begin-user-doc --> | 254 | * <!-- end-user-doc --> |
255 | * <!-- end-user-doc --> | 255 | * @generated |
256 | * @generated | 256 | * @ordered |
257 | * @ordered | 257 | */ |
258 | */ | 258 | int ACTOR__XSPEED = 4; |
259 | int ACTOR__XSPEED = 4; | 259 | |
260 | 260 | /** | |
261 | /** | 261 | * The feature id for the '<em><b>Placed On</b></em>' reference. |
262 | * The feature id for the '<em><b>Placed On</b></em>' reference. | 262 | * <!-- begin-user-doc --> |
263 | * <!-- begin-user-doc --> | 263 | * <!-- end-user-doc --> |
264 | * <!-- end-user-doc --> | 264 | * @generated |
265 | * @generated | 265 | * @ordered |
266 | * @ordered | 266 | */ |
267 | */ | 267 | int ACTOR__PLACED_ON = 5; |
268 | int ACTOR__PLACED_ON = 5; | 268 | |
269 | 269 | /** | |
270 | /** | 270 | * The feature id for the '<em><b>YSpeed</b></em>' attribute. |
271 | * The feature id for the '<em><b>YSpeed</b></em>' attribute. | 271 | * <!-- begin-user-doc --> |
272 | * <!-- begin-user-doc --> | 272 | * <!-- end-user-doc --> |
273 | * <!-- end-user-doc --> | 273 | * @generated |
274 | * @generated | 274 | * @ordered |
275 | * @ordered | 275 | */ |
276 | */ | 276 | int ACTOR__YSPEED = 6; |
277 | int ACTOR__YSPEED = 6; | 277 | |
278 | 278 | /** | |
279 | /** | 279 | * The feature id for the '<em><b>Dist near</b></em>' reference list. |
280 | * The feature id for the '<em><b>Dist near</b></em>' reference list. | 280 | * <!-- begin-user-doc --> |
281 | * <!-- begin-user-doc --> | 281 | * <!-- end-user-doc --> |
282 | * <!-- end-user-doc --> | 282 | * @generated |
283 | * @generated | 283 | * @ordered |
284 | * @ordered | 284 | */ |
285 | */ | 285 | int ACTOR__DIST_NEAR = 7; |
286 | int ACTOR__DIST_NEAR = 7; | 286 | |
287 | 287 | /** | |
288 | /** | 288 | * The feature id for the '<em><b>Dist med</b></em>' reference list. |
289 | * The feature id for the '<em><b>Dist med</b></em>' reference list. | 289 | * <!-- begin-user-doc --> |
290 | * <!-- begin-user-doc --> | 290 | * <!-- end-user-doc --> |
291 | * <!-- end-user-doc --> | 291 | * @generated |
292 | * @generated | 292 | * @ordered |
293 | * @ordered | 293 | */ |
294 | */ | 294 | int ACTOR__DIST_MED = 8; |
295 | int ACTOR__DIST_MED = 8; | 295 | |
296 | 296 | /** | |
297 | /** | 297 | * The feature id for the '<em><b>Dist far</b></em>' reference list. |
298 | * The feature id for the '<em><b>Dist far</b></em>' reference list. | 298 | * <!-- begin-user-doc --> |
299 | * <!-- begin-user-doc --> | 299 | * <!-- end-user-doc --> |
300 | * <!-- end-user-doc --> | 300 | * @generated |
301 | * @generated | 301 | * @ordered |
302 | * @ordered | 302 | */ |
303 | */ | 303 | int ACTOR__DIST_FAR = 9; |
304 | int ACTOR__DIST_FAR = 9; | 304 | |
305 | 305 | /** | |
306 | /** | 306 | * The number of structural features of the '<em>Actor</em>' class. |
307 | * The number of structural features of the '<em>Actor</em>' class. | 307 | * <!-- begin-user-doc --> |
308 | * <!-- begin-user-doc --> | 308 | * <!-- end-user-doc --> |
309 | * <!-- end-user-doc --> | 309 | * @generated |
310 | * @generated | 310 | * @ordered |
311 | * @ordered | 311 | */ |
312 | */ | 312 | int ACTOR_FEATURE_COUNT = 10; |
313 | int ACTOR_FEATURE_COUNT = 10; | 313 | |
314 | 314 | /** | |
315 | /** | 315 | * The number of operations of the '<em>Actor</em>' class. |
316 | * The number of operations of the '<em>Actor</em>' class. | 316 | * <!-- begin-user-doc --> |
317 | * <!-- begin-user-doc --> | 317 | * <!-- end-user-doc --> |
318 | * <!-- end-user-doc --> | 318 | * @generated |
319 | * @generated | 319 | * @ordered |
320 | * @ordered | 320 | */ |
321 | */ | 321 | int ACTOR_OPERATION_COUNT = 0; |
322 | int ACTOR_OPERATION_COUNT = 0; | 322 | |
323 | 323 | /** | |
324 | /** | 324 | * The meta object id for the '{@link crossingScenario.impl.RelationImpl <em>Relation</em>}' class. |
325 | * The meta object id for the '{@link crossingScenario.impl.RelationImpl <em>Relation</em>}' class. | 325 | * <!-- begin-user-doc --> |
326 | * <!-- begin-user-doc --> | 326 | * <!-- end-user-doc --> |
327 | * <!-- end-user-doc --> | 327 | * @see crossingScenario.impl.RelationImpl |
328 | * @see crossingScenario.impl.RelationImpl | 328 | * @see crossingScenario.impl.CrossingScenarioPackageImpl#getRelation() |
329 | * @see crossingScenario.impl.CrossingScenarioPackageImpl#getRelation() | 329 | * @generated |
330 | * @generated | 330 | */ |
331 | */ | 331 | int RELATION = 3; |
332 | int RELATION = 3; | 332 | |
333 | 333 | /** | |
334 | /** | 334 | * The feature id for the '<em><b>Target</b></em>' reference. |
335 | * The feature id for the '<em><b>Target</b></em>' reference. | 335 | * <!-- begin-user-doc --> |
336 | * <!-- begin-user-doc --> | 336 | * <!-- end-user-doc --> |
337 | * <!-- end-user-doc --> | 337 | * @generated |
338 | * @generated | 338 | * @ordered |
339 | * @ordered | 339 | */ |
340 | */ | 340 | int RELATION__TARGET = 0; |
341 | int RELATION__TARGET = 0; | 341 | |
342 | 342 | /** | |
343 | /** | 343 | * The feature id for the '<em><b>Source</b></em>' reference. |
344 | * The feature id for the '<em><b>Source</b></em>' reference. | 344 | * <!-- begin-user-doc --> |
345 | * <!-- begin-user-doc --> | 345 | * <!-- end-user-doc --> |
346 | * <!-- end-user-doc --> | 346 | * @generated |
347 | * @generated | 347 | * @ordered |
348 | * @ordered | 348 | */ |
349 | */ | 349 | int RELATION__SOURCE = 1; |
350 | int RELATION__SOURCE = 1; | 350 | |
351 | 351 | /** | |
352 | /** | 352 | * The number of structural features of the '<em>Relation</em>' class. |
353 | * The number of structural features of the '<em>Relation</em>' class. | 353 | * <!-- begin-user-doc --> |
354 | * <!-- begin-user-doc --> | 354 | * <!-- end-user-doc --> |
355 | * <!-- end-user-doc --> | 355 | * @generated |
356 | * @generated | 356 | * @ordered |
357 | * @ordered | 357 | */ |
358 | */ | 358 | int RELATION_FEATURE_COUNT = 2; |
359 | int RELATION_FEATURE_COUNT = 2; | 359 | |
360 | 360 | /** | |
361 | /** | 361 | * The number of operations of the '<em>Relation</em>' class. |
362 | * The number of operations of the '<em>Relation</em>' class. | 362 | * <!-- begin-user-doc --> |
363 | * <!-- begin-user-doc --> | 363 | * <!-- end-user-doc --> |
364 | * <!-- end-user-doc --> | 364 | * @generated |
365 | * @generated | 365 | * @ordered |
366 | * @ordered | 366 | */ |
367 | */ | 367 | int RELATION_OPERATION_COUNT = 0; |
368 | int RELATION_OPERATION_COUNT = 0; | 368 | |
369 | 369 | /** | |
370 | /** | 370 | * The meta object id for the '{@link crossingScenario.impl.SpatialRelationImpl <em>Spatial Relation</em>}' class. |
371 | * The meta object id for the '{@link crossingScenario.impl.SpatialRelationImpl <em>Spatial Relation</em>}' class. | 371 | * <!-- begin-user-doc --> |
372 | * <!-- begin-user-doc --> | 372 | * <!-- end-user-doc --> |
373 | * <!-- end-user-doc --> | 373 | * @see crossingScenario.impl.SpatialRelationImpl |
374 | * @see crossingScenario.impl.SpatialRelationImpl | 374 | * @see crossingScenario.impl.CrossingScenarioPackageImpl#getSpatialRelation() |
375 | * @see crossingScenario.impl.CrossingScenarioPackageImpl#getSpatialRelation() | 375 | * @generated |
376 | * @generated | 376 | */ |
377 | */ | 377 | int SPATIAL_RELATION = 4; |
378 | int SPATIAL_RELATION = 4; | 378 | |
379 | 379 | /** | |
380 | /** | 380 | * The feature id for the '<em><b>Target</b></em>' reference. |
381 | * The feature id for the '<em><b>Target</b></em>' reference. | 381 | * <!-- begin-user-doc --> |
382 | * <!-- begin-user-doc --> | 382 | * <!-- end-user-doc --> |
383 | * <!-- end-user-doc --> | 383 | * @generated |
384 | * @generated | 384 | * @ordered |
385 | * @ordered | 385 | */ |
386 | */ | 386 | int SPATIAL_RELATION__TARGET = RELATION__TARGET; |
387 | int SPATIAL_RELATION__TARGET = RELATION__TARGET; | 387 | |
388 | 388 | /** | |
389 | /** | 389 | * The feature id for the '<em><b>Source</b></em>' reference. |
390 | * The feature id for the '<em><b>Source</b></em>' reference. | 390 | * <!-- begin-user-doc --> |
391 | * <!-- begin-user-doc --> | 391 | * <!-- end-user-doc --> |
392 | * <!-- end-user-doc --> | 392 | * @generated |
393 | * @generated | 393 | * @ordered |
394 | * @ordered | 394 | */ |
395 | */ | 395 | int SPATIAL_RELATION__SOURCE = RELATION__SOURCE; |
396 | int SPATIAL_RELATION__SOURCE = RELATION__SOURCE; | 396 | |
397 | 397 | /** | |
398 | /** | 398 | * The number of structural features of the '<em>Spatial Relation</em>' class. |
399 | * The number of structural features of the '<em>Spatial Relation</em>' class. | 399 | * <!-- begin-user-doc --> |
400 | * <!-- begin-user-doc --> | 400 | * <!-- end-user-doc --> |
401 | * <!-- end-user-doc --> | 401 | * @generated |
402 | * @generated | 402 | * @ordered |
403 | * @ordered | 403 | */ |
404 | */ | 404 | int SPATIAL_RELATION_FEATURE_COUNT = RELATION_FEATURE_COUNT + 0; |
405 | int SPATIAL_RELATION_FEATURE_COUNT = RELATION_FEATURE_COUNT + 0; | 405 | |
406 | 406 | /** | |
407 | /** | 407 | * The number of operations of the '<em>Spatial Relation</em>' class. |
408 | * The number of operations of the '<em>Spatial Relation</em>' class. | 408 | * <!-- begin-user-doc --> |
409 | * <!-- begin-user-doc --> | 409 | * <!-- end-user-doc --> |
410 | * <!-- end-user-doc --> | 410 | * @generated |
411 | * @generated | 411 | * @ordered |
412 | * @ordered | 412 | */ |
413 | */ | 413 | int SPATIAL_RELATION_OPERATION_COUNT = RELATION_OPERATION_COUNT + 0; |
414 | int SPATIAL_RELATION_OPERATION_COUNT = RELATION_OPERATION_COUNT + 0; | 414 | |
415 | 415 | /** | |
416 | /** | 416 | * The meta object id for the '{@link crossingScenario.impl.TemporalRelationImpl <em>Temporal Relation</em>}' class. |
417 | * The meta object id for the '{@link crossingScenario.impl.TemporalRelationImpl <em>Temporal Relation</em>}' class. | 417 | * <!-- begin-user-doc --> |
418 | * <!-- begin-user-doc --> | 418 | * <!-- end-user-doc --> |
419 | * <!-- end-user-doc --> | 419 | * @see crossingScenario.impl.TemporalRelationImpl |
420 | * @see crossingScenario.impl.TemporalRelationImpl | 420 | * @see crossingScenario.impl.CrossingScenarioPackageImpl#getTemporalRelation() |
421 | * @see crossingScenario.impl.CrossingScenarioPackageImpl#getTemporalRelation() | 421 | * @generated |
422 | * @generated | 422 | */ |
423 | */ | 423 | int TEMPORAL_RELATION = 5; |
424 | int TEMPORAL_RELATION = 5; | 424 | |
425 | 425 | /** | |
426 | /** | 426 | * The feature id for the '<em><b>Target</b></em>' reference. |
427 | * The feature id for the '<em><b>Target</b></em>' reference. | 427 | * <!-- begin-user-doc --> |
428 | * <!-- begin-user-doc --> | 428 | * <!-- end-user-doc --> |
429 | * <!-- end-user-doc --> | 429 | * @generated |
430 | * @generated | 430 | * @ordered |
431 | * @ordered | 431 | */ |
432 | */ | 432 | int TEMPORAL_RELATION__TARGET = RELATION__TARGET; |
433 | int TEMPORAL_RELATION__TARGET = RELATION__TARGET; | 433 | |
434 | 434 | /** | |
435 | /** | 435 | * The feature id for the '<em><b>Source</b></em>' reference. |
436 | * The feature id for the '<em><b>Source</b></em>' reference. | 436 | * <!-- begin-user-doc --> |
437 | * <!-- begin-user-doc --> | 437 | * <!-- end-user-doc --> |
438 | * <!-- end-user-doc --> | 438 | * @generated |
439 | * @generated | 439 | * @ordered |
440 | * @ordered | 440 | */ |
441 | */ | 441 | int TEMPORAL_RELATION__SOURCE = RELATION__SOURCE; |
442 | int TEMPORAL_RELATION__SOURCE = RELATION__SOURCE; | 442 | |
443 | 443 | /** | |
444 | /** | 444 | * The number of structural features of the '<em>Temporal Relation</em>' class. |
445 | * The number of structural features of the '<em>Temporal Relation</em>' class. | 445 | * <!-- begin-user-doc --> |
446 | * <!-- begin-user-doc --> | 446 | * <!-- end-user-doc --> |
447 | * <!-- end-user-doc --> | 447 | * @generated |
448 | * @generated | 448 | * @ordered |
449 | * @ordered | 449 | */ |
450 | */ | 450 | int TEMPORAL_RELATION_FEATURE_COUNT = RELATION_FEATURE_COUNT + 0; |
451 | int TEMPORAL_RELATION_FEATURE_COUNT = RELATION_FEATURE_COUNT + 0; | 451 | |
452 | 452 | /** | |
453 | /** | 453 | * The number of operations of the '<em>Temporal Relation</em>' class. |
454 | * The number of operations of the '<em>Temporal Relation</em>' class. | 454 | * <!-- begin-user-doc --> |
455 | * <!-- begin-user-doc --> | 455 | * <!-- end-user-doc --> |
456 | * <!-- end-user-doc --> | 456 | * @generated |
457 | * @generated | 457 | * @ordered |
458 | * @ordered | 458 | */ |
459 | */ | 459 | int TEMPORAL_RELATION_OPERATION_COUNT = RELATION_OPERATION_COUNT + 0; |
460 | int TEMPORAL_RELATION_OPERATION_COUNT = RELATION_OPERATION_COUNT + 0; | 460 | |
461 | 461 | /** | |
462 | /** | 462 | * The meta object id for the '{@link crossingScenario.impl.VisionBlockedImpl <em>Vision Blocked</em>}' class. |
463 | * The meta object id for the '{@link crossingScenario.impl.VisionBlockedImpl <em>Vision Blocked</em>}' class. | 463 | * <!-- begin-user-doc --> |
464 | * <!-- begin-user-doc --> | 464 | * <!-- end-user-doc --> |
465 | * <!-- end-user-doc --> | 465 | * @see crossingScenario.impl.VisionBlockedImpl |
466 | * @see crossingScenario.impl.VisionBlockedImpl | 466 | * @see crossingScenario.impl.CrossingScenarioPackageImpl#getVisionBlocked() |
467 | * @see crossingScenario.impl.CrossingScenarioPackageImpl#getVisionBlocked() | 467 | * @generated |
468 | * @generated | 468 | */ |
469 | */ | 469 | int VISION_BLOCKED = 6; |
470 | int VISION_BLOCKED = 6; | 470 | |
471 | 471 | /** | |
472 | /** | 472 | * The feature id for the '<em><b>Target</b></em>' reference. |
473 | * The feature id for the '<em><b>Target</b></em>' reference. | 473 | * <!-- begin-user-doc --> |
474 | * <!-- begin-user-doc --> | 474 | * <!-- end-user-doc --> |
475 | * <!-- end-user-doc --> | 475 | * @generated |
476 | * @generated | 476 | * @ordered |
477 | * @ordered | 477 | */ |
478 | */ | 478 | int VISION_BLOCKED__TARGET = SPATIAL_RELATION__TARGET; |
479 | int VISION_BLOCKED__TARGET = SPATIAL_RELATION__TARGET; | 479 | |
480 | 480 | /** | |
481 | /** | 481 | * The feature id for the '<em><b>Source</b></em>' reference. |
482 | * The feature id for the '<em><b>Source</b></em>' reference. | 482 | * <!-- begin-user-doc --> |
483 | * <!-- begin-user-doc --> | 483 | * <!-- end-user-doc --> |
484 | * <!-- end-user-doc --> | 484 | * @generated |
485 | * @generated | 485 | * @ordered |
486 | * @ordered | 486 | */ |
487 | */ | 487 | int VISION_BLOCKED__SOURCE = SPATIAL_RELATION__SOURCE; |
488 | int VISION_BLOCKED__SOURCE = SPATIAL_RELATION__SOURCE; | 488 | |
489 | 489 | /** | |
490 | /** | 490 | * The feature id for the '<em><b>Blocked By</b></em>' reference. |
491 | * The feature id for the '<em><b>Blocked By</b></em>' reference. | 491 | * <!-- begin-user-doc --> |
492 | * <!-- begin-user-doc --> | 492 | * <!-- end-user-doc --> |
493 | * <!-- end-user-doc --> | 493 | * @generated |
494 | * @generated | 494 | * @ordered |
495 | * @ordered | 495 | */ |
496 | */ | 496 | int VISION_BLOCKED__BLOCKED_BY = SPATIAL_RELATION_FEATURE_COUNT + 0; |
497 | int VISION_BLOCKED__BLOCKED_BY = SPATIAL_RELATION_FEATURE_COUNT + 0; | 497 | |
498 | 498 | /** | |
499 | /** | 499 | * The number of structural features of the '<em>Vision Blocked</em>' class. |
500 | * The number of structural features of the '<em>Vision Blocked</em>' class. | 500 | * <!-- begin-user-doc --> |
501 | * <!-- begin-user-doc --> | 501 | * <!-- end-user-doc --> |
502 | * <!-- end-user-doc --> | 502 | * @generated |
503 | * @generated | 503 | * @ordered |
504 | * @ordered | 504 | */ |
505 | */ | 505 | int VISION_BLOCKED_FEATURE_COUNT = SPATIAL_RELATION_FEATURE_COUNT + 1; |
506 | int VISION_BLOCKED_FEATURE_COUNT = SPATIAL_RELATION_FEATURE_COUNT + 1; | 506 | |
507 | 507 | /** | |
508 | /** | 508 | * The number of operations of the '<em>Vision Blocked</em>' class. |
509 | * The number of operations of the '<em>Vision Blocked</em>' class. | 509 | * <!-- begin-user-doc --> |
510 | * <!-- begin-user-doc --> | 510 | * <!-- end-user-doc --> |
511 | * <!-- end-user-doc --> | 511 | * @generated |
512 | * @generated | 512 | * @ordered |
513 | * @ordered | 513 | */ |
514 | */ | 514 | int VISION_BLOCKED_OPERATION_COUNT = SPATIAL_RELATION_OPERATION_COUNT + 0; |
515 | int VISION_BLOCKED_OPERATION_COUNT = SPATIAL_RELATION_OPERATION_COUNT + 0; | 515 | |
516 | 516 | /** | |
517 | /** | 517 | * The meta object id for the '{@link crossingScenario.impl.CollisionExistsImpl <em>Collision Exists</em>}' class. |
518 | * The meta object id for the '{@link crossingScenario.impl.SeparationDistanceImpl <em>Separation Distance</em>}' class. | 518 | * <!-- begin-user-doc --> |
519 | * <!-- begin-user-doc --> | 519 | * <!-- end-user-doc --> |
520 | * <!-- end-user-doc --> | 520 | * @see crossingScenario.impl.CollisionExistsImpl |
521 | * @see crossingScenario.impl.SeparationDistanceImpl | 521 | * @see crossingScenario.impl.CrossingScenarioPackageImpl#getCollisionExists() |
522 | * @see crossingScenario.impl.CrossingScenarioPackageImpl#getSeparationDistance() | 522 | * @generated |
523 | * @generated | 523 | */ |
524 | */ | 524 | int COLLISION_EXISTS = 7; |
525 | int SEPARATION_DISTANCE = 7; | 525 | |
526 | 526 | /** | |
527 | /** | 527 | * The feature id for the '<em><b>Target</b></em>' reference. |
528 | * The feature id for the '<em><b>Target</b></em>' reference. | 528 | * <!-- begin-user-doc --> |
529 | * <!-- begin-user-doc --> | 529 | * <!-- end-user-doc --> |
530 | * <!-- end-user-doc --> | 530 | * @generated |
531 | * @generated | 531 | * @ordered |
532 | * @ordered | 532 | */ |
533 | */ | 533 | int COLLISION_EXISTS__TARGET = TEMPORAL_RELATION__TARGET; |
534 | int SEPARATION_DISTANCE__TARGET = SPATIAL_RELATION__TARGET; | 534 | |
535 | 535 | /** | |
536 | /** | 536 | * The feature id for the '<em><b>Source</b></em>' reference. |
537 | * The feature id for the '<em><b>Source</b></em>' reference. | 537 | * <!-- begin-user-doc --> |
538 | * <!-- begin-user-doc --> | 538 | * <!-- end-user-doc --> |
539 | * <!-- end-user-doc --> | 539 | * @generated |
540 | * @generated | 540 | * @ordered |
541 | * @ordered | 541 | */ |
542 | */ | 542 | int COLLISION_EXISTS__SOURCE = TEMPORAL_RELATION__SOURCE; |
543 | int SEPARATION_DISTANCE__SOURCE = SPATIAL_RELATION__SOURCE; | 543 | |
544 | 544 | /** | |
545 | /** | 545 | * The feature id for the '<em><b>Collision Time</b></em>' attribute. |
546 | * The feature id for the '<em><b>Distance</b></em>' attribute. | 546 | * <!-- begin-user-doc --> |
547 | * <!-- begin-user-doc --> | 547 | * <!-- end-user-doc --> |
548 | * <!-- end-user-doc --> | 548 | * @generated |
549 | * @generated | 549 | * @ordered |
550 | * @ordered | 550 | */ |
551 | */ | 551 | int COLLISION_EXISTS__COLLISION_TIME = TEMPORAL_RELATION_FEATURE_COUNT + 0; |
552 | int SEPARATION_DISTANCE__DISTANCE = SPATIAL_RELATION_FEATURE_COUNT + 0; | 552 | |
553 | 553 | /** | |
554 | /** | 554 | * The number of structural features of the '<em>Collision Exists</em>' class. |
555 | * The number of structural features of the '<em>Separation Distance</em>' class. | 555 | * <!-- begin-user-doc --> |
556 | * <!-- begin-user-doc --> | 556 | * <!-- end-user-doc --> |
557 | * <!-- end-user-doc --> | 557 | * @generated |
558 | * @generated | 558 | * @ordered |
559 | * @ordered | 559 | */ |
560 | */ | 560 | int COLLISION_EXISTS_FEATURE_COUNT = TEMPORAL_RELATION_FEATURE_COUNT + 1; |
561 | int SEPARATION_DISTANCE_FEATURE_COUNT = SPATIAL_RELATION_FEATURE_COUNT + 1; | 561 | |
562 | 562 | /** | |
563 | /** | 563 | * The number of operations of the '<em>Collision Exists</em>' class. |
564 | * The number of operations of the '<em>Separation Distance</em>' class. | 564 | * <!-- begin-user-doc --> |
565 | * <!-- begin-user-doc --> | 565 | * <!-- end-user-doc --> |
566 | * <!-- end-user-doc --> | 566 | * @generated |
567 | * @generated | 567 | * @ordered |
568 | * @ordered | 568 | */ |
569 | */ | 569 | int COLLISION_EXISTS_OPERATION_COUNT = TEMPORAL_RELATION_OPERATION_COUNT + 0; |
570 | int SEPARATION_DISTANCE_OPERATION_COUNT = SPATIAL_RELATION_OPERATION_COUNT + 0; | 570 | |
571 | 571 | /** | |
572 | /** | 572 | * The meta object id for the '{@link crossingScenario.impl.PedestrianImpl <em>Pedestrian</em>}' class. |
573 | * The meta object id for the '{@link crossingScenario.impl.CollisionExistsImpl <em>Collision Exists</em>}' class. | 573 | * <!-- begin-user-doc --> |
574 | * <!-- begin-user-doc --> | 574 | * <!-- end-user-doc --> |
575 | * <!-- end-user-doc --> | 575 | * @see crossingScenario.impl.PedestrianImpl |
576 | * @see crossingScenario.impl.CollisionExistsImpl | 576 | * @see crossingScenario.impl.CrossingScenarioPackageImpl#getPedestrian() |
577 | * @see crossingScenario.impl.CrossingScenarioPackageImpl#getCollisionExists() | 577 | * @generated |
578 | * @generated | 578 | */ |
579 | */ | 579 | int PEDESTRIAN = 8; |
580 | int COLLISION_EXISTS = 8; | 580 | |
581 | 581 | /** | |
582 | /** | 582 | * The feature id for the '<em><b>XPos</b></em>' attribute. |
583 | * The feature id for the '<em><b>Target</b></em>' reference. | 583 | * <!-- begin-user-doc --> |
584 | * <!-- begin-user-doc --> | 584 | * <!-- end-user-doc --> |
585 | * <!-- end-user-doc --> | 585 | * @generated |
586 | * @generated | 586 | * @ordered |
587 | * @ordered | 587 | */ |
588 | */ | 588 | int PEDESTRIAN__XPOS = ACTOR__XPOS; |
589 | int COLLISION_EXISTS__TARGET = TEMPORAL_RELATION__TARGET; | 589 | |
590 | 590 | /** | |
591 | /** | 591 | * The feature id for the '<em><b>YPos</b></em>' attribute. |
592 | * The feature id for the '<em><b>Source</b></em>' reference. | 592 | * <!-- begin-user-doc --> |
593 | * <!-- begin-user-doc --> | 593 | * <!-- end-user-doc --> |
594 | * <!-- end-user-doc --> | 594 | * @generated |
595 | * @generated | 595 | * @ordered |
596 | * @ordered | 596 | */ |
597 | */ | 597 | int PEDESTRIAN__YPOS = ACTOR__YPOS; |
598 | int COLLISION_EXISTS__SOURCE = TEMPORAL_RELATION__SOURCE; | 598 | |
599 | 599 | /** | |
600 | /** | 600 | * The feature id for the '<em><b>Length</b></em>' attribute. |
601 | * The feature id for the '<em><b>Collision Time</b></em>' attribute. | 601 | * <!-- begin-user-doc --> |
602 | * <!-- begin-user-doc --> | 602 | * <!-- end-user-doc --> |
603 | * <!-- end-user-doc --> | 603 | * @generated |
604 | * @generated | 604 | * @ordered |
605 | * @ordered | 605 | */ |
606 | */ | 606 | int PEDESTRIAN__LENGTH = ACTOR__LENGTH; |
607 | int COLLISION_EXISTS__COLLISION_TIME = TEMPORAL_RELATION_FEATURE_COUNT + 0; | 607 | |
608 | 608 | /** | |
609 | /** | 609 | * The feature id for the '<em><b>Width</b></em>' attribute. |
610 | * The number of structural features of the '<em>Collision Exists</em>' class. | 610 | * <!-- begin-user-doc --> |
611 | * <!-- begin-user-doc --> | 611 | * <!-- end-user-doc --> |
612 | * <!-- end-user-doc --> | 612 | * @generated |
613 | * @generated | 613 | * @ordered |
614 | * @ordered | 614 | */ |
615 | */ | 615 | int PEDESTRIAN__WIDTH = ACTOR__WIDTH; |
616 | int COLLISION_EXISTS_FEATURE_COUNT = TEMPORAL_RELATION_FEATURE_COUNT + 1; | 616 | |
617 | 617 | /** | |
618 | /** | 618 | * The feature id for the '<em><b>XSpeed</b></em>' attribute. |
619 | * The number of operations of the '<em>Collision Exists</em>' class. | 619 | * <!-- begin-user-doc --> |
620 | * <!-- begin-user-doc --> | 620 | * <!-- end-user-doc --> |
621 | * <!-- end-user-doc --> | 621 | * @generated |
622 | * @generated | 622 | * @ordered |
623 | * @ordered | 623 | */ |
624 | */ | 624 | int PEDESTRIAN__XSPEED = ACTOR__XSPEED; |
625 | int COLLISION_EXISTS_OPERATION_COUNT = TEMPORAL_RELATION_OPERATION_COUNT + 0; | 625 | |
626 | 626 | /** | |
627 | /** | 627 | * The feature id for the '<em><b>Placed On</b></em>' reference. |
628 | * The meta object id for the '{@link crossingScenario.impl.CollisionDoesNotExistImpl <em>Collision Does Not Exist</em>}' class. | 628 | * <!-- begin-user-doc --> |
629 | * <!-- begin-user-doc --> | 629 | * <!-- end-user-doc --> |
630 | * <!-- end-user-doc --> | 630 | * @generated |
631 | * @see crossingScenario.impl.CollisionDoesNotExistImpl | 631 | * @ordered |
632 | * @see crossingScenario.impl.CrossingScenarioPackageImpl#getCollisionDoesNotExist() | 632 | */ |
633 | * @generated | 633 | int PEDESTRIAN__PLACED_ON = ACTOR__PLACED_ON; |
634 | */ | 634 | |
635 | int COLLISION_DOES_NOT_EXIST = 9; | 635 | /** |
636 | 636 | * The feature id for the '<em><b>YSpeed</b></em>' attribute. | |
637 | /** | 637 | * <!-- begin-user-doc --> |
638 | * The feature id for the '<em><b>Target</b></em>' reference. | 638 | * <!-- end-user-doc --> |
639 | * <!-- begin-user-doc --> | 639 | * @generated |
640 | * <!-- end-user-doc --> | 640 | * @ordered |
641 | * @generated | 641 | */ |
642 | * @ordered | 642 | int PEDESTRIAN__YSPEED = ACTOR__YSPEED; |
643 | */ | 643 | |
644 | int COLLISION_DOES_NOT_EXIST__TARGET = TEMPORAL_RELATION__TARGET; | 644 | /** |
645 | 645 | * The feature id for the '<em><b>Dist near</b></em>' reference list. | |
646 | /** | 646 | * <!-- begin-user-doc --> |
647 | * The feature id for the '<em><b>Source</b></em>' reference. | 647 | * <!-- end-user-doc --> |
648 | * <!-- begin-user-doc --> | 648 | * @generated |
649 | * <!-- end-user-doc --> | 649 | * @ordered |
650 | * @generated | 650 | */ |
651 | * @ordered | 651 | int PEDESTRIAN__DIST_NEAR = ACTOR__DIST_NEAR; |
652 | */ | 652 | |
653 | int COLLISION_DOES_NOT_EXIST__SOURCE = TEMPORAL_RELATION__SOURCE; | 653 | /** |
654 | 654 | * The feature id for the '<em><b>Dist med</b></em>' reference list. | |
655 | /** | 655 | * <!-- begin-user-doc --> |
656 | * The number of structural features of the '<em>Collision Does Not Exist</em>' class. | 656 | * <!-- end-user-doc --> |
657 | * <!-- begin-user-doc --> | 657 | * @generated |
658 | * <!-- end-user-doc --> | 658 | * @ordered |
659 | * @generated | 659 | */ |
660 | * @ordered | 660 | int PEDESTRIAN__DIST_MED = ACTOR__DIST_MED; |
661 | */ | 661 | |
662 | int COLLISION_DOES_NOT_EXIST_FEATURE_COUNT = TEMPORAL_RELATION_FEATURE_COUNT + 0; | 662 | /** |
663 | 663 | * The feature id for the '<em><b>Dist far</b></em>' reference list. | |
664 | /** | 664 | * <!-- begin-user-doc --> |
665 | * The number of operations of the '<em>Collision Does Not Exist</em>' class. | 665 | * <!-- end-user-doc --> |
666 | * <!-- begin-user-doc --> | 666 | * @generated |
667 | * <!-- end-user-doc --> | 667 | * @ordered |
668 | * @generated | 668 | */ |
669 | * @ordered | 669 | int PEDESTRIAN__DIST_FAR = ACTOR__DIST_FAR; |
670 | */ | 670 | |
671 | int COLLISION_DOES_NOT_EXIST_OPERATION_COUNT = TEMPORAL_RELATION_OPERATION_COUNT + 0; | 671 | /** |
672 | 672 | * The number of structural features of the '<em>Pedestrian</em>' class. | |
673 | /** | 673 | * <!-- begin-user-doc --> |
674 | * The meta object id for the '{@link crossingScenario.impl.PedestrianImpl <em>Pedestrian</em>}' class. | 674 | * <!-- end-user-doc --> |
675 | * <!-- begin-user-doc --> | 675 | * @generated |
676 | * <!-- end-user-doc --> | 676 | * @ordered |
677 | * @see crossingScenario.impl.PedestrianImpl | 677 | */ |
678 | * @see crossingScenario.impl.CrossingScenarioPackageImpl#getPedestrian() | 678 | int PEDESTRIAN_FEATURE_COUNT = ACTOR_FEATURE_COUNT + 0; |
679 | * @generated | 679 | |
680 | */ | 680 | /** |
681 | int PEDESTRIAN = 10; | 681 | * The number of operations of the '<em>Pedestrian</em>' class. |
682 | 682 | * <!-- begin-user-doc --> | |
683 | /** | 683 | * <!-- end-user-doc --> |
684 | * The feature id for the '<em><b>XPos</b></em>' attribute. | 684 | * @generated |
685 | * <!-- begin-user-doc --> | 685 | * @ordered |
686 | * <!-- end-user-doc --> | 686 | */ |
687 | * @generated | 687 | int PEDESTRIAN_OPERATION_COUNT = ACTOR_OPERATION_COUNT + 0; |
688 | * @ordered | 688 | |
689 | */ | 689 | /** |
690 | int PEDESTRIAN__XPOS = ACTOR__XPOS; | 690 | * The meta object id for the '{@link crossingScenario.impl.VehicleImpl <em>Vehicle</em>}' class. |
691 | 691 | * <!-- begin-user-doc --> | |
692 | /** | 692 | * <!-- end-user-doc --> |
693 | * The feature id for the '<em><b>YPos</b></em>' attribute. | 693 | * @see crossingScenario.impl.VehicleImpl |
694 | * <!-- begin-user-doc --> | 694 | * @see crossingScenario.impl.CrossingScenarioPackageImpl#getVehicle() |
695 | * <!-- end-user-doc --> | 695 | * @generated |
696 | * @generated | 696 | */ |
697 | * @ordered | 697 | int VEHICLE = 9; |
698 | */ | 698 | |
699 | int PEDESTRIAN__YPOS = ACTOR__YPOS; | 699 | /** |
700 | 700 | * The feature id for the '<em><b>XPos</b></em>' attribute. | |
701 | /** | 701 | * <!-- begin-user-doc --> |
702 | * The feature id for the '<em><b>Length</b></em>' attribute. | 702 | * <!-- end-user-doc --> |
703 | * <!-- begin-user-doc --> | 703 | * @generated |
704 | * <!-- end-user-doc --> | 704 | * @ordered |
705 | * @generated | 705 | */ |
706 | * @ordered | 706 | int VEHICLE__XPOS = ACTOR__XPOS; |
707 | */ | 707 | |
708 | int PEDESTRIAN__LENGTH = ACTOR__LENGTH; | 708 | /** |
709 | 709 | * The feature id for the '<em><b>YPos</b></em>' attribute. | |
710 | /** | 710 | * <!-- begin-user-doc --> |
711 | * The feature id for the '<em><b>Width</b></em>' attribute. | 711 | * <!-- end-user-doc --> |
712 | * <!-- begin-user-doc --> | 712 | * @generated |
713 | * <!-- end-user-doc --> | 713 | * @ordered |
714 | * @generated | 714 | */ |
715 | * @ordered | 715 | int VEHICLE__YPOS = ACTOR__YPOS; |
716 | */ | 716 | |
717 | int PEDESTRIAN__WIDTH = ACTOR__WIDTH; | 717 | /** |
718 | 718 | * The feature id for the '<em><b>Length</b></em>' attribute. | |
719 | /** | 719 | * <!-- begin-user-doc --> |
720 | * The feature id for the '<em><b>XSpeed</b></em>' attribute. | 720 | * <!-- end-user-doc --> |
721 | * <!-- begin-user-doc --> | 721 | * @generated |
722 | * <!-- end-user-doc --> | 722 | * @ordered |
723 | * @generated | 723 | */ |
724 | * @ordered | 724 | int VEHICLE__LENGTH = ACTOR__LENGTH; |
725 | */ | 725 | |
726 | int PEDESTRIAN__XSPEED = ACTOR__XSPEED; | 726 | /** |
727 | 727 | * The feature id for the '<em><b>Width</b></em>' attribute. | |
728 | /** | 728 | * <!-- begin-user-doc --> |
729 | * The feature id for the '<em><b>Placed On</b></em>' reference. | 729 | * <!-- end-user-doc --> |
730 | * <!-- begin-user-doc --> | 730 | * @generated |
731 | * <!-- end-user-doc --> | 731 | * @ordered |
732 | * @generated | 732 | */ |
733 | * @ordered | 733 | int VEHICLE__WIDTH = ACTOR__WIDTH; |
734 | */ | 734 | |
735 | int PEDESTRIAN__PLACED_ON = ACTOR__PLACED_ON; | 735 | /** |
736 | 736 | * The feature id for the '<em><b>XSpeed</b></em>' attribute. | |
737 | /** | 737 | * <!-- begin-user-doc --> |
738 | * The feature id for the '<em><b>YSpeed</b></em>' attribute. | 738 | * <!-- end-user-doc --> |
739 | * <!-- begin-user-doc --> | 739 | * @generated |
740 | * <!-- end-user-doc --> | 740 | * @ordered |
741 | * @generated | 741 | */ |
742 | * @ordered | 742 | int VEHICLE__XSPEED = ACTOR__XSPEED; |
743 | */ | 743 | |
744 | int PEDESTRIAN__YSPEED = ACTOR__YSPEED; | 744 | /** |
745 | 745 | * The feature id for the '<em><b>Placed On</b></em>' reference. | |
746 | /** | 746 | * <!-- begin-user-doc --> |
747 | * The feature id for the '<em><b>Dist near</b></em>' reference list. | 747 | * <!-- end-user-doc --> |
748 | * <!-- begin-user-doc --> | 748 | * @generated |
749 | * <!-- end-user-doc --> | 749 | * @ordered |
750 | * @generated | 750 | */ |
751 | * @ordered | 751 | int VEHICLE__PLACED_ON = ACTOR__PLACED_ON; |
752 | */ | 752 | |
753 | int PEDESTRIAN__DIST_NEAR = ACTOR__DIST_NEAR; | 753 | /** |
754 | 754 | * The feature id for the '<em><b>YSpeed</b></em>' attribute. | |
755 | /** | 755 | * <!-- begin-user-doc --> |
756 | * The feature id for the '<em><b>Dist med</b></em>' reference list. | 756 | * <!-- end-user-doc --> |
757 | * <!-- begin-user-doc --> | 757 | * @generated |
758 | * <!-- end-user-doc --> | 758 | * @ordered |
759 | * @generated | 759 | */ |
760 | * @ordered | 760 | int VEHICLE__YSPEED = ACTOR__YSPEED; |
761 | */ | 761 | |
762 | int PEDESTRIAN__DIST_MED = ACTOR__DIST_MED; | 762 | /** |
763 | 763 | * The feature id for the '<em><b>Dist near</b></em>' reference list. | |
764 | /** | 764 | * <!-- begin-user-doc --> |
765 | * The feature id for the '<em><b>Dist far</b></em>' reference list. | 765 | * <!-- end-user-doc --> |
766 | * <!-- begin-user-doc --> | 766 | * @generated |
767 | * <!-- end-user-doc --> | 767 | * @ordered |
768 | * @generated | 768 | */ |
769 | * @ordered | 769 | int VEHICLE__DIST_NEAR = ACTOR__DIST_NEAR; |
770 | */ | 770 | |
771 | int PEDESTRIAN__DIST_FAR = ACTOR__DIST_FAR; | 771 | /** |
772 | 772 | * The feature id for the '<em><b>Dist med</b></em>' reference list. | |
773 | /** | 773 | * <!-- begin-user-doc --> |
774 | * The number of structural features of the '<em>Pedestrian</em>' class. | 774 | * <!-- end-user-doc --> |
775 | * <!-- begin-user-doc --> | 775 | * @generated |
776 | * <!-- end-user-doc --> | 776 | * @ordered |
777 | * @generated | 777 | */ |
778 | * @ordered | 778 | int VEHICLE__DIST_MED = ACTOR__DIST_MED; |
779 | */ | 779 | |
780 | int PEDESTRIAN_FEATURE_COUNT = ACTOR_FEATURE_COUNT + 0; | 780 | /** |
781 | 781 | * The feature id for the '<em><b>Dist far</b></em>' reference list. | |
782 | /** | 782 | * <!-- begin-user-doc --> |
783 | * The number of operations of the '<em>Pedestrian</em>' class. | 783 | * <!-- end-user-doc --> |
784 | * <!-- begin-user-doc --> | 784 | * @generated |
785 | * <!-- end-user-doc --> | 785 | * @ordered |
786 | * @generated | 786 | */ |
787 | * @ordered | 787 | int VEHICLE__DIST_FAR = ACTOR__DIST_FAR; |
788 | */ | 788 | |
789 | int PEDESTRIAN_OPERATION_COUNT = ACTOR_OPERATION_COUNT + 0; | 789 | /** |
790 | 790 | * The number of structural features of the '<em>Vehicle</em>' class. | |
791 | /** | 791 | * <!-- begin-user-doc --> |
792 | * The meta object id for the '{@link crossingScenario.impl.VehicleImpl <em>Vehicle</em>}' class. | 792 | * <!-- end-user-doc --> |
793 | * <!-- begin-user-doc --> | 793 | * @generated |
794 | * <!-- end-user-doc --> | 794 | * @ordered |
795 | * @see crossingScenario.impl.VehicleImpl | 795 | */ |
796 | * @see crossingScenario.impl.CrossingScenarioPackageImpl#getVehicle() | 796 | int VEHICLE_FEATURE_COUNT = ACTOR_FEATURE_COUNT + 0; |
797 | * @generated | 797 | |
798 | */ | 798 | /** |
799 | int VEHICLE = 11; | 799 | * The number of operations of the '<em>Vehicle</em>' class. |
800 | 800 | * <!-- begin-user-doc --> | |
801 | /** | 801 | * <!-- end-user-doc --> |
802 | * The feature id for the '<em><b>XPos</b></em>' attribute. | 802 | * @generated |
803 | * <!-- begin-user-doc --> | 803 | * @ordered |
804 | * <!-- end-user-doc --> | 804 | */ |
805 | * @generated | 805 | int VEHICLE_OPERATION_COUNT = ACTOR_OPERATION_COUNT + 0; |
806 | * @ordered | 806 | |
807 | */ | 807 | /** |
808 | int VEHICLE__XPOS = ACTOR__XPOS; | 808 | * The meta object id for the '{@link crossingScenario.impl.Lane_HorizontalImpl <em>Lane Horizontal</em>}' class. |
809 | 809 | * <!-- begin-user-doc --> | |
810 | /** | 810 | * <!-- end-user-doc --> |
811 | * The feature id for the '<em><b>YPos</b></em>' attribute. | 811 | * @see crossingScenario.impl.Lane_HorizontalImpl |
812 | * <!-- begin-user-doc --> | 812 | * @see crossingScenario.impl.CrossingScenarioPackageImpl#getLane_Horizontal() |
813 | * <!-- end-user-doc --> | 813 | * @generated |
814 | * @generated | 814 | */ |
815 | * @ordered | 815 | int LANE_HORIZONTAL = 10; |
816 | */ | 816 | |
817 | int VEHICLE__YPOS = ACTOR__YPOS; | 817 | /** |
818 | 818 | * The feature id for the '<em><b>Reference Coord</b></em>' attribute. | |
819 | /** | 819 | * <!-- begin-user-doc --> |
820 | * The feature id for the '<em><b>Length</b></em>' attribute. | 820 | * <!-- end-user-doc --> |
821 | * <!-- begin-user-doc --> | 821 | * @generated |
822 | * <!-- end-user-doc --> | 822 | * @ordered |
823 | * @generated | 823 | */ |
824 | * @ordered | 824 | int LANE_HORIZONTAL__REFERENCE_COORD = LANE__REFERENCE_COORD; |
825 | */ | 825 | |
826 | int VEHICLE__LENGTH = ACTOR__LENGTH; | 826 | /** |
827 | 827 | * The feature id for the '<em><b>Actors</b></em>' reference list. | |
828 | /** | 828 | * <!-- begin-user-doc --> |
829 | * The feature id for the '<em><b>Width</b></em>' attribute. | 829 | * <!-- end-user-doc --> |
830 | * <!-- begin-user-doc --> | 830 | * @generated |
831 | * <!-- end-user-doc --> | 831 | * @ordered |
832 | * @generated | 832 | */ |
833 | * @ordered | 833 | int LANE_HORIZONTAL__ACTORS = LANE__ACTORS; |
834 | */ | 834 | |
835 | int VEHICLE__WIDTH = ACTOR__WIDTH; | 835 | /** |
836 | 836 | * The number of structural features of the '<em>Lane Horizontal</em>' class. | |
837 | /** | 837 | * <!-- begin-user-doc --> |
838 | * The feature id for the '<em><b>XSpeed</b></em>' attribute. | 838 | * <!-- end-user-doc --> |
839 | * <!-- begin-user-doc --> | 839 | * @generated |
840 | * <!-- end-user-doc --> | 840 | * @ordered |
841 | * @generated | 841 | */ |
842 | * @ordered | 842 | int LANE_HORIZONTAL_FEATURE_COUNT = LANE_FEATURE_COUNT + 0; |
843 | */ | 843 | |
844 | int VEHICLE__XSPEED = ACTOR__XSPEED; | 844 | /** |
845 | 845 | * The number of operations of the '<em>Lane Horizontal</em>' class. | |
846 | /** | 846 | * <!-- begin-user-doc --> |
847 | * The feature id for the '<em><b>Placed On</b></em>' reference. | 847 | * <!-- end-user-doc --> |
848 | * <!-- begin-user-doc --> | 848 | * @generated |
849 | * <!-- end-user-doc --> | 849 | * @ordered |
850 | * @generated | 850 | */ |
851 | * @ordered | 851 | int LANE_HORIZONTAL_OPERATION_COUNT = LANE_OPERATION_COUNT + 0; |
852 | */ | 852 | |
853 | int VEHICLE__PLACED_ON = ACTOR__PLACED_ON; | 853 | /** |
854 | 854 | * The meta object id for the '{@link crossingScenario.impl.Lane_VerticalImpl <em>Lane Vertical</em>}' class. | |
855 | /** | 855 | * <!-- begin-user-doc --> |
856 | * The feature id for the '<em><b>YSpeed</b></em>' attribute. | 856 | * <!-- end-user-doc --> |
857 | * <!-- begin-user-doc --> | 857 | * @see crossingScenario.impl.Lane_VerticalImpl |
858 | * <!-- end-user-doc --> | 858 | * @see crossingScenario.impl.CrossingScenarioPackageImpl#getLane_Vertical() |
859 | * @generated | 859 | * @generated |
860 | * @ordered | 860 | */ |
861 | */ | 861 | int LANE_VERTICAL = 11; |
862 | int VEHICLE__YSPEED = ACTOR__YSPEED; | 862 | |
863 | 863 | /** | |
864 | /** | 864 | * The feature id for the '<em><b>Reference Coord</b></em>' attribute. |
865 | * The feature id for the '<em><b>Dist near</b></em>' reference list. | 865 | * <!-- begin-user-doc --> |
866 | * <!-- begin-user-doc --> | 866 | * <!-- end-user-doc --> |
867 | * <!-- end-user-doc --> | 867 | * @generated |
868 | * @generated | 868 | * @ordered |
869 | * @ordered | 869 | */ |
870 | */ | 870 | int LANE_VERTICAL__REFERENCE_COORD = LANE__REFERENCE_COORD; |
871 | int VEHICLE__DIST_NEAR = ACTOR__DIST_NEAR; | 871 | |
872 | 872 | /** | |
873 | /** | 873 | * The feature id for the '<em><b>Actors</b></em>' reference list. |
874 | * The feature id for the '<em><b>Dist med</b></em>' reference list. | 874 | * <!-- begin-user-doc --> |
875 | * <!-- begin-user-doc --> | 875 | * <!-- end-user-doc --> |
876 | * <!-- end-user-doc --> | 876 | * @generated |
877 | * @generated | 877 | * @ordered |
878 | * @ordered | 878 | */ |
879 | */ | 879 | int LANE_VERTICAL__ACTORS = LANE__ACTORS; |
880 | int VEHICLE__DIST_MED = ACTOR__DIST_MED; | 880 | |
881 | 881 | /** | |
882 | /** | 882 | * The number of structural features of the '<em>Lane Vertical</em>' class. |
883 | * The feature id for the '<em><b>Dist far</b></em>' reference list. | 883 | * <!-- begin-user-doc --> |
884 | * <!-- begin-user-doc --> | 884 | * <!-- end-user-doc --> |
885 | * <!-- end-user-doc --> | 885 | * @generated |
886 | * @generated | 886 | * @ordered |
887 | * @ordered | 887 | */ |
888 | */ | 888 | int LANE_VERTICAL_FEATURE_COUNT = LANE_FEATURE_COUNT + 0; |
889 | int VEHICLE__DIST_FAR = ACTOR__DIST_FAR; | 889 | |
890 | 890 | /** | |
891 | /** | 891 | * The number of operations of the '<em>Lane Vertical</em>' class. |
892 | * The number of structural features of the '<em>Vehicle</em>' class. | 892 | * <!-- begin-user-doc --> |
893 | * <!-- begin-user-doc --> | 893 | * <!-- end-user-doc --> |
894 | * <!-- end-user-doc --> | 894 | * @generated |
895 | * @generated | 895 | * @ordered |
896 | * @ordered | 896 | */ |
897 | */ | 897 | int LANE_VERTICAL_OPERATION_COUNT = LANE_OPERATION_COUNT + 0; |
898 | int VEHICLE_FEATURE_COUNT = ACTOR_FEATURE_COUNT + 0; | 898 | |
899 | 899 | ||
900 | /** | 900 | /** |
901 | * The number of operations of the '<em>Vehicle</em>' class. | 901 | * Returns the meta object for class '{@link crossingScenario.CrossingScenario <em>Crossing Scenario</em>}'. |
902 | * <!-- begin-user-doc --> | 902 | * <!-- begin-user-doc --> |
903 | * <!-- end-user-doc --> | 903 | * <!-- end-user-doc --> |
904 | * @generated | 904 | * @return the meta object for class '<em>Crossing Scenario</em>'. |
905 | * @ordered | 905 | * @see crossingScenario.CrossingScenario |
906 | */ | 906 | * @generated |
907 | int VEHICLE_OPERATION_COUNT = ACTOR_OPERATION_COUNT + 0; | 907 | */ |
908 | 908 | EClass getCrossingScenario(); | |
909 | /** | 909 | |
910 | * The meta object id for the '{@link crossingScenario.impl.Lane_HorizontalImpl <em>Lane Horizontal</em>}' class. | 910 | /** |
911 | * <!-- begin-user-doc --> | 911 | * Returns the meta object for the attribute '{@link crossingScenario.CrossingScenario#getXSize <em>XSize</em>}'. |
912 | * <!-- end-user-doc --> | 912 | * <!-- begin-user-doc --> |
913 | * @see crossingScenario.impl.Lane_HorizontalImpl | 913 | * <!-- end-user-doc --> |
914 | * @see crossingScenario.impl.CrossingScenarioPackageImpl#getLane_Horizontal() | 914 | * @return the meta object for the attribute '<em>XSize</em>'. |
915 | * @generated | 915 | * @see crossingScenario.CrossingScenario#getXSize() |
916 | */ | 916 | * @see #getCrossingScenario() |
917 | int LANE_HORIZONTAL = 12; | 917 | * @generated |
918 | 918 | */ | |
919 | /** | 919 | EAttribute getCrossingScenario_XSize(); |
920 | * The feature id for the '<em><b>Reference Coord</b></em>' attribute. | 920 | |
921 | * <!-- begin-user-doc --> | 921 | /** |
922 | * <!-- end-user-doc --> | 922 | * Returns the meta object for the attribute '{@link crossingScenario.CrossingScenario#getYSize <em>YSize</em>}'. |
923 | * @generated | 923 | * <!-- begin-user-doc --> |
924 | * @ordered | 924 | * <!-- end-user-doc --> |
925 | */ | 925 | * @return the meta object for the attribute '<em>YSize</em>'. |
926 | int LANE_HORIZONTAL__REFERENCE_COORD = LANE__REFERENCE_COORD; | 926 | * @see crossingScenario.CrossingScenario#getYSize() |
927 | 927 | * @see #getCrossingScenario() | |
928 | /** | 928 | * @generated |
929 | * The feature id for the '<em><b>Actors</b></em>' reference list. | 929 | */ |
930 | * <!-- begin-user-doc --> | 930 | EAttribute getCrossingScenario_YSize(); |
931 | * <!-- end-user-doc --> | 931 | |
932 | * @generated | 932 | /** |
933 | * @ordered | 933 | * Returns the meta object for the containment reference list '{@link crossingScenario.CrossingScenario#getActors <em>Actors</em>}'. |
934 | */ | 934 | * <!-- begin-user-doc --> |
935 | int LANE_HORIZONTAL__ACTORS = LANE__ACTORS; | 935 | * <!-- end-user-doc --> |
936 | 936 | * @return the meta object for the containment reference list '<em>Actors</em>'. | |
937 | /** | 937 | * @see crossingScenario.CrossingScenario#getActors() |
938 | * The number of structural features of the '<em>Lane Horizontal</em>' class. | 938 | * @see #getCrossingScenario() |
939 | * <!-- begin-user-doc --> | 939 | * @generated |
940 | * <!-- end-user-doc --> | 940 | */ |
941 | * @generated | 941 | EReference getCrossingScenario_Actors(); |
942 | * @ordered | 942 | |
943 | */ | 943 | /** |
944 | int LANE_HORIZONTAL_FEATURE_COUNT = LANE_FEATURE_COUNT + 0; | 944 | * Returns the meta object for the containment reference list '{@link crossingScenario.CrossingScenario#getLanes <em>Lanes</em>}'. |
945 | 945 | * <!-- begin-user-doc --> | |
946 | /** | 946 | * <!-- end-user-doc --> |
947 | * The number of operations of the '<em>Lane Horizontal</em>' class. | 947 | * @return the meta object for the containment reference list '<em>Lanes</em>'. |
948 | * <!-- begin-user-doc --> | 948 | * @see crossingScenario.CrossingScenario#getLanes() |
949 | * <!-- end-user-doc --> | 949 | * @see #getCrossingScenario() |
950 | * @generated | 950 | * @generated |
951 | * @ordered | 951 | */ |
952 | */ | 952 | EReference getCrossingScenario_Lanes(); |
953 | int LANE_HORIZONTAL_OPERATION_COUNT = LANE_OPERATION_COUNT + 0; | 953 | |
954 | 954 | /** | |
955 | /** | 955 | * Returns the meta object for the attribute '{@link crossingScenario.CrossingScenario#getMaxTime <em>Max Time</em>}'. |
956 | * The meta object id for the '{@link crossingScenario.impl.Lane_VerticalImpl <em>Lane Vertical</em>}' class. | 956 | * <!-- begin-user-doc --> |
957 | * <!-- begin-user-doc --> | 957 | * <!-- end-user-doc --> |
958 | * <!-- end-user-doc --> | 958 | * @return the meta object for the attribute '<em>Max Time</em>'. |
959 | * @see crossingScenario.impl.Lane_VerticalImpl | 959 | * @see crossingScenario.CrossingScenario#getMaxTime() |
960 | * @see crossingScenario.impl.CrossingScenarioPackageImpl#getLane_Vertical() | 960 | * @see #getCrossingScenario() |
961 | * @generated | 961 | * @generated |
962 | */ | 962 | */ |
963 | int LANE_VERTICAL = 13; | 963 | EAttribute getCrossingScenario_MaxTime(); |
964 | 964 | ||
965 | /** | 965 | /** |
966 | * The feature id for the '<em><b>Reference Coord</b></em>' attribute. | 966 | * Returns the meta object for the containment reference list '{@link crossingScenario.CrossingScenario#getRelations <em>Relations</em>}'. |
967 | * <!-- begin-user-doc --> | 967 | * <!-- begin-user-doc --> |
968 | * <!-- end-user-doc --> | 968 | * <!-- end-user-doc --> |
969 | * @generated | 969 | * @return the meta object for the containment reference list '<em>Relations</em>'. |
970 | * @ordered | 970 | * @see crossingScenario.CrossingScenario#getRelations() |
971 | */ | 971 | * @see #getCrossingScenario() |
972 | int LANE_VERTICAL__REFERENCE_COORD = LANE__REFERENCE_COORD; | 972 | * @generated |
973 | 973 | */ | |
974 | /** | 974 | EReference getCrossingScenario_Relations(); |
975 | * The feature id for the '<em><b>Actors</b></em>' reference list. | 975 | |
976 | * <!-- begin-user-doc --> | 976 | /** |
977 | * <!-- end-user-doc --> | 977 | * Returns the meta object for the attribute '{@link crossingScenario.CrossingScenario#getMaxXSpeed <em>Max XSpeed</em>}'. |
978 | * @generated | 978 | * <!-- begin-user-doc --> |
979 | * @ordered | 979 | * <!-- end-user-doc --> |
980 | */ | 980 | * @return the meta object for the attribute '<em>Max XSpeed</em>'. |
981 | int LANE_VERTICAL__ACTORS = LANE__ACTORS; | 981 | * @see crossingScenario.CrossingScenario#getMaxXSpeed() |
982 | 982 | * @see #getCrossingScenario() | |
983 | /** | 983 | * @generated |
984 | * The number of structural features of the '<em>Lane Vertical</em>' class. | 984 | */ |
985 | * <!-- begin-user-doc --> | 985 | EAttribute getCrossingScenario_MaxXSpeed(); |
986 | * <!-- end-user-doc --> | 986 | |
987 | * @generated | 987 | /** |
988 | * @ordered | 988 | * Returns the meta object for the attribute '{@link crossingScenario.CrossingScenario#getMaxYSpeed <em>Max YSpeed</em>}'. |
989 | */ | 989 | * <!-- begin-user-doc --> |
990 | int LANE_VERTICAL_FEATURE_COUNT = LANE_FEATURE_COUNT + 0; | 990 | * <!-- end-user-doc --> |
991 | 991 | * @return the meta object for the attribute '<em>Max YSpeed</em>'. | |
992 | /** | 992 | * @see crossingScenario.CrossingScenario#getMaxYSpeed() |
993 | * The number of operations of the '<em>Lane Vertical</em>' class. | 993 | * @see #getCrossingScenario() |
994 | * <!-- begin-user-doc --> | 994 | * @generated |
995 | * <!-- end-user-doc --> | 995 | */ |
996 | * @generated | 996 | EAttribute getCrossingScenario_MaxYSpeed(); |
997 | * @ordered | 997 | |
998 | */ | 998 | /** |
999 | int LANE_VERTICAL_OPERATION_COUNT = LANE_OPERATION_COUNT + 0; | 999 | * Returns the meta object for class '{@link crossingScenario.Lane <em>Lane</em>}'. |
1000 | 1000 | * <!-- begin-user-doc --> | |
1001 | /** | 1001 | * <!-- end-user-doc --> |
1002 | * The meta object id for the '{@link crossingScenario.Distance <em>Distance</em>}' enum. | 1002 | * @return the meta object for class '<em>Lane</em>'. |
1003 | * <!-- begin-user-doc --> | 1003 | * @see crossingScenario.Lane |
1004 | * <!-- end-user-doc --> | 1004 | * @generated |
1005 | * @see crossingScenario.Distance | 1005 | */ |
1006 | * @see crossingScenario.impl.CrossingScenarioPackageImpl#getDistance() | 1006 | EClass getLane(); |
1007 | * @generated | 1007 | |
1008 | */ | 1008 | /** |
1009 | int DISTANCE = 14; | 1009 | * Returns the meta object for the attribute '{@link crossingScenario.Lane#getReferenceCoord <em>Reference Coord</em>}'. |
1010 | 1010 | * <!-- begin-user-doc --> | |
1011 | 1011 | * <!-- end-user-doc --> | |
1012 | /** | 1012 | * @return the meta object for the attribute '<em>Reference Coord</em>'. |
1013 | * Returns the meta object for class '{@link crossingScenario.CrossingScenario <em>Crossing Scenario</em>}'. | 1013 | * @see crossingScenario.Lane#getReferenceCoord() |
1014 | * <!-- begin-user-doc --> | 1014 | * @see #getLane() |
1015 | * <!-- end-user-doc --> | 1015 | * @generated |
1016 | * @return the meta object for class '<em>Crossing Scenario</em>'. | 1016 | */ |
1017 | * @see crossingScenario.CrossingScenario | 1017 | EAttribute getLane_ReferenceCoord(); |
1018 | * @generated | 1018 | |
1019 | */ | 1019 | /** |
1020 | EClass getCrossingScenario(); | 1020 | * Returns the meta object for the reference list '{@link crossingScenario.Lane#getActors <em>Actors</em>}'. |
1021 | 1021 | * <!-- begin-user-doc --> | |
1022 | /** | 1022 | * <!-- end-user-doc --> |
1023 | * Returns the meta object for the attribute '{@link crossingScenario.CrossingScenario#getXSize <em>XSize</em>}'. | 1023 | * @return the meta object for the reference list '<em>Actors</em>'. |
1024 | * <!-- begin-user-doc --> | 1024 | * @see crossingScenario.Lane#getActors() |
1025 | * <!-- end-user-doc --> | 1025 | * @see #getLane() |
1026 | * @return the meta object for the attribute '<em>XSize</em>'. | 1026 | * @generated |
1027 | * @see crossingScenario.CrossingScenario#getXSize() | 1027 | */ |
1028 | * @see #getCrossingScenario() | 1028 | EReference getLane_Actors(); |
1029 | * @generated | 1029 | |
1030 | */ | 1030 | /** |
1031 | EAttribute getCrossingScenario_XSize(); | 1031 | * Returns the meta object for class '{@link crossingScenario.Actor <em>Actor</em>}'. |
1032 | 1032 | * <!-- begin-user-doc --> | |
1033 | /** | 1033 | * <!-- end-user-doc --> |
1034 | * Returns the meta object for the attribute '{@link crossingScenario.CrossingScenario#getYSize <em>YSize</em>}'. | 1034 | * @return the meta object for class '<em>Actor</em>'. |
1035 | * <!-- begin-user-doc --> | 1035 | * @see crossingScenario.Actor |
1036 | * <!-- end-user-doc --> | 1036 | * @generated |
1037 | * @return the meta object for the attribute '<em>YSize</em>'. | 1037 | */ |
1038 | * @see crossingScenario.CrossingScenario#getYSize() | 1038 | EClass getActor(); |
1039 | * @see #getCrossingScenario() | 1039 | |
1040 | * @generated | 1040 | /** |
1041 | */ | 1041 | * Returns the meta object for the attribute '{@link crossingScenario.Actor#getXPos <em>XPos</em>}'. |
1042 | EAttribute getCrossingScenario_YSize(); | 1042 | * <!-- begin-user-doc --> |
1043 | 1043 | * <!-- end-user-doc --> | |
1044 | /** | 1044 | * @return the meta object for the attribute '<em>XPos</em>'. |
1045 | * Returns the meta object for the containment reference list '{@link crossingScenario.CrossingScenario#getActors <em>Actors</em>}'. | 1045 | * @see crossingScenario.Actor#getXPos() |
1046 | * <!-- begin-user-doc --> | 1046 | * @see #getActor() |
1047 | * <!-- end-user-doc --> | 1047 | * @generated |
1048 | * @return the meta object for the containment reference list '<em>Actors</em>'. | 1048 | */ |
1049 | * @see crossingScenario.CrossingScenario#getActors() | 1049 | EAttribute getActor_XPos(); |
1050 | * @see #getCrossingScenario() | 1050 | |
1051 | * @generated | 1051 | /** |
1052 | */ | 1052 | * Returns the meta object for the attribute '{@link crossingScenario.Actor#getYPos <em>YPos</em>}'. |
1053 | EReference getCrossingScenario_Actors(); | 1053 | * <!-- begin-user-doc --> |
1054 | 1054 | * <!-- end-user-doc --> | |
1055 | /** | 1055 | * @return the meta object for the attribute '<em>YPos</em>'. |
1056 | * Returns the meta object for the containment reference list '{@link crossingScenario.CrossingScenario#getLanes <em>Lanes</em>}'. | 1056 | * @see crossingScenario.Actor#getYPos() |
1057 | * <!-- begin-user-doc --> | 1057 | * @see #getActor() |
1058 | * <!-- end-user-doc --> | 1058 | * @generated |
1059 | * @return the meta object for the containment reference list '<em>Lanes</em>'. | 1059 | */ |
1060 | * @see crossingScenario.CrossingScenario#getLanes() | 1060 | EAttribute getActor_YPos(); |
1061 | * @see #getCrossingScenario() | 1061 | |
1062 | * @generated | 1062 | /** |
1063 | */ | 1063 | * Returns the meta object for the attribute '{@link crossingScenario.Actor#getLength <em>Length</em>}'. |
1064 | EReference getCrossingScenario_Lanes(); | 1064 | * <!-- begin-user-doc --> |
1065 | 1065 | * <!-- end-user-doc --> | |
1066 | /** | 1066 | * @return the meta object for the attribute '<em>Length</em>'. |
1067 | * Returns the meta object for the attribute '{@link crossingScenario.CrossingScenario#getMaxTime <em>Max Time</em>}'. | 1067 | * @see crossingScenario.Actor#getLength() |
1068 | * <!-- begin-user-doc --> | 1068 | * @see #getActor() |
1069 | * <!-- end-user-doc --> | 1069 | * @generated |
1070 | * @return the meta object for the attribute '<em>Max Time</em>'. | 1070 | */ |
1071 | * @see crossingScenario.CrossingScenario#getMaxTime() | 1071 | EAttribute getActor_Length(); |
1072 | * @see #getCrossingScenario() | 1072 | |
1073 | * @generated | 1073 | /** |
1074 | */ | 1074 | * Returns the meta object for the attribute '{@link crossingScenario.Actor#getWidth <em>Width</em>}'. |
1075 | EAttribute getCrossingScenario_MaxTime(); | 1075 | * <!-- begin-user-doc --> |
1076 | 1076 | * <!-- end-user-doc --> | |
1077 | /** | 1077 | * @return the meta object for the attribute '<em>Width</em>'. |
1078 | * Returns the meta object for the containment reference list '{@link crossingScenario.CrossingScenario#getRelations <em>Relations</em>}'. | 1078 | * @see crossingScenario.Actor#getWidth() |
1079 | * <!-- begin-user-doc --> | 1079 | * @see #getActor() |
1080 | * <!-- end-user-doc --> | 1080 | * @generated |
1081 | * @return the meta object for the containment reference list '<em>Relations</em>'. | 1081 | */ |
1082 | * @see crossingScenario.CrossingScenario#getRelations() | 1082 | EAttribute getActor_Width(); |
1083 | * @see #getCrossingScenario() | 1083 | |
1084 | * @generated | 1084 | /** |
1085 | */ | 1085 | * Returns the meta object for the attribute '{@link crossingScenario.Actor#getXSpeed <em>XSpeed</em>}'. |
1086 | EReference getCrossingScenario_Relations(); | 1086 | * <!-- begin-user-doc --> |
1087 | 1087 | * <!-- end-user-doc --> | |
1088 | /** | 1088 | * @return the meta object for the attribute '<em>XSpeed</em>'. |
1089 | * Returns the meta object for the attribute '{@link crossingScenario.CrossingScenario#getMaxXSpeed <em>Max XSpeed</em>}'. | 1089 | * @see crossingScenario.Actor#getXSpeed() |
1090 | * <!-- begin-user-doc --> | 1090 | * @see #getActor() |
1091 | * <!-- end-user-doc --> | 1091 | * @generated |
1092 | * @return the meta object for the attribute '<em>Max XSpeed</em>'. | 1092 | */ |
1093 | * @see crossingScenario.CrossingScenario#getMaxXSpeed() | 1093 | EAttribute getActor_XSpeed(); |
1094 | * @see #getCrossingScenario() | 1094 | |
1095 | * @generated | 1095 | /** |
1096 | */ | 1096 | * Returns the meta object for the reference '{@link crossingScenario.Actor#getPlacedOn <em>Placed On</em>}'. |
1097 | EAttribute getCrossingScenario_MaxXSpeed(); | 1097 | * <!-- begin-user-doc --> |
1098 | 1098 | * <!-- end-user-doc --> | |
1099 | /** | 1099 | * @return the meta object for the reference '<em>Placed On</em>'. |
1100 | * Returns the meta object for the attribute '{@link crossingScenario.CrossingScenario#getMaxYSpeed <em>Max YSpeed</em>}'. | 1100 | * @see crossingScenario.Actor#getPlacedOn() |
1101 | * <!-- begin-user-doc --> | 1101 | * @see #getActor() |
1102 | * <!-- end-user-doc --> | 1102 | * @generated |
1103 | * @return the meta object for the attribute '<em>Max YSpeed</em>'. | 1103 | */ |
1104 | * @see crossingScenario.CrossingScenario#getMaxYSpeed() | 1104 | EReference getActor_PlacedOn(); |
1105 | * @see #getCrossingScenario() | 1105 | |
1106 | * @generated | 1106 | /** |
1107 | */ | 1107 | * Returns the meta object for the attribute '{@link crossingScenario.Actor#getYSpeed <em>YSpeed</em>}'. |
1108 | EAttribute getCrossingScenario_MaxYSpeed(); | 1108 | * <!-- begin-user-doc --> |
1109 | 1109 | * <!-- end-user-doc --> | |
1110 | /** | 1110 | * @return the meta object for the attribute '<em>YSpeed</em>'. |
1111 | * Returns the meta object for class '{@link crossingScenario.Lane <em>Lane</em>}'. | 1111 | * @see crossingScenario.Actor#getYSpeed() |
1112 | * <!-- begin-user-doc --> | 1112 | * @see #getActor() |
1113 | * <!-- end-user-doc --> | 1113 | * @generated |
1114 | * @return the meta object for class '<em>Lane</em>'. | 1114 | */ |
1115 | * @see crossingScenario.Lane | 1115 | EAttribute getActor_YSpeed(); |
1116 | * @generated | 1116 | |
1117 | */ | 1117 | /** |
1118 | EClass getLane(); | 1118 | * Returns the meta object for the reference list '{@link crossingScenario.Actor#getDist_near <em>Dist near</em>}'. |
1119 | 1119 | * <!-- begin-user-doc --> | |
1120 | /** | 1120 | * <!-- end-user-doc --> |
1121 | * Returns the meta object for the attribute '{@link crossingScenario.Lane#getReferenceCoord <em>Reference Coord</em>}'. | 1121 | * @return the meta object for the reference list '<em>Dist near</em>'. |
1122 | * <!-- begin-user-doc --> | 1122 | * @see crossingScenario.Actor#getDist_near() |
1123 | * <!-- end-user-doc --> | 1123 | * @see #getActor() |
1124 | * @return the meta object for the attribute '<em>Reference Coord</em>'. | 1124 | * @generated |
1125 | * @see crossingScenario.Lane#getReferenceCoord() | 1125 | */ |
1126 | * @see #getLane() | 1126 | EReference getActor_Dist_near(); |
1127 | * @generated | 1127 | |
1128 | */ | 1128 | /** |
1129 | EAttribute getLane_ReferenceCoord(); | 1129 | * Returns the meta object for the reference list '{@link crossingScenario.Actor#getDist_med <em>Dist med</em>}'. |
1130 | 1130 | * <!-- begin-user-doc --> | |
1131 | /** | 1131 | * <!-- end-user-doc --> |
1132 | * Returns the meta object for the reference list '{@link crossingScenario.Lane#getActors <em>Actors</em>}'. | 1132 | * @return the meta object for the reference list '<em>Dist med</em>'. |
1133 | * <!-- begin-user-doc --> | 1133 | * @see crossingScenario.Actor#getDist_med() |
1134 | * <!-- end-user-doc --> | 1134 | * @see #getActor() |
1135 | * @return the meta object for the reference list '<em>Actors</em>'. | 1135 | * @generated |
1136 | * @see crossingScenario.Lane#getActors() | 1136 | */ |
1137 | * @see #getLane() | 1137 | EReference getActor_Dist_med(); |
1138 | * @generated | 1138 | |
1139 | */ | 1139 | /** |
1140 | EReference getLane_Actors(); | 1140 | * Returns the meta object for the reference list '{@link crossingScenario.Actor#getDist_far <em>Dist far</em>}'. |
1141 | 1141 | * <!-- begin-user-doc --> | |
1142 | /** | 1142 | * <!-- end-user-doc --> |
1143 | * Returns the meta object for class '{@link crossingScenario.Actor <em>Actor</em>}'. | 1143 | * @return the meta object for the reference list '<em>Dist far</em>'. |
1144 | * <!-- begin-user-doc --> | 1144 | * @see crossingScenario.Actor#getDist_far() |
1145 | * <!-- end-user-doc --> | 1145 | * @see #getActor() |
1146 | * @return the meta object for class '<em>Actor</em>'. | 1146 | * @generated |
1147 | * @see crossingScenario.Actor | 1147 | */ |
1148 | * @generated | 1148 | EReference getActor_Dist_far(); |
1149 | */ | 1149 | |
1150 | EClass getActor(); | 1150 | /** |
1151 | 1151 | * Returns the meta object for class '{@link crossingScenario.Relation <em>Relation</em>}'. | |
1152 | /** | 1152 | * <!-- begin-user-doc --> |
1153 | * Returns the meta object for the attribute '{@link crossingScenario.Actor#getXPos <em>XPos</em>}'. | 1153 | * <!-- end-user-doc --> |
1154 | * <!-- begin-user-doc --> | 1154 | * @return the meta object for class '<em>Relation</em>'. |
1155 | * <!-- end-user-doc --> | 1155 | * @see crossingScenario.Relation |
1156 | * @return the meta object for the attribute '<em>XPos</em>'. | 1156 | * @generated |
1157 | * @see crossingScenario.Actor#getXPos() | 1157 | */ |
1158 | * @see #getActor() | 1158 | EClass getRelation(); |
1159 | * @generated | 1159 | |
1160 | */ | 1160 | /** |
1161 | EAttribute getActor_XPos(); | 1161 | * Returns the meta object for the reference '{@link crossingScenario.Relation#getTarget <em>Target</em>}'. |
1162 | 1162 | * <!-- begin-user-doc --> | |
1163 | /** | 1163 | * <!-- end-user-doc --> |
1164 | * Returns the meta object for the attribute '{@link crossingScenario.Actor#getYPos <em>YPos</em>}'. | 1164 | * @return the meta object for the reference '<em>Target</em>'. |
1165 | * <!-- begin-user-doc --> | 1165 | * @see crossingScenario.Relation#getTarget() |
1166 | * <!-- end-user-doc --> | 1166 | * @see #getRelation() |
1167 | * @return the meta object for the attribute '<em>YPos</em>'. | 1167 | * @generated |
1168 | * @see crossingScenario.Actor#getYPos() | 1168 | */ |
1169 | * @see #getActor() | 1169 | EReference getRelation_Target(); |
1170 | * @generated | 1170 | |
1171 | */ | 1171 | /** |
1172 | EAttribute getActor_YPos(); | 1172 | * Returns the meta object for the reference '{@link crossingScenario.Relation#getSource <em>Source</em>}'. |
1173 | 1173 | * <!-- begin-user-doc --> | |
1174 | /** | 1174 | * <!-- end-user-doc --> |
1175 | * Returns the meta object for the attribute '{@link crossingScenario.Actor#getLength <em>Length</em>}'. | 1175 | * @return the meta object for the reference '<em>Source</em>'. |
1176 | * <!-- begin-user-doc --> | 1176 | * @see crossingScenario.Relation#getSource() |
1177 | * <!-- end-user-doc --> | 1177 | * @see #getRelation() |
1178 | * @return the meta object for the attribute '<em>Length</em>'. | 1178 | * @generated |
1179 | * @see crossingScenario.Actor#getLength() | 1179 | */ |
1180 | * @see #getActor() | 1180 | EReference getRelation_Source(); |
1181 | * @generated | 1181 | |
1182 | */ | 1182 | /** |
1183 | EAttribute getActor_Length(); | 1183 | * Returns the meta object for class '{@link crossingScenario.SpatialRelation <em>Spatial Relation</em>}'. |
1184 | 1184 | * <!-- begin-user-doc --> | |
1185 | /** | 1185 | * <!-- end-user-doc --> |
1186 | * Returns the meta object for the attribute '{@link crossingScenario.Actor#getWidth <em>Width</em>}'. | 1186 | * @return the meta object for class '<em>Spatial Relation</em>'. |
1187 | * <!-- begin-user-doc --> | 1187 | * @see crossingScenario.SpatialRelation |
1188 | * <!-- end-user-doc --> | 1188 | * @generated |
1189 | * @return the meta object for the attribute '<em>Width</em>'. | 1189 | */ |
1190 | * @see crossingScenario.Actor#getWidth() | 1190 | EClass getSpatialRelation(); |
1191 | * @see #getActor() | 1191 | |
1192 | * @generated | 1192 | /** |
1193 | */ | 1193 | * Returns the meta object for class '{@link crossingScenario.TemporalRelation <em>Temporal Relation</em>}'. |
1194 | EAttribute getActor_Width(); | 1194 | * <!-- begin-user-doc --> |
1195 | 1195 | * <!-- end-user-doc --> | |
1196 | /** | 1196 | * @return the meta object for class '<em>Temporal Relation</em>'. |
1197 | * Returns the meta object for the attribute '{@link crossingScenario.Actor#getXSpeed <em>XSpeed</em>}'. | 1197 | * @see crossingScenario.TemporalRelation |
1198 | * <!-- begin-user-doc --> | 1198 | * @generated |
1199 | * <!-- end-user-doc --> | 1199 | */ |
1200 | * @return the meta object for the attribute '<em>XSpeed</em>'. | 1200 | EClass getTemporalRelation(); |
1201 | * @see crossingScenario.Actor#getXSpeed() | 1201 | |
1202 | * @see #getActor() | 1202 | /** |
1203 | * @generated | 1203 | * Returns the meta object for class '{@link crossingScenario.VisionBlocked <em>Vision Blocked</em>}'. |
1204 | */ | 1204 | * <!-- begin-user-doc --> |
1205 | EAttribute getActor_XSpeed(); | 1205 | * <!-- end-user-doc --> |
1206 | 1206 | * @return the meta object for class '<em>Vision Blocked</em>'. | |
1207 | /** | 1207 | * @see crossingScenario.VisionBlocked |
1208 | * Returns the meta object for the reference '{@link crossingScenario.Actor#getPlacedOn <em>Placed On</em>}'. | 1208 | * @generated |
1209 | * <!-- begin-user-doc --> | 1209 | */ |
1210 | * <!-- end-user-doc --> | 1210 | EClass getVisionBlocked(); |
1211 | * @return the meta object for the reference '<em>Placed On</em>'. | 1211 | |
1212 | * @see crossingScenario.Actor#getPlacedOn() | 1212 | /** |
1213 | * @see #getActor() | 1213 | * Returns the meta object for the reference '{@link crossingScenario.VisionBlocked#getBlockedBy <em>Blocked By</em>}'. |
1214 | * @generated | 1214 | * <!-- begin-user-doc --> |
1215 | */ | 1215 | * <!-- end-user-doc --> |
1216 | EReference getActor_PlacedOn(); | 1216 | * @return the meta object for the reference '<em>Blocked By</em>'. |
1217 | 1217 | * @see crossingScenario.VisionBlocked#getBlockedBy() | |
1218 | /** | 1218 | * @see #getVisionBlocked() |
1219 | * Returns the meta object for the attribute '{@link crossingScenario.Actor#getYSpeed <em>YSpeed</em>}'. | 1219 | * @generated |
1220 | * <!-- begin-user-doc --> | 1220 | */ |
1221 | * <!-- end-user-doc --> | 1221 | EReference getVisionBlocked_BlockedBy(); |
1222 | * @return the meta object for the attribute '<em>YSpeed</em>'. | 1222 | |
1223 | * @see crossingScenario.Actor#getYSpeed() | 1223 | /** |
1224 | * @see #getActor() | 1224 | * Returns the meta object for class '{@link crossingScenario.CollisionExists <em>Collision Exists</em>}'. |
1225 | * @generated | 1225 | * <!-- begin-user-doc --> |
1226 | */ | 1226 | * <!-- end-user-doc --> |
1227 | EAttribute getActor_YSpeed(); | 1227 | * @return the meta object for class '<em>Collision Exists</em>'. |
1228 | 1228 | * @see crossingScenario.CollisionExists | |
1229 | /** | 1229 | * @generated |
1230 | * Returns the meta object for the reference list '{@link crossingScenario.Actor#getDist_near <em>Dist near</em>}'. | 1230 | */ |
1231 | * <!-- begin-user-doc --> | 1231 | EClass getCollisionExists(); |
1232 | * <!-- end-user-doc --> | 1232 | |
1233 | * @return the meta object for the reference list '<em>Dist near</em>'. | 1233 | /** |
1234 | * @see crossingScenario.Actor#getDist_near() | 1234 | * Returns the meta object for the attribute '{@link crossingScenario.CollisionExists#getCollisionTime <em>Collision Time</em>}'. |
1235 | * @see #getActor() | 1235 | * <!-- begin-user-doc --> |
1236 | * @generated | 1236 | * <!-- end-user-doc --> |
1237 | */ | 1237 | * @return the meta object for the attribute '<em>Collision Time</em>'. |
1238 | EReference getActor_Dist_near(); | 1238 | * @see crossingScenario.CollisionExists#getCollisionTime() |
1239 | 1239 | * @see #getCollisionExists() | |
1240 | /** | 1240 | * @generated |
1241 | * Returns the meta object for the reference list '{@link crossingScenario.Actor#getDist_med <em>Dist med</em>}'. | 1241 | */ |
1242 | * <!-- begin-user-doc --> | 1242 | EAttribute getCollisionExists_CollisionTime(); |
1243 | * <!-- end-user-doc --> | 1243 | |
1244 | * @return the meta object for the reference list '<em>Dist med</em>'. | 1244 | /** |
1245 | * @see crossingScenario.Actor#getDist_med() | 1245 | * Returns the meta object for class '{@link crossingScenario.Pedestrian <em>Pedestrian</em>}'. |
1246 | * @see #getActor() | 1246 | * <!-- begin-user-doc --> |
1247 | * @generated | 1247 | * <!-- end-user-doc --> |
1248 | */ | 1248 | * @return the meta object for class '<em>Pedestrian</em>'. |
1249 | EReference getActor_Dist_med(); | 1249 | * @see crossingScenario.Pedestrian |
1250 | 1250 | * @generated | |
1251 | /** | 1251 | */ |
1252 | * Returns the meta object for the reference list '{@link crossingScenario.Actor#getDist_far <em>Dist far</em>}'. | 1252 | EClass getPedestrian(); |
1253 | * <!-- begin-user-doc --> | 1253 | |
1254 | * <!-- end-user-doc --> | 1254 | /** |
1255 | * @return the meta object for the reference list '<em>Dist far</em>'. | 1255 | * Returns the meta object for class '{@link crossingScenario.Vehicle <em>Vehicle</em>}'. |
1256 | * @see crossingScenario.Actor#getDist_far() | 1256 | * <!-- begin-user-doc --> |
1257 | * @see #getActor() | 1257 | * <!-- end-user-doc --> |
1258 | * @generated | 1258 | * @return the meta object for class '<em>Vehicle</em>'. |
1259 | */ | 1259 | * @see crossingScenario.Vehicle |
1260 | EReference getActor_Dist_far(); | 1260 | * @generated |
1261 | 1261 | */ | |
1262 | /** | 1262 | EClass getVehicle(); |
1263 | * Returns the meta object for class '{@link crossingScenario.Relation <em>Relation</em>}'. | 1263 | |
1264 | * <!-- begin-user-doc --> | 1264 | /** |
1265 | * <!-- end-user-doc --> | 1265 | * Returns the meta object for class '{@link crossingScenario.Lane_Horizontal <em>Lane Horizontal</em>}'. |
1266 | * @return the meta object for class '<em>Relation</em>'. | 1266 | * <!-- begin-user-doc --> |
1267 | * @see crossingScenario.Relation | 1267 | * <!-- end-user-doc --> |
1268 | * @generated | 1268 | * @return the meta object for class '<em>Lane Horizontal</em>'. |
1269 | */ | 1269 | * @see crossingScenario.Lane_Horizontal |
1270 | EClass getRelation(); | 1270 | * @generated |
1271 | 1271 | */ | |
1272 | /** | 1272 | EClass getLane_Horizontal(); |
1273 | * Returns the meta object for the reference '{@link crossingScenario.Relation#getTarget <em>Target</em>}'. | 1273 | |
1274 | * <!-- begin-user-doc --> | 1274 | /** |
1275 | * <!-- end-user-doc --> | 1275 | * Returns the meta object for class '{@link crossingScenario.Lane_Vertical <em>Lane Vertical</em>}'. |
1276 | * @return the meta object for the reference '<em>Target</em>'. | 1276 | * <!-- begin-user-doc --> |
1277 | * @see crossingScenario.Relation#getTarget() | 1277 | * <!-- end-user-doc --> |
1278 | * @see #getRelation() | 1278 | * @return the meta object for class '<em>Lane Vertical</em>'. |
1279 | * @generated | 1279 | * @see crossingScenario.Lane_Vertical |
1280 | */ | 1280 | * @generated |
1281 | EReference getRelation_Target(); | 1281 | */ |
1282 | 1282 | EClass getLane_Vertical(); | |
1283 | /** | 1283 | |
1284 | * Returns the meta object for the reference '{@link crossingScenario.Relation#getSource <em>Source</em>}'. | 1284 | /** |
1285 | * <!-- begin-user-doc --> | 1285 | * Returns the factory that creates the instances of the model. |
1286 | * <!-- end-user-doc --> | 1286 | * <!-- begin-user-doc --> |
1287 | * @return the meta object for the reference '<em>Source</em>'. | 1287 | * <!-- end-user-doc --> |
1288 | * @see crossingScenario.Relation#getSource() | 1288 | * @return the factory that creates the instances of the model. |
1289 | * @see #getRelation() | 1289 | * @generated |
1290 | * @generated | 1290 | */ |
1291 | */ | 1291 | CrossingScenarioFactory getCrossingScenarioFactory(); |
1292 | EReference getRelation_Source(); | 1292 | |
1293 | 1293 | /** | |
1294 | /** | 1294 | * <!-- begin-user-doc --> |
1295 | * Returns the meta object for class '{@link crossingScenario.SpatialRelation <em>Spatial Relation</em>}'. | 1295 | * Defines literals for the meta objects that represent |
1296 | * <!-- begin-user-doc --> | 1296 | * <ul> |
1297 | * <!-- end-user-doc --> | 1297 | * <li>each class,</li> |
1298 | * @return the meta object for class '<em>Spatial Relation</em>'. | 1298 | * <li>each feature of each class,</li> |
1299 | * @see crossingScenario.SpatialRelation | 1299 | * <li>each operation of each class,</li> |
1300 | * @generated | 1300 | * <li>each enum,</li> |
1301 | */ | 1301 | * <li>and each data type</li> |
1302 | EClass getSpatialRelation(); | 1302 | * </ul> |
1303 | 1303 | * <!-- end-user-doc --> | |
1304 | /** | 1304 | * @generated |
1305 | * Returns the meta object for class '{@link crossingScenario.TemporalRelation <em>Temporal Relation</em>}'. | 1305 | */ |
1306 | * <!-- begin-user-doc --> | 1306 | interface Literals { |
1307 | * <!-- end-user-doc --> | 1307 | /** |
1308 | * @return the meta object for class '<em>Temporal Relation</em>'. | 1308 | * The meta object literal for the '{@link crossingScenario.impl.CrossingScenarioImpl <em>Crossing Scenario</em>}' class. |
1309 | * @see crossingScenario.TemporalRelation | 1309 | * <!-- begin-user-doc --> |
1310 | * @generated | 1310 | * <!-- end-user-doc --> |
1311 | */ | 1311 | * @see crossingScenario.impl.CrossingScenarioImpl |
1312 | EClass getTemporalRelation(); | 1312 | * @see crossingScenario.impl.CrossingScenarioPackageImpl#getCrossingScenario() |
1313 | 1313 | * @generated | |
1314 | /** | 1314 | */ |
1315 | * Returns the meta object for class '{@link crossingScenario.VisionBlocked <em>Vision Blocked</em>}'. | 1315 | EClass CROSSING_SCENARIO = eINSTANCE.getCrossingScenario(); |
1316 | * <!-- begin-user-doc --> | 1316 | |
1317 | * <!-- end-user-doc --> | 1317 | /** |
1318 | * @return the meta object for class '<em>Vision Blocked</em>'. | 1318 | * The meta object literal for the '<em><b>XSize</b></em>' attribute feature. |
1319 | * @see crossingScenario.VisionBlocked | 1319 | * <!-- begin-user-doc --> |
1320 | * @generated | 1320 | * <!-- end-user-doc --> |
1321 | */ | 1321 | * @generated |
1322 | EClass getVisionBlocked(); | 1322 | */ |
1323 | 1323 | EAttribute CROSSING_SCENARIO__XSIZE = eINSTANCE.getCrossingScenario_XSize(); | |
1324 | /** | 1324 | |
1325 | * Returns the meta object for the reference '{@link crossingScenario.VisionBlocked#getBlockedBy <em>Blocked By</em>}'. | 1325 | /** |
1326 | * <!-- begin-user-doc --> | 1326 | * The meta object literal for the '<em><b>YSize</b></em>' attribute feature. |
1327 | * <!-- end-user-doc --> | 1327 | * <!-- begin-user-doc --> |
1328 | * @return the meta object for the reference '<em>Blocked By</em>'. | 1328 | * <!-- end-user-doc --> |
1329 | * @see crossingScenario.VisionBlocked#getBlockedBy() | 1329 | * @generated |
1330 | * @see #getVisionBlocked() | 1330 | */ |
1331 | * @generated | 1331 | EAttribute CROSSING_SCENARIO__YSIZE = eINSTANCE.getCrossingScenario_YSize(); |
1332 | */ | 1332 | |
1333 | EReference getVisionBlocked_BlockedBy(); | 1333 | /** |
1334 | 1334 | * The meta object literal for the '<em><b>Actors</b></em>' containment reference list feature. | |
1335 | /** | 1335 | * <!-- begin-user-doc --> |
1336 | * Returns the meta object for class '{@link crossingScenario.SeparationDistance <em>Separation Distance</em>}'. | 1336 | * <!-- end-user-doc --> |
1337 | * <!-- begin-user-doc --> | 1337 | * @generated |
1338 | * <!-- end-user-doc --> | 1338 | */ |
1339 | * @return the meta object for class '<em>Separation Distance</em>'. | 1339 | EReference CROSSING_SCENARIO__ACTORS = eINSTANCE.getCrossingScenario_Actors(); |
1340 | * @see crossingScenario.SeparationDistance | 1340 | |
1341 | * @generated | 1341 | /** |
1342 | */ | 1342 | * The meta object literal for the '<em><b>Lanes</b></em>' containment reference list feature. |
1343 | EClass getSeparationDistance(); | 1343 | * <!-- begin-user-doc --> |
1344 | 1344 | * <!-- end-user-doc --> | |
1345 | /** | 1345 | * @generated |
1346 | * Returns the meta object for the attribute '{@link crossingScenario.SeparationDistance#getDistance <em>Distance</em>}'. | 1346 | */ |
1347 | * <!-- begin-user-doc --> | 1347 | EReference CROSSING_SCENARIO__LANES = eINSTANCE.getCrossingScenario_Lanes(); |
1348 | * <!-- end-user-doc --> | 1348 | |
1349 | * @return the meta object for the attribute '<em>Distance</em>'. | 1349 | /** |
1350 | * @see crossingScenario.SeparationDistance#getDistance() | 1350 | * The meta object literal for the '<em><b>Max Time</b></em>' attribute feature. |
1351 | * @see #getSeparationDistance() | 1351 | * <!-- begin-user-doc --> |
1352 | * @generated | 1352 | * <!-- end-user-doc --> |
1353 | */ | 1353 | * @generated |
1354 | EAttribute getSeparationDistance_Distance(); | 1354 | */ |
1355 | 1355 | EAttribute CROSSING_SCENARIO__MAX_TIME = eINSTANCE.getCrossingScenario_MaxTime(); | |
1356 | /** | 1356 | |
1357 | * Returns the meta object for class '{@link crossingScenario.CollisionExists <em>Collision Exists</em>}'. | 1357 | /** |
1358 | * <!-- begin-user-doc --> | 1358 | * The meta object literal for the '<em><b>Relations</b></em>' containment reference list feature. |
1359 | * <!-- end-user-doc --> | 1359 | * <!-- begin-user-doc --> |
1360 | * @return the meta object for class '<em>Collision Exists</em>'. | 1360 | * <!-- end-user-doc --> |
1361 | * @see crossingScenario.CollisionExists | 1361 | * @generated |
1362 | * @generated | 1362 | */ |
1363 | */ | 1363 | EReference CROSSING_SCENARIO__RELATIONS = eINSTANCE.getCrossingScenario_Relations(); |
1364 | EClass getCollisionExists(); | 1364 | |
1365 | 1365 | /** | |
1366 | /** | 1366 | * The meta object literal for the '<em><b>Max XSpeed</b></em>' attribute feature. |
1367 | * Returns the meta object for the attribute '{@link crossingScenario.CollisionExists#getCollisionTime <em>Collision Time</em>}'. | 1367 | * <!-- begin-user-doc --> |
1368 | * <!-- begin-user-doc --> | 1368 | * <!-- end-user-doc --> |
1369 | * <!-- end-user-doc --> | 1369 | * @generated |
1370 | * @return the meta object for the attribute '<em>Collision Time</em>'. | 1370 | */ |
1371 | * @see crossingScenario.CollisionExists#getCollisionTime() | 1371 | EAttribute CROSSING_SCENARIO__MAX_XSPEED = eINSTANCE.getCrossingScenario_MaxXSpeed(); |
1372 | * @see #getCollisionExists() | 1372 | |
1373 | * @generated | 1373 | /** |
1374 | */ | 1374 | * The meta object literal for the '<em><b>Max YSpeed</b></em>' attribute feature. |
1375 | EAttribute getCollisionExists_CollisionTime(); | 1375 | * <!-- begin-user-doc --> |
1376 | 1376 | * <!-- end-user-doc --> | |
1377 | /** | 1377 | * @generated |
1378 | * Returns the meta object for class '{@link crossingScenario.CollisionDoesNotExist <em>Collision Does Not Exist</em>}'. | 1378 | */ |
1379 | * <!-- begin-user-doc --> | 1379 | EAttribute CROSSING_SCENARIO__MAX_YSPEED = eINSTANCE.getCrossingScenario_MaxYSpeed(); |
1380 | * <!-- end-user-doc --> | 1380 | |
1381 | * @return the meta object for class '<em>Collision Does Not Exist</em>'. | 1381 | /** |
1382 | * @see crossingScenario.CollisionDoesNotExist | 1382 | * The meta object literal for the '{@link crossingScenario.impl.LaneImpl <em>Lane</em>}' class. |
1383 | * @generated | 1383 | * <!-- begin-user-doc --> |
1384 | */ | 1384 | * <!-- end-user-doc --> |
1385 | EClass getCollisionDoesNotExist(); | 1385 | * @see crossingScenario.impl.LaneImpl |
1386 | 1386 | * @see crossingScenario.impl.CrossingScenarioPackageImpl#getLane() | |
1387 | /** | 1387 | * @generated |
1388 | * Returns the meta object for class '{@link crossingScenario.Pedestrian <em>Pedestrian</em>}'. | 1388 | */ |
1389 | * <!-- begin-user-doc --> | 1389 | EClass LANE = eINSTANCE.getLane(); |
1390 | * <!-- end-user-doc --> | 1390 | |
1391 | * @return the meta object for class '<em>Pedestrian</em>'. | 1391 | /** |
1392 | * @see crossingScenario.Pedestrian | 1392 | * The meta object literal for the '<em><b>Reference Coord</b></em>' attribute feature. |
1393 | * @generated | 1393 | * <!-- begin-user-doc --> |
1394 | */ | 1394 | * <!-- end-user-doc --> |
1395 | EClass getPedestrian(); | 1395 | * @generated |
1396 | 1396 | */ | |
1397 | /** | 1397 | EAttribute LANE__REFERENCE_COORD = eINSTANCE.getLane_ReferenceCoord(); |
1398 | * Returns the meta object for class '{@link crossingScenario.Vehicle <em>Vehicle</em>}'. | 1398 | |
1399 | * <!-- begin-user-doc --> | 1399 | /** |
1400 | * <!-- end-user-doc --> | 1400 | * The meta object literal for the '<em><b>Actors</b></em>' reference list feature. |
1401 | * @return the meta object for class '<em>Vehicle</em>'. | 1401 | * <!-- begin-user-doc --> |
1402 | * @see crossingScenario.Vehicle | 1402 | * <!-- end-user-doc --> |
1403 | * @generated | 1403 | * @generated |
1404 | */ | 1404 | */ |
1405 | EClass getVehicle(); | 1405 | EReference LANE__ACTORS = eINSTANCE.getLane_Actors(); |
1406 | 1406 | ||
1407 | /** | 1407 | /** |
1408 | * Returns the meta object for class '{@link crossingScenario.Lane_Horizontal <em>Lane Horizontal</em>}'. | 1408 | * The meta object literal for the '{@link crossingScenario.impl.ActorImpl <em>Actor</em>}' class. |
1409 | * <!-- begin-user-doc --> | 1409 | * <!-- begin-user-doc --> |
1410 | * <!-- end-user-doc --> | 1410 | * <!-- end-user-doc --> |
1411 | * @return the meta object for class '<em>Lane Horizontal</em>'. | 1411 | * @see crossingScenario.impl.ActorImpl |
1412 | * @see crossingScenario.Lane_Horizontal | 1412 | * @see crossingScenario.impl.CrossingScenarioPackageImpl#getActor() |
1413 | * @generated | 1413 | * @generated |
1414 | */ | 1414 | */ |
1415 | EClass getLane_Horizontal(); | 1415 | EClass ACTOR = eINSTANCE.getActor(); |
1416 | 1416 | ||
1417 | /** | 1417 | /** |
1418 | * Returns the meta object for class '{@link crossingScenario.Lane_Vertical <em>Lane Vertical</em>}'. | 1418 | * The meta object literal for the '<em><b>XPos</b></em>' attribute feature. |
1419 | * <!-- begin-user-doc --> | 1419 | * <!-- begin-user-doc --> |
1420 | * <!-- end-user-doc --> | 1420 | * <!-- end-user-doc --> |
1421 | * @return the meta object for class '<em>Lane Vertical</em>'. | 1421 | * @generated |
1422 | * @see crossingScenario.Lane_Vertical | 1422 | */ |
1423 | * @generated | 1423 | EAttribute ACTOR__XPOS = eINSTANCE.getActor_XPos(); |
1424 | */ | 1424 | |
1425 | EClass getLane_Vertical(); | 1425 | /** |
1426 | 1426 | * The meta object literal for the '<em><b>YPos</b></em>' attribute feature. | |
1427 | /** | 1427 | * <!-- begin-user-doc --> |
1428 | * Returns the meta object for enum '{@link crossingScenario.Distance <em>Distance</em>}'. | 1428 | * <!-- end-user-doc --> |
1429 | * <!-- begin-user-doc --> | 1429 | * @generated |
1430 | * <!-- end-user-doc --> | 1430 | */ |
1431 | * @return the meta object for enum '<em>Distance</em>'. | 1431 | EAttribute ACTOR__YPOS = eINSTANCE.getActor_YPos(); |
1432 | * @see crossingScenario.Distance | 1432 | |
1433 | * @generated | 1433 | /** |
1434 | */ | 1434 | * The meta object literal for the '<em><b>Length</b></em>' attribute feature. |
1435 | EEnum getDistance(); | 1435 | * <!-- begin-user-doc --> |
1436 | 1436 | * <!-- end-user-doc --> | |
1437 | /** | 1437 | * @generated |
1438 | * Returns the factory that creates the instances of the model. | 1438 | */ |
1439 | * <!-- begin-user-doc --> | 1439 | EAttribute ACTOR__LENGTH = eINSTANCE.getActor_Length(); |
1440 | * <!-- end-user-doc --> | 1440 | |
1441 | * @return the factory that creates the instances of the model. | 1441 | /** |
1442 | * @generated | 1442 | * The meta object literal for the '<em><b>Width</b></em>' attribute feature. |
1443 | */ | 1443 | * <!-- begin-user-doc --> |
1444 | CrossingScenarioFactory getCrossingScenarioFactory(); | 1444 | * <!-- end-user-doc --> |
1445 | 1445 | * @generated | |
1446 | /** | 1446 | */ |
1447 | * <!-- begin-user-doc --> | 1447 | EAttribute ACTOR__WIDTH = eINSTANCE.getActor_Width(); |
1448 | * Defines literals for the meta objects that represent | 1448 | |
1449 | * <ul> | 1449 | /** |
1450 | * <li>each class,</li> | 1450 | * The meta object literal for the '<em><b>XSpeed</b></em>' attribute feature. |
1451 | * <li>each feature of each class,</li> | 1451 | * <!-- begin-user-doc --> |
1452 | * <li>each operation of each class,</li> | 1452 | * <!-- end-user-doc --> |
1453 | * <li>each enum,</li> | 1453 | * @generated |
1454 | * <li>and each data type</li> | 1454 | */ |
1455 | * </ul> | 1455 | EAttribute ACTOR__XSPEED = eINSTANCE.getActor_XSpeed(); |
1456 | * <!-- end-user-doc --> | 1456 | |
1457 | * @generated | 1457 | /** |
1458 | */ | 1458 | * The meta object literal for the '<em><b>Placed On</b></em>' reference feature. |
1459 | interface Literals { | 1459 | * <!-- begin-user-doc --> |
1460 | /** | 1460 | * <!-- end-user-doc --> |
1461 | * The meta object literal for the '{@link crossingScenario.impl.CrossingScenarioImpl <em>Crossing Scenario</em>}' class. | 1461 | * @generated |
1462 | * <!-- begin-user-doc --> | 1462 | */ |
1463 | * <!-- end-user-doc --> | 1463 | EReference ACTOR__PLACED_ON = eINSTANCE.getActor_PlacedOn(); |
1464 | * @see crossingScenario.impl.CrossingScenarioImpl | 1464 | |
1465 | * @see crossingScenario.impl.CrossingScenarioPackageImpl#getCrossingScenario() | 1465 | /** |
1466 | * @generated | 1466 | * The meta object literal for the '<em><b>YSpeed</b></em>' attribute feature. |
1467 | */ | 1467 | * <!-- begin-user-doc --> |
1468 | EClass CROSSING_SCENARIO = eINSTANCE.getCrossingScenario(); | 1468 | * <!-- end-user-doc --> |
1469 | 1469 | * @generated | |
1470 | /** | 1470 | */ |
1471 | * The meta object literal for the '<em><b>XSize</b></em>' attribute feature. | 1471 | EAttribute ACTOR__YSPEED = eINSTANCE.getActor_YSpeed(); |
1472 | * <!-- begin-user-doc --> | 1472 | |
1473 | * <!-- end-user-doc --> | 1473 | /** |
1474 | * @generated | 1474 | * The meta object literal for the '<em><b>Dist near</b></em>' reference list feature. |
1475 | */ | 1475 | * <!-- begin-user-doc --> |
1476 | EAttribute CROSSING_SCENARIO__XSIZE = eINSTANCE.getCrossingScenario_XSize(); | 1476 | * <!-- end-user-doc --> |
1477 | 1477 | * @generated | |
1478 | /** | 1478 | */ |
1479 | * The meta object literal for the '<em><b>YSize</b></em>' attribute feature. | 1479 | EReference ACTOR__DIST_NEAR = eINSTANCE.getActor_Dist_near(); |
1480 | * <!-- begin-user-doc --> | 1480 | |
1481 | * <!-- end-user-doc --> | 1481 | /** |
1482 | * @generated | 1482 | * The meta object literal for the '<em><b>Dist med</b></em>' reference list feature. |
1483 | */ | 1483 | * <!-- begin-user-doc --> |
1484 | EAttribute CROSSING_SCENARIO__YSIZE = eINSTANCE.getCrossingScenario_YSize(); | 1484 | * <!-- end-user-doc --> |
1485 | 1485 | * @generated | |
1486 | /** | 1486 | */ |
1487 | * The meta object literal for the '<em><b>Actors</b></em>' containment reference list feature. | 1487 | EReference ACTOR__DIST_MED = eINSTANCE.getActor_Dist_med(); |
1488 | * <!-- begin-user-doc --> | 1488 | |
1489 | * <!-- end-user-doc --> | 1489 | /** |
1490 | * @generated | 1490 | * The meta object literal for the '<em><b>Dist far</b></em>' reference list feature. |
1491 | */ | 1491 | * <!-- begin-user-doc --> |
1492 | EReference CROSSING_SCENARIO__ACTORS = eINSTANCE.getCrossingScenario_Actors(); | 1492 | * <!-- end-user-doc --> |
1493 | 1493 | * @generated | |
1494 | /** | 1494 | */ |
1495 | * The meta object literal for the '<em><b>Lanes</b></em>' containment reference list feature. | 1495 | EReference ACTOR__DIST_FAR = eINSTANCE.getActor_Dist_far(); |
1496 | * <!-- begin-user-doc --> | 1496 | |
1497 | * <!-- end-user-doc --> | 1497 | /** |
1498 | * @generated | 1498 | * The meta object literal for the '{@link crossingScenario.impl.RelationImpl <em>Relation</em>}' class. |
1499 | */ | 1499 | * <!-- begin-user-doc --> |
1500 | EReference CROSSING_SCENARIO__LANES = eINSTANCE.getCrossingScenario_Lanes(); | 1500 | * <!-- end-user-doc --> |
1501 | 1501 | * @see crossingScenario.impl.RelationImpl | |
1502 | /** | 1502 | * @see crossingScenario.impl.CrossingScenarioPackageImpl#getRelation() |
1503 | * The meta object literal for the '<em><b>Max Time</b></em>' attribute feature. | 1503 | * @generated |
1504 | * <!-- begin-user-doc --> | 1504 | */ |
1505 | * <!-- end-user-doc --> | 1505 | EClass RELATION = eINSTANCE.getRelation(); |
1506 | * @generated | 1506 | |
1507 | */ | 1507 | /** |
1508 | EAttribute CROSSING_SCENARIO__MAX_TIME = eINSTANCE.getCrossingScenario_MaxTime(); | 1508 | * The meta object literal for the '<em><b>Target</b></em>' reference feature. |
1509 | 1509 | * <!-- begin-user-doc --> | |
1510 | /** | 1510 | * <!-- end-user-doc --> |
1511 | * The meta object literal for the '<em><b>Relations</b></em>' containment reference list feature. | 1511 | * @generated |
1512 | * <!-- begin-user-doc --> | 1512 | */ |
1513 | * <!-- end-user-doc --> | 1513 | EReference RELATION__TARGET = eINSTANCE.getRelation_Target(); |
1514 | * @generated | 1514 | |
1515 | */ | 1515 | /** |
1516 | EReference CROSSING_SCENARIO__RELATIONS = eINSTANCE.getCrossingScenario_Relations(); | 1516 | * The meta object literal for the '<em><b>Source</b></em>' reference feature. |
1517 | 1517 | * <!-- begin-user-doc --> | |
1518 | /** | 1518 | * <!-- end-user-doc --> |
1519 | * The meta object literal for the '<em><b>Max XSpeed</b></em>' attribute feature. | 1519 | * @generated |
1520 | * <!-- begin-user-doc --> | 1520 | */ |
1521 | * <!-- end-user-doc --> | 1521 | EReference RELATION__SOURCE = eINSTANCE.getRelation_Source(); |
1522 | * @generated | 1522 | |
1523 | */ | 1523 | /** |
1524 | EAttribute CROSSING_SCENARIO__MAX_XSPEED = eINSTANCE.getCrossingScenario_MaxXSpeed(); | 1524 | * The meta object literal for the '{@link crossingScenario.impl.SpatialRelationImpl <em>Spatial Relation</em>}' class. |
1525 | 1525 | * <!-- begin-user-doc --> | |
1526 | /** | 1526 | * <!-- end-user-doc --> |
1527 | * The meta object literal for the '<em><b>Max YSpeed</b></em>' attribute feature. | 1527 | * @see crossingScenario.impl.SpatialRelationImpl |
1528 | * <!-- begin-user-doc --> | 1528 | * @see crossingScenario.impl.CrossingScenarioPackageImpl#getSpatialRelation() |
1529 | * <!-- end-user-doc --> | 1529 | * @generated |
1530 | * @generated | 1530 | */ |
1531 | */ | 1531 | EClass SPATIAL_RELATION = eINSTANCE.getSpatialRelation(); |
1532 | EAttribute CROSSING_SCENARIO__MAX_YSPEED = eINSTANCE.getCrossingScenario_MaxYSpeed(); | 1532 | |
1533 | 1533 | /** | |
1534 | /** | 1534 | * The meta object literal for the '{@link crossingScenario.impl.TemporalRelationImpl <em>Temporal Relation</em>}' class. |
1535 | * The meta object literal for the '{@link crossingScenario.impl.LaneImpl <em>Lane</em>}' class. | 1535 | * <!-- begin-user-doc --> |
1536 | * <!-- begin-user-doc --> | 1536 | * <!-- end-user-doc --> |
1537 | * <!-- end-user-doc --> | 1537 | * @see crossingScenario.impl.TemporalRelationImpl |
1538 | * @see crossingScenario.impl.LaneImpl | 1538 | * @see crossingScenario.impl.CrossingScenarioPackageImpl#getTemporalRelation() |
1539 | * @see crossingScenario.impl.CrossingScenarioPackageImpl#getLane() | 1539 | * @generated |
1540 | * @generated | 1540 | */ |
1541 | */ | 1541 | EClass TEMPORAL_RELATION = eINSTANCE.getTemporalRelation(); |
1542 | EClass LANE = eINSTANCE.getLane(); | 1542 | |
1543 | 1543 | /** | |
1544 | /** | 1544 | * The meta object literal for the '{@link crossingScenario.impl.VisionBlockedImpl <em>Vision Blocked</em>}' class. |
1545 | * The meta object literal for the '<em><b>Reference Coord</b></em>' attribute feature. | 1545 | * <!-- begin-user-doc --> |
1546 | * <!-- begin-user-doc --> | 1546 | * <!-- end-user-doc --> |
1547 | * <!-- end-user-doc --> | 1547 | * @see crossingScenario.impl.VisionBlockedImpl |
1548 | * @generated | 1548 | * @see crossingScenario.impl.CrossingScenarioPackageImpl#getVisionBlocked() |
1549 | */ | 1549 | * @generated |
1550 | EAttribute LANE__REFERENCE_COORD = eINSTANCE.getLane_ReferenceCoord(); | 1550 | */ |
1551 | 1551 | EClass VISION_BLOCKED = eINSTANCE.getVisionBlocked(); | |
1552 | /** | 1552 | |
1553 | * The meta object literal for the '<em><b>Actors</b></em>' reference list feature. | 1553 | /** |
1554 | * <!-- begin-user-doc --> | 1554 | * The meta object literal for the '<em><b>Blocked By</b></em>' reference feature. |
1555 | * <!-- end-user-doc --> | 1555 | * <!-- begin-user-doc --> |
1556 | * @generated | 1556 | * <!-- end-user-doc --> |
1557 | */ | 1557 | * @generated |
1558 | EReference LANE__ACTORS = eINSTANCE.getLane_Actors(); | 1558 | */ |
1559 | 1559 | EReference VISION_BLOCKED__BLOCKED_BY = eINSTANCE.getVisionBlocked_BlockedBy(); | |
1560 | /** | 1560 | |
1561 | * The meta object literal for the '{@link crossingScenario.impl.ActorImpl <em>Actor</em>}' class. | 1561 | /** |
1562 | * <!-- begin-user-doc --> | 1562 | * The meta object literal for the '{@link crossingScenario.impl.CollisionExistsImpl <em>Collision Exists</em>}' class. |
1563 | * <!-- end-user-doc --> | 1563 | * <!-- begin-user-doc --> |
1564 | * @see crossingScenario.impl.ActorImpl | 1564 | * <!-- end-user-doc --> |
1565 | * @see crossingScenario.impl.CrossingScenarioPackageImpl#getActor() | 1565 | * @see crossingScenario.impl.CollisionExistsImpl |
1566 | * @generated | 1566 | * @see crossingScenario.impl.CrossingScenarioPackageImpl#getCollisionExists() |
1567 | */ | 1567 | * @generated |
1568 | EClass ACTOR = eINSTANCE.getActor(); | 1568 | */ |
1569 | 1569 | EClass COLLISION_EXISTS = eINSTANCE.getCollisionExists(); | |
1570 | /** | 1570 | |
1571 | * The meta object literal for the '<em><b>XPos</b></em>' attribute feature. | 1571 | /** |
1572 | * <!-- begin-user-doc --> | 1572 | * The meta object literal for the '<em><b>Collision Time</b></em>' attribute feature. |
1573 | * <!-- end-user-doc --> | 1573 | * <!-- begin-user-doc --> |
1574 | * @generated | 1574 | * <!-- end-user-doc --> |
1575 | */ | 1575 | * @generated |
1576 | EAttribute ACTOR__XPOS = eINSTANCE.getActor_XPos(); | 1576 | */ |
1577 | 1577 | EAttribute COLLISION_EXISTS__COLLISION_TIME = eINSTANCE.getCollisionExists_CollisionTime(); | |
1578 | /** | 1578 | |
1579 | * The meta object literal for the '<em><b>YPos</b></em>' attribute feature. | 1579 | /** |
1580 | * <!-- begin-user-doc --> | 1580 | * The meta object literal for the '{@link crossingScenario.impl.PedestrianImpl <em>Pedestrian</em>}' class. |
1581 | * <!-- end-user-doc --> | 1581 | * <!-- begin-user-doc --> |
1582 | * @generated | 1582 | * <!-- end-user-doc --> |
1583 | */ | 1583 | * @see crossingScenario.impl.PedestrianImpl |
1584 | EAttribute ACTOR__YPOS = eINSTANCE.getActor_YPos(); | 1584 | * @see crossingScenario.impl.CrossingScenarioPackageImpl#getPedestrian() |
1585 | 1585 | * @generated | |
1586 | /** | 1586 | */ |
1587 | * The meta object literal for the '<em><b>Length</b></em>' attribute feature. | 1587 | EClass PEDESTRIAN = eINSTANCE.getPedestrian(); |
1588 | * <!-- begin-user-doc --> | 1588 | |
1589 | * <!-- end-user-doc --> | 1589 | /** |
1590 | * @generated | 1590 | * The meta object literal for the '{@link crossingScenario.impl.VehicleImpl <em>Vehicle</em>}' class. |
1591 | */ | 1591 | * <!-- begin-user-doc --> |
1592 | EAttribute ACTOR__LENGTH = eINSTANCE.getActor_Length(); | 1592 | * <!-- end-user-doc --> |
1593 | 1593 | * @see crossingScenario.impl.VehicleImpl | |
1594 | /** | 1594 | * @see crossingScenario.impl.CrossingScenarioPackageImpl#getVehicle() |
1595 | * The meta object literal for the '<em><b>Width</b></em>' attribute feature. | 1595 | * @generated |
1596 | * <!-- begin-user-doc --> | 1596 | */ |
1597 | * <!-- end-user-doc --> | 1597 | EClass VEHICLE = eINSTANCE.getVehicle(); |
1598 | * @generated | 1598 | |
1599 | */ | 1599 | /** |
1600 | EAttribute ACTOR__WIDTH = eINSTANCE.getActor_Width(); | 1600 | * The meta object literal for the '{@link crossingScenario.impl.Lane_HorizontalImpl <em>Lane Horizontal</em>}' class. |
1601 | 1601 | * <!-- begin-user-doc --> | |
1602 | /** | 1602 | * <!-- end-user-doc --> |
1603 | * The meta object literal for the '<em><b>XSpeed</b></em>' attribute feature. | 1603 | * @see crossingScenario.impl.Lane_HorizontalImpl |
1604 | * <!-- begin-user-doc --> | 1604 | * @see crossingScenario.impl.CrossingScenarioPackageImpl#getLane_Horizontal() |
1605 | * <!-- end-user-doc --> | 1605 | * @generated |
1606 | * @generated | 1606 | */ |
1607 | */ | 1607 | EClass LANE_HORIZONTAL = eINSTANCE.getLane_Horizontal(); |
1608 | EAttribute ACTOR__XSPEED = eINSTANCE.getActor_XSpeed(); | 1608 | |
1609 | 1609 | /** | |
1610 | /** | 1610 | * The meta object literal for the '{@link crossingScenario.impl.Lane_VerticalImpl <em>Lane Vertical</em>}' class. |
1611 | * The meta object literal for the '<em><b>Placed On</b></em>' reference feature. | 1611 | * <!-- begin-user-doc --> |
1612 | * <!-- begin-user-doc --> | 1612 | * <!-- end-user-doc --> |
1613 | * <!-- end-user-doc --> | 1613 | * @see crossingScenario.impl.Lane_VerticalImpl |
1614 | * @generated | 1614 | * @see crossingScenario.impl.CrossingScenarioPackageImpl#getLane_Vertical() |
1615 | */ | 1615 | * @generated |
1616 | EReference ACTOR__PLACED_ON = eINSTANCE.getActor_PlacedOn(); | 1616 | */ |
1617 | 1617 | EClass LANE_VERTICAL = eINSTANCE.getLane_Vertical(); | |
1618 | /** | 1618 | |
1619 | * The meta object literal for the '<em><b>YSpeed</b></em>' attribute feature. | 1619 | } |
1620 | * <!-- begin-user-doc --> | 1620 | |
1621 | * <!-- end-user-doc --> | 1621 | } //CrossingScenarioPackage |
1622 | * @generated | ||
1623 | */ | ||
1624 | EAttribute ACTOR__YSPEED = eINSTANCE.getActor_YSpeed(); | ||
1625 | |||
1626 | /** | ||
1627 | * The meta object literal for the '<em><b>Dist near</b></em>' reference list feature. | ||
1628 | * <!-- begin-user-doc --> | ||
1629 | * <!-- end-user-doc --> | ||
1630 | * @generated | ||
1631 | */ | ||
1632 | EReference ACTOR__DIST_NEAR = eINSTANCE.getActor_Dist_near(); | ||
1633 | |||
1634 | /** | ||
1635 | * The meta object literal for the '<em><b>Dist med</b></em>' reference list feature. | ||
1636 | * <!-- begin-user-doc --> | ||
1637 | * <!-- end-user-doc --> | ||
1638 | * @generated | ||
1639 | */ | ||
1640 | EReference ACTOR__DIST_MED = eINSTANCE.getActor_Dist_med(); | ||
1641 | |||
1642 | /** | ||
1643 | * The meta object literal for the '<em><b>Dist far</b></em>' reference list feature. | ||
1644 | * <!-- begin-user-doc --> | ||
1645 | * <!-- end-user-doc --> | ||
1646 | * @generated | ||
1647 | */ | ||
1648 | EReference ACTOR__DIST_FAR = eINSTANCE.getActor_Dist_far(); | ||
1649 | |||
1650 | /** | ||
1651 | * The meta object literal for the '{@link crossingScenario.impl.RelationImpl <em>Relation</em>}' class. | ||
1652 | * <!-- begin-user-doc --> | ||
1653 | * <!-- end-user-doc --> | ||
1654 | * @see crossingScenario.impl.RelationImpl | ||
1655 | * @see crossingScenario.impl.CrossingScenarioPackageImpl#getRelation() | ||
1656 | * @generated | ||
1657 | */ | ||
1658 | EClass RELATION = eINSTANCE.getRelation(); | ||
1659 | |||
1660 | /** | ||
1661 | * The meta object literal for the '<em><b>Target</b></em>' reference feature. | ||
1662 | * <!-- begin-user-doc --> | ||
1663 | * <!-- end-user-doc --> | ||
1664 | * @generated | ||
1665 | */ | ||
1666 | EReference RELATION__TARGET = eINSTANCE.getRelation_Target(); | ||
1667 | |||
1668 | /** | ||
1669 | * The meta object literal for the '<em><b>Source</b></em>' reference feature. | ||
1670 | * <!-- begin-user-doc --> | ||
1671 | * <!-- end-user-doc --> | ||
1672 | * @generated | ||
1673 | */ | ||
1674 | EReference RELATION__SOURCE = eINSTANCE.getRelation_Source(); | ||
1675 | |||
1676 | /** | ||
1677 | * The meta object literal for the '{@link crossingScenario.impl.SpatialRelationImpl <em>Spatial Relation</em>}' class. | ||
1678 | * <!-- begin-user-doc --> | ||
1679 | * <!-- end-user-doc --> | ||
1680 | * @see crossingScenario.impl.SpatialRelationImpl | ||
1681 | * @see crossingScenario.impl.CrossingScenarioPackageImpl#getSpatialRelation() | ||
1682 | * @generated | ||
1683 | */ | ||
1684 | EClass SPATIAL_RELATION = eINSTANCE.getSpatialRelation(); | ||
1685 | |||
1686 | /** | ||
1687 | * The meta object literal for the '{@link crossingScenario.impl.TemporalRelationImpl <em>Temporal Relation</em>}' class. | ||
1688 | * <!-- begin-user-doc --> | ||
1689 | * <!-- end-user-doc --> | ||
1690 | * @see crossingScenario.impl.TemporalRelationImpl | ||
1691 | * @see crossingScenario.impl.CrossingScenarioPackageImpl#getTemporalRelation() | ||
1692 | * @generated | ||
1693 | */ | ||
1694 | EClass TEMPORAL_RELATION = eINSTANCE.getTemporalRelation(); | ||
1695 | |||
1696 | /** | ||
1697 | * The meta object literal for the '{@link crossingScenario.impl.VisionBlockedImpl <em>Vision Blocked</em>}' class. | ||
1698 | * <!-- begin-user-doc --> | ||
1699 | * <!-- end-user-doc --> | ||
1700 | * @see crossingScenario.impl.VisionBlockedImpl | ||
1701 | * @see crossingScenario.impl.CrossingScenarioPackageImpl#getVisionBlocked() | ||
1702 | * @generated | ||
1703 | */ | ||
1704 | EClass VISION_BLOCKED = eINSTANCE.getVisionBlocked(); | ||
1705 | |||
1706 | /** | ||
1707 | * The meta object literal for the '<em><b>Blocked By</b></em>' reference feature. | ||
1708 | * <!-- begin-user-doc --> | ||
1709 | * <!-- end-user-doc --> | ||
1710 | * @generated | ||
1711 | */ | ||
1712 | EReference VISION_BLOCKED__BLOCKED_BY = eINSTANCE.getVisionBlocked_BlockedBy(); | ||
1713 | |||
1714 | /** | ||
1715 | * The meta object literal for the '{@link crossingScenario.impl.SeparationDistanceImpl <em>Separation Distance</em>}' class. | ||
1716 | * <!-- begin-user-doc --> | ||
1717 | * <!-- end-user-doc --> | ||
1718 | * @see crossingScenario.impl.SeparationDistanceImpl | ||
1719 | * @see crossingScenario.impl.CrossingScenarioPackageImpl#getSeparationDistance() | ||
1720 | * @generated | ||
1721 | */ | ||
1722 | EClass SEPARATION_DISTANCE = eINSTANCE.getSeparationDistance(); | ||
1723 | |||
1724 | /** | ||
1725 | * The meta object literal for the '<em><b>Distance</b></em>' attribute feature. | ||
1726 | * <!-- begin-user-doc --> | ||
1727 | * <!-- end-user-doc --> | ||
1728 | * @generated | ||
1729 | */ | ||
1730 | EAttribute SEPARATION_DISTANCE__DISTANCE = eINSTANCE.getSeparationDistance_Distance(); | ||
1731 | |||
1732 | /** | ||
1733 | * The meta object literal for the '{@link crossingScenario.impl.CollisionExistsImpl <em>Collision Exists</em>}' class. | ||
1734 | * <!-- begin-user-doc --> | ||
1735 | * <!-- end-user-doc --> | ||
1736 | * @see crossingScenario.impl.CollisionExistsImpl | ||
1737 | * @see crossingScenario.impl.CrossingScenarioPackageImpl#getCollisionExists() | ||
1738 | * @generated | ||
1739 | */ | ||
1740 | EClass COLLISION_EXISTS = eINSTANCE.getCollisionExists(); | ||
1741 | |||
1742 | /** | ||
1743 | * The meta object literal for the '<em><b>Collision Time</b></em>' attribute feature. | ||
1744 | * <!-- begin-user-doc --> | ||
1745 | * <!-- end-user-doc --> | ||
1746 | * @generated | ||
1747 | */ | ||
1748 | EAttribute COLLISION_EXISTS__COLLISION_TIME = eINSTANCE.getCollisionExists_CollisionTime(); | ||
1749 | |||
1750 | /** | ||
1751 | * The meta object literal for the '{@link crossingScenario.impl.CollisionDoesNotExistImpl <em>Collision Does Not Exist</em>}' class. | ||
1752 | * <!-- begin-user-doc --> | ||
1753 | * <!-- end-user-doc --> | ||
1754 | * @see crossingScenario.impl.CollisionDoesNotExistImpl | ||
1755 | * @see crossingScenario.impl.CrossingScenarioPackageImpl#getCollisionDoesNotExist() | ||
1756 | * @generated | ||
1757 | */ | ||
1758 | EClass COLLISION_DOES_NOT_EXIST = eINSTANCE.getCollisionDoesNotExist(); | ||
1759 | |||
1760 | /** | ||
1761 | * The meta object literal for the '{@link crossingScenario.impl.PedestrianImpl <em>Pedestrian</em>}' class. | ||
1762 | * <!-- begin-user-doc --> | ||
1763 | * <!-- end-user-doc --> | ||
1764 | * @see crossingScenario.impl.PedestrianImpl | ||
1765 | * @see crossingScenario.impl.CrossingScenarioPackageImpl#getPedestrian() | ||
1766 | * @generated | ||
1767 | */ | ||
1768 | EClass PEDESTRIAN = eINSTANCE.getPedestrian(); | ||
1769 | |||
1770 | /** | ||
1771 | * The meta object literal for the '{@link crossingScenario.impl.VehicleImpl <em>Vehicle</em>}' class. | ||
1772 | * <!-- begin-user-doc --> | ||
1773 | * <!-- end-user-doc --> | ||
1774 | * @see crossingScenario.impl.VehicleImpl | ||
1775 | * @see crossingScenario.impl.CrossingScenarioPackageImpl#getVehicle() | ||
1776 | * @generated | ||
1777 | */ | ||
1778 | EClass VEHICLE = eINSTANCE.getVehicle(); | ||
1779 | |||
1780 | /** | ||
1781 | * The meta object literal for the '{@link crossingScenario.impl.Lane_HorizontalImpl <em>Lane Horizontal</em>}' class. | ||
1782 | * <!-- begin-user-doc --> | ||
1783 | * <!-- end-user-doc --> | ||
1784 | * @see crossingScenario.impl.Lane_HorizontalImpl | ||
1785 | * @see crossingScenario.impl.CrossingScenarioPackageImpl#getLane_Horizontal() | ||
1786 | * @generated | ||
1787 | */ | ||
1788 | EClass LANE_HORIZONTAL = eINSTANCE.getLane_Horizontal(); | ||
1789 | |||
1790 | /** | ||
1791 | * The meta object literal for the '{@link crossingScenario.impl.Lane_VerticalImpl <em>Lane Vertical</em>}' class. | ||
1792 | * <!-- begin-user-doc --> | ||
1793 | * <!-- end-user-doc --> | ||
1794 | * @see crossingScenario.impl.Lane_VerticalImpl | ||
1795 | * @see crossingScenario.impl.CrossingScenarioPackageImpl#getLane_Vertical() | ||
1796 | * @generated | ||
1797 | */ | ||
1798 | EClass LANE_VERTICAL = eINSTANCE.getLane_Vertical(); | ||
1799 | |||
1800 | /** | ||
1801 | * The meta object literal for the '{@link crossingScenario.Distance <em>Distance</em>}' enum. | ||
1802 | * <!-- begin-user-doc --> | ||
1803 | * <!-- end-user-doc --> | ||
1804 | * @see crossingScenario.Distance | ||
1805 | * @see crossingScenario.impl.CrossingScenarioPackageImpl#getDistance() | ||
1806 | * @generated | ||
1807 | */ | ||
1808 | EEnum DISTANCE = eINSTANCE.getDistance(); | ||
1809 | |||
1810 | } | ||
1811 | |||
1812 | } //CrossingScenarioPackage | ||
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/Distance.java b/Domains/crossingScenario/ecore-gen/crossingScenario/Distance.java deleted file mode 100644 index 80731e1f..00000000 --- a/Domains/crossingScenario/ecore-gen/crossingScenario/Distance.java +++ /dev/null | |||
@@ -1,228 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package crossingScenario; | ||
4 | |||
5 | import java.util.Arrays; | ||
6 | import java.util.Collections; | ||
7 | import java.util.List; | ||
8 | |||
9 | import 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 | */ | ||
20 | public enum Distance implements Enumerator { | ||
21 | /** | ||
22 | * The '<em><b>DNear</b></em>' literal object. | ||
23 | * <!-- begin-user-doc --> | ||
24 | * <!-- end-user-doc --> | ||
25 | * @see #DNEAR_VALUE | ||
26 | * @generated | ||
27 | * @ordered | ||
28 | */ | ||
29 | DNEAR(0, "D_Near", "D_Near"), /** | ||
30 | * The '<em><b>DMed</b></em>' literal object. | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @see #DMED_VALUE | ||
34 | * @generated | ||
35 | * @ordered | ||
36 | */ | ||
37 | DMED(1, "D_Med", "D_Med"), /** | ||
38 | * The '<em><b>DFar</b></em>' literal object. | ||
39 | * <!-- begin-user-doc --> | ||
40 | * <!-- end-user-doc --> | ||
41 | * @see #DFAR_VALUE | ||
42 | * @generated | ||
43 | * @ordered | ||
44 | */ | ||
45 | DFAR(2, "D_Far", "D_Far"); | ||
46 | |||
47 | /** | ||
48 | * The '<em><b>DNear</b></em>' literal value. | ||
49 | * <!-- begin-user-doc --> | ||
50 | * <!-- end-user-doc --> | ||
51 | * @see #DNEAR | ||
52 | * @model name="D_Near" | ||
53 | * @generated | ||
54 | * @ordered | ||
55 | */ | ||
56 | public static final int DNEAR_VALUE = 0; | ||
57 | |||
58 | /** | ||
59 | * The '<em><b>DMed</b></em>' literal value. | ||
60 | * <!-- begin-user-doc --> | ||
61 | * <!-- end-user-doc --> | ||
62 | * @see #DMED | ||
63 | * @model name="D_Med" | ||
64 | * @generated | ||
65 | * @ordered | ||
66 | */ | ||
67 | public static final int DMED_VALUE = 1; | ||
68 | |||
69 | /** | ||
70 | * The '<em><b>DFar</b></em>' literal value. | ||
71 | * <!-- begin-user-doc --> | ||
72 | * <!-- end-user-doc --> | ||
73 | * @see #DFAR | ||
74 | * @model name="D_Far" | ||
75 | * @generated | ||
76 | * @ordered | ||
77 | */ | ||
78 | public static final int DFAR_VALUE = 2; | ||
79 | |||
80 | /** | ||
81 | * An array of all the '<em><b>Distance</b></em>' enumerators. | ||
82 | * <!-- begin-user-doc --> | ||
83 | * <!-- end-user-doc --> | ||
84 | * @generated | ||
85 | */ | ||
86 | private static final Distance[] VALUES_ARRAY = | ||
87 | new Distance[] { | ||
88 | DNEAR, | ||
89 | DMED, | ||
90 | DFAR, | ||
91 | }; | ||
92 | |||
93 | /** | ||
94 | * A public read-only list of all the '<em><b>Distance</b></em>' enumerators. | ||
95 | * <!-- begin-user-doc --> | ||
96 | * <!-- end-user-doc --> | ||
97 | * @generated | ||
98 | */ | ||
99 | public static final List<Distance> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); | ||
100 | |||
101 | /** | ||
102 | * Returns the '<em><b>Distance</b></em>' literal with the specified literal value. | ||
103 | * <!-- begin-user-doc --> | ||
104 | * <!-- end-user-doc --> | ||
105 | * @param literal the literal. | ||
106 | * @return the matching enumerator or <code>null</code>. | ||
107 | * @generated | ||
108 | */ | ||
109 | public static Distance get(String literal) { | ||
110 | for (int i = 0; i < VALUES_ARRAY.length; ++i) { | ||
111 | Distance result = VALUES_ARRAY[i]; | ||
112 | if (result.toString().equals(literal)) { | ||
113 | return result; | ||
114 | } | ||
115 | } | ||
116 | return null; | ||
117 | } | ||
118 | |||
119 | /** | ||
120 | * Returns the '<em><b>Distance</b></em>' literal with the specified name. | ||
121 | * <!-- begin-user-doc --> | ||
122 | * <!-- end-user-doc --> | ||
123 | * @param name the name. | ||
124 | * @return the matching enumerator or <code>null</code>. | ||
125 | * @generated | ||
126 | */ | ||
127 | public static Distance getByName(String name) { | ||
128 | for (int i = 0; i < VALUES_ARRAY.length; ++i) { | ||
129 | Distance result = VALUES_ARRAY[i]; | ||
130 | if (result.getName().equals(name)) { | ||
131 | return result; | ||
132 | } | ||
133 | } | ||
134 | return null; | ||
135 | } | ||
136 | |||
137 | /** | ||
138 | * Returns the '<em><b>Distance</b></em>' literal with the specified integer value. | ||
139 | * <!-- begin-user-doc --> | ||
140 | * <!-- end-user-doc --> | ||
141 | * @param value the integer value. | ||
142 | * @return the matching enumerator or <code>null</code>. | ||
143 | * @generated | ||
144 | */ | ||
145 | public static Distance get(int value) { | ||
146 | switch (value) { | ||
147 | case DNEAR_VALUE: return DNEAR; | ||
148 | case DMED_VALUE: return DMED; | ||
149 | case DFAR_VALUE: return DFAR; | ||
150 | } | ||
151 | return null; | ||
152 | } | ||
153 | |||
154 | /** | ||
155 | * <!-- begin-user-doc --> | ||
156 | * <!-- end-user-doc --> | ||
157 | * @generated | ||
158 | */ | ||
159 | private final int value; | ||
160 | |||
161 | /** | ||
162 | * <!-- begin-user-doc --> | ||
163 | * <!-- end-user-doc --> | ||
164 | * @generated | ||
165 | */ | ||
166 | private final String name; | ||
167 | |||
168 | /** | ||
169 | * <!-- begin-user-doc --> | ||
170 | * <!-- end-user-doc --> | ||
171 | * @generated | ||
172 | */ | ||
173 | private final String literal; | ||
174 | |||
175 | /** | ||
176 | * Only this class can construct instances. | ||
177 | * <!-- begin-user-doc --> | ||
178 | * <!-- end-user-doc --> | ||
179 | * @generated | ||
180 | */ | ||
181 | private Distance(int value, String name, String literal) { | ||
182 | this.value = value; | ||
183 | this.name = name; | ||
184 | this.literal = literal; | ||
185 | } | ||
186 | |||
187 | /** | ||
188 | * <!-- begin-user-doc --> | ||
189 | * <!-- end-user-doc --> | ||
190 | * @generated | ||
191 | */ | ||
192 | @Override | ||
193 | public int getValue() { | ||
194 | return value; | ||
195 | } | ||
196 | |||
197 | /** | ||
198 | * <!-- begin-user-doc --> | ||
199 | * <!-- end-user-doc --> | ||
200 | * @generated | ||
201 | */ | ||
202 | @Override | ||
203 | public String getName() { | ||
204 | return name; | ||
205 | } | ||
206 | |||
207 | /** | ||
208 | * <!-- begin-user-doc --> | ||
209 | * <!-- end-user-doc --> | ||
210 | * @generated | ||
211 | */ | ||
212 | @Override | ||
213 | public String getLiteral() { | ||
214 | return literal; | ||
215 | } | ||
216 | |||
217 | /** | ||
218 | * Returns the literal value of the enumerator, which is its string representation. | ||
219 | * <!-- begin-user-doc --> | ||
220 | * <!-- end-user-doc --> | ||
221 | * @generated | ||
222 | */ | ||
223 | @Override | ||
224 | public String toString() { | ||
225 | return literal; | ||
226 | } | ||
227 | |||
228 | } //Distance | ||
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/Lane.java b/Domains/crossingScenario/ecore-gen/crossingScenario/Lane.java index ef45e1b9..fc746ed6 100644 --- a/Domains/crossingScenario/ecore-gen/crossingScenario/Lane.java +++ b/Domains/crossingScenario/ecore-gen/crossingScenario/Lane.java | |||
@@ -1,63 +1,63 @@ | |||
1 | /** | 1 | /** |
2 | */ | 2 | */ |
3 | package crossingScenario; | 3 | package crossingScenario; |
4 | 4 | ||
5 | import org.eclipse.emf.common.util.EList; | 5 | import org.eclipse.emf.common.util.EList; |
6 | 6 | ||
7 | import org.eclipse.emf.ecore.EObject; | 7 | import org.eclipse.emf.ecore.EObject; |
8 | 8 | ||
9 | /** | 9 | /** |
10 | * <!-- begin-user-doc --> | 10 | * <!-- begin-user-doc --> |
11 | * A representation of the model object '<em><b>Lane</b></em>'. | 11 | * A representation of the model object '<em><b>Lane</b></em>'. |
12 | * <!-- end-user-doc --> | 12 | * <!-- end-user-doc --> |
13 | * | 13 | * |
14 | * <p> | 14 | * <p> |
15 | * The following features are supported: | 15 | * The following features are supported: |
16 | * </p> | 16 | * </p> |
17 | * <ul> | 17 | * <ul> |
18 | * <li>{@link crossingScenario.Lane#getReferenceCoord <em>Reference Coord</em>}</li> | 18 | * <li>{@link crossingScenario.Lane#getReferenceCoord <em>Reference Coord</em>}</li> |
19 | * <li>{@link crossingScenario.Lane#getActors <em>Actors</em>}</li> | 19 | * <li>{@link crossingScenario.Lane#getActors <em>Actors</em>}</li> |
20 | * </ul> | 20 | * </ul> |
21 | * | 21 | * |
22 | * @see crossingScenario.CrossingScenarioPackage#getLane() | 22 | * @see crossingScenario.CrossingScenarioPackage#getLane() |
23 | * @model abstract="true" | 23 | * @model abstract="true" |
24 | * @generated | 24 | * @generated |
25 | */ | 25 | */ |
26 | public interface Lane extends EObject { | 26 | public interface Lane extends EObject { |
27 | /** | 27 | /** |
28 | * Returns the value of the '<em><b>Reference Coord</b></em>' attribute. | 28 | * Returns the value of the '<em><b>Reference Coord</b></em>' attribute. |
29 | * <!-- begin-user-doc --> | 29 | * <!-- begin-user-doc --> |
30 | * <!-- end-user-doc --> | 30 | * <!-- end-user-doc --> |
31 | * @return the value of the '<em>Reference Coord</em>' attribute. | 31 | * @return the value of the '<em>Reference Coord</em>' attribute. |
32 | * @see #setReferenceCoord(double) | 32 | * @see #setReferenceCoord(double) |
33 | * @see crossingScenario.CrossingScenarioPackage#getLane_ReferenceCoord() | 33 | * @see crossingScenario.CrossingScenarioPackage#getLane_ReferenceCoord() |
34 | * @model required="true" | 34 | * @model required="true" |
35 | * @generated | 35 | * @generated |
36 | */ | 36 | */ |
37 | double getReferenceCoord(); | 37 | double getReferenceCoord(); |
38 | 38 | ||
39 | /** | 39 | /** |
40 | * Sets the value of the '{@link crossingScenario.Lane#getReferenceCoord <em>Reference Coord</em>}' attribute. | 40 | * Sets the value of the '{@link crossingScenario.Lane#getReferenceCoord <em>Reference Coord</em>}' attribute. |
41 | * <!-- begin-user-doc --> | 41 | * <!-- begin-user-doc --> |
42 | * <!-- end-user-doc --> | 42 | * <!-- end-user-doc --> |
43 | * @param value the new value of the '<em>Reference Coord</em>' attribute. | 43 | * @param value the new value of the '<em>Reference Coord</em>' attribute. |
44 | * @see #getReferenceCoord() | 44 | * @see #getReferenceCoord() |
45 | * @generated | 45 | * @generated |
46 | */ | 46 | */ |
47 | void setReferenceCoord(double value); | 47 | void setReferenceCoord(double value); |
48 | 48 | ||
49 | /** | 49 | /** |
50 | * Returns the value of the '<em><b>Actors</b></em>' reference list. | 50 | * Returns the value of the '<em><b>Actors</b></em>' reference list. |
51 | * The list contents are of type {@link crossingScenario.Actor}. | 51 | * The list contents are of type {@link crossingScenario.Actor}. |
52 | * It is bidirectional and its opposite is '{@link crossingScenario.Actor#getPlacedOn <em>Placed On</em>}'. | 52 | * It is bidirectional and its opposite is '{@link crossingScenario.Actor#getPlacedOn <em>Placed On</em>}'. |
53 | * <!-- begin-user-doc --> | 53 | * <!-- begin-user-doc --> |
54 | * <!-- end-user-doc --> | 54 | * <!-- end-user-doc --> |
55 | * @return the value of the '<em>Actors</em>' reference list. | 55 | * @return the value of the '<em>Actors</em>' reference list. |
56 | * @see crossingScenario.CrossingScenarioPackage#getLane_Actors() | 56 | * @see crossingScenario.CrossingScenarioPackage#getLane_Actors() |
57 | * @see crossingScenario.Actor#getPlacedOn | 57 | * @see crossingScenario.Actor#getPlacedOn |
58 | * @model opposite="placedOn" | 58 | * @model opposite="placedOn" |
59 | * @generated | 59 | * @generated |
60 | */ | 60 | */ |
61 | EList<Actor> getActors(); | 61 | EList<Actor> getActors(); |
62 | 62 | ||
63 | } // Lane | 63 | } // Lane |
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/Lane_Horizontal.java b/Domains/crossingScenario/ecore-gen/crossingScenario/Lane_Horizontal.java index aec6413e..1ff45415 100644 --- a/Domains/crossingScenario/ecore-gen/crossingScenario/Lane_Horizontal.java +++ b/Domains/crossingScenario/ecore-gen/crossingScenario/Lane_Horizontal.java | |||
@@ -1,17 +1,17 @@ | |||
1 | /** | 1 | /** |
2 | */ | 2 | */ |
3 | package crossingScenario; | 3 | package crossingScenario; |
4 | 4 | ||
5 | 5 | ||
6 | /** | 6 | /** |
7 | * <!-- begin-user-doc --> | 7 | * <!-- begin-user-doc --> |
8 | * A representation of the model object '<em><b>Lane Horizontal</b></em>'. | 8 | * A representation of the model object '<em><b>Lane Horizontal</b></em>'. |
9 | * <!-- end-user-doc --> | 9 | * <!-- end-user-doc --> |
10 | * | 10 | * |
11 | * | 11 | * |
12 | * @see crossingScenario.CrossingScenarioPackage#getLane_Horizontal() | 12 | * @see crossingScenario.CrossingScenarioPackage#getLane_Horizontal() |
13 | * @model | 13 | * @model |
14 | * @generated | 14 | * @generated |
15 | */ | 15 | */ |
16 | public interface Lane_Horizontal extends Lane { | 16 | public interface Lane_Horizontal extends Lane { |
17 | } // Lane_Horizontal | 17 | } // Lane_Horizontal |
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/Lane_Vertical.java b/Domains/crossingScenario/ecore-gen/crossingScenario/Lane_Vertical.java index cf818bc2..1be0dc2b 100644 --- a/Domains/crossingScenario/ecore-gen/crossingScenario/Lane_Vertical.java +++ b/Domains/crossingScenario/ecore-gen/crossingScenario/Lane_Vertical.java | |||
@@ -1,17 +1,17 @@ | |||
1 | /** | 1 | /** |
2 | */ | 2 | */ |
3 | package crossingScenario; | 3 | package crossingScenario; |
4 | 4 | ||
5 | 5 | ||
6 | /** | 6 | /** |
7 | * <!-- begin-user-doc --> | 7 | * <!-- begin-user-doc --> |
8 | * A representation of the model object '<em><b>Lane Vertical</b></em>'. | 8 | * A representation of the model object '<em><b>Lane Vertical</b></em>'. |
9 | * <!-- end-user-doc --> | 9 | * <!-- end-user-doc --> |
10 | * | 10 | * |
11 | * | 11 | * |
12 | * @see crossingScenario.CrossingScenarioPackage#getLane_Vertical() | 12 | * @see crossingScenario.CrossingScenarioPackage#getLane_Vertical() |
13 | * @model | 13 | * @model |
14 | * @generated | 14 | * @generated |
15 | */ | 15 | */ |
16 | public interface Lane_Vertical extends Lane { | 16 | public interface Lane_Vertical extends Lane { |
17 | } // Lane_Vertical | 17 | } // Lane_Vertical |
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/Orientation.java b/Domains/crossingScenario/ecore-gen/crossingScenario/Orientation.java deleted file mode 100644 index a295e683..00000000 --- a/Domains/crossingScenario/ecore-gen/crossingScenario/Orientation.java +++ /dev/null | |||
@@ -1,209 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package crossingScenario; | ||
4 | |||
5 | import java.util.Arrays; | ||
6 | import java.util.Collections; | ||
7 | import java.util.List; | ||
8 | |||
9 | import 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 | */ | ||
20 | public 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 index faedd6c4..a08bac5e 100644 --- a/Domains/crossingScenario/ecore-gen/crossingScenario/Pedestrian.java +++ b/Domains/crossingScenario/ecore-gen/crossingScenario/Pedestrian.java | |||
@@ -1,17 +1,17 @@ | |||
1 | /** | 1 | /** |
2 | */ | 2 | */ |
3 | package crossingScenario; | 3 | package crossingScenario; |
4 | 4 | ||
5 | 5 | ||
6 | /** | 6 | /** |
7 | * <!-- begin-user-doc --> | 7 | * <!-- begin-user-doc --> |
8 | * A representation of the model object '<em><b>Pedestrian</b></em>'. | 8 | * A representation of the model object '<em><b>Pedestrian</b></em>'. |
9 | * <!-- end-user-doc --> | 9 | * <!-- end-user-doc --> |
10 | * | 10 | * |
11 | * | 11 | * |
12 | * @see crossingScenario.CrossingScenarioPackage#getPedestrian() | 12 | * @see crossingScenario.CrossingScenarioPackage#getPedestrian() |
13 | * @model | 13 | * @model |
14 | * @generated | 14 | * @generated |
15 | */ | 15 | */ |
16 | public interface Pedestrian extends Actor { | 16 | public interface Pedestrian extends Actor { |
17 | } // Pedestrian | 17 | } // Pedestrian |
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/Relation.java b/Domains/crossingScenario/ecore-gen/crossingScenario/Relation.java index 75a3f58f..f5b7c16e 100644 --- a/Domains/crossingScenario/ecore-gen/crossingScenario/Relation.java +++ b/Domains/crossingScenario/ecore-gen/crossingScenario/Relation.java | |||
@@ -1,69 +1,69 @@ | |||
1 | /** | 1 | /** |
2 | */ | 2 | */ |
3 | package crossingScenario; | 3 | package crossingScenario; |
4 | 4 | ||
5 | import org.eclipse.emf.ecore.EObject; | 5 | import org.eclipse.emf.ecore.EObject; |
6 | 6 | ||
7 | /** | 7 | /** |
8 | * <!-- begin-user-doc --> | 8 | * <!-- begin-user-doc --> |
9 | * A representation of the model object '<em><b>Relation</b></em>'. | 9 | * A representation of the model object '<em><b>Relation</b></em>'. |
10 | * <!-- end-user-doc --> | 10 | * <!-- end-user-doc --> |
11 | * | 11 | * |
12 | * <p> | 12 | * <p> |
13 | * The following features are supported: | 13 | * The following features are supported: |
14 | * </p> | 14 | * </p> |
15 | * <ul> | 15 | * <ul> |
16 | * <li>{@link crossingScenario.Relation#getTarget <em>Target</em>}</li> | 16 | * <li>{@link crossingScenario.Relation#getTarget <em>Target</em>}</li> |
17 | * <li>{@link crossingScenario.Relation#getSource <em>Source</em>}</li> | 17 | * <li>{@link crossingScenario.Relation#getSource <em>Source</em>}</li> |
18 | * </ul> | 18 | * </ul> |
19 | * | 19 | * |
20 | * @see crossingScenario.CrossingScenarioPackage#getRelation() | 20 | * @see crossingScenario.CrossingScenarioPackage#getRelation() |
21 | * @model abstract="true" | 21 | * @model abstract="true" |
22 | * @generated | 22 | * @generated |
23 | */ | 23 | */ |
24 | public interface Relation extends EObject { | 24 | public interface Relation extends EObject { |
25 | /** | 25 | /** |
26 | * Returns the value of the '<em><b>Target</b></em>' reference. | 26 | * Returns the value of the '<em><b>Target</b></em>' reference. |
27 | * <!-- begin-user-doc --> | 27 | * <!-- begin-user-doc --> |
28 | * <!-- end-user-doc --> | 28 | * <!-- end-user-doc --> |
29 | * @return the value of the '<em>Target</em>' reference. | 29 | * @return the value of the '<em>Target</em>' reference. |
30 | * @see #setTarget(Actor) | 30 | * @see #setTarget(Actor) |
31 | * @see crossingScenario.CrossingScenarioPackage#getRelation_Target() | 31 | * @see crossingScenario.CrossingScenarioPackage#getRelation_Target() |
32 | * @model required="true" | 32 | * @model required="true" |
33 | * @generated | 33 | * @generated |
34 | */ | 34 | */ |
35 | Actor getTarget(); | 35 | Actor getTarget(); |
36 | 36 | ||
37 | /** | 37 | /** |
38 | * Sets the value of the '{@link crossingScenario.Relation#getTarget <em>Target</em>}' reference. | 38 | * Sets the value of the '{@link crossingScenario.Relation#getTarget <em>Target</em>}' reference. |
39 | * <!-- begin-user-doc --> | 39 | * <!-- begin-user-doc --> |
40 | * <!-- end-user-doc --> | 40 | * <!-- end-user-doc --> |
41 | * @param value the new value of the '<em>Target</em>' reference. | 41 | * @param value the new value of the '<em>Target</em>' reference. |
42 | * @see #getTarget() | 42 | * @see #getTarget() |
43 | * @generated | 43 | * @generated |
44 | */ | 44 | */ |
45 | void setTarget(Actor value); | 45 | void setTarget(Actor value); |
46 | 46 | ||
47 | /** | 47 | /** |
48 | * Returns the value of the '<em><b>Source</b></em>' reference. | 48 | * Returns the value of the '<em><b>Source</b></em>' reference. |
49 | * <!-- begin-user-doc --> | 49 | * <!-- begin-user-doc --> |
50 | * <!-- end-user-doc --> | 50 | * <!-- end-user-doc --> |
51 | * @return the value of the '<em>Source</em>' reference. | 51 | * @return the value of the '<em>Source</em>' reference. |
52 | * @see #setSource(Actor) | 52 | * @see #setSource(Actor) |
53 | * @see crossingScenario.CrossingScenarioPackage#getRelation_Source() | 53 | * @see crossingScenario.CrossingScenarioPackage#getRelation_Source() |
54 | * @model required="true" | 54 | * @model required="true" |
55 | * @generated | 55 | * @generated |
56 | */ | 56 | */ |
57 | Actor getSource(); | 57 | Actor getSource(); |
58 | 58 | ||
59 | /** | 59 | /** |
60 | * Sets the value of the '{@link crossingScenario.Relation#getSource <em>Source</em>}' reference. | 60 | * Sets the value of the '{@link crossingScenario.Relation#getSource <em>Source</em>}' reference. |
61 | * <!-- begin-user-doc --> | 61 | * <!-- begin-user-doc --> |
62 | * <!-- end-user-doc --> | 62 | * <!-- end-user-doc --> |
63 | * @param value the new value of the '<em>Source</em>' reference. | 63 | * @param value the new value of the '<em>Source</em>' reference. |
64 | * @see #getSource() | 64 | * @see #getSource() |
65 | * @generated | 65 | * @generated |
66 | */ | 66 | */ |
67 | void setSource(Actor value); | 67 | void setSource(Actor value); |
68 | 68 | ||
69 | } // Relation | 69 | } // Relation |
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/SeparationDistance.java b/Domains/crossingScenario/ecore-gen/crossingScenario/SeparationDistance.java deleted file mode 100644 index 37e31607..00000000 --- a/Domains/crossingScenario/ecore-gen/crossingScenario/SeparationDistance.java +++ /dev/null | |||
@@ -1,48 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package 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 | */ | ||
22 | public 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 deleted file mode 100644 index 1465201c..00000000 --- a/Domains/crossingScenario/ecore-gen/crossingScenario/Size.java +++ /dev/null | |||
@@ -1,228 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package crossingScenario; | ||
4 | |||
5 | import java.util.Arrays; | ||
6 | import java.util.Collections; | ||
7 | import java.util.List; | ||
8 | |||
9 | import 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 | */ | ||
20 | public enum Size implements Enumerator { | ||
21 | /** | ||
22 | * The '<em><b>SSmall</b></em>' literal object. | ||
23 | * <!-- begin-user-doc --> | ||
24 | * <!-- end-user-doc --> | ||
25 | * @see #SSMALL_VALUE | ||
26 | * @generated | ||
27 | * @ordered | ||
28 | */ | ||
29 | SSMALL(0, "S_Small", "S_Small"), /** | ||
30 | * The '<em><b>SMed</b></em>' literal object. | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @see #SMED_VALUE | ||
34 | * @generated | ||
35 | * @ordered | ||
36 | */ | ||
37 | SMED(1, "S_Med", "S_Med"), /** | ||
38 | * The '<em><b>SLarge</b></em>' literal object. | ||
39 | * <!-- begin-user-doc --> | ||
40 | * <!-- end-user-doc --> | ||
41 | * @see #SLARGE_VALUE | ||
42 | * @generated | ||
43 | * @ordered | ||
44 | */ | ||
45 | SLARGE(2, "S_Large", "S_Large"); | ||
46 | |||
47 | /** | ||
48 | * The '<em><b>SSmall</b></em>' literal value. | ||
49 | * <!-- begin-user-doc --> | ||
50 | * <!-- end-user-doc --> | ||
51 | * @see #SSMALL | ||
52 | * @model name="S_Small" | ||
53 | * @generated | ||
54 | * @ordered | ||
55 | */ | ||
56 | public static final int SSMALL_VALUE = 0; | ||
57 | |||
58 | /** | ||
59 | * The '<em><b>SMed</b></em>' literal value. | ||
60 | * <!-- begin-user-doc --> | ||
61 | * <!-- end-user-doc --> | ||
62 | * @see #SMED | ||
63 | * @model name="S_Med" | ||
64 | * @generated | ||
65 | * @ordered | ||
66 | */ | ||
67 | public static final int SMED_VALUE = 1; | ||
68 | |||
69 | /** | ||
70 | * The '<em><b>SLarge</b></em>' literal value. | ||
71 | * <!-- begin-user-doc --> | ||
72 | * <!-- end-user-doc --> | ||
73 | * @see #SLARGE | ||
74 | * @model name="S_Large" | ||
75 | * @generated | ||
76 | * @ordered | ||
77 | */ | ||
78 | public static final int SLARGE_VALUE = 2; | ||
79 | |||
80 | /** | ||
81 | * An array of all the '<em><b>Size</b></em>' enumerators. | ||
82 | * <!-- begin-user-doc --> | ||
83 | * <!-- end-user-doc --> | ||
84 | * @generated | ||
85 | */ | ||
86 | private static final Size[] VALUES_ARRAY = | ||
87 | new Size[] { | ||
88 | SSMALL, | ||
89 | SMED, | ||
90 | SLARGE, | ||
91 | }; | ||
92 | |||
93 | /** | ||
94 | * A public read-only list of all the '<em><b>Size</b></em>' enumerators. | ||
95 | * <!-- begin-user-doc --> | ||
96 | * <!-- end-user-doc --> | ||
97 | * @generated | ||
98 | */ | ||
99 | public static final List<Size> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); | ||
100 | |||
101 | /** | ||
102 | * Returns the '<em><b>Size</b></em>' literal with the specified literal value. | ||
103 | * <!-- begin-user-doc --> | ||
104 | * <!-- end-user-doc --> | ||
105 | * @param literal the literal. | ||
106 | * @return the matching enumerator or <code>null</code>. | ||
107 | * @generated | ||
108 | */ | ||
109 | public static Size get(String literal) { | ||
110 | for (int i = 0; i < VALUES_ARRAY.length; ++i) { | ||
111 | Size result = VALUES_ARRAY[i]; | ||
112 | if (result.toString().equals(literal)) { | ||
113 | return result; | ||
114 | } | ||
115 | } | ||
116 | return null; | ||
117 | } | ||
118 | |||
119 | /** | ||
120 | * Returns the '<em><b>Size</b></em>' literal with the specified name. | ||
121 | * <!-- begin-user-doc --> | ||
122 | * <!-- end-user-doc --> | ||
123 | * @param name the name. | ||
124 | * @return the matching enumerator or <code>null</code>. | ||
125 | * @generated | ||
126 | */ | ||
127 | public static Size getByName(String name) { | ||
128 | for (int i = 0; i < VALUES_ARRAY.length; ++i) { | ||
129 | Size result = VALUES_ARRAY[i]; | ||
130 | if (result.getName().equals(name)) { | ||
131 | return result; | ||
132 | } | ||
133 | } | ||
134 | return null; | ||
135 | } | ||
136 | |||
137 | /** | ||
138 | * Returns the '<em><b>Size</b></em>' literal with the specified integer value. | ||
139 | * <!-- begin-user-doc --> | ||
140 | * <!-- end-user-doc --> | ||
141 | * @param value the integer value. | ||
142 | * @return the matching enumerator or <code>null</code>. | ||
143 | * @generated | ||
144 | */ | ||
145 | public static Size get(int value) { | ||
146 | switch (value) { | ||
147 | case SSMALL_VALUE: return SSMALL; | ||
148 | case SMED_VALUE: return SMED; | ||
149 | case SLARGE_VALUE: return SLARGE; | ||
150 | } | ||
151 | return null; | ||
152 | } | ||
153 | |||
154 | /** | ||
155 | * <!-- begin-user-doc --> | ||
156 | * <!-- end-user-doc --> | ||
157 | * @generated | ||
158 | */ | ||
159 | private final int value; | ||
160 | |||
161 | /** | ||
162 | * <!-- begin-user-doc --> | ||
163 | * <!-- end-user-doc --> | ||
164 | * @generated | ||
165 | */ | ||
166 | private final String name; | ||
167 | |||
168 | /** | ||
169 | * <!-- begin-user-doc --> | ||
170 | * <!-- end-user-doc --> | ||
171 | * @generated | ||
172 | */ | ||
173 | private final String literal; | ||
174 | |||
175 | /** | ||
176 | * Only this class can construct instances. | ||
177 | * <!-- begin-user-doc --> | ||
178 | * <!-- end-user-doc --> | ||
179 | * @generated | ||
180 | */ | ||
181 | private Size(int value, String name, String literal) { | ||
182 | this.value = value; | ||
183 | this.name = name; | ||
184 | this.literal = literal; | ||
185 | } | ||
186 | |||
187 | /** | ||
188 | * <!-- begin-user-doc --> | ||
189 | * <!-- end-user-doc --> | ||
190 | * @generated | ||
191 | */ | ||
192 | @Override | ||
193 | public int getValue() { | ||
194 | return value; | ||
195 | } | ||
196 | |||
197 | /** | ||
198 | * <!-- begin-user-doc --> | ||
199 | * <!-- end-user-doc --> | ||
200 | * @generated | ||
201 | */ | ||
202 | @Override | ||
203 | public String getName() { | ||
204 | return name; | ||
205 | } | ||
206 | |||
207 | /** | ||
208 | * <!-- begin-user-doc --> | ||
209 | * <!-- end-user-doc --> | ||
210 | * @generated | ||
211 | */ | ||
212 | @Override | ||
213 | public String getLiteral() { | ||
214 | return literal; | ||
215 | } | ||
216 | |||
217 | /** | ||
218 | * Returns the literal value of the enumerator, which is its string representation. | ||
219 | * <!-- begin-user-doc --> | ||
220 | * <!-- end-user-doc --> | ||
221 | * @generated | ||
222 | */ | ||
223 | @Override | ||
224 | public String toString() { | ||
225 | return literal; | ||
226 | } | ||
227 | |||
228 | } //Size | ||
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/SpatialRelation.java b/Domains/crossingScenario/ecore-gen/crossingScenario/SpatialRelation.java index 495ac20c..fa13137d 100644 --- a/Domains/crossingScenario/ecore-gen/crossingScenario/SpatialRelation.java +++ b/Domains/crossingScenario/ecore-gen/crossingScenario/SpatialRelation.java | |||
@@ -1,17 +1,17 @@ | |||
1 | /** | 1 | /** |
2 | */ | 2 | */ |
3 | package crossingScenario; | 3 | package crossingScenario; |
4 | 4 | ||
5 | 5 | ||
6 | /** | 6 | /** |
7 | * <!-- begin-user-doc --> | 7 | * <!-- begin-user-doc --> |
8 | * A representation of the model object '<em><b>Spatial Relation</b></em>'. | 8 | * A representation of the model object '<em><b>Spatial Relation</b></em>'. |
9 | * <!-- end-user-doc --> | 9 | * <!-- end-user-doc --> |
10 | * | 10 | * |
11 | * | 11 | * |
12 | * @see crossingScenario.CrossingScenarioPackage#getSpatialRelation() | 12 | * @see crossingScenario.CrossingScenarioPackage#getSpatialRelation() |
13 | * @model abstract="true" | 13 | * @model abstract="true" |
14 | * @generated | 14 | * @generated |
15 | */ | 15 | */ |
16 | public interface SpatialRelation extends Relation { | 16 | public interface SpatialRelation extends Relation { |
17 | } // SpatialRelation | 17 | } // SpatialRelation |
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/TemporalRelation.java b/Domains/crossingScenario/ecore-gen/crossingScenario/TemporalRelation.java index 2f688d4a..3a537975 100644 --- a/Domains/crossingScenario/ecore-gen/crossingScenario/TemporalRelation.java +++ b/Domains/crossingScenario/ecore-gen/crossingScenario/TemporalRelation.java | |||
@@ -1,17 +1,17 @@ | |||
1 | /** | 1 | /** |
2 | */ | 2 | */ |
3 | package crossingScenario; | 3 | package crossingScenario; |
4 | 4 | ||
5 | 5 | ||
6 | /** | 6 | /** |
7 | * <!-- begin-user-doc --> | 7 | * <!-- begin-user-doc --> |
8 | * A representation of the model object '<em><b>Temporal Relation</b></em>'. | 8 | * A representation of the model object '<em><b>Temporal Relation</b></em>'. |
9 | * <!-- end-user-doc --> | 9 | * <!-- end-user-doc --> |
10 | * | 10 | * |
11 | * | 11 | * |
12 | * @see crossingScenario.CrossingScenarioPackage#getTemporalRelation() | 12 | * @see crossingScenario.CrossingScenarioPackage#getTemporalRelation() |
13 | * @model abstract="true" | 13 | * @model abstract="true" |
14 | * @generated | 14 | * @generated |
15 | */ | 15 | */ |
16 | public interface TemporalRelation extends Relation { | 16 | public interface TemporalRelation extends Relation { |
17 | } // TemporalRelation | 17 | } // TemporalRelation |
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/Vehicle.java b/Domains/crossingScenario/ecore-gen/crossingScenario/Vehicle.java index 7be9e3ba..fd2e78fa 100644 --- a/Domains/crossingScenario/ecore-gen/crossingScenario/Vehicle.java +++ b/Domains/crossingScenario/ecore-gen/crossingScenario/Vehicle.java | |||
@@ -1,17 +1,17 @@ | |||
1 | /** | 1 | /** |
2 | */ | 2 | */ |
3 | package crossingScenario; | 3 | package crossingScenario; |
4 | 4 | ||
5 | 5 | ||
6 | /** | 6 | /** |
7 | * <!-- begin-user-doc --> | 7 | * <!-- begin-user-doc --> |
8 | * A representation of the model object '<em><b>Vehicle</b></em>'. | 8 | * A representation of the model object '<em><b>Vehicle</b></em>'. |
9 | * <!-- end-user-doc --> | 9 | * <!-- end-user-doc --> |
10 | * | 10 | * |
11 | * | 11 | * |
12 | * @see crossingScenario.CrossingScenarioPackage#getVehicle() | 12 | * @see crossingScenario.CrossingScenarioPackage#getVehicle() |
13 | * @model | 13 | * @model |
14 | * @generated | 14 | * @generated |
15 | */ | 15 | */ |
16 | public interface Vehicle extends Actor { | 16 | public interface Vehicle extends Actor { |
17 | } // Vehicle | 17 | } // Vehicle |
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/VisionBlocked.java b/Domains/crossingScenario/ecore-gen/crossingScenario/VisionBlocked.java index 91e075ef..bacbf77f 100644 --- a/Domains/crossingScenario/ecore-gen/crossingScenario/VisionBlocked.java +++ b/Domains/crossingScenario/ecore-gen/crossingScenario/VisionBlocked.java | |||
@@ -1,45 +1,45 @@ | |||
1 | /** | 1 | /** |
2 | */ | 2 | */ |
3 | package crossingScenario; | 3 | package crossingScenario; |
4 | 4 | ||
5 | 5 | ||
6 | /** | 6 | /** |
7 | * <!-- begin-user-doc --> | 7 | * <!-- begin-user-doc --> |
8 | * A representation of the model object '<em><b>Vision Blocked</b></em>'. | 8 | * A representation of the model object '<em><b>Vision Blocked</b></em>'. |
9 | * <!-- end-user-doc --> | 9 | * <!-- end-user-doc --> |
10 | * | 10 | * |
11 | * <p> | 11 | * <p> |
12 | * The following features are supported: | 12 | * The following features are supported: |
13 | * </p> | 13 | * </p> |
14 | * <ul> | 14 | * <ul> |
15 | * <li>{@link crossingScenario.VisionBlocked#getBlockedBy <em>Blocked By</em>}</li> | 15 | * <li>{@link crossingScenario.VisionBlocked#getBlockedBy <em>Blocked By</em>}</li> |
16 | * </ul> | 16 | * </ul> |
17 | * | 17 | * |
18 | * @see crossingScenario.CrossingScenarioPackage#getVisionBlocked() | 18 | * @see crossingScenario.CrossingScenarioPackage#getVisionBlocked() |
19 | * @model | 19 | * @model |
20 | * @generated | 20 | * @generated |
21 | */ | 21 | */ |
22 | public interface VisionBlocked extends SpatialRelation { | 22 | public interface VisionBlocked extends SpatialRelation { |
23 | /** | 23 | /** |
24 | * Returns the value of the '<em><b>Blocked By</b></em>' reference. | 24 | * Returns the value of the '<em><b>Blocked By</b></em>' reference. |
25 | * <!-- begin-user-doc --> | 25 | * <!-- begin-user-doc --> |
26 | * <!-- end-user-doc --> | 26 | * <!-- end-user-doc --> |
27 | * @return the value of the '<em>Blocked By</em>' reference. | 27 | * @return the value of the '<em>Blocked By</em>' reference. |
28 | * @see #setBlockedBy(Actor) | 28 | * @see #setBlockedBy(Actor) |
29 | * @see crossingScenario.CrossingScenarioPackage#getVisionBlocked_BlockedBy() | 29 | * @see crossingScenario.CrossingScenarioPackage#getVisionBlocked_BlockedBy() |
30 | * @model required="true" | 30 | * @model required="true" |
31 | * @generated | 31 | * @generated |
32 | */ | 32 | */ |
33 | Actor getBlockedBy(); | 33 | Actor getBlockedBy(); |
34 | 34 | ||
35 | /** | 35 | /** |
36 | * Sets the value of the '{@link crossingScenario.VisionBlocked#getBlockedBy <em>Blocked By</em>}' reference. | 36 | * Sets the value of the '{@link crossingScenario.VisionBlocked#getBlockedBy <em>Blocked By</em>}' reference. |
37 | * <!-- begin-user-doc --> | 37 | * <!-- begin-user-doc --> |
38 | * <!-- end-user-doc --> | 38 | * <!-- end-user-doc --> |
39 | * @param value the new value of the '<em>Blocked By</em>' reference. | 39 | * @param value the new value of the '<em>Blocked By</em>' reference. |
40 | * @see #getBlockedBy() | 40 | * @see #getBlockedBy() |
41 | * @generated | 41 | * @generated |
42 | */ | 42 | */ |
43 | void setBlockedBy(Actor value); | 43 | void setBlockedBy(Actor value); |
44 | 44 | ||
45 | } // VisionBlocked | 45 | } // VisionBlocked |
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/impl/ActorImpl.java b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/ActorImpl.java index a308360b..52d251e0 100644 --- a/Domains/crossingScenario/ecore-gen/crossingScenario/impl/ActorImpl.java +++ b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/ActorImpl.java | |||
@@ -1,644 +1,645 @@ | |||
1 | /** | 1 | /** |
2 | */ | 2 | */ |
3 | package crossingScenario.impl; | 3 | package crossingScenario.impl; |
4 | 4 | ||
5 | import crossingScenario.Actor; | 5 | import crossingScenario.Actor; |
6 | import crossingScenario.CrossingScenarioPackage; | 6 | import crossingScenario.CrossingScenarioPackage; |
7 | import crossingScenario.Lane; | 7 | import crossingScenario.Lane; |
8 | import java.util.Collection; | 8 | |
9 | 9 | import java.util.Collection; | |
10 | import org.eclipse.emf.common.notify.Notification; | 10 | |
11 | import org.eclipse.emf.common.notify.NotificationChain; | 11 | import org.eclipse.emf.common.notify.Notification; |
12 | 12 | import org.eclipse.emf.common.notify.NotificationChain; | |
13 | import org.eclipse.emf.common.util.EList; | 13 | |
14 | 14 | import org.eclipse.emf.common.util.EList; | |
15 | import org.eclipse.emf.ecore.EClass; | 15 | |
16 | import org.eclipse.emf.ecore.InternalEObject; | 16 | import org.eclipse.emf.ecore.EClass; |
17 | 17 | import org.eclipse.emf.ecore.InternalEObject; | |
18 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | 18 | |
19 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | 19 | import org.eclipse.emf.ecore.impl.ENotificationImpl; |
20 | 20 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | |
21 | /** | 21 | |
22 | * <!-- begin-user-doc --> | 22 | /** |
23 | * An implementation of the model object '<em><b>Actor</b></em>'. | 23 | * <!-- begin-user-doc --> |
24 | * <!-- end-user-doc --> | 24 | * An implementation of the model object '<em><b>Actor</b></em>'. |
25 | * <p> | 25 | * <!-- end-user-doc --> |
26 | * The following features are implemented: | 26 | * <p> |
27 | * </p> | 27 | * The following features are implemented: |
28 | * <ul> | 28 | * </p> |
29 | * <li>{@link crossingScenario.impl.ActorImpl#getXPos <em>XPos</em>}</li> | 29 | * <ul> |
30 | * <li>{@link crossingScenario.impl.ActorImpl#getYPos <em>YPos</em>}</li> | 30 | * <li>{@link crossingScenario.impl.ActorImpl#getXPos <em>XPos</em>}</li> |
31 | * <li>{@link crossingScenario.impl.ActorImpl#getLength <em>Length</em>}</li> | 31 | * <li>{@link crossingScenario.impl.ActorImpl#getYPos <em>YPos</em>}</li> |
32 | * <li>{@link crossingScenario.impl.ActorImpl#getWidth <em>Width</em>}</li> | 32 | * <li>{@link crossingScenario.impl.ActorImpl#getLength <em>Length</em>}</li> |
33 | * <li>{@link crossingScenario.impl.ActorImpl#getXSpeed <em>XSpeed</em>}</li> | 33 | * <li>{@link crossingScenario.impl.ActorImpl#getWidth <em>Width</em>}</li> |
34 | * <li>{@link crossingScenario.impl.ActorImpl#getPlacedOn <em>Placed On</em>}</li> | 34 | * <li>{@link crossingScenario.impl.ActorImpl#getXSpeed <em>XSpeed</em>}</li> |
35 | * <li>{@link crossingScenario.impl.ActorImpl#getYSpeed <em>YSpeed</em>}</li> | 35 | * <li>{@link crossingScenario.impl.ActorImpl#getPlacedOn <em>Placed On</em>}</li> |
36 | * <li>{@link crossingScenario.impl.ActorImpl#getDist_near <em>Dist near</em>}</li> | 36 | * <li>{@link crossingScenario.impl.ActorImpl#getYSpeed <em>YSpeed</em>}</li> |
37 | * <li>{@link crossingScenario.impl.ActorImpl#getDist_med <em>Dist med</em>}</li> | 37 | * <li>{@link crossingScenario.impl.ActorImpl#getDist_near <em>Dist near</em>}</li> |
38 | * <li>{@link crossingScenario.impl.ActorImpl#getDist_far <em>Dist far</em>}</li> | 38 | * <li>{@link crossingScenario.impl.ActorImpl#getDist_med <em>Dist med</em>}</li> |
39 | * </ul> | 39 | * <li>{@link crossingScenario.impl.ActorImpl#getDist_far <em>Dist far</em>}</li> |
40 | * | 40 | * </ul> |
41 | * @generated | 41 | * |
42 | */ | 42 | * @generated |
43 | public abstract class ActorImpl extends MinimalEObjectImpl.Container implements Actor { | 43 | */ |
44 | /** | 44 | public abstract class ActorImpl extends MinimalEObjectImpl.Container implements Actor { |
45 | * The default value of the '{@link #getXPos() <em>XPos</em>}' attribute. | 45 | /** |
46 | * <!-- begin-user-doc --> | 46 | * The default value of the '{@link #getXPos() <em>XPos</em>}' attribute. |
47 | * <!-- end-user-doc --> | 47 | * <!-- begin-user-doc --> |
48 | * @see #getXPos() | 48 | * <!-- end-user-doc --> |
49 | * @generated | 49 | * @see #getXPos() |
50 | * @ordered | 50 | * @generated |
51 | */ | 51 | * @ordered |
52 | protected static final double XPOS_EDEFAULT = 0.0; | 52 | */ |
53 | 53 | protected static final double XPOS_EDEFAULT = 0.0; | |
54 | /** | 54 | |
55 | * The cached value of the '{@link #getXPos() <em>XPos</em>}' attribute. | 55 | /** |
56 | * <!-- begin-user-doc --> | 56 | * The cached value of the '{@link #getXPos() <em>XPos</em>}' attribute. |
57 | * <!-- end-user-doc --> | 57 | * <!-- begin-user-doc --> |
58 | * @see #getXPos() | 58 | * <!-- end-user-doc --> |
59 | * @generated | 59 | * @see #getXPos() |
60 | * @ordered | 60 | * @generated |
61 | */ | 61 | * @ordered |
62 | protected double xPos = XPOS_EDEFAULT; | 62 | */ |
63 | 63 | protected double xPos = XPOS_EDEFAULT; | |
64 | /** | 64 | |
65 | * The default value of the '{@link #getYPos() <em>YPos</em>}' attribute. | 65 | /** |
66 | * <!-- begin-user-doc --> | 66 | * The default value of the '{@link #getYPos() <em>YPos</em>}' attribute. |
67 | * <!-- end-user-doc --> | 67 | * <!-- begin-user-doc --> |
68 | * @see #getYPos() | 68 | * <!-- end-user-doc --> |
69 | * @generated | 69 | * @see #getYPos() |
70 | * @ordered | 70 | * @generated |
71 | */ | 71 | * @ordered |
72 | protected static final double YPOS_EDEFAULT = 0.0; | 72 | */ |
73 | 73 | protected static final double YPOS_EDEFAULT = 0.0; | |
74 | /** | 74 | |
75 | * The cached value of the '{@link #getYPos() <em>YPos</em>}' attribute. | 75 | /** |
76 | * <!-- begin-user-doc --> | 76 | * The cached value of the '{@link #getYPos() <em>YPos</em>}' attribute. |
77 | * <!-- end-user-doc --> | 77 | * <!-- begin-user-doc --> |
78 | * @see #getYPos() | 78 | * <!-- end-user-doc --> |
79 | * @generated | 79 | * @see #getYPos() |
80 | * @ordered | 80 | * @generated |
81 | */ | 81 | * @ordered |
82 | protected double yPos = YPOS_EDEFAULT; | 82 | */ |
83 | 83 | protected double yPos = YPOS_EDEFAULT; | |
84 | /** | 84 | |
85 | * The default value of the '{@link #getLength() <em>Length</em>}' attribute. | 85 | /** |
86 | * <!-- begin-user-doc --> | 86 | * The default value of the '{@link #getLength() <em>Length</em>}' attribute. |
87 | * <!-- end-user-doc --> | 87 | * <!-- begin-user-doc --> |
88 | * @see #getLength() | 88 | * <!-- end-user-doc --> |
89 | * @generated | 89 | * @see #getLength() |
90 | * @ordered | 90 | * @generated |
91 | */ | 91 | * @ordered |
92 | protected static final double LENGTH_EDEFAULT = 0.0; | 92 | */ |
93 | 93 | protected static final double LENGTH_EDEFAULT = 0.0; | |
94 | /** | 94 | |
95 | * The cached value of the '{@link #getLength() <em>Length</em>}' attribute. | 95 | /** |
96 | * <!-- begin-user-doc --> | 96 | * The cached value of the '{@link #getLength() <em>Length</em>}' attribute. |
97 | * <!-- end-user-doc --> | 97 | * <!-- begin-user-doc --> |
98 | * @see #getLength() | 98 | * <!-- end-user-doc --> |
99 | * @generated | 99 | * @see #getLength() |
100 | * @ordered | 100 | * @generated |
101 | */ | 101 | * @ordered |
102 | protected double length = LENGTH_EDEFAULT; | 102 | */ |
103 | 103 | protected double length = LENGTH_EDEFAULT; | |
104 | /** | 104 | |
105 | * The default value of the '{@link #getWidth() <em>Width</em>}' attribute. | 105 | /** |
106 | * <!-- begin-user-doc --> | 106 | * The default value of the '{@link #getWidth() <em>Width</em>}' attribute. |
107 | * <!-- end-user-doc --> | 107 | * <!-- begin-user-doc --> |
108 | * @see #getWidth() | 108 | * <!-- end-user-doc --> |
109 | * @generated | 109 | * @see #getWidth() |
110 | * @ordered | 110 | * @generated |
111 | */ | 111 | * @ordered |
112 | protected static final double WIDTH_EDEFAULT = 0.0; | 112 | */ |
113 | 113 | protected static final double WIDTH_EDEFAULT = 0.0; | |
114 | /** | 114 | |
115 | * The cached value of the '{@link #getWidth() <em>Width</em>}' attribute. | 115 | /** |
116 | * <!-- begin-user-doc --> | 116 | * The cached value of the '{@link #getWidth() <em>Width</em>}' attribute. |
117 | * <!-- end-user-doc --> | 117 | * <!-- begin-user-doc --> |
118 | * @see #getWidth() | 118 | * <!-- end-user-doc --> |
119 | * @generated | 119 | * @see #getWidth() |
120 | * @ordered | 120 | * @generated |
121 | */ | 121 | * @ordered |
122 | protected double width = WIDTH_EDEFAULT; | 122 | */ |
123 | 123 | protected double width = WIDTH_EDEFAULT; | |
124 | /** | 124 | |
125 | * The default value of the '{@link #getXSpeed() <em>XSpeed</em>}' attribute. | 125 | /** |
126 | * <!-- begin-user-doc --> | 126 | * The default value of the '{@link #getXSpeed() <em>XSpeed</em>}' attribute. |
127 | * <!-- end-user-doc --> | 127 | * <!-- begin-user-doc --> |
128 | * @see #getXSpeed() | 128 | * <!-- end-user-doc --> |
129 | * @generated | 129 | * @see #getXSpeed() |
130 | * @ordered | 130 | * @generated |
131 | */ | 131 | * @ordered |
132 | protected static final double XSPEED_EDEFAULT = 0.0; | 132 | */ |
133 | 133 | protected static final double XSPEED_EDEFAULT = 0.0; | |
134 | /** | 134 | |
135 | * The cached value of the '{@link #getXSpeed() <em>XSpeed</em>}' attribute. | 135 | /** |
136 | * <!-- begin-user-doc --> | 136 | * The cached value of the '{@link #getXSpeed() <em>XSpeed</em>}' attribute. |
137 | * <!-- end-user-doc --> | 137 | * <!-- begin-user-doc --> |
138 | * @see #getXSpeed() | 138 | * <!-- end-user-doc --> |
139 | * @generated | 139 | * @see #getXSpeed() |
140 | * @ordered | 140 | * @generated |
141 | */ | 141 | * @ordered |
142 | protected double xSpeed = XSPEED_EDEFAULT; | 142 | */ |
143 | 143 | protected double xSpeed = XSPEED_EDEFAULT; | |
144 | /** | 144 | |
145 | * The cached value of the '{@link #getPlacedOn() <em>Placed On</em>}' reference. | 145 | /** |
146 | * <!-- begin-user-doc --> | 146 | * The cached value of the '{@link #getPlacedOn() <em>Placed On</em>}' reference. |
147 | * <!-- end-user-doc --> | 147 | * <!-- begin-user-doc --> |
148 | * @see #getPlacedOn() | 148 | * <!-- end-user-doc --> |
149 | * @generated | 149 | * @see #getPlacedOn() |
150 | * @ordered | 150 | * @generated |
151 | */ | 151 | * @ordered |
152 | protected Lane placedOn; | 152 | */ |
153 | 153 | protected Lane placedOn; | |
154 | /** | 154 | |
155 | * The default value of the '{@link #getYSpeed() <em>YSpeed</em>}' attribute. | 155 | /** |
156 | * <!-- begin-user-doc --> | 156 | * The default value of the '{@link #getYSpeed() <em>YSpeed</em>}' attribute. |
157 | * <!-- end-user-doc --> | 157 | * <!-- begin-user-doc --> |
158 | * @see #getYSpeed() | 158 | * <!-- end-user-doc --> |
159 | * @generated | 159 | * @see #getYSpeed() |
160 | * @ordered | 160 | * @generated |
161 | */ | 161 | * @ordered |
162 | protected static final double YSPEED_EDEFAULT = 0.0; | 162 | */ |
163 | 163 | protected static final double YSPEED_EDEFAULT = 0.0; | |
164 | /** | 164 | |
165 | * The cached value of the '{@link #getYSpeed() <em>YSpeed</em>}' attribute. | 165 | /** |
166 | * <!-- begin-user-doc --> | 166 | * The cached value of the '{@link #getYSpeed() <em>YSpeed</em>}' attribute. |
167 | * <!-- end-user-doc --> | 167 | * <!-- begin-user-doc --> |
168 | * @see #getYSpeed() | 168 | * <!-- end-user-doc --> |
169 | * @generated | 169 | * @see #getYSpeed() |
170 | * @ordered | 170 | * @generated |
171 | */ | 171 | * @ordered |
172 | protected double ySpeed = YSPEED_EDEFAULT; | 172 | */ |
173 | 173 | protected double ySpeed = YSPEED_EDEFAULT; | |
174 | /** | 174 | |
175 | * <!-- begin-user-doc --> | 175 | /** |
176 | * <!-- end-user-doc --> | 176 | * <!-- begin-user-doc --> |
177 | * @generated | 177 | * <!-- end-user-doc --> |
178 | */ | 178 | * @generated |
179 | protected ActorImpl() { | 179 | */ |
180 | super(); | 180 | protected ActorImpl() { |
181 | } | 181 | super(); |
182 | 182 | } | |
183 | /** | 183 | |
184 | * <!-- begin-user-doc --> | 184 | /** |
185 | * <!-- end-user-doc --> | 185 | * <!-- begin-user-doc --> |
186 | * @generated | 186 | * <!-- end-user-doc --> |
187 | */ | 187 | * @generated |
188 | @Override | 188 | */ |
189 | protected EClass eStaticClass() { | 189 | @Override |
190 | return CrossingScenarioPackage.Literals.ACTOR; | 190 | protected EClass eStaticClass() { |
191 | } | 191 | return CrossingScenarioPackage.Literals.ACTOR; |
192 | 192 | } | |
193 | /** | 193 | |
194 | * <!-- begin-user-doc --> | 194 | /** |
195 | * <!-- end-user-doc --> | 195 | * <!-- begin-user-doc --> |
196 | * @generated | 196 | * <!-- end-user-doc --> |
197 | */ | 197 | * @generated |
198 | @Override | 198 | */ |
199 | public double getXPos() { | 199 | @Override |
200 | return xPos; | 200 | public double getXPos() { |
201 | } | 201 | return xPos; |
202 | 202 | } | |
203 | /** | 203 | |
204 | * <!-- begin-user-doc --> | 204 | /** |
205 | * <!-- end-user-doc --> | 205 | * <!-- begin-user-doc --> |
206 | * @generated | 206 | * <!-- end-user-doc --> |
207 | */ | 207 | * @generated |
208 | @Override | 208 | */ |
209 | public void setXPos(double newXPos) { | 209 | @Override |
210 | double oldXPos = xPos; | 210 | public void setXPos(double newXPos) { |
211 | xPos = newXPos; | 211 | double oldXPos = xPos; |
212 | if (eNotificationRequired()) | 212 | xPos = newXPos; |
213 | eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.ACTOR__XPOS, oldXPos, xPos)); | 213 | if (eNotificationRequired()) |
214 | } | 214 | eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.ACTOR__XPOS, oldXPos, xPos)); |
215 | 215 | } | |
216 | /** | 216 | |
217 | * <!-- begin-user-doc --> | 217 | /** |
218 | * <!-- end-user-doc --> | 218 | * <!-- begin-user-doc --> |
219 | * @generated | 219 | * <!-- end-user-doc --> |
220 | */ | 220 | * @generated |
221 | @Override | 221 | */ |
222 | public double getYPos() { | 222 | @Override |
223 | return yPos; | 223 | public double getYPos() { |
224 | } | 224 | return yPos; |
225 | 225 | } | |
226 | /** | 226 | |
227 | * <!-- begin-user-doc --> | 227 | /** |
228 | * <!-- end-user-doc --> | 228 | * <!-- begin-user-doc --> |
229 | * @generated | 229 | * <!-- end-user-doc --> |
230 | */ | 230 | * @generated |
231 | @Override | 231 | */ |
232 | public void setYPos(double newYPos) { | 232 | @Override |
233 | double oldYPos = yPos; | 233 | public void setYPos(double newYPos) { |
234 | yPos = newYPos; | 234 | double oldYPos = yPos; |
235 | if (eNotificationRequired()) | 235 | yPos = newYPos; |
236 | eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.ACTOR__YPOS, oldYPos, yPos)); | 236 | if (eNotificationRequired()) |
237 | } | 237 | eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.ACTOR__YPOS, oldYPos, yPos)); |
238 | 238 | } | |
239 | /** | 239 | |
240 | * <!-- begin-user-doc --> | 240 | /** |
241 | * <!-- end-user-doc --> | 241 | * <!-- begin-user-doc --> |
242 | * @generated | 242 | * <!-- end-user-doc --> |
243 | */ | 243 | * @generated |
244 | @Override | 244 | */ |
245 | public double getLength() { | 245 | @Override |
246 | return length; | 246 | public double getLength() { |
247 | } | 247 | return length; |
248 | 248 | } | |
249 | /** | 249 | |
250 | * <!-- begin-user-doc --> | 250 | /** |
251 | * <!-- end-user-doc --> | 251 | * <!-- begin-user-doc --> |
252 | * @generated | 252 | * <!-- end-user-doc --> |
253 | */ | 253 | * @generated |
254 | @Override | 254 | */ |
255 | public void setLength(double newLength) { | 255 | @Override |
256 | double oldLength = length; | 256 | public void setLength(double newLength) { |
257 | length = newLength; | 257 | double oldLength = length; |
258 | if (eNotificationRequired()) | 258 | length = newLength; |
259 | eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.ACTOR__LENGTH, oldLength, length)); | 259 | if (eNotificationRequired()) |
260 | } | 260 | eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.ACTOR__LENGTH, oldLength, length)); |
261 | 261 | } | |
262 | /** | 262 | |
263 | * <!-- begin-user-doc --> | 263 | /** |
264 | * <!-- end-user-doc --> | 264 | * <!-- begin-user-doc --> |
265 | * @generated | 265 | * <!-- end-user-doc --> |
266 | */ | 266 | * @generated |
267 | @Override | 267 | */ |
268 | public double getWidth() { | 268 | @Override |
269 | return width; | 269 | public double getWidth() { |
270 | } | 270 | return width; |
271 | 271 | } | |
272 | /** | 272 | |
273 | * <!-- begin-user-doc --> | 273 | /** |
274 | * <!-- end-user-doc --> | 274 | * <!-- begin-user-doc --> |
275 | * @generated | 275 | * <!-- end-user-doc --> |
276 | */ | 276 | * @generated |
277 | @Override | 277 | */ |
278 | public void setWidth(double newWidth) { | 278 | @Override |
279 | double oldWidth = width; | 279 | public void setWidth(double newWidth) { |
280 | width = newWidth; | 280 | double oldWidth = width; |
281 | if (eNotificationRequired()) | 281 | width = newWidth; |
282 | eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.ACTOR__WIDTH, oldWidth, width)); | 282 | if (eNotificationRequired()) |
283 | } | 283 | eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.ACTOR__WIDTH, oldWidth, width)); |
284 | 284 | } | |
285 | /** | 285 | |
286 | * <!-- begin-user-doc --> | 286 | /** |
287 | * <!-- end-user-doc --> | 287 | * <!-- begin-user-doc --> |
288 | * @generated | 288 | * <!-- end-user-doc --> |
289 | */ | 289 | * @generated |
290 | @Override | 290 | */ |
291 | public double getXSpeed() { | 291 | @Override |
292 | return xSpeed; | 292 | public double getXSpeed() { |
293 | } | 293 | return xSpeed; |
294 | 294 | } | |
295 | /** | 295 | |
296 | * <!-- begin-user-doc --> | 296 | /** |
297 | * <!-- end-user-doc --> | 297 | * <!-- begin-user-doc --> |
298 | * @generated | 298 | * <!-- end-user-doc --> |
299 | */ | 299 | * @generated |
300 | @Override | 300 | */ |
301 | public void setXSpeed(double newXSpeed) { | 301 | @Override |
302 | double oldXSpeed = xSpeed; | 302 | public void setXSpeed(double newXSpeed) { |
303 | xSpeed = newXSpeed; | 303 | double oldXSpeed = xSpeed; |
304 | if (eNotificationRequired()) | 304 | xSpeed = newXSpeed; |
305 | eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.ACTOR__XSPEED, oldXSpeed, xSpeed)); | 305 | if (eNotificationRequired()) |
306 | } | 306 | eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.ACTOR__XSPEED, oldXSpeed, xSpeed)); |
307 | 307 | } | |
308 | /** | 308 | |
309 | * <!-- begin-user-doc --> | 309 | /** |
310 | * <!-- end-user-doc --> | 310 | * <!-- begin-user-doc --> |
311 | * @generated | 311 | * <!-- end-user-doc --> |
312 | */ | 312 | * @generated |
313 | @Override | 313 | */ |
314 | public Lane getPlacedOn() { | 314 | @Override |
315 | if (placedOn != null && placedOn.eIsProxy()) { | 315 | public Lane getPlacedOn() { |
316 | InternalEObject oldPlacedOn = (InternalEObject)placedOn; | 316 | if (placedOn != null && placedOn.eIsProxy()) { |
317 | placedOn = (Lane)eResolveProxy(oldPlacedOn); | 317 | InternalEObject oldPlacedOn = (InternalEObject)placedOn; |
318 | if (placedOn != oldPlacedOn) { | 318 | placedOn = (Lane)eResolveProxy(oldPlacedOn); |
319 | if (eNotificationRequired()) | 319 | if (placedOn != oldPlacedOn) { |
320 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, CrossingScenarioPackage.ACTOR__PLACED_ON, oldPlacedOn, placedOn)); | 320 | if (eNotificationRequired()) |
321 | } | 321 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, CrossingScenarioPackage.ACTOR__PLACED_ON, oldPlacedOn, placedOn)); |
322 | } | 322 | } |
323 | return placedOn; | 323 | } |
324 | } | 324 | return placedOn; |
325 | 325 | } | |
326 | /** | 326 | |
327 | * <!-- begin-user-doc --> | 327 | /** |
328 | * <!-- end-user-doc --> | 328 | * <!-- begin-user-doc --> |
329 | * @generated | 329 | * <!-- end-user-doc --> |
330 | */ | 330 | * @generated |
331 | public Lane basicGetPlacedOn() { | 331 | */ |
332 | return placedOn; | 332 | public Lane basicGetPlacedOn() { |
333 | } | 333 | return placedOn; |
334 | 334 | } | |
335 | /** | 335 | |
336 | * <!-- begin-user-doc --> | 336 | /** |
337 | * <!-- end-user-doc --> | 337 | * <!-- begin-user-doc --> |
338 | * @generated | 338 | * <!-- end-user-doc --> |
339 | */ | 339 | * @generated |
340 | public NotificationChain basicSetPlacedOn(Lane newPlacedOn, NotificationChain msgs) { | 340 | */ |
341 | Lane oldPlacedOn = placedOn; | 341 | public NotificationChain basicSetPlacedOn(Lane newPlacedOn, NotificationChain msgs) { |
342 | placedOn = newPlacedOn; | 342 | Lane oldPlacedOn = placedOn; |
343 | if (eNotificationRequired()) { | 343 | placedOn = newPlacedOn; |
344 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.ACTOR__PLACED_ON, oldPlacedOn, newPlacedOn); | 344 | if (eNotificationRequired()) { |
345 | if (msgs == null) msgs = notification; else msgs.add(notification); | 345 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.ACTOR__PLACED_ON, oldPlacedOn, newPlacedOn); |
346 | } | 346 | if (msgs == null) msgs = notification; else msgs.add(notification); |
347 | return msgs; | 347 | } |
348 | } | 348 | return msgs; |
349 | 349 | } | |
350 | /** | 350 | |
351 | * <!-- begin-user-doc --> | 351 | /** |
352 | * <!-- end-user-doc --> | 352 | * <!-- begin-user-doc --> |
353 | * @generated | 353 | * <!-- end-user-doc --> |
354 | */ | 354 | * @generated |
355 | @Override | 355 | */ |
356 | public void setPlacedOn(Lane newPlacedOn) { | 356 | @Override |
357 | if (newPlacedOn != placedOn) { | 357 | public void setPlacedOn(Lane newPlacedOn) { |
358 | NotificationChain msgs = null; | 358 | if (newPlacedOn != placedOn) { |
359 | if (placedOn != null) | 359 | NotificationChain msgs = null; |
360 | msgs = ((InternalEObject)placedOn).eInverseRemove(this, CrossingScenarioPackage.LANE__ACTORS, Lane.class, msgs); | 360 | if (placedOn != null) |
361 | if (newPlacedOn != null) | 361 | msgs = ((InternalEObject)placedOn).eInverseRemove(this, CrossingScenarioPackage.LANE__ACTORS, Lane.class, msgs); |
362 | msgs = ((InternalEObject)newPlacedOn).eInverseAdd(this, CrossingScenarioPackage.LANE__ACTORS, Lane.class, msgs); | 362 | if (newPlacedOn != null) |
363 | msgs = basicSetPlacedOn(newPlacedOn, msgs); | 363 | msgs = ((InternalEObject)newPlacedOn).eInverseAdd(this, CrossingScenarioPackage.LANE__ACTORS, Lane.class, msgs); |
364 | if (msgs != null) msgs.dispatch(); | 364 | msgs = basicSetPlacedOn(newPlacedOn, msgs); |
365 | } | 365 | if (msgs != null) msgs.dispatch(); |
366 | else if (eNotificationRequired()) | 366 | } |
367 | eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.ACTOR__PLACED_ON, newPlacedOn, newPlacedOn)); | 367 | else if (eNotificationRequired()) |
368 | } | 368 | eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.ACTOR__PLACED_ON, newPlacedOn, newPlacedOn)); |
369 | 369 | } | |
370 | /** | 370 | |
371 | * <!-- begin-user-doc --> | 371 | /** |
372 | * <!-- end-user-doc --> | 372 | * <!-- begin-user-doc --> |
373 | * @generated | 373 | * <!-- end-user-doc --> |
374 | */ | 374 | * @generated |
375 | @Override | 375 | */ |
376 | public double getYSpeed() { | 376 | @Override |
377 | return ySpeed; | 377 | public double getYSpeed() { |
378 | } | 378 | return ySpeed; |
379 | 379 | } | |
380 | /** | 380 | |
381 | * <!-- begin-user-doc --> | 381 | /** |
382 | * <!-- end-user-doc --> | 382 | * <!-- begin-user-doc --> |
383 | * @generated | 383 | * <!-- end-user-doc --> |
384 | */ | 384 | * @generated |
385 | @Override | 385 | */ |
386 | public void setYSpeed(double newYSpeed) { | 386 | @Override |
387 | double oldYSpeed = ySpeed; | 387 | public void setYSpeed(double newYSpeed) { |
388 | ySpeed = newYSpeed; | 388 | double oldYSpeed = ySpeed; |
389 | if (eNotificationRequired()) | 389 | ySpeed = newYSpeed; |
390 | eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.ACTOR__YSPEED, oldYSpeed, ySpeed)); | 390 | if (eNotificationRequired()) |
391 | } | 391 | eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.ACTOR__YSPEED, oldYSpeed, ySpeed)); |
392 | 392 | } | |
393 | /** | 393 | |
394 | * <!-- begin-user-doc --> | 394 | /** |
395 | * <!-- end-user-doc --> | 395 | * <!-- begin-user-doc --> |
396 | * @generated | 396 | * <!-- end-user-doc --> |
397 | */ | 397 | * @generated |
398 | @Override | 398 | */ |
399 | public EList<Actor> getDist_near() { | 399 | @Override |
400 | // TODO: implement this method to return the 'Dist near' reference list | 400 | public EList<Actor> getDist_near() { |
401 | // Ensure that you remove @generated or mark it @generated NOT | 401 | // TODO: implement this method to return the 'Dist near' reference list |
402 | // The list is expected to implement org.eclipse.emf.ecore.util.InternalEList and org.eclipse.emf.ecore.EStructuralFeature.Setting | 402 | // Ensure that you remove @generated or mark it @generated NOT |
403 | // so it's likely that an appropriate subclass of org.eclipse.emf.ecore.util.EcoreEList should be used. | 403 | // The list is expected to implement org.eclipse.emf.ecore.util.InternalEList and org.eclipse.emf.ecore.EStructuralFeature.Setting |
404 | throw new UnsupportedOperationException(); | 404 | // so it's likely that an appropriate subclass of org.eclipse.emf.ecore.util.EcoreEList should be used. |
405 | } | 405 | throw new UnsupportedOperationException(); |
406 | 406 | } | |
407 | /** | 407 | |
408 | * <!-- begin-user-doc --> | 408 | /** |
409 | * <!-- end-user-doc --> | 409 | * <!-- begin-user-doc --> |
410 | * @generated | 410 | * <!-- end-user-doc --> |
411 | */ | 411 | * @generated |
412 | @Override | 412 | */ |
413 | public EList<Actor> getDist_med() { | 413 | @Override |
414 | // TODO: implement this method to return the 'Dist med' reference list | 414 | public EList<Actor> getDist_med() { |
415 | // Ensure that you remove @generated or mark it @generated NOT | 415 | // TODO: implement this method to return the 'Dist med' reference list |
416 | // The list is expected to implement org.eclipse.emf.ecore.util.InternalEList and org.eclipse.emf.ecore.EStructuralFeature.Setting | 416 | // Ensure that you remove @generated or mark it @generated NOT |
417 | // so it's likely that an appropriate subclass of org.eclipse.emf.ecore.util.EcoreEList should be used. | 417 | // The list is expected to implement org.eclipse.emf.ecore.util.InternalEList and org.eclipse.emf.ecore.EStructuralFeature.Setting |
418 | throw new UnsupportedOperationException(); | 418 | // so it's likely that an appropriate subclass of org.eclipse.emf.ecore.util.EcoreEList should be used. |
419 | } | 419 | throw new UnsupportedOperationException(); |
420 | 420 | } | |
421 | /** | 421 | |
422 | * <!-- begin-user-doc --> | 422 | /** |
423 | * <!-- end-user-doc --> | 423 | * <!-- begin-user-doc --> |
424 | * @generated | 424 | * <!-- end-user-doc --> |
425 | */ | 425 | * @generated |
426 | @Override | 426 | */ |
427 | public EList<Actor> getDist_far() { | 427 | @Override |
428 | // TODO: implement this method to return the 'Dist far' reference list | 428 | public EList<Actor> getDist_far() { |
429 | // Ensure that you remove @generated or mark it @generated NOT | 429 | // TODO: implement this method to return the 'Dist far' reference list |
430 | // The list is expected to implement org.eclipse.emf.ecore.util.InternalEList and org.eclipse.emf.ecore.EStructuralFeature.Setting | 430 | // Ensure that you remove @generated or mark it @generated NOT |
431 | // so it's likely that an appropriate subclass of org.eclipse.emf.ecore.util.EcoreEList should be used. | 431 | // The list is expected to implement org.eclipse.emf.ecore.util.InternalEList and org.eclipse.emf.ecore.EStructuralFeature.Setting |
432 | throw new UnsupportedOperationException(); | 432 | // so it's likely that an appropriate subclass of org.eclipse.emf.ecore.util.EcoreEList should be used. |
433 | } | 433 | throw new UnsupportedOperationException(); |
434 | 434 | } | |
435 | /** | 435 | |
436 | * <!-- begin-user-doc --> | 436 | /** |
437 | * <!-- end-user-doc --> | 437 | * <!-- begin-user-doc --> |
438 | * @generated | 438 | * <!-- end-user-doc --> |
439 | */ | 439 | * @generated |
440 | @Override | 440 | */ |
441 | public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | 441 | @Override |
442 | switch (featureID) { | 442 | public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { |
443 | case CrossingScenarioPackage.ACTOR__PLACED_ON: | 443 | switch (featureID) { |
444 | if (placedOn != null) | 444 | case CrossingScenarioPackage.ACTOR__PLACED_ON: |
445 | msgs = ((InternalEObject)placedOn).eInverseRemove(this, CrossingScenarioPackage.LANE__ACTORS, Lane.class, msgs); | 445 | if (placedOn != null) |
446 | return basicSetPlacedOn((Lane)otherEnd, msgs); | 446 | msgs = ((InternalEObject)placedOn).eInverseRemove(this, CrossingScenarioPackage.LANE__ACTORS, Lane.class, msgs); |
447 | } | 447 | return basicSetPlacedOn((Lane)otherEnd, msgs); |
448 | return super.eInverseAdd(otherEnd, featureID, msgs); | 448 | } |
449 | } | 449 | return super.eInverseAdd(otherEnd, featureID, msgs); |
450 | 450 | } | |
451 | /** | 451 | |
452 | * <!-- begin-user-doc --> | 452 | /** |
453 | * <!-- end-user-doc --> | 453 | * <!-- begin-user-doc --> |
454 | * @generated | 454 | * <!-- end-user-doc --> |
455 | */ | 455 | * @generated |
456 | @Override | 456 | */ |
457 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | 457 | @Override |
458 | switch (featureID) { | 458 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { |
459 | case CrossingScenarioPackage.ACTOR__PLACED_ON: | 459 | switch (featureID) { |
460 | return basicSetPlacedOn(null, msgs); | 460 | case CrossingScenarioPackage.ACTOR__PLACED_ON: |
461 | } | 461 | return basicSetPlacedOn(null, msgs); |
462 | return super.eInverseRemove(otherEnd, featureID, msgs); | 462 | } |
463 | } | 463 | return super.eInverseRemove(otherEnd, featureID, msgs); |
464 | 464 | } | |
465 | /** | 465 | |
466 | * <!-- begin-user-doc --> | 466 | /** |
467 | * <!-- end-user-doc --> | 467 | * <!-- begin-user-doc --> |
468 | * @generated | 468 | * <!-- end-user-doc --> |
469 | */ | 469 | * @generated |
470 | @Override | 470 | */ |
471 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | 471 | @Override |
472 | switch (featureID) { | 472 | public Object eGet(int featureID, boolean resolve, boolean coreType) { |
473 | case CrossingScenarioPackage.ACTOR__XPOS: | 473 | switch (featureID) { |
474 | return getXPos(); | 474 | case CrossingScenarioPackage.ACTOR__XPOS: |
475 | case CrossingScenarioPackage.ACTOR__YPOS: | 475 | return getXPos(); |
476 | return getYPos(); | 476 | case CrossingScenarioPackage.ACTOR__YPOS: |
477 | case CrossingScenarioPackage.ACTOR__LENGTH: | 477 | return getYPos(); |
478 | return getLength(); | 478 | case CrossingScenarioPackage.ACTOR__LENGTH: |
479 | case CrossingScenarioPackage.ACTOR__WIDTH: | 479 | return getLength(); |
480 | return getWidth(); | 480 | case CrossingScenarioPackage.ACTOR__WIDTH: |
481 | case CrossingScenarioPackage.ACTOR__XSPEED: | 481 | return getWidth(); |
482 | return getXSpeed(); | 482 | case CrossingScenarioPackage.ACTOR__XSPEED: |
483 | case CrossingScenarioPackage.ACTOR__PLACED_ON: | 483 | return getXSpeed(); |
484 | if (resolve) return getPlacedOn(); | 484 | case CrossingScenarioPackage.ACTOR__PLACED_ON: |
485 | return basicGetPlacedOn(); | 485 | if (resolve) return getPlacedOn(); |
486 | case CrossingScenarioPackage.ACTOR__YSPEED: | 486 | return basicGetPlacedOn(); |
487 | return getYSpeed(); | 487 | case CrossingScenarioPackage.ACTOR__YSPEED: |
488 | case CrossingScenarioPackage.ACTOR__DIST_NEAR: | 488 | return getYSpeed(); |
489 | return getDist_near(); | 489 | case CrossingScenarioPackage.ACTOR__DIST_NEAR: |
490 | case CrossingScenarioPackage.ACTOR__DIST_MED: | 490 | return getDist_near(); |
491 | return getDist_med(); | 491 | case CrossingScenarioPackage.ACTOR__DIST_MED: |
492 | case CrossingScenarioPackage.ACTOR__DIST_FAR: | 492 | return getDist_med(); |
493 | return getDist_far(); | 493 | case CrossingScenarioPackage.ACTOR__DIST_FAR: |
494 | } | 494 | return getDist_far(); |
495 | return super.eGet(featureID, resolve, coreType); | 495 | } |
496 | } | 496 | return super.eGet(featureID, resolve, coreType); |
497 | 497 | } | |
498 | /** | 498 | |
499 | * <!-- begin-user-doc --> | 499 | /** |
500 | * <!-- end-user-doc --> | 500 | * <!-- begin-user-doc --> |
501 | * @generated | 501 | * <!-- end-user-doc --> |
502 | */ | 502 | * @generated |
503 | @SuppressWarnings("unchecked") | 503 | */ |
504 | @Override | 504 | @SuppressWarnings("unchecked") |
505 | public void eSet(int featureID, Object newValue) { | 505 | @Override |
506 | switch (featureID) { | 506 | public void eSet(int featureID, Object newValue) { |
507 | case CrossingScenarioPackage.ACTOR__XPOS: | 507 | switch (featureID) { |
508 | setXPos((Double)newValue); | 508 | case CrossingScenarioPackage.ACTOR__XPOS: |
509 | return; | 509 | setXPos((Double)newValue); |
510 | case CrossingScenarioPackage.ACTOR__YPOS: | 510 | return; |
511 | setYPos((Double)newValue); | 511 | case CrossingScenarioPackage.ACTOR__YPOS: |
512 | return; | 512 | setYPos((Double)newValue); |
513 | case CrossingScenarioPackage.ACTOR__LENGTH: | 513 | return; |
514 | setLength((Double)newValue); | 514 | case CrossingScenarioPackage.ACTOR__LENGTH: |
515 | return; | 515 | setLength((Double)newValue); |
516 | case CrossingScenarioPackage.ACTOR__WIDTH: | 516 | return; |
517 | setWidth((Double)newValue); | 517 | case CrossingScenarioPackage.ACTOR__WIDTH: |
518 | return; | 518 | setWidth((Double)newValue); |
519 | case CrossingScenarioPackage.ACTOR__XSPEED: | 519 | return; |
520 | setXSpeed((Double)newValue); | 520 | case CrossingScenarioPackage.ACTOR__XSPEED: |
521 | return; | 521 | setXSpeed((Double)newValue); |
522 | case CrossingScenarioPackage.ACTOR__PLACED_ON: | 522 | return; |
523 | setPlacedOn((Lane)newValue); | 523 | case CrossingScenarioPackage.ACTOR__PLACED_ON: |
524 | return; | 524 | setPlacedOn((Lane)newValue); |
525 | case CrossingScenarioPackage.ACTOR__YSPEED: | 525 | return; |
526 | setYSpeed((Double)newValue); | 526 | case CrossingScenarioPackage.ACTOR__YSPEED: |
527 | return; | 527 | setYSpeed((Double)newValue); |
528 | case CrossingScenarioPackage.ACTOR__DIST_NEAR: | 528 | return; |
529 | getDist_near().clear(); | 529 | case CrossingScenarioPackage.ACTOR__DIST_NEAR: |
530 | getDist_near().addAll((Collection<? extends Actor>)newValue); | 530 | getDist_near().clear(); |
531 | return; | 531 | getDist_near().addAll((Collection<? extends Actor>)newValue); |
532 | case CrossingScenarioPackage.ACTOR__DIST_MED: | 532 | return; |
533 | getDist_med().clear(); | 533 | case CrossingScenarioPackage.ACTOR__DIST_MED: |
534 | getDist_med().addAll((Collection<? extends Actor>)newValue); | 534 | getDist_med().clear(); |
535 | return; | 535 | getDist_med().addAll((Collection<? extends Actor>)newValue); |
536 | case CrossingScenarioPackage.ACTOR__DIST_FAR: | 536 | return; |
537 | getDist_far().clear(); | 537 | case CrossingScenarioPackage.ACTOR__DIST_FAR: |
538 | getDist_far().addAll((Collection<? extends Actor>)newValue); | 538 | getDist_far().clear(); |
539 | return; | 539 | getDist_far().addAll((Collection<? extends Actor>)newValue); |
540 | } | 540 | return; |
541 | super.eSet(featureID, newValue); | 541 | } |
542 | } | 542 | super.eSet(featureID, newValue); |
543 | 543 | } | |
544 | /** | 544 | |
545 | * <!-- begin-user-doc --> | 545 | /** |
546 | * <!-- end-user-doc --> | 546 | * <!-- begin-user-doc --> |
547 | * @generated | 547 | * <!-- end-user-doc --> |
548 | */ | 548 | * @generated |
549 | @Override | 549 | */ |
550 | public void eUnset(int featureID) { | 550 | @Override |
551 | switch (featureID) { | 551 | public void eUnset(int featureID) { |
552 | case CrossingScenarioPackage.ACTOR__XPOS: | 552 | switch (featureID) { |
553 | setXPos(XPOS_EDEFAULT); | 553 | case CrossingScenarioPackage.ACTOR__XPOS: |
554 | return; | 554 | setXPos(XPOS_EDEFAULT); |
555 | case CrossingScenarioPackage.ACTOR__YPOS: | 555 | return; |
556 | setYPos(YPOS_EDEFAULT); | 556 | case CrossingScenarioPackage.ACTOR__YPOS: |
557 | return; | 557 | setYPos(YPOS_EDEFAULT); |
558 | case CrossingScenarioPackage.ACTOR__LENGTH: | 558 | return; |
559 | setLength(LENGTH_EDEFAULT); | 559 | case CrossingScenarioPackage.ACTOR__LENGTH: |
560 | return; | 560 | setLength(LENGTH_EDEFAULT); |
561 | case CrossingScenarioPackage.ACTOR__WIDTH: | 561 | return; |
562 | setWidth(WIDTH_EDEFAULT); | 562 | case CrossingScenarioPackage.ACTOR__WIDTH: |
563 | return; | 563 | setWidth(WIDTH_EDEFAULT); |
564 | case CrossingScenarioPackage.ACTOR__XSPEED: | 564 | return; |
565 | setXSpeed(XSPEED_EDEFAULT); | 565 | case CrossingScenarioPackage.ACTOR__XSPEED: |
566 | return; | 566 | setXSpeed(XSPEED_EDEFAULT); |
567 | case CrossingScenarioPackage.ACTOR__PLACED_ON: | 567 | return; |
568 | setPlacedOn((Lane)null); | 568 | case CrossingScenarioPackage.ACTOR__PLACED_ON: |
569 | return; | 569 | setPlacedOn((Lane)null); |
570 | case CrossingScenarioPackage.ACTOR__YSPEED: | 570 | return; |
571 | setYSpeed(YSPEED_EDEFAULT); | 571 | case CrossingScenarioPackage.ACTOR__YSPEED: |
572 | return; | 572 | setYSpeed(YSPEED_EDEFAULT); |
573 | case CrossingScenarioPackage.ACTOR__DIST_NEAR: | 573 | return; |
574 | getDist_near().clear(); | 574 | case CrossingScenarioPackage.ACTOR__DIST_NEAR: |
575 | return; | 575 | getDist_near().clear(); |
576 | case CrossingScenarioPackage.ACTOR__DIST_MED: | 576 | return; |
577 | getDist_med().clear(); | 577 | case CrossingScenarioPackage.ACTOR__DIST_MED: |
578 | return; | 578 | getDist_med().clear(); |
579 | case CrossingScenarioPackage.ACTOR__DIST_FAR: | 579 | return; |
580 | getDist_far().clear(); | 580 | case CrossingScenarioPackage.ACTOR__DIST_FAR: |
581 | return; | 581 | getDist_far().clear(); |
582 | } | 582 | return; |
583 | super.eUnset(featureID); | 583 | } |
584 | } | 584 | super.eUnset(featureID); |
585 | 585 | } | |
586 | /** | 586 | |
587 | * <!-- begin-user-doc --> | 587 | /** |
588 | * <!-- end-user-doc --> | 588 | * <!-- begin-user-doc --> |
589 | * @generated | 589 | * <!-- end-user-doc --> |
590 | */ | 590 | * @generated |
591 | @Override | 591 | */ |
592 | public boolean eIsSet(int featureID) { | 592 | @Override |
593 | switch (featureID) { | 593 | public boolean eIsSet(int featureID) { |
594 | case CrossingScenarioPackage.ACTOR__XPOS: | 594 | switch (featureID) { |
595 | return xPos != XPOS_EDEFAULT; | 595 | case CrossingScenarioPackage.ACTOR__XPOS: |
596 | case CrossingScenarioPackage.ACTOR__YPOS: | 596 | return xPos != XPOS_EDEFAULT; |
597 | return yPos != YPOS_EDEFAULT; | 597 | case CrossingScenarioPackage.ACTOR__YPOS: |
598 | case CrossingScenarioPackage.ACTOR__LENGTH: | 598 | return yPos != YPOS_EDEFAULT; |
599 | return length != LENGTH_EDEFAULT; | 599 | case CrossingScenarioPackage.ACTOR__LENGTH: |
600 | case CrossingScenarioPackage.ACTOR__WIDTH: | 600 | return length != LENGTH_EDEFAULT; |
601 | return width != WIDTH_EDEFAULT; | 601 | case CrossingScenarioPackage.ACTOR__WIDTH: |
602 | case CrossingScenarioPackage.ACTOR__XSPEED: | 602 | return width != WIDTH_EDEFAULT; |
603 | return xSpeed != XSPEED_EDEFAULT; | 603 | case CrossingScenarioPackage.ACTOR__XSPEED: |
604 | case CrossingScenarioPackage.ACTOR__PLACED_ON: | 604 | return xSpeed != XSPEED_EDEFAULT; |
605 | return placedOn != null; | 605 | case CrossingScenarioPackage.ACTOR__PLACED_ON: |
606 | case CrossingScenarioPackage.ACTOR__YSPEED: | 606 | return placedOn != null; |
607 | return ySpeed != YSPEED_EDEFAULT; | 607 | case CrossingScenarioPackage.ACTOR__YSPEED: |
608 | case CrossingScenarioPackage.ACTOR__DIST_NEAR: | 608 | return ySpeed != YSPEED_EDEFAULT; |
609 | return !getDist_near().isEmpty(); | 609 | case CrossingScenarioPackage.ACTOR__DIST_NEAR: |
610 | case CrossingScenarioPackage.ACTOR__DIST_MED: | 610 | return !getDist_near().isEmpty(); |
611 | return !getDist_med().isEmpty(); | 611 | case CrossingScenarioPackage.ACTOR__DIST_MED: |
612 | case CrossingScenarioPackage.ACTOR__DIST_FAR: | 612 | return !getDist_med().isEmpty(); |
613 | return !getDist_far().isEmpty(); | 613 | case CrossingScenarioPackage.ACTOR__DIST_FAR: |
614 | } | 614 | return !getDist_far().isEmpty(); |
615 | return super.eIsSet(featureID); | 615 | } |
616 | } | 616 | return super.eIsSet(featureID); |
617 | 617 | } | |
618 | /** | 618 | |
619 | * <!-- begin-user-doc --> | 619 | /** |
620 | * <!-- end-user-doc --> | 620 | * <!-- begin-user-doc --> |
621 | * @generated | 621 | * <!-- end-user-doc --> |
622 | */ | 622 | * @generated |
623 | @Override | 623 | */ |
624 | public String toString() { | 624 | @Override |
625 | if (eIsProxy()) return super.toString(); | 625 | public String toString() { |
626 | 626 | if (eIsProxy()) return super.toString(); | |
627 | StringBuilder result = new StringBuilder(super.toString()); | 627 | |
628 | result.append(" (xPos: "); | 628 | StringBuilder result = new StringBuilder(super.toString()); |
629 | result.append(xPos); | 629 | result.append(" (xPos: "); |
630 | result.append(", yPos: "); | 630 | result.append(xPos); |
631 | result.append(yPos); | 631 | result.append(", yPos: "); |
632 | result.append(", length: "); | 632 | result.append(yPos); |
633 | result.append(length); | 633 | result.append(", length: "); |
634 | result.append(", width: "); | 634 | result.append(length); |
635 | result.append(width); | 635 | result.append(", width: "); |
636 | result.append(", xSpeed: "); | 636 | result.append(width); |
637 | result.append(xSpeed); | 637 | result.append(", xSpeed: "); |
638 | result.append(", ySpeed: "); | 638 | result.append(xSpeed); |
639 | result.append(ySpeed); | 639 | result.append(", ySpeed: "); |
640 | result.append(')'); | 640 | result.append(ySpeed); |
641 | return result.toString(); | 641 | result.append(')'); |
642 | } | 642 | return result.toString(); |
643 | 643 | } | |
644 | } //ActorImpl | 644 | |
645 | } //ActorImpl | ||
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/impl/CollisionDoesNotExistImpl.java b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/CollisionDoesNotExistImpl.java deleted file mode 100644 index 7cdcb6ac..00000000 --- a/Domains/crossingScenario/ecore-gen/crossingScenario/impl/CollisionDoesNotExistImpl.java +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package crossingScenario.impl; | ||
4 | |||
5 | import crossingScenario.CollisionDoesNotExist; | ||
6 | import crossingScenario.CrossingScenarioPackage; | ||
7 | |||
8 | import 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 | */ | ||
17 | public 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 index 9fd2c2a9..a643f25f 100644 --- a/Domains/crossingScenario/ecore-gen/crossingScenario/impl/CollisionExistsImpl.java +++ b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/CollisionExistsImpl.java | |||
@@ -1,164 +1,164 @@ | |||
1 | /** | 1 | /** |
2 | */ | 2 | */ |
3 | package crossingScenario.impl; | 3 | package crossingScenario.impl; |
4 | 4 | ||
5 | import crossingScenario.CollisionExists; | 5 | import crossingScenario.CollisionExists; |
6 | import crossingScenario.CrossingScenarioPackage; | 6 | import crossingScenario.CrossingScenarioPackage; |
7 | 7 | ||
8 | import org.eclipse.emf.common.notify.Notification; | 8 | import org.eclipse.emf.common.notify.Notification; |
9 | 9 | ||
10 | import org.eclipse.emf.ecore.EClass; | 10 | import org.eclipse.emf.ecore.EClass; |
11 | 11 | ||
12 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | 12 | import org.eclipse.emf.ecore.impl.ENotificationImpl; |
13 | 13 | ||
14 | /** | 14 | /** |
15 | * <!-- begin-user-doc --> | 15 | * <!-- begin-user-doc --> |
16 | * An implementation of the model object '<em><b>Collision Exists</b></em>'. | 16 | * An implementation of the model object '<em><b>Collision Exists</b></em>'. |
17 | * <!-- end-user-doc --> | 17 | * <!-- end-user-doc --> |
18 | * <p> | 18 | * <p> |
19 | * The following features are implemented: | 19 | * The following features are implemented: |
20 | * </p> | 20 | * </p> |
21 | * <ul> | 21 | * <ul> |
22 | * <li>{@link crossingScenario.impl.CollisionExistsImpl#getCollisionTime <em>Collision Time</em>}</li> | 22 | * <li>{@link crossingScenario.impl.CollisionExistsImpl#getCollisionTime <em>Collision Time</em>}</li> |
23 | * </ul> | 23 | * </ul> |
24 | * | 24 | * |
25 | * @generated | 25 | * @generated |
26 | */ | 26 | */ |
27 | public class CollisionExistsImpl extends TemporalRelationImpl implements CollisionExists { | 27 | public class CollisionExistsImpl extends TemporalRelationImpl implements CollisionExists { |
28 | /** | 28 | /** |
29 | * The default value of the '{@link #getCollisionTime() <em>Collision Time</em>}' attribute. | 29 | * The default value of the '{@link #getCollisionTime() <em>Collision Time</em>}' attribute. |
30 | * <!-- begin-user-doc --> | 30 | * <!-- begin-user-doc --> |
31 | * <!-- end-user-doc --> | 31 | * <!-- end-user-doc --> |
32 | * @see #getCollisionTime() | 32 | * @see #getCollisionTime() |
33 | * @generated | 33 | * @generated |
34 | * @ordered | 34 | * @ordered |
35 | */ | 35 | */ |
36 | protected static final double COLLISION_TIME_EDEFAULT = 0.0; | 36 | protected static final double COLLISION_TIME_EDEFAULT = 0.0; |
37 | 37 | ||
38 | /** | 38 | /** |
39 | * The cached value of the '{@link #getCollisionTime() <em>Collision Time</em>}' attribute. | 39 | * The cached value of the '{@link #getCollisionTime() <em>Collision Time</em>}' attribute. |
40 | * <!-- begin-user-doc --> | 40 | * <!-- begin-user-doc --> |
41 | * <!-- end-user-doc --> | 41 | * <!-- end-user-doc --> |
42 | * @see #getCollisionTime() | 42 | * @see #getCollisionTime() |
43 | * @generated | 43 | * @generated |
44 | * @ordered | 44 | * @ordered |
45 | */ | 45 | */ |
46 | protected double collisionTime = COLLISION_TIME_EDEFAULT; | 46 | protected double collisionTime = COLLISION_TIME_EDEFAULT; |
47 | 47 | ||
48 | /** | 48 | /** |
49 | * <!-- begin-user-doc --> | 49 | * <!-- begin-user-doc --> |
50 | * <!-- end-user-doc --> | 50 | * <!-- end-user-doc --> |
51 | * @generated | 51 | * @generated |
52 | */ | 52 | */ |
53 | protected CollisionExistsImpl() { | 53 | protected CollisionExistsImpl() { |
54 | super(); | 54 | super(); |
55 | } | 55 | } |
56 | 56 | ||
57 | /** | 57 | /** |
58 | * <!-- begin-user-doc --> | 58 | * <!-- begin-user-doc --> |
59 | * <!-- end-user-doc --> | 59 | * <!-- end-user-doc --> |
60 | * @generated | 60 | * @generated |
61 | */ | 61 | */ |
62 | @Override | 62 | @Override |
63 | protected EClass eStaticClass() { | 63 | protected EClass eStaticClass() { |
64 | return CrossingScenarioPackage.Literals.COLLISION_EXISTS; | 64 | return CrossingScenarioPackage.Literals.COLLISION_EXISTS; |
65 | } | 65 | } |
66 | 66 | ||
67 | /** | 67 | /** |
68 | * <!-- begin-user-doc --> | 68 | * <!-- begin-user-doc --> |
69 | * <!-- end-user-doc --> | 69 | * <!-- end-user-doc --> |
70 | * @generated | 70 | * @generated |
71 | */ | 71 | */ |
72 | @Override | 72 | @Override |
73 | public double getCollisionTime() { | 73 | public double getCollisionTime() { |
74 | return collisionTime; | 74 | return collisionTime; |
75 | } | 75 | } |
76 | 76 | ||
77 | /** | 77 | /** |
78 | * <!-- begin-user-doc --> | 78 | * <!-- begin-user-doc --> |
79 | * <!-- end-user-doc --> | 79 | * <!-- end-user-doc --> |
80 | * @generated | 80 | * @generated |
81 | */ | 81 | */ |
82 | @Override | 82 | @Override |
83 | public void setCollisionTime(double newCollisionTime) { | 83 | public void setCollisionTime(double newCollisionTime) { |
84 | double oldCollisionTime = collisionTime; | 84 | double oldCollisionTime = collisionTime; |
85 | collisionTime = newCollisionTime; | 85 | collisionTime = newCollisionTime; |
86 | if (eNotificationRequired()) | 86 | if (eNotificationRequired()) |
87 | eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.COLLISION_EXISTS__COLLISION_TIME, oldCollisionTime, collisionTime)); | 87 | eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.COLLISION_EXISTS__COLLISION_TIME, oldCollisionTime, collisionTime)); |
88 | } | 88 | } |
89 | 89 | ||
90 | /** | 90 | /** |
91 | * <!-- begin-user-doc --> | 91 | * <!-- begin-user-doc --> |
92 | * <!-- end-user-doc --> | 92 | * <!-- end-user-doc --> |
93 | * @generated | 93 | * @generated |
94 | */ | 94 | */ |
95 | @Override | 95 | @Override |
96 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | 96 | public Object eGet(int featureID, boolean resolve, boolean coreType) { |
97 | switch (featureID) { | 97 | switch (featureID) { |
98 | case CrossingScenarioPackage.COLLISION_EXISTS__COLLISION_TIME: | 98 | case CrossingScenarioPackage.COLLISION_EXISTS__COLLISION_TIME: |
99 | return getCollisionTime(); | 99 | return getCollisionTime(); |
100 | } | 100 | } |
101 | return super.eGet(featureID, resolve, coreType); | 101 | return super.eGet(featureID, resolve, coreType); |
102 | } | 102 | } |
103 | 103 | ||
104 | /** | 104 | /** |
105 | * <!-- begin-user-doc --> | 105 | * <!-- begin-user-doc --> |
106 | * <!-- end-user-doc --> | 106 | * <!-- end-user-doc --> |
107 | * @generated | 107 | * @generated |
108 | */ | 108 | */ |
109 | @Override | 109 | @Override |
110 | public void eSet(int featureID, Object newValue) { | 110 | public void eSet(int featureID, Object newValue) { |
111 | switch (featureID) { | 111 | switch (featureID) { |
112 | case CrossingScenarioPackage.COLLISION_EXISTS__COLLISION_TIME: | 112 | case CrossingScenarioPackage.COLLISION_EXISTS__COLLISION_TIME: |
113 | setCollisionTime((Double)newValue); | 113 | setCollisionTime((Double)newValue); |
114 | return; | 114 | return; |
115 | } | 115 | } |
116 | super.eSet(featureID, newValue); | 116 | super.eSet(featureID, newValue); |
117 | } | 117 | } |
118 | 118 | ||
119 | /** | 119 | /** |
120 | * <!-- begin-user-doc --> | 120 | * <!-- begin-user-doc --> |
121 | * <!-- end-user-doc --> | 121 | * <!-- end-user-doc --> |
122 | * @generated | 122 | * @generated |
123 | */ | 123 | */ |
124 | @Override | 124 | @Override |
125 | public void eUnset(int featureID) { | 125 | public void eUnset(int featureID) { |
126 | switch (featureID) { | 126 | switch (featureID) { |
127 | case CrossingScenarioPackage.COLLISION_EXISTS__COLLISION_TIME: | 127 | case CrossingScenarioPackage.COLLISION_EXISTS__COLLISION_TIME: |
128 | setCollisionTime(COLLISION_TIME_EDEFAULT); | 128 | setCollisionTime(COLLISION_TIME_EDEFAULT); |
129 | return; | 129 | return; |
130 | } | 130 | } |
131 | super.eUnset(featureID); | 131 | super.eUnset(featureID); |
132 | } | 132 | } |
133 | 133 | ||
134 | /** | 134 | /** |
135 | * <!-- begin-user-doc --> | 135 | * <!-- begin-user-doc --> |
136 | * <!-- end-user-doc --> | 136 | * <!-- end-user-doc --> |
137 | * @generated | 137 | * @generated |
138 | */ | 138 | */ |
139 | @Override | 139 | @Override |
140 | public boolean eIsSet(int featureID) { | 140 | public boolean eIsSet(int featureID) { |
141 | switch (featureID) { | 141 | switch (featureID) { |
142 | case CrossingScenarioPackage.COLLISION_EXISTS__COLLISION_TIME: | 142 | case CrossingScenarioPackage.COLLISION_EXISTS__COLLISION_TIME: |
143 | return collisionTime != COLLISION_TIME_EDEFAULT; | 143 | return collisionTime != COLLISION_TIME_EDEFAULT; |
144 | } | 144 | } |
145 | return super.eIsSet(featureID); | 145 | return super.eIsSet(featureID); |
146 | } | 146 | } |
147 | 147 | ||
148 | /** | 148 | /** |
149 | * <!-- begin-user-doc --> | 149 | * <!-- begin-user-doc --> |
150 | * <!-- end-user-doc --> | 150 | * <!-- end-user-doc --> |
151 | * @generated | 151 | * @generated |
152 | */ | 152 | */ |
153 | @Override | 153 | @Override |
154 | public String toString() { | 154 | public String toString() { |
155 | if (eIsProxy()) return super.toString(); | 155 | if (eIsProxy()) return super.toString(); |
156 | 156 | ||
157 | StringBuilder result = new StringBuilder(super.toString()); | 157 | StringBuilder result = new StringBuilder(super.toString()); |
158 | result.append(" (collisionTime: "); | 158 | result.append(" (collisionTime: "); |
159 | result.append(collisionTime); | 159 | result.append(collisionTime); |
160 | result.append(')'); | 160 | result.append(')'); |
161 | return result.toString(); | 161 | return result.toString(); |
162 | } | 162 | } |
163 | 163 | ||
164 | } //CollisionExistsImpl | 164 | } //CollisionExistsImpl |
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/impl/CrossingScenarioFactoryImpl.java b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/CrossingScenarioFactoryImpl.java index b6362cc2..8054a12a 100644 --- a/Domains/crossingScenario/ecore-gen/crossingScenario/impl/CrossingScenarioFactoryImpl.java +++ b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/CrossingScenarioFactoryImpl.java | |||
@@ -1,244 +1,169 @@ | |||
1 | /** | 1 | /** |
2 | */ | 2 | */ |
3 | package crossingScenario.impl; | 3 | package crossingScenario.impl; |
4 | 4 | ||
5 | import crossingScenario.*; | 5 | import crossingScenario.*; |
6 | 6 | ||
7 | import org.eclipse.emf.ecore.EClass; | 7 | import org.eclipse.emf.ecore.EClass; |
8 | import org.eclipse.emf.ecore.EDataType; | 8 | import org.eclipse.emf.ecore.EObject; |
9 | import org.eclipse.emf.ecore.EObject; | 9 | import org.eclipse.emf.ecore.EPackage; |
10 | import org.eclipse.emf.ecore.EPackage; | 10 | |
11 | 11 | import org.eclipse.emf.ecore.impl.EFactoryImpl; | |
12 | import org.eclipse.emf.ecore.impl.EFactoryImpl; | 12 | |
13 | 13 | import org.eclipse.emf.ecore.plugin.EcorePlugin; | |
14 | import org.eclipse.emf.ecore.plugin.EcorePlugin; | 14 | |
15 | 15 | /** | |
16 | /** | 16 | * <!-- begin-user-doc --> |
17 | * <!-- begin-user-doc --> | 17 | * An implementation of the model <b>Factory</b>. |
18 | * An implementation of the model <b>Factory</b>. | 18 | * <!-- end-user-doc --> |
19 | * <!-- end-user-doc --> | 19 | * @generated |
20 | * @generated | 20 | */ |
21 | */ | 21 | public class CrossingScenarioFactoryImpl extends EFactoryImpl implements CrossingScenarioFactory { |
22 | public class CrossingScenarioFactoryImpl extends EFactoryImpl implements CrossingScenarioFactory { | 22 | /** |
23 | /** | 23 | * Creates the default factory implementation. |
24 | * Creates the default factory implementation. | 24 | * <!-- begin-user-doc --> |
25 | * <!-- begin-user-doc --> | 25 | * <!-- end-user-doc --> |
26 | * <!-- end-user-doc --> | 26 | * @generated |
27 | * @generated | 27 | */ |
28 | */ | 28 | public static CrossingScenarioFactory init() { |
29 | public static CrossingScenarioFactory init() { | 29 | try { |
30 | try { | 30 | CrossingScenarioFactory theCrossingScenarioFactory = (CrossingScenarioFactory)EPackage.Registry.INSTANCE.getEFactory(CrossingScenarioPackage.eNS_URI); |
31 | CrossingScenarioFactory theCrossingScenarioFactory = (CrossingScenarioFactory)EPackage.Registry.INSTANCE.getEFactory(CrossingScenarioPackage.eNS_URI); | 31 | if (theCrossingScenarioFactory != null) { |
32 | if (theCrossingScenarioFactory != null) { | 32 | return theCrossingScenarioFactory; |
33 | return theCrossingScenarioFactory; | 33 | } |
34 | } | 34 | } |
35 | } | 35 | catch (Exception exception) { |
36 | catch (Exception exception) { | 36 | EcorePlugin.INSTANCE.log(exception); |
37 | EcorePlugin.INSTANCE.log(exception); | 37 | } |
38 | } | 38 | return new CrossingScenarioFactoryImpl(); |
39 | return new CrossingScenarioFactoryImpl(); | 39 | } |
40 | } | 40 | |
41 | 41 | /** | |
42 | /** | 42 | * Creates an instance of the factory. |
43 | * Creates an instance of the factory. | 43 | * <!-- begin-user-doc --> |
44 | * <!-- begin-user-doc --> | 44 | * <!-- end-user-doc --> |
45 | * <!-- end-user-doc --> | 45 | * @generated |
46 | * @generated | 46 | */ |
47 | */ | 47 | public CrossingScenarioFactoryImpl() { |
48 | public CrossingScenarioFactoryImpl() { | 48 | super(); |
49 | super(); | 49 | } |
50 | } | 50 | |
51 | 51 | /** | |
52 | /** | 52 | * <!-- begin-user-doc --> |
53 | * <!-- begin-user-doc --> | 53 | * <!-- end-user-doc --> |
54 | * <!-- end-user-doc --> | 54 | * @generated |
55 | * @generated | 55 | */ |
56 | */ | 56 | @Override |
57 | @Override | 57 | public EObject create(EClass eClass) { |
58 | public EObject create(EClass eClass) { | 58 | switch (eClass.getClassifierID()) { |
59 | switch (eClass.getClassifierID()) { | 59 | case CrossingScenarioPackage.CROSSING_SCENARIO: return createCrossingScenario(); |
60 | case CrossingScenarioPackage.CROSSING_SCENARIO: return createCrossingScenario(); | 60 | case CrossingScenarioPackage.VISION_BLOCKED: return createVisionBlocked(); |
61 | case CrossingScenarioPackage.VISION_BLOCKED: return createVisionBlocked(); | 61 | case CrossingScenarioPackage.COLLISION_EXISTS: return createCollisionExists(); |
62 | case CrossingScenarioPackage.SEPARATION_DISTANCE: return createSeparationDistance(); | 62 | case CrossingScenarioPackage.PEDESTRIAN: return createPedestrian(); |
63 | case CrossingScenarioPackage.COLLISION_EXISTS: return createCollisionExists(); | 63 | case CrossingScenarioPackage.VEHICLE: return createVehicle(); |
64 | case CrossingScenarioPackage.COLLISION_DOES_NOT_EXIST: return createCollisionDoesNotExist(); | 64 | case CrossingScenarioPackage.LANE_HORIZONTAL: return createLane_Horizontal(); |
65 | case CrossingScenarioPackage.PEDESTRIAN: return createPedestrian(); | 65 | case CrossingScenarioPackage.LANE_VERTICAL: return createLane_Vertical(); |
66 | case CrossingScenarioPackage.VEHICLE: return createVehicle(); | 66 | default: |
67 | case CrossingScenarioPackage.LANE_HORIZONTAL: return createLane_Horizontal(); | 67 | throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); |
68 | case CrossingScenarioPackage.LANE_VERTICAL: return createLane_Vertical(); | 68 | } |
69 | default: | 69 | } |
70 | throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); | 70 | |
71 | } | 71 | /** |
72 | } | 72 | * <!-- begin-user-doc --> |
73 | 73 | * <!-- end-user-doc --> | |
74 | /** | 74 | * @generated |
75 | * <!-- begin-user-doc --> | 75 | */ |
76 | * <!-- end-user-doc --> | 76 | @Override |
77 | * @generated | 77 | public CrossingScenario createCrossingScenario() { |
78 | */ | 78 | CrossingScenarioImpl crossingScenario = new CrossingScenarioImpl(); |
79 | @Override | 79 | return crossingScenario; |
80 | public Object createFromString(EDataType eDataType, String initialValue) { | 80 | } |
81 | switch (eDataType.getClassifierID()) { | 81 | |
82 | case CrossingScenarioPackage.DISTANCE: | 82 | /** |
83 | return createDistanceFromString(eDataType, initialValue); | 83 | * <!-- begin-user-doc --> |
84 | default: | 84 | * <!-- end-user-doc --> |
85 | throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); | 85 | * @generated |
86 | } | 86 | */ |
87 | } | 87 | @Override |
88 | 88 | public VisionBlocked createVisionBlocked() { | |
89 | /** | 89 | VisionBlockedImpl visionBlocked = new VisionBlockedImpl(); |
90 | * <!-- begin-user-doc --> | 90 | return visionBlocked; |
91 | * <!-- end-user-doc --> | 91 | } |
92 | * @generated | 92 | |
93 | */ | 93 | /** |
94 | @Override | 94 | * <!-- begin-user-doc --> |
95 | public String convertToString(EDataType eDataType, Object instanceValue) { | 95 | * <!-- end-user-doc --> |
96 | switch (eDataType.getClassifierID()) { | 96 | * @generated |
97 | case CrossingScenarioPackage.DISTANCE: | 97 | */ |
98 | return convertDistanceToString(eDataType, instanceValue); | 98 | @Override |
99 | default: | 99 | public CollisionExists createCollisionExists() { |
100 | throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); | 100 | CollisionExistsImpl collisionExists = new CollisionExistsImpl(); |
101 | } | 101 | return collisionExists; |
102 | } | 102 | } |
103 | 103 | ||
104 | /** | 104 | /** |
105 | * <!-- begin-user-doc --> | 105 | * <!-- begin-user-doc --> |
106 | * <!-- end-user-doc --> | 106 | * <!-- end-user-doc --> |
107 | * @generated | 107 | * @generated |
108 | */ | 108 | */ |
109 | @Override | 109 | @Override |
110 | public CrossingScenario createCrossingScenario() { | 110 | public Pedestrian createPedestrian() { |
111 | CrossingScenarioImpl crossingScenario = new CrossingScenarioImpl(); | 111 | PedestrianImpl pedestrian = new PedestrianImpl(); |
112 | return crossingScenario; | 112 | return pedestrian; |
113 | } | 113 | } |
114 | 114 | ||
115 | /** | 115 | /** |
116 | * <!-- begin-user-doc --> | 116 | * <!-- begin-user-doc --> |
117 | * <!-- end-user-doc --> | 117 | * <!-- end-user-doc --> |
118 | * @generated | 118 | * @generated |
119 | */ | 119 | */ |
120 | @Override | 120 | @Override |
121 | public VisionBlocked createVisionBlocked() { | 121 | public Vehicle createVehicle() { |
122 | VisionBlockedImpl visionBlocked = new VisionBlockedImpl(); | 122 | VehicleImpl vehicle = new VehicleImpl(); |
123 | return visionBlocked; | 123 | return vehicle; |
124 | } | 124 | } |
125 | 125 | ||
126 | /** | 126 | /** |
127 | * <!-- begin-user-doc --> | 127 | * <!-- begin-user-doc --> |
128 | * <!-- end-user-doc --> | 128 | * <!-- end-user-doc --> |
129 | * @generated | 129 | * @generated |
130 | */ | 130 | */ |
131 | @Override | 131 | @Override |
132 | public SeparationDistance createSeparationDistance() { | 132 | public Lane_Horizontal createLane_Horizontal() { |
133 | SeparationDistanceImpl separationDistance = new SeparationDistanceImpl(); | 133 | Lane_HorizontalImpl lane_Horizontal = new Lane_HorizontalImpl(); |
134 | return separationDistance; | 134 | return lane_Horizontal; |
135 | } | 135 | } |
136 | 136 | ||
137 | /** | 137 | /** |
138 | * <!-- begin-user-doc --> | 138 | * <!-- begin-user-doc --> |
139 | * <!-- end-user-doc --> | 139 | * <!-- end-user-doc --> |
140 | * @generated | 140 | * @generated |
141 | */ | 141 | */ |
142 | @Override | 142 | @Override |
143 | public CollisionExists createCollisionExists() { | 143 | public Lane_Vertical createLane_Vertical() { |
144 | CollisionExistsImpl collisionExists = new CollisionExistsImpl(); | 144 | Lane_VerticalImpl lane_Vertical = new Lane_VerticalImpl(); |
145 | return collisionExists; | 145 | return lane_Vertical; |
146 | } | 146 | } |
147 | 147 | ||
148 | /** | 148 | /** |
149 | * <!-- begin-user-doc --> | 149 | * <!-- begin-user-doc --> |
150 | * <!-- end-user-doc --> | 150 | * <!-- end-user-doc --> |
151 | * @generated | 151 | * @generated |
152 | */ | 152 | */ |
153 | @Override | 153 | @Override |
154 | public CollisionDoesNotExist createCollisionDoesNotExist() { | 154 | public CrossingScenarioPackage getCrossingScenarioPackage() { |
155 | CollisionDoesNotExistImpl collisionDoesNotExist = new CollisionDoesNotExistImpl(); | 155 | return (CrossingScenarioPackage)getEPackage(); |
156 | return collisionDoesNotExist; | 156 | } |
157 | } | 157 | |
158 | 158 | /** | |
159 | /** | 159 | * <!-- begin-user-doc --> |
160 | * <!-- begin-user-doc --> | 160 | * <!-- end-user-doc --> |
161 | * <!-- end-user-doc --> | 161 | * @deprecated |
162 | * @generated | 162 | * @generated |
163 | */ | 163 | */ |
164 | @Override | 164 | @Deprecated |
165 | public Pedestrian createPedestrian() { | 165 | public static CrossingScenarioPackage getPackage() { |
166 | PedestrianImpl pedestrian = new PedestrianImpl(); | 166 | return CrossingScenarioPackage.eINSTANCE; |
167 | return pedestrian; | 167 | } |
168 | } | 168 | |
169 | 169 | } //CrossingScenarioFactoryImpl | |
170 | /** | ||
171 | * <!-- begin-user-doc --> | ||
172 | * <!-- end-user-doc --> | ||
173 | * @generated | ||
174 | */ | ||
175 | @Override | ||
176 | public Vehicle createVehicle() { | ||
177 | VehicleImpl vehicle = new VehicleImpl(); | ||
178 | return vehicle; | ||
179 | } | ||
180 | |||
181 | /** | ||
182 | * <!-- begin-user-doc --> | ||
183 | * <!-- end-user-doc --> | ||
184 | * @generated | ||
185 | */ | ||
186 | @Override | ||
187 | public Lane_Horizontal createLane_Horizontal() { | ||
188 | Lane_HorizontalImpl lane_Horizontal = new Lane_HorizontalImpl(); | ||
189 | return lane_Horizontal; | ||
190 | } | ||
191 | |||
192 | /** | ||
193 | * <!-- begin-user-doc --> | ||
194 | * <!-- end-user-doc --> | ||
195 | * @generated | ||
196 | */ | ||
197 | @Override | ||
198 | public Lane_Vertical createLane_Vertical() { | ||
199 | Lane_VerticalImpl lane_Vertical = new Lane_VerticalImpl(); | ||
200 | return lane_Vertical; | ||
201 | } | ||
202 | |||
203 | /** | ||
204 | * <!-- begin-user-doc --> | ||
205 | * <!-- end-user-doc --> | ||
206 | * @generated | ||
207 | */ | ||
208 | public Distance createDistanceFromString(EDataType eDataType, String initialValue) { | ||
209 | Distance result = Distance.get(initialValue); | ||
210 | if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); | ||
211 | return result; | ||
212 | } | ||
213 | |||
214 | /** | ||
215 | * <!-- begin-user-doc --> | ||
216 | * <!-- end-user-doc --> | ||
217 | * @generated | ||
218 | */ | ||
219 | public String convertDistanceToString(EDataType eDataType, Object instanceValue) { | ||
220 | return instanceValue == null ? null : instanceValue.toString(); | ||
221 | } | ||
222 | |||
223 | /** | ||
224 | * <!-- begin-user-doc --> | ||
225 | * <!-- end-user-doc --> | ||
226 | * @generated | ||
227 | */ | ||
228 | @Override | ||
229 | public CrossingScenarioPackage getCrossingScenarioPackage() { | ||
230 | return (CrossingScenarioPackage)getEPackage(); | ||
231 | } | ||
232 | |||
233 | /** | ||
234 | * <!-- begin-user-doc --> | ||
235 | * <!-- end-user-doc --> | ||
236 | * @deprecated | ||
237 | * @generated | ||
238 | */ | ||
239 | @Deprecated | ||
240 | public static CrossingScenarioPackage getPackage() { | ||
241 | return CrossingScenarioPackage.eINSTANCE; | ||
242 | } | ||
243 | |||
244 | } //CrossingScenarioFactoryImpl | ||
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/impl/CrossingScenarioImpl.java b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/CrossingScenarioImpl.java index 28667b0c..50c11e69 100644 --- a/Domains/crossingScenario/ecore-gen/crossingScenario/impl/CrossingScenarioImpl.java +++ b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/CrossingScenarioImpl.java | |||
@@ -1,524 +1,525 @@ | |||
1 | /** | 1 | /** |
2 | */ | 2 | */ |
3 | package crossingScenario.impl; | 3 | package crossingScenario.impl; |
4 | 4 | ||
5 | import crossingScenario.Actor; | 5 | import crossingScenario.Actor; |
6 | import crossingScenario.CrossingScenario; | 6 | import crossingScenario.CrossingScenario; |
7 | import crossingScenario.CrossingScenarioPackage; | 7 | import crossingScenario.CrossingScenarioPackage; |
8 | import crossingScenario.Lane; | 8 | import crossingScenario.Lane; |
9 | import crossingScenario.Relation; | 9 | import crossingScenario.Relation; |
10 | import java.util.Collection; | 10 | |
11 | 11 | import java.util.Collection; | |
12 | import org.eclipse.emf.common.notify.Notification; | 12 | |
13 | import org.eclipse.emf.common.notify.NotificationChain; | 13 | import org.eclipse.emf.common.notify.Notification; |
14 | 14 | import org.eclipse.emf.common.notify.NotificationChain; | |
15 | import org.eclipse.emf.common.util.EList; | 15 | |
16 | 16 | import org.eclipse.emf.common.util.EList; | |
17 | import org.eclipse.emf.ecore.EClass; | 17 | |
18 | import org.eclipse.emf.ecore.InternalEObject; | 18 | import org.eclipse.emf.ecore.EClass; |
19 | 19 | import org.eclipse.emf.ecore.InternalEObject; | |
20 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | 20 | |
21 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | 21 | import org.eclipse.emf.ecore.impl.ENotificationImpl; |
22 | 22 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | |
23 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | 23 | |
24 | import org.eclipse.emf.ecore.util.InternalEList; | 24 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; |
25 | 25 | import org.eclipse.emf.ecore.util.InternalEList; | |
26 | /** | 26 | |
27 | * <!-- begin-user-doc --> | 27 | /** |
28 | * An implementation of the model object '<em><b>Crossing Scenario</b></em>'. | 28 | * <!-- begin-user-doc --> |
29 | * <!-- end-user-doc --> | 29 | * An implementation of the model object '<em><b>Crossing Scenario</b></em>'. |
30 | * <p> | 30 | * <!-- end-user-doc --> |
31 | * The following features are implemented: | 31 | * <p> |
32 | * </p> | 32 | * The following features are implemented: |
33 | * <ul> | 33 | * </p> |
34 | * <li>{@link crossingScenario.impl.CrossingScenarioImpl#getXSize <em>XSize</em>}</li> | 34 | * <ul> |
35 | * <li>{@link crossingScenario.impl.CrossingScenarioImpl#getYSize <em>YSize</em>}</li> | 35 | * <li>{@link crossingScenario.impl.CrossingScenarioImpl#getXSize <em>XSize</em>}</li> |
36 | * <li>{@link crossingScenario.impl.CrossingScenarioImpl#getActors <em>Actors</em>}</li> | 36 | * <li>{@link crossingScenario.impl.CrossingScenarioImpl#getYSize <em>YSize</em>}</li> |
37 | * <li>{@link crossingScenario.impl.CrossingScenarioImpl#getLanes <em>Lanes</em>}</li> | 37 | * <li>{@link crossingScenario.impl.CrossingScenarioImpl#getActors <em>Actors</em>}</li> |
38 | * <li>{@link crossingScenario.impl.CrossingScenarioImpl#getMaxTime <em>Max Time</em>}</li> | 38 | * <li>{@link crossingScenario.impl.CrossingScenarioImpl#getLanes <em>Lanes</em>}</li> |
39 | * <li>{@link crossingScenario.impl.CrossingScenarioImpl#getRelations <em>Relations</em>}</li> | 39 | * <li>{@link crossingScenario.impl.CrossingScenarioImpl#getMaxTime <em>Max Time</em>}</li> |
40 | * <li>{@link crossingScenario.impl.CrossingScenarioImpl#getMaxXSpeed <em>Max XSpeed</em>}</li> | 40 | * <li>{@link crossingScenario.impl.CrossingScenarioImpl#getRelations <em>Relations</em>}</li> |
41 | * <li>{@link crossingScenario.impl.CrossingScenarioImpl#getMaxYSpeed <em>Max YSpeed</em>}</li> | 41 | * <li>{@link crossingScenario.impl.CrossingScenarioImpl#getMaxXSpeed <em>Max XSpeed</em>}</li> |
42 | * </ul> | 42 | * <li>{@link crossingScenario.impl.CrossingScenarioImpl#getMaxYSpeed <em>Max YSpeed</em>}</li> |
43 | * | 43 | * </ul> |
44 | * @generated | 44 | * |
45 | */ | 45 | * @generated |
46 | public class CrossingScenarioImpl extends MinimalEObjectImpl.Container implements CrossingScenario { | 46 | */ |
47 | /** | 47 | public class CrossingScenarioImpl extends MinimalEObjectImpl.Container implements CrossingScenario { |
48 | * The default value of the '{@link #getXSize() <em>XSize</em>}' attribute. | 48 | /** |
49 | * <!-- begin-user-doc --> | 49 | * The default value of the '{@link #getXSize() <em>XSize</em>}' attribute. |
50 | * <!-- end-user-doc --> | 50 | * <!-- begin-user-doc --> |
51 | * @see #getXSize() | 51 | * <!-- end-user-doc --> |
52 | * @generated | 52 | * @see #getXSize() |
53 | * @ordered | 53 | * @generated |
54 | */ | 54 | * @ordered |
55 | protected static final double XSIZE_EDEFAULT = 0.0; | 55 | */ |
56 | 56 | protected static final double XSIZE_EDEFAULT = 0.0; | |
57 | /** | 57 | |
58 | * The cached value of the '{@link #getXSize() <em>XSize</em>}' attribute. | 58 | /** |
59 | * <!-- begin-user-doc --> | 59 | * The cached value of the '{@link #getXSize() <em>XSize</em>}' attribute. |
60 | * <!-- end-user-doc --> | 60 | * <!-- begin-user-doc --> |
61 | * @see #getXSize() | 61 | * <!-- end-user-doc --> |
62 | * @generated | 62 | * @see #getXSize() |
63 | * @ordered | 63 | * @generated |
64 | */ | 64 | * @ordered |
65 | protected double xSize = XSIZE_EDEFAULT; | 65 | */ |
66 | 66 | protected double xSize = XSIZE_EDEFAULT; | |
67 | /** | 67 | |
68 | * The default value of the '{@link #getYSize() <em>YSize</em>}' attribute. | 68 | /** |
69 | * <!-- begin-user-doc --> | 69 | * The default value of the '{@link #getYSize() <em>YSize</em>}' attribute. |
70 | * <!-- end-user-doc --> | 70 | * <!-- begin-user-doc --> |
71 | * @see #getYSize() | 71 | * <!-- end-user-doc --> |
72 | * @generated | 72 | * @see #getYSize() |
73 | * @ordered | 73 | * @generated |
74 | */ | 74 | * @ordered |
75 | protected static final double YSIZE_EDEFAULT = 0.0; | 75 | */ |
76 | 76 | protected static final double YSIZE_EDEFAULT = 0.0; | |
77 | /** | 77 | |
78 | * The cached value of the '{@link #getYSize() <em>YSize</em>}' attribute. | 78 | /** |
79 | * <!-- begin-user-doc --> | 79 | * The cached value of the '{@link #getYSize() <em>YSize</em>}' attribute. |
80 | * <!-- end-user-doc --> | 80 | * <!-- begin-user-doc --> |
81 | * @see #getYSize() | 81 | * <!-- end-user-doc --> |
82 | * @generated | 82 | * @see #getYSize() |
83 | * @ordered | 83 | * @generated |
84 | */ | 84 | * @ordered |
85 | protected double ySize = YSIZE_EDEFAULT; | 85 | */ |
86 | 86 | protected double ySize = YSIZE_EDEFAULT; | |
87 | /** | 87 | |
88 | * The cached value of the '{@link #getActors() <em>Actors</em>}' containment reference list. | 88 | /** |
89 | * <!-- begin-user-doc --> | 89 | * The cached value of the '{@link #getActors() <em>Actors</em>}' containment reference list. |
90 | * <!-- end-user-doc --> | 90 | * <!-- begin-user-doc --> |
91 | * @see #getActors() | 91 | * <!-- end-user-doc --> |
92 | * @generated | 92 | * @see #getActors() |
93 | * @ordered | 93 | * @generated |
94 | */ | 94 | * @ordered |
95 | protected EList<Actor> actors; | 95 | */ |
96 | 96 | protected EList<Actor> actors; | |
97 | /** | 97 | |
98 | * The cached value of the '{@link #getLanes() <em>Lanes</em>}' containment reference list. | 98 | /** |
99 | * <!-- begin-user-doc --> | 99 | * The cached value of the '{@link #getLanes() <em>Lanes</em>}' containment reference list. |
100 | * <!-- end-user-doc --> | 100 | * <!-- begin-user-doc --> |
101 | * @see #getLanes() | 101 | * <!-- end-user-doc --> |
102 | * @generated | 102 | * @see #getLanes() |
103 | * @ordered | 103 | * @generated |
104 | */ | 104 | * @ordered |
105 | protected EList<Lane> lanes; | 105 | */ |
106 | 106 | protected EList<Lane> lanes; | |
107 | /** | 107 | |
108 | * The default value of the '{@link #getMaxTime() <em>Max Time</em>}' attribute. | 108 | /** |
109 | * <!-- begin-user-doc --> | 109 | * The default value of the '{@link #getMaxTime() <em>Max Time</em>}' attribute. |
110 | * <!-- end-user-doc --> | 110 | * <!-- begin-user-doc --> |
111 | * @see #getMaxTime() | 111 | * <!-- end-user-doc --> |
112 | * @generated | 112 | * @see #getMaxTime() |
113 | * @ordered | 113 | * @generated |
114 | */ | 114 | * @ordered |
115 | protected static final double MAX_TIME_EDEFAULT = 0.0; | 115 | */ |
116 | 116 | protected static final double MAX_TIME_EDEFAULT = 0.0; | |
117 | /** | 117 | |
118 | * The cached value of the '{@link #getMaxTime() <em>Max Time</em>}' attribute. | 118 | /** |
119 | * <!-- begin-user-doc --> | 119 | * The cached value of the '{@link #getMaxTime() <em>Max Time</em>}' attribute. |
120 | * <!-- end-user-doc --> | 120 | * <!-- begin-user-doc --> |
121 | * @see #getMaxTime() | 121 | * <!-- end-user-doc --> |
122 | * @generated | 122 | * @see #getMaxTime() |
123 | * @ordered | 123 | * @generated |
124 | */ | 124 | * @ordered |
125 | protected double maxTime = MAX_TIME_EDEFAULT; | 125 | */ |
126 | 126 | protected double maxTime = MAX_TIME_EDEFAULT; | |
127 | /** | 127 | |
128 | * The cached value of the '{@link #getRelations() <em>Relations</em>}' containment reference list. | 128 | /** |
129 | * <!-- begin-user-doc --> | 129 | * The cached value of the '{@link #getRelations() <em>Relations</em>}' containment reference list. |
130 | * <!-- end-user-doc --> | 130 | * <!-- begin-user-doc --> |
131 | * @see #getRelations() | 131 | * <!-- end-user-doc --> |
132 | * @generated | 132 | * @see #getRelations() |
133 | * @ordered | 133 | * @generated |
134 | */ | 134 | * @ordered |
135 | protected EList<Relation> relations; | 135 | */ |
136 | 136 | protected EList<Relation> relations; | |
137 | /** | 137 | |
138 | * The default value of the '{@link #getMaxXSpeed() <em>Max XSpeed</em>}' attribute. | 138 | /** |
139 | * <!-- begin-user-doc --> | 139 | * The default value of the '{@link #getMaxXSpeed() <em>Max XSpeed</em>}' attribute. |
140 | * <!-- end-user-doc --> | 140 | * <!-- begin-user-doc --> |
141 | * @see #getMaxXSpeed() | 141 | * <!-- end-user-doc --> |
142 | * @generated | 142 | * @see #getMaxXSpeed() |
143 | * @ordered | 143 | * @generated |
144 | */ | 144 | * @ordered |
145 | protected static final double MAX_XSPEED_EDEFAULT = 0.0; | 145 | */ |
146 | 146 | protected static final double MAX_XSPEED_EDEFAULT = 0.0; | |
147 | /** | 147 | |
148 | * The cached value of the '{@link #getMaxXSpeed() <em>Max XSpeed</em>}' attribute. | 148 | /** |
149 | * <!-- begin-user-doc --> | 149 | * The cached value of the '{@link #getMaxXSpeed() <em>Max XSpeed</em>}' attribute. |
150 | * <!-- end-user-doc --> | 150 | * <!-- begin-user-doc --> |
151 | * @see #getMaxXSpeed() | 151 | * <!-- end-user-doc --> |
152 | * @generated | 152 | * @see #getMaxXSpeed() |
153 | * @ordered | 153 | * @generated |
154 | */ | 154 | * @ordered |
155 | protected double maxXSpeed = MAX_XSPEED_EDEFAULT; | 155 | */ |
156 | 156 | protected double maxXSpeed = MAX_XSPEED_EDEFAULT; | |
157 | /** | 157 | |
158 | * The default value of the '{@link #getMaxYSpeed() <em>Max YSpeed</em>}' attribute. | 158 | /** |
159 | * <!-- begin-user-doc --> | 159 | * The default value of the '{@link #getMaxYSpeed() <em>Max YSpeed</em>}' attribute. |
160 | * <!-- end-user-doc --> | 160 | * <!-- begin-user-doc --> |
161 | * @see #getMaxYSpeed() | 161 | * <!-- end-user-doc --> |
162 | * @generated | 162 | * @see #getMaxYSpeed() |
163 | * @ordered | 163 | * @generated |
164 | */ | 164 | * @ordered |
165 | protected static final double MAX_YSPEED_EDEFAULT = 0.0; | 165 | */ |
166 | 166 | protected static final double MAX_YSPEED_EDEFAULT = 0.0; | |
167 | /** | 167 | |
168 | * The cached value of the '{@link #getMaxYSpeed() <em>Max YSpeed</em>}' attribute. | 168 | /** |
169 | * <!-- begin-user-doc --> | 169 | * The cached value of the '{@link #getMaxYSpeed() <em>Max YSpeed</em>}' attribute. |
170 | * <!-- end-user-doc --> | 170 | * <!-- begin-user-doc --> |
171 | * @see #getMaxYSpeed() | 171 | * <!-- end-user-doc --> |
172 | * @generated | 172 | * @see #getMaxYSpeed() |
173 | * @ordered | 173 | * @generated |
174 | */ | 174 | * @ordered |
175 | protected double maxYSpeed = MAX_YSPEED_EDEFAULT; | 175 | */ |
176 | 176 | protected double maxYSpeed = MAX_YSPEED_EDEFAULT; | |
177 | /** | 177 | |
178 | * <!-- begin-user-doc --> | 178 | /** |
179 | * <!-- end-user-doc --> | 179 | * <!-- begin-user-doc --> |
180 | * @generated | 180 | * <!-- end-user-doc --> |
181 | */ | 181 | * @generated |
182 | protected CrossingScenarioImpl() { | 182 | */ |
183 | super(); | 183 | protected CrossingScenarioImpl() { |
184 | } | 184 | super(); |
185 | 185 | } | |
186 | /** | 186 | |
187 | * <!-- begin-user-doc --> | 187 | /** |
188 | * <!-- end-user-doc --> | 188 | * <!-- begin-user-doc --> |
189 | * @generated | 189 | * <!-- end-user-doc --> |
190 | */ | 190 | * @generated |
191 | @Override | 191 | */ |
192 | protected EClass eStaticClass() { | 192 | @Override |
193 | return CrossingScenarioPackage.Literals.CROSSING_SCENARIO; | 193 | protected EClass eStaticClass() { |
194 | } | 194 | return CrossingScenarioPackage.Literals.CROSSING_SCENARIO; |
195 | 195 | } | |
196 | /** | 196 | |
197 | * <!-- begin-user-doc --> | 197 | /** |
198 | * <!-- end-user-doc --> | 198 | * <!-- begin-user-doc --> |
199 | * @generated | 199 | * <!-- end-user-doc --> |
200 | */ | 200 | * @generated |
201 | @Override | 201 | */ |
202 | public double getXSize() { | 202 | @Override |
203 | return xSize; | 203 | public double getXSize() { |
204 | } | 204 | return xSize; |
205 | 205 | } | |
206 | /** | 206 | |
207 | * <!-- begin-user-doc --> | 207 | /** |
208 | * <!-- end-user-doc --> | 208 | * <!-- begin-user-doc --> |
209 | * @generated | 209 | * <!-- end-user-doc --> |
210 | */ | 210 | * @generated |
211 | @Override | 211 | */ |
212 | public void setXSize(double newXSize) { | 212 | @Override |
213 | double oldXSize = xSize; | 213 | public void setXSize(double newXSize) { |
214 | xSize = newXSize; | 214 | double oldXSize = xSize; |
215 | if (eNotificationRequired()) | 215 | xSize = newXSize; |
216 | eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.CROSSING_SCENARIO__XSIZE, oldXSize, xSize)); | 216 | if (eNotificationRequired()) |
217 | } | 217 | eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.CROSSING_SCENARIO__XSIZE, oldXSize, xSize)); |
218 | 218 | } | |
219 | /** | 219 | |
220 | * <!-- begin-user-doc --> | 220 | /** |
221 | * <!-- end-user-doc --> | 221 | * <!-- begin-user-doc --> |
222 | * @generated | 222 | * <!-- end-user-doc --> |
223 | */ | 223 | * @generated |
224 | @Override | 224 | */ |
225 | public double getYSize() { | 225 | @Override |
226 | return ySize; | 226 | public double getYSize() { |
227 | } | 227 | return ySize; |
228 | 228 | } | |
229 | /** | 229 | |
230 | * <!-- begin-user-doc --> | 230 | /** |
231 | * <!-- end-user-doc --> | 231 | * <!-- begin-user-doc --> |
232 | * @generated | 232 | * <!-- end-user-doc --> |
233 | */ | 233 | * @generated |
234 | @Override | 234 | */ |
235 | public void setYSize(double newYSize) { | 235 | @Override |
236 | double oldYSize = ySize; | 236 | public void setYSize(double newYSize) { |
237 | ySize = newYSize; | 237 | double oldYSize = ySize; |
238 | if (eNotificationRequired()) | 238 | ySize = newYSize; |
239 | eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.CROSSING_SCENARIO__YSIZE, oldYSize, ySize)); | 239 | if (eNotificationRequired()) |
240 | } | 240 | eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.CROSSING_SCENARIO__YSIZE, oldYSize, ySize)); |
241 | 241 | } | |
242 | /** | 242 | |
243 | * <!-- begin-user-doc --> | 243 | /** |
244 | * <!-- end-user-doc --> | 244 | * <!-- begin-user-doc --> |
245 | * @generated | 245 | * <!-- end-user-doc --> |
246 | */ | 246 | * @generated |
247 | @Override | 247 | */ |
248 | public EList<Actor> getActors() { | 248 | @Override |
249 | if (actors == null) { | 249 | public EList<Actor> getActors() { |
250 | actors = new EObjectContainmentEList<Actor>(Actor.class, this, CrossingScenarioPackage.CROSSING_SCENARIO__ACTORS); | 250 | if (actors == null) { |
251 | } | 251 | actors = new EObjectContainmentEList<Actor>(Actor.class, this, CrossingScenarioPackage.CROSSING_SCENARIO__ACTORS); |
252 | return actors; | 252 | } |
253 | } | 253 | return actors; |
254 | 254 | } | |
255 | /** | 255 | |
256 | * <!-- begin-user-doc --> | 256 | /** |
257 | * <!-- end-user-doc --> | 257 | * <!-- begin-user-doc --> |
258 | * @generated | 258 | * <!-- end-user-doc --> |
259 | */ | 259 | * @generated |
260 | @Override | 260 | */ |
261 | public EList<Lane> getLanes() { | 261 | @Override |
262 | if (lanes == null) { | 262 | public EList<Lane> getLanes() { |
263 | lanes = new EObjectContainmentEList<Lane>(Lane.class, this, CrossingScenarioPackage.CROSSING_SCENARIO__LANES); | 263 | if (lanes == null) { |
264 | } | 264 | lanes = new EObjectContainmentEList<Lane>(Lane.class, this, CrossingScenarioPackage.CROSSING_SCENARIO__LANES); |
265 | return lanes; | 265 | } |
266 | } | 266 | return lanes; |
267 | 267 | } | |
268 | /** | 268 | |
269 | * <!-- begin-user-doc --> | 269 | /** |
270 | * <!-- end-user-doc --> | 270 | * <!-- begin-user-doc --> |
271 | * @generated | 271 | * <!-- end-user-doc --> |
272 | */ | 272 | * @generated |
273 | @Override | 273 | */ |
274 | public double getMaxTime() { | 274 | @Override |
275 | return maxTime; | 275 | public double getMaxTime() { |
276 | } | 276 | return maxTime; |
277 | 277 | } | |
278 | /** | 278 | |
279 | * <!-- begin-user-doc --> | 279 | /** |
280 | * <!-- end-user-doc --> | 280 | * <!-- begin-user-doc --> |
281 | * @generated | 281 | * <!-- end-user-doc --> |
282 | */ | 282 | * @generated |
283 | @Override | 283 | */ |
284 | public void setMaxTime(double newMaxTime) { | 284 | @Override |
285 | double oldMaxTime = maxTime; | 285 | public void setMaxTime(double newMaxTime) { |
286 | maxTime = newMaxTime; | 286 | double oldMaxTime = maxTime; |
287 | if (eNotificationRequired()) | 287 | maxTime = newMaxTime; |
288 | eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.CROSSING_SCENARIO__MAX_TIME, oldMaxTime, maxTime)); | 288 | if (eNotificationRequired()) |
289 | } | 289 | eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.CROSSING_SCENARIO__MAX_TIME, oldMaxTime, maxTime)); |
290 | 290 | } | |
291 | /** | 291 | |
292 | * <!-- begin-user-doc --> | 292 | /** |
293 | * <!-- end-user-doc --> | 293 | * <!-- begin-user-doc --> |
294 | * @generated | 294 | * <!-- end-user-doc --> |
295 | */ | 295 | * @generated |
296 | @Override | 296 | */ |
297 | public EList<Relation> getRelations() { | 297 | @Override |
298 | if (relations == null) { | 298 | public EList<Relation> getRelations() { |
299 | relations = new EObjectContainmentEList<Relation>(Relation.class, this, CrossingScenarioPackage.CROSSING_SCENARIO__RELATIONS); | 299 | if (relations == null) { |
300 | } | 300 | relations = new EObjectContainmentEList<Relation>(Relation.class, this, CrossingScenarioPackage.CROSSING_SCENARIO__RELATIONS); |
301 | return relations; | 301 | } |
302 | } | 302 | return relations; |
303 | 303 | } | |
304 | /** | 304 | |
305 | * <!-- begin-user-doc --> | 305 | /** |
306 | * <!-- end-user-doc --> | 306 | * <!-- begin-user-doc --> |
307 | * @generated | 307 | * <!-- end-user-doc --> |
308 | */ | 308 | * @generated |
309 | @Override | 309 | */ |
310 | public double getMaxXSpeed() { | 310 | @Override |
311 | return maxXSpeed; | 311 | public double getMaxXSpeed() { |
312 | } | 312 | return maxXSpeed; |
313 | 313 | } | |
314 | /** | 314 | |
315 | * <!-- begin-user-doc --> | 315 | /** |
316 | * <!-- end-user-doc --> | 316 | * <!-- begin-user-doc --> |
317 | * @generated | 317 | * <!-- end-user-doc --> |
318 | */ | 318 | * @generated |
319 | @Override | 319 | */ |
320 | public void setMaxXSpeed(double newMaxXSpeed) { | 320 | @Override |
321 | double oldMaxXSpeed = maxXSpeed; | 321 | public void setMaxXSpeed(double newMaxXSpeed) { |
322 | maxXSpeed = newMaxXSpeed; | 322 | double oldMaxXSpeed = maxXSpeed; |
323 | if (eNotificationRequired()) | 323 | maxXSpeed = newMaxXSpeed; |
324 | eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.CROSSING_SCENARIO__MAX_XSPEED, oldMaxXSpeed, maxXSpeed)); | 324 | if (eNotificationRequired()) |
325 | } | 325 | eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.CROSSING_SCENARIO__MAX_XSPEED, oldMaxXSpeed, maxXSpeed)); |
326 | 326 | } | |
327 | /** | 327 | |
328 | * <!-- begin-user-doc --> | 328 | /** |
329 | * <!-- end-user-doc --> | 329 | * <!-- begin-user-doc --> |
330 | * @generated | 330 | * <!-- end-user-doc --> |
331 | */ | 331 | * @generated |
332 | @Override | 332 | */ |
333 | public double getMaxYSpeed() { | 333 | @Override |
334 | return maxYSpeed; | 334 | public double getMaxYSpeed() { |
335 | } | 335 | return maxYSpeed; |
336 | 336 | } | |
337 | /** | 337 | |
338 | * <!-- begin-user-doc --> | 338 | /** |
339 | * <!-- end-user-doc --> | 339 | * <!-- begin-user-doc --> |
340 | * @generated | 340 | * <!-- end-user-doc --> |
341 | */ | 341 | * @generated |
342 | @Override | 342 | */ |
343 | public void setMaxYSpeed(double newMaxYSpeed) { | 343 | @Override |
344 | double oldMaxYSpeed = maxYSpeed; | 344 | public void setMaxYSpeed(double newMaxYSpeed) { |
345 | maxYSpeed = newMaxYSpeed; | 345 | double oldMaxYSpeed = maxYSpeed; |
346 | if (eNotificationRequired()) | 346 | maxYSpeed = newMaxYSpeed; |
347 | eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.CROSSING_SCENARIO__MAX_YSPEED, oldMaxYSpeed, maxYSpeed)); | 347 | if (eNotificationRequired()) |
348 | } | 348 | eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.CROSSING_SCENARIO__MAX_YSPEED, oldMaxYSpeed, maxYSpeed)); |
349 | 349 | } | |
350 | /** | 350 | |
351 | * <!-- begin-user-doc --> | 351 | /** |
352 | * <!-- end-user-doc --> | 352 | * <!-- begin-user-doc --> |
353 | * @generated | 353 | * <!-- end-user-doc --> |
354 | */ | 354 | * @generated |
355 | @Override | 355 | */ |
356 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | 356 | @Override |
357 | switch (featureID) { | 357 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { |
358 | case CrossingScenarioPackage.CROSSING_SCENARIO__ACTORS: | 358 | switch (featureID) { |
359 | return ((InternalEList<?>)getActors()).basicRemove(otherEnd, msgs); | 359 | case CrossingScenarioPackage.CROSSING_SCENARIO__ACTORS: |
360 | case CrossingScenarioPackage.CROSSING_SCENARIO__LANES: | 360 | return ((InternalEList<?>)getActors()).basicRemove(otherEnd, msgs); |
361 | return ((InternalEList<?>)getLanes()).basicRemove(otherEnd, msgs); | 361 | case CrossingScenarioPackage.CROSSING_SCENARIO__LANES: |
362 | case CrossingScenarioPackage.CROSSING_SCENARIO__RELATIONS: | 362 | return ((InternalEList<?>)getLanes()).basicRemove(otherEnd, msgs); |
363 | return ((InternalEList<?>)getRelations()).basicRemove(otherEnd, msgs); | 363 | case CrossingScenarioPackage.CROSSING_SCENARIO__RELATIONS: |
364 | } | 364 | return ((InternalEList<?>)getRelations()).basicRemove(otherEnd, msgs); |
365 | return super.eInverseRemove(otherEnd, featureID, msgs); | 365 | } |
366 | } | 366 | return super.eInverseRemove(otherEnd, featureID, msgs); |
367 | 367 | } | |
368 | /** | 368 | |
369 | * <!-- begin-user-doc --> | 369 | /** |
370 | * <!-- end-user-doc --> | 370 | * <!-- begin-user-doc --> |
371 | * @generated | 371 | * <!-- end-user-doc --> |
372 | */ | 372 | * @generated |
373 | @Override | 373 | */ |
374 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | 374 | @Override |
375 | switch (featureID) { | 375 | public Object eGet(int featureID, boolean resolve, boolean coreType) { |
376 | case CrossingScenarioPackage.CROSSING_SCENARIO__XSIZE: | 376 | switch (featureID) { |
377 | return getXSize(); | 377 | case CrossingScenarioPackage.CROSSING_SCENARIO__XSIZE: |
378 | case CrossingScenarioPackage.CROSSING_SCENARIO__YSIZE: | 378 | return getXSize(); |
379 | return getYSize(); | 379 | case CrossingScenarioPackage.CROSSING_SCENARIO__YSIZE: |
380 | case CrossingScenarioPackage.CROSSING_SCENARIO__ACTORS: | 380 | return getYSize(); |
381 | return getActors(); | 381 | case CrossingScenarioPackage.CROSSING_SCENARIO__ACTORS: |
382 | case CrossingScenarioPackage.CROSSING_SCENARIO__LANES: | 382 | return getActors(); |
383 | return getLanes(); | 383 | case CrossingScenarioPackage.CROSSING_SCENARIO__LANES: |
384 | case CrossingScenarioPackage.CROSSING_SCENARIO__MAX_TIME: | 384 | return getLanes(); |
385 | return getMaxTime(); | 385 | case CrossingScenarioPackage.CROSSING_SCENARIO__MAX_TIME: |
386 | case CrossingScenarioPackage.CROSSING_SCENARIO__RELATIONS: | 386 | return getMaxTime(); |
387 | return getRelations(); | 387 | case CrossingScenarioPackage.CROSSING_SCENARIO__RELATIONS: |
388 | case CrossingScenarioPackage.CROSSING_SCENARIO__MAX_XSPEED: | 388 | return getRelations(); |
389 | return getMaxXSpeed(); | 389 | case CrossingScenarioPackage.CROSSING_SCENARIO__MAX_XSPEED: |
390 | case CrossingScenarioPackage.CROSSING_SCENARIO__MAX_YSPEED: | 390 | return getMaxXSpeed(); |
391 | return getMaxYSpeed(); | 391 | case CrossingScenarioPackage.CROSSING_SCENARIO__MAX_YSPEED: |
392 | } | 392 | return getMaxYSpeed(); |
393 | return super.eGet(featureID, resolve, coreType); | 393 | } |
394 | } | 394 | return super.eGet(featureID, resolve, coreType); |
395 | 395 | } | |
396 | /** | 396 | |
397 | * <!-- begin-user-doc --> | 397 | /** |
398 | * <!-- end-user-doc --> | 398 | * <!-- begin-user-doc --> |
399 | * @generated | 399 | * <!-- end-user-doc --> |
400 | */ | 400 | * @generated |
401 | @SuppressWarnings("unchecked") | 401 | */ |
402 | @Override | 402 | @SuppressWarnings("unchecked") |
403 | public void eSet(int featureID, Object newValue) { | 403 | @Override |
404 | switch (featureID) { | 404 | public void eSet(int featureID, Object newValue) { |
405 | case CrossingScenarioPackage.CROSSING_SCENARIO__XSIZE: | 405 | switch (featureID) { |
406 | setXSize((Double)newValue); | 406 | case CrossingScenarioPackage.CROSSING_SCENARIO__XSIZE: |
407 | return; | 407 | setXSize((Double)newValue); |
408 | case CrossingScenarioPackage.CROSSING_SCENARIO__YSIZE: | 408 | return; |
409 | setYSize((Double)newValue); | 409 | case CrossingScenarioPackage.CROSSING_SCENARIO__YSIZE: |
410 | return; | 410 | setYSize((Double)newValue); |
411 | case CrossingScenarioPackage.CROSSING_SCENARIO__ACTORS: | 411 | return; |
412 | getActors().clear(); | 412 | case CrossingScenarioPackage.CROSSING_SCENARIO__ACTORS: |
413 | getActors().addAll((Collection<? extends Actor>)newValue); | 413 | getActors().clear(); |
414 | return; | 414 | getActors().addAll((Collection<? extends Actor>)newValue); |
415 | case CrossingScenarioPackage.CROSSING_SCENARIO__LANES: | 415 | return; |
416 | getLanes().clear(); | 416 | case CrossingScenarioPackage.CROSSING_SCENARIO__LANES: |
417 | getLanes().addAll((Collection<? extends Lane>)newValue); | 417 | getLanes().clear(); |
418 | return; | 418 | getLanes().addAll((Collection<? extends Lane>)newValue); |
419 | case CrossingScenarioPackage.CROSSING_SCENARIO__MAX_TIME: | 419 | return; |
420 | setMaxTime((Double)newValue); | 420 | case CrossingScenarioPackage.CROSSING_SCENARIO__MAX_TIME: |
421 | return; | 421 | setMaxTime((Double)newValue); |
422 | case CrossingScenarioPackage.CROSSING_SCENARIO__RELATIONS: | 422 | return; |
423 | getRelations().clear(); | 423 | case CrossingScenarioPackage.CROSSING_SCENARIO__RELATIONS: |
424 | getRelations().addAll((Collection<? extends Relation>)newValue); | 424 | getRelations().clear(); |
425 | return; | 425 | getRelations().addAll((Collection<? extends Relation>)newValue); |
426 | case CrossingScenarioPackage.CROSSING_SCENARIO__MAX_XSPEED: | 426 | return; |
427 | setMaxXSpeed((Double)newValue); | 427 | case CrossingScenarioPackage.CROSSING_SCENARIO__MAX_XSPEED: |
428 | return; | 428 | setMaxXSpeed((Double)newValue); |
429 | case CrossingScenarioPackage.CROSSING_SCENARIO__MAX_YSPEED: | 429 | return; |
430 | setMaxYSpeed((Double)newValue); | 430 | case CrossingScenarioPackage.CROSSING_SCENARIO__MAX_YSPEED: |
431 | return; | 431 | setMaxYSpeed((Double)newValue); |
432 | } | 432 | return; |
433 | super.eSet(featureID, newValue); | 433 | } |
434 | } | 434 | super.eSet(featureID, newValue); |
435 | 435 | } | |
436 | /** | 436 | |
437 | * <!-- begin-user-doc --> | 437 | /** |
438 | * <!-- end-user-doc --> | 438 | * <!-- begin-user-doc --> |
439 | * @generated | 439 | * <!-- end-user-doc --> |
440 | */ | 440 | * @generated |
441 | @Override | 441 | */ |
442 | public void eUnset(int featureID) { | 442 | @Override |
443 | switch (featureID) { | 443 | public void eUnset(int featureID) { |
444 | case CrossingScenarioPackage.CROSSING_SCENARIO__XSIZE: | 444 | switch (featureID) { |
445 | setXSize(XSIZE_EDEFAULT); | 445 | case CrossingScenarioPackage.CROSSING_SCENARIO__XSIZE: |
446 | return; | 446 | setXSize(XSIZE_EDEFAULT); |
447 | case CrossingScenarioPackage.CROSSING_SCENARIO__YSIZE: | 447 | return; |
448 | setYSize(YSIZE_EDEFAULT); | 448 | case CrossingScenarioPackage.CROSSING_SCENARIO__YSIZE: |
449 | return; | 449 | setYSize(YSIZE_EDEFAULT); |
450 | case CrossingScenarioPackage.CROSSING_SCENARIO__ACTORS: | 450 | return; |
451 | getActors().clear(); | 451 | case CrossingScenarioPackage.CROSSING_SCENARIO__ACTORS: |
452 | return; | 452 | getActors().clear(); |
453 | case CrossingScenarioPackage.CROSSING_SCENARIO__LANES: | 453 | return; |
454 | getLanes().clear(); | 454 | case CrossingScenarioPackage.CROSSING_SCENARIO__LANES: |
455 | return; | 455 | getLanes().clear(); |
456 | case CrossingScenarioPackage.CROSSING_SCENARIO__MAX_TIME: | 456 | return; |
457 | setMaxTime(MAX_TIME_EDEFAULT); | 457 | case CrossingScenarioPackage.CROSSING_SCENARIO__MAX_TIME: |
458 | return; | 458 | setMaxTime(MAX_TIME_EDEFAULT); |
459 | case CrossingScenarioPackage.CROSSING_SCENARIO__RELATIONS: | 459 | return; |
460 | getRelations().clear(); | 460 | case CrossingScenarioPackage.CROSSING_SCENARIO__RELATIONS: |
461 | return; | 461 | getRelations().clear(); |
462 | case CrossingScenarioPackage.CROSSING_SCENARIO__MAX_XSPEED: | 462 | return; |
463 | setMaxXSpeed(MAX_XSPEED_EDEFAULT); | 463 | case CrossingScenarioPackage.CROSSING_SCENARIO__MAX_XSPEED: |
464 | return; | 464 | setMaxXSpeed(MAX_XSPEED_EDEFAULT); |
465 | case CrossingScenarioPackage.CROSSING_SCENARIO__MAX_YSPEED: | 465 | return; |
466 | setMaxYSpeed(MAX_YSPEED_EDEFAULT); | 466 | case CrossingScenarioPackage.CROSSING_SCENARIO__MAX_YSPEED: |
467 | return; | 467 | setMaxYSpeed(MAX_YSPEED_EDEFAULT); |
468 | } | 468 | return; |
469 | super.eUnset(featureID); | 469 | } |
470 | } | 470 | super.eUnset(featureID); |
471 | 471 | } | |
472 | /** | 472 | |
473 | * <!-- begin-user-doc --> | 473 | /** |
474 | * <!-- end-user-doc --> | 474 | * <!-- begin-user-doc --> |
475 | * @generated | 475 | * <!-- end-user-doc --> |
476 | */ | 476 | * @generated |
477 | @Override | 477 | */ |
478 | public boolean eIsSet(int featureID) { | 478 | @Override |
479 | switch (featureID) { | 479 | public boolean eIsSet(int featureID) { |
480 | case CrossingScenarioPackage.CROSSING_SCENARIO__XSIZE: | 480 | switch (featureID) { |
481 | return xSize != XSIZE_EDEFAULT; | 481 | case CrossingScenarioPackage.CROSSING_SCENARIO__XSIZE: |
482 | case CrossingScenarioPackage.CROSSING_SCENARIO__YSIZE: | 482 | return xSize != XSIZE_EDEFAULT; |
483 | return ySize != YSIZE_EDEFAULT; | 483 | case CrossingScenarioPackage.CROSSING_SCENARIO__YSIZE: |
484 | case CrossingScenarioPackage.CROSSING_SCENARIO__ACTORS: | 484 | return ySize != YSIZE_EDEFAULT; |
485 | return actors != null && !actors.isEmpty(); | 485 | case CrossingScenarioPackage.CROSSING_SCENARIO__ACTORS: |
486 | case CrossingScenarioPackage.CROSSING_SCENARIO__LANES: | 486 | return actors != null && !actors.isEmpty(); |
487 | return lanes != null && !lanes.isEmpty(); | 487 | case CrossingScenarioPackage.CROSSING_SCENARIO__LANES: |
488 | case CrossingScenarioPackage.CROSSING_SCENARIO__MAX_TIME: | 488 | return lanes != null && !lanes.isEmpty(); |
489 | return maxTime != MAX_TIME_EDEFAULT; | 489 | case CrossingScenarioPackage.CROSSING_SCENARIO__MAX_TIME: |
490 | case CrossingScenarioPackage.CROSSING_SCENARIO__RELATIONS: | 490 | return maxTime != MAX_TIME_EDEFAULT; |
491 | return relations != null && !relations.isEmpty(); | 491 | case CrossingScenarioPackage.CROSSING_SCENARIO__RELATIONS: |
492 | case CrossingScenarioPackage.CROSSING_SCENARIO__MAX_XSPEED: | 492 | return relations != null && !relations.isEmpty(); |
493 | return maxXSpeed != MAX_XSPEED_EDEFAULT; | 493 | case CrossingScenarioPackage.CROSSING_SCENARIO__MAX_XSPEED: |
494 | case CrossingScenarioPackage.CROSSING_SCENARIO__MAX_YSPEED: | 494 | return maxXSpeed != MAX_XSPEED_EDEFAULT; |
495 | return maxYSpeed != MAX_YSPEED_EDEFAULT; | 495 | case CrossingScenarioPackage.CROSSING_SCENARIO__MAX_YSPEED: |
496 | } | 496 | return maxYSpeed != MAX_YSPEED_EDEFAULT; |
497 | return super.eIsSet(featureID); | 497 | } |
498 | } | 498 | return super.eIsSet(featureID); |
499 | 499 | } | |
500 | /** | 500 | |
501 | * <!-- begin-user-doc --> | 501 | /** |
502 | * <!-- end-user-doc --> | 502 | * <!-- begin-user-doc --> |
503 | * @generated | 503 | * <!-- end-user-doc --> |
504 | */ | 504 | * @generated |
505 | @Override | 505 | */ |
506 | public String toString() { | 506 | @Override |
507 | if (eIsProxy()) return super.toString(); | 507 | public String toString() { |
508 | 508 | if (eIsProxy()) return super.toString(); | |
509 | StringBuilder result = new StringBuilder(super.toString()); | 509 | |
510 | result.append(" (xSize: "); | 510 | StringBuilder result = new StringBuilder(super.toString()); |
511 | result.append(xSize); | 511 | result.append(" (xSize: "); |
512 | result.append(", ySize: "); | 512 | result.append(xSize); |
513 | result.append(ySize); | 513 | result.append(", ySize: "); |
514 | result.append(", maxTime: "); | 514 | result.append(ySize); |
515 | result.append(maxTime); | 515 | result.append(", maxTime: "); |
516 | result.append(", maxXSpeed: "); | 516 | result.append(maxTime); |
517 | result.append(maxXSpeed); | 517 | result.append(", maxXSpeed: "); |
518 | result.append(", maxYSpeed: "); | 518 | result.append(maxXSpeed); |
519 | result.append(maxYSpeed); | 519 | result.append(", maxYSpeed: "); |
520 | result.append(')'); | 520 | result.append(maxYSpeed); |
521 | return result.toString(); | 521 | result.append(')'); |
522 | } | 522 | return result.toString(); |
523 | 523 | } | |
524 | } //CrossingScenarioImpl | 524 | |
525 | } //CrossingScenarioImpl | ||
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/impl/CrossingScenarioPackageImpl.java b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/CrossingScenarioPackageImpl.java index 292fcb9c..24dfa5ef 100644 --- a/Domains/crossingScenario/ecore-gen/crossingScenario/impl/CrossingScenarioPackageImpl.java +++ b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/CrossingScenarioPackageImpl.java | |||
@@ -1,793 +1,707 @@ | |||
1 | /** | 1 | /** |
2 | */ | 2 | */ |
3 | package crossingScenario.impl; | 3 | package crossingScenario.impl; |
4 | 4 | ||
5 | import crossingScenario.Actor; | 5 | import crossingScenario.Actor; |
6 | import crossingScenario.CollisionDoesNotExist; | 6 | import crossingScenario.CollisionExists; |
7 | import crossingScenario.CollisionExists; | 7 | import crossingScenario.CrossingScenario; |
8 | import crossingScenario.CrossingScenario; | 8 | import crossingScenario.CrossingScenarioFactory; |
9 | import crossingScenario.CrossingScenarioFactory; | 9 | import crossingScenario.CrossingScenarioPackage; |
10 | import crossingScenario.CrossingScenarioPackage; | 10 | import crossingScenario.Lane; |
11 | import crossingScenario.Distance; | 11 | import crossingScenario.Lane_Horizontal; |
12 | import crossingScenario.Lane; | 12 | import crossingScenario.Lane_Vertical; |
13 | import crossingScenario.Lane_Horizontal; | 13 | import crossingScenario.Pedestrian; |
14 | import crossingScenario.Lane_Vertical; | 14 | import crossingScenario.Relation; |
15 | import crossingScenario.Pedestrian; | 15 | import crossingScenario.SpatialRelation; |
16 | import crossingScenario.Relation; | 16 | import crossingScenario.TemporalRelation; |
17 | import crossingScenario.SeparationDistance; | 17 | import crossingScenario.Vehicle; |
18 | import crossingScenario.SpatialRelation; | 18 | import crossingScenario.VisionBlocked; |
19 | import crossingScenario.TemporalRelation; | 19 | |
20 | import crossingScenario.Vehicle; | 20 | import org.eclipse.emf.ecore.EAttribute; |
21 | import crossingScenario.VisionBlocked; | 21 | import org.eclipse.emf.ecore.EClass; |
22 | 22 | import org.eclipse.emf.ecore.EPackage; | |
23 | import org.eclipse.emf.ecore.EAttribute; | 23 | import org.eclipse.emf.ecore.EReference; |
24 | import org.eclipse.emf.ecore.EClass; | 24 | |
25 | import org.eclipse.emf.ecore.EEnum; | 25 | import org.eclipse.emf.ecore.impl.EPackageImpl; |
26 | import org.eclipse.emf.ecore.EPackage; | 26 | |
27 | import org.eclipse.emf.ecore.EReference; | 27 | /** |
28 | 28 | * <!-- begin-user-doc --> | |
29 | import org.eclipse.emf.ecore.impl.EPackageImpl; | 29 | * An implementation of the model <b>Package</b>. |
30 | 30 | * <!-- end-user-doc --> | |
31 | /** | 31 | * @generated |
32 | * <!-- begin-user-doc --> | 32 | */ |
33 | * An implementation of the model <b>Package</b>. | 33 | public class CrossingScenarioPackageImpl extends EPackageImpl implements CrossingScenarioPackage { |
34 | * <!-- end-user-doc --> | 34 | /** |
35 | * @generated | 35 | * <!-- begin-user-doc --> |
36 | */ | 36 | * <!-- end-user-doc --> |
37 | public class CrossingScenarioPackageImpl extends EPackageImpl implements CrossingScenarioPackage { | 37 | * @generated |
38 | /** | 38 | */ |
39 | * <!-- begin-user-doc --> | 39 | private EClass crossingScenarioEClass = null; |
40 | * <!-- end-user-doc --> | 40 | |
41 | * @generated | 41 | /** |
42 | */ | 42 | * <!-- begin-user-doc --> |
43 | private EClass crossingScenarioEClass = null; | 43 | * <!-- end-user-doc --> |
44 | 44 | * @generated | |
45 | /** | 45 | */ |
46 | * <!-- begin-user-doc --> | 46 | private EClass laneEClass = null; |
47 | * <!-- end-user-doc --> | 47 | |
48 | * @generated | 48 | /** |
49 | */ | 49 | * <!-- begin-user-doc --> |
50 | private EClass laneEClass = null; | 50 | * <!-- end-user-doc --> |
51 | 51 | * @generated | |
52 | /** | 52 | */ |
53 | * <!-- begin-user-doc --> | 53 | private EClass actorEClass = null; |
54 | * <!-- end-user-doc --> | 54 | |
55 | * @generated | 55 | /** |
56 | */ | 56 | * <!-- begin-user-doc --> |
57 | private EClass actorEClass = null; | 57 | * <!-- end-user-doc --> |
58 | 58 | * @generated | |
59 | /** | 59 | */ |
60 | * <!-- begin-user-doc --> | 60 | private EClass relationEClass = null; |
61 | * <!-- end-user-doc --> | 61 | |
62 | * @generated | 62 | /** |
63 | */ | 63 | * <!-- begin-user-doc --> |
64 | private EClass relationEClass = null; | 64 | * <!-- end-user-doc --> |
65 | 65 | * @generated | |
66 | /** | 66 | */ |
67 | * <!-- begin-user-doc --> | 67 | private EClass spatialRelationEClass = null; |
68 | * <!-- end-user-doc --> | 68 | |
69 | * @generated | 69 | /** |
70 | */ | 70 | * <!-- begin-user-doc --> |
71 | private EClass spatialRelationEClass = null; | 71 | * <!-- end-user-doc --> |
72 | 72 | * @generated | |
73 | /** | 73 | */ |
74 | * <!-- begin-user-doc --> | 74 | private EClass temporalRelationEClass = null; |
75 | * <!-- end-user-doc --> | 75 | |
76 | * @generated | 76 | /** |
77 | */ | 77 | * <!-- begin-user-doc --> |
78 | private EClass temporalRelationEClass = null; | 78 | * <!-- end-user-doc --> |
79 | 79 | * @generated | |
80 | /** | 80 | */ |
81 | * <!-- begin-user-doc --> | 81 | private EClass visionBlockedEClass = null; |
82 | * <!-- end-user-doc --> | 82 | |
83 | * @generated | 83 | /** |
84 | */ | 84 | * <!-- begin-user-doc --> |
85 | private EClass visionBlockedEClass = null; | 85 | * <!-- end-user-doc --> |
86 | 86 | * @generated | |
87 | /** | 87 | */ |
88 | * <!-- begin-user-doc --> | 88 | private EClass collisionExistsEClass = null; |
89 | * <!-- end-user-doc --> | 89 | |
90 | * @generated | 90 | /** |
91 | */ | 91 | * <!-- begin-user-doc --> |
92 | private EClass separationDistanceEClass = null; | 92 | * <!-- end-user-doc --> |
93 | 93 | * @generated | |
94 | /** | 94 | */ |
95 | * <!-- begin-user-doc --> | 95 | private EClass pedestrianEClass = null; |
96 | * <!-- end-user-doc --> | 96 | |
97 | * @generated | 97 | /** |
98 | */ | 98 | * <!-- begin-user-doc --> |
99 | private EClass collisionExistsEClass = null; | 99 | * <!-- end-user-doc --> |
100 | 100 | * @generated | |
101 | /** | 101 | */ |
102 | * <!-- begin-user-doc --> | 102 | private EClass vehicleEClass = null; |
103 | * <!-- end-user-doc --> | 103 | |
104 | * @generated | 104 | /** |
105 | */ | 105 | * <!-- begin-user-doc --> |
106 | private EClass collisionDoesNotExistEClass = null; | 106 | * <!-- end-user-doc --> |
107 | 107 | * @generated | |
108 | /** | 108 | */ |
109 | * <!-- begin-user-doc --> | 109 | private EClass lane_HorizontalEClass = null; |
110 | * <!-- end-user-doc --> | 110 | |
111 | * @generated | 111 | /** |
112 | */ | 112 | * <!-- begin-user-doc --> |
113 | private EClass pedestrianEClass = null; | 113 | * <!-- end-user-doc --> |
114 | 114 | * @generated | |
115 | /** | 115 | */ |
116 | * <!-- begin-user-doc --> | 116 | private EClass lane_VerticalEClass = null; |
117 | * <!-- end-user-doc --> | 117 | |
118 | * @generated | 118 | /** |
119 | */ | 119 | * Creates an instance of the model <b>Package</b>, registered with |
120 | private EClass vehicleEClass = null; | 120 | * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package |
121 | 121 | * package URI value. | |
122 | /** | 122 | * <p>Note: the correct way to create the package is via the static |
123 | * <!-- begin-user-doc --> | 123 | * factory method {@link #init init()}, which also performs |
124 | * <!-- end-user-doc --> | 124 | * initialization of the package, or returns the registered package, |
125 | * @generated | 125 | * if one already exists. |
126 | */ | 126 | * <!-- begin-user-doc --> |
127 | private EClass lane_HorizontalEClass = null; | 127 | * <!-- end-user-doc --> |
128 | 128 | * @see org.eclipse.emf.ecore.EPackage.Registry | |
129 | /** | 129 | * @see crossingScenario.CrossingScenarioPackage#eNS_URI |
130 | * <!-- begin-user-doc --> | 130 | * @see #init() |
131 | * <!-- end-user-doc --> | 131 | * @generated |
132 | * @generated | 132 | */ |
133 | */ | 133 | private CrossingScenarioPackageImpl() { |
134 | private EClass lane_VerticalEClass = null; | 134 | super(eNS_URI, CrossingScenarioFactory.eINSTANCE); |
135 | 135 | } | |
136 | /** | 136 | |
137 | * <!-- begin-user-doc --> | 137 | /** |
138 | * <!-- end-user-doc --> | 138 | * <!-- begin-user-doc --> |
139 | * @generated | 139 | * <!-- end-user-doc --> |
140 | */ | 140 | * @generated |
141 | private EEnum distanceEEnum = null; | 141 | */ |
142 | 142 | private static boolean isInited = false; | |
143 | /** | 143 | |
144 | * Creates an instance of the model <b>Package</b>, registered with | 144 | /** |
145 | * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package | 145 | * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. |
146 | * package URI value. | 146 | * |
147 | * <p>Note: the correct way to create the package is via the static | 147 | * <p>This method is used to initialize {@link CrossingScenarioPackage#eINSTANCE} when that field is accessed. |
148 | * factory method {@link #init init()}, which also performs | 148 | * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. |
149 | * initialization of the package, or returns the registered package, | 149 | * <!-- begin-user-doc --> |
150 | * if one already exists. | 150 | * <!-- end-user-doc --> |
151 | * <!-- begin-user-doc --> | 151 | * @see #eNS_URI |
152 | * <!-- end-user-doc --> | 152 | * @see #createPackageContents() |
153 | * @see org.eclipse.emf.ecore.EPackage.Registry | 153 | * @see #initializePackageContents() |
154 | * @see crossingScenario.CrossingScenarioPackage#eNS_URI | 154 | * @generated |
155 | * @see #init() | 155 | */ |
156 | * @generated | 156 | public static CrossingScenarioPackage init() { |
157 | */ | 157 | if (isInited) return (CrossingScenarioPackage)EPackage.Registry.INSTANCE.getEPackage(CrossingScenarioPackage.eNS_URI); |
158 | private CrossingScenarioPackageImpl() { | 158 | |
159 | super(eNS_URI, CrossingScenarioFactory.eINSTANCE); | 159 | // Obtain or create and register package |
160 | } | 160 | Object registeredCrossingScenarioPackage = EPackage.Registry.INSTANCE.get(eNS_URI); |
161 | 161 | CrossingScenarioPackageImpl theCrossingScenarioPackage = registeredCrossingScenarioPackage instanceof CrossingScenarioPackageImpl ? (CrossingScenarioPackageImpl)registeredCrossingScenarioPackage : new CrossingScenarioPackageImpl(); | |
162 | /** | 162 | |
163 | * <!-- begin-user-doc --> | 163 | isInited = true; |
164 | * <!-- end-user-doc --> | 164 | |
165 | * @generated | 165 | // Create package meta-data objects |
166 | */ | 166 | theCrossingScenarioPackage.createPackageContents(); |
167 | private static boolean isInited = false; | 167 | |
168 | 168 | // Initialize created meta-data | |
169 | /** | 169 | theCrossingScenarioPackage.initializePackageContents(); |
170 | * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. | 170 | |
171 | * | 171 | // Mark meta-data to indicate it can't be changed |
172 | * <p>This method is used to initialize {@link CrossingScenarioPackage#eINSTANCE} when that field is accessed. | 172 | theCrossingScenarioPackage.freeze(); |
173 | * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. | 173 | |
174 | * <!-- begin-user-doc --> | 174 | // Update the registry and return the package |
175 | * <!-- end-user-doc --> | 175 | EPackage.Registry.INSTANCE.put(CrossingScenarioPackage.eNS_URI, theCrossingScenarioPackage); |
176 | * @see #eNS_URI | 176 | return theCrossingScenarioPackage; |
177 | * @see #createPackageContents() | 177 | } |
178 | * @see #initializePackageContents() | 178 | |
179 | * @generated | 179 | /** |
180 | */ | 180 | * <!-- begin-user-doc --> |
181 | public static CrossingScenarioPackage init() { | 181 | * <!-- end-user-doc --> |
182 | if (isInited) return (CrossingScenarioPackage)EPackage.Registry.INSTANCE.getEPackage(CrossingScenarioPackage.eNS_URI); | 182 | * @generated |
183 | 183 | */ | |
184 | // Obtain or create and register package | 184 | @Override |
185 | Object registeredCrossingScenarioPackage = EPackage.Registry.INSTANCE.get(eNS_URI); | 185 | public EClass getCrossingScenario() { |
186 | CrossingScenarioPackageImpl theCrossingScenarioPackage = registeredCrossingScenarioPackage instanceof CrossingScenarioPackageImpl ? (CrossingScenarioPackageImpl)registeredCrossingScenarioPackage : new CrossingScenarioPackageImpl(); | 186 | return crossingScenarioEClass; |
187 | 187 | } | |
188 | isInited = true; | 188 | |
189 | 189 | /** | |
190 | // Create package meta-data objects | 190 | * <!-- begin-user-doc --> |
191 | theCrossingScenarioPackage.createPackageContents(); | 191 | * <!-- end-user-doc --> |
192 | 192 | * @generated | |
193 | // Initialize created meta-data | 193 | */ |
194 | theCrossingScenarioPackage.initializePackageContents(); | 194 | @Override |
195 | 195 | public EAttribute getCrossingScenario_XSize() { | |
196 | // Mark meta-data to indicate it can't be changed | 196 | return (EAttribute)crossingScenarioEClass.getEStructuralFeatures().get(0); |
197 | theCrossingScenarioPackage.freeze(); | 197 | } |
198 | 198 | ||
199 | // Update the registry and return the package | 199 | /** |
200 | EPackage.Registry.INSTANCE.put(CrossingScenarioPackage.eNS_URI, theCrossingScenarioPackage); | 200 | * <!-- begin-user-doc --> |
201 | return theCrossingScenarioPackage; | 201 | * <!-- end-user-doc --> |
202 | } | 202 | * @generated |
203 | 203 | */ | |
204 | /** | 204 | @Override |
205 | * <!-- begin-user-doc --> | 205 | public EAttribute getCrossingScenario_YSize() { |
206 | * <!-- end-user-doc --> | 206 | return (EAttribute)crossingScenarioEClass.getEStructuralFeatures().get(1); |
207 | * @generated | 207 | } |
208 | */ | 208 | |
209 | @Override | 209 | /** |
210 | public EClass getCrossingScenario() { | 210 | * <!-- begin-user-doc --> |
211 | return crossingScenarioEClass; | 211 | * <!-- end-user-doc --> |
212 | } | 212 | * @generated |
213 | 213 | */ | |
214 | /** | 214 | @Override |
215 | * <!-- begin-user-doc --> | 215 | public EReference getCrossingScenario_Actors() { |
216 | * <!-- end-user-doc --> | 216 | return (EReference)crossingScenarioEClass.getEStructuralFeatures().get(2); |
217 | * @generated | 217 | } |
218 | */ | 218 | |
219 | @Override | 219 | /** |
220 | public EAttribute getCrossingScenario_XSize() { | 220 | * <!-- begin-user-doc --> |
221 | return (EAttribute)crossingScenarioEClass.getEStructuralFeatures().get(0); | 221 | * <!-- end-user-doc --> |
222 | } | 222 | * @generated |
223 | 223 | */ | |
224 | /** | 224 | @Override |
225 | * <!-- begin-user-doc --> | 225 | public EReference getCrossingScenario_Lanes() { |
226 | * <!-- end-user-doc --> | 226 | return (EReference)crossingScenarioEClass.getEStructuralFeatures().get(3); |
227 | * @generated | 227 | } |
228 | */ | 228 | |
229 | @Override | 229 | /** |
230 | public EAttribute getCrossingScenario_YSize() { | 230 | * <!-- begin-user-doc --> |
231 | return (EAttribute)crossingScenarioEClass.getEStructuralFeatures().get(1); | 231 | * <!-- end-user-doc --> |
232 | } | 232 | * @generated |
233 | 233 | */ | |
234 | /** | 234 | @Override |
235 | * <!-- begin-user-doc --> | 235 | public EAttribute getCrossingScenario_MaxTime() { |
236 | * <!-- end-user-doc --> | 236 | return (EAttribute)crossingScenarioEClass.getEStructuralFeatures().get(4); |
237 | * @generated | 237 | } |
238 | */ | 238 | |
239 | @Override | 239 | /** |
240 | public EReference getCrossingScenario_Actors() { | 240 | * <!-- begin-user-doc --> |
241 | return (EReference)crossingScenarioEClass.getEStructuralFeatures().get(2); | 241 | * <!-- end-user-doc --> |
242 | } | 242 | * @generated |
243 | 243 | */ | |
244 | /** | 244 | @Override |
245 | * <!-- begin-user-doc --> | 245 | public EReference getCrossingScenario_Relations() { |
246 | * <!-- end-user-doc --> | 246 | return (EReference)crossingScenarioEClass.getEStructuralFeatures().get(5); |
247 | * @generated | 247 | } |
248 | */ | 248 | |
249 | @Override | 249 | /** |
250 | public EReference getCrossingScenario_Lanes() { | 250 | * <!-- begin-user-doc --> |
251 | return (EReference)crossingScenarioEClass.getEStructuralFeatures().get(3); | 251 | * <!-- end-user-doc --> |
252 | } | 252 | * @generated |
253 | 253 | */ | |
254 | /** | 254 | @Override |
255 | * <!-- begin-user-doc --> | 255 | public EAttribute getCrossingScenario_MaxXSpeed() { |
256 | * <!-- end-user-doc --> | 256 | return (EAttribute)crossingScenarioEClass.getEStructuralFeatures().get(6); |
257 | * @generated | 257 | } |
258 | */ | 258 | |
259 | @Override | 259 | /** |
260 | public EAttribute getCrossingScenario_MaxTime() { | 260 | * <!-- begin-user-doc --> |
261 | return (EAttribute)crossingScenarioEClass.getEStructuralFeatures().get(4); | 261 | * <!-- end-user-doc --> |
262 | } | 262 | * @generated |
263 | 263 | */ | |
264 | /** | 264 | @Override |
265 | * <!-- begin-user-doc --> | 265 | public EAttribute getCrossingScenario_MaxYSpeed() { |
266 | * <!-- end-user-doc --> | 266 | return (EAttribute)crossingScenarioEClass.getEStructuralFeatures().get(7); |
267 | * @generated | 267 | } |
268 | */ | 268 | |
269 | @Override | 269 | /** |
270 | public EReference getCrossingScenario_Relations() { | 270 | * <!-- begin-user-doc --> |
271 | return (EReference)crossingScenarioEClass.getEStructuralFeatures().get(5); | 271 | * <!-- end-user-doc --> |
272 | } | 272 | * @generated |
273 | 273 | */ | |
274 | /** | 274 | @Override |
275 | * <!-- begin-user-doc --> | 275 | public EClass getLane() { |
276 | * <!-- end-user-doc --> | 276 | return laneEClass; |
277 | * @generated | 277 | } |
278 | */ | 278 | |
279 | @Override | 279 | /** |
280 | public EAttribute getCrossingScenario_MaxXSpeed() { | 280 | * <!-- begin-user-doc --> |
281 | return (EAttribute)crossingScenarioEClass.getEStructuralFeatures().get(6); | 281 | * <!-- end-user-doc --> |
282 | } | 282 | * @generated |
283 | 283 | */ | |
284 | /** | 284 | @Override |
285 | * <!-- begin-user-doc --> | 285 | public EAttribute getLane_ReferenceCoord() { |
286 | * <!-- end-user-doc --> | 286 | return (EAttribute)laneEClass.getEStructuralFeatures().get(0); |
287 | * @generated | 287 | } |
288 | */ | 288 | |
289 | @Override | 289 | /** |
290 | public EAttribute getCrossingScenario_MaxYSpeed() { | 290 | * <!-- begin-user-doc --> |
291 | return (EAttribute)crossingScenarioEClass.getEStructuralFeatures().get(7); | 291 | * <!-- end-user-doc --> |
292 | } | 292 | * @generated |
293 | 293 | */ | |
294 | /** | 294 | @Override |
295 | * <!-- begin-user-doc --> | 295 | public EReference getLane_Actors() { |
296 | * <!-- end-user-doc --> | 296 | return (EReference)laneEClass.getEStructuralFeatures().get(1); |
297 | * @generated | 297 | } |
298 | */ | 298 | |
299 | @Override | 299 | /** |
300 | public EClass getLane() { | 300 | * <!-- begin-user-doc --> |
301 | return laneEClass; | 301 | * <!-- end-user-doc --> |
302 | } | 302 | * @generated |
303 | 303 | */ | |
304 | /** | 304 | @Override |
305 | * <!-- begin-user-doc --> | 305 | public EClass getActor() { |
306 | * <!-- end-user-doc --> | 306 | return actorEClass; |
307 | * @generated | 307 | } |
308 | */ | 308 | |
309 | @Override | 309 | /** |
310 | public EAttribute getLane_ReferenceCoord() { | 310 | * <!-- begin-user-doc --> |
311 | return (EAttribute)laneEClass.getEStructuralFeatures().get(0); | 311 | * <!-- end-user-doc --> |
312 | } | 312 | * @generated |
313 | 313 | */ | |
314 | /** | 314 | @Override |
315 | * <!-- begin-user-doc --> | 315 | public EAttribute getActor_XPos() { |
316 | * <!-- end-user-doc --> | 316 | return (EAttribute)actorEClass.getEStructuralFeatures().get(0); |
317 | * @generated | 317 | } |
318 | */ | 318 | |
319 | @Override | 319 | /** |
320 | public EReference getLane_Actors() { | 320 | * <!-- begin-user-doc --> |
321 | return (EReference)laneEClass.getEStructuralFeatures().get(1); | 321 | * <!-- end-user-doc --> |
322 | } | 322 | * @generated |
323 | 323 | */ | |
324 | /** | 324 | @Override |
325 | * <!-- begin-user-doc --> | 325 | public EAttribute getActor_YPos() { |
326 | * <!-- end-user-doc --> | 326 | return (EAttribute)actorEClass.getEStructuralFeatures().get(1); |
327 | * @generated | 327 | } |
328 | */ | 328 | |
329 | @Override | 329 | /** |
330 | public EClass getActor() { | 330 | * <!-- begin-user-doc --> |
331 | return actorEClass; | 331 | * <!-- end-user-doc --> |
332 | } | 332 | * @generated |
333 | 333 | */ | |
334 | /** | 334 | @Override |
335 | * <!-- begin-user-doc --> | 335 | public EAttribute getActor_Length() { |
336 | * <!-- end-user-doc --> | 336 | return (EAttribute)actorEClass.getEStructuralFeatures().get(2); |
337 | * @generated | 337 | } |
338 | */ | 338 | |
339 | @Override | 339 | /** |
340 | public EAttribute getActor_XPos() { | 340 | * <!-- begin-user-doc --> |
341 | return (EAttribute)actorEClass.getEStructuralFeatures().get(0); | 341 | * <!-- end-user-doc --> |
342 | } | 342 | * @generated |
343 | 343 | */ | |
344 | /** | 344 | @Override |
345 | * <!-- begin-user-doc --> | 345 | public EAttribute getActor_Width() { |
346 | * <!-- end-user-doc --> | 346 | return (EAttribute)actorEClass.getEStructuralFeatures().get(3); |
347 | * @generated | 347 | } |
348 | */ | 348 | |
349 | @Override | 349 | /** |
350 | public EAttribute getActor_YPos() { | 350 | * <!-- begin-user-doc --> |
351 | return (EAttribute)actorEClass.getEStructuralFeatures().get(1); | 351 | * <!-- end-user-doc --> |
352 | } | 352 | * @generated |
353 | 353 | */ | |
354 | /** | 354 | @Override |
355 | * <!-- begin-user-doc --> | 355 | public EAttribute getActor_XSpeed() { |
356 | * <!-- end-user-doc --> | 356 | return (EAttribute)actorEClass.getEStructuralFeatures().get(4); |
357 | * @generated | 357 | } |
358 | */ | 358 | |
359 | @Override | 359 | /** |
360 | public EAttribute getActor_Length() { | 360 | * <!-- begin-user-doc --> |
361 | return (EAttribute)actorEClass.getEStructuralFeatures().get(2); | 361 | * <!-- end-user-doc --> |
362 | } | 362 | * @generated |
363 | 363 | */ | |
364 | /** | 364 | @Override |
365 | * <!-- begin-user-doc --> | 365 | public EReference getActor_PlacedOn() { |
366 | * <!-- end-user-doc --> | 366 | return (EReference)actorEClass.getEStructuralFeatures().get(5); |
367 | * @generated | 367 | } |
368 | */ | 368 | |
369 | @Override | 369 | /** |
370 | public EAttribute getActor_Width() { | 370 | * <!-- begin-user-doc --> |
371 | return (EAttribute)actorEClass.getEStructuralFeatures().get(3); | 371 | * <!-- end-user-doc --> |
372 | } | 372 | * @generated |
373 | 373 | */ | |
374 | /** | 374 | @Override |
375 | * <!-- begin-user-doc --> | 375 | public EAttribute getActor_YSpeed() { |
376 | * <!-- end-user-doc --> | 376 | return (EAttribute)actorEClass.getEStructuralFeatures().get(6); |
377 | * @generated | 377 | } |
378 | */ | 378 | |
379 | @Override | 379 | /** |
380 | public EAttribute getActor_XSpeed() { | 380 | * <!-- begin-user-doc --> |
381 | return (EAttribute)actorEClass.getEStructuralFeatures().get(4); | 381 | * <!-- end-user-doc --> |
382 | } | 382 | * @generated |
383 | 383 | */ | |
384 | /** | 384 | @Override |
385 | * <!-- begin-user-doc --> | 385 | public EReference getActor_Dist_near() { |
386 | * <!-- end-user-doc --> | 386 | return (EReference)actorEClass.getEStructuralFeatures().get(7); |
387 | * @generated | 387 | } |
388 | */ | 388 | |
389 | @Override | 389 | /** |
390 | public EReference getActor_PlacedOn() { | 390 | * <!-- begin-user-doc --> |
391 | return (EReference)actorEClass.getEStructuralFeatures().get(5); | 391 | * <!-- end-user-doc --> |
392 | } | 392 | * @generated |
393 | 393 | */ | |
394 | /** | 394 | @Override |
395 | * <!-- begin-user-doc --> | 395 | public EReference getActor_Dist_med() { |
396 | * <!-- end-user-doc --> | 396 | return (EReference)actorEClass.getEStructuralFeatures().get(8); |
397 | * @generated | 397 | } |
398 | */ | 398 | |
399 | @Override | 399 | /** |
400 | public EAttribute getActor_YSpeed() { | 400 | * <!-- begin-user-doc --> |
401 | return (EAttribute)actorEClass.getEStructuralFeatures().get(6); | 401 | * <!-- end-user-doc --> |
402 | } | 402 | * @generated |
403 | 403 | */ | |
404 | /** | 404 | @Override |
405 | * <!-- begin-user-doc --> | 405 | public EReference getActor_Dist_far() { |
406 | * <!-- end-user-doc --> | 406 | return (EReference)actorEClass.getEStructuralFeatures().get(9); |
407 | * @generated | 407 | } |
408 | */ | 408 | |
409 | @Override | 409 | /** |
410 | public EReference getActor_Dist_near() { | 410 | * <!-- begin-user-doc --> |
411 | return (EReference)actorEClass.getEStructuralFeatures().get(7); | 411 | * <!-- end-user-doc --> |
412 | } | 412 | * @generated |
413 | 413 | */ | |
414 | /** | 414 | @Override |
415 | * <!-- begin-user-doc --> | 415 | public EClass getRelation() { |
416 | * <!-- end-user-doc --> | 416 | return relationEClass; |
417 | * @generated | 417 | } |
418 | */ | 418 | |
419 | @Override | 419 | /** |
420 | public EReference getActor_Dist_med() { | 420 | * <!-- begin-user-doc --> |
421 | return (EReference)actorEClass.getEStructuralFeatures().get(8); | 421 | * <!-- end-user-doc --> |
422 | } | 422 | * @generated |
423 | 423 | */ | |
424 | /** | 424 | @Override |
425 | * <!-- begin-user-doc --> | 425 | public EReference getRelation_Target() { |
426 | * <!-- end-user-doc --> | 426 | return (EReference)relationEClass.getEStructuralFeatures().get(0); |
427 | * @generated | 427 | } |
428 | */ | 428 | |
429 | @Override | 429 | /** |
430 | public EReference getActor_Dist_far() { | 430 | * <!-- begin-user-doc --> |
431 | return (EReference)actorEClass.getEStructuralFeatures().get(9); | 431 | * <!-- end-user-doc --> |
432 | } | 432 | * @generated |
433 | 433 | */ | |
434 | /** | 434 | @Override |
435 | * <!-- begin-user-doc --> | 435 | public EReference getRelation_Source() { |
436 | * <!-- end-user-doc --> | 436 | return (EReference)relationEClass.getEStructuralFeatures().get(1); |
437 | * @generated | 437 | } |
438 | */ | 438 | |
439 | @Override | 439 | /** |
440 | public EClass getRelation() { | 440 | * <!-- begin-user-doc --> |
441 | return relationEClass; | 441 | * <!-- end-user-doc --> |
442 | } | 442 | * @generated |
443 | 443 | */ | |
444 | /** | 444 | @Override |
445 | * <!-- begin-user-doc --> | 445 | public EClass getSpatialRelation() { |
446 | * <!-- end-user-doc --> | 446 | return spatialRelationEClass; |
447 | * @generated | 447 | } |
448 | */ | 448 | |
449 | @Override | 449 | /** |
450 | public EReference getRelation_Target() { | 450 | * <!-- begin-user-doc --> |
451 | return (EReference)relationEClass.getEStructuralFeatures().get(0); | 451 | * <!-- end-user-doc --> |
452 | } | 452 | * @generated |
453 | 453 | */ | |
454 | /** | 454 | @Override |
455 | * <!-- begin-user-doc --> | 455 | public EClass getTemporalRelation() { |
456 | * <!-- end-user-doc --> | 456 | return temporalRelationEClass; |
457 | * @generated | 457 | } |
458 | */ | 458 | |
459 | @Override | 459 | /** |
460 | public EReference getRelation_Source() { | 460 | * <!-- begin-user-doc --> |
461 | return (EReference)relationEClass.getEStructuralFeatures().get(1); | 461 | * <!-- end-user-doc --> |
462 | } | 462 | * @generated |
463 | 463 | */ | |
464 | /** | 464 | @Override |
465 | * <!-- begin-user-doc --> | 465 | public EClass getVisionBlocked() { |
466 | * <!-- end-user-doc --> | 466 | return visionBlockedEClass; |
467 | * @generated | 467 | } |
468 | */ | 468 | |
469 | @Override | 469 | /** |
470 | public EClass getSpatialRelation() { | 470 | * <!-- begin-user-doc --> |
471 | return spatialRelationEClass; | 471 | * <!-- end-user-doc --> |
472 | } | 472 | * @generated |
473 | 473 | */ | |
474 | /** | 474 | @Override |
475 | * <!-- begin-user-doc --> | 475 | public EReference getVisionBlocked_BlockedBy() { |
476 | * <!-- end-user-doc --> | 476 | return (EReference)visionBlockedEClass.getEStructuralFeatures().get(0); |
477 | * @generated | 477 | } |
478 | */ | 478 | |
479 | @Override | 479 | /** |
480 | public EClass getTemporalRelation() { | 480 | * <!-- begin-user-doc --> |
481 | return temporalRelationEClass; | 481 | * <!-- end-user-doc --> |
482 | } | 482 | * @generated |
483 | 483 | */ | |
484 | /** | 484 | @Override |
485 | * <!-- begin-user-doc --> | 485 | public EClass getCollisionExists() { |
486 | * <!-- end-user-doc --> | 486 | return collisionExistsEClass; |
487 | * @generated | 487 | } |
488 | */ | 488 | |
489 | @Override | 489 | /** |
490 | public EClass getVisionBlocked() { | 490 | * <!-- begin-user-doc --> |
491 | return visionBlockedEClass; | 491 | * <!-- end-user-doc --> |
492 | } | 492 | * @generated |
493 | 493 | */ | |
494 | /** | 494 | @Override |
495 | * <!-- begin-user-doc --> | 495 | public EAttribute getCollisionExists_CollisionTime() { |
496 | * <!-- end-user-doc --> | 496 | return (EAttribute)collisionExistsEClass.getEStructuralFeatures().get(0); |
497 | * @generated | 497 | } |
498 | */ | 498 | |
499 | @Override | 499 | /** |
500 | public EReference getVisionBlocked_BlockedBy() { | 500 | * <!-- begin-user-doc --> |
501 | return (EReference)visionBlockedEClass.getEStructuralFeatures().get(0); | 501 | * <!-- end-user-doc --> |
502 | } | 502 | * @generated |
503 | 503 | */ | |
504 | /** | 504 | @Override |
505 | * <!-- begin-user-doc --> | 505 | public EClass getPedestrian() { |
506 | * <!-- end-user-doc --> | 506 | return pedestrianEClass; |
507 | * @generated | 507 | } |
508 | */ | 508 | |
509 | @Override | 509 | /** |
510 | public EClass getSeparationDistance() { | 510 | * <!-- begin-user-doc --> |
511 | return separationDistanceEClass; | 511 | * <!-- end-user-doc --> |
512 | } | 512 | * @generated |
513 | 513 | */ | |
514 | /** | 514 | @Override |
515 | * <!-- begin-user-doc --> | 515 | public EClass getVehicle() { |
516 | * <!-- end-user-doc --> | 516 | return vehicleEClass; |
517 | * @generated | 517 | } |
518 | */ | 518 | |
519 | @Override | 519 | /** |
520 | public EAttribute getSeparationDistance_Distance() { | 520 | * <!-- begin-user-doc --> |
521 | return (EAttribute)separationDistanceEClass.getEStructuralFeatures().get(0); | 521 | * <!-- end-user-doc --> |
522 | } | 522 | * @generated |
523 | 523 | */ | |
524 | /** | 524 | @Override |
525 | * <!-- begin-user-doc --> | 525 | public EClass getLane_Horizontal() { |
526 | * <!-- end-user-doc --> | 526 | return lane_HorizontalEClass; |
527 | * @generated | 527 | } |
528 | */ | 528 | |
529 | @Override | 529 | /** |
530 | public EClass getCollisionExists() { | 530 | * <!-- begin-user-doc --> |
531 | return collisionExistsEClass; | 531 | * <!-- end-user-doc --> |
532 | } | 532 | * @generated |
533 | 533 | */ | |
534 | /** | 534 | @Override |
535 | * <!-- begin-user-doc --> | 535 | public EClass getLane_Vertical() { |
536 | * <!-- end-user-doc --> | 536 | return lane_VerticalEClass; |
537 | * @generated | 537 | } |
538 | */ | 538 | |
539 | @Override | 539 | /** |
540 | public EAttribute getCollisionExists_CollisionTime() { | 540 | * <!-- begin-user-doc --> |
541 | return (EAttribute)collisionExistsEClass.getEStructuralFeatures().get(0); | 541 | * <!-- end-user-doc --> |
542 | } | 542 | * @generated |
543 | 543 | */ | |
544 | /** | 544 | @Override |
545 | * <!-- begin-user-doc --> | 545 | public CrossingScenarioFactory getCrossingScenarioFactory() { |
546 | * <!-- end-user-doc --> | 546 | return (CrossingScenarioFactory)getEFactoryInstance(); |
547 | * @generated | 547 | } |
548 | */ | 548 | |
549 | @Override | 549 | /** |
550 | public EClass getCollisionDoesNotExist() { | 550 | * <!-- begin-user-doc --> |
551 | return collisionDoesNotExistEClass; | 551 | * <!-- end-user-doc --> |
552 | } | 552 | * @generated |
553 | 553 | */ | |
554 | /** | 554 | private boolean isCreated = false; |
555 | * <!-- begin-user-doc --> | 555 | |
556 | * <!-- end-user-doc --> | 556 | /** |
557 | * @generated | 557 | * Creates the meta-model objects for the package. This method is |
558 | */ | 558 | * guarded to have no affect on any invocation but its first. |
559 | @Override | 559 | * <!-- begin-user-doc --> |
560 | public EClass getPedestrian() { | 560 | * <!-- end-user-doc --> |
561 | return pedestrianEClass; | 561 | * @generated |
562 | } | 562 | */ |
563 | 563 | public void createPackageContents() { | |
564 | /** | 564 | if (isCreated) return; |
565 | * <!-- begin-user-doc --> | 565 | isCreated = true; |
566 | * <!-- end-user-doc --> | 566 | |
567 | * @generated | 567 | // Create classes and their features |
568 | */ | 568 | crossingScenarioEClass = createEClass(CROSSING_SCENARIO); |
569 | @Override | 569 | createEAttribute(crossingScenarioEClass, CROSSING_SCENARIO__XSIZE); |
570 | public EClass getVehicle() { | 570 | createEAttribute(crossingScenarioEClass, CROSSING_SCENARIO__YSIZE); |
571 | return vehicleEClass; | 571 | createEReference(crossingScenarioEClass, CROSSING_SCENARIO__ACTORS); |
572 | } | 572 | createEReference(crossingScenarioEClass, CROSSING_SCENARIO__LANES); |
573 | 573 | createEAttribute(crossingScenarioEClass, CROSSING_SCENARIO__MAX_TIME); | |
574 | /** | 574 | createEReference(crossingScenarioEClass, CROSSING_SCENARIO__RELATIONS); |
575 | * <!-- begin-user-doc --> | 575 | createEAttribute(crossingScenarioEClass, CROSSING_SCENARIO__MAX_XSPEED); |
576 | * <!-- end-user-doc --> | 576 | createEAttribute(crossingScenarioEClass, CROSSING_SCENARIO__MAX_YSPEED); |
577 | * @generated | 577 | |
578 | */ | 578 | laneEClass = createEClass(LANE); |
579 | @Override | 579 | createEAttribute(laneEClass, LANE__REFERENCE_COORD); |
580 | public EClass getLane_Horizontal() { | 580 | createEReference(laneEClass, LANE__ACTORS); |
581 | return lane_HorizontalEClass; | 581 | |
582 | } | 582 | actorEClass = createEClass(ACTOR); |
583 | 583 | createEAttribute(actorEClass, ACTOR__XPOS); | |
584 | /** | 584 | createEAttribute(actorEClass, ACTOR__YPOS); |
585 | * <!-- begin-user-doc --> | 585 | createEAttribute(actorEClass, ACTOR__LENGTH); |
586 | * <!-- end-user-doc --> | 586 | createEAttribute(actorEClass, ACTOR__WIDTH); |
587 | * @generated | 587 | createEAttribute(actorEClass, ACTOR__XSPEED); |
588 | */ | 588 | createEReference(actorEClass, ACTOR__PLACED_ON); |
589 | @Override | 589 | createEAttribute(actorEClass, ACTOR__YSPEED); |
590 | public EClass getLane_Vertical() { | 590 | createEReference(actorEClass, ACTOR__DIST_NEAR); |
591 | return lane_VerticalEClass; | 591 | createEReference(actorEClass, ACTOR__DIST_MED); |
592 | } | 592 | createEReference(actorEClass, ACTOR__DIST_FAR); |
593 | 593 | ||
594 | /** | 594 | relationEClass = createEClass(RELATION); |
595 | * <!-- begin-user-doc --> | 595 | createEReference(relationEClass, RELATION__TARGET); |
596 | * <!-- end-user-doc --> | 596 | createEReference(relationEClass, RELATION__SOURCE); |
597 | * @generated | 597 | |
598 | */ | 598 | spatialRelationEClass = createEClass(SPATIAL_RELATION); |
599 | @Override | 599 | |
600 | public EEnum getDistance() { | 600 | temporalRelationEClass = createEClass(TEMPORAL_RELATION); |
601 | return distanceEEnum; | 601 | |
602 | } | 602 | visionBlockedEClass = createEClass(VISION_BLOCKED); |
603 | 603 | createEReference(visionBlockedEClass, VISION_BLOCKED__BLOCKED_BY); | |
604 | /** | 604 | |
605 | * <!-- begin-user-doc --> | 605 | collisionExistsEClass = createEClass(COLLISION_EXISTS); |
606 | * <!-- end-user-doc --> | 606 | createEAttribute(collisionExistsEClass, COLLISION_EXISTS__COLLISION_TIME); |
607 | * @generated | 607 | |
608 | */ | 608 | pedestrianEClass = createEClass(PEDESTRIAN); |
609 | @Override | 609 | |
610 | public CrossingScenarioFactory getCrossingScenarioFactory() { | 610 | vehicleEClass = createEClass(VEHICLE); |
611 | return (CrossingScenarioFactory)getEFactoryInstance(); | 611 | |
612 | } | 612 | lane_HorizontalEClass = createEClass(LANE_HORIZONTAL); |
613 | 613 | ||
614 | /** | 614 | lane_VerticalEClass = createEClass(LANE_VERTICAL); |
615 | * <!-- begin-user-doc --> | 615 | } |
616 | * <!-- end-user-doc --> | 616 | |
617 | * @generated | 617 | /** |
618 | */ | 618 | * <!-- begin-user-doc --> |
619 | private boolean isCreated = false; | 619 | * <!-- end-user-doc --> |
620 | 620 | * @generated | |
621 | /** | 621 | */ |
622 | * Creates the meta-model objects for the package. This method is | 622 | private boolean isInitialized = false; |
623 | * guarded to have no affect on any invocation but its first. | 623 | |
624 | * <!-- begin-user-doc --> | 624 | /** |
625 | * <!-- end-user-doc --> | 625 | * Complete the initialization of the package and its meta-model. This |
626 | * @generated | 626 | * method is guarded to have no affect on any invocation but its first. |
627 | */ | 627 | * <!-- begin-user-doc --> |
628 | public void createPackageContents() { | 628 | * <!-- end-user-doc --> |
629 | if (isCreated) return; | 629 | * @generated |
630 | isCreated = true; | 630 | */ |
631 | 631 | public void initializePackageContents() { | |
632 | // Create classes and their features | 632 | if (isInitialized) return; |
633 | crossingScenarioEClass = createEClass(CROSSING_SCENARIO); | 633 | isInitialized = true; |
634 | createEAttribute(crossingScenarioEClass, CROSSING_SCENARIO__XSIZE); | 634 | |
635 | createEAttribute(crossingScenarioEClass, CROSSING_SCENARIO__YSIZE); | 635 | // Initialize package |
636 | createEReference(crossingScenarioEClass, CROSSING_SCENARIO__ACTORS); | 636 | setName(eNAME); |
637 | createEReference(crossingScenarioEClass, CROSSING_SCENARIO__LANES); | 637 | setNsPrefix(eNS_PREFIX); |
638 | createEAttribute(crossingScenarioEClass, CROSSING_SCENARIO__MAX_TIME); | 638 | setNsURI(eNS_URI); |
639 | createEReference(crossingScenarioEClass, CROSSING_SCENARIO__RELATIONS); | 639 | |
640 | createEAttribute(crossingScenarioEClass, CROSSING_SCENARIO__MAX_XSPEED); | 640 | // Create type parameters |
641 | createEAttribute(crossingScenarioEClass, CROSSING_SCENARIO__MAX_YSPEED); | 641 | |
642 | 642 | // Set bounds for type parameters | |
643 | laneEClass = createEClass(LANE); | 643 | |
644 | createEAttribute(laneEClass, LANE__REFERENCE_COORD); | 644 | // Add supertypes to classes |
645 | createEReference(laneEClass, LANE__ACTORS); | 645 | spatialRelationEClass.getESuperTypes().add(this.getRelation()); |
646 | 646 | temporalRelationEClass.getESuperTypes().add(this.getRelation()); | |
647 | actorEClass = createEClass(ACTOR); | 647 | visionBlockedEClass.getESuperTypes().add(this.getSpatialRelation()); |
648 | createEAttribute(actorEClass, ACTOR__XPOS); | 648 | collisionExistsEClass.getESuperTypes().add(this.getTemporalRelation()); |
649 | createEAttribute(actorEClass, ACTOR__YPOS); | 649 | pedestrianEClass.getESuperTypes().add(this.getActor()); |
650 | createEAttribute(actorEClass, ACTOR__LENGTH); | 650 | vehicleEClass.getESuperTypes().add(this.getActor()); |
651 | createEAttribute(actorEClass, ACTOR__WIDTH); | 651 | lane_HorizontalEClass.getESuperTypes().add(this.getLane()); |
652 | createEAttribute(actorEClass, ACTOR__XSPEED); | 652 | lane_VerticalEClass.getESuperTypes().add(this.getLane()); |
653 | createEReference(actorEClass, ACTOR__PLACED_ON); | 653 | |
654 | createEAttribute(actorEClass, ACTOR__YSPEED); | 654 | // Initialize classes, features, and operations; add parameters |
655 | createEReference(actorEClass, ACTOR__DIST_NEAR); | 655 | initEClass(crossingScenarioEClass, CrossingScenario.class, "CrossingScenario", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
656 | createEReference(actorEClass, ACTOR__DIST_MED); | 656 | 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); |
657 | createEReference(actorEClass, ACTOR__DIST_FAR); | 657 | 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); |
658 | 658 | 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); | |
659 | relationEClass = createEClass(RELATION); | 659 | 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); |
660 | createEReference(relationEClass, RELATION__TARGET); | 660 | 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); |
661 | createEReference(relationEClass, RELATION__SOURCE); | 661 | initEReference(getCrossingScenario_Relations(), this.getRelation(), null, "relations", null, 0, -1, CrossingScenario.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
662 | 662 | initEAttribute(getCrossingScenario_MaxXSpeed(), ecorePackage.getEDouble(), "maxXSpeed", "0.0", 0, 1, CrossingScenario.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | |
663 | spatialRelationEClass = createEClass(SPATIAL_RELATION); | 663 | initEAttribute(getCrossingScenario_MaxYSpeed(), ecorePackage.getEDouble(), "maxYSpeed", "0.0", 0, 1, CrossingScenario.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
664 | 664 | ||
665 | temporalRelationEClass = createEClass(TEMPORAL_RELATION); | 665 | initEClass(laneEClass, Lane.class, "Lane", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
666 | 666 | 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); | |
667 | visionBlockedEClass = createEClass(VISION_BLOCKED); | 667 | 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); |
668 | createEReference(visionBlockedEClass, VISION_BLOCKED__BLOCKED_BY); | 668 | |
669 | 669 | initEClass(actorEClass, Actor.class, "Actor", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | |
670 | separationDistanceEClass = createEClass(SEPARATION_DISTANCE); | 670 | 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); |
671 | createEAttribute(separationDistanceEClass, SEPARATION_DISTANCE__DISTANCE); | 671 | 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); |
672 | 672 | 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); | |
673 | collisionExistsEClass = createEClass(COLLISION_EXISTS); | 673 | 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); |
674 | createEAttribute(collisionExistsEClass, COLLISION_EXISTS__COLLISION_TIME); | 674 | 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); |
675 | 675 | 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); | |
676 | collisionDoesNotExistEClass = createEClass(COLLISION_DOES_NOT_EXIST); | 676 | 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); |
677 | 677 | initEReference(getActor_Dist_near(), this.getActor(), null, "dist_near", null, 0, -1, Actor.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); | |
678 | pedestrianEClass = createEClass(PEDESTRIAN); | 678 | initEReference(getActor_Dist_med(), this.getActor(), null, "dist_med", null, 0, -1, Actor.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); |
679 | 679 | initEReference(getActor_Dist_far(), this.getActor(), null, "dist_far", null, 0, -1, Actor.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); | |
680 | vehicleEClass = createEClass(VEHICLE); | 680 | |
681 | 681 | initEClass(relationEClass, Relation.class, "Relation", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | |
682 | lane_HorizontalEClass = createEClass(LANE_HORIZONTAL); | 682 | 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); |
683 | 683 | initEReference(getRelation_Source(), this.getActor(), null, "source", null, 1, 1, Relation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | |
684 | lane_VerticalEClass = createEClass(LANE_VERTICAL); | 684 | |
685 | 685 | initEClass(spatialRelationEClass, SpatialRelation.class, "SpatialRelation", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | |
686 | // Create enums | 686 | |
687 | distanceEEnum = createEEnum(DISTANCE); | 687 | initEClass(temporalRelationEClass, TemporalRelation.class, "TemporalRelation", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
688 | } | 688 | |
689 | 689 | initEClass(visionBlockedEClass, VisionBlocked.class, "VisionBlocked", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | |
690 | /** | 690 | 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); |
691 | * <!-- begin-user-doc --> | 691 | |
692 | * <!-- end-user-doc --> | 692 | initEClass(collisionExistsEClass, CollisionExists.class, "CollisionExists", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
693 | * @generated | 693 | 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); |
694 | */ | 694 | |
695 | private boolean isInitialized = false; | 695 | initEClass(pedestrianEClass, Pedestrian.class, "Pedestrian", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
696 | 696 | ||
697 | /** | 697 | initEClass(vehicleEClass, Vehicle.class, "Vehicle", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
698 | * Complete the initialization of the package and its meta-model. This | 698 | |
699 | * method is guarded to have no affect on any invocation but its first. | 699 | initEClass(lane_HorizontalEClass, Lane_Horizontal.class, "Lane_Horizontal", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
700 | * <!-- begin-user-doc --> | 700 | |
701 | * <!-- end-user-doc --> | 701 | initEClass(lane_VerticalEClass, Lane_Vertical.class, "Lane_Vertical", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
702 | * @generated | 702 | |
703 | */ | 703 | // Create resource |
704 | public void initializePackageContents() { | 704 | createResource(eNS_URI); |
705 | if (isInitialized) return; | 705 | } |
706 | isInitialized = true; | 706 | |
707 | 707 | } //CrossingScenarioPackageImpl | |
708 | // Initialize package | ||
709 | setName(eNAME); | ||
710 | setNsPrefix(eNS_PREFIX); | ||
711 | setNsURI(eNS_URI); | ||
712 | |||
713 | // Create type parameters | ||
714 | |||
715 | // Set bounds for type parameters | ||
716 | |||
717 | // Add supertypes to classes | ||
718 | spatialRelationEClass.getESuperTypes().add(this.getRelation()); | ||
719 | temporalRelationEClass.getESuperTypes().add(this.getRelation()); | ||
720 | visionBlockedEClass.getESuperTypes().add(this.getSpatialRelation()); | ||
721 | separationDistanceEClass.getESuperTypes().add(this.getSpatialRelation()); | ||
722 | collisionExistsEClass.getESuperTypes().add(this.getTemporalRelation()); | ||
723 | collisionDoesNotExistEClass.getESuperTypes().add(this.getTemporalRelation()); | ||
724 | pedestrianEClass.getESuperTypes().add(this.getActor()); | ||
725 | vehicleEClass.getESuperTypes().add(this.getActor()); | ||
726 | lane_HorizontalEClass.getESuperTypes().add(this.getLane()); | ||
727 | lane_VerticalEClass.getESuperTypes().add(this.getLane()); | ||
728 | |||
729 | // Initialize classes, features, and operations; add parameters | ||
730 | initEClass(crossingScenarioEClass, CrossingScenario.class, "CrossingScenario", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
731 | 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); | ||
732 | 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); | ||
733 | 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); | ||
734 | 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); | ||
735 | 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); | ||
736 | initEReference(getCrossingScenario_Relations(), this.getRelation(), null, "relations", null, 0, -1, CrossingScenario.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
737 | initEAttribute(getCrossingScenario_MaxXSpeed(), ecorePackage.getEDouble(), "maxXSpeed", "0.0", 0, 1, CrossingScenario.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
738 | initEAttribute(getCrossingScenario_MaxYSpeed(), ecorePackage.getEDouble(), "maxYSpeed", "0.0", 0, 1, CrossingScenario.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
739 | |||
740 | initEClass(laneEClass, Lane.class, "Lane", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
741 | 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); | ||
742 | 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); | ||
743 | |||
744 | initEClass(actorEClass, Actor.class, "Actor", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
745 | 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); | ||
746 | 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); | ||
747 | 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); | ||
748 | 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); | ||
749 | 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); | ||
750 | 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); | ||
751 | 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); | ||
752 | initEReference(getActor_Dist_near(), this.getActor(), null, "dist_near", null, 0, -1, Actor.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); | ||
753 | initEReference(getActor_Dist_med(), this.getActor(), null, "dist_med", null, 0, -1, Actor.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); | ||
754 | initEReference(getActor_Dist_far(), this.getActor(), null, "dist_far", null, 0, -1, Actor.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); | ||
755 | |||
756 | initEClass(relationEClass, Relation.class, "Relation", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
757 | 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); | ||
758 | initEReference(getRelation_Source(), this.getActor(), null, "source", null, 1, 1, Relation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
759 | |||
760 | initEClass(spatialRelationEClass, SpatialRelation.class, "SpatialRelation", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
761 | |||
762 | initEClass(temporalRelationEClass, TemporalRelation.class, "TemporalRelation", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
763 | |||
764 | initEClass(visionBlockedEClass, VisionBlocked.class, "VisionBlocked", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
765 | 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); | ||
766 | |||
767 | initEClass(separationDistanceEClass, SeparationDistance.class, "SeparationDistance", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
768 | 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); | ||
769 | |||
770 | initEClass(collisionExistsEClass, CollisionExists.class, "CollisionExists", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
771 | 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); | ||
772 | |||
773 | initEClass(collisionDoesNotExistEClass, CollisionDoesNotExist.class, "CollisionDoesNotExist", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
774 | |||
775 | initEClass(pedestrianEClass, Pedestrian.class, "Pedestrian", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
776 | |||
777 | initEClass(vehicleEClass, Vehicle.class, "Vehicle", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
778 | |||
779 | initEClass(lane_HorizontalEClass, Lane_Horizontal.class, "Lane_Horizontal", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
780 | |||
781 | initEClass(lane_VerticalEClass, Lane_Vertical.class, "Lane_Vertical", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
782 | |||
783 | // Initialize enums and add enum literals | ||
784 | initEEnum(distanceEEnum, Distance.class, "Distance"); | ||
785 | addEEnumLiteral(distanceEEnum, Distance.DNEAR); | ||
786 | addEEnumLiteral(distanceEEnum, Distance.DMED); | ||
787 | addEEnumLiteral(distanceEEnum, Distance.DFAR); | ||
788 | |||
789 | // Create resource | ||
790 | createResource(eNS_URI); | ||
791 | } | ||
792 | |||
793 | } //CrossingScenarioPackageImpl | ||
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/impl/LaneImpl.java b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/LaneImpl.java index be316759..c08d8257 100644 --- a/Domains/crossingScenario/ecore-gen/crossingScenario/impl/LaneImpl.java +++ b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/LaneImpl.java | |||
@@ -1,239 +1,240 @@ | |||
1 | /** | 1 | /** |
2 | */ | 2 | */ |
3 | package crossingScenario.impl; | 3 | package crossingScenario.impl; |
4 | 4 | ||
5 | import crossingScenario.Actor; | 5 | import crossingScenario.Actor; |
6 | import crossingScenario.CrossingScenarioPackage; | 6 | import crossingScenario.CrossingScenarioPackage; |
7 | import crossingScenario.Lane; | 7 | import crossingScenario.Lane; |
8 | import java.util.Collection; | 8 | |
9 | 9 | import java.util.Collection; | |
10 | import org.eclipse.emf.common.notify.Notification; | 10 | |
11 | import org.eclipse.emf.common.notify.NotificationChain; | 11 | import org.eclipse.emf.common.notify.Notification; |
12 | 12 | import org.eclipse.emf.common.notify.NotificationChain; | |
13 | import org.eclipse.emf.common.util.EList; | 13 | |
14 | 14 | import org.eclipse.emf.common.util.EList; | |
15 | import org.eclipse.emf.ecore.EClass; | 15 | |
16 | import org.eclipse.emf.ecore.InternalEObject; | 16 | import org.eclipse.emf.ecore.EClass; |
17 | 17 | import org.eclipse.emf.ecore.InternalEObject; | |
18 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | 18 | |
19 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | 19 | import org.eclipse.emf.ecore.impl.ENotificationImpl; |
20 | 20 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | |
21 | import org.eclipse.emf.ecore.util.EObjectWithInverseResolvingEList; | 21 | |
22 | import org.eclipse.emf.ecore.util.InternalEList; | 22 | import org.eclipse.emf.ecore.util.EObjectWithInverseResolvingEList; |
23 | 23 | import org.eclipse.emf.ecore.util.InternalEList; | |
24 | /** | 24 | |
25 | * <!-- begin-user-doc --> | 25 | /** |
26 | * An implementation of the model object '<em><b>Lane</b></em>'. | 26 | * <!-- begin-user-doc --> |
27 | * <!-- end-user-doc --> | 27 | * An implementation of the model object '<em><b>Lane</b></em>'. |
28 | * <p> | 28 | * <!-- end-user-doc --> |
29 | * The following features are implemented: | 29 | * <p> |
30 | * </p> | 30 | * The following features are implemented: |
31 | * <ul> | 31 | * </p> |
32 | * <li>{@link crossingScenario.impl.LaneImpl#getReferenceCoord <em>Reference Coord</em>}</li> | 32 | * <ul> |
33 | * <li>{@link crossingScenario.impl.LaneImpl#getActors <em>Actors</em>}</li> | 33 | * <li>{@link crossingScenario.impl.LaneImpl#getReferenceCoord <em>Reference Coord</em>}</li> |
34 | * </ul> | 34 | * <li>{@link crossingScenario.impl.LaneImpl#getActors <em>Actors</em>}</li> |
35 | * | 35 | * </ul> |
36 | * @generated | 36 | * |
37 | */ | 37 | * @generated |
38 | public abstract class LaneImpl extends MinimalEObjectImpl.Container implements Lane { | 38 | */ |
39 | /** | 39 | public abstract class LaneImpl extends MinimalEObjectImpl.Container implements Lane { |
40 | * The default value of the '{@link #getReferenceCoord() <em>Reference Coord</em>}' attribute. | 40 | /** |
41 | * <!-- begin-user-doc --> | 41 | * The default value of the '{@link #getReferenceCoord() <em>Reference Coord</em>}' attribute. |
42 | * <!-- end-user-doc --> | 42 | * <!-- begin-user-doc --> |
43 | * @see #getReferenceCoord() | 43 | * <!-- end-user-doc --> |
44 | * @generated | 44 | * @see #getReferenceCoord() |
45 | * @ordered | 45 | * @generated |
46 | */ | 46 | * @ordered |
47 | protected static final double REFERENCE_COORD_EDEFAULT = 0.0; | 47 | */ |
48 | 48 | protected static final double REFERENCE_COORD_EDEFAULT = 0.0; | |
49 | /** | 49 | |
50 | * The cached value of the '{@link #getReferenceCoord() <em>Reference Coord</em>}' attribute. | 50 | /** |
51 | * <!-- begin-user-doc --> | 51 | * The cached value of the '{@link #getReferenceCoord() <em>Reference Coord</em>}' attribute. |
52 | * <!-- end-user-doc --> | 52 | * <!-- begin-user-doc --> |
53 | * @see #getReferenceCoord() | 53 | * <!-- end-user-doc --> |
54 | * @generated | 54 | * @see #getReferenceCoord() |
55 | * @ordered | 55 | * @generated |
56 | */ | 56 | * @ordered |
57 | protected double referenceCoord = REFERENCE_COORD_EDEFAULT; | 57 | */ |
58 | 58 | protected double referenceCoord = REFERENCE_COORD_EDEFAULT; | |
59 | /** | 59 | |
60 | * The cached value of the '{@link #getActors() <em>Actors</em>}' reference list. | 60 | /** |
61 | * <!-- begin-user-doc --> | 61 | * The cached value of the '{@link #getActors() <em>Actors</em>}' reference list. |
62 | * <!-- end-user-doc --> | 62 | * <!-- begin-user-doc --> |
63 | * @see #getActors() | 63 | * <!-- end-user-doc --> |
64 | * @generated | 64 | * @see #getActors() |
65 | * @ordered | 65 | * @generated |
66 | */ | 66 | * @ordered |
67 | protected EList<Actor> actors; | 67 | */ |
68 | 68 | protected EList<Actor> actors; | |
69 | /** | 69 | |
70 | * <!-- begin-user-doc --> | 70 | /** |
71 | * <!-- end-user-doc --> | 71 | * <!-- begin-user-doc --> |
72 | * @generated | 72 | * <!-- end-user-doc --> |
73 | */ | 73 | * @generated |
74 | protected LaneImpl() { | 74 | */ |
75 | super(); | 75 | protected LaneImpl() { |
76 | } | 76 | super(); |
77 | 77 | } | |
78 | /** | 78 | |
79 | * <!-- begin-user-doc --> | 79 | /** |
80 | * <!-- end-user-doc --> | 80 | * <!-- begin-user-doc --> |
81 | * @generated | 81 | * <!-- end-user-doc --> |
82 | */ | 82 | * @generated |
83 | @Override | 83 | */ |
84 | protected EClass eStaticClass() { | 84 | @Override |
85 | return CrossingScenarioPackage.Literals.LANE; | 85 | protected EClass eStaticClass() { |
86 | } | 86 | return CrossingScenarioPackage.Literals.LANE; |
87 | 87 | } | |
88 | /** | 88 | |
89 | * <!-- begin-user-doc --> | 89 | /** |
90 | * <!-- end-user-doc --> | 90 | * <!-- begin-user-doc --> |
91 | * @generated | 91 | * <!-- end-user-doc --> |
92 | */ | 92 | * @generated |
93 | @Override | 93 | */ |
94 | public double getReferenceCoord() { | 94 | @Override |
95 | return referenceCoord; | 95 | public double getReferenceCoord() { |
96 | } | 96 | return referenceCoord; |
97 | 97 | } | |
98 | /** | 98 | |
99 | * <!-- begin-user-doc --> | 99 | /** |
100 | * <!-- end-user-doc --> | 100 | * <!-- begin-user-doc --> |
101 | * @generated | 101 | * <!-- end-user-doc --> |
102 | */ | 102 | * @generated |
103 | @Override | 103 | */ |
104 | public void setReferenceCoord(double newReferenceCoord) { | 104 | @Override |
105 | double oldReferenceCoord = referenceCoord; | 105 | public void setReferenceCoord(double newReferenceCoord) { |
106 | referenceCoord = newReferenceCoord; | 106 | double oldReferenceCoord = referenceCoord; |
107 | if (eNotificationRequired()) | 107 | referenceCoord = newReferenceCoord; |
108 | eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.LANE__REFERENCE_COORD, oldReferenceCoord, referenceCoord)); | 108 | if (eNotificationRequired()) |
109 | } | 109 | eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.LANE__REFERENCE_COORD, oldReferenceCoord, referenceCoord)); |
110 | 110 | } | |
111 | /** | 111 | |
112 | * <!-- begin-user-doc --> | 112 | /** |
113 | * <!-- end-user-doc --> | 113 | * <!-- begin-user-doc --> |
114 | * @generated | 114 | * <!-- end-user-doc --> |
115 | */ | 115 | * @generated |
116 | @Override | 116 | */ |
117 | public EList<Actor> getActors() { | 117 | @Override |
118 | if (actors == null) { | 118 | public EList<Actor> getActors() { |
119 | actors = new EObjectWithInverseResolvingEList<Actor>(Actor.class, this, CrossingScenarioPackage.LANE__ACTORS, CrossingScenarioPackage.ACTOR__PLACED_ON); | 119 | if (actors == null) { |
120 | } | 120 | actors = new EObjectWithInverseResolvingEList<Actor>(Actor.class, this, CrossingScenarioPackage.LANE__ACTORS, CrossingScenarioPackage.ACTOR__PLACED_ON); |
121 | return actors; | 121 | } |
122 | } | 122 | return actors; |
123 | 123 | } | |
124 | /** | 124 | |
125 | * <!-- begin-user-doc --> | 125 | /** |
126 | * <!-- end-user-doc --> | 126 | * <!-- begin-user-doc --> |
127 | * @generated | 127 | * <!-- end-user-doc --> |
128 | */ | 128 | * @generated |
129 | @SuppressWarnings("unchecked") | 129 | */ |
130 | @Override | 130 | @SuppressWarnings("unchecked") |
131 | public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | 131 | @Override |
132 | switch (featureID) { | 132 | public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { |
133 | case CrossingScenarioPackage.LANE__ACTORS: | 133 | switch (featureID) { |
134 | return ((InternalEList<InternalEObject>)(InternalEList<?>)getActors()).basicAdd(otherEnd, msgs); | 134 | case CrossingScenarioPackage.LANE__ACTORS: |
135 | } | 135 | return ((InternalEList<InternalEObject>)(InternalEList<?>)getActors()).basicAdd(otherEnd, msgs); |
136 | return super.eInverseAdd(otherEnd, featureID, msgs); | 136 | } |
137 | } | 137 | return super.eInverseAdd(otherEnd, featureID, msgs); |
138 | 138 | } | |
139 | /** | 139 | |
140 | * <!-- begin-user-doc --> | 140 | /** |
141 | * <!-- end-user-doc --> | 141 | * <!-- begin-user-doc --> |
142 | * @generated | 142 | * <!-- end-user-doc --> |
143 | */ | 143 | * @generated |
144 | @Override | 144 | */ |
145 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | 145 | @Override |
146 | switch (featureID) { | 146 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { |
147 | case CrossingScenarioPackage.LANE__ACTORS: | 147 | switch (featureID) { |
148 | return ((InternalEList<?>)getActors()).basicRemove(otherEnd, msgs); | 148 | case CrossingScenarioPackage.LANE__ACTORS: |
149 | } | 149 | return ((InternalEList<?>)getActors()).basicRemove(otherEnd, msgs); |
150 | return super.eInverseRemove(otherEnd, featureID, msgs); | 150 | } |
151 | } | 151 | return super.eInverseRemove(otherEnd, featureID, msgs); |
152 | 152 | } | |
153 | /** | 153 | |
154 | * <!-- begin-user-doc --> | 154 | /** |
155 | * <!-- end-user-doc --> | 155 | * <!-- begin-user-doc --> |
156 | * @generated | 156 | * <!-- end-user-doc --> |
157 | */ | 157 | * @generated |
158 | @Override | 158 | */ |
159 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | 159 | @Override |
160 | switch (featureID) { | 160 | public Object eGet(int featureID, boolean resolve, boolean coreType) { |
161 | case CrossingScenarioPackage.LANE__REFERENCE_COORD: | 161 | switch (featureID) { |
162 | return getReferenceCoord(); | 162 | case CrossingScenarioPackage.LANE__REFERENCE_COORD: |
163 | case CrossingScenarioPackage.LANE__ACTORS: | 163 | return getReferenceCoord(); |
164 | return getActors(); | 164 | case CrossingScenarioPackage.LANE__ACTORS: |
165 | } | 165 | return getActors(); |
166 | return super.eGet(featureID, resolve, coreType); | 166 | } |
167 | } | 167 | return super.eGet(featureID, resolve, coreType); |
168 | 168 | } | |
169 | /** | 169 | |
170 | * <!-- begin-user-doc --> | 170 | /** |
171 | * <!-- end-user-doc --> | 171 | * <!-- begin-user-doc --> |
172 | * @generated | 172 | * <!-- end-user-doc --> |
173 | */ | 173 | * @generated |
174 | @SuppressWarnings("unchecked") | 174 | */ |
175 | @Override | 175 | @SuppressWarnings("unchecked") |
176 | public void eSet(int featureID, Object newValue) { | 176 | @Override |
177 | switch (featureID) { | 177 | public void eSet(int featureID, Object newValue) { |
178 | case CrossingScenarioPackage.LANE__REFERENCE_COORD: | 178 | switch (featureID) { |
179 | setReferenceCoord((Double)newValue); | 179 | case CrossingScenarioPackage.LANE__REFERENCE_COORD: |
180 | return; | 180 | setReferenceCoord((Double)newValue); |
181 | case CrossingScenarioPackage.LANE__ACTORS: | 181 | return; |
182 | getActors().clear(); | 182 | case CrossingScenarioPackage.LANE__ACTORS: |
183 | getActors().addAll((Collection<? extends Actor>)newValue); | 183 | getActors().clear(); |
184 | return; | 184 | getActors().addAll((Collection<? extends Actor>)newValue); |
185 | } | 185 | return; |
186 | super.eSet(featureID, newValue); | 186 | } |
187 | } | 187 | super.eSet(featureID, newValue); |
188 | 188 | } | |
189 | /** | 189 | |
190 | * <!-- begin-user-doc --> | 190 | /** |
191 | * <!-- end-user-doc --> | 191 | * <!-- begin-user-doc --> |
192 | * @generated | 192 | * <!-- end-user-doc --> |
193 | */ | 193 | * @generated |
194 | @Override | 194 | */ |
195 | public void eUnset(int featureID) { | 195 | @Override |
196 | switch (featureID) { | 196 | public void eUnset(int featureID) { |
197 | case CrossingScenarioPackage.LANE__REFERENCE_COORD: | 197 | switch (featureID) { |
198 | setReferenceCoord(REFERENCE_COORD_EDEFAULT); | 198 | case CrossingScenarioPackage.LANE__REFERENCE_COORD: |
199 | return; | 199 | setReferenceCoord(REFERENCE_COORD_EDEFAULT); |
200 | case CrossingScenarioPackage.LANE__ACTORS: | 200 | return; |
201 | getActors().clear(); | 201 | case CrossingScenarioPackage.LANE__ACTORS: |
202 | return; | 202 | getActors().clear(); |
203 | } | 203 | return; |
204 | super.eUnset(featureID); | 204 | } |
205 | } | 205 | super.eUnset(featureID); |
206 | 206 | } | |
207 | /** | 207 | |
208 | * <!-- begin-user-doc --> | 208 | /** |
209 | * <!-- end-user-doc --> | 209 | * <!-- begin-user-doc --> |
210 | * @generated | 210 | * <!-- end-user-doc --> |
211 | */ | 211 | * @generated |
212 | @Override | 212 | */ |
213 | public boolean eIsSet(int featureID) { | 213 | @Override |
214 | switch (featureID) { | 214 | public boolean eIsSet(int featureID) { |
215 | case CrossingScenarioPackage.LANE__REFERENCE_COORD: | 215 | switch (featureID) { |
216 | return referenceCoord != REFERENCE_COORD_EDEFAULT; | 216 | case CrossingScenarioPackage.LANE__REFERENCE_COORD: |
217 | case CrossingScenarioPackage.LANE__ACTORS: | 217 | return referenceCoord != REFERENCE_COORD_EDEFAULT; |
218 | return actors != null && !actors.isEmpty(); | 218 | case CrossingScenarioPackage.LANE__ACTORS: |
219 | } | 219 | return actors != null && !actors.isEmpty(); |
220 | return super.eIsSet(featureID); | 220 | } |
221 | } | 221 | return super.eIsSet(featureID); |
222 | 222 | } | |
223 | /** | 223 | |
224 | * <!-- begin-user-doc --> | 224 | /** |
225 | * <!-- end-user-doc --> | 225 | * <!-- begin-user-doc --> |
226 | * @generated | 226 | * <!-- end-user-doc --> |
227 | */ | 227 | * @generated |
228 | @Override | 228 | */ |
229 | public String toString() { | 229 | @Override |
230 | if (eIsProxy()) return super.toString(); | 230 | public String toString() { |
231 | 231 | if (eIsProxy()) return super.toString(); | |
232 | StringBuilder result = new StringBuilder(super.toString()); | 232 | |
233 | result.append(" (referenceCoord: "); | 233 | StringBuilder result = new StringBuilder(super.toString()); |
234 | result.append(referenceCoord); | 234 | result.append(" (referenceCoord: "); |
235 | result.append(')'); | 235 | result.append(referenceCoord); |
236 | return result.toString(); | 236 | result.append(')'); |
237 | } | 237 | return result.toString(); |
238 | 238 | } | |
239 | } //LaneImpl | 239 | |
240 | } //LaneImpl | ||
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/impl/Lane_HorizontalImpl.java b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/Lane_HorizontalImpl.java index adf06602..95899432 100644 --- a/Domains/crossingScenario/ecore-gen/crossingScenario/impl/Lane_HorizontalImpl.java +++ b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/Lane_HorizontalImpl.java | |||
@@ -1,37 +1,37 @@ | |||
1 | /** | 1 | /** |
2 | */ | 2 | */ |
3 | package crossingScenario.impl; | 3 | package crossingScenario.impl; |
4 | 4 | ||
5 | import crossingScenario.CrossingScenarioPackage; | 5 | import crossingScenario.CrossingScenarioPackage; |
6 | import crossingScenario.Lane_Horizontal; | 6 | import crossingScenario.Lane_Horizontal; |
7 | 7 | ||
8 | import org.eclipse.emf.ecore.EClass; | 8 | import org.eclipse.emf.ecore.EClass; |
9 | 9 | ||
10 | /** | 10 | /** |
11 | * <!-- begin-user-doc --> | 11 | * <!-- begin-user-doc --> |
12 | * An implementation of the model object '<em><b>Lane Horizontal</b></em>'. | 12 | * An implementation of the model object '<em><b>Lane Horizontal</b></em>'. |
13 | * <!-- end-user-doc --> | 13 | * <!-- end-user-doc --> |
14 | * | 14 | * |
15 | * @generated | 15 | * @generated |
16 | */ | 16 | */ |
17 | public class Lane_HorizontalImpl extends LaneImpl implements Lane_Horizontal { | 17 | public class Lane_HorizontalImpl extends LaneImpl implements Lane_Horizontal { |
18 | /** | 18 | /** |
19 | * <!-- begin-user-doc --> | 19 | * <!-- begin-user-doc --> |
20 | * <!-- end-user-doc --> | 20 | * <!-- end-user-doc --> |
21 | * @generated | 21 | * @generated |
22 | */ | 22 | */ |
23 | protected Lane_HorizontalImpl() { | 23 | protected Lane_HorizontalImpl() { |
24 | super(); | 24 | super(); |
25 | } | 25 | } |
26 | 26 | ||
27 | /** | 27 | /** |
28 | * <!-- begin-user-doc --> | 28 | * <!-- begin-user-doc --> |
29 | * <!-- end-user-doc --> | 29 | * <!-- end-user-doc --> |
30 | * @generated | 30 | * @generated |
31 | */ | 31 | */ |
32 | @Override | 32 | @Override |
33 | protected EClass eStaticClass() { | 33 | protected EClass eStaticClass() { |
34 | return CrossingScenarioPackage.Literals.LANE_HORIZONTAL; | 34 | return CrossingScenarioPackage.Literals.LANE_HORIZONTAL; |
35 | } | 35 | } |
36 | 36 | ||
37 | } //Lane_HorizontalImpl | 37 | } //Lane_HorizontalImpl |
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/impl/Lane_VerticalImpl.java b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/Lane_VerticalImpl.java index cc1265e8..7b615d82 100644 --- a/Domains/crossingScenario/ecore-gen/crossingScenario/impl/Lane_VerticalImpl.java +++ b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/Lane_VerticalImpl.java | |||
@@ -1,37 +1,37 @@ | |||
1 | /** | 1 | /** |
2 | */ | 2 | */ |
3 | package crossingScenario.impl; | 3 | package crossingScenario.impl; |
4 | 4 | ||
5 | import crossingScenario.CrossingScenarioPackage; | 5 | import crossingScenario.CrossingScenarioPackage; |
6 | import crossingScenario.Lane_Vertical; | 6 | import crossingScenario.Lane_Vertical; |
7 | 7 | ||
8 | import org.eclipse.emf.ecore.EClass; | 8 | import org.eclipse.emf.ecore.EClass; |
9 | 9 | ||
10 | /** | 10 | /** |
11 | * <!-- begin-user-doc --> | 11 | * <!-- begin-user-doc --> |
12 | * An implementation of the model object '<em><b>Lane Vertical</b></em>'. | 12 | * An implementation of the model object '<em><b>Lane Vertical</b></em>'. |
13 | * <!-- end-user-doc --> | 13 | * <!-- end-user-doc --> |
14 | * | 14 | * |
15 | * @generated | 15 | * @generated |
16 | */ | 16 | */ |
17 | public class Lane_VerticalImpl extends LaneImpl implements Lane_Vertical { | 17 | public class Lane_VerticalImpl extends LaneImpl implements Lane_Vertical { |
18 | /** | 18 | /** |
19 | * <!-- begin-user-doc --> | 19 | * <!-- begin-user-doc --> |
20 | * <!-- end-user-doc --> | 20 | * <!-- end-user-doc --> |
21 | * @generated | 21 | * @generated |
22 | */ | 22 | */ |
23 | protected Lane_VerticalImpl() { | 23 | protected Lane_VerticalImpl() { |
24 | super(); | 24 | super(); |
25 | } | 25 | } |
26 | 26 | ||
27 | /** | 27 | /** |
28 | * <!-- begin-user-doc --> | 28 | * <!-- begin-user-doc --> |
29 | * <!-- end-user-doc --> | 29 | * <!-- end-user-doc --> |
30 | * @generated | 30 | * @generated |
31 | */ | 31 | */ |
32 | @Override | 32 | @Override |
33 | protected EClass eStaticClass() { | 33 | protected EClass eStaticClass() { |
34 | return CrossingScenarioPackage.Literals.LANE_VERTICAL; | 34 | return CrossingScenarioPackage.Literals.LANE_VERTICAL; |
35 | } | 35 | } |
36 | 36 | ||
37 | } //Lane_VerticalImpl | 37 | } //Lane_VerticalImpl |
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/impl/PedestrianImpl.java b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/PedestrianImpl.java index b7bf48f0..bdf71eea 100644 --- a/Domains/crossingScenario/ecore-gen/crossingScenario/impl/PedestrianImpl.java +++ b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/PedestrianImpl.java | |||
@@ -1,37 +1,37 @@ | |||
1 | /** | 1 | /** |
2 | */ | 2 | */ |
3 | package crossingScenario.impl; | 3 | package crossingScenario.impl; |
4 | 4 | ||
5 | import crossingScenario.CrossingScenarioPackage; | 5 | import crossingScenario.CrossingScenarioPackage; |
6 | import crossingScenario.Pedestrian; | 6 | import crossingScenario.Pedestrian; |
7 | 7 | ||
8 | import org.eclipse.emf.ecore.EClass; | 8 | import org.eclipse.emf.ecore.EClass; |
9 | 9 | ||
10 | /** | 10 | /** |
11 | * <!-- begin-user-doc --> | 11 | * <!-- begin-user-doc --> |
12 | * An implementation of the model object '<em><b>Pedestrian</b></em>'. | 12 | * An implementation of the model object '<em><b>Pedestrian</b></em>'. |
13 | * <!-- end-user-doc --> | 13 | * <!-- end-user-doc --> |
14 | * | 14 | * |
15 | * @generated | 15 | * @generated |
16 | */ | 16 | */ |
17 | public class PedestrianImpl extends ActorImpl implements Pedestrian { | 17 | public class PedestrianImpl extends ActorImpl implements Pedestrian { |
18 | /** | 18 | /** |
19 | * <!-- begin-user-doc --> | 19 | * <!-- begin-user-doc --> |
20 | * <!-- end-user-doc --> | 20 | * <!-- end-user-doc --> |
21 | * @generated | 21 | * @generated |
22 | */ | 22 | */ |
23 | protected PedestrianImpl() { | 23 | protected PedestrianImpl() { |
24 | super(); | 24 | super(); |
25 | } | 25 | } |
26 | 26 | ||
27 | /** | 27 | /** |
28 | * <!-- begin-user-doc --> | 28 | * <!-- begin-user-doc --> |
29 | * <!-- end-user-doc --> | 29 | * <!-- end-user-doc --> |
30 | * @generated | 30 | * @generated |
31 | */ | 31 | */ |
32 | @Override | 32 | @Override |
33 | protected EClass eStaticClass() { | 33 | protected EClass eStaticClass() { |
34 | return CrossingScenarioPackage.Literals.PEDESTRIAN; | 34 | return CrossingScenarioPackage.Literals.PEDESTRIAN; |
35 | } | 35 | } |
36 | 36 | ||
37 | } //PedestrianImpl | 37 | } //PedestrianImpl |
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/impl/RelationImpl.java b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/RelationImpl.java index 97131c99..d0924f73 100644 --- a/Domains/crossingScenario/ecore-gen/crossingScenario/impl/RelationImpl.java +++ b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/RelationImpl.java | |||
@@ -1,221 +1,221 @@ | |||
1 | /** | 1 | /** |
2 | */ | 2 | */ |
3 | package crossingScenario.impl; | 3 | package crossingScenario.impl; |
4 | 4 | ||
5 | import crossingScenario.Actor; | 5 | import crossingScenario.Actor; |
6 | import crossingScenario.CrossingScenarioPackage; | 6 | import crossingScenario.CrossingScenarioPackage; |
7 | import crossingScenario.Relation; | 7 | import crossingScenario.Relation; |
8 | 8 | ||
9 | import org.eclipse.emf.common.notify.Notification; | 9 | import org.eclipse.emf.common.notify.Notification; |
10 | 10 | ||
11 | import org.eclipse.emf.ecore.EClass; | 11 | import org.eclipse.emf.ecore.EClass; |
12 | import org.eclipse.emf.ecore.InternalEObject; | 12 | import org.eclipse.emf.ecore.InternalEObject; |
13 | 13 | ||
14 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | 14 | import org.eclipse.emf.ecore.impl.ENotificationImpl; |
15 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | 15 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; |
16 | 16 | ||
17 | /** | 17 | /** |
18 | * <!-- begin-user-doc --> | 18 | * <!-- begin-user-doc --> |
19 | * An implementation of the model object '<em><b>Relation</b></em>'. | 19 | * An implementation of the model object '<em><b>Relation</b></em>'. |
20 | * <!-- end-user-doc --> | 20 | * <!-- end-user-doc --> |
21 | * <p> | 21 | * <p> |
22 | * The following features are implemented: | 22 | * The following features are implemented: |
23 | * </p> | 23 | * </p> |
24 | * <ul> | 24 | * <ul> |
25 | * <li>{@link crossingScenario.impl.RelationImpl#getTarget <em>Target</em>}</li> | 25 | * <li>{@link crossingScenario.impl.RelationImpl#getTarget <em>Target</em>}</li> |
26 | * <li>{@link crossingScenario.impl.RelationImpl#getSource <em>Source</em>}</li> | 26 | * <li>{@link crossingScenario.impl.RelationImpl#getSource <em>Source</em>}</li> |
27 | * </ul> | 27 | * </ul> |
28 | * | 28 | * |
29 | * @generated | 29 | * @generated |
30 | */ | 30 | */ |
31 | public abstract class RelationImpl extends MinimalEObjectImpl.Container implements Relation { | 31 | public abstract class RelationImpl extends MinimalEObjectImpl.Container implements Relation { |
32 | /** | 32 | /** |
33 | * The cached value of the '{@link #getTarget() <em>Target</em>}' reference. | 33 | * The cached value of the '{@link #getTarget() <em>Target</em>}' reference. |
34 | * <!-- begin-user-doc --> | 34 | * <!-- begin-user-doc --> |
35 | * <!-- end-user-doc --> | 35 | * <!-- end-user-doc --> |
36 | * @see #getTarget() | 36 | * @see #getTarget() |
37 | * @generated | 37 | * @generated |
38 | * @ordered | 38 | * @ordered |
39 | */ | 39 | */ |
40 | protected Actor target; | 40 | protected Actor target; |
41 | 41 | ||
42 | /** | 42 | /** |
43 | * The cached value of the '{@link #getSource() <em>Source</em>}' reference. | 43 | * The cached value of the '{@link #getSource() <em>Source</em>}' reference. |
44 | * <!-- begin-user-doc --> | 44 | * <!-- begin-user-doc --> |
45 | * <!-- end-user-doc --> | 45 | * <!-- end-user-doc --> |
46 | * @see #getSource() | 46 | * @see #getSource() |
47 | * @generated | 47 | * @generated |
48 | * @ordered | 48 | * @ordered |
49 | */ | 49 | */ |
50 | protected Actor source; | 50 | protected Actor source; |
51 | 51 | ||
52 | /** | 52 | /** |
53 | * <!-- begin-user-doc --> | 53 | * <!-- begin-user-doc --> |
54 | * <!-- end-user-doc --> | 54 | * <!-- end-user-doc --> |
55 | * @generated | 55 | * @generated |
56 | */ | 56 | */ |
57 | protected RelationImpl() { | 57 | protected RelationImpl() { |
58 | super(); | 58 | super(); |
59 | } | 59 | } |
60 | 60 | ||
61 | /** | 61 | /** |
62 | * <!-- begin-user-doc --> | 62 | * <!-- begin-user-doc --> |
63 | * <!-- end-user-doc --> | 63 | * <!-- end-user-doc --> |
64 | * @generated | 64 | * @generated |
65 | */ | 65 | */ |
66 | @Override | 66 | @Override |
67 | protected EClass eStaticClass() { | 67 | protected EClass eStaticClass() { |
68 | return CrossingScenarioPackage.Literals.RELATION; | 68 | return CrossingScenarioPackage.Literals.RELATION; |
69 | } | 69 | } |
70 | 70 | ||
71 | /** | 71 | /** |
72 | * <!-- begin-user-doc --> | 72 | * <!-- begin-user-doc --> |
73 | * <!-- end-user-doc --> | 73 | * <!-- end-user-doc --> |
74 | * @generated | 74 | * @generated |
75 | */ | 75 | */ |
76 | @Override | 76 | @Override |
77 | public Actor getTarget() { | 77 | public Actor getTarget() { |
78 | if (target != null && target.eIsProxy()) { | 78 | if (target != null && target.eIsProxy()) { |
79 | InternalEObject oldTarget = (InternalEObject)target; | 79 | InternalEObject oldTarget = (InternalEObject)target; |
80 | target = (Actor)eResolveProxy(oldTarget); | 80 | target = (Actor)eResolveProxy(oldTarget); |
81 | if (target != oldTarget) { | 81 | if (target != oldTarget) { |
82 | if (eNotificationRequired()) | 82 | if (eNotificationRequired()) |
83 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, CrossingScenarioPackage.RELATION__TARGET, oldTarget, target)); | 83 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, CrossingScenarioPackage.RELATION__TARGET, oldTarget, target)); |
84 | } | 84 | } |
85 | } | 85 | } |
86 | return target; | 86 | return target; |
87 | } | 87 | } |
88 | 88 | ||
89 | /** | 89 | /** |
90 | * <!-- begin-user-doc --> | 90 | * <!-- begin-user-doc --> |
91 | * <!-- end-user-doc --> | 91 | * <!-- end-user-doc --> |
92 | * @generated | 92 | * @generated |
93 | */ | 93 | */ |
94 | public Actor basicGetTarget() { | 94 | public Actor basicGetTarget() { |
95 | return target; | 95 | return target; |
96 | } | 96 | } |
97 | 97 | ||
98 | /** | 98 | /** |
99 | * <!-- begin-user-doc --> | 99 | * <!-- begin-user-doc --> |
100 | * <!-- end-user-doc --> | 100 | * <!-- end-user-doc --> |
101 | * @generated | 101 | * @generated |
102 | */ | 102 | */ |
103 | @Override | 103 | @Override |
104 | public void setTarget(Actor newTarget) { | 104 | public void setTarget(Actor newTarget) { |
105 | Actor oldTarget = target; | 105 | Actor oldTarget = target; |
106 | target = newTarget; | 106 | target = newTarget; |
107 | if (eNotificationRequired()) | 107 | if (eNotificationRequired()) |
108 | eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.RELATION__TARGET, oldTarget, target)); | 108 | eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.RELATION__TARGET, oldTarget, target)); |
109 | } | 109 | } |
110 | 110 | ||
111 | /** | 111 | /** |
112 | * <!-- begin-user-doc --> | 112 | * <!-- begin-user-doc --> |
113 | * <!-- end-user-doc --> | 113 | * <!-- end-user-doc --> |
114 | * @generated | 114 | * @generated |
115 | */ | 115 | */ |
116 | @Override | 116 | @Override |
117 | public Actor getSource() { | 117 | public Actor getSource() { |
118 | if (source != null && source.eIsProxy()) { | 118 | if (source != null && source.eIsProxy()) { |
119 | InternalEObject oldSource = (InternalEObject)source; | 119 | InternalEObject oldSource = (InternalEObject)source; |
120 | source = (Actor)eResolveProxy(oldSource); | 120 | source = (Actor)eResolveProxy(oldSource); |
121 | if (source != oldSource) { | 121 | if (source != oldSource) { |
122 | if (eNotificationRequired()) | 122 | if (eNotificationRequired()) |
123 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, CrossingScenarioPackage.RELATION__SOURCE, oldSource, source)); | 123 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, CrossingScenarioPackage.RELATION__SOURCE, oldSource, source)); |
124 | } | 124 | } |
125 | } | 125 | } |
126 | return source; | 126 | return source; |
127 | } | 127 | } |
128 | 128 | ||
129 | /** | 129 | /** |
130 | * <!-- begin-user-doc --> | 130 | * <!-- begin-user-doc --> |
131 | * <!-- end-user-doc --> | 131 | * <!-- end-user-doc --> |
132 | * @generated | 132 | * @generated |
133 | */ | 133 | */ |
134 | public Actor basicGetSource() { | 134 | public Actor basicGetSource() { |
135 | return source; | 135 | return source; |
136 | } | 136 | } |
137 | 137 | ||
138 | /** | 138 | /** |
139 | * <!-- begin-user-doc --> | 139 | * <!-- begin-user-doc --> |
140 | * <!-- end-user-doc --> | 140 | * <!-- end-user-doc --> |
141 | * @generated | 141 | * @generated |
142 | */ | 142 | */ |
143 | @Override | 143 | @Override |
144 | public void setSource(Actor newSource) { | 144 | public void setSource(Actor newSource) { |
145 | Actor oldSource = source; | 145 | Actor oldSource = source; |
146 | source = newSource; | 146 | source = newSource; |
147 | if (eNotificationRequired()) | 147 | if (eNotificationRequired()) |
148 | eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.RELATION__SOURCE, oldSource, source)); | 148 | eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.RELATION__SOURCE, oldSource, source)); |
149 | } | 149 | } |
150 | 150 | ||
151 | /** | 151 | /** |
152 | * <!-- begin-user-doc --> | 152 | * <!-- begin-user-doc --> |
153 | * <!-- end-user-doc --> | 153 | * <!-- end-user-doc --> |
154 | * @generated | 154 | * @generated |
155 | */ | 155 | */ |
156 | @Override | 156 | @Override |
157 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | 157 | public Object eGet(int featureID, boolean resolve, boolean coreType) { |
158 | switch (featureID) { | 158 | switch (featureID) { |
159 | case CrossingScenarioPackage.RELATION__TARGET: | 159 | case CrossingScenarioPackage.RELATION__TARGET: |
160 | if (resolve) return getTarget(); | 160 | if (resolve) return getTarget(); |
161 | return basicGetTarget(); | 161 | return basicGetTarget(); |
162 | case CrossingScenarioPackage.RELATION__SOURCE: | 162 | case CrossingScenarioPackage.RELATION__SOURCE: |
163 | if (resolve) return getSource(); | 163 | if (resolve) return getSource(); |
164 | return basicGetSource(); | 164 | return basicGetSource(); |
165 | } | 165 | } |
166 | return super.eGet(featureID, resolve, coreType); | 166 | return super.eGet(featureID, resolve, coreType); |
167 | } | 167 | } |
168 | 168 | ||
169 | /** | 169 | /** |
170 | * <!-- begin-user-doc --> | 170 | * <!-- begin-user-doc --> |
171 | * <!-- end-user-doc --> | 171 | * <!-- end-user-doc --> |
172 | * @generated | 172 | * @generated |
173 | */ | 173 | */ |
174 | @Override | 174 | @Override |
175 | public void eSet(int featureID, Object newValue) { | 175 | public void eSet(int featureID, Object newValue) { |
176 | switch (featureID) { | 176 | switch (featureID) { |
177 | case CrossingScenarioPackage.RELATION__TARGET: | 177 | case CrossingScenarioPackage.RELATION__TARGET: |
178 | setTarget((Actor)newValue); | 178 | setTarget((Actor)newValue); |
179 | return; | 179 | return; |
180 | case CrossingScenarioPackage.RELATION__SOURCE: | 180 | case CrossingScenarioPackage.RELATION__SOURCE: |
181 | setSource((Actor)newValue); | 181 | setSource((Actor)newValue); |
182 | return; | 182 | return; |
183 | } | 183 | } |
184 | super.eSet(featureID, newValue); | 184 | super.eSet(featureID, newValue); |
185 | } | 185 | } |
186 | 186 | ||
187 | /** | 187 | /** |
188 | * <!-- begin-user-doc --> | 188 | * <!-- begin-user-doc --> |
189 | * <!-- end-user-doc --> | 189 | * <!-- end-user-doc --> |
190 | * @generated | 190 | * @generated |
191 | */ | 191 | */ |
192 | @Override | 192 | @Override |
193 | public void eUnset(int featureID) { | 193 | public void eUnset(int featureID) { |
194 | switch (featureID) { | 194 | switch (featureID) { |
195 | case CrossingScenarioPackage.RELATION__TARGET: | 195 | case CrossingScenarioPackage.RELATION__TARGET: |
196 | setTarget((Actor)null); | 196 | setTarget((Actor)null); |
197 | return; | 197 | return; |
198 | case CrossingScenarioPackage.RELATION__SOURCE: | 198 | case CrossingScenarioPackage.RELATION__SOURCE: |
199 | setSource((Actor)null); | 199 | setSource((Actor)null); |
200 | return; | 200 | return; |
201 | } | 201 | } |
202 | super.eUnset(featureID); | 202 | super.eUnset(featureID); |
203 | } | 203 | } |
204 | 204 | ||
205 | /** | 205 | /** |
206 | * <!-- begin-user-doc --> | 206 | * <!-- begin-user-doc --> |
207 | * <!-- end-user-doc --> | 207 | * <!-- end-user-doc --> |
208 | * @generated | 208 | * @generated |
209 | */ | 209 | */ |
210 | @Override | 210 | @Override |
211 | public boolean eIsSet(int featureID) { | 211 | public boolean eIsSet(int featureID) { |
212 | switch (featureID) { | 212 | switch (featureID) { |
213 | case CrossingScenarioPackage.RELATION__TARGET: | 213 | case CrossingScenarioPackage.RELATION__TARGET: |
214 | return target != null; | 214 | return target != null; |
215 | case CrossingScenarioPackage.RELATION__SOURCE: | 215 | case CrossingScenarioPackage.RELATION__SOURCE: |
216 | return source != null; | 216 | return source != null; |
217 | } | 217 | } |
218 | return super.eIsSet(featureID); | 218 | return super.eIsSet(featureID); |
219 | } | 219 | } |
220 | 220 | ||
221 | } //RelationImpl | 221 | } //RelationImpl |
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/impl/SeparationDistanceImpl.java b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/SeparationDistanceImpl.java deleted file mode 100644 index 298a2121..00000000 --- a/Domains/crossingScenario/ecore-gen/crossingScenario/impl/SeparationDistanceImpl.java +++ /dev/null | |||
@@ -1,165 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package crossingScenario.impl; | ||
4 | |||
5 | import crossingScenario.CrossingScenarioPackage; | ||
6 | import crossingScenario.Distance; | ||
7 | import crossingScenario.SeparationDistance; | ||
8 | |||
9 | import org.eclipse.emf.common.notify.Notification; | ||
10 | |||
11 | import org.eclipse.emf.ecore.EClass; | ||
12 | |||
13 | import 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 | */ | ||
28 | public 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.DNEAR; | ||
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 index 29dcf9f8..b1cb271d 100644 --- a/Domains/crossingScenario/ecore-gen/crossingScenario/impl/SpatialRelationImpl.java +++ b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/SpatialRelationImpl.java | |||
@@ -1,37 +1,37 @@ | |||
1 | /** | 1 | /** |
2 | */ | 2 | */ |
3 | package crossingScenario.impl; | 3 | package crossingScenario.impl; |
4 | 4 | ||
5 | import crossingScenario.CrossingScenarioPackage; | 5 | import crossingScenario.CrossingScenarioPackage; |
6 | import crossingScenario.SpatialRelation; | 6 | import crossingScenario.SpatialRelation; |
7 | 7 | ||
8 | import org.eclipse.emf.ecore.EClass; | 8 | import org.eclipse.emf.ecore.EClass; |
9 | 9 | ||
10 | /** | 10 | /** |
11 | * <!-- begin-user-doc --> | 11 | * <!-- begin-user-doc --> |
12 | * An implementation of the model object '<em><b>Spatial Relation</b></em>'. | 12 | * An implementation of the model object '<em><b>Spatial Relation</b></em>'. |
13 | * <!-- end-user-doc --> | 13 | * <!-- end-user-doc --> |
14 | * | 14 | * |
15 | * @generated | 15 | * @generated |
16 | */ | 16 | */ |
17 | public abstract class SpatialRelationImpl extends RelationImpl implements SpatialRelation { | 17 | public abstract class SpatialRelationImpl extends RelationImpl implements SpatialRelation { |
18 | /** | 18 | /** |
19 | * <!-- begin-user-doc --> | 19 | * <!-- begin-user-doc --> |
20 | * <!-- end-user-doc --> | 20 | * <!-- end-user-doc --> |
21 | * @generated | 21 | * @generated |
22 | */ | 22 | */ |
23 | protected SpatialRelationImpl() { | 23 | protected SpatialRelationImpl() { |
24 | super(); | 24 | super(); |
25 | } | 25 | } |
26 | 26 | ||
27 | /** | 27 | /** |
28 | * <!-- begin-user-doc --> | 28 | * <!-- begin-user-doc --> |
29 | * <!-- end-user-doc --> | 29 | * <!-- end-user-doc --> |
30 | * @generated | 30 | * @generated |
31 | */ | 31 | */ |
32 | @Override | 32 | @Override |
33 | protected EClass eStaticClass() { | 33 | protected EClass eStaticClass() { |
34 | return CrossingScenarioPackage.Literals.SPATIAL_RELATION; | 34 | return CrossingScenarioPackage.Literals.SPATIAL_RELATION; |
35 | } | 35 | } |
36 | 36 | ||
37 | } //SpatialRelationImpl | 37 | } //SpatialRelationImpl |
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/impl/TemporalRelationImpl.java b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/TemporalRelationImpl.java index 7fc113b7..c4366543 100644 --- a/Domains/crossingScenario/ecore-gen/crossingScenario/impl/TemporalRelationImpl.java +++ b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/TemporalRelationImpl.java | |||
@@ -1,37 +1,37 @@ | |||
1 | /** | 1 | /** |
2 | */ | 2 | */ |
3 | package crossingScenario.impl; | 3 | package crossingScenario.impl; |
4 | 4 | ||
5 | import crossingScenario.CrossingScenarioPackage; | 5 | import crossingScenario.CrossingScenarioPackage; |
6 | import crossingScenario.TemporalRelation; | 6 | import crossingScenario.TemporalRelation; |
7 | 7 | ||
8 | import org.eclipse.emf.ecore.EClass; | 8 | import org.eclipse.emf.ecore.EClass; |
9 | 9 | ||
10 | /** | 10 | /** |
11 | * <!-- begin-user-doc --> | 11 | * <!-- begin-user-doc --> |
12 | * An implementation of the model object '<em><b>Temporal Relation</b></em>'. | 12 | * An implementation of the model object '<em><b>Temporal Relation</b></em>'. |
13 | * <!-- end-user-doc --> | 13 | * <!-- end-user-doc --> |
14 | * | 14 | * |
15 | * @generated | 15 | * @generated |
16 | */ | 16 | */ |
17 | public abstract class TemporalRelationImpl extends RelationImpl implements TemporalRelation { | 17 | public abstract class TemporalRelationImpl extends RelationImpl implements TemporalRelation { |
18 | /** | 18 | /** |
19 | * <!-- begin-user-doc --> | 19 | * <!-- begin-user-doc --> |
20 | * <!-- end-user-doc --> | 20 | * <!-- end-user-doc --> |
21 | * @generated | 21 | * @generated |
22 | */ | 22 | */ |
23 | protected TemporalRelationImpl() { | 23 | protected TemporalRelationImpl() { |
24 | super(); | 24 | super(); |
25 | } | 25 | } |
26 | 26 | ||
27 | /** | 27 | /** |
28 | * <!-- begin-user-doc --> | 28 | * <!-- begin-user-doc --> |
29 | * <!-- end-user-doc --> | 29 | * <!-- end-user-doc --> |
30 | * @generated | 30 | * @generated |
31 | */ | 31 | */ |
32 | @Override | 32 | @Override |
33 | protected EClass eStaticClass() { | 33 | protected EClass eStaticClass() { |
34 | return CrossingScenarioPackage.Literals.TEMPORAL_RELATION; | 34 | return CrossingScenarioPackage.Literals.TEMPORAL_RELATION; |
35 | } | 35 | } |
36 | 36 | ||
37 | } //TemporalRelationImpl | 37 | } //TemporalRelationImpl |
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/impl/VehicleImpl.java b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/VehicleImpl.java index 15f25fd5..b82de9be 100644 --- a/Domains/crossingScenario/ecore-gen/crossingScenario/impl/VehicleImpl.java +++ b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/VehicleImpl.java | |||
@@ -1,37 +1,37 @@ | |||
1 | /** | 1 | /** |
2 | */ | 2 | */ |
3 | package crossingScenario.impl; | 3 | package crossingScenario.impl; |
4 | 4 | ||
5 | import crossingScenario.CrossingScenarioPackage; | 5 | import crossingScenario.CrossingScenarioPackage; |
6 | import crossingScenario.Vehicle; | 6 | import crossingScenario.Vehicle; |
7 | 7 | ||
8 | import org.eclipse.emf.ecore.EClass; | 8 | import org.eclipse.emf.ecore.EClass; |
9 | 9 | ||
10 | /** | 10 | /** |
11 | * <!-- begin-user-doc --> | 11 | * <!-- begin-user-doc --> |
12 | * An implementation of the model object '<em><b>Vehicle</b></em>'. | 12 | * An implementation of the model object '<em><b>Vehicle</b></em>'. |
13 | * <!-- end-user-doc --> | 13 | * <!-- end-user-doc --> |
14 | * | 14 | * |
15 | * @generated | 15 | * @generated |
16 | */ | 16 | */ |
17 | public class VehicleImpl extends ActorImpl implements Vehicle { | 17 | public class VehicleImpl extends ActorImpl implements Vehicle { |
18 | /** | 18 | /** |
19 | * <!-- begin-user-doc --> | 19 | * <!-- begin-user-doc --> |
20 | * <!-- end-user-doc --> | 20 | * <!-- end-user-doc --> |
21 | * @generated | 21 | * @generated |
22 | */ | 22 | */ |
23 | protected VehicleImpl() { | 23 | protected VehicleImpl() { |
24 | super(); | 24 | super(); |
25 | } | 25 | } |
26 | 26 | ||
27 | /** | 27 | /** |
28 | * <!-- begin-user-doc --> | 28 | * <!-- begin-user-doc --> |
29 | * <!-- end-user-doc --> | 29 | * <!-- end-user-doc --> |
30 | * @generated | 30 | * @generated |
31 | */ | 31 | */ |
32 | @Override | 32 | @Override |
33 | protected EClass eStaticClass() { | 33 | protected EClass eStaticClass() { |
34 | return CrossingScenarioPackage.Literals.VEHICLE; | 34 | return CrossingScenarioPackage.Literals.VEHICLE; |
35 | } | 35 | } |
36 | 36 | ||
37 | } //VehicleImpl | 37 | } //VehicleImpl |
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/impl/VisionBlockedImpl.java b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/VisionBlockedImpl.java index 169cd57c..e5cb4004 100644 --- a/Domains/crossingScenario/ecore-gen/crossingScenario/impl/VisionBlockedImpl.java +++ b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/VisionBlockedImpl.java | |||
@@ -1,158 +1,158 @@ | |||
1 | /** | 1 | /** |
2 | */ | 2 | */ |
3 | package crossingScenario.impl; | 3 | package crossingScenario.impl; |
4 | 4 | ||
5 | import crossingScenario.Actor; | 5 | import crossingScenario.Actor; |
6 | import crossingScenario.CrossingScenarioPackage; | 6 | import crossingScenario.CrossingScenarioPackage; |
7 | import crossingScenario.VisionBlocked; | 7 | import crossingScenario.VisionBlocked; |
8 | 8 | ||
9 | import org.eclipse.emf.common.notify.Notification; | 9 | import org.eclipse.emf.common.notify.Notification; |
10 | 10 | ||
11 | import org.eclipse.emf.ecore.EClass; | 11 | import org.eclipse.emf.ecore.EClass; |
12 | import org.eclipse.emf.ecore.InternalEObject; | 12 | import org.eclipse.emf.ecore.InternalEObject; |
13 | 13 | ||
14 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | 14 | import org.eclipse.emf.ecore.impl.ENotificationImpl; |
15 | 15 | ||
16 | /** | 16 | /** |
17 | * <!-- begin-user-doc --> | 17 | * <!-- begin-user-doc --> |
18 | * An implementation of the model object '<em><b>Vision Blocked</b></em>'. | 18 | * An implementation of the model object '<em><b>Vision Blocked</b></em>'. |
19 | * <!-- end-user-doc --> | 19 | * <!-- end-user-doc --> |
20 | * <p> | 20 | * <p> |
21 | * The following features are implemented: | 21 | * The following features are implemented: |
22 | * </p> | 22 | * </p> |
23 | * <ul> | 23 | * <ul> |
24 | * <li>{@link crossingScenario.impl.VisionBlockedImpl#getBlockedBy <em>Blocked By</em>}</li> | 24 | * <li>{@link crossingScenario.impl.VisionBlockedImpl#getBlockedBy <em>Blocked By</em>}</li> |
25 | * </ul> | 25 | * </ul> |
26 | * | 26 | * |
27 | * @generated | 27 | * @generated |
28 | */ | 28 | */ |
29 | public class VisionBlockedImpl extends SpatialRelationImpl implements VisionBlocked { | 29 | public class VisionBlockedImpl extends SpatialRelationImpl implements VisionBlocked { |
30 | /** | 30 | /** |
31 | * The cached value of the '{@link #getBlockedBy() <em>Blocked By</em>}' reference. | 31 | * The cached value of the '{@link #getBlockedBy() <em>Blocked By</em>}' reference. |
32 | * <!-- begin-user-doc --> | 32 | * <!-- begin-user-doc --> |
33 | * <!-- end-user-doc --> | 33 | * <!-- end-user-doc --> |
34 | * @see #getBlockedBy() | 34 | * @see #getBlockedBy() |
35 | * @generated | 35 | * @generated |
36 | * @ordered | 36 | * @ordered |
37 | */ | 37 | */ |
38 | protected Actor blockedBy; | 38 | protected Actor blockedBy; |
39 | 39 | ||
40 | /** | 40 | /** |
41 | * <!-- begin-user-doc --> | 41 | * <!-- begin-user-doc --> |
42 | * <!-- end-user-doc --> | 42 | * <!-- end-user-doc --> |
43 | * @generated | 43 | * @generated |
44 | */ | 44 | */ |
45 | protected VisionBlockedImpl() { | 45 | protected VisionBlockedImpl() { |
46 | super(); | 46 | super(); |
47 | } | 47 | } |
48 | 48 | ||
49 | /** | 49 | /** |
50 | * <!-- begin-user-doc --> | 50 | * <!-- begin-user-doc --> |
51 | * <!-- end-user-doc --> | 51 | * <!-- end-user-doc --> |
52 | * @generated | 52 | * @generated |
53 | */ | 53 | */ |
54 | @Override | 54 | @Override |
55 | protected EClass eStaticClass() { | 55 | protected EClass eStaticClass() { |
56 | return CrossingScenarioPackage.Literals.VISION_BLOCKED; | 56 | return CrossingScenarioPackage.Literals.VISION_BLOCKED; |
57 | } | 57 | } |
58 | 58 | ||
59 | /** | 59 | /** |
60 | * <!-- begin-user-doc --> | 60 | * <!-- begin-user-doc --> |
61 | * <!-- end-user-doc --> | 61 | * <!-- end-user-doc --> |
62 | * @generated | 62 | * @generated |
63 | */ | 63 | */ |
64 | @Override | 64 | @Override |
65 | public Actor getBlockedBy() { | 65 | public Actor getBlockedBy() { |
66 | if (blockedBy != null && blockedBy.eIsProxy()) { | 66 | if (blockedBy != null && blockedBy.eIsProxy()) { |
67 | InternalEObject oldBlockedBy = (InternalEObject)blockedBy; | 67 | InternalEObject oldBlockedBy = (InternalEObject)blockedBy; |
68 | blockedBy = (Actor)eResolveProxy(oldBlockedBy); | 68 | blockedBy = (Actor)eResolveProxy(oldBlockedBy); |
69 | if (blockedBy != oldBlockedBy) { | 69 | if (blockedBy != oldBlockedBy) { |
70 | if (eNotificationRequired()) | 70 | if (eNotificationRequired()) |
71 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, CrossingScenarioPackage.VISION_BLOCKED__BLOCKED_BY, oldBlockedBy, blockedBy)); | 71 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, CrossingScenarioPackage.VISION_BLOCKED__BLOCKED_BY, oldBlockedBy, blockedBy)); |
72 | } | 72 | } |
73 | } | 73 | } |
74 | return blockedBy; | 74 | return blockedBy; |
75 | } | 75 | } |
76 | 76 | ||
77 | /** | 77 | /** |
78 | * <!-- begin-user-doc --> | 78 | * <!-- begin-user-doc --> |
79 | * <!-- end-user-doc --> | 79 | * <!-- end-user-doc --> |
80 | * @generated | 80 | * @generated |
81 | */ | 81 | */ |
82 | public Actor basicGetBlockedBy() { | 82 | public Actor basicGetBlockedBy() { |
83 | return blockedBy; | 83 | return blockedBy; |
84 | } | 84 | } |
85 | 85 | ||
86 | /** | 86 | /** |
87 | * <!-- begin-user-doc --> | 87 | * <!-- begin-user-doc --> |
88 | * <!-- end-user-doc --> | 88 | * <!-- end-user-doc --> |
89 | * @generated | 89 | * @generated |
90 | */ | 90 | */ |
91 | @Override | 91 | @Override |
92 | public void setBlockedBy(Actor newBlockedBy) { | 92 | public void setBlockedBy(Actor newBlockedBy) { |
93 | Actor oldBlockedBy = blockedBy; | 93 | Actor oldBlockedBy = blockedBy; |
94 | blockedBy = newBlockedBy; | 94 | blockedBy = newBlockedBy; |
95 | if (eNotificationRequired()) | 95 | if (eNotificationRequired()) |
96 | eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.VISION_BLOCKED__BLOCKED_BY, oldBlockedBy, blockedBy)); | 96 | eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.VISION_BLOCKED__BLOCKED_BY, oldBlockedBy, blockedBy)); |
97 | } | 97 | } |
98 | 98 | ||
99 | /** | 99 | /** |
100 | * <!-- begin-user-doc --> | 100 | * <!-- begin-user-doc --> |
101 | * <!-- end-user-doc --> | 101 | * <!-- end-user-doc --> |
102 | * @generated | 102 | * @generated |
103 | */ | 103 | */ |
104 | @Override | 104 | @Override |
105 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | 105 | public Object eGet(int featureID, boolean resolve, boolean coreType) { |
106 | switch (featureID) { | 106 | switch (featureID) { |
107 | case CrossingScenarioPackage.VISION_BLOCKED__BLOCKED_BY: | 107 | case CrossingScenarioPackage.VISION_BLOCKED__BLOCKED_BY: |
108 | if (resolve) return getBlockedBy(); | 108 | if (resolve) return getBlockedBy(); |
109 | return basicGetBlockedBy(); | 109 | return basicGetBlockedBy(); |
110 | } | 110 | } |
111 | return super.eGet(featureID, resolve, coreType); | 111 | return super.eGet(featureID, resolve, coreType); |
112 | } | 112 | } |
113 | 113 | ||
114 | /** | 114 | /** |
115 | * <!-- begin-user-doc --> | 115 | * <!-- begin-user-doc --> |
116 | * <!-- end-user-doc --> | 116 | * <!-- end-user-doc --> |
117 | * @generated | 117 | * @generated |
118 | */ | 118 | */ |
119 | @Override | 119 | @Override |
120 | public void eSet(int featureID, Object newValue) { | 120 | public void eSet(int featureID, Object newValue) { |
121 | switch (featureID) { | 121 | switch (featureID) { |
122 | case CrossingScenarioPackage.VISION_BLOCKED__BLOCKED_BY: | 122 | case CrossingScenarioPackage.VISION_BLOCKED__BLOCKED_BY: |
123 | setBlockedBy((Actor)newValue); | 123 | setBlockedBy((Actor)newValue); |
124 | return; | 124 | return; |
125 | } | 125 | } |
126 | super.eSet(featureID, newValue); | 126 | super.eSet(featureID, newValue); |
127 | } | 127 | } |
128 | 128 | ||
129 | /** | 129 | /** |
130 | * <!-- begin-user-doc --> | 130 | * <!-- begin-user-doc --> |
131 | * <!-- end-user-doc --> | 131 | * <!-- end-user-doc --> |
132 | * @generated | 132 | * @generated |
133 | */ | 133 | */ |
134 | @Override | 134 | @Override |
135 | public void eUnset(int featureID) { | 135 | public void eUnset(int featureID) { |
136 | switch (featureID) { | 136 | switch (featureID) { |
137 | case CrossingScenarioPackage.VISION_BLOCKED__BLOCKED_BY: | 137 | case CrossingScenarioPackage.VISION_BLOCKED__BLOCKED_BY: |
138 | setBlockedBy((Actor)null); | 138 | setBlockedBy((Actor)null); |
139 | return; | 139 | return; |
140 | } | 140 | } |
141 | super.eUnset(featureID); | 141 | super.eUnset(featureID); |
142 | } | 142 | } |
143 | 143 | ||
144 | /** | 144 | /** |
145 | * <!-- begin-user-doc --> | 145 | * <!-- begin-user-doc --> |
146 | * <!-- end-user-doc --> | 146 | * <!-- end-user-doc --> |
147 | * @generated | 147 | * @generated |
148 | */ | 148 | */ |
149 | @Override | 149 | @Override |
150 | public boolean eIsSet(int featureID) { | 150 | public boolean eIsSet(int featureID) { |
151 | switch (featureID) { | 151 | switch (featureID) { |
152 | case CrossingScenarioPackage.VISION_BLOCKED__BLOCKED_BY: | 152 | case CrossingScenarioPackage.VISION_BLOCKED__BLOCKED_BY: |
153 | return blockedBy != null; | 153 | return blockedBy != null; |
154 | } | 154 | } |
155 | return super.eIsSet(featureID); | 155 | return super.eIsSet(featureID); |
156 | } | 156 | } |
157 | 157 | ||
158 | } //VisionBlockedImpl | 158 | } //VisionBlockedImpl |
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/util/CrossingScenarioAdapterFactory.java b/Domains/crossingScenario/ecore-gen/crossingScenario/util/CrossingScenarioAdapterFactory.java index 129432db..b46b9e98 100644 --- a/Domains/crossingScenario/ecore-gen/crossingScenario/util/CrossingScenarioAdapterFactory.java +++ b/Domains/crossingScenario/ecore-gen/crossingScenario/util/CrossingScenarioAdapterFactory.java | |||
@@ -1,354 +1,318 @@ | |||
1 | /** | 1 | /** |
2 | */ | 2 | */ |
3 | package crossingScenario.util; | 3 | package crossingScenario.util; |
4 | 4 | ||
5 | import crossingScenario.*; | 5 | import crossingScenario.*; |
6 | 6 | ||
7 | import org.eclipse.emf.common.notify.Adapter; | 7 | import org.eclipse.emf.common.notify.Adapter; |
8 | import org.eclipse.emf.common.notify.Notifier; | 8 | import org.eclipse.emf.common.notify.Notifier; |
9 | 9 | ||
10 | import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; | 10 | import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; |
11 | 11 | ||
12 | import org.eclipse.emf.ecore.EObject; | 12 | import org.eclipse.emf.ecore.EObject; |
13 | 13 | ||
14 | /** | 14 | /** |
15 | * <!-- begin-user-doc --> | 15 | * <!-- begin-user-doc --> |
16 | * The <b>Adapter Factory</b> for the model. | 16 | * The <b>Adapter Factory</b> for the model. |
17 | * It provides an adapter <code>createXXX</code> method for each class of the model. | 17 | * It provides an adapter <code>createXXX</code> method for each class of the model. |
18 | * <!-- end-user-doc --> | 18 | * <!-- end-user-doc --> |
19 | * @see crossingScenario.CrossingScenarioPackage | 19 | * @see crossingScenario.CrossingScenarioPackage |
20 | * @generated | 20 | * @generated |
21 | */ | 21 | */ |
22 | public class CrossingScenarioAdapterFactory extends AdapterFactoryImpl { | 22 | public class CrossingScenarioAdapterFactory extends AdapterFactoryImpl { |
23 | /** | 23 | /** |
24 | * The cached model package. | 24 | * The cached model package. |
25 | * <!-- begin-user-doc --> | 25 | * <!-- begin-user-doc --> |
26 | * <!-- end-user-doc --> | 26 | * <!-- end-user-doc --> |
27 | * @generated | 27 | * @generated |
28 | */ | 28 | */ |
29 | protected static CrossingScenarioPackage modelPackage; | 29 | protected static CrossingScenarioPackage modelPackage; |
30 | 30 | ||
31 | /** | 31 | /** |
32 | * Creates an instance of the adapter factory. | 32 | * Creates an instance of the adapter factory. |
33 | * <!-- begin-user-doc --> | 33 | * <!-- begin-user-doc --> |
34 | * <!-- end-user-doc --> | 34 | * <!-- end-user-doc --> |
35 | * @generated | 35 | * @generated |
36 | */ | 36 | */ |
37 | public CrossingScenarioAdapterFactory() { | 37 | public CrossingScenarioAdapterFactory() { |
38 | if (modelPackage == null) { | 38 | if (modelPackage == null) { |
39 | modelPackage = CrossingScenarioPackage.eINSTANCE; | 39 | modelPackage = CrossingScenarioPackage.eINSTANCE; |
40 | } | 40 | } |
41 | } | 41 | } |
42 | 42 | ||
43 | /** | 43 | /** |
44 | * Returns whether this factory is applicable for the type of the object. | 44 | * Returns whether this factory is applicable for the type of the object. |
45 | * <!-- begin-user-doc --> | 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. | 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 --> | 47 | * <!-- end-user-doc --> |
48 | * @return whether this factory is applicable for the type of the object. | 48 | * @return whether this factory is applicable for the type of the object. |
49 | * @generated | 49 | * @generated |
50 | */ | 50 | */ |
51 | @Override | 51 | @Override |
52 | public boolean isFactoryForType(Object object) { | 52 | public boolean isFactoryForType(Object object) { |
53 | if (object == modelPackage) { | 53 | if (object == modelPackage) { |
54 | return true; | 54 | return true; |
55 | } | 55 | } |
56 | if (object instanceof EObject) { | 56 | if (object instanceof EObject) { |
57 | return ((EObject)object).eClass().getEPackage() == modelPackage; | 57 | return ((EObject)object).eClass().getEPackage() == modelPackage; |
58 | } | 58 | } |
59 | return false; | 59 | return false; |
60 | } | 60 | } |
61 | 61 | ||
62 | /** | 62 | /** |
63 | * The switch that delegates to the <code>createXXX</code> methods. | 63 | * The switch that delegates to the <code>createXXX</code> methods. |
64 | * <!-- begin-user-doc --> | 64 | * <!-- begin-user-doc --> |
65 | * <!-- end-user-doc --> | 65 | * <!-- end-user-doc --> |
66 | * @generated | 66 | * @generated |
67 | */ | 67 | */ |
68 | protected CrossingScenarioSwitch<Adapter> modelSwitch = | 68 | protected CrossingScenarioSwitch<Adapter> modelSwitch = |
69 | new CrossingScenarioSwitch<Adapter>() { | 69 | new CrossingScenarioSwitch<Adapter>() { |
70 | @Override | 70 | @Override |
71 | public Adapter caseCrossingScenario(CrossingScenario object) { | 71 | public Adapter caseCrossingScenario(CrossingScenario object) { |
72 | return createCrossingScenarioAdapter(); | 72 | return createCrossingScenarioAdapter(); |
73 | } | 73 | } |
74 | @Override | 74 | @Override |
75 | public Adapter caseLane(Lane object) { | 75 | public Adapter caseLane(Lane object) { |
76 | return createLaneAdapter(); | 76 | return createLaneAdapter(); |
77 | } | 77 | } |
78 | @Override | 78 | @Override |
79 | public Adapter caseActor(Actor object) { | 79 | public Adapter caseActor(Actor object) { |
80 | return createActorAdapter(); | 80 | return createActorAdapter(); |
81 | } | 81 | } |
82 | @Override | 82 | @Override |
83 | public Adapter caseRelation(Relation object) { | 83 | public Adapter caseRelation(Relation object) { |
84 | return createRelationAdapter(); | 84 | return createRelationAdapter(); |
85 | } | 85 | } |
86 | @Override | 86 | @Override |
87 | public Adapter caseSpatialRelation(SpatialRelation object) { | 87 | public Adapter caseSpatialRelation(SpatialRelation object) { |
88 | return createSpatialRelationAdapter(); | 88 | return createSpatialRelationAdapter(); |
89 | } | 89 | } |
90 | @Override | 90 | @Override |
91 | public Adapter caseTemporalRelation(TemporalRelation object) { | 91 | public Adapter caseTemporalRelation(TemporalRelation object) { |
92 | return createTemporalRelationAdapter(); | 92 | return createTemporalRelationAdapter(); |
93 | } | 93 | } |
94 | @Override | 94 | @Override |
95 | public Adapter caseVisionBlocked(VisionBlocked object) { | 95 | public Adapter caseVisionBlocked(VisionBlocked object) { |
96 | return createVisionBlockedAdapter(); | 96 | return createVisionBlockedAdapter(); |
97 | } | 97 | } |
98 | @Override | 98 | @Override |
99 | public Adapter caseSeparationDistance(SeparationDistance object) { | 99 | public Adapter caseCollisionExists(CollisionExists object) { |
100 | return createSeparationDistanceAdapter(); | 100 | return createCollisionExistsAdapter(); |
101 | } | 101 | } |
102 | @Override | 102 | @Override |
103 | public Adapter caseCollisionExists(CollisionExists object) { | 103 | public Adapter casePedestrian(Pedestrian object) { |
104 | return createCollisionExistsAdapter(); | 104 | return createPedestrianAdapter(); |
105 | } | 105 | } |
106 | @Override | 106 | @Override |
107 | public Adapter caseCollisionDoesNotExist(CollisionDoesNotExist object) { | 107 | public Adapter caseVehicle(Vehicle object) { |
108 | return createCollisionDoesNotExistAdapter(); | 108 | return createVehicleAdapter(); |
109 | } | 109 | } |
110 | @Override | 110 | @Override |
111 | public Adapter casePedestrian(Pedestrian object) { | 111 | public Adapter caseLane_Horizontal(Lane_Horizontal object) { |
112 | return createPedestrianAdapter(); | 112 | return createLane_HorizontalAdapter(); |
113 | } | 113 | } |
114 | @Override | 114 | @Override |
115 | public Adapter caseVehicle(Vehicle object) { | 115 | public Adapter caseLane_Vertical(Lane_Vertical object) { |
116 | return createVehicleAdapter(); | 116 | return createLane_VerticalAdapter(); |
117 | } | 117 | } |
118 | @Override | 118 | @Override |
119 | public Adapter caseLane_Horizontal(Lane_Horizontal object) { | 119 | public Adapter defaultCase(EObject object) { |
120 | return createLane_HorizontalAdapter(); | 120 | return createEObjectAdapter(); |
121 | } | 121 | } |
122 | @Override | 122 | }; |
123 | public Adapter caseLane_Vertical(Lane_Vertical object) { | 123 | |
124 | return createLane_VerticalAdapter(); | 124 | /** |
125 | } | 125 | * Creates an adapter for the <code>target</code>. |
126 | @Override | 126 | * <!-- begin-user-doc --> |
127 | public Adapter defaultCase(EObject object) { | 127 | * <!-- end-user-doc --> |
128 | return createEObjectAdapter(); | 128 | * @param target the object to adapt. |
129 | } | 129 | * @return the adapter for the <code>target</code>. |
130 | }; | 130 | * @generated |
131 | 131 | */ | |
132 | /** | 132 | @Override |
133 | * Creates an adapter for the <code>target</code>. | 133 | public Adapter createAdapter(Notifier target) { |
134 | * <!-- begin-user-doc --> | 134 | return modelSwitch.doSwitch((EObject)target); |
135 | * <!-- end-user-doc --> | 135 | } |
136 | * @param target the object to adapt. | 136 | |
137 | * @return the adapter for the <code>target</code>. | 137 | |
138 | * @generated | 138 | /** |
139 | */ | 139 | * Creates a new adapter for an object of class '{@link crossingScenario.CrossingScenario <em>Crossing Scenario</em>}'. |
140 | @Override | 140 | * <!-- begin-user-doc --> |
141 | public Adapter createAdapter(Notifier target) { | 141 | * This default implementation returns null so that we can easily ignore cases; |
142 | return modelSwitch.doSwitch((EObject)target); | 142 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
143 | } | 143 | * <!-- end-user-doc --> |
144 | 144 | * @return the new adapter. | |
145 | 145 | * @see crossingScenario.CrossingScenario | |
146 | /** | 146 | * @generated |
147 | * Creates a new adapter for an object of class '{@link crossingScenario.CrossingScenario <em>Crossing Scenario</em>}'. | 147 | */ |
148 | * <!-- begin-user-doc --> | 148 | public Adapter createCrossingScenarioAdapter() { |
149 | * This default implementation returns null so that we can easily ignore cases; | 149 | return null; |
150 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | 150 | } |
151 | * <!-- end-user-doc --> | 151 | |
152 | * @return the new adapter. | 152 | /** |
153 | * @see crossingScenario.CrossingScenario | 153 | * Creates a new adapter for an object of class '{@link crossingScenario.Lane <em>Lane</em>}'. |
154 | * @generated | 154 | * <!-- begin-user-doc --> |
155 | */ | 155 | * This default implementation returns null so that we can easily ignore cases; |
156 | public Adapter createCrossingScenarioAdapter() { | 156 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
157 | return null; | 157 | * <!-- end-user-doc --> |
158 | } | 158 | * @return the new adapter. |
159 | 159 | * @see crossingScenario.Lane | |
160 | /** | 160 | * @generated |
161 | * Creates a new adapter for an object of class '{@link crossingScenario.Lane <em>Lane</em>}'. | 161 | */ |
162 | * <!-- begin-user-doc --> | 162 | public Adapter createLaneAdapter() { |
163 | * This default implementation returns null so that we can easily ignore cases; | 163 | return null; |
164 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | 164 | } |
165 | * <!-- end-user-doc --> | 165 | |
166 | * @return the new adapter. | 166 | /** |
167 | * @see crossingScenario.Lane | 167 | * Creates a new adapter for an object of class '{@link crossingScenario.Actor <em>Actor</em>}'. |
168 | * @generated | 168 | * <!-- begin-user-doc --> |
169 | */ | 169 | * This default implementation returns null so that we can easily ignore cases; |
170 | public Adapter createLaneAdapter() { | 170 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
171 | return null; | 171 | * <!-- end-user-doc --> |
172 | } | 172 | * @return the new adapter. |
173 | 173 | * @see crossingScenario.Actor | |
174 | /** | 174 | * @generated |
175 | * Creates a new adapter for an object of class '{@link crossingScenario.Actor <em>Actor</em>}'. | 175 | */ |
176 | * <!-- begin-user-doc --> | 176 | public Adapter createActorAdapter() { |
177 | * This default implementation returns null so that we can easily ignore cases; | 177 | return null; |
178 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | 178 | } |
179 | * <!-- end-user-doc --> | 179 | |
180 | * @return the new adapter. | 180 | /** |
181 | * @see crossingScenario.Actor | 181 | * Creates a new adapter for an object of class '{@link crossingScenario.Relation <em>Relation</em>}'. |
182 | * @generated | 182 | * <!-- begin-user-doc --> |
183 | */ | 183 | * This default implementation returns null so that we can easily ignore cases; |
184 | public Adapter createActorAdapter() { | 184 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
185 | return null; | 185 | * <!-- end-user-doc --> |
186 | } | 186 | * @return the new adapter. |
187 | 187 | * @see crossingScenario.Relation | |
188 | /** | 188 | * @generated |
189 | * Creates a new adapter for an object of class '{@link crossingScenario.Relation <em>Relation</em>}'. | 189 | */ |
190 | * <!-- begin-user-doc --> | 190 | public Adapter createRelationAdapter() { |
191 | * This default implementation returns null so that we can easily ignore cases; | 191 | return null; |
192 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | 192 | } |
193 | * <!-- end-user-doc --> | 193 | |
194 | * @return the new adapter. | 194 | /** |
195 | * @see crossingScenario.Relation | 195 | * Creates a new adapter for an object of class '{@link crossingScenario.SpatialRelation <em>Spatial Relation</em>}'. |
196 | * @generated | 196 | * <!-- begin-user-doc --> |
197 | */ | 197 | * This default implementation returns null so that we can easily ignore cases; |
198 | public Adapter createRelationAdapter() { | 198 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
199 | return null; | 199 | * <!-- end-user-doc --> |
200 | } | 200 | * @return the new adapter. |
201 | 201 | * @see crossingScenario.SpatialRelation | |
202 | /** | 202 | * @generated |
203 | * Creates a new adapter for an object of class '{@link crossingScenario.SpatialRelation <em>Spatial Relation</em>}'. | 203 | */ |
204 | * <!-- begin-user-doc --> | 204 | public Adapter createSpatialRelationAdapter() { |
205 | * This default implementation returns null so that we can easily ignore cases; | 205 | return null; |
206 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | 206 | } |
207 | * <!-- end-user-doc --> | 207 | |
208 | * @return the new adapter. | 208 | /** |
209 | * @see crossingScenario.SpatialRelation | 209 | * Creates a new adapter for an object of class '{@link crossingScenario.TemporalRelation <em>Temporal Relation</em>}'. |
210 | * @generated | 210 | * <!-- begin-user-doc --> |
211 | */ | 211 | * This default implementation returns null so that we can easily ignore cases; |
212 | public Adapter createSpatialRelationAdapter() { | 212 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
213 | return null; | 213 | * <!-- end-user-doc --> |
214 | } | 214 | * @return the new adapter. |
215 | 215 | * @see crossingScenario.TemporalRelation | |
216 | /** | 216 | * @generated |
217 | * Creates a new adapter for an object of class '{@link crossingScenario.TemporalRelation <em>Temporal Relation</em>}'. | 217 | */ |
218 | * <!-- begin-user-doc --> | 218 | public Adapter createTemporalRelationAdapter() { |
219 | * This default implementation returns null so that we can easily ignore cases; | 219 | return null; |
220 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | 220 | } |
221 | * <!-- end-user-doc --> | 221 | |
222 | * @return the new adapter. | 222 | /** |
223 | * @see crossingScenario.TemporalRelation | 223 | * Creates a new adapter for an object of class '{@link crossingScenario.VisionBlocked <em>Vision Blocked</em>}'. |
224 | * @generated | 224 | * <!-- begin-user-doc --> |
225 | */ | 225 | * This default implementation returns null so that we can easily ignore cases; |
226 | public Adapter createTemporalRelationAdapter() { | 226 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
227 | return null; | 227 | * <!-- end-user-doc --> |
228 | } | 228 | * @return the new adapter. |
229 | 229 | * @see crossingScenario.VisionBlocked | |
230 | /** | 230 | * @generated |
231 | * Creates a new adapter for an object of class '{@link crossingScenario.VisionBlocked <em>Vision Blocked</em>}'. | 231 | */ |
232 | * <!-- begin-user-doc --> | 232 | public Adapter createVisionBlockedAdapter() { |
233 | * This default implementation returns null so that we can easily ignore cases; | 233 | return null; |
234 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | 234 | } |
235 | * <!-- end-user-doc --> | 235 | |
236 | * @return the new adapter. | 236 | /** |
237 | * @see crossingScenario.VisionBlocked | 237 | * Creates a new adapter for an object of class '{@link crossingScenario.CollisionExists <em>Collision Exists</em>}'. |
238 | * @generated | 238 | * <!-- begin-user-doc --> |
239 | */ | 239 | * This default implementation returns null so that we can easily ignore cases; |
240 | public Adapter createVisionBlockedAdapter() { | 240 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
241 | return null; | 241 | * <!-- end-user-doc --> |
242 | } | 242 | * @return the new adapter. |
243 | 243 | * @see crossingScenario.CollisionExists | |
244 | /** | 244 | * @generated |
245 | * Creates a new adapter for an object of class '{@link crossingScenario.SeparationDistance <em>Separation Distance</em>}'. | 245 | */ |
246 | * <!-- begin-user-doc --> | 246 | public Adapter createCollisionExistsAdapter() { |
247 | * This default implementation returns null so that we can easily ignore cases; | 247 | return null; |
248 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | 248 | } |
249 | * <!-- end-user-doc --> | 249 | |
250 | * @return the new adapter. | 250 | /** |
251 | * @see crossingScenario.SeparationDistance | 251 | * Creates a new adapter for an object of class '{@link crossingScenario.Pedestrian <em>Pedestrian</em>}'. |
252 | * @generated | 252 | * <!-- begin-user-doc --> |
253 | */ | 253 | * This default implementation returns null so that we can easily ignore cases; |
254 | public Adapter createSeparationDistanceAdapter() { | 254 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
255 | return null; | 255 | * <!-- end-user-doc --> |
256 | } | 256 | * @return the new adapter. |
257 | 257 | * @see crossingScenario.Pedestrian | |
258 | /** | 258 | * @generated |
259 | * Creates a new adapter for an object of class '{@link crossingScenario.CollisionExists <em>Collision Exists</em>}'. | 259 | */ |
260 | * <!-- begin-user-doc --> | 260 | public Adapter createPedestrianAdapter() { |
261 | * This default implementation returns null so that we can easily ignore cases; | 261 | return null; |
262 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | 262 | } |
263 | * <!-- end-user-doc --> | 263 | |
264 | * @return the new adapter. | 264 | /** |
265 | * @see crossingScenario.CollisionExists | 265 | * Creates a new adapter for an object of class '{@link crossingScenario.Vehicle <em>Vehicle</em>}'. |
266 | * @generated | 266 | * <!-- begin-user-doc --> |
267 | */ | 267 | * This default implementation returns null so that we can easily ignore cases; |
268 | public Adapter createCollisionExistsAdapter() { | 268 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
269 | return null; | 269 | * <!-- end-user-doc --> |
270 | } | 270 | * @return the new adapter. |
271 | 271 | * @see crossingScenario.Vehicle | |
272 | /** | 272 | * @generated |
273 | * Creates a new adapter for an object of class '{@link crossingScenario.CollisionDoesNotExist <em>Collision Does Not Exist</em>}'. | 273 | */ |
274 | * <!-- begin-user-doc --> | 274 | public Adapter createVehicleAdapter() { |
275 | * This default implementation returns null so that we can easily ignore cases; | 275 | return null; |
276 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | 276 | } |
277 | * <!-- end-user-doc --> | 277 | |
278 | * @return the new adapter. | 278 | /** |
279 | * @see crossingScenario.CollisionDoesNotExist | 279 | * Creates a new adapter for an object of class '{@link crossingScenario.Lane_Horizontal <em>Lane Horizontal</em>}'. |
280 | * @generated | 280 | * <!-- begin-user-doc --> |
281 | */ | 281 | * This default implementation returns null so that we can easily ignore cases; |
282 | public Adapter createCollisionDoesNotExistAdapter() { | 282 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
283 | return null; | 283 | * <!-- end-user-doc --> |
284 | } | 284 | * @return the new adapter. |
285 | 285 | * @see crossingScenario.Lane_Horizontal | |
286 | /** | 286 | * @generated |
287 | * Creates a new adapter for an object of class '{@link crossingScenario.Pedestrian <em>Pedestrian</em>}'. | 287 | */ |
288 | * <!-- begin-user-doc --> | 288 | public Adapter createLane_HorizontalAdapter() { |
289 | * This default implementation returns null so that we can easily ignore cases; | 289 | return null; |
290 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | 290 | } |
291 | * <!-- end-user-doc --> | 291 | |
292 | * @return the new adapter. | 292 | /** |
293 | * @see crossingScenario.Pedestrian | 293 | * Creates a new adapter for an object of class '{@link crossingScenario.Lane_Vertical <em>Lane Vertical</em>}'. |
294 | * @generated | 294 | * <!-- begin-user-doc --> |
295 | */ | 295 | * This default implementation returns null so that we can easily ignore cases; |
296 | public Adapter createPedestrianAdapter() { | 296 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
297 | return null; | 297 | * <!-- end-user-doc --> |
298 | } | 298 | * @return the new adapter. |
299 | 299 | * @see crossingScenario.Lane_Vertical | |
300 | /** | 300 | * @generated |
301 | * Creates a new adapter for an object of class '{@link crossingScenario.Vehicle <em>Vehicle</em>}'. | 301 | */ |
302 | * <!-- begin-user-doc --> | 302 | public Adapter createLane_VerticalAdapter() { |
303 | * This default implementation returns null so that we can easily ignore cases; | 303 | return null; |
304 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | 304 | } |
305 | * <!-- end-user-doc --> | 305 | |
306 | * @return the new adapter. | 306 | /** |
307 | * @see crossingScenario.Vehicle | 307 | * Creates a new adapter for the default case. |
308 | * @generated | 308 | * <!-- begin-user-doc --> |
309 | */ | 309 | * This default implementation returns null. |
310 | public Adapter createVehicleAdapter() { | 310 | * <!-- end-user-doc --> |
311 | return null; | 311 | * @return the new adapter. |
312 | } | 312 | * @generated |
313 | 313 | */ | |
314 | /** | 314 | public Adapter createEObjectAdapter() { |
315 | * Creates a new adapter for an object of class '{@link crossingScenario.Lane_Horizontal <em>Lane Horizontal</em>}'. | 315 | return null; |
316 | * <!-- begin-user-doc --> | 316 | } |
317 | * This default implementation returns null so that we can easily ignore cases; | 317 | |
318 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | 318 | } //CrossingScenarioAdapterFactory |
319 | * <!-- end-user-doc --> | ||
320 | * @return the new adapter. | ||
321 | * @see crossingScenario.Lane_Horizontal | ||
322 | * @generated | ||
323 | */ | ||
324 | public Adapter createLane_HorizontalAdapter() { | ||
325 | return null; | ||
326 | } | ||
327 | |||
328 | /** | ||
329 | * Creates a new adapter for an object of class '{@link crossingScenario.Lane_Vertical <em>Lane Vertical</em>}'. | ||
330 | * <!-- begin-user-doc --> | ||
331 | * This default implementation returns null so that we can easily ignore cases; | ||
332 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
333 | * <!-- end-user-doc --> | ||
334 | * @return the new adapter. | ||
335 | * @see crossingScenario.Lane_Vertical | ||
336 | * @generated | ||
337 | */ | ||
338 | public Adapter createLane_VerticalAdapter() { | ||
339 | return null; | ||
340 | } | ||
341 | |||
342 | /** | ||
343 | * Creates a new adapter for the default case. | ||
344 | * <!-- begin-user-doc --> | ||
345 | * This default implementation returns null. | ||
346 | * <!-- end-user-doc --> | ||
347 | * @return the new adapter. | ||
348 | * @generated | ||
349 | */ | ||
350 | public Adapter createEObjectAdapter() { | ||
351 | return null; | ||
352 | } | ||
353 | |||
354 | } //CrossingScenarioAdapterFactory | ||
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/util/CrossingScenarioSwitch.java b/Domains/crossingScenario/ecore-gen/crossingScenario/util/CrossingScenarioSwitch.java index e07b7693..3340d7b1 100644 --- a/Domains/crossingScenario/ecore-gen/crossingScenario/util/CrossingScenarioSwitch.java +++ b/Domains/crossingScenario/ecore-gen/crossingScenario/util/CrossingScenarioSwitch.java | |||
@@ -1,397 +1,351 @@ | |||
1 | /** | 1 | /** |
2 | */ | 2 | */ |
3 | package crossingScenario.util; | 3 | package crossingScenario.util; |
4 | 4 | ||
5 | import crossingScenario.*; | 5 | import crossingScenario.*; |
6 | 6 | ||
7 | import org.eclipse.emf.ecore.EObject; | 7 | import org.eclipse.emf.ecore.EObject; |
8 | import org.eclipse.emf.ecore.EPackage; | 8 | import org.eclipse.emf.ecore.EPackage; |
9 | 9 | ||
10 | import org.eclipse.emf.ecore.util.Switch; | 10 | import org.eclipse.emf.ecore.util.Switch; |
11 | 11 | ||
12 | /** | 12 | /** |
13 | * <!-- begin-user-doc --> | 13 | * <!-- begin-user-doc --> |
14 | * The <b>Switch</b> for the model's inheritance hierarchy. | 14 | * The <b>Switch</b> for the model's inheritance hierarchy. |
15 | * It supports the call {@link #doSwitch(EObject) doSwitch(object)} | 15 | * It supports the call {@link #doSwitch(EObject) doSwitch(object)} |
16 | * to invoke the <code>caseXXX</code> method for each class of the model, | 16 | * to invoke the <code>caseXXX</code> method for each class of the model, |
17 | * starting with the actual class of the object | 17 | * starting with the actual class of the object |
18 | * and proceeding up the inheritance hierarchy | 18 | * and proceeding up the inheritance hierarchy |
19 | * until a non-null result is returned, | 19 | * until a non-null result is returned, |
20 | * which is the result of the switch. | 20 | * which is the result of the switch. |
21 | * <!-- end-user-doc --> | 21 | * <!-- end-user-doc --> |
22 | * @see crossingScenario.CrossingScenarioPackage | 22 | * @see crossingScenario.CrossingScenarioPackage |
23 | * @generated | 23 | * @generated |
24 | */ | 24 | */ |
25 | public class CrossingScenarioSwitch<T> extends Switch<T> { | 25 | public class CrossingScenarioSwitch<T> extends Switch<T> { |
26 | /** | 26 | /** |
27 | * The cached model package | 27 | * The cached model package |
28 | * <!-- begin-user-doc --> | 28 | * <!-- begin-user-doc --> |
29 | * <!-- end-user-doc --> | 29 | * <!-- end-user-doc --> |
30 | * @generated | 30 | * @generated |
31 | */ | 31 | */ |
32 | protected static CrossingScenarioPackage modelPackage; | 32 | protected static CrossingScenarioPackage modelPackage; |
33 | 33 | ||
34 | /** | 34 | /** |
35 | * Creates an instance of the switch. | 35 | * Creates an instance of the switch. |
36 | * <!-- begin-user-doc --> | 36 | * <!-- begin-user-doc --> |
37 | * <!-- end-user-doc --> | 37 | * <!-- end-user-doc --> |
38 | * @generated | 38 | * @generated |
39 | */ | 39 | */ |
40 | public CrossingScenarioSwitch() { | 40 | public CrossingScenarioSwitch() { |
41 | if (modelPackage == null) { | 41 | if (modelPackage == null) { |
42 | modelPackage = CrossingScenarioPackage.eINSTANCE; | 42 | modelPackage = CrossingScenarioPackage.eINSTANCE; |
43 | } | 43 | } |
44 | } | 44 | } |
45 | 45 | ||
46 | /** | 46 | /** |
47 | * Checks whether this is a switch for the given package. | 47 | * Checks whether this is a switch for the given package. |
48 | * <!-- begin-user-doc --> | 48 | * <!-- begin-user-doc --> |
49 | * <!-- end-user-doc --> | 49 | * <!-- end-user-doc --> |
50 | * @param ePackage the package in question. | 50 | * @param ePackage the package in question. |
51 | * @return whether this is a switch for the given package. | 51 | * @return whether this is a switch for the given package. |
52 | * @generated | 52 | * @generated |
53 | */ | 53 | */ |
54 | @Override | 54 | @Override |
55 | protected boolean isSwitchFor(EPackage ePackage) { | 55 | protected boolean isSwitchFor(EPackage ePackage) { |
56 | return ePackage == modelPackage; | 56 | return ePackage == modelPackage; |
57 | } | 57 | } |
58 | 58 | ||
59 | /** | 59 | /** |
60 | * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. | 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 --> | 61 | * <!-- begin-user-doc --> |
62 | * <!-- end-user-doc --> | 62 | * <!-- end-user-doc --> |
63 | * @return the first non-null result returned by a <code>caseXXX</code> call. | 63 | * @return the first non-null result returned by a <code>caseXXX</code> call. |
64 | * @generated | 64 | * @generated |
65 | */ | 65 | */ |
66 | @Override | 66 | @Override |
67 | protected T doSwitch(int classifierID, EObject theEObject) { | 67 | protected T doSwitch(int classifierID, EObject theEObject) { |
68 | switch (classifierID) { | 68 | switch (classifierID) { |
69 | case CrossingScenarioPackage.CROSSING_SCENARIO: { | 69 | case CrossingScenarioPackage.CROSSING_SCENARIO: { |
70 | CrossingScenario crossingScenario = (CrossingScenario)theEObject; | 70 | CrossingScenario crossingScenario = (CrossingScenario)theEObject; |
71 | T result = caseCrossingScenario(crossingScenario); | 71 | T result = caseCrossingScenario(crossingScenario); |
72 | if (result == null) result = defaultCase(theEObject); | 72 | if (result == null) result = defaultCase(theEObject); |
73 | return result; | 73 | return result; |
74 | } | 74 | } |
75 | case CrossingScenarioPackage.LANE: { | 75 | case CrossingScenarioPackage.LANE: { |
76 | Lane lane = (Lane)theEObject; | 76 | Lane lane = (Lane)theEObject; |
77 | T result = caseLane(lane); | 77 | T result = caseLane(lane); |
78 | if (result == null) result = defaultCase(theEObject); | 78 | if (result == null) result = defaultCase(theEObject); |
79 | return result; | 79 | return result; |
80 | } | 80 | } |
81 | case CrossingScenarioPackage.ACTOR: { | 81 | case CrossingScenarioPackage.ACTOR: { |
82 | Actor actor = (Actor)theEObject; | 82 | Actor actor = (Actor)theEObject; |
83 | T result = caseActor(actor); | 83 | T result = caseActor(actor); |
84 | if (result == null) result = defaultCase(theEObject); | 84 | if (result == null) result = defaultCase(theEObject); |
85 | return result; | 85 | return result; |
86 | } | 86 | } |
87 | case CrossingScenarioPackage.RELATION: { | 87 | case CrossingScenarioPackage.RELATION: { |
88 | Relation relation = (Relation)theEObject; | 88 | Relation relation = (Relation)theEObject; |
89 | T result = caseRelation(relation); | 89 | T result = caseRelation(relation); |
90 | if (result == null) result = defaultCase(theEObject); | 90 | if (result == null) result = defaultCase(theEObject); |
91 | return result; | 91 | return result; |
92 | } | 92 | } |
93 | case CrossingScenarioPackage.SPATIAL_RELATION: { | 93 | case CrossingScenarioPackage.SPATIAL_RELATION: { |
94 | SpatialRelation spatialRelation = (SpatialRelation)theEObject; | 94 | SpatialRelation spatialRelation = (SpatialRelation)theEObject; |
95 | T result = caseSpatialRelation(spatialRelation); | 95 | T result = caseSpatialRelation(spatialRelation); |
96 | if (result == null) result = caseRelation(spatialRelation); | 96 | if (result == null) result = caseRelation(spatialRelation); |
97 | if (result == null) result = defaultCase(theEObject); | 97 | if (result == null) result = defaultCase(theEObject); |
98 | return result; | 98 | return result; |
99 | } | 99 | } |
100 | case CrossingScenarioPackage.TEMPORAL_RELATION: { | 100 | case CrossingScenarioPackage.TEMPORAL_RELATION: { |
101 | TemporalRelation temporalRelation = (TemporalRelation)theEObject; | 101 | TemporalRelation temporalRelation = (TemporalRelation)theEObject; |
102 | T result = caseTemporalRelation(temporalRelation); | 102 | T result = caseTemporalRelation(temporalRelation); |
103 | if (result == null) result = caseRelation(temporalRelation); | 103 | if (result == null) result = caseRelation(temporalRelation); |
104 | if (result == null) result = defaultCase(theEObject); | 104 | if (result == null) result = defaultCase(theEObject); |
105 | return result; | 105 | return result; |
106 | } | 106 | } |
107 | case CrossingScenarioPackage.VISION_BLOCKED: { | 107 | case CrossingScenarioPackage.VISION_BLOCKED: { |
108 | VisionBlocked visionBlocked = (VisionBlocked)theEObject; | 108 | VisionBlocked visionBlocked = (VisionBlocked)theEObject; |
109 | T result = caseVisionBlocked(visionBlocked); | 109 | T result = caseVisionBlocked(visionBlocked); |
110 | if (result == null) result = caseSpatialRelation(visionBlocked); | 110 | if (result == null) result = caseSpatialRelation(visionBlocked); |
111 | if (result == null) result = caseRelation(visionBlocked); | 111 | if (result == null) result = caseRelation(visionBlocked); |
112 | if (result == null) result = defaultCase(theEObject); | 112 | if (result == null) result = defaultCase(theEObject); |
113 | return result; | 113 | return result; |
114 | } | 114 | } |
115 | case CrossingScenarioPackage.SEPARATION_DISTANCE: { | 115 | case CrossingScenarioPackage.COLLISION_EXISTS: { |
116 | SeparationDistance separationDistance = (SeparationDistance)theEObject; | 116 | CollisionExists collisionExists = (CollisionExists)theEObject; |
117 | T result = caseSeparationDistance(separationDistance); | 117 | T result = caseCollisionExists(collisionExists); |
118 | if (result == null) result = caseSpatialRelation(separationDistance); | 118 | if (result == null) result = caseTemporalRelation(collisionExists); |
119 | if (result == null) result = caseRelation(separationDistance); | 119 | if (result == null) result = caseRelation(collisionExists); |
120 | if (result == null) result = defaultCase(theEObject); | 120 | if (result == null) result = defaultCase(theEObject); |
121 | return result; | 121 | return result; |
122 | } | 122 | } |
123 | case CrossingScenarioPackage.COLLISION_EXISTS: { | 123 | case CrossingScenarioPackage.PEDESTRIAN: { |
124 | CollisionExists collisionExists = (CollisionExists)theEObject; | 124 | Pedestrian pedestrian = (Pedestrian)theEObject; |
125 | T result = caseCollisionExists(collisionExists); | 125 | T result = casePedestrian(pedestrian); |
126 | if (result == null) result = caseTemporalRelation(collisionExists); | 126 | if (result == null) result = caseActor(pedestrian); |
127 | if (result == null) result = caseRelation(collisionExists); | 127 | if (result == null) result = defaultCase(theEObject); |
128 | if (result == null) result = defaultCase(theEObject); | 128 | return result; |
129 | return result; | 129 | } |
130 | } | 130 | case CrossingScenarioPackage.VEHICLE: { |
131 | case CrossingScenarioPackage.COLLISION_DOES_NOT_EXIST: { | 131 | Vehicle vehicle = (Vehicle)theEObject; |
132 | CollisionDoesNotExist collisionDoesNotExist = (CollisionDoesNotExist)theEObject; | 132 | T result = caseVehicle(vehicle); |
133 | T result = caseCollisionDoesNotExist(collisionDoesNotExist); | 133 | if (result == null) result = caseActor(vehicle); |
134 | if (result == null) result = caseTemporalRelation(collisionDoesNotExist); | 134 | if (result == null) result = defaultCase(theEObject); |
135 | if (result == null) result = caseRelation(collisionDoesNotExist); | 135 | return result; |
136 | if (result == null) result = defaultCase(theEObject); | 136 | } |
137 | return result; | 137 | case CrossingScenarioPackage.LANE_HORIZONTAL: { |
138 | } | 138 | Lane_Horizontal lane_Horizontal = (Lane_Horizontal)theEObject; |
139 | case CrossingScenarioPackage.PEDESTRIAN: { | 139 | T result = caseLane_Horizontal(lane_Horizontal); |
140 | Pedestrian pedestrian = (Pedestrian)theEObject; | 140 | if (result == null) result = caseLane(lane_Horizontal); |
141 | T result = casePedestrian(pedestrian); | 141 | if (result == null) result = defaultCase(theEObject); |
142 | if (result == null) result = caseActor(pedestrian); | 142 | return result; |
143 | if (result == null) result = defaultCase(theEObject); | 143 | } |
144 | return result; | 144 | case CrossingScenarioPackage.LANE_VERTICAL: { |
145 | } | 145 | Lane_Vertical lane_Vertical = (Lane_Vertical)theEObject; |
146 | case CrossingScenarioPackage.VEHICLE: { | 146 | T result = caseLane_Vertical(lane_Vertical); |
147 | Vehicle vehicle = (Vehicle)theEObject; | 147 | if (result == null) result = caseLane(lane_Vertical); |
148 | T result = caseVehicle(vehicle); | 148 | if (result == null) result = defaultCase(theEObject); |
149 | if (result == null) result = caseActor(vehicle); | 149 | return result; |
150 | if (result == null) result = defaultCase(theEObject); | 150 | } |
151 | return result; | 151 | default: return defaultCase(theEObject); |
152 | } | 152 | } |
153 | case CrossingScenarioPackage.LANE_HORIZONTAL: { | 153 | } |
154 | Lane_Horizontal lane_Horizontal = (Lane_Horizontal)theEObject; | 154 | |
155 | T result = caseLane_Horizontal(lane_Horizontal); | 155 | /** |
156 | if (result == null) result = caseLane(lane_Horizontal); | 156 | * Returns the result of interpreting the object as an instance of '<em>Crossing Scenario</em>'. |
157 | if (result == null) result = defaultCase(theEObject); | 157 | * <!-- begin-user-doc --> |
158 | return result; | 158 | * This implementation returns null; |
159 | } | 159 | * returning a non-null result will terminate the switch. |
160 | case CrossingScenarioPackage.LANE_VERTICAL: { | 160 | * <!-- end-user-doc --> |
161 | Lane_Vertical lane_Vertical = (Lane_Vertical)theEObject; | 161 | * @param object the target of the switch. |
162 | T result = caseLane_Vertical(lane_Vertical); | 162 | * @return the result of interpreting the object as an instance of '<em>Crossing Scenario</em>'. |
163 | if (result == null) result = caseLane(lane_Vertical); | 163 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
164 | if (result == null) result = defaultCase(theEObject); | 164 | * @generated |
165 | return result; | 165 | */ |
166 | } | 166 | public T caseCrossingScenario(CrossingScenario object) { |
167 | default: return defaultCase(theEObject); | 167 | return null; |
168 | } | 168 | } |
169 | } | 169 | |
170 | 170 | /** | |
171 | /** | 171 | * Returns the result of interpreting the object as an instance of '<em>Lane</em>'. |
172 | * Returns the result of interpreting the object as an instance of '<em>Crossing Scenario</em>'. | 172 | * <!-- begin-user-doc --> |
173 | * <!-- begin-user-doc --> | 173 | * This implementation returns null; |
174 | * This implementation returns null; | 174 | * returning a non-null result will terminate the switch. |
175 | * returning a non-null result will terminate the switch. | 175 | * <!-- end-user-doc --> |
176 | * <!-- end-user-doc --> | 176 | * @param object the target of the switch. |
177 | * @param object the target of the switch. | 177 | * @return the result of interpreting the object as an instance of '<em>Lane</em>'. |
178 | * @return the result of interpreting the object as an instance of '<em>Crossing Scenario</em>'. | 178 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
179 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | 179 | * @generated |
180 | * @generated | 180 | */ |
181 | */ | 181 | public T caseLane(Lane object) { |
182 | public T caseCrossingScenario(CrossingScenario object) { | 182 | return null; |
183 | return null; | 183 | } |
184 | } | 184 | |
185 | 185 | /** | |
186 | /** | 186 | * Returns the result of interpreting the object as an instance of '<em>Actor</em>'. |
187 | * Returns the result of interpreting the object as an instance of '<em>Lane</em>'. | 187 | * <!-- begin-user-doc --> |
188 | * <!-- begin-user-doc --> | 188 | * This implementation returns null; |
189 | * This implementation returns null; | 189 | * returning a non-null result will terminate the switch. |
190 | * returning a non-null result will terminate the switch. | 190 | * <!-- end-user-doc --> |
191 | * <!-- end-user-doc --> | 191 | * @param object the target of the switch. |
192 | * @param object the target of the switch. | 192 | * @return the result of interpreting the object as an instance of '<em>Actor</em>'. |
193 | * @return the result of interpreting the object as an instance of '<em>Lane</em>'. | 193 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
194 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | 194 | * @generated |
195 | * @generated | 195 | */ |
196 | */ | 196 | public T caseActor(Actor object) { |
197 | public T caseLane(Lane object) { | 197 | return null; |
198 | return null; | 198 | } |
199 | } | 199 | |
200 | 200 | /** | |
201 | /** | 201 | * Returns the result of interpreting the object as an instance of '<em>Relation</em>'. |
202 | * Returns the result of interpreting the object as an instance of '<em>Actor</em>'. | 202 | * <!-- begin-user-doc --> |
203 | * <!-- begin-user-doc --> | 203 | * This implementation returns null; |
204 | * This implementation returns null; | 204 | * returning a non-null result will terminate the switch. |
205 | * returning a non-null result will terminate the switch. | 205 | * <!-- end-user-doc --> |
206 | * <!-- end-user-doc --> | 206 | * @param object the target of the switch. |
207 | * @param object the target of the switch. | 207 | * @return the result of interpreting the object as an instance of '<em>Relation</em>'. |
208 | * @return the result of interpreting the object as an instance of '<em>Actor</em>'. | 208 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
209 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | 209 | * @generated |
210 | * @generated | 210 | */ |
211 | */ | 211 | public T caseRelation(Relation object) { |
212 | public T caseActor(Actor object) { | 212 | return null; |
213 | return null; | 213 | } |
214 | } | 214 | |
215 | 215 | /** | |
216 | /** | 216 | * Returns the result of interpreting the object as an instance of '<em>Spatial Relation</em>'. |
217 | * Returns the result of interpreting the object as an instance of '<em>Relation</em>'. | 217 | * <!-- begin-user-doc --> |
218 | * <!-- begin-user-doc --> | 218 | * This implementation returns null; |
219 | * This implementation returns null; | 219 | * returning a non-null result will terminate the switch. |
220 | * returning a non-null result will terminate the switch. | 220 | * <!-- end-user-doc --> |
221 | * <!-- end-user-doc --> | 221 | * @param object the target of the switch. |
222 | * @param object the target of the switch. | 222 | * @return the result of interpreting the object as an instance of '<em>Spatial Relation</em>'. |
223 | * @return the result of interpreting the object as an instance of '<em>Relation</em>'. | 223 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
224 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | 224 | * @generated |
225 | * @generated | 225 | */ |
226 | */ | 226 | public T caseSpatialRelation(SpatialRelation object) { |
227 | public T caseRelation(Relation object) { | 227 | return null; |
228 | return null; | 228 | } |
229 | } | 229 | |
230 | 230 | /** | |
231 | /** | 231 | * Returns the result of interpreting the object as an instance of '<em>Temporal Relation</em>'. |
232 | * Returns the result of interpreting the object as an instance of '<em>Spatial Relation</em>'. | 232 | * <!-- begin-user-doc --> |
233 | * <!-- begin-user-doc --> | 233 | * This implementation returns null; |
234 | * This implementation returns null; | 234 | * returning a non-null result will terminate the switch. |
235 | * returning a non-null result will terminate the switch. | 235 | * <!-- end-user-doc --> |
236 | * <!-- end-user-doc --> | 236 | * @param object the target of the switch. |
237 | * @param object the target of the switch. | 237 | * @return the result of interpreting the object as an instance of '<em>Temporal Relation</em>'. |
238 | * @return the result of interpreting the object as an instance of '<em>Spatial Relation</em>'. | 238 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
239 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | 239 | * @generated |
240 | * @generated | 240 | */ |
241 | */ | 241 | public T caseTemporalRelation(TemporalRelation object) { |
242 | public T caseSpatialRelation(SpatialRelation object) { | 242 | return null; |
243 | return null; | 243 | } |
244 | } | 244 | |
245 | 245 | /** | |
246 | /** | 246 | * Returns the result of interpreting the object as an instance of '<em>Vision Blocked</em>'. |
247 | * Returns the result of interpreting the object as an instance of '<em>Temporal Relation</em>'. | 247 | * <!-- begin-user-doc --> |
248 | * <!-- begin-user-doc --> | 248 | * This implementation returns null; |
249 | * This implementation returns null; | 249 | * returning a non-null result will terminate the switch. |
250 | * returning a non-null result will terminate the switch. | 250 | * <!-- end-user-doc --> |
251 | * <!-- end-user-doc --> | 251 | * @param object the target of the switch. |
252 | * @param object the target of the switch. | 252 | * @return the result of interpreting the object as an instance of '<em>Vision Blocked</em>'. |
253 | * @return the result of interpreting the object as an instance of '<em>Temporal Relation</em>'. | 253 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
254 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | 254 | * @generated |
255 | * @generated | 255 | */ |
256 | */ | 256 | public T caseVisionBlocked(VisionBlocked object) { |
257 | public T caseTemporalRelation(TemporalRelation object) { | 257 | return null; |
258 | return null; | 258 | } |
259 | } | 259 | |
260 | 260 | /** | |
261 | /** | 261 | * Returns the result of interpreting the object as an instance of '<em>Collision Exists</em>'. |
262 | * Returns the result of interpreting the object as an instance of '<em>Vision Blocked</em>'. | 262 | * <!-- begin-user-doc --> |
263 | * <!-- begin-user-doc --> | 263 | * This implementation returns null; |
264 | * This implementation returns null; | 264 | * returning a non-null result will terminate the switch. |
265 | * returning a non-null result will terminate the switch. | 265 | * <!-- end-user-doc --> |
266 | * <!-- end-user-doc --> | 266 | * @param object the target of the switch. |
267 | * @param object the target of the switch. | 267 | * @return the result of interpreting the object as an instance of '<em>Collision Exists</em>'. |
268 | * @return the result of interpreting the object as an instance of '<em>Vision Blocked</em>'. | 268 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
269 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | 269 | * @generated |
270 | * @generated | 270 | */ |
271 | */ | 271 | public T caseCollisionExists(CollisionExists object) { |
272 | public T caseVisionBlocked(VisionBlocked object) { | 272 | return null; |
273 | return null; | 273 | } |
274 | } | 274 | |
275 | 275 | /** | |
276 | /** | 276 | * Returns the result of interpreting the object as an instance of '<em>Pedestrian</em>'. |
277 | * Returns the result of interpreting the object as an instance of '<em>Separation Distance</em>'. | 277 | * <!-- begin-user-doc --> |
278 | * <!-- begin-user-doc --> | 278 | * This implementation returns null; |
279 | * This implementation returns null; | 279 | * returning a non-null result will terminate the switch. |
280 | * returning a non-null result will terminate the switch. | 280 | * <!-- end-user-doc --> |
281 | * <!-- end-user-doc --> | 281 | * @param object the target of the switch. |
282 | * @param object the target of the switch. | 282 | * @return the result of interpreting the object as an instance of '<em>Pedestrian</em>'. |
283 | * @return the result of interpreting the object as an instance of '<em>Separation Distance</em>'. | 283 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
284 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | 284 | * @generated |
285 | * @generated | 285 | */ |
286 | */ | 286 | public T casePedestrian(Pedestrian object) { |
287 | public T caseSeparationDistance(SeparationDistance object) { | 287 | return null; |
288 | return null; | 288 | } |
289 | } | 289 | |
290 | 290 | /** | |
291 | /** | 291 | * Returns the result of interpreting the object as an instance of '<em>Vehicle</em>'. |
292 | * Returns the result of interpreting the object as an instance of '<em>Collision Exists</em>'. | 292 | * <!-- begin-user-doc --> |
293 | * <!-- begin-user-doc --> | 293 | * This implementation returns null; |
294 | * This implementation returns null; | 294 | * returning a non-null result will terminate the switch. |
295 | * returning a non-null result will terminate the switch. | 295 | * <!-- end-user-doc --> |
296 | * <!-- end-user-doc --> | 296 | * @param object the target of the switch. |
297 | * @param object the target of the switch. | 297 | * @return the result of interpreting the object as an instance of '<em>Vehicle</em>'. |
298 | * @return the result of interpreting the object as an instance of '<em>Collision Exists</em>'. | 298 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
299 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | 299 | * @generated |
300 | * @generated | 300 | */ |
301 | */ | 301 | public T caseVehicle(Vehicle object) { |
302 | public T caseCollisionExists(CollisionExists object) { | 302 | return null; |
303 | return null; | 303 | } |
304 | } | 304 | |
305 | 305 | /** | |
306 | /** | 306 | * Returns the result of interpreting the object as an instance of '<em>Lane Horizontal</em>'. |
307 | * Returns the result of interpreting the object as an instance of '<em>Collision Does Not Exist</em>'. | 307 | * <!-- begin-user-doc --> |
308 | * <!-- begin-user-doc --> | 308 | * This implementation returns null; |
309 | * This implementation returns null; | 309 | * returning a non-null result will terminate the switch. |
310 | * returning a non-null result will terminate the switch. | 310 | * <!-- end-user-doc --> |
311 | * <!-- end-user-doc --> | 311 | * @param object the target of the switch. |
312 | * @param object the target of the switch. | 312 | * @return the result of interpreting the object as an instance of '<em>Lane Horizontal</em>'. |
313 | * @return the result of interpreting the object as an instance of '<em>Collision Does Not Exist</em>'. | 313 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
314 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | 314 | * @generated |
315 | * @generated | 315 | */ |
316 | */ | 316 | public T caseLane_Horizontal(Lane_Horizontal object) { |
317 | public T caseCollisionDoesNotExist(CollisionDoesNotExist object) { | 317 | return null; |
318 | return null; | 318 | } |
319 | } | 319 | |
320 | 320 | /** | |
321 | /** | 321 | * Returns the result of interpreting the object as an instance of '<em>Lane Vertical</em>'. |
322 | * Returns the result of interpreting the object as an instance of '<em>Pedestrian</em>'. | 322 | * <!-- begin-user-doc --> |
323 | * <!-- begin-user-doc --> | 323 | * This implementation returns null; |
324 | * This implementation returns null; | 324 | * returning a non-null result will terminate the switch. |
325 | * returning a non-null result will terminate the switch. | 325 | * <!-- end-user-doc --> |
326 | * <!-- end-user-doc --> | 326 | * @param object the target of the switch. |
327 | * @param object the target of the switch. | 327 | * @return the result of interpreting the object as an instance of '<em>Lane Vertical</em>'. |
328 | * @return the result of interpreting the object as an instance of '<em>Pedestrian</em>'. | 328 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
329 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | 329 | * @generated |
330 | * @generated | 330 | */ |
331 | */ | 331 | public T caseLane_Vertical(Lane_Vertical object) { |
332 | public T casePedestrian(Pedestrian object) { | 332 | return null; |
333 | return null; | 333 | } |
334 | } | 334 | |
335 | 335 | /** | |
336 | /** | 336 | * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. |
337 | * Returns the result of interpreting the object as an instance of '<em>Vehicle</em>'. | 337 | * <!-- begin-user-doc --> |
338 | * <!-- begin-user-doc --> | 338 | * This implementation returns null; |
339 | * This implementation returns null; | 339 | * returning a non-null result will terminate the switch, but this is the last case anyway. |
340 | * returning a non-null result will terminate the switch. | 340 | * <!-- end-user-doc --> |
341 | * <!-- end-user-doc --> | 341 | * @param object the target of the switch. |
342 | * @param object the target of the switch. | 342 | * @return the result of interpreting the object as an instance of '<em>EObject</em>'. |
343 | * @return the result of interpreting the object as an instance of '<em>Vehicle</em>'. | 343 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) |
344 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | 344 | * @generated |
345 | * @generated | 345 | */ |
346 | */ | 346 | @Override |
347 | public T caseVehicle(Vehicle object) { | 347 | public T defaultCase(EObject object) { |
348 | return null; | 348 | return null; |
349 | } | 349 | } |
350 | 350 | ||
351 | /** | 351 | } //CrossingScenarioSwitch |
352 | * Returns the result of interpreting the object as an instance of '<em>Lane Horizontal</em>'. | ||
353 | * <!-- begin-user-doc --> | ||
354 | * This implementation returns null; | ||
355 | * returning a non-null result will terminate the switch. | ||
356 | * <!-- end-user-doc --> | ||
357 | * @param object the target of the switch. | ||
358 | * @return the result of interpreting the object as an instance of '<em>Lane Horizontal</em>'. | ||
359 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
360 | * @generated | ||
361 | */ | ||
362 | public T caseLane_Horizontal(Lane_Horizontal object) { | ||
363 | return null; | ||
364 | } | ||
365 | |||
366 | /** | ||
367 | * Returns the result of interpreting the object as an instance of '<em>Lane Vertical</em>'. | ||
368 | * <!-- begin-user-doc --> | ||
369 | * This implementation returns null; | ||
370 | * returning a non-null result will terminate the switch. | ||
371 | * <!-- end-user-doc --> | ||
372 | * @param object the target of the switch. | ||
373 | * @return the result of interpreting the object as an instance of '<em>Lane Vertical</em>'. | ||
374 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
375 | * @generated | ||
376 | */ | ||
377 | public T caseLane_Vertical(Lane_Vertical object) { | ||
378 | return null; | ||
379 | } | ||
380 | |||
381 | /** | ||
382 | * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. | ||
383 | * <!-- begin-user-doc --> | ||
384 | * This implementation returns null; | ||
385 | * returning a non-null result will terminate the switch, but this is the last case anyway. | ||
386 | * <!-- end-user-doc --> | ||
387 | * @param object the target of the switch. | ||
388 | * @return the result of interpreting the object as an instance of '<em>EObject</em>'. | ||
389 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) | ||
390 | * @generated | ||
391 | */ | ||
392 | @Override | ||
393 | public T defaultCase(EObject object) { | ||
394 | return null; | ||
395 | } | ||
396 | |||
397 | } //CrossingScenarioSwitch | ||
diff --git a/Domains/crossingScenario/inputs/cSinit4x4.xmi b/Domains/crossingScenario/inputs/cSinit4x4.xmi index 24c29774..d0dc5705 100644 --- a/Domains/crossingScenario/inputs/cSinit4x4.xmi +++ b/Domains/crossingScenario/inputs/cSinit4x4.xmi | |||
@@ -10,6 +10,8 @@ | |||
10 | maxTime="60.0" | 10 | maxTime="60.0" |
11 | maxXSpeed="100.0" | 11 | maxXSpeed="100.0" |
12 | maxYSpeed="100.0"> | 12 | maxYSpeed="100.0"> |
13 | <actors xsi:type="crossingScenario:Pedestrian"/> | ||
14 | <actors xsi:type="crossingScenario:Vehicle"/> | ||
13 | <lanes xsi:type="crossingScenario:Lane_Horizontal"/> | 15 | <lanes xsi:type="crossingScenario:Lane_Horizontal"/> |
14 | <lanes xsi:type="crossingScenario:Lane_Horizontal" | 16 | <lanes xsi:type="crossingScenario:Lane_Horizontal" |
15 | referenceCoord="5.0"/> | 17 | referenceCoord="5.0"/> |
@@ -25,8 +27,12 @@ | |||
25 | <lanes xsi:type="crossingScenario:Lane_Vertical" | 27 | <lanes xsi:type="crossingScenario:Lane_Vertical" |
26 | referenceCoord="15.0"/> | 28 | referenceCoord="15.0"/> |
27 | <relations | 29 | <relations |
28 | xsi:type="crossingScenario:VisionBlocked"/> | ||
29 | <relations | ||
30 | xsi:type="crossingScenario:CollisionExists" | 30 | xsi:type="crossingScenario:CollisionExists" |
31 | target="//@actors.0" | ||
32 | source="//@actors.1" | ||
31 | collisionTime="-1.0"/> | 33 | collisionTime="-1.0"/> |
34 | <relations | ||
35 | xsi:type="crossingScenario:VisionBlocked" | ||
36 | target="//@actors.0" | ||
37 | source="//@actors.1"/> | ||
32 | </crossingScenario:CrossingScenario> | 38 | </crossingScenario:CrossingScenario> |
diff --git a/Domains/crossingScenario/inputs/crossingScenarioGen.vsconfig b/Domains/crossingScenario/inputs/crossingScenarioGen.vsconfig index 1d47952d..7d329d18 100644 --- a/Domains/crossingScenario/inputs/crossingScenarioGen.vsconfig +++ b/Domains/crossingScenario/inputs/crossingScenarioGen.vsconfig | |||
@@ -8,7 +8,7 @@ generate { | |||
8 | partial-model = { "inputs/cSinit4x4.xmi"} | 8 | partial-model = { "inputs/cSinit4x4.xmi"} |
9 | solver = ViatraSolver | 9 | solver = ViatraSolver |
10 | scope = { | 10 | scope = { |
11 | #node += 2..* | 11 | #node += 0..* |
12 | ,#<Lane> += 0 | 12 | ,#<Lane> += 0 |
13 | //,#<Actor> = 25..* | 13 | //,#<Actor> = 25..* |
14 | ,#<Relation> += 0 | 14 | ,#<Relation> += 0 |
@@ -23,7 +23,20 @@ generate { | |||
23 | log-level = none, | 23 | log-level = none, |
24 | "numeric-solver" = "dreal-local", | 24 | "numeric-solver" = "dreal-local", |
25 | "dreal-local-path" = "/home/models/dreal4/bazel-bin/dreal/dreal", | 25 | "dreal-local-path" = "/home/models/dreal4/bazel-bin/dreal/dreal", |
26 | "ignored-attributes" = "CollisionExists.collisionTime=*", | 26 | "ignored-attributes" = " |
27 | Pedestrian.xPos=*, | ||
28 | Pedestrian.yPos=*, | ||
29 | Pedestrian.length=*, | ||
30 | Pedestrian.width=*, | ||
31 | Pedestrian.xSpeed=*, | ||
32 | Pedestrian.ySpeed=*, | ||
33 | Vehicle.xPos=*, | ||
34 | Vehicle.yPos=*, | ||
35 | Vehicle.length=*, | ||
36 | Vehicle.width=*, | ||
37 | Vehicle.xSpeed=*, | ||
38 | Vehicle.ySpeed=*, | ||
39 | CollisionExists.collisionTime=*", | ||
27 | "scopePropagator" = "polyhedral"} | 40 | "scopePropagator" = "polyhedral"} |
28 | 41 | ||
29 | runs = 1 | 42 | runs = 1 |
diff --git a/Domains/crossingScenario/model/crossingScenario.aird b/Domains/crossingScenario/model/crossingScenario.aird index d4aa8c13..9e8a8708 100644 --- a/Domains/crossingScenario/model/crossingScenario.aird +++ b/Domains/crossingScenario/model/crossingScenario.aird | |||
@@ -5,7 +5,7 @@ | |||
5 | <semanticResources>crossingScenario.genmodel</semanticResources> | 5 | <semanticResources>crossingScenario.genmodel</semanticResources> |
6 | <ownedViews xmi:type="viewpoint:DView" uid="_LaDLgFZ_Eeugh9dythfu8g"> | 6 | <ownedViews xmi:type="viewpoint:DView" uid="_LaDLgFZ_Eeugh9dythfu8g"> |
7 | <viewpoint xmi:type="description:Viewpoint" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']"/> | 7 | <viewpoint xmi:type="description:Viewpoint" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']"/> |
8 | <ownedRepresentationDescriptors xmi:type="viewpoint:DRepresentationDescriptor" uid="_MXYWcFZ_Eeugh9dythfu8g" name="crossingScenario class diagram" repPath="#_MV4hoFZ_Eeugh9dythfu8g" changeId="d6fec7a7-9b74-467e-985e-6ef0d2deb4c9"> | 8 | <ownedRepresentationDescriptors xmi:type="viewpoint:DRepresentationDescriptor" uid="_MXYWcFZ_Eeugh9dythfu8g" name="crossingScenario class diagram" repPath="#_MV4hoFZ_Eeugh9dythfu8g" changeId="6b0177e2-48a8-4934-8359-8875b2422dd7"> |
9 | <description xmi:type="description_1:DiagramDescription" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']"/> | 9 | <description xmi:type="description_1:DiagramDescription" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']"/> |
10 | <target xmi:type="ecore:EPackage" href="crossingScenario.ecore#/"/> | 10 | <target xmi:type="ecore:EPackage" href="crossingScenario.ecore#/"/> |
11 | </ownedRepresentationDescriptors> | 11 | </ownedRepresentationDescriptors> |
@@ -172,19 +172,6 @@ | |||
172 | <styles xmi:type="notation:ShapeStyle" xmi:id="_NbvWdVZ_Eeugh9dythfu8g" fontName="Segoe UI" fontHeight="8"/> | 172 | <styles xmi:type="notation:ShapeStyle" xmi:id="_NbvWdVZ_Eeugh9dythfu8g" fontName="Segoe UI" fontHeight="8"/> |
173 | <layoutConstraint xmi:type="notation:Bounds" xmi:id="_NbvWdlZ_Eeugh9dythfu8g" x="550" y="367" width="102" height="39"/> | 173 | <layoutConstraint xmi:type="notation:Bounds" xmi:id="_NbvWdlZ_Eeugh9dythfu8g" x="550" y="367" width="102" height="39"/> |
174 | </children> | 174 | </children> |
175 | <children xmi:type="notation:Node" xmi:id="_Nbv9hFZ_Eeugh9dythfu8g" type="2003" element="_NaQIsFZ_Eeugh9dythfu8g"> | ||
176 | <children xmi:type="notation:Node" xmi:id="_NbwkkFZ_Eeugh9dythfu8g" type="5007"/> | ||
177 | <children xmi:type="notation:Node" xmi:id="_NbwkkVZ_Eeugh9dythfu8g" type="7004"> | ||
178 | <children xmi:type="notation:Node" xmi:id="_Nb8x01Z_Eeugh9dythfu8g" type="3010" element="_Na2loFZ_Eeugh9dythfu8g"> | ||
179 | <styles xmi:type="notation:FontStyle" xmi:id="_Nb8x1FZ_Eeugh9dythfu8g" fontName="Segoe UI" fontHeight="8" bold="true"/> | ||
180 | <layoutConstraint xmi:type="notation:Location" xmi:id="_Nb8x1VZ_Eeugh9dythfu8g"/> | ||
181 | </children> | ||
182 | <styles xmi:type="notation:SortingStyle" xmi:id="_NbwkklZ_Eeugh9dythfu8g"/> | ||
183 | <styles xmi:type="notation:FilteringStyle" xmi:id="_Nbwkk1Z_Eeugh9dythfu8g"/> | ||
184 | </children> | ||
185 | <styles xmi:type="notation:ShapeStyle" xmi:id="_Nbv9hVZ_Eeugh9dythfu8g" fontName="Segoe UI" fontHeight="8"/> | ||
186 | <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Nbv9hlZ_Eeugh9dythfu8g" x="550" y="420" height="51"/> | ||
187 | </children> | ||
188 | <children xmi:type="notation:Node" xmi:id="_NbxLoFZ_Eeugh9dythfu8g" type="2003" element="_NaRW0FZ_Eeugh9dythfu8g"> | 175 | <children xmi:type="notation:Node" xmi:id="_NbxLoFZ_Eeugh9dythfu8g" type="2003" element="_NaRW0FZ_Eeugh9dythfu8g"> |
189 | <children xmi:type="notation:Node" xmi:id="_NbxLo1Z_Eeugh9dythfu8g" type="5007"/> | 176 | <children xmi:type="notation:Node" xmi:id="_NbxLo1Z_Eeugh9dythfu8g" type="5007"/> |
190 | <children xmi:type="notation:Node" xmi:id="_NbxLpFZ_Eeugh9dythfu8g" type="7004"> | 177 | <children xmi:type="notation:Node" xmi:id="_NbxLpFZ_Eeugh9dythfu8g" type="7004"> |
@@ -198,36 +185,6 @@ | |||
198 | <styles xmi:type="notation:ShapeStyle" xmi:id="_NbxLoVZ_Eeugh9dythfu8g" fontName="Segoe UI" fontHeight="8"/> | 185 | <styles xmi:type="notation:ShapeStyle" xmi:id="_NbxLoVZ_Eeugh9dythfu8g" fontName="Segoe UI" fontHeight="8"/> |
199 | <layoutConstraint xmi:type="notation:Bounds" xmi:id="_NbxLolZ_Eeugh9dythfu8g" x="780" y="420" height="51"/> | 186 | <layoutConstraint xmi:type="notation:Bounds" xmi:id="_NbxLolZ_Eeugh9dythfu8g" x="780" y="420" height="51"/> |
200 | </children> | 187 | </children> |
201 | <children xmi:type="notation:Node" xmi:id="_NbxysFZ_Eeugh9dythfu8g" type="2003" element="_NaTMAFZ_Eeugh9dythfu8g"> | ||
202 | <children xmi:type="notation:Node" xmi:id="_NbyZwFZ_Eeugh9dythfu8g" type="5007"/> | ||
203 | <children xmi:type="notation:Node" xmi:id="_NbyZwVZ_Eeugh9dythfu8g" type="7004"> | ||
204 | <styles xmi:type="notation:SortingStyle" xmi:id="_NbyZwlZ_Eeugh9dythfu8g"/> | ||
205 | <styles xmi:type="notation:FilteringStyle" xmi:id="_NbyZw1Z_Eeugh9dythfu8g"/> | ||
206 | </children> | ||
207 | <styles xmi:type="notation:ShapeStyle" xmi:id="_NbxysVZ_Eeugh9dythfu8g" fontName="Segoe UI" fontHeight="8"/> | ||
208 | <layoutConstraint xmi:type="notation:Bounds" xmi:id="_NbxyslZ_Eeugh9dythfu8g" x="825" y="367" height="39"/> | ||
209 | </children> | ||
210 | <children xmi:type="notation:Node" xmi:id="_NbzA0FZ_Eeugh9dythfu8g" type="2003" element="_NaUaIFZ_Eeugh9dythfu8g"> | ||
211 | <children xmi:type="notation:Node" xmi:id="_Nbzn4FZ_Eeugh9dythfu8g" type="5007"/> | ||
212 | <children xmi:type="notation:Node" xmi:id="_Nbzn4VZ_Eeugh9dythfu8g" type="7004"> | ||
213 | <children xmi:type="notation:Node" xmi:id="_Nb9_8FZ_Eeugh9dythfu8g" type="3010" element="_Na7eIlZ_Eeugh9dythfu8g"> | ||
214 | <styles xmi:type="notation:FontStyle" xmi:id="_Nb9_8VZ_Eeugh9dythfu8g" fontName="Segoe UI" fontHeight="8"/> | ||
215 | <layoutConstraint xmi:type="notation:Location" xmi:id="_Nb9_8lZ_Eeugh9dythfu8g"/> | ||
216 | </children> | ||
217 | <children xmi:type="notation:Node" xmi:id="_Nb9_81Z_Eeugh9dythfu8g" type="3010" element="_Na8FMVZ_Eeugh9dythfu8g"> | ||
218 | <styles xmi:type="notation:FontStyle" xmi:id="_Nb9_9FZ_Eeugh9dythfu8g" fontName="Segoe UI" fontHeight="8"/> | ||
219 | <layoutConstraint xmi:type="notation:Location" xmi:id="_Nb9_9VZ_Eeugh9dythfu8g"/> | ||
220 | </children> | ||
221 | <children xmi:type="notation:Node" xmi:id="_Nb-nAFZ_Eeugh9dythfu8g" type="3010" element="_Na8sQFZ_Eeugh9dythfu8g"> | ||
222 | <styles xmi:type="notation:FontStyle" xmi:id="_Nb-nAVZ_Eeugh9dythfu8g" fontName="Segoe UI" fontHeight="8"/> | ||
223 | <layoutConstraint xmi:type="notation:Location" xmi:id="_Nb-nAlZ_Eeugh9dythfu8g"/> | ||
224 | </children> | ||
225 | <styles xmi:type="notation:SortingStyle" xmi:id="_Nbzn4lZ_Eeugh9dythfu8g"/> | ||
226 | <styles xmi:type="notation:FilteringStyle" xmi:id="_Nbzn41Z_Eeugh9dythfu8g"/> | ||
227 | </children> | ||
228 | <styles xmi:type="notation:ShapeStyle" xmi:id="_NbzA0VZ_Eeugh9dythfu8g" fontName="Segoe UI" fontHeight="8"/> | ||
229 | <layoutConstraint xmi:type="notation:Bounds" xmi:id="_NbzA0lZ_Eeugh9dythfu8g" x="775" y="27" width="74" height="86"/> | ||
230 | </children> | ||
231 | <children xmi:type="notation:Node" xmi:id="_Nbzn5FZ_Eeugh9dythfu8g" type="2003" element="_NaVoQFZ_Eeugh9dythfu8g"> | 188 | <children xmi:type="notation:Node" xmi:id="_Nbzn5FZ_Eeugh9dythfu8g" type="2003" element="_NaVoQFZ_Eeugh9dythfu8g"> |
232 | <children xmi:type="notation:Node" xmi:id="_Nb0O8FZ_Eeugh9dythfu8g" type="5007"/> | 189 | <children xmi:type="notation:Node" xmi:id="_Nb0O8FZ_Eeugh9dythfu8g" type="5007"/> |
233 | <children xmi:type="notation:Node" xmi:id="_Nb0O8VZ_Eeugh9dythfu8g" type="7004"> | 190 | <children xmi:type="notation:Node" xmi:id="_Nb0O8VZ_Eeugh9dythfu8g" type="7004"> |
@@ -321,21 +278,6 @@ | |||
321 | <element xsi:nil="true"/> | 278 | <element xsi:nil="true"/> |
322 | <layoutConstraint xmi:type="notation:Bounds" xmi:id="_xuFRtVaAEeugh9dythfu8g" x="612" y="492" width="346" height="48"/> | 279 | <layoutConstraint xmi:type="notation:Bounds" xmi:id="_xuFRtVaAEeugh9dythfu8g" x="612" y="492" width="346" height="48"/> |
323 | </children> | 280 | </children> |
324 | <children xmi:type="notation:Shape" xmi:id="_EC00YFaBEeugh9dythfu8g" type="Note" fontName="Segoe UI" description="Actor.CollisionDoesNotExist(a, b) implies that a and b NEVER collide. However, this is NOT A DOUBLE-IMPLICATION." fillColor="13369343" transparency="0" lineColor="6737151" lineWidth="1"> | ||
325 | <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_EC00YVaBEeugh9dythfu8g" source="specificStyles"> | ||
326 | <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_EC00YlaBEeugh9dythfu8g" key="verticalAlignment" value="8"/> | ||
327 | </eAnnotations> | ||
328 | <children xmi:type="notation:BasicDecorationNode" xmi:id="_EC1bcFaBEeugh9dythfu8g" type="DiagramName"> | ||
329 | <element xsi:nil="true"/> | ||
330 | </children> | ||
331 | <children xmi:type="notation:BasicDecorationNode" xmi:id="_EC2CgFaBEeugh9dythfu8g" type="Description"> | ||
332 | <element xsi:nil="true"/> | ||
333 | </children> | ||
334 | <styles xmi:type="notation:TextStyle" xmi:id="_EC00Y1aBEeugh9dythfu8g" textAlignment="Center"/> | ||
335 | <styles xmi:type="notation:LineTypeStyle" xmi:id="_EC00ZFaBEeugh9dythfu8g"/> | ||
336 | <element xsi:nil="true"/> | ||
337 | <layoutConstraint xmi:type="notation:Bounds" xmi:id="_EC00ZVaBEeugh9dythfu8g" x="825" y="132" width="133" height="120"/> | ||
338 | </children> | ||
339 | <children xmi:type="notation:Node" xmi:id="_d-EnIFh-Eeu-o58Hgezqgw" type="2003" element="_d9eKMFh-Eeu-o58Hgezqgw"> | 281 | <children xmi:type="notation:Node" xmi:id="_d-EnIFh-Eeu-o58Hgezqgw" type="2003" element="_d9eKMFh-Eeu-o58Hgezqgw"> |
340 | <children xmi:type="notation:Node" xmi:id="_d-GcUFh-Eeu-o58Hgezqgw" type="5007"/> | 282 | <children xmi:type="notation:Node" xmi:id="_d-GcUFh-Eeu-o58Hgezqgw" type="5007"/> |
341 | <children xmi:type="notation:Node" xmi:id="_d-HqcFh-Eeu-o58Hgezqgw" type="7004"> | 283 | <children xmi:type="notation:Node" xmi:id="_d-HqcFh-Eeu-o58Hgezqgw" type="7004"> |
@@ -399,6 +341,51 @@ | |||
399 | <element xsi:nil="true"/> | 341 | <element xsi:nil="true"/> |
400 | <layoutConstraint xmi:type="notation:Bounds" xmi:id="_NK7HhFtGEeuZZYOcQVw9qw" x="861" y="30" width="95" height="81"/> | 342 | <layoutConstraint xmi:type="notation:Bounds" xmi:id="_NK7HhFtGEeuZZYOcQVw9qw" x="861" y="30" width="95" height="81"/> |
401 | </children> | 343 | </children> |
344 | <children xmi:type="notation:Shape" xmi:id="_s1ap4F3kEeuzcvAx3jhFtw" type="Note" fontName="Cantarell" description="Class: SeperationDistance. Attribute:distance:Enum" fillColor="13369343" transparency="0" lineColor="6737151" lineWidth="1"> | ||
345 | <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_s1ap4V3kEeuzcvAx3jhFtw" source="specificStyles"> | ||
346 | <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_s1ap4l3kEeuzcvAx3jhFtw" key="verticalAlignment" value="8"/> | ||
347 | </eAnnotations> | ||
348 | <children xmi:type="notation:BasicDecorationNode" xmi:id="_s1b4AF3kEeuzcvAx3jhFtw" type="DiagramName"> | ||
349 | <element xsi:nil="true"/> | ||
350 | </children> | ||
351 | <children xmi:type="notation:BasicDecorationNode" xmi:id="_s1cfEF3kEeuzcvAx3jhFtw" type="Description"> | ||
352 | <element xsi:nil="true"/> | ||
353 | </children> | ||
354 | <styles xmi:type="notation:TextStyle" xmi:id="_s1ap413kEeuzcvAx3jhFtw" textAlignment="Center"/> | ||
355 | <styles xmi:type="notation:LineTypeStyle" xmi:id="_s1ap5F3kEeuzcvAx3jhFtw"/> | ||
356 | <element xsi:nil="true"/> | ||
357 | <layoutConstraint xmi:type="notation:Bounds" xmi:id="_s1ap5V3kEeuzcvAx3jhFtw" x="552" y="427" width="172"/> | ||
358 | </children> | ||
359 | <children xmi:type="notation:Shape" xmi:id="_4vnyEF3kEeuzcvAx3jhFtw" type="Note" fontName="Cantarell" description="EEnum Dist: D_Near, D_Med, D_Far" fillColor="10011046" transparency="0" lineColor="6737151" lineWidth="1"> | ||
360 | <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_4vnyEV3kEeuzcvAx3jhFtw" source="specificStyles"> | ||
361 | <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_4vnyEl3kEeuzcvAx3jhFtw" key="verticalAlignment" value="8"/> | ||
362 | </eAnnotations> | ||
363 | <children xmi:type="notation:BasicDecorationNode" xmi:id="_4vsqkF3kEeuzcvAx3jhFtw" type="DiagramName"> | ||
364 | <element xsi:nil="true"/> | ||
365 | </children> | ||
366 | <children xmi:type="notation:BasicDecorationNode" xmi:id="_4vsqkV3kEeuzcvAx3jhFtw" type="Description"> | ||
367 | <element xsi:nil="true"/> | ||
368 | </children> | ||
369 | <styles xmi:type="notation:TextStyle" xmi:id="_4vnyE13kEeuzcvAx3jhFtw" textAlignment="Center"/> | ||
370 | <styles xmi:type="notation:LineTypeStyle" xmi:id="_4vnyFF3kEeuzcvAx3jhFtw"/> | ||
371 | <element xsi:nil="true"/> | ||
372 | <layoutConstraint xmi:type="notation:Bounds" xmi:id="_4vnyFV3kEeuzcvAx3jhFtw" x="764" y="41" width="91" height="69"/> | ||
373 | </children> | ||
374 | <children xmi:type="notation:Shape" xmi:id="_EhD_0F3lEeuzcvAx3jhFtw" type="Note" fontName="Cantarell" description="Class: CollisionDoesNotExist" fillColor="13369343" transparency="0" lineColor="6737151" lineWidth="1"> | ||
375 | <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_EhD_0V3lEeuzcvAx3jhFtw" source="specificStyles"> | ||
376 | <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_EhD_0l3lEeuzcvAx3jhFtw" key="verticalAlignment" value="8"/> | ||
377 | </eAnnotations> | ||
378 | <children xmi:type="notation:BasicDecorationNode" xmi:id="_EhD_013lEeuzcvAx3jhFtw" type="DiagramName"> | ||
379 | <element xsi:nil="true"/> | ||
380 | </children> | ||
381 | <children xmi:type="notation:BasicDecorationNode" xmi:id="_EhD_1F3lEeuzcvAx3jhFtw" type="Description"> | ||
382 | <element xsi:nil="true"/> | ||
383 | </children> | ||
384 | <styles xmi:type="notation:TextStyle" xmi:id="_EhD_1V3lEeuzcvAx3jhFtw" textAlignment="Center"/> | ||
385 | <styles xmi:type="notation:LineTypeStyle" xmi:id="_EhD_1l3lEeuzcvAx3jhFtw"/> | ||
386 | <element xsi:nil="true"/> | ||
387 | <layoutConstraint xmi:type="notation:Bounds" xmi:id="_EhD_113lEeuzcvAx3jhFtw" x="811" y="364" width="137" height="46"/> | ||
388 | </children> | ||
402 | <styles xmi:type="notation:DiagramStyle" xmi:id="_MYg-4lZ_Eeugh9dythfu8g"/> | 389 | <styles xmi:type="notation:DiagramStyle" xmi:id="_MYg-4lZ_Eeugh9dythfu8g"/> |
403 | <edges xmi:type="notation:Edge" xmi:id="_NcAcMFZ_Eeugh9dythfu8g" type="4001" element="_NbAWoFZ_Eeugh9dythfu8g" source="_Nbk-YFZ_Eeugh9dythfu8g" target="_Nbp241Z_Eeugh9dythfu8g"> | 390 | <edges xmi:type="notation:Edge" xmi:id="_NcAcMFZ_Eeugh9dythfu8g" type="4001" element="_NbAWoFZ_Eeugh9dythfu8g" source="_Nbk-YFZ_Eeugh9dythfu8g" target="_Nbp241Z_Eeugh9dythfu8g"> |
404 | <children xmi:type="notation:Node" xmi:id="_NcBqUFZ_Eeugh9dythfu8g" type="6001"> | 391 | <children xmi:type="notation:Node" xmi:id="_NcBqUFZ_Eeugh9dythfu8g" type="6001"> |
@@ -512,22 +499,6 @@ | |||
512 | <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_NcYPoFZ_Eeugh9dythfu8g" id="(0.597609561752988,0.0)"/> | 499 | <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_NcYPoFZ_Eeugh9dythfu8g" id="(0.597609561752988,0.0)"/> |
513 | <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_NcYPoVZ_Eeugh9dythfu8g" id="(0.5084745762711864,2.6486486486486487)"/> | 500 | <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_NcYPoVZ_Eeugh9dythfu8g" id="(0.5084745762711864,2.6486486486486487)"/> |
514 | </edges> | 501 | </edges> |
515 | <edges xmi:type="notation:Edge" xmi:id="_NcYPolZ_Eeugh9dythfu8g" type="4001" element="_NbPnNlZ_Eeugh9dythfu8g" source="_Nbv9hFZ_Eeugh9dythfu8g" target="_Nbs6MFZ_Eeugh9dythfu8g"> | ||
516 | <children xmi:type="notation:Node" xmi:id="_NcY2sFZ_Eeugh9dythfu8g" type="6001"> | ||
517 | <layoutConstraint xmi:type="notation:Bounds" xmi:id="_NcY2sVZ_Eeugh9dythfu8g" y="-10"/> | ||
518 | </children> | ||
519 | <children xmi:type="notation:Node" xmi:id="_NcY2slZ_Eeugh9dythfu8g" type="6002"> | ||
520 | <layoutConstraint xmi:type="notation:Bounds" xmi:id="_NcY2s1Z_Eeugh9dythfu8g" y="10"/> | ||
521 | </children> | ||
522 | <children xmi:type="notation:Node" xmi:id="_NcZdwFZ_Eeugh9dythfu8g" type="6003"> | ||
523 | <layoutConstraint xmi:type="notation:Bounds" xmi:id="_NcZdwVZ_Eeugh9dythfu8g" y="10"/> | ||
524 | </children> | ||
525 | <styles xmi:type="notation:ConnectorStyle" xmi:id="_NcYPo1Z_Eeugh9dythfu8g" routing="Tree"/> | ||
526 | <styles xmi:type="notation:FontStyle" xmi:id="_NcYPpFZ_Eeugh9dythfu8g" fontName="Segoe UI" fontHeight="8"/> | ||
527 | <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_NcYPpVZ_Eeugh9dythfu8g" points="[-1, 0, 202, 60]$[-204, -60, -1, 0]"/> | ||
528 | <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_NcZdwlZ_Eeugh9dythfu8g" id="(0.8841463414634146,0.061224489795918366)"/> | ||
529 | <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_NcZdw1Z_Eeugh9dythfu8g" id="(0.5084745762711864,2.6486486486486487)"/> | ||
530 | </edges> | ||
531 | <edges xmi:type="notation:Edge" xmi:id="_NcZdxFZ_Eeugh9dythfu8g" type="4001" element="_NbRcYFZ_Eeugh9dythfu8g" source="_NbxLoFZ_Eeugh9dythfu8g" target="_NbuvYFZ_Eeugh9dythfu8g"> | 502 | <edges xmi:type="notation:Edge" xmi:id="_NcZdxFZ_Eeugh9dythfu8g" type="4001" element="_NbRcYFZ_Eeugh9dythfu8g" source="_NbxLoFZ_Eeugh9dythfu8g" target="_NbuvYFZ_Eeugh9dythfu8g"> |
532 | <children xmi:type="notation:Node" xmi:id="_NcaE0FZ_Eeugh9dythfu8g" type="6001"> | 503 | <children xmi:type="notation:Node" xmi:id="_NcaE0FZ_Eeugh9dythfu8g" type="6001"> |
533 | <layoutConstraint xmi:type="notation:Bounds" xmi:id="_NcaE0VZ_Eeugh9dythfu8g" y="-10"/> | 504 | <layoutConstraint xmi:type="notation:Bounds" xmi:id="_NcaE0VZ_Eeugh9dythfu8g" y="-10"/> |
@@ -544,22 +515,6 @@ | |||
544 | <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Ncar4FZ_Eeugh9dythfu8g" id="(0.12849162011173185,0.0)"/> | 515 | <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Ncar4FZ_Eeugh9dythfu8g" id="(0.12849162011173185,0.0)"/> |
545 | <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Ncar4VZ_Eeugh9dythfu8g" id="(0.5084745762711864,2.6486486486486487)"/> | 516 | <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Ncar4VZ_Eeugh9dythfu8g" id="(0.5084745762711864,2.6486486486486487)"/> |
546 | </edges> | 517 | </edges> |
547 | <edges xmi:type="notation:Edge" xmi:id="_Ncar4lZ_Eeugh9dythfu8g" type="4001" element="_NbSDdlZ_Eeugh9dythfu8g" source="_NbxysFZ_Eeugh9dythfu8g" target="_NbuvYFZ_Eeugh9dythfu8g"> | ||
548 | <children xmi:type="notation:Node" xmi:id="_Ncar5lZ_Eeugh9dythfu8g" type="6001"> | ||
549 | <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Ncar51Z_Eeugh9dythfu8g" y="-10"/> | ||
550 | </children> | ||
551 | <children xmi:type="notation:Node" xmi:id="_NcbS8FZ_Eeugh9dythfu8g" type="6002"> | ||
552 | <layoutConstraint xmi:type="notation:Bounds" xmi:id="_NcbS8VZ_Eeugh9dythfu8g" y="10"/> | ||
553 | </children> | ||
554 | <children xmi:type="notation:Node" xmi:id="_NcbS8lZ_Eeugh9dythfu8g" type="6003"> | ||
555 | <layoutConstraint xmi:type="notation:Bounds" xmi:id="_NcbS81Z_Eeugh9dythfu8g" y="10"/> | ||
556 | </children> | ||
557 | <styles xmi:type="notation:ConnectorStyle" xmi:id="_Ncar41Z_Eeugh9dythfu8g" routing="Tree"/> | ||
558 | <styles xmi:type="notation:FontStyle" xmi:id="_Ncar5FZ_Eeugh9dythfu8g" fontName="Segoe UI" fontHeight="8"/> | ||
559 | <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_Ncar5VZ_Eeugh9dythfu8g" points="[-1, 0, 218, 60]$[-220, -60, -1, 0]"/> | ||
560 | <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_NcbS9FZ_Eeugh9dythfu8g" id="(0.5074626865671642,0.0)"/> | ||
561 | <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_NcbS9VZ_Eeugh9dythfu8g" id="(0.5084745762711864,2.6486486486486487)"/> | ||
562 | </edges> | ||
563 | <edges xmi:type="notation:Edge" xmi:id="_NcbS9lZ_Eeugh9dythfu8g" type="4001" element="_NbTRkFZ_Eeugh9dythfu8g" source="_Nbzn5FZ_Eeugh9dythfu8g" target="_Nbp241Z_Eeugh9dythfu8g"> | 518 | <edges xmi:type="notation:Edge" xmi:id="_NcbS9lZ_Eeugh9dythfu8g" type="4001" element="_NbTRkFZ_Eeugh9dythfu8g" source="_Nbzn5FZ_Eeugh9dythfu8g" target="_Nbp241Z_Eeugh9dythfu8g"> |
564 | <children xmi:type="notation:Node" xmi:id="_Ncb6AFZ_Eeugh9dythfu8g" type="6001"> | 519 | <children xmi:type="notation:Node" xmi:id="_Ncb6AFZ_Eeugh9dythfu8g" type="6001"> |
565 | <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Ncb6AVZ_Eeugh9dythfu8g" y="-10"/> | 520 | <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Ncb6AVZ_Eeugh9dythfu8g" y="-10"/> |
@@ -648,14 +603,6 @@ | |||
648 | <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_CqAK0FaCEeugh9dythfu8g" id="(0.4860335195530726,0.9183673469387755)"/> | 603 | <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_CqAK0FaCEeugh9dythfu8g" id="(0.4860335195530726,0.9183673469387755)"/> |
649 | <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_CqAK0VaCEeugh9dythfu8g" id="(0.5443786982248521,0.07291666666666667)"/> | 604 | <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_CqAK0VaCEeugh9dythfu8g" id="(0.5443786982248521,0.07291666666666667)"/> |
650 | </edges> | 605 | </edges> |
651 | <edges xmi:type="notation:Connector" xmi:id="_DNDNgFaCEeugh9dythfu8g" type="NoteAttachment" source="_NbxysFZ_Eeugh9dythfu8g" target="_EC00YFaBEeugh9dythfu8g" lineWidth="1"> | ||
652 | <styles xmi:type="notation:ArrowStyle" xmi:id="_DNDNgVaCEeugh9dythfu8g"/> | ||
653 | <styles xmi:type="notation:LineTypeStyle" xmi:id="_DNDNglaCEeugh9dythfu8g"/> | ||
654 | <element xsi:nil="true"/> | ||
655 | <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_DNDNg1aCEeugh9dythfu8g" points="[0, -1, -40, 151]$[36, -140, -4, 12]"/> | ||
656 | <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_DNFpwFaCEeugh9dythfu8g" id="(0.8134328358208955,0.02564102564102564)"/> | ||
657 | <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_DNFpwVaCEeugh9dythfu8g" id="(0.8764705882352941,0.875)"/> | ||
658 | </edges> | ||
659 | <edges xmi:type="notation:Edge" xmi:id="_sbmAoFh-Eeu-o58Hgezqgw" type="4001" element="_sbU64Fh-Eeu-o58Hgezqgw" source="_iaquQFh-Eeu-o58Hgezqgw" target="_NbmzkFZ_Eeugh9dythfu8g"> | 606 | <edges xmi:type="notation:Edge" xmi:id="_sbmAoFh-Eeu-o58Hgezqgw" type="4001" element="_sbU64Fh-Eeu-o58Hgezqgw" source="_iaquQFh-Eeu-o58Hgezqgw" target="_NbmzkFZ_Eeugh9dythfu8g"> |
660 | <children xmi:type="notation:Node" xmi:id="_sbmnsFh-Eeu-o58Hgezqgw" type="6001"> | 607 | <children xmi:type="notation:Node" xmi:id="_sbmnsFh-Eeu-o58Hgezqgw" type="6001"> |
661 | <layoutConstraint xmi:type="notation:Bounds" xmi:id="_sbmnsVh-Eeu-o58Hgezqgw" y="-10"/> | 608 | <layoutConstraint xmi:type="notation:Bounds" xmi:id="_sbmnsVh-Eeu-o58Hgezqgw" y="-10"/> |
@@ -792,6 +739,22 @@ | |||
792 | <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_zbrOOltdEeuZZYOcQVw9qw" id="(0.06779661016949153,0.3076923076923077)"/> | 739 | <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_zbrOOltdEeuZZYOcQVw9qw" id="(0.06779661016949153,0.3076923076923077)"/> |
793 | <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_zbrOO1tdEeuZZYOcQVw9qw" id="(0.935251798561151,0.296)"/> | 740 | <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_zbrOO1tdEeuZZYOcQVw9qw" id="(0.935251798561151,0.296)"/> |
794 | </edges> | 741 | </edges> |
742 | <edges xmi:type="notation:Connector" xmi:id="_1BiWwF3kEeuzcvAx3jhFtw" type="NoteAttachment" source="_s1ap4F3kEeuzcvAx3jhFtw" target="_Nbs6MFZ_Eeugh9dythfu8g" lineWidth="1"> | ||
743 | <styles xmi:type="notation:ArrowStyle" xmi:id="_1BiWwV3kEeuzcvAx3jhFtw"/> | ||
744 | <styles xmi:type="notation:LineTypeStyle" xmi:id="_1BiWwl3kEeuzcvAx3jhFtw"/> | ||
745 | <element xsi:nil="true"/> | ||
746 | <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_1BiWw13kEeuzcvAx3jhFtw" points="[6, -10, 0, 103]$[25, -109, 19, 4]"/> | ||
747 | <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_1BvyIF3kEeuzcvAx3jhFtw" id="(0.8895348837209303,0.17857142857142858)"/> | ||
748 | <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_1BvyIV3kEeuzcvAx3jhFtw" id="(0.8389830508474576,0.7435897435897436)"/> | ||
749 | </edges> | ||
750 | <edges xmi:type="notation:Connector" xmi:id="_M3amwF3lEeuzcvAx3jhFtw" type="NoteAttachment" source="_EhD_0F3lEeuzcvAx3jhFtw" target="_NbuvYFZ_Eeugh9dythfu8g" lineWidth="1"> | ||
751 | <styles xmi:type="notation:ArrowStyle" xmi:id="_M3amwV3lEeuzcvAx3jhFtw"/> | ||
752 | <styles xmi:type="notation:LineTypeStyle" xmi:id="_M3amwl3lEeuzcvAx3jhFtw"/> | ||
753 | <element xsi:nil="true"/> | ||
754 | <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_M3amw13lEeuzcvAx3jhFtw" points="[2, -3, 0, 44]$[20, -45, 18, 2]"/> | ||
755 | <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_M3e4MF3lEeuzcvAx3jhFtw" id="(0.7153284671532847,0.06521739130434782)"/> | ||
756 | <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_M3e4MV3lEeuzcvAx3jhFtw" id="(0.847457627118644,0.6410256410256411)"/> | ||
757 | </edges> | ||
795 | </data> | 758 | </data> |
796 | </ownedAnnotationEntries> | 759 | </ownedAnnotationEntries> |
797 | <ownedDiagramElements xmi:type="diagram:DNodeList" uid="_NZ9NwFZ_Eeugh9dythfu8g" name="CrossingScenario" tooltipText="" outgoingEdges="_NbAWoFZ_Eeugh9dythfu8g _NbCL0FZ_Eeugh9dythfu8g _tociw1tGEeuZZYOcQVw9qw" width="12" height="10"> | 760 | <ownedDiagramElements xmi:type="diagram:DNodeList" uid="_NZ9NwFZ_Eeugh9dythfu8g" name="CrossingScenario" tooltipText="" outgoingEdges="_NbAWoFZ_Eeugh9dythfu8g _NbCL0FZ_Eeugh9dythfu8g _tociw1tGEeuZZYOcQVw9qw" width="12" height="10"> |
@@ -937,7 +900,7 @@ | |||
937 | </ownedStyle> | 900 | </ownedStyle> |
938 | <actualMapping xmi:type="description_1:ContainerMapping" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EClass']"/> | 901 | <actualMapping xmi:type="description_1:ContainerMapping" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EClass']"/> |
939 | </ownedDiagramElements> | 902 | </ownedDiagramElements> |
940 | <ownedDiagramElements xmi:type="diagram:DNodeList" uid="_NaL3QVZ_Eeugh9dythfu8g" name="SpatialRelation" tooltipText="" outgoingEdges="_NbI5gFZ_Eeugh9dythfu8g" incomingEdges="_NbPAIFZ_Eeugh9dythfu8g _NbPnNlZ_Eeugh9dythfu8g" width="12" height="10"> | 903 | <ownedDiagramElements xmi:type="diagram:DNodeList" uid="_NaL3QVZ_Eeugh9dythfu8g" name="SpatialRelation" tooltipText="" outgoingEdges="_NbI5gFZ_Eeugh9dythfu8g" incomingEdges="_NbPAIFZ_Eeugh9dythfu8g" width="12" height="10"> |
941 | <target xmi:type="ecore:EClass" href="crossingScenario.ecore#//SpatialRelation"/> | 904 | <target xmi:type="ecore:EClass" href="crossingScenario.ecore#//SpatialRelation"/> |
942 | <semanticElements xmi:type="ecore:EClass" href="crossingScenario.ecore#//SpatialRelation"/> | 905 | <semanticElements xmi:type="ecore:EClass" href="crossingScenario.ecore#//SpatialRelation"/> |
943 | <arrangeConstraints>KEEP_LOCATION</arrangeConstraints> | 906 | <arrangeConstraints>KEEP_LOCATION</arrangeConstraints> |
@@ -949,7 +912,7 @@ | |||
949 | </ownedStyle> | 912 | </ownedStyle> |
950 | <actualMapping xmi:type="description_1:ContainerMapping" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EClass']"/> | 913 | <actualMapping xmi:type="description_1:ContainerMapping" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EClass']"/> |
951 | </ownedDiagramElements> | 914 | </ownedDiagramElements> |
952 | <ownedDiagramElements xmi:type="diagram:DNodeList" uid="_NaNscFZ_Eeugh9dythfu8g" name="TemporalRelation" tooltipText="" outgoingEdges="_NbNyAFZ_Eeugh9dythfu8g" incomingEdges="_NbRcYFZ_Eeugh9dythfu8g _NbSDdlZ_Eeugh9dythfu8g" width="12" height="10"> | 915 | <ownedDiagramElements xmi:type="diagram:DNodeList" uid="_NaNscFZ_Eeugh9dythfu8g" name="TemporalRelation" tooltipText="" outgoingEdges="_NbNyAFZ_Eeugh9dythfu8g" incomingEdges="_NbRcYFZ_Eeugh9dythfu8g" width="12" height="10"> |
953 | <target xmi:type="ecore:EClass" href="crossingScenario.ecore#//TemporalRelation"/> | 916 | <target xmi:type="ecore:EClass" href="crossingScenario.ecore#//TemporalRelation"/> |
954 | <semanticElements xmi:type="ecore:EClass" href="crossingScenario.ecore#//TemporalRelation"/> | 917 | <semanticElements xmi:type="ecore:EClass" href="crossingScenario.ecore#//TemporalRelation"/> |
955 | <arrangeConstraints>KEEP_LOCATION</arrangeConstraints> | 918 | <arrangeConstraints>KEEP_LOCATION</arrangeConstraints> |
@@ -972,25 +935,6 @@ | |||
972 | </ownedStyle> | 935 | </ownedStyle> |
973 | <actualMapping xmi:type="description_1:ContainerMapping" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EClass']"/> | 936 | <actualMapping xmi:type="description_1:ContainerMapping" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EClass']"/> |
974 | </ownedDiagramElements> | 937 | </ownedDiagramElements> |
975 | <ownedDiagramElements xmi:type="diagram:DNodeList" uid="_NaQIsFZ_Eeugh9dythfu8g" name="SeparationDistance" tooltipText="" outgoingEdges="_NbPnNlZ_Eeugh9dythfu8g" width="12" height="10"> | ||
976 | <target xmi:type="ecore:EClass" href="crossingScenario.ecore#//SeparationDistance"/> | ||
977 | <semanticElements xmi:type="ecore:EClass" href="crossingScenario.ecore#//SeparationDistance"/> | ||
978 | <arrangeConstraints>KEEP_LOCATION</arrangeConstraints> | ||
979 | <arrangeConstraints>KEEP_SIZE</arrangeConstraints> | ||
980 | <arrangeConstraints>KEEP_RATIO</arrangeConstraints> | ||
981 | <ownedStyle xmi:type="diagram:FlatContainerStyle" uid="_NaQvwFZ_Eeugh9dythfu8g" borderSize="1" borderSizeComputationExpression="1" backgroundStyle="Liquid" foregroundColor="255,252,216"> | ||
982 | <description xmi:type="style:FlatContainerStyleDescription" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EClass']/@style"/> | ||
983 | </ownedStyle> | ||
984 | <actualMapping xmi:type="description_1:ContainerMapping" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EClass']"/> | ||
985 | <ownedElements xmi:type="diagram:DNodeListElement" uid="_Na2loFZ_Eeugh9dythfu8g" name="distance : Distance = D_Near" tooltipText=""> | ||
986 | <target xmi:type="ecore:EAttribute" href="crossingScenario.ecore#//SeparationDistance/distance"/> | ||
987 | <semanticElements xmi:type="ecore:EAttribute" href="crossingScenario.ecore#//SeparationDistance/distance"/> | ||
988 | <ownedStyle xmi:type="diagram:BundledImage" uid="_Na2loVZ_Eeugh9dythfu8g" labelAlignment="LEFT" description="_NatbsFZ_Eeugh9dythfu8g"> | ||
989 | <labelFormat>bold</labelFormat> | ||
990 | </ownedStyle> | ||
991 | <actualMapping xmi:type="description_1:NodeMapping" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EClass']/@subNodeMappings[name='EC%20EAttribute']"/> | ||
992 | </ownedElements> | ||
993 | </ownedDiagramElements> | ||
994 | <ownedDiagramElements xmi:type="diagram:DNodeList" uid="_NaRW0FZ_Eeugh9dythfu8g" name="CollisionExists" tooltipText="" outgoingEdges="_NbRcYFZ_Eeugh9dythfu8g" width="12" height="10"> | 938 | <ownedDiagramElements xmi:type="diagram:DNodeList" uid="_NaRW0FZ_Eeugh9dythfu8g" name="CollisionExists" tooltipText="" outgoingEdges="_NbRcYFZ_Eeugh9dythfu8g" width="12" height="10"> |
995 | <target xmi:type="ecore:EClass" href="crossingScenario.ecore#//CollisionExists"/> | 939 | <target xmi:type="ecore:EClass" href="crossingScenario.ecore#//CollisionExists"/> |
996 | <semanticElements xmi:type="ecore:EClass" href="crossingScenario.ecore#//CollisionExists"/> | 940 | <semanticElements xmi:type="ecore:EClass" href="crossingScenario.ecore#//CollisionExists"/> |
@@ -1010,52 +954,6 @@ | |||
1010 | <actualMapping xmi:type="description_1:NodeMapping" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EClass']/@subNodeMappings[name='EC%20EAttribute']"/> | 954 | <actualMapping xmi:type="description_1:NodeMapping" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EClass']/@subNodeMappings[name='EC%20EAttribute']"/> |
1011 | </ownedElements> | 955 | </ownedElements> |
1012 | </ownedDiagramElements> | 956 | </ownedDiagramElements> |
1013 | <ownedDiagramElements xmi:type="diagram:DNodeList" uid="_NaTMAFZ_Eeugh9dythfu8g" name="CollisionDoesNotExist" tooltipText="" outgoingEdges="_NbSDdlZ_Eeugh9dythfu8g" width="12" height="10"> | ||
1014 | <target xmi:type="ecore:EClass" href="crossingScenario.ecore#//CollisionDoesNotExist"/> | ||
1015 | <semanticElements xmi:type="ecore:EClass" href="crossingScenario.ecore#//CollisionDoesNotExist"/> | ||
1016 | <arrangeConstraints>KEEP_LOCATION</arrangeConstraints> | ||
1017 | <arrangeConstraints>KEEP_SIZE</arrangeConstraints> | ||
1018 | <arrangeConstraints>KEEP_RATIO</arrangeConstraints> | ||
1019 | <ownedStyle xmi:type="diagram:FlatContainerStyle" uid="_NaTzEFZ_Eeugh9dythfu8g" borderSize="1" borderSizeComputationExpression="1" backgroundStyle="Liquid" foregroundColor="255,252,216"> | ||
1020 | <description xmi:type="style:FlatContainerStyleDescription" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EClass']/@style"/> | ||
1021 | </ownedStyle> | ||
1022 | <actualMapping xmi:type="description_1:ContainerMapping" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EClass']"/> | ||
1023 | </ownedDiagramElements> | ||
1024 | <ownedDiagramElements xmi:type="diagram:DNodeList" uid="_NaUaIFZ_Eeugh9dythfu8g" name="Distance" tooltipText="" width="12" height="10"> | ||
1025 | <target xmi:type="ecore:EEnum" href="crossingScenario.ecore#//Distance"/> | ||
1026 | <semanticElements xmi:type="ecore:EEnum" href="crossingScenario.ecore#//Distance"/> | ||
1027 | <arrangeConstraints>KEEP_LOCATION</arrangeConstraints> | ||
1028 | <arrangeConstraints>KEEP_SIZE</arrangeConstraints> | ||
1029 | <arrangeConstraints>KEEP_RATIO</arrangeConstraints> | ||
1030 | <ownedStyle xmi:type="diagram:FlatContainerStyle" uid="_NaUaIVZ_Eeugh9dythfu8g" borderSize="1" borderSizeComputationExpression="1" borderColor="125,125,125" backgroundStyle="Liquid" foregroundColor="221,236,202"> | ||
1031 | <description xmi:type="style:FlatContainerStyleDescription" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EEnum']/@style"/> | ||
1032 | </ownedStyle> | ||
1033 | <actualMapping xmi:type="description_1:ContainerMapping" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EEnum']"/> | ||
1034 | <ownedElements xmi:type="diagram:DNodeListElement" uid="_Na7eIlZ_Eeugh9dythfu8g" name="D_Near" tooltipText=""> | ||
1035 | <target xmi:type="ecore:EEnumLiteral" href="crossingScenario.ecore#//Distance/D_Near"/> | ||
1036 | <semanticElements xmi:type="ecore:EEnumLiteral" href="crossingScenario.ecore#//Distance/D_Near"/> | ||
1037 | <ownedStyle xmi:type="diagram:BundledImage" uid="_Na8FMFZ_Eeugh9dythfu8g" labelAlignment="LEFT"> | ||
1038 | <description xmi:type="style:BundledImageDescription" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EEnum']/@subNodeMappings[name='EC%20EEnumLiteral']/@style"/> | ||
1039 | </ownedStyle> | ||
1040 | <actualMapping xmi:type="description_1:NodeMapping" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EEnum']/@subNodeMappings[name='EC%20EEnumLiteral']"/> | ||
1041 | </ownedElements> | ||
1042 | <ownedElements xmi:type="diagram:DNodeListElement" uid="_Na8FMVZ_Eeugh9dythfu8g" name="D_Med" tooltipText=""> | ||
1043 | <target xmi:type="ecore:EEnumLiteral" href="crossingScenario.ecore#//Distance/D_Med"/> | ||
1044 | <semanticElements xmi:type="ecore:EEnumLiteral" href="crossingScenario.ecore#//Distance/D_Med"/> | ||
1045 | <ownedStyle xmi:type="diagram:BundledImage" uid="_Na8FMlZ_Eeugh9dythfu8g" labelAlignment="LEFT"> | ||
1046 | <description xmi:type="style:BundledImageDescription" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EEnum']/@subNodeMappings[name='EC%20EEnumLiteral']/@style"/> | ||
1047 | </ownedStyle> | ||
1048 | <actualMapping xmi:type="description_1:NodeMapping" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EEnum']/@subNodeMappings[name='EC%20EEnumLiteral']"/> | ||
1049 | </ownedElements> | ||
1050 | <ownedElements xmi:type="diagram:DNodeListElement" uid="_Na8sQFZ_Eeugh9dythfu8g" name="D_Far" tooltipText=""> | ||
1051 | <target xmi:type="ecore:EEnumLiteral" href="crossingScenario.ecore#//Distance/D_Far"/> | ||
1052 | <semanticElements xmi:type="ecore:EEnumLiteral" href="crossingScenario.ecore#//Distance/D_Far"/> | ||
1053 | <ownedStyle xmi:type="diagram:BundledImage" uid="_Na8sQVZ_Eeugh9dythfu8g" labelAlignment="LEFT"> | ||
1054 | <description xmi:type="style:BundledImageDescription" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EEnum']/@subNodeMappings[name='EC%20EEnumLiteral']/@style"/> | ||
1055 | </ownedStyle> | ||
1056 | <actualMapping xmi:type="description_1:NodeMapping" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EEnum']/@subNodeMappings[name='EC%20EEnumLiteral']"/> | ||
1057 | </ownedElements> | ||
1058 | </ownedDiagramElements> | ||
1059 | <ownedDiagramElements xmi:type="diagram:DNodeList" uid="_NaVoQFZ_Eeugh9dythfu8g" name="Pedestrian" tooltipText="" outgoingEdges="_NbTRkFZ_Eeugh9dythfu8g" width="12" height="10"> | 957 | <ownedDiagramElements xmi:type="diagram:DNodeList" uid="_NaVoQFZ_Eeugh9dythfu8g" name="Pedestrian" tooltipText="" outgoingEdges="_NbTRkFZ_Eeugh9dythfu8g" width="12" height="10"> |
1060 | <target xmi:type="ecore:EClass" href="crossingScenario.ecore#//Pedestrian"/> | 958 | <target xmi:type="ecore:EClass" href="crossingScenario.ecore#//Pedestrian"/> |
1061 | <semanticElements xmi:type="ecore:EClass" href="crossingScenario.ecore#//Pedestrian"/> | 959 | <semanticElements xmi:type="ecore:EClass" href="crossingScenario.ecore#//Pedestrian"/> |
@@ -1168,18 +1066,6 @@ | |||
1168 | </ownedStyle> | 1066 | </ownedStyle> |
1169 | <actualMapping xmi:type="description_1:EdgeMapping" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@edgeMappings[name='EC%20ESupertypes']"/> | 1067 | <actualMapping xmi:type="description_1:EdgeMapping" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@edgeMappings[name='EC%20ESupertypes']"/> |
1170 | </ownedDiagramElements> | 1068 | </ownedDiagramElements> |
1171 | <ownedDiagramElements xmi:type="diagram:DEdge" uid="_NbPnNlZ_Eeugh9dythfu8g" sourceNode="_NaQIsFZ_Eeugh9dythfu8g" targetNode="_NaL3QVZ_Eeugh9dythfu8g"> | ||
1172 | <target xmi:type="ecore:EClass" href="crossingScenario.ecore#//SeparationDistance"/> | ||
1173 | <semanticElements xmi:type="ecore:EClass" href="crossingScenario.ecore#//SeparationDistance"/> | ||
1174 | <ownedStyle xmi:type="diagram:EdgeStyle" uid="_NbQ1UFZ_Eeugh9dythfu8g" targetArrow="InputClosedArrow" routingStyle="tree"> | ||
1175 | <description xmi:type="style:EdgeStyleDescription" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@edgeMappings[name='EC%20ESupertypes']/@style"/> | ||
1176 | <beginLabelStyle xmi:type="diagram:BeginLabelStyle" uid="_NbQ1UVZ_Eeugh9dythfu8g" showIcon="false"> | ||
1177 | <labelFormat>italic</labelFormat> | ||
1178 | </beginLabelStyle> | ||
1179 | <centerLabelStyle xmi:type="diagram:CenterLabelStyle" uid="_NbQ1UlZ_Eeugh9dythfu8g" showIcon="false"/> | ||
1180 | </ownedStyle> | ||
1181 | <actualMapping xmi:type="description_1:EdgeMapping" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@edgeMappings[name='EC%20ESupertypes']"/> | ||
1182 | </ownedDiagramElements> | ||
1183 | <ownedDiagramElements xmi:type="diagram:DEdge" uid="_NbRcYFZ_Eeugh9dythfu8g" sourceNode="_NaRW0FZ_Eeugh9dythfu8g" targetNode="_NaNscFZ_Eeugh9dythfu8g"> | 1069 | <ownedDiagramElements xmi:type="diagram:DEdge" uid="_NbRcYFZ_Eeugh9dythfu8g" sourceNode="_NaRW0FZ_Eeugh9dythfu8g" targetNode="_NaNscFZ_Eeugh9dythfu8g"> |
1184 | <target xmi:type="ecore:EClass" href="crossingScenario.ecore#//CollisionExists"/> | 1070 | <target xmi:type="ecore:EClass" href="crossingScenario.ecore#//CollisionExists"/> |
1185 | <semanticElements xmi:type="ecore:EClass" href="crossingScenario.ecore#//CollisionExists"/> | 1071 | <semanticElements xmi:type="ecore:EClass" href="crossingScenario.ecore#//CollisionExists"/> |
@@ -1192,18 +1078,6 @@ | |||
1192 | </ownedStyle> | 1078 | </ownedStyle> |
1193 | <actualMapping xmi:type="description_1:EdgeMapping" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@edgeMappings[name='EC%20ESupertypes']"/> | 1079 | <actualMapping xmi:type="description_1:EdgeMapping" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@edgeMappings[name='EC%20ESupertypes']"/> |
1194 | </ownedDiagramElements> | 1080 | </ownedDiagramElements> |
1195 | <ownedDiagramElements xmi:type="diagram:DEdge" uid="_NbSDdlZ_Eeugh9dythfu8g" sourceNode="_NaTMAFZ_Eeugh9dythfu8g" targetNode="_NaNscFZ_Eeugh9dythfu8g"> | ||
1196 | <target xmi:type="ecore:EClass" href="crossingScenario.ecore#//CollisionDoesNotExist"/> | ||
1197 | <semanticElements xmi:type="ecore:EClass" href="crossingScenario.ecore#//CollisionDoesNotExist"/> | ||
1198 | <ownedStyle xmi:type="diagram:EdgeStyle" uid="_NbSqgFZ_Eeugh9dythfu8g" targetArrow="InputClosedArrow" routingStyle="tree"> | ||
1199 | <description xmi:type="style:EdgeStyleDescription" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@edgeMappings[name='EC%20ESupertypes']/@style"/> | ||
1200 | <beginLabelStyle xmi:type="diagram:BeginLabelStyle" uid="_NbSqgVZ_Eeugh9dythfu8g" showIcon="false"> | ||
1201 | <labelFormat>italic</labelFormat> | ||
1202 | </beginLabelStyle> | ||
1203 | <centerLabelStyle xmi:type="diagram:CenterLabelStyle" uid="_NbSqglZ_Eeugh9dythfu8g" showIcon="false"/> | ||
1204 | </ownedStyle> | ||
1205 | <actualMapping xmi:type="description_1:EdgeMapping" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@edgeMappings[name='EC%20ESupertypes']"/> | ||
1206 | </ownedDiagramElements> | ||
1207 | <ownedDiagramElements xmi:type="diagram:DEdge" uid="_NbTRkFZ_Eeugh9dythfu8g" sourceNode="_NaVoQFZ_Eeugh9dythfu8g" targetNode="_NaHl0FZ_Eeugh9dythfu8g"> | 1081 | <ownedDiagramElements xmi:type="diagram:DEdge" uid="_NbTRkFZ_Eeugh9dythfu8g" sourceNode="_NaVoQFZ_Eeugh9dythfu8g" targetNode="_NaHl0FZ_Eeugh9dythfu8g"> |
1208 | <target xmi:type="ecore:EClass" href="crossingScenario.ecore#//Pedestrian"/> | 1082 | <target xmi:type="ecore:EClass" href="crossingScenario.ecore#//Pedestrian"/> |
1209 | <semanticElements xmi:type="ecore:EClass" href="crossingScenario.ecore#//Pedestrian"/> | 1083 | <semanticElements xmi:type="ecore:EClass" href="crossingScenario.ecore#//Pedestrian"/> |
diff --git a/Domains/crossingScenario/model/crossingScenario.ecore b/Domains/crossingScenario/model/crossingScenario.ecore index 05dba008..22a9714b 100644 --- a/Domains/crossingScenario/model/crossingScenario.ecore +++ b/Domains/crossingScenario/model/crossingScenario.ecore | |||
@@ -54,20 +54,10 @@ | |||
54 | <eStructuralFeatures xsi:type="ecore:EReference" name="blockedBy" lowerBound="1" | 54 | <eStructuralFeatures xsi:type="ecore:EReference" name="blockedBy" lowerBound="1" |
55 | eType="#//Actor"/> | 55 | eType="#//Actor"/> |
56 | </eClassifiers> | 56 | </eClassifiers> |
57 | <eClassifiers xsi:type="ecore:EClass" name="SeparationDistance" eSuperTypes="#//SpatialRelation"> | ||
58 | <eStructuralFeatures xsi:type="ecore:EAttribute" name="distance" lowerBound="1" | ||
59 | eType="#//Distance"/> | ||
60 | </eClassifiers> | ||
61 | <eClassifiers xsi:type="ecore:EClass" name="CollisionExists" eSuperTypes="#//TemporalRelation"> | 57 | <eClassifiers xsi:type="ecore:EClass" name="CollisionExists" eSuperTypes="#//TemporalRelation"> |
62 | <eStructuralFeatures xsi:type="ecore:EAttribute" name="collisionTime" lowerBound="1" | 58 | <eStructuralFeatures xsi:type="ecore:EAttribute" name="collisionTime" lowerBound="1" |
63 | eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDouble"/> | 59 | eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDouble"/> |
64 | </eClassifiers> | 60 | </eClassifiers> |
65 | <eClassifiers xsi:type="ecore:EClass" name="CollisionDoesNotExist" eSuperTypes="#//TemporalRelation"/> | ||
66 | <eClassifiers xsi:type="ecore:EEnum" name="Distance"> | ||
67 | <eLiterals name="D_Near"/> | ||
68 | <eLiterals name="D_Med" value="1"/> | ||
69 | <eLiterals name="D_Far" value="2"/> | ||
70 | </eClassifiers> | ||
71 | <eClassifiers xsi:type="ecore:EClass" name="Pedestrian" eSuperTypes="#//Actor"/> | 61 | <eClassifiers xsi:type="ecore:EClass" name="Pedestrian" eSuperTypes="#//Actor"/> |
72 | <eClassifiers xsi:type="ecore:EClass" name="Vehicle" eSuperTypes="#//Actor"/> | 62 | <eClassifiers xsi:type="ecore:EClass" name="Vehicle" eSuperTypes="#//Actor"/> |
73 | <eClassifiers xsi:type="ecore:EClass" name="Lane_Horizontal" eSuperTypes="#//Lane"/> | 63 | <eClassifiers xsi:type="ecore:EClass" name="Lane_Horizontal" eSuperTypes="#//Lane"/> |
diff --git a/Domains/crossingScenario/model/crossingScenario.genmodel b/Domains/crossingScenario/model/crossingScenario.genmodel index 51923418..e216652d 100644 --- a/Domains/crossingScenario/model/crossingScenario.genmodel +++ b/Domains/crossingScenario/model/crossingScenario.genmodel | |||
@@ -6,11 +6,6 @@ | |||
6 | operationReflection="true" importOrganizing="true"> | 6 | operationReflection="true" importOrganizing="true"> |
7 | <foreignModel>crossingScenario.ecore</foreignModel> | 7 | <foreignModel>crossingScenario.ecore</foreignModel> |
8 | <genPackages prefix="CrossingScenario" disposableProviderFactory="true" ecorePackage="crossingScenario.ecore#/"> | 8 | <genPackages prefix="CrossingScenario" disposableProviderFactory="true" ecorePackage="crossingScenario.ecore#/"> |
9 | <genEnums typeSafeEnumCompatible="false" ecoreEnum="crossingScenario.ecore#//Distance"> | ||
10 | <genEnumLiterals ecoreEnumLiteral="crossingScenario.ecore#//Distance/D_Near"/> | ||
11 | <genEnumLiterals ecoreEnumLiteral="crossingScenario.ecore#//Distance/D_Med"/> | ||
12 | <genEnumLiterals ecoreEnumLiteral="crossingScenario.ecore#//Distance/D_Far"/> | ||
13 | </genEnums> | ||
14 | <genClasses ecoreClass="crossingScenario.ecore#//CrossingScenario"> | 9 | <genClasses ecoreClass="crossingScenario.ecore#//CrossingScenario"> |
15 | <genFeatures createChild="false" ecoreFeature="ecore:EAttribute crossingScenario.ecore#//CrossingScenario/xSize"/> | 10 | <genFeatures createChild="false" ecoreFeature="ecore:EAttribute crossingScenario.ecore#//CrossingScenario/xSize"/> |
16 | <genFeatures createChild="false" ecoreFeature="ecore:EAttribute crossingScenario.ecore#//CrossingScenario/ySize"/> | 11 | <genFeatures createChild="false" ecoreFeature="ecore:EAttribute crossingScenario.ecore#//CrossingScenario/ySize"/> |
@@ -46,13 +41,9 @@ | |||
46 | <genClasses ecoreClass="crossingScenario.ecore#//VisionBlocked"> | 41 | <genClasses ecoreClass="crossingScenario.ecore#//VisionBlocked"> |
47 | <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference crossingScenario.ecore#//VisionBlocked/blockedBy"/> | 42 | <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference crossingScenario.ecore#//VisionBlocked/blockedBy"/> |
48 | </genClasses> | 43 | </genClasses> |
49 | <genClasses ecoreClass="crossingScenario.ecore#//SeparationDistance"> | ||
50 | <genFeatures createChild="false" ecoreFeature="ecore:EAttribute crossingScenario.ecore#//SeparationDistance/distance"/> | ||
51 | </genClasses> | ||
52 | <genClasses ecoreClass="crossingScenario.ecore#//CollisionExists"> | 44 | <genClasses ecoreClass="crossingScenario.ecore#//CollisionExists"> |
53 | <genFeatures createChild="false" ecoreFeature="ecore:EAttribute crossingScenario.ecore#//CollisionExists/collisionTime"/> | 45 | <genFeatures createChild="false" ecoreFeature="ecore:EAttribute crossingScenario.ecore#//CollisionExists/collisionTime"/> |
54 | </genClasses> | 46 | </genClasses> |
55 | <genClasses ecoreClass="crossingScenario.ecore#//CollisionDoesNotExist"/> | ||
56 | <genClasses ecoreClass="crossingScenario.ecore#//Pedestrian"/> | 47 | <genClasses ecoreClass="crossingScenario.ecore#//Pedestrian"/> |
57 | <genClasses ecoreClass="crossingScenario.ecore#//Vehicle"/> | 48 | <genClasses ecoreClass="crossingScenario.ecore#//Vehicle"/> |
58 | <genClasses ecoreClass="crossingScenario.ecore#//Lane_Horizontal"/> | 49 | <genClasses ecoreClass="crossingScenario.ecore#//Lane_Horizontal"/> |
diff --git a/Domains/crossingScenario/queries/crossingScenarioQueries.vql b/Domains/crossingScenario/queries/crossingScenarioQueries.vql index c009e031..a26782ae 100644 --- a/Domains/crossingScenario/queries/crossingScenarioQueries.vql +++ b/Domains/crossingScenario/queries/crossingScenarioQueries.vql | |||
@@ -3,180 +3,6 @@ package queries | |||
3 | import "http://www.example.com/crossingScenario" | 3 | import "http://www.example.com/crossingScenario" |
4 | import "http://www.eclipse.org/emf/2002/Ecore" | 4 | import "http://www.eclipse.org/emf/2002/Ecore" |
5 | 5 | ||
6 | //////Minimal Failing Example | ||
7 | //@Constraint(severity = "error", key = {l}, message = "this defines the placedOn relation") | ||
8 | //pattern patterThatOnlyWorksWithInt(l : Lane) { | ||
9 | // Lane.referenceCoord(l, w); | ||
10 | // check(w <= 0-10.0); | ||
11 | //} | ||
12 | |||
13 | ////////////// | ||
14 | //CrossingScenario | ||
15 | ///////////// | ||
16 | |||
17 | /* | ||
18 | //TODO Hard-code xSize? | ||
19 | //TODO Hard-code ySize? | ||
20 | |||
21 | //TODO Hard-code maxTime? | ||
22 | @Constraint(severity="error", key={l}, message="3 CrossingScenari") | ||
23 | pattern define_cs_maxTime(cs:CrossingScenario) { | ||
24 | CrossingScenario.maxTime(cs, mt); | ||
25 | check(mt != 60.0); | ||
26 | } | ||
27 | */ | ||
28 | |||
29 | ///////*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*////// | ||
30 | //Lane | ||
31 | ///////*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*////// | ||
32 | /* | ||
33 | |||
34 | ////<<<<OLD>>>> | ||
35 | ////Width: Different Lanes | ||
36 | //@Constraint(severity="error", key={l}, message="1 Lane") | ||
37 | //pattern define_numWidth_small(l : Lane) { | ||
38 | // Lane.width(l, Size::S_Small); | ||
39 | // Lane.numWidth(l, nw); | ||
40 | // check(nw <= 5.0); | ||
41 | //} or { | ||
42 | // Lane.width(l, Size::S_Small); | ||
43 | // Lane.numWidth(l, nw); | ||
44 | // check(nw >= 10.0); | ||
45 | //} | ||
46 | // | ||
47 | //@Constraint(severity="error", key={l}, message="2 Lane") | ||
48 | //pattern define_numWidth_medium(l : Lane) { | ||
49 | // Lane.width(l, ::S_Med); | ||
50 | // Lane.numWidth(l, nw); | ||
51 | // check(nw <= 10.0); | ||
52 | //} | ||
53 | //or { | ||
54 | // Lane.width(l, Size::S_Med); | ||
55 | // Lane.numWidth(l, nw); | ||
56 | // check(nw >= 15.0); | ||
57 | //} | ||
58 | // | ||
59 | //@Constraint(severity="error", key={l}, message="3 Lane") | ||
60 | //pattern define_numWidth_large(l : Lane) { | ||
61 | // Lane.width(l, Size::S_Large); | ||
62 | // Lane.numWidth(l, nw); | ||
63 | // check(nw <= 15.0); | ||
64 | //} | ||
65 | //or { | ||
66 | // Lane.width(l, Size::S_Large); | ||
67 | // Lane.numWidth(l, nw); | ||
68 | // check(nw >= 20.0); | ||
69 | //} | ||
70 | |||
71 | //<<<<NEW>>>> | ||
72 | //Width is FIXED: always 5 | ||
73 | |||
74 | /////////////Prevlane | ||
75 | |||
76 | ////<<<<OLD>>>> | ||
77 | ////Generating 2 linkedlists (1 for horizontal, 1 for vertical lanes) | ||
78 | //////////head lanes do not have prevLane | ||
79 | //@Constraint(severity="error", key={l}, message="6.1 Lane") | ||
80 | //pattern define_prevLane_headVertLaneDoesNotHavePrevLane(cs:CrossingScenario, l:Lane_Vertical) { | ||
81 | // CrossingScenario.vertical_head(cs, l); | ||
82 | // Lane.prevLane(l, _); | ||
83 | //} | ||
84 | // | ||
85 | //@Constraint(severity="error", key={l}, message="6.2 Lane") | ||
86 | //pattern define_prevLane_headHoriLaneDoesNotHavePrevLane(cs:CrossingScenario, l:Lane_Horizontal) { | ||
87 | // CrossingScenario.horizontal_head(cs, l); | ||
88 | // Lane.prevLane(l, _); | ||
89 | //} | ||
90 | // | ||
91 | //////////Non-head lanes must have prevLane | ||
92 | //@Constraint(severity="error", key={l}, message="6.1 Lane") | ||
93 | //pattern define_prevLane_nonheadVertLaneHasPrevLane(l:Lane_Vertical) { | ||
94 | // neg find find_headVertLane(l); | ||
95 | // neg find find_laneWithPrevLane(l); | ||
96 | //} | ||
97 | // | ||
98 | //@Constraint(severity="error", key={l}, message="6.1 Lane") | ||
99 | //pattern define_prevLane_nonheadHoriLaneHasPrevLane(l:Lane_Horizontal) { | ||
100 | // neg find find_headHoriLane(l); | ||
101 | // neg find find_laneWithPrevLane(l); | ||
102 | //} | ||
103 | // | ||
104 | //private pattern find_headVertLane(l:Lane_Vertical) { | ||
105 | // CrossingScenario.vertical_head(_, l); | ||
106 | //} | ||
107 | //private pattern find_headHoriLane(l:Lane_Horizontal) { | ||
108 | // CrossingScenario.horizontal_head(_, l); | ||
109 | //} | ||
110 | //private pattern find_laneWithPrevLane(l:Lane) { | ||
111 | // Lane.prevLane(l, _); | ||
112 | //} | ||
113 | // | ||
114 | ///////////Lane cannot be its own recursive prevLane | ||
115 | //@Constraint(severity="error", key={l}, message="6.1 Lane") | ||
116 | //pattern define_prevLane_lanecannotBeItsOwnPrevLane(l:Lane) { | ||
117 | // Lane.prevLane(l, l); | ||
118 | //} | ||
119 | // | ||
120 | //@Constraint(severity="error", key={l}, message="6.2 Lane") | ||
121 | //pattern define_prevLane_lanecannotBeItsOwnRecursivePrevLane(l:Lane) { | ||
122 | // find find_prevLane+(l, l); | ||
123 | //} | ||
124 | //private pattern find_prevLane(l1:Lane, l2:Lane) { | ||
125 | // Lane.prevLane(l1, l2); | ||
126 | //} | ||
127 | // | ||
128 | ////////Lane cannot be prevLane of >1 other lane | ||
129 | //@Constraint(severity="error", key={l1, l2}, message="7 Lane") | ||
130 | //pattern define_prevLane_lanecannotbeprevLaneof2lanes(l1:Lane, l2:Lane) { | ||
131 | // Lane.prevLane(l1, l); | ||
132 | // Lane.prevLane(l2, l); | ||
133 | // l1 != l2; | ||
134 | //} | ||
135 | // | ||
136 | ////////consecutive lanes must have same orientation | ||
137 | //@Constraint(severity="error", key={l1, l2}, message="8 Lane") | ||
138 | //pattern define_prevLane_consecutiveLanesMustHaveSameOrientation1(l1:Lane_Horizontal, l2:Lane_Vertical) { | ||
139 | // Lane.prevLane(l1, l2); | ||
140 | //} | ||
141 | // | ||
142 | //@Constraint(severity="error", key={l1, l2}, message="8 Lane") | ||
143 | //pattern define_prevLane_consecutiveLanesMustHaveSameOrientation2(l1:Lane_Vertical, l2:Lane_Horizontal) { | ||
144 | // Lane.prevLane(l1, l2); | ||
145 | //} | ||
146 | // | ||
147 | ///////////////ReferenceCoord | ||
148 | // | ||
149 | ///////refCoord of head lanes must be 0 | ||
150 | //@Constraint(severity="error", key={l}, message="6.2 Lane") | ||
151 | //pattern define_prevLane_headHoriLaneHas0RefCoord(cs:CrossingScenario, l:Lane_Horizontal) { | ||
152 | // CrossingScenario.horizontal_head(cs, l); | ||
153 | // Lane.referenceCoord(l, rc); | ||
154 | // check(rc != 0.0); | ||
155 | //} | ||
156 | // | ||
157 | //@Constraint(severity="error", key={l}, message="6.2 Lane") | ||
158 | //pattern define_prevLane_headVertLaneHas0RefCoord(cs:CrossingScenario, l:Lane_Vertical) { | ||
159 | // CrossingScenario.vertical_head(cs, l); | ||
160 | // Lane.referenceCoord(l, rc); | ||
161 | // check(rc != 0.0); | ||
162 | //} | ||
163 | // | ||
164 | ////////refCoord of a lane is prevLane.rc + curLane.numWidth | ||
165 | // | ||
166 | //@Constraint(severity="error", key={l}, message="6.2 Lane") | ||
167 | //pattern define_referenceCoord_laneWithPrevHasCorrectRefCoord(l:Lane) { | ||
168 | // Lane.prevLane(l, prev); | ||
169 | // Lane.referenceCoord(l, rcCur); | ||
170 | // | ||
171 | // Lane.numWidth(prev, wPrev); | ||
172 | // Lane.referenceCoord(prev, rcPrev); | ||
173 | // check(rcCur != rcPrev + wPrev); | ||
174 | //} | ||
175 | |||
176 | //<<<<NEW>>>> | ||
177 | //Lanes are all predefind | ||
178 | */ | ||
179 | |||
180 | ///////*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*////// | 6 | ///////*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*////// |
181 | //Lane+Actor | 7 | //Lane+Actor |
182 | ///////*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*////// | 8 | ///////*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*////// |
@@ -430,12 +256,12 @@ private pattern helper_actorsAreFar(a1: Actor, a2: Actor) { | |||
430 | //Relation | 256 | //Relation |
431 | ///////*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*////// | 257 | ///////*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*////// |
432 | 258 | ||
433 | @Constraint(severity="error", key={a1, a2}, message="1 Relation") | 259 | //@Constraint(severity="error", key={a1, a2}, message="1 Relation") |
434 | pattern define_relation_noSelfRelation(a1:Actor, a2:Actor) { | 260 | //pattern define_relation_noSelfRelation(a1:Actor, a2:Actor) { |
435 | Relation.source(r, a1); | 261 | // Relation.source(r, a1); |
436 | Relation.target(r, a2); | 262 | // Relation.target(r, a2); |
437 | a1 == a2; | 263 | // a1 == a2; |
438 | } | 264 | //} |
439 | 265 | ||
440 | //TODO do above but transitively?/ | 266 | //TODO do above but transitively?/ |
441 | //////*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*////// | 267 | //////*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*////// |
@@ -462,7 +288,7 @@ pattern collisionExists_qualAbstr(a1:Actor, a2:Actor) { | |||
462 | Lane_Horizontal(hl2); | 288 | Lane_Horizontal(hl2); |
463 | } | 289 | } |
464 | 290 | ||
465 | //<<END QUALITATIF ABSTRACTION>> | 291 | //<<END TEMP QUALITATIF ABSTRACTION>> |
466 | 292 | ||
467 | //// | 293 | //// |
468 | //VS VisionBlocked | 294 | //VS VisionBlocked |
@@ -470,6 +296,36 @@ pattern collisionExists_qualAbstr(a1:Actor, a2:Actor) { | |||
470 | //TODO Very prone to corner cases | 296 | //TODO Very prone to corner cases |
471 | /* | 297 | /* |
472 | @Constraint(severity="error", key={a1}, message="x") | 298 | @Constraint(severity="error", key={a1}, message="x") |
299 | pattern collisionExists_vsVisionBlockedX1(a1:Actor) { | ||
300 | VisionBlocked.blockedBy(_, a1); | ||
301 | CollisionExists.target(_, a1); | ||
302 | } | ||
303 | @Constraint(severity="error", key={a1}, message="x") | ||
304 | pattern collisionExists_vsVisionBlockedX2(a1:Actor) { | ||
305 | VisionBlocked.blockedBy(_, a1); | ||
306 | CollisionExists.source(_, a1); | ||
307 | } | ||
308 | |||
309 | @Constraint(severity="error", key={a1}, message="x") | ||
310 | pattern collisionExists_vsVisionBlocked1(a1:Actor) { | ||
311 | VisionBlocked.source(_, a1); | ||
312 | neg find helper_source(a1); | ||
313 | } | ||
314 | private pattern helper_source(a1:Actor) { | ||
315 | CollisionExists.source(_, a1); | ||
316 | } | ||
317 | |||
318 | @Constraint(severity="error", key={a1}, message="x") | ||
319 | pattern collisionExists_vsVisionBlocked2(a1:Actor) { | ||
320 | VisionBlocked.target(_, a1); | ||
321 | neg find helper_target(a1); | ||
322 | } | ||
323 | private pattern helper_target(a1:Actor) { | ||
324 | CollisionExists.target(_, a1); | ||
325 | } | ||
326 | */ | ||
327 | /* | ||
328 | @Constraint(severity="error", key={a1}, message="x") | ||
473 | pattern collisionExists_vsVisionBlocked(a1:Actor) { | 329 | pattern collisionExists_vsVisionBlocked(a1:Actor) { |
474 | VisionBlocked.source(vb, a1); | 330 | VisionBlocked.source(vb, a1); |
475 | VisionBlocked.target(vb, a2); | 331 | VisionBlocked.target(vb, a2); |
@@ -610,7 +466,7 @@ pattern collisionExists_defineCollision_x2(a1:Actor, a2:Actor) { | |||
610 | 466 | ||
611 | //<<QUALTATIF ABSTRACTION>> | 467 | //<<QUALTATIF ABSTRACTION>> |
612 | 468 | ||
613 | @Constraint(severity="error", key={a1, a2}, message="x") | 469 | @Constraint(severity="error", key={a1, a2}, message="on 3 different lanes") |
614 | pattern visionBlocked_qualAbstr(a1:Actor, a2:Actor) { | 470 | pattern visionBlocked_qualAbstr(a1:Actor, a2:Actor) { |
615 | VisionBlocked.source(vb, a1); | 471 | VisionBlocked.source(vb, a1); |
616 | VisionBlocked.target(vb, a2); | 472 | VisionBlocked.target(vb, a2); |
@@ -628,7 +484,7 @@ pattern visionBlocked_qualAbstr(a1:Actor, a2:Actor) { | |||
628 | Actor.placedOn(a2, l); | 484 | Actor.placedOn(a2, l); |
629 | } | 485 | } |
630 | 486 | ||
631 | @Constraint(severity="error", key={a1, a2}, message="x") | 487 | @Constraint(severity="error", key={a1, a2}, message="on lanes with different orientation") |
632 | pattern visionBlocked_qualAbstr2(a1:Actor, a2:Actor) { | 488 | pattern visionBlocked_qualAbstr2(a1:Actor, a2:Actor) { |
633 | VisionBlocked.source(ce, a1); | 489 | VisionBlocked.source(ce, a1); |
634 | VisionBlocked.target(ce, a2); | 490 | VisionBlocked.target(ce, a2); |
@@ -734,6 +590,7 @@ pattern visionBlocked_xdistBSlargerThanxdistTS(a1:Actor, a2:Actor, vb:VisionBloc | |||
734 | 590 | ||
735 | //check(slope of a1-to-BlockerBottom > slope of a1-to-a2) | 591 | //check(slope of a1-to-BlockerBottom > slope of a1-to-a2) |
736 | //TODO implement ABSOLUTE VALUE or MULTI-CHECK | 592 | //TODO implement ABSOLUTE VALUE or MULTI-CHECK |
593 | //TODO do pythagoras | ||
737 | check((x1-xBlocker)*(x1-xBlocker) > (x1-x2)*(x1-x2)); | 594 | check((x1-xBlocker)*(x1-xBlocker) > (x1-x2)*(x1-x2)); |
738 | } | 595 | } |
739 | 596 | ||
@@ -752,110 +609,10 @@ pattern visionBlocked_xdistBTlargerThanxdistST(a1:Actor, a2:Actor, vb:VisionBloc | |||
752 | 609 | ||
753 | //check(slope of a1-to-BlockerBottom > slope of a1-to-a2) | 610 | //check(slope of a1-to-BlockerBottom > slope of a1-to-a2) |
754 | //TODO implement ABSOLUTE VALUE or MULTI-CHECK | 611 | //TODO implement ABSOLUTE VALUE or MULTI-CHECK |
612 | //TODO do pythagoras | ||
755 | check((x1-xBlocker)*(x1-xBlocker) > (x1-x2)*(x1-x2)); | 613 | check((x1-xBlocker)*(x1-xBlocker) > (x1-x2)*(x1-x2)); |
756 | } | 614 | } |
757 | 615 | ||
758 | //TODO same as above for Y??? | 616 | //TODO same as above for Y??? |
759 | //TODO same as above for Y ???? | 617 | //TODO same as above for Y ???? |
760 | 618 | ||
761 | /////*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*////// | ||
762 | //SeparationDistance | ||
763 | /////*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*////// | ||
764 | /* | ||
765 | private pattern helper_getSeperateActorsCoords(a1:Actor, | ||
766 | a2: Actor, sd:SeparationDistance, | ||
767 | x1:java Double, x2:java Double, y1:java Double, y2:java Double) { | ||
768 | SeperationDistance.source(sd, a1); | ||
769 | SeparationDistance.target(sd, a2); | ||
770 | |||
771 | find helper_getCoords(a1, a2, x1, x2, y1, y2); | ||
772 | } | ||
773 | |||
774 | @Constraint(severity="error", key={a1, sd}, message="x") | ||
775 | pattern SeparationDistance_near_lb(a1:Actor, a2:Actor, sd:SeparationDistance) { | ||
776 | //This second one is required because we do not want to enforce both a1->c->a2 and a2->c->a1 | ||
777 | |||
778 | find helper_getSeparateActorsCoords(a1, a2, sd, x1, x2, y1, y2); | ||
779 | SeparationDistance.distance(sd, Distance::D_Near); | ||
780 | |||
781 | //check(dx^2 + dy^2 < 5^2) | ||
782 | check((x1-x2)*(x1-x2) + (y1-y2)*(y1-y2) < 5*5); | ||
783 | } | ||
784 | |||
785 | @Constraint(severity="error", key={a1, sd}, message="x") | ||
786 | pattern SeparationDistance_near_ub(a1:Actor, a2:Actor, sd:SeparationDistance) { | ||
787 | //This second one is required because we do not want to enforce both a1->c->a2 and a2->c->a1 | ||
788 | |||
789 | find helper_getSeparateActorsCoords(a1, a2, sd, x1, x2, y1, y2); | ||
790 | SeparationDistance.distance(sd, Distance::D_Near); | ||
791 | |||
792 | //check(dx^2 + dy^2 > 10^2) | ||
793 | check((x1-x2)*(x1-x2) + (y1-y2)*(y1-y2) > 10*10); | ||
794 | } | ||
795 | |||
796 | @Constraint(severity="error", key={a1, sd}, message="x") | ||
797 | pattern SeparationDistance_medium_lb(a1:Actor, a2:Actor, sd:SeparationDistance) { | ||
798 | //This second one is required because we do not want to enforce both a1->c->a2 and a2->c->a1 | ||
799 | |||
800 | find helper_getSeparateActorsCoords(a1, a2, sd, x1, x2, y1, y2); | ||
801 | SeparationDistance.distance(sd, Distance::D_Med); | ||
802 | |||
803 | //check(dx^2 + dy^2 < 10^2) | ||
804 | check((x1-x2)*(x1-x2) + (y1-y2)*(y1-y2) < 10*10); | ||
805 | } | ||
806 | |||
807 | @Constraint(severity="error", key={a1, sd}, message="x") | ||
808 | pattern SeparationDistance_medium_ub(a1:Actor, a2:Actor, sd:SeparationDistance) { | ||
809 | //This second one is required because we do not want to enforce both a1->c->a2 and a2->c->a1 | ||
810 | |||
811 | find helper_getSeparateActorsCoords(a1, a2, sd, x1, x2, y1, y2); | ||
812 | SeparationDistance.distance(sd, Distance::D_Med); | ||
813 | |||
814 | //check(dx^2 + dy^2 > 1^2) | ||
815 | check((x1-x2)*(x1-x2) + (y1-y2)*(y1-y2) > 15*15); | ||
816 | } | ||
817 | |||
818 | @Constraint(severity="error", key={a1, sd}, message="x") | ||
819 | pattern SeparationDistance_far_lb(a1:Actor, a2:Actor, sd:SeparationDistance) { | ||
820 | //This second one is required because we do not want to enforce both a1->c->a2 and a2->c->a1 | ||
821 | |||
822 | find helper_getSeparateActorsCoords(a1, a2, sd, x1, x2, y1, y2); | ||
823 | SeparationDistance.distance(sd, Distance::D_Far); | ||
824 | |||
825 | //check(dx^2 + dy^2 < 15^2) | ||
826 | check((x1-x2)*(x1-x2) + (y1-y2)*(y1-y2) < 15*15); | ||
827 | } | ||
828 | */ | ||
829 | |||
830 | /////*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*////// | ||
831 | //CollisionDoesNotExist | ||
832 | /////*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*////// | ||
833 | /* | ||
834 | //TODO | ||
835 | @Constraint(severity="error", key={a1, cdne}, message="x") | ||
836 | pattern collisionDoesNotExist(a1:Actor, a2:Actor, ss:CrossingScenario, cdne:CollisionDoesNotExist) { | ||
837 | //This second one is required because we do not want to enforce both a1->c->a2 and a2->c->a1 | ||
838 | |||
839 | CrossingScenario.actors(ss, a1); | ||
840 | CrossingScenario.actors(ss, a2); | ||
841 | Actor.relations(a1, cdne); | ||
842 | CollisionDoesNotExist.target(cdne, a2); | ||
843 | CrossingScenario.maxTime(ss, maxTime); | ||
844 | |||
845 | Actor.width(a1, w1); | ||
846 | Actor.length(a1, l1); | ||
847 | Actor.xPos(a1, xPos1); | ||
848 | Actor.yPos(a1, yPos1); | ||
849 | Actor.xSpeed(a1, xSpeed1); | ||
850 | Actor.ySpeed(a1, ySpeed1); | ||
851 | |||
852 | Actor.width(a2, w2); | ||
853 | Actor.length(a2, l2); | ||
854 | Actor.xPos(a2, xPos2); | ||
855 | Actor.yPos(a2, yPos2); | ||
856 | Actor.xSpeed(a2, xSpeed2); | ||
857 | Actor.ySpeed(a2, ySpeed2); | ||
858 | //check(dx^2 + dy^2 < 15^2) | ||
859 | check((x1-x2)*(x1-x2) + (y1-y2)*(y1-y2) < 15*15); | ||
860 | } | ||
861 | */ \ No newline at end of file | ||
diff --git a/Domains/crossingScenario/queries/moreCompleteQueries2._v_q_l b/Domains/crossingScenario/queries/moreCompleteQueries2._v_q_l new file mode 100644 index 00000000..51e1bf00 --- /dev/null +++ b/Domains/crossingScenario/queries/moreCompleteQueries2._v_q_l | |||
@@ -0,0 +1,891 @@ | |||
1 | package queries | ||
2 | |||
3 | import "http://www.example.com/crossingScenario" | ||
4 | import "http://www.eclipse.org/emf/2002/Ecore" | ||
5 | |||
6 | //////Minimal Failing Example | ||
7 | //@Constraint(severity = "error", key = {l}, message = "this defines the placedOn relation") | ||
8 | //pattern patterThatOnlyWorksWithInt(l : Lane) { | ||
9 | // Lane.referenceCoord(l, w); | ||
10 | // check(w <= 0-10.0); | ||
11 | //} | ||
12 | |||
13 | ////////////// | ||
14 | //CrossingScenario | ||
15 | ///////////// | ||
16 | |||
17 | /* | ||
18 | //TODO Hard-code xSize? | ||
19 | //TODO Hard-code ySize? | ||
20 | |||
21 | //TODO Hard-code maxTime? | ||
22 | @Constraint(severity="error", key={l}, message="3 CrossingScenari") | ||
23 | pattern define_cs_maxTime(cs:CrossingScenario) { | ||
24 | CrossingScenario.maxTime(cs, mt); | ||
25 | check(mt != 60.0); | ||
26 | } | ||
27 | */ | ||
28 | |||
29 | ///////*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*////// | ||
30 | //Lane | ||
31 | ///////*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*////// | ||
32 | /* | ||
33 | |||
34 | ////<<<<OLD>>>> | ||
35 | ////Width: Different Lanes | ||
36 | //@Constraint(severity="error", key={l}, message="1 Lane") | ||
37 | //pattern define_numWidth_small(l : Lane) { | ||
38 | // Lane.width(l, Size::S_Small); | ||
39 | // Lane.numWidth(l, nw); | ||
40 | // check(nw <= 5.0); | ||
41 | //} or { | ||
42 | // Lane.width(l, Size::S_Small); | ||
43 | // Lane.numWidth(l, nw); | ||
44 | // check(nw >= 10.0); | ||
45 | //} | ||
46 | // | ||
47 | //@Constraint(severity="error", key={l}, message="2 Lane") | ||
48 | //pattern define_numWidth_medium(l : Lane) { | ||
49 | // Lane.width(l, ::S_Med); | ||
50 | // Lane.numWidth(l, nw); | ||
51 | // check(nw <= 10.0); | ||
52 | //} | ||
53 | //or { | ||
54 | // Lane.width(l, Size::S_Med); | ||
55 | // Lane.numWidth(l, nw); | ||
56 | // check(nw >= 15.0); | ||
57 | //} | ||
58 | // | ||
59 | //@Constraint(severity="error", key={l}, message="3 Lane") | ||
60 | //pattern define_numWidth_large(l : Lane) { | ||
61 | // Lane.width(l, Size::S_Large); | ||
62 | // Lane.numWidth(l, nw); | ||
63 | // check(nw <= 15.0); | ||
64 | //} | ||
65 | //or { | ||
66 | // Lane.width(l, Size::S_Large); | ||
67 | // Lane.numWidth(l, nw); | ||
68 | // check(nw >= 20.0); | ||
69 | //} | ||
70 | |||
71 | //<<<<NEW>>>> | ||
72 | //Width is FIXED: always 5 | ||
73 | |||
74 | /////////////Prevlane | ||
75 | |||
76 | ////<<<<OLD>>>> | ||
77 | ////Generating 2 linkedlists (1 for horizontal, 1 for vertical lanes) | ||
78 | //////////head lanes do not have prevLane | ||
79 | //@Constraint(severity="error", key={l}, message="6.1 Lane") | ||
80 | //pattern define_prevLane_headVertLaneDoesNotHavePrevLane(cs:CrossingScenario, l:Lane_Vertical) { | ||
81 | // CrossingScenario.vertical_head(cs, l); | ||
82 | // Lane.prevLane(l, _); | ||
83 | //} | ||
84 | // | ||
85 | //@Constraint(severity="error", key={l}, message="6.2 Lane") | ||
86 | //pattern define_prevLane_headHoriLaneDoesNotHavePrevLane(cs:CrossingScenario, l:Lane_Horizontal) { | ||
87 | // CrossingScenario.horizontal_head(cs, l); | ||
88 | // Lane.prevLane(l, _); | ||
89 | //} | ||
90 | // | ||
91 | //////////Non-head lanes must have prevLane | ||
92 | //@Constraint(severity="error", key={l}, message="6.1 Lane") | ||
93 | //pattern define_prevLane_nonheadVertLaneHasPrevLane(l:Lane_Vertical) { | ||
94 | // neg find find_headVertLane(l); | ||
95 | // neg find find_laneWithPrevLane(l); | ||
96 | //} | ||
97 | // | ||
98 | //@Constraint(severity="error", key={l}, message="6.1 Lane") | ||
99 | //pattern define_prevLane_nonheadHoriLaneHasPrevLane(l:Lane_Horizontal) { | ||
100 | // neg find find_headHoriLane(l); | ||
101 | // neg find find_laneWithPrevLane(l); | ||
102 | //} | ||
103 | // | ||
104 | //private pattern find_headVertLane(l:Lane_Vertical) { | ||
105 | // CrossingScenario.vertical_head(_, l); | ||
106 | //} | ||
107 | //private pattern find_headHoriLane(l:Lane_Horizontal) { | ||
108 | // CrossingScenario.horizontal_head(_, l); | ||
109 | //} | ||
110 | //private pattern find_laneWithPrevLane(l:Lane) { | ||
111 | // Lane.prevLane(l, _); | ||
112 | //} | ||
113 | // | ||
114 | ///////////Lane cannot be its own recursive prevLane | ||
115 | //@Constraint(severity="error", key={l}, message="6.1 Lane") | ||
116 | //pattern define_prevLane_lanecannotBeItsOwnPrevLane(l:Lane) { | ||
117 | // Lane.prevLane(l, l); | ||
118 | //} | ||
119 | // | ||
120 | //@Constraint(severity="error", key={l}, message="6.2 Lane") | ||
121 | //pattern define_prevLane_lanecannotBeItsOwnRecursivePrevLane(l:Lane) { | ||
122 | // find find_prevLane+(l, l); | ||
123 | //} | ||
124 | //private pattern find_prevLane(l1:Lane, l2:Lane) { | ||
125 | // Lane.prevLane(l1, l2); | ||
126 | //} | ||
127 | // | ||
128 | ////////Lane cannot be prevLane of >1 other lane | ||
129 | //@Constraint(severity="error", key={l1, l2}, message="7 Lane") | ||
130 | //pattern define_prevLane_lanecannotbeprevLaneof2lanes(l1:Lane, l2:Lane) { | ||
131 | // Lane.prevLane(l1, l); | ||
132 | // Lane.prevLane(l2, l); | ||
133 | // l1 != l2; | ||
134 | //} | ||
135 | // | ||
136 | ////////consecutive lanes must have same orientation | ||
137 | //@Constraint(severity="error", key={l1, l2}, message="8 Lane") | ||
138 | //pattern define_prevLane_consecutiveLanesMustHaveSameOrientation1(l1:Lane_Horizontal, l2:Lane_Vertical) { | ||
139 | // Lane.prevLane(l1, l2); | ||
140 | //} | ||
141 | // | ||
142 | //@Constraint(severity="error", key={l1, l2}, message="8 Lane") | ||
143 | //pattern define_prevLane_consecutiveLanesMustHaveSameOrientation2(l1:Lane_Vertical, l2:Lane_Horizontal) { | ||
144 | // Lane.prevLane(l1, l2); | ||
145 | //} | ||
146 | // | ||
147 | ///////////////ReferenceCoord | ||
148 | // | ||
149 | ///////refCoord of head lanes must be 0 | ||
150 | //@Constraint(severity="error", key={l}, message="6.2 Lane") | ||
151 | //pattern define_prevLane_headHoriLaneHas0RefCoord(cs:CrossingScenario, l:Lane_Horizontal) { | ||
152 | // CrossingScenario.horizontal_head(cs, l); | ||
153 | // Lane.referenceCoord(l, rc); | ||
154 | // check(rc != 0.0); | ||
155 | //} | ||
156 | // | ||
157 | //@Constraint(severity="error", key={l}, message="6.2 Lane") | ||
158 | //pattern define_prevLane_headVertLaneHas0RefCoord(cs:CrossingScenario, l:Lane_Vertical) { | ||
159 | // CrossingScenario.vertical_head(cs, l); | ||
160 | // Lane.referenceCoord(l, rc); | ||
161 | // check(rc != 0.0); | ||
162 | //} | ||
163 | // | ||
164 | ////////refCoord of a lane is prevLane.rc + curLane.numWidth | ||
165 | // | ||
166 | //@Constraint(severity="error", key={l}, message="6.2 Lane") | ||
167 | //pattern define_referenceCoord_laneWithPrevHasCorrectRefCoord(l:Lane) { | ||
168 | // Lane.prevLane(l, prev); | ||
169 | // Lane.referenceCoord(l, rcCur); | ||
170 | // | ||
171 | // Lane.numWidth(prev, wPrev); | ||
172 | // Lane.referenceCoord(prev, rcPrev); | ||
173 | // check(rcCur != rcPrev + wPrev); | ||
174 | //} | ||
175 | |||
176 | //<<<<NEW>>>> | ||
177 | //Lanes are all predefind | ||
178 | */ | ||
179 | |||
180 | ///////*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*////// | ||
181 | //Lane+Actor | ||
182 | ///////*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*////// | ||
183 | |||
184 | /////////Actor (a) on vertical lane (l) must have a.xPos=[l.rc, l.rc + l.nw] | ||
185 | @Constraint(severity = "error", key = {a}, message = "this defines the placedOn relation for vertical lanes") | ||
186 | pattern define_placedOn_actorOnVerticalLane(a : Actor, vl:Lane_Vertical) { | ||
187 | Actor.placedOn(a, vl); | ||
188 | Actor.xPos(a, x); | ||
189 | Lane.referenceCoord(vl, r); | ||
190 | check(x <= r); | ||
191 | } or { | ||
192 | Actor.placedOn(a, vl); | ||
193 | Actor.xPos(a, x); | ||
194 | Lane.referenceCoord(vl, r); | ||
195 | // //<<<<OLD>>>> | ||
196 | // Lane.numWidth(vl, w); | ||
197 | // check(x >= (r + w)); | ||
198 | |||
199 | //<<<<NEW>>>>: lanes all have width=5 | ||
200 | check(x >= (r + 5.0)); | ||
201 | } | ||
202 | |||
203 | @Constraint(severity = "error", key = {a}, message = "this defines the placedOn relation for vertical lanes") | ||
204 | pattern define_placedOn_actorOnHorizLane(a : Actor, hl:Lane_Horizontal) { | ||
205 | Actor.placedOn(a, hl); | ||
206 | Actor.yPos(a, y); | ||
207 | Lane.referenceCoord(hl, r); | ||
208 | check(y <= r); | ||
209 | } or { | ||
210 | Actor.placedOn(a, hl); | ||
211 | Actor.yPos(a, y); | ||
212 | Lane.referenceCoord(hl, r); | ||
213 | // //<<OLD>> | ||
214 | // Lane.numWidth(hl, w); | ||
215 | // check(y >= (r + w)); | ||
216 | |||
217 | //<<NEW>> | ||
218 | check(y >= (r + 5.0)); | ||
219 | |||
220 | } | ||
221 | |||
222 | ///////*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*////// | ||
223 | //Actor | ||
224 | ///////*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*////// | ||
225 | |||
226 | /////---------------- | ||
227 | //Xpos and Ypos Bounds | ||
228 | /////---------------- | ||
229 | |||
230 | private pattern helper_horiz_getXAndBounds(cs:CrossingScenario, a:Actor, | ||
231 | xMax:java Double, xP:java Double) { | ||
232 | Actor.placedOn(a, hl); | ||
233 | Lane_Horizontal(hl); | ||
234 | CrossingScenario.actors(cs, a); | ||
235 | CrossingScenario.xSize(cs, xMax); | ||
236 | Actor.xPos(a, xP); | ||
237 | } | ||
238 | |||
239 | private pattern helper_vert_getYAndBounds(cs:CrossingScenario, a:Actor, | ||
240 | yMax:java Double, yP:java Double) { | ||
241 | Actor.placedOn(a, vl); | ||
242 | Lane_Vertical(vl); | ||
243 | CrossingScenario.actors(cs, a); | ||
244 | CrossingScenario.ySize(cs, yMax); | ||
245 | Actor.yPos(a, yP); | ||
246 | } | ||
247 | |||
248 | @Constraint(severity="error", key={cs}, message="x") | ||
249 | pattern define_actor_maxXp(cs:CrossingScenario, a:Actor) { | ||
250 | find helper_horiz_getXAndBounds(cs, a, xMax, xP); | ||
251 | check(xP >= xMax);} | ||
252 | |||
253 | @Constraint(severity="error", key={cs}, message="x") | ||
254 | pattern define_actor_minXp(cs:CrossingScenario, a:Actor) { | ||
255 | find helper_horiz_getXAndBounds(cs, a, xMax, xP); | ||
256 | check(xP <= 0-xMax);} | ||
257 | |||
258 | @Constraint(severity="error", key={cs}, message="x") | ||
259 | pattern define_actor_maxYp(cs:CrossingScenario, a:Actor) { | ||
260 | find helper_vert_getYAndBounds(cs, a, yMax, yP); | ||
261 | check(yP >= yMax);} | ||
262 | |||
263 | @Constraint(severity="error", key={cs}, message="x") | ||
264 | pattern define_actor_minYp(cs:CrossingScenario, a:Actor) { | ||
265 | find helper_vert_getYAndBounds(cs, a, yMax, yP); | ||
266 | check(yP <= 0-yMax);} | ||
267 | |||
268 | /////---------------- | ||
269 | //Xspeed and Yspeed bounds | ||
270 | /////---------------- | ||
271 | |||
272 | //TODO THIS IS HARD_CODED | ||
273 | |||
274 | /////////VERTICAL LANE | ||
275 | @Constraint(severity="error", key={a}, message="7 Actor") | ||
276 | pattern define_actor_actorOnVertLaneHasxSpeed0(a:Actor) { | ||
277 | Actor.placedOn(a, vl); | ||
278 | Lane_Vertical(vl); | ||
279 | Actor.xSpeed(a, xSpeed); | ||
280 | check(xSpeed != 0); | ||
281 | } | ||
282 | |||
283 | private pattern helper_vert_getYSpeedAndBounds(cs:CrossingScenario, a:Actor, | ||
284 | ySpeedMax:java Double, ySpeed:java Double) { | ||
285 | Actor.placedOn(a, vl); | ||
286 | Lane_Vertical(vl); | ||
287 | CrossingScenario.actors(cs, a); | ||
288 | CrossingScenario.maxYSpeed(cs, ySpeedMax); | ||
289 | Actor.ySpeed(a, ySpeed); | ||
290 | } | ||
291 | |||
292 | @Constraint(severity="error", key={cs}, message="x") | ||
293 | pattern define_actor_actorOnVertLaneMinYs(cs:CrossingScenario, a:Actor) { | ||
294 | find helper_vert_getYSpeedAndBounds(cs, a, ySMax, yS); | ||
295 | check(yS <= 0-ySMax); | ||
296 | } | ||
297 | |||
298 | @Constraint(severity="error", key={cs}, message="x") | ||
299 | pattern define_actor_actorOnVertLaneMaxYs(cs:CrossingScenario, a:Actor) { | ||
300 | find helper_vert_getYSpeedAndBounds(cs, a, ySMax, yS); | ||
301 | check(yS >= ySMax); | ||
302 | } | ||
303 | |||
304 | /////////HORIZONTAL LANE | ||
305 | @Constraint(severity="error", key={a}, message="7 Actor") | ||
306 | pattern define_actor_actorOnHorizLaneHasySpeed0(a:Actor) { | ||
307 | Actor.placedOn(a, hl); | ||
308 | Lane_Horizontal(hl); | ||
309 | Actor.ySpeed(a, ySpeed); | ||
310 | check(ySpeed != 0); | ||
311 | } | ||
312 | |||
313 | private pattern helper_horiz_getXSpeedAndBounds(cs:CrossingScenario, a:Actor, | ||
314 | xSpeedMax:java Double, xSpeed:java Double) { | ||
315 | Actor.placedOn(a, hl); | ||
316 | Lane_Horizontal(hl); | ||
317 | CrossingScenario.actors(cs, a); | ||
318 | CrossingScenario.maxXSpeed(cs, xSpeedMax); | ||
319 | Actor.xSpeed(a, xSpeed); | ||
320 | } | ||
321 | |||
322 | @Constraint(severity="error", key={cs}, message="x") | ||
323 | pattern define_actor_actorOnHorizLaneMinXs(cs:CrossingScenario, a:Actor) { | ||
324 | find helper_horiz_getXSpeedAndBounds(cs, a, xSMax, xS); | ||
325 | check(xS <= 0-xSMax); | ||
326 | } | ||
327 | |||
328 | @Constraint(severity="error", key={cs}, message="x") | ||
329 | pattern define_actor_actorOnHorizLaneMaxXs(cs:CrossingScenario, a:Actor) { | ||
330 | find helper_horiz_getXSpeedAndBounds(cs, a, xSMax, xS); | ||
331 | check(xS >= xSMax); | ||
332 | } | ||
333 | |||
334 | /////---------------- | ||
335 | /////WIDTH and LENGTH | ||
336 | /////---------------- | ||
337 | |||
338 | ///////pedestrian-width (3) | ||
339 | @Constraint(severity="error", key={p}, message="3 Actor") | ||
340 | pattern define_actor_pedestrianWidth(p:Pedestrian) { | ||
341 | Pedestrian.width(p, w); | ||
342 | check(w != 1.0); | ||
343 | } | ||
344 | |||
345 | /////////pedestrian-width (4) | ||
346 | @Constraint(severity="error", key={p}, message="4 Actor") | ||
347 | pattern define_actor_pedestrianLength(p:Pedestrian) { | ||
348 | Pedestrian.length(p, l); | ||
349 | check(l != 1.0); | ||
350 | } | ||
351 | |||
352 | /////////actor-width (5) | ||
353 | @Constraint(severity="error", key={v}, message="5 Actor") | ||
354 | pattern define_actor_vehicleWidth(v:Vehicle) { | ||
355 | Vehicle.placedOn(v, lane); | ||
356 | Lane_Vertical(lane); | ||
357 | Vehicle.width(v, w); | ||
358 | check(w != 1.0); | ||
359 | } or { | ||
360 | Vehicle.placedOn(v, lane); | ||
361 | Lane_Horizontal(lane); | ||
362 | Vehicle.width(v, w); | ||
363 | check(w != 3.0); | ||
364 | } | ||
365 | |||
366 | /////////actor-width (6) | ||
367 | @Constraint(severity="error", key={v}, message="6 Actor") | ||
368 | pattern define_actor_vehicleLength(v:Vehicle) { | ||
369 | Vehicle.placedOn(v, lane); | ||
370 | Lane_Vertical(lane); | ||
371 | Vehicle.length(v, l); | ||
372 | check(l != 3.0); | ||
373 | } or { | ||
374 | Vehicle.placedOn(v, lane); | ||
375 | Lane_Horizontal(lane); | ||
376 | Vehicle.length(v, l); | ||
377 | check(l != 1.0); | ||
378 | } | ||
379 | |||
380 | /////---------------- | ||
381 | /////DERIVED FEATURES | ||
382 | /////---------------- | ||
383 | |||
384 | private pattern helper_getCoords(a1:Actor, | ||
385 | a2: Actor, x1:java Double, x2:java Double, y1:java Double, y2:java Double) { | ||
386 | Actor.xPos(a1, x1); | ||
387 | Actor.yPos(a1, y1); | ||
388 | Actor.xPos(a2, x2); | ||
389 | Actor.yPos(a2, y2); | ||
390 | } | ||
391 | |||
392 | @QueryBasedFeature | ||
393 | pattern dist_near(a1: Actor, a2: Actor) { | ||
394 | find helper_actorsAreNear(a1, a2); | ||
395 | Actor.dist_near(a1, a2); | ||
396 | } | ||
397 | |||
398 | private pattern helper_actorsAreNear(a1: Actor, a2: Actor) { | ||
399 | find helper_getCoords(a1, a2, x1, x2, y1, y2); | ||
400 | //check(dx^2 + dy^2 < 10^2) | ||
401 | check((x1-x2)*(x1-x2) + (y1-y2)*(y1-y2) < 10*10); | ||
402 | } | ||
403 | |||
404 | @QueryBasedFeature | ||
405 | pattern dist_med(a1: Actor, a2: Actor) { | ||
406 | find helper_actorsAreMed(a1, a2); | ||
407 | Actor.dist_med(a1, a2); | ||
408 | } | ||
409 | |||
410 | private pattern helper_actorsAreMed(a1: Actor, a2: Actor) { | ||
411 | find helper_getCoords(a1, a2, x1, x2, y1, y2); | ||
412 | //check(10^2 < dx^2 + dy^2 < 15^2) | ||
413 | check((x1-x2)*(x1-x2) + (y1-y2)*(y1-y2) > 10*10); | ||
414 | check((x1-x2)*(x1-x2) + (y1-y2)*(y1-y2) < 15*15); | ||
415 | } | ||
416 | |||
417 | @QueryBasedFeature | ||
418 | pattern dist_far(a1: Actor, a2: Actor) { | ||
419 | find helper_actorsAreFar(a1, a2); | ||
420 | Actor.dist_far(a1, a2); | ||
421 | } | ||
422 | |||
423 | private pattern helper_actorsAreFar(a1: Actor, a2: Actor) { | ||
424 | find helper_getCoords(a1, a2, x1, x2, y1, y2); | ||
425 | //check(dx^2 + dy^2 > 20^2) | ||
426 | check((x1-x2)*(x1-x2) + (y1-y2)*(y1-y2) > 20*20); | ||
427 | } | ||
428 | |||
429 | ///////*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*////// | ||
430 | //Relation | ||
431 | ///////*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*////// | ||
432 | |||
433 | @Constraint(severity="error", key={a1, a2}, message="1 Relation") | ||
434 | pattern define_relation_noSelfRelation(a1:Actor, a2:Actor) { | ||
435 | Relation.source(r, a1); | ||
436 | Relation.target(r, a2); | ||
437 | a1 == a2; | ||
438 | } | ||
439 | |||
440 | //TODO do above but transitively?/ | ||
441 | //////*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*////// | ||
442 | //CollisionExists | ||
443 | ///////*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*////// | ||
444 | |||
445 | |||
446 | //<<QUALTATIF ABSTRACTION>> | ||
447 | |||
448 | @Constraint(severity="error", key={a1, a2}, message="x") | ||
449 | pattern collisionExists_qualAbstr(a1:Actor, a2:Actor) { | ||
450 | CollisionExists.source(ce, a1); | ||
451 | CollisionExists.target(ce, a2); | ||
452 | Actor.placedOn(a1, vl1); | ||
453 | Lane_Vertical(vl1); | ||
454 | Actor.placedOn(a2, vl2); | ||
455 | Lane_Vertical(vl2); | ||
456 | } or { | ||
457 | CollisionExists.source(ce, a1); | ||
458 | CollisionExists.target(ce, a2); | ||
459 | Actor.placedOn(a1, hl1); | ||
460 | Lane_Horizontal(hl1); | ||
461 | Actor.placedOn(a2, hl2); | ||
462 | Lane_Horizontal(hl2); | ||
463 | } | ||
464 | |||
465 | //<<END TEMP QUALITATIF ABSTRACTION>> | ||
466 | |||
467 | //// | ||
468 | //VS VisionBlocked | ||
469 | //// | ||
470 | //TODO Very prone to corner cases | ||
471 | /* | ||
472 | @Constraint(severity="error", key={a1}, message="x") | ||
473 | pattern collisionExists_vsVisionBlockedX1(a1:Actor) { | ||
474 | VisionBlocked.blockedBy(_, a1); | ||
475 | CollisionExists.target(_, a1); | ||
476 | } | ||
477 | @Constraint(severity="error", key={a1}, message="x") | ||
478 | pattern collisionExists_vsVisionBlockedX2(a1:Actor) { | ||
479 | VisionBlocked.blockedBy(_, a1); | ||
480 | CollisionExists.source(_, a1); | ||
481 | } | ||
482 | |||
483 | @Constraint(severity="error", key={a1}, message="x") | ||
484 | pattern collisionExists_vsVisionBlocked1(a1:Actor) { | ||
485 | VisionBlocked.source(_, a1); | ||
486 | neg find helper_source(a1); | ||
487 | } | ||
488 | private pattern helper_source(a1:Actor) { | ||
489 | CollisionExists.source(_, a1); | ||
490 | } | ||
491 | |||
492 | @Constraint(severity="error", key={a1}, message="x") | ||
493 | pattern collisionExists_vsVisionBlocked2(a1:Actor) { | ||
494 | VisionBlocked.target(_, a1); | ||
495 | neg find helper_target(a1); | ||
496 | } | ||
497 | private pattern helper_target(a1:Actor) { | ||
498 | CollisionExists.target(_, a1); | ||
499 | } | ||
500 | */ | ||
501 | /* | ||
502 | @Constraint(severity="error", key={a1}, message="x") | ||
503 | pattern collisionExists_vsVisionBlocked(a1:Actor) { | ||
504 | VisionBlocked.source(vb, a1); | ||
505 | VisionBlocked.target(vb, a2); | ||
506 | CollisionExists.source(ce, a1); | ||
507 | CollisionExists.target(ce, a3); | ||
508 | a2 != a3; | ||
509 | } or { | ||
510 | VisionBlocked.source(vb, a1); | ||
511 | VisionBlocked.target(vb, a2); | ||
512 | CollisionExists.source(ce, a3); | ||
513 | CollisionExists.target(ce, a1); | ||
514 | a2 != a3; | ||
515 | } or { | ||
516 | VisionBlocked.source(vb, a2); | ||
517 | VisionBlocked.target(vb, a1); | ||
518 | CollisionExists.source(ce, a3); | ||
519 | CollisionExists.target(ce, a1); | ||
520 | a2 != a3; | ||
521 | } or { | ||
522 | VisionBlocked.source(vb, a2); | ||
523 | VisionBlocked.target(vb, a1); | ||
524 | CollisionExists.source(ce, a1); | ||
525 | CollisionExists.target(ce, a3); | ||
526 | a2 != a3; | ||
527 | } | ||
528 | */ | ||
529 | //<<END QUALITATIF ABSTRACTION>> | ||
530 | |||
531 | //// | ||
532 | //CollisionExists - Time | ||
533 | //// | ||
534 | |||
535 | |||
536 | @Constraint(severity="error", key={c}, message="x") | ||
537 | pattern collisionExists_timeWithinBound(ss:CrossingScenario, c:CollisionExists) { | ||
538 | CrossingScenario.relations(ss, c); | ||
539 | CrossingScenario.maxTime(ss, maxTime); | ||
540 | CollisionExists.collisionTime(c, cTime); | ||
541 | check(cTime >= maxTime);} | ||
542 | |||
543 | @Constraint(severity="error", key={c}, message="x") | ||
544 | pattern collisionExists_timeNotNegative(c:CollisionExists) { | ||
545 | CollisionExists. collisionTime(c, cTime); | ||
546 | check(cTime <= 0.0);} | ||
547 | |||
548 | //// | ||
549 | //CollisionExists - Physical Positioniung | ||
550 | //// | ||
551 | |||
552 | private pattern helper_getCollExistsTime(a1:Actor, a2: Actor, cTime:java Double) { | ||
553 | CollisionExists.source(c, a1); | ||
554 | CollisionExists.target(c, a2); | ||
555 | CollisionExists. collisionTime(c, cTime); | ||
556 | } | ||
557 | |||
558 | private pattern helper_getYCoords(a:Actor, l:java Double, | ||
559 | yPos:java Double, ySpeed:java Double) { | ||
560 | |||
561 | Actor.length(a, l); | ||
562 | Actor.yPos(a, yPos); | ||
563 | Actor.ySpeed(a, ySpeed); | ||
564 | } | ||
565 | |||
566 | private pattern helper_getAllYCoords(a1:Actor, a2: Actor, | ||
567 | l1:java Double, l2:java Double, yPos1:java Double, yPos2:java Double, | ||
568 | ySpeed1:java Double, ySpeed2:java Double) { | ||
569 | |||
570 | CollisionExists.source(c, a1); | ||
571 | CollisionExists.target(c, a2); | ||
572 | find helper_getYCoords(a1, l1, yPos1, ySpeed1); | ||
573 | find helper_getYCoords(a2, l2, yPos2, ySpeed2); | ||
574 | } | ||
575 | |||
576 | private pattern helper_getXCoords(a:Actor, l:java Double, | ||
577 | xPos:java Double, xSpeed:java Double) { | ||
578 | |||
579 | Actor.length(a, l); | ||
580 | Actor.xPos(a, xPos); | ||
581 | Actor.xSpeed(a, xSpeed); | ||
582 | } | ||
583 | |||
584 | private pattern helper_getAllXCoords(a1:Actor, a2: Actor, | ||
585 | w1:java Double, w2:java Double, xPos1:java Double, xPos2:java Double, | ||
586 | xSpeed1:java Double, xSpeed2:java Double) { | ||
587 | |||
588 | CollisionExists.source(c, a1); | ||
589 | CollisionExists.target(c, a2); | ||
590 | find helper_getXCoords(a1, w1, xPos1, xSpeed1); | ||
591 | find helper_getXCoords(a2, w2, xPos2, xSpeed2); | ||
592 | } | ||
593 | |||
594 | @Constraint(severity="error", key={a1}, message="x") | ||
595 | pattern collisionExists_defineCollision_y1(a1:Actor, a2:Actor) { | ||
596 | |||
597 | find helper_getCollExistsTime(a1, a2, cTime); | ||
598 | find helper_getAllYCoords(a1, a2, l1, l2, yPos1, yPos2, ySpeed1, ySpeed2); | ||
599 | |||
600 | //check(y_1_bottom > y_2_top | ||
601 | check((yPos1 + (ySpeed1 * cTime)) - (l1/2) > (yPos2 + (ySpeed2 * cTime)) + (l2/2)); | ||
602 | } | ||
603 | |||
604 | @Constraint(severity="error", key={a1}, message="x") | ||
605 | pattern collisionExists_defineCollision_y2(a1:Actor, a2:Actor) { | ||
606 | //This second one is required because we do not want to enforce both a1->c->a2 and a2->c->a1 | ||
607 | |||
608 | find helper_getCollExistsTime(a1, a2, cTime); | ||
609 | find helper_getAllYCoords(a1, a2, l1, l2, yPos1, yPos2, ySpeed1, ySpeed2); | ||
610 | |||
611 | //check(y_1_top < y_2_bottom) | ||
612 | check((yPos1 + (ySpeed1 * cTime)) + (l1/2) < (yPos2 + (ySpeed2 * cTime)) - (l2/2)); | ||
613 | } | ||
614 | |||
615 | @Constraint(severity="error", key={a1}, message="x") | ||
616 | pattern collisionExists_defineCollision_x1(a1:Actor, a2:Actor) { | ||
617 | |||
618 | find helper_getCollExistsTime(a1, a2, cTime); | ||
619 | find helper_getAllXCoords(a1, a2, w1, w2, xPos1, xPos2, xSpeed1, xSpeed2); | ||
620 | |||
621 | //check(x_1_left > x_2_right) | ||
622 | check((xPos1 + (xSpeed1 * cTime)) - (w1/2) > (xPos2 + (xSpeed2 * cTime)) + (w2/2)); | ||
623 | } | ||
624 | |||
625 | @Constraint(severity="error", key={a1}, message="x") | ||
626 | pattern collisionExists_defineCollision_x2(a1:Actor, a2:Actor) { | ||
627 | //This second one is required because we do not want to enforce both a1->c->a2 and a2->c->a1 | ||
628 | |||
629 | find helper_getCollExistsTime(a1, a2, cTime); | ||
630 | find helper_getAllXCoords(a1, a2, w1, w2, xPos1, xPos2, xSpeed1, xSpeed2); | ||
631 | |||
632 | //check(x_1_right < x_2_left) | ||
633 | check((xPos1 + (xSpeed1 * cTime)) + (w1/2) < (xPos2 + (xSpeed2 * cTime)) - (w2/2)); | ||
634 | } | ||
635 | |||
636 | |||
637 | ///////*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*////// | ||
638 | //VisionBlocked | ||
639 | ///////*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*////// | ||
640 | |||
641 | //<<QUALTATIF ABSTRACTION>> | ||
642 | |||
643 | @Constraint(severity="error", key={a1, a2}, message="x") | ||
644 | pattern visionBlocked_qualAbstr(a1:Actor, a2:Actor) { | ||
645 | VisionBlocked.source(vb, a1); | ||
646 | VisionBlocked.target(vb, a2); | ||
647 | Actor.placedOn(a1, l); | ||
648 | Actor.placedOn(a2, l); | ||
649 | } or { | ||
650 | VisionBlocked.source(vb, a1); | ||
651 | VisionBlocked.blockedBy(vb, a2); | ||
652 | Actor.placedOn(a1, l); | ||
653 | Actor.placedOn(a2, l); | ||
654 | } or { | ||
655 | VisionBlocked.blockedBy(vb, a1); | ||
656 | VisionBlocked.target(vb, a2); | ||
657 | Actor.placedOn(a1, l); | ||
658 | Actor.placedOn(a2, l); | ||
659 | } | ||
660 | |||
661 | @Constraint(severity="error", key={a1, a2}, message="x") | ||
662 | pattern visionBlocked_qualAbstr2(a1:Actor, a2:Actor) { | ||
663 | VisionBlocked.source(ce, a1); | ||
664 | VisionBlocked.target(ce, a2); | ||
665 | Actor.placedOn(a1, vl1); | ||
666 | Lane_Vertical(vl1); | ||
667 | Actor.placedOn(a2, vl2); | ||
668 | Lane_Vertical(vl2); | ||
669 | } or { | ||
670 | VisionBlocked.source(ce, a1); | ||
671 | VisionBlocked.target(ce, a2); | ||
672 | Actor.placedOn(a1, hl1); | ||
673 | Lane_Horizontal(hl1); | ||
674 | Actor.placedOn(a2, hl2); | ||
675 | Lane_Horizontal(hl2); | ||
676 | } | ||
677 | |||
678 | //<<END QUALITATIF ABSTRACTION>> | ||
679 | |||
680 | @Constraint(severity="error", key={a1, a2}, message="x") | ||
681 | pattern visionBlocked_invalidBlocker(a1:Actor, a2:Actor) { | ||
682 | VisionBlocked.source(vb, a1); | ||
683 | VisionBlocked.target(vb, a2); | ||
684 | VisionBlocked.blockedBy(vb, a2); | ||
685 | } or { | ||
686 | VisionBlocked.source(vb, a1); | ||
687 | VisionBlocked.target(vb, a2); | ||
688 | VisionBlocked.blockedBy(vb, a1); | ||
689 | } | ||
690 | |||
691 | @Constraint(severity="error", key={a1, vb}, message="x") | ||
692 | pattern visionBlocked_ites_notOnSameVertLine(a1:Actor, a2:Actor, vb:VisionBlocked) { | ||
693 | //REQUIRED to avoid division by 0 in next 2 queries | ||
694 | VisionBlocked.source(vb, a1); | ||
695 | VisionBlocked.target(vb, a2); | ||
696 | |||
697 | Actor.xPos(a1, x1); | ||
698 | Actor.xPos(a2, x2); | ||
699 | |||
700 | //check(slope of a1-to-BlockerTop < slope of a1-to-a2) | ||
701 | check(x1 == x2); | ||
702 | } | ||
703 | |||
704 | //TODO refactor? | ||
705 | @Constraint(severity="error", key={a1, vb}, message="x") | ||
706 | pattern visionBlocked_ites_top(a1:Actor, a2:Actor, vb:VisionBlocked) { | ||
707 | //This second one is required because we do not want to enforce both a1->c->a2 and a2->c->a1 | ||
708 | VisionBlocked.source(vb, a1); | ||
709 | VisionBlocked.target(vb, a2); | ||
710 | VisionBlocked.blockedBy(vb, aBlocker); | ||
711 | |||
712 | Actor.xPos(a1, x1); | ||
713 | Actor.yPos(a1, y1); | ||
714 | Actor.xPos(a2, x2); | ||
715 | Actor.yPos(a2, y2); | ||
716 | Actor.xPos(aBlocker, xBlocker); | ||
717 | Actor.yPos(aBlocker, yBlocker); | ||
718 | Actor.length(aBlocker, lenBlocker); | ||
719 | Actor.width(aBlocker, widBlocker); | ||
720 | |||
721 | //check(slope of a1-to-BlockerTop < slope of a1-to-a2) | ||
722 | check( | ||
723 | ( yBlocker - y1 + (if(xBlocker > x1){lenBlocker/2}else{0-lenBlocker/2})) / | ||
724 | ( xBlocker - x1 + (if(yBlocker > y1){0-widBlocker/2}else{widBlocker/2})) | ||
725 | < ((y1-y2)/(x1-x2))); | ||
726 | } | ||
727 | |||
728 | //TODO refactor? | ||
729 | @Constraint(severity="error", key={a1, vb}, message="x") | ||
730 | pattern visionBlocked_ites_bottom(a1:Actor, a2:Actor, vb:VisionBlocked) { | ||
731 | //This second one is required because we do not want to enforce both a1->c->a2 and a2->c->a1 | ||
732 | VisionBlocked.source(vb, a1); | ||
733 | VisionBlocked.target(vb, a2); | ||
734 | VisionBlocked.blockedBy(vb, aBlocker); | ||
735 | |||
736 | Actor.xPos(a1, x1); | ||
737 | Actor.yPos(a1, y1); | ||
738 | Actor.xPos(a2, x2); | ||
739 | Actor.yPos(a2, y2); | ||
740 | Actor.xPos(aBlocker, xBlocker); | ||
741 | Actor.yPos(aBlocker, yBlocker); | ||
742 | Actor.length(aBlocker, lenBlocker); | ||
743 | Actor.width(aBlocker, widBlocker); | ||
744 | |||
745 | //check(slope of a1-to-BlockerBottom > slope of a1-to-a2) | ||
746 | check( | ||
747 | ( yBlocker - y1 + (if(xBlocker > x1){0-lenBlocker/2}else{lenBlocker/2})) / | ||
748 | ( xBlocker - x1 + (if(yBlocker > y1){widBlocker/2}else{0-widBlocker/2})) | ||
749 | > ((y1-y2)/(x1-x2))); | ||
750 | } | ||
751 | |||
752 | //TODO refactor? | ||
753 | //TODO CORNER CASES | ||
754 | @Constraint(severity="error", key={a1, vb}, message="x") | ||
755 | pattern visionBlocked_xdistBSlargerThanxdistTS(a1:Actor, a2:Actor, vb:VisionBlocked) { | ||
756 | //This second one is required because we do not want to enforce both a1->c->a2 and a2->c->a1 | ||
757 | VisionBlocked.source(vb, a1); | ||
758 | VisionBlocked.target(vb, a2); | ||
759 | VisionBlocked.blockedBy(vb, aBlocker); | ||
760 | |||
761 | Actor.xPos(a1, x1); | ||
762 | Actor.xPos(a2, x2); | ||
763 | Actor.xPos(aBlocker, xBlocker); | ||
764 | |||
765 | //check(slope of a1-to-BlockerBottom > slope of a1-to-a2) | ||
766 | //TODO implement ABSOLUTE VALUE or MULTI-CHECK | ||
767 | check((x1-xBlocker)*(x1-xBlocker) > (x1-x2)*(x1-x2)); | ||
768 | } | ||
769 | |||
770 | //TODO refactor? | ||
771 | //TODO CORNER CASES | ||
772 | @Constraint(severity="error", key={a1, vb}, message="x") | ||
773 | pattern visionBlocked_xdistBTlargerThanxdistST(a1:Actor, a2:Actor, vb:VisionBlocked) { | ||
774 | //This second one is required because we do not want to enforce both a1->c->a2 and a2->c->a1 | ||
775 | VisionBlocked.source(vb, a2); | ||
776 | VisionBlocked.target(vb, a1); | ||
777 | VisionBlocked.blockedBy(vb, aBlocker); | ||
778 | |||
779 | Actor.xPos(a1, x1); | ||
780 | Actor.xPos(a2, x2); | ||
781 | Actor.xPos(aBlocker, xBlocker); | ||
782 | |||
783 | //check(slope of a1-to-BlockerBottom > slope of a1-to-a2) | ||
784 | //TODO implement ABSOLUTE VALUE or MULTI-CHECK | ||
785 | check((x1-xBlocker)*(x1-xBlocker) > (x1-x2)*(x1-x2)); | ||
786 | } | ||
787 | |||
788 | //TODO same as above for Y??? | ||
789 | //TODO same as above for Y ???? | ||
790 | |||
791 | /////*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*////// | ||
792 | //SeparationDistance | ||
793 | /////*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*////// | ||
794 | /* | ||
795 | private pattern helper_getSeperateActorsCoords(a1:Actor, | ||
796 | a2: Actor, sd:SeparationDistance, | ||
797 | x1:java Double, x2:java Double, y1:java Double, y2:java Double) { | ||
798 | SeperationDistance.source(sd, a1); | ||
799 | SeparationDistance.target(sd, a2); | ||
800 | |||
801 | find helper_getCoords(a1, a2, x1, x2, y1, y2); | ||
802 | } | ||
803 | |||
804 | @Constraint(severity="error", key={a1, sd}, message="x") | ||
805 | pattern SeparationDistance_near_lb(a1:Actor, a2:Actor, sd:SeparationDistance) { | ||
806 | //This second one is required because we do not want to enforce both a1->c->a2 and a2->c->a1 | ||
807 | |||
808 | find helper_getSeparateActorsCoords(a1, a2, sd, x1, x2, y1, y2); | ||
809 | SeparationDistance.distance(sd, Distance::D_Near); | ||
810 | |||
811 | //check(dx^2 + dy^2 < 5^2) | ||
812 | check((x1-x2)*(x1-x2) + (y1-y2)*(y1-y2) < 5*5); | ||
813 | } | ||
814 | |||
815 | @Constraint(severity="error", key={a1, sd}, message="x") | ||
816 | pattern SeparationDistance_near_ub(a1:Actor, a2:Actor, sd:SeparationDistance) { | ||
817 | //This second one is required because we do not want to enforce both a1->c->a2 and a2->c->a1 | ||
818 | |||
819 | find helper_getSeparateActorsCoords(a1, a2, sd, x1, x2, y1, y2); | ||
820 | SeparationDistance.distance(sd, Distance::D_Near); | ||
821 | |||
822 | //check(dx^2 + dy^2 > 10^2) | ||
823 | check((x1-x2)*(x1-x2) + (y1-y2)*(y1-y2) > 10*10); | ||
824 | } | ||
825 | |||
826 | @Constraint(severity="error", key={a1, sd}, message="x") | ||
827 | pattern SeparationDistance_medium_lb(a1:Actor, a2:Actor, sd:SeparationDistance) { | ||
828 | //This second one is required because we do not want to enforce both a1->c->a2 and a2->c->a1 | ||
829 | |||
830 | find helper_getSeparateActorsCoords(a1, a2, sd, x1, x2, y1, y2); | ||
831 | SeparationDistance.distance(sd, Distance::D_Med); | ||
832 | |||
833 | //check(dx^2 + dy^2 < 10^2) | ||
834 | check((x1-x2)*(x1-x2) + (y1-y2)*(y1-y2) < 10*10); | ||
835 | } | ||
836 | |||
837 | @Constraint(severity="error", key={a1, sd}, message="x") | ||
838 | pattern SeparationDistance_medium_ub(a1:Actor, a2:Actor, sd:SeparationDistance) { | ||
839 | //This second one is required because we do not want to enforce both a1->c->a2 and a2->c->a1 | ||
840 | |||
841 | find helper_getSeparateActorsCoords(a1, a2, sd, x1, x2, y1, y2); | ||
842 | SeparationDistance.distance(sd, Distance::D_Med); | ||
843 | |||
844 | //check(dx^2 + dy^2 > 1^2) | ||
845 | check((x1-x2)*(x1-x2) + (y1-y2)*(y1-y2) > 15*15); | ||
846 | } | ||
847 | |||
848 | @Constraint(severity="error", key={a1, sd}, message="x") | ||
849 | pattern SeparationDistance_far_lb(a1:Actor, a2:Actor, sd:SeparationDistance) { | ||
850 | //This second one is required because we do not want to enforce both a1->c->a2 and a2->c->a1 | ||
851 | |||
852 | find helper_getSeparateActorsCoords(a1, a2, sd, x1, x2, y1, y2); | ||
853 | SeparationDistance.distance(sd, Distance::D_Far); | ||
854 | |||
855 | //check(dx^2 + dy^2 < 15^2) | ||
856 | check((x1-x2)*(x1-x2) + (y1-y2)*(y1-y2) < 15*15); | ||
857 | } | ||
858 | */ | ||
859 | |||
860 | /////*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*////// | ||
861 | //CollisionDoesNotExist | ||
862 | /////*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*-_-*////// | ||
863 | /* | ||
864 | //TODO | ||
865 | @Constraint(severity="error", key={a1, cdne}, message="x") | ||
866 | pattern collisionDoesNotExist(a1:Actor, a2:Actor, ss:CrossingScenario, cdne:CollisionDoesNotExist) { | ||
867 | //This second one is required because we do not want to enforce both a1->c->a2 and a2->c->a1 | ||
868 | |||
869 | CrossingScenario.actors(ss, a1); | ||
870 | CrossingScenario.actors(ss, a2); | ||
871 | Actor.relations(a1, cdne); | ||
872 | CollisionDoesNotExist.target(cdne, a2); | ||
873 | CrossingScenario.maxTime(ss, maxTime); | ||
874 | |||
875 | Actor.width(a1, w1); | ||
876 | Actor.length(a1, l1); | ||
877 | Actor.xPos(a1, xPos1); | ||
878 | Actor.yPos(a1, yPos1); | ||
879 | Actor.xSpeed(a1, xSpeed1); | ||
880 | Actor.ySpeed(a1, ySpeed1); | ||
881 | |||
882 | Actor.width(a2, w2); | ||
883 | Actor.length(a2, l2); | ||
884 | Actor.xPos(a2, xPos2); | ||
885 | Actor.yPos(a2, yPos2); | ||
886 | Actor.xSpeed(a2, xSpeed2); | ||
887 | Actor.ySpeed(a2, ySpeed2); | ||
888 | //check(dx^2 + dy^2 < 15^2) | ||
889 | check((x1-x2)*(x1-x2) + (y1-y2)*(y1-y2) < 15*15); | ||
890 | } | ||
891 | */ \ No newline at end of file | ||
diff --git a/Domains/crossingScenario/src/crossingScenario/run/CrossingScenarioMain.java b/Domains/crossingScenario/src/crossingScenario/run/CrossingScenarioMain.java index 9d0860ec..ed227f7a 100644 --- a/Domains/crossingScenario/src/crossingScenario/run/CrossingScenarioMain.java +++ b/Domains/crossingScenario/src/crossingScenario/run/CrossingScenarioMain.java | |||
@@ -31,19 +31,18 @@ public class CrossingScenarioMain { | |||
31 | 31 | ||
32 | Path pathStats = Paths.get("outputs/statistics.csv"); | 32 | Path pathStats = Paths.get("outputs/statistics.csv"); |
33 | String pathXmi = "outputs/models/1.xmi"; | 33 | String pathXmi = "outputs/models/1.xmi"; |
34 | String savePath = "outputs/drawnModel1.png"; | ||
34 | // Path target = Paths.get("../..//Tests/MODELS2020-CaseStudies/case.study.pledge.run/measurements1/stats.csv"); | 35 | // Path target = Paths.get("../..//Tests/MODELS2020-CaseStudies/case.study.pledge.run/measurements1/stats.csv"); |
35 | // Files.copy(path, target, StandardCopyOption.REPLACE_EXISTING); | 36 | // Files.copy(path, target, StandardCopyOption.REPLACE_EXISTING); |
36 | 37 | ||
37 | printStats(pathStats); | 38 | printStats(pathStats); |
38 | DrawScenario.drawScenario(pathXmi); | 39 | DrawScenario.drawScenario(pathXmi, savePath); |
39 | 40 | ||
40 | // String p1 = "outputs/models/1.xmi"; | 41 | // String p1 = "outputs/models/1.xmi"; |
41 | // String p2 = "outputs/simplePrevLane.tgf"; | 42 | // String p2 = "outputs/simplePrevLane.tgf"; |
42 | // QueryDebug.checkPrevLanes(p1, p2); | 43 | // QueryDebug.checkPrevLanes(p1, p2); |
43 | // Desktop.getDesktop().open(new File(p2)); | 44 | // Desktop.getDesktop().open(new File(p2)); |
44 | System.gc(); | 45 | System.gc(); |
45 | System.gc(); | ||
46 | System.gc(); | ||
47 | } | 46 | } |
48 | 47 | ||
49 | public static void printStats(Path pathToStats) throws IOException { | 48 | public static void printStats(Path pathToStats) throws IOException { |
diff --git a/Domains/crossingScenario/src/crossingScenario/run/DrawScenario.java b/Domains/crossingScenario/src/crossingScenario/run/DrawScenario.java index 7f90beb2..572fea68 100644 --- a/Domains/crossingScenario/src/crossingScenario/run/DrawScenario.java +++ b/Domains/crossingScenario/src/crossingScenario/run/DrawScenario.java | |||
@@ -31,10 +31,13 @@ public class DrawScenario { | |||
31 | public static final int SIZE = 1000; | 31 | public static final int SIZE = 1000; |
32 | 32 | ||
33 | public static void main(String[] args) throws IOException { | 33 | public static void main(String[] args) throws IOException { |
34 | drawScenario("outputs/models/4.xmi"); | 34 | for (int i = 1; i <= 10; i++) { |
35 | drawScenario("outputs/models/"+i+".xmi", "outputs/drawnModel"+i+".png"); | ||
36 | System.out.println("DONE " + i); | ||
37 | } | ||
35 | } | 38 | } |
36 | 39 | ||
37 | public static File drawScenario(String pathToXmi) throws IOException { | 40 | public static File drawScenario(String pathToXmi, String saveToPath) throws IOException { |
38 | 41 | ||
39 | Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("*", new XMIResourceFactoryImpl()); | 42 | Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("*", new XMIResourceFactoryImpl()); |
40 | EPackage.Registry.INSTANCE.put(CrossingScenarioPackage.eNS_URI, CrossingScenarioPackage.eINSTANCE); | 43 | EPackage.Registry.INSTANCE.put(CrossingScenarioPackage.eNS_URI, CrossingScenarioPackage.eINSTANCE); |
@@ -134,7 +137,7 @@ public class DrawScenario { | |||
134 | } | 137 | } |
135 | g.dispose(); | 138 | g.dispose(); |
136 | 139 | ||
137 | File f = new File("outputs/drawnModel.png"); | 140 | File f = new File(saveToPath); |
138 | try { | 141 | try { |
139 | ImageIO.write(image, "png", f); | 142 | ImageIO.write(image, "png", f); |
140 | } catch (IOException e) { | 143 | } catch (IOException e) { |
@@ -142,7 +145,6 @@ public class DrawScenario { | |||
142 | } | 145 | } |
143 | 146 | ||
144 | // Desktop.getDesktop().open(f); | 147 | // Desktop.getDesktop().open(f); |
145 | System.out.println("finished!"); | ||
146 | return f; | 148 | return f; |
147 | } | 149 | } |
148 | } | 150 | } |
diff --git a/Framework/hu.bme.mit.inf.dslreasoner.viatra2logic/src/hu/bme/mit/inf/dslreasoner/viatra2logic/NumericDrealProblemSolver.java b/Framework/hu.bme.mit.inf.dslreasoner.viatra2logic/src/hu/bme/mit/inf/dslreasoner/viatra2logic/NumericDrealProblemSolver.java index e3bb2cbe..0105d985 100644 --- a/Framework/hu.bme.mit.inf.dslreasoner.viatra2logic/src/hu/bme/mit/inf/dslreasoner/viatra2logic/NumericDrealProblemSolver.java +++ b/Framework/hu.bme.mit.inf.dslreasoner.viatra2logic/src/hu/bme/mit/inf/dslreasoner/viatra2logic/NumericDrealProblemSolver.java | |||
@@ -377,7 +377,7 @@ public class NumericDrealProblemSolver extends NumericProblemSolver{ | |||
377 | //DEBUG - Print things | 377 | //DEBUG - Print things |
378 | if (outputProcess == null) { | 378 | if (outputProcess == null) { |
379 | System.err.println("TIMEOUT"); | 379 | System.err.println("TIMEOUT"); |
380 | printOutput(numProbContent); | 380 | // printOutput(numProbContent); |
381 | } | 381 | } |
382 | 382 | ||
383 | // printOutput(numProbContent); | 383 | // printOutput(numProbContent); |