Interface SelectionSorter<Solution_,T>
-
- Type Parameters:
Solution_- the solution type, the class with thePlanningSolutionannotationT- the selection type
- All Known Implementing Classes:
ComparatorSelectionSorter,WeightFactorySelectionSorter
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface SelectionSorter<Solution_,T>
Decides the order of aListof selection (which is aPlanningEntity, a planningValue, aMoveor aSelector).Implementations are expected to be stateless. The solver may choose to reuse instances.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidsort(ScoreDirector<Solution_> scoreDirector, List<T> selectionList)
-
-
-
Method Detail
-
sort
void sort(ScoreDirector<Solution_> scoreDirector, List<T> selectionList)
- Parameters:
scoreDirector- never null, theScoreDirectorwhich has theScoreDirector.getWorkingSolution()to which the selections belong or apply toselectionList- never null, aListofPlanningEntity, planningValue,MoveorSelector
-
-