org.jgap.impl
Class CloneReproductionOperator
java.lang.Object
org.jgap.ReproductionOperator
org.jgap.impl.CloneReproductionOperator
public class CloneReproductionOperator
- extends ReproductionOperator
Produces offspring be creating clones of parents.
- Author:
- Philip Tucker
|
Method Summary |
protected void |
reproduce(Configuration config,
java.util.List parents,
int numOffspring,
java.util.List offspring)
Adds new children of parents to offspring. |
static void |
reproduce(java.util.List parents,
int numOffspring,
java.util.List offspring)
Adds new children of parents to offspring. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CloneReproductionOperator
public CloneReproductionOperator()
reproduce
protected void reproduce(Configuration config,
java.util.List parents,
int numOffspring,
java.util.List offspring)
- Adds new children of
parents to offspring.
- Specified by:
reproduce in class ReproductionOperator
- Parameters:
config - parents - List contains Chromosome objectsnumOffspring - offspring - List contains ChromosomeMaterial objects- See Also:
ReproductionOperator.reproduce(Configuration, List, int, List)
reproduce
public static void reproduce(java.util.List parents,
int numOffspring,
java.util.List offspring)
- Adds new children of
parents to offspring.
- Parameters:
parents - List contains Chromosome objectsnumOffspring - offspring - List contains ChromosomeMaterial objects