2 # Generated python file of Graph aNewDataFlow
6 # Graph creation of aNewDataFlow
7 def DefaNewDataFlow() :
8 aNewDataFlow = Graph( 'aNewDataFlow' )
9 aNewDataFlow.SetName( 'aNewDataFlow' )
10 aNewDataFlow.SetAuthor( '' )
11 aNewDataFlow.SetComment( '' )
12 aNewDataFlow.Coords( 0 , 0 )
14 # Creation of Factory Nodes
16 # Creation of InLine Nodes
18 PyVoidFunction.append( 'import salome ' )
19 PyVoidFunction.append( 'def VoidFunction() : ' )
20 PyVoidFunction.append( ' print 'VoidFunction()' ' )
21 PyVoidFunction.append( ' return 'Done' ' )
22 PyVoidFunction.append( '' )
23 VoidFunction = aNewDataFlow.INode( 'VoidFunction' , PyVoidFunction )
24 VoidFunction.SetName( 'VoidFunction' )
25 VoidFunction.SetAuthor( '' )
26 VoidFunction.SetComment( 'Compute Node' )
27 VoidFunction.Coords( 60 , 58 )
28 IVoidFunctionGate = VoidFunction.GetInPort( 'Gate' )
29 OVoidFunctionDone = VoidFunction.OutPort( 'Done' , 'string' )
30 OVoidFunctionGate = VoidFunction.GetOutPort( 'Gate' )
32 # Output Ports of the graph
33 #OVoidFunctionDone = VoidFunction.GetOutPort( 'Done' )
37 aNewDataFlow = DefaNewDataFlow()