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 thePlanningSolutionannotation
- 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 Summary
Nested Classes Modifier and Type Class Description static classDefaultConstructionHeuristicPhase.Builder<Solution_> 
- 
Field Summary
Fields Modifier and Type Field Description protected ConstructionHeuristicDecider<Solution_>deciderprotected EntityPlacer<Solution_>entityPlacer- 
Fields inherited from class org.optaplanner.core.impl.phase.AbstractPhase
assertExpectedStepScore, assertShadowVariablesAreNotStaleAfterStep, assertStepScoreFromScratch, logger, logIndentation, phaseIndex, phaseLifecycleSupport, phaseTermination, solver 
 - 
 
- 
Method Summary
All 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.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 Detail
- 
entityPlacer
protected final EntityPlacer<Solution_> entityPlacer
 
- 
decider
protected final ConstructionHeuristicDecider<Solution_> decider
 
 - 
 
- 
Method Detail
- 
getPhaseTypeString
public String getPhaseTypeString()
- Specified by:
 getPhaseTypeStringin classAbstractPhase<Solution_>
 
- 
solve
public void solve(SolverScope<Solution_> solverScope)
 
- 
solvingStarted
public void solvingStarted(SolverScope<Solution_> solverScope)
- Specified by:
 solvingStartedin interfaceSolverLifecycleListener<Solution_>- Overrides:
 solvingStartedin classAbstractPhase<Solution_>
 
- 
phaseStarted
public void phaseStarted(ConstructionHeuristicPhaseScope<Solution_> phaseScope)
 
- 
stepStarted
public void stepStarted(ConstructionHeuristicStepScope<Solution_> stepScope)
 
- 
stepEnded
public void stepEnded(ConstructionHeuristicStepScope<Solution_> stepScope)
 
- 
phaseEnded
public void phaseEnded(ConstructionHeuristicPhaseScope<Solution_> phaseScope)
 
- 
solvingEnded
public void solvingEnded(SolverScope<Solution_> solverScope)
- Specified by:
 solvingEndedin interfaceSolverLifecycleListener<Solution_>- Overrides:
 solvingEndedin classAbstractPhase<Solution_>
 
- 
solvingError
public 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 interfaceSolverLifecycleListener<Solution_>
 
 - 
 
 -