24.11.2014 Views

flex Expert System Toolkit - LPIS

flex Expert System Toolkit - LPIS

flex Expert System Toolkit - LPIS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix A - Examples 171<br />

Representing Fish<br />

The following diagram illustrates the two major sub-classes of fish, namely<br />

sea water fish and fresh water fish.<br />

fish<br />

habitat = water<br />

motions = swim<br />

skin = scale<br />

fresh_water_fish<br />

habitat = river<br />

sea_water_fish<br />

habitat = sea<br />

salmon<br />

freddie<br />

habitat = fish_tank<br />

size = large<br />

which is represented by the following KSL sentences :<br />

frame 'sea water fish' is a kind of fish<br />

default habitat is the sea .<br />

frame 'fresh water fish' is a kind of fish<br />

default habitat is a river .<br />

frame salmon is a sea_water_fish, fresh_water_fish .<br />

instance freddie is a salmon ;<br />

habitat is fish_tank and<br />

size is large .<br />

The order of the parents for the salmon frame is important, as this<br />

determines the order in which values are potentially inherited. For example,<br />

the habitat of a salmon is firstly the sea (from 'sea water fish'),<br />

secondly a river (from 'fresh water fish') and thirdly water (from<br />

fish itself).<br />

<strong>flex</strong> toolkit

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

Saved successfully!

Ooh no, something went wrong!