24.11.2014 Views

flex Expert System Toolkit - LPIS

flex Expert System Toolkit - LPIS

flex Expert System Toolkit - LPIS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3. Forward Chaining 40<br />

considered.<br />

The rule agenda may be viewed as a cyclic queue, whereby the rule following the<br />

selected rule is used as the top of the agenda for the next cycle.<br />

The ruleset may be updated by removing from the rule agenda any rules whose<br />

conditions were not satisfied in the last cycle of the forward chaining engine.<br />

Finally a rule “network” may be specified enabling the agenda to switch between<br />

different groups of rules for each cycle. Each rule group may be defined using<br />

the KSL group construct, and after each rule is fired, the rule agenda becomes<br />

the set of rules specified by the group with the same name as the rule which<br />

was just fired.<br />

In addition to these built-in update methods you may define your own.<br />

It is also possible to disable and enable certain rules. See the built-in <strong>flex</strong><br />

predicates disable_rules/1 and enable_rules/1.<br />

<strong>flex</strong> toolkit

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!