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.
- 
- 
Field SummaryFields Modifier and Type Field Description protected ConstructionHeuristicDecider<Solution_>deciderprotected EntityPlacer<Solution_>entityPlacerprotected booleanskipBestSolutionCloningInSteps- 
Fields inherited from class org.optaplanner.core.impl.phase.AbstractPhaseassertExpectedStepScore, assertShadowVariablesAreNotStaleAfterStep, assertStepScoreFromScratch, bestSolutionRecaller, logger, logIndentation, phaseIndex, phaseLifecycleSupport, solverPhaseLifecycleSupport, termination
 
- 
 - 
Constructor SummaryConstructors Constructor Description DefaultConstructionHeuristicPhase(int phaseIndex, String logIndentation, BestSolutionRecaller<Solution_> bestSolutionRecaller, Termination<Solution_> termination)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetPhaseTypeString()voidphaseEnded(ConstructionHeuristicPhaseScope<Solution_> phaseScope)voidphaseStarted(ConstructionHeuristicPhaseScope<Solution_> phaseScope)voidsetDecider(ConstructionHeuristicDecider<Solution_> decider)voidsetEntityPlacer(EntityPlacer<Solution_> entityPlacer)voidsolve(SolverScope<Solution_> solverScope)voidsolvingEnded(SolverScope<Solution_> solverScope)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, getTermination, isAssertExpectedStepScore, isAssertShadowVariablesAreNotStaleAfterStep, isAssertStepScoreFromScratch, phaseEnded, phaseStarted, predictWorkingStepScore, removePhaseLifecycleListener, setAssertExpectedStepScore, setAssertShadowVariablesAreNotStaleAfterStep, setAssertStepScoreFromScratch, setSolverPhaseLifecycleSupport, 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, setSolverPhaseLifecycleSupport
 - 
Methods inherited from interface org.optaplanner.core.impl.phase.event.PhaseLifecycleListenerphaseEnded, phaseStarted, stepEnded, stepStarted
 
- 
 
- 
- 
- 
Field Detail- 
entityPlacerprotected EntityPlacer<Solution_> entityPlacer 
 - 
deciderprotected ConstructionHeuristicDecider<Solution_> decider 
 - 
skipBestSolutionCloningInStepsprotected final boolean skipBestSolutionCloningInSteps - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
DefaultConstructionHeuristicPhasepublic DefaultConstructionHeuristicPhase(int phaseIndex, String logIndentation, BestSolutionRecaller<Solution_> bestSolutionRecaller, Termination<Solution_> termination)
 
- 
 - 
Method Detail- 
setEntityPlacerpublic void setEntityPlacer(EntityPlacer<Solution_> entityPlacer) 
 - 
setDeciderpublic void setDecider(ConstructionHeuristicDecider<Solution_> decider) 
 - 
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_>
 
 
- 
 
-