use of dr.evomodel.alloppnet.speciation.BirthDeathCollapseNClustersStatistic in project beast-mcmc by beast-dev.
the class BirthDeathCollapseNClustersStatisticParser method parseXMLObject.
@Override
public Object parseXMLObject(XMLObject xo) throws XMLParseException {
xo.getAttribute("name");
final XMLObject spptreexo = xo.getChild(SPECIES_TREE);
SpeciesTreeModel spptree = (SpeciesTreeModel) spptreexo.getChild(SpeciesTreeModel.class);
final XMLObject cmxo = xo.getChild(COLLAPSE_MODEL);
BirthDeathCollapseModel bdcm = (BirthDeathCollapseModel) cmxo.getChild(BirthDeathCollapseModel.class);
return new BirthDeathCollapseNClustersStatistic(spptree, bdcm);
}
Aggregations