Class DefaultCustomPhase<Solution_>
java.lang.Object
ai.timefold.solver.core.impl.phase.AbstractPhase<Solution_>
ai.timefold.solver.core.impl.phase.AbstractPossiblyInitializingPhase<Solution_>
ai.timefold.solver.core.impl.phase.custom.DefaultCustomPhase<Solution_>
- Type Parameters:
Solution_- the solution type, the class with thePlanningSolutionannotation
- All Implemented Interfaces:
CustomPhase<Solution_>,PhaseLifecycleListener<Solution_>,Phase<Solution_>,PossiblyInitializingPhase<Solution_>,SolverLifecycleListener<Solution_>,EventListener
@NullMarked
public final class DefaultCustomPhase<Solution_>
extends AbstractPossiblyInitializingPhase<Solution_>
implements CustomPhase<Solution_>
Default implementation of
CustomPhase.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classNested classes/interfaces inherited from class ai.timefold.solver.core.impl.phase.AbstractPossiblyInitializingPhase
AbstractPossiblyInitializingPhase.AbstractPossiblyInitializingPhaseBuilder<Solution_>Nested classes/interfaces inherited from class ai.timefold.solver.core.impl.phase.AbstractPhase
AbstractPhase.AbstractPhaseBuilder<Solution_>Nested classes/interfaces inherited from interface ai.timefold.solver.core.impl.phase.PossiblyInitializingPhase
PossiblyInitializingPhase.TerminationStatus -
Field Summary
Fields inherited from class ai.timefold.solver.core.impl.phase.AbstractPhase
assertExpectedStepScore, assertPhaseScoreFromScratch, assertShadowVariablesAreNotStaleAfterStep, assertStepScoreFromScratch, logger, logIndentation, phaseIndex, phaseLifecycleSupport, phaseTermination -
Method Summary
Modifier and TypeMethodDescriptionThe status with which the phase terminated.voidphaseEnded(CustomPhaseScope<Solution_> phaseScope) voidphaseStarted(AbstractPhaseScope<Solution_> phaseScope) voidsolve(SolverScope<Solution_> solverScope) voidstepEnded(CustomStepScope<Solution_> stepScope) Methods inherited from class ai.timefold.solver.core.impl.phase.AbstractPossiblyInitializingPhase
ensureCorrectTermination, isLastInitializingPhase, translateEarlyTerminationMethods inherited from class ai.timefold.solver.core.impl.phase.AbstractPhase
addPhaseLifecycleListener, assertWorkingSolutionInitialized, calculateWorkingStepScore, getPhaseIndex, getPhaseTermination, isAssertExpectedStepScore, isAssertShadowVariablesAreNotStaleAfterStep, isAssertStepScoreFromScratch, isNested, phaseEnded, predictWorkingStepScore, removePhaseLifecycleListener, solvingEnded, solvingStarted, stepEnded, stepStartedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ai.timefold.solver.core.impl.phase.Phase
addPhaseLifecycleListener, removePhaseLifecycleListenerMethods inherited from interface ai.timefold.solver.core.impl.phase.event.PhaseLifecycleListener
phaseEnded, stepEnded, stepStartedMethods inherited from interface ai.timefold.solver.core.impl.phase.PossiblyInitializingPhase
isLastInitializingPhaseMethods inherited from interface ai.timefold.solver.core.impl.solver.event.SolverLifecycleListener
solvingEnded, solvingError, solvingStarted
-
Method Details
-
getTerminationStatus
Description copied from interface:PossiblyInitializingPhaseThe status with which the phase terminated.- Specified by:
getTerminationStatusin interfacePossiblyInitializingPhase<Solution_>
-
getPhaseTypeString
- Specified by:
getPhaseTypeStringin classAbstractPhase<Solution_>
-
solve
-
phaseStarted
- Specified by:
phaseStartedin interfacePhaseLifecycleListener<Solution_>- Overrides:
phaseStartedin classAbstractPhase<Solution_>
-
stepEnded
-
phaseEnded
-