|
Evolvica Core API Version 0.6.2 Last Modified: June 29 2004 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.evolvica.core.AbstractIndividual
Abstract base class for individuals.
Field Summary | |
protected IFitness |
fitness
The fitness of this individual. |
protected IGenotype |
genotype
The genotype of this individual. |
protected IPhenotypeBuilder |
phenoBuilder
The phenotype builder that is used to create phenotypes for given genotypes. |
protected IPhenotype |
phenotype
The phenotype of this individual. |
protected IScore |
score
The associated score of this individual. |
Constructor Summary | |
AbstractIndividual()
|
Method Summary | |
IFitness |
getFitness()
Returns the assigned fitness. |
IGenotype |
getGenotype()
Returns the assigned genotype. |
IPhenotype |
getPhenotype()
Returns the associated phenotype. |
IScore |
getScore()
Returns the assigned score. |
void |
setFitness(IFitness fitness)
Sets the fitness. |
void |
setGenotype(IGenotype genotype)
Sets the genotype of this individual. |
void |
setScore(IScore score)
Sets the score. |
java.lang.String |
toString()
Returns a string representation of this individual. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected IPhenotypeBuilder phenoBuilder
protected IGenotype genotype
protected IPhenotype phenotype
protected IScore score
protected IFitness fitness
Constructor Detail |
public AbstractIndividual()
Method Detail |
public IGenotype getGenotype()
getGenotype
in interface IIndividual
public void setGenotype(IGenotype genotype)
setGenotype
in interface IIndividual
genotype
- the genotype to setpublic IPhenotype getPhenotype()
getPhenotype
in interface IIndividual
public IScore getScore()
getScore
in interface IIndividual
public void setScore(IScore score)
setScore
in interface IIndividual
score
- the score to setpublic IFitness getFitness()
getFitness
in interface IIndividual
public void setFitness(IFitness fitness)
setFitness
in interface IIndividual
fitness
- the fitness to setpublic java.lang.String toString()
|
Evolvica Core API Version 0.6.2 Last Modified: June 29 2004 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |