org.jgap
Interface IUniversalRateCalculator
-
- All Superinterfaces:
- java.io.Serializable
- All Known Implementing Classes:
- BaseRateCalculator, DefaultCrossoverRateCalculator, DefaultMutationRateCalculator
public interface IUniversalRateCalculator extends java.io.SerializableInterface for a calculator that determines a dynamic rate.- Since:
- 2.0
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringCVS_REVISIONString containing the CVS revision.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description intcalculateCurrentRate()Calculates the required dynamic rate.booleantoBePermutated(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
-
-
DMelt 3.0 © DataMelt by jWork.ORG