|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface AdjustableTree
This interface matches some of the basic tree changing methods of MesquiteTree. It was created (Aug. 2000) to allow methods to use the interface, in case tree structures from other programs needed to be used. Currently, though, AdjustableTree is not much used directly in Mesquite.
| Field Summary |
|---|
| Fields inherited from interface mesquite.lib.Tree |
|---|
BY_NAMES, BY_NUMBERS, BY_TABLE |
| Method Summary | |
|---|---|
boolean |
collapseAllBranches(int node,
boolean below,
boolean notify)
Collapses all internal branches within clade above node, to yield bush. |
boolean |
collapseBranch(int node,
boolean notify)
Collapses branch to yield polytomy. |
boolean |
deleteClade(int node,
boolean notify)
Excise node and clade above it from tree, zeroing information at each node in clade. |
int |
graftClade(int fromN,
int toN,
boolean notify)
Attach node fromN (and any clade to attached to it) along node toN. |
boolean |
graftTaxon(int taxon,
int toN,
boolean notify)
Attach terminal taxon to tree along given branch. |
int |
insertNode(int node,
boolean notify)
Inserts a new node on the branch represented by "node", and returns the number of the inserted node |
boolean |
interchangeBranches(int node,
int otherNode,
boolean notify)
Interchanges two branches of tree. |
boolean |
moveBranch(int branchFrom,
int branchTo,
boolean notify)
Move branch so as to excise branchFrom from its current position, and attach it to branch beneath node branchTo. |
boolean |
randomlyRotateDescendants(int node,
java.util.Random rng,
boolean notify)
Randomly rotate branches of tree. |
boolean |
reroot(int atNode,
int cladeRoot,
boolean notify)
reroot the clade below node atNode. |
void |
setAllBranchLengths(double length,
boolean notify)
Sets the branch length of node. |
void |
setBranchLength(int node,
double length,
boolean notify)
Sets the branch length of node. |
void |
setBranchLength(int node,
int length,
boolean notify)
Sets the branch length of node (stored as a double internally). |
void |
setName(java.lang.String name)
Sets the name of the tree. |
void |
setNodeLabel(java.lang.String s,
int node)
Sets the node label to the passed string (doesn't copy string; just uses reference) |
void |
setParentOfNode(int node,
int par,
boolean notify)
Sets par to be an additional parent of node. |
void |
setPolytomiesAssumption(int assumption,
boolean notify)
Sets whether polytomies are to be assumed soft; 0= hard; 1 = soft; 2 = use default. |
void |
setRooted(boolean rooted,
boolean notify)
Sets whether tree is rooted. |
void |
setSelected(int node,
boolean selected)
|
void |
setToDefaultBush(int numTaxa,
boolean notify)
Sets the tree to be a default bush. |
void |
setToDefaultLadder(int numTaxa,
boolean notify)
Sets the tree to be a default ladder. |
void |
setTreeVector(TreeVector treeVector)
Sets the tree vector to which the tree belongs. |
boolean |
snipClade(int node,
boolean notify)
Excise node and clade above it from tree but leave the clade intact, in case it is to be attached elsewhere. |
void |
snipReticulations(int node)
An indelicate quick way to delete all reticulations (extra parents) from a node. |
void |
splitTerminal(int taxonNum,
int newNumber,
boolean notify)
Branches a terminal node off taxon number taxonNum, and assigns it taxon newNumber |
int |
sproutDaughter(int node,
boolean notify)
Sprouts a new daughter from node and returns it. |
| Methods inherited from interface mesquite.lib.Listable |
|---|
getName |
| Method Detail |
|---|
void setName(java.lang.String name)
void setSelected(int node,
boolean selected)
void setTreeVector(TreeVector treeVector)
void setRooted(boolean rooted,
boolean notify)
void setPolytomiesAssumption(int assumption,
boolean notify)
void setParentOfNode(int node,
int par,
boolean notify)
void snipReticulations(int node)
void setAllBranchLengths(double length,
boolean notify)
void setBranchLength(int node,
int length,
boolean notify)
void setBranchLength(int node,
double length,
boolean notify)
void setToDefaultBush(int numTaxa,
boolean notify)
void setToDefaultLadder(int numTaxa,
boolean notify)
void setNodeLabel(java.lang.String s,
int node)
void splitTerminal(int taxonNum,
int newNumber,
boolean notify)
int sproutDaughter(int node,
boolean notify)
boolean interchangeBranches(int node,
int otherNode,
boolean notify)
boolean randomlyRotateDescendants(int node,
java.util.Random rng,
boolean notify)
boolean collapseBranch(int node,
boolean notify)
boolean collapseAllBranches(int node,
boolean below,
boolean notify)
boolean deleteClade(int node,
boolean notify)
boolean snipClade(int node,
boolean notify)
boolean graftTaxon(int taxon,
int toN,
boolean notify)
int graftClade(int fromN,
int toN,
boolean notify)
boolean moveBranch(int branchFrom,
int branchTo,
boolean notify)
int insertNode(int node,
boolean notify)
boolean reroot(int atNode,
int cladeRoot,
boolean notify)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||