Solution_
- the solution type, the class with the PlanningSolution
annotationpublic class DefaultCustomPhase<Solution_> extends AbstractPhase<Solution_> implements CustomPhase<Solution_>
CustomPhase
.Modifier and Type | Field and Description |
---|---|
protected List<CustomPhaseCommand<Solution_>> |
customPhaseCommandList |
protected boolean |
forceUpdateBestSolution |
assertExpectedStepScore, assertShadowVariablesAreNotStaleAfterStep, assertStepScoreFromScratch, bestSolutionRecaller, logger, logIndentation, phaseIndex, phaseLifecycleSupport, solverPhaseLifecycleSupport, termination
Constructor and Description |
---|
DefaultCustomPhase(int phaseIndex,
String logIndentation,
BestSolutionRecaller<Solution_> bestSolutionRecaller,
Termination termination) |
Modifier and Type | Method and Description |
---|---|
String |
getPhaseTypeString() |
void |
phaseEnded(CustomPhaseScope<Solution_> phaseScope) |
void |
phaseStarted(CustomPhaseScope<Solution_> phaseScope) |
void |
setCustomPhaseCommandList(List<CustomPhaseCommand<Solution_>> customPhaseCommandList) |
void |
setForceUpdateBestSolution(boolean forceUpdateBestSolution) |
void |
solve(DefaultSolverScope<Solution_> solverScope) |
void |
stepEnded(CustomStepScope<Solution_> stepScope) |
void |
stepStarted(CustomStepScope<Solution_> stepScope) |
addPhaseLifecycleListener, assertWorkingSolutionInitialized, calculateWorkingStepScore, getPhaseIndex, getTermination, isAssertExpectedStepScore, isAssertShadowVariablesAreNotStaleAfterStep, isAssertStepScoreFromScratch, phaseEnded, phaseStarted, predictWorkingStepScore, removePhaseLifecycleListener, setAssertExpectedStepScore, setAssertShadowVariablesAreNotStaleAfterStep, setAssertStepScoreFromScratch, setSolverPhaseLifecycleSupport, solvingEnded, solvingStarted, stepEnded, stepStarted
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPhaseLifecycleListener, removePhaseLifecycleListener, setSolverPhaseLifecycleSupport
phaseEnded, phaseStarted, stepEnded, stepStarted
solvingEnded, solvingStarted
protected List<CustomPhaseCommand<Solution_>> customPhaseCommandList
protected boolean forceUpdateBestSolution
public DefaultCustomPhase(int phaseIndex, String logIndentation, BestSolutionRecaller<Solution_> bestSolutionRecaller, Termination termination)
public void setCustomPhaseCommandList(List<CustomPhaseCommand<Solution_>> customPhaseCommandList)
public void setForceUpdateBestSolution(boolean forceUpdateBestSolution)
public String getPhaseTypeString()
getPhaseTypeString
in class AbstractPhase<Solution_>
public void solve(DefaultSolverScope<Solution_> solverScope)
public void phaseStarted(CustomPhaseScope<Solution_> phaseScope)
public void stepStarted(CustomStepScope<Solution_> stepScope)
public void stepEnded(CustomStepScope<Solution_> stepScope)
public void phaseEnded(CustomPhaseScope<Solution_> phaseScope)
Copyright © 2006–2019 JBoss by Red Hat. All rights reserved.