Class AbstractTermination<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_>
- All Implemented Interfaces:
EventListener
,PhaseLifecycleListener<Solution_>
,SolverLifecycleListener<Solution_>
,Termination<Solution_>
- Direct Known Subclasses:
AbstractCompositeTermination
,BasicPlumbingTermination
,BestScoreFeasibleTermination
,BestScoreTermination
,ChildThreadPlumbingTermination
,PhaseToSolverTerminationBridge
,ScoreCalculationCountTermination
,StepCountTermination
,TimeMillisSpentTermination
,UnimprovedStepCountTermination
,UnimprovedTimeMillisSpentScoreDifferenceThresholdTermination
,UnimprovedTimeMillisSpentTermination
public abstract class AbstractTermination<Solution_>
extends PhaseLifecycleListenerAdapter<Solution_>
implements Termination<Solution_>
Abstract superclass for
Termination
.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateChildThreadTermination
(SolverScope<Solution_> solverScope, ChildThreadType childThreadType) Methods inherited from class org.optaplanner.core.impl.phase.event.PhaseLifecycleListenerAdapter
phaseEnded, phaseStarted, stepEnded, stepStarted
Methods inherited from class org.optaplanner.core.impl.solver.event.SolverLifecycleListenerAdapter
solvingEnded, solvingStarted
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.phase.event.PhaseLifecycleListener
phaseEnded, phaseStarted, stepEnded, stepStarted
Methods inherited from interface org.optaplanner.core.impl.solver.event.SolverLifecycleListener
solvingEnded, solvingError, solvingStarted
Methods inherited from interface org.optaplanner.core.impl.solver.termination.Termination
calculatePhaseTimeGradient, calculateSolverTimeGradient, isPhaseTerminated, isSolverTerminated
-
Field Details
-
logger
protected final transient org.slf4j.Logger logger
-
-
Constructor Details
-
AbstractTermination
public AbstractTermination()
-
-
Method Details
-
createChildThreadTermination
public Termination<Solution_> createChildThreadTermination(SolverScope<Solution_> solverScope, ChildThreadType childThreadType) Description copied from interface:Termination
- Specified by:
createChildThreadTermination
in interfaceTermination<Solution_>
- Parameters:
solverScope
- never nullchildThreadType
- never null- Returns:
- not null
-