I need to know which rules and facts were fired in which inference step.
I used watch rules
to print out which rules have fired. But I cannot figure out how to output at which steps the rules have fired.
Can anyone help?
I need to know which rules and facts were fired in which inference step.
I used watch rules
to print out which rules have fired. But I cannot figure out how to output at which steps the rules have fired.
Can anyone help?
Copyright © 2021 Jogjafile Inc.
From section 2.5.1 of the Basic Programming Guide
Or more succinctly:
Pattern matching and conflict resolution (the maintenance of the rules on the agenda) occur as facts are being asserted and retracted in the actions of the rule, so step 1 is really just select the rule at the top of the agenda. There is no gap between when an assert/retract action is processed and the fact is finally asserted/retracted. You can observe this by watching facts and activations: