use of dr.evomodel.tree.MicrosatelliteSamplerTreeModel in project beast-mcmc by beast-dev.
the class MicrosatelliteSingleAncestralStateGibbsOperatorParser method parseXMLObject.
public Object parseXMLObject(XMLObject xo) throws XMLParseException {
final double weight = xo.getDoubleAttribute(MCMCOperator.WEIGHT);
final Parameter parameter = (Parameter) xo.getChild(Parameter.class);
final MicrosatelliteSamplerTreeModel msatSamplerTreeModel = (MicrosatelliteSamplerTreeModel) xo.getChild(MicrosatelliteSamplerTreeModel.class);
final MicrosatelliteModel msatModel = (MicrosatelliteModel) xo.getChild(MicrosatelliteModel.class);
final BranchRateModel branchRateModel = (BranchRateModel) xo.getChild(BranchRateModel.class);
return new MicrosatelliteSingleAncestralStateGibbsOperator(parameter, msatSamplerTreeModel, msatModel, branchRateModel, weight);
}
Aggregations