public class OrCompositeTermination extends AbstractCompositeTermination
terminationListlogger| 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, stepStartedpublic OrCompositeTermination(List<Termination> terminationList)
public OrCompositeTermination(Termination... terminations)
public boolean isSolverTerminated(DefaultSolverScope solverScope)
TerminationSolver after every phase to determine if the search should stop.solverScope - never nullpublic boolean isPhaseTerminated(AbstractPhaseScope phaseScope)
TerminationPhase 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)
TerminationcreateChildThreadTermination in interface TerminationcreateChildThreadTermination in class AbstractTerminationsolverScope - never nullchildThreadType - never nullCopyright © 2006–2021 JBoss by Red Hat. All rights reserved.