gov.sns.tools.optimizer
Class Scoreboard

java.lang.Object
  |
  +--gov.sns.tools.optimizer.Scoreboard

public class Scoreboard
extends java.lang.Object


Field Summary
protected  double bestScore
           
protected  double bestScoreBefore
           
protected  boolean clockRunning
           
protected  int iterations
           
protected  java.util.Date lastTime
           
protected  java.util.Map solutionMap
           
protected  java.util.Date startTime
           
 
Constructor Summary
protected Scoreboard()
          Creates a new instance of Scoreboard
 
Method Summary
protected  double elapsedTime()
           
 double getBestScore()
           
 java.util.Map getBestSolutionMap()
           
 double getPreviousBestScore()
           
 int iterations()
           
protected  void nextIteration()
           
protected  void reset()
           
protected  void setBestScore(double bestScore, java.util.Map solutionMap)
           
protected  void startClock()
           
protected  void stopClock()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

bestScore

protected double bestScore

bestScoreBefore

protected double bestScoreBefore

solutionMap

protected java.util.Map solutionMap

iterations

protected int iterations

clockRunning

protected boolean clockRunning

startTime

protected java.util.Date startTime

lastTime

protected java.util.Date lastTime
Constructor Detail

Scoreboard

protected Scoreboard()
Creates a new instance of Scoreboard

Method Detail

reset

protected final void reset()

startClock

protected final void startClock()

stopClock

protected final void stopClock()

elapsedTime

protected final double elapsedTime()

setBestScore

protected final void setBestScore(double bestScore,
                                  java.util.Map solutionMap)

nextIteration

protected final void nextIteration()

getBestScore

public final double getBestScore()

getPreviousBestScore

public final double getPreviousBestScore()

getBestSolutionMap

public final java.util.Map getBestSolutionMap()

iterations

public final int iterations()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object