21 package org.matsim.core.replanning.selectors;
24 import java.util.concurrent.ConcurrentHashMap;
49 Map<String, Integer> typeCounts =
new ConcurrentHashMap<String, Integer>();
57 typeCounts.merge( type, 1, ( a, b ) -> a + b );
61 double worstScore = Double.POSITIVE_INFINITY;
68 if ( typeCounts.get( type ) > 1) {
72 if (plan.getScore() == null || plan.getScore().isNaN() ) {
77 worstScore = Double.NEGATIVE_INFINITY;
80 }
else if ( plan.getScore() < worstScore) {
93 if (plan.getScore() == null || plan.getScore().isNaN() ) {
96 if ( plan.getScore() < worstScore) {
Plan selectPlan(HasPlansAndId< Plan, Person > person)
static final String UNDEFINED_TYPE
abstract List<? extends T > getPlans()