pub trait ExperimentReporter<R: ExperimentRendering> {
fn initialise(&self) -> Result<()>;
fn finalise(&self) -> Result<()>;
fn simulate(&self, xs: &ExperimentData) -> CompositeBox<()>;
fn context(&self) -> R::ExperimentContext;
}
Expand description
Defines what creates the simulation reports by the specified renderer.
Required methods
fn initialise(&self) -> Result<()>
fn initialise(&self) -> Result<()>
Initialise the reporting before the simulation runs are started.
Finalise the reporting after all simulation runs are finished.
fn simulate(&self, xs: &ExperimentData) -> CompositeBox<()>
fn simulate(&self, xs: &ExperimentData) -> CompositeBox<()>
Start the simulation run in the start time.
fn context(&self) -> R::ExperimentContext
fn context(&self) -> R::ExperimentContext
The context used by the renderer.