use of dr.evomodel.alloppnet.speciation.AlloppNetworkPrior in project beast-mcmc by beast-dev.
the class AlloppNetworkPriorParser method parseXMLObject.
/*
<apspNetworkPrior id="apspnetwork.prior" units="substitutions">
<eventRate>
<parameter id="apspnetwork.prior.eventRate" value="0.1" lower="0.0" upper="Infinity"/>
</eventRate>
<apspNetwork>
<apspNetwork idref="apspnetwork"/>
</apspNetwork>
</apspNetworkPrior>
*/
@Override
public Object parseXMLObject(XMLObject xo) throws XMLParseException {
final XMLObject mxo = xo.getChild(MODEL);
final AlloppNetworkPriorModel anpm = (AlloppNetworkPriorModel) mxo.getChild(AlloppNetworkPriorModel.class);
final XMLObject asnmxo = xo.getChild(APSPNETWORK);
final AlloppSpeciesNetworkModel asnm = (AlloppSpeciesNetworkModel) asnmxo.getChild(AlloppSpeciesNetworkModel.class);
return new AlloppNetworkPrior(anpm, asnm);
}
Aggregations