use of dr.inference.model.NegativeStatistic in project beast-mcmc by beast-dev.
the class NegativeStatisticParser method parseXMLObject.
public Object parseXMLObject(XMLObject xo) throws XMLParseException {
NegativeStatistic negativeStatistic = null;
Object child = xo.getChild(0);
if (child instanceof Statistic) {
negativeStatistic = new NegativeStatistic(NEGATE_STATISTIC, (Statistic) child);
} else {
throw new XMLParseException("Unknown element found in " + getParserName() + " element:" + child);
}
return negativeStatistic;
}
Aggregations