gov.sns.tools.optimization
Class SearchAlgorithm

java.lang.Object
  |
  +--gov.sns.tools.optimization.SearchAlgorithm
All Implemented Interfaces:
gov.sns.tools.optimization.ScoreMonitor, SolutionMonitor
Direct Known Subclasses:
RandomSearchAlgorithm

Deprecated. The optimization package has been replaced by the optimizer package.

public abstract class SearchAlgorithm
extends java.lang.Object
implements SolutionMonitor, gov.sns.tools.optimization.ScoreMonitor

Abstract super class for an optimization search algorithm.


Field Summary
protected  MessageCenter messageBoard
          Deprecated.  
protected  int numVariables
          Deprecated.  
protected  TrialMonitor trialProxy
          Deprecated.  
protected  java.util.Collection variables
          Deprecated.  
 
Constructor Summary
SearchAlgorithm(MessageCenter aMessageBoard)
          Deprecated. Creates a new instance of SearchAlgorithm
 
Method Summary
 void newScore(java.lang.Object sender, Solution solution)
          Deprecated. Notifies the receiver of a new score event.
abstract  void newTopSolution(java.lang.Object sender, Solution solution)
          Deprecated. An event indicating that a new solution has been found which is better than the previous best solution according to the score given by the evaluator.
protected  void registerEvents()
          Deprecated. Register as a consumer and poster
abstract  void reset()
          Deprecated. reset for searching from scratch; forget history
abstract  void solve()
          Deprecated. begin searching for an optimal solution
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

messageBoard

protected MessageCenter messageBoard
Deprecated. 

trialProxy

protected TrialMonitor trialProxy
Deprecated. 

variables

protected java.util.Collection variables
Deprecated. 

numVariables

protected int numVariables
Deprecated. 
Constructor Detail

SearchAlgorithm

public SearchAlgorithm(MessageCenter aMessageBoard)
Deprecated. 
Creates a new instance of SearchAlgorithm

Method Detail

registerEvents

protected void registerEvents()
Deprecated. 
Register as a consumer and poster


reset

public abstract void reset()
Deprecated. 
reset for searching from scratch; forget history


solve

public abstract void solve()
Deprecated. 
begin searching for an optimal solution


newTopSolution

public abstract void newTopSolution(java.lang.Object sender,
                                    Solution solution)
Deprecated. 
An event indicating that a new solution has been found which is better than the previous best solution according to the score given by the evaluator.

Specified by:
newTopSolution in interface SolutionMonitor
Parameters:
sender - The object that has posted this solution.
solution - The best solution found so far.

newScore

public void newScore(java.lang.Object sender,
                     Solution solution)
Deprecated. 
Notifies the receiver of a new score event.

Specified by:
newScore in interface gov.sns.tools.optimization.ScoreMonitor
Parameters:
sender - The object posting the event.
solution - The solution posted.