mda_factory module¶
A factory to instantiate MDA from their class names.
Classes:
MDA factory to create the MDA from a name or a class. |
- class gemseo.mda.mda_factory.MDAFactory[source]¶
Bases:
object
MDA factory to create the MDA from a name or a class.
Initializes the factory: scans the directories to search for subclasses of MDA.
Searches in “GEMSEO_PATH” and gemseo.mda
Methods:
create
(mda_name, disciplines, **options)Create a MDA.
is_available
(mda_name)Checks the availability of a MDA.
Attributes:
Lists the available classes.
- create(mda_name, disciplines, **options)[source]¶
Create a MDA.
- Parameters
mda_name – name of the MDA (its classname)
disciplines – list of the disciplines
options – additional options specific to the MDA
- is_available(mda_name)[source]¶
Checks the availability of a MDA.
:param mda_name : name of the MDA :returns: True if the MDA is available
- property mdas¶
Lists the available classes.
:returns : the list of classes names