Solution_ - the solution type, the class with the PlanningSolution annotationT - the selection typepublic class ComparatorSelectionSorter<Solution_,T> extends Object implements SelectionSorter<Solution_,T>
List based on a Comparator.| Constructor and Description |
|---|
ComparatorSelectionSorter(Comparator<T> comparator) |
ComparatorSelectionSorter(Comparator<T> comparator,
SelectionSorterOrder selectionSorterOrder) |
| Modifier and Type | Method and Description |
|---|---|
void |
sort(ScoreDirector<Solution_> scoreDirector,
List<T> selectionList) |
public ComparatorSelectionSorter(Comparator<T> comparator)
public ComparatorSelectionSorter(Comparator<T> comparator, 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 SelectorCopyright © 2006–2019 JBoss by Red Hat. All rights reserved.