Exporter

interface Exporter<T, P : Position<P>>(source)

A generic exporter for the simulation. T is the concentration type, P is the position type, and

Inheritors

Properties

Link copied to clipboard
abstract val dataExtractors: List<Extractor<*>>

The List of Extractor used to export simulations data.

Functions

Link copied to clipboard
abstract fun bindDataExtractors(dataExtractors: List<Extractor<*>>)

Assign the list of dataExtractors to the selected Exporter.

Link copied to clipboard
abstract fun bindVariables(variables: Map<String, *>)

Assign the map of variables to the selected Exporter.

Link copied to clipboard
abstract fun close(environment: Environment<T, P>, time: Time, step: Long)

Close the export environment. This method is called when the simulation finishes.

Link copied to clipboard
abstract fun setup(environment: Environment<T, P>)

Prepare the export environment. This method is called only once upon simulation initialization.

Link copied to clipboard
abstract fun update(environment: Environment<T, P>, reaction: Actionable<T>?, time: Time, step: Long)

Main method used by exporters to export data. This method is called at each step of the simulation.