Salome HOME
Control of Dependencies in creation of streamlinks.
authorrahuel <rahuel@opencascade.com>
Tue, 27 Apr 2004 13:41:00 +0000 (13:41 +0000)
committerrahuel <rahuel@opencascade.com>
Tue, 27 Apr 2004 13:41:00 +0000 (13:41 +0000)
examples/GraphStreamInLines.py
examples/GraphStreamsXmlTest.py

index f368c1048e324a111d842428c030c684ab5cd57e..db7ca6791fdbdd8fb39cb4648d7c2c252940e572 100644 (file)
@@ -117,7 +117,7 @@ OSwitchOdd = Switch.OutPort( 'Odd' , 'long' )
 OSwitchEven = Switch.OutPort( 'Even' , 'int' )
 OSwitcha = Switch.OutPort( 'a' , 'int' )
 OSwitchDefault = Switch.OutPort( 'Default' , 'long' )
-ISwitchistream = Switch.InStreamPort( 'istream' , SALOME_ModuleCatalog.DATASTREAM_INTEGER , SALOME_ModuleCatalog.DATASTREAM_ITERATIVE )
+ISwitchistream = Switch.InStreamPort( 'istream' , SALOME_ModuleCatalog.DATASTREAM_INTEGER , SALOME_ModuleCatalog.DATASTREAM_TEMPORAL )
 OSwitchostream = Switch.OutStreamPort( 'ostream' , SALOME_ModuleCatalog.DATASTREAM_INTEGER , SALOME_ModuleCatalog.DATASTREAM_ITERATIVE )
 Switch.PrintPorts()
 EndSwitch.PrintPorts()
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()