|
JGAP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jgap.BaseGeneticOperator
org.jgap.impl.MutationOperator
examples.monalisa.core.PolygonMutationOperator
public class PolygonMutationOperator
Translates a polygon of each chromosome in a random direction.
Field Summary |
---|
Fields inherited from class org.jgap.BaseGeneticOperator |
---|
m_monitor, m_monitorActive |
Constructor Summary | |
---|---|
PolygonMutationOperator(Configuration a_config,
int a_desiredMutationRate)
|
Method Summary | |
---|---|
void |
operate(Population a_population,
java.util.List a_candidateChromosomes)
The operate method will be invoked on each of the genetic operators referenced by the current Configuration object during the evolution phase. |
Methods inherited from class org.jgap.impl.MutationOperator |
---|
compareTo, equals, getMutationRate, getMutationRateCalc, setMutationRate, setMutationRateCalc |
Methods inherited from class org.jgap.BaseGeneticOperator |
---|
getConfiguration |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PolygonMutationOperator(Configuration a_config, int a_desiredMutationRate) throws InvalidConfigurationException
InvalidConfigurationException
Method Detail |
---|
public void operate(Population a_population, java.util.List a_candidateChromosomes)
GeneticOperator
operate
in interface GeneticOperator
operate
in class MutationOperator
a_population
- the population of chromosomes from the current
evolution prior to exposure to any genetic operators. Chromosomes in this
array should not be modified. Please notice, that the call in
Genotype.evolve() to the implementations of GeneticOperator overgoes this
due to performance issuesa_candidateChromosomes
- the pool of chromosomes that have been
mutated
|
JGAP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |