MOEA Framework 2.12
API Specification

org.moeaframework.analysis.sensitivity
Interface OutputWriter

All Superinterfaces:
Closeable
All Known Implementing Classes:
MetricFileWriter, ResultFileWriter

public interface OutputWriter
extends Closeable

Writes output files. The allow the Evaluator to automatically resume itself at the last known good result, output writers are expected to cleanup the file and return the number of valid entries through getNumberOfEntries().


Method Summary
 void append(ResultEntry entry)
          Appends the specified non-dominated population and optional attributes to the file.
 int getNumberOfEntries()
          Returns the number of entries in the file.
 
Methods inherited from interface java.io.Closeable
close
 

Method Detail

getNumberOfEntries

int getNumberOfEntries()
Returns the number of entries in the file. If the file already existed, this returns the number of complete entries in the output file. This value is incremented on every invocation to the append(org.moeaframework.analysis.sensitivity.ResultEntry) method.

Returns:
the number of entries in the file

append

void append(ResultEntry entry)
            throws IOException
Appends the specified non-dominated population and optional attributes to the file.

Parameters:
entry - the non-dominated population and optional attributes
Throws:
IOException - if an I/O error occurred

MOEA Framework 2.12
API Specification

Copyright 2009-2016 MOEA Framework. All rights reserved.
Licensed under the GNU Lesser General Public License.
Return to the MOEA Framework homepage. Visit us on Github!