|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.sns.tools.optimization.Scoreboard
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 |
protected MessageCenter messageBoard
protected Solution bestSolution
protected int iterations
protected SolutionMonitor solutionProxy
protected boolean clockRunning
protected java.util.Date startTime
protected java.util.Date lastTime
| Constructor Detail |
public Scoreboard(MessageCenter aMessageBoard)
| Method Detail |
protected void registerEvents()
public void addSolutionListener(SolutionMonitor listener)
listener - The SolutionMonitor listener to add.public void removeSolutionListener(SolutionMonitor listener)
listener - The SolutionMonitor listener to remove.public double elapsedTime()
public Solution bestSolution()
public int iterations()
public void newScore(java.lang.Object sender,
Solution solution)
newScore in interface gov.sns.tools.optimization.ScoreMonitorsender - The object that posted the new solution.solution - The latest solution evaluated.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||