From 60f9dc6bd1777766430073a0e5367aa9c63ceffc Mon Sep 17 00:00:00 2001 From: rahuel Date: Tue, 27 Apr 2004 13:41:00 +0000 Subject: [PATCH] Control of Dependencies in creation of streamlinks. --- examples/GraphStreamInLines.py | 2 +- examples/GraphStreamsXmlTest.py | 11 ++--------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/examples/GraphStreamInLines.py b/examples/GraphStreamInLines.py index f368c10..db7ca67 100644 --- a/examples/GraphStreamInLines.py +++ b/examples/GraphStreamInLines.py @@ -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() diff --git a/examples/GraphStreamsXmlTest.py b/examples/GraphStreamsXmlTest.py index 560fa03..afd5b2c 100644 --- a/examples/GraphStreamsXmlTest.py +++ b/examples/GraphStreamsXmlTest.py @@ -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() -- 2.39.2