Thank you. Now that you mentioned it, I double checked the add command and the manual (16.15) says it is equivalent to calling (definstance <classname> <Java object> auto)
Son Nguyen -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Ernest Friedman-Hill Sent: Friday, June 04, 2010 9:48 PM To: jess-users Subject: Re: JESS: Rete.reset() and working memory On Jun 4, 2010, at 6:56 PM, Nguyen, Son wrote: > > The only facts that I indirectly add are shadow facts created when the > Java objects are added to the working memory. > Rete.reset() does not seem to remove the Java objects. Java objects in working memory == definstances; same thing. "add" is just a shorter synonym for "definstance" with all the options defaulted. > > Is this the expected behavior? > The documentation seems to indicate otherwise. 16.151. (reset) Arguments: None Returns: TRUE Description: Removes all facts from working memory, removes all activations, then asserts the fact (initial-fact), then asserts all facts found in deffacts, asserts a fact representing each registered Java object, and (if the set-reset-globals property is TRUE) initializes all defglobals. --------------------------------------------------------- Ernest Friedman-Hill Informatics & Decision Sciences, Sandia National Laboratories PO Box 969, MS 9012, Livermore, CA 94550 http://www.jessrules.com -------------------------------------------------------------------- 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]. --------------------------------------------------------------------
