ch.bfh.algo.core
Interface GenericBinaryForest<E,P extends GenericPosition<E,P>>

All Superinterfaces:
BinaryForest<E>, Collection<E>, Container<E>, Forest<E>, Iterable<E>
All Known Implementing Classes:
DefaultBinaryForest, GenericBinaryForestGraph

public interface GenericBinaryForest<E,P extends GenericPosition<E,P>>
extends BinaryForest<E>


Method Summary
 P childLeft(Position<?> parent)
          Access the left child of a given node (the parent).
 P childRight(Position<?> parent)
          Access the right child of a given node (the parent).
 
Methods inherited from interface ch.bfh.algo.BinaryForest
linkLeft, linkRight
 
Methods inherited from interface ch.bfh.algo.Forest
children, cut, link, linkAfter, linkBefore, parent, roots
 
Methods inherited from interface ch.bfh.algo.Container
delete, element, encloses, insert, positionIterator, replace, swap
 
Methods inherited from interface java.util.Collection
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 

Method Detail

childLeft

P childLeft(Position<?> parent)
Description copied from interface: BinaryForest
Access the left child of a given node (the parent).

Specified by:
childLeft in interface BinaryForest<E>
Parameters:
parent - the node of which we want the left child
Returns:
the left child of the parent

childRight

P childRight(Position<?> parent)
Description copied from interface: BinaryForest
Access the right child of a given node (the parent).

Specified by:
childRight in interface BinaryForest<E>
Parameters:
parent - the node of which we want the right child
Returns:
the right child of the parent