Solution_ - the solution type, the class with the PlanningSolution annotationpublic class DefaultPartitionedSearchPhase<Solution_> extends AbstractPhase<Solution_> implements PartitionedSearchPhase<Solution_>, PartitionedSearchPhaseLifecycleListener<Solution_>
PartitionedSearchPhase.| Modifier and Type | Field and Description |
|---|---|
protected HeuristicConfigPolicy |
configPolicy |
protected List<PhaseConfig> |
phaseConfigList |
protected Integer |
runnablePartThreadLimit |
protected SolutionPartitioner<Solution_> |
solutionPartitioner |
protected ThreadFactory |
threadFactory |
assertExpectedStepScore, assertShadowVariablesAreNotStaleAfterStep, assertStepScoreFromScratch, bestSolutionRecaller, logger, logIndentation, phaseIndex, phaseLifecycleSupport, solverPhaseLifecycleSupport, termination| Constructor and Description |
|---|
DefaultPartitionedSearchPhase(int phaseIndex,
String logIndentation,
BestSolutionRecaller<Solution_> bestSolutionRecaller,
Termination termination,
SolutionPartitioner<Solution_> solutionPartitioner,
ThreadFactory threadFactory,
Integer runnablePartThreadLimit) |
| Modifier and Type | Method and Description |
|---|---|
PartitionSolver<Solution_> |
buildPartitionSolver(ChildThreadPlumbingTermination childThreadPlumbingTermination,
Semaphore runnablePartThreadSemaphore,
DefaultSolverScope<Solution_> solverScope) |
protected void |
doStep(PartitionedSearchStepScope<Solution_> stepScope) |
String |
getPhaseTypeString() |
void |
phaseEnded(PartitionedSearchPhaseScope<Solution_> phaseScope) |
void |
phaseStarted(PartitionedSearchPhaseScope<Solution_> phaseScope) |
void |
setConfigPolicy(HeuristicConfigPolicy configPolicy) |
void |
setPhaseConfigList(List<PhaseConfig> phaseConfigList) |
void |
solve(DefaultSolverScope<Solution_> solverScope) |
void |
stepEnded(PartitionedSearchStepScope<Solution_> stepScope) |
void |
stepStarted(PartitionedSearchStepScope<Solution_> stepScope) |
addPhaseLifecycleListener, assertWorkingSolutionInitialized, calculateWorkingStepScore, getPhaseIndex, getTermination, isAssertExpectedStepScore, isAssertShadowVariablesAreNotStaleAfterStep, isAssertStepScoreFromScratch, phaseEnded, phaseStarted, predictWorkingStepScore, removePhaseLifecycleListener, setAssertExpectedStepScore, setAssertShadowVariablesAreNotStaleAfterStep, setAssertStepScoreFromScratch, setSolverPhaseLifecycleSupport, solvingEnded, solvingStarted, stepEnded, stepStartedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPhaseLifecycleListener, removePhaseLifecycleListener, setSolverPhaseLifecycleSupportphaseEnded, phaseStarted, stepEnded, stepStartedsolvingEnded, solvingStartedprotected final SolutionPartitioner<Solution_> solutionPartitioner
protected final ThreadFactory threadFactory
protected final Integer runnablePartThreadLimit
protected List<PhaseConfig> phaseConfigList
protected HeuristicConfigPolicy configPolicy
public DefaultPartitionedSearchPhase(int phaseIndex,
String logIndentation,
BestSolutionRecaller<Solution_> bestSolutionRecaller,
Termination termination,
SolutionPartitioner<Solution_> solutionPartitioner,
ThreadFactory threadFactory,
Integer runnablePartThreadLimit)
public void setPhaseConfigList(List<PhaseConfig> phaseConfigList)
public void setConfigPolicy(HeuristicConfigPolicy configPolicy)
public String getPhaseTypeString()
getPhaseTypeString in class AbstractPhase<Solution_>public void solve(DefaultSolverScope<Solution_> solverScope)
public PartitionSolver<Solution_> buildPartitionSolver(ChildThreadPlumbingTermination childThreadPlumbingTermination, Semaphore runnablePartThreadSemaphore, DefaultSolverScope<Solution_> solverScope)
protected void doStep(PartitionedSearchStepScope<Solution_> stepScope)
public void phaseStarted(PartitionedSearchPhaseScope<Solution_> phaseScope)
phaseStarted in interface PartitionedSearchPhaseLifecycleListener<Solution_>public void stepStarted(PartitionedSearchStepScope<Solution_> stepScope)
stepStarted in interface PartitionedSearchPhaseLifecycleListener<Solution_>public void stepEnded(PartitionedSearchStepScope<Solution_> stepScope)
stepEnded in interface PartitionedSearchPhaseLifecycleListener<Solution_>public void phaseEnded(PartitionedSearchPhaseScope<Solution_> phaseScope)
phaseEnded in interface PartitionedSearchPhaseLifecycleListener<Solution_>Copyright © 2006–2020 JBoss by Red Hat. All rights reserved.