diff options
author | 2021-01-11 06:42:10 -0500 | |
---|---|---|
committer | 2021-01-11 06:42:10 -0500 | |
commit | e3774317421935b8d63e2e0ad08a141853d31908 (patch) | |
tree | 2bed27fb1471b56cc04b14ce27dbc4bda12dfcda /Domains/traffic.scenarios.simplified/ecore-gen | |
parent | remove local-docker file transfer (diff) | |
download | VIATRA-Generator-e3774317421935b8d63e2e0ad08a141853d31908.tar.gz VIATRA-Generator-e3774317421935b8d63e2e0ad08a141853d31908.tar.zst VIATRA-Generator-e3774317421935b8d63e2e0ad08a141853d31908.zip |
first version of the simpleScenario MM+VQL. noRealMatches bug found
Diffstat (limited to 'Domains/traffic.scenarios.simplified/ecore-gen')
29 files changed, 6461 insertions, 0 deletions
diff --git a/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/Actor.java b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/Actor.java new file mode 100644 index 00000000..c4ee874e --- /dev/null +++ b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/Actor.java | |||
@@ -0,0 +1,205 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package simpleScenario; | ||
4 | |||
5 | import org.eclipse.emf.common.util.EList; | ||
6 | |||
7 | import org.eclipse.emf.ecore.EObject; | ||
8 | |||
9 | /** | ||
10 | * <!-- begin-user-doc --> | ||
11 | * A representation of the model object '<em><b>Actor</b></em>'. | ||
12 | * <!-- end-user-doc --> | ||
13 | * | ||
14 | * <p> | ||
15 | * The following features are supported: | ||
16 | * </p> | ||
17 | * <ul> | ||
18 | * <li>{@link simpleScenario.Actor#getType <em>Type</em>}</li> | ||
19 | * <li>{@link simpleScenario.Actor#getXPos <em>XPos</em>}</li> | ||
20 | * <li>{@link simpleScenario.Actor#getYPos <em>YPos</em>}</li> | ||
21 | * <li>{@link simpleScenario.Actor#getLength <em>Length</em>}</li> | ||
22 | * <li>{@link simpleScenario.Actor#getWidth <em>Width</em>}</li> | ||
23 | * <li>{@link simpleScenario.Actor#getSpeed <em>Speed</em>}</li> | ||
24 | * <li>{@link simpleScenario.Actor#getRelations <em>Relations</em>}</li> | ||
25 | * <li>{@link simpleScenario.Actor#getPlacedOn <em>Placed On</em>}</li> | ||
26 | * </ul> | ||
27 | * | ||
28 | * @see simpleScenario.SimpleScenarioPackage#getActor() | ||
29 | * @model | ||
30 | * @generated | ||
31 | */ | ||
32 | public interface Actor extends EObject { | ||
33 | /** | ||
34 | * Returns the value of the '<em><b>Type</b></em>' attribute. | ||
35 | * The literals are from the enumeration {@link simpleScenario.ActorType}. | ||
36 | * <!-- begin-user-doc --> | ||
37 | * <!-- end-user-doc --> | ||
38 | * @return the value of the '<em>Type</em>' attribute. | ||
39 | * @see simpleScenario.ActorType | ||
40 | * @see #setType(ActorType) | ||
41 | * @see simpleScenario.SimpleScenarioPackage#getActor_Type() | ||
42 | * @model required="true" | ||
43 | * @generated | ||
44 | */ | ||
45 | ActorType getType(); | ||
46 | |||
47 | /** | ||
48 | * Sets the value of the '{@link simpleScenario.Actor#getType <em>Type</em>}' attribute. | ||
49 | * <!-- begin-user-doc --> | ||
50 | * <!-- end-user-doc --> | ||
51 | * @param value the new value of the '<em>Type</em>' attribute. | ||
52 | * @see simpleScenario.ActorType | ||
53 | * @see #getType() | ||
54 | * @generated | ||
55 | */ | ||
56 | void setType(ActorType value); | ||
57 | |||
58 | /** | ||
59 | * Returns the value of the '<em><b>XPos</b></em>' attribute. | ||
60 | * <!-- begin-user-doc --> | ||
61 | * <!-- end-user-doc --> | ||
62 | * @return the value of the '<em>XPos</em>' attribute. | ||
63 | * @see #setXPos(double) | ||
64 | * @see simpleScenario.SimpleScenarioPackage#getActor_XPos() | ||
65 | * @model required="true" | ||
66 | * @generated | ||
67 | */ | ||
68 | double getXPos(); | ||
69 | |||
70 | /** | ||
71 | * Sets the value of the '{@link simpleScenario.Actor#getXPos <em>XPos</em>}' attribute. | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @param value the new value of the '<em>XPos</em>' attribute. | ||
75 | * @see #getXPos() | ||
76 | * @generated | ||
77 | */ | ||
78 | void setXPos(double value); | ||
79 | |||
80 | /** | ||
81 | * Returns the value of the '<em><b>YPos</b></em>' attribute. | ||
82 | * <!-- begin-user-doc --> | ||
83 | * <!-- end-user-doc --> | ||
84 | * @return the value of the '<em>YPos</em>' attribute. | ||
85 | * @see #setYPos(double) | ||
86 | * @see simpleScenario.SimpleScenarioPackage#getActor_YPos() | ||
87 | * @model required="true" | ||
88 | * @generated | ||
89 | */ | ||
90 | double getYPos(); | ||
91 | |||
92 | /** | ||
93 | * Sets the value of the '{@link simpleScenario.Actor#getYPos <em>YPos</em>}' attribute. | ||
94 | * <!-- begin-user-doc --> | ||
95 | * <!-- end-user-doc --> | ||
96 | * @param value the new value of the '<em>YPos</em>' attribute. | ||
97 | * @see #getYPos() | ||
98 | * @generated | ||
99 | */ | ||
100 | void setYPos(double value); | ||
101 | |||
102 | /** | ||
103 | * Returns the value of the '<em><b>Length</b></em>' attribute. | ||
104 | * The default value is <code>"0.0"</code>. | ||
105 | * <!-- begin-user-doc --> | ||
106 | * <!-- end-user-doc --> | ||
107 | * @return the value of the '<em>Length</em>' attribute. | ||
108 | * @see #setLength(double) | ||
109 | * @see simpleScenario.SimpleScenarioPackage#getActor_Length() | ||
110 | * @model default="0.0" | ||
111 | * @generated | ||
112 | */ | ||
113 | double getLength(); | ||
114 | |||
115 | /** | ||
116 | * Sets the value of the '{@link simpleScenario.Actor#getLength <em>Length</em>}' attribute. | ||
117 | * <!-- begin-user-doc --> | ||
118 | * <!-- end-user-doc --> | ||
119 | * @param value the new value of the '<em>Length</em>' attribute. | ||
120 | * @see #getLength() | ||
121 | * @generated | ||
122 | */ | ||
123 | void setLength(double value); | ||
124 | |||
125 | /** | ||
126 | * Returns the value of the '<em><b>Width</b></em>' attribute. | ||
127 | * <!-- begin-user-doc --> | ||
128 | * <!-- end-user-doc --> | ||
129 | * @return the value of the '<em>Width</em>' attribute. | ||
130 | * @see #setWidth(double) | ||
131 | * @see simpleScenario.SimpleScenarioPackage#getActor_Width() | ||
132 | * @model | ||
133 | * @generated | ||
134 | */ | ||
135 | double getWidth(); | ||
136 | |||
137 | /** | ||
138 | * Sets the value of the '{@link simpleScenario.Actor#getWidth <em>Width</em>}' attribute. | ||
139 | * <!-- begin-user-doc --> | ||
140 | * <!-- end-user-doc --> | ||
141 | * @param value the new value of the '<em>Width</em>' attribute. | ||
142 | * @see #getWidth() | ||
143 | * @generated | ||
144 | */ | ||
145 | void setWidth(double value); | ||
146 | |||
147 | /** | ||
148 | * Returns the value of the '<em><b>Speed</b></em>' attribute. | ||
149 | * <!-- begin-user-doc --> | ||
150 | * <!-- end-user-doc --> | ||
151 | * @return the value of the '<em>Speed</em>' attribute. | ||
152 | * @see #setSpeed(double) | ||
153 | * @see simpleScenario.SimpleScenarioPackage#getActor_Speed() | ||
154 | * @model required="true" | ||
155 | * @generated | ||
156 | */ | ||
157 | double getSpeed(); | ||
158 | |||
159 | /** | ||
160 | * Sets the value of the '{@link simpleScenario.Actor#getSpeed <em>Speed</em>}' attribute. | ||
161 | * <!-- begin-user-doc --> | ||
162 | * <!-- end-user-doc --> | ||
163 | * @param value the new value of the '<em>Speed</em>' attribute. | ||
164 | * @see #getSpeed() | ||
165 | * @generated | ||
166 | */ | ||
167 | void setSpeed(double value); | ||
168 | |||
169 | /** | ||
170 | * Returns the value of the '<em><b>Relations</b></em>' containment reference list. | ||
171 | * The list contents are of type {@link simpleScenario.Relation}. | ||
172 | * <!-- begin-user-doc --> | ||
173 | * <!-- end-user-doc --> | ||
174 | * @return the value of the '<em>Relations</em>' containment reference list. | ||
175 | * @see simpleScenario.SimpleScenarioPackage#getActor_Relations() | ||
176 | * @model containment="true" | ||
177 | * @generated | ||
178 | */ | ||
179 | EList<Relation> getRelations(); | ||
180 | |||
181 | /** | ||
182 | * Returns the value of the '<em><b>Placed On</b></em>' reference. | ||
183 | * It is bidirectional and its opposite is '{@link simpleScenario.Lane#getActors <em>Actors</em>}'. | ||
184 | * <!-- begin-user-doc --> | ||
185 | * <!-- end-user-doc --> | ||
186 | * @return the value of the '<em>Placed On</em>' reference. | ||
187 | * @see #setPlacedOn(Lane) | ||
188 | * @see simpleScenario.SimpleScenarioPackage#getActor_PlacedOn() | ||
189 | * @see simpleScenario.Lane#getActors | ||
190 | * @model opposite="actors" required="true" | ||
191 | * @generated | ||
192 | */ | ||
193 | Lane getPlacedOn(); | ||
194 | |||
195 | /** | ||
196 | * Sets the value of the '{@link simpleScenario.Actor#getPlacedOn <em>Placed On</em>}' reference. | ||
197 | * <!-- begin-user-doc --> | ||
198 | * <!-- end-user-doc --> | ||
199 | * @param value the new value of the '<em>Placed On</em>' reference. | ||
200 | * @see #getPlacedOn() | ||
201 | * @generated | ||
202 | */ | ||
203 | void setPlacedOn(Lane value); | ||
204 | |||
205 | } // Actor | ||
diff --git a/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/ActorType.java b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/ActorType.java new file mode 100644 index 00000000..7d9e1988 --- /dev/null +++ b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/ActorType.java | |||
@@ -0,0 +1,209 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package simpleScenario; | ||
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>Actor Type</b></em>', | ||
14 | * and utility methods for working with them. | ||
15 | * <!-- end-user-doc --> | ||
16 | * @see simpleScenario.SimpleScenarioPackage#getActorType() | ||
17 | * @model | ||
18 | * @generated | ||
19 | */ | ||
20 | public enum ActorType implements Enumerator { | ||
21 | /** | ||
22 | * The '<em><b>Pedestrian</b></em>' literal object. | ||
23 | * <!-- begin-user-doc --> | ||
24 | * <!-- end-user-doc --> | ||
25 | * @see #PEDESTRIAN_VALUE | ||
26 | * @generated | ||
27 | * @ordered | ||
28 | */ | ||
29 | PEDESTRIAN(0, "Pedestrian", "Pedestrian"), | ||
30 | |||
31 | /** | ||
32 | * The '<em><b>Vehicle</b></em>' literal object. | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @see #VEHICLE_VALUE | ||
36 | * @generated | ||
37 | * @ordered | ||
38 | */ | ||
39 | VEHICLE(1, "Vehicle", "Vehicle"); | ||
40 | |||
41 | /** | ||
42 | * The '<em><b>Pedestrian</b></em>' literal value. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @see #PEDESTRIAN | ||
46 | * @model name="Pedestrian" | ||
47 | * @generated | ||
48 | * @ordered | ||
49 | */ | ||
50 | public static final int PEDESTRIAN_VALUE = 0; | ||
51 | |||
52 | /** | ||
53 | * The '<em><b>Vehicle</b></em>' literal value. | ||
54 | * <!-- begin-user-doc --> | ||
55 | * <!-- end-user-doc --> | ||
56 | * @see #VEHICLE | ||
57 | * @model name="Vehicle" | ||
58 | * @generated | ||
59 | * @ordered | ||
60 | */ | ||
61 | public static final int VEHICLE_VALUE = 1; | ||
62 | |||
63 | /** | ||
64 | * An array of all the '<em><b>Actor Type</b></em>' enumerators. | ||
65 | * <!-- begin-user-doc --> | ||
66 | * <!-- end-user-doc --> | ||
67 | * @generated | ||
68 | */ | ||
69 | private static final ActorType[] VALUES_ARRAY = | ||
70 | new ActorType[] { | ||
71 | PEDESTRIAN, | ||
72 | VEHICLE, | ||
73 | }; | ||
74 | |||
75 | /** | ||
76 | * A public read-only list of all the '<em><b>Actor Type</b></em>' enumerators. | ||
77 | * <!-- begin-user-doc --> | ||
78 | * <!-- end-user-doc --> | ||
79 | * @generated | ||
80 | */ | ||
81 | public static final List<ActorType> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); | ||
82 | |||
83 | /** | ||
84 | * Returns the '<em><b>Actor Type</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 ActorType get(String literal) { | ||
92 | for (int i = 0; i < VALUES_ARRAY.length; ++i) { | ||
93 | ActorType 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>Actor Type</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 ActorType getByName(String name) { | ||
110 | for (int i = 0; i < VALUES_ARRAY.length; ++i) { | ||
111 | ActorType 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>Actor Type</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 ActorType get(int value) { | ||
128 | switch (value) { | ||
129 | case PEDESTRIAN_VALUE: return PEDESTRIAN; | ||
130 | case VEHICLE_VALUE: return VEHICLE; | ||
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 ActorType(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 | } //ActorType | ||
diff --git a/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/CollisionDoesNotExist.java b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/CollisionDoesNotExist.java new file mode 100644 index 00000000..2699bb94 --- /dev/null +++ b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/CollisionDoesNotExist.java | |||
@@ -0,0 +1,17 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package simpleScenario; | ||
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 simpleScenario.SimpleScenarioPackage#getCollisionDoesNotExist() | ||
13 | * @model | ||
14 | * @generated | ||
15 | */ | ||
16 | public interface CollisionDoesNotExist extends TemporalRelation { | ||
17 | } // CollisionDoesNotExist | ||
diff --git a/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/CollisionExists.java b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/CollisionExists.java new file mode 100644 index 00000000..9e495f61 --- /dev/null +++ b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/CollisionExists.java | |||
@@ -0,0 +1,45 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package simpleScenario; | ||
4 | |||
5 | |||
6 | /** | ||
7 | * <!-- begin-user-doc --> | ||
8 | * A representation of the model object '<em><b>Collision Exists</b></em>'. | ||
9 | * <!-- end-user-doc --> | ||
10 | * | ||
11 | * <p> | ||
12 | * The following features are supported: | ||
13 | * </p> | ||
14 | * <ul> | ||
15 | * <li>{@link simpleScenario.CollisionExists#getCollisionTime <em>Collision Time</em>}</li> | ||
16 | * </ul> | ||
17 | * | ||
18 | * @see simpleScenario.SimpleScenarioPackage#getCollisionExists() | ||
19 | * @model | ||
20 | * @generated | ||
21 | */ | ||
22 | public interface CollisionExists extends TemporalRelation { | ||
23 | /** | ||
24 | * Returns the value of the '<em><b>Collision Time</b></em>' attribute. | ||
25 | * <!-- begin-user-doc --> | ||
26 | * <!-- end-user-doc --> | ||
27 | * @return the value of the '<em>Collision Time</em>' attribute. | ||
28 | * @see #setCollisionTime(double) | ||
29 | * @see simpleScenario.SimpleScenarioPackage#getCollisionExists_CollisionTime() | ||
30 | * @model required="true" | ||
31 | * @generated | ||
32 | */ | ||
33 | double getCollisionTime(); | ||
34 | |||
35 | /** | ||
36 | * Sets the value of the '{@link simpleScenario.CollisionExists#getCollisionTime <em>Collision Time</em>}' attribute. | ||
37 | * <!-- begin-user-doc --> | ||
38 | * <!-- end-user-doc --> | ||
39 | * @param value the new value of the '<em>Collision Time</em>' attribute. | ||
40 | * @see #getCollisionTime() | ||
41 | * @generated | ||
42 | */ | ||
43 | void setCollisionTime(double value); | ||
44 | |||
45 | } // CollisionExists | ||
diff --git a/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/Lane.java b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/Lane.java new file mode 100644 index 00000000..e4d608e6 --- /dev/null +++ b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/Lane.java | |||
@@ -0,0 +1,151 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package simpleScenario; | ||
4 | |||
5 | import org.eclipse.emf.common.util.EList; | ||
6 | |||
7 | import org.eclipse.emf.ecore.EObject; | ||
8 | |||
9 | /** | ||
10 | * <!-- begin-user-doc --> | ||
11 | * A representation of the model object '<em><b>Lane</b></em>'. | ||
12 | * <!-- end-user-doc --> | ||
13 | * | ||
14 | * <p> | ||
15 | * The following features are supported: | ||
16 | * </p> | ||
17 | * <ul> | ||
18 | * <li>{@link simpleScenario.Lane#getOrientation <em>Orientation</em>}</li> | ||
19 | * <li>{@link simpleScenario.Lane#getWidth <em>Width</em>}</li> | ||
20 | * <li>{@link simpleScenario.Lane#getReferenceCoord <em>Reference Coord</em>}</li> | ||
21 | * <li>{@link simpleScenario.Lane#getAdjacent <em>Adjacent</em>}</li> | ||
22 | * <li>{@link simpleScenario.Lane#getActors <em>Actors</em>}</li> | ||
23 | * <li>{@link simpleScenario.Lane#getWidthNum <em>Width Num</em>}</li> | ||
24 | * </ul> | ||
25 | * | ||
26 | * @see simpleScenario.SimpleScenarioPackage#getLane() | ||
27 | * @model | ||
28 | * @generated | ||
29 | */ | ||
30 | public interface Lane extends EObject { | ||
31 | /** | ||
32 | * Returns the value of the '<em><b>Orientation</b></em>' attribute. | ||
33 | * The literals are from the enumeration {@link simpleScenario.Orientation}. | ||
34 | * <!-- begin-user-doc --> | ||
35 | * <!-- end-user-doc --> | ||
36 | * @return the value of the '<em>Orientation</em>' attribute. | ||
37 | * @see simpleScenario.Orientation | ||
38 | * @see #setOrientation(Orientation) | ||
39 | * @see simpleScenario.SimpleScenarioPackage#getLane_Orientation() | ||
40 | * @model required="true" | ||
41 | * @generated | ||
42 | */ | ||
43 | Orientation getOrientation(); | ||
44 | |||
45 | /** | ||
46 | * Sets the value of the '{@link simpleScenario.Lane#getOrientation <em>Orientation</em>}' attribute. | ||
47 | * <!-- begin-user-doc --> | ||
48 | * <!-- end-user-doc --> | ||
49 | * @param value the new value of the '<em>Orientation</em>' attribute. | ||
50 | * @see simpleScenario.Orientation | ||
51 | * @see #getOrientation() | ||
52 | * @generated | ||
53 | */ | ||
54 | void setOrientation(Orientation value); | ||
55 | |||
56 | /** | ||
57 | * Returns the value of the '<em><b>Width</b></em>' attribute. | ||
58 | * The literals are from the enumeration {@link simpleScenario.Size}. | ||
59 | * <!-- begin-user-doc --> | ||
60 | * <!-- end-user-doc --> | ||
61 | * @return the value of the '<em>Width</em>' attribute. | ||
62 | * @see simpleScenario.Size | ||
63 | * @see #setWidth(Size) | ||
64 | * @see simpleScenario.SimpleScenarioPackage#getLane_Width() | ||
65 | * @model required="true" | ||
66 | * @generated | ||
67 | */ | ||
68 | Size getWidth(); | ||
69 | |||
70 | /** | ||
71 | * Sets the value of the '{@link simpleScenario.Lane#getWidth <em>Width</em>}' attribute. | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @param value the new value of the '<em>Width</em>' attribute. | ||
75 | * @see simpleScenario.Size | ||
76 | * @see #getWidth() | ||
77 | * @generated | ||
78 | */ | ||
79 | void setWidth(Size value); | ||
80 | |||
81 | /** | ||
82 | * Returns the value of the '<em><b>Reference Coord</b></em>' attribute. | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @return the value of the '<em>Reference Coord</em>' attribute. | ||
86 | * @see #setReferenceCoord(double) | ||
87 | * @see simpleScenario.SimpleScenarioPackage#getLane_ReferenceCoord() | ||
88 | * @model required="true" | ||
89 | * @generated | ||
90 | */ | ||
91 | double getReferenceCoord(); | ||
92 | |||
93 | /** | ||
94 | * Sets the value of the '{@link simpleScenario.Lane#getReferenceCoord <em>Reference Coord</em>}' attribute. | ||
95 | * <!-- begin-user-doc --> | ||
96 | * <!-- end-user-doc --> | ||
97 | * @param value the new value of the '<em>Reference Coord</em>' attribute. | ||
98 | * @see #getReferenceCoord() | ||
99 | * @generated | ||
100 | */ | ||
101 | void setReferenceCoord(double value); | ||
102 | |||
103 | /** | ||
104 | * Returns the value of the '<em><b>Adjacent</b></em>' reference list. | ||
105 | * The list contents are of type {@link simpleScenario.Lane}. | ||
106 | * <!-- begin-user-doc --> | ||
107 | * <!-- end-user-doc --> | ||
108 | * @return the value of the '<em>Adjacent</em>' reference list. | ||
109 | * @see simpleScenario.SimpleScenarioPackage#getLane_Adjacent() | ||
110 | * @model upper="2" | ||
111 | * @generated | ||
112 | */ | ||
113 | EList<Lane> getAdjacent(); | ||
114 | |||
115 | /** | ||
116 | * Returns the value of the '<em><b>Actors</b></em>' reference list. | ||
117 | * The list contents are of type {@link simpleScenario.Actor}. | ||
118 | * It is bidirectional and its opposite is '{@link simpleScenario.Actor#getPlacedOn <em>Placed On</em>}'. | ||
119 | * <!-- begin-user-doc --> | ||
120 | * <!-- end-user-doc --> | ||
121 | * @return the value of the '<em>Actors</em>' reference list. | ||
122 | * @see simpleScenario.SimpleScenarioPackage#getLane_Actors() | ||
123 | * @see simpleScenario.Actor#getPlacedOn | ||
124 | * @model opposite="placedOn" | ||
125 | * @generated | ||
126 | */ | ||
127 | EList<Actor> getActors(); | ||
128 | |||
129 | /** | ||
130 | * Returns the value of the '<em><b>Width Num</b></em>' attribute. | ||
131 | * <!-- begin-user-doc --> | ||
132 | * <!-- end-user-doc --> | ||
133 | * @return the value of the '<em>Width Num</em>' attribute. | ||
134 | * @see #setWidthNum(double) | ||
135 | * @see simpleScenario.SimpleScenarioPackage#getLane_WidthNum() | ||
136 | * @model required="true" | ||
137 | * @generated | ||
138 | */ | ||
139 | double getWidthNum(); | ||
140 | |||
141 | /** | ||
142 | * Sets the value of the '{@link simpleScenario.Lane#getWidthNum <em>Width Num</em>}' attribute. | ||
143 | * <!-- begin-user-doc --> | ||
144 | * <!-- end-user-doc --> | ||
145 | * @param value the new value of the '<em>Width Num</em>' attribute. | ||
146 | * @see #getWidthNum() | ||
147 | * @generated | ||
148 | */ | ||
149 | void setWidthNum(double value); | ||
150 | |||
151 | } // Lane | ||
diff --git a/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/Orientation.java b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/Orientation.java new file mode 100644 index 00000000..8f7f055b --- /dev/null +++ b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/Orientation.java | |||
@@ -0,0 +1,209 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package simpleScenario; | ||
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 simpleScenario.SimpleScenarioPackage#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/traffic.scenarios.simplified/ecore-gen/simpleScenario/Relation.java b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/Relation.java new file mode 100644 index 00000000..eaaa296f --- /dev/null +++ b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/Relation.java | |||
@@ -0,0 +1,46 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package simpleScenario; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EObject; | ||
6 | |||
7 | /** | ||
8 | * <!-- begin-user-doc --> | ||
9 | * A representation of the model object '<em><b>Relation</b></em>'. | ||
10 | * <!-- end-user-doc --> | ||
11 | * | ||
12 | * <p> | ||
13 | * The following features are supported: | ||
14 | * </p> | ||
15 | * <ul> | ||
16 | * <li>{@link simpleScenario.Relation#getTarget <em>Target</em>}</li> | ||
17 | * </ul> | ||
18 | * | ||
19 | * @see simpleScenario.SimpleScenarioPackage#getRelation() | ||
20 | * @model abstract="true" | ||
21 | * @generated | ||
22 | */ | ||
23 | public interface Relation extends EObject { | ||
24 | /** | ||
25 | * Returns the value of the '<em><b>Target</b></em>' reference. | ||
26 | * <!-- begin-user-doc --> | ||
27 | * <!-- end-user-doc --> | ||
28 | * @return the value of the '<em>Target</em>' reference. | ||
29 | * @see #setTarget(Actor) | ||
30 | * @see simpleScenario.SimpleScenarioPackage#getRelation_Target() | ||
31 | * @model required="true" | ||
32 | * @generated | ||
33 | */ | ||
34 | Actor getTarget(); | ||
35 | |||
36 | /** | ||
37 | * Sets the value of the '{@link simpleScenario.Relation#getTarget <em>Target</em>}' reference. | ||
38 | * <!-- begin-user-doc --> | ||
39 | * <!-- end-user-doc --> | ||
40 | * @param value the new value of the '<em>Target</em>' reference. | ||
41 | * @see #getTarget() | ||
42 | * @generated | ||
43 | */ | ||
44 | void setTarget(Actor value); | ||
45 | |||
46 | } // Relation | ||
diff --git a/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/SeperationDistance.java b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/SeperationDistance.java new file mode 100644 index 00000000..276be42a --- /dev/null +++ b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/SeperationDistance.java | |||
@@ -0,0 +1,48 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package simpleScenario; | ||
4 | |||
5 | |||
6 | /** | ||
7 | * <!-- begin-user-doc --> | ||
8 | * A representation of the model object '<em><b>Seperation Distance</b></em>'. | ||
9 | * <!-- end-user-doc --> | ||
10 | * | ||
11 | * <p> | ||
12 | * The following features are supported: | ||
13 | * </p> | ||
14 | * <ul> | ||
15 | * <li>{@link simpleScenario.SeperationDistance#getDistance <em>Distance</em>}</li> | ||
16 | * </ul> | ||
17 | * | ||
18 | * @see simpleScenario.SimpleScenarioPackage#getSeperationDistance() | ||
19 | * @model | ||
20 | * @generated | ||
21 | */ | ||
22 | public interface SeperationDistance extends SpatialRelation { | ||
23 | /** | ||
24 | * Returns the value of the '<em><b>Distance</b></em>' attribute. | ||
25 | * The literals are from the enumeration {@link simpleScenario.Size}. | ||
26 | * <!-- begin-user-doc --> | ||
27 | * <!-- end-user-doc --> | ||
28 | * @return the value of the '<em>Distance</em>' attribute. | ||
29 | * @see simpleScenario.Size | ||
30 | * @see #setDistance(Size) | ||
31 | * @see simpleScenario.SimpleScenarioPackage#getSeperationDistance_Distance() | ||
32 | * @model required="true" | ||
33 | * @generated | ||
34 | */ | ||
35 | Size getDistance(); | ||
36 | |||
37 | /** | ||
38 | * Sets the value of the '{@link simpleScenario.SeperationDistance#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 simpleScenario.Size | ||
43 | * @see #getDistance() | ||
44 | * @generated | ||
45 | */ | ||
46 | void setDistance(Size value); | ||
47 | |||
48 | } // SeperationDistance | ||
diff --git a/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/SimpleScenario.java b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/SimpleScenario.java new file mode 100644 index 00000000..bc92c51c --- /dev/null +++ b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/SimpleScenario.java | |||
@@ -0,0 +1,97 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package simpleScenario; | ||
4 | |||
5 | import org.eclipse.emf.common.util.EList; | ||
6 | |||
7 | import org.eclipse.emf.ecore.EObject; | ||
8 | |||
9 | /** | ||
10 | * <!-- begin-user-doc --> | ||
11 | * A representation of the model object '<em><b>Simple Scenario</b></em>'. | ||
12 | * <!-- end-user-doc --> | ||
13 | * | ||
14 | * <p> | ||
15 | * The following features are supported: | ||
16 | * </p> | ||
17 | * <ul> | ||
18 | * <li>{@link simpleScenario.SimpleScenario#getXSize <em>XSize</em>}</li> | ||
19 | * <li>{@link simpleScenario.SimpleScenario#getYSize <em>YSize</em>}</li> | ||
20 | * <li>{@link simpleScenario.SimpleScenario#getActors <em>Actors</em>}</li> | ||
21 | * <li>{@link simpleScenario.SimpleScenario#getLanes <em>Lanes</em>}</li> | ||
22 | * </ul> | ||
23 | * | ||
24 | * @see simpleScenario.SimpleScenarioPackage#getSimpleScenario() | ||
25 | * @model | ||
26 | * @generated | ||
27 | */ | ||
28 | public interface SimpleScenario extends EObject { | ||
29 | /** | ||
30 | * Returns the value of the '<em><b>XSize</b></em>' attribute. | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @return the value of the '<em>XSize</em>' attribute. | ||
34 | * @see #setXSize(double) | ||
35 | * @see simpleScenario.SimpleScenarioPackage#getSimpleScenario_XSize() | ||
36 | * @model | ||
37 | * @generated | ||
38 | */ | ||
39 | double getXSize(); | ||
40 | |||
41 | /** | ||
42 | * Sets the value of the '{@link simpleScenario.SimpleScenario#getXSize <em>XSize</em>}' attribute. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @param value the new value of the '<em>XSize</em>' attribute. | ||
46 | * @see #getXSize() | ||
47 | * @generated | ||
48 | */ | ||
49 | void setXSize(double value); | ||
50 | |||
51 | /** | ||
52 | * Returns the value of the '<em><b>YSize</b></em>' attribute. | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @return the value of the '<em>YSize</em>' attribute. | ||
56 | * @see #setYSize(double) | ||
57 | * @see simpleScenario.SimpleScenarioPackage#getSimpleScenario_YSize() | ||
58 | * @model | ||
59 | * @generated | ||
60 | */ | ||
61 | double getYSize(); | ||
62 | |||
63 | /** | ||
64 | * Sets the value of the '{@link simpleScenario.SimpleScenario#getYSize <em>YSize</em>}' attribute. | ||
65 | * <!-- begin-user-doc --> | ||
66 | * <!-- end-user-doc --> | ||
67 | * @param value the new value of the '<em>YSize</em>' attribute. | ||
68 | * @see #getYSize() | ||
69 | * @generated | ||
70 | */ | ||
71 | void setYSize(double value); | ||
72 | |||
73 | /** | ||
74 | * Returns the value of the '<em><b>Actors</b></em>' containment reference list. | ||
75 | * The list contents are of type {@link simpleScenario.Actor}. | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <!-- end-user-doc --> | ||
78 | * @return the value of the '<em>Actors</em>' containment reference list. | ||
79 | * @see simpleScenario.SimpleScenarioPackage#getSimpleScenario_Actors() | ||
80 | * @model containment="true" | ||
81 | * @generated | ||
82 | */ | ||
83 | EList<Actor> getActors(); | ||
84 | |||
85 | /** | ||
86 | * Returns the value of the '<em><b>Lanes</b></em>' containment reference list. | ||
87 | * The list contents are of type {@link simpleScenario.Lane}. | ||
88 | * <!-- begin-user-doc --> | ||
89 | * <!-- end-user-doc --> | ||
90 | * @return the value of the '<em>Lanes</em>' containment reference list. | ||
91 | * @see simpleScenario.SimpleScenarioPackage#getSimpleScenario_Lanes() | ||
92 | * @model containment="true" | ||
93 | * @generated | ||
94 | */ | ||
95 | EList<Lane> getLanes(); | ||
96 | |||
97 | } // SimpleScenario | ||
diff --git a/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/SimpleScenarioFactory.java b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/SimpleScenarioFactory.java new file mode 100644 index 00000000..043d33b2 --- /dev/null +++ b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/SimpleScenarioFactory.java | |||
@@ -0,0 +1,96 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package simpleScenario; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EFactory; | ||
6 | |||
7 | /** | ||
8 | * <!-- begin-user-doc --> | ||
9 | * The <b>Factory</b> for the model. | ||
10 | * It provides a create method for each non-abstract class of the model. | ||
11 | * <!-- end-user-doc --> | ||
12 | * @see simpleScenario.SimpleScenarioPackage | ||
13 | * @generated | ||
14 | */ | ||
15 | public interface SimpleScenarioFactory extends EFactory { | ||
16 | /** | ||
17 | * The singleton instance of the factory. | ||
18 | * <!-- begin-user-doc --> | ||
19 | * <!-- end-user-doc --> | ||
20 | * @generated | ||
21 | */ | ||
22 | SimpleScenarioFactory eINSTANCE = simpleScenario.impl.SimpleScenarioFactoryImpl.init(); | ||
23 | |||
24 | /** | ||
25 | * Returns a new object of class '<em>Simple Scenario</em>'. | ||
26 | * <!-- begin-user-doc --> | ||
27 | * <!-- end-user-doc --> | ||
28 | * @return a new object of class '<em>Simple Scenario</em>'. | ||
29 | * @generated | ||
30 | */ | ||
31 | SimpleScenario createSimpleScenario(); | ||
32 | |||
33 | /** | ||
34 | * Returns a new object of class '<em>Lane</em>'. | ||
35 | * <!-- begin-user-doc --> | ||
36 | * <!-- end-user-doc --> | ||
37 | * @return a new object of class '<em>Lane</em>'. | ||
38 | * @generated | ||
39 | */ | ||
40 | Lane createLane(); | ||
41 | |||
42 | /** | ||
43 | * Returns a new object of class '<em>Actor</em>'. | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @return a new object of class '<em>Actor</em>'. | ||
47 | * @generated | ||
48 | */ | ||
49 | Actor createActor(); | ||
50 | |||
51 | /** | ||
52 | * Returns a new object of class '<em>Vision Blocked</em>'. | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @return a new object of class '<em>Vision Blocked</em>'. | ||
56 | * @generated | ||
57 | */ | ||
58 | VisionBlocked createVisionBlocked(); | ||
59 | |||
60 | /** | ||
61 | * Returns a new object of class '<em>Seperation Distance</em>'. | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @return a new object of class '<em>Seperation Distance</em>'. | ||
65 | * @generated | ||
66 | */ | ||
67 | SeperationDistance createSeperationDistance(); | ||
68 | |||
69 | /** | ||
70 | * Returns a new object of class '<em>Collision Exists</em>'. | ||
71 | * <!-- begin-user-doc --> | ||
72 | * <!-- end-user-doc --> | ||
73 | * @return a new object of class '<em>Collision Exists</em>'. | ||
74 | * @generated | ||
75 | */ | ||
76 | CollisionExists createCollisionExists(); | ||
77 | |||
78 | /** | ||
79 | * Returns a new object of class '<em>Collision Does Not Exist</em>'. | ||
80 | * <!-- begin-user-doc --> | ||
81 | * <!-- end-user-doc --> | ||
82 | * @return a new object of class '<em>Collision Does Not Exist</em>'. | ||
83 | * @generated | ||
84 | */ | ||
85 | CollisionDoesNotExist createCollisionDoesNotExist(); | ||
86 | |||
87 | /** | ||
88 | * Returns the package supported by this factory. | ||
89 | * <!-- begin-user-doc --> | ||
90 | * <!-- end-user-doc --> | ||
91 | * @return the package supported by this factory. | ||
92 | * @generated | ||
93 | */ | ||
94 | SimpleScenarioPackage getSimpleScenarioPackage(); | ||
95 | |||
96 | } //SimpleScenarioFactory | ||
diff --git a/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/SimpleScenarioPackage.java b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/SimpleScenarioPackage.java new file mode 100644 index 00000000..16b3e021 --- /dev/null +++ b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/SimpleScenarioPackage.java | |||
@@ -0,0 +1,1326 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package simpleScenario; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EAttribute; | ||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | import org.eclipse.emf.ecore.EEnum; | ||
8 | import org.eclipse.emf.ecore.EPackage; | ||
9 | import org.eclipse.emf.ecore.EReference; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * The <b>Package</b> for the model. | ||
14 | * It contains accessors for the meta objects to represent | ||
15 | * <ul> | ||
16 | * <li>each class,</li> | ||
17 | * <li>each feature of each class,</li> | ||
18 | * <li>each operation of each class,</li> | ||
19 | * <li>each enum,</li> | ||
20 | * <li>and each data type</li> | ||
21 | * </ul> | ||
22 | * <!-- end-user-doc --> | ||
23 | * @see simpleScenario.SimpleScenarioFactory | ||
24 | * @model kind="package" | ||
25 | * @generated | ||
26 | */ | ||
27 | public interface SimpleScenarioPackage extends EPackage { | ||
28 | /** | ||
29 | * The package name. | ||
30 | * <!-- begin-user-doc --> | ||
31 | * <!-- end-user-doc --> | ||
32 | * @generated | ||
33 | */ | ||
34 | String eNAME = "simpleScenario"; | ||
35 | |||
36 | /** | ||
37 | * The package namespace URI. | ||
38 | * <!-- begin-user-doc --> | ||
39 | * <!-- end-user-doc --> | ||
40 | * @generated | ||
41 | */ | ||
42 | String eNS_URI = "http://www.example.com/simpleScenario"; | ||
43 | |||
44 | /** | ||
45 | * The package namespace name. | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @generated | ||
49 | */ | ||
50 | String eNS_PREFIX = "simpleScenario"; | ||
51 | |||
52 | /** | ||
53 | * The singleton instance of the package. | ||
54 | * <!-- begin-user-doc --> | ||
55 | * <!-- end-user-doc --> | ||
56 | * @generated | ||
57 | */ | ||
58 | SimpleScenarioPackage eINSTANCE = simpleScenario.impl.SimpleScenarioPackageImpl.init(); | ||
59 | |||
60 | /** | ||
61 | * The meta object id for the '{@link simpleScenario.impl.SimpleScenarioImpl <em>Simple Scenario</em>}' class. | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @see simpleScenario.impl.SimpleScenarioImpl | ||
65 | * @see simpleScenario.impl.SimpleScenarioPackageImpl#getSimpleScenario() | ||
66 | * @generated | ||
67 | */ | ||
68 | int SIMPLE_SCENARIO = 0; | ||
69 | |||
70 | /** | ||
71 | * The feature id for the '<em><b>XSize</b></em>' attribute. | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @generated | ||
75 | * @ordered | ||
76 | */ | ||
77 | int SIMPLE_SCENARIO__XSIZE = 0; | ||
78 | |||
79 | /** | ||
80 | * The feature id for the '<em><b>YSize</b></em>' attribute. | ||
81 | * <!-- begin-user-doc --> | ||
82 | * <!-- end-user-doc --> | ||
83 | * @generated | ||
84 | * @ordered | ||
85 | */ | ||
86 | int SIMPLE_SCENARIO__YSIZE = 1; | ||
87 | |||
88 | /** | ||
89 | * The feature id for the '<em><b>Actors</b></em>' containment reference list. | ||
90 | * <!-- begin-user-doc --> | ||
91 | * <!-- end-user-doc --> | ||
92 | * @generated | ||
93 | * @ordered | ||
94 | */ | ||
95 | int SIMPLE_SCENARIO__ACTORS = 2; | ||
96 | |||
97 | /** | ||
98 | * The feature id for the '<em><b>Lanes</b></em>' containment reference list. | ||
99 | * <!-- begin-user-doc --> | ||
100 | * <!-- end-user-doc --> | ||
101 | * @generated | ||
102 | * @ordered | ||
103 | */ | ||
104 | int SIMPLE_SCENARIO__LANES = 3; | ||
105 | |||
106 | /** | ||
107 | * The number of structural features of the '<em>Simple Scenario</em>' class. | ||
108 | * <!-- begin-user-doc --> | ||
109 | * <!-- end-user-doc --> | ||
110 | * @generated | ||
111 | * @ordered | ||
112 | */ | ||
113 | int SIMPLE_SCENARIO_FEATURE_COUNT = 4; | ||
114 | |||
115 | /** | ||
116 | * The number of operations of the '<em>Simple Scenario</em>' class. | ||
117 | * <!-- begin-user-doc --> | ||
118 | * <!-- end-user-doc --> | ||
119 | * @generated | ||
120 | * @ordered | ||
121 | */ | ||
122 | int SIMPLE_SCENARIO_OPERATION_COUNT = 0; | ||
123 | |||
124 | /** | ||
125 | * The meta object id for the '{@link simpleScenario.impl.LaneImpl <em>Lane</em>}' class. | ||
126 | * <!-- begin-user-doc --> | ||
127 | * <!-- end-user-doc --> | ||
128 | * @see simpleScenario.impl.LaneImpl | ||
129 | * @see simpleScenario.impl.SimpleScenarioPackageImpl#getLane() | ||
130 | * @generated | ||
131 | */ | ||
132 | int LANE = 1; | ||
133 | |||
134 | /** | ||
135 | * The feature id for the '<em><b>Orientation</b></em>' attribute. | ||
136 | * <!-- begin-user-doc --> | ||
137 | * <!-- end-user-doc --> | ||
138 | * @generated | ||
139 | * @ordered | ||
140 | */ | ||
141 | int LANE__ORIENTATION = 0; | ||
142 | |||
143 | /** | ||
144 | * The feature id for the '<em><b>Width</b></em>' attribute. | ||
145 | * <!-- begin-user-doc --> | ||
146 | * <!-- end-user-doc --> | ||
147 | * @generated | ||
148 | * @ordered | ||
149 | */ | ||
150 | int LANE__WIDTH = 1; | ||
151 | |||
152 | /** | ||
153 | * The feature id for the '<em><b>Reference Coord</b></em>' attribute. | ||
154 | * <!-- begin-user-doc --> | ||
155 | * <!-- end-user-doc --> | ||
156 | * @generated | ||
157 | * @ordered | ||
158 | */ | ||
159 | int LANE__REFERENCE_COORD = 2; | ||
160 | |||
161 | /** | ||
162 | * The feature id for the '<em><b>Adjacent</b></em>' reference list. | ||
163 | * <!-- begin-user-doc --> | ||
164 | * <!-- end-user-doc --> | ||
165 | * @generated | ||
166 | * @ordered | ||
167 | */ | ||
168 | int LANE__ADJACENT = 3; | ||
169 | |||
170 | /** | ||
171 | * The feature id for the '<em><b>Actors</b></em>' reference list. | ||
172 | * <!-- begin-user-doc --> | ||
173 | * <!-- end-user-doc --> | ||
174 | * @generated | ||
175 | * @ordered | ||
176 | */ | ||
177 | int LANE__ACTORS = 4; | ||
178 | |||
179 | /** | ||
180 | * The feature id for the '<em><b>Width Num</b></em>' attribute. | ||
181 | * <!-- begin-user-doc --> | ||
182 | * <!-- end-user-doc --> | ||
183 | * @generated | ||
184 | * @ordered | ||
185 | */ | ||
186 | int LANE__WIDTH_NUM = 5; | ||
187 | |||
188 | /** | ||
189 | * The number of structural features of the '<em>Lane</em>' class. | ||
190 | * <!-- begin-user-doc --> | ||
191 | * <!-- end-user-doc --> | ||
192 | * @generated | ||
193 | * @ordered | ||
194 | */ | ||
195 | int LANE_FEATURE_COUNT = 6; | ||
196 | |||
197 | /** | ||
198 | * The number of operations of the '<em>Lane</em>' class. | ||
199 | * <!-- begin-user-doc --> | ||
200 | * <!-- end-user-doc --> | ||
201 | * @generated | ||
202 | * @ordered | ||
203 | */ | ||
204 | int LANE_OPERATION_COUNT = 0; | ||
205 | |||
206 | /** | ||
207 | * The meta object id for the '{@link simpleScenario.impl.ActorImpl <em>Actor</em>}' class. | ||
208 | * <!-- begin-user-doc --> | ||
209 | * <!-- end-user-doc --> | ||
210 | * @see simpleScenario.impl.ActorImpl | ||
211 | * @see simpleScenario.impl.SimpleScenarioPackageImpl#getActor() | ||
212 | * @generated | ||
213 | */ | ||
214 | int ACTOR = 2; | ||
215 | |||
216 | /** | ||
217 | * The feature id for the '<em><b>Type</b></em>' attribute. | ||
218 | * <!-- begin-user-doc --> | ||
219 | * <!-- end-user-doc --> | ||
220 | * @generated | ||
221 | * @ordered | ||
222 | */ | ||
223 | int ACTOR__TYPE = 0; | ||
224 | |||
225 | /** | ||
226 | * The feature id for the '<em><b>XPos</b></em>' attribute. | ||
227 | * <!-- begin-user-doc --> | ||
228 | * <!-- end-user-doc --> | ||
229 | * @generated | ||
230 | * @ordered | ||
231 | */ | ||
232 | int ACTOR__XPOS = 1; | ||
233 | |||
234 | /** | ||
235 | * The feature id for the '<em><b>YPos</b></em>' attribute. | ||
236 | * <!-- begin-user-doc --> | ||
237 | * <!-- end-user-doc --> | ||
238 | * @generated | ||
239 | * @ordered | ||
240 | */ | ||
241 | int ACTOR__YPOS = 2; | ||
242 | |||
243 | /** | ||
244 | * The feature id for the '<em><b>Length</b></em>' attribute. | ||
245 | * <!-- begin-user-doc --> | ||
246 | * <!-- end-user-doc --> | ||
247 | * @generated | ||
248 | * @ordered | ||
249 | */ | ||
250 | int ACTOR__LENGTH = 3; | ||
251 | |||
252 | /** | ||
253 | * The feature id for the '<em><b>Width</b></em>' attribute. | ||
254 | * <!-- begin-user-doc --> | ||
255 | * <!-- end-user-doc --> | ||
256 | * @generated | ||
257 | * @ordered | ||
258 | */ | ||
259 | int ACTOR__WIDTH = 4; | ||
260 | |||
261 | /** | ||
262 | * The feature id for the '<em><b>Speed</b></em>' attribute. | ||
263 | * <!-- begin-user-doc --> | ||
264 | * <!-- end-user-doc --> | ||
265 | * @generated | ||
266 | * @ordered | ||
267 | */ | ||
268 | int ACTOR__SPEED = 5; | ||
269 | |||
270 | /** | ||
271 | * The feature id for the '<em><b>Relations</b></em>' containment reference list. | ||
272 | * <!-- begin-user-doc --> | ||
273 | * <!-- end-user-doc --> | ||
274 | * @generated | ||
275 | * @ordered | ||
276 | */ | ||
277 | int ACTOR__RELATIONS = 6; | ||
278 | |||
279 | /** | ||
280 | * The feature id for the '<em><b>Placed On</b></em>' reference. | ||
281 | * <!-- begin-user-doc --> | ||
282 | * <!-- end-user-doc --> | ||
283 | * @generated | ||
284 | * @ordered | ||
285 | */ | ||
286 | int ACTOR__PLACED_ON = 7; | ||
287 | |||
288 | /** | ||
289 | * The number of structural features of the '<em>Actor</em>' class. | ||
290 | * <!-- begin-user-doc --> | ||
291 | * <!-- end-user-doc --> | ||
292 | * @generated | ||
293 | * @ordered | ||
294 | */ | ||
295 | int ACTOR_FEATURE_COUNT = 8; | ||
296 | |||
297 | /** | ||
298 | * The number of operations of the '<em>Actor</em>' class. | ||
299 | * <!-- begin-user-doc --> | ||
300 | * <!-- end-user-doc --> | ||
301 | * @generated | ||
302 | * @ordered | ||
303 | */ | ||
304 | int ACTOR_OPERATION_COUNT = 0; | ||
305 | |||
306 | /** | ||
307 | * The meta object id for the '{@link simpleScenario.impl.RelationImpl <em>Relation</em>}' class. | ||
308 | * <!-- begin-user-doc --> | ||
309 | * <!-- end-user-doc --> | ||
310 | * @see simpleScenario.impl.RelationImpl | ||
311 | * @see simpleScenario.impl.SimpleScenarioPackageImpl#getRelation() | ||
312 | * @generated | ||
313 | */ | ||
314 | int RELATION = 3; | ||
315 | |||
316 | /** | ||
317 | * The feature id for the '<em><b>Target</b></em>' reference. | ||
318 | * <!-- begin-user-doc --> | ||
319 | * <!-- end-user-doc --> | ||
320 | * @generated | ||
321 | * @ordered | ||
322 | */ | ||
323 | int RELATION__TARGET = 0; | ||
324 | |||
325 | /** | ||
326 | * The number of structural features of the '<em>Relation</em>' class. | ||
327 | * <!-- begin-user-doc --> | ||
328 | * <!-- end-user-doc --> | ||
329 | * @generated | ||
330 | * @ordered | ||
331 | */ | ||
332 | int RELATION_FEATURE_COUNT = 1; | ||
333 | |||
334 | /** | ||
335 | * The number of operations of the '<em>Relation</em>' class. | ||
336 | * <!-- begin-user-doc --> | ||
337 | * <!-- end-user-doc --> | ||
338 | * @generated | ||
339 | * @ordered | ||
340 | */ | ||
341 | int RELATION_OPERATION_COUNT = 0; | ||
342 | |||
343 | /** | ||
344 | * The meta object id for the '{@link simpleScenario.impl.SpatialRelationImpl <em>Spatial Relation</em>}' class. | ||
345 | * <!-- begin-user-doc --> | ||
346 | * <!-- end-user-doc --> | ||
347 | * @see simpleScenario.impl.SpatialRelationImpl | ||
348 | * @see simpleScenario.impl.SimpleScenarioPackageImpl#getSpatialRelation() | ||
349 | * @generated | ||
350 | */ | ||
351 | int SPATIAL_RELATION = 4; | ||
352 | |||
353 | /** | ||
354 | * The feature id for the '<em><b>Target</b></em>' reference. | ||
355 | * <!-- begin-user-doc --> | ||
356 | * <!-- end-user-doc --> | ||
357 | * @generated | ||
358 | * @ordered | ||
359 | */ | ||
360 | int SPATIAL_RELATION__TARGET = RELATION__TARGET; | ||
361 | |||
362 | /** | ||
363 | * The number of structural features of the '<em>Spatial Relation</em>' class. | ||
364 | * <!-- begin-user-doc --> | ||
365 | * <!-- end-user-doc --> | ||
366 | * @generated | ||
367 | * @ordered | ||
368 | */ | ||
369 | int SPATIAL_RELATION_FEATURE_COUNT = RELATION_FEATURE_COUNT + 0; | ||
370 | |||
371 | /** | ||
372 | * The number of operations of the '<em>Spatial Relation</em>' class. | ||
373 | * <!-- begin-user-doc --> | ||
374 | * <!-- end-user-doc --> | ||
375 | * @generated | ||
376 | * @ordered | ||
377 | */ | ||
378 | int SPATIAL_RELATION_OPERATION_COUNT = RELATION_OPERATION_COUNT + 0; | ||
379 | |||
380 | /** | ||
381 | * The meta object id for the '{@link simpleScenario.impl.TemporalRelationImpl <em>Temporal Relation</em>}' class. | ||
382 | * <!-- begin-user-doc --> | ||
383 | * <!-- end-user-doc --> | ||
384 | * @see simpleScenario.impl.TemporalRelationImpl | ||
385 | * @see simpleScenario.impl.SimpleScenarioPackageImpl#getTemporalRelation() | ||
386 | * @generated | ||
387 | */ | ||
388 | int TEMPORAL_RELATION = 5; | ||
389 | |||
390 | /** | ||
391 | * The feature id for the '<em><b>Target</b></em>' reference. | ||
392 | * <!-- begin-user-doc --> | ||
393 | * <!-- end-user-doc --> | ||
394 | * @generated | ||
395 | * @ordered | ||
396 | */ | ||
397 | int TEMPORAL_RELATION__TARGET = RELATION__TARGET; | ||
398 | |||
399 | /** | ||
400 | * The number of structural features of the '<em>Temporal Relation</em>' class. | ||
401 | * <!-- begin-user-doc --> | ||
402 | * <!-- end-user-doc --> | ||
403 | * @generated | ||
404 | * @ordered | ||
405 | */ | ||
406 | int TEMPORAL_RELATION_FEATURE_COUNT = RELATION_FEATURE_COUNT + 0; | ||
407 | |||
408 | /** | ||
409 | * The number of operations of the '<em>Temporal Relation</em>' class. | ||
410 | * <!-- begin-user-doc --> | ||
411 | * <!-- end-user-doc --> | ||
412 | * @generated | ||
413 | * @ordered | ||
414 | */ | ||
415 | int TEMPORAL_RELATION_OPERATION_COUNT = RELATION_OPERATION_COUNT + 0; | ||
416 | |||
417 | /** | ||
418 | * The meta object id for the '{@link simpleScenario.impl.VisionBlockedImpl <em>Vision Blocked</em>}' class. | ||
419 | * <!-- begin-user-doc --> | ||
420 | * <!-- end-user-doc --> | ||
421 | * @see simpleScenario.impl.VisionBlockedImpl | ||
422 | * @see simpleScenario.impl.SimpleScenarioPackageImpl#getVisionBlocked() | ||
423 | * @generated | ||
424 | */ | ||
425 | int VISION_BLOCKED = 6; | ||
426 | |||
427 | /** | ||
428 | * The feature id for the '<em><b>Target</b></em>' reference. | ||
429 | * <!-- begin-user-doc --> | ||
430 | * <!-- end-user-doc --> | ||
431 | * @generated | ||
432 | * @ordered | ||
433 | */ | ||
434 | int VISION_BLOCKED__TARGET = SPATIAL_RELATION__TARGET; | ||
435 | |||
436 | /** | ||
437 | * The feature id for the '<em><b>Blocked By</b></em>' reference. | ||
438 | * <!-- begin-user-doc --> | ||
439 | * <!-- end-user-doc --> | ||
440 | * @generated | ||
441 | * @ordered | ||
442 | */ | ||
443 | int VISION_BLOCKED__BLOCKED_BY = SPATIAL_RELATION_FEATURE_COUNT + 0; | ||
444 | |||
445 | /** | ||
446 | * The number of structural features of the '<em>Vision Blocked</em>' class. | ||
447 | * <!-- begin-user-doc --> | ||
448 | * <!-- end-user-doc --> | ||
449 | * @generated | ||
450 | * @ordered | ||
451 | */ | ||
452 | int VISION_BLOCKED_FEATURE_COUNT = SPATIAL_RELATION_FEATURE_COUNT + 1; | ||
453 | |||
454 | /** | ||
455 | * The number of operations of the '<em>Vision Blocked</em>' class. | ||
456 | * <!-- begin-user-doc --> | ||
457 | * <!-- end-user-doc --> | ||
458 | * @generated | ||
459 | * @ordered | ||
460 | */ | ||
461 | int VISION_BLOCKED_OPERATION_COUNT = SPATIAL_RELATION_OPERATION_COUNT + 0; | ||
462 | |||
463 | /** | ||
464 | * The meta object id for the '{@link simpleScenario.impl.SeperationDistanceImpl <em>Seperation Distance</em>}' class. | ||
465 | * <!-- begin-user-doc --> | ||
466 | * <!-- end-user-doc --> | ||
467 | * @see simpleScenario.impl.SeperationDistanceImpl | ||
468 | * @see simpleScenario.impl.SimpleScenarioPackageImpl#getSeperationDistance() | ||
469 | * @generated | ||
470 | */ | ||
471 | int SEPERATION_DISTANCE = 7; | ||
472 | |||
473 | /** | ||
474 | * The feature id for the '<em><b>Target</b></em>' reference. | ||
475 | * <!-- begin-user-doc --> | ||
476 | * <!-- end-user-doc --> | ||
477 | * @generated | ||
478 | * @ordered | ||
479 | */ | ||
480 | int SEPERATION_DISTANCE__TARGET = SPATIAL_RELATION__TARGET; | ||
481 | |||
482 | /** | ||
483 | * The feature id for the '<em><b>Distance</b></em>' attribute. | ||
484 | * <!-- begin-user-doc --> | ||
485 | * <!-- end-user-doc --> | ||
486 | * @generated | ||
487 | * @ordered | ||
488 | */ | ||
489 | int SEPERATION_DISTANCE__DISTANCE = SPATIAL_RELATION_FEATURE_COUNT + 0; | ||
490 | |||
491 | /** | ||
492 | * The number of structural features of the '<em>Seperation Distance</em>' class. | ||
493 | * <!-- begin-user-doc --> | ||
494 | * <!-- end-user-doc --> | ||
495 | * @generated | ||
496 | * @ordered | ||
497 | */ | ||
498 | int SEPERATION_DISTANCE_FEATURE_COUNT = SPATIAL_RELATION_FEATURE_COUNT + 1; | ||
499 | |||
500 | /** | ||
501 | * The number of operations of the '<em>Seperation Distance</em>' class. | ||
502 | * <!-- begin-user-doc --> | ||
503 | * <!-- end-user-doc --> | ||
504 | * @generated | ||
505 | * @ordered | ||
506 | */ | ||
507 | int SEPERATION_DISTANCE_OPERATION_COUNT = SPATIAL_RELATION_OPERATION_COUNT + 0; | ||
508 | |||
509 | /** | ||
510 | * The meta object id for the '{@link simpleScenario.impl.CollisionExistsImpl <em>Collision Exists</em>}' class. | ||
511 | * <!-- begin-user-doc --> | ||
512 | * <!-- end-user-doc --> | ||
513 | * @see simpleScenario.impl.CollisionExistsImpl | ||
514 | * @see simpleScenario.impl.SimpleScenarioPackageImpl#getCollisionExists() | ||
515 | * @generated | ||
516 | */ | ||
517 | int COLLISION_EXISTS = 8; | ||
518 | |||
519 | /** | ||
520 | * The feature id for the '<em><b>Target</b></em>' reference. | ||
521 | * <!-- begin-user-doc --> | ||
522 | * <!-- end-user-doc --> | ||
523 | * @generated | ||
524 | * @ordered | ||
525 | */ | ||
526 | int COLLISION_EXISTS__TARGET = TEMPORAL_RELATION__TARGET; | ||
527 | |||
528 | /** | ||
529 | * The feature id for the '<em><b>Collision Time</b></em>' attribute. | ||
530 | * <!-- begin-user-doc --> | ||
531 | * <!-- end-user-doc --> | ||
532 | * @generated | ||
533 | * @ordered | ||
534 | */ | ||
535 | int COLLISION_EXISTS__COLLISION_TIME = TEMPORAL_RELATION_FEATURE_COUNT + 0; | ||
536 | |||
537 | /** | ||
538 | * The number of structural features of the '<em>Collision Exists</em>' class. | ||
539 | * <!-- begin-user-doc --> | ||
540 | * <!-- end-user-doc --> | ||
541 | * @generated | ||
542 | * @ordered | ||
543 | */ | ||
544 | int COLLISION_EXISTS_FEATURE_COUNT = TEMPORAL_RELATION_FEATURE_COUNT + 1; | ||
545 | |||
546 | /** | ||
547 | * The number of operations of the '<em>Collision Exists</em>' class. | ||
548 | * <!-- begin-user-doc --> | ||
549 | * <!-- end-user-doc --> | ||
550 | * @generated | ||
551 | * @ordered | ||
552 | */ | ||
553 | int COLLISION_EXISTS_OPERATION_COUNT = TEMPORAL_RELATION_OPERATION_COUNT + 0; | ||
554 | |||
555 | /** | ||
556 | * The meta object id for the '{@link simpleScenario.impl.CollisionDoesNotExistImpl <em>Collision Does Not Exist</em>}' class. | ||
557 | * <!-- begin-user-doc --> | ||
558 | * <!-- end-user-doc --> | ||
559 | * @see simpleScenario.impl.CollisionDoesNotExistImpl | ||
560 | * @see simpleScenario.impl.SimpleScenarioPackageImpl#getCollisionDoesNotExist() | ||
561 | * @generated | ||
562 | */ | ||
563 | int COLLISION_DOES_NOT_EXIST = 9; | ||
564 | |||
565 | /** | ||
566 | * The feature id for the '<em><b>Target</b></em>' reference. | ||
567 | * <!-- begin-user-doc --> | ||
568 | * <!-- end-user-doc --> | ||
569 | * @generated | ||
570 | * @ordered | ||
571 | */ | ||
572 | int COLLISION_DOES_NOT_EXIST__TARGET = TEMPORAL_RELATION__TARGET; | ||
573 | |||
574 | /** | ||
575 | * The number of structural features of the '<em>Collision Does Not Exist</em>' class. | ||
576 | * <!-- begin-user-doc --> | ||
577 | * <!-- end-user-doc --> | ||
578 | * @generated | ||
579 | * @ordered | ||
580 | */ | ||
581 | int COLLISION_DOES_NOT_EXIST_FEATURE_COUNT = TEMPORAL_RELATION_FEATURE_COUNT + 0; | ||
582 | |||
583 | /** | ||
584 | * The number of operations of the '<em>Collision Does Not Exist</em>' class. | ||
585 | * <!-- begin-user-doc --> | ||
586 | * <!-- end-user-doc --> | ||
587 | * @generated | ||
588 | * @ordered | ||
589 | */ | ||
590 | int COLLISION_DOES_NOT_EXIST_OPERATION_COUNT = TEMPORAL_RELATION_OPERATION_COUNT + 0; | ||
591 | |||
592 | /** | ||
593 | * The meta object id for the '{@link simpleScenario.Orientation <em>Orientation</em>}' enum. | ||
594 | * <!-- begin-user-doc --> | ||
595 | * <!-- end-user-doc --> | ||
596 | * @see simpleScenario.Orientation | ||
597 | * @see simpleScenario.impl.SimpleScenarioPackageImpl#getOrientation() | ||
598 | * @generated | ||
599 | */ | ||
600 | int ORIENTATION = 10; | ||
601 | |||
602 | /** | ||
603 | * The meta object id for the '{@link simpleScenario.Size <em>Size</em>}' enum. | ||
604 | * <!-- begin-user-doc --> | ||
605 | * <!-- end-user-doc --> | ||
606 | * @see simpleScenario.Size | ||
607 | * @see simpleScenario.impl.SimpleScenarioPackageImpl#getSize() | ||
608 | * @generated | ||
609 | */ | ||
610 | int SIZE = 11; | ||
611 | |||
612 | /** | ||
613 | * The meta object id for the '{@link simpleScenario.ActorType <em>Actor Type</em>}' enum. | ||
614 | * <!-- begin-user-doc --> | ||
615 | * <!-- end-user-doc --> | ||
616 | * @see simpleScenario.ActorType | ||
617 | * @see simpleScenario.impl.SimpleScenarioPackageImpl#getActorType() | ||
618 | * @generated | ||
619 | */ | ||
620 | int ACTOR_TYPE = 12; | ||
621 | |||
622 | |||
623 | /** | ||
624 | * Returns the meta object for class '{@link simpleScenario.SimpleScenario <em>Simple Scenario</em>}'. | ||
625 | * <!-- begin-user-doc --> | ||
626 | * <!-- end-user-doc --> | ||
627 | * @return the meta object for class '<em>Simple Scenario</em>'. | ||
628 | * @see simpleScenario.SimpleScenario | ||
629 | * @generated | ||
630 | */ | ||
631 | EClass getSimpleScenario(); | ||
632 | |||
633 | /** | ||
634 | * Returns the meta object for the attribute '{@link simpleScenario.SimpleScenario#getXSize <em>XSize</em>}'. | ||
635 | * <!-- begin-user-doc --> | ||
636 | * <!-- end-user-doc --> | ||
637 | * @return the meta object for the attribute '<em>XSize</em>'. | ||
638 | * @see simpleScenario.SimpleScenario#getXSize() | ||
639 | * @see #getSimpleScenario() | ||
640 | * @generated | ||
641 | */ | ||
642 | EAttribute getSimpleScenario_XSize(); | ||
643 | |||
644 | /** | ||
645 | * Returns the meta object for the attribute '{@link simpleScenario.SimpleScenario#getYSize <em>YSize</em>}'. | ||
646 | * <!-- begin-user-doc --> | ||
647 | * <!-- end-user-doc --> | ||
648 | * @return the meta object for the attribute '<em>YSize</em>'. | ||
649 | * @see simpleScenario.SimpleScenario#getYSize() | ||
650 | * @see #getSimpleScenario() | ||
651 | * @generated | ||
652 | */ | ||
653 | EAttribute getSimpleScenario_YSize(); | ||
654 | |||
655 | /** | ||
656 | * Returns the meta object for the containment reference list '{@link simpleScenario.SimpleScenario#getActors <em>Actors</em>}'. | ||
657 | * <!-- begin-user-doc --> | ||
658 | * <!-- end-user-doc --> | ||
659 | * @return the meta object for the containment reference list '<em>Actors</em>'. | ||
660 | * @see simpleScenario.SimpleScenario#getActors() | ||
661 | * @see #getSimpleScenario() | ||
662 | * @generated | ||
663 | */ | ||
664 | EReference getSimpleScenario_Actors(); | ||
665 | |||
666 | /** | ||
667 | * Returns the meta object for the containment reference list '{@link simpleScenario.SimpleScenario#getLanes <em>Lanes</em>}'. | ||
668 | * <!-- begin-user-doc --> | ||
669 | * <!-- end-user-doc --> | ||
670 | * @return the meta object for the containment reference list '<em>Lanes</em>'. | ||
671 | * @see simpleScenario.SimpleScenario#getLanes() | ||
672 | * @see #getSimpleScenario() | ||
673 | * @generated | ||
674 | */ | ||
675 | EReference getSimpleScenario_Lanes(); | ||
676 | |||
677 | /** | ||
678 | * Returns the meta object for class '{@link simpleScenario.Lane <em>Lane</em>}'. | ||
679 | * <!-- begin-user-doc --> | ||
680 | * <!-- end-user-doc --> | ||
681 | * @return the meta object for class '<em>Lane</em>'. | ||
682 | * @see simpleScenario.Lane | ||
683 | * @generated | ||
684 | */ | ||
685 | EClass getLane(); | ||
686 | |||
687 | /** | ||
688 | * Returns the meta object for the attribute '{@link simpleScenario.Lane#getOrientation <em>Orientation</em>}'. | ||
689 | * <!-- begin-user-doc --> | ||
690 | * <!-- end-user-doc --> | ||
691 | * @return the meta object for the attribute '<em>Orientation</em>'. | ||
692 | * @see simpleScenario.Lane#getOrientation() | ||
693 | * @see #getLane() | ||
694 | * @generated | ||
695 | */ | ||
696 | EAttribute getLane_Orientation(); | ||
697 | |||
698 | /** | ||
699 | * Returns the meta object for the attribute '{@link simpleScenario.Lane#getWidth <em>Width</em>}'. | ||
700 | * <!-- begin-user-doc --> | ||
701 | * <!-- end-user-doc --> | ||
702 | * @return the meta object for the attribute '<em>Width</em>'. | ||
703 | * @see simpleScenario.Lane#getWidth() | ||
704 | * @see #getLane() | ||
705 | * @generated | ||
706 | */ | ||
707 | EAttribute getLane_Width(); | ||
708 | |||
709 | /** | ||
710 | * Returns the meta object for the attribute '{@link simpleScenario.Lane#getReferenceCoord <em>Reference Coord</em>}'. | ||
711 | * <!-- begin-user-doc --> | ||
712 | * <!-- end-user-doc --> | ||
713 | * @return the meta object for the attribute '<em>Reference Coord</em>'. | ||
714 | * @see simpleScenario.Lane#getReferenceCoord() | ||
715 | * @see #getLane() | ||
716 | * @generated | ||
717 | */ | ||
718 | EAttribute getLane_ReferenceCoord(); | ||
719 | |||
720 | /** | ||
721 | * Returns the meta object for the reference list '{@link simpleScenario.Lane#getAdjacent <em>Adjacent</em>}'. | ||
722 | * <!-- begin-user-doc --> | ||
723 | * <!-- end-user-doc --> | ||
724 | * @return the meta object for the reference list '<em>Adjacent</em>'. | ||
725 | * @see simpleScenario.Lane#getAdjacent() | ||
726 | * @see #getLane() | ||
727 | * @generated | ||
728 | */ | ||
729 | EReference getLane_Adjacent(); | ||
730 | |||
731 | /** | ||
732 | * Returns the meta object for the reference list '{@link simpleScenario.Lane#getActors <em>Actors</em>}'. | ||
733 | * <!-- begin-user-doc --> | ||
734 | * <!-- end-user-doc --> | ||
735 | * @return the meta object for the reference list '<em>Actors</em>'. | ||
736 | * @see simpleScenario.Lane#getActors() | ||
737 | * @see #getLane() | ||
738 | * @generated | ||
739 | */ | ||
740 | EReference getLane_Actors(); | ||
741 | |||
742 | /** | ||
743 | * Returns the meta object for the attribute '{@link simpleScenario.Lane#getWidthNum <em>Width Num</em>}'. | ||
744 | * <!-- begin-user-doc --> | ||
745 | * <!-- end-user-doc --> | ||
746 | * @return the meta object for the attribute '<em>Width Num</em>'. | ||
747 | * @see simpleScenario.Lane#getWidthNum() | ||
748 | * @see #getLane() | ||
749 | * @generated | ||
750 | */ | ||
751 | EAttribute getLane_WidthNum(); | ||
752 | |||
753 | /** | ||
754 | * Returns the meta object for class '{@link simpleScenario.Actor <em>Actor</em>}'. | ||
755 | * <!-- begin-user-doc --> | ||
756 | * <!-- end-user-doc --> | ||
757 | * @return the meta object for class '<em>Actor</em>'. | ||
758 | * @see simpleScenario.Actor | ||
759 | * @generated | ||
760 | */ | ||
761 | EClass getActor(); | ||
762 | |||
763 | /** | ||
764 | * Returns the meta object for the attribute '{@link simpleScenario.Actor#getType <em>Type</em>}'. | ||
765 | * <!-- begin-user-doc --> | ||
766 | * <!-- end-user-doc --> | ||
767 | * @return the meta object for the attribute '<em>Type</em>'. | ||
768 | * @see simpleScenario.Actor#getType() | ||
769 | * @see #getActor() | ||
770 | * @generated | ||
771 | */ | ||
772 | EAttribute getActor_Type(); | ||
773 | |||
774 | /** | ||
775 | * Returns the meta object for the attribute '{@link simpleScenario.Actor#getXPos <em>XPos</em>}'. | ||
776 | * <!-- begin-user-doc --> | ||
777 | * <!-- end-user-doc --> | ||
778 | * @return the meta object for the attribute '<em>XPos</em>'. | ||
779 | * @see simpleScenario.Actor#getXPos() | ||
780 | * @see #getActor() | ||
781 | * @generated | ||
782 | */ | ||
783 | EAttribute getActor_XPos(); | ||
784 | |||
785 | /** | ||
786 | * Returns the meta object for the attribute '{@link simpleScenario.Actor#getYPos <em>YPos</em>}'. | ||
787 | * <!-- begin-user-doc --> | ||
788 | * <!-- end-user-doc --> | ||
789 | * @return the meta object for the attribute '<em>YPos</em>'. | ||
790 | * @see simpleScenario.Actor#getYPos() | ||
791 | * @see #getActor() | ||
792 | * @generated | ||
793 | */ | ||
794 | EAttribute getActor_YPos(); | ||
795 | |||
796 | /** | ||
797 | * Returns the meta object for the attribute '{@link simpleScenario.Actor#getLength <em>Length</em>}'. | ||
798 | * <!-- begin-user-doc --> | ||
799 | * <!-- end-user-doc --> | ||
800 | * @return the meta object for the attribute '<em>Length</em>'. | ||
801 | * @see simpleScenario.Actor#getLength() | ||
802 | * @see #getActor() | ||
803 | * @generated | ||
804 | */ | ||
805 | EAttribute getActor_Length(); | ||
806 | |||
807 | /** | ||
808 | * Returns the meta object for the attribute '{@link simpleScenario.Actor#getWidth <em>Width</em>}'. | ||
809 | * <!-- begin-user-doc --> | ||
810 | * <!-- end-user-doc --> | ||
811 | * @return the meta object for the attribute '<em>Width</em>'. | ||
812 | * @see simpleScenario.Actor#getWidth() | ||
813 | * @see #getActor() | ||
814 | * @generated | ||
815 | */ | ||
816 | EAttribute getActor_Width(); | ||
817 | |||
818 | /** | ||
819 | * Returns the meta object for the attribute '{@link simpleScenario.Actor#getSpeed <em>Speed</em>}'. | ||
820 | * <!-- begin-user-doc --> | ||
821 | * <!-- end-user-doc --> | ||
822 | * @return the meta object for the attribute '<em>Speed</em>'. | ||
823 | * @see simpleScenario.Actor#getSpeed() | ||
824 | * @see #getActor() | ||
825 | * @generated | ||
826 | */ | ||
827 | EAttribute getActor_Speed(); | ||
828 | |||
829 | /** | ||
830 | * Returns the meta object for the containment reference list '{@link simpleScenario.Actor#getRelations <em>Relations</em>}'. | ||
831 | * <!-- begin-user-doc --> | ||
832 | * <!-- end-user-doc --> | ||
833 | * @return the meta object for the containment reference list '<em>Relations</em>'. | ||
834 | * @see simpleScenario.Actor#getRelations() | ||
835 | * @see #getActor() | ||
836 | * @generated | ||
837 | */ | ||
838 | EReference getActor_Relations(); | ||
839 | |||
840 | /** | ||
841 | * Returns the meta object for the reference '{@link simpleScenario.Actor#getPlacedOn <em>Placed On</em>}'. | ||
842 | * <!-- begin-user-doc --> | ||
843 | * <!-- end-user-doc --> | ||
844 | * @return the meta object for the reference '<em>Placed On</em>'. | ||
845 | * @see simpleScenario.Actor#getPlacedOn() | ||
846 | * @see #getActor() | ||
847 | * @generated | ||
848 | */ | ||
849 | EReference getActor_PlacedOn(); | ||
850 | |||
851 | /** | ||
852 | * Returns the meta object for class '{@link simpleScenario.Relation <em>Relation</em>}'. | ||
853 | * <!-- begin-user-doc --> | ||
854 | * <!-- end-user-doc --> | ||
855 | * @return the meta object for class '<em>Relation</em>'. | ||
856 | * @see simpleScenario.Relation | ||
857 | * @generated | ||
858 | */ | ||
859 | EClass getRelation(); | ||
860 | |||
861 | /** | ||
862 | * Returns the meta object for the reference '{@link simpleScenario.Relation#getTarget <em>Target</em>}'. | ||
863 | * <!-- begin-user-doc --> | ||
864 | * <!-- end-user-doc --> | ||
865 | * @return the meta object for the reference '<em>Target</em>'. | ||
866 | * @see simpleScenario.Relation#getTarget() | ||
867 | * @see #getRelation() | ||
868 | * @generated | ||
869 | */ | ||
870 | EReference getRelation_Target(); | ||
871 | |||
872 | /** | ||
873 | * Returns the meta object for class '{@link simpleScenario.SpatialRelation <em>Spatial Relation</em>}'. | ||
874 | * <!-- begin-user-doc --> | ||
875 | * <!-- end-user-doc --> | ||
876 | * @return the meta object for class '<em>Spatial Relation</em>'. | ||
877 | * @see simpleScenario.SpatialRelation | ||
878 | * @generated | ||
879 | */ | ||
880 | EClass getSpatialRelation(); | ||
881 | |||
882 | /** | ||
883 | * Returns the meta object for class '{@link simpleScenario.TemporalRelation <em>Temporal Relation</em>}'. | ||
884 | * <!-- begin-user-doc --> | ||
885 | * <!-- end-user-doc --> | ||
886 | * @return the meta object for class '<em>Temporal Relation</em>'. | ||
887 | * @see simpleScenario.TemporalRelation | ||
888 | * @generated | ||
889 | */ | ||
890 | EClass getTemporalRelation(); | ||
891 | |||
892 | /** | ||
893 | * Returns the meta object for class '{@link simpleScenario.VisionBlocked <em>Vision Blocked</em>}'. | ||
894 | * <!-- begin-user-doc --> | ||
895 | * <!-- end-user-doc --> | ||
896 | * @return the meta object for class '<em>Vision Blocked</em>'. | ||
897 | * @see simpleScenario.VisionBlocked | ||
898 | * @generated | ||
899 | */ | ||
900 | EClass getVisionBlocked(); | ||
901 | |||
902 | /** | ||
903 | * Returns the meta object for the reference '{@link simpleScenario.VisionBlocked#getBlockedBy <em>Blocked By</em>}'. | ||
904 | * <!-- begin-user-doc --> | ||
905 | * <!-- end-user-doc --> | ||
906 | * @return the meta object for the reference '<em>Blocked By</em>'. | ||
907 | * @see simpleScenario.VisionBlocked#getBlockedBy() | ||
908 | * @see #getVisionBlocked() | ||
909 | * @generated | ||
910 | */ | ||
911 | EReference getVisionBlocked_BlockedBy(); | ||
912 | |||
913 | /** | ||
914 | * Returns the meta object for class '{@link simpleScenario.SeperationDistance <em>Seperation Distance</em>}'. | ||
915 | * <!-- begin-user-doc --> | ||
916 | * <!-- end-user-doc --> | ||
917 | * @return the meta object for class '<em>Seperation Distance</em>'. | ||
918 | * @see simpleScenario.SeperationDistance | ||
919 | * @generated | ||
920 | */ | ||
921 | EClass getSeperationDistance(); | ||
922 | |||
923 | /** | ||
924 | * Returns the meta object for the attribute '{@link simpleScenario.SeperationDistance#getDistance <em>Distance</em>}'. | ||
925 | * <!-- begin-user-doc --> | ||
926 | * <!-- end-user-doc --> | ||
927 | * @return the meta object for the attribute '<em>Distance</em>'. | ||
928 | * @see simpleScenario.SeperationDistance#getDistance() | ||
929 | * @see #getSeperationDistance() | ||
930 | * @generated | ||
931 | */ | ||
932 | EAttribute getSeperationDistance_Distance(); | ||
933 | |||
934 | /** | ||
935 | * Returns the meta object for class '{@link simpleScenario.CollisionExists <em>Collision Exists</em>}'. | ||
936 | * <!-- begin-user-doc --> | ||
937 | * <!-- end-user-doc --> | ||
938 | * @return the meta object for class '<em>Collision Exists</em>'. | ||
939 | * @see simpleScenario.CollisionExists | ||
940 | * @generated | ||
941 | */ | ||
942 | EClass getCollisionExists(); | ||
943 | |||
944 | /** | ||
945 | * Returns the meta object for the attribute '{@link simpleScenario.CollisionExists#getCollisionTime <em>Collision Time</em>}'. | ||
946 | * <!-- begin-user-doc --> | ||
947 | * <!-- end-user-doc --> | ||
948 | * @return the meta object for the attribute '<em>Collision Time</em>'. | ||
949 | * @see simpleScenario.CollisionExists#getCollisionTime() | ||
950 | * @see #getCollisionExists() | ||
951 | * @generated | ||
952 | */ | ||
953 | EAttribute getCollisionExists_CollisionTime(); | ||
954 | |||
955 | /** | ||
956 | * Returns the meta object for class '{@link simpleScenario.CollisionDoesNotExist <em>Collision Does Not Exist</em>}'. | ||
957 | * <!-- begin-user-doc --> | ||
958 | * <!-- end-user-doc --> | ||
959 | * @return the meta object for class '<em>Collision Does Not Exist</em>'. | ||
960 | * @see simpleScenario.CollisionDoesNotExist | ||
961 | * @generated | ||
962 | */ | ||
963 | EClass getCollisionDoesNotExist(); | ||
964 | |||
965 | /** | ||
966 | * Returns the meta object for enum '{@link simpleScenario.Orientation <em>Orientation</em>}'. | ||
967 | * <!-- begin-user-doc --> | ||
968 | * <!-- end-user-doc --> | ||
969 | * @return the meta object for enum '<em>Orientation</em>'. | ||
970 | * @see simpleScenario.Orientation | ||
971 | * @generated | ||
972 | */ | ||
973 | EEnum getOrientation(); | ||
974 | |||
975 | /** | ||
976 | * Returns the meta object for enum '{@link simpleScenario.Size <em>Size</em>}'. | ||
977 | * <!-- begin-user-doc --> | ||
978 | * <!-- end-user-doc --> | ||
979 | * @return the meta object for enum '<em>Size</em>'. | ||
980 | * @see simpleScenario.Size | ||
981 | * @generated | ||
982 | */ | ||
983 | EEnum getSize(); | ||
984 | |||
985 | /** | ||
986 | * Returns the meta object for enum '{@link simpleScenario.ActorType <em>Actor Type</em>}'. | ||
987 | * <!-- begin-user-doc --> | ||
988 | * <!-- end-user-doc --> | ||
989 | * @return the meta object for enum '<em>Actor Type</em>'. | ||
990 | * @see simpleScenario.ActorType | ||
991 | * @generated | ||
992 | */ | ||
993 | EEnum getActorType(); | ||
994 | |||
995 | /** | ||
996 | * Returns the factory that creates the instances of the model. | ||
997 | * <!-- begin-user-doc --> | ||
998 | * <!-- end-user-doc --> | ||
999 | * @return the factory that creates the instances of the model. | ||
1000 | * @generated | ||
1001 | */ | ||
1002 | SimpleScenarioFactory getSimpleScenarioFactory(); | ||
1003 | |||
1004 | /** | ||
1005 | * <!-- begin-user-doc --> | ||
1006 | * Defines literals for the meta objects that represent | ||
1007 | * <ul> | ||
1008 | * <li>each class,</li> | ||
1009 | * <li>each feature of each class,</li> | ||
1010 | * <li>each operation of each class,</li> | ||
1011 | * <li>each enum,</li> | ||
1012 | * <li>and each data type</li> | ||
1013 | * </ul> | ||
1014 | * <!-- end-user-doc --> | ||
1015 | * @generated | ||
1016 | */ | ||
1017 | interface Literals { | ||
1018 | /** | ||
1019 | * The meta object literal for the '{@link simpleScenario.impl.SimpleScenarioImpl <em>Simple Scenario</em>}' class. | ||
1020 | * <!-- begin-user-doc --> | ||
1021 | * <!-- end-user-doc --> | ||
1022 | * @see simpleScenario.impl.SimpleScenarioImpl | ||
1023 | * @see simpleScenario.impl.SimpleScenarioPackageImpl#getSimpleScenario() | ||
1024 | * @generated | ||
1025 | */ | ||
1026 | EClass SIMPLE_SCENARIO = eINSTANCE.getSimpleScenario(); | ||
1027 | |||
1028 | /** | ||
1029 | * The meta object literal for the '<em><b>XSize</b></em>' attribute feature. | ||
1030 | * <!-- begin-user-doc --> | ||
1031 | * <!-- end-user-doc --> | ||
1032 | * @generated | ||
1033 | */ | ||
1034 | EAttribute SIMPLE_SCENARIO__XSIZE = eINSTANCE.getSimpleScenario_XSize(); | ||
1035 | |||
1036 | /** | ||
1037 | * The meta object literal for the '<em><b>YSize</b></em>' attribute feature. | ||
1038 | * <!-- begin-user-doc --> | ||
1039 | * <!-- end-user-doc --> | ||
1040 | * @generated | ||
1041 | */ | ||
1042 | EAttribute SIMPLE_SCENARIO__YSIZE = eINSTANCE.getSimpleScenario_YSize(); | ||
1043 | |||
1044 | /** | ||
1045 | * The meta object literal for the '<em><b>Actors</b></em>' containment reference list feature. | ||
1046 | * <!-- begin-user-doc --> | ||
1047 | * <!-- end-user-doc --> | ||
1048 | * @generated | ||
1049 | */ | ||
1050 | EReference SIMPLE_SCENARIO__ACTORS = eINSTANCE.getSimpleScenario_Actors(); | ||
1051 | |||
1052 | /** | ||
1053 | * The meta object literal for the '<em><b>Lanes</b></em>' containment reference list feature. | ||
1054 | * <!-- begin-user-doc --> | ||
1055 | * <!-- end-user-doc --> | ||
1056 | * @generated | ||
1057 | */ | ||
1058 | EReference SIMPLE_SCENARIO__LANES = eINSTANCE.getSimpleScenario_Lanes(); | ||
1059 | |||
1060 | /** | ||
1061 | * The meta object literal for the '{@link simpleScenario.impl.LaneImpl <em>Lane</em>}' class. | ||
1062 | * <!-- begin-user-doc --> | ||
1063 | * <!-- end-user-doc --> | ||
1064 | * @see simpleScenario.impl.LaneImpl | ||
1065 | * @see simpleScenario.impl.SimpleScenarioPackageImpl#getLane() | ||
1066 | * @generated | ||
1067 | */ | ||
1068 | EClass LANE = eINSTANCE.getLane(); | ||
1069 | |||
1070 | /** | ||
1071 | * The meta object literal for the '<em><b>Orientation</b></em>' attribute feature. | ||
1072 | * <!-- begin-user-doc --> | ||
1073 | * <!-- end-user-doc --> | ||
1074 | * @generated | ||
1075 | */ | ||
1076 | EAttribute LANE__ORIENTATION = eINSTANCE.getLane_Orientation(); | ||
1077 | |||
1078 | /** | ||
1079 | * The meta object literal for the '<em><b>Width</b></em>' attribute feature. | ||
1080 | * <!-- begin-user-doc --> | ||
1081 | * <!-- end-user-doc --> | ||
1082 | * @generated | ||
1083 | */ | ||
1084 | EAttribute LANE__WIDTH = eINSTANCE.getLane_Width(); | ||
1085 | |||
1086 | /** | ||
1087 | * The meta object literal for the '<em><b>Reference Coord</b></em>' attribute feature. | ||
1088 | * <!-- begin-user-doc --> | ||
1089 | * <!-- end-user-doc --> | ||
1090 | * @generated | ||
1091 | */ | ||
1092 | EAttribute LANE__REFERENCE_COORD = eINSTANCE.getLane_ReferenceCoord(); | ||
1093 | |||
1094 | /** | ||
1095 | * The meta object literal for the '<em><b>Adjacent</b></em>' reference list feature. | ||
1096 | * <!-- begin-user-doc --> | ||
1097 | * <!-- end-user-doc --> | ||
1098 | * @generated | ||
1099 | */ | ||
1100 | EReference LANE__ADJACENT = eINSTANCE.getLane_Adjacent(); | ||
1101 | |||
1102 | /** | ||
1103 | * The meta object literal for the '<em><b>Actors</b></em>' reference list feature. | ||
1104 | * <!-- begin-user-doc --> | ||
1105 | * <!-- end-user-doc --> | ||
1106 | * @generated | ||
1107 | */ | ||
1108 | EReference LANE__ACTORS = eINSTANCE.getLane_Actors(); | ||
1109 | |||
1110 | /** | ||
1111 | * The meta object literal for the '<em><b>Width Num</b></em>' attribute feature. | ||
1112 | * <!-- begin-user-doc --> | ||
1113 | * <!-- end-user-doc --> | ||
1114 | * @generated | ||
1115 | */ | ||
1116 | EAttribute LANE__WIDTH_NUM = eINSTANCE.getLane_WidthNum(); | ||
1117 | |||
1118 | /** | ||
1119 | * The meta object literal for the '{@link simpleScenario.impl.ActorImpl <em>Actor</em>}' class. | ||
1120 | * <!-- begin-user-doc --> | ||
1121 | * <!-- end-user-doc --> | ||
1122 | * @see simpleScenario.impl.ActorImpl | ||
1123 | * @see simpleScenario.impl.SimpleScenarioPackageImpl#getActor() | ||
1124 | * @generated | ||
1125 | */ | ||
1126 | EClass ACTOR = eINSTANCE.getActor(); | ||
1127 | |||
1128 | /** | ||
1129 | * The meta object literal for the '<em><b>Type</b></em>' attribute feature. | ||
1130 | * <!-- begin-user-doc --> | ||
1131 | * <!-- end-user-doc --> | ||
1132 | * @generated | ||
1133 | */ | ||
1134 | EAttribute ACTOR__TYPE = eINSTANCE.getActor_Type(); | ||
1135 | |||
1136 | /** | ||
1137 | * The meta object literal for the '<em><b>XPos</b></em>' attribute feature. | ||
1138 | * <!-- begin-user-doc --> | ||
1139 | * <!-- end-user-doc --> | ||
1140 | * @generated | ||
1141 | */ | ||
1142 | EAttribute ACTOR__XPOS = eINSTANCE.getActor_XPos(); | ||
1143 | |||
1144 | /** | ||
1145 | * The meta object literal for the '<em><b>YPos</b></em>' attribute feature. | ||
1146 | * <!-- begin-user-doc --> | ||
1147 | * <!-- end-user-doc --> | ||
1148 | * @generated | ||
1149 | */ | ||
1150 | EAttribute ACTOR__YPOS = eINSTANCE.getActor_YPos(); | ||
1151 | |||
1152 | /** | ||
1153 | * The meta object literal for the '<em><b>Length</b></em>' attribute feature. | ||
1154 | * <!-- begin-user-doc --> | ||
1155 | * <!-- end-user-doc --> | ||
1156 | * @generated | ||
1157 | */ | ||
1158 | EAttribute ACTOR__LENGTH = eINSTANCE.getActor_Length(); | ||
1159 | |||
1160 | /** | ||
1161 | * The meta object literal for the '<em><b>Width</b></em>' attribute feature. | ||
1162 | * <!-- begin-user-doc --> | ||
1163 | * <!-- end-user-doc --> | ||
1164 | * @generated | ||
1165 | */ | ||
1166 | EAttribute ACTOR__WIDTH = eINSTANCE.getActor_Width(); | ||
1167 | |||
1168 | /** | ||
1169 | * The meta object literal for the '<em><b>Speed</b></em>' attribute feature. | ||
1170 | * <!-- begin-user-doc --> | ||
1171 | * <!-- end-user-doc --> | ||
1172 | * @generated | ||
1173 | */ | ||
1174 | EAttribute ACTOR__SPEED = eINSTANCE.getActor_Speed(); | ||
1175 | |||
1176 | /** | ||
1177 | * The meta object literal for the '<em><b>Relations</b></em>' containment reference list feature. | ||
1178 | * <!-- begin-user-doc --> | ||
1179 | * <!-- end-user-doc --> | ||
1180 | * @generated | ||
1181 | */ | ||
1182 | EReference ACTOR__RELATIONS = eINSTANCE.getActor_Relations(); | ||
1183 | |||
1184 | /** | ||
1185 | * The meta object literal for the '<em><b>Placed On</b></em>' reference feature. | ||
1186 | * <!-- begin-user-doc --> | ||
1187 | * <!-- end-user-doc --> | ||
1188 | * @generated | ||
1189 | */ | ||
1190 | EReference ACTOR__PLACED_ON = eINSTANCE.getActor_PlacedOn(); | ||
1191 | |||
1192 | /** | ||
1193 | * The meta object literal for the '{@link simpleScenario.impl.RelationImpl <em>Relation</em>}' class. | ||
1194 | * <!-- begin-user-doc --> | ||
1195 | * <!-- end-user-doc --> | ||
1196 | * @see simpleScenario.impl.RelationImpl | ||
1197 | * @see simpleScenario.impl.SimpleScenarioPackageImpl#getRelation() | ||
1198 | * @generated | ||
1199 | */ | ||
1200 | EClass RELATION = eINSTANCE.getRelation(); | ||
1201 | |||
1202 | /** | ||
1203 | * The meta object literal for the '<em><b>Target</b></em>' reference feature. | ||
1204 | * <!-- begin-user-doc --> | ||
1205 | * <!-- end-user-doc --> | ||
1206 | * @generated | ||
1207 | */ | ||
1208 | EReference RELATION__TARGET = eINSTANCE.getRelation_Target(); | ||
1209 | |||
1210 | /** | ||
1211 | * The meta object literal for the '{@link simpleScenario.impl.SpatialRelationImpl <em>Spatial Relation</em>}' class. | ||
1212 | * <!-- begin-user-doc --> | ||
1213 | * <!-- end-user-doc --> | ||
1214 | * @see simpleScenario.impl.SpatialRelationImpl | ||
1215 | * @see simpleScenario.impl.SimpleScenarioPackageImpl#getSpatialRelation() | ||
1216 | * @generated | ||
1217 | */ | ||
1218 | EClass SPATIAL_RELATION = eINSTANCE.getSpatialRelation(); | ||
1219 | |||
1220 | /** | ||
1221 | * The meta object literal for the '{@link simpleScenario.impl.TemporalRelationImpl <em>Temporal Relation</em>}' class. | ||
1222 | * <!-- begin-user-doc --> | ||
1223 | * <!-- end-user-doc --> | ||
1224 | * @see simpleScenario.impl.TemporalRelationImpl | ||
1225 | * @see simpleScenario.impl.SimpleScenarioPackageImpl#getTemporalRelation() | ||
1226 | * @generated | ||
1227 | */ | ||
1228 | EClass TEMPORAL_RELATION = eINSTANCE.getTemporalRelation(); | ||
1229 | |||
1230 | /** | ||
1231 | * The meta object literal for the '{@link simpleScenario.impl.VisionBlockedImpl <em>Vision Blocked</em>}' class. | ||
1232 | * <!-- begin-user-doc --> | ||
1233 | * <!-- end-user-doc --> | ||
1234 | * @see simpleScenario.impl.VisionBlockedImpl | ||
1235 | * @see simpleScenario.impl.SimpleScenarioPackageImpl#getVisionBlocked() | ||
1236 | * @generated | ||
1237 | */ | ||
1238 | EClass VISION_BLOCKED = eINSTANCE.getVisionBlocked(); | ||
1239 | |||
1240 | /** | ||
1241 | * The meta object literal for the '<em><b>Blocked By</b></em>' reference feature. | ||
1242 | * <!-- begin-user-doc --> | ||
1243 | * <!-- end-user-doc --> | ||
1244 | * @generated | ||
1245 | */ | ||
1246 | EReference VISION_BLOCKED__BLOCKED_BY = eINSTANCE.getVisionBlocked_BlockedBy(); | ||
1247 | |||
1248 | /** | ||
1249 | * The meta object literal for the '{@link simpleScenario.impl.SeperationDistanceImpl <em>Seperation Distance</em>}' class. | ||
1250 | * <!-- begin-user-doc --> | ||
1251 | * <!-- end-user-doc --> | ||
1252 | * @see simpleScenario.impl.SeperationDistanceImpl | ||
1253 | * @see simpleScenario.impl.SimpleScenarioPackageImpl#getSeperationDistance() | ||
1254 | * @generated | ||
1255 | */ | ||
1256 | EClass SEPERATION_DISTANCE = eINSTANCE.getSeperationDistance(); | ||
1257 | |||
1258 | /** | ||
1259 | * The meta object literal for the '<em><b>Distance</b></em>' attribute feature. | ||
1260 | * <!-- begin-user-doc --> | ||
1261 | * <!-- end-user-doc --> | ||
1262 | * @generated | ||
1263 | */ | ||
1264 | EAttribute SEPERATION_DISTANCE__DISTANCE = eINSTANCE.getSeperationDistance_Distance(); | ||
1265 | |||
1266 | /** | ||
1267 | * The meta object literal for the '{@link simpleScenario.impl.CollisionExistsImpl <em>Collision Exists</em>}' class. | ||
1268 | * <!-- begin-user-doc --> | ||
1269 | * <!-- end-user-doc --> | ||
1270 | * @see simpleScenario.impl.CollisionExistsImpl | ||
1271 | * @see simpleScenario.impl.SimpleScenarioPackageImpl#getCollisionExists() | ||
1272 | * @generated | ||
1273 | */ | ||
1274 | EClass COLLISION_EXISTS = eINSTANCE.getCollisionExists(); | ||
1275 | |||
1276 | /** | ||
1277 | * The meta object literal for the '<em><b>Collision Time</b></em>' attribute feature. | ||
1278 | * <!-- begin-user-doc --> | ||
1279 | * <!-- end-user-doc --> | ||
1280 | * @generated | ||
1281 | */ | ||
1282 | EAttribute COLLISION_EXISTS__COLLISION_TIME = eINSTANCE.getCollisionExists_CollisionTime(); | ||
1283 | |||
1284 | /** | ||
1285 | * The meta object literal for the '{@link simpleScenario.impl.CollisionDoesNotExistImpl <em>Collision Does Not Exist</em>}' class. | ||
1286 | * <!-- begin-user-doc --> | ||
1287 | * <!-- end-user-doc --> | ||
1288 | * @see simpleScenario.impl.CollisionDoesNotExistImpl | ||
1289 | * @see simpleScenario.impl.SimpleScenarioPackageImpl#getCollisionDoesNotExist() | ||
1290 | * @generated | ||
1291 | */ | ||
1292 | EClass COLLISION_DOES_NOT_EXIST = eINSTANCE.getCollisionDoesNotExist(); | ||
1293 | |||
1294 | /** | ||
1295 | * The meta object literal for the '{@link simpleScenario.Orientation <em>Orientation</em>}' enum. | ||
1296 | * <!-- begin-user-doc --> | ||
1297 | * <!-- end-user-doc --> | ||
1298 | * @see simpleScenario.Orientation | ||
1299 | * @see simpleScenario.impl.SimpleScenarioPackageImpl#getOrientation() | ||
1300 | * @generated | ||
1301 | */ | ||
1302 | EEnum ORIENTATION = eINSTANCE.getOrientation(); | ||
1303 | |||
1304 | /** | ||
1305 | * The meta object literal for the '{@link simpleScenario.Size <em>Size</em>}' enum. | ||
1306 | * <!-- begin-user-doc --> | ||
1307 | * <!-- end-user-doc --> | ||
1308 | * @see simpleScenario.Size | ||
1309 | * @see simpleScenario.impl.SimpleScenarioPackageImpl#getSize() | ||
1310 | * @generated | ||
1311 | */ | ||
1312 | EEnum SIZE = eINSTANCE.getSize(); | ||
1313 | |||
1314 | /** | ||
1315 | * The meta object literal for the '{@link simpleScenario.ActorType <em>Actor Type</em>}' enum. | ||
1316 | * <!-- begin-user-doc --> | ||
1317 | * <!-- end-user-doc --> | ||
1318 | * @see simpleScenario.ActorType | ||
1319 | * @see simpleScenario.impl.SimpleScenarioPackageImpl#getActorType() | ||
1320 | * @generated | ||
1321 | */ | ||
1322 | EEnum ACTOR_TYPE = eINSTANCE.getActorType(); | ||
1323 | |||
1324 | } | ||
1325 | |||
1326 | } //SimpleScenarioPackage | ||
diff --git a/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/Size.java b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/Size.java new file mode 100644 index 00000000..2f4f5d81 --- /dev/null +++ b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/Size.java | |||
@@ -0,0 +1,232 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package simpleScenario; | ||
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 simpleScenario.SimpleScenarioPackage#getSize() | ||
17 | * @model | ||
18 | * @generated | ||
19 | */ | ||
20 | public enum Size implements Enumerator { | ||
21 | /** | ||
22 | * The '<em><b>Small</b></em>' literal object. | ||
23 | * <!-- begin-user-doc --> | ||
24 | * <!-- end-user-doc --> | ||
25 | * @see #SMALL_VALUE | ||
26 | * @generated | ||
27 | * @ordered | ||
28 | */ | ||
29 | SMALL(0, "Small", "Small"), | ||
30 | |||
31 | /** | ||
32 | * The '<em><b>Medium</b></em>' literal object. | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @see #MEDIUM_VALUE | ||
36 | * @generated | ||
37 | * @ordered | ||
38 | */ | ||
39 | MEDIUM(1, "Medium", "Medium"), | ||
40 | |||
41 | /** | ||
42 | * The '<em><b>Large</b></em>' literal object. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @see #LARGE_VALUE | ||
46 | * @generated | ||
47 | * @ordered | ||
48 | */ | ||
49 | LARGE(2, "Large", "Large"); | ||
50 | |||
51 | /** | ||
52 | * The '<em><b>Small</b></em>' literal value. | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @see #SMALL | ||
56 | * @model name="Small" | ||
57 | * @generated | ||
58 | * @ordered | ||
59 | */ | ||
60 | public static final int SMALL_VALUE = 0; | ||
61 | |||
62 | /** | ||
63 | * The '<em><b>Medium</b></em>' literal value. | ||
64 | * <!-- begin-user-doc --> | ||
65 | * <!-- end-user-doc --> | ||
66 | * @see #MEDIUM | ||
67 | * @model name="Medium" | ||
68 | * @generated | ||
69 | * @ordered | ||
70 | */ | ||
71 | public static final int MEDIUM_VALUE = 1; | ||
72 | |||
73 | /** | ||
74 | * The '<em><b>Large</b></em>' literal value. | ||
75 | * <!-- begin-user-doc --> | ||
76 | * <!-- end-user-doc --> | ||
77 | * @see #LARGE | ||
78 | * @model name="Large" | ||
79 | * @generated | ||
80 | * @ordered | ||
81 | */ | ||
82 | public static final int LARGE_VALUE = 2; | ||
83 | |||
84 | /** | ||
85 | * An array of all the '<em><b>Size</b></em>' enumerators. | ||
86 | * <!-- begin-user-doc --> | ||
87 | * <!-- end-user-doc --> | ||
88 | * @generated | ||
89 | */ | ||
90 | private static final Size[] VALUES_ARRAY = | ||
91 | new Size[] { | ||
92 | SMALL, | ||
93 | MEDIUM, | ||
94 | LARGE, | ||
95 | }; | ||
96 | |||
97 | /** | ||
98 | * A public read-only list of all the '<em><b>Size</b></em>' enumerators. | ||
99 | * <!-- begin-user-doc --> | ||
100 | * <!-- end-user-doc --> | ||
101 | * @generated | ||
102 | */ | ||
103 | public static final List<Size> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); | ||
104 | |||
105 | /** | ||
106 | * Returns the '<em><b>Size</b></em>' literal with the specified literal value. | ||
107 | * <!-- begin-user-doc --> | ||
108 | * <!-- end-user-doc --> | ||
109 | * @param literal the literal. | ||
110 | * @return the matching enumerator or <code>null</code>. | ||
111 | * @generated | ||
112 | */ | ||
113 | public static Size get(String literal) { | ||
114 | for (int i = 0; i < VALUES_ARRAY.length; ++i) { | ||
115 | Size result = VALUES_ARRAY[i]; | ||
116 | if (result.toString().equals(literal)) { | ||
117 | return result; | ||
118 | } | ||
119 | } | ||
120 | return null; | ||
121 | } | ||
122 | |||
123 | /** | ||
124 | * Returns the '<em><b>Size</b></em>' literal with the specified name. | ||
125 | * <!-- begin-user-doc --> | ||
126 | * <!-- end-user-doc --> | ||
127 | * @param name the name. | ||
128 | * @return the matching enumerator or <code>null</code>. | ||
129 | * @generated | ||
130 | */ | ||
131 | public static Size getByName(String name) { | ||
132 | for (int i = 0; i < VALUES_ARRAY.length; ++i) { | ||
133 | Size result = VALUES_ARRAY[i]; | ||
134 | if (result.getName().equals(name)) { | ||
135 | return result; | ||
136 | } | ||
137 | } | ||
138 | return null; | ||
139 | } | ||
140 | |||
141 | /** | ||
142 | * Returns the '<em><b>Size</b></em>' literal with the specified integer value. | ||
143 | * <!-- begin-user-doc --> | ||
144 | * <!-- end-user-doc --> | ||
145 | * @param value the integer value. | ||
146 | * @return the matching enumerator or <code>null</code>. | ||
147 | * @generated | ||
148 | */ | ||
149 | public static Size get(int value) { | ||
150 | switch (value) { | ||
151 | case SMALL_VALUE: return SMALL; | ||
152 | case MEDIUM_VALUE: return MEDIUM; | ||
153 | case LARGE_VALUE: return LARGE; | ||
154 | } | ||
155 | return null; | ||
156 | } | ||
157 | |||
158 | /** | ||
159 | * <!-- begin-user-doc --> | ||
160 | * <!-- end-user-doc --> | ||
161 | * @generated | ||
162 | */ | ||
163 | private final int value; | ||
164 | |||
165 | /** | ||
166 | * <!-- begin-user-doc --> | ||
167 | * <!-- end-user-doc --> | ||
168 | * @generated | ||
169 | */ | ||
170 | private final String name; | ||
171 | |||
172 | /** | ||
173 | * <!-- begin-user-doc --> | ||
174 | * <!-- end-user-doc --> | ||
175 | * @generated | ||
176 | */ | ||
177 | private final String literal; | ||
178 | |||
179 | /** | ||
180 | * Only this class can construct instances. | ||
181 | * <!-- begin-user-doc --> | ||
182 | * <!-- end-user-doc --> | ||
183 | * @generated | ||
184 | */ | ||
185 | private Size(int value, String name, String literal) { | ||
186 | this.value = value; | ||
187 | this.name = name; | ||
188 | this.literal = literal; | ||
189 | } | ||
190 | |||
191 | /** | ||
192 | * <!-- begin-user-doc --> | ||
193 | * <!-- end-user-doc --> | ||
194 | * @generated | ||
195 | */ | ||
196 | @Override | ||
197 | public int getValue() { | ||
198 | return value; | ||
199 | } | ||
200 | |||
201 | /** | ||
202 | * <!-- begin-user-doc --> | ||
203 | * <!-- end-user-doc --> | ||
204 | * @generated | ||
205 | */ | ||
206 | @Override | ||
207 | public String getName() { | ||
208 | return name; | ||
209 | } | ||
210 | |||
211 | /** | ||
212 | * <!-- begin-user-doc --> | ||
213 | * <!-- end-user-doc --> | ||
214 | * @generated | ||
215 | */ | ||
216 | @Override | ||
217 | public String getLiteral() { | ||
218 | return literal; | ||
219 | } | ||
220 | |||
221 | /** | ||
222 | * Returns the literal value of the enumerator, which is its string representation. | ||
223 | * <!-- begin-user-doc --> | ||
224 | * <!-- end-user-doc --> | ||
225 | * @generated | ||
226 | */ | ||
227 | @Override | ||
228 | public String toString() { | ||
229 | return literal; | ||
230 | } | ||
231 | |||
232 | } //Size | ||
diff --git a/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/SpatialRelation.java b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/SpatialRelation.java new file mode 100644 index 00000000..9b394f58 --- /dev/null +++ b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/SpatialRelation.java | |||
@@ -0,0 +1,17 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package simpleScenario; | ||
4 | |||
5 | |||
6 | /** | ||
7 | * <!-- begin-user-doc --> | ||
8 | * A representation of the model object '<em><b>Spatial Relation</b></em>'. | ||
9 | * <!-- end-user-doc --> | ||
10 | * | ||
11 | * | ||
12 | * @see simpleScenario.SimpleScenarioPackage#getSpatialRelation() | ||
13 | * @model abstract="true" | ||
14 | * @generated | ||
15 | */ | ||
16 | public interface SpatialRelation extends Relation { | ||
17 | } // SpatialRelation | ||
diff --git a/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/TemporalRelation.java b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/TemporalRelation.java new file mode 100644 index 00000000..21b56b14 --- /dev/null +++ b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/TemporalRelation.java | |||
@@ -0,0 +1,17 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package simpleScenario; | ||
4 | |||
5 | |||
6 | /** | ||
7 | * <!-- begin-user-doc --> | ||
8 | * A representation of the model object '<em><b>Temporal Relation</b></em>'. | ||
9 | * <!-- end-user-doc --> | ||
10 | * | ||
11 | * | ||
12 | * @see simpleScenario.SimpleScenarioPackage#getTemporalRelation() | ||
13 | * @model abstract="true" | ||
14 | * @generated | ||
15 | */ | ||
16 | public interface TemporalRelation extends Relation { | ||
17 | } // TemporalRelation | ||
diff --git a/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/VisionBlocked.java b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/VisionBlocked.java new file mode 100644 index 00000000..c461d323 --- /dev/null +++ b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/VisionBlocked.java | |||
@@ -0,0 +1,45 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package simpleScenario; | ||
4 | |||
5 | |||
6 | /** | ||
7 | * <!-- begin-user-doc --> | ||
8 | * A representation of the model object '<em><b>Vision Blocked</b></em>'. | ||
9 | * <!-- end-user-doc --> | ||
10 | * | ||
11 | * <p> | ||
12 | * The following features are supported: | ||
13 | * </p> | ||
14 | * <ul> | ||
15 | * <li>{@link simpleScenario.VisionBlocked#getBlockedBy <em>Blocked By</em>}</li> | ||
16 | * </ul> | ||
17 | * | ||
18 | * @see simpleScenario.SimpleScenarioPackage#getVisionBlocked() | ||
19 | * @model | ||
20 | * @generated | ||
21 | */ | ||
22 | public interface VisionBlocked extends SpatialRelation { | ||
23 | /** | ||
24 | * Returns the value of the '<em><b>Blocked By</b></em>' reference. | ||
25 | * <!-- begin-user-doc --> | ||
26 | * <!-- end-user-doc --> | ||
27 | * @return the value of the '<em>Blocked By</em>' reference. | ||
28 | * @see #setBlockedBy(Actor) | ||
29 | * @see simpleScenario.SimpleScenarioPackage#getVisionBlocked_BlockedBy() | ||
30 | * @model | ||
31 | * @generated | ||
32 | */ | ||
33 | Actor getBlockedBy(); | ||
34 | |||
35 | /** | ||
36 | * Sets the value of the '{@link simpleScenario.VisionBlocked#getBlockedBy <em>Blocked By</em>}' reference. | ||
37 | * <!-- begin-user-doc --> | ||
38 | * <!-- end-user-doc --> | ||
39 | * @param value the new value of the '<em>Blocked By</em>' reference. | ||
40 | * @see #getBlockedBy() | ||
41 | * @generated | ||
42 | */ | ||
43 | void setBlockedBy(Actor value); | ||
44 | |||
45 | } // VisionBlocked | ||
diff --git a/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/impl/ActorImpl.java b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/impl/ActorImpl.java new file mode 100644 index 00000000..10375e9b --- /dev/null +++ b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/impl/ActorImpl.java | |||
@@ -0,0 +1,609 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package simpleScenario.impl; | ||
4 | |||
5 | import java.util.Collection; | ||
6 | |||
7 | import org.eclipse.emf.common.notify.Notification; | ||
8 | import org.eclipse.emf.common.notify.NotificationChain; | ||
9 | |||
10 | import org.eclipse.emf.common.util.EList; | ||
11 | |||
12 | import org.eclipse.emf.ecore.EClass; | ||
13 | import org.eclipse.emf.ecore.InternalEObject; | ||
14 | |||
15 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
16 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
17 | |||
18 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
19 | import org.eclipse.emf.ecore.util.InternalEList; | ||
20 | |||
21 | import simpleScenario.Actor; | ||
22 | import simpleScenario.ActorType; | ||
23 | import simpleScenario.Lane; | ||
24 | import simpleScenario.Relation; | ||
25 | import simpleScenario.SimpleScenarioPackage; | ||
26 | |||
27 | /** | ||
28 | * <!-- begin-user-doc --> | ||
29 | * An implementation of the model object '<em><b>Actor</b></em>'. | ||
30 | * <!-- end-user-doc --> | ||
31 | * <p> | ||
32 | * The following features are implemented: | ||
33 | * </p> | ||
34 | * <ul> | ||
35 | * <li>{@link simpleScenario.impl.ActorImpl#getType <em>Type</em>}</li> | ||
36 | * <li>{@link simpleScenario.impl.ActorImpl#getXPos <em>XPos</em>}</li> | ||
37 | * <li>{@link simpleScenario.impl.ActorImpl#getYPos <em>YPos</em>}</li> | ||
38 | * <li>{@link simpleScenario.impl.ActorImpl#getLength <em>Length</em>}</li> | ||
39 | * <li>{@link simpleScenario.impl.ActorImpl#getWidth <em>Width</em>}</li> | ||
40 | * <li>{@link simpleScenario.impl.ActorImpl#getSpeed <em>Speed</em>}</li> | ||
41 | * <li>{@link simpleScenario.impl.ActorImpl#getRelations <em>Relations</em>}</li> | ||
42 | * <li>{@link simpleScenario.impl.ActorImpl#getPlacedOn <em>Placed On</em>}</li> | ||
43 | * </ul> | ||
44 | * | ||
45 | * @generated | ||
46 | */ | ||
47 | public class ActorImpl extends MinimalEObjectImpl.Container implements Actor { | ||
48 | /** | ||
49 | * The default value of the '{@link #getType() <em>Type</em>}' attribute. | ||
50 | * <!-- begin-user-doc --> | ||
51 | * <!-- end-user-doc --> | ||
52 | * @see #getType() | ||
53 | * @generated | ||
54 | * @ordered | ||
55 | */ | ||
56 | protected static final ActorType TYPE_EDEFAULT = ActorType.PEDESTRIAN; | ||
57 | |||
58 | /** | ||
59 | * The cached value of the '{@link #getType() <em>Type</em>}' attribute. | ||
60 | * <!-- begin-user-doc --> | ||
61 | * <!-- end-user-doc --> | ||
62 | * @see #getType() | ||
63 | * @generated | ||
64 | * @ordered | ||
65 | */ | ||
66 | protected ActorType type = TYPE_EDEFAULT; | ||
67 | |||
68 | /** | ||
69 | * The default value of the '{@link #getXPos() <em>XPos</em>}' attribute. | ||
70 | * <!-- begin-user-doc --> | ||
71 | * <!-- end-user-doc --> | ||
72 | * @see #getXPos() | ||
73 | * @generated | ||
74 | * @ordered | ||
75 | */ | ||
76 | protected static final double XPOS_EDEFAULT = 0.0; | ||
77 | |||
78 | /** | ||
79 | * The cached value of the '{@link #getXPos() <em>XPos</em>}' attribute. | ||
80 | * <!-- begin-user-doc --> | ||
81 | * <!-- end-user-doc --> | ||
82 | * @see #getXPos() | ||
83 | * @generated | ||
84 | * @ordered | ||
85 | */ | ||
86 | protected double xPos = XPOS_EDEFAULT; | ||
87 | |||
88 | /** | ||
89 | * The default value of the '{@link #getYPos() <em>YPos</em>}' attribute. | ||
90 | * <!-- begin-user-doc --> | ||
91 | * <!-- end-user-doc --> | ||
92 | * @see #getYPos() | ||
93 | * @generated | ||
94 | * @ordered | ||
95 | */ | ||
96 | protected static final double YPOS_EDEFAULT = 0.0; | ||
97 | |||
98 | /** | ||
99 | * The cached value of the '{@link #getYPos() <em>YPos</em>}' attribute. | ||
100 | * <!-- begin-user-doc --> | ||
101 | * <!-- end-user-doc --> | ||
102 | * @see #getYPos() | ||
103 | * @generated | ||
104 | * @ordered | ||
105 | */ | ||
106 | protected double yPos = YPOS_EDEFAULT; | ||
107 | |||
108 | /** | ||
109 | * The default value of the '{@link #getLength() <em>Length</em>}' attribute. | ||
110 | * <!-- begin-user-doc --> | ||
111 | * <!-- end-user-doc --> | ||
112 | * @see #getLength() | ||
113 | * @generated | ||
114 | * @ordered | ||
115 | */ | ||
116 | protected static final double LENGTH_EDEFAULT = 0.0; | ||
117 | |||
118 | /** | ||
119 | * The cached value of the '{@link #getLength() <em>Length</em>}' attribute. | ||
120 | * <!-- begin-user-doc --> | ||
121 | * <!-- end-user-doc --> | ||
122 | * @see #getLength() | ||
123 | * @generated | ||
124 | * @ordered | ||
125 | */ | ||
126 | protected double length = LENGTH_EDEFAULT; | ||
127 | |||
128 | /** | ||
129 | * The default value of the '{@link #getWidth() <em>Width</em>}' attribute. | ||
130 | * <!-- begin-user-doc --> | ||
131 | * <!-- end-user-doc --> | ||
132 | * @see #getWidth() | ||
133 | * @generated | ||
134 | * @ordered | ||
135 | */ | ||
136 | protected static final double WIDTH_EDEFAULT = 0.0; | ||
137 | |||
138 | /** | ||
139 | * The cached value of the '{@link #getWidth() <em>Width</em>}' attribute. | ||
140 | * <!-- begin-user-doc --> | ||
141 | * <!-- end-user-doc --> | ||
142 | * @see #getWidth() | ||
143 | * @generated | ||
144 | * @ordered | ||
145 | */ | ||
146 | protected double width = WIDTH_EDEFAULT; | ||
147 | |||
148 | /** | ||
149 | * The default value of the '{@link #getSpeed() <em>Speed</em>}' attribute. | ||
150 | * <!-- begin-user-doc --> | ||
151 | * <!-- end-user-doc --> | ||
152 | * @see #getSpeed() | ||
153 | * @generated | ||
154 | * @ordered | ||
155 | */ | ||
156 | protected static final double SPEED_EDEFAULT = 0.0; | ||
157 | |||
158 | /** | ||
159 | * The cached value of the '{@link #getSpeed() <em>Speed</em>}' attribute. | ||
160 | * <!-- begin-user-doc --> | ||
161 | * <!-- end-user-doc --> | ||
162 | * @see #getSpeed() | ||
163 | * @generated | ||
164 | * @ordered | ||
165 | */ | ||
166 | protected double speed = SPEED_EDEFAULT; | ||
167 | |||
168 | /** | ||
169 | * The cached value of the '{@link #getRelations() <em>Relations</em>}' containment reference list. | ||
170 | * <!-- begin-user-doc --> | ||
171 | * <!-- end-user-doc --> | ||
172 | * @see #getRelations() | ||
173 | * @generated | ||
174 | * @ordered | ||
175 | */ | ||
176 | protected EList<Relation> relations; | ||
177 | |||
178 | /** | ||
179 | * The cached value of the '{@link #getPlacedOn() <em>Placed On</em>}' reference. | ||
180 | * <!-- begin-user-doc --> | ||
181 | * <!-- end-user-doc --> | ||
182 | * @see #getPlacedOn() | ||
183 | * @generated | ||
184 | * @ordered | ||
185 | */ | ||
186 | protected Lane placedOn; | ||
187 | |||
188 | /** | ||
189 | * <!-- begin-user-doc --> | ||
190 | * <!-- end-user-doc --> | ||
191 | * @generated | ||
192 | */ | ||
193 | protected ActorImpl() { | ||
194 | super(); | ||
195 | } | ||
196 | |||
197 | /** | ||
198 | * <!-- begin-user-doc --> | ||
199 | * <!-- end-user-doc --> | ||
200 | * @generated | ||
201 | */ | ||
202 | @Override | ||
203 | protected EClass eStaticClass() { | ||
204 | return SimpleScenarioPackage.Literals.ACTOR; | ||
205 | } | ||
206 | |||
207 | /** | ||
208 | * <!-- begin-user-doc --> | ||
209 | * <!-- end-user-doc --> | ||
210 | * @generated | ||
211 | */ | ||
212 | @Override | ||
213 | public ActorType getType() { | ||
214 | return type; | ||
215 | } | ||
216 | |||
217 | /** | ||
218 | * <!-- begin-user-doc --> | ||
219 | * <!-- end-user-doc --> | ||
220 | * @generated | ||
221 | */ | ||
222 | @Override | ||
223 | public void setType(ActorType newType) { | ||
224 | ActorType oldType = type; | ||
225 | type = newType == null ? TYPE_EDEFAULT : newType; | ||
226 | if (eNotificationRequired()) | ||
227 | eNotify(new ENotificationImpl(this, Notification.SET, SimpleScenarioPackage.ACTOR__TYPE, oldType, type)); | ||
228 | } | ||
229 | |||
230 | /** | ||
231 | * <!-- begin-user-doc --> | ||
232 | * <!-- end-user-doc --> | ||
233 | * @generated | ||
234 | */ | ||
235 | @Override | ||
236 | public double getXPos() { | ||
237 | return xPos; | ||
238 | } | ||
239 | |||
240 | /** | ||
241 | * <!-- begin-user-doc --> | ||
242 | * <!-- end-user-doc --> | ||
243 | * @generated | ||
244 | */ | ||
245 | @Override | ||
246 | public void setXPos(double newXPos) { | ||
247 | double oldXPos = xPos; | ||
248 | xPos = newXPos; | ||
249 | if (eNotificationRequired()) | ||
250 | eNotify(new ENotificationImpl(this, Notification.SET, SimpleScenarioPackage.ACTOR__XPOS, oldXPos, xPos)); | ||
251 | } | ||
252 | |||
253 | /** | ||
254 | * <!-- begin-user-doc --> | ||
255 | * <!-- end-user-doc --> | ||
256 | * @generated | ||
257 | */ | ||
258 | @Override | ||
259 | public double getYPos() { | ||
260 | return yPos; | ||
261 | } | ||
262 | |||
263 | /** | ||
264 | * <!-- begin-user-doc --> | ||
265 | * <!-- end-user-doc --> | ||
266 | * @generated | ||
267 | */ | ||
268 | @Override | ||
269 | public void setYPos(double newYPos) { | ||
270 | double oldYPos = yPos; | ||
271 | yPos = newYPos; | ||
272 | if (eNotificationRequired()) | ||
273 | eNotify(new ENotificationImpl(this, Notification.SET, SimpleScenarioPackage.ACTOR__YPOS, oldYPos, yPos)); | ||
274 | } | ||
275 | |||
276 | /** | ||
277 | * <!-- begin-user-doc --> | ||
278 | * <!-- end-user-doc --> | ||
279 | * @generated | ||
280 | */ | ||
281 | @Override | ||
282 | public double getLength() { | ||
283 | return length; | ||
284 | } | ||
285 | |||
286 | /** | ||
287 | * <!-- begin-user-doc --> | ||
288 | * <!-- end-user-doc --> | ||
289 | * @generated | ||
290 | */ | ||
291 | @Override | ||
292 | public void setLength(double newLength) { | ||
293 | double oldLength = length; | ||
294 | length = newLength; | ||
295 | if (eNotificationRequired()) | ||
296 | eNotify(new ENotificationImpl(this, Notification.SET, SimpleScenarioPackage.ACTOR__LENGTH, oldLength, length)); | ||
297 | } | ||
298 | |||
299 | /** | ||
300 | * <!-- begin-user-doc --> | ||
301 | * <!-- end-user-doc --> | ||
302 | * @generated | ||
303 | */ | ||
304 | @Override | ||
305 | public double getWidth() { | ||
306 | return width; | ||
307 | } | ||
308 | |||
309 | /** | ||
310 | * <!-- begin-user-doc --> | ||
311 | * <!-- end-user-doc --> | ||
312 | * @generated | ||
313 | */ | ||
314 | @Override | ||
315 | public void setWidth(double newWidth) { | ||
316 | double oldWidth = width; | ||
317 | width = newWidth; | ||
318 | if (eNotificationRequired()) | ||
319 | eNotify(new ENotificationImpl(this, Notification.SET, SimpleScenarioPackage.ACTOR__WIDTH, oldWidth, width)); | ||
320 | } | ||
321 | |||
322 | /** | ||
323 | * <!-- begin-user-doc --> | ||
324 | * <!-- end-user-doc --> | ||
325 | * @generated | ||
326 | */ | ||
327 | @Override | ||
328 | public double getSpeed() { | ||
329 | return speed; | ||
330 | } | ||
331 | |||
332 | /** | ||
333 | * <!-- begin-user-doc --> | ||
334 | * <!-- end-user-doc --> | ||
335 | * @generated | ||
336 | */ | ||
337 | @Override | ||
338 | public void setSpeed(double newSpeed) { | ||
339 | double oldSpeed = speed; | ||
340 | speed = newSpeed; | ||
341 | if (eNotificationRequired()) | ||
342 | eNotify(new ENotificationImpl(this, Notification.SET, SimpleScenarioPackage.ACTOR__SPEED, oldSpeed, speed)); | ||
343 | } | ||
344 | |||
345 | /** | ||
346 | * <!-- begin-user-doc --> | ||
347 | * <!-- end-user-doc --> | ||
348 | * @generated | ||
349 | */ | ||
350 | @Override | ||
351 | public EList<Relation> getRelations() { | ||
352 | if (relations == null) { | ||
353 | relations = new EObjectContainmentEList<Relation>(Relation.class, this, SimpleScenarioPackage.ACTOR__RELATIONS); | ||
354 | } | ||
355 | return relations; | ||
356 | } | ||
357 | |||
358 | /** | ||
359 | * <!-- begin-user-doc --> | ||
360 | * <!-- end-user-doc --> | ||
361 | * @generated | ||
362 | */ | ||
363 | @Override | ||
364 | public Lane getPlacedOn() { | ||
365 | if (placedOn != null && placedOn.eIsProxy()) { | ||
366 | InternalEObject oldPlacedOn = (InternalEObject)placedOn; | ||
367 | placedOn = (Lane)eResolveProxy(oldPlacedOn); | ||
368 | if (placedOn != oldPlacedOn) { | ||
369 | if (eNotificationRequired()) | ||
370 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, SimpleScenarioPackage.ACTOR__PLACED_ON, oldPlacedOn, placedOn)); | ||
371 | } | ||
372 | } | ||
373 | return placedOn; | ||
374 | } | ||
375 | |||
376 | /** | ||
377 | * <!-- begin-user-doc --> | ||
378 | * <!-- end-user-doc --> | ||
379 | * @generated | ||
380 | */ | ||
381 | public Lane basicGetPlacedOn() { | ||
382 | return placedOn; | ||
383 | } | ||
384 | |||
385 | /** | ||
386 | * <!-- begin-user-doc --> | ||
387 | * <!-- end-user-doc --> | ||
388 | * @generated | ||
389 | */ | ||
390 | public NotificationChain basicSetPlacedOn(Lane newPlacedOn, NotificationChain msgs) { | ||
391 | Lane oldPlacedOn = placedOn; | ||
392 | placedOn = newPlacedOn; | ||
393 | if (eNotificationRequired()) { | ||
394 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SimpleScenarioPackage.ACTOR__PLACED_ON, oldPlacedOn, newPlacedOn); | ||
395 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
396 | } | ||
397 | return msgs; | ||
398 | } | ||
399 | |||
400 | /** | ||
401 | * <!-- begin-user-doc --> | ||
402 | * <!-- end-user-doc --> | ||
403 | * @generated | ||
404 | */ | ||
405 | @Override | ||
406 | public void setPlacedOn(Lane newPlacedOn) { | ||
407 | if (newPlacedOn != placedOn) { | ||
408 | NotificationChain msgs = null; | ||
409 | if (placedOn != null) | ||
410 | msgs = ((InternalEObject)placedOn).eInverseRemove(this, SimpleScenarioPackage.LANE__ACTORS, Lane.class, msgs); | ||
411 | if (newPlacedOn != null) | ||
412 | msgs = ((InternalEObject)newPlacedOn).eInverseAdd(this, SimpleScenarioPackage.LANE__ACTORS, Lane.class, msgs); | ||
413 | msgs = basicSetPlacedOn(newPlacedOn, msgs); | ||
414 | if (msgs != null) msgs.dispatch(); | ||
415 | } | ||
416 | else if (eNotificationRequired()) | ||
417 | eNotify(new ENotificationImpl(this, Notification.SET, SimpleScenarioPackage.ACTOR__PLACED_ON, newPlacedOn, newPlacedOn)); | ||
418 | } | ||
419 | |||
420 | /** | ||
421 | * <!-- begin-user-doc --> | ||
422 | * <!-- end-user-doc --> | ||
423 | * @generated | ||
424 | */ | ||
425 | @Override | ||
426 | public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
427 | switch (featureID) { | ||
428 | case SimpleScenarioPackage.ACTOR__PLACED_ON: | ||
429 | if (placedOn != null) | ||
430 | msgs = ((InternalEObject)placedOn).eInverseRemove(this, SimpleScenarioPackage.LANE__ACTORS, Lane.class, msgs); | ||
431 | return basicSetPlacedOn((Lane)otherEnd, msgs); | ||
432 | } | ||
433 | return super.eInverseAdd(otherEnd, featureID, msgs); | ||
434 | } | ||
435 | |||
436 | /** | ||
437 | * <!-- begin-user-doc --> | ||
438 | * <!-- end-user-doc --> | ||
439 | * @generated | ||
440 | */ | ||
441 | @Override | ||
442 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
443 | switch (featureID) { | ||
444 | case SimpleScenarioPackage.ACTOR__RELATIONS: | ||
445 | return ((InternalEList<?>)getRelations()).basicRemove(otherEnd, msgs); | ||
446 | case SimpleScenarioPackage.ACTOR__PLACED_ON: | ||
447 | return basicSetPlacedOn(null, msgs); | ||
448 | } | ||
449 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
450 | } | ||
451 | |||
452 | /** | ||
453 | * <!-- begin-user-doc --> | ||
454 | * <!-- end-user-doc --> | ||
455 | * @generated | ||
456 | */ | ||
457 | @Override | ||
458 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
459 | switch (featureID) { | ||
460 | case SimpleScenarioPackage.ACTOR__TYPE: | ||
461 | return getType(); | ||
462 | case SimpleScenarioPackage.ACTOR__XPOS: | ||
463 | return getXPos(); | ||
464 | case SimpleScenarioPackage.ACTOR__YPOS: | ||
465 | return getYPos(); | ||
466 | case SimpleScenarioPackage.ACTOR__LENGTH: | ||
467 | return getLength(); | ||
468 | case SimpleScenarioPackage.ACTOR__WIDTH: | ||
469 | return getWidth(); | ||
470 | case SimpleScenarioPackage.ACTOR__SPEED: | ||
471 | return getSpeed(); | ||
472 | case SimpleScenarioPackage.ACTOR__RELATIONS: | ||
473 | return getRelations(); | ||
474 | case SimpleScenarioPackage.ACTOR__PLACED_ON: | ||
475 | if (resolve) return getPlacedOn(); | ||
476 | return basicGetPlacedOn(); | ||
477 | } | ||
478 | return super.eGet(featureID, resolve, coreType); | ||
479 | } | ||
480 | |||
481 | /** | ||
482 | * <!-- begin-user-doc --> | ||
483 | * <!-- end-user-doc --> | ||
484 | * @generated | ||
485 | */ | ||
486 | @SuppressWarnings("unchecked") | ||
487 | @Override | ||
488 | public void eSet(int featureID, Object newValue) { | ||
489 | switch (featureID) { | ||
490 | case SimpleScenarioPackage.ACTOR__TYPE: | ||
491 | setType((ActorType)newValue); | ||
492 | return; | ||
493 | case SimpleScenarioPackage.ACTOR__XPOS: | ||
494 | setXPos((Double)newValue); | ||
495 | return; | ||
496 | case SimpleScenarioPackage.ACTOR__YPOS: | ||
497 | setYPos((Double)newValue); | ||
498 | return; | ||
499 | case SimpleScenarioPackage.ACTOR__LENGTH: | ||
500 | setLength((Double)newValue); | ||
501 | return; | ||
502 | case SimpleScenarioPackage.ACTOR__WIDTH: | ||
503 | setWidth((Double)newValue); | ||
504 | return; | ||
505 | case SimpleScenarioPackage.ACTOR__SPEED: | ||
506 | setSpeed((Double)newValue); | ||
507 | return; | ||
508 | case SimpleScenarioPackage.ACTOR__RELATIONS: | ||
509 | getRelations().clear(); | ||
510 | getRelations().addAll((Collection<? extends Relation>)newValue); | ||
511 | return; | ||
512 | case SimpleScenarioPackage.ACTOR__PLACED_ON: | ||
513 | setPlacedOn((Lane)newValue); | ||
514 | return; | ||
515 | } | ||
516 | super.eSet(featureID, newValue); | ||
517 | } | ||
518 | |||
519 | /** | ||
520 | * <!-- begin-user-doc --> | ||
521 | * <!-- end-user-doc --> | ||
522 | * @generated | ||
523 | */ | ||
524 | @Override | ||
525 | public void eUnset(int featureID) { | ||
526 | switch (featureID) { | ||
527 | case SimpleScenarioPackage.ACTOR__TYPE: | ||
528 | setType(TYPE_EDEFAULT); | ||
529 | return; | ||
530 | case SimpleScenarioPackage.ACTOR__XPOS: | ||
531 | setXPos(XPOS_EDEFAULT); | ||
532 | return; | ||
533 | case SimpleScenarioPackage.ACTOR__YPOS: | ||
534 | setYPos(YPOS_EDEFAULT); | ||
535 | return; | ||
536 | case SimpleScenarioPackage.ACTOR__LENGTH: | ||
537 | setLength(LENGTH_EDEFAULT); | ||
538 | return; | ||
539 | case SimpleScenarioPackage.ACTOR__WIDTH: | ||
540 | setWidth(WIDTH_EDEFAULT); | ||
541 | return; | ||
542 | case SimpleScenarioPackage.ACTOR__SPEED: | ||
543 | setSpeed(SPEED_EDEFAULT); | ||
544 | return; | ||
545 | case SimpleScenarioPackage.ACTOR__RELATIONS: | ||
546 | getRelations().clear(); | ||
547 | return; | ||
548 | case SimpleScenarioPackage.ACTOR__PLACED_ON: | ||
549 | setPlacedOn((Lane)null); | ||
550 | return; | ||
551 | } | ||
552 | super.eUnset(featureID); | ||
553 | } | ||
554 | |||
555 | /** | ||
556 | * <!-- begin-user-doc --> | ||
557 | * <!-- end-user-doc --> | ||
558 | * @generated | ||
559 | */ | ||
560 | @Override | ||
561 | public boolean eIsSet(int featureID) { | ||
562 | switch (featureID) { | ||
563 | case SimpleScenarioPackage.ACTOR__TYPE: | ||
564 | return type != TYPE_EDEFAULT; | ||
565 | case SimpleScenarioPackage.ACTOR__XPOS: | ||
566 | return xPos != XPOS_EDEFAULT; | ||
567 | case SimpleScenarioPackage.ACTOR__YPOS: | ||
568 | return yPos != YPOS_EDEFAULT; | ||
569 | case SimpleScenarioPackage.ACTOR__LENGTH: | ||
570 | return length != LENGTH_EDEFAULT; | ||
571 | case SimpleScenarioPackage.ACTOR__WIDTH: | ||
572 | return width != WIDTH_EDEFAULT; | ||
573 | case SimpleScenarioPackage.ACTOR__SPEED: | ||
574 | return speed != SPEED_EDEFAULT; | ||
575 | case SimpleScenarioPackage.ACTOR__RELATIONS: | ||
576 | return relations != null && !relations.isEmpty(); | ||
577 | case SimpleScenarioPackage.ACTOR__PLACED_ON: | ||
578 | return placedOn != null; | ||
579 | } | ||
580 | return super.eIsSet(featureID); | ||
581 | } | ||
582 | |||
583 | /** | ||
584 | * <!-- begin-user-doc --> | ||
585 | * <!-- end-user-doc --> | ||
586 | * @generated | ||
587 | */ | ||
588 | @Override | ||
589 | public String toString() { | ||
590 | if (eIsProxy()) return super.toString(); | ||
591 | |||
592 | StringBuilder result = new StringBuilder(super.toString()); | ||
593 | result.append(" (type: "); | ||
594 | result.append(type); | ||
595 | result.append(", xPos: "); | ||
596 | result.append(xPos); | ||
597 | result.append(", yPos: "); | ||
598 | result.append(yPos); | ||
599 | result.append(", length: "); | ||
600 | result.append(length); | ||
601 | result.append(", width: "); | ||
602 | result.append(width); | ||
603 | result.append(", speed: "); | ||
604 | result.append(speed); | ||
605 | result.append(')'); | ||
606 | return result.toString(); | ||
607 | } | ||
608 | |||
609 | } //ActorImpl | ||
diff --git a/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/impl/CollisionDoesNotExistImpl.java b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/impl/CollisionDoesNotExistImpl.java new file mode 100644 index 00000000..48eab559 --- /dev/null +++ b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/impl/CollisionDoesNotExistImpl.java | |||
@@ -0,0 +1,37 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package simpleScenario.impl; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EClass; | ||
6 | |||
7 | import simpleScenario.CollisionDoesNotExist; | ||
8 | import simpleScenario.SimpleScenarioPackage; | ||
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 SimpleScenarioPackage.Literals.COLLISION_DOES_NOT_EXIST; | ||
35 | } | ||
36 | |||
37 | } //CollisionDoesNotExistImpl | ||
diff --git a/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/impl/CollisionExistsImpl.java b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/impl/CollisionExistsImpl.java new file mode 100644 index 00000000..44a33785 --- /dev/null +++ b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/impl/CollisionExistsImpl.java | |||
@@ -0,0 +1,164 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package simpleScenario.impl; | ||
4 | |||
5 | import org.eclipse.emf.common.notify.Notification; | ||
6 | |||
7 | import org.eclipse.emf.ecore.EClass; | ||
8 | |||
9 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
10 | |||
11 | import simpleScenario.CollisionExists; | ||
12 | import simpleScenario.SimpleScenarioPackage; | ||
13 | |||
14 | /** | ||
15 | * <!-- begin-user-doc --> | ||
16 | * An implementation of the model object '<em><b>Collision Exists</b></em>'. | ||
17 | * <!-- end-user-doc --> | ||
18 | * <p> | ||
19 | * The following features are implemented: | ||
20 | * </p> | ||
21 | * <ul> | ||
22 | * <li>{@link simpleScenario.impl.CollisionExistsImpl#getCollisionTime <em>Collision Time</em>}</li> | ||
23 | * </ul> | ||
24 | * | ||
25 | * @generated | ||
26 | */ | ||
27 | public class CollisionExistsImpl extends TemporalRelationImpl implements CollisionExists { | ||
28 | /** | ||
29 | * The default value of the '{@link #getCollisionTime() <em>Collision Time</em>}' attribute. | ||
30 | * <!-- begin-user-doc --> | ||
31 | * <!-- end-user-doc --> | ||
32 | * @see #getCollisionTime() | ||
33 | * @generated | ||
34 | * @ordered | ||
35 | */ | ||
36 | protected static final double COLLISION_TIME_EDEFAULT = 0.0; | ||
37 | |||
38 | /** | ||
39 | * The cached value of the '{@link #getCollisionTime() <em>Collision Time</em>}' attribute. | ||
40 | * <!-- begin-user-doc --> | ||
41 | * <!-- end-user-doc --> | ||
42 | * @see #getCollisionTime() | ||
43 | * @generated | ||
44 | * @ordered | ||
45 | */ | ||
46 | protected double collisionTime = COLLISION_TIME_EDEFAULT; | ||
47 | |||
48 | /** | ||
49 | * <!-- begin-user-doc --> | ||
50 | * <!-- end-user-doc --> | ||
51 | * @generated | ||
52 | */ | ||
53 | protected CollisionExistsImpl() { | ||
54 | super(); | ||
55 | } | ||
56 | |||
57 | /** | ||
58 | * <!-- begin-user-doc --> | ||
59 | * <!-- end-user-doc --> | ||
60 | * @generated | ||
61 | */ | ||
62 | @Override | ||
63 | protected EClass eStaticClass() { | ||
64 | return SimpleScenarioPackage.Literals.COLLISION_EXISTS; | ||
65 | } | ||
66 | |||
67 | /** | ||
68 | * <!-- begin-user-doc --> | ||
69 | * <!-- end-user-doc --> | ||
70 | * @generated | ||
71 | */ | ||
72 | @Override | ||
73 | public double getCollisionTime() { | ||
74 | return collisionTime; | ||
75 | } | ||
76 | |||
77 | /** | ||
78 | * <!-- begin-user-doc --> | ||
79 | * <!-- end-user-doc --> | ||
80 | * @generated | ||
81 | */ | ||
82 | @Override | ||
83 | public void setCollisionTime(double newCollisionTime) { | ||
84 | double oldCollisionTime = collisionTime; | ||
85 | collisionTime = newCollisionTime; | ||
86 | if (eNotificationRequired()) | ||
87 | eNotify(new ENotificationImpl(this, Notification.SET, SimpleScenarioPackage.COLLISION_EXISTS__COLLISION_TIME, oldCollisionTime, collisionTime)); | ||
88 | } | ||
89 | |||
90 | /** | ||
91 | * <!-- begin-user-doc --> | ||
92 | * <!-- end-user-doc --> | ||
93 | * @generated | ||
94 | */ | ||
95 | @Override | ||
96 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
97 | switch (featureID) { | ||
98 | case SimpleScenarioPackage.COLLISION_EXISTS__COLLISION_TIME: | ||
99 | return getCollisionTime(); | ||
100 | } | ||
101 | return super.eGet(featureID, resolve, coreType); | ||
102 | } | ||
103 | |||
104 | /** | ||
105 | * <!-- begin-user-doc --> | ||
106 | * <!-- end-user-doc --> | ||
107 | * @generated | ||
108 | */ | ||
109 | @Override | ||
110 | public void eSet(int featureID, Object newValue) { | ||
111 | switch (featureID) { | ||
112 | case SimpleScenarioPackage.COLLISION_EXISTS__COLLISION_TIME: | ||
113 | setCollisionTime((Double)newValue); | ||
114 | return; | ||
115 | } | ||
116 | super.eSet(featureID, newValue); | ||
117 | } | ||
118 | |||
119 | /** | ||
120 | * <!-- begin-user-doc --> | ||
121 | * <!-- end-user-doc --> | ||
122 | * @generated | ||
123 | */ | ||
124 | @Override | ||
125 | public void eUnset(int featureID) { | ||
126 | switch (featureID) { | ||
127 | case SimpleScenarioPackage.COLLISION_EXISTS__COLLISION_TIME: | ||
128 | setCollisionTime(COLLISION_TIME_EDEFAULT); | ||
129 | return; | ||
130 | } | ||
131 | super.eUnset(featureID); | ||
132 | } | ||
133 | |||
134 | /** | ||
135 | * <!-- begin-user-doc --> | ||
136 | * <!-- end-user-doc --> | ||
137 | * @generated | ||
138 | */ | ||
139 | @Override | ||
140 | public boolean eIsSet(int featureID) { | ||
141 | switch (featureID) { | ||
142 | case SimpleScenarioPackage.COLLISION_EXISTS__COLLISION_TIME: | ||
143 | return collisionTime != COLLISION_TIME_EDEFAULT; | ||
144 | } | ||
145 | return super.eIsSet(featureID); | ||
146 | } | ||
147 | |||
148 | /** | ||
149 | * <!-- begin-user-doc --> | ||
150 | * <!-- end-user-doc --> | ||
151 | * @generated | ||
152 | */ | ||
153 | @Override | ||
154 | public String toString() { | ||
155 | if (eIsProxy()) return super.toString(); | ||
156 | |||
157 | StringBuilder result = new StringBuilder(super.toString()); | ||
158 | result.append(" (collisionTime: "); | ||
159 | result.append(collisionTime); | ||
160 | result.append(')'); | ||
161 | return result.toString(); | ||
162 | } | ||
163 | |||
164 | } //CollisionExistsImpl | ||
diff --git a/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/impl/LaneImpl.java b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/impl/LaneImpl.java new file mode 100644 index 00000000..f0b4b811 --- /dev/null +++ b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/impl/LaneImpl.java | |||
@@ -0,0 +1,446 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package simpleScenario.impl; | ||
4 | |||
5 | import java.util.Collection; | ||
6 | |||
7 | import org.eclipse.emf.common.notify.Notification; | ||
8 | import org.eclipse.emf.common.notify.NotificationChain; | ||
9 | |||
10 | import org.eclipse.emf.common.util.EList; | ||
11 | |||
12 | import org.eclipse.emf.ecore.EClass; | ||
13 | import org.eclipse.emf.ecore.InternalEObject; | ||
14 | |||
15 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
16 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
17 | |||
18 | import org.eclipse.emf.ecore.util.EObjectResolvingEList; | ||
19 | import org.eclipse.emf.ecore.util.EObjectWithInverseResolvingEList; | ||
20 | import org.eclipse.emf.ecore.util.InternalEList; | ||
21 | |||
22 | import simpleScenario.Actor; | ||
23 | import simpleScenario.Lane; | ||
24 | import simpleScenario.Orientation; | ||
25 | import simpleScenario.SimpleScenarioPackage; | ||
26 | import simpleScenario.Size; | ||
27 | |||
28 | /** | ||
29 | * <!-- begin-user-doc --> | ||
30 | * An implementation of the model object '<em><b>Lane</b></em>'. | ||
31 | * <!-- end-user-doc --> | ||
32 | * <p> | ||
33 | * The following features are implemented: | ||
34 | * </p> | ||
35 | * <ul> | ||
36 | * <li>{@link simpleScenario.impl.LaneImpl#getOrientation <em>Orientation</em>}</li> | ||
37 | * <li>{@link simpleScenario.impl.LaneImpl#getWidth <em>Width</em>}</li> | ||
38 | * <li>{@link simpleScenario.impl.LaneImpl#getReferenceCoord <em>Reference Coord</em>}</li> | ||
39 | * <li>{@link simpleScenario.impl.LaneImpl#getAdjacent <em>Adjacent</em>}</li> | ||
40 | * <li>{@link simpleScenario.impl.LaneImpl#getActors <em>Actors</em>}</li> | ||
41 | * <li>{@link simpleScenario.impl.LaneImpl#getWidthNum <em>Width Num</em>}</li> | ||
42 | * </ul> | ||
43 | * | ||
44 | * @generated | ||
45 | */ | ||
46 | public class LaneImpl extends MinimalEObjectImpl.Container implements Lane { | ||
47 | /** | ||
48 | * The default value of the '{@link #getOrientation() <em>Orientation</em>}' attribute. | ||
49 | * <!-- begin-user-doc --> | ||
50 | * <!-- end-user-doc --> | ||
51 | * @see #getOrientation() | ||
52 | * @generated | ||
53 | * @ordered | ||
54 | */ | ||
55 | protected static final Orientation ORIENTATION_EDEFAULT = Orientation.VERTICAL; | ||
56 | |||
57 | /** | ||
58 | * The cached value of the '{@link #getOrientation() <em>Orientation</em>}' attribute. | ||
59 | * <!-- begin-user-doc --> | ||
60 | * <!-- end-user-doc --> | ||
61 | * @see #getOrientation() | ||
62 | * @generated | ||
63 | * @ordered | ||
64 | */ | ||
65 | protected Orientation orientation = ORIENTATION_EDEFAULT; | ||
66 | |||
67 | /** | ||
68 | * The default value of the '{@link #getWidth() <em>Width</em>}' attribute. | ||
69 | * <!-- begin-user-doc --> | ||
70 | * <!-- end-user-doc --> | ||
71 | * @see #getWidth() | ||
72 | * @generated | ||
73 | * @ordered | ||
74 | */ | ||
75 | protected static final Size WIDTH_EDEFAULT = Size.SMALL; | ||
76 | |||
77 | /** | ||
78 | * The cached value of the '{@link #getWidth() <em>Width</em>}' attribute. | ||
79 | * <!-- begin-user-doc --> | ||
80 | * <!-- end-user-doc --> | ||
81 | * @see #getWidth() | ||
82 | * @generated | ||
83 | * @ordered | ||
84 | */ | ||
85 | protected Size width = WIDTH_EDEFAULT; | ||
86 | |||
87 | /** | ||
88 | * The default value of the '{@link #getReferenceCoord() <em>Reference Coord</em>}' attribute. | ||
89 | * <!-- begin-user-doc --> | ||
90 | * <!-- end-user-doc --> | ||
91 | * @see #getReferenceCoord() | ||
92 | * @generated | ||
93 | * @ordered | ||
94 | */ | ||
95 | protected static final double REFERENCE_COORD_EDEFAULT = 0.0; | ||
96 | |||
97 | /** | ||
98 | * The cached value of the '{@link #getReferenceCoord() <em>Reference Coord</em>}' attribute. | ||
99 | * <!-- begin-user-doc --> | ||
100 | * <!-- end-user-doc --> | ||
101 | * @see #getReferenceCoord() | ||
102 | * @generated | ||
103 | * @ordered | ||
104 | */ | ||
105 | protected double referenceCoord = REFERENCE_COORD_EDEFAULT; | ||
106 | |||
107 | /** | ||
108 | * The cached value of the '{@link #getAdjacent() <em>Adjacent</em>}' reference list. | ||
109 | * <!-- begin-user-doc --> | ||
110 | * <!-- end-user-doc --> | ||
111 | * @see #getAdjacent() | ||
112 | * @generated | ||
113 | * @ordered | ||
114 | */ | ||
115 | protected EList<Lane> adjacent; | ||
116 | |||
117 | /** | ||
118 | * The cached value of the '{@link #getActors() <em>Actors</em>}' reference list. | ||
119 | * <!-- begin-user-doc --> | ||
120 | * <!-- end-user-doc --> | ||
121 | * @see #getActors() | ||
122 | * @generated | ||
123 | * @ordered | ||
124 | */ | ||
125 | protected EList<Actor> actors; | ||
126 | |||
127 | /** | ||
128 | * The default value of the '{@link #getWidthNum() <em>Width Num</em>}' attribute. | ||
129 | * <!-- begin-user-doc --> | ||
130 | * <!-- end-user-doc --> | ||
131 | * @see #getWidthNum() | ||
132 | * @generated | ||
133 | * @ordered | ||
134 | */ | ||
135 | protected static final double WIDTH_NUM_EDEFAULT = 0.0; | ||
136 | |||
137 | /** | ||
138 | * The cached value of the '{@link #getWidthNum() <em>Width Num</em>}' attribute. | ||
139 | * <!-- begin-user-doc --> | ||
140 | * <!-- end-user-doc --> | ||
141 | * @see #getWidthNum() | ||
142 | * @generated | ||
143 | * @ordered | ||
144 | */ | ||
145 | protected double widthNum = WIDTH_NUM_EDEFAULT; | ||
146 | |||
147 | /** | ||
148 | * <!-- begin-user-doc --> | ||
149 | * <!-- end-user-doc --> | ||
150 | * @generated | ||
151 | */ | ||
152 | protected LaneImpl() { | ||
153 | super(); | ||
154 | } | ||
155 | |||
156 | /** | ||
157 | * <!-- begin-user-doc --> | ||
158 | * <!-- end-user-doc --> | ||
159 | * @generated | ||
160 | */ | ||
161 | @Override | ||
162 | protected EClass eStaticClass() { | ||
163 | return SimpleScenarioPackage.Literals.LANE; | ||
164 | } | ||
165 | |||
166 | /** | ||
167 | * <!-- begin-user-doc --> | ||
168 | * <!-- end-user-doc --> | ||
169 | * @generated | ||
170 | */ | ||
171 | @Override | ||
172 | public Orientation getOrientation() { | ||
173 | return orientation; | ||
174 | } | ||
175 | |||
176 | /** | ||
177 | * <!-- begin-user-doc --> | ||
178 | * <!-- end-user-doc --> | ||
179 | * @generated | ||
180 | */ | ||
181 | @Override | ||
182 | public void setOrientation(Orientation newOrientation) { | ||
183 | Orientation oldOrientation = orientation; | ||
184 | orientation = newOrientation == null ? ORIENTATION_EDEFAULT : newOrientation; | ||
185 | if (eNotificationRequired()) | ||
186 | eNotify(new ENotificationImpl(this, Notification.SET, SimpleScenarioPackage.LANE__ORIENTATION, oldOrientation, orientation)); | ||
187 | } | ||
188 | |||
189 | /** | ||
190 | * <!-- begin-user-doc --> | ||
191 | * <!-- end-user-doc --> | ||
192 | * @generated | ||
193 | */ | ||
194 | @Override | ||
195 | public Size getWidth() { | ||
196 | return width; | ||
197 | } | ||
198 | |||
199 | /** | ||
200 | * <!-- begin-user-doc --> | ||
201 | * <!-- end-user-doc --> | ||
202 | * @generated | ||
203 | */ | ||
204 | @Override | ||
205 | public void setWidth(Size newWidth) { | ||
206 | Size oldWidth = width; | ||
207 | width = newWidth == null ? WIDTH_EDEFAULT : newWidth; | ||
208 | if (eNotificationRequired()) | ||
209 | eNotify(new ENotificationImpl(this, Notification.SET, SimpleScenarioPackage.LANE__WIDTH, oldWidth, width)); | ||
210 | } | ||
211 | |||
212 | /** | ||
213 | * <!-- begin-user-doc --> | ||
214 | * <!-- end-user-doc --> | ||
215 | * @generated | ||
216 | */ | ||
217 | @Override | ||
218 | public double getReferenceCoord() { | ||
219 | return referenceCoord; | ||
220 | } | ||
221 | |||
222 | /** | ||
223 | * <!-- begin-user-doc --> | ||
224 | * <!-- end-user-doc --> | ||
225 | * @generated | ||
226 | */ | ||
227 | @Override | ||
228 | public void setReferenceCoord(double newReferenceCoord) { | ||
229 | double oldReferenceCoord = referenceCoord; | ||
230 | referenceCoord = newReferenceCoord; | ||
231 | if (eNotificationRequired()) | ||
232 | eNotify(new ENotificationImpl(this, Notification.SET, SimpleScenarioPackage.LANE__REFERENCE_COORD, oldReferenceCoord, referenceCoord)); | ||
233 | } | ||
234 | |||
235 | /** | ||
236 | * <!-- begin-user-doc --> | ||
237 | * <!-- end-user-doc --> | ||
238 | * @generated | ||
239 | */ | ||
240 | @Override | ||
241 | public EList<Lane> getAdjacent() { | ||
242 | if (adjacent == null) { | ||
243 | adjacent = new EObjectResolvingEList<Lane>(Lane.class, this, SimpleScenarioPackage.LANE__ADJACENT); | ||
244 | } | ||
245 | return adjacent; | ||
246 | } | ||
247 | |||
248 | /** | ||
249 | * <!-- begin-user-doc --> | ||
250 | * <!-- end-user-doc --> | ||
251 | * @generated | ||
252 | */ | ||
253 | @Override | ||
254 | public EList<Actor> getActors() { | ||
255 | if (actors == null) { | ||
256 | actors = new EObjectWithInverseResolvingEList<Actor>(Actor.class, this, SimpleScenarioPackage.LANE__ACTORS, SimpleScenarioPackage.ACTOR__PLACED_ON); | ||
257 | } | ||
258 | return actors; | ||
259 | } | ||
260 | |||
261 | /** | ||
262 | * <!-- begin-user-doc --> | ||
263 | * <!-- end-user-doc --> | ||
264 | * @generated | ||
265 | */ | ||
266 | @Override | ||
267 | public double getWidthNum() { | ||
268 | return widthNum; | ||
269 | } | ||
270 | |||
271 | /** | ||
272 | * <!-- begin-user-doc --> | ||
273 | * <!-- end-user-doc --> | ||
274 | * @generated | ||
275 | */ | ||
276 | @Override | ||
277 | public void setWidthNum(double newWidthNum) { | ||
278 | double oldWidthNum = widthNum; | ||
279 | widthNum = newWidthNum; | ||
280 | if (eNotificationRequired()) | ||
281 | eNotify(new ENotificationImpl(this, Notification.SET, SimpleScenarioPackage.LANE__WIDTH_NUM, oldWidthNum, widthNum)); | ||
282 | } | ||
283 | |||
284 | /** | ||
285 | * <!-- begin-user-doc --> | ||
286 | * <!-- end-user-doc --> | ||
287 | * @generated | ||
288 | */ | ||
289 | @SuppressWarnings("unchecked") | ||
290 | @Override | ||
291 | public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
292 | switch (featureID) { | ||
293 | case SimpleScenarioPackage.LANE__ACTORS: | ||
294 | return ((InternalEList<InternalEObject>)(InternalEList<?>)getActors()).basicAdd(otherEnd, msgs); | ||
295 | } | ||
296 | return super.eInverseAdd(otherEnd, featureID, msgs); | ||
297 | } | ||
298 | |||
299 | /** | ||
300 | * <!-- begin-user-doc --> | ||
301 | * <!-- end-user-doc --> | ||
302 | * @generated | ||
303 | */ | ||
304 | @Override | ||
305 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
306 | switch (featureID) { | ||
307 | case SimpleScenarioPackage.LANE__ACTORS: | ||
308 | return ((InternalEList<?>)getActors()).basicRemove(otherEnd, msgs); | ||
309 | } | ||
310 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
311 | } | ||
312 | |||
313 | /** | ||
314 | * <!-- begin-user-doc --> | ||
315 | * <!-- end-user-doc --> | ||
316 | * @generated | ||
317 | */ | ||
318 | @Override | ||
319 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
320 | switch (featureID) { | ||
321 | case SimpleScenarioPackage.LANE__ORIENTATION: | ||
322 | return getOrientation(); | ||
323 | case SimpleScenarioPackage.LANE__WIDTH: | ||
324 | return getWidth(); | ||
325 | case SimpleScenarioPackage.LANE__REFERENCE_COORD: | ||
326 | return getReferenceCoord(); | ||
327 | case SimpleScenarioPackage.LANE__ADJACENT: | ||
328 | return getAdjacent(); | ||
329 | case SimpleScenarioPackage.LANE__ACTORS: | ||
330 | return getActors(); | ||
331 | case SimpleScenarioPackage.LANE__WIDTH_NUM: | ||
332 | return getWidthNum(); | ||
333 | } | ||
334 | return super.eGet(featureID, resolve, coreType); | ||
335 | } | ||
336 | |||
337 | /** | ||
338 | * <!-- begin-user-doc --> | ||
339 | * <!-- end-user-doc --> | ||
340 | * @generated | ||
341 | */ | ||
342 | @SuppressWarnings("unchecked") | ||
343 | @Override | ||
344 | public void eSet(int featureID, Object newValue) { | ||
345 | switch (featureID) { | ||
346 | case SimpleScenarioPackage.LANE__ORIENTATION: | ||
347 | setOrientation((Orientation)newValue); | ||
348 | return; | ||
349 | case SimpleScenarioPackage.LANE__WIDTH: | ||
350 | setWidth((Size)newValue); | ||
351 | return; | ||
352 | case SimpleScenarioPackage.LANE__REFERENCE_COORD: | ||
353 | setReferenceCoord((Double)newValue); | ||
354 | return; | ||
355 | case SimpleScenarioPackage.LANE__ADJACENT: | ||
356 | getAdjacent().clear(); | ||
357 | getAdjacent().addAll((Collection<? extends Lane>)newValue); | ||
358 | return; | ||
359 | case SimpleScenarioPackage.LANE__ACTORS: | ||
360 | getActors().clear(); | ||
361 | getActors().addAll((Collection<? extends Actor>)newValue); | ||
362 | return; | ||
363 | case SimpleScenarioPackage.LANE__WIDTH_NUM: | ||
364 | setWidthNum((Double)newValue); | ||
365 | return; | ||
366 | } | ||
367 | super.eSet(featureID, newValue); | ||
368 | } | ||
369 | |||
370 | /** | ||
371 | * <!-- begin-user-doc --> | ||
372 | * <!-- end-user-doc --> | ||
373 | * @generated | ||
374 | */ | ||
375 | @Override | ||
376 | public void eUnset(int featureID) { | ||
377 | switch (featureID) { | ||
378 | case SimpleScenarioPackage.LANE__ORIENTATION: | ||
379 | setOrientation(ORIENTATION_EDEFAULT); | ||
380 | return; | ||
381 | case SimpleScenarioPackage.LANE__WIDTH: | ||
382 | setWidth(WIDTH_EDEFAULT); | ||
383 | return; | ||
384 | case SimpleScenarioPackage.LANE__REFERENCE_COORD: | ||
385 | setReferenceCoord(REFERENCE_COORD_EDEFAULT); | ||
386 | return; | ||
387 | case SimpleScenarioPackage.LANE__ADJACENT: | ||
388 | getAdjacent().clear(); | ||
389 | return; | ||
390 | case SimpleScenarioPackage.LANE__ACTORS: | ||
391 | getActors().clear(); | ||
392 | return; | ||
393 | case SimpleScenarioPackage.LANE__WIDTH_NUM: | ||
394 | setWidthNum(WIDTH_NUM_EDEFAULT); | ||
395 | return; | ||
396 | } | ||
397 | super.eUnset(featureID); | ||
398 | } | ||
399 | |||
400 | /** | ||
401 | * <!-- begin-user-doc --> | ||
402 | * <!-- end-user-doc --> | ||
403 | * @generated | ||
404 | */ | ||
405 | @Override | ||
406 | public boolean eIsSet(int featureID) { | ||
407 | switch (featureID) { | ||
408 | case SimpleScenarioPackage.LANE__ORIENTATION: | ||
409 | return orientation != ORIENTATION_EDEFAULT; | ||
410 | case SimpleScenarioPackage.LANE__WIDTH: | ||
411 | return width != WIDTH_EDEFAULT; | ||
412 | case SimpleScenarioPackage.LANE__REFERENCE_COORD: | ||
413 | return referenceCoord != REFERENCE_COORD_EDEFAULT; | ||
414 | case SimpleScenarioPackage.LANE__ADJACENT: | ||
415 | return adjacent != null && !adjacent.isEmpty(); | ||
416 | case SimpleScenarioPackage.LANE__ACTORS: | ||
417 | return actors != null && !actors.isEmpty(); | ||
418 | case SimpleScenarioPackage.LANE__WIDTH_NUM: | ||
419 | return widthNum != WIDTH_NUM_EDEFAULT; | ||
420 | } | ||
421 | return super.eIsSet(featureID); | ||
422 | } | ||
423 | |||
424 | /** | ||
425 | * <!-- begin-user-doc --> | ||
426 | * <!-- end-user-doc --> | ||
427 | * @generated | ||
428 | */ | ||
429 | @Override | ||
430 | public String toString() { | ||
431 | if (eIsProxy()) return super.toString(); | ||
432 | |||
433 | StringBuilder result = new StringBuilder(super.toString()); | ||
434 | result.append(" (orientation: "); | ||
435 | result.append(orientation); | ||
436 | result.append(", width: "); | ||
437 | result.append(width); | ||
438 | result.append(", referenceCoord: "); | ||
439 | result.append(referenceCoord); | ||
440 | result.append(", widthNum: "); | ||
441 | result.append(widthNum); | ||
442 | result.append(')'); | ||
443 | return result.toString(); | ||
444 | } | ||
445 | |||
446 | } //LaneImpl | ||
diff --git a/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/impl/RelationImpl.java b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/impl/RelationImpl.java new file mode 100644 index 00000000..a8ddd386 --- /dev/null +++ b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/impl/RelationImpl.java | |||
@@ -0,0 +1,159 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package simpleScenario.impl; | ||
4 | |||
5 | import org.eclipse.emf.common.notify.Notification; | ||
6 | |||
7 | import org.eclipse.emf.ecore.EClass; | ||
8 | import org.eclipse.emf.ecore.InternalEObject; | ||
9 | |||
10 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
11 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
12 | |||
13 | import simpleScenario.Actor; | ||
14 | import simpleScenario.Relation; | ||
15 | import simpleScenario.SimpleScenarioPackage; | ||
16 | |||
17 | /** | ||
18 | * <!-- begin-user-doc --> | ||
19 | * An implementation of the model object '<em><b>Relation</b></em>'. | ||
20 | * <!-- end-user-doc --> | ||
21 | * <p> | ||
22 | * The following features are implemented: | ||
23 | * </p> | ||
24 | * <ul> | ||
25 | * <li>{@link simpleScenario.impl.RelationImpl#getTarget <em>Target</em>}</li> | ||
26 | * </ul> | ||
27 | * | ||
28 | * @generated | ||
29 | */ | ||
30 | public abstract class RelationImpl extends MinimalEObjectImpl.Container implements Relation { | ||
31 | /** | ||
32 | * The cached value of the '{@link #getTarget() <em>Target</em>}' reference. | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @see #getTarget() | ||
36 | * @generated | ||
37 | * @ordered | ||
38 | */ | ||
39 | protected Actor target; | ||
40 | |||
41 | /** | ||
42 | * <!-- begin-user-doc --> | ||
43 | * <!-- end-user-doc --> | ||
44 | * @generated | ||
45 | */ | ||
46 | protected RelationImpl() { | ||
47 | super(); | ||
48 | } | ||
49 | |||
50 | /** | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @generated | ||
54 | */ | ||
55 | @Override | ||
56 | protected EClass eStaticClass() { | ||
57 | return SimpleScenarioPackage.Literals.RELATION; | ||
58 | } | ||
59 | |||
60 | /** | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @generated | ||
64 | */ | ||
65 | @Override | ||
66 | public Actor getTarget() { | ||
67 | if (target != null && target.eIsProxy()) { | ||
68 | InternalEObject oldTarget = (InternalEObject)target; | ||
69 | target = (Actor)eResolveProxy(oldTarget); | ||
70 | if (target != oldTarget) { | ||
71 | if (eNotificationRequired()) | ||
72 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, SimpleScenarioPackage.RELATION__TARGET, oldTarget, target)); | ||
73 | } | ||
74 | } | ||
75 | return target; | ||
76 | } | ||
77 | |||
78 | /** | ||
79 | * <!-- begin-user-doc --> | ||
80 | * <!-- end-user-doc --> | ||
81 | * @generated | ||
82 | */ | ||
83 | public Actor basicGetTarget() { | ||
84 | return target; | ||
85 | } | ||
86 | |||
87 | /** | ||
88 | * <!-- begin-user-doc --> | ||
89 | * <!-- end-user-doc --> | ||
90 | * @generated | ||
91 | */ | ||
92 | @Override | ||
93 | public void setTarget(Actor newTarget) { | ||
94 | Actor oldTarget = target; | ||
95 | target = newTarget; | ||
96 | if (eNotificationRequired()) | ||
97 | eNotify(new ENotificationImpl(this, Notification.SET, SimpleScenarioPackage.RELATION__TARGET, oldTarget, target)); | ||
98 | } | ||
99 | |||
100 | /** | ||
101 | * <!-- begin-user-doc --> | ||
102 | * <!-- end-user-doc --> | ||
103 | * @generated | ||
104 | */ | ||
105 | @Override | ||
106 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
107 | switch (featureID) { | ||
108 | case SimpleScenarioPackage.RELATION__TARGET: | ||
109 | if (resolve) return getTarget(); | ||
110 | return basicGetTarget(); | ||
111 | } | ||
112 | return super.eGet(featureID, resolve, coreType); | ||
113 | } | ||
114 | |||
115 | /** | ||
116 | * <!-- begin-user-doc --> | ||
117 | * <!-- end-user-doc --> | ||
118 | * @generated | ||
119 | */ | ||
120 | @Override | ||
121 | public void eSet(int featureID, Object newValue) { | ||
122 | switch (featureID) { | ||
123 | case SimpleScenarioPackage.RELATION__TARGET: | ||
124 | setTarget((Actor)newValue); | ||
125 | return; | ||
126 | } | ||
127 | super.eSet(featureID, newValue); | ||
128 | } | ||
129 | |||
130 | /** | ||
131 | * <!-- begin-user-doc --> | ||
132 | * <!-- end-user-doc --> | ||
133 | * @generated | ||
134 | */ | ||
135 | @Override | ||
136 | public void eUnset(int featureID) { | ||
137 | switch (featureID) { | ||
138 | case SimpleScenarioPackage.RELATION__TARGET: | ||
139 | setTarget((Actor)null); | ||
140 | return; | ||
141 | } | ||
142 | super.eUnset(featureID); | ||
143 | } | ||
144 | |||
145 | /** | ||
146 | * <!-- begin-user-doc --> | ||
147 | * <!-- end-user-doc --> | ||
148 | * @generated | ||
149 | */ | ||
150 | @Override | ||
151 | public boolean eIsSet(int featureID) { | ||
152 | switch (featureID) { | ||
153 | case SimpleScenarioPackage.RELATION__TARGET: | ||
154 | return target != null; | ||
155 | } | ||
156 | return super.eIsSet(featureID); | ||
157 | } | ||
158 | |||
159 | } //RelationImpl | ||
diff --git a/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/impl/SeperationDistanceImpl.java b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/impl/SeperationDistanceImpl.java new file mode 100644 index 00000000..12a4d73c --- /dev/null +++ b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/impl/SeperationDistanceImpl.java | |||
@@ -0,0 +1,165 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package simpleScenario.impl; | ||
4 | |||
5 | import org.eclipse.emf.common.notify.Notification; | ||
6 | |||
7 | import org.eclipse.emf.ecore.EClass; | ||
8 | |||
9 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
10 | |||
11 | import simpleScenario.SeperationDistance; | ||
12 | import simpleScenario.SimpleScenarioPackage; | ||
13 | import simpleScenario.Size; | ||
14 | |||
15 | /** | ||
16 | * <!-- begin-user-doc --> | ||
17 | * An implementation of the model object '<em><b>Seperation Distance</b></em>'. | ||
18 | * <!-- end-user-doc --> | ||
19 | * <p> | ||
20 | * The following features are implemented: | ||
21 | * </p> | ||
22 | * <ul> | ||
23 | * <li>{@link simpleScenario.impl.SeperationDistanceImpl#getDistance <em>Distance</em>}</li> | ||
24 | * </ul> | ||
25 | * | ||
26 | * @generated | ||
27 | */ | ||
28 | public class SeperationDistanceImpl extends SpatialRelationImpl implements SeperationDistance { | ||
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 Size DISTANCE_EDEFAULT = Size.SMALL; | ||
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 Size distance = DISTANCE_EDEFAULT; | ||
48 | |||
49 | /** | ||
50 | * <!-- begin-user-doc --> | ||
51 | * <!-- end-user-doc --> | ||
52 | * @generated | ||
53 | */ | ||
54 | protected SeperationDistanceImpl() { | ||
55 | super(); | ||
56 | } | ||
57 | |||
58 | /** | ||
59 | * <!-- begin-user-doc --> | ||
60 | * <!-- end-user-doc --> | ||
61 | * @generated | ||
62 | */ | ||
63 | @Override | ||
64 | protected EClass eStaticClass() { | ||
65 | return SimpleScenarioPackage.Literals.SEPERATION_DISTANCE; | ||
66 | } | ||
67 | |||
68 | /** | ||
69 | * <!-- begin-user-doc --> | ||
70 | * <!-- end-user-doc --> | ||
71 | * @generated | ||
72 | */ | ||
73 | @Override | ||
74 | public Size getDistance() { | ||
75 | return distance; | ||
76 | } | ||
77 | |||
78 | /** | ||
79 | * <!-- begin-user-doc --> | ||
80 | * <!-- end-user-doc --> | ||
81 | * @generated | ||
82 | */ | ||
83 | @Override | ||
84 | public void setDistance(Size newDistance) { | ||
85 | Size oldDistance = distance; | ||
86 | distance = newDistance == null ? DISTANCE_EDEFAULT : newDistance; | ||
87 | if (eNotificationRequired()) | ||
88 | eNotify(new ENotificationImpl(this, Notification.SET, SimpleScenarioPackage.SEPERATION_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 SimpleScenarioPackage.SEPERATION_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 SimpleScenarioPackage.SEPERATION_DISTANCE__DISTANCE: | ||
114 | setDistance((Size)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 SimpleScenarioPackage.SEPERATION_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 SimpleScenarioPackage.SEPERATION_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 | } //SeperationDistanceImpl | ||
diff --git a/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/impl/SimpleScenarioFactoryImpl.java b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/impl/SimpleScenarioFactoryImpl.java new file mode 100644 index 00000000..c3237012 --- /dev/null +++ b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/impl/SimpleScenarioFactoryImpl.java | |||
@@ -0,0 +1,268 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package simpleScenario.impl; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EClass; | ||
6 | import org.eclipse.emf.ecore.EDataType; | ||
7 | import org.eclipse.emf.ecore.EObject; | ||
8 | import org.eclipse.emf.ecore.EPackage; | ||
9 | |||
10 | import org.eclipse.emf.ecore.impl.EFactoryImpl; | ||
11 | |||
12 | import org.eclipse.emf.ecore.plugin.EcorePlugin; | ||
13 | |||
14 | import simpleScenario.*; | ||
15 | |||
16 | /** | ||
17 | * <!-- begin-user-doc --> | ||
18 | * An implementation of the model <b>Factory</b>. | ||
19 | * <!-- end-user-doc --> | ||
20 | * @generated | ||
21 | */ | ||
22 | public class SimpleScenarioFactoryImpl extends EFactoryImpl implements SimpleScenarioFactory { | ||
23 | /** | ||
24 | * Creates the default factory implementation. | ||
25 | * <!-- begin-user-doc --> | ||
26 | * <!-- end-user-doc --> | ||
27 | * @generated | ||
28 | */ | ||
29 | public static SimpleScenarioFactory init() { | ||
30 | try { | ||
31 | SimpleScenarioFactory theSimpleScenarioFactory = (SimpleScenarioFactory)EPackage.Registry.INSTANCE.getEFactory(SimpleScenarioPackage.eNS_URI); | ||
32 | if (theSimpleScenarioFactory != null) { | ||
33 | return theSimpleScenarioFactory; | ||
34 | } | ||
35 | } | ||
36 | catch (Exception exception) { | ||
37 | EcorePlugin.INSTANCE.log(exception); | ||
38 | } | ||
39 | return new SimpleScenarioFactoryImpl(); | ||
40 | } | ||
41 | |||
42 | /** | ||
43 | * Creates an instance of the factory. | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @generated | ||
47 | */ | ||
48 | public SimpleScenarioFactoryImpl() { | ||
49 | super(); | ||
50 | } | ||
51 | |||
52 | /** | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @generated | ||
56 | */ | ||
57 | @Override | ||
58 | public EObject create(EClass eClass) { | ||
59 | switch (eClass.getClassifierID()) { | ||
60 | case SimpleScenarioPackage.SIMPLE_SCENARIO: return createSimpleScenario(); | ||
61 | case SimpleScenarioPackage.LANE: return createLane(); | ||
62 | case SimpleScenarioPackage.ACTOR: return createActor(); | ||
63 | case SimpleScenarioPackage.VISION_BLOCKED: return createVisionBlocked(); | ||
64 | case SimpleScenarioPackage.SEPERATION_DISTANCE: return createSeperationDistance(); | ||
65 | case SimpleScenarioPackage.COLLISION_EXISTS: return createCollisionExists(); | ||
66 | case SimpleScenarioPackage.COLLISION_DOES_NOT_EXIST: return createCollisionDoesNotExist(); | ||
67 | default: | ||
68 | throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); | ||
69 | } | ||
70 | } | ||
71 | |||
72 | /** | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @generated | ||
76 | */ | ||
77 | @Override | ||
78 | public Object createFromString(EDataType eDataType, String initialValue) { | ||
79 | switch (eDataType.getClassifierID()) { | ||
80 | case SimpleScenarioPackage.ORIENTATION: | ||
81 | return createOrientationFromString(eDataType, initialValue); | ||
82 | case SimpleScenarioPackage.SIZE: | ||
83 | return createSizeFromString(eDataType, initialValue); | ||
84 | case SimpleScenarioPackage.ACTOR_TYPE: | ||
85 | return createActorTypeFromString(eDataType, initialValue); | ||
86 | default: | ||
87 | throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); | ||
88 | } | ||
89 | } | ||
90 | |||
91 | /** | ||
92 | * <!-- begin-user-doc --> | ||
93 | * <!-- end-user-doc --> | ||
94 | * @generated | ||
95 | */ | ||
96 | @Override | ||
97 | public String convertToString(EDataType eDataType, Object instanceValue) { | ||
98 | switch (eDataType.getClassifierID()) { | ||
99 | case SimpleScenarioPackage.ORIENTATION: | ||
100 | return convertOrientationToString(eDataType, instanceValue); | ||
101 | case SimpleScenarioPackage.SIZE: | ||
102 | return convertSizeToString(eDataType, instanceValue); | ||
103 | case SimpleScenarioPackage.ACTOR_TYPE: | ||
104 | return convertActorTypeToString(eDataType, instanceValue); | ||
105 | default: | ||
106 | throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); | ||
107 | } | ||
108 | } | ||
109 | |||
110 | /** | ||
111 | * <!-- begin-user-doc --> | ||
112 | * <!-- end-user-doc --> | ||
113 | * @generated | ||
114 | */ | ||
115 | @Override | ||
116 | public SimpleScenario createSimpleScenario() { | ||
117 | SimpleScenarioImpl simpleScenario = new SimpleScenarioImpl(); | ||
118 | return simpleScenario; | ||
119 | } | ||
120 | |||
121 | /** | ||
122 | * <!-- begin-user-doc --> | ||
123 | * <!-- end-user-doc --> | ||
124 | * @generated | ||
125 | */ | ||
126 | @Override | ||
127 | public Lane createLane() { | ||
128 | LaneImpl lane = new LaneImpl(); | ||
129 | return lane; | ||
130 | } | ||
131 | |||
132 | /** | ||
133 | * <!-- begin-user-doc --> | ||
134 | * <!-- end-user-doc --> | ||
135 | * @generated | ||
136 | */ | ||
137 | @Override | ||
138 | public Actor createActor() { | ||
139 | ActorImpl actor = new ActorImpl(); | ||
140 | return actor; | ||
141 | } | ||
142 | |||
143 | /** | ||
144 | * <!-- begin-user-doc --> | ||
145 | * <!-- end-user-doc --> | ||
146 | * @generated | ||
147 | */ | ||
148 | @Override | ||
149 | public VisionBlocked createVisionBlocked() { | ||
150 | VisionBlockedImpl visionBlocked = new VisionBlockedImpl(); | ||
151 | return visionBlocked; | ||
152 | } | ||
153 | |||
154 | /** | ||
155 | * <!-- begin-user-doc --> | ||
156 | * <!-- end-user-doc --> | ||
157 | * @generated | ||
158 | */ | ||
159 | @Override | ||
160 | public SeperationDistance createSeperationDistance() { | ||
161 | SeperationDistanceImpl seperationDistance = new SeperationDistanceImpl(); | ||
162 | return seperationDistance; | ||
163 | } | ||
164 | |||
165 | /** | ||
166 | * <!-- begin-user-doc --> | ||
167 | * <!-- end-user-doc --> | ||
168 | * @generated | ||
169 | */ | ||
170 | @Override | ||
171 | public CollisionExists createCollisionExists() { | ||
172 | CollisionExistsImpl collisionExists = new CollisionExistsImpl(); | ||
173 | return collisionExists; | ||
174 | } | ||
175 | |||
176 | /** | ||
177 | * <!-- begin-user-doc --> | ||
178 | * <!-- end-user-doc --> | ||
179 | * @generated | ||
180 | */ | ||
181 | @Override | ||
182 | public CollisionDoesNotExist createCollisionDoesNotExist() { | ||
183 | CollisionDoesNotExistImpl collisionDoesNotExist = new CollisionDoesNotExistImpl(); | ||
184 | return collisionDoesNotExist; | ||
185 | } | ||
186 | |||
187 | /** | ||
188 | * <!-- begin-user-doc --> | ||
189 | * <!-- end-user-doc --> | ||
190 | * @generated | ||
191 | */ | ||
192 | public Orientation createOrientationFromString(EDataType eDataType, String initialValue) { | ||
193 | Orientation result = Orientation.get(initialValue); | ||
194 | if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); | ||
195 | return result; | ||
196 | } | ||
197 | |||
198 | /** | ||
199 | * <!-- begin-user-doc --> | ||
200 | * <!-- end-user-doc --> | ||
201 | * @generated | ||
202 | */ | ||
203 | public String convertOrientationToString(EDataType eDataType, Object instanceValue) { | ||
204 | return instanceValue == null ? null : instanceValue.toString(); | ||
205 | } | ||
206 | |||
207 | /** | ||
208 | * <!-- begin-user-doc --> | ||
209 | * <!-- end-user-doc --> | ||
210 | * @generated | ||
211 | */ | ||
212 | public Size createSizeFromString(EDataType eDataType, String initialValue) { | ||
213 | Size result = Size.get(initialValue); | ||
214 | if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); | ||
215 | return result; | ||
216 | } | ||
217 | |||
218 | /** | ||
219 | * <!-- begin-user-doc --> | ||
220 | * <!-- end-user-doc --> | ||
221 | * @generated | ||
222 | */ | ||
223 | public String convertSizeToString(EDataType eDataType, Object instanceValue) { | ||
224 | return instanceValue == null ? null : instanceValue.toString(); | ||
225 | } | ||
226 | |||
227 | /** | ||
228 | * <!-- begin-user-doc --> | ||
229 | * <!-- end-user-doc --> | ||
230 | * @generated | ||
231 | */ | ||
232 | public ActorType createActorTypeFromString(EDataType eDataType, String initialValue) { | ||
233 | ActorType result = ActorType.get(initialValue); | ||
234 | if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); | ||
235 | return result; | ||
236 | } | ||
237 | |||
238 | /** | ||
239 | * <!-- begin-user-doc --> | ||
240 | * <!-- end-user-doc --> | ||
241 | * @generated | ||
242 | */ | ||
243 | public String convertActorTypeToString(EDataType eDataType, Object instanceValue) { | ||
244 | return instanceValue == null ? null : instanceValue.toString(); | ||
245 | } | ||
246 | |||
247 | /** | ||
248 | * <!-- begin-user-doc --> | ||
249 | * <!-- end-user-doc --> | ||
250 | * @generated | ||
251 | */ | ||
252 | @Override | ||
253 | public SimpleScenarioPackage getSimpleScenarioPackage() { | ||
254 | return (SimpleScenarioPackage)getEPackage(); | ||
255 | } | ||
256 | |||
257 | /** | ||
258 | * <!-- begin-user-doc --> | ||
259 | * <!-- end-user-doc --> | ||
260 | * @deprecated | ||
261 | * @generated | ||
262 | */ | ||
263 | @Deprecated | ||
264 | public static SimpleScenarioPackage getPackage() { | ||
265 | return SimpleScenarioPackage.eINSTANCE; | ||
266 | } | ||
267 | |||
268 | } //SimpleScenarioFactoryImpl | ||
diff --git a/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/impl/SimpleScenarioImpl.java b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/impl/SimpleScenarioImpl.java new file mode 100644 index 00000000..9d542c65 --- /dev/null +++ b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/impl/SimpleScenarioImpl.java | |||
@@ -0,0 +1,319 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package simpleScenario.impl; | ||
4 | |||
5 | import java.util.Collection; | ||
6 | |||
7 | import org.eclipse.emf.common.notify.Notification; | ||
8 | import org.eclipse.emf.common.notify.NotificationChain; | ||
9 | |||
10 | import org.eclipse.emf.common.util.EList; | ||
11 | |||
12 | import org.eclipse.emf.ecore.EClass; | ||
13 | import org.eclipse.emf.ecore.InternalEObject; | ||
14 | |||
15 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
16 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
17 | |||
18 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
19 | import org.eclipse.emf.ecore.util.InternalEList; | ||
20 | |||
21 | import simpleScenario.Actor; | ||
22 | import simpleScenario.Lane; | ||
23 | import simpleScenario.SimpleScenario; | ||
24 | import simpleScenario.SimpleScenarioPackage; | ||
25 | |||
26 | /** | ||
27 | * <!-- begin-user-doc --> | ||
28 | * An implementation of the model object '<em><b>Simple Scenario</b></em>'. | ||
29 | * <!-- end-user-doc --> | ||
30 | * <p> | ||
31 | * The following features are implemented: | ||
32 | * </p> | ||
33 | * <ul> | ||
34 | * <li>{@link simpleScenario.impl.SimpleScenarioImpl#getXSize <em>XSize</em>}</li> | ||
35 | * <li>{@link simpleScenario.impl.SimpleScenarioImpl#getYSize <em>YSize</em>}</li> | ||
36 | * <li>{@link simpleScenario.impl.SimpleScenarioImpl#getActors <em>Actors</em>}</li> | ||
37 | * <li>{@link simpleScenario.impl.SimpleScenarioImpl#getLanes <em>Lanes</em>}</li> | ||
38 | * </ul> | ||
39 | * | ||
40 | * @generated | ||
41 | */ | ||
42 | public class SimpleScenarioImpl extends MinimalEObjectImpl.Container implements SimpleScenario { | ||
43 | /** | ||
44 | * The default value of the '{@link #getXSize() <em>XSize</em>}' attribute. | ||
45 | * <!-- begin-user-doc --> | ||
46 | * <!-- end-user-doc --> | ||
47 | * @see #getXSize() | ||
48 | * @generated | ||
49 | * @ordered | ||
50 | */ | ||
51 | protected static final double XSIZE_EDEFAULT = 0.0; | ||
52 | |||
53 | /** | ||
54 | * The cached value of the '{@link #getXSize() <em>XSize</em>}' attribute. | ||
55 | * <!-- begin-user-doc --> | ||
56 | * <!-- end-user-doc --> | ||
57 | * @see #getXSize() | ||
58 | * @generated | ||
59 | * @ordered | ||
60 | */ | ||
61 | protected double xSize = XSIZE_EDEFAULT; | ||
62 | |||
63 | /** | ||
64 | * The default value of the '{@link #getYSize() <em>YSize</em>}' attribute. | ||
65 | * <!-- begin-user-doc --> | ||
66 | * <!-- end-user-doc --> | ||
67 | * @see #getYSize() | ||
68 | * @generated | ||
69 | * @ordered | ||
70 | */ | ||
71 | protected static final double YSIZE_EDEFAULT = 0.0; | ||
72 | |||
73 | /** | ||
74 | * The cached value of the '{@link #getYSize() <em>YSize</em>}' attribute. | ||
75 | * <!-- begin-user-doc --> | ||
76 | * <!-- end-user-doc --> | ||
77 | * @see #getYSize() | ||
78 | * @generated | ||
79 | * @ordered | ||
80 | */ | ||
81 | protected double ySize = YSIZE_EDEFAULT; | ||
82 | |||
83 | /** | ||
84 | * The cached value of the '{@link #getActors() <em>Actors</em>}' containment reference list. | ||
85 | * <!-- begin-user-doc --> | ||
86 | * <!-- end-user-doc --> | ||
87 | * @see #getActors() | ||
88 | * @generated | ||
89 | * @ordered | ||
90 | */ | ||
91 | protected EList<Actor> actors; | ||
92 | |||
93 | /** | ||
94 | * The cached value of the '{@link #getLanes() <em>Lanes</em>}' containment reference list. | ||
95 | * <!-- begin-user-doc --> | ||
96 | * <!-- end-user-doc --> | ||
97 | * @see #getLanes() | ||
98 | * @generated | ||
99 | * @ordered | ||
100 | */ | ||
101 | protected EList<Lane> lanes; | ||
102 | |||
103 | /** | ||
104 | * <!-- begin-user-doc --> | ||
105 | * <!-- end-user-doc --> | ||
106 | * @generated | ||
107 | */ | ||
108 | protected SimpleScenarioImpl() { | ||
109 | super(); | ||
110 | } | ||
111 | |||
112 | /** | ||
113 | * <!-- begin-user-doc --> | ||
114 | * <!-- end-user-doc --> | ||
115 | * @generated | ||
116 | */ | ||
117 | @Override | ||
118 | protected EClass eStaticClass() { | ||
119 | return SimpleScenarioPackage.Literals.SIMPLE_SCENARIO; | ||
120 | } | ||
121 | |||
122 | /** | ||
123 | * <!-- begin-user-doc --> | ||
124 | * <!-- end-user-doc --> | ||
125 | * @generated | ||
126 | */ | ||
127 | @Override | ||
128 | public double getXSize() { | ||
129 | return xSize; | ||
130 | } | ||
131 | |||
132 | /** | ||
133 | * <!-- begin-user-doc --> | ||
134 | * <!-- end-user-doc --> | ||
135 | * @generated | ||
136 | */ | ||
137 | @Override | ||
138 | public void setXSize(double newXSize) { | ||
139 | double oldXSize = xSize; | ||
140 | xSize = newXSize; | ||
141 | if (eNotificationRequired()) | ||
142 | eNotify(new ENotificationImpl(this, Notification.SET, SimpleScenarioPackage.SIMPLE_SCENARIO__XSIZE, oldXSize, xSize)); | ||
143 | } | ||
144 | |||
145 | /** | ||
146 | * <!-- begin-user-doc --> | ||
147 | * <!-- end-user-doc --> | ||
148 | * @generated | ||
149 | */ | ||
150 | @Override | ||
151 | public double getYSize() { | ||
152 | return ySize; | ||
153 | } | ||
154 | |||
155 | /** | ||
156 | * <!-- begin-user-doc --> | ||
157 | * <!-- end-user-doc --> | ||
158 | * @generated | ||
159 | */ | ||
160 | @Override | ||
161 | public void setYSize(double newYSize) { | ||
162 | double oldYSize = ySize; | ||
163 | ySize = newYSize; | ||
164 | if (eNotificationRequired()) | ||
165 | eNotify(new ENotificationImpl(this, Notification.SET, SimpleScenarioPackage.SIMPLE_SCENARIO__YSIZE, oldYSize, ySize)); | ||
166 | } | ||
167 | |||
168 | /** | ||
169 | * <!-- begin-user-doc --> | ||
170 | * <!-- end-user-doc --> | ||
171 | * @generated | ||
172 | */ | ||
173 | @Override | ||
174 | public EList<Actor> getActors() { | ||
175 | if (actors == null) { | ||
176 | actors = new EObjectContainmentEList<Actor>(Actor.class, this, SimpleScenarioPackage.SIMPLE_SCENARIO__ACTORS); | ||
177 | } | ||
178 | return actors; | ||
179 | } | ||
180 | |||
181 | /** | ||
182 | * <!-- begin-user-doc --> | ||
183 | * <!-- end-user-doc --> | ||
184 | * @generated | ||
185 | */ | ||
186 | @Override | ||
187 | public EList<Lane> getLanes() { | ||
188 | if (lanes == null) { | ||
189 | lanes = new EObjectContainmentEList<Lane>(Lane.class, this, SimpleScenarioPackage.SIMPLE_SCENARIO__LANES); | ||
190 | } | ||
191 | return lanes; | ||
192 | } | ||
193 | |||
194 | /** | ||
195 | * <!-- begin-user-doc --> | ||
196 | * <!-- end-user-doc --> | ||
197 | * @generated | ||
198 | */ | ||
199 | @Override | ||
200 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
201 | switch (featureID) { | ||
202 | case SimpleScenarioPackage.SIMPLE_SCENARIO__ACTORS: | ||
203 | return ((InternalEList<?>)getActors()).basicRemove(otherEnd, msgs); | ||
204 | case SimpleScenarioPackage.SIMPLE_SCENARIO__LANES: | ||
205 | return ((InternalEList<?>)getLanes()).basicRemove(otherEnd, msgs); | ||
206 | } | ||
207 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
208 | } | ||
209 | |||
210 | /** | ||
211 | * <!-- begin-user-doc --> | ||
212 | * <!-- end-user-doc --> | ||
213 | * @generated | ||
214 | */ | ||
215 | @Override | ||
216 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
217 | switch (featureID) { | ||
218 | case SimpleScenarioPackage.SIMPLE_SCENARIO__XSIZE: | ||
219 | return getXSize(); | ||
220 | case SimpleScenarioPackage.SIMPLE_SCENARIO__YSIZE: | ||
221 | return getYSize(); | ||
222 | case SimpleScenarioPackage.SIMPLE_SCENARIO__ACTORS: | ||
223 | return getActors(); | ||
224 | case SimpleScenarioPackage.SIMPLE_SCENARIO__LANES: | ||
225 | return getLanes(); | ||
226 | } | ||
227 | return super.eGet(featureID, resolve, coreType); | ||
228 | } | ||
229 | |||
230 | /** | ||
231 | * <!-- begin-user-doc --> | ||
232 | * <!-- end-user-doc --> | ||
233 | * @generated | ||
234 | */ | ||
235 | @SuppressWarnings("unchecked") | ||
236 | @Override | ||
237 | public void eSet(int featureID, Object newValue) { | ||
238 | switch (featureID) { | ||
239 | case SimpleScenarioPackage.SIMPLE_SCENARIO__XSIZE: | ||
240 | setXSize((Double)newValue); | ||
241 | return; | ||
242 | case SimpleScenarioPackage.SIMPLE_SCENARIO__YSIZE: | ||
243 | setYSize((Double)newValue); | ||
244 | return; | ||
245 | case SimpleScenarioPackage.SIMPLE_SCENARIO__ACTORS: | ||
246 | getActors().clear(); | ||
247 | getActors().addAll((Collection<? extends Actor>)newValue); | ||
248 | return; | ||
249 | case SimpleScenarioPackage.SIMPLE_SCENARIO__LANES: | ||
250 | getLanes().clear(); | ||
251 | getLanes().addAll((Collection<? extends Lane>)newValue); | ||
252 | return; | ||
253 | } | ||
254 | super.eSet(featureID, newValue); | ||
255 | } | ||
256 | |||
257 | /** | ||
258 | * <!-- begin-user-doc --> | ||
259 | * <!-- end-user-doc --> | ||
260 | * @generated | ||
261 | */ | ||
262 | @Override | ||
263 | public void eUnset(int featureID) { | ||
264 | switch (featureID) { | ||
265 | case SimpleScenarioPackage.SIMPLE_SCENARIO__XSIZE: | ||
266 | setXSize(XSIZE_EDEFAULT); | ||
267 | return; | ||
268 | case SimpleScenarioPackage.SIMPLE_SCENARIO__YSIZE: | ||
269 | setYSize(YSIZE_EDEFAULT); | ||
270 | return; | ||
271 | case SimpleScenarioPackage.SIMPLE_SCENARIO__ACTORS: | ||
272 | getActors().clear(); | ||
273 | return; | ||
274 | case SimpleScenarioPackage.SIMPLE_SCENARIO__LANES: | ||
275 | getLanes().clear(); | ||
276 | return; | ||
277 | } | ||
278 | super.eUnset(featureID); | ||
279 | } | ||
280 | |||
281 | /** | ||
282 | * <!-- begin-user-doc --> | ||
283 | * <!-- end-user-doc --> | ||
284 | * @generated | ||
285 | */ | ||
286 | @Override | ||
287 | public boolean eIsSet(int featureID) { | ||
288 | switch (featureID) { | ||
289 | case SimpleScenarioPackage.SIMPLE_SCENARIO__XSIZE: | ||
290 | return xSize != XSIZE_EDEFAULT; | ||
291 | case SimpleScenarioPackage.SIMPLE_SCENARIO__YSIZE: | ||
292 | return ySize != YSIZE_EDEFAULT; | ||
293 | case SimpleScenarioPackage.SIMPLE_SCENARIO__ACTORS: | ||
294 | return actors != null && !actors.isEmpty(); | ||
295 | case SimpleScenarioPackage.SIMPLE_SCENARIO__LANES: | ||
296 | return lanes != null && !lanes.isEmpty(); | ||
297 | } | ||
298 | return super.eIsSet(featureID); | ||
299 | } | ||
300 | |||
301 | /** | ||
302 | * <!-- begin-user-doc --> | ||
303 | * <!-- end-user-doc --> | ||
304 | * @generated | ||
305 | */ | ||
306 | @Override | ||
307 | public String toString() { | ||
308 | if (eIsProxy()) return super.toString(); | ||
309 | |||
310 | StringBuilder result = new StringBuilder(super.toString()); | ||
311 | result.append(" (xSize: "); | ||
312 | result.append(xSize); | ||
313 | result.append(", ySize: "); | ||
314 | result.append(ySize); | ||
315 | result.append(')'); | ||
316 | return result.toString(); | ||
317 | } | ||
318 | |||
319 | } //SimpleScenarioImpl | ||
diff --git a/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/impl/SimpleScenarioPackageImpl.java b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/impl/SimpleScenarioPackageImpl.java new file mode 100644 index 00000000..cff06365 --- /dev/null +++ b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/impl/SimpleScenarioPackageImpl.java | |||
@@ -0,0 +1,711 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package simpleScenario.impl; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EAttribute; | ||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | import org.eclipse.emf.ecore.EEnum; | ||
8 | import org.eclipse.emf.ecore.EPackage; | ||
9 | import org.eclipse.emf.ecore.EReference; | ||
10 | |||
11 | import org.eclipse.emf.ecore.impl.EPackageImpl; | ||
12 | |||
13 | import simpleScenario.Actor; | ||
14 | import simpleScenario.ActorType; | ||
15 | import simpleScenario.CollisionDoesNotExist; | ||
16 | import simpleScenario.CollisionExists; | ||
17 | import simpleScenario.Lane; | ||
18 | import simpleScenario.Orientation; | ||
19 | import simpleScenario.Relation; | ||
20 | import simpleScenario.SeperationDistance; | ||
21 | import simpleScenario.SimpleScenario; | ||
22 | import simpleScenario.SimpleScenarioFactory; | ||
23 | import simpleScenario.SimpleScenarioPackage; | ||
24 | import simpleScenario.Size; | ||
25 | import simpleScenario.SpatialRelation; | ||
26 | import simpleScenario.TemporalRelation; | ||
27 | import simpleScenario.VisionBlocked; | ||
28 | |||
29 | /** | ||
30 | * <!-- begin-user-doc --> | ||
31 | * An implementation of the model <b>Package</b>. | ||
32 | * <!-- end-user-doc --> | ||
33 | * @generated | ||
34 | */ | ||
35 | public class SimpleScenarioPackageImpl extends EPackageImpl implements SimpleScenarioPackage { | ||
36 | /** | ||
37 | * <!-- begin-user-doc --> | ||
38 | * <!-- end-user-doc --> | ||
39 | * @generated | ||
40 | */ | ||
41 | private EClass simpleScenarioEClass = null; | ||
42 | |||
43 | /** | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @generated | ||
47 | */ | ||
48 | private EClass laneEClass = null; | ||
49 | |||
50 | /** | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @generated | ||
54 | */ | ||
55 | private EClass actorEClass = null; | ||
56 | |||
57 | /** | ||
58 | * <!-- begin-user-doc --> | ||
59 | * <!-- end-user-doc --> | ||
60 | * @generated | ||
61 | */ | ||
62 | private EClass relationEClass = null; | ||
63 | |||
64 | /** | ||
65 | * <!-- begin-user-doc --> | ||
66 | * <!-- end-user-doc --> | ||
67 | * @generated | ||
68 | */ | ||
69 | private EClass spatialRelationEClass = null; | ||
70 | |||
71 | /** | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @generated | ||
75 | */ | ||
76 | private EClass temporalRelationEClass = null; | ||
77 | |||
78 | /** | ||
79 | * <!-- begin-user-doc --> | ||
80 | * <!-- end-user-doc --> | ||
81 | * @generated | ||
82 | */ | ||
83 | private EClass visionBlockedEClass = null; | ||
84 | |||
85 | /** | ||
86 | * <!-- begin-user-doc --> | ||
87 | * <!-- end-user-doc --> | ||
88 | * @generated | ||
89 | */ | ||
90 | private EClass seperationDistanceEClass = null; | ||
91 | |||
92 | /** | ||
93 | * <!-- begin-user-doc --> | ||
94 | * <!-- end-user-doc --> | ||
95 | * @generated | ||
96 | */ | ||
97 | private EClass collisionExistsEClass = null; | ||
98 | |||
99 | /** | ||
100 | * <!-- begin-user-doc --> | ||
101 | * <!-- end-user-doc --> | ||
102 | * @generated | ||
103 | */ | ||
104 | private EClass collisionDoesNotExistEClass = null; | ||
105 | |||
106 | /** | ||
107 | * <!-- begin-user-doc --> | ||
108 | * <!-- end-user-doc --> | ||
109 | * @generated | ||
110 | */ | ||
111 | private EEnum orientationEEnum = null; | ||
112 | |||
113 | /** | ||
114 | * <!-- begin-user-doc --> | ||
115 | * <!-- end-user-doc --> | ||
116 | * @generated | ||
117 | */ | ||
118 | private EEnum sizeEEnum = null; | ||
119 | |||
120 | /** | ||
121 | * <!-- begin-user-doc --> | ||
122 | * <!-- end-user-doc --> | ||
123 | * @generated | ||
124 | */ | ||
125 | private EEnum actorTypeEEnum = null; | ||
126 | |||
127 | /** | ||
128 | * Creates an instance of the model <b>Package</b>, registered with | ||
129 | * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package | ||
130 | * package URI value. | ||
131 | * <p>Note: the correct way to create the package is via the static | ||
132 | * factory method {@link #init init()}, which also performs | ||
133 | * initialization of the package, or returns the registered package, | ||
134 | * if one already exists. | ||
135 | * <!-- begin-user-doc --> | ||
136 | * <!-- end-user-doc --> | ||
137 | * @see org.eclipse.emf.ecore.EPackage.Registry | ||
138 | * @see simpleScenario.SimpleScenarioPackage#eNS_URI | ||
139 | * @see #init() | ||
140 | * @generated | ||
141 | */ | ||
142 | private SimpleScenarioPackageImpl() { | ||
143 | super(eNS_URI, SimpleScenarioFactory.eINSTANCE); | ||
144 | } | ||
145 | |||
146 | /** | ||
147 | * <!-- begin-user-doc --> | ||
148 | * <!-- end-user-doc --> | ||
149 | * @generated | ||
150 | */ | ||
151 | private static boolean isInited = false; | ||
152 | |||
153 | /** | ||
154 | * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. | ||
155 | * | ||
156 | * <p>This method is used to initialize {@link SimpleScenarioPackage#eINSTANCE} when that field is accessed. | ||
157 | * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. | ||
158 | * <!-- begin-user-doc --> | ||
159 | * <!-- end-user-doc --> | ||
160 | * @see #eNS_URI | ||
161 | * @see #createPackageContents() | ||
162 | * @see #initializePackageContents() | ||
163 | * @generated | ||
164 | */ | ||
165 | public static SimpleScenarioPackage init() { | ||
166 | if (isInited) return (SimpleScenarioPackage)EPackage.Registry.INSTANCE.getEPackage(SimpleScenarioPackage.eNS_URI); | ||
167 | |||
168 | // Obtain or create and register package | ||
169 | Object registeredSimpleScenarioPackage = EPackage.Registry.INSTANCE.get(eNS_URI); | ||
170 | SimpleScenarioPackageImpl theSimpleScenarioPackage = registeredSimpleScenarioPackage instanceof SimpleScenarioPackageImpl ? (SimpleScenarioPackageImpl)registeredSimpleScenarioPackage : new SimpleScenarioPackageImpl(); | ||
171 | |||
172 | isInited = true; | ||
173 | |||
174 | // Create package meta-data objects | ||
175 | theSimpleScenarioPackage.createPackageContents(); | ||
176 | |||
177 | // Initialize created meta-data | ||
178 | theSimpleScenarioPackage.initializePackageContents(); | ||
179 | |||
180 | // Mark meta-data to indicate it can't be changed | ||
181 | theSimpleScenarioPackage.freeze(); | ||
182 | |||
183 | // Update the registry and return the package | ||
184 | EPackage.Registry.INSTANCE.put(SimpleScenarioPackage.eNS_URI, theSimpleScenarioPackage); | ||
185 | return theSimpleScenarioPackage; | ||
186 | } | ||
187 | |||
188 | /** | ||
189 | * <!-- begin-user-doc --> | ||
190 | * <!-- end-user-doc --> | ||
191 | * @generated | ||
192 | */ | ||
193 | @Override | ||
194 | public EClass getSimpleScenario() { | ||
195 | return simpleScenarioEClass; | ||
196 | } | ||
197 | |||
198 | /** | ||
199 | * <!-- begin-user-doc --> | ||
200 | * <!-- end-user-doc --> | ||
201 | * @generated | ||
202 | */ | ||
203 | @Override | ||
204 | public EAttribute getSimpleScenario_XSize() { | ||
205 | return (EAttribute)simpleScenarioEClass.getEStructuralFeatures().get(0); | ||
206 | } | ||
207 | |||
208 | /** | ||
209 | * <!-- begin-user-doc --> | ||
210 | * <!-- end-user-doc --> | ||
211 | * @generated | ||
212 | */ | ||
213 | @Override | ||
214 | public EAttribute getSimpleScenario_YSize() { | ||
215 | return (EAttribute)simpleScenarioEClass.getEStructuralFeatures().get(1); | ||
216 | } | ||
217 | |||
218 | /** | ||
219 | * <!-- begin-user-doc --> | ||
220 | * <!-- end-user-doc --> | ||
221 | * @generated | ||
222 | */ | ||
223 | @Override | ||
224 | public EReference getSimpleScenario_Actors() { | ||
225 | return (EReference)simpleScenarioEClass.getEStructuralFeatures().get(2); | ||
226 | } | ||
227 | |||
228 | /** | ||
229 | * <!-- begin-user-doc --> | ||
230 | * <!-- end-user-doc --> | ||
231 | * @generated | ||
232 | */ | ||
233 | @Override | ||
234 | public EReference getSimpleScenario_Lanes() { | ||
235 | return (EReference)simpleScenarioEClass.getEStructuralFeatures().get(3); | ||
236 | } | ||
237 | |||
238 | /** | ||
239 | * <!-- begin-user-doc --> | ||
240 | * <!-- end-user-doc --> | ||
241 | * @generated | ||
242 | */ | ||
243 | @Override | ||
244 | public EClass getLane() { | ||
245 | return laneEClass; | ||
246 | } | ||
247 | |||
248 | /** | ||
249 | * <!-- begin-user-doc --> | ||
250 | * <!-- end-user-doc --> | ||
251 | * @generated | ||
252 | */ | ||
253 | @Override | ||
254 | public EAttribute getLane_Orientation() { | ||
255 | return (EAttribute)laneEClass.getEStructuralFeatures().get(0); | ||
256 | } | ||
257 | |||
258 | /** | ||
259 | * <!-- begin-user-doc --> | ||
260 | * <!-- end-user-doc --> | ||
261 | * @generated | ||
262 | */ | ||
263 | @Override | ||
264 | public EAttribute getLane_Width() { | ||
265 | return (EAttribute)laneEClass.getEStructuralFeatures().get(1); | ||
266 | } | ||
267 | |||
268 | /** | ||
269 | * <!-- begin-user-doc --> | ||
270 | * <!-- end-user-doc --> | ||
271 | * @generated | ||
272 | */ | ||
273 | @Override | ||
274 | public EAttribute getLane_ReferenceCoord() { | ||
275 | return (EAttribute)laneEClass.getEStructuralFeatures().get(2); | ||
276 | } | ||
277 | |||
278 | /** | ||
279 | * <!-- begin-user-doc --> | ||
280 | * <!-- end-user-doc --> | ||
281 | * @generated | ||
282 | */ | ||
283 | @Override | ||
284 | public EReference getLane_Adjacent() { | ||
285 | return (EReference)laneEClass.getEStructuralFeatures().get(3); | ||
286 | } | ||
287 | |||
288 | /** | ||
289 | * <!-- begin-user-doc --> | ||
290 | * <!-- end-user-doc --> | ||
291 | * @generated | ||
292 | */ | ||
293 | @Override | ||
294 | public EReference getLane_Actors() { | ||
295 | return (EReference)laneEClass.getEStructuralFeatures().get(4); | ||
296 | } | ||
297 | |||
298 | /** | ||
299 | * <!-- begin-user-doc --> | ||
300 | * <!-- end-user-doc --> | ||
301 | * @generated | ||
302 | */ | ||
303 | @Override | ||
304 | public EAttribute getLane_WidthNum() { | ||
305 | return (EAttribute)laneEClass.getEStructuralFeatures().get(5); | ||
306 | } | ||
307 | |||
308 | /** | ||
309 | * <!-- begin-user-doc --> | ||
310 | * <!-- end-user-doc --> | ||
311 | * @generated | ||
312 | */ | ||
313 | @Override | ||
314 | public EClass getActor() { | ||
315 | return actorEClass; | ||
316 | } | ||
317 | |||
318 | /** | ||
319 | * <!-- begin-user-doc --> | ||
320 | * <!-- end-user-doc --> | ||
321 | * @generated | ||
322 | */ | ||
323 | @Override | ||
324 | public EAttribute getActor_Type() { | ||
325 | return (EAttribute)actorEClass.getEStructuralFeatures().get(0); | ||
326 | } | ||
327 | |||
328 | /** | ||
329 | * <!-- begin-user-doc --> | ||
330 | * <!-- end-user-doc --> | ||
331 | * @generated | ||
332 | */ | ||
333 | @Override | ||
334 | public EAttribute getActor_XPos() { | ||
335 | return (EAttribute)actorEClass.getEStructuralFeatures().get(1); | ||
336 | } | ||
337 | |||
338 | /** | ||
339 | * <!-- begin-user-doc --> | ||
340 | * <!-- end-user-doc --> | ||
341 | * @generated | ||
342 | */ | ||
343 | @Override | ||
344 | public EAttribute getActor_YPos() { | ||
345 | return (EAttribute)actorEClass.getEStructuralFeatures().get(2); | ||
346 | } | ||
347 | |||
348 | /** | ||
349 | * <!-- begin-user-doc --> | ||
350 | * <!-- end-user-doc --> | ||
351 | * @generated | ||
352 | */ | ||
353 | @Override | ||
354 | public EAttribute getActor_Length() { | ||
355 | return (EAttribute)actorEClass.getEStructuralFeatures().get(3); | ||
356 | } | ||
357 | |||
358 | /** | ||
359 | * <!-- begin-user-doc --> | ||
360 | * <!-- end-user-doc --> | ||
361 | * @generated | ||
362 | */ | ||
363 | @Override | ||
364 | public EAttribute getActor_Width() { | ||
365 | return (EAttribute)actorEClass.getEStructuralFeatures().get(4); | ||
366 | } | ||
367 | |||
368 | /** | ||
369 | * <!-- begin-user-doc --> | ||
370 | * <!-- end-user-doc --> | ||
371 | * @generated | ||
372 | */ | ||
373 | @Override | ||
374 | public EAttribute getActor_Speed() { | ||
375 | return (EAttribute)actorEClass.getEStructuralFeatures().get(5); | ||
376 | } | ||
377 | |||
378 | /** | ||
379 | * <!-- begin-user-doc --> | ||
380 | * <!-- end-user-doc --> | ||
381 | * @generated | ||
382 | */ | ||
383 | @Override | ||
384 | public EReference getActor_Relations() { | ||
385 | return (EReference)actorEClass.getEStructuralFeatures().get(6); | ||
386 | } | ||
387 | |||
388 | /** | ||
389 | * <!-- begin-user-doc --> | ||
390 | * <!-- end-user-doc --> | ||
391 | * @generated | ||
392 | */ | ||
393 | @Override | ||
394 | public EReference getActor_PlacedOn() { | ||
395 | return (EReference)actorEClass.getEStructuralFeatures().get(7); | ||
396 | } | ||
397 | |||
398 | /** | ||
399 | * <!-- begin-user-doc --> | ||
400 | * <!-- end-user-doc --> | ||
401 | * @generated | ||
402 | */ | ||
403 | @Override | ||
404 | public EClass getRelation() { | ||
405 | return relationEClass; | ||
406 | } | ||
407 | |||
408 | /** | ||
409 | * <!-- begin-user-doc --> | ||
410 | * <!-- end-user-doc --> | ||
411 | * @generated | ||
412 | */ | ||
413 | @Override | ||
414 | public EReference getRelation_Target() { | ||
415 | return (EReference)relationEClass.getEStructuralFeatures().get(0); | ||
416 | } | ||
417 | |||
418 | /** | ||
419 | * <!-- begin-user-doc --> | ||
420 | * <!-- end-user-doc --> | ||
421 | * @generated | ||
422 | */ | ||
423 | @Override | ||
424 | public EClass getSpatialRelation() { | ||
425 | return spatialRelationEClass; | ||
426 | } | ||
427 | |||
428 | /** | ||
429 | * <!-- begin-user-doc --> | ||
430 | * <!-- end-user-doc --> | ||
431 | * @generated | ||
432 | */ | ||
433 | @Override | ||
434 | public EClass getTemporalRelation() { | ||
435 | return temporalRelationEClass; | ||
436 | } | ||
437 | |||
438 | /** | ||
439 | * <!-- begin-user-doc --> | ||
440 | * <!-- end-user-doc --> | ||
441 | * @generated | ||
442 | */ | ||
443 | @Override | ||
444 | public EClass getVisionBlocked() { | ||
445 | return visionBlockedEClass; | ||
446 | } | ||
447 | |||
448 | /** | ||
449 | * <!-- begin-user-doc --> | ||
450 | * <!-- end-user-doc --> | ||
451 | * @generated | ||
452 | */ | ||
453 | @Override | ||
454 | public EReference getVisionBlocked_BlockedBy() { | ||
455 | return (EReference)visionBlockedEClass.getEStructuralFeatures().get(0); | ||
456 | } | ||
457 | |||
458 | /** | ||
459 | * <!-- begin-user-doc --> | ||
460 | * <!-- end-user-doc --> | ||
461 | * @generated | ||
462 | */ | ||
463 | @Override | ||
464 | public EClass getSeperationDistance() { | ||
465 | return seperationDistanceEClass; | ||
466 | } | ||
467 | |||
468 | /** | ||
469 | * <!-- begin-user-doc --> | ||
470 | * <!-- end-user-doc --> | ||
471 | * @generated | ||
472 | */ | ||
473 | @Override | ||
474 | public EAttribute getSeperationDistance_Distance() { | ||
475 | return (EAttribute)seperationDistanceEClass.getEStructuralFeatures().get(0); | ||
476 | } | ||
477 | |||
478 | /** | ||
479 | * <!-- begin-user-doc --> | ||
480 | * <!-- end-user-doc --> | ||
481 | * @generated | ||
482 | */ | ||
483 | @Override | ||
484 | public EClass getCollisionExists() { | ||
485 | return collisionExistsEClass; | ||
486 | } | ||
487 | |||
488 | /** | ||
489 | * <!-- begin-user-doc --> | ||
490 | * <!-- end-user-doc --> | ||
491 | * @generated | ||
492 | */ | ||
493 | @Override | ||
494 | public EAttribute getCollisionExists_CollisionTime() { | ||
495 | return (EAttribute)collisionExistsEClass.getEStructuralFeatures().get(0); | ||
496 | } | ||
497 | |||
498 | /** | ||
499 | * <!-- begin-user-doc --> | ||
500 | * <!-- end-user-doc --> | ||
501 | * @generated | ||
502 | */ | ||
503 | @Override | ||
504 | public EClass getCollisionDoesNotExist() { | ||
505 | return collisionDoesNotExistEClass; | ||
506 | } | ||
507 | |||
508 | /** | ||
509 | * <!-- begin-user-doc --> | ||
510 | * <!-- end-user-doc --> | ||
511 | * @generated | ||
512 | */ | ||
513 | @Override | ||
514 | public EEnum getOrientation() { | ||
515 | return orientationEEnum; | ||
516 | } | ||
517 | |||
518 | /** | ||
519 | * <!-- begin-user-doc --> | ||
520 | * <!-- end-user-doc --> | ||
521 | * @generated | ||
522 | */ | ||
523 | @Override | ||
524 | public EEnum getSize() { | ||
525 | return sizeEEnum; | ||
526 | } | ||
527 | |||
528 | /** | ||
529 | * <!-- begin-user-doc --> | ||
530 | * <!-- end-user-doc --> | ||
531 | * @generated | ||
532 | */ | ||
533 | @Override | ||
534 | public EEnum getActorType() { | ||
535 | return actorTypeEEnum; | ||
536 | } | ||
537 | |||
538 | /** | ||
539 | * <!-- begin-user-doc --> | ||
540 | * <!-- end-user-doc --> | ||
541 | * @generated | ||
542 | */ | ||
543 | @Override | ||
544 | public SimpleScenarioFactory getSimpleScenarioFactory() { | ||
545 | return (SimpleScenarioFactory)getEFactoryInstance(); | ||
546 | } | ||
547 | |||
548 | /** | ||
549 | * <!-- begin-user-doc --> | ||
550 | * <!-- end-user-doc --> | ||
551 | * @generated | ||
552 | */ | ||
553 | private boolean isCreated = false; | ||
554 | |||
555 | /** | ||
556 | * Creates the meta-model objects for the package. This method is | ||
557 | * guarded to have no affect on any invocation but its first. | ||
558 | * <!-- begin-user-doc --> | ||
559 | * <!-- end-user-doc --> | ||
560 | * @generated | ||
561 | */ | ||
562 | public void createPackageContents() { | ||
563 | if (isCreated) return; | ||
564 | isCreated = true; | ||
565 | |||
566 | // Create classes and their features | ||
567 | simpleScenarioEClass = createEClass(SIMPLE_SCENARIO); | ||
568 | createEAttribute(simpleScenarioEClass, SIMPLE_SCENARIO__XSIZE); | ||
569 | createEAttribute(simpleScenarioEClass, SIMPLE_SCENARIO__YSIZE); | ||
570 | createEReference(simpleScenarioEClass, SIMPLE_SCENARIO__ACTORS); | ||
571 | createEReference(simpleScenarioEClass, SIMPLE_SCENARIO__LANES); | ||
572 | |||
573 | laneEClass = createEClass(LANE); | ||
574 | createEAttribute(laneEClass, LANE__ORIENTATION); | ||
575 | createEAttribute(laneEClass, LANE__WIDTH); | ||
576 | createEAttribute(laneEClass, LANE__REFERENCE_COORD); | ||
577 | createEReference(laneEClass, LANE__ADJACENT); | ||
578 | createEReference(laneEClass, LANE__ACTORS); | ||
579 | createEAttribute(laneEClass, LANE__WIDTH_NUM); | ||
580 | |||
581 | actorEClass = createEClass(ACTOR); | ||
582 | createEAttribute(actorEClass, ACTOR__TYPE); | ||
583 | createEAttribute(actorEClass, ACTOR__XPOS); | ||
584 | createEAttribute(actorEClass, ACTOR__YPOS); | ||
585 | createEAttribute(actorEClass, ACTOR__LENGTH); | ||
586 | createEAttribute(actorEClass, ACTOR__WIDTH); | ||
587 | createEAttribute(actorEClass, ACTOR__SPEED); | ||
588 | createEReference(actorEClass, ACTOR__RELATIONS); | ||
589 | createEReference(actorEClass, ACTOR__PLACED_ON); | ||
590 | |||
591 | relationEClass = createEClass(RELATION); | ||
592 | createEReference(relationEClass, RELATION__TARGET); | ||
593 | |||
594 | spatialRelationEClass = createEClass(SPATIAL_RELATION); | ||
595 | |||
596 | temporalRelationEClass = createEClass(TEMPORAL_RELATION); | ||
597 | |||
598 | visionBlockedEClass = createEClass(VISION_BLOCKED); | ||
599 | createEReference(visionBlockedEClass, VISION_BLOCKED__BLOCKED_BY); | ||
600 | |||
601 | seperationDistanceEClass = createEClass(SEPERATION_DISTANCE); | ||
602 | createEAttribute(seperationDistanceEClass, SEPERATION_DISTANCE__DISTANCE); | ||
603 | |||
604 | collisionExistsEClass = createEClass(COLLISION_EXISTS); | ||
605 | createEAttribute(collisionExistsEClass, COLLISION_EXISTS__COLLISION_TIME); | ||
606 | |||
607 | collisionDoesNotExistEClass = createEClass(COLLISION_DOES_NOT_EXIST); | ||
608 | |||
609 | // Create enums | ||
610 | orientationEEnum = createEEnum(ORIENTATION); | ||
611 | sizeEEnum = createEEnum(SIZE); | ||
612 | actorTypeEEnum = createEEnum(ACTOR_TYPE); | ||
613 | } | ||
614 | |||
615 | /** | ||
616 | * <!-- begin-user-doc --> | ||
617 | * <!-- end-user-doc --> | ||
618 | * @generated | ||
619 | */ | ||
620 | private boolean isInitialized = false; | ||
621 | |||
622 | /** | ||
623 | * Complete the initialization of the package and its meta-model. This | ||
624 | * method is guarded to have no affect on any invocation but its first. | ||
625 | * <!-- begin-user-doc --> | ||
626 | * <!-- end-user-doc --> | ||
627 | * @generated | ||
628 | */ | ||
629 | public void initializePackageContents() { | ||
630 | if (isInitialized) return; | ||
631 | isInitialized = true; | ||
632 | |||
633 | // Initialize package | ||
634 | setName(eNAME); | ||
635 | setNsPrefix(eNS_PREFIX); | ||
636 | setNsURI(eNS_URI); | ||
637 | |||
638 | // Create type parameters | ||
639 | |||
640 | // Set bounds for type parameters | ||
641 | |||
642 | // Add supertypes to classes | ||
643 | spatialRelationEClass.getESuperTypes().add(this.getRelation()); | ||
644 | temporalRelationEClass.getESuperTypes().add(this.getRelation()); | ||
645 | visionBlockedEClass.getESuperTypes().add(this.getSpatialRelation()); | ||
646 | seperationDistanceEClass.getESuperTypes().add(this.getSpatialRelation()); | ||
647 | collisionExistsEClass.getESuperTypes().add(this.getTemporalRelation()); | ||
648 | collisionDoesNotExistEClass.getESuperTypes().add(this.getTemporalRelation()); | ||
649 | |||
650 | // Initialize classes, features, and operations; add parameters | ||
651 | initEClass(simpleScenarioEClass, SimpleScenario.class, "SimpleScenario", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
652 | initEAttribute(getSimpleScenario_XSize(), ecorePackage.getEDouble(), "xSize", null, 0, 1, SimpleScenario.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
653 | initEAttribute(getSimpleScenario_YSize(), ecorePackage.getEDouble(), "ySize", null, 0, 1, SimpleScenario.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
654 | initEReference(getSimpleScenario_Actors(), this.getActor(), null, "actors", null, 0, -1, SimpleScenario.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
655 | initEReference(getSimpleScenario_Lanes(), this.getLane(), null, "lanes", null, 0, -1, SimpleScenario.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
656 | |||
657 | initEClass(laneEClass, Lane.class, "Lane", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
658 | initEAttribute(getLane_Orientation(), this.getOrientation(), "orientation", null, 1, 1, Lane.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
659 | initEAttribute(getLane_Width(), this.getSize(), "width", null, 1, 1, Lane.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
660 | initEAttribute(getLane_ReferenceCoord(), ecorePackage.getEDouble(), "referenceCoord", null, 1, 1, Lane.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
661 | initEReference(getLane_Adjacent(), this.getLane(), null, "adjacent", null, 0, 2, Lane.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
662 | initEReference(getLane_Actors(), this.getActor(), this.getActor_PlacedOn(), "actors", null, 0, -1, Lane.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
663 | initEAttribute(getLane_WidthNum(), ecorePackage.getEDouble(), "widthNum", null, 1, 1, Lane.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
664 | |||
665 | initEClass(actorEClass, Actor.class, "Actor", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
666 | initEAttribute(getActor_Type(), this.getActorType(), "type", null, 1, 1, Actor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
667 | initEAttribute(getActor_XPos(), ecorePackage.getEDouble(), "xPos", null, 1, 1, Actor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
668 | initEAttribute(getActor_YPos(), ecorePackage.getEDouble(), "yPos", null, 1, 1, Actor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
669 | initEAttribute(getActor_Length(), ecorePackage.getEDouble(), "length", "0.0", 0, 1, Actor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
670 | initEAttribute(getActor_Width(), ecorePackage.getEDouble(), "width", null, 0, 1, Actor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
671 | initEAttribute(getActor_Speed(), ecorePackage.getEDouble(), "speed", null, 1, 1, Actor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
672 | initEReference(getActor_Relations(), this.getRelation(), null, "relations", null, 0, -1, Actor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
673 | initEReference(getActor_PlacedOn(), this.getLane(), this.getLane_Actors(), "placedOn", null, 1, 1, Actor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
674 | |||
675 | initEClass(relationEClass, Relation.class, "Relation", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
676 | initEReference(getRelation_Target(), this.getActor(), null, "target", null, 1, 1, Relation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
677 | |||
678 | initEClass(spatialRelationEClass, SpatialRelation.class, "SpatialRelation", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
679 | |||
680 | initEClass(temporalRelationEClass, TemporalRelation.class, "TemporalRelation", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
681 | |||
682 | initEClass(visionBlockedEClass, VisionBlocked.class, "VisionBlocked", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
683 | initEReference(getVisionBlocked_BlockedBy(), this.getActor(), null, "blockedBy", null, 0, 1, VisionBlocked.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
684 | |||
685 | initEClass(seperationDistanceEClass, SeperationDistance.class, "SeperationDistance", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
686 | initEAttribute(getSeperationDistance_Distance(), this.getSize(), "distance", null, 1, 1, SeperationDistance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
687 | |||
688 | initEClass(collisionExistsEClass, CollisionExists.class, "CollisionExists", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
689 | initEAttribute(getCollisionExists_CollisionTime(), ecorePackage.getEDouble(), "collisionTime", null, 1, 1, CollisionExists.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
690 | |||
691 | initEClass(collisionDoesNotExistEClass, CollisionDoesNotExist.class, "CollisionDoesNotExist", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
692 | |||
693 | // Initialize enums and add enum literals | ||
694 | initEEnum(orientationEEnum, Orientation.class, "Orientation"); | ||
695 | addEEnumLiteral(orientationEEnum, Orientation.VERTICAL); | ||
696 | addEEnumLiteral(orientationEEnum, Orientation.HORIZONTAL); | ||
697 | |||
698 | initEEnum(sizeEEnum, Size.class, "Size"); | ||
699 | addEEnumLiteral(sizeEEnum, Size.SMALL); | ||
700 | addEEnumLiteral(sizeEEnum, Size.MEDIUM); | ||
701 | addEEnumLiteral(sizeEEnum, Size.LARGE); | ||
702 | |||
703 | initEEnum(actorTypeEEnum, ActorType.class, "ActorType"); | ||
704 | addEEnumLiteral(actorTypeEEnum, ActorType.PEDESTRIAN); | ||
705 | addEEnumLiteral(actorTypeEEnum, ActorType.VEHICLE); | ||
706 | |||
707 | // Create resource | ||
708 | createResource(eNS_URI); | ||
709 | } | ||
710 | |||
711 | } //SimpleScenarioPackageImpl | ||
diff --git a/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/impl/SpatialRelationImpl.java b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/impl/SpatialRelationImpl.java new file mode 100644 index 00000000..b4e0f4b4 --- /dev/null +++ b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/impl/SpatialRelationImpl.java | |||
@@ -0,0 +1,37 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package simpleScenario.impl; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EClass; | ||
6 | |||
7 | import simpleScenario.SimpleScenarioPackage; | ||
8 | import simpleScenario.SpatialRelation; | ||
9 | |||
10 | /** | ||
11 | * <!-- begin-user-doc --> | ||
12 | * An implementation of the model object '<em><b>Spatial Relation</b></em>'. | ||
13 | * <!-- end-user-doc --> | ||
14 | * | ||
15 | * @generated | ||
16 | */ | ||
17 | public abstract class SpatialRelationImpl extends RelationImpl implements SpatialRelation { | ||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * <!-- end-user-doc --> | ||
21 | * @generated | ||
22 | */ | ||
23 | protected SpatialRelationImpl() { | ||
24 | super(); | ||
25 | } | ||
26 | |||
27 | /** | ||
28 | * <!-- begin-user-doc --> | ||
29 | * <!-- end-user-doc --> | ||
30 | * @generated | ||
31 | */ | ||
32 | @Override | ||
33 | protected EClass eStaticClass() { | ||
34 | return SimpleScenarioPackage.Literals.SPATIAL_RELATION; | ||
35 | } | ||
36 | |||
37 | } //SpatialRelationImpl | ||
diff --git a/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/impl/TemporalRelationImpl.java b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/impl/TemporalRelationImpl.java new file mode 100644 index 00000000..26f2c712 --- /dev/null +++ b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/impl/TemporalRelationImpl.java | |||
@@ -0,0 +1,37 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package simpleScenario.impl; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EClass; | ||
6 | |||
7 | import simpleScenario.SimpleScenarioPackage; | ||
8 | import simpleScenario.TemporalRelation; | ||
9 | |||
10 | /** | ||
11 | * <!-- begin-user-doc --> | ||
12 | * An implementation of the model object '<em><b>Temporal Relation</b></em>'. | ||
13 | * <!-- end-user-doc --> | ||
14 | * | ||
15 | * @generated | ||
16 | */ | ||
17 | public abstract class TemporalRelationImpl extends RelationImpl implements TemporalRelation { | ||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * <!-- end-user-doc --> | ||
21 | * @generated | ||
22 | */ | ||
23 | protected TemporalRelationImpl() { | ||
24 | super(); | ||
25 | } | ||
26 | |||
27 | /** | ||
28 | * <!-- begin-user-doc --> | ||
29 | * <!-- end-user-doc --> | ||
30 | * @generated | ||
31 | */ | ||
32 | @Override | ||
33 | protected EClass eStaticClass() { | ||
34 | return SimpleScenarioPackage.Literals.TEMPORAL_RELATION; | ||
35 | } | ||
36 | |||
37 | } //TemporalRelationImpl | ||
diff --git a/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/impl/VisionBlockedImpl.java b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/impl/VisionBlockedImpl.java new file mode 100644 index 00000000..88222d67 --- /dev/null +++ b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/impl/VisionBlockedImpl.java | |||
@@ -0,0 +1,158 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package simpleScenario.impl; | ||
4 | |||
5 | import org.eclipse.emf.common.notify.Notification; | ||
6 | |||
7 | import org.eclipse.emf.ecore.EClass; | ||
8 | import org.eclipse.emf.ecore.InternalEObject; | ||
9 | |||
10 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
11 | |||
12 | import simpleScenario.Actor; | ||
13 | import simpleScenario.SimpleScenarioPackage; | ||
14 | import simpleScenario.VisionBlocked; | ||
15 | |||
16 | /** | ||
17 | * <!-- begin-user-doc --> | ||
18 | * An implementation of the model object '<em><b>Vision Blocked</b></em>'. | ||
19 | * <!-- end-user-doc --> | ||
20 | * <p> | ||
21 | * The following features are implemented: | ||
22 | * </p> | ||
23 | * <ul> | ||
24 | * <li>{@link simpleScenario.impl.VisionBlockedImpl#getBlockedBy <em>Blocked By</em>}</li> | ||
25 | * </ul> | ||
26 | * | ||
27 | * @generated | ||
28 | */ | ||
29 | public class VisionBlockedImpl extends SpatialRelationImpl implements VisionBlocked { | ||
30 | /** | ||
31 | * The cached value of the '{@link #getBlockedBy() <em>Blocked By</em>}' reference. | ||
32 | * <!-- begin-user-doc --> | ||
33 | * <!-- end-user-doc --> | ||
34 | * @see #getBlockedBy() | ||
35 | * @generated | ||
36 | * @ordered | ||
37 | */ | ||
38 | protected Actor blockedBy; | ||
39 | |||
40 | /** | ||
41 | * <!-- begin-user-doc --> | ||
42 | * <!-- end-user-doc --> | ||
43 | * @generated | ||
44 | */ | ||
45 | protected VisionBlockedImpl() { | ||
46 | super(); | ||
47 | } | ||
48 | |||
49 | /** | ||
50 | * <!-- begin-user-doc --> | ||
51 | * <!-- end-user-doc --> | ||
52 | * @generated | ||
53 | */ | ||
54 | @Override | ||
55 | protected EClass eStaticClass() { | ||
56 | return SimpleScenarioPackage.Literals.VISION_BLOCKED; | ||
57 | } | ||
58 | |||
59 | /** | ||
60 | * <!-- begin-user-doc --> | ||
61 | * <!-- end-user-doc --> | ||
62 | * @generated | ||
63 | */ | ||
64 | @Override | ||
65 | public Actor getBlockedBy() { | ||
66 | if (blockedBy != null && blockedBy.eIsProxy()) { | ||
67 | InternalEObject oldBlockedBy = (InternalEObject)blockedBy; | ||
68 | blockedBy = (Actor)eResolveProxy(oldBlockedBy); | ||
69 | if (blockedBy != oldBlockedBy) { | ||
70 | if (eNotificationRequired()) | ||
71 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, SimpleScenarioPackage.VISION_BLOCKED__BLOCKED_BY, oldBlockedBy, blockedBy)); | ||
72 | } | ||
73 | } | ||
74 | return blockedBy; | ||
75 | } | ||
76 | |||
77 | /** | ||
78 | * <!-- begin-user-doc --> | ||
79 | * <!-- end-user-doc --> | ||
80 | * @generated | ||
81 | */ | ||
82 | public Actor basicGetBlockedBy() { | ||
83 | return blockedBy; | ||
84 | } | ||
85 | |||
86 | /** | ||
87 | * <!-- begin-user-doc --> | ||
88 | * <!-- end-user-doc --> | ||
89 | * @generated | ||
90 | */ | ||
91 | @Override | ||
92 | public void setBlockedBy(Actor newBlockedBy) { | ||
93 | Actor oldBlockedBy = blockedBy; | ||
94 | blockedBy = newBlockedBy; | ||
95 | if (eNotificationRequired()) | ||
96 | eNotify(new ENotificationImpl(this, Notification.SET, SimpleScenarioPackage.VISION_BLOCKED__BLOCKED_BY, oldBlockedBy, blockedBy)); | ||
97 | } | ||
98 | |||
99 | /** | ||
100 | * <!-- begin-user-doc --> | ||
101 | * <!-- end-user-doc --> | ||
102 | * @generated | ||
103 | */ | ||
104 | @Override | ||
105 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
106 | switch (featureID) { | ||
107 | case SimpleScenarioPackage.VISION_BLOCKED__BLOCKED_BY: | ||
108 | if (resolve) return getBlockedBy(); | ||
109 | return basicGetBlockedBy(); | ||
110 | } | ||
111 | return super.eGet(featureID, resolve, coreType); | ||
112 | } | ||
113 | |||
114 | /** | ||
115 | * <!-- begin-user-doc --> | ||
116 | * <!-- end-user-doc --> | ||
117 | * @generated | ||
118 | */ | ||
119 | @Override | ||
120 | public void eSet(int featureID, Object newValue) { | ||
121 | switch (featureID) { | ||
122 | case SimpleScenarioPackage.VISION_BLOCKED__BLOCKED_BY: | ||
123 | setBlockedBy((Actor)newValue); | ||
124 | return; | ||
125 | } | ||
126 | super.eSet(featureID, newValue); | ||
127 | } | ||
128 | |||
129 | /** | ||
130 | * <!-- begin-user-doc --> | ||
131 | * <!-- end-user-doc --> | ||
132 | * @generated | ||
133 | */ | ||
134 | @Override | ||
135 | public void eUnset(int featureID) { | ||
136 | switch (featureID) { | ||
137 | case SimpleScenarioPackage.VISION_BLOCKED__BLOCKED_BY: | ||
138 | setBlockedBy((Actor)null); | ||
139 | return; | ||
140 | } | ||
141 | super.eUnset(featureID); | ||
142 | } | ||
143 | |||
144 | /** | ||
145 | * <!-- begin-user-doc --> | ||
146 | * <!-- end-user-doc --> | ||
147 | * @generated | ||
148 | */ | ||
149 | @Override | ||
150 | public boolean eIsSet(int featureID) { | ||
151 | switch (featureID) { | ||
152 | case SimpleScenarioPackage.VISION_BLOCKED__BLOCKED_BY: | ||
153 | return blockedBy != null; | ||
154 | } | ||
155 | return super.eIsSet(featureID); | ||
156 | } | ||
157 | |||
158 | } //VisionBlockedImpl | ||
diff --git a/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/util/SimpleScenarioAdapterFactory.java b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/util/SimpleScenarioAdapterFactory.java new file mode 100644 index 00000000..eb9bc05f --- /dev/null +++ b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/util/SimpleScenarioAdapterFactory.java | |||
@@ -0,0 +1,282 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package simpleScenario.util; | ||
4 | |||
5 | import org.eclipse.emf.common.notify.Adapter; | ||
6 | import org.eclipse.emf.common.notify.Notifier; | ||
7 | |||
8 | import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; | ||
9 | |||
10 | import org.eclipse.emf.ecore.EObject; | ||
11 | |||
12 | import simpleScenario.*; | ||
13 | |||
14 | /** | ||
15 | * <!-- begin-user-doc --> | ||
16 | * The <b>Adapter Factory</b> for the model. | ||
17 | * It provides an adapter <code>createXXX</code> method for each class of the model. | ||
18 | * <!-- end-user-doc --> | ||
19 | * @see simpleScenario.SimpleScenarioPackage | ||
20 | * @generated | ||
21 | */ | ||
22 | public class SimpleScenarioAdapterFactory extends AdapterFactoryImpl { | ||
23 | /** | ||
24 | * The cached model package. | ||
25 | * <!-- begin-user-doc --> | ||
26 | * <!-- end-user-doc --> | ||
27 | * @generated | ||
28 | */ | ||
29 | protected static SimpleScenarioPackage modelPackage; | ||
30 | |||
31 | /** | ||
32 | * Creates an instance of the adapter factory. | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @generated | ||
36 | */ | ||
37 | public SimpleScenarioAdapterFactory() { | ||
38 | if (modelPackage == null) { | ||
39 | modelPackage = SimpleScenarioPackage.eINSTANCE; | ||
40 | } | ||
41 | } | ||
42 | |||
43 | /** | ||
44 | * Returns whether this factory is applicable for the type of the object. | ||
45 | * <!-- begin-user-doc --> | ||
46 | * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. | ||
47 | * <!-- end-user-doc --> | ||
48 | * @return whether this factory is applicable for the type of the object. | ||
49 | * @generated | ||
50 | */ | ||
51 | @Override | ||
52 | public boolean isFactoryForType(Object object) { | ||
53 | if (object == modelPackage) { | ||
54 | return true; | ||
55 | } | ||
56 | if (object instanceof EObject) { | ||
57 | return ((EObject)object).eClass().getEPackage() == modelPackage; | ||
58 | } | ||
59 | return false; | ||
60 | } | ||
61 | |||
62 | /** | ||
63 | * The switch that delegates to the <code>createXXX</code> methods. | ||
64 | * <!-- begin-user-doc --> | ||
65 | * <!-- end-user-doc --> | ||
66 | * @generated | ||
67 | */ | ||
68 | protected SimpleScenarioSwitch<Adapter> modelSwitch = | ||
69 | new SimpleScenarioSwitch<Adapter>() { | ||
70 | @Override | ||
71 | public Adapter caseSimpleScenario(SimpleScenario object) { | ||
72 | return createSimpleScenarioAdapter(); | ||
73 | } | ||
74 | @Override | ||
75 | public Adapter caseLane(Lane object) { | ||
76 | return createLaneAdapter(); | ||
77 | } | ||
78 | @Override | ||
79 | public Adapter caseActor(Actor object) { | ||
80 | return createActorAdapter(); | ||
81 | } | ||
82 | @Override | ||
83 | public Adapter caseRelation(Relation object) { | ||
84 | return createRelationAdapter(); | ||
85 | } | ||
86 | @Override | ||
87 | public Adapter caseSpatialRelation(SpatialRelation object) { | ||
88 | return createSpatialRelationAdapter(); | ||
89 | } | ||
90 | @Override | ||
91 | public Adapter caseTemporalRelation(TemporalRelation object) { | ||
92 | return createTemporalRelationAdapter(); | ||
93 | } | ||
94 | @Override | ||
95 | public Adapter caseVisionBlocked(VisionBlocked object) { | ||
96 | return createVisionBlockedAdapter(); | ||
97 | } | ||
98 | @Override | ||
99 | public Adapter caseSeperationDistance(SeperationDistance object) { | ||
100 | return createSeperationDistanceAdapter(); | ||
101 | } | ||
102 | @Override | ||
103 | public Adapter caseCollisionExists(CollisionExists object) { | ||
104 | return createCollisionExistsAdapter(); | ||
105 | } | ||
106 | @Override | ||
107 | public Adapter caseCollisionDoesNotExist(CollisionDoesNotExist object) { | ||
108 | return createCollisionDoesNotExistAdapter(); | ||
109 | } | ||
110 | @Override | ||
111 | public Adapter defaultCase(EObject object) { | ||
112 | return createEObjectAdapter(); | ||
113 | } | ||
114 | }; | ||
115 | |||
116 | /** | ||
117 | * Creates an adapter for the <code>target</code>. | ||
118 | * <!-- begin-user-doc --> | ||
119 | * <!-- end-user-doc --> | ||
120 | * @param target the object to adapt. | ||
121 | * @return the adapter for the <code>target</code>. | ||
122 | * @generated | ||
123 | */ | ||
124 | @Override | ||
125 | public Adapter createAdapter(Notifier target) { | ||
126 | return modelSwitch.doSwitch((EObject)target); | ||
127 | } | ||
128 | |||
129 | |||
130 | /** | ||
131 | * Creates a new adapter for an object of class '{@link simpleScenario.SimpleScenario <em>Simple Scenario</em>}'. | ||
132 | * <!-- begin-user-doc --> | ||
133 | * This default implementation returns null so that we can easily ignore cases; | ||
134 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
135 | * <!-- end-user-doc --> | ||
136 | * @return the new adapter. | ||
137 | * @see simpleScenario.SimpleScenario | ||
138 | * @generated | ||
139 | */ | ||
140 | public Adapter createSimpleScenarioAdapter() { | ||
141 | return null; | ||
142 | } | ||
143 | |||
144 | /** | ||
145 | * Creates a new adapter for an object of class '{@link simpleScenario.Lane <em>Lane</em>}'. | ||
146 | * <!-- begin-user-doc --> | ||
147 | * This default implementation returns null so that we can easily ignore cases; | ||
148 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
149 | * <!-- end-user-doc --> | ||
150 | * @return the new adapter. | ||
151 | * @see simpleScenario.Lane | ||
152 | * @generated | ||
153 | */ | ||
154 | public Adapter createLaneAdapter() { | ||
155 | return null; | ||
156 | } | ||
157 | |||
158 | /** | ||
159 | * Creates a new adapter for an object of class '{@link simpleScenario.Actor <em>Actor</em>}'. | ||
160 | * <!-- begin-user-doc --> | ||
161 | * This default implementation returns null so that we can easily ignore cases; | ||
162 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
163 | * <!-- end-user-doc --> | ||
164 | * @return the new adapter. | ||
165 | * @see simpleScenario.Actor | ||
166 | * @generated | ||
167 | */ | ||
168 | public Adapter createActorAdapter() { | ||
169 | return null; | ||
170 | } | ||
171 | |||
172 | /** | ||
173 | * Creates a new adapter for an object of class '{@link simpleScenario.Relation <em>Relation</em>}'. | ||
174 | * <!-- begin-user-doc --> | ||
175 | * This default implementation returns null so that we can easily ignore cases; | ||
176 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
177 | * <!-- end-user-doc --> | ||
178 | * @return the new adapter. | ||
179 | * @see simpleScenario.Relation | ||
180 | * @generated | ||
181 | */ | ||
182 | public Adapter createRelationAdapter() { | ||
183 | return null; | ||
184 | } | ||
185 | |||
186 | /** | ||
187 | * Creates a new adapter for an object of class '{@link simpleScenario.SpatialRelation <em>Spatial Relation</em>}'. | ||
188 | * <!-- begin-user-doc --> | ||
189 | * This default implementation returns null so that we can easily ignore cases; | ||
190 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
191 | * <!-- end-user-doc --> | ||
192 | * @return the new adapter. | ||
193 | * @see simpleScenario.SpatialRelation | ||
194 | * @generated | ||
195 | */ | ||
196 | public Adapter createSpatialRelationAdapter() { | ||
197 | return null; | ||
198 | } | ||
199 | |||
200 | /** | ||
201 | * Creates a new adapter for an object of class '{@link simpleScenario.TemporalRelation <em>Temporal Relation</em>}'. | ||
202 | * <!-- begin-user-doc --> | ||
203 | * This default implementation returns null so that we can easily ignore cases; | ||
204 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
205 | * <!-- end-user-doc --> | ||
206 | * @return the new adapter. | ||
207 | * @see simpleScenario.TemporalRelation | ||
208 | * @generated | ||
209 | */ | ||
210 | public Adapter createTemporalRelationAdapter() { | ||
211 | return null; | ||
212 | } | ||
213 | |||
214 | /** | ||
215 | * Creates a new adapter for an object of class '{@link simpleScenario.VisionBlocked <em>Vision Blocked</em>}'. | ||
216 | * <!-- begin-user-doc --> | ||
217 | * This default implementation returns null so that we can easily ignore cases; | ||
218 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
219 | * <!-- end-user-doc --> | ||
220 | * @return the new adapter. | ||
221 | * @see simpleScenario.VisionBlocked | ||
222 | * @generated | ||
223 | */ | ||
224 | public Adapter createVisionBlockedAdapter() { | ||
225 | return null; | ||
226 | } | ||
227 | |||
228 | /** | ||
229 | * Creates a new adapter for an object of class '{@link simpleScenario.SeperationDistance <em>Seperation Distance</em>}'. | ||
230 | * <!-- begin-user-doc --> | ||
231 | * This default implementation returns null so that we can easily ignore cases; | ||
232 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
233 | * <!-- end-user-doc --> | ||
234 | * @return the new adapter. | ||
235 | * @see simpleScenario.SeperationDistance | ||
236 | * @generated | ||
237 | */ | ||
238 | public Adapter createSeperationDistanceAdapter() { | ||
239 | return null; | ||
240 | } | ||
241 | |||
242 | /** | ||
243 | * Creates a new adapter for an object of class '{@link simpleScenario.CollisionExists <em>Collision Exists</em>}'. | ||
244 | * <!-- begin-user-doc --> | ||
245 | * This default implementation returns null so that we can easily ignore cases; | ||
246 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
247 | * <!-- end-user-doc --> | ||
248 | * @return the new adapter. | ||
249 | * @see simpleScenario.CollisionExists | ||
250 | * @generated | ||
251 | */ | ||
252 | public Adapter createCollisionExistsAdapter() { | ||
253 | return null; | ||
254 | } | ||
255 | |||
256 | /** | ||
257 | * Creates a new adapter for an object of class '{@link simpleScenario.CollisionDoesNotExist <em>Collision Does Not Exist</em>}'. | ||
258 | * <!-- begin-user-doc --> | ||
259 | * This default implementation returns null so that we can easily ignore cases; | ||
260 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
261 | * <!-- end-user-doc --> | ||
262 | * @return the new adapter. | ||
263 | * @see simpleScenario.CollisionDoesNotExist | ||
264 | * @generated | ||
265 | */ | ||
266 | public Adapter createCollisionDoesNotExistAdapter() { | ||
267 | return null; | ||
268 | } | ||
269 | |||
270 | /** | ||
271 | * Creates a new adapter for the default case. | ||
272 | * <!-- begin-user-doc --> | ||
273 | * This default implementation returns null. | ||
274 | * <!-- end-user-doc --> | ||
275 | * @return the new adapter. | ||
276 | * @generated | ||
277 | */ | ||
278 | public Adapter createEObjectAdapter() { | ||
279 | return null; | ||
280 | } | ||
281 | |||
282 | } //SimpleScenarioAdapterFactory | ||
diff --git a/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/util/SimpleScenarioSwitch.java b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/util/SimpleScenarioSwitch.java new file mode 100644 index 00000000..204ac66f --- /dev/null +++ b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/util/SimpleScenarioSwitch.java | |||
@@ -0,0 +1,309 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package simpleScenario.util; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EObject; | ||
6 | import org.eclipse.emf.ecore.EPackage; | ||
7 | |||
8 | import org.eclipse.emf.ecore.util.Switch; | ||
9 | |||
10 | import simpleScenario.*; | ||
11 | |||
12 | /** | ||
13 | * <!-- begin-user-doc --> | ||
14 | * The <b>Switch</b> for the model's inheritance hierarchy. | ||
15 | * It supports the call {@link #doSwitch(EObject) doSwitch(object)} | ||
16 | * to invoke the <code>caseXXX</code> method for each class of the model, | ||
17 | * starting with the actual class of the object | ||
18 | * and proceeding up the inheritance hierarchy | ||
19 | * until a non-null result is returned, | ||
20 | * which is the result of the switch. | ||
21 | * <!-- end-user-doc --> | ||
22 | * @see simpleScenario.SimpleScenarioPackage | ||
23 | * @generated | ||
24 | */ | ||
25 | public class SimpleScenarioSwitch<T> extends Switch<T> { | ||
26 | /** | ||
27 | * The cached model package | ||
28 | * <!-- begin-user-doc --> | ||
29 | * <!-- end-user-doc --> | ||
30 | * @generated | ||
31 | */ | ||
32 | protected static SimpleScenarioPackage modelPackage; | ||
33 | |||
34 | /** | ||
35 | * Creates an instance of the switch. | ||
36 | * <!-- begin-user-doc --> | ||
37 | * <!-- end-user-doc --> | ||
38 | * @generated | ||
39 | */ | ||
40 | public SimpleScenarioSwitch() { | ||
41 | if (modelPackage == null) { | ||
42 | modelPackage = SimpleScenarioPackage.eINSTANCE; | ||
43 | } | ||
44 | } | ||
45 | |||
46 | /** | ||
47 | * Checks whether this is a switch for the given package. | ||
48 | * <!-- begin-user-doc --> | ||
49 | * <!-- end-user-doc --> | ||
50 | * @param ePackage the package in question. | ||
51 | * @return whether this is a switch for the given package. | ||
52 | * @generated | ||
53 | */ | ||
54 | @Override | ||
55 | protected boolean isSwitchFor(EPackage ePackage) { | ||
56 | return ePackage == modelPackage; | ||
57 | } | ||
58 | |||
59 | /** | ||
60 | * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @return the first non-null result returned by a <code>caseXXX</code> call. | ||
64 | * @generated | ||
65 | */ | ||
66 | @Override | ||
67 | protected T doSwitch(int classifierID, EObject theEObject) { | ||
68 | switch (classifierID) { | ||
69 | case SimpleScenarioPackage.SIMPLE_SCENARIO: { | ||
70 | SimpleScenario simpleScenario = (SimpleScenario)theEObject; | ||
71 | T result = caseSimpleScenario(simpleScenario); | ||
72 | if (result == null) result = defaultCase(theEObject); | ||
73 | return result; | ||
74 | } | ||
75 | case SimpleScenarioPackage.LANE: { | ||
76 | Lane lane = (Lane)theEObject; | ||
77 | T result = caseLane(lane); | ||
78 | if (result == null) result = defaultCase(theEObject); | ||
79 | return result; | ||
80 | } | ||
81 | case SimpleScenarioPackage.ACTOR: { | ||
82 | Actor actor = (Actor)theEObject; | ||
83 | T result = caseActor(actor); | ||
84 | if (result == null) result = defaultCase(theEObject); | ||
85 | return result; | ||
86 | } | ||
87 | case SimpleScenarioPackage.RELATION: { | ||
88 | Relation relation = (Relation)theEObject; | ||
89 | T result = caseRelation(relation); | ||
90 | if (result == null) result = defaultCase(theEObject); | ||
91 | return result; | ||
92 | } | ||
93 | case SimpleScenarioPackage.SPATIAL_RELATION: { | ||
94 | SpatialRelation spatialRelation = (SpatialRelation)theEObject; | ||
95 | T result = caseSpatialRelation(spatialRelation); | ||
96 | if (result == null) result = caseRelation(spatialRelation); | ||
97 | if (result == null) result = defaultCase(theEObject); | ||
98 | return result; | ||
99 | } | ||
100 | case SimpleScenarioPackage.TEMPORAL_RELATION: { | ||
101 | TemporalRelation temporalRelation = (TemporalRelation)theEObject; | ||
102 | T result = caseTemporalRelation(temporalRelation); | ||
103 | if (result == null) result = caseRelation(temporalRelation); | ||
104 | if (result == null) result = defaultCase(theEObject); | ||
105 | return result; | ||
106 | } | ||
107 | case SimpleScenarioPackage.VISION_BLOCKED: { | ||
108 | VisionBlocked visionBlocked = (VisionBlocked)theEObject; | ||
109 | T result = caseVisionBlocked(visionBlocked); | ||
110 | if (result == null) result = caseSpatialRelation(visionBlocked); | ||
111 | if (result == null) result = caseRelation(visionBlocked); | ||
112 | if (result == null) result = defaultCase(theEObject); | ||
113 | return result; | ||
114 | } | ||
115 | case SimpleScenarioPackage.SEPERATION_DISTANCE: { | ||
116 | SeperationDistance seperationDistance = (SeperationDistance)theEObject; | ||
117 | T result = caseSeperationDistance(seperationDistance); | ||
118 | if (result == null) result = caseSpatialRelation(seperationDistance); | ||
119 | if (result == null) result = caseRelation(seperationDistance); | ||
120 | if (result == null) result = defaultCase(theEObject); | ||
121 | return result; | ||
122 | } | ||
123 | case SimpleScenarioPackage.COLLISION_EXISTS: { | ||
124 | CollisionExists collisionExists = (CollisionExists)theEObject; | ||
125 | T result = caseCollisionExists(collisionExists); | ||
126 | if (result == null) result = caseTemporalRelation(collisionExists); | ||
127 | if (result == null) result = caseRelation(collisionExists); | ||
128 | if (result == null) result = defaultCase(theEObject); | ||
129 | return result; | ||
130 | } | ||
131 | case SimpleScenarioPackage.COLLISION_DOES_NOT_EXIST: { | ||
132 | CollisionDoesNotExist collisionDoesNotExist = (CollisionDoesNotExist)theEObject; | ||
133 | T result = caseCollisionDoesNotExist(collisionDoesNotExist); | ||
134 | if (result == null) result = caseTemporalRelation(collisionDoesNotExist); | ||
135 | if (result == null) result = caseRelation(collisionDoesNotExist); | ||
136 | if (result == null) result = defaultCase(theEObject); | ||
137 | return result; | ||
138 | } | ||
139 | default: return defaultCase(theEObject); | ||
140 | } | ||
141 | } | ||
142 | |||
143 | /** | ||
144 | * Returns the result of interpreting the object as an instance of '<em>Simple Scenario</em>'. | ||
145 | * <!-- begin-user-doc --> | ||
146 | * This implementation returns null; | ||
147 | * returning a non-null result will terminate the switch. | ||
148 | * <!-- end-user-doc --> | ||
149 | * @param object the target of the switch. | ||
150 | * @return the result of interpreting the object as an instance of '<em>Simple Scenario</em>'. | ||
151 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
152 | * @generated | ||
153 | */ | ||
154 | public T caseSimpleScenario(SimpleScenario object) { | ||
155 | return null; | ||
156 | } | ||
157 | |||
158 | /** | ||
159 | * Returns the result of interpreting the object as an instance of '<em>Lane</em>'. | ||
160 | * <!-- begin-user-doc --> | ||
161 | * This implementation returns null; | ||
162 | * returning a non-null result will terminate the switch. | ||
163 | * <!-- end-user-doc --> | ||
164 | * @param object the target of the switch. | ||
165 | * @return the result of interpreting the object as an instance of '<em>Lane</em>'. | ||
166 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
167 | * @generated | ||
168 | */ | ||
169 | public T caseLane(Lane object) { | ||
170 | return null; | ||
171 | } | ||
172 | |||
173 | /** | ||
174 | * Returns the result of interpreting the object as an instance of '<em>Actor</em>'. | ||
175 | * <!-- begin-user-doc --> | ||
176 | * This implementation returns null; | ||
177 | * returning a non-null result will terminate the switch. | ||
178 | * <!-- end-user-doc --> | ||
179 | * @param object the target of the switch. | ||
180 | * @return the result of interpreting the object as an instance of '<em>Actor</em>'. | ||
181 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
182 | * @generated | ||
183 | */ | ||
184 | public T caseActor(Actor object) { | ||
185 | return null; | ||
186 | } | ||
187 | |||
188 | /** | ||
189 | * Returns the result of interpreting the object as an instance of '<em>Relation</em>'. | ||
190 | * <!-- begin-user-doc --> | ||
191 | * This implementation returns null; | ||
192 | * returning a non-null result will terminate the switch. | ||
193 | * <!-- end-user-doc --> | ||
194 | * @param object the target of the switch. | ||
195 | * @return the result of interpreting the object as an instance of '<em>Relation</em>'. | ||
196 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
197 | * @generated | ||
198 | */ | ||
199 | public T caseRelation(Relation object) { | ||
200 | return null; | ||
201 | } | ||
202 | |||
203 | /** | ||
204 | * Returns the result of interpreting the object as an instance of '<em>Spatial Relation</em>'. | ||
205 | * <!-- begin-user-doc --> | ||
206 | * This implementation returns null; | ||
207 | * returning a non-null result will terminate the switch. | ||
208 | * <!-- end-user-doc --> | ||
209 | * @param object the target of the switch. | ||
210 | * @return the result of interpreting the object as an instance of '<em>Spatial Relation</em>'. | ||
211 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
212 | * @generated | ||
213 | */ | ||
214 | public T caseSpatialRelation(SpatialRelation object) { | ||
215 | return null; | ||
216 | } | ||
217 | |||
218 | /** | ||
219 | * Returns the result of interpreting the object as an instance of '<em>Temporal Relation</em>'. | ||
220 | * <!-- begin-user-doc --> | ||
221 | * This implementation returns null; | ||
222 | * returning a non-null result will terminate the switch. | ||
223 | * <!-- end-user-doc --> | ||
224 | * @param object the target of the switch. | ||
225 | * @return the result of interpreting the object as an instance of '<em>Temporal Relation</em>'. | ||
226 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
227 | * @generated | ||
228 | */ | ||
229 | public T caseTemporalRelation(TemporalRelation object) { | ||
230 | return null; | ||
231 | } | ||
232 | |||
233 | /** | ||
234 | * Returns the result of interpreting the object as an instance of '<em>Vision Blocked</em>'. | ||
235 | * <!-- begin-user-doc --> | ||
236 | * This implementation returns null; | ||
237 | * returning a non-null result will terminate the switch. | ||
238 | * <!-- end-user-doc --> | ||
239 | * @param object the target of the switch. | ||
240 | * @return the result of interpreting the object as an instance of '<em>Vision Blocked</em>'. | ||
241 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
242 | * @generated | ||
243 | */ | ||
244 | public T caseVisionBlocked(VisionBlocked object) { | ||
245 | return null; | ||
246 | } | ||
247 | |||
248 | /** | ||
249 | * Returns the result of interpreting the object as an instance of '<em>Seperation Distance</em>'. | ||
250 | * <!-- begin-user-doc --> | ||
251 | * This implementation returns null; | ||
252 | * returning a non-null result will terminate the switch. | ||
253 | * <!-- end-user-doc --> | ||
254 | * @param object the target of the switch. | ||
255 | * @return the result of interpreting the object as an instance of '<em>Seperation Distance</em>'. | ||
256 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
257 | * @generated | ||
258 | */ | ||
259 | public T caseSeperationDistance(SeperationDistance object) { | ||
260 | return null; | ||
261 | } | ||
262 | |||
263 | /** | ||
264 | * Returns the result of interpreting the object as an instance of '<em>Collision Exists</em>'. | ||
265 | * <!-- begin-user-doc --> | ||
266 | * This implementation returns null; | ||
267 | * returning a non-null result will terminate the switch. | ||
268 | * <!-- end-user-doc --> | ||
269 | * @param object the target of the switch. | ||
270 | * @return the result of interpreting the object as an instance of '<em>Collision Exists</em>'. | ||
271 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
272 | * @generated | ||
273 | */ | ||
274 | public T caseCollisionExists(CollisionExists object) { | ||
275 | return null; | ||
276 | } | ||
277 | |||
278 | /** | ||
279 | * Returns the result of interpreting the object as an instance of '<em>Collision Does Not Exist</em>'. | ||
280 | * <!-- begin-user-doc --> | ||
281 | * This implementation returns null; | ||
282 | * returning a non-null result will terminate the switch. | ||
283 | * <!-- end-user-doc --> | ||
284 | * @param object the target of the switch. | ||
285 | * @return the result of interpreting the object as an instance of '<em>Collision Does Not Exist</em>'. | ||
286 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
287 | * @generated | ||
288 | */ | ||
289 | public T caseCollisionDoesNotExist(CollisionDoesNotExist object) { | ||
290 | return null; | ||
291 | } | ||
292 | |||
293 | /** | ||
294 | * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. | ||
295 | * <!-- begin-user-doc --> | ||
296 | * This implementation returns null; | ||
297 | * returning a non-null result will terminate the switch, but this is the last case anyway. | ||
298 | * <!-- end-user-doc --> | ||
299 | * @param object the target of the switch. | ||
300 | * @return the result of interpreting the object as an instance of '<em>EObject</em>'. | ||
301 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) | ||
302 | * @generated | ||
303 | */ | ||
304 | @Override | ||
305 | public T defaultCase(EObject object) { | ||
306 | return null; | ||
307 | } | ||
308 | |||
309 | } //SimpleScenarioSwitch | ||