com.tensegrity.graph.model
Class GraphGeneration.TreeRandomizer

java.lang.Object
  extended bycom.tensegrity.graph.model.GraphGeneration.TreeRandomizer
Enclosing class:
GraphGeneration

public abstract static class GraphGeneration.TreeRandomizer
extends java.lang.Object

Helper class for randomization. Use the internal random generator field called random.

Author:
S. Rutz

Field Summary
protected  java.util.Random random
           
 
Constructor Summary
GraphGeneration.TreeRandomizer()
           
 
Method Summary
abstract  boolean predicate(int depth)
          Return true from this method to pass the randomisation step, return false to indicate a stop in the tree generation recursion.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

random

protected java.util.Random random
Constructor Detail

GraphGeneration.TreeRandomizer

public GraphGeneration.TreeRandomizer()
Method Detail

predicate

public abstract boolean predicate(int depth)
Return true from this method to pass the randomisation step, return false to indicate a stop in the tree generation recursion.

Parameters:
depth - current treedepth


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.