|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectart.ga.Gene
This class manage the genes. Each gene contain a number in the domain defined by his alphabet.
| Constructor Summary | |
Gene(GaConfiguration configuration,
int family,
Genome genome)
Constructor of the class. |
|
| Method Summary | |
int |
getAllele()
Get the allele, the genetic information embedded in this Gene |
Genome |
getMyGenome()
Get the Genome this Gene is belonging to. |
void |
initializeRandom()
Initialize this Gene with a random allele valid in its domain. |
void |
initializeRandomForCs(double wildcardRate)
Initialize this Gene with a random allele valid in its domain. |
void |
mutateRandom()
This method generate a mutation to the gene. |
void |
mutateUnivocal()
This method generate a mutation to the gene when univocal genomes are used. |
void |
print()
Print Gene information. |
boolean |
setAllele(int value)
This method set the allele of the gene to a given integer. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Gene(GaConfiguration configuration,
int family,
Genome genome)
configuration - Configuration from which get parametersfamily - Family of the Genegenome - Genome that this Gene is belonging to| Method Detail |
public int getAllele()
public Genome getMyGenome()
public void initializeRandom()
public void initializeRandomForCs(double wildcardRate)
public void mutateRandom()
Events.mutate(Population)public void mutateUnivocal()
Events.mutate(Population)public void print()
public boolean setAllele(int value)
value -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||