gov.sns.tools.solver
Class AlgorithmSchedule

java.lang.Object
  |
  +--gov.sns.tools.solver.AlgorithmSchedule

Deprecated. The optimization and optimizer packages have been replaced by the solver package.

public class AlgorithmSchedule
extends java.lang.Object

Schedule keeps track of and executes the next algorithm based on its score. Schedule also sets a trial and a stopper.


Field Summary
protected  java.util.LinkedList algorithmRunStack
          Deprecated.  
protected  Evaluator evaluator
          Deprecated.  
protected  Problem problem
          Deprecated.  
protected  Stopper stopper
          Deprecated.  
 
Constructor Summary
AlgorithmSchedule(Problem aProblem, Stopper aStopper)
          Deprecated. Creates a new instance of Schedule
 
Method Summary
 void evaluateNext()
          Deprecated. Evaluate the next algorithm.
 void execute(Solver aSolver)
          Deprecated. Execute a search.
 Trial newTrial()
          Deprecated. Create a new trial.
 SearchAlgorithm nextAlgorithm()
          Deprecated. Get the next algorithm to be run.
 void score(Trial aTrial)
          Deprecated. Score the trial.
 TrialVeto validate(Trial aTrial)
          Deprecated. Validate the trial.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stopper

protected Stopper stopper
Deprecated. 

algorithmRunStack

protected java.util.LinkedList algorithmRunStack
Deprecated. 

problem

protected Problem problem
Deprecated. 

evaluator

protected Evaluator evaluator
Deprecated. 
Constructor Detail

AlgorithmSchedule

public AlgorithmSchedule(Problem aProblem,
                         Stopper aStopper)
Deprecated. 
Creates a new instance of Schedule

Method Detail

newTrial

public Trial newTrial()
Deprecated. 
Create a new trial.

Returns:
A new trial.

nextAlgorithm

public SearchAlgorithm nextAlgorithm()
Deprecated. 
Get the next algorithm to be run.

Returns:
A search algorithm.

execute

public void execute(Solver aSolver)
Deprecated. 
Execute a search.


evaluateNext

public void evaluateNext()
Deprecated. 
Evaluate the next algorithm.


validate

public TrialVeto validate(Trial aTrial)
Deprecated. 
Validate the trial.

Parameters:
aTrial - The trial to be validated.
Returns:
A trial veto if any of the constraints veto a trial.

score

public void score(Trial aTrial)
Deprecated. 
Score the trial.

Parameters:
aTrial - The trial to be scored.