Solution_
- the solution type, the class with the PlanningSolution
annotationpublic class DefaultLocalSearchPhase<Solution_> extends AbstractPhase<Solution_> implements LocalSearchPhase<Solution_>, LocalSearchPhaseLifecycleListener<Solution_>
LocalSearchPhase
.Modifier and Type | Field and Description |
---|---|
protected LocalSearchDecider<Solution_> |
decider |
assertExpectedStepScore, assertShadowVariablesAreNotStaleAfterStep, assertStepScoreFromScratch, bestSolutionRecaller, logger, logIndentation, phaseIndex, phaseLifecycleSupport, solverPhaseLifecycleSupport, termination
Constructor and Description |
---|
DefaultLocalSearchPhase(int phaseIndex,
String logIndentation,
BestSolutionRecaller<Solution_> bestSolutionRecaller,
Termination termination) |
Modifier and Type | Method and Description |
---|---|
protected void |
doStep(LocalSearchStepScope<Solution_> stepScope) |
LocalSearchDecider<Solution_> |
getDecider() |
String |
getPhaseTypeString() |
void |
phaseEnded(LocalSearchPhaseScope<Solution_> phaseScope) |
void |
phaseStarted(LocalSearchPhaseScope<Solution_> phaseScope) |
void |
setDecider(LocalSearchDecider<Solution_> decider) |
void |
solve(DefaultSolverScope<Solution_> solverScope) |
void |
solvingEnded(DefaultSolverScope<Solution_> solverScope) |
void |
solvingStarted(DefaultSolverScope<Solution_> solverScope) |
void |
stepEnded(LocalSearchStepScope<Solution_> stepScope) |
void |
stepStarted(LocalSearchStepScope<Solution_> stepScope) |
addPhaseLifecycleListener, assertWorkingSolutionInitialized, calculateWorkingStepScore, getPhaseIndex, getTermination, isAssertExpectedStepScore, isAssertShadowVariablesAreNotStaleAfterStep, isAssertStepScoreFromScratch, phaseEnded, phaseStarted, predictWorkingStepScore, removePhaseLifecycleListener, setAssertExpectedStepScore, setAssertShadowVariablesAreNotStaleAfterStep, setAssertStepScoreFromScratch, setSolverPhaseLifecycleSupport, stepEnded, stepStarted
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPhaseLifecycleListener, removePhaseLifecycleListener, setSolverPhaseLifecycleSupport
phaseEnded, phaseStarted, stepEnded, stepStarted
protected LocalSearchDecider<Solution_> decider
public DefaultLocalSearchPhase(int phaseIndex, String logIndentation, BestSolutionRecaller<Solution_> bestSolutionRecaller, Termination termination)
public LocalSearchDecider<Solution_> getDecider()
public void setDecider(LocalSearchDecider<Solution_> decider)
public String getPhaseTypeString()
getPhaseTypeString
in class AbstractPhase<Solution_>
public void solve(DefaultSolverScope<Solution_> solverScope)
protected void doStep(LocalSearchStepScope<Solution_> stepScope)
public void solvingStarted(DefaultSolverScope<Solution_> solverScope)
solvingStarted
in interface SolverLifecycleListener<Solution_>
solvingStarted
in class AbstractPhase<Solution_>
public void phaseStarted(LocalSearchPhaseScope<Solution_> phaseScope)
phaseStarted
in interface LocalSearchPhaseLifecycleListener<Solution_>
public void stepStarted(LocalSearchStepScope<Solution_> stepScope)
stepStarted
in interface LocalSearchPhaseLifecycleListener<Solution_>
public void stepEnded(LocalSearchStepScope<Solution_> stepScope)
stepEnded
in interface LocalSearchPhaseLifecycleListener<Solution_>
public void phaseEnded(LocalSearchPhaseScope<Solution_> phaseScope)
phaseEnded
in interface LocalSearchPhaseLifecycleListener<Solution_>
public void solvingEnded(DefaultSolverScope<Solution_> solverScope)
solvingEnded
in interface SolverLifecycleListener<Solution_>
solvingEnded
in class AbstractPhase<Solution_>
Copyright © 2006–2019 JBoss by Red Hat. All rights reserved.