com.epochx.life
Interface CrossoverListener<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 CrossoverListener<TYPE>


Method Summary
 CandidateProgram<TYPE>[] onCrossover(CandidateProgram<TYPE>[] parents, CandidateProgram<TYPE>[] children)
          Called after selection and crossover of 2 individuals.
 

Method Detail

onCrossover

CandidateProgram<TYPE>[] onCrossover(CandidateProgram<TYPE>[] parents,
                                     CandidateProgram<TYPE>[] children)
Called after selection and crossover of 2 individuals.

Parameters:
parents - the programs that were selected to undergo crossover.
children - the programs that were generated as a result of the crossover operation.
Returns:
an array of CandidatePrograms to be used as the children of the crossover operation, or null if the crossover should be reverted.