Class DefaultPartitionedSearchPhase<Solution_>
- java.lang.Object
- 
- org.optaplanner.core.impl.phase.AbstractPhase<Solution_>
- 
- org.optaplanner.core.impl.partitionedsearch.DefaultPartitionedSearchPhase<Solution_>
 
 
- 
- Type Parameters:
- Solution_- the solution type, the class with the- PlanningSolutionannotation
 - All Implemented Interfaces:
- EventListener,- PartitionedSearchPhaseLifecycleListener<Solution_>,- PartitionedSearchPhase<Solution_>,- PhaseLifecycleListener<Solution_>,- Phase<Solution_>,- SolverLifecycleListener<Solution_>
 
 public class DefaultPartitionedSearchPhase<Solution_> extends AbstractPhase<Solution_> implements PartitionedSearchPhase<Solution_>, PartitionedSearchPhaseLifecycleListener<Solution_> Default implementation ofPartitionedSearchPhase.
- 
- 
Field SummaryFields Modifier and Type Field Description protected HeuristicConfigPolicyconfigPolicyprotected List<PhaseConfig>phaseConfigListprotected IntegerrunnablePartThreadLimitprotected SolutionPartitioner<Solution_>solutionPartitionerprotected ThreadFactorythreadFactory- 
Fields inherited from class org.optaplanner.core.impl.phase.AbstractPhaseassertExpectedStepScore, assertShadowVariablesAreNotStaleAfterStep, assertStepScoreFromScratch, bestSolutionRecaller, logger, logIndentation, phaseIndex, phaseLifecycleSupport, solverPhaseLifecycleSupport, termination
 
- 
 - 
Constructor SummaryConstructors Constructor Description DefaultPartitionedSearchPhase(int phaseIndex, String logIndentation, BestSolutionRecaller<Solution_> bestSolutionRecaller, Termination termination, SolutionPartitioner<Solution_> solutionPartitioner, ThreadFactory threadFactory, Integer runnablePartThreadLimit)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description PartitionSolver<Solution_>buildPartitionSolver(ChildThreadPlumbingTermination childThreadPlumbingTermination, Semaphore runnablePartThreadSemaphore, DefaultSolverScope<Solution_> solverScope)protected voiddoStep(PartitionedSearchStepScope<Solution_> stepScope)StringgetPhaseTypeString()voidphaseEnded(PartitionedSearchPhaseScope<Solution_> phaseScope)voidphaseStarted(PartitionedSearchPhaseScope<Solution_> phaseScope)voidsetConfigPolicy(HeuristicConfigPolicy configPolicy)voidsetPhaseConfigList(List<PhaseConfig> phaseConfigList)voidsolve(DefaultSolverScope<Solution_> solverScope)voidstepEnded(PartitionedSearchStepScope<Solution_> stepScope)voidstepStarted(PartitionedSearchStepScope<Solution_> stepScope)- 
Methods inherited from class org.optaplanner.core.impl.phase.AbstractPhaseaddPhaseLifecycleListener, assertWorkingSolutionInitialized, calculateWorkingStepScore, getPhaseIndex, getTermination, isAssertExpectedStepScore, isAssertShadowVariablesAreNotStaleAfterStep, isAssertStepScoreFromScratch, phaseEnded, phaseStarted, predictWorkingStepScore, removePhaseLifecycleListener, setAssertExpectedStepScore, setAssertShadowVariablesAreNotStaleAfterStep, setAssertStepScoreFromScratch, setSolverPhaseLifecycleSupport, solvingEnded, solvingStarted, stepEnded, stepStarted
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.optaplanner.core.impl.phase.PhaseaddPhaseLifecycleListener, removePhaseLifecycleListener, setSolverPhaseLifecycleSupport
 - 
Methods inherited from interface org.optaplanner.core.impl.phase.event.PhaseLifecycleListenerphaseEnded, phaseStarted, stepEnded, stepStarted
 - 
Methods inherited from interface org.optaplanner.core.impl.solver.event.SolverLifecycleListenersolvingEnded, solvingStarted
 
- 
 
- 
- 
- 
Field Detail- 
solutionPartitionerprotected final SolutionPartitioner<Solution_> solutionPartitioner 
 - 
threadFactoryprotected final ThreadFactory threadFactory 
 - 
runnablePartThreadLimitprotected final Integer runnablePartThreadLimit 
 - 
phaseConfigListprotected List<PhaseConfig> phaseConfigList 
 - 
configPolicyprotected HeuristicConfigPolicy configPolicy 
 
- 
 - 
Constructor Detail- 
DefaultPartitionedSearchPhasepublic DefaultPartitionedSearchPhase(int phaseIndex, String logIndentation, BestSolutionRecaller<Solution_> bestSolutionRecaller, Termination termination, SolutionPartitioner<Solution_> solutionPartitioner, ThreadFactory threadFactory, Integer runnablePartThreadLimit)
 
- 
 - 
Method Detail- 
setPhaseConfigListpublic void setPhaseConfigList(List<PhaseConfig> phaseConfigList) 
 - 
setConfigPolicypublic void setConfigPolicy(HeuristicConfigPolicy configPolicy) 
 - 
getPhaseTypeStringpublic String getPhaseTypeString() - Specified by:
- getPhaseTypeStringin class- AbstractPhase<Solution_>
 
 - 
solvepublic void solve(DefaultSolverScope<Solution_> solverScope) 
 - 
buildPartitionSolverpublic PartitionSolver<Solution_> buildPartitionSolver(ChildThreadPlumbingTermination childThreadPlumbingTermination, Semaphore runnablePartThreadSemaphore, DefaultSolverScope<Solution_> solverScope) 
 - 
doStepprotected void doStep(PartitionedSearchStepScope<Solution_> stepScope) 
 - 
phaseStartedpublic void phaseStarted(PartitionedSearchPhaseScope<Solution_> phaseScope) - Specified by:
- phaseStartedin interface- PartitionedSearchPhaseLifecycleListener<Solution_>
 
 - 
stepStartedpublic void stepStarted(PartitionedSearchStepScope<Solution_> stepScope) - Specified by:
- stepStartedin interface- PartitionedSearchPhaseLifecycleListener<Solution_>
 
 - 
stepEndedpublic void stepEnded(PartitionedSearchStepScope<Solution_> stepScope) - Specified by:
- stepEndedin interface- PartitionedSearchPhaseLifecycleListener<Solution_>
 
 - 
phaseEndedpublic void phaseEnded(PartitionedSearchPhaseScope<Solution_> phaseScope) - Specified by:
- phaseEndedin interface- PartitionedSearchPhaseLifecycleListener<Solution_>
 
 
- 
 
-