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 Gene implementations, it is recommended to also implement it
as value objects.| Modifier and Type | Method and Description |
|---|---|
A |
getAllele()
Return the allele of this gene.
|
G |
newInstance()
Return a new, random gene with the same type and with the same constraints
than this gene.
|
G |
newInstance(A value)
Create a new gene from the given
value and the gene context. |
isValidG newInstance()
gene.getClass() == gene.newInstance().getClass(). Implementations
of this method has to use the Random object which can
be fetched from the RandomRegistry.G newInstance(A value)
value and the gene context.value - the value of the new gene.© 2007-2017 Franz Wilhelmstötter (2017-04-28 16:50)