Well, you could start by reading the documentation for the (reset)
function (manual section 8.115 in Jess 6.x manuals) and the discussions
of the knowledge base in section 2.7 and rules in 2.8.

In this specific case, the reset is important because there's a rule
"startup" with an empty left-hand-side.  As the manual says:

  We see first of all how issuing the reset command asserts the fact
  (initial-fact). You should always issue a reset command when working
  with rules.

The reason for this is that many rules depend on the presence of
(initial-fact) to fire -- and among these are rules with empty LHSs.


I think Jerry Hoe wrote:
> Hi,
> 
> I have been following the thread for a long time as I anticipated that I will be
> using JESS for my project.
> 
> Now, I have just started read the documentations and examples. This is a
> simple question that is troubling me right now...
> 
> Please refer to the "jess\examples\xfer\Main.java" under the JessXX directory.
> I am wondering why one needs to call rete.reset() before calling rete.run().
> This is not documented anywhere or have I miss it?
> 
> Thanks in advance... cheers...
> 
> P.S. I will have more questions in the future... :)
> 
> --
> Regards,
> Jerry
> 
> 
> ---------------------------------------------------------------------
> 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]
> ---------------------------------------------------------------------
> 



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