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.

Appendix C - KSL Keyword Glossary 211<br />

if<br />

KSL Context<br />

Description<br />

Example<br />

Sentence<br />

Used with rules and clauses to discriminate between<br />

the conditions and the directives or conclusion.<br />

rule prescribe_lomotil<br />

if complains_of( patient, diarrhoea )<br />

and ...<br />

then ...<br />

KSL Context Object<br />

Description The start of the test within an IF-THEN-ELSE<br />

construct. If the test succeeds the 1 st object is<br />

chosen, otherwise the 2 nd object is chosen.<br />

Used with then, else<br />

Example the result is if parameter > 0 then 1<br />

else 0<br />

in<br />

see include.<br />

include<br />

include / includes<br />

KSL Context Formula<br />

Description A directive for extending the current value of a set<br />

with some new objects.<br />

Used with in<br />

Example if ...<br />

then include lemon_sole in the entree<br />

of meal<br />

KSL Context<br />

Description<br />

Example<br />

Formula<br />

Tests whether a set includes some objects.<br />

if the staff includes a secretary<br />

then ...<br />

included<br />

KSL Context Formula<br />

Description Tests whether a set includes some objects.<br />

Used with in<br />

Example if a surprise is included in the<br />

contents of the box then ...<br />

inherit<br />

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

KSL Context Sentence<br />

Description Declares inheritance links for attributes of frames.<br />

Used with from<br />

Example frame feline is a mammal ;<br />

inherit meal from carnivore .

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

Saved successfully!

Ooh no, something went wrong!