@@ -20,7 +20,7 @@ To do so, complete the following subtasks:
2. Model your metamodel in the `*.ecore` file. Use the editor that should open on project creation. See the **description of the transportation network** for details.
- You only need to use the `Class`, `Attribut`, `Enumeration``Reference`, `Composition`, and `Inheritance` meta-elements for this example.
- You only need to use the `Class`, `Attribut`, `Enumeration``Reference`, `Composition`, and `Supertype` meta-elements for this example.
- Try to design the `Class`es connected by `Composition`s like a tree (containment hierarchy).The root of the tree should be an `Class` that represence your model itself ( for example `Transportation Network`). All classes except a root class should have (at least) one incoming composition. Use `Reference`s for non-containment relationships.
- Try too specify the properties of the metamodel elements as clear as possible in the property explorer below the diagram (The explorer shows the properties of the element selected in the diagram).
...
...
@@ -41,14 +41,10 @@ The first part of the domain describes the transportation network itself:
>
> Road networks must have an `identifier` and a `target` and `source` location. They can be marked as `directed` to allow mono- or bidirectional usage. They also can include the `length` of the network for later fuel calculations. Each network includes multiple, but at least one, `Road`s. Each road must be `identifiable` and also include their `length`, so that later the network length could be calculated.
**Task:** This part of the network will be shown as part of a tutorial in the exercise session. Try to recreate this part at home, to familiarize yourself with EMF.
The second part of the metamodel includes information for the usage of the transportation network:
> The transportation network also includes `Route`s that can be planed for transportation requests. Each route has an `identifier`and can have a `start` location, `end` location and/or a `list of road networks` the route includes. To execute the routes the transportation network also includes `Vehicle`s. These can be free to use (are in the `car park` of the company) or already included in a route. One route is always driven by one vehicle. The vehicle itself must have an `identifier`, `model`, `fuel capacity` and a `fuel type`. They can include a `location` to help their management for routes in case they are free to use.
**Task:** Try to model this part at home till the next exercise meeting.
## How To Run the Base Solution
1.`Import` the `stgroup.mdsd.transportation_network.*` projects in your *Eclipse* workspace.