gpalta.ops
Class IndSelector

java.lang.Object
  extended by gpalta.ops.IndSelector
Direct Known Subclasses:
IndSelectorProportional, IndSelectorRoulette, IndSelectorSUS, IndSelectorTournament

public abstract class IndSelector
extends java.lang.Object

Abstract selector class


Constructor Summary
IndSelector()
           
 
Method Summary
abstract
<T extends Individual>
java.util.List<T>
select(java.util.List<T> population)
          Performs the selection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndSelector

public IndSelector()
Method Detail

select

public abstract <T extends Individual> java.util.List<T> select(java.util.List<T> population)
Performs the selection

Parameters:
population - A list of Trees from where to select the individuals
Returns:
A new list of Trees with the selected individuals. If a Tree is selected more than once, each instance of that Tree will be a totally independant individual (no other Trees will be modified when modifying that Tree)