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).
Get Free Quote!
354 Experts Online