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.

7. Knowledge Specification Language 71<br />

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

Examples<br />

Existence Test<br />

the temperature \= the 'freezing point' of water<br />

the staff are not equal to nothing<br />

the capacity of jugA is different from jugA`s volume<br />

A test for the existence of a variant is to decide whether or not it has a<br />

current value. For this use either of the KSL keywords<br />

known<br />

unknown.<br />

Examples<br />

the starter of the meal is unknown<br />

the temperature is known<br />

Direct Comparison<br />

A direct comparison of two terms uses the built-in typographical ordering<br />

of Prolog terms. For comparison, use the arithmetic operators >, beta / 2<br />

the temperature =< the 'freezing point' of water<br />

the pupil`s mark is not below 50<br />

the temperature is at or above boiling_point<br />

the likelihood of frost is less than probable<br />

the food`s calories is less than or equal to 400<br />

Relative Comparison<br />

The relative comparison of two terms is determined by their relative<br />

positions within a defined group construct. The group can be specified<br />

explicitly as an ordered set, using the KSL keywords according to, or<br />

implicitly by name (i.e. a group previously defined).<br />

Any of the above direct comparison operators may be used to define the<br />

type of the comparison.

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

Saved successfully!

Ooh no, something went wrong!