org.optaplanner.core.impl.termination
public class OrCompositeTermination extends AbstractCompositeTermination
terminationList
logger
Constructor and Description |
---|
OrCompositeTermination() |
OrCompositeTermination(Termination... terminations) |
Modifier and Type | Method and Description |
---|---|
double |
calculatePhaseTimeGradient(AbstractSolverPhaseScope phaseScope)
Calculates the minimum timeGradient of all Terminations.
|
double |
calculateSolverTimeGradient(DefaultSolverScope solverScope)
Calculates the minimum timeGradient of all Terminations.
|
boolean |
isPhaseTerminated(AbstractSolverPhaseScope phaseScope)
Called by the
SolverPhase after every step and every move to determine if the search should stop. |
boolean |
isSolverTerminated(DefaultSolverScope solverScope)
Called by the
Solver after every phase to determine if the search should stop. |
phaseEnded, phaseStarted, setTerminationList, solvingEnded, solvingStarted, stepEnded, stepStarted
public OrCompositeTermination()
public OrCompositeTermination(Termination... terminations)
public boolean isSolverTerminated(DefaultSolverScope solverScope)
Termination
Solver
after every phase to determine if the search should stop.solverScope
- never nullpublic boolean isPhaseTerminated(AbstractSolverPhaseScope phaseScope)
Termination
SolverPhase
after every step and every move to determine if the search should stop.phaseScope
- never nullpublic double calculateSolverTimeGradient(DefaultSolverScope solverScope)
solverScope
- never nullpublic double calculatePhaseTimeGradient(AbstractSolverPhaseScope phaseScope)
phaseScope
- never nullCopyright © 2006-2013 JBoss by Red Hat. All Rights Reserved.