Skip to content

component_factory

ComponentFactory

Factory class to create Component with given type.

get_component staticmethod

get_component(component)

Returns instance of Component depending on type.

Parameters:

  • component (Component) –

    Component containing properties of component.

Returns:

  • Component

    A Component object with proper class based on type.

get_components staticmethod

get_components(components)

Returns instances of Component depending on type.

Parameters:

  • components (List[Component]) –

    List of Component containing properties of components.

Returns: