Applying case-based reasoning to aid fault management in supervisory control