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 thePlanningSolution
annotation
- 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 of
PartitionedSearchPhase
.-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected final HeuristicConfigPolicy<Solution_>
protected final List<PhaseConfig>
protected final Integer
protected final SolutionPartitioner<Solution_>
protected final ThreadFactory
Fields inherited from class org.optaplanner.core.impl.phase.AbstractPhase
assertExpectedStepScore, assertShadowVariablesAreNotStaleAfterStep, assertStepScoreFromScratch, logger, logIndentation, phaseIndex, phaseLifecycleSupport, phaseTermination, solver
-
Method Summary
Modifier and TypeMethodDescriptionbuildPartitionSolver
(ChildThreadPlumbingTermination<Solution_> childThreadPlumbingTermination, Semaphore runnablePartThreadSemaphore, SolverScope<Solution_> solverScope) protected void
doStep
(PartitionedSearchStepScope<Solution_> stepScope) void
phaseEnded
(PartitionedSearchPhaseScope<Solution_> phaseScope) void
phaseStarted
(PartitionedSearchPhaseScope<Solution_> phaseScope) void
solve
(SolverScope<Solution_> solverScope) void
stepEnded
(PartitionedSearchStepScope<Solution_> stepScope) void
stepStarted
(PartitionedSearchStepScope<Solution_> stepScope) Methods inherited from class org.optaplanner.core.impl.phase.AbstractPhase
addPhaseLifecycleListener, assertWorkingSolutionInitialized, calculateWorkingStepScore, getPhaseIndex, getPhaseTermination, getSolver, isAssertExpectedStepScore, isAssertShadowVariablesAreNotStaleAfterStep, isAssertStepScoreFromScratch, phaseEnded, phaseStarted, predictWorkingStepScore, removePhaseLifecycleListener, setSolver, solvingEnded, solvingStarted, stepEnded, stepStarted
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.optaplanner.core.impl.phase.Phase
addPhaseLifecycleListener, removePhaseLifecycleListener
Methods inherited from interface org.optaplanner.core.impl.phase.event.PhaseLifecycleListener
phaseEnded, phaseStarted, stepEnded, stepStarted
Methods inherited from interface org.optaplanner.core.impl.solver.event.SolverLifecycleListener
solvingEnded, solvingError, solvingStarted
-
Field Details
-
solutionPartitioner
-
threadFactory
-
runnablePartThreadLimit
-
phaseConfigList
-
configPolicy
-
-
Method Details
-
getPhaseTypeString
- Specified by:
getPhaseTypeString
in classAbstractPhase<Solution_>
-
solve
-
buildPartitionSolver
public PartitionSolver<Solution_> buildPartitionSolver(ChildThreadPlumbingTermination<Solution_> childThreadPlumbingTermination, Semaphore runnablePartThreadSemaphore, SolverScope<Solution_> solverScope) -
doStep
-
phaseStarted
- Specified by:
phaseStarted
in interfacePartitionedSearchPhaseLifecycleListener<Solution_>
-
stepStarted
- Specified by:
stepStarted
in interfacePartitionedSearchPhaseLifecycleListener<Solution_>
-
stepEnded
- Specified by:
stepEnded
in interfacePartitionedSearchPhaseLifecycleListener<Solution_>
-
phaseEnded
- Specified by:
phaseEnded
in interfacePartitionedSearchPhaseLifecycleListener<Solution_>
-