GlobalExporter

class GlobalExporter<T, P : Position<P>>(val exporters: List<Exporter<T, P>>) : OutputMonitor<T, P>

Aggregates and delegates to multiple exporters selected in the configuration file. Implements the OutputMonitor interface and delegates the export phase to each internal exporter.

Type Parameters

T

the concentration type

P

the position type

Constructors

Link copied to clipboard
constructor(exporters: List<Exporter<T, P>>)

Properties

Link copied to clipboard

the list of exporters to delegate to

Functions

Link copied to clipboard
open override fun finished(environment: Environment<T, P>, time: Time, step: Long)

This method will be called by the simulation once the whole simulation has finished, either because it reached its latest point or because the user stopped it. Thread safety note: no specific policy is defined for the control flow which will execute this method. A new thread could have been spawned or the same flow of the simulation may execute this method. This depends on the specific it.unibo.alchemist.core.Simulation implementation.

Link copied to clipboard
open override fun initialized(environment: Environment<T, P>)

This method will be called by the simulation as soon as the initialization phase is completed. Thread safety note: no specific policy is defined for the control flow which will execute this method. A new thread could have been spawned or the same flow of the simulation may execute this method. This depends on the specific it.unibo.alchemist.core.Simulation implementation.

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

This method will be called by the simulation every time a simulation step is done. Thread safety note: no specific policy is defined for the control flow which will execute this method. A new thread could have been spawned or the same flow of the simulation may execute this method. This depends on the specific it.unibo.alchemist.core.Simulation implementation.