Method summary | |
---|---|
add-problem | object problem &key &allow-other-keys |
diagnose | diagnostic object-w-learning &key trigger &allow-other-keys |
get-diagnostics | object &key &allow-other-keys |
get-problems | object &key &allow-other-keys |
get-repairs | object &key &allow-other-keys |
handle-fix | fix repair problem object-w-learning &key &allow-other-keys |
notify-learning | object &key trigger |
open-problem? | problem |
repair | repair problem object-w-learning &key trigger &allow-other-keys |
trigger? | thing trigger &key &allow-other-keys |
Whether the diagnostic is triggered in a certain situation.
Each diagnostic should implement method diagnose which is called when the contents of its :trigger slot matches (through trigger-diagnostic?) the trigger of a notification. Return: nil, a single element or a list of elements. Elements are not required to be of class problem.
Every repair should implement this method. It is called whenever a notification is thrown which matches the trigger of the repair and when one of its trigger-problems is found in (problems obj-w-learning). If triggered-by-problems = nil it will only take the trigger into account. Should return a one value which we call a repair-result. This is not required to be of type repair-result.
gets the diagnostics from an object