Salome HOME
Fix for bug IPAL9818 : Dataflow nodes have "No status" statuses during dataflow execu...
[modules/superv.git] / examples / GraphImportSalome.py
1
2 # Generated python file of Graph aNewDataFlow
3
4 from SuperV import *
5
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 )
13     
14     # Creation of Factory Nodes
15     
16     # Creation of InLine Nodes
17     PyVoidFunction = []
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' )
31     
32     # Output Ports of the graph
33     #OVoidFunctionDone = VoidFunction.GetOutPort( 'Done' )
34     return aNewDataFlow
35
36
37 aNewDataFlow = DefaNewDataFlow()