Hi Ernest. I like this idea, too. The idea of using a numeric parameter assumes that you have at least some approximate knowledge of the scope and bounds of the number of activations. 'no' and 'all' are useful ends of this spectrum. On the other hand, there are other quantifiers possible here (e.g., 'some', 'many', 'few'), but they aren't practical without concrete knowledge of the behavior of the rules. On the other hand, there's a lot of ground between 'no' and 'all', so something ought to be there (if only the original numeric approach).
Regards, Win [EMAIL PROTECTED] wrote: > I think Juraj Frivolt wrote: > >> Thanks for the advice. I studied this code before. With uncommeting >>engine.run(10) it works well. At this point I'd like to suggest a small >>change in syntax. I added a new variable to defquery. By declaring >>variable rule-activation to a number, it fires the given number of >>activations, if the value is <all>, it fires all activations (what can >>lead to infinite branches), setting value to <no> (or zero) running >>defqueries works as it works now, this is the default setting. >> > > This is a very interesting idea. I think it's better than the existing > solution, where the value would be a fixed number (10 currently). It > allows you to shut off the chaining if it causes problems, or run > longer if necessary. > > I think I like it. Anybody else have any opinions? > > > --------------------------------------------------------- > 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] > -------------------------------------------------------------------- > > > -------------------------------------------------------------------- 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] --------------------------------------------------------------------
