use of dr.oldevomodel.sitemodel.SampleStateModel in project beast-mcmc by beast-dev.
the class SampleStateModelParser 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(PROPORTIONS);
Parameter proportionParameter = (Parameter) cxo.getChild(Parameter.class);
Vector<Object> subModels = new Vector<Object>();
for (int i = 0; i < xo.getChildCount(); i++) {
if (xo.getChild(i) instanceof SubstitutionModel) {
subModels.addElement(xo.getChild(i));
}
}
return new SampleStateModel(muParam, proportionParameter, subModels);
}
Aggregations