Class CSVExporter

  • All Implemented Interfaces:
    it.unibo.alchemist.boundary.Exporter

    
    public final class CSVExporter<T extends Object, P extends Position<P>>
    extends AbstractExporter<T, P>
                        

    Writes on file data provided by a number of {@link Extractor}s. Produces a CSV with '#' as comment character.e

    • Constructor Detail

      • CSVExporter

        CSVExporter(String fileNameRoot, Double interval, String exportPath, String fileExtension, Boolean appendTime)
        Parameters:
        fileNameRoot - the starting name of the file to export data to.
        interval - the sampling time, defaults to AbstractExporter.DEFAULT_INTERVAL.
        exportPath - if no path is specified it will generate the file inside a temporary folder.
        fileExtension - the extension for the exported files, by default 'csv'
        appendTime - if true it will always generate a new file, false to overwrite.
      • CSVExporter

        CSVExporter(String fileNameRoot, Double interval, String exportPath, String fileExtension)
        Parameters:
        fileNameRoot - the starting name of the file to export data to.
        interval - the sampling time, defaults to AbstractExporter.DEFAULT_INTERVAL.
        exportPath - if no path is specified it will generate the file inside a temporary folder.
        fileExtension - the extension for the exported files, by default 'csv'
      • CSVExporter

        CSVExporter(String fileNameRoot, Double interval, String exportPath)
        Parameters:
        fileNameRoot - the starting name of the file to export data to.
        interval - the sampling time, defaults to AbstractExporter.DEFAULT_INTERVAL.
        exportPath - if no path is specified it will generate the file inside a temporary folder.
      • CSVExporter

        CSVExporter(String fileNameRoot)
        Parameters:
        fileNameRoot - the starting name of the file to export data to.
      • CSVExporter

        CSVExporter()