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 thePlanningSolutionannotation
- 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
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final booleanprotected final booleanprotected 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 TypeMethodDescriptionvoidphaseEnded(ExhaustiveSearchPhaseScope<Solution_> phaseScope) voidphaseStarted(ExhaustiveSearchPhaseScope<Solution_> phaseScope) protected voidrestoreWorkingSolution(ExhaustiveSearchStepScope<Solution_> stepScope) voidsolve(SolverScope<Solution_> solverScope) voidsolvingEnded(SolverScope<Solution_> solverScope) voidsolvingStarted(SolverScope<Solution_> solverScope) voidstepEnded(ExhaustiveSearchStepScope<Solution_> stepScope) voidstepStarted(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, stepStartedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.optaplanner.core.impl.phase.Phase
addPhaseLifecycleListener, removePhaseLifecycleListenerMethods inherited from interface org.optaplanner.core.impl.phase.event.PhaseLifecycleListener
phaseEnded, phaseStarted, stepEnded, stepStartedMethods 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:
getPhaseTypeStringin classAbstractPhase<Solution_>
-
solve
-
solvingStarted
- Specified by:
solvingStartedin interfaceSolverLifecycleListener<Solution_>- Overrides:
solvingStartedin classAbstractPhase<Solution_>
-
phaseStarted
-
stepStarted
-
restoreWorkingSolution
-
stepEnded
-
phaseEnded
-
solvingEnded
- Specified by:
solvingEndedin interfaceSolverLifecycleListener<Solution_>- Overrides:
solvingEndedin classAbstractPhase<Solution_>
-