|
MOEA Framework 2.5 API Specification |
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectorg.moeaframework.analysis.sensitivity.MetricFileReader
public class MetricFileReader
Reader for metric files produced by 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.
MetricFileWriter| Constructor Summary | |
|---|---|
MetricFileReader(File file)
Constructs a metric file reader for reading metric files from the specified file. |
|
MetricFileReader(Reader reader)
Constructs a metric file reader for reading metric files from the underlying reader. |
|
| Method Summary | |
|---|---|
void |
close()
Closes this stream and releases any system resources associated with it. |
boolean |
hasNext()
Returns true if the iteration has more elements. |
Iterator<double[]> |
iterator()
Returns an iterator over a set of elements of type T. |
double[] |
next()
Returns the next element in the iteration. |
void |
remove()
Removes from the underlying collection the last element returned by this iterator (optional operation). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MetricFileReader(File file)
throws FileNotFoundException
file - the metric file
FileNotFoundException - if the file was not foundpublic MetricFileReader(Reader reader)
reader - the underlying reader| Method Detail |
|---|
public Iterator<double[]> iterator()
java.lang.Iterable
iterator in interface Iterable<double[]>public boolean hasNext()
java.util.Iteratortrue if the iteration has more elements.
(In other words, returns true if Iterator.next() would
return an element rather than throwing an exception.)
hasNext in interface Iterator<double[]>true if the iteration has more elementspublic double[] next()
java.util.Iterator
next in interface Iterator<double[]>public void remove()
java.util.IteratorIterator.next(). The behavior of an iterator
is unspecified if the underlying collection is modified while the
iteration is in progress in any way other than by calling this
method.
remove in interface Iterator<double[]>
public void close()
throws IOException
java.io.Closeable
close in interface CloseableIOException - if an I/O error occurs
|
MOEA Framework 2.5 API Specification |
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||