com.epochx.op.mutation
Interface Mutation<TYPE>

All Known Implementing Classes:
PointMutation, SubtreeMutation

public interface Mutation<TYPE>

This interface defines the structure which specific mutation operators can implement to provide different methods of mutating a CandidateProgram. Mutation instances are used by the core GPMutation class to perform a single mutation operation.

See Also:
GPMutation

Method Summary
 CandidateProgram<TYPE> mutate(CandidateProgram<TYPE> program)
          Implementations should perform some form of alteration to the genetic material of the given CandidateProgram, returning the resultant program.
 

Method Detail

mutate

CandidateProgram<TYPE> mutate(CandidateProgram<TYPE> program)
Implementations should perform some form of alteration to the genetic material of the given CandidateProgram, returning the resultant program.

Parameters:
program - The CandidateProgram selected to undergo this mutation operation.
Returns:
A CandidateProgram that was the result of altering the provided CandidateProgram.