|
||||||||||
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 Genome
public int getBirthGeneration()
getBirthGeneration
in interface Genome
public Population getPopulation()
getPopulation
in interface Genome
public double getScore()
getScore
in interface Genome
public void setAdjustedScore(double theAdjustedScore)
setAdjustedScore
in interface Genome
theAdjustedScore
- The score.public void setBirthGeneration(int birthGeneration)
Genome
setBirthGeneration
in interface Genome
birthGeneration
- the birthGeneration to setpublic void setPopulation(Population thePopulation)
Genome
setPopulation
in interface Genome
thePopulation
- the population to setpublic void setScore(double theScore)
setScore
in interface Genome
theScore
- Set the score.public String toString()
toString
in class Object
public Species getSpecies()
getSpecies
in interface Genome
public void setSpecies(Species s)
Genome
setSpecies
in interface Genome
s
- the species to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |