Nice! :) -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, August 12, 2003 4:56 PM To: [EMAIL PROTECTED] Subject: Re: JESS: Working Memory Persistence
I think Mitch Christensen wrote: > > Does Jess support persisting Working Memory[?] > Yep, sure does. There are three different things you can do (two related.) First, you can save just the facts in working memory to a text file using save-facts, and restore them with load-facts. This only works, though, if all your facts have valid textual representations -- i.e., no Java objects in the slots, and no definstances. Good for simple situations Second, you can use the Jess functions "bsave" to do a binary dump of the whole Rete network, and "bload" to restore it. Third, from Java, you can directly serialize a jess.Rete object. This is all that bsave and bload do. All the rules, templates, facts, etc can thus be saved and restored -- even the agenda. For this to work, any Java objects inside working memory must be Serializable, of course. --------------------------------------------------------- Ernest Friedman-Hill Distributed Systems 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] --------------------------------------------------------------------
