|
SST 16.0.0
Structural Simulation Toolkit
|
Represents the configuration of a generic component. More...
#include <configComponent.h>
Public Member Functions | |
| const ComponentId_t & | key () const |
| void | print (std::ostream &os) const |
| Print Component information. | |
| void | setConfigGraphPointer (ConfigGraph *graph_ptr) |
| StatisticId_t | getNextStatisticID () |
| ConfigComponent * | getParent () const |
| std::string | getFullName () const |
| void | setRank (RankInfo r) |
| void | setWeight (double w) |
| void | setCoordinates (const std::vector< double > &c) |
| void | addParameter (const std::string &key, const std::string &value, bool overwrite) |
| ConfigComponent * | addSubComponent (const std::string &name, const std::string &type, int slot) |
| ConfigComponent * | findSubComponent (ComponentId_t) |
| const ConfigComponent * | findSubComponent (ComponentId_t) const |
| ConfigComponent * | findSubComponentByName (const std::string &name) |
| ConfigStatistic * | findStatistic (const std::string &name) const |
| ConfigStatistic * | insertStatistic (StatisticId_t id) |
| ConfigStatistic * | findStatistic (StatisticId_t) const |
| ConfigStatistic * | enableStatistic (const std::string &statisticName, const SST::Params ¶ms, bool recursively=false) |
| ConfigStatistic * | createStatistic () |
| bool | reuseStatistic (const std::string &statisticName, StatisticId_t sid) |
| void | addStatisticParameter (const std::string &statisticName, const std::string ¶m, const std::string &value, bool recursively=false) |
| void | setStatisticParameters (const std::string &statisticName, const Params ¶ms, bool recursively=false) |
| void | setStatisticLoadLevel (uint8_t level, bool recursively=false) |
| void | addSharedParamSet (const std::string &set) |
| void | addGlobalParamSet (const std::string &set) |
| std::vector< std::string > | getParamsLocalKeys () const |
| std::vector< std::string > | getSubscribedSharedParamSets () const |
| std::vector< std::string > | getSubscribedGlobalParamSets () const |
| size_t | addPortModule (const std::string &port, const std::string &type, const Params ¶ms) |
| Adds a PortModule on the port 'port' of the associated component. | |
| std::vector< LinkId_t > | allLinks () const |
| std::vector< LinkId_t > | clearAllLinks () |
| Gets all the links to return, then clears links from self and all subcomponents. | |
| void | replaceLinkId (LinkId_t old_id, LinkId_t new_id) |
| Update a Link that has had its ID changed. | |
| void | serialize_order (SST::Core::Serialization::serializer &ser) override |
| ImplementSerializable(SST::ConfigComponent) private ComponentId_t | getNextSubComponentID () |
| void | checkPorts () const |
| Checks to make sure port names are valid and that a port isn't used twice. | |
| ConfigComponent (ComponentId_t id, ConfigGraph *graph, const std::string &name, const std::string &type, float weight, RankInfo rank) | |
| Create a new Component. | |
| ConfigComponent (ComponentId_t id, ConfigGraph *graph, uint16_t parent_subid, const std::string &name, int slot_num, const std::string &type, float weight, RankInfo rank) | |
| Public Member Functions inherited from SST::Core::Serialization::serializable_base | |
| virtual const char * | cls_name () const =0 |
| virtual uint32_t | cls_id () const =0 |
| virtual std::string | serialization_name () const =0 |
Data Fields | |
| ComponentId_t | id |
| ConfigGraph * | graph |
| std::string | name |
| int | slot_num |
| std::string | type |
| float | weight |
| RankInfo | rank |
| std::vector< LinkId_t > | links |
| Params | params |
| uint8_t | statLoadLevel |
| std::map< std::string, std::vector< ConfigPortModule > > | port_modules |
| std::map< std::string, StatisticId_t > | enabledStatNames |
| bool | enabledAllStats |
| ConfigStatistic | allStatConfig |
| std::vector< ConfigComponent * > | subComponents |
| std::vector< double > | coords |
| uint16_t | nextSubID |
| uint64_t | next_stat_id = 1 |
| bool | visited |
Static Public Attributes | |
| static constexpr ComponentId_t | null_id = std::numeric_limits<ComponentId_t>::max() |
| Static Public Attributes inherited from SST::Core::Serialization::serializable | |
| static constexpr uint32_t | NullClsId = std::numeric_limits<uint32_t>::max() |
| Static Public Attributes inherited from SST::Core::Serialization::serializable_base | |
| static constexpr uint32_t | NullClsId = std::numeric_limits<uint32_t>::max() |
Friends | |
| class | ComponentInfo |
| class | ConfigGraph |
Additional Inherited Members | |
| Protected Types inherited from SST::Core::Serialization::serializable_base | |
| enum | cxn_flag_t { ConstructorFlag } |
| Static Protected Member Functions inherited from SST::Core::Serialization::serializable_base | |
| static void | serializable_abort (uint32_t line, const char *file, const char *func, const char *obj) |
Represents the configuration of a generic component.
| size_t SST::ConfigComponent::addPortModule | ( | const std::string & | port, |
| const std::string & | type, | ||
| const Params & | params ) |
Adds a PortModule on the port 'port' of the associated component.
Returns the index of the module in the component's vector of PortModules for the given port.
References params, port_modules, and type.
| std::vector< LinkId_t > SST::ConfigComponent::clearAllLinks | ( | ) |
Gets all the links to return, then clears links from self and all subcomponents.
Used when splitting graphs.
References links, and subComponents.
| void SST::ConfigComponent::replaceLinkId | ( | LinkId_t | old_id, |
| LinkId_t | new_id ) |
|
overridevirtual |
Implements SST::Core::Serialization::serializable_base.
| ConfigStatistic SST::ConfigComponent::allStatConfig |
If all stats are enabled, the config information for the stats
Referenced by print().
| bool SST::ConfigComponent::enabledAllStats |
Whether all stats in this (sub)component have been enabled
Referenced by ConfigComponent(), and print().
| std::map<std::string, StatisticId_t> SST::ConfigComponent::enabledStatNames |
Map of explicitly enabled statistic names to unique IDs
Referenced by print().
| ConfigGraph* SST::ConfigComponent::graph |
Graph that this component belongs to
Referenced by checkPorts(), and ConfigComponent().
| ComponentId_t SST::ConfigComponent::id |
Unique ID of this component
Referenced by ConfigComponent().
| std::vector<LinkId_t> SST::ConfigComponent::links |
List of links connected
Referenced by checkPorts(), clearAllLinks(), print(), and replaceLinkId().
| std::string SST::ConfigComponent::name |
Name of this component, or slot name for subcomp
Referenced by checkPorts(), ConfigComponent(), print(), and SST::ConfigStatGroup::verifyStatsAndComponents().
| uint64_t SST::ConfigComponent::next_stat_id = 1 |
Next statID to use
| uint16_t SST::ConfigComponent::nextSubID |
Next subID to use for children, if component, if subcomponent, subid of parent
Referenced by ConfigComponent().
|
staticconstexpr |
Used when traversing graph to indicate component was visited already
| Params SST::ConfigComponent::params |
Set of Parameters
Referenced by addPortModule(), and print().
| std::map<std::string, std::vector<ConfigPortModule> > SST::ConfigComponent::port_modules |
Map of port names to port modules loaded on that port
Referenced by addPortModule().
| RankInfo SST::ConfigComponent::rank |
Parallel Rank for this component
Referenced by ConfigComponent(), and print().
| int SST::ConfigComponent::slot_num |
Slot number. Only valid for subcomponents
Referenced by ConfigComponent(), and print().
| uint8_t SST::ConfigComponent::statLoadLevel |
Statistic load level for this component
Referenced by ConfigComponent(), and print().
| std::vector<ConfigComponent*> SST::ConfigComponent::subComponents |
List of subcomponents
Referenced by checkPorts(), clearAllLinks(), and print().
| std::string SST::ConfigComponent::type |
Type of this component
Referenced by addPortModule(), checkPorts(), ConfigComponent(), print(), and SST::ConfigStatGroup::verifyStatsAndComponents().
| float SST::ConfigComponent::weight |
Partitioning weight for this component
Referenced by ConfigComponent(), and print().