An architecture for heuristic control of real-time processes