That's basically right. It's most efficient to define rules first,
then reset, then assert facts, then run; but you can actually reset
and define facts first, if you really want to. You don't need to call
halt unless you need to stop the engine before all the rules are
fired.
I think Young-Jin Lee wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> Hi, I've read Jess language document three times, but I still have a few questions.
> What I'm not clear is how to use "reset", "run", and "halt".
>
> I'd like to do the followings:
> First, add rule(s) and/or fact(s) one by one.
> Second, while adding rule(s) and/or fact(s), I want to fire the rule at any time and
>want to stop the rule engine.
>
> I guess, in order to these tasks,
> first, I should call "(reset)" at first,
> second, add rule(s) and/or fact(s) appropriately,
> and third, if I want to fire the rule(s), call "run" and then call "halt" to stop
>the rule engine (Repeat the second and third step).
>
> Is this correct?
>
> Thanks in advance.
>
> Young-Jin Lee
>
---------------------------------------------------------
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]
---------------------------------------------------------------------