public interface SelectionProbabilityWeightFactory<T>
PlanningEntity
, a planningValue, a Move
or a Selector
).
A probabilityWeight represents the random chance that a selection will be selected.
Some use cases benefit from focusing moves more actively on specific selections.Modifier and Type | Method and Description |
---|---|
double |
createProbabilityWeight(ScoreDirector scoreDirector,
T selection) |
double createProbabilityWeight(ScoreDirector scoreDirector, T selection)
scoreDirector
- never null, the ScoreDirector
which has the ScoreDirector.getWorkingSolution()
to which the selection belongs or applies toselection
- never null, a PlanningEntity
, a planningValue, a Move
or a Selector
to create the probabilityWeight for0.0 <= returnValue <
Double.POSITIVE_INFINITY
Copyright © 2006–2016 JBoss by Red Hat. All rights reserved.