- All Superinterfaces:
BaseSeq<G>
,Chromosome<G>
,Factory<Chromosome<G>>
,Iterable<G>
,RandomAccess
,Verifiable
- All Known Implementing Classes:
AbstractTreeChromosome
Chromosome for tree shaped genes.
- Since:
- 3.9
- Version:
- 6.0
-
Method Summary
Methods inherited from interface io.jenetics.util.BaseSeq
forEach, get, isEmpty, iterator, length, listIterator, nonEmpty, spliterator, stream
Methods inherited from interface io.jenetics.Chromosome
as, gene, isValid, newInstance
Methods inherited from interface io.jenetics.util.Factory
instances, newInstance
-
Method Details
-
root
Return the root gene of this chromosome. Since the gene type is also aTree
, you are able to assign it to one.final Tree<A, ?> t1 = root(); final Tree<?, ?> t2 = root();
Chromosome.gene()
, which returns the first gene of the chromosome.- Returns:
- the root tree gene of this chromosome
- See Also:
-