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; }
@Override public void addMoney(double amount) { for (MoneyScoring moneyScoringFunction : moneyScoringFunctions) { moneyScoringFunction.addMoney(amount); } }