carputils
Doxygen code documentation for the python framework controlling openCARP
Public Member Functions | Static Public Attributes | List of all members
carputils.model.general.ParameterSetMixin Class Reference

A mixin to add a parameter set field to a model component class. More...

Inheritance diagram for carputils.model.general.ParameterSetMixin:
carputils.model.general.ModelMixin carputils.model.general.AbstractIonicModel carputils.model.general.AbstractMechanicsMaterial carputils.model.general.ExternalIonicModel

Public Member Functions

def __init__ (self, args, kwargs)
 
def opts (self)
 Generator that yields field name - value pairs for the command line. More...
 

Static Public Attributes

 PARAMETERS = None
 
 PARAMSET_FIELD = None
 

Detailed Description

A mixin to add a parameter set field to a model component class.

Two class attributes must be set in subclasses - PARAMETERS, the list of allowed parameters, and PARAMSET_FIELD, the name of the field to which the parameter set's values should be assigned.

Constructor & Destructor Documentation

◆ __init__()

def carputils.model.general.ParameterSetMixin.__init__ (   self,
  args,
  kwargs 
)

Member Function Documentation

◆ opts()

def carputils.model.general.ParameterSetMixin.opts (   self)

Generator that yields field name - value pairs for the command line.

Member Data Documentation

◆ PARAMETERS

carputils.model.general.ParameterSetMixin.PARAMETERS = None
static

◆ PARAMSET_FIELD

carputils.model.general.ParameterSetMixin.PARAMSET_FIELD = None
static

The documentation for this class was generated from the following file: