org.optaplanner.core.impl.heuristic.selector.common.decorator
Interface SelectionSorterWeightFactory<Sol extends Solution,T>
- All Known Subinterfaces:
- PlanningEntity.NullDifficultyWeightFactory, PlanningVariable.NullStrengthWeightFactory
public interface SelectionSorterWeightFactory<Sol extends Solution,T>
Creates a weight to decide the order of a collections of selections
(a selection is a PlanningEntity
, a planningValue, a Move
or a Selector
).
The selections are then sorted by their weight,
normally ascending unless its configured descending.
createSorterWeight
Comparable createSorterWeight(Sol solution,
T selection)
- Parameters:
solution
- never null, the Solution
to which the selection belongs or applies toselection
- never null, a PlanningEntity
, a planningValue, a Move
or a Selector
- Returns:
- never null, for example a
Integer
, Double
or a more complex Comparable
Copyright © 2006-2014 JBoss by Red Hat. All Rights Reserved.