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.
Decides the order of a
List of selection
(which is a PlanningEntity, a planningValue, a Move or a Selector).
Implementations are expected to be stateless. The solver may choose to reuse instances.
-
Method Summary
Modifier and TypeMethodDescriptionvoidsort(ScoreDirector<Solution_> scoreDirector, List<T> selectionList)
-
Method Details
-
sort
- Parameters:
scoreDirector- never null, theScoreDirectorwhich has theScoreDirector.getWorkingSolution()to which the selections belong or apply toselectionList- never null, aListofPlanningEntity, planningValue,MoveorSelector
-