Dear all,

Thanks for those who have enligthened me! I really missed out the documentation
portion on using (reset) in  section 2.8. However, I only learned primarily the
following effects of (reset):

- It asserts the (initial-fact).
- It is better (if not compulsory) to call (reset) before executing the rule engine.
- Plus some other effects...

Perhaps the real reason for the necessity to call (reset) is beyond the scope of
comprehension for my project.

Another question: If I have asserted some ordered/unordered facts before
the rules, I should call (reset) at the very beginning of the program. Am I
correct?

Thanks again.

Best Regards,
Jerry

friedman_hill ernest j wrote:

> 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... :)

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