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.

2. Frames and Inheritance 21<br />

employee<br />

residence<br />

address<br />

city is 'London'<br />

phil<br />

residence<br />

unique0<br />

city is 'Glasgow'<br />

Global Variables<br />

One special use of frames is to store global variables. These are defined as<br />

attributes of a special frame called global.<br />

Example<br />

frame global<br />

default current_interest_rate is 10.3 .<br />

This creates a global variable called current_interest_rate which may<br />

then be referred to by any KSL statement.<br />

The values of global variables may be updated at run-time.<br />

Global variables are also used to store the response to a <strong>flex</strong> question -<br />

see the chapter on Questions.<br />

<strong>flex</strong> toolkit

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

Saved successfully!

Ooh no, something went wrong!