use of dr.oldevomodel.sitemodel.SampleStateAndCategoryModel in project beast-mcmc by beast-dev.
the class SampleStateAndCategoryModelParser method parseXMLObject.
public Object parseXMLObject(XMLObject xo) throws XMLParseException {
XMLObject cxo = xo.getChild(MUTATION_RATE);
Parameter muParam = (Parameter) cxo.getChild(Parameter.class);
cxo = xo.getChild(CATEGORY_PARAMETER);
Parameter catParam = (Parameter) cxo.getChild(Parameter.class);
Vector subModels = new Vector();
for (int i = 0; i < xo.getChildCount(); i++) {
if (xo.getChild(i) instanceof SubstitutionModel) {
subModels.addElement(xo.getChild(i));
}
}
return new SampleStateAndCategoryModel(muParam, catParam, subModels);
}
Aggregations