|
svMultiPhysics
|
Initial conditions parameters for a generic ionic model. More...
#include <Parameters.h>
Public Member Functions | |
| IonicModelParameters (const std::string &xml_element_name_, const std::vector< std::pair< std::string, double > > &initial_X, const std::vector< std::pair< std::string, double > > &initial_Xg) | |
| Constructor. | |
| bool | defined () const |
| Return whether the parameters represented by this object were defined. | |
| void | print_parameters () const |
| Print the value of parameters. | |
| void | set_values (const tinyxml2::XMLElement *xml_elem) |
| Set the values of parameters in this object from an XML element. | |
| const IonicInitialStateParameters & | get_initial_X () const |
| Get the parameters for the state variables. | |
| const IonicInitialStateParameters & | get_initial_Xg () const |
| Get the parameters for the gating variables. | |
| double | get_scalar (const std::string &label) const |
| Get the value of a scalar parameter by label. | |
| Vector< double > | get_vector (const std::string &label) const |
| Get the value of a vector parameter by label. | |
Public Member Functions inherited from ParameterLists | |
| void | set_xml_element_name (const std::string &name) |
| void | set_parameter (const std::string &name, const bool value, bool required, Parameter< bool > ¶m) |
| Set the name, default value and the parameter required flag. | |
| void | set_parameter (const std::string &name, const double value, bool required, Parameter< double > ¶m) |
| void | set_parameter (const std::string &name, std::initializer_list< double > value, bool required, VectorParameter< double > ¶m) |
| void | set_parameter (const std::string &name, std::initializer_list< int > value, bool required, VectorParameter< int > ¶m) |
| void | set_parameter (const std::string &name, std::initializer_list< std::string > value, bool required, VectorParameter< std::string > ¶m) |
| void | set_parameter (const std::string &name, const int value, bool required, Parameter< int > ¶m, std::vector< int > range={}) |
| void | set_parameter (const std::string &name, const std::string &value, bool required, Parameter< std::string > ¶m) |
| void | set_parameter_value_CANN (const std::string &name, const std::string &value) |
| set_parameter function to handle CANNRow | |
| void | set_parameter_value (const std::string &name, const std::string &value) |
| Set the value of a paramter from a string. | |
| void | check_required () |
| Check if any required parameters have not been set. | |
| std::map< std::string, std::string > | get_parameter_list () const |
| Get the defined parameters as a map of strings. | |
| void | print_parameter_list () |
| Print the parameters. | |
Public Attributes | |
| const std::string | xml_element_name |
| Name of the XML element for this object. | |
Public Attributes inherited from ParameterLists | |
| std::map< std::string, std::variant< Parameter< bool > *, Parameter< double > *, Parameter< int > *, Parameter< std::string > *, VectorParameter< double > *, VectorParameter< int > *, VectorParameter< std::string > * > > | params_map |
| Map used for storing parameters by name / Parameter template union. | |
| std::string | xml_element_name = "" |
Protected Member Functions | |
| void | add_parameter (const std::string &label, double default_value, bool required) |
| Add a new parameter to this object. | |
| void | add_parameter (const std::string &label, std::initializer_list< double > default_value, bool required) |
| Add a new vector parameter to this object. | |
Protected Attributes | |
| IonicInitialStateParameters | initial_X_parameters |
| Parameters for the state variables. | |
| IonicInitialStateParameters | initial_Xg_parameters |
| Parameters for the gating variables. | |
| std::map< std::string, Parameter< double > > | parameters |
| std::map< std::string, VectorParameter< double > > | vector_parameters |
| Vector parameters are stored in a map as key-parameter pairs. | |
| bool | value_set = false |
Initial conditions parameters for a generic ionic model.
Bundles initial conditions for the model's ionic concentrations and gating variables, represented by two instances of IonicInitialStateParameters.
| IonicModelParameters::IonicModelParameters | ( | const std::string & | xml_element_name_, |
| const std::vector< std::pair< std::string, double > > & | initial_X, | ||
| const std::vector< std::pair< std::string, double > > & | initial_Xg | ||
| ) |
Constructor.
|
inlineprotected |
Add a new parameter to this object.
|
inlineprotected |
Add a new vector parameter to this object.
|
inline |
Return whether the parameters represented by this object were defined.
|
inline |
Get the parameters for the state variables.
|
inline |
Get the parameters for the gating variables.
|
inline |
Get the value of a scalar parameter by label.
|
inline |
Get the value of a vector parameter by label.
| void IonicModelParameters::print_parameters | ( | ) | const |
Print the value of parameters.
| void IonicModelParameters::set_values | ( | const tinyxml2::XMLElement * | xml_elem | ) |
Set the values of parameters in this object from an XML element.
|
protected |
Parameters for the state variables.
|
protected |
Parameters for the gating variables.
|
protected |
Other parameters (i.e. other than initial conditions) are stored in a map as key-parameter pairs. Derived classes should add parameters to this map in their constructors by calling add_parameter.
|
protected |
Flag indicating whether the values of the parameters stored in this object have been set.
|
protected |
Vector parameters are stored in a map as key-parameter pairs.
| const std::string IonicModelParameters::xml_element_name |
Name of the XML element for this object.