public enum TreeAlgorithm
{
- NEIGHBOUR_JOINING("NJ"), AVERAGE_DISTANCE("AV"), MAXIMUM_PARSIMONY("MP"),
- MAXIMUM_LIKELIHOOD("ML"), BAYESIAN("BY");
+ NEIGHBOUR_JOINING("NJ", "Neighbour Joining"),
+ AVERAGE_DISTANCE("AV", "Average Distance (UPGMA)"),
+ MAXIMUM_PARSIMONY("MP", ("Maximum Parsimony")),
+ MAXIMUM_LIKELIHOOD("ML", "Maximum Likelihood"),
+ BAYESIAN("BY", "Bayesian Inference");
private final String abbreviation;
- TreeAlgorithm(String abbreviatedAlgorithm)
+ private final String name;
+
+ TreeAlgorithm(String abbreviatedName, String fullName)
+ {
+ this.abbreviation = abbreviatedName;
+ this.name = fullName;
+ }
+
+ public String getAbbreviation()
{
- this.abbreviation = abbreviatedAlgorithm;
+ return abbreviation;
}
+
+ public String getName()
+ {
+ return name;
+ }
+
}
substitutionMatrix, params);
TreeBuilder calculatedTree = treeCalculator
.makeTree(af.getViewport());
- TreeModel tree = new TreeModel(calculatedTree);
- openTreePanel(tree, treeAlgo, substitutionMatrix);
ArchaeopteryxInit.createInstance(calculatedTree);
+ TreeModel tree = new TreeModel(calculatedTree);
+ openTreePanel(tree, treeAlgo, substitutionMatrix);
+
+
}