gpalta.ops
Class NodeBuilderFull

java.lang.Object
  extended by gpalta.ops.NodeBuilder
      extended by gpalta.ops.NodeBuilderFull

public class NodeBuilderFull
extends NodeBuilder

Implements the 'FULL' build method


Constructor Summary
NodeBuilderFull(NodeFactory nodeFactory)
           
 
Method Summary
 void build(NodeParent node, int maxDepth)
           
 void build(NodeParent node, int whichKid, int maxDepth)
          Implements the 'FULL' build method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeBuilderFull

public NodeBuilderFull(NodeFactory nodeFactory)
Method Detail

build

public void build(NodeParent node,
                  int maxDepth)
Specified by:
build in class NodeBuilder

build

public void build(NodeParent node,
                  int whichKid,
                  int maxDepth)
Implements the 'FULL' build method

Specified by:
build in class NodeBuilder
Parameters:
node - The Node to build (i.e. modify its kids)
whichKid - If -1, modify all kids. Else, modify only kid number wichKid
maxDepth - The number of levels this Node must have (relative to himself)