org.dbe.eve.ga.impl
Class SimpleBreeder

java.lang.Object
  extended by org.dbe.eve.ga.impl.SimpleBreeder

public class SimpleBreeder
extends java.lang.Object

Author:
Claudius SimpleBreeder - this Simplebreeder breeds a population The individuals of the population habe to be evaluated. How does the breeding work here? - Lets take 10

Field Summary
(package private)  float CROSSOVER_RATIO
           
(package private)  float MUTATION_PROP
           
(package private)  int TOURNAMENT_SELECTION_SIZE
           
 
Constructor Summary
SimpleBreeder()
           
SimpleBreeder(ServicePool pool)
           
 
Method Summary
 SimplePopulation breed()
           
 SimplePopulation breed(SimplePopulation population)
           
 SimplePopulation getPopulation()
           
 void setPopulation(SimplePopulation population)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TOURNAMENT_SELECTION_SIZE

final int TOURNAMENT_SELECTION_SIZE
See Also:
Constant Field Values

CROSSOVER_RATIO

final float CROSSOVER_RATIO
See Also:
Constant Field Values

MUTATION_PROP

final float MUTATION_PROP
See Also:
Constant Field Values
Constructor Detail

SimpleBreeder

public SimpleBreeder()

SimpleBreeder

public SimpleBreeder(ServicePool pool)
Method Detail

getPopulation

public SimplePopulation getPopulation()
Returns:
Returns the population.

setPopulation

public void setPopulation(SimplePopulation population)
Parameters:
population - The population to set.

breed

public SimplePopulation breed()

breed

public SimplePopulation breed(SimplePopulation population)
Parameters:
population - that is the breeding source
Returns:
SimplePopulation The New population, that contains the breeded offsprings