cz.cuni.pogamut.experiments
Class ExperimentExecutor

java.lang.Object
  extended by cz.cuni.pogamut.experiments.ExperimentExecutor
Direct Known Subclasses:
LocalExperimentExecutor, SerialExperimentExecutor

public abstract class ExperimentExecutor
extends java.lang.Object

Executes an experiment. Different implementations of this class can provide different ways of executing the experiment (eg. on local computer or in distributed network environment).


Constructor Summary
ExperimentExecutor()
           
 
Method Summary
 void close()
          Closes the executor.
 ExperimentHandle execute(ExperimentDescriptor experimentDescriptor)
          Executes experiment and returns handle for this experiment.
abstract  ExperimentHandle[] execute(java.util.List<ExperimentDescriptor> experimentDescriptors)
           
static void waitForAll(ExperimentHandle[] handles)
          Waits for all experiments to complete.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExperimentExecutor

public ExperimentExecutor()
Method Detail

execute

public ExperimentHandle execute(ExperimentDescriptor experimentDescriptor)
                         throws ExecutorException
Executes experiment and returns handle for this experiment.

Returns:
Handle for executing experiment.
Throws:
ExecutorException

execute

public abstract ExperimentHandle[] execute(java.util.List<ExperimentDescriptor> experimentDescriptors)

waitForAll

public static void waitForAll(ExperimentHandle[] handles)
Waits for all experiments to complete.


close

public void close()
Closes the executor. Useful for releasing system resources.