public class NodeFactory extends Object
Constructor and Description |
---|
NodeFactory() |
Modifier and Type | Method and Description |
---|---|
static Node |
createNode()
create a node
|
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 |
createNode(Taxon id)
create a node, with a specified identifier
|
static Node |
createNode(Taxon id,
double height)
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
|
static Node |
createNodeBranchLength(double branchLength,
Taxon id)
create a node, with a specified identifier
|
public static final Node createNode()
public static final Node createNode(Taxon id, double height)
public static final Node createNodeBranchLength(double branchLength, Taxon id)
public static final Node createNode(Node node)
public static final Node createNode(Node[] children, double height)
Copyright © 2018. All rights reserved.