Lines Matching refs:connections
19 Combine n-1 connections according to the following rule:
20 1. If an interface is in multiple connections, and in each connection it is
21 on the same end (to or from), all the connections can be combined into a single connection.
22 2. If an interface is in multiple connections and the condition in 1 does not
39 def add_connections(connections):
41 for connection in connections:
51 # is a set of connections to remove from the ast, and
66 for connections in multi:
67 if len(connections) == 1:
69 name = ".".join(sorted([c.name for c in connections]))
70 to_ends = {end for c in connections for end in c.to_ends}
71 from_ends = {end for c in connections for end in c.from_ends}
73 for c in connections:
76 raise ParseError("Multiple connectors used in connections involving %s. (%s, %s)"
83 yield(connections, new_connection)
95 candidates = add_connections(ast_lifted.assembly.connections)
99 ast_lifted.assembly.connections.remove(c)
100 ast_lifted.assembly.connections.append(conn_to_add)