|
OptaPlanner core 6.2.0.CR2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MoveIteratorFactory
An interface to generate an Iterator
of custom Move
s.
MoveListFactory
.
Method Summary | |
---|---|
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)
|
Method Detail |
---|
long getSize(ScoreDirector scoreDirector)
scoreDirector
- never null, the ScoreDirector
which has the ScoreDirector.getWorkingSolution()
of which the Move
s need to be generated
createOriginalMoveIterator(ScoreDirector)
UnsupportedOperationException
- if not supportedIterator<Move> createOriginalMoveIterator(ScoreDirector scoreDirector)
SelectionCacheType
.
scoreDirector
- never null, the ScoreDirector
which has the ScoreDirector.getWorkingSolution()
of which the Move
s need to be generated
Iterator
that will end sooner or later
UnsupportedOperationException
- 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 Move
s need to be generatedworkingRandom
- never null, the Random
to use when any random number is needed,
so EnvironmentMode.REPRODUCIBLE
works correctly
Iterator
that is allowed (or even presumed) to be never ending
UnsupportedOperationException
- if only createOriginalMoveIterator(ScoreDirector)
is supported
|
OptaPlanner core 6.2.0.CR2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |