JAGA Homepage

org.jaga.definitions
Interface Individual

All Known Subinterfaces:
BinaryEncodedIndividual
All Known Implementing Classes:
BooleanFormulaTree, NDecimalsIndividual, NNumbersGreycodedIndivudual, ProteinLocationClassifier

public interface Individual

Basis for all classes representing an individual, i.e. a genotype.

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 getFitness()
          Gets the individual's fitness.
 void setFitness(Fitness fitness)
          Sets the fitness.
 java.lang.String toString()
          Produces a string representation of this individuial.
 

Method Detail

getFitness

Fitness getFitness()
Gets the individual's fitness.

Returns:
The fitness object assosiated with this individual or null if no fitness is associated.

setFitness

void setFitness(Fitness fitness)
Sets the fitness.

Parameters:
fitness - The new fitness for this individual.

toString

java.lang.String toString()
Produces a string representation of this individuial.

Overrides:
toString in class java.lang.Object
Returns:
A string (mostly, human readable) representing this individual.

JAGA Homepage

Go to JAGA Homepage