gov.sns.tools.optimization
Class Scorer

java.lang.Object
  |
  +--gov.sns.tools.optimization.Scorer
All Implemented Interfaces:
TrialMonitor

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

public class Scorer
extends java.lang.Object
implements TrialMonitor

Scorer wraps the custom evaluator and uses the evaluator to score trial points and package solutions.


Field Summary
protected  Evaluator evaluator
          Deprecated.  
protected  MessageCenter messageBoard
          Deprecated.  
protected  gov.sns.tools.optimization.ScoreMonitor scoreProxy
          Deprecated.  
 
Constructor Summary
Scorer(MessageCenter aMessageBoard)
          Deprecated. Creates a new instance of Scorer
 
Method Summary
 void addScoreMonitor(gov.sns.tools.optimization.ScoreMonitor monitor)
          Deprecated. Register the monitor to listen for ScoreMonitor events from this instance.
 void newTrialPoint(java.lang.Object sender, TrialPoint trialPoint)
          Deprecated. Handle the new trial point event, score it, package it as a solution and post it to the solution monitors.
protected  void registerEvents()
          Deprecated. Register events for receiving and posting.
 void removeScoreMonitor(gov.sns.tools.optimization.ScoreMonitor monitor)
          Deprecated. Remove the monitor from listening to ScoreMonitor events from this instance.
 void setEvaluator(Evaluator anEvaluator)
          Deprecated. Set the evaluator to use in scoring trial points.
 
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. 

evaluator

protected Evaluator evaluator
Deprecated. 

scoreProxy

protected gov.sns.tools.optimization.ScoreMonitor scoreProxy
Deprecated. 
Constructor Detail

Scorer

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

Method Detail

registerEvents

protected void registerEvents()
Deprecated. 
Register events for receiving and posting. We will monitor new trial points and we will post new solutions.


addScoreMonitor

public void addScoreMonitor(gov.sns.tools.optimization.ScoreMonitor monitor)
Deprecated. 
Register the monitor to listen for ScoreMonitor events from this instance.

Parameters:
monitor - the monitor to add

removeScoreMonitor

public void removeScoreMonitor(gov.sns.tools.optimization.ScoreMonitor monitor)
Deprecated. 
Remove the monitor from listening to ScoreMonitor events from this instance.

Parameters:
monitor - the monitor to remove

setEvaluator

public void setEvaluator(Evaluator anEvaluator)
Deprecated. 
Set the evaluator to use in scoring trial points.

Parameters:
anEvaluator - The evaluator to use in scoring trial points.

newTrialPoint

public void newTrialPoint(java.lang.Object sender,
                          TrialPoint trialPoint)
Deprecated. 
Handle the new trial point event, score it, package it as a solution and post it to the solution monitors.

Specified by:
newTrialPoint in interface TrialMonitor
Parameters:
sender - The object posting the new trial point.
trialPoint - The new trial point to evaluate.