Wiki source code of Tutorial 03: Tut Tut!
Last modified by ssm on 2025/01/30 12:05
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | |||
| 2 | |||
| 3 | {{toc/}} | ||
| 4 | |||
| 5 | = Preliminaries = | ||
| 6 | |||
| 7 | * Get a key to the model railway room! | ||
| 8 | |||
| 9 | |||
| 10 | |||
| 11 | = Tasks = | ||
| 12 | |||
| 13 | == T3A1: Round and Round! == | ||
| 14 | |||
| 15 | Use SCCharts (and KIELER) to model a railway controller for the model railway! | ||
| 16 | |||
| 17 | * Choose any train standing in the Inner Circle Station and let it travel around the circle at a speed of 100 units. | ||
| 18 | * Upon entering its home platform reduce its speed to 40. | ||
| 19 | * Stop the train (with brakes) when it reaches the end of the platform. | ||
| 20 | * After waiting for 10 seconds restart the train's travel plan. | ||
| 21 | |||
| 22 | == T3A2: To boldly model where no one has modeled before... == | ||
| 23 | |||
| 24 | Extend your controller by a behavior similar to the controller in Tutorial 1. Instead of using the train standing on KH_ST_1 choose a train of your choice in the Kicking Horse Station that faces against the main traveling direction. | ||
| 25 | |||
| 26 | * The train should travel to any free platform in the Inner Circle Station with a speed of 100 and against the main travel direction of the kicking horse track. | ||
| 27 | * Upon entering the IC station the speed should be reduced to 40. | ||
| 28 | * Once the train reached its target platform, stop it (with brakes) and wait for 10 seconds. | ||
| 29 | * Subsequently, the train should return to its home platform the Kicking Horse Station (without changing its direction) with a speed of 100. | ||
| 30 | * Equivalent to the IC station the train should reduce its speed when entering the KH station and wait for 5 seconds when its platform is reached. | ||
| 31 | * Eventually, the cycle starts again. | ||
| 32 | |||
| 33 | |||
| 34 | |||
| 35 | * Make sure that the trains do not collide! | ||
| 36 | * If the KH train wants to enter the IC station but no platform is free it must wait until one is free! | ||
| 37 | ** Model this appropriately! Don't stop the train instantaneously! | ||
| 38 | |||
| 39 | == T3A3: Important Thoughts == | ||
| 40 | |||
| 41 | * Now, after modeling a relatively simple controller with SCCharts, write down a couple of features (3 at minimum) that you have missed and/or consider mandatory/useful for implementing a more sophisticated controler. Sort your feature list according to importance and be ready to present your list at the railway meeting. | ||
| 42 | |||
| 43 |