Handler classes related to parameters¶
ParameterHandler¶
- class simu.core.model.parameter.ParameterHandler¶
This class, being instantiated as the
simu.Model.parametersattribute, allows to define and access process parameters.During
simu.Model.interface(), the model defines parameters with and without pre-defined values.Within the
withblock, the parent module connects parameters by providing external symbols. Here, the unit of measurement must be compatible to the parameters’ definition.During
simu.Model.define()checks that all required symbols (the ones without default values) are connected. It keeps track of the non-connected and static parameters, as they will need to be used as arguments for the overall model function.- define( ) → None¶
Define a parameter from within the
simu.Model.interface()method.
- static( ) → SymbolQuantity¶
Define a static parameter over all instances of the associated model.
- get_static(name: str) → SymbolQuantity¶
Return a static parameter of given name
- create_proxy() → ParameterProxy¶
Create a proxy object for configuration in hierarchy context
ParameterProxy¶
- class simu.core.model.parameter.ParameterProxy¶
This class is instantiated by the parent’s
ParameterHandlerto configure the parameter connections from the parent context.- __init__(
- handler: ParameterHandler,
- params: MutableMapping[str, Quantity],
- values: MutableMapping[str, Quantity],
- property free: Mapping[str, Quantity]¶
Symbols representing the symbols of the parameters that have not been provided. These must be used to create an overall function, when parameter values are provided from the outside.