public interface TreeGene<A,G extends TreeGene<A,G>> extends Gene<A,G>, FlatTree<A,G>
FlatTree interface, which makes the required
storage layout explicit.| Modifier and Type | Method and Description |
|---|---|
default A |
getValue()
Return the value of the current
Tree node. |
G |
newInstance(A allele,
int childOffset,
int childCount)
Return a new tree gene with the given allele and the local tree
structure.
|
getAllele, newInstance, newInstanceisValidchildOffset, flattenedNodesbreadthFirstIterator, breadthFirstStream, childAfter, childAt, childAtPath, childAtPath, childBefore, childCount, childIterator, childPath, childStream, depth, depthFirstIterator, depthFirstStream, equals, firstChild, firstLeaf, getParent, getPath, getRoot, hashCode, identical, indexOf, isAncestor, isChild, isDescendant, isLeaf, isRelated, isRoot, isSibling, iterator, lastChild, lastLeaf, leafCount, level, nextLeaf, nextNode, nextSibling, path, pathElements, pathFromAncestorIterator, postorderIterator, postorderStream, preorderIterator, preorderStream, previousLeaf, previousNode, previousSibling, sharedAncestor, siblingCount, size, stream, toParenthesesString, toParenthesesString, toStringforEach, spliteratordefault A getValue()
TreeTree node. The value may be
null.G newInstance(A allele, int childOffset, int childCount)
allele - the actual gene allelechildOffset - the offset of the first node child within the
chromosomechildCount - the number of children of the new tree geneIllegalArgumentException - if the childCount is smaller
than zero© 2007-2019 Franz Wilhelmstötter (2019-11-18 20:30)