|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.encog.ml.ea.genome.BasicGenome
public abstract class BasicGenome
A basic abstract genome. Provides base functionality.
| Constructor Summary | |
|---|---|
BasicGenome()
|
|
| Method Summary | |
|---|---|
double |
getAdjustedScore()
Get the adjusted score, this considers old-age penalties and youth bonuses. |
int |
getBirthGeneration()
|
Population |
getPopulation()
|
double |
getScore()
|
Species |
getSpecies()
|
void |
setAdjustedScore(double theAdjustedScore)
Set the adjusted score. |
void |
setBirthGeneration(int birthGeneration)
Set the birth genertion (or iteration). |
void |
setPopulation(Population thePopulation)
Set the population that this genome belongs to. |
void |
setScore(double theScore)
Set the score. |
void |
setSpecies(Species s)
Set the species for this genome. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.encog.ml.ea.genome.Genome |
|---|
copy, size |
| Constructor Detail |
|---|
public BasicGenome()
| Method Detail |
|---|
public double getAdjustedScore()
Genome
getAdjustedScore in interface Genomepublic int getBirthGeneration()
getBirthGeneration in interface Genomepublic Population getPopulation()
getPopulation in interface Genomepublic double getScore()
getScore in interface Genomepublic void setAdjustedScore(double theAdjustedScore)
setAdjustedScore in interface GenometheAdjustedScore - The score.public void setBirthGeneration(int birthGeneration)
Genome
setBirthGeneration in interface GenomebirthGeneration - the birthGeneration to setpublic void setPopulation(Population thePopulation)
Genome
setPopulation in interface GenomethePopulation - the population to setpublic void setScore(double theScore)
setScore in interface GenometheScore - Set the score.public String toString()
toString in class Objectpublic Species getSpecies()
getSpecies in interface Genomepublic void setSpecies(Species s)
Genome
setSpecies in interface Genomes - the species to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||