A
- the Allele type
of this gene.public interface Gene<A,G extends Gene<A,G>> extends Factory<G>, Serializable, Verifiable
Modifier and Type | Method and Description |
---|---|
A |
getAllele()
Return the allele of this gene.
|
G |
newInstance()
Return a new, random gene of the same type than this gene.
|
G |
newInstance(A value)
Create a new gene from the given
value and the gene context. |
isValid
G newInstance()
gene.getClass() ==
gene.newInstance().getClass()
.G newInstance(A value)
value
and the gene context.value
- the value of the new gene.© 2007-2014 Franz Wilhelmstötter (2014-10-03 19:44)