]> SALOME platform Git repositories - modules/superv.git/blobdiff - examples/GraphStreamsXmlTest.py
Salome HOME
Control of Dependencies in creation of streamlinks.
[modules/superv.git] / examples / GraphStreamsXmlTest.py
index 560fa03449597410640e8397bbe79c67f59dab4c..afd5b2c6fa324b1938999ece0fdcde503ca4ae94 100644 (file)
@@ -2,18 +2,13 @@ from SuperV import *
 
 FlowGraph = Graph( 'FlowGraph' )
 Add = FlowGraph.FNode( 'AddComponent' , 'AddComponent' , 'Add' )
-res = Add.InStreamPort( 'istream' , 'long' )
-if res != None :
-    print "Error : creation of InStreamPort in a FlowGraph"
-
-res = Add.OutStreamPort( 'Ostream' , 'long' )
-if res != None :
-    print "Error : creation of OutStreamPort in a FlowGraph"
 
 Sub = FlowGraph.FNode( 'SubComponent' , 'SubComponent' , 'Sub' )
 Addz = Add.GetOutStreamPort( 'z' )
 if Addz != None :
     print "Error : GetOutStreamPort of a FlowPort in a FlowGraph"
+else :
+    print 'None : Ok'
 
 Addz = Add.Port( 'z' )
 try :
@@ -72,8 +67,6 @@ exec Sub_1.ListPorts()
 exec Mul_1.ListPorts()
 exec Div_1.ListPorts()
 
-# Error :
-
 
 GraphStreams.IsExecutable()