A- the Allele type of this gene.
public interface Gene<A,G extends Gene<A,G>> extends Factory<G>, Verifiable
of. When extending the library with own
Geneimplementations, it is recommended to also implement it as value objects.
Phenotype) are not changed after they have been created. Therefore, all implementations of the
Geneinterface must also be immutable.
|Modifier and Type||Method and Description|
Return the allele of this gene.
Return a new, random gene with the same type and with the same constraints than this gene.
Create a new gene from the given
gene.getClass() == gene.newInstance().getClass(). Implementations of this method has to use the
Randomobject which can be fetched from the
© 2007-2019 Franz Wilhelmstötter (2019-02-19 21:44)