Write a set of rules, part of a "building maintenance" ES, that would be able to answer the question: "Why did the lights just go out in POST 303D"? Break the problem down into subgoals, data-gathering, etc.
Facts:
old: the lightbulbs are more than one year old in danger: the lightbulbs are in danger of burning out sounds: the lightbulbs make rattling sounds when you shake them M-F: it is Monday to Friday burnt: the lightbulbs are burned out workday: it is a workday before 5: it is before 5:00 pm power's out: the power is out in POST available: the electrician is available
Rules:
IF the lightbulbs are more than one year old THEN the lightbulbs are in danger of burning out IF NOT the lightbulbs are more than one year old THEN NOT the lightbulbs are in danger of burning out IF the lightbulbs are in danger of burning out AND IF the lightbulbs make rattling sounds when you shake them THEN the lightbulbs are burned out IF NOT the lightbulbs are in danger of burning out THEN NOT the lightbulbs are burned out IF NOT the lightbulbs make rattling sounds when you shake them THEN NOT the lightbulbs are burned out IF the lightbulbs are burned out THEN the lights went out because the lightbulbs burned out (R1) IF NOT the lightbulbs are burned out THEN the power is out in POST IF the power is out in POST AND IF NOT the electrician is available THEN the lights went out because the power was out and the electrician was not on duty (R2) IF the power is out in POST AND IF the electrician is available THEN the lights went out because the power was out and the electrician was not skilled (R3) IF it is a workday AND IF it is before 5:00 pm THEN the electrician is available IF NOT it is a workday THEN NOT the electrician is available AND IF NOT it is before 5:00 pm THEN NOT the electrician is available IF it is Monday to Friday THEN it is a workday IF NOT it is Monday to Friday THEN NOT it is a workday
Conclusions:
R1: the lights went out because the lightbulbs burned out R2: the lights went out because the power was out and the electrician was not on duty R3: the lights went out because the power was out and the electrician was not skilled
Consulting Example:
Are the lightbulbs more than one year old? Yes Do the lightbulbs make rattling sounds when you shake them? No Is it Monday to Friday? Yes Is it before 5:00 pm? Yes
Consulting Conclusion: The lights went out because the power was out and the electrician was not skilled.