use of dr.evomodel.coalescent.demographicmodel.ExponentialSawtoothModel in project beast-mcmc by beast-dev.
the class ExponentialSawtoothModelParser method parseXMLObject.
public Object parseXMLObject(XMLObject xo) throws XMLParseException {
Units.Type units = XMLUnits.Utils.getUnitsAttr(xo);
XMLObject cxo = xo.getChild(POPULATION_SIZE);
Parameter N0Param = (Parameter) cxo.getChild(Parameter.class);
cxo = xo.getChild(GROWTH_RATE);
Parameter rParam = (Parameter) cxo.getChild(Parameter.class);
cxo = xo.getChild(WAVELENGTH);
Parameter wavelengthParam = (Parameter) cxo.getChild(Parameter.class);
cxo = xo.getChild(OFFSET);
Parameter tParam = (Parameter) cxo.getChild(Parameter.class);
return new ExponentialSawtoothModel(N0Param, rParam, wavelengthParam, tParam, units);
}
Aggregations