org.optaplanner.core.impl.heuristic.selector.common.decorator

## Class FairSelectorProbabilityWeightFactory<Solution_>

- java.lang.Object
- - org.optaplanner.core.impl.heuristic.selector.common.decorator.FairSelectorProbabilityWeightFactory<Solution_>

- All Implemented Interfaces:
    SelectionProbabilityWeightFactory<Solution_,IterableSelector>

      public class FairSelectorProbabilityWeightFactory<Solution_>
      extends Object
      implements SelectionProbabilityWeightFactory<Solution_,IterableSelector>

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `FairSelectorProbabilityWeightFactory()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `double` | `createProbabilityWeight(ScoreDirector<Solution_> scoreDirector, IterableSelector selector)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### FairSelectorProbabilityWeightFactory

          public FairSelectorProbabilityWeightFactory()

  - ### Method Detail

    - #### createProbabilityWeight

          public double createProbabilityWeight(ScoreDirector<Solution_> scoreDirector,
                                                IterableSelector selector)

      Specified by:
        `createProbabilityWeight` in interface `SelectionProbabilityWeightFactory<Solution_,IterableSelector>`
      Parameters:
        `scoreDirector` - never null, the `ScoreDirector` which has the `ScoreDirector.getWorkingSolution()` to which the selection belongs or applies to
        `selector` - never null, a `PlanningEntity`, a planningValue, a `Move` or a `Selector` to create the probabilityWeight for
      Returns:
        `0.0 <= returnValue <` `Double.POSITIVE_INFINITY`

Copyright © 2006–2021 JBoss by Red Hat. All rights reserved.