#NEWLINE# def __init__( self , workflow , key , shortname , name , num_input_ports , num_output_ports , prev_x = None ) : #NEWLINE# #INDENT# self . workflow = prev_x #NEWLINE# self . key = key #NEWLINE# self . shortname = shortname #NEWLINE# self . name = name #NEWLINE# self . input_ports = [ Port ( self , INPUT_PORT , i ) for i in xrange ( num_input_ports ) ] #NEWLINE# self . output_ports = [ Port ( self , OUTPUT_PORT , i ) for i in xrange ( num_output_ports ) ] #NEWLINE# self . layout_layer_number = UNDEFINED_LAYER #NEWLINE# self . layout_layer_index = 0 #NEWLINE# self . cached = False #NEWLINE# self . cached_in_degree = 0 #NEWLINE# self . cached_out_degree = 0 #NEWLINE# self . cached_connections_succ = [ ] #NEWLINE# self . cached_connections_pred = [ ] #NEWLINE# self . cached_succ = [ ] #NEWLINE# self . cached_pred = [ ] #NEWLINE# self . cached_num_succ = 0 #NEWLINE# self . cached_num_pred = 0 #NEWLINE# self . flags = 0 #NEWLINE# self . layout_pos = Vec2 ( 0 , 0 ) #NEWLINE# self . layout_dim = Vec2 ( 1 , 1 ) #NEWLINE# self . prev_x = prev_x