Package it.unibo.alchemist.loader.export.exporters

Types

Link copied to clipboard
abstract class AbstractExporter<T, P : Position<P>>(samplingInterval: Double) : Exporter<T, P>

Abstract implementation of a Exporter.

Link copied to clipboard
class CSVExporter<T, P : Position<P>> @JvmOverloads constructor(    fileNameRoot: String = "",     val interval: Double = DEFAULT_INTERVAL,     val exportPath: String = createTempDirectory("alchemist-export").absolutePathString() .also { logger.warn("No output folder specified but export required. Alchemist will export data in $it") },     val fileExtension: String = "csv",     appendTime: Boolean = false) : AbstractExporter<T, P>

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

Link copied to clipboard
class GlobalExporter<T, P : Position<P>>(exporters: List<Exporter<T, P>>) : OutputMonitor<T, P>

Contains all exporters selected in the configuration file. Implements the OutputMonitor interface and delegate the export phase to each one of his internal exporters.

Link copied to clipboard
class MongoDBExporter<T, P : Position<P>> @JvmOverloads constructor(    val uri: String,     val dbName: String = DEFAULT_DATABASE,     val interval: Double = DEFAULT_INTERVAL,     appendTime: Boolean = false) : AbstractExporter<T, P>

Exports data provided by a list of it.unibo.alchemist.loader.export.Extractors on a MongoDB instance.

Link copied to clipboard
class MongoService

Contains all the functions in order to use MongoDB Database.