Solution_
- the solution type, the class with the PlanningSolution
annotationpublic interface MoveIteratorFactory<Solution_>
Iterator
of custom Move
s.
For a more simple version, see MoveListFactory
.
Modifier and Type | Method and Description |
---|---|
Iterator<? extends Move<Solution_>> |
createOriginalMoveIterator(ScoreDirector<Solution_> scoreDirector)
When it is called depends on the configured
SelectionCacheType . |
Iterator<? extends Move<Solution_>> |
createRandomMoveIterator(ScoreDirector<Solution_> scoreDirector,
Random workingRandom)
When it is called depends on the configured
SelectionCacheType . |
long |
getSize(ScoreDirector<Solution_> scoreDirector) |
long getSize(ScoreDirector<Solution_> scoreDirector)
scoreDirector
- never null, the ScoreDirector
which has the ScoreDirector.getWorkingSolution()
of which the Move
s need to be generatedcreateOriginalMoveIterator(ScoreDirector)
UnsupportedOperationException
- if not supportedIterator<? extends Move<Solution_>> createOriginalMoveIterator(ScoreDirector<Solution_> scoreDirector)
SelectionCacheType
.scoreDirector
- never null, the ScoreDirector
which has the ScoreDirector.getWorkingSolution()
of which the Move
s need to be generatedIterator
that will end sooner or laterUnsupportedOperationException
- if only createRandomMoveIterator(ScoreDirector, Random)
is
supportedIterator<? extends Move<Solution_>> createRandomMoveIterator(ScoreDirector<Solution_> scoreDirector, Random workingRandom)
SelectionCacheType
.scoreDirector
- never null, the ScoreDirector
which has the ScoreDirector.getWorkingSolution()
of which the Move
s 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–2020 JBoss by Red Hat. All rights reserved.