use of dr.evomodel.tree.SpeciesTreeStatistic in project beast-mcmc by beast-dev.
the class SpeciesTreeStatisticParser method parseXMLObject.
public Object parseXMLObject(XMLObject xo) throws XMLParseException {
String name = xo.getAttribute(Statistic.NAME, xo.getId());
Tree speciesTree = (Tree) xo.getElementFirstChild("speciesTree");
Tree popTree = (Tree) xo.getElementFirstChild("populationTree");
return new SpeciesTreeStatistic(name, speciesTree, popTree);
}
Aggregations