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.
Methods:
create
(mda_name, disciplines, **options)Create a MDA.
is_available
(mda_name)Check the availability of an MDA.
Attributes:
The names of the available MDAs.
- Return type
None
- create(mda_name, disciplines, **options)[source]¶
Create a MDA.
- Parameters
mda_name (str) – The name of the MDA (its class name).
disciplines (Sequence[gemseo.core.discipline.MDODiscipline]) – The disciplines.
**options (Optional[Union[float, int, bool, str, Iterable[gemseo.core.coupling_structure.MDOCouplingStructure], Sequence[gemseo.mda.mda.MDA]]]) – The options of the MDA.
- Return type
- is_available(mda_name)[source]¶
Check the availability of an MDA.
- Parameters
mda_name (str) – The name of the MDA.
- Returns
Whether the MDA is available.
- Return type
bool
- property mdas¶
The names of the available MDAs.