public abstract class AbstractSolverPhase extends Object implements SolverPhase
DefaultLocalSearchSolverPhase
Modifier and Type | Field and Description |
---|---|
protected BestSolutionRecaller |
bestSolutionRecaller |
protected org.slf4j.Logger |
logger |
protected int |
phaseIndex |
protected SolverPhaseLifecycleSupport |
solverPhaseLifecycleSupport |
protected Termination |
termination |
Constructor and Description |
---|
AbstractSolverPhase() |
Modifier and Type | Method and Description |
---|---|
void |
addSolverPhaseLifecycleListener(SolverPhaseLifecycleListener lifecycleListener) |
int |
getPhaseIndex() |
Termination |
getTermination() |
void |
phaseEnded(AbstractSolverPhaseScope phaseScope) |
void |
phaseStarted(AbstractSolverPhaseScope phaseScope) |
void |
removeSolverPhaseLifecycleListener(SolverPhaseLifecycleListener lifecycleListener) |
void |
setBestSolutionRecaller(BestSolutionRecaller bestSolutionRecaller) |
void |
setPhaseIndex(int phaseIndex) |
void |
setTermination(Termination termination) |
void |
solvingEnded(DefaultSolverScope solverScope) |
void |
solvingStarted(DefaultSolverScope solverScope) |
void |
stepEnded(AbstractStepScope stepScope) |
void |
stepStarted(AbstractStepScope stepScope) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
solve
protected final transient org.slf4j.Logger logger
protected int phaseIndex
protected Termination termination
protected BestSolutionRecaller bestSolutionRecaller
protected SolverPhaseLifecycleSupport solverPhaseLifecycleSupport
public Termination getTermination()
public int getPhaseIndex()
public void setPhaseIndex(int phaseIndex)
public void setTermination(Termination termination)
public void setBestSolutionRecaller(BestSolutionRecaller bestSolutionRecaller)
public void solvingStarted(DefaultSolverScope solverScope)
solvingStarted
in interface SolverLifecycleListener
public void solvingEnded(DefaultSolverScope solverScope)
solvingEnded
in interface SolverLifecycleListener
public void phaseStarted(AbstractSolverPhaseScope phaseScope)
phaseStarted
in interface SolverPhaseLifecycleListener
public void stepStarted(AbstractStepScope stepScope)
stepStarted
in interface SolverPhaseLifecycleListener
public void stepEnded(AbstractStepScope stepScope)
stepEnded
in interface SolverPhaseLifecycleListener
public void phaseEnded(AbstractSolverPhaseScope phaseScope)
phaseEnded
in interface SolverPhaseLifecycleListener
public void addSolverPhaseLifecycleListener(SolverPhaseLifecycleListener lifecycleListener)
addSolverPhaseLifecycleListener
in interface SolverPhase
public void removeSolverPhaseLifecycleListener(SolverPhaseLifecycleListener lifecycleListener)
removeSolverPhaseLifecycleListener
in interface SolverPhase
Copyright © 2006-2014 JBoss by Red Hat. All Rights Reserved.