Starting with the frame.clp example: 1) Add some rules. 2) Call (run-until-halt) at the end of the script. 3) In the event handlers, assert appropriate facts to trigger rules, or not.
I think Abdul Gaffar wrote: > Does anyone know how I can have a Java GUI and and .CLP file integrated > together so that, when I press "YES" on a button the rule is satisfied and > fired. Consequently, if I press No then the rule is not satisfied, leading > to another question being displayed and so on until the goal condition is > satisfied??? > For example small system which will diagnose car faults. > Prompt, Does the engine start? Y/N > > (goal attribute best_colour)) > (rule (if main_course is red meat) > > --------------------------------------------------------- Ernest Friedman-Hill Distributed Systems Research Phone: (925) 294-2154 Sandia National Labs FAX: (925) 294-2234 Org. 8920, MS 9012 [EMAIL PROTECTED] PO Box 969 http://herzberg.ca.sandia.gov Livermore, CA 94550 -------------------------------------------------------------------- To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]' in the BODY of a message to [EMAIL PROTECTED], NOT to the list (use your own address!) List problems? Notify [EMAIL PROTECTED] --------------------------------------------------------------------
