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

Ernest Friedman-Hill  
Advanced Software Research          Phone: (925) 294-2154
Sandia National Labs                FAX:   (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]

Reply via email to