use of dr.evomodel.alloppnet.operators.AlloppHybPopSizesScale in project beast-mcmc by beast-dev.
the class AlloppHybPopSizesScaleParser method parseXMLObject.
@Override
public Object parseXMLObject(XMLObject xo) throws XMLParseException {
AlloppSpeciesBindings apsp = (AlloppSpeciesBindings) xo.getChild(AlloppSpeciesBindings.class);
AlloppSpeciesNetworkModel apspnet = (AlloppSpeciesNetworkModel) xo.getChild(AlloppSpeciesNetworkModel.class);
final double weight = xo.getDoubleAttribute(MCMCOperator.WEIGHT);
final double scalingfactor = xo.getDoubleAttribute(ScaleOperatorParser.SCALE_FACTOR);
return new AlloppHybPopSizesScale(apspnet, apsp, scalingfactor, weight);
}
Aggregations