Class DefaultExhaustiveSearchPhase<Solution_>
java.lang.Object
org.optaplanner.core.impl.phase.AbstractPhase<Solution_>
org.optaplanner.core.impl.exhaustivesearch.DefaultExhaustiveSearchPhase<Solution_>
- Type Parameters:
Solution_
- the solution type, the class with thePlanningSolution
annotation
- All Implemented Interfaces:
EventListener
,ExhaustiveSearchPhase<Solution_>
,PhaseLifecycleListener<Solution_>
,Phase<Solution_>
,SolverLifecycleListener<Solution_>
public class DefaultExhaustiveSearchPhase<Solution_>
extends AbstractPhase<Solution_>
implements ExhaustiveSearchPhase<Solution_>
Default implementation of
ExhaustiveSearchPhase
.-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected final boolean
protected final boolean
protected final ExhaustiveSearchDecider<Solution_>
protected final EntitySelector<Solution_>
protected final Comparator<ExhaustiveSearchNode>
Fields inherited from class org.optaplanner.core.impl.phase.AbstractPhase
assertExpectedStepScore, assertShadowVariablesAreNotStaleAfterStep, assertStepScoreFromScratch, logger, logIndentation, phaseIndex, phaseLifecycleSupport, phaseTermination, solver
-
Method Summary
Modifier and TypeMethodDescriptionvoid
phaseEnded
(ExhaustiveSearchPhaseScope<Solution_> phaseScope) void
phaseStarted
(ExhaustiveSearchPhaseScope<Solution_> phaseScope) protected void
restoreWorkingSolution
(ExhaustiveSearchStepScope<Solution_> stepScope) void
solve
(SolverScope<Solution_> solverScope) void
solvingEnded
(SolverScope<Solution_> solverScope) void
solvingStarted
(SolverScope<Solution_> solverScope) void
stepEnded
(ExhaustiveSearchStepScope<Solution_> stepScope) void
stepStarted
(ExhaustiveSearchStepScope<Solution_> stepScope) Methods inherited from class org.optaplanner.core.impl.phase.AbstractPhase
addPhaseLifecycleListener, assertWorkingSolutionInitialized, calculateWorkingStepScore, getPhaseIndex, getPhaseTermination, getSolver, isAssertExpectedStepScore, isAssertShadowVariablesAreNotStaleAfterStep, isAssertStepScoreFromScratch, phaseEnded, phaseStarted, predictWorkingStepScore, removePhaseLifecycleListener, setSolver, stepEnded, stepStarted
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.optaplanner.core.impl.phase.Phase
addPhaseLifecycleListener, removePhaseLifecycleListener
Methods inherited from interface org.optaplanner.core.impl.phase.event.PhaseLifecycleListener
phaseEnded, phaseStarted, stepEnded, stepStarted
Methods inherited from interface org.optaplanner.core.impl.solver.event.SolverLifecycleListener
solvingError
-
Field Details
-
nodeComparator
-
entitySelector
-
decider
-
assertWorkingSolutionScoreFromScratch
protected final boolean assertWorkingSolutionScoreFromScratch -
assertExpectedWorkingSolutionScore
protected final boolean assertExpectedWorkingSolutionScore
-
-
Method Details
-
getPhaseTypeString
- Specified by:
getPhaseTypeString
in classAbstractPhase<Solution_>
-
solve
-
solvingStarted
- Specified by:
solvingStarted
in interfaceSolverLifecycleListener<Solution_>
- Overrides:
solvingStarted
in classAbstractPhase<Solution_>
-
phaseStarted
-
stepStarted
-
restoreWorkingSolution
-
stepEnded
-
phaseEnded
-
solvingEnded
- Specified by:
solvingEnded
in interfaceSolverLifecycleListener<Solution_>
- Overrides:
solvingEnded
in classAbstractPhase<Solution_>
-