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 Forager |
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,
Forager forager) |
Modifier and Type | Method and Description |
---|---|
void |
decideNextStep(LocalSearchStepScope<Solution_> stepScope) |
Acceptor |
getAcceptor() |
Forager |
getForager() |
MoveSelector |
getMoveSelector() |
Termination |
getTermination() |
void |
phaseEnded(LocalSearchPhaseScope<Solution_> phaseScope) |
void |
phaseStarted(LocalSearchPhaseScope<Solution_> phaseScope) |
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 Forager forager
protected boolean assertMoveScoreFromScratch
protected boolean assertExpectedUndoMoveScore
public LocalSearchDecider(String logIndentation, Termination termination, MoveSelector moveSelector, Acceptor acceptor, Forager forager)
public Termination getTermination()
public MoveSelector getMoveSelector()
public Acceptor getAcceptor()
public Forager 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)
public void stepEnded(LocalSearchStepScope<Solution_> stepScope)
public void phaseEnded(LocalSearchPhaseScope<Solution_> phaseScope)
public void solvingEnded(DefaultSolverScope<Solution_> solverScope)
Copyright © 2006–2016 JBoss by Red Hat. All rights reserved.