Interface MoveRepository<Solution_>
- Type Parameters:
Solution_-
- All Superinterfaces:
EventListener,Iterable<Move<Solution_>>,PhaseLifecycleListener<Solution_>,SolverLifecycleListener<Solution_>
- All Known Implementing Classes:
MoveSelectorBasedMoveRepository,MoveStreamsBasedMoveRepository,PlacerBasedMoveRepository
@NullMarked
public sealed interface MoveRepository<Solution_>
extends Iterable<Move<Solution_>>, PhaseLifecycleListener<Solution_>
permits MoveSelectorBasedMoveRepository<Solution_>, MoveStreamsBasedMoveRepository<Solution_>, PlacerBasedMoveRepository<Solution_>
This is a shared abstraction for all three types of move iterators currently used in the solver:
MoveSelectorBasedMoveRepositoryfor local search and exhaustive search.PlacerBasedMoveRepositoryfor construction heuristics.MoveStreamsBasedMoveRepositoryfor move streams.
MoveStreamsBasedMoveRepository remains in use.
At this point, this entire abstraction will be removed,
and all code will work with move streams directly.-
Method Summary
Modifier and TypeMethodDescriptionvoidinitialize(Solution_ workingSolution, SupplyManager supplyManager) booleanMethods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface ai.timefold.solver.core.impl.phase.event.PhaseLifecycleListener
phaseEnded, phaseStarted, stepEnded, stepStartedMethods inherited from interface ai.timefold.solver.core.impl.solver.event.SolverLifecycleListener
solvingEnded, solvingError, solvingStarted
-
Method Details
-
isNeverEnding
boolean isNeverEnding() -
initialize
-