|
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.SampleReader
public class SampleReader
Reads the parameter samples from the output of SampleGenerator. The
column ordering in the sample file matches the ordering of parameters in a
ParameterFile. The read Properties map the parameter name
to the parameter value.
SampleGenerator,
ParameterFile| Constructor Summary | |
|---|---|
SampleReader(File file,
ParameterFile parameterFile)
Constructs a sample reader for reading parameter samples from the specified file. |
|
SampleReader(Reader reader,
ParameterFile parameterFile)
Constructs a sample reader for reading parameter samples 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<Properties> |
iterator()
Returns an iterator over a set of elements of type T. |
Properties |
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 SampleReader(File file,
ParameterFile parameterFile)
throws IOException
file - the parameter sample fileparameterFile - the parameter definition file
IOException - if an I/O error occurred
public SampleReader(Reader reader,
ParameterFile parameterFile)
reader - the underlying readerparameterFile - the parameter definition file| Method Detail |
|---|
public Iterator<Properties> iterator()
java.lang.Iterable
iterator in interface Iterable<Properties>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<Properties>true if the iteration has more elementspublic Properties next()
java.util.Iterator
next in interface Iterator<Properties>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<Properties>
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 | |||||