|
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.collector.Accumulator
public class Accumulator
An accumulator stores collected data from a single run of an algorithm.
| Constructor Summary | |
|---|---|
Accumulator()
Constructs an empty accumulator. |
|
| Method Summary | |
|---|---|
void |
add(String key,
Serializable value)
Adds the data to the sequence of observations with the specified key. |
Serializable |
get(String key,
int index)
Returns the value at the specified index for the specified key. |
Set<String> |
keySet()
Returns the set of keys stored in this accumulator. |
int |
size(String key)
Returns the number of values stored for the specified key. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Accumulator()
| Method Detail |
|---|
public void add(String key,
Serializable value)
key - the key of this observationvalue - the value of this observationpublic Set<String> keySet()
public Serializable get(String key,
int index)
key - the keyindex - the index
IllegalArgumentException - if the key was not contained in this
accumulator
IndexOutOfBoundsException - if the index is out of range (index < 0 || index >= size(key))public int size(String key)
key - the key
IllegalArgumentException - if the key was not contained in this
accumulator
|
MOEA Framework 2.5 API Specification |
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||