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.

9. Flex Predicates 153<br />

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

Clear from the workspace all watchdogs.<br />

remove_watchdogs( +Attribute,+Frame )<br />

restart<br />

run_data<br />

Clear from the workspace all watchdog procedures associated with an<br />

Attribute of a Frame.<br />

Example<br />

remove_watchdogs( _, account ) .<br />

Clear the workspace of all instances, slot values, all facts and all exceptions,<br />

re-enable all rules and finally run all data directives. It is defined by the<br />

program:<br />

restart :-<br />

remove_instances,<br />

remove_slots,<br />

remove_facts,<br />

remove_exceptions,<br />

enable_rules,<br />

run_data.<br />

Invoke the actions associated with all data directives. If any action fails then<br />

a message to indicate this is written to the current output stream.<br />

run_data( +Name )<br />

Invoke the action associated with the data Name. If the action fails then a<br />

message to indicate this is written to the current output stream.<br />

Example<br />

run_data( start_up_configuration ) .<br />

some_instance( +Name,?Element )<br />

Retrieve (or check) an Element which is an instance of Name. Name can be<br />

the name of a group, the name of a frame or an instance or the name of a<br />

unary relation (e.g. a type predicate in Prolog).<br />

Examples<br />

?- some_instance( colours, E ).<br />

E = black<br />

E = blue<br />

E = green<br />

etc.

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

Saved successfully!

Ooh no, something went wrong!