13 ms·
https://www.clipsrules.net https://www.clipsrules.net - CLIPS handles some of the things discussed in this presentation pretty well. When the author gets to th
by Jtsummers 2y ago
https://www.clipsrules.net https://www.clipsrules.net - CLIPS handles some of the things discussed in this presentation pretty well.
When the author gets to the portion on priorities, in CLIPS this is (primarily) handled with salience and modules.
Salience is a numeric value assigned to each rule, assuming only one agenda the rules with the highest salience will be processed first.
Modules group rules and there's a "focus" stack of modules. The module at the top of the focus stack has its agenda processed first before any other modules. Focus can be controlled by the programmer.
It then has other mechanisms (selectable by the programmer, default is "depth strategy") for when an agenda has multiple rules of the same salience. Depth strategy is LIFO (last in first out), treating the salience level as a stack. So if a rule with salience 10 is activated and later a second rule is activated with salience 10, the second one will run first.
https://www.clipsrules.net/documentation/v641/bpg641.pdf https://www.clipsrules.net/documentation/v641/bpg641.pdf - Page 26 for conflict resolution strategies.
- summarity 2y agoAlso CLIPS has an entire book on creating an interactive fiction game (Adventures in Rule based Programming)