JAGA Homepage

org.jaga.definitions
Interface FitnessEvaluationAlgorithm

All Known Implementing Classes:
Example1Fitness, Example2Fitness, LargerDecimals, MultiplexerFitness, ProteinLocationTrainer

public interface FitnessEvaluationAlgorithm

Basis for all aglowithms whichevaluate the fitness of an individual.

Project: JAGA - Java API for Genetic Algorithms.

Company: University College London and JAGA.Org (http://www.jaga.org).

Copyright: (c) 2004 by G. Paperin.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, ONLY if you include a note of the original author(s) in any redistributed/modified copy.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA or see http://www.gnu.org/licenses/gpl.html

Version:
JAGA public release 1.0 beta
Author:
Greg Paperin (greg@jaga.org)

Method Summary
 Fitness evaluateFitness(Individual individual, int age, Population population, GAParameterSet params)
          Evaluates the fitness of a spscified individual.
 java.lang.Class getApplicableClass()
          Returns the class of individuals handled by this selection algorithm.
 

Method Detail

getApplicableClass

java.lang.Class getApplicableClass()
Returns the class of individuals handled by this selection algorithm.

Returns:
The required type the individual passed to the method evaluateFitness.

evaluateFitness

Fitness evaluateFitness(Individual individual,
                        int age,
                        Population population,
                        GAParameterSet params)
                        throws java.lang.ClassCastException
Evaluates the fitness of a spscified individual.

Parameters:
individual - The Individual to be evaluated.
age - The generation of the individual and its population.
population - The population from which the individual was drawn.
params - The experiment-parameters
Returns:
The fitness of the specified individual
Throws:
java.lang.ClassCastException - If this algorithm cannot handle individuals of the type of individual, i.e. the actual class of individual is not the same of a subclass of the class returned by getApplicableClass().

JAGA Homepage

Go to JAGA Homepage