diff options
Diffstat (limited to 'Domains/ca.mcgill.rtgmrt.example.modes3/ecore-gen')
10 files changed, 220 insertions, 8 deletions
diff --git a/Domains/ca.mcgill.rtgmrt.example.modes3/ecore-gen/modes3/Modes3Factory.java b/Domains/ca.mcgill.rtgmrt.example.modes3/ecore-gen/modes3/Modes3Factory.java index 73188db1..10ce47a1 100644 --- a/Domains/ca.mcgill.rtgmrt.example.modes3/ecore-gen/modes3/Modes3Factory.java +++ b/Domains/ca.mcgill.rtgmrt.example.modes3/ecore-gen/modes3/Modes3Factory.java | |||
@@ -58,6 +58,15 @@ public interface Modes3Factory extends EFactory { | |||
58 | Train createTrain(); | 58 | Train createTrain(); |
59 | 59 | ||
60 | /** | 60 | /** |
61 | * Returns a new object of class '<em>Simple Segment</em>'. | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @return a new object of class '<em>Simple Segment</em>'. | ||
65 | * @generated | ||
66 | */ | ||
67 | SimpleSegment createSimpleSegment(); | ||
68 | |||
69 | /** | ||
61 | * Returns the package supported by this factory. | 70 | * Returns the package supported by this factory. |
62 | * <!-- begin-user-doc --> | 71 | * <!-- begin-user-doc --> |
63 | * <!-- end-user-doc --> | 72 | * <!-- end-user-doc --> |
diff --git a/Domains/ca.mcgill.rtgmrt.example.modes3/ecore-gen/modes3/Modes3ModelRoot.java b/Domains/ca.mcgill.rtgmrt.example.modes3/ecore-gen/modes3/Modes3ModelRoot.java index 4f925b7a..d46ee305 100644 --- a/Domains/ca.mcgill.rtgmrt.example.modes3/ecore-gen/modes3/Modes3ModelRoot.java +++ b/Domains/ca.mcgill.rtgmrt.example.modes3/ecore-gen/modes3/Modes3ModelRoot.java | |||
@@ -62,7 +62,7 @@ public interface Modes3ModelRoot extends EObject { | |||
62 | 62 | ||
63 | /** | 63 | /** |
64 | * Returns the value of the '<em><b>Segments</b></em>' containment reference list. | 64 | * Returns the value of the '<em><b>Segments</b></em>' containment reference list. |
65 | * The list contents are of type {@link modes3.Segment}. | 65 | * The list contents are of type {@link modes3.SimpleSegment}. |
66 | * <!-- begin-user-doc --> | 66 | * <!-- begin-user-doc --> |
67 | * <!-- end-user-doc --> | 67 | * <!-- end-user-doc --> |
68 | * @return the value of the '<em>Segments</em>' containment reference list. | 68 | * @return the value of the '<em>Segments</em>' containment reference list. |
@@ -70,7 +70,7 @@ public interface Modes3ModelRoot extends EObject { | |||
70 | * @model containment="true" | 70 | * @model containment="true" |
71 | * @generated | 71 | * @generated |
72 | */ | 72 | */ |
73 | EList<Segment> getSegments(); | 73 | EList<SimpleSegment> getSegments(); |
74 | 74 | ||
75 | /** | 75 | /** |
76 | * Returns the value of the '<em><b>Turnouts</b></em>' containment reference list. | 76 | * Returns the value of the '<em><b>Turnouts</b></em>' containment reference list. |
diff --git a/Domains/ca.mcgill.rtgmrt.example.modes3/ecore-gen/modes3/Modes3Package.java b/Domains/ca.mcgill.rtgmrt.example.modes3/ecore-gen/modes3/Modes3Package.java index 4760af9d..a19c1955 100644 --- a/Domains/ca.mcgill.rtgmrt.example.modes3/ecore-gen/modes3/Modes3Package.java +++ b/Domains/ca.mcgill.rtgmrt.example.modes3/ecore-gen/modes3/Modes3Package.java | |||
@@ -305,6 +305,62 @@ public interface Modes3Package extends EPackage { | |||
305 | 305 | ||
306 | 306 | ||
307 | /** | 307 | /** |
308 | * The meta object id for the '{@link modes3.impl.SimpleSegmentImpl <em>Simple Segment</em>}' class. | ||
309 | * <!-- begin-user-doc --> | ||
310 | * <!-- end-user-doc --> | ||
311 | * @see modes3.impl.SimpleSegmentImpl | ||
312 | * @see modes3.impl.Modes3PackageImpl#getSimpleSegment() | ||
313 | * @generated | ||
314 | */ | ||
315 | int SIMPLE_SEGMENT = 4; | ||
316 | |||
317 | /** | ||
318 | * The feature id for the '<em><b>Connected To</b></em>' reference list. | ||
319 | * <!-- begin-user-doc --> | ||
320 | * <!-- end-user-doc --> | ||
321 | * @generated | ||
322 | * @ordered | ||
323 | */ | ||
324 | int SIMPLE_SEGMENT__CONNECTED_TO = SEGMENT__CONNECTED_TO; | ||
325 | |||
326 | /** | ||
327 | * The feature id for the '<em><b>Occupied By</b></em>' reference. | ||
328 | * <!-- begin-user-doc --> | ||
329 | * <!-- end-user-doc --> | ||
330 | * @generated | ||
331 | * @ordered | ||
332 | */ | ||
333 | int SIMPLE_SEGMENT__OCCUPIED_BY = SEGMENT__OCCUPIED_BY; | ||
334 | |||
335 | /** | ||
336 | * The feature id for the '<em><b>Id</b></em>' attribute. | ||
337 | * <!-- begin-user-doc --> | ||
338 | * <!-- end-user-doc --> | ||
339 | * @generated | ||
340 | * @ordered | ||
341 | */ | ||
342 | int SIMPLE_SEGMENT__ID = SEGMENT__ID; | ||
343 | |||
344 | /** | ||
345 | * The number of structural features of the '<em>Simple Segment</em>' class. | ||
346 | * <!-- begin-user-doc --> | ||
347 | * <!-- end-user-doc --> | ||
348 | * @generated | ||
349 | * @ordered | ||
350 | */ | ||
351 | int SIMPLE_SEGMENT_FEATURE_COUNT = SEGMENT_FEATURE_COUNT + 0; | ||
352 | |||
353 | /** | ||
354 | * The number of operations of the '<em>Simple Segment</em>' class. | ||
355 | * <!-- begin-user-doc --> | ||
356 | * <!-- end-user-doc --> | ||
357 | * @generated | ||
358 | * @ordered | ||
359 | */ | ||
360 | int SIMPLE_SEGMENT_OPERATION_COUNT = SEGMENT_OPERATION_COUNT + 0; | ||
361 | |||
362 | |||
363 | /** | ||
308 | * Returns the meta object for class '{@link modes3.Segment <em>Segment</em>}'. | 364 | * Returns the meta object for class '{@link modes3.Segment <em>Segment</em>}'. |
309 | * <!-- begin-user-doc --> | 365 | * <!-- begin-user-doc --> |
310 | * <!-- end-user-doc --> | 366 | * <!-- end-user-doc --> |
@@ -477,6 +533,16 @@ public interface Modes3Package extends EPackage { | |||
477 | EAttribute getTrain_Speed(); | 533 | EAttribute getTrain_Speed(); |
478 | 534 | ||
479 | /** | 535 | /** |
536 | * Returns the meta object for class '{@link modes3.SimpleSegment <em>Simple Segment</em>}'. | ||
537 | * <!-- begin-user-doc --> | ||
538 | * <!-- end-user-doc --> | ||
539 | * @return the meta object for class '<em>Simple Segment</em>'. | ||
540 | * @see modes3.SimpleSegment | ||
541 | * @generated | ||
542 | */ | ||
543 | EClass getSimpleSegment(); | ||
544 | |||
545 | /** | ||
480 | * Returns the factory that creates the instances of the model. | 546 | * Returns the factory that creates the instances of the model. |
481 | * <!-- begin-user-doc --> | 547 | * <!-- begin-user-doc --> |
482 | * <!-- end-user-doc --> | 548 | * <!-- end-user-doc --> |
@@ -635,6 +701,16 @@ public interface Modes3Package extends EPackage { | |||
635 | */ | 701 | */ |
636 | EAttribute TRAIN__SPEED = eINSTANCE.getTrain_Speed(); | 702 | EAttribute TRAIN__SPEED = eINSTANCE.getTrain_Speed(); |
637 | 703 | ||
704 | /** | ||
705 | * The meta object literal for the '{@link modes3.impl.SimpleSegmentImpl <em>Simple Segment</em>}' class. | ||
706 | * <!-- begin-user-doc --> | ||
707 | * <!-- end-user-doc --> | ||
708 | * @see modes3.impl.SimpleSegmentImpl | ||
709 | * @see modes3.impl.Modes3PackageImpl#getSimpleSegment() | ||
710 | * @generated | ||
711 | */ | ||
712 | EClass SIMPLE_SEGMENT = eINSTANCE.getSimpleSegment(); | ||
713 | |||
638 | } | 714 | } |
639 | 715 | ||
640 | } //Modes3Package | 716 | } //Modes3Package |
diff --git a/Domains/ca.mcgill.rtgmrt.example.modes3/ecore-gen/modes3/SimpleSegment.java b/Domains/ca.mcgill.rtgmrt.example.modes3/ecore-gen/modes3/SimpleSegment.java new file mode 100644 index 00000000..da77510f --- /dev/null +++ b/Domains/ca.mcgill.rtgmrt.example.modes3/ecore-gen/modes3/SimpleSegment.java | |||
@@ -0,0 +1,17 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package modes3; | ||
4 | |||
5 | |||
6 | /** | ||
7 | * <!-- begin-user-doc --> | ||
8 | * A representation of the model object '<em><b>Simple Segment</b></em>'. | ||
9 | * <!-- end-user-doc --> | ||
10 | * | ||
11 | * | ||
12 | * @see modes3.Modes3Package#getSimpleSegment() | ||
13 | * @model | ||
14 | * @generated | ||
15 | */ | ||
16 | public interface SimpleSegment extends Segment { | ||
17 | } // SimpleSegment | ||
diff --git a/Domains/ca.mcgill.rtgmrt.example.modes3/ecore-gen/modes3/impl/Modes3FactoryImpl.java b/Domains/ca.mcgill.rtgmrt.example.modes3/ecore-gen/modes3/impl/Modes3FactoryImpl.java index 6ec86cb6..60947533 100644 --- a/Domains/ca.mcgill.rtgmrt.example.modes3/ecore-gen/modes3/impl/Modes3FactoryImpl.java +++ b/Domains/ca.mcgill.rtgmrt.example.modes3/ecore-gen/modes3/impl/Modes3FactoryImpl.java | |||
@@ -60,6 +60,7 @@ public class Modes3FactoryImpl extends EFactoryImpl implements Modes3Factory { | |||
60 | case Modes3Package.MODES3_MODEL_ROOT: return createModes3ModelRoot(); | 60 | case Modes3Package.MODES3_MODEL_ROOT: return createModes3ModelRoot(); |
61 | case Modes3Package.TURNOUT: return createTurnout(); | 61 | case Modes3Package.TURNOUT: return createTurnout(); |
62 | case Modes3Package.TRAIN: return createTrain(); | 62 | case Modes3Package.TRAIN: return createTrain(); |
63 | case Modes3Package.SIMPLE_SEGMENT: return createSimpleSegment(); | ||
63 | default: | 64 | default: |
64 | throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); | 65 | throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); |
65 | } | 66 | } |
@@ -110,6 +111,16 @@ public class Modes3FactoryImpl extends EFactoryImpl implements Modes3Factory { | |||
110 | * <!-- end-user-doc --> | 111 | * <!-- end-user-doc --> |
111 | * @generated | 112 | * @generated |
112 | */ | 113 | */ |
114 | public SimpleSegment createSimpleSegment() { | ||
115 | SimpleSegmentImpl simpleSegment = new SimpleSegmentImpl(); | ||
116 | return simpleSegment; | ||
117 | } | ||
118 | |||
119 | /** | ||
120 | * <!-- begin-user-doc --> | ||
121 | * <!-- end-user-doc --> | ||
122 | * @generated | ||
123 | */ | ||
113 | public Modes3Package getModes3Package() { | 124 | public Modes3Package getModes3Package() { |
114 | return (Modes3Package)getEPackage(); | 125 | return (Modes3Package)getEPackage(); |
115 | } | 126 | } |
diff --git a/Domains/ca.mcgill.rtgmrt.example.modes3/ecore-gen/modes3/impl/Modes3ModelRootImpl.java b/Domains/ca.mcgill.rtgmrt.example.modes3/ecore-gen/modes3/impl/Modes3ModelRootImpl.java index d1ee25ff..ccab1f29 100644 --- a/Domains/ca.mcgill.rtgmrt.example.modes3/ecore-gen/modes3/impl/Modes3ModelRootImpl.java +++ b/Domains/ca.mcgill.rtgmrt.example.modes3/ecore-gen/modes3/impl/Modes3ModelRootImpl.java | |||
@@ -6,7 +6,7 @@ import java.util.Collection; | |||
6 | 6 | ||
7 | import modes3.Modes3ModelRoot; | 7 | import modes3.Modes3ModelRoot; |
8 | import modes3.Modes3Package; | 8 | import modes3.Modes3Package; |
9 | import modes3.Segment; | 9 | import modes3.SimpleSegment; |
10 | import modes3.Train; | 10 | import modes3.Train; |
11 | import modes3.Turnout; | 11 | import modes3.Turnout; |
12 | 12 | ||
@@ -79,7 +79,7 @@ public class Modes3ModelRootImpl extends MinimalEObjectImpl.Container implements | |||
79 | * @generated | 79 | * @generated |
80 | * @ordered | 80 | * @ordered |
81 | */ | 81 | */ |
82 | protected EList<Segment> segments; | 82 | protected EList<SimpleSegment> segments; |
83 | 83 | ||
84 | /** | 84 | /** |
85 | * The cached value of the '{@link #getTurnouts() <em>Turnouts</em>}' containment reference list. | 85 | * The cached value of the '{@link #getTurnouts() <em>Turnouts</em>}' containment reference list. |
@@ -148,9 +148,9 @@ public class Modes3ModelRootImpl extends MinimalEObjectImpl.Container implements | |||
148 | * <!-- end-user-doc --> | 148 | * <!-- end-user-doc --> |
149 | * @generated | 149 | * @generated |
150 | */ | 150 | */ |
151 | public EList<Segment> getSegments() { | 151 | public EList<SimpleSegment> getSegments() { |
152 | if (segments == null) { | 152 | if (segments == null) { |
153 | segments = new EObjectContainmentEList<Segment>(Segment.class, this, Modes3Package.MODES3_MODEL_ROOT__SEGMENTS); | 153 | segments = new EObjectContainmentEList<SimpleSegment>(SimpleSegment.class, this, Modes3Package.MODES3_MODEL_ROOT__SEGMENTS); |
154 | } | 154 | } |
155 | return segments; | 155 | return segments; |
156 | } | 156 | } |
@@ -223,7 +223,7 @@ public class Modes3ModelRootImpl extends MinimalEObjectImpl.Container implements | |||
223 | return; | 223 | return; |
224 | case Modes3Package.MODES3_MODEL_ROOT__SEGMENTS: | 224 | case Modes3Package.MODES3_MODEL_ROOT__SEGMENTS: |
225 | getSegments().clear(); | 225 | getSegments().clear(); |
226 | getSegments().addAll((Collection<? extends Segment>)newValue); | 226 | getSegments().addAll((Collection<? extends SimpleSegment>)newValue); |
227 | return; | 227 | return; |
228 | case Modes3Package.MODES3_MODEL_ROOT__TURNOUTS: | 228 | case Modes3Package.MODES3_MODEL_ROOT__TURNOUTS: |
229 | getTurnouts().clear(); | 229 | getTurnouts().clear(); |
diff --git a/Domains/ca.mcgill.rtgmrt.example.modes3/ecore-gen/modes3/impl/Modes3PackageImpl.java b/Domains/ca.mcgill.rtgmrt.example.modes3/ecore-gen/modes3/impl/Modes3PackageImpl.java index 2b9e828c..557da4c1 100644 --- a/Domains/ca.mcgill.rtgmrt.example.modes3/ecore-gen/modes3/impl/Modes3PackageImpl.java +++ b/Domains/ca.mcgill.rtgmrt.example.modes3/ecore-gen/modes3/impl/Modes3PackageImpl.java | |||
@@ -6,6 +6,7 @@ import modes3.Modes3Factory; | |||
6 | import modes3.Modes3ModelRoot; | 6 | import modes3.Modes3ModelRoot; |
7 | import modes3.Modes3Package; | 7 | import modes3.Modes3Package; |
8 | import modes3.Segment; | 8 | import modes3.Segment; |
9 | import modes3.SimpleSegment; | ||
9 | import modes3.Train; | 10 | import modes3.Train; |
10 | import modes3.Turnout; | 11 | import modes3.Turnout; |
11 | 12 | ||
@@ -52,6 +53,13 @@ public class Modes3PackageImpl extends EPackageImpl implements Modes3Package { | |||
52 | private EClass trainEClass = null; | 53 | private EClass trainEClass = null; |
53 | 54 | ||
54 | /** | 55 | /** |
56 | * <!-- begin-user-doc --> | ||
57 | * <!-- end-user-doc --> | ||
58 | * @generated | ||
59 | */ | ||
60 | private EClass simpleSegmentEClass = null; | ||
61 | |||
62 | /** | ||
55 | * Creates an instance of the model <b>Package</b>, registered with | 63 | * Creates an instance of the model <b>Package</b>, registered with |
56 | * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package | 64 | * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package |
57 | * package URI value. | 65 | * package URI value. |
@@ -261,6 +269,15 @@ public class Modes3PackageImpl extends EPackageImpl implements Modes3Package { | |||
261 | * <!-- end-user-doc --> | 269 | * <!-- end-user-doc --> |
262 | * @generated | 270 | * @generated |
263 | */ | 271 | */ |
272 | public EClass getSimpleSegment() { | ||
273 | return simpleSegmentEClass; | ||
274 | } | ||
275 | |||
276 | /** | ||
277 | * <!-- begin-user-doc --> | ||
278 | * <!-- end-user-doc --> | ||
279 | * @generated | ||
280 | */ | ||
264 | public Modes3Factory getModes3Factory() { | 281 | public Modes3Factory getModes3Factory() { |
265 | return (Modes3Factory)getEFactoryInstance(); | 282 | return (Modes3Factory)getEFactoryInstance(); |
266 | } | 283 | } |
@@ -303,6 +320,8 @@ public class Modes3PackageImpl extends EPackageImpl implements Modes3Package { | |||
303 | createEReference(trainEClass, TRAIN__LOCATION); | 320 | createEReference(trainEClass, TRAIN__LOCATION); |
304 | createEAttribute(trainEClass, TRAIN__ID); | 321 | createEAttribute(trainEClass, TRAIN__ID); |
305 | createEAttribute(trainEClass, TRAIN__SPEED); | 322 | createEAttribute(trainEClass, TRAIN__SPEED); |
323 | |||
324 | simpleSegmentEClass = createEClass(SIMPLE_SEGMENT); | ||
306 | } | 325 | } |
307 | 326 | ||
308 | /** | 327 | /** |
@@ -334,6 +353,7 @@ public class Modes3PackageImpl extends EPackageImpl implements Modes3Package { | |||
334 | 353 | ||
335 | // Add supertypes to classes | 354 | // Add supertypes to classes |
336 | turnoutEClass.getESuperTypes().add(this.getSegment()); | 355 | turnoutEClass.getESuperTypes().add(this.getSegment()); |
356 | simpleSegmentEClass.getESuperTypes().add(this.getSegment()); | ||
337 | 357 | ||
338 | // Initialize classes, features, and operations; add parameters | 358 | // Initialize classes, features, and operations; add parameters |
339 | initEClass(segmentEClass, Segment.class, "Segment", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | 359 | initEClass(segmentEClass, Segment.class, "Segment", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
@@ -344,7 +364,7 @@ public class Modes3PackageImpl extends EPackageImpl implements Modes3Package { | |||
344 | initEClass(modes3ModelRootEClass, Modes3ModelRoot.class, "Modes3ModelRoot", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | 364 | initEClass(modes3ModelRootEClass, Modes3ModelRoot.class, "Modes3ModelRoot", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
345 | initEAttribute(getModes3ModelRoot_Id(), ecorePackage.getEInt(), "id", null, 0, 1, Modes3ModelRoot.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | 365 | initEAttribute(getModes3ModelRoot_Id(), ecorePackage.getEInt(), "id", null, 0, 1, Modes3ModelRoot.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
346 | initEReference(getModes3ModelRoot_Trains(), this.getTrain(), null, "trains", null, 0, -1, Modes3ModelRoot.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | 366 | initEReference(getModes3ModelRoot_Trains(), this.getTrain(), null, "trains", null, 0, -1, Modes3ModelRoot.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
347 | initEReference(getModes3ModelRoot_Segments(), this.getSegment(), null, "segments", null, 0, -1, Modes3ModelRoot.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | 367 | initEReference(getModes3ModelRoot_Segments(), this.getSimpleSegment(), null, "segments", null, 0, -1, Modes3ModelRoot.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
348 | initEReference(getModes3ModelRoot_Turnouts(), this.getTurnout(), null, "turnouts", null, 0, -1, Modes3ModelRoot.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | 368 | initEReference(getModes3ModelRoot_Turnouts(), this.getTurnout(), null, "turnouts", null, 0, -1, Modes3ModelRoot.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
349 | 369 | ||
350 | initEClass(turnoutEClass, Turnout.class, "Turnout", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | 370 | initEClass(turnoutEClass, Turnout.class, "Turnout", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
@@ -356,6 +376,8 @@ public class Modes3PackageImpl extends EPackageImpl implements Modes3Package { | |||
356 | initEAttribute(getTrain_Id(), ecorePackage.getEInt(), "id", null, 0, 1, Train.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | 376 | initEAttribute(getTrain_Id(), ecorePackage.getEInt(), "id", null, 0, 1, Train.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
357 | initEAttribute(getTrain_Speed(), ecorePackage.getEDouble(), "speed", null, 0, 1, Train.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | 377 | initEAttribute(getTrain_Speed(), ecorePackage.getEDouble(), "speed", null, 0, 1, Train.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
358 | 378 | ||
379 | initEClass(simpleSegmentEClass, SimpleSegment.class, "SimpleSegment", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
380 | |||
359 | // Create resource | 381 | // Create resource |
360 | createResource(eNS_URI); | 382 | createResource(eNS_URI); |
361 | } | 383 | } |
diff --git a/Domains/ca.mcgill.rtgmrt.example.modes3/ecore-gen/modes3/impl/SimpleSegmentImpl.java b/Domains/ca.mcgill.rtgmrt.example.modes3/ecore-gen/modes3/impl/SimpleSegmentImpl.java new file mode 100644 index 00000000..e3fd6c34 --- /dev/null +++ b/Domains/ca.mcgill.rtgmrt.example.modes3/ecore-gen/modes3/impl/SimpleSegmentImpl.java | |||
@@ -0,0 +1,37 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package modes3.impl; | ||
4 | |||
5 | import modes3.Modes3Package; | ||
6 | import modes3.SimpleSegment; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | |||
10 | /** | ||
11 | * <!-- begin-user-doc --> | ||
12 | * An implementation of the model object '<em><b>Simple Segment</b></em>'. | ||
13 | * <!-- end-user-doc --> | ||
14 | * | ||
15 | * @generated | ||
16 | */ | ||
17 | public class SimpleSegmentImpl extends SegmentImpl implements SimpleSegment { | ||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * <!-- end-user-doc --> | ||
21 | * @generated | ||
22 | */ | ||
23 | protected SimpleSegmentImpl() { | ||
24 | super(); | ||
25 | } | ||
26 | |||
27 | /** | ||
28 | * <!-- begin-user-doc --> | ||
29 | * <!-- end-user-doc --> | ||
30 | * @generated | ||
31 | */ | ||
32 | @Override | ||
33 | protected EClass eStaticClass() { | ||
34 | return Modes3Package.Literals.SIMPLE_SEGMENT; | ||
35 | } | ||
36 | |||
37 | } //SimpleSegmentImpl | ||
diff --git a/Domains/ca.mcgill.rtgmrt.example.modes3/ecore-gen/modes3/util/Modes3AdapterFactory.java b/Domains/ca.mcgill.rtgmrt.example.modes3/ecore-gen/modes3/util/Modes3AdapterFactory.java index 86568e9d..9c5c8d2d 100644 --- a/Domains/ca.mcgill.rtgmrt.example.modes3/ecore-gen/modes3/util/Modes3AdapterFactory.java +++ b/Domains/ca.mcgill.rtgmrt.example.modes3/ecore-gen/modes3/util/Modes3AdapterFactory.java | |||
@@ -84,6 +84,10 @@ public class Modes3AdapterFactory extends AdapterFactoryImpl { | |||
84 | return createTrainAdapter(); | 84 | return createTrainAdapter(); |
85 | } | 85 | } |
86 | @Override | 86 | @Override |
87 | public Adapter caseSimpleSegment(SimpleSegment object) { | ||
88 | return createSimpleSegmentAdapter(); | ||
89 | } | ||
90 | @Override | ||
87 | public Adapter defaultCase(EObject object) { | 91 | public Adapter defaultCase(EObject object) { |
88 | return createEObjectAdapter(); | 92 | return createEObjectAdapter(); |
89 | } | 93 | } |
@@ -160,6 +164,20 @@ public class Modes3AdapterFactory extends AdapterFactoryImpl { | |||
160 | } | 164 | } |
161 | 165 | ||
162 | /** | 166 | /** |
167 | * Creates a new adapter for an object of class '{@link modes3.SimpleSegment <em>Simple Segment</em>}'. | ||
168 | * <!-- begin-user-doc --> | ||
169 | * This default implementation returns null so that we can easily ignore cases; | ||
170 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
171 | * <!-- end-user-doc --> | ||
172 | * @return the new adapter. | ||
173 | * @see modes3.SimpleSegment | ||
174 | * @generated | ||
175 | */ | ||
176 | public Adapter createSimpleSegmentAdapter() { | ||
177 | return null; | ||
178 | } | ||
179 | |||
180 | /** | ||
163 | * Creates a new adapter for the default case. | 181 | * Creates a new adapter for the default case. |
164 | * <!-- begin-user-doc --> | 182 | * <!-- begin-user-doc --> |
165 | * This default implementation returns null. | 183 | * This default implementation returns null. |
diff --git a/Domains/ca.mcgill.rtgmrt.example.modes3/ecore-gen/modes3/util/Modes3Switch.java b/Domains/ca.mcgill.rtgmrt.example.modes3/ecore-gen/modes3/util/Modes3Switch.java index 5dab272b..0c28861a 100644 --- a/Domains/ca.mcgill.rtgmrt.example.modes3/ecore-gen/modes3/util/Modes3Switch.java +++ b/Domains/ca.mcgill.rtgmrt.example.modes3/ecore-gen/modes3/util/Modes3Switch.java | |||
@@ -91,6 +91,13 @@ public class Modes3Switch<T> extends Switch<T> { | |||
91 | if (result == null) result = defaultCase(theEObject); | 91 | if (result == null) result = defaultCase(theEObject); |
92 | return result; | 92 | return result; |
93 | } | 93 | } |
94 | case Modes3Package.SIMPLE_SEGMENT: { | ||
95 | SimpleSegment simpleSegment = (SimpleSegment)theEObject; | ||
96 | T result = caseSimpleSegment(simpleSegment); | ||
97 | if (result == null) result = caseSegment(simpleSegment); | ||
98 | if (result == null) result = defaultCase(theEObject); | ||
99 | return result; | ||
100 | } | ||
94 | default: return defaultCase(theEObject); | 101 | default: return defaultCase(theEObject); |
95 | } | 102 | } |
96 | } | 103 | } |
@@ -156,6 +163,21 @@ public class Modes3Switch<T> extends Switch<T> { | |||
156 | } | 163 | } |
157 | 164 | ||
158 | /** | 165 | /** |
166 | * Returns the result of interpreting the object as an instance of '<em>Simple Segment</em>'. | ||
167 | * <!-- begin-user-doc --> | ||
168 | * This implementation returns null; | ||
169 | * returning a non-null result will terminate the switch. | ||
170 | * <!-- end-user-doc --> | ||
171 | * @param object the target of the switch. | ||
172 | * @return the result of interpreting the object as an instance of '<em>Simple Segment</em>'. | ||
173 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
174 | * @generated | ||
175 | */ | ||
176 | public T caseSimpleSegment(SimpleSegment object) { | ||
177 | return null; | ||
178 | } | ||
179 | |||
180 | /** | ||
159 | * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. | 181 | * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. |
160 | * <!-- begin-user-doc --> | 182 | * <!-- begin-user-doc --> |
161 | * This implementation returns null; | 183 | * This implementation returns null; |