|
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.ResultFileReader
public class ResultFileReader
Reads result files created by ResultFileWriter. See the documentation
for ResultWriter for a description of the file format.
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.
ResultFileWriter| Constructor Summary | |
|---|---|
ResultFileReader(Problem problem,
File file)
Constructs a result file reader for reading the approximation sets from the specified result file. |
|
| Method Summary | |
|---|---|
void |
close()
Closes this stream and releases any system resources associated with it. |
Variable |
decode(Variable variable,
String string)
Decodes string representations of decision variables, returning the variable with the decoded value. |
boolean |
hasNext()
Returns true if the iteration has more elements. |
Iterator<ResultEntry> |
iterator()
Returns an iterator over a set of elements of type T. |
ResultEntry |
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 ResultFileReader(Problem problem,
File file)
throws IOException
problem - the problemfile - the file containing the results
IOException - if an I/O error occurred| Method Detail |
|---|
public void close()
throws IOException
java.io.Closeable
close in interface CloseableIOException - if an I/O error occurspublic ResultEntry next()
java.util.Iterator
next in interface Iterator<ResultEntry>public Iterator<ResultEntry> iterator()
java.lang.Iterable
iterator in interface Iterable<ResultEntry>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<ResultEntry>true if the iteration has more elementspublic 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<ResultEntry>
public Variable decode(Variable variable,
String string)
variable - the decision variablestring - the string representation of the decision variable
ResultFileWriter.encode(Variable)
|
MOEA Framework 2.5 API Specification |
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||