-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make 'Mutator' class easier to extend #121
Comments
jenetics
added a commit
that referenced
this issue
Oct 16, 2017
jenetics
added a commit
that referenced
this issue
Oct 16, 2017
jenetics
added a commit
that referenced
this issue
Oct 16, 2017
jenetics
added a commit
that referenced
this issue
Oct 16, 2017
jenetics
added a commit
that referenced
this issue
Oct 16, 2017
jenetics
added a commit
that referenced
this issue
Oct 16, 2017
jenetics
added a commit
that referenced
this issue
Oct 16, 2017
The protected MutatorResult<Phenotype<G, C>> mutate(
final Phenotype<G, C> phenotype,
final long generation,
final double p,
final Random random
) protected MutatorResult<Genotype<G>> mutate(
final Genotype<G> genotype,
final double p,
final Random random
) protected MutatorResult<Chromosome<G>> mutate(
final Chromosome<G> chromosome,
final double p,
final Random random
) protected G mutate(final G gene, final Random random) |
Merged into r4.0.0 branch. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently, the
Mutator
class allows you to override onprotected
method for implementing own mutators:This method allows to change the genes of one chromosome, where the chromosome can't be chosen by the implementor. The second drawback is, that it is not possible to change the length of the
Chromosome
andGenotype
.To reach the desired flexibility, the signature of the existing method is changed and an additional is added:
This is an incompatible change.
The text was updated successfully, but these errors were encountered: