MongoDBExporter
Exports data to a MongoDB instance.
Parameters
the connection URI of the database instance.
the name the database to export data to.
the sampling time, defaults to AbstractExporter.DEFAULT_INTERVAL.
if true it will always generate a new Mongo document, false to overwrite.
Constructors
Properties
The name of the collection related to the current simulation in execution.
The List of Extractor used to export simulations data.
Functions
Assign the list of dataExtractors to the selected Exporter.
Delegates the concrete implementation of this method to his subclasses.
Prepare the export environment. This method is called only once upon simulation initialization.
Every step of the simulation check if is time to export data depending on the sampling interval. Converts the division of the current time and the interval to Long in order to export data only when the difference between steps is as big as the sampling interval.