gov.sns.tools.optimization
Class Scoreboard

java.lang.Object
  |
  +--gov.sns.tools.optimization.Scoreboard
All Implemented Interfaces:
gov.sns.tools.optimization.ScoreMonitor

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

public class Scoreboard
extends java.lang.Object
implements gov.sns.tools.optimization.ScoreMonitor

Scoreboard maintains the status of the solver including the clock and the best solution found so far.


Field Summary
protected  Solution bestSolution
          Deprecated.  
protected  boolean clockRunning
          Deprecated.  
protected  int iterations
          Deprecated.  
protected  java.util.Date lastTime
          Deprecated.  
protected  MessageCenter messageBoard
          Deprecated.  
protected  SolutionMonitor solutionProxy
          Deprecated.  
protected  java.util.Date startTime
          Deprecated.  
 
Constructor Summary
Scoreboard(MessageCenter aMessageBoard)
          Deprecated. Creates a new instance of Scoreboard
 
Method Summary
 void addSolutionListener(SolutionMonitor listener)
          Deprecated. Add a listener to receive events when new solutions are found that are better than any other found so far.
 Solution bestSolution()
          Deprecated. Get the best solution found so far.
 double elapsedTime()
          Deprecated. The amount of time that has elapsed in seconds since the scoring has begun.
 int iterations()
          Deprecated. Get the number of evaluations that have been completed.
 void newScore(java.lang.Object sender, Solution solution)
          Deprecated. Handle the latest the solution that has been posted.
protected  void registerEvents()
          Deprecated. register for events to post and to receive.
 void removeSolutionListener(SolutionMonitor listener)
          Deprecated. Remove a listener that had been receiving events when new solutions are found that are better than any other found so far.
 
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. 

bestSolution

protected Solution bestSolution
Deprecated. 

iterations

protected int iterations
Deprecated. 

solutionProxy

protected SolutionMonitor solutionProxy
Deprecated. 

clockRunning

protected boolean clockRunning
Deprecated. 

startTime

protected java.util.Date startTime
Deprecated. 

lastTime

protected java.util.Date lastTime
Deprecated. 
Constructor Detail

Scoreboard

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

Method Detail

registerEvents

protected void registerEvents()
Deprecated. 
register for events to post and to receive.


addSolutionListener

public void addSolutionListener(SolutionMonitor listener)
Deprecated. 
Add a listener to receive events when new solutions are found that are better than any other found so far.

Parameters:
listener - The SolutionMonitor listener to add.

removeSolutionListener

public void removeSolutionListener(SolutionMonitor listener)
Deprecated. 
Remove a listener that had been receiving events when new solutions are found that are better than any other found so far.

Parameters:
listener - The SolutionMonitor listener to remove.

elapsedTime

public double elapsedTime()
Deprecated. 
The amount of time that has elapsed in seconds since the scoring has begun.

Returns:
the amount of time elapsed in seconds since the scoring has begun.

bestSolution

public Solution bestSolution()
Deprecated. 
Get the best solution found so far.

Returns:
the best solution found so far.

iterations

public int iterations()
Deprecated. 
Get the number of evaluations that have been completed.

Returns:
the number of iterations completed so far.

newScore

public void newScore(java.lang.Object sender,
                     Solution solution)
Deprecated. 
Handle the latest the solution that has been posted. Test to see if this new solution is the best we have ever found and if so post it on the scoreboard and notify solution monitors.

Specified by:
newScore in interface gov.sns.tools.optimization.ScoreMonitor
Parameters:
sender - The object that posted the new solution.
solution - The latest solution evaluated.