Package pal.tree
Class NodeFactory
java.lang.Object
pal.tree.NodeFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final Node
create a nodestatic final Node
createNode
(Identifier id) create a node, with a specified identifierstatic final Node
createNode
(Identifier id, double height) create a node, with a specified identifierstatic final Node
createNode
(Node node) constructor used to clone a node and all childrenstatic final Node
createNode
(Node[] children) static final Node
createNode
(Node[] children, double height) Create a node with the specified children, and the specified branch heightstatic final Node
createNodeBranchLength
(double branchLength, Identifier id) create a node, with a specified identifierstatic final Node
createNodeBranchLength
(double branchLength, Node[] children) Create a node with the specified children, and the specified branch length
-
Constructor Details
-
NodeFactory
public NodeFactory()
-
-
Method Details
-
createNode
create a node -
createNode
create a node, with a specified identifier -
createNode
create a node, with a specified identifier -
createNodeBranchLength
create a node, with a specified identifier -
createNode
constructor used to clone a node and all children -
createNode
-
createNode
Create a node with the specified children, and the specified branch height -
createNodeBranchLength
Create a node with the specified children, and the specified branch length
-