|
The Sparta Modeling Framework
|
#include <SimulationConfiguration.hpp>
Public Member Functions | |
| void | setSimExecutable (const std::string &exe_name) |
| Set the simulation executable. This will be used as the default database filename (with a .db extension) unless otherwise specified. | |
| void | useAppFileLogger (const std::string &filename) |
| Before creating any apps, call this method to enable all apps to have access to a single thread-safe file logger. | |
| std::string | getAppLoggerFilename () const |
| Get the filename of the apps' shared file logger, if enabled. | |
| void | enableApp (const std::string &app_name) |
| Tell the simulation to enable the given app. Unless otherwise specified, the database will be the executable name with a '.db' file extension, and one app instance will be available. | |
| bool | appEnabled (const std::string &app_name) const |
| Check if the given app is enabled. | |
| std::vector< std::string > | getEnabledApps () const |
| Return a list of all enabled apps. | |
| void | setAppCount (const std::string &app_name, size_t count) |
| Set the number of instances that should be available for the given app. | |
| void | inferAppCountFromTreePattern (const std::string &app_name, const std::string &pattern) |
| Set the number of instances that should be available for the given app using a device tree wildcard pattern. The app count will be inferred as the number of tree nodes matching this pattern by the time finalizeFramework() is called. | |
| std::string | getTreePatternForInferredAppCount (const std::string &app_name) const |
| Get the device tree pattern from which to infer the number of instances of the given app we should create. | |
| size_t | getAppCount (const std::string &app_name) const |
| Return the number of instances we should create for the given app. | |
| void | setAppDatabase (const std::string &app_name, const std::string &db_file) |
| Direct the given app to go to the provided database file. | |
| std::string | getAppDatabase (const std::string &app_name) const |
| Get the database file for the given app. | |
| void | reuseDatabase (const std::string &db_file) |
| Tell SimDB to open the given file without overwriting it. | |
| bool | shouldOverwriteDatabase (const std::string &db_file) const |
| See if the given database should be overwritten or reused. | |
| void | disableLegacyReports () |
| When used together with –enable-simdb-reports, the option –disable-legacy-reports results in stats reports only going to SimDB. | |
| bool | legacyReportsEnabled () const |
| See if legacy stats reports are enabled or not. | |
| void | addPragmaOnOpen (const std::string &name, const std::string &val) |
| Add a SQLite PRAGMA to execute on database creation. | |
| std::vector< std::pair< std::string, std::string > > | getPragmas () const |
| Get a list of name-value pairs for SQLite PRAGMA's to execute on database creation. | |
SimDB configuration
Definition at line 479 of file SimulationConfiguration.hpp.
|
inline |
Add a SQLite PRAGMA to execute on database creation.
Definition at line 665 of file SimulationConfiguration.hpp.
|
inline |
Check if the given app is enabled.
Definition at line 529 of file SimulationConfiguration.hpp.
|
inline |
When used together with –enable-simdb-reports, the option –disable-legacy-reports results in stats reports only going to SimDB.
Definition at line 642 of file SimulationConfiguration.hpp.

|
inline |
Tell the simulation to enable the given app. Unless otherwise specified, the database will be the executable name with a '.db' file extension, and one app instance will be available.
Definition at line 516 of file SimulationConfiguration.hpp.

|
inline |
Return the number of instances we should create for the given app.
Definition at line 588 of file SimulationConfiguration.hpp.

|
inline |
Get the database file for the given app.
Definition at line 613 of file SimulationConfiguration.hpp.

|
inline |
Get the filename of the apps' shared file logger, if enabled.
Definition at line 504 of file SimulationConfiguration.hpp.
|
inline |
Return a list of all enabled apps.
Definition at line 537 of file SimulationConfiguration.hpp.
|
inline |
Get a list of name-value pairs for SQLite PRAGMA's to execute on database creation.
Definition at line 674 of file SimulationConfiguration.hpp.
|
inline |
Get the device tree pattern from which to infer the number of instances of the given app we should create.
Definition at line 571 of file SimulationConfiguration.hpp.

|
inline |
Set the number of instances that should be available for the given app using a device tree wildcard pattern. The app count will be inferred as the number of tree nodes matching this pattern by the time finalizeFramework() is called.
Definition at line 559 of file SimulationConfiguration.hpp.

|
inline |
See if legacy stats reports are enabled or not.
Definition at line 656 of file SimulationConfiguration.hpp.
|
inline |
Tell SimDB to open the given file without overwriting it.
Definition at line 622 of file SimulationConfiguration.hpp.
|
inline |
Set the number of instances that should be available for the given app.
Definition at line 545 of file SimulationConfiguration.hpp.

|
inline |
Direct the given app to go to the provided database file.
Definition at line 604 of file SimulationConfiguration.hpp.

|
inline |
Set the simulation executable. This will be used as the default database filename (with a .db extension) unless otherwise specified.
Definition at line 486 of file SimulationConfiguration.hpp.
|
inline |
See if the given database should be overwritten or reused.
Definition at line 630 of file SimulationConfiguration.hpp.
|
inline |
Before creating any apps, call this method to enable all apps to have access to a single thread-safe file logger.
| filename | The name / path of the output file. |
Definition at line 496 of file SimulationConfiguration.hpp.