Interface SelectionSorter<Solution_,T>
- Type Parameters:
Solution_
- the solution type, the class with thePlanningSolution
annotationT
- 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 TypeMethodDescriptionvoid
sort
(ScoreDirector<Solution_> scoreDirector, List<T> selectionList)
-
Method Details
-
sort
- Parameters:
scoreDirector
- never null, theScoreDirector
which has theScoreDirector.getWorkingSolution()
to which the selections belong or apply toselectionList
- never null, aList
ofPlanningEntity
, planningValue,Move
orSelector
-