On Mar 14, 2007, at 11:38 PM, Eithon Cadag wrote:


Just out of curiosity, is there a particular reason that the Userfunction you provided also implements the Serializable interface? I know the example user function implementation online just implements the Userfunction interface and not the Serializable one. When we make our own Userfunctions, is it good practice for us to implement Serializable as well?


(bsave) and Rete.bsave() will use Serialization to save the state of a Rete object -- which includes the table of functions. So if you write your own Userfunctions, they should be Serializable if you want them to work with bsave/bload.

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

Reply via email to