Solution_ - the solution type, the class with the PlanningSolution annotationT - the selection typepublic class WeightFactorySelectionSorter<Solution_,T> extends Object implements SelectionSorter<Solution_,T>
List based on a SelectionSorterWeightFactory.| Constructor and Description |
|---|
WeightFactorySelectionSorter(SelectionSorterWeightFactory<Solution_,T> selectionSorterWeightFactory,
SelectionSorterOrder selectionSorterOrder) |
| Modifier and Type | Method and Description |
|---|---|
void |
sort(ScoreDirector<Solution_> scoreDirector,
List<T> selectionList) |
void |
sort(Solution_ solution,
List<T> selectionList) |
public WeightFactorySelectionSorter(SelectionSorterWeightFactory<Solution_,T> selectionSorterWeightFactory, SelectionSorterOrder selectionSorterOrder)
public void sort(ScoreDirector<Solution_> scoreDirector, List<T> selectionList)
sort in interface SelectionSorter<Solution_,T>scoreDirector - never null, the ScoreDirector
which has the ScoreDirector.getWorkingSolution() to which the selections belong or apply toselectionList - never null, a List
of PlanningEntity, planningValue, Move or Selectorpublic void sort(Solution_ solution, List<T> selectionList)
solution - never null, the PlanningSolution to which the selections belong or apply toselectionList - never null, a List
of PlanningEntity, planningValue, Move or SelectorCopyright © 2006–2019 JBoss by Red Hat. All rights reserved.