top of page

CSC190-Simulation of TTC Bloor-Danforth Subway line

In this assignment, the Bloor-Danforth subway line in City of Toronto was simulated.

​

First, the observation was made regarding all the possible objects that have interaction in the subway namely passengers, stations and trains. Next, the factors associated with each object was considered some include the waiting time of passengers, number of passengers in each subway station, number of trains and the distance between the trains. The closer the factors considered in the code to subway interactions in TTC the closer the simulation is to reality. For this purpose, some methods were implemented to regulate the movement of the trains and frequently update the number of passengers in each station as well as the total number of trains.

​

It is also important to mention that the code had no memory leaks which might allocate memory from computer. This would hinder the hazardous side effect of this Engineering Design.

bottom of page