Package 

Class MoleculeReader

  • All Implemented Interfaces:
    it.unibo.alchemist.loader.export.Extractor

    
    public final class MoleculeReader
     implements Extractor
                        

    Reads the value of a molecule and logs it.

    • Method Summary

      Modifier and Type Method Description
      <T> Array<double> extractData(Environment<T, out Object> environment, Reaction<T> reaction, Time time, long step) Extracts numeric properties from an environment.
      List<String> getNames()
      • Methods inherited from class it.unibo.alchemist.loader.export.Extractor

        extractData
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MoleculeReader

        MoleculeReader(String molecule, String property, Incarnation<out Object, out Object> incarnation, FilteringPolicy filter, List<String> aggregators)
        Parameters:
        molecule - the target molecule
        property - the target property
        incarnation - the target incarnation
        filter - the FilteringPolicy to use
        aggregators - 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 Environment
        reaction - the last executed Reaction
        time - the current Time
        step - the simulation step