cosapp.systems.systemfamily

Classes

SystemFamily(name, **kwargs)

Abstract class defining a family of System convertible in one another.

SystemFamilyModelings()

class cosapp.systems.systemfamily.SystemFamily(name: str, **kwargs)[source]

Bases: System

Abstract class defining a family of System convertible in one another.

convert_to(to_type: str, auto: ConversionType = ConversionType.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: str
modelings: SystemFamilyModelings
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: 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

class cosapp.systems.systemfamily.SystemFamilyModelings[source]

Bases: list

add(name, fidelity, cost)[source]
best_fidelity_to_cost_ratio()[source]
delete(name)[source]
exists(name)[source]
highest_cost()[source]
highest_fidelity()[source]
lowest_cost()[source]
lowest_fidelity()[source]