public interface ResultManager
Modifier and Type | Interface and Description |
---|---|
static class |
ResultManager.DummyManager
Does literally nothing.
|
static class |
ResultManager.PrintingManager
prints the results to System.err.
|
Modifier and Type | Method and Description |
---|---|
void |
acceptError(Throwable error,
int instanceID,
String name,
boolean doExport,
boolean isGlobal)
If an error occurred during the computation of the variable with the given name,
this is called.
|
void |
acceptResult(Object result,
int instanceID,
String name,
boolean doExport,
boolean isGlobal,
boolean isNumeric)
Accpets a result for the variable with the given name, for the given instance.
|
void |
acceptTime(long time,
int instanceID,
String name,
boolean isGlobal)
Accepts a runtime for the watch with the given name, for the given instance.
|
void |
finish()
Marks the experiment as finished.
|
void |
flush()
Send data to the persistent storage.
|
int |
getExperimentID()
Returns the experiment ID in this result manager.
|
void acceptResult(Object result, int instanceID, String name, boolean doExport, boolean isGlobal, boolean isNumeric)
result
- instanceID
- name
- doExport
- isGlobal
- isNumeric
- whether the result is of numeric value (double, int,... or the wrapper class). Relevant mostly if result is null.void acceptTime(long time, int instanceID, String name, boolean isGlobal)
time
- instanceID
- name
- isGlobal
- void acceptError(Throwable error, int instanceID, String name, boolean doExport, boolean isGlobal)
error
- instanceID
- name
- doExport
- isGlobal
- void flush() throws IOException
IOException
int getExperimentID()
Copyright © 2017. All rights reserved.