use of dr.inference.loggers.LogFormatter in project beast-mcmc by beast-dev.
the class HiddenLinkageLoggerParser method parseXMLObject.
/**
* @return an object based on the XML element it was passed.
*/
public Object parseXMLObject(XMLObject xo) throws XMLParseException {
HiddenLinkageModel hlm = (HiddenLinkageModel) xo.getChild(HiddenLinkageModel.class);
// logEvery of zero only displays at the end
final int logEvery = xo.getAttribute(LOG_EVERY, 0);
final PrintWriter pw = getLogFile(xo, getParserName());
final LogFormatter formatter = new TabDelimitedFormatter(pw);
return new HiddenLinkageLogger(hlm, formatter, logEvery);
}
Aggregations