SST 16.0.0
Structural Simulation Toolkit
SST::Core::SSTPythonModelDefinition Class Reference
Inheritance diagram for SST::Core::SSTPythonModelDefinition:
SST::SSTModelDescription

Public Member Functions

ConfigGraphcreateConfigGraph () override
 Create the ConfigGraph.
ConfiggetConfig () const
bool setConfigEntryFromModel (const std::string &entryName, const std::string &value)
ConfigGraphgetGraph () const
OutputgetOutput () const
ComponentId_t getNextComponentId ()
ComponentId_t addComponent (const char *name, const char *type)
ConfigComponentfindComponentByName (const char *name) const
ConfigComponentMap_t & components ()
LinkId_t createLink (const char *link_name, const char *latency)
void addLink (ComponentId_t id, LinkId_t link_id, const char *port, const char *latency) const
void addNonLocalLink (LinkId_t link_id, int rank, int thread) const
void setLinkNoCut (LinkId_t link_id) const
void pushNamePrefix (const char *name)
void popNamePrefix ()
char * addNamePrefix (const char *name) const
void setStatisticOutput (const char *Name)
void addStatisticOutputParameter (const std::string &param, const std::string &value)
void setStatisticLoadLevel (uint8_t loadLevel)
void addGlobalParameter (const char *set, const char *key, const char *value, bool overwrite)
UnitAlgebra getElapsedExecutionTime () const
UnitAlgebra getLocalMemoryUsage () const
void setCallPythonFinalize (bool state)
Public Member Functions inherited from SST::SSTModelDescription
 SSTModelDescription (Config *cfg)

Protected Member Functions

void initModel (const std::string &script_file, int verbosity, Config *config, int argc, char **argv)
Protected Member Functions inherited from SST::SSTModelDescription
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.
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.

Protected Attributes

std::string scriptName
Outputoutput
Configconfig
ConfigGraphgraph
char * namePrefix
size_t namePrefixLen
std::vector< size_t > nameStack
std::map< std::string, ComponentId_t > compNameMap
ComponentId_t nextComponentId
double start_time
bool callPythonFinalize
bool enablePythonCoverage = false

Additional Inherited Members

Static Public Member Functions inherited from SST::SSTModelDescription
static SST_ELI_DECLARE_INFO_EXTERN(ELI::ProvidesSimpleInfo< 0, bool >, ELI::ProvidesSimpleInfo< 1, std::vector< std::string > >) static bool isElementParallelCapable(const std const std::vector< std::string > & getElementSupportedExtensions (const std::string &type)

Member Function Documentation

◆ createConfigGraph()

ConfigGraph * SSTPythonModelDefinition::createConfigGraph ( )
overridevirtual

Create the ConfigGraph.

This function should be overridden by subclasses.

This function is responsible for reading any configuration files and generating a ConfigGraph object.

Implements SST::SSTModelDescription.


The documentation for this class was generated from the following files:
  • src/sst/core/model/python/pymodel.h
  • src/sst/core/model/python/pymodel.cc