JGAP

org.jgap
Interface IUniversalRateCalculator

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
BaseRateCalculator, DefaultCrossoverRateCalculator, DefaultMutationRateCalculator, DynamicMutationExample.CoinsMutationRateCalc

public interface IUniversalRateCalculator
extends java.io.Serializable

Interface for a calculator that determines a dynamic rate.

Since:
2.0

Field Summary
static java.lang.String CVS_REVISION
          String containing the CVS revision.
 
Method Summary
 int calculateCurrentRate()
          Calculates the required dynamic rate.
 boolean toBePermutated(IChromosome a_chrom, int a_geneIndex)
          Calculates whether a mutation should be carried out.
 

Field Detail

CVS_REVISION

static final java.lang.String CVS_REVISION
String containing the CVS revision. Read out via reflection!

See Also:
Constant Field Values
Method Detail

calculateCurrentRate

int calculateCurrentRate()
Calculates the required dynamic rate.

Returns:
the currently applying mutation rate.
Since:
2.0

toBePermutated

boolean toBePermutated(IChromosome a_chrom,
                       int a_geneIndex)
Calculates whether a mutation should be carried out.

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

JGAP