Solution_
- the solution type, the class with the PlanningSolution
annotationpublic class DefaultPartitionedSearchPhase<Solution_> extends AbstractPhase<Solution_> implements PartitionedSearchPhase<Solution_>
PartitionedSearchPhase
.Modifier and Type | Field and Description |
---|---|
protected Integer |
activeThreadCount |
protected HeuristicConfigPolicy |
configPolicy |
protected List<PhaseConfig> |
phaseConfigList |
protected SolutionPartitioner<Solution_> |
solutionPartitioner |
protected ThreadPoolExecutor |
threadPoolExecutor |
assertExpectedStepScore, assertShadowVariablesAreNotStaleAfterStep, assertStepScoreFromScratch, bestSolutionRecaller, logger, phaseIndex, phaseLifecycleSupport, solverPhaseLifecycleSupport, termination
Constructor and Description |
---|
DefaultPartitionedSearchPhase() |
Modifier and Type | Method and Description |
---|---|
PartitionSolver<Solution_> |
buildPartitionSolver(Semaphore activeThreadSemaphore,
DefaultSolverScope<Solution_> solverScope) |
String |
getPhaseTypeString() |
void |
setActiveThreadCount(Integer activeThreadCount) |
void |
setConfigPolicy(HeuristicConfigPolicy configPolicy) |
void |
setPhaseConfigList(List<PhaseConfig> phaseConfigList) |
void |
setSolutionPartitioner(SolutionPartitioner<Solution_> solutionPartitioner) |
void |
setThreadPoolExecutor(ThreadPoolExecutor threadPoolExecutor) |
void |
solve(DefaultSolverScope<Solution_> solverScope) |
addPhaseLifecycleListener, assertWorkingSolutionInitialized, getPhaseIndex, getTermination, isAssertExpectedStepScore, isAssertShadowVariablesAreNotStaleAfterStep, isAssertStepScoreFromScratch, phaseEnded, phaseStarted, predictWorkingStepScore, removePhaseLifecycleListener, setAssertExpectedStepScore, setAssertShadowVariablesAreNotStaleAfterStep, setAssertStepScoreFromScratch, setBestSolutionRecaller, setPhaseIndex, setSolverPhaseLifecycleSupport, setTermination, 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 ThreadPoolExecutor threadPoolExecutor
protected Integer activeThreadCount
protected SolutionPartitioner<Solution_> solutionPartitioner
protected List<PhaseConfig> phaseConfigList
protected HeuristicConfigPolicy configPolicy
public void setThreadPoolExecutor(ThreadPoolExecutor threadPoolExecutor)
public void setSolutionPartitioner(SolutionPartitioner<Solution_> solutionPartitioner)
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(Semaphore activeThreadSemaphore, DefaultSolverScope<Solution_> solverScope)
public void setActiveThreadCount(Integer activeThreadCount)
Copyright © 2006–2016 JBoss by Red Hat. All rights reserved.