gov.sns.tools.optimization
Interface RandomSearchAlgorithm.Searcher

All Superinterfaces:
gov.sns.tools.optimization.ScoreMonitor
All Known Implementing Classes:
RandomSearchAlgorithm.RandomSearcher
Enclosing interface:
RandomSearchAlgorithm

protected static interface RandomSearchAlgorithm.Searcher
extends gov.sns.tools.optimization.ScoreMonitor

Interface for classes that search for solutions.


Method Summary
 void newScore(java.lang.Object sender, Solution solution)
          Deprecated. Notifies the receiver of a new score event.
 void newTopSolution(TrialPoint oldPoint, TrialPoint newPoint)
          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.
 TrialPoint nextTrialPoint()
          Get the next trial point.
 void reset()
          reset for searching from scratch; forget history
 

Method Detail

reset

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


newTopSolution

public void newTopSolution(TrialPoint oldPoint,
                           TrialPoint newPoint)
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.

Parameters:
oldPoint - The old best point.
newPoint - The new best point.

nextTrialPoint

public TrialPoint nextTrialPoint()
Get the next trial point.

Returns:
the next trial point.

newScore

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

Parameters:
sender - The object posting the event.
solution - The solution posted.