RE: JESS: retract doesn't work like I want it to do
I've tried to run your example, but I received: java.lang.ClassNotFoundException: Fehlerauslesen I think that it is missing -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de H|bner Envoyi : vendredi 27 janvier 2006 09:32 @ : jess-users@sandia.gov Objet : JESS: retract doesn't work like I want it to do Hello everybody, I need a hint from you. When I try to retract a fact, all other facts are reactivated. To understand what I mean, I'm sending the anlageneu.clp and fehlertabelle.dat with this mail. It has a small GUI and it's asking some questions to the user. Answer the first question with expertensystem, the second with ja and the third with nein. This procedure will insert the following facts to the working memory: (fehlermeldung) (Zylinder IO) (Funktion Probleme) (fehlermeldung2) (fehlermeldung3) (Notausschalter unbetaetigt) (Geschlossen) (repair Jeder Notaus- Knopf muss unbetaetigt sein. Loesen Sie alle, die noch gedrueckt sind!) In the next step I have to retract the last fact to fire the rule reparatur_Schutztuere_Stufe1, but it restarts questioning the user with the first three questions. Can somebody tell me what's wrong with the code? Best regards, Lars 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]
Re: JESS: retract doesn't work like I want it to do
I think =?iso-8859-1?Q?H=FCbner?= wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] Hello everybody, I need a hint from you. When I try to retract a fact, all other facts are reactivated. ... Can somebody tell me what's wrong with the code? You've got a bunch of rules with the pattern (not (repair ?)) When you assert a fact like (repair X), all these rules are deactivated. When you later retract the repair fact, all these rules are activated again. This is how things are supposed to work. If these rules are no longer relevant, then you have to make that explicit. You could use multiple modules, so that the rules that matter in each stage are in their own module, and the focus could be changed over time; or you can use a phase fact: a special fact that indicates which set of rules matter, and all the rules can match it as appropriate. - Ernest Friedman-Hill Advanced Software Research Phone: (925) 294-2154 Sandia National LabsFAX: (925) 294-2234 PO Box 969, MS 9012 [EMAIL PROTECTED] Livermore, CA 94550 http://herzberg.ca.sandia.gov 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]