home Forums # Technical Support double-promotion warning in Operation.h Reply To: double-promotion warning in Operation.h

#6293
Unknown
Member

What method do I call if I want to see a rule which was fired from the rule base?
Example if I have four rules from the tipping problem
takagiSugeno.addRule(Rule.parse(“if service is poor or food is rancid then tsTip is cheap”, engine));
takagiSugeno.addRule(Rule.parse(“if service is good then tsTip is average”, engine));
takagiSugeno.addRule(Rule.parse(“if service is excellent or food is delicious then tsTip is generous with 0.5”, engine));
takagiSugeno.addRule(Rule.parse(“if service is excellent and food is delicious then tsTip is generous with 1.0”, engine));
engine.addRuleBlock(takagiSugeno);

I wan to know which rule is fired in every iteration.
like Cheap, average or delicious