Saturday, 20 October 2018

TrafficControl: Implementing Speed Calculation

I've created a flowchart that shows how the train selects what speed to set.

Some methods needs to be implemented:

  • track::getFreeDistance(int trainID) - This will check the free distance for trainID. If the train isn't on that track, the function shall return 0.  


No comments:

Post a Comment