Interface TreeChromosome<A,G extends TreeGene<A,G>>

All Superinterfaces:
BaseSeq<G>, Chromosome<G>, Factory<Chromosome<G>>, Iterable<G>, RandomAccess, Verifiable
All Known Implementing Classes:
AbstractTreeChromosome

public interface TreeChromosome<A,G extends TreeGene<A,G>> extends Chromosome<G>
Chromosome for tree shaped genes.
Since:
3.9
Version:
6.0
  • Method Details

    • root

      default G root()
      Return the root gene of this chromosome. Since the gene type is also a Tree, you are able to assign it to one.
      final Tree<A, ?> t1 = root();
      final Tree<?, ?> t2 = root();
      
      This method is also an alias for Chromosome.gene(), which returns the first gene of the chromosome.
      Returns:
      the root tree gene of this chromosome
      See Also: