Class AbstractCompositeTermination<Solution_>
java.lang.Object
org.optaplanner.core.impl.solver.event.SolverLifecycleListenerAdapter<Solution_>
org.optaplanner.core.impl.phase.event.PhaseLifecycleListenerAdapter<Solution_>
org.optaplanner.core.impl.solver.termination.AbstractTermination<Solution_>
org.optaplanner.core.impl.solver.termination.AbstractCompositeTermination<Solution_>
- All Implemented Interfaces:
EventListener
,PhaseLifecycleListener<Solution_>
,SolverLifecycleListener<Solution_>
,Termination<Solution_>
- Direct Known Subclasses:
AndCompositeTermination
,OrCompositeTermination
public abstract class AbstractCompositeTermination<Solution_>
extends AbstractTermination<Solution_>
Abstract superclass that combines multiple
Termination
s.-
Field Summary
Fields inherited from class org.optaplanner.core.impl.solver.termination.AbstractTermination
logger
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractCompositeTermination
(List<Termination<Solution_>> terminationList) AbstractCompositeTermination
(Termination<Solution_>... terminations) -
Method Summary
Modifier and TypeMethodDescriptionprotected List<Termination<Solution_>>
createChildThreadTerminationList
(SolverScope<Solution_> solverScope, ChildThreadType childThreadType) void
phaseEnded
(AbstractPhaseScope<Solution_> phaseScope) void
phaseStarted
(AbstractPhaseScope<Solution_> phaseScope) void
solvingEnded
(SolverScope<Solution_> solverScope) void
solvingStarted
(SolverScope<Solution_> solverScope) void
stepEnded
(AbstractStepScope<Solution_> stepScope) void
stepStarted
(AbstractStepScope<Solution_> stepScope) Methods inherited from class org.optaplanner.core.impl.solver.termination.AbstractTermination
createChildThreadTermination
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.optaplanner.core.impl.solver.event.SolverLifecycleListener
solvingError
Methods inherited from interface org.optaplanner.core.impl.solver.termination.Termination
calculatePhaseTimeGradient, calculateSolverTimeGradient, isPhaseTerminated, isSolverTerminated
-
Field Details
-
terminationList
-
-
Constructor Details
-
AbstractCompositeTermination
-
AbstractCompositeTermination
-
-
Method Details
-
solvingStarted
- Specified by:
solvingStarted
in interfaceSolverLifecycleListener<Solution_>
- Overrides:
solvingStarted
in classSolverLifecycleListenerAdapter<Solution_>
-
phaseStarted
- Specified by:
phaseStarted
in interfacePhaseLifecycleListener<Solution_>
- Overrides:
phaseStarted
in classPhaseLifecycleListenerAdapter<Solution_>
-
stepStarted
- Specified by:
stepStarted
in interfacePhaseLifecycleListener<Solution_>
- Overrides:
stepStarted
in classPhaseLifecycleListenerAdapter<Solution_>
-
stepEnded
- Specified by:
stepEnded
in interfacePhaseLifecycleListener<Solution_>
- Overrides:
stepEnded
in classPhaseLifecycleListenerAdapter<Solution_>
-
phaseEnded
- Specified by:
phaseEnded
in interfacePhaseLifecycleListener<Solution_>
- Overrides:
phaseEnded
in classPhaseLifecycleListenerAdapter<Solution_>
-
solvingEnded
- Specified by:
solvingEnded
in interfaceSolverLifecycleListener<Solution_>
- Overrides:
solvingEnded
in classSolverLifecycleListenerAdapter<Solution_>
-
createChildThreadTerminationList
protected List<Termination<Solution_>> createChildThreadTerminationList(SolverScope<Solution_> solverScope, ChildThreadType childThreadType)
-