public abstract class AbstractPhase extends Object implements Phase
DefaultLocalSearchPhase
Modifier and Type | Field and Description |
---|---|
protected BestSolutionRecaller |
bestSolutionRecaller |
protected org.slf4j.Logger |
logger |
protected int |
phaseIndex |
protected PhaseLifecycleSupport |
phaseLifecycleSupport |
protected Termination |
termination |
Constructor and Description |
---|
AbstractPhase() |
Modifier and Type | Method and Description |
---|---|
void |
addPhaseLifecycleListener(PhaseLifecycleListener phaseLifecycleListener) |
protected void |
assertWorkingSolutionInitialized(AbstractPhaseScope phaseScope) |
int |
getPhaseIndex() |
abstract String |
getPhaseTypeString() |
Termination |
getTermination() |
void |
phaseEnded(AbstractPhaseScope phaseScope) |
void |
phaseStarted(AbstractPhaseScope phaseScope) |
void |
removePhaseLifecycleListener(PhaseLifecycleListener phaseLifecycleListener) |
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) |
protected final transient org.slf4j.Logger logger
protected int phaseIndex
protected Termination termination
protected BestSolutionRecaller bestSolutionRecaller
protected PhaseLifecycleSupport phaseLifecycleSupport
public Termination getTermination()
public int getPhaseIndex()
public void setPhaseIndex(int phaseIndex)
public void setTermination(Termination termination)
public void setBestSolutionRecaller(BestSolutionRecaller bestSolutionRecaller)
public abstract String getPhaseTypeString()
public void solvingStarted(DefaultSolverScope solverScope)
solvingStarted
in interface SolverLifecycleListener
public void solvingEnded(DefaultSolverScope solverScope)
solvingEnded
in interface SolverLifecycleListener
public void phaseStarted(AbstractPhaseScope phaseScope)
phaseStarted
in interface PhaseLifecycleListener
public void stepStarted(AbstractStepScope stepScope)
stepStarted
in interface PhaseLifecycleListener
public void stepEnded(AbstractStepScope stepScope)
stepEnded
in interface PhaseLifecycleListener
public void phaseEnded(AbstractPhaseScope phaseScope)
phaseEnded
in interface PhaseLifecycleListener
public void addPhaseLifecycleListener(PhaseLifecycleListener phaseLifecycleListener)
addPhaseLifecycleListener
in interface Phase
public void removePhaseLifecycleListener(PhaseLifecycleListener phaseLifecycleListener)
removePhaseLifecycleListener
in interface Phase
protected void assertWorkingSolutionInitialized(AbstractPhaseScope phaseScope)
Copyright © 2006–2016 JBoss by Red Hat. All rights reserved.