use of dr.evomodel.bigfasttree.constrainedtree.CladeAwareSubtreePruneRegraft in project beast-mcmc by beast-dev.
the class CladeAwareSubtreePruneRegraftParser method parseXMLObject.
@Override
public Object parseXMLObject(XMLObject xo) throws XMLParseException {
CladeNodeModel cladeModel = (CladeNodeModel) xo.getChild(CladeNodeModel.class);
final double weight = xo.getDoubleAttribute(MCMCOperator.WEIGHT);
return new CladeAwareSubtreePruneRegraft(cladeModel, weight);
}
Aggregations