Evolvica Core API Version 0.6.2
Last Modified: June 29 2004

org.evolvica.core
Interface IIndividual

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
AbstractIndividual

public interface IIndividual
extends java.io.Serializable

Interface for an individual.

Since:
0.4.0
Version:
$Revision: 1.5 $ $Date: 2004/05/26 11:57:53 $
Author:
Andreas Rummler

Method Summary
 IFitness getFitness()
          Returns the fitness of this individual.
 IGenotype getGenotype()
          Gets the genotype that is assigned to this individual.
 IPhenotype getPhenotype()
          Returns the phenotype of this individual (if any).
 IScore getScore()
          Returns the score of this individual.
 void setFitness(IFitness fitness)
          Sets a new fitness for this individual.
 void setGenotype(IGenotype genotype)
          Sets a new genotype.
 void setScore(IScore score)
          Sets a new to to this individual.
 

Method Detail

getGenotype

public IGenotype getGenotype()
Gets the genotype that is assigned to this individual.

Returns:
genotype of this individual

setGenotype

public void setGenotype(IGenotype genotype)
Sets a new genotype.

Parameters:
genotype - new genotype

getPhenotype

public IPhenotype getPhenotype()
Returns the phenotype of this individual (if any).

Returns:
associated phenotype or null

getScore

public IScore getScore()
Returns the score of this individual. This method may return null if no score has been assigned yet.

Returns:
score of the individual

setScore

public void setScore(IScore score)
Sets a new to to this individual.

Parameters:
score - score to be set

getFitness

public IFitness getFitness()
Returns the fitness of this individual. This method may return null if no fitness has been assigned yet.

Returns:
fitness

setFitness

public void setFitness(IFitness fitness)
Sets a new fitness for this individual.

Parameters:
fitness - new fitness

Evolvica Core API Version 0.6.2
Last Modified: June 29 2004

Copyright © 2000-2004 Technical University of Ilmenau, Department Electronic Circuits and Systems