I think chinnaswamy gounder wrote:
> Hi All,
> 
>          We use run() method for running the Rete
> engine. The actual api is,
> 
>             int run()
> 
> What is the interger it is returning. 

>From Chapter 9 of the manual, "Java API Guide"
(docs/api/jess/Rete.html#run()) :

run

public int run()
        throws JessException

     Run the actual engine.
     Returns:
         The number of rules fired
     Throws:
         JessException - If anything goes wrong.


> 
> Is there anyway to monitor whether a Rete object is
> running or aleeping.


No, not that I can think of. If you just call run() of course, you can
keep track of this yourself; when run() returns, it's not running
anymore. But if you're using runUntilHalt(), it could be hard to tell.


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

Reply via email to