com.epochx.life
Interface PoolSelectionListener<TYPE>

All Known Subinterfaces:
LifeCycleListener<TYPE>
All Known Implementing Classes:
CubicRegression, Even4Parity, Even5Parity, Even7Parity, GPAbstractModel, Majority5, Majority9, Multiplexer11Bit, Multiplexer20Bit, Multiplexer37Bit, Multiplexer6Bit, QuarticRegression, SantaFeTrail

public interface PoolSelectionListener<TYPE>


Method Summary
 java.util.List<CandidateProgram<TYPE>> onPoolSelection(java.util.List<CandidateProgram<TYPE>> pool)
          Called after selection of the breeding pool.
 

Method Detail

onPoolSelection

java.util.List<CandidateProgram<TYPE>> onPoolSelection(java.util.List<CandidateProgram<TYPE>> pool)
Called after selection of the breeding pool. If the size of the breeding pool is set in the model to <=0, then this method will still be called at the appropriate time, but with a list containing every program in the population. The population essentially becomes the breeding pool in this circumstance.

Parameters:
pool - the suggested breeding pool of programs.
Returns:
the breeding pool of CandidatePrograms that should actually be used, or null if breeding pool selection should be repeated.