eaLib API Docs
Last Modified : January 7 2002

mss.ea.eval
Class ScoreEvaluation

java.lang.Object
  |
  +--mss.ea.core.GeneticOperator
        |
        +--mss.ea.eval.ScoreEvaluation
All Implemented Interfaces:
SingleStreamProcessor, StreamProcessor
Direct Known Subclasses:
SalesmanCalc, SphereCalc

public abstract class ScoreEvaluation
extends GeneticOperator
implements SingleStreamProcessor

Abstract base class for score calculation.

Since:
0.1
Version:
$Revision: 1.4 $ $Date: 2001/11/28 15:47:57 $
Author:
Andreas Rummler

Fields inherited from class mss.ea.core.GeneticOperator
description, ID, name
 
Constructor Summary
ScoreEvaluation()
          Constructor.
 
Method Summary
abstract  Score evaluate(Individual i)
          Abstract method for evaluating the score of an individual.
 IndividualStream process(IndividualStream is)
          Evaluates all individuals in a stream.
 
Methods inherited from class mss.ea.core.GeneticOperator
getDescription, getID, getName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface mss.ea.core.StreamProcessor
getName
 

Constructor Detail

ScoreEvaluation

public ScoreEvaluation()
Constructor.
Method Detail

evaluate

public abstract Score evaluate(Individual i)
                        throws ScoreEvaluationException
Abstract method for evaluating the score of an individual. This evaluates the score and returns the it. This method must not append the score to the individual, this is already done by the process methods.
Parameters:
i - individual for doing the evaluation for
Returns:
evaluated score
Throws:
ScoreEvaluationException - thrown in case the evaluation fails

process

public IndividualStream process(IndividualStream is)
                         throws ScoreEvaluationException
Evaluates all individuals in a stream.
Specified by:
process in interface SingleStreamProcessor
Parameters:
is - stream containing individuals to be evaluated
Returns:
stream with evaluated individuals
Throws:
ScoreEvaluationException - thrown in case the evaluation fails

eaLib API Docs
Last Modified : January 7 2002

Copyright © 2000-2001 Technical University of Ilmenau, Department ESS