home › Forums › # Technical Support › JAVA API › Reply To: JAVA API
November 24, 2014 at 11:05
#1519
Keymaster
Hi,
thank you for your post.
The fuzzy output value can be found as engine.getOutputVariable("Risk").fuzzyOutput().toString()
.
The activation degrees of each rule can be found by iterating over the rules as follows:
RuleBlock ruleBlock = engine.getRuleBlock(0);
for (Rule r : ruleBlock){
System.out.println( r.activationDegree(ruleBlock.getConjunction(), ruleBlock.getDisjunction()) + " -> Rule: " + r.toString());
}
An activation degree of 0.0 means the rule was not activated.
Let me know if this answers your question.