Search in sources :

Example 1 with MulSpeciesTreePrior

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

the class MulSpeciesTreePriorParser method parseXMLObject.

@Override
public Object parseXMLObject(XMLObject xo) throws XMLParseException {
    final XMLObject mxo = xo.getChild(MODEL);
    final SpeciationModel sppm = (SpeciationModel) mxo.getChild(SpeciationModel.class);
    final XMLObject mulsptxo = xo.getChild(MUL_SPECIES_TREE);
    final MulSpeciesTreeModel mulspt = (MulSpeciesTreeModel) mulsptxo.getChild(MulSpeciesTreeModel.class);
    return new MulSpeciesTreePrior(sppm, mulspt);
}
Also used : MulSpeciesTreePrior(dr.evomodel.alloppnet.speciation.MulSpeciesTreePrior) XMLObject(dr.xml.XMLObject) MulSpeciesTreeModel(dr.evomodel.alloppnet.speciation.MulSpeciesTreeModel) SpeciationModel(dr.evomodel.speciation.SpeciationModel)

Aggregations

MulSpeciesTreeModel (dr.evomodel.alloppnet.speciation.MulSpeciesTreeModel)1 MulSpeciesTreePrior (dr.evomodel.alloppnet.speciation.MulSpeciesTreePrior)1 SpeciationModel (dr.evomodel.speciation.SpeciationModel)1 XMLObject (dr.xml.XMLObject)1