24.11.2014 Views

flex Expert System Toolkit - LPIS

flex Expert System Toolkit - LPIS

flex Expert System Toolkit - LPIS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

9. Flex Predicates 147<br />

Attribute of the Frame; in addition, the Context (a Prolog call) must<br />

also hold before the watchdog can be invoked.<br />

The Check occurs immediately before the access. Indeed, the access will<br />

only be allowed if the Check succeeds. If the Check fails, then the Action<br />

(a Prolog call) is initiated and the access (a call to isa_slot/3) will also fail.<br />

Example<br />

new_watchdog(<br />

security,<br />

balance,<br />

account,<br />

outside_office_hours,<br />

comparison(>,@(classification,user),99),<br />

fail ) .<br />

nospy_chain<br />

Disable the tracing of the forward chaining engine by removing any<br />

spypoints.<br />

nospy_fact( ?Name )<br />

Remove any spypoints that have been set for the fact of the given Name.<br />

Example<br />

nospy_fact( likes ) .<br />

nospy_rule( ?Name )<br />

Remove any spypoints that have been set on the named rule. If the Name is<br />

a variable then spypoints are removed from all the rules.<br />

Example<br />

nospy_rule( _ ) .<br />

nospy_slot(?Attribute, ?Frame )<br />

Remove any spypoints which may have been set for the Attribute and<br />

Frame.<br />

Example<br />

nospy_slot( colour, _ ) .<br />

once(+Name,+Names,-Newnames)<br />

This is a built-in program for re-organising the rule agenda after each cycle<br />

of the forward chaining engine. The most recently fired rule is removed from<br />

<strong>flex</strong> toolkit<br />

7

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

Saved successfully!

Ooh no, something went wrong!