jaga.evolve
Class Reproducer

java.lang.Object
  |
  +--jaga.evolve.Reproducer
All Implemented Interfaces:
GeneticOperator, java.io.Serializable

public class Reproducer
extends java.lang.Object
implements GeneticOperator

Genetic Operator that simply clones individuals from one population to the other.

See Also:
Serialized Form

Constructor Summary
Reproducer()
          Creates new Reproducer
 
Method Summary
 void operate(Selector selector, Population oldPopulation, Population newPopulation, int howMany)
          method that adds genotypes to the new population by extracting some from the old one and manipulating them in some way.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Reproducer

public Reproducer()
Creates new Reproducer
Method Detail

operate

public void operate(Selector selector,
                    Population oldPopulation,
                    Population newPopulation,
                    int howMany)
method that adds genotypes to the new population by extracting some from the old one and manipulating them in some way.
Specified by:
operate in interface GeneticOperator
Parameters:
oldPopulation - in parameter having all the original genotypes
newPopulation - in/out parameter where the next generation of genotypes is being built
howMany - how many new genotypes to add to the new population