piel.types.connectivity.abstract#

Classes#

Port

This represents the fundamental data structure to identify a port.

Connection

This represents the fundamental data structure to identify a connection between two connection.

Component

This represents the fundamental data structure to identify a component with connection and internal or external connectivity.

Module Contents#

class Port(/, **data: Any)[source]#

Bases: piel.types.connectivity.core.Instance

This represents the fundamental data structure to identify a port.

parent_component_name: str = ''#
class Connection(/, **data: Any)[source]#

Bases: piel.types.connectivity.core.Instance

This represents the fundamental data structure to identify a connection between two connection.

Note that any connection has a

ports: tuple[Port, Port] | list[Port] = ()#
time: piel.types.connectivity.timing.TimeMetricsTypes#
class Component(/, **data: Any)[source]#

Bases: piel.types.connectivity.core.Instance

This represents the fundamental data structure to identify a component with connection and internal or external connectivity.

ports: list[Port] = []#
connections: list[Connection] = []#
components: list[Component] = []#

Note the recursive relationship that a component can be composed of multiple components.

metrics: list[piel.types.connectivity.metrics.ComponentMetrics] = []#

Note that a given component might have a set of metrics corresponding to multiple variations of the testing conditions.

get_port(port_name: str) Port | None[source]#

Get a port by its name.