|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.drools.planner.core.termination.AbstractTermination
org.drools.planner.core.termination.ScoreAttainedTermination
public class ScoreAttainedTermination
| Field Summary |
|---|
| Fields inherited from class org.drools.planner.core.termination.AbstractTermination |
|---|
logger |
| Constructor Summary | |
|---|---|
ScoreAttainedTermination()
|
|
| Method Summary | |
|---|---|
double |
calculatePhaseTimeGradient(AbstractSolverPhaseScope solverPhaseScope)
See Termination.calculateSolverTimeGradient(DefaultSolverScope). |
double |
calculateSolverTimeGradient(DefaultSolverScope solverScope)
A timeGradient is a relative estimate of how long the search will continue. |
boolean |
isPhaseTerminated(AbstractSolverPhaseScope solverPhaseScope)
Called by the SolverPhase after every step 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. |
void |
setScoreAttained(Score scoreAttained)
|
| Methods inherited from class org.drools.planner.core.termination.AbstractTermination |
|---|
beforeDeciding, phaseEnded, phaseStarted, solvingEnded, solvingStarted, stepTaken |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScoreAttainedTermination()
| Method Detail |
|---|
public void setScoreAttained(Score scoreAttained)
public boolean isSolverTerminated(DefaultSolverScope solverScope)
TerminationSolver after every phase to determine if the search should stop.
solverScope - never null
public boolean isPhaseTerminated(AbstractSolverPhaseScope solverPhaseScope)
TerminationSolverPhase after every step to determine if the search should stop.
solverPhaseScope - never null
public double calculateSolverTimeGradient(DefaultSolverScope solverScope)
TerminationSimulatedAnnealingAcceptor) require a correctly implemented timeGradient.
A Termination's timeGradient can be requested after they are terminated, so implementations
should be careful not to return a timeGradient above 1.0.
solverScope - never null
public double calculatePhaseTimeGradient(AbstractSolverPhaseScope solverPhaseScope)
TerminationTermination.calculateSolverTimeGradient(DefaultSolverScope).
solverPhaseScope - never null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||