org.optaplanner.core.impl.phase.custom
Class DefaultCustomPhase
java.lang.Object
org.optaplanner.core.impl.phase.AbstractPhase
org.optaplanner.core.impl.phase.custom.DefaultCustomPhase
- All Implemented Interfaces:
- EventListener, CustomPhase, PhaseLifecycleListener, Phase, SolverLifecycleListener
public class DefaultCustomPhase
- extends AbstractPhase
- implements CustomPhase
Default implementation of CustomPhase
.
Methods inherited from class org.optaplanner.core.impl.phase.AbstractPhase |
addPhaseLifecycleListener, getPhaseIndex, getTermination, phaseEnded, phaseStarted, removePhaseLifecycleListener, setBestSolutionRecaller, setPhaseIndex, setTermination, solvingEnded, solvingStarted, stepEnded, stepStarted |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
customPhaseCommandList
protected List<CustomPhaseCommand> customPhaseCommandList
forceUpdateBestSolution
protected boolean forceUpdateBestSolution
DefaultCustomPhase
public DefaultCustomPhase()
setCustomPhaseCommandList
public void setCustomPhaseCommandList(List<CustomPhaseCommand> customPhaseCommandList)
setForceUpdateBestSolution
public void setForceUpdateBestSolution(boolean forceUpdateBestSolution)
solve
public void solve(DefaultSolverScope solverScope)
- Specified by:
solve
in interface Phase
phaseStarted
public void phaseStarted(CustomPhaseScope phaseScope)
stepStarted
public void stepStarted(CustomStepScope stepScope)
stepEnded
public void stepEnded(CustomStepScope stepScope)
phaseEnded
public void phaseEnded(CustomPhaseScope phaseScope)
Copyright © 2006-2014 JBoss by Red Hat. All Rights Reserved.