| 
||||||||||
| 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.PhaseToSolverTerminationBridge
public class PhaseToSolverTerminationBridge
| Field Summary | 
|---|
| Fields inherited from class org.drools.planner.core.termination.AbstractTermination | 
|---|
logger | 
| Constructor Summary | |
|---|---|
PhaseToSolverTerminationBridge(Termination solverTermination)
 | 
|
| 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. | 
| Methods inherited from class org.drools.planner.core.termination.AbstractTermination | 
|---|
beforeDeciding, phaseEnded, phaseStarted, solvingEnded, solvingStarted, stepDecided, stepTaken | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public PhaseToSolverTerminationBridge(Termination solverTermination)
| Method Detail | 
|---|
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 | |||||||||