I think Sr. Hernan Flores wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> Hi,
> I'm learning Java and Jess, all together.

Not necessarily a good idea. This is a lot to take in all at once.

In any case, what you need to do is make the Rete object a member
variable, not a local variable in the functions that use it. A member
variable is accessible from all the methods of a class, and its
lifetime is as long as the instance of the class it appears in.

As you found out, every Rete object that you create is separate and
independent of all the others. You need to just6 create the one, as a
member variable, and use it for the whole time your program is running.



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

Reply via email to