Solution_
- the solution typeT
- the selection typepublic class WeightFactorySelectionSorter<Solution_ extends 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 scoreDirector,
List<T> selectionList) |
void |
sort(Solution_ solution,
List<T> selectionList) |
public WeightFactorySelectionSorter(SelectionSorterWeightFactory<Solution_,T> selectionSorterWeightFactory, SelectionSorterOrder selectionSorterOrder)
public void sort(ScoreDirector scoreDirector, List<T> selectionList)
sort
in interface SelectionSorter<Solution_ extends 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 Selector
Copyright © 2006–2016 JBoss by Red Hat. All rights reserved.