コード例 #1
0
 public double getMoneyTotalScore() {
   double score = 0.0;
   for (MoneyScoring scoringFunction : moneyScoringFunctions) {
     double contribution = scoringFunction.getScore();
     //			if (log.isTraceEnabled()) {
     //				log.trace("Contribution of money scoring function: " +
     // scoringFunction.getClass().getName() + " is: " + contribution);
     //			}
     score += contribution;
   }
   return score;
 }
コード例 #2
0
 @Override
 public void addMoney(double amount) {
   for (MoneyScoring moneyScoringFunction : moneyScoringFunctions) {
     moneyScoringFunction.addMoney(amount);
   }
 }