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.

Contents 5<br />

Selecting Rules 37<br />

Updating the Agenda 39<br />

4. Data-Driven Programming 41<br />

Data-Driven Procedures 41<br />

Launches 42<br />

Constraining the Values of Slots 44<br />

Attaching Demons to Slot Updates 45<br />

Restricting the Access to Slots 47<br />

5. Questions and Answers 49<br />

Defining Questions 49<br />

Menu Selection 49<br />

Storing Answers 50<br />

Keyboard Input 51<br />

Constrained Input 51<br />

Customized Input 52<br />

Default Questions 52<br />

Explaining Questions 52<br />

Invoking Questions 53<br />

6. The Anatomy of a <strong>flex</strong> Program 55<br />

A Simple <strong>flex</strong> Program 56<br />

Extending the Program 58<br />

<strong>flex</strong> and Prolog 59<br />

Components of the KSL 59<br />

7. The KSL 61<br />

KSL Terms 61<br />

KSL Objects 64<br />

Arithmetic Expressions 68<br />

Dereferencing 69<br />

KSL Formulae 70<br />

Conditions 70<br />

Directives 73<br />

KSL Control Structures 77<br />

If-Then-Else 77<br />

Repeat-Until Loops 77<br />

While-Do Loops 78<br />

For Loops 79<br />

Extended For Loops 79<br />

<strong>flex</strong> toolkit

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

Saved successfully!

Ooh no, something went wrong!