SST
13.0.0
StructuralSimulationToolkit
|
Base class for Model Generation. More...
#include <sstmodel.h>
Public Member Functions | |
SSTModelDescription (Config *cfg) | |
virtual ConfigGraph * | createConfigGraph ()=0 |
Create the ConfigGraph. More... | |
Protected Member Functions | |
bool | setOptionFromModel (const std::string &entryName, const std::string &value) |
Set a configuration string to update configuration values. | |
void | setModelOptions (const std::string &options) |
Sets the model options field of the Config object. More... | |
void | insertGlobalParameter (const std::string &set, const Params::key_type &key, const Params::key_type &value, bool overwrite=true) |
Allows ModelDefinition to set global parameters. More... | |
Base class for Model Generation.
|
pure virtual |
Create the ConfigGraph.
This function should be overridden by subclasses.
This function is responsible for reading any configuration files and generating a ConfigGraph object.
Implemented in SST::Core::SSTXmlModelDefinition, SST::Core::SSTPythonModelDefinition, and SST::Core::SSTJSONModelDefinition.
|
protected |
Allows ModelDefinition to set global parameters.
set | Name of the global param set to add key/value pair to |
key | Key of key/value pair to be added |
key | Value of key/value pair to be added |
overwrite | Overwrite existing value if set to true (which is default) |
|
protected |
Sets the model options field of the Config object.
This has a very narrow use case, which is to set the model_options when the model is just a wrapper to another model type and they need to pass some extra options.
options | String that will be used for model_options. It will overwrite what is alread there |