Connection

class ospx.connection.Connection(name: str, source_endpoint: Endpoint, target_endpoint: Endpoint)

Bases: object

A connection is the primary artefact to connect outputs and inputs of componoents in a system.

A connection connects an output connector of one component with an input connector of another component.

__init__(name: str, source_endpoint: Endpoint, target_endpoint: Endpoint) None

Methods

__init__(name, source_endpoint, target_endpoint)

Attributes

is_valid

Consistency check.

is_variable_connection

Returns True if connection is a single variable connection.

is_variable_group_connection

Returns True if connection is a variable group connection.

property is_valid: bool

Consistency check. Returns True if connection is found fully defined and valid.

Returns:

True if valid. Otherwise False.

Return type:

bool

property is_variable_connection: bool

Returns True if connection is a single variable connection.

Returns:

True if single variable connection. Otherwise False.

Return type:

bool

property is_variable_group_connection: bool

Returns True if connection is a variable group connection.

Returns:

True if variable group connection. Otherwise False.

Return type:

bool