org.optaplanner.core.impl.heuristic.selector.move.composite

## Class UnionMoveSelector.RandomUnionMoveIterator

- java.lang.Object
- - org.optaplanner.core.impl.heuristic.selector.common.iterator.SelectionIterator<Move>
  - - org.optaplanner.core.impl.heuristic.selector.move.composite.UnionMoveSelector.RandomUnionMoveIterator

- All Implemented Interfaces:
    Iterator<Move>
  Enclosing class:
    UnionMoveSelector

      public class UnionMoveSelector.RandomUnionMoveIterator
      extends SelectionIterator<Move>

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected NavigableMap<Double,Iterator<Move>>` | `moveIteratorMap`
    `protected Map<Iterator<Move>,org.optaplanner.core.impl.heuristic.selector.move.composite.UnionMoveSelector.ProbabilityItem>` | `probabilityItemMap`
    `protected double` | `probabilityWeightTotal`
    `protected boolean` | `stale`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `RandomUnionMoveIterator()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `hasNext()`
    `Move` | `next()`

    - ### Methods inherited from class org.optaplanner.core.impl.heuristic.selector.common.iterator.SelectionIterator

      `remove`

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

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

    - ### Methods inherited from interface java.util.Iterator

      `forEachRemaining`

- - ### Field Detail

    - #### probabilityItemMap

          protected final Map<Iterator<Move>,org.optaplanner.core.impl.heuristic.selector.move.composite.UnionMoveSelector.ProbabilityItem> probabilityItemMap

    - #### moveIteratorMap

          protected final NavigableMap<Double,Iterator<Move>> moveIteratorMap

    - #### probabilityWeightTotal

          protected double probabilityWeightTotal

    - #### stale

          protected boolean stale

  - ### Constructor Detail

    - #### RandomUnionMoveIterator

          public RandomUnionMoveIterator()

  - ### Method Detail

    - #### hasNext

          public boolean hasNext()

    - #### next

          public Move next()

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