I think you must time-stamp your facts (in an additional slot), and base
your rules in those time-stamps.

Henrique


Marco Zappatore wrote:
Dear Jess Developers,
is there a way to compare the exact time at which two
or more facts have been added to the working memory?
For instance:
-asserts fact f1 at time t
-asserts fact f2 at time t+dt
-activates some rules if dt not exceeds a given threshold
-activates some other rules if not

I'm already able to do that shifting from jess to java and
viceversa but is it possible to do that directly in Jess
without using a proper user-defined Java function.

Many thanks for your answers,
  Marco Zappatore

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




--
----- - - - - -  -  -  -  -  -   -   -
Henrique Lopes Cardoso
DEI/FEUP
Rua Dr. Roberto Frias | 4200-465 Porto
PORTUGAL
(+351)225081400 ext.1315
[EMAIL PROTECTED] | www.fe.up.pt/~hlc
----- - - - - -  -  -  -  -  -   -   -

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