public class OrCompositeTermination extends AbstractCompositeTermination
terminationList
logger
Constructor and Description |
---|
OrCompositeTermination(List<Termination> terminationList) |
OrCompositeTermination(Termination... terminations) |
Modifier and Type | Method and Description |
---|---|
double |
calculatePhaseTimeGradient(AbstractPhaseScope phaseScope)
Calculates the maximum timeGradient of all Terminations.
|
double |
calculateSolverTimeGradient(DefaultSolverScope solverScope)
Calculates the maximum timeGradient of all Terminations.
|
OrCompositeTermination |
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 OrCompositeTermination(List<Termination> terminationList)
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(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 OrCompositeTermination 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.