reset() removes all the facts, then asserts the fact (initial-fact),
then asserts all the facts that appear in any (deffacts)
constructs. The entire implementation of the Jess (reset) function is

      case RESET:
        context.getEngine().reset();
        break; 

So clearly the two do the same thing.



I think Calicrates Policroniades Borraz wrote:
> 
> Hi guys...
> 
> I'm loading a Jess script from Java and I have a problem, I think.
> 
> I want to know if the rete.reset() method really erase all the facts
> from Jess memory. Because when I execute the method the facts seem to
> remain. The explanation that I find is that reset() only erase the mark
> that indicate that they have fired a rule.
> 
> Thank you in advance.  
> 



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

Reply via email to