use of dr.evomodel.branchmodel.ExternalInternalBranchModel in project beast-mcmc by beast-dev.
the class ExternalInternalBranchModelParser method parseXMLObject.
public Object parseXMLObject(XMLObject xo) throws XMLParseException {
Logger.getLogger("dr.evomodel").info("\nUsing external-internal branch model.");
TreeModel tree = (TreeModel) xo.getChild(TreeModel.class);
SubstitutionModel internalSubstitutionModel = (SubstitutionModel) xo.getChild(SubstitutionModel.class);
SubstitutionModel externalSubstitutionModel = (SubstitutionModel) xo.getElementFirstChild(EXTERNAL_BRANCHES);
return new ExternalInternalBranchModel(tree, externalSubstitutionModel, internalSubstitutionModel);
}
Aggregations