Class ResultFileReader

java.lang.Object
org.moeaframework.analysis.io.ResultFileReader
All Implemented Interfaces:
Closeable, AutoCloseable, Iterable<ResultEntry>, Iterator<ResultEntry>

public class ResultFileReader extends Object implements Closeable, Iterator<ResultEntry>, Iterable<ResultEntry>
Reads result files created by ResultFileWriter.

This reader is expected to gracefully recover from incomplete or improperly formatted files. Unless a serious I/O error occurred, this reader will attempt to load the file to the last valid entry. This requirement enables a ResultWriter to resume processing at a valid state.

See Also:
  • Constructor Details

    • ResultFileReader

      public ResultFileReader(Problem problem, File file) throws IOException
      Constructs a result file reader for reading the approximation sets from the specified result file.
      Parameters:
      problem - the problem
      file - the file containing the results
      Throws:
      IOException - if an I/O error occurred
  • Method Details