|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectart.ga.Genome
This class manage the Genomes composing each Chromosome. The genome represent a rule of the solution. Each genome is composed by many Gene.
| Constructor Summary | |
Genome(GaConfiguration configuration,
int family,
Chromosome chromosome)
Constructor of the class. |
|
| Method Summary | |
Gene[] |
getBody()
Get the genes composing the Genome. |
int |
getDomain()
It specify the domain (alphabet) used by the ga. |
Gene |
getGene(int position)
Get a specific Gene at a given position of the Genome. |
int |
getLength()
Get the number of Genes in the Genome |
double |
getMutationRate()
|
int |
getType()
Not implemented |
java.util.Set |
getUnivocalGenomeSet()
The unsorted list of genes used for operations on univocal genomes. |
void |
print(boolean printDetails)
Print Genome's information. |
void |
setBody(Gene[] aGene)
Define the Genes composing the Genome. |
void |
setRandomBody()
Initialize the Genome with random Genes. |
void |
setUnivocalBody()
Initialize the Genome with univocal Genes. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Genome(GaConfiguration configuration,
int family,
Chromosome chromosome)
configuration - Configuration file from which get parametersfamily - Family of the genomechromosome - Chromosome the Genome belongs to.| Method Detail |
public Gene[] getBody()
public int getDomain()
public Gene getGene(int position)
public int getLength()
public int getType()
public void print(boolean printDetails)
printDetails - Option if print some Gene's information.public void setBody(Gene[] aGene)
aGene - Body of the Genomepublic void setRandomBody()
public void setUnivocalBody()
public java.util.Set getUnivocalGenomeSet()
public double getMutationRate()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||