numerous.sdk.models.component module#

Components are the basic building blocks of systems.

This module contains the definition of Components, and the implementation of functionality to create them.

class numerous.sdk.models.component.Component(uuid, id, type, name, item_class, is_enabled, is_main, input_variables, components, parameters, is_dummy=False)#

Bases: object

A component of a Scenario, containing parameters, input variables, and any subcomponents.

components: dict[str, list[Component]]#
static from_document(path, component, all_components, input_sources_mapping, file_manager_client)#
Return type:

Component

id: str#
input_variables: dict[str, InputVariable]#
is_dummy: bool = False#

The subcomponents of this component.

is_enabled: bool#
is_main: bool#
item_class: list[str]#
name: str#
parameters: dict[str, Parameter]#
type: str#
uuid: str#
exception numerous.sdk.models.component.SubComponentNotFound(component_uuid)#

Bases: Exception

Raised when creating a Component is configured with a subcomponent that does not exist.

component_uuid: str#
numerous.sdk.models.component.extract_components(data, input_sources_mapping, file_manager_client)#
Return type:

dict[str, Component]