def add_coupling(self, source_port, source, target_port, target): # Both input and output ports are appended to the coupling list self.coupling_list.append( Coupling(source_port, source, target_port, target))