I think Daniel B. Davis wrote:
>
> The following is an adaptation of the draw.clp example. It
> tries to embed the techniques of draw.clp within an inference
> pattern-matching regime.
>
> Everything is Ok up to a point, then it fails. Why? How can
> it be fixed? All of the facts for rule listen-for-push are asserted,
> but it does not fire. Why? Transcript under Win95 follows:
>
>
At the time the button is pushed, your (run) function has
returned. Rules only fire when the engine is running; the engine only
runs until there are no more rules left to fire. There are two
ways to fix this:
1) have the callback functions that assert facts also call (run)
afterwards; then the engine runs in the AWT callback thread (not
recommended)
2) use an 'idler' rule (see the pumps example) - the recmmended
solutiuon.
---------------------------------------------------------
Ernest Friedman-Hill
Distributed Systems Research Phone: (925) 294-2154
Sandia National Labs FAX: (925) 294-2234
Org. 8920, MS 9214 [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. List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------