Re: JESS: Firing order

2005-11-21 Thread James C. Owen
OK, now tell us why you would want to change the default conflict resolution strategy, mainly the one that says that the most recent rule will fire first. Actually, it's a bit more complex than that and the reasoning for using MEA versus LEX versus other methods were explored and answered

Re: JESS: Firing order

2005-11-21 Thread Nicolas Fortin
Thank you for your answer Alan, Your Strategy implementation will have to examine both activations and if the rule for each one is the same, apply a random ordering between the two - I think... Sorry if my question seems obvious, I am new with the Jess API. I looked the Activation class

Re: JESS: Firing order

2005-11-21 Thread Nicolas Fortin
Thank you James, If the Agenda conflict resolution is running correctly, and if everything else in the rules are equal, then the recency part of the conflict resolution will probably fire the last one asserted. If that is a problem, then this might not be a good rulebase application

JESS: Firing order

2005-11-20 Thread Nicolas Fortin
Hello everybody, I am wondering if it is possible to randomize the firing order, when one rule is activated by many facts. Indeed a rule is always fired according the reversed order of assertion. So this example (reset) (assert (a 1)) (assert (a 2)) (assert (a 3)) (defrule example (a

Re: JESS: Firing order

2005-11-20 Thread Alan Moore
Nicolas Fortin wrote: Hello everybody, I am wondering if it is possible to randomize the firing order, You can create an object that implements the jess.Strategy interface, see: http://herzberg.ca.sandia.gov/jess/docs/70/api/jess/Strategy.html You will implement the compare() method and