pyHarm.Systems.FactorySystem

Module that defines the Factory of the package.

pyHarm.Systems.FactorySystem.System_dico

Dictionary containing the available ABCSystem in pyHarm for creation as values and their factory_keyword as keys.

Type:

dict[str,ABCSystem]

Attributes

System_dico

Dictionary containing the available ABCSystem in pyHarm for creation as values and their factory_keyword as keys.

Functions

generateSystem(→ pyHarm.Systems.ABCSystem.ABCSystem)

Factory function that creates a ABCSystem object.

Module Contents

pyHarm.Systems.FactorySystem.System_dico

Dictionary containing the available ABCSystem in pyHarm for creation as values and their factory_keyword as keys.

Type:

dict[str,ABCSystem]

pyHarm.Systems.FactorySystem.generateSystem(name_system: str, datas: dict) pyHarm.Systems.ABCSystem.ABCSystem

Factory function that creates a ABCSystem object.

Parameters:
  • name_system (str) – Type of the system object that is to be instantiated.

  • datas (dict) – dictionary containing the inputs that are needed to create a system.

Returns:

Instance of the required ABCSystem class.

Return type:

ABCSystem