Class MultiThreadedLocalSearchDecider<Solution_>
java.lang.Object
org.optaplanner.core.impl.localsearch.decider.LocalSearchDecider<Solution_>
org.optaplanner.core.impl.localsearch.decider.MultiThreadedLocalSearchDecider<Solution_>
- Type Parameters:
- Solution_- the solution type, the class with the- PlanningSolutionannotation
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected booleanprotected booleanprotected booleanprotected ExecutorServiceprotected CyclicBarrierprotected final intprotected List<MoveThreadRunner<Solution_,?>> protected BlockingQueue<MoveThreadOperation<Solution_>>protected OrderByMoveIndexBlockingQueue<Solution_>protected final intprotected final ThreadFactoryFields inherited from class org.optaplanner.core.impl.localsearch.decider.LocalSearchDecideracceptor, assertExpectedUndoMoveScore, assertMoveScoreFromScratch, forager, logger, logIndentation, moveSelector, termination
- 
Constructor SummaryConstructorsConstructorDescriptionMultiThreadedLocalSearchDecider(String logIndentation, Termination<Solution_> termination, MoveSelector<Solution_> moveSelector, Acceptor<Solution_> acceptor, LocalSearchForager<Solution_> forager, ThreadFactory threadFactory, int moveThreadCount, int selectedMoveBufferSize) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected ExecutorServicevoiddecideNextStep(LocalSearchStepScope<Solution_> stepScope) voidphaseEnded(LocalSearchPhaseScope<Solution_> phaseScope) voidphaseStarted(LocalSearchPhaseScope<Solution_> phaseScope) voidsetAssertExpectedStepScore(boolean assertExpectedStepScore) voidsetAssertShadowVariablesAreNotStaleAfterStep(boolean assertShadowVariablesAreNotStaleAfterStep) voidsetAssertStepScoreFromScratch(boolean assertStepScoreFromScratch) voidsolvingError(SolverScope<Solution_> solverScope, Exception exception) Methods inherited from class org.optaplanner.core.impl.localsearch.decider.LocalSearchDeciderdoMove, getAcceptor, getForager, getMoveSelector, getTermination, pickMove, setAssertExpectedUndoMoveScore, setAssertMoveScoreFromScratch, solvingEnded, solvingStarted, stepEnded, stepStarted
- 
Field Details- 
threadFactory
- 
moveThreadCountprotected final int moveThreadCount
- 
selectedMoveBufferSizeprotected final int selectedMoveBufferSize
- 
assertStepScoreFromScratchprotected boolean assertStepScoreFromScratch
- 
assertExpectedStepScoreprotected boolean assertExpectedStepScore
- 
assertShadowVariablesAreNotStaleAfterStepprotected boolean assertShadowVariablesAreNotStaleAfterStep
- 
operationQueue
- 
resultQueue
- 
moveThreadBarrier
- 
executor
- 
moveThreadRunnerList
 
- 
- 
Constructor Details- 
MultiThreadedLocalSearchDeciderpublic MultiThreadedLocalSearchDecider(String logIndentation, Termination<Solution_> termination, MoveSelector<Solution_> moveSelector, Acceptor<Solution_> acceptor, LocalSearchForager<Solution_> forager, ThreadFactory threadFactory, int moveThreadCount, int selectedMoveBufferSize) 
 
- 
- 
Method Details- 
setAssertStepScoreFromScratchpublic void setAssertStepScoreFromScratch(boolean assertStepScoreFromScratch) 
- 
setAssertExpectedStepScorepublic void setAssertExpectedStepScore(boolean assertExpectedStepScore) 
- 
setAssertShadowVariablesAreNotStaleAfterSteppublic void setAssertShadowVariablesAreNotStaleAfterStep(boolean assertShadowVariablesAreNotStaleAfterStep) 
- 
phaseStarted- Overrides:
- phaseStartedin class- LocalSearchDecider<Solution_>
 
- 
phaseEnded- Overrides:
- phaseEndedin class- LocalSearchDecider<Solution_>
 
- 
solvingError- Overrides:
- solvingErrorin class- LocalSearchDecider<Solution_>
 
- 
createThreadPoolExecutor
- 
decideNextStep- Overrides:
- decideNextStepin class- LocalSearchDecider<Solution_>
 
 
-