OptaPlanner core 6.2.0.Beta1

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.


Method Summary
 Comparable createSorterWeight(Sol solution, T selection)
           
 

Method Detail

createSorterWeight

Comparable createSorterWeight(Sol solution,
                              T selection)
Parameters:
solution - never null, the Solution to which the selection belongs or applies to
selection - never null, a PlanningEntity, a planningValue, a Move or a Selector
Returns:
never null, for example a Integer, Double or a more complex Comparable

OptaPlanner core 6.2.0.Beta1

Copyright © 2006-2014 JBoss by Red Hat. All Rights Reserved.