cosapp.systems.systemfamily¶
Classes
|
Abstract class defining a family of System convertible in one another. |
-
class
cosapp.systems.systemfamily.SystemFamily(name: str, **kwargs)[source]¶ Bases:
cosapp.systems.system.SystemAbstract class defining a family of System convertible in one another.
-
convert_to(to_type: str, auto: cosapp.systems.system.ConversionType = <ConversionType.manual: 'manual'>)[source]¶ Convert the current System in the provided to_type class.
- Parameters
to_type (str) – Type name of the target new class
auto (ConversionType, optional) – Type of conversion; default manual
-
family_name¶
-
modelings¶
-
possible_conversions() → List[str][source]¶ Get the list of possible conversions between System type inside the SystemFamily.
- Returns
List of conversion methods available
- Return type
List[str]
-
update_connections(new_system: cosapp.systems.system.System) → None[source]¶ Update connections after conversion of this System into the new_system.
New connections are created for input port. But for output port, the port reference in the existing connections are updated.
- Parameters
new_system (System) – The new type System in which the current System has been converted into
-