Add in_ports, out_ports, gpot_ports, spike_ports methods to Pattern class.