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 the- PlanningSolutionannotation
 - All Implemented Interfaces:
- EventListener,- ConstructionHeuristicPhase<Solution_>,- PhaseLifecycleListener<Solution_>,- Phase<Solution_>,- SolverLifecycleListener<Solution_>
 
 public class DefaultConstructionHeuristicPhase<Solution_> extends AbstractPhase<Solution_> implements ConstructionHeuristicPhase<Solution_> Default implementation ofConstructionHeuristicPhase.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classDefaultConstructionHeuristicPhase.Builder<Solution_>
 - 
Field SummaryFields Modifier and Type Field Description protected ConstructionHeuristicDecider<Solution_>deciderprotected EntityPlacer<Solution_>entityPlacer- 
Fields inherited from class org.optaplanner.core.impl.phase.AbstractPhaseassertExpectedStepScore, assertShadowVariablesAreNotStaleAfterStep, assertStepScoreFromScratch, logger, logIndentation, phaseIndex, phaseLifecycleSupport, phaseTermination, solver
 
- 
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetPhaseTypeString()voidphaseEnded(ConstructionHeuristicPhaseScope<Solution_> phaseScope)voidphaseStarted(ConstructionHeuristicPhaseScope<Solution_> phaseScope)voidsolve(SolverScope<Solution_> solverScope)voidsolvingEnded(SolverScope<Solution_> solverScope)voidsolvingError(SolverScope<Solution_> solverScope, Exception exception)Invoked in case of an exception in theSolverrun.voidsolvingStarted(SolverScope<Solution_> solverScope)voidstepEnded(ConstructionHeuristicStepScope<Solution_> stepScope)voidstepStarted(ConstructionHeuristicStepScope<Solution_> stepScope)- 
Methods inherited from class org.optaplanner.core.impl.phase.AbstractPhaseaddPhaseLifecycleListener, assertWorkingSolutionInitialized, calculateWorkingStepScore, getPhaseIndex, getPhaseTermination, getSolver, isAssertExpectedStepScore, isAssertShadowVariablesAreNotStaleAfterStep, isAssertStepScoreFromScratch, phaseEnded, phaseStarted, predictWorkingStepScore, removePhaseLifecycleListener, setSolver, stepEnded, stepStarted
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.optaplanner.core.impl.phase.PhaseaddPhaseLifecycleListener, removePhaseLifecycleListener
 - 
Methods inherited from interface org.optaplanner.core.impl.phase.event.PhaseLifecycleListenerphaseEnded, phaseStarted, stepEnded, stepStarted
 
- 
 
- 
- 
- 
Field Detail- 
entityPlacerprotected final EntityPlacer<Solution_> entityPlacer 
 - 
deciderprotected final ConstructionHeuristicDecider<Solution_> decider 
 
- 
 - 
Method Detail- 
getPhaseTypeStringpublic String getPhaseTypeString() - Specified by:
- getPhaseTypeStringin class- AbstractPhase<Solution_>
 
 - 
solvepublic void solve(SolverScope<Solution_> solverScope) 
 - 
solvingStartedpublic void solvingStarted(SolverScope<Solution_> solverScope) - Specified by:
- solvingStartedin interface- SolverLifecycleListener<Solution_>
- Overrides:
- solvingStartedin class- AbstractPhase<Solution_>
 
 - 
phaseStartedpublic void phaseStarted(ConstructionHeuristicPhaseScope<Solution_> phaseScope) 
 - 
stepStartedpublic void stepStarted(ConstructionHeuristicStepScope<Solution_> stepScope) 
 - 
stepEndedpublic void stepEnded(ConstructionHeuristicStepScope<Solution_> stepScope) 
 - 
phaseEndedpublic void phaseEnded(ConstructionHeuristicPhaseScope<Solution_> phaseScope) 
 - 
solvingEndedpublic void solvingEnded(SolverScope<Solution_> solverScope) - Specified by:
- solvingEndedin interface- SolverLifecycleListener<Solution_>
- Overrides:
- solvingEndedin class- AbstractPhase<Solution_>
 
 - 
solvingErrorpublic void solvingError(SolverScope<Solution_> solverScope, Exception exception) Description copied from interface:SolverLifecycleListenerInvoked in case of an exception in theSolverrun. In that case, theSolverLifecycleListener.solvingEnded(SolverScope)is never called. For internal purposes only.- Specified by:
- solvingErrorin interface- SolverLifecycleListener<Solution_>
 
 
- 
 
-