ipkiss3.all.Connector

class ipkiss3.all.Connector(connections=None, *args, **kwargs)

Base class for connectors.

A connector allows to connect two ports according to a predefined algorithm. Create a new connector by inheriting from this class and implementing the _connect method.

Note

The ports must have the same domain (optical or electrical).

classmethod connect(start_port, end_port, name=None, **properties)

Connect start_port to end_port.

Parameters:

start_port : i3.OpticalPort / i3.ElectricalPort

Starting port for the connection.

end_port : i3.OpticalPort / i3.ElectricalPort

Ending port for the connection.

name : str

Name for the connection. If None, IPKISS chooses a unique name based on PCell naming conventions.

Returns:

Instance of i3.PCell