pal.tree
Class NodeFactory

java.lang.Object
  extended by pal.tree.NodeFactory

public class NodeFactory
extends java.lang.Object


Constructor Summary
NodeFactory()
           
 
Method Summary
static Node createNode()
          create a node
static Node createNode(Identifier id)
          create a node, with a specified identifier
static Node createNode(Identifier id, double height)
          create a node, with a specified identifier
static Node createNode(Node node)
          constructor used to clone a node and all children
static Node createNode(Node[] children)
           
static Node createNode(Node[] children, double height)
          Create a node with the specified children, and the specified branch height
static Node createNodeBranchLength(double branchLength, Identifier id)
          create a node, with a specified identifier
static Node createNodeBranchLength(double branchLength, Node[] children)
          Create a node with the specified children, and the specified branch length
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeFactory

public NodeFactory()
Method Detail

createNode

public static final Node createNode()
create a node


createNode

public static final Node createNode(Identifier id)
create a node, with a specified identifier


createNode

public static final Node createNode(Identifier id,
                                    double height)
create a node, with a specified identifier


createNodeBranchLength

public static final Node createNodeBranchLength(double branchLength,
                                                Identifier id)
create a node, with a specified identifier


createNode

public static final Node createNode(Node node)
constructor used to clone a node and all children


createNode

public static final Node createNode(Node[] children)

createNode

public static final Node createNode(Node[] children,
                                    double height)
Create a node with the specified children, and the specified branch height


createNodeBranchLength

public static final Node createNodeBranchLength(double branchLength,
                                                Node[] children)
Create a node with the specified children, and the specified branch length