|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Genome
A genome is the basic blueprint for creating an phenome (organism) in Encog. Some genomes also function as phenomes.
Method Summary | |
---|---|
void |
copy(Genome source)
Copy from the specified genome into this one. |
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 adjustedScore)
Set the adjusted score. |
void |
setBirthGeneration(int birthGeneration)
Set the birth genertion (or iteration). |
void |
setPopulation(Population population)
Set the population that this genome belongs to. |
void |
setScore(double score)
Set the score. |
void |
setSpecies(Species s)
Set the species for this genome. |
int |
size()
|
Method Detail |
---|
void copy(Genome source)
source
- The source genome.double getAdjustedScore()
int getBirthGeneration()
Population getPopulation()
double getScore()
void setAdjustedScore(double adjustedScore)
adjustedScore
- The adjusted score.void setBirthGeneration(int birthGeneration)
birthGeneration
- The birth generation.void setPopulation(Population population)
population
- The population that this genome belongs to.void setScore(double score)
score
- The new score.int size()
Species getSpecies()
void setSpecies(Species s)
s
- The species.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |