Solution_
- the solution type, the class with the PlanningSolution
annotationpublic class DefaultConstructionHeuristicPhase<Solution_> extends AbstractPhase<Solution_> implements ConstructionHeuristicPhase<Solution_>
ConstructionHeuristicPhase
.Modifier and Type | Field and Description |
---|---|
protected ConstructionHeuristicDecider<Solution_> |
decider |
protected EntityPlacer |
entityPlacer |
protected boolean |
skipBestSolutionCloningInSteps |
assertExpectedStepScore, assertShadowVariablesAreNotStaleAfterStep, assertStepScoreFromScratch, bestSolutionRecaller, logger, logIndentation, phaseIndex, phaseLifecycleSupport, solverPhaseLifecycleSupport, termination
Constructor and Description |
---|
DefaultConstructionHeuristicPhase(int phaseIndex,
String logIndentation,
BestSolutionRecaller<Solution_> bestSolutionRecaller,
Termination termination) |
Modifier and Type | Method and Description |
---|---|
String |
getPhaseTypeString() |
void |
phaseEnded(ConstructionHeuristicPhaseScope<Solution_> phaseScope) |
void |
phaseStarted(ConstructionHeuristicPhaseScope<Solution_> phaseScope) |
void |
setDecider(ConstructionHeuristicDecider<Solution_> decider) |
void |
setEntityPlacer(EntityPlacer entityPlacer) |
void |
solve(DefaultSolverScope<Solution_> solverScope) |
void |
solvingEnded(DefaultSolverScope<Solution_> solverScope) |
void |
solvingStarted(DefaultSolverScope<Solution_> solverScope) |
void |
stepEnded(ConstructionHeuristicStepScope<Solution_> stepScope) |
void |
stepStarted(ConstructionHeuristicStepScope<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 EntityPlacer entityPlacer
protected ConstructionHeuristicDecider<Solution_> decider
protected final boolean skipBestSolutionCloningInSteps
public DefaultConstructionHeuristicPhase(int phaseIndex, String logIndentation, BestSolutionRecaller<Solution_> bestSolutionRecaller, Termination termination)
public void setEntityPlacer(EntityPlacer entityPlacer)
public void setDecider(ConstructionHeuristicDecider<Solution_> decider)
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(ConstructionHeuristicPhaseScope<Solution_> phaseScope)
public void stepStarted(ConstructionHeuristicStepScope<Solution_> stepScope)
public void stepEnded(ConstructionHeuristicStepScope<Solution_> stepScope)
public void phaseEnded(ConstructionHeuristicPhaseScope<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.