Skip to content
Snippets Groups Projects
Commit e5cdc3f1 authored by uhensler's avatar uhensler
Browse files

OO-4207: Make evaluators static

parent c7b14ea0
No related branches found
No related tags found
No related merge requests found
......@@ -33,12 +33,14 @@ import org.olat.course.run.scoring.StatusEvaluator;
public class LearningPathEvaluatorBuilder {
private static final StartDateEvaluator CONFIG_START_DATE_EVALUATOR = new ConfigStartDateEvaluator();
private static final ConfigObligationEvaluator CONFIG_OBLIGATION_EVALUATOR = new ConfigObligationEvaluator();
private static final ConfigDurationEvaluator CONFIG_DURATION_EVALUATOR = new ConfigDurationEvaluator();
private static final StatusEvaluator LINEAR_STATUS_EVALUATOR = new DefaultLinearStatusEvaluator();
private static final AccountingEvaluators DEFAULT = AccountingEvaluatorsBuilder
.builder()
.withStartDateEvaluator(CONFIG_START_DATE_EVALUATOR)
.withObligationEvaluator(new ConfigObligationEvaluator())
.withDurationEvaluator(new ConfigDurationEvaluator())
.withObligationEvaluator(CONFIG_OBLIGATION_EVALUATOR)
.withDurationEvaluator(CONFIG_DURATION_EVALUATOR)
.withStatusEvaluator(LINEAR_STATUS_EVALUATOR)
.build();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment