Search in sources :

Example 1 with BranchingModel

use of dr.evomodel.speciation.BranchingModel in project beast-mcmc by beast-dev.

the class BranchingLikelihoodParser method parseXMLObject.

public Object parseXMLObject(XMLObject xo) {
    XMLObject cxo = xo.getChild(MODEL);
    BranchingModel branchingModel = (BranchingModel) cxo.getChild(BranchingModel.class);
    cxo = xo.getChild(TREE);
    TreeModel treeModel = (TreeModel) cxo.getChild(TreeModel.class);
    return new BranchingLikelihood(treeModel, branchingModel);
}
Also used : TreeModel(dr.evomodel.tree.TreeModel) BranchingModel(dr.evomodel.speciation.BranchingModel) XMLObject(dr.xml.XMLObject) BranchingLikelihood(dr.evomodel.speciation.BranchingLikelihood)

Aggregations

BranchingLikelihood (dr.evomodel.speciation.BranchingLikelihood)1 BranchingModel (dr.evomodel.speciation.BranchingModel)1 TreeModel (dr.evomodel.tree.TreeModel)1 XMLObject (dr.xml.XMLObject)1