Solution_
- the solution type, the class with the PlanningSolution
annotationpublic class LocalSearchDecider<Solution_> extends Object
Modifier and Type | Field and Description |
---|---|
protected Acceptor |
acceptor |
protected boolean |
assertExpectedUndoMoveScore |
protected boolean |
assertMoveScoreFromScratch |
protected LocalSearchForager |
forager |
protected org.slf4j.Logger |
logger |
protected String |
logIndentation |
protected MoveSelector |
moveSelector |
protected Termination |
termination |
Constructor and Description |
---|
LocalSearchDecider(String logIndentation,
Termination termination,
MoveSelector moveSelector,
Acceptor acceptor,
LocalSearchForager forager) |
Modifier and Type | Method and Description |
---|---|
void |
decideNextStep(LocalSearchStepScope<Solution_> stepScope) |
protected void |
doMove(LocalSearchMoveScope<Solution_> moveScope) |
Acceptor |
getAcceptor() |
LocalSearchForager |
getForager() |
MoveSelector |
getMoveSelector() |
Termination |
getTermination() |
void |
phaseEnded(LocalSearchPhaseScope<Solution_> phaseScope) |
void |
phaseStarted(LocalSearchPhaseScope<Solution_> phaseScope) |
protected void |
pickMove(LocalSearchStepScope<Solution_> stepScope) |
void |
setAssertExpectedUndoMoveScore(boolean assertExpectedUndoMoveScore) |
void |
setAssertMoveScoreFromScratch(boolean assertMoveScoreFromScratch) |
void |
solvingEnded(DefaultSolverScope<Solution_> solverScope) |
void |
solvingStarted(DefaultSolverScope<Solution_> solverScope) |
void |
stepEnded(LocalSearchStepScope<Solution_> stepScope) |
void |
stepStarted(LocalSearchStepScope<Solution_> stepScope) |
protected final transient org.slf4j.Logger logger
protected final String logIndentation
protected final Termination termination
protected final MoveSelector moveSelector
protected final Acceptor acceptor
protected final LocalSearchForager forager
protected boolean assertMoveScoreFromScratch
protected boolean assertExpectedUndoMoveScore
public LocalSearchDecider(String logIndentation, Termination termination, MoveSelector moveSelector, Acceptor acceptor, LocalSearchForager forager)
public Termination getTermination()
public MoveSelector getMoveSelector()
public Acceptor getAcceptor()
public LocalSearchForager getForager()
public void setAssertMoveScoreFromScratch(boolean assertMoveScoreFromScratch)
public void setAssertExpectedUndoMoveScore(boolean assertExpectedUndoMoveScore)
public void solvingStarted(DefaultSolverScope<Solution_> solverScope)
public void phaseStarted(LocalSearchPhaseScope<Solution_> phaseScope)
public void stepStarted(LocalSearchStepScope<Solution_> stepScope)
public void decideNextStep(LocalSearchStepScope<Solution_> stepScope)
protected void doMove(LocalSearchMoveScope<Solution_> moveScope)
protected void pickMove(LocalSearchStepScope<Solution_> stepScope)
public void stepEnded(LocalSearchStepScope<Solution_> stepScope)
public void phaseEnded(LocalSearchPhaseScope<Solution_> phaseScope)
public void solvingEnded(DefaultSolverScope<Solution_> solverScope)
Copyright © 2006–2019 JBoss by Red Hat. All rights reserved.