I think chinnaswamy gounder wrote:
> Hi All,
> I have two questions that needs clarrification:
>
> 1. Is it possible to do copies of Rete object after
> the rules are loaded by inplementing Serializable
> interface?
If you really, really want to make copies of a Rete object, then you
can do it in Jess 6.0a3 and later by serializing to a file and then
restoring from that file. It could be as easy as
Rete r1 = new Rete();
// load rules into r1
r1.executeCommand("(bsave foo)");
Rete copy = new Rete();
copy.executeCommand("(bload foo)");
// copy is now a copy of r1, with all the rules and facts loaded.
>
> 2. If I instantiate a Rete object, r , can I put a
> rule first and its related fact later seperately. e.g
>
> e.executeCommand(" rule_1" );
>
> e.executeCommand(" fact_1" );
>
> The data for the objects referred in rule_1 is
> defined fact_1.
I think what you're asking here is whether executeCommand calls are
cumulative; i.e., when the second call is made, is the rule from the
first call still there? The answer is yes, absolutely.
>
> Highly appreciate your response.
>
> Chinnaswamy_g
> Singapore
>
>
>
>
---------------------------------------------------------
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
---------------------------------------------------------------------
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]
---------------------------------------------------------------------