I think Lakshmi Vempati wrote:
> 
> I am using Jess6.0a5 version of Jess. I have a user interface that
> registers
> JessListener for events. After a clear action, though I am resetting the
> event mask
> as described in the user manual, I do not receive jess events unless I
> also set the watch
> for those items. Is this the standard behaviour? 

You're right, the manual is broken in this respect. Right now, you
can't set the event mask in a CLEAR event handler. One way you could
do what you want is using defadvice -- add an after-advice to (clear)
that calls (watch whatever).

(defadvice after clear (watch all))

Jess may be changed again so that the code in the manual will cause
event-handlers to be reregistered; many things have been reorganized i
the last two releases and many more changes are coming.

> 
> Another question is regarding the function (show-jess-listeners). It
> seems to be expecting a
> method called listJessListeners in the Rete class which does not exist,
> and hence I get an
> exception. 

Thanks. Sorry, my mistake; I have the test for this function commented
out in the Jess test suite. It will be fixed in a future version.

> 
> Is there any way to know what watch items are set to true currently?
> 

No, there isn't. I will include a way in a future version.

> Thanks,
> Lakshmi Vempati
Content-Description: Card for Lakshmi Vempati

[Attachment, skipping...]



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