Remember that Jess doesn't check the rules against working memory; it
checks incoming and outgoing working memory elements against the
rules. If you want to recheck a rule periodically, then you just need
to have time changes be represented as changes in the working
memory. You can have a (time <nnnn>) fact that is periodically
updated, and have the repeating rules match against it. The time fact
can be updated using a timer built around a Java Thread, or you can
use an idle rule (like the one in FAQ question #7, "How do I make Jess
run forever?") to do the updating when Jess has nothing else to do.

I think Gang Liu wrote:
> hi, there
> 
> I am eager to know how to implement rules with temporal logics. Please help 
> me out.
> 
> Normally, Jess checks rule by rule against knowledge base without halt. But, 
> we want Jess check another rule 5 seconds after it checks the first rule. Is 
> is possible? How to do it?
> 
> thanks
> 
> Gang
> 




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