public interface MoveIteratorFactory
Iterator of custom Moves.
For a more simple version, see MoveListFactory.
| Modifier and Type | Method and Description |
|---|---|
Iterator<Move> |
createOriginalMoveIterator(ScoreDirector scoreDirector)
When it is called depends on the configured
SelectionCacheType. |
Iterator<Move> |
createRandomMoveIterator(ScoreDirector scoreDirector,
Random workingRandom)
When it is called depends on the configured
SelectionCacheType. |
long |
getSize(ScoreDirector scoreDirector) |
long getSize(ScoreDirector scoreDirector)
scoreDirector - never null, the ScoreDirector
which has the ScoreDirector.getWorkingSolution() of which the Moves need to be generatedcreateOriginalMoveIterator(ScoreDirector)UnsupportedOperationException - if not supportedIterator<Move> createOriginalMoveIterator(ScoreDirector scoreDirector)
SelectionCacheType.scoreDirector - never null, the ScoreDirector
which has the ScoreDirector.getWorkingSolution() of which the Moves need to be generatedIterator that will end sooner or laterUnsupportedOperationException - if only createRandomMoveIterator(ScoreDirector, Random) is
supportedIterator<Move> createRandomMoveIterator(ScoreDirector scoreDirector, Random workingRandom)
SelectionCacheType.scoreDirector - never null, the ScoreDirector
which has the ScoreDirector.getWorkingSolution() of which the Moves need to be generatedworkingRandom - never null, the Random to use when any random number is needed,
so EnvironmentMode.REPRODUCIBLE works correctlyIterator that is allowed (or even presumed) to be never endingUnsupportedOperationException - if only createOriginalMoveIterator(ScoreDirector) is supportedCopyright © 2006–2016 JBoss by Red Hat. All rights reserved.