Tuesday 1 July 2014

TrafficControl: The First Demonstration of TrafficControl

After implementing a thread model, I can show a screen cap video of the program.



3x normal speed. All units are SI. The stops are very short. A fix is coming...

All numbers are in SI units. The train starts at Hjärup, travels to Lund C and stops there. After that, it travels to Gunnesbo, back to Lund C and to Stångby.

The train network isn't hard coded, instead it is specified in an external file that defines the trains, stations, tracks and travel plans:


The program is still in an early phase, but the functionality is constantly growing. If you have any suggestions, ideas or issues that need to be addressed, please comment.

Adding more trains is easy, and results in three trains moving independently:
Future versions of the program will prevent train collisions and congestion.

I have a list of work packages/incident to deal with:


Hedy Lamarr was a Hollywood actress and inventor of the CDMA technology (leading to Wi-Fi). Her story deserves a blog post of her own, and I will try not to fail her.

No comments:

Post a Comment