Class DefaultConstructionHeuristicPhase<Solution_>
java.lang.Object
org.optaplanner.core.impl.phase.AbstractPhase<Solution_>
org.optaplanner.core.impl.constructionheuristic.DefaultConstructionHeuristicPhase<Solution_>
- Type Parameters:
Solution_
- the solution type, the class with thePlanningSolution
annotation
- All Implemented Interfaces:
EventListener
,ConstructionHeuristicPhase<Solution_>
,PhaseLifecycleListener<Solution_>
,Phase<Solution_>
,SolverLifecycleListener<Solution_>
public class DefaultConstructionHeuristicPhase<Solution_>
extends AbstractPhase<Solution_>
implements ConstructionHeuristicPhase<Solution_>
Default implementation of
ConstructionHeuristicPhase
.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Field Summary
Modifier and TypeFieldDescriptionprotected final ConstructionHeuristicDecider<Solution_>
protected final EntityPlacer<Solution_>
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
(ConstructionHeuristicPhaseScope<Solution_> phaseScope) void
phaseStarted
(ConstructionHeuristicPhaseScope<Solution_> phaseScope) void
solve
(SolverScope<Solution_> solverScope) void
solvingEnded
(SolverScope<Solution_> solverScope) void
solvingError
(SolverScope<Solution_> solverScope, Exception exception) Invoked in case of an exception in theSolver
run.void
solvingStarted
(SolverScope<Solution_> solverScope) void
stepEnded
(ConstructionHeuristicStepScope<Solution_> stepScope) void
stepStarted
(ConstructionHeuristicStepScope<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
-
Field Details
-
entityPlacer
-
decider
-
-
Method Details
-
getPhaseTypeString
- Specified by:
getPhaseTypeString
in classAbstractPhase<Solution_>
-
solve
-
solvingStarted
- Specified by:
solvingStarted
in interfaceSolverLifecycleListener<Solution_>
- Overrides:
solvingStarted
in classAbstractPhase<Solution_>
-
phaseStarted
-
stepStarted
-
stepEnded
-
phaseEnded
-
solvingEnded
- Specified by:
solvingEnded
in interfaceSolverLifecycleListener<Solution_>
- Overrides:
solvingEnded
in classAbstractPhase<Solution_>
-
solvingError
Description copied from interface:SolverLifecycleListener
Invoked in case of an exception in theSolver
run. In that case, theSolverLifecycleListener.solvingEnded(SolverScope)
is never called. For internal purposes only.- Specified by:
solvingError
in interfaceSolverLifecycleListener<Solution_>
-