Search in sources :

Example 1 with LogFormatter

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);
}
Also used : LogFormatter(dr.inference.loggers.LogFormatter) TabDelimitedFormatter(dr.inference.loggers.TabDelimitedFormatter) HiddenLinkageModel(dr.evomodel.tree.HiddenLinkageModel) HiddenLinkageLogger(dr.evomodel.tree.HiddenLinkageLogger) PrintWriter(java.io.PrintWriter)

Aggregations

HiddenLinkageLogger (dr.evomodel.tree.HiddenLinkageLogger)1 HiddenLinkageModel (dr.evomodel.tree.HiddenLinkageModel)1 LogFormatter (dr.inference.loggers.LogFormatter)1 TabDelimitedFormatter (dr.inference.loggers.TabDelimitedFormatter)1 PrintWriter (java.io.PrintWriter)1