Package pal.tree
Class NodeFactory
- java.lang.Object
-
- pal.tree.NodeFactory
-
public class NodeFactory extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description NodeFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NodecreateNode()create a nodestatic NodecreateNode(Identifier id)create a node, with a specified identifierstatic NodecreateNode(Identifier id, double height)create a node, with a specified identifierstatic NodecreateNode(Node node)constructor used to clone a node and all childrenstatic NodecreateNode(Node[] children)static NodecreateNode(Node[] children, double height)Create a node with the specified children, and the specified branch heightstatic NodecreateNodeBranchLength(double branchLength, Identifier id)create a node, with a specified identifierstatic NodecreateNodeBranchLength(double branchLength, Node[] children)Create a node with the specified children, and the specified branch length
-
-
-
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, double height)
Create a node with the specified children, and the specified branch height
-
-