eaLib API Docs
Last Modified : January 7 2002

mss.ea.ex.salesman
Class SalesmanCalc

java.lang.Object
  |
  +--mss.ea.core.GeneticOperator
        |
        +--mss.ea.eval.ScoreEvaluation
              |
              +--mss.ea.ex.salesman.SalesmanCalc
All Implemented Interfaces:
SingleStreamProcessor, StreamProcessor

public class SalesmanCalc
extends ScoreEvaluation


Field Summary
protected  SalesmanMatrix matrix
           
 
Fields inherited from class mss.ea.core.GeneticOperator
description, ID, name
 
Constructor Summary
SalesmanCalc(java.lang.String name)
           
 
Method Summary
 Score evaluate(Individual i)
          Abstract method for evaluating the score of an individual.
 
Methods inherited from class mss.ea.eval.ScoreEvaluation
process
 
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
 

Field Detail

matrix

protected SalesmanMatrix matrix
Constructor Detail

SalesmanCalc

public SalesmanCalc(java.lang.String name)
Method Detail

evaluate

public Score evaluate(Individual i)
               throws ScoreEvaluationException
Description copied from class: ScoreEvaluation
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.
Overrides:
evaluate in class ScoreEvaluation
Following copied from class: mss.ea.eval.ScoreEvaluation
Parameters:
i - individual for doing the evaluation for
Returns:
evaluated score
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