解释得分KIE Workbench

时间:2019-01-29 12:15:10

标签: drools optaplanner kie-workbench

如何在KIE Workbench中获得分数说明?

我在文档中找到了此代码,但是我需要放在哪里?我只有drl文件和求解器配置xml

for (ConstraintMatchTotal constraintMatchTotal : guiScoreDirector.getConstraintMatchTotals()) {
   String constraintName = constraintMatchTotal.getConstraintName();
// The score impact of that constraint
   Score scoreTotal = constraintMatchTotal.getScoreTotal();

   for (ConstraintMatch constraintMatch : constraintMatchTotal.getConstraintMatchSet()) {
     List<Object> justificationList = constraintMatch.getJustificationList();
     Score score = constraintMatch.getScore();
     ...
     }
}

这是一种通过约束来分解得分的方法吗?

0 个答案:

没有答案