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 :
exec Mul_1.ListPorts()
exec Div_1.ListPorts()
-# Error :
-
GraphStreams.IsExecutable()