AbstractAggregatingDoubleExporter

abstract class AbstractAggregatingDoubleExporter @JvmOverloads constructor(filter: ExportFilter = CommonFilters.NOFILTER.filteringPolicy, aggregatorNames: List<String>, val precision: Int? = null) : AbstractDoubleExporter(source)

Aggregation of data extracted from the environment. The data is filtered and then aggregated using the provided aggregators. Provided a filter and a list of aggregatorNames and a precision, extracts data from the environment, filters it, and then aggregates it. Available aggregators can be found at this site.

Inheritors

Constructors

Link copied to clipboard
constructor(filter: String?, aggregatorNames: List<String>, precision: Int? = null)
constructor(filter: ExportFilter = CommonFilters.NOFILTER.filteringPolicy, aggregatorNames: List<String>, precision: Int? = null)

Properties

Link copied to clipboard
abstract val columnName: String

The name of the column in the output file.

Link copied to clipboard
open override val columnNames: List<String>
Link copied to clipboard
val precision: Int? = null

Functions

Link copied to clipboard
override fun <T> extractData(environment: Environment<T, *>, reaction: Actionable<T>?, time: Time, step: Long): Map<String, Double>

Extracts properties from an environment. The returned map must either:

Link copied to clipboard
override fun <T> extractDataAsText(environment: Environment<T, *>, reaction: Actionable<T>?, time: Time, step: Long): Map<String, String>

Same as extractData, but specifically meant for textual outputs. Captures E to String conversions. The default implementation just runs a toString() conversion ver extractData's return value's values.

Link copied to clipboard
abstract fun <T> getData(environment: Environment<T, *>, reaction: Actionable<T>?, time: Time, step: Long): Map<Node<T>, Double>

Delegated to the concrete implementation to extract data from the environment.