Thanks for your informaition. I will use JESS 5.1. I want to improve performance by copying
rete object. Is that possible to do like this?
remove "transient" keyword in the Rete.java, do work like this:
Rete r1 = new Rete();
r1.executeCommand("(batch /x.clp)");
ObjectOutputStream s = new ObjectOutputStream(
new GZIPOutputStream(
new FileOutputStream(filename), 10000));
s.writeObject(r1);
/* maybe add s.writeObject(r1.m_... ) */
s.flush();
s.close();
ObjectInputStream s = new ObjectInputStream(
new GZIPInputStream(
new FileInputStream(filename), 10000));
Rete r2 = (Rete) (s.readObject());
/* r2.m_... = s.readObject(); */
Is that possible? thanks
Yun
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 12, 2001 1:20 PM
To: Yun Lu
Cc: '[EMAIL PROTECTED]'
Subject: Re: JESS: JESS 5.1 (bload&bsave don't work)
Bload and bsave -do- work, they just don't save facts in Jess
5.x. They only save and restore defrules, deffunctions, etc. Yes, this
means that bload and bsave aren't very useful in Jess 5. You can
augment bsave/bload with save-facts/load-facts to preserve and restore
the full state.
The much improved bload/bsave in Jess 6.0a3 saves everything, all by
itself.
I think Yun Lu wrote:
[Charset gb2312 unsupported, skipping...]
---------------------------------------------------------
Ernest Friedman-Hill
Distributed Systems Research Phone: (925) 294-2154
Sandia National Labs FAX: (925) 294-2234
Org. 8920, MS 9012 [EMAIL PROTECTED]
PO Box 969 http://herzberg.ca.sandia.gov
Livermore, CA 94550
