A hierarchical control system for scheduling and supervising flexible manufacturing cells