Dear friends!
How information can be retained between two firing of the same rule without
using global variables? I tryed to use auxiliary fact like this:
(defrule R1
        ?f1<-(fact1 (slot1 ?x) ...)
        ?f2<-(fact2 (slot2 ?y) ...)
        ...
        ?f3<-(aux-fact (store-slot ?z))
        =>
        (use-somehow ?z)
        (bind ?z (calculate-new-value))
        (modify ?f3 (store-slot ?z))
)
        But this usage of a "modify" cause retracting and new asserting of the f3
and firing of the R1 in advance with same f1 and f2. This hangs machine in
a
loop...
        Mr.Friedman-Hill, may be it will be better if the function "modify"
does'nt reassert fact, but only change slot value? Is it possibile somehow?
Thank in advance.
        Ru Sorokin.

---------------------------------------------------------------------
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