org.optaplanner.core.impl.heuristic.selector.move.decorator
Class SortingMoveSelector
java.lang.Object
org.optaplanner.core.impl.heuristic.selector.AbstractSelector
org.optaplanner.core.impl.heuristic.selector.move.AbstractMoveSelector
org.optaplanner.core.impl.heuristic.selector.move.decorator.AbstractCachingMoveSelector
org.optaplanner.core.impl.heuristic.selector.move.decorator.SortingMoveSelector
- All Implemented Interfaces:
- Iterable<Move>, EventListener, SelectionCacheLifecycleListener, IterableSelector<Move>, MoveSelector, Selector, SolverPhaseLifecycleListener, SolverLifecycleListener
public class SortingMoveSelector
- extends AbstractCachingMoveSelector
sorter
protected final SelectionSorter sorter
SortingMoveSelector
public SortingMoveSelector(MoveSelector childMoveSelector,
SelectionCacheType cacheType,
SelectionSorter sorter)
constructCache
public void constructCache(DefaultSolverScope solverScope)
- Specified by:
constructCache
in interface SelectionCacheLifecycleListener
- Overrides:
constructCache
in class AbstractCachingMoveSelector
isNeverEnding
public boolean isNeverEnding()
- Description copied from interface:
Selector
- Is true if
Selector.isContinuous()
is true
or if this selector is in random order (for most cases).
Is never true when this selector is in shuffled order (which is less scalable but more exact).
- Returns:
- true if the
Iterator.hasNext()
of the Iterator
created by Iterable.iterator()
never returns false.
iterator
public Iterator<Move> iterator()
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2006-2013 JBoss by Red Hat. All Rights Reserved.