A - the Allele type
of this gene.public interface Gene<A,G extends Gene<A,G>> extends Factory<G>, Serializable, 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-2014 Franz Wilhelmstötter (2014-12-28 10:45)