public class AndCompositeTermination extends AbstractCompositeTermination
terminationList
logger
Constructor and Description |
---|
AndCompositeTermination(List<Termination> terminationList) |
AndCompositeTermination(Termination... terminations) |
Modifier and Type | Method and Description |
---|---|
double |
calculatePhaseTimeGradient(AbstractPhaseScope phaseScope)
Calculates the minimum timeGradient of all Terminations.
|
double |
calculateSolverTimeGradient(DefaultSolverScope solverScope)
Calculates the minimum timeGradient of all Terminations.
|
AndCompositeTermination |
createChildThreadTermination(DefaultSolverScope solverScope,
ChildThreadType childThreadType)
|
boolean |
isPhaseTerminated(AbstractPhaseScope phaseScope)
Called by the
Phase 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. |
String |
toString() |
createChildThreadTerminationList, phaseEnded, phaseStarted, solvingEnded, solvingStarted, stepEnded, stepStarted
public AndCompositeTermination(List<Termination> terminationList)
public AndCompositeTermination(Termination... terminations)
public boolean isSolverTerminated(DefaultSolverScope solverScope)
Termination
Solver
after every phase to determine if the search should stop.solverScope
- never nullpublic boolean isPhaseTerminated(AbstractPhaseScope phaseScope)
Termination
Phase
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(AbstractPhaseScope phaseScope)
phaseScope
- never nullpublic AndCompositeTermination createChildThreadTermination(DefaultSolverScope solverScope, ChildThreadType childThreadType)
Termination
createChildThreadTermination
in interface Termination
createChildThreadTermination
in class AbstractTermination
solverScope
- never nullchildThreadType
- never nullCopyright © 2006–2019 JBoss by Red Hat. All rights reserved.