TRACS: a flexible real-time environment for traffic control systems