...
bool <track>_req[<trainAmount>] contains the requests for each track and train. Before the availability of arrays, we used bool <train>_<track>_req.
int <track>_perm contains the trainnumber of the train, who is allowed to drive on <track>.
Quit, Pause and Cleanup
Quit, pause and cleanup functionality is handled in the c interface.
SIGINT quits the controller
SIGQUIT cleans up
SIGSTOP pauses and continues