-
- All Implemented Interfaces:
-
it.unibo.alchemist.loader.export.Extractor
public final class MoleculeReader implements Extractor
Reads the value of a molecule and logs it.
-
-
Constructor Summary
Constructors Constructor Description MoleculeReader(String molecule, String property, Incarnation<out Object, out Object> incarnation, FilteringPolicy filter, List<String> aggregators)
-
Method Summary
-
-
Constructor Detail
-
MoleculeReader
MoleculeReader(String molecule, String property, Incarnation<out Object, out Object> incarnation, FilteringPolicy filter, List<String> aggregators)
- Parameters:
molecule
- the target moleculeproperty
- the target propertyincarnation
- the target incarnationfilter
- the FilteringPolicy to useaggregators
- the names of the UnivariateStatistic to use foraggregating data.
-
-
Method Detail
-
extractData
<T> Array<double> extractData(Environment<T, out Object> environment, Reaction<T> reaction, Time time, long step)
Extracts numeric properties from an environment.
- Parameters:
environment
- the Environmentreaction
- the last executed Reactiontime
- the current Timestep
- the simulation step
-
-
-
-