public interface RunnableExperiment
ExperimentRunner
. Implementors must write
three methods corresponding to the lifecycle of an experiment:
setting up the experiment, performing the experiment and concluding
the experiment (i.e. writing the results, etc).Modifier and Type | Method and Description |
---|---|
void |
finish(ExperimentContext context)
Finalise the experiment, possibly writing the results, cleaning up, etc.
|
void |
perform()
Perform the experiment
|
void |
setup()
Setup of the experiment
|
void setup()
void perform()
void finish(ExperimentContext context)
ExperimentRunner
is provided so that
RunnableExperiment
implementations can access information for
generating their reports.
Note that at the point the context is provided,
it is not "locked" and is still recording. The ExperimentRunner
returns a completed locked context after the experiment has been completely
run.
context
- the context provided by the ExperimentRunner