Interface PossiblyInitializingPhase<Solution_>
- Type Parameters:
Solution_- the solution type, the class with thePlanningSolutionannotation
- All Superinterfaces:
EventListener,Phase<Solution_>,PhaseLifecycleListener<Solution_>,SolverLifecycleListener<Solution_>
- All Known Subinterfaces:
ConstructionHeuristicPhase<Solution_>,CustomPhase<Solution_>
- All Known Implementing Classes:
AbstractPossiblyInitializingPhase,DefaultConstructionHeuristicPhase,DefaultCustomPhase,RuinRecreateConstructionHeuristicPhase
Describes a phase that can be used to initialize a solution.
ConstructionHeuristicPhase is automatically an initializing phase.
CustomPhase can be an initializing phase, if it comes before the first LocalSearchPhase.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordThe status with which the phase terminated. -
Method Summary
Modifier and TypeMethodDescriptionThe status with which the phase terminated.booleanCheck if a phase should trigger the first initialized solution event.Methods inherited from interface ai.timefold.solver.core.impl.phase.Phase
addPhaseLifecycleListener, removePhaseLifecycleListener, solveMethods 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
-
isLastInitializingPhase
boolean isLastInitializingPhase()Check if a phase should trigger the first initialized solution event. The first initialized solution immediately precedes the firstLocalSearchPhase.- Returns:
- true if the phase is the final phase before the first local search phase.
- See Also:
-
getTerminationStatus
PossiblyInitializingPhase.TerminationStatus getTerminationStatus()The status with which the phase terminated.
-