|
RepastHPC
2.3.1
|
Used to build SVDataSets to record data in plain text tabular format. More...
#include <SVDataSetBuilder.h>
Public Member Functions | |
| SVDataSetBuilder (const std::string &file, const std::string &separator, const Schedule &schedule) | |
| Creates a SVDataSetBuilder that will create a SVDataSet that will write to the specified file and use the specified string as a data value separator. More... | |
| SVDataSetBuilder & | addDataSource (SVDataSource *source) |
| Adds a DataSource to the DataSet produced by this builder. More... | |
| SVDataSet * | createDataSet () |
| Creates the DataSource defined by this builder. More... | |
Used to build SVDataSets to record data in plain text tabular format.
Steps for use are:
| repast::SVDataSetBuilder::SVDataSetBuilder | ( | const std::string & | file, |
| const std::string & | separator, | ||
| const Schedule & | schedule | ||
| ) |
Creates a SVDataSetBuilder that will create a SVDataSet that will write to the specified file and use the specified string as a data value separator.
Tick info will be gathered from the specified schedule.
| file | the file path where the data will be recorded to |
| separator | a string used to separate the data values (e.g. a ","). |
| SVDataSetBuilder & repast::SVDataSetBuilder::addDataSource | ( | SVDataSource * | source | ) |
Adds a DataSource to the DataSet produced by this builder.
The createDataSource functions can be used to create Data Sources. Each data source defines a column in the output and where the data for that column will be retrieved. Recording data on the SVDataSet produced by the builder will record this data for each column.
| source | the data source to add |
| SVDataSet * repast::SVDataSetBuilder::createDataSet | ( | ) |
Creates the DataSource defined by this builder.
This can only be called once. The caller is responsible for properly deleting the returned pointer.
1.8.17