Class AbstractTermination
- java.lang.Object
-
- org.optaplanner.core.impl.solver.event.SolverLifecycleListenerAdapter<Solution_>
-
- org.optaplanner.core.impl.phase.event.PhaseLifecycleListenerAdapter
-
- org.optaplanner.core.impl.solver.termination.AbstractTermination
-
- All Implemented Interfaces:
EventListener,PhaseLifecycleListener,SolverLifecycleListener,Termination
- Direct Known Subclasses:
AbstractCompositeTermination,BasicPlumbingTermination,BestScoreFeasibleTermination,BestScoreTermination,ChildThreadPlumbingTermination,PhaseToSolverTerminationBridge,ScoreCalculationCountTermination,StepCountTermination,TimeMillisSpentTermination,UnimprovedStepCountTermination,UnimprovedTimeMillisSpentScoreDifferenceThresholdTermination,UnimprovedTimeMillisSpentTermination
public abstract class AbstractTermination extends PhaseLifecycleListenerAdapter implements Termination
Abstract superclass forTermination.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.slf4j.Loggerlogger
-
Constructor Summary
Constructors Constructor Description AbstractTermination()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TerminationcreateChildThreadTermination(DefaultSolverScope 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, solvingStarted
-
Methods inherited from interface org.optaplanner.core.impl.solver.termination.Termination
calculatePhaseTimeGradient, calculateSolverTimeGradient, isPhaseTerminated, isSolverTerminated
-
-
-
-
Method Detail
-
createChildThreadTermination
public Termination createChildThreadTermination(DefaultSolverScope solverScope, ChildThreadType childThreadType)
Description copied from interface:Termination- Specified by:
createChildThreadTerminationin interfaceTermination- Parameters:
solverScope- never nullchildThreadType- never null- Returns:
- not null
-
-