private void localSearchStepEnded(LocalSearchStepScope stepScope) {
   if (constraintMatchEnabled) {
     long timeMillisSpent = stepScope.getPhaseScope().calculateSolverTimeMillisSpent();
     for (ConstraintMatchTotal constraintMatchTotal :
         stepScope.getScoreDirector().getConstraintMatchTotals()) {
       pointList.add(
           new ConstraintMatchTotalStepScoreStatisticPoint(
               timeMillisSpent,
               constraintMatchTotal.getConstraintPackage(),
               constraintMatchTotal.getConstraintName(),
               constraintMatchTotal.getScoreLevel(),
               constraintMatchTotal.getConstraintMatchCount(),
               constraintMatchTotal.getWeightTotalAsNumber().doubleValue()));
     }
   }
 }
Example #2
0
 @Override
 public Object getValueAt(int rowIndex, int columnIndex) {
   ConstraintMatchTotal constraintMatchTotal = constraintMatchTotalList.get(rowIndex);
   switch (columnIndex) {
     case 0:
       return constraintMatchTotal.getConstraintPackage();
     case 1:
       return constraintMatchTotal.getConstraintName();
     case 2:
       return constraintMatchTotal.getScoreLevel();
     case 3:
       return constraintMatchTotal.getConstraintMatchCount();
     case 4:
       return constraintMatchTotal.getWeightTotalAsNumber();
     default:
       throw new IllegalStateException("The columnIndex (" + columnIndex + ") is invalid.");
   }
 }