parameters: (self, the_parsed_port_xml)
return_statement: return the_port
docstring: Create a port (interface) type model here.
docstring_summary: Create a port (interface) type model here.
docstring_tokens: Create a port ( interface ) type model here .
function: def create(self, the_parsed_port_xml):
          """
          Create a port (interface) type model here.
          """
          x = the_parsed_port_xml
          port_obj = x.get_interface()
          include_header_files_list = x.get_include_header_files()
          include_header_serial_files_list = (
              x.get_includes_serial_files() + x.get_include_array_files()
          )
          include_header_enum_files_list = x.get_include_enum_files()
          args_obj_list = x.get_args()
          #
          port_namespace = port_obj.get_namespace()
          port_name = port_obj.get_name()
          port_comment = port_obj.get_comment()
          port_return_type = port_obj.get_return_type()
          port_return_modifier = port_obj.get_return_modifier()
          #
          port_xml_filename = x.get_xml_filename()
          #
          # Add port args here...
          #
          args_list = []
          for arg in args_obj_list:
              n = arg.get_name()
              t = arg.get_type()
              m = arg.get_modifier()
              s = arg.get_size()
              c = arg.get_comment()
              args_list.append(Arg.Arg(n, t, m, s, c))
          #
          # Instance the port here...
          #
          the_port = Port.Port(
              None, port_name, None, None, None, None, None, port_xml_filename
          )
          the_port.set(
              port_namespace,
              args_list,
              include_header_files_list,
              include_header_serial_files_list,
              include_header_enum_files_list,
              port_comment,
          )
          the_port.set_return(port_return_type, port_return_modifier)
          return the_port
function_tokens: def create ( self , the_parsed_port_xml ) : x = the_parsed_port_xml port_obj = x . get_interface ( ) include_header_files_list = x . get_include_header_files ( ) include_header_serial_files_list = ( x . get_includes_serial_files ( ) + x . get_include_array_files ( ) ) include_header_enum_files_list = x . get_include_enum_files ( ) args_obj_list = x . get_args ( ) # port_namespace = port_obj . get_namespace ( ) port_name = port_obj . get_name ( ) port_comment = port_obj . get_comment ( ) port_return_type = port_obj . get_return_type ( ) port_return_modifier = port_obj . get_return_modifier ( ) # port_xml_filename = x . get_xml_filename ( ) # # Add port args here... # args_list = [ ] for arg in args_obj_list : n = arg . get_name ( ) t = arg . get_type ( ) m = arg . get_modifier ( ) s = arg . get_size ( ) c = arg . get_comment ( ) args_list . append ( Arg . Arg ( n , t , m , s , c ) ) # # Instance the port here... # the_port = Port . Port ( None , port_name , None , None , None , None , None , port_xml_filename ) the_port . set ( port_namespace , args_list , include_header_files_list , include_header_serial_files_list , include_header_enum_files_list , port_comment , ) the_port . set_return ( port_return_type , port_return_modifier ) return the_port