Again, to change a deffacts from the Jess language, you must redefine
the entire thing. Alternatively, you can define a jess.Deffacts object
in Java, and add it to the engine with Rete.addDeffacts(). You could
then add new facts, or change existing ones, in your Deffacts object,
and the changes would be visible at the next (reset) command.
I think Weihua Zhou wrote:
> hi, there. I assert some set of facts by using deffacts. but later on, I
> want to dynamically update those facts, for example put new fact in or
> change old fact content? how can I do this? it seems that I can modify
> old fact by using modify. however, how about add new fact to certain
> fact set asserted by deffacts? any suggestions? thanks a lot.
>
> david
>
---------------------------------------------------------
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]
---------------------------------------------------------------------