mda_factory module¶
A factory to instantiate MDA from their class names
-
class
gemseo.mda.mda_factory.MDAFactory[source]¶ Bases:
objectMDA 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
-
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 name : mda_name of the MDA :returns: True if the MDA is available
-
property
mdas¶ Lists the available classes
:returns : the list of classes names
-