public class MetricFileReader extends Object
MetricFileWriter. The file can contain commented lines starting with '#' characters.
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
MetricFileWriter to resume processing at a valid state.
|Constructor and Description|
Constructs a metric file reader for reading metric files from the specified file.
Constructs a metric file reader for reading metric files from the underlying reader.
public MetricFileReader(File file) throws FileNotFoundException
file- the metric file
FileNotFoundException- if the file was not found
public MetricFileReader(Reader reader)
reader- the underlying reader
public Iterator<double> iterator()
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!