simbad.picoevo.ext.evolution
Class SelectionOperator_NEAT

java.lang.Object
  extended by simbad.picoevo.core.evolution.Operator
      extended by simbad.picoevo.core.evolution.SelectionOperator
          extended by simbad.picoevo.ext.evolution.SelectionOperator_NEAT

public class SelectionOperator_NEAT
extends SelectionOperator


Field Summary
(package private)  java.util.Random rand
           
 
Fields inherited from class simbad.picoevo.core.evolution.Operator
_name
 
Constructor Summary
SelectionOperator_NEAT()
           
SelectionOperator_NEAT(java.lang.String __name)
           
 
Method Summary
 void performSelection(PopulationObject populationList)
          perform a selection and renew the Population.
private  int randInt(int x, int y)
           
private  Population_NEATPopulation resetAndKill(Population_NEATPopulation pop)
           
private  Population_NEATPopulation sortAndRecord(Population_NEATPopulation pop)
           
private  Individual_NEATIndividual tournamentSelection(Population_NEATPopulation population, int numComparisons)
           
 
Methods inherited from class simbad.picoevo.core.evolution.Operator
getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rand

java.util.Random rand
Constructor Detail

SelectionOperator_NEAT

public SelectionOperator_NEAT()

SelectionOperator_NEAT

public SelectionOperator_NEAT(java.lang.String __name)
Method Detail

performSelection

public void performSelection(PopulationObject populationList)
Description copied from class: SelectionOperator
perform a selection and renew the Population. Should be implemented in inherited classes.

Overrides:
performSelection in class SelectionOperator

randInt

private int randInt(int x,
                    int y)

tournamentSelection

private Individual_NEATIndividual tournamentSelection(Population_NEATPopulation population,
                                                      int numComparisons)

sortAndRecord

private Population_NEATPopulation sortAndRecord(Population_NEATPopulation pop)

resetAndKill

private Population_NEATPopulation resetAndKill(Population_NEATPopulation pop)