Solution_
- the solution type, the class with the PlanningSolution
annotationpublic interface Phase<Solution_> extends PhaseLifecycleListener<Solution_>
Solver
.AbstractPhase
Modifier and Type | Method and Description |
---|---|
void |
addPhaseLifecycleListener(PhaseLifecycleListener<Solution_> phaseLifecycleListener)
Add a
PhaseLifecycleListener that is only notified
of the phase
and the PhaseLifecycleListener.stepStarted(AbstractStepScope) step} starting/ending events from this phase
(and the SolverLifecycleListener.solvingStarted(DefaultSolverScope) solving} events too of course). |
void |
removePhaseLifecycleListener(PhaseLifecycleListener<Solution_> phaseLifecycleListener) |
void |
setSolverPhaseLifecycleSupport(PhaseLifecycleSupport<Solution_> solverPhaseLifecycleSupport)
Used to make
AbstractSolver.addPhaseLifecycleListener(PhaseLifecycleListener) work. |
void |
solve(DefaultSolverScope<Solution_> solverScope) |
phaseEnded, phaseStarted, stepEnded, stepStarted
solvingEnded, solvingStarted
void setSolverPhaseLifecycleSupport(PhaseLifecycleSupport<Solution_> solverPhaseLifecycleSupport)
AbstractSolver.addPhaseLifecycleListener(PhaseLifecycleListener)
work.solverPhaseLifecycleSupport
- never nullvoid addPhaseLifecycleListener(PhaseLifecycleListener<Solution_> phaseLifecycleListener)
PhaseLifecycleListener
that is only notified
of the phase
and the PhaseLifecycleListener.stepStarted(AbstractStepScope)
step} starting/ending events from this phase
(and the SolverLifecycleListener.solvingStarted(DefaultSolverScope)
solving} events too of course).
To get notified for all phases, use AbstractSolver.addPhaseLifecycleListener(PhaseLifecycleListener)
instead.
phaseLifecycleListener
- never nullvoid removePhaseLifecycleListener(PhaseLifecycleListener<Solution_> phaseLifecycleListener)
phaseLifecycleListener
- never nulladdPhaseLifecycleListener(PhaseLifecycleListener)
void solve(DefaultSolverScope<Solution_> solverScope)
Copyright © 2006–2019 JBoss by Red Hat. All rights reserved.