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.

8. Run-Time Interpretation of KSL 113<br />

In addition, for the parent frame PF a clause for PF/1 is created.<br />

Example<br />

instance tweety_pie is a bird ;<br />

habitat is a cage and<br />

predator is sylvester ;<br />

do not inherit motions .<br />

will be represented by the Prolog assertions<br />

instance( tweety_pie, bird ).<br />

bird( tweety_pie ).<br />

current_value( habitat, tweety_pie, cage ).<br />

current_value( predator, tweety_pie, sylvester ).<br />

link( motions, tweety_pie, []).<br />

Launches<br />

Demons<br />

Launches are mapped onto clauses of the relation launch/5, as follows.<br />

launch( Launch,<br />

Instance,<br />

Frame,<br />

Context,<br />

Action ).<br />

Example<br />

launch female_enrolment<br />

when Person is a new student<br />

and female( Person )<br />

then female_enrolment_questions( Person ) .<br />

will be represented by the Prolog assertion<br />

launch( female_enrolment,<br />

Person,<br />

student,<br />

female(Person),<br />

female_enrolment_questions(Person) ).<br />

Demons are asserted as clauses for the relation demon/7, as follows.<br />

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

demon(<br />

Demon,<br />

Attribute,<br />

Frame,<br />

OldValue,<br />

NewValue,

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

Saved successfully!

Ooh no, something went wrong!