addParam
Adds a parameter to the Params object for the Component/SubComponent. This function applies to both Components and SubComponents.
Syntax
component.addParam(key, value)
Parameters
- key (type: string) name of the parameter
- value (type: varies) value of the parameter. This can be almost any Python object and the
__str__
method will be called to get a string representation. A list can be passed to this call when thefind_array
function is used in the class to retrieve the parameters. - returns none
Example
import sst
component0 = sst.Component("c0", "simpleElementExample.example0")
#highlight-next line
component0.addParam("eventsToSend", 50)
Import
import sst