Class WeightFactorySelectionSorter<Solution_,T>
java.lang.Object
ai.timefold.solver.core.impl.heuristic.selector.common.decorator.WeightFactorySelectionSorter<Solution_,T>
- Type Parameters:
Solution_- the solution type, the class with thePlanningSolutionannotationT- the selection type
- All Implemented Interfaces:
SelectionSorter<Solution_,T>
public final class WeightFactorySelectionSorter<Solution_,T>
extends Object
implements SelectionSorter<Solution_,T>
Sorts a selection
List based on a SelectionSorterWeightFactory.-
Constructor Summary
ConstructorsConstructorDescriptionWeightFactorySelectionSorter(SelectionSorterWeightFactory<Solution_, T> selectionSorterWeightFactory, SelectionSorterOrder selectionSorterOrder) -
Method Summary
-
Constructor Details
-
WeightFactorySelectionSorter
public WeightFactorySelectionSorter(SelectionSorterWeightFactory<Solution_, T> selectionSorterWeightFactory, SelectionSorterOrder selectionSorterOrder)
-
-
Method Details
-
sort
- Specified by:
sortin interfaceSelectionSorter<Solution_,T> - Parameters:
scoreDirector- never null, theScoreDirectorwhich has theScoreDirector.getWorkingSolution()to which the selections belong or apply toselectionList- never null, aListofPlanningEntity, planningValue,MoveorSelector
-
sort
- Parameters:
solution- never null, thePlanningSolutionto which the selections belong or apply toselectionList- never null, aListofPlanningEntity, planningValue,MoveorSelector
-
equals
-
hashCode
public int hashCode()
-