com.anji.integration
Class SimpleSelector

java.lang.Object
  extended by org.jgap.NaturalSelector
      extended by com.anji.integration.SimpleSelector

public class SimpleSelector
extends NaturalSelector

Selects chromosomes based directly on fitness value, as opposed to a statistical probability.

Author:
Philip Tucker

Constructor Summary
SimpleSelector()
           
 
Method Summary
protected  void add(Configuration a_activeConfigurator, Chromosome a_chromosomeToAdd)
          Add a_chromosomeToAdd to set of chromosomes to be evaluated.
protected  void emptyImpl()
          empty chromosome list
protected  java.util.List select(Configuration a_activeConfiguration, int a_howManyToSelect)
          Returns the a_howManyToSelect chromosomes with highest speciated fitness.
 
Methods inherited from class org.jgap.NaturalSelector
add, empty, getElitismMinSpecieSize, getSurvivalRate, select, setElitism, setElitismMinSpecieSize, setSurvivalRate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleSelector

public SimpleSelector()
Method Detail

add

protected void add(Configuration a_activeConfigurator,
                   Chromosome a_chromosomeToAdd)
Add a_chromosomeToAdd to set of chromosomes to be evaluated.

Specified by:
add in class NaturalSelector
Parameters:
a_activeConfigurator -
a_chromosomeToAdd -

select

protected java.util.List select(Configuration a_activeConfiguration,
                                int a_howManyToSelect)
Returns the a_howManyToSelect chromosomes with highest speciated fitness.

Specified by:
select in class NaturalSelector
Parameters:
a_activeConfiguration -
a_howManyToSelect -
Returns:
List contains Chromosome objects

emptyImpl

protected void emptyImpl()
empty chromosome list

Specified by:
emptyImpl in class NaturalSelector
See Also:
NaturalSelector.empty()