org.optaplanner.core.impl.constructionheuristic
Class DefaultConstructionHeuristicPhase
java.lang.Object
org.optaplanner.core.impl.phase.AbstractPhase
org.optaplanner.core.impl.constructionheuristic.DefaultConstructionHeuristicPhase
- All Implemented Interfaces:
- EventListener, ConstructionHeuristicPhase, PhaseLifecycleListener, Phase, SolverLifecycleListener
public class DefaultConstructionHeuristicPhase
- extends AbstractPhase
- implements ConstructionHeuristicPhase
Default implementation of ConstructionHeuristicPhase
.
Methods inherited from class org.optaplanner.core.impl.phase.AbstractPhase |
addPhaseLifecycleListener, getPhaseIndex, getTermination, phaseEnded, phaseStarted, removePhaseLifecycleListener, setBestSolutionRecaller, setPhaseIndex, setTermination, stepEnded, stepStarted |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
entityPlacer
protected EntityPlacer entityPlacer
decider
protected ConstructionHeuristicDecider decider
assertStepScoreFromScratch
protected boolean assertStepScoreFromScratch
assertExpectedStepScore
protected boolean assertExpectedStepScore
DefaultConstructionHeuristicPhase
public DefaultConstructionHeuristicPhase()
setEntityPlacer
public void setEntityPlacer(EntityPlacer entityPlacer)
setDecider
public void setDecider(ConstructionHeuristicDecider decider)
setAssertStepScoreFromScratch
public void setAssertStepScoreFromScratch(boolean assertStepScoreFromScratch)
setAssertExpectedStepScore
public void setAssertExpectedStepScore(boolean assertExpectedStepScore)
solve
public void solve(DefaultSolverScope solverScope)
- Specified by:
solve
in interface Phase
solvingStarted
public void solvingStarted(DefaultSolverScope solverScope)
- Specified by:
solvingStarted
in interface SolverLifecycleListener
- Overrides:
solvingStarted
in class AbstractPhase
phaseStarted
public void phaseStarted(ConstructionHeuristicPhaseScope phaseScope)
stepStarted
public void stepStarted(ConstructionHeuristicStepScope stepScope)
stepEnded
public void stepEnded(ConstructionHeuristicStepScope stepScope)
phaseEnded
public void phaseEnded(ConstructionHeuristicPhaseScope phaseScope)
solvingEnded
public void solvingEnded(DefaultSolverScope solverScope)
- Specified by:
solvingEnded
in interface SolverLifecycleListener
- Overrides:
solvingEnded
in class AbstractPhase
Copyright © 2006-2014 JBoss by Red Hat. All Rights Reserved.