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 19<br />

Feline<br />

Cat<br />

Tail<br />

Manx<br />

The KSL code for this is as follows.<br />

frame cat<br />

default tail is furry .<br />

frame manx is a cat<br />

do not inherit tail .<br />

Attribute Chaining<br />

Sometimes it may be convenient for an attribute to have its own set of<br />

values, and in this case slots may contain pointers to other frames rather<br />

than simple values.<br />

Example<br />

frame address<br />

default city is 'London' .<br />

frame employee<br />

default residence is an address .<br />

<strong>flex</strong> toolkit

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

Saved successfully!

Ooh no, something went wrong!