On Oct 13, 2006, at 10:17 PM, m u wrote:
Hi all,
Is there a way to transfer (get) assertions from several Rete()
engines into a new Rete() engine?
I've constructed several rete engines. Now I want to use the
results from the engines for further analysis in a new Rete engine.
is this possible?
Yes, absolutely. In Java, you could just do something like
Rete engine1 = ...
Rete engine2 = ...
for (Iterator it = engine1.listFacts(); it.hasNext();) {
engine2.assertFact(((Cloneable) it.next()).clone());
}
But from the sound of it, you might want to just consider using
different modules (defmodules)
within a single engine.
---------------------------------------------------------
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]
--------------------------------------------------------------------