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


Method Summary
 CandidateProgram<TYPE> onMutation(CandidateProgram<TYPE> parent, CandidateProgram<TYPE> child)
          Called after selection and mutation of an individual program.
 

Method Detail

onMutation

CandidateProgram<TYPE> onMutation(CandidateProgram<TYPE> parent,
                                  CandidateProgram<TYPE> child)
Called after selection and mutation of an individual program.

Parameters:
parent - the program that was selected to undergo mutation.
child - the resultant program from the parent undergoing mutation.
Returns:
a CandidateProgram that should be considered the result of a mutation operation, or null if the mutation should be reverted.