Package 

Class Exporter

  • All Implemented Interfaces:
    it.unibo.alchemist.boundary.interfaces.OutputMonitor , java.io.Serializable

    
    public final class Exporter<T, P extends Position<out P>>
     implements OutputMonitor<T, P>
                        

    Writes on file data provided by a number of Extractors. Produces a CSV with '#' as comment character. Even though this class implements OutputMonitor, it is not java.io.Serializable.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      void finished(Environment<T, P> environment, Time time, long step)
      void initialized(Environment<T, P> environment)
      void stepDone(Environment<T, P> environment, Reaction<T> reaction, Time time, long step)
      • Methods inherited from class java.lang.Object

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

      • Exporter

        Exporter(String target, double space, String header, List<Extractor> columns)
        Parameters:
        target - the target file
        space - the sampling space, namely how many simulated time units the Exporter should log
        header - a message to be inserted in the header of the file.
        columns - the extractors to use
    • Method Detail

      • finished

         void finished(Environment<T, P> environment, Time time, long step)
      • stepDone

         void stepDone(Environment<T, P> environment, Reaction<T> reaction, Time time, long step)