Solution_
- the solution type, the class with the PlanningSolution
annotationpublic class DefaultExhaustiveSearchPhase<Solution_> extends AbstractPhase<Solution_> implements ExhaustiveSearchPhase<Solution_>
ExhaustiveSearchPhase
.Modifier and Type | Field and Description |
---|---|
protected boolean |
assertExpectedWorkingSolutionScore |
protected boolean |
assertWorkingSolutionScoreFromScratch |
protected ExhaustiveSearchDecider<Solution_> |
decider |
protected EntitySelector |
entitySelector |
protected Comparator<ExhaustiveSearchNode> |
nodeComparator |
assertExpectedStepScore, assertShadowVariablesAreNotStaleAfterStep, assertStepScoreFromScratch, bestSolutionRecaller, logger, logIndentation, phaseIndex, phaseLifecycleSupport, solverPhaseLifecycleSupport, termination
Constructor and Description |
---|
DefaultExhaustiveSearchPhase(int phaseIndex,
String logIndentation,
BestSolutionRecaller<Solution_> bestSolutionRecaller,
Termination termination) |
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 Comparator<ExhaustiveSearchNode> nodeComparator
protected EntitySelector entitySelector
protected ExhaustiveSearchDecider<Solution_> decider
protected boolean assertWorkingSolutionScoreFromScratch
protected boolean assertExpectedWorkingSolutionScore
public DefaultExhaustiveSearchPhase(int phaseIndex, String logIndentation, BestSolutionRecaller<Solution_> bestSolutionRecaller, Termination termination)
public Comparator<ExhaustiveSearchNode> getNodeComparator()
public void setNodeComparator(Comparator<ExhaustiveSearchNode> nodeComparator)
public EntitySelector getEntitySelector()
public void setEntitySelector(EntitySelector entitySelector)
public ExhaustiveSearchDecider<Solution_> getDecider()
public void setDecider(ExhaustiveSearchDecider<Solution_> decider)
public void setAssertWorkingSolutionScoreFromScratch(boolean assertWorkingSolutionScoreFromScratch)
public void setAssertExpectedWorkingSolutionScore(boolean assertExpectedWorkingSolutionScore)
public String getPhaseTypeString()
getPhaseTypeString
in class AbstractPhase<Solution_>
public void solve(DefaultSolverScope<Solution_> solverScope)
public void solvingStarted(DefaultSolverScope<Solution_> solverScope)
solvingStarted
in interface SolverLifecycleListener<Solution_>
solvingStarted
in class AbstractPhase<Solution_>
public void phaseStarted(ExhaustiveSearchPhaseScope<Solution_> phaseScope)
public void stepStarted(ExhaustiveSearchStepScope<Solution_> stepScope)
protected void restoreWorkingSolution(ExhaustiveSearchStepScope<Solution_> stepScope)
public void stepEnded(ExhaustiveSearchStepScope<Solution_> stepScope)
public void phaseEnded(ExhaustiveSearchPhaseScope<Solution_> phaseScope)
public void solvingEnded(DefaultSolverScope<Solution_> solverScope)
solvingEnded
in interface SolverLifecycleListener<Solution_>
solvingEnded
in class AbstractPhase<Solution_>
Copyright © 2006–2018 JBoss by Red Hat. All rights reserved.