Sunday 13 July 2014

TrafficControl: Data Structures of the program

In future posts, I'll discuss errors and improvements in my program. To make this easier to understand, I'll describe the overall structure of the program.

TrafficControl contains list of all trains, stations and tracks. The TrafficClock is associated with a thread that fires on a periodic interval. When the TrafficClock emits the signal, all train/track/station elements are updated.

The datamodels are used for presenting the current state of the elements of the train network.

No comments:

Post a Comment