|
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.MetricFileWriter
public class MetricFileWriter
Writes metric files. A metric file is the output of Evaluator and
contains on each line one or more metrics separated by whitespace from one
parameterization.
This writer will append the results to the file, if a previous file exists.
By reading the previous file with a MetricFileReader, this writer
will being appending after the last valid entry. Query the
getNumberOfEntries() method to determine how many valid entries are
contained in the file.
MetricFileReader| Field Summary | |
|---|---|
static int |
NUMBER_OF_METRICS
The number of metrics supported by MetricFileWriter. |
| Constructor Summary | |
|---|---|
MetricFileWriter(QualityIndicator qualityIndicator,
File file)
Constructs an output writer for writing metric files to the specified file. |
|
| Method Summary | |
|---|---|
void |
append(ResultEntry entry)
Evaluates the specified non-dominated population and outputs the resulting metrics to the file. |
void |
close()
Closes this stream and releases any system resources associated with it. |
int |
getNumberOfEntries()
Returns the number of entries in the file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int NUMBER_OF_METRICS
MetricFileWriter.
| Constructor Detail |
|---|
public MetricFileWriter(QualityIndicator qualityIndicator,
File file)
throws IOException
getNumberOfEntries()
can then be used to resume evaluation from the last recorded entry.
qualityIndicator - the quality indicator for producing the metricsfile - the file to which the metrics are written
IOException - if an I/O error occurred| Method Detail |
|---|
public int getNumberOfEntries()
OutputWriterOutputWriter.append(org.moeaframework.analysis.sensitivity.ResultEntry) method.
getNumberOfEntries in interface OutputWriterpublic void append(ResultEntry entry)
append in interface OutputWriterentry - the non-dominated population and optional attributespublic void close()
java.io.Closeable
close in interface Closeable
|
MOEA Framework 2.5 API Specification |
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||