I think =?iso-8859-1?q?un=20ethix?= wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] > > Hi, > > I would much appreciate it if you could help me with the following: > > I have a cicular program (with an exit rule, once the right conditions are met) > > Now, inside that cyle, I have a rule, with some conditions (LHS). > On the RHS I have an output. The details are not so important. > However, the output (RHS) of the rule does not affect the conditions which will > detirmine whether the rule will fire (the LHS conditions). > > My (limited) understanding is the following: If the conditions for that rule are > met, then the rule is activated (and the rule is then fired at the appropriate time). > > I think I am correct in saying that in Clips, this rule would only fire once (per cycle), whilst in Jess this would be an infinite loop.
You are actually not correct. Modifying facts in either CLIPS or Jess has the same effect on rule activations. If you modify a fact on a rule's RHS, and the modified fact still matches on the LHS, then the rule will be re-activated. CLIPS definstances and Jess definstances, however, act differently. In CLIPS, an instance is essentially implemented using a separate fact for each slot. In Jess, a single fact corresponds to each entire instance, which means they act like unordered facts. This consistency is, in general, a good thing. You can mix facts and instances without worrying about different behaviors. > Whilst it is possible to, for example, have the RHS 'innactivate', using flags for > example - the rule from firing (and then re-activating it at the start of the next > cycle - this does seem to be an unnecessary complication. > Well, by definition, it it were unnecessary, you wouldn't need to do it! As it is, though, that's the standard way of dealing with things. > My question is: is there some (probably very obvious) thing that I am missing here? > Nope. We've discussed additional features for future releases that are relevant here, like the recent discussion on one-shot rules; you could search the archive. > Thankyou for your time. > > Pol > > > > > --------------------------------- > With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs --------------------------------------------------------- Ernest Friedman-Hill Distributed Systems Research Phone: (925) 294-2154 Sandia National Labs FAX: (925) 294-2234 PO Box 969, MS 9012 [EMAIL PROTECTED] Livermore, CA 94550 http://herzberg.ca.sandia.gov -------------------------------------------------------------------- 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] --------------------------------------------------------------------
