Scenario We would like you to simulate some vehicles on a 2D-plane. Since the real-world has a variety of different vehicles this needs to be reflected. Therefore, we want you to design a simple simulator that allows us to extend it for more vehicle types in the future.
The simulation should initially allow for 3 different vehicle types in the system that have a different set of parameters that change throughout the simulation
The different vehicles types are driving on a 2-dimensional plane that has the dimensions of 3000.0 m by 5000.0 m. The simulation time step length should be configurable but 100 ms is a good default value. At each time step, all vehicles should be updated.
The simulation should run until all vehicles have exited
the simulation. At the beginning of the simulation, a user-specifiable number of agents should be
created. Throughout the simulation time no more new agents should be created. The entire vehicle
population should have a distribution of (85% private vehicles, 10% Taxies and 5% Buses).
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
27 | 28 | 29 | 30 | 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |