Search in sources :

Example 1 with AlloppNetworkPrior

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);
}
Also used : AlloppNetworkPriorModel(dr.evomodel.alloppnet.speciation.AlloppNetworkPriorModel) AlloppSpeciesNetworkModel(dr.evomodel.alloppnet.speciation.AlloppSpeciesNetworkModel) AlloppNetworkPrior(dr.evomodel.alloppnet.speciation.AlloppNetworkPrior)

Aggregations

AlloppNetworkPrior (dr.evomodel.alloppnet.speciation.AlloppNetworkPrior)1 AlloppNetworkPriorModel (dr.evomodel.alloppnet.speciation.AlloppNetworkPriorModel)1 AlloppSpeciesNetworkModel (dr.evomodel.alloppnet.speciation.AlloppSpeciesNetworkModel)1