Class WeightFactorySelectionSorter<Solution_,T>
- java.lang.Object
- 
- org.optaplanner.core.impl.heuristic.selector.common.decorator.WeightFactorySelectionSorter<Solution_,T>
 
- 
- Type Parameters:
- Solution_- the solution type, the class with the- PlanningSolutionannotation
- T- the selection type
 - All Implemented Interfaces:
- SelectionSorter<Solution_,T>
 
 public class WeightFactorySelectionSorter<Solution_,T> extends Object implements SelectionSorter<Solution_,T> Sorts a selectionListbased on aSelectionSorterWeightFactory.
- 
- 
Constructor SummaryConstructors Constructor Description WeightFactorySelectionSorter(SelectionSorterWeightFactory<Solution_,T> selectionSorterWeightFactory, SelectionSorterOrder selectionSorterOrder)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsort(ScoreDirector<Solution_> scoreDirector, List<T> selectionList)voidsort(Solution_ solution, List<T> selectionList)
 
- 
- 
- 
Constructor Detail- 
WeightFactorySelectionSorterpublic WeightFactorySelectionSorter(SelectionSorterWeightFactory<Solution_,T> selectionSorterWeightFactory, SelectionSorterOrder selectionSorterOrder) 
 
- 
 - 
Method Detail- 
sortpublic void sort(ScoreDirector<Solution_> scoreDirector, List<T> selectionList) - Specified by:
- sortin interface- SelectionSorter<Solution_,T>
- Parameters:
- scoreDirector- never null, the- ScoreDirectorwhich has the- ScoreDirector.getWorkingSolution()to which the selections belong or apply to
- selectionList- never null, a- Listof- PlanningEntity, planningValue,- Moveor- Selector
 
 - 
sortpublic void sort(Solution_ solution, List<T> selectionList) - Parameters:
- solution- never null, the- PlanningSolutionto which the selections belong or apply to
- selectionList- never null, a- Listof- PlanningEntity, planningValue,- Moveor- Selector
 
 
- 
 
-