|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.encog.ml.genetic.genome.BasicGenome
public abstract class BasicGenome
A basic abstract genome. Provides base functionality.
| Constructor Summary | |
|---|---|
BasicGenome()
|
|
| Method Summary | |
|---|---|
int |
calculateGeneCount()
|
int |
compareTo(Genome other)
|
boolean |
equals(Genome other)
|
double |
getAdjustedScore()
Get the adjusted score, this considers old-age penalties and youth bonuses. |
double |
getAmountToSpawn()
|
List<Chromosome> |
getChromosomes()
|
GeneticAlgorithm |
getGeneticAlgorithm()
|
long |
getGenomeID()
|
Object |
getOrganism()
|
Population |
getPopulation()
|
double |
getScore()
|
void |
mate(Genome father,
Genome child1,
Genome child2)
Mate two genomes. |
void |
setAdjustedScore(double theAdjustedScore)
Set the adjusted score. |
void |
setAmountToSpawn(double theAmountToSpawn)
Set the amount to spawn. |
void |
setGeneticAlgorithm(GeneticAlgorithm ga)
Set the genetic algorithm to use. |
void |
setGenomeID(long theGenomeID)
Set the genome id. |
void |
setOrganism(Object theOrganism)
Set the organism. |
void |
setPopulation(Population thePopulation)
Set the population that this genome belongs to. |
void |
setScore(double theScore)
Set the score. |
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.genetic.genome.Genome |
|---|
decode, encode |
| Constructor Detail |
|---|
public BasicGenome()
| Method Detail |
|---|
public final int calculateGeneCount()
calculateGeneCount in interface Genomepublic boolean equals(Genome other)
public final int compareTo(Genome other)
compareTo in interface Comparable<Genome>public final double getAdjustedScore()
Genome
getAdjustedScore in interface Genomepublic final double getAmountToSpawn()
getAmountToSpawn in interface Genomepublic final List<Chromosome> getChromosomes()
getChromosomes in interface Genomepublic final GeneticAlgorithm getGeneticAlgorithm()
getGeneticAlgorithm in interface Genomepublic final long getGenomeID()
getGenomeID in interface Genomepublic final Object getOrganism()
getOrganism in interface Genomepublic final Population getPopulation()
getPopulation in interface Genomepublic final double getScore()
getScore in interface Genome
public final void mate(Genome father,
Genome child1,
Genome child2)
mate in interface Genomefather - The father.child1 - The first child.child2 - The second child.public final void setAdjustedScore(double theAdjustedScore)
setAdjustedScore in interface GenometheAdjustedScore - The score.public final void setAmountToSpawn(double theAmountToSpawn)
setAmountToSpawn in interface GenometheAmountToSpawn - The amount to spawn.public final void setGeneticAlgorithm(GeneticAlgorithm ga)
setGeneticAlgorithm in interface Genomega - The genetic algorithm to use.public final void setGenomeID(long theGenomeID)
setGenomeID in interface GenometheGenomeID - the genome id.public final void setOrganism(Object theOrganism)
theOrganism - The organism.public final void setPopulation(Population thePopulation)
Genome
setPopulation in interface GenomethePopulation - the population to setpublic final void setScore(double theScore)
setScore in interface GenometheScore - Set the score.public final String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||