org.jgap
Interface IUniversalRateCalculator

All Known Implementing Classes:
DefaultCrossoverRateCalculator, DefaultMutationRateCalculator

public interface IUniversalRateCalculator

Interface for a calculator that determines a dynamic rate.

Since:
2.0
Author:
Chris Knowles

Method Summary
 int calculateCurrentRate()
          Calculates the required dynamic rate.
 boolean toBePermutated()
          Calculates whether a mutation should be carried out.
 

Method Detail

calculateCurrentRate

public int calculateCurrentRate()
Calculates the required dynamic rate.

Returns:
the currently applying mutation rate.
Since:
2.0

toBePermutated

public boolean toBePermutated()
Calculates whether a mutation should be carried out.

Returns:
flag indicating whether mutation should be performed
Since:
2.0