MoleculeReader
class MoleculeReader @JvmOverloads constructor(moleculeName: String, property: String?, incarnation: Incarnation<*, *>, filter: ExportFilter, aggregatorNames: List<String>, val precision: Int? = null) : AbstractDoubleExporter(source)
Reads the value of a molecule and logs it.
Parameters
moleculeName
the target molecule
Content copied to clipboard
property
the target property
Content copied to clipboard
incarnation
the target incarnation
Content copied to clipboard
filter
the [FilteringPolicy] to use
Content copied to clipboard
aggregatorNames
the names of the [UnivariateStatistic] to use for
aggregating data. If an empty list is passed, then the values
will be logged indipendently for each node.
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(moleculeName: String, property: String?, incarnation: Incarnation<*, *>, filter: ExportFilter, aggregatorNames: List<String>, precision: Int? = null)
Functions
Link copied to clipboard
open 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.