All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jdsl.core.algo.treetraversals.RandomTreeBuilder

java.lang.Object
   |
   +----jdsl.core.algo.treetraversals.RandomTreeBuilder

public class RandomTreeBuilder
extends Object

Variable Index

 o gen
 o tree

Constructor Index

 o RandomTreeBuilder()

Method Index

 o build(Position, int)
 o randomBinaryTree(int)
 o randomColor()
 o randomInteger(int, int)

Variables

 o gen
 protected Random gen
 o tree
 protected BinaryTree tree

Constructors

 o RandomTreeBuilder
 public RandomTreeBuilder()

Methods

 o randomBinaryTree
 public BinaryTree randomBinaryTree(int n)
 o build
 protected void build(Position p,
                      int n)
 o randomColor
 protected Color randomColor()
 o randomInteger
 protected int randomInteger(int min,
                             int max)

All Packages  Class Hierarchy  This Package  Previous  Next  Index