Search in sources :

Example 1 with CladeAwareSubtreePruneRegraft

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);
}
Also used : CladeNodeModel(dr.evomodel.bigfasttree.constrainedtree.CladeNodeModel) CladeAwareSubtreePruneRegraft(dr.evomodel.bigfasttree.constrainedtree.CladeAwareSubtreePruneRegraft)

Aggregations

CladeAwareSubtreePruneRegraft (dr.evomodel.bigfasttree.constrainedtree.CladeAwareSubtreePruneRegraft)1 CladeNodeModel (dr.evomodel.bigfasttree.constrainedtree.CladeNodeModel)1