parameters: (self, obj)
return_statement: return port_instance_name_list
docstring: Return list of ports as (instance_name, type, direction, max_number, role) tuples.
docstring_summary: Return list of ports as (instance_name, type, direction, max_number, role) tuples.
docstring_tokens: Return list of ports as ( instance_name type direction max_number role ) tuples .
function: def getPortsListMaxNum(self, obj):
          """
          Return list of ports as (instance_name, type, direction, max_number, role) tuples.
          """
          port_instance_name_list = []
          for port in obj.get_ports():
              i = port.get_name()
              t = port.get_type()
              d = port.get_direction()
              d = d[0].upper() + d[1:].lower()
              m = port.get_max_number()
              r = port.get_role()
              port_instance_name_list.append((i, t, d, m, r))
          return port_instance_name_list
function_tokens: def getPortsListMaxNum ( self , obj ) : port_instance_name_list = [ ] for port in obj . get_ports ( ) : i = port . get_name ( ) t = port . get_type ( ) d = port . get_direction ( ) d = d [ 0 ] . upper ( ) + d [ 1 : ] . lower ( ) m = port . get_max_number ( ) r = port . get_role ( ) port_instance_name_list . append ( ( i , t , d , m , r ) ) return port_instance_name_list