Salome HOME
Join modifications from branch OCC_debug_for_3_2_0b1
[samples/datafiles.git] / Superv / Python / GraphNoEqualInPortsNumber.py
diff --git a/Superv/Python/GraphNoEqualInPortsNumber.py b/Superv/Python/GraphNoEqualInPortsNumber.py
new file mode 100644 (file)
index 0000000..1279671
--- /dev/null
@@ -0,0 +1,39 @@
+
+# Generated python file of Graph aNewDataFlow_3
+
+from SuperV import *
+
+# Graph creation of aNewDataFlow_3
+def DefaNewDataFlow_3() :
+    aNewDataFlow_3 = Graph( 'aNewDataFlow_3' )
+    aNewDataFlow_3.SetName( 'aNewDataFlow_3' )
+    aNewDataFlow_3.SetAuthor( '' )
+    aNewDataFlow_3.SetComment( '' )
+    aNewDataFlow_3.Coords( 0 , 0 )
+    
+    # Creation of Factory Nodes
+    
+    # Creation of InLine Nodes
+    PyMulNode = []
+    PyMulNode.append( 'def MulNode(a,b): ' )
+    PyMulNode.append( '    c = a*b ' )
+    PyMulNode.append( '    return c ' )
+    MulNode = aNewDataFlow_3.INode( 'MulNode' , PyMulNode )
+    MulNode.SetName( 'MulNode' )
+    MulNode.SetAuthor( '' )
+    MulNode.SetComment( 'Compute Node' )
+    MulNode.Coords( 0 , 0 )
+    IMulNodea = MulNode.InPort( 'a' , 'double' )
+    IMulNodeGate = MulNode.GetInPort( 'Gate' )
+    OMulNodec = MulNode.OutPort( 'c' , 'double' )
+    OMulNodeGate = MulNode.GetOutPort( 'Gate' )
+    
+    # Input datas
+    IMulNodea.Input( 10.5 )
+    
+    # Output Ports of the graph
+    #OMulNodec = MulNode.GetOutPort( 'c' )
+    return aNewDataFlow_3
+
+
+aNewDataFlow_3 = DefaNewDataFlow_3()