#NEWLINE# def connectid( self , connection ) : #NEWLINE# #INDENT# ( src_actor , src_port , dst_actor , dst_port ) = connection #NEWLINE# dst_actor_id = self . actor_map [ dst_actor ] #NEWLINE# src_actor_id = self . actor_map [ src_actor ] #NEWLINE# src_node = self . node . id #NEWLINE# result = self . node . connect ( actor_id = dst_actor_id , port_name = dst_port , port_dir = 'in' , peer_node_id = src_node , peer_actor_id = src_actor_id , peer_port_name = src_port , peer_port_dir = 'out' ) #NEWLINE# return result