Solution_ - the solution type, the class with the PlanningSolution annotationpublic class MultiThreadedLocalSearchDecider<Solution_> extends LocalSearchDecider<Solution_>
| Modifier and Type | Field and Description | 
|---|---|
protected boolean | 
assertExpectedStepScore  | 
protected boolean | 
assertShadowVariablesAreNotStaleAfterStep  | 
protected boolean | 
assertStepScoreFromScratch  | 
protected ExecutorService | 
executor  | 
protected CyclicBarrier | 
moveThreadBarrier  | 
protected int | 
moveThreadCount  | 
protected List<MoveThreadRunner<Solution_>> | 
moveThreadRunnerList  | 
protected BlockingQueue<MoveThreadOperation<Solution_>> | 
operationQueue  | 
protected OrderByMoveIndexBlockingQueue<Solution_> | 
resultQueue  | 
protected int | 
selectedMoveBufferSize  | 
protected ThreadFactory | 
threadFactory  | 
acceptor, assertExpectedUndoMoveScore, assertMoveScoreFromScratch, forager, logger, logIndentation, moveSelector, termination| Constructor and Description | 
|---|
MultiThreadedLocalSearchDecider(String logIndentation,
                               Termination termination,
                               MoveSelector moveSelector,
                               Acceptor acceptor,
                               LocalSearchForager forager,
                               ThreadFactory threadFactory,
                               int moveThreadCount,
                               int selectedMoveBufferSize)  | 
| Modifier and Type | Method and Description | 
|---|---|
protected ExecutorService | 
createThreadPoolExecutor()  | 
void | 
decideNextStep(LocalSearchStepScope<Solution_> stepScope)  | 
void | 
phaseEnded(LocalSearchPhaseScope<Solution_> phaseScope)  | 
void | 
phaseStarted(LocalSearchPhaseScope<Solution_> phaseScope)  | 
void | 
setAssertExpectedStepScore(boolean assertExpectedStepScore)  | 
void | 
setAssertShadowVariablesAreNotStaleAfterStep(boolean assertShadowVariablesAreNotStaleAfterStep)  | 
void | 
setAssertStepScoreFromScratch(boolean assertStepScoreFromScratch)  | 
doMove, getAcceptor, getForager, getMoveSelector, getTermination, pickMove, setAssertExpectedUndoMoveScore, setAssertMoveScoreFromScratch, solvingEnded, solvingStarted, stepEnded, stepStartedprotected final ThreadFactory threadFactory
protected final int moveThreadCount
protected final int selectedMoveBufferSize
protected boolean assertStepScoreFromScratch
protected boolean assertExpectedStepScore
protected boolean assertShadowVariablesAreNotStaleAfterStep
protected BlockingQueue<MoveThreadOperation<Solution_>> operationQueue
protected OrderByMoveIndexBlockingQueue<Solution_> resultQueue
protected CyclicBarrier moveThreadBarrier
protected ExecutorService executor
protected List<MoveThreadRunner<Solution_>> moveThreadRunnerList
public MultiThreadedLocalSearchDecider(String logIndentation, Termination termination, MoveSelector moveSelector, Acceptor acceptor, LocalSearchForager forager, ThreadFactory threadFactory, int moveThreadCount, int selectedMoveBufferSize)
public void setAssertStepScoreFromScratch(boolean assertStepScoreFromScratch)
public void setAssertExpectedStepScore(boolean assertExpectedStepScore)
public void setAssertShadowVariablesAreNotStaleAfterStep(boolean assertShadowVariablesAreNotStaleAfterStep)
public void phaseStarted(LocalSearchPhaseScope<Solution_> phaseScope)
phaseStarted in class LocalSearchDecider<Solution_>public void phaseEnded(LocalSearchPhaseScope<Solution_> phaseScope)
phaseEnded in class LocalSearchDecider<Solution_>protected ExecutorService createThreadPoolExecutor()
public void decideNextStep(LocalSearchStepScope<Solution_> stepScope)
decideNextStep in class LocalSearchDecider<Solution_>Copyright © 2006–2019 JBoss by Red Hat. All rights reserved.