|
jInfer | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.mff.ksi.jinfer.iss.experiments.AbstractExperimentSet
public abstract class AbstractExperimentSet
Abstract implementation of an experiment set. After it gets the list of
experiments (via ExperimentParameters
) to run, it starts to execute
them sequentially.
Field Summary | |
---|---|
protected static int |
POOL_SIZE
|
protected File |
resultCsv
|
Constructor Summary | |
---|---|
AbstractExperimentSet()
|
Method Summary | |
---|---|
String |
getDisplayName()
Returns a user friendly name of the module. |
protected abstract List<ExperimentParameters> |
getExperiments()
Should return the list of experiment parameters to be run in this set. |
String |
getModuleDescription()
Returns the information about this module's inner workings. |
protected void |
notifyFinished(Experiment e,
int iteration)
Notification that the current iteration has finished. |
protected void |
notifyFinishedAll()
Notification that the experiment set has finished. |
protected void |
notifyStart()
Notification that the experiment set run is starting (this does not happen if we start from index higher than 0). |
void |
run(int from)
Run the experiment set from the specified index (first is 0), whatever that means. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface cz.cuni.mff.ksi.jinfer.base.interfaces.NamedModule |
---|
getName |
Field Detail |
---|
protected static final int POOL_SIZE
protected final File resultCsv
Constructor Detail |
---|
public AbstractExperimentSet()
Method Detail |
---|
protected abstract List<ExperimentParameters> getExperiments()
public void run(int from) throws InterruptedException
ExperimentSet
run
in interface ExperimentSet
InterruptedException
protected void notifyStart()
protected void notifyFinished(Experiment e, int iteration)
e
- Object representing the experiment that has currently finished running.iteration
- Iteration - index in the list of all the experiments in
this set - that was just finished. Note that the numbering starts from 0.protected void notifyFinishedAll()
public String getDisplayName()
NamedModule
getDisplayName
in interface NamedModule
public String getModuleDescription()
NamedModule
NamedModule.getDisplayName()
, but if the
module for example consists of more sub-modules, their names should be
listed here.
getModuleDescription
in interface NamedModule
|
jInfer | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |