org.optaplanner.core.impl.heuristic.selector.common.decorator
public class FixedSelectorProbabilityWeightFactory<Sel extends Selector> extends Object implements SelectionProbabilityWeightFactory<Sel>
Constructor and Description |
---|
FixedSelectorProbabilityWeightFactory(Map<Sel,Double> fixedProbabilityWeightMap) |
public double createProbabilityWeight(ScoreDirector scoreDirector, Selector selector)
createProbabilityWeight
in interface SelectionProbabilityWeightFactory<Sel extends Selector>
scoreDirector
- never null, the ScoreDirector
which has the ScoreDirector.getWorkingSolution()
to which the selection belongs or applies toselector
- never null, a PlanningEntity
, a planningValue, a Move
or a Selector
to create the probabilityWeight forDouble.POSITIVE_INFINITY
Copyright © 2006-2013 JBoss by Red Hat. All Rights Reserved.