Ernest,
I had assumed that the underlying functionality whether using
Rete.reset or (reset) (likewise for Rete.clear() and (clear), Rete.run()
and (run) )
was the same.
Are there any other subtle differences that would impact behavior in the
jess environment? That is between using programmatic calls (methods
defined in the Rete class) or equivalent command line syntax?
Thanks,
Lakshmi
[EMAIL PROTECTED] wrote:
I think Lakshmi Vempati wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
I am trying to use defadvice (before reset and after clear) and I
noticed the following problem:
If reset (or clear) is invoked via a a programmatic call to the reset
(or clear) method defined in the Rete class,
it does not trigger the defadvice but if instead I execute either reset
(or clear) on the command line or use the executeCommand method defined
in the Rete class, it does trigger the defadvice.
This is precisely how things should work. You're adding advice to the
(reset) and (clear) functions in the Jess language; the functioning of
the Rete.reset() and Rete.clear() Java methods is unaffected.
If you want to execute some code every time Rete.reset() is called,
you can register a JessListener with the Rete object.
---------------------------------------------------------
Ernest Friedman-Hill
Advanced Software Research Phone: (925) 294-2154
Sandia National Labs FAX: (925) 294-2234
PO Box 969, MS 9012 [EMAIL PROTECTED]
Livermore, CA 94550 http://herzberg.ca.sandia.gov
--------------------------------------------------------------------
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]
--------------------------------------------------------------------
--------------------------------------------------------------------
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]
--------------------------------------------------------------------