--- /dev/null
+
+# Generated python file of Graph GraphGOTO_2_2
+
+from SuperV import *
+
+# Graph creation of GraphGOTO_2_2
+def DefGraphGOTO_2_2() :
+ GraphGOTO_2_2 = Graph( 'GraphGOTO_2_2' )
+ GraphGOTO_2_2.SetName( 'GraphGOTO_2_2' )
+ GraphGOTO_2_2.SetAuthor( 'JR' )
+ GraphGOTO_2_2.SetComment( 'Syracuse algorithm' )
+ GraphGOTO_2_2.Coords( 0 , 0 )
+
+ # Creation of Factory Nodes
+
+ test_ISEVEN = GraphGOTO_2_2.FNode( 'SyrComponent' , 'SyrComponent' , 'C_ISEVEN' )
+ test_ISEVEN.SetName( 'test_ISEVEN' )
+ test_ISEVEN.SetAuthor( '' )
+ test_ISEVEN.SetContainer( 'localhost/FactoryServer' )
+ test_ISEVEN.SetComment( 'C_ISEVEN from SyrComponent' )
+ test_ISEVEN.Coords( 195 , 417 )
+ Itest_ISEVENanInteger = test_ISEVEN.GetInPort( 'anInteger' )
+ Itest_ISEVENGate = test_ISEVEN.GetInPort( 'Gate' )
+ Otest_ISEVENBoolEven = test_ISEVEN.GetOutPort( 'BoolEven' )
+ Otest_ISEVENGate = test_ISEVEN.GetOutPort( 'Gate' )
+
+ test_ISONE = GraphGOTO_2_2.FNode( 'SyrComponent' , 'SyrComponent' , 'C_ISONE' )
+ test_ISONE.SetName( 'test_ISONE' )
+ test_ISONE.SetAuthor( '' )
+ test_ISONE.SetContainer( 'localhost/FactoryServer' )
+ test_ISONE.SetComment( 'C_ISONE from SyrComponent' )
+ test_ISONE.Coords( 201 , 145 )
+ Itest_ISONEanInteger = test_ISONE.GetInPort( 'anInteger' )
+ Itest_ISONEGate = test_ISONE.GetInPort( 'Gate' )
+ Otest_ISONEBoolOne = test_ISONE.GetOutPort( 'BoolOne' )
+ Otest_ISONEGate = test_ISONE.GetOutPort( 'Gate' )
+
+ m3p1 = GraphGOTO_2_2.FNode( 'SyrComponent' , 'SyrComponent' , 'C_M3P1' )
+ m3p1.SetName( 'm3p1' )
+ m3p1.SetAuthor( '' )
+ m3p1.SetContainer( 'localhost/FactoryServer' )
+ m3p1.SetComment( 'C_M3P1 from SyrComponent' )
+ m3p1.Coords( 861 , 46 )
+ Im3p1anOddInteger = m3p1.GetInPort( 'anOddInteger' )
+ Im3p1Gate = m3p1.GetInPort( 'Gate' )
+ Om3p1anEvenInteger = m3p1.GetOutPort( 'anEvenInteger' )
+ Om3p1Gate = m3p1.GetOutPort( 'Gate' )
+
+ div2 = GraphGOTO_2_2.FNode( 'SyrComponent' , 'SyrComponent' , 'C_DIV2' )
+ div2.SetName( 'div2' )
+ div2.SetAuthor( '' )
+ div2.SetContainer( 'localhost/FactoryServer' )
+ div2.SetComment( 'C_DIV2 from SyrComponent' )
+ div2.Coords( 858 , 466 )
+ Idiv2anEvenInteger = div2.GetInPort( 'anEvenInteger' )
+ Idiv2Gate = div2.GetInPort( 'Gate' )
+ Odiv2anInteger = div2.GetOutPort( 'anInteger' )
+ Odiv2Gate = div2.GetOutPort( 'Gate' )
+
+ incr = GraphGOTO_2_2.FNode( 'SyrComponent' , 'SyrComponent' , 'C_INCR' )
+ incr.SetName( 'incr' )
+ incr.SetAuthor( '' )
+ incr.SetContainer( 'localhost/FactoryServer' )
+ incr.SetComment( 'C_INCR from SyrComponent' )
+ incr.Coords( 865 , 169 )
+ IincraCount = incr.GetInPort( 'aCount' )
+ IincrGate = incr.GetInPort( 'Gate' )
+ OincraNewCount = incr.GetOutPort( 'aNewCount' )
+ OincrGate = incr.GetOutPort( 'Gate' )
+
+ # Creation of InLine Nodes
+ Pylabel_begin = []
+ Pylabel_begin.append( 'def label_begin( NB , KB ):' )
+ Pylabel_begin.append( ' print "label_begin",NB,KB' )
+ Pylabel_begin.append( ' return NB,KB' )
+ label_begin = GraphGOTO_2_2.INode( 'label_begin' , Pylabel_begin )
+ label_begin.SetName( 'label_begin' )
+ label_begin.SetAuthor( '' )
+ label_begin.SetComment( 'Python function' )
+ label_begin.Coords( 9 , 250 )
+ Ilabel_beginNB = label_begin.InPort( 'NB' , 'long' )
+ Ilabel_beginKB = label_begin.InPort( 'KB' , 'long' )
+ Ilabel_beginGate = label_begin.GetInPort( 'Gate' )
+ Olabel_beginNT = label_begin.OutPort( 'NT' , 'long' )
+ Olabel_beginKT = label_begin.OutPort( 'KT' , 'long' )
+ Olabel_beginGate = label_begin.GetOutPort( 'Gate' )
+
+ Pylabel_test = []
+ Pylabel_test.append( 'def label_test( ValEven , ValOne , NB , KB ):' )
+ Pylabel_test.append( ' print "label_begin",ValEven,ValOne,NB,KB' )
+ Pylabel_test.append( ' return ValEven,ValOne,NB,KB' )
+ label_test = GraphGOTO_2_2.INode( 'label_test' , Pylabel_test )
+ label_test.SetName( 'label_test' )
+ label_test.SetAuthor( '' )
+ label_test.SetComment( 'Python function' )
+ label_test.Coords( 396 , 193 )
+ Ilabel_testValEven = label_test.InPort( 'ValEven' , 'long' )
+ Ilabel_testValOne = label_test.InPort( 'ValOne' , 'long' )
+ Ilabel_testNT = label_test.InPort( 'NT' , 'long' )
+ Ilabel_testKT = label_test.InPort( 'KT' , 'long' )
+ Ilabel_testGate = label_test.GetInPort( 'Gate' )
+ Olabel_testValEven = label_test.OutPort( 'ValEven' , 'long' )
+ Olabel_testValOne = label_test.OutPort( 'ValOne' , 'long' )
+ Olabel_testNT = label_test.OutPort( 'NT' , 'long' )
+ Olabel_testKT = label_test.OutPort( 'KT' , 'long' )
+ Olabel_testGate = label_test.GetOutPort( 'Gate' )
+
+ # Creation of Switch Nodes
+ Pytest = []
+ Pytest.append( 'def Switch_OneEven( ValOne , ValEven , NT , KT ) :' )
+ Pytest.append( ' Finished = ValOne' )
+ Pytest.append( ' if Finished == 0 :' )
+ Pytest.append( ' Incr = 1' )
+ Pytest.append( ' Even = ValEven' )
+ Pytest.append( ' if Even == 0 :' )
+ Pytest.append( ' Odd = 1' )
+ Pytest.append( ' else :' )
+ Pytest.append( ' Odd = 0' )
+ Pytest.append( ' else :' )
+ Pytest.append( ' Incr = 0' )
+ Pytest.append( ' Even = 0' )
+ Pytest.append( ' Odd = 0' )
+ Pytest.append( ' Even = ValEven' )
+ Pytest.append( ' return Finished,Incr,Even,Odd,NT,KT' )
+ test,EndSwitch_OneEven = GraphGOTO_2_2.SNode( 'Switch_OneEven' , Pytest )
+ EndSwitch_OneEven.SetName( 'EndSwitch_OneEven' )
+ EndSwitch_OneEven.SetAuthor( '' )
+ EndSwitch_OneEven.SetComment( 'Compute Node' )
+ EndSwitch_OneEven.Coords( 1256 , 305 )
+ PyEndSwitch_OneEven = []
+ PyEndSwitch_OneEven.append( 'def EndSwitch_OneEven( Finished , K ):' )
+ PyEndSwitch_OneEven.append( ' print "label_begin",Finished,K' )
+ PyEndSwitch_OneEven.append( ' return Finished,K' )
+ EndSwitch_OneEven.SetPyFunction( 'EndSwitch_OneEven' , PyEndSwitch_OneEven )
+ IEndSwitch_OneEvenFinished = EndSwitch_OneEven.InPort( 'Finished' , 'long' )
+ IEndSwitch_OneEvenK = EndSwitch_OneEven.InPort( 'K' , 'long' )
+ IEndSwitch_OneEvenDefault = EndSwitch_OneEven.GetInPort( 'Default' )
+ OEndSwitch_OneEvenFinished = EndSwitch_OneEven.OutPort( 'Finished' , 'long' )
+ OEndSwitch_OneEvenK = EndSwitch_OneEven.OutPort( 'K' , 'long' )
+ OEndSwitch_OneEvenGate = EndSwitch_OneEven.GetOutPort( 'Gate' )
+ test.SetName( 'test' )
+ test.SetAuthor( '' )
+ test.SetComment( 'Compute Node' )
+ test.Coords( 595 , 239 )
+ ItestValOne = test.InPort( 'ValOne' , 'long' )
+ ItestValEven = test.InPort( 'ValEven' , 'long' )
+ ItestNT = test.InPort( 'NT' , 'long' )
+ ItestKT = test.InPort( 'KT' , 'long' )
+ ItestGate = test.GetInPort( 'Gate' )
+ OtestFinished = test.OutPort( 'Finished' , 'long' )
+ OtestIncr = test.OutPort( 'Incr' , 'long' )
+ OtestEven = test.OutPort( 'Even' , 'long' )
+ OtestOdd = test.OutPort( 'Odd' , 'long' )
+ OtestN = test.OutPort( 'N' , 'long' )
+ OtestK = test.OutPort( 'K' , 'long' )
+ OtestDefault = test.GetOutPort( 'Default' )
+
+ # Creation of GOTO Nodes
+ Pycontrol_m3p1 = []
+ Pycontrol_m3p1.append( 'def control_m3p1( N , K ):' )
+ Pycontrol_m3p1.append( ' return 0,1,N,K' )
+ control_m3p1 = GraphGOTO_2_2.GNode( 'control_m3p1' , Pycontrol_m3p1 , 'label_test' )
+ control_m3p1.SetName( 'control_m3p1' )
+ control_m3p1.SetAuthor( '' )
+ control_m3p1.SetComment( 'Compute Node' )
+ control_m3p1.Coords( 1073 , 87 )
+ Icontrol_m3p1N = control_m3p1.InPort( 'N' , 'long' )
+ Icontrol_m3p1K = control_m3p1.InPort( 'K' , 'long' )
+ Icontrol_m3p1Gate = control_m3p1.GetInPort( 'Gate' )
+ Ocontrol_m3p1ValOne = control_m3p1.OutPort( 'ValOne' , 'long' )
+ Ocontrol_m3p1ValEven = control_m3p1.OutPort( 'ValEven' , 'long' )
+ Ocontrol_m3p1NT = control_m3p1.OutPort( 'NT' , 'long' )
+ Ocontrol_m3p1KT = control_m3p1.OutPort( 'KT' , 'long' )
+ Ocontrol_m3p1Gate = control_m3p1.GetOutPort( 'Gate' )
+
+ Pycontrol_div2 = []
+ Pycontrol_div2.append( 'def control_div2( N , NB ) :' )
+ Pycontrol_div2.append( ' return N,NB' )
+ control_div2 = GraphGOTO_2_2.GNode( 'control_div2' , Pycontrol_div2 , 'label_begin' )
+ control_div2.SetName( 'control_div2' )
+ control_div2.SetAuthor( '' )
+ control_div2.SetComment( 'Compute Node' )
+ control_div2.Coords( 1128 , 453 )
+ Icontrol_div2N = control_div2.InPort( 'N' , 'long' )
+ Icontrol_div2K = control_div2.InPort( 'K' , 'long' )
+ Icontrol_div2Gate = control_div2.GetInPort( 'Gate' )
+ Ocontrol_div2NB = control_div2.OutPort( 'NB' , 'long' )
+ Ocontrol_div2KB = control_div2.OutPort( 'KB' , 'long' )
+ Ocontrol_div2Gate = control_div2.GetOutPort( 'Gate' )
+
+ # Creation of Links
+ Ltest_ISEVENBoolEvenlabel_testValEven = GraphGOTO_2_2.Link( Otest_ISEVENBoolEven , Ilabel_testValEven )
+ Ltest_ISEVENBoolEvenlabel_testValEven.AddCoord( 1 , 369 , 273 )
+ Ltest_ISEVENBoolEvenlabel_testValEven.AddCoord( 2 , 370 , 498 )
+
+ Ltest_ISONEBoolOnelabel_testValOne = GraphGOTO_2_2.Link( Otest_ISONEBoolOne , Ilabel_testValOne )
+ Ltest_ISONEBoolOnelabel_testValOne.AddCoord( 1 , 384 , 281 )
+ Ltest_ISONEBoolOnelabel_testValOne.AddCoord( 2 , 384 , 225 )
+
+ Lm3p1anEvenIntegercontrol_m3p1N = GraphGOTO_2_2.Link( Om3p1anEvenInteger , Icontrol_m3p1N )
+
+ Ldiv2anIntegercontrol_div2N = GraphGOTO_2_2.Link( Odiv2anInteger , Icontrol_div2N )
+
+ LincraNewCountcontrol_m3p1K = GraphGOTO_2_2.Link( OincraNewCount , Icontrol_m3p1K )
+ LincraNewCountcontrol_m3p1K.AddCoord( 1 , 1048 , 139 )
+ LincraNewCountcontrol_m3p1K.AddCoord( 2 , 1048 , 241 )
+
+ LincraNewCountcontrol_div2K = GraphGOTO_2_2.Link( OincraNewCount , Icontrol_div2K )
+ LincraNewCountcontrol_div2K.AddCoord( 1 , 1052 , 504 )
+ LincraNewCountcontrol_div2K.AddCoord( 2 , 1049 , 239 )
+
+ Llabel_beginNTlabel_testNT = GraphGOTO_2_2.Link( Olabel_beginNT , Ilabel_testNT )
+
+ Llabel_beginNTtest_ISONEanInteger = GraphGOTO_2_2.Link( Olabel_beginNT , Itest_ISONEanInteger )
+ Llabel_beginNTtest_ISONEanInteger.AddCoord( 1 , 192 , 226 )
+ Llabel_beginNTtest_ISONEanInteger.AddCoord( 2 , 191 , 331 )
+
+ Llabel_beginNTtest_ISEVENanInteger = GraphGOTO_2_2.Link( Olabel_beginNT , Itest_ISEVENanInteger )
+ Llabel_beginNTtest_ISEVENanInteger.AddCoord( 1 , 191 , 494 )
+ Llabel_beginNTtest_ISEVENanInteger.AddCoord( 2 , 192 , 331 )
+
+ Llabel_beginKTlabel_testKT = GraphGOTO_2_2.Link( Olabel_beginKT , Ilabel_testKT )
+
+ Llabel_testValEventestValEven = GraphGOTO_2_2.Link( Olabel_testValEven , ItestValEven )
+
+ Llabel_testValOnetestValOne = GraphGOTO_2_2.Link( Olabel_testValOne , ItestValOne )
+
+ Llabel_testNTtestNT = GraphGOTO_2_2.Link( Olabel_testNT , ItestNT )
+
+ Llabel_testKTtestKT = GraphGOTO_2_2.Link( Olabel_testKT , ItestKT )
+
+ LtestFinishedEndSwitch_OneEvenFinished = GraphGOTO_2_2.Link( OtestFinished , IEndSwitch_OneEvenFinished )
+
+ LtestEvendiv2Gate = GraphGOTO_2_2.Link( OtestEven , Idiv2Gate )
+ LtestEvendiv2Gate.AddCoord( 1 , 793 , 561 )
+ LtestEvendiv2Gate.AddCoord( 2 , 794 , 310 )
+
+ LtestOddm3p1Gate = GraphGOTO_2_2.Link( OtestOdd , Im3p1Gate )
+ LtestOddm3p1Gate.AddCoord( 1 , 778 , 138 )
+ LtestOddm3p1Gate.AddCoord( 2 , 780 , 328 )
+
+ LtestNm3p1anOddInteger = GraphGOTO_2_2.Link( OtestN , Im3p1anOddInteger )
+ LtestNm3p1anOddInteger.AddCoord( 1 , 808 , 113 )
+ LtestNm3p1anOddInteger.AddCoord( 2 , 807 , 352 )
+
+ LtestNdiv2anEvenInteger = GraphGOTO_2_2.Link( OtestN , Idiv2anEvenInteger )
+ LtestNdiv2anEvenInteger.AddCoord( 1 , 806 , 537 )
+ LtestNdiv2anEvenInteger.AddCoord( 2 , 807 , 351 )
+
+ LtestKEndSwitch_OneEvenK = GraphGOTO_2_2.Link( OtestK , IEndSwitch_OneEvenK )
+
+ LtestKincraCount = GraphGOTO_2_2.Link( OtestK , IincraCount )
+ LtestKincraCount.AddCoord( 1 , 773 , 236 )
+ LtestKincraCount.AddCoord( 2 , 773 , 370 )
+
+ LtestDefaultEndSwitch_OneEvenDefault = GraphGOTO_2_2.Link( OtestDefault , IEndSwitch_OneEvenDefault )
+ LtestDefaultEndSwitch_OneEvenDefault.AddCoord( 1 , 840 , 381 )
+ LtestDefaultEndSwitch_OneEvenDefault.AddCoord( 2 , 839 , 394 )
+
+ Lcontrol_m3p1Gatelabel_testGate = GraphGOTO_2_2.Link( Ocontrol_m3p1Gate , Ilabel_testGate )
+ Lcontrol_m3p1Gatelabel_testGate.AddCoord( 1 , 388 , 388 )
+ Lcontrol_m3p1Gatelabel_testGate.AddCoord( 2 , 389 , 597 )
+ Lcontrol_m3p1Gatelabel_testGate.AddCoord( 3 , 1441 , 604 )
+ Lcontrol_m3p1Gatelabel_testGate.AddCoord( 4 , 1441 , 199 )
+
+ Lcontrol_div2Gatelabel_beginGate = GraphGOTO_2_2.Link( Ocontrol_div2Gate , Ilabel_beginGate )
+ Lcontrol_div2Gatelabel_beginGate.AddCoord( 1 , 4 , 388 )
+ Lcontrol_div2Gatelabel_beginGate.AddCoord( 2 , 3 , 587 )
+ Lcontrol_div2Gatelabel_beginGate.AddCoord( 3 , 1307 , 586 )
+ Lcontrol_div2Gatelabel_beginGate.AddCoord( 4 , 1307 , 528 )
+
+ # Input datas
+ Ilabel_beginNB.Input( 7 )
+ Ilabel_beginKB.Input( 0 )
+
+ # Output Ports of the graph
+ #OtestIncr = test.GetOutPort( 'Incr' )
+ #OEndSwitch_OneEvenFinished = EndSwitch_OneEven.GetOutPort( 'Finished' )
+ #OEndSwitch_OneEvenK = EndSwitch_OneEven.GetOutPort( 'K' )
+ return GraphGOTO_2_2
+
+
+GraphGOTO_2_2 = DefGraphGOTO_2_2()
--- /dev/null
+<!DOCTYPE SuperGraph>
+<supergraph>
+<dataflow>
+<info-list>
+<node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>GraphGOTO_2_2</node-name>
+ <kind>1</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>GraphGOTO_2_2</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>label_begin__NB</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>label_begin__KB</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>test__Incr</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>EndSwitch_OneEven__Finished</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>EndSwitch_OneEven__K</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list/>
+ <creation-date>17/1/2005 - 13:44:46</creation-date>
+ <lastmodification-date>18/1/2005 - 16:18:56</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>JR</author>
+ <container>?</container>
+ <comment>Syracuse algorithm</comment>
+ <x-position>0</x-position>
+ <y-position>0</y-position> </node> </info-list>
+ <node-list>
+<node>
+<component-name>SyrComponent</component-name>
+ <interface-name>SyrComponent</interface-name>
+ <node-name>test_ISEVEN</node-name>
+ <kind>0</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>C_ISEVEN</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>anInteger</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>BoolEven</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list/>
+ <creation-date>18/1/2005 - 16:18:56</creation-date>
+ <lastmodification-date>18/1/2005 - 16:18:56</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>localhost/FactoryServer</container>
+ <comment>C_ISEVEN from SyrComponent</comment>
+ <x-position>195</x-position>
+ <y-position>417</y-position> </node>
+ <node>
+<component-name>SyrComponent</component-name>
+ <interface-name>SyrComponent</interface-name>
+ <node-name>test_ISONE</node-name>
+ <kind>0</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>C_ISONE</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>anInteger</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>BoolOne</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list/>
+ <creation-date>18/1/2005 - 16:18:56</creation-date>
+ <lastmodification-date>18/1/2005 - 16:18:56</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>localhost/FactoryServer</container>
+ <comment>C_ISONE from SyrComponent</comment>
+ <x-position>201</x-position>
+ <y-position>145</y-position> </node>
+ <node>
+<component-name>SyrComponent</component-name>
+ <interface-name>SyrComponent</interface-name>
+ <node-name>m3p1</node-name>
+ <kind>0</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>C_M3P1</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>anOddInteger</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>anEvenInteger</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list/>
+ <creation-date>18/1/2005 - 16:18:56</creation-date>
+ <lastmodification-date>18/1/2005 - 16:18:56</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>localhost/FactoryServer</container>
+ <comment>C_M3P1 from SyrComponent</comment>
+ <x-position>861</x-position>
+ <y-position>46</y-position> </node>
+ <node>
+<component-name>SyrComponent</component-name>
+ <interface-name>SyrComponent</interface-name>
+ <node-name>div2</node-name>
+ <kind>0</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>C_DIV2</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>anEvenInteger</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>anInteger</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list/>
+ <creation-date>18/1/2005 - 16:18:56</creation-date>
+ <lastmodification-date>18/1/2005 - 16:18:56</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>localhost/FactoryServer</container>
+ <comment>C_DIV2 from SyrComponent</comment>
+ <x-position>858</x-position>
+ <y-position>466</y-position> </node>
+ <node>
+<component-name>SyrComponent</component-name>
+ <interface-name>SyrComponent</interface-name>
+ <node-name>incr</node-name>
+ <kind>0</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>C_INCR</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>aCount</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>aNewCount</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list/>
+ <creation-date>18/1/2005 - 16:18:56</creation-date>
+ <lastmodification-date>18/1/2005 - 16:18:56</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>localhost/FactoryServer</container>
+ <comment>C_INCR from SyrComponent</comment>
+ <x-position>865</x-position>
+ <y-position>169</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>label_begin</node-name>
+ <kind>3</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>label_begin</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>NB</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>KB</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>NT</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>KT</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>label_begin</FuncName>
+ <PyFunc><![CDATA[def label_begin( NB , KB ):]]></PyFunc>
+ <PyFunc><![CDATA[ print "label_begin",NB,KB]]></PyFunc>
+ <PyFunc><![CDATA[ return NB,KB]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>18/1/2005 - 16:18:56</creation-date>
+ <lastmodification-date>18/1/2005 - 16:18:56</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Python function</comment>
+ <x-position>9</x-position>
+ <y-position>250</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>label_test</node-name>
+ <kind>3</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>label_test</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>ValEven</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>ValOne</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>NT</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>KT</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>ValEven</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>ValOne</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>NT</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>KT</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>label_test</FuncName>
+ <PyFunc><![CDATA[def label_test( ValEven , ValOne , NB , KB ):]]></PyFunc>
+ <PyFunc><![CDATA[ print "label_begin",ValEven,ValOne,NB,KB]]></PyFunc>
+ <PyFunc><![CDATA[ return ValEven,ValOne,NB,KB]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>18/1/2005 - 16:18:56</creation-date>
+ <lastmodification-date>18/1/2005 - 16:18:56</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Python function</comment>
+ <x-position>396</x-position>
+ <y-position>193</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>test</node-name>
+ <kind>6</kind>
+ <coupled-node>EndSwitch_OneEven</coupled-node>
+ <service>
+<service-name>test</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>ValOne</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>ValEven</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>NT</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>KT</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Finished</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Incr</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Even</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Odd</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>N</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>K</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>Switch_OneEven</FuncName>
+ <PyFunc><![CDATA[def Switch_OneEven( ValOne , ValEven , NT , KT ) :]]></PyFunc>
+ <PyFunc><![CDATA[ Finished = ValOne]]></PyFunc>
+ <PyFunc><![CDATA[ if Finished == 0 :]]></PyFunc>
+ <PyFunc><![CDATA[ Incr = 1]]></PyFunc>
+ <PyFunc><![CDATA[ Even = ValEven]]></PyFunc>
+ <PyFunc><![CDATA[ if Even == 0 :]]></PyFunc>
+ <PyFunc><![CDATA[ Odd = 1]]></PyFunc>
+ <PyFunc><![CDATA[ else :]]></PyFunc>
+ <PyFunc><![CDATA[ Odd = 0]]></PyFunc>
+ <PyFunc><![CDATA[ else :]]></PyFunc>
+ <PyFunc><![CDATA[ Incr = 0]]></PyFunc>
+ <PyFunc><![CDATA[ Even = 0]]></PyFunc>
+ <PyFunc><![CDATA[ Odd = 0]]></PyFunc>
+ <PyFunc><![CDATA[ Even = ValEven]]></PyFunc>
+ <PyFunc><![CDATA[ return Finished,Incr,Even,Odd,NT,KT]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>18/1/2005 - 16:18:56</creation-date>
+ <lastmodification-date>18/1/2005 - 16:18:56</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>595</x-position>
+ <y-position>239</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>EndSwitch_OneEven</node-name>
+ <kind>7</kind>
+ <coupled-node>test</coupled-node>
+ <service>
+<service-name>EndSwitch_OneEven</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Finished</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>K</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Finished</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>K</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>EndSwitch_OneEven</FuncName>
+ <PyFunc><![CDATA[def EndSwitch_OneEven( Finished , K ):]]></PyFunc>
+ <PyFunc><![CDATA[ print "label_begin",Finished,K]]></PyFunc>
+ <PyFunc><![CDATA[ return Finished,K]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>18/1/2005 - 16:18:56</creation-date>
+ <lastmodification-date>18/1/2005 - 16:18:56</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>1256</x-position>
+ <y-position>305</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>control_m3p1</node-name>
+ <kind>8</kind>
+ <coupled-node>label_test</coupled-node>
+ <service>
+<service-name>control_m3p1</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>N</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>K</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>ValOne</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>ValEven</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>NT</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>KT</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>control_m3p1</FuncName>
+ <PyFunc><![CDATA[def control_m3p1( N , K ):]]></PyFunc>
+ <PyFunc><![CDATA[ return 0,1,N,K]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>18/1/2005 - 16:18:56</creation-date>
+ <lastmodification-date>18/1/2005 - 16:18:56</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>1073</x-position>
+ <y-position>87</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>control_div2</node-name>
+ <kind>8</kind>
+ <coupled-node>label_begin</coupled-node>
+ <service>
+<service-name>control_div2</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>N</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>K</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>NB</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>KB</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>control_div2</FuncName>
+ <PyFunc><![CDATA[def control_div2( N , NB ) :]]></PyFunc>
+ <PyFunc><![CDATA[ return N,NB]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>18/1/2005 - 16:18:56</creation-date>
+ <lastmodification-date>18/1/2005 - 16:18:56</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>1128</x-position>
+ <y-position>453</y-position> </node> </node-list>
+ <link-list>
+<link>
+<fromnode-name>test_ISEVEN</fromnode-name>
+ <fromserviceparameter-name>BoolEven</fromserviceparameter-name>
+ <tonode-name>label_test</tonode-name>
+ <toserviceparameter-name>ValEven</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>369</x>
+ <y>273</y> </coord>
+ <coord>
+<x>370</x>
+ <y>498</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>test_ISONE</fromnode-name>
+ <fromserviceparameter-name>BoolOne</fromserviceparameter-name>
+ <tonode-name>label_test</tonode-name>
+ <toserviceparameter-name>ValOne</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>384</x>
+ <y>281</y> </coord>
+ <coord>
+<x>384</x>
+ <y>225</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>m3p1</fromnode-name>
+ <fromserviceparameter-name>anEvenInteger</fromserviceparameter-name>
+ <tonode-name>control_m3p1</tonode-name>
+ <toserviceparameter-name>N</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>div2</fromnode-name>
+ <fromserviceparameter-name>anInteger</fromserviceparameter-name>
+ <tonode-name>control_div2</tonode-name>
+ <toserviceparameter-name>N</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>incr</fromnode-name>
+ <fromserviceparameter-name>aNewCount</fromserviceparameter-name>
+ <tonode-name>control_m3p1</tonode-name>
+ <toserviceparameter-name>K</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>1048</x>
+ <y>139</y> </coord>
+ <coord>
+<x>1048</x>
+ <y>241</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>incr</fromnode-name>
+ <fromserviceparameter-name>aNewCount</fromserviceparameter-name>
+ <tonode-name>control_div2</tonode-name>
+ <toserviceparameter-name>K</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>1052</x>
+ <y>504</y> </coord>
+ <coord>
+<x>1049</x>
+ <y>239</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>label_begin</fromnode-name>
+ <fromserviceparameter-name>NT</fromserviceparameter-name>
+ <tonode-name>label_test</tonode-name>
+ <toserviceparameter-name>NT</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>label_begin</fromnode-name>
+ <fromserviceparameter-name>NT</fromserviceparameter-name>
+ <tonode-name>test_ISONE</tonode-name>
+ <toserviceparameter-name>anInteger</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>192</x>
+ <y>226</y> </coord>
+ <coord>
+<x>191</x>
+ <y>331</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>label_begin</fromnode-name>
+ <fromserviceparameter-name>NT</fromserviceparameter-name>
+ <tonode-name>test_ISEVEN</tonode-name>
+ <toserviceparameter-name>anInteger</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>191</x>
+ <y>494</y> </coord>
+ <coord>
+<x>192</x>
+ <y>331</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>label_begin</fromnode-name>
+ <fromserviceparameter-name>KT</fromserviceparameter-name>
+ <tonode-name>label_test</tonode-name>
+ <toserviceparameter-name>KT</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>label_test</fromnode-name>
+ <fromserviceparameter-name>ValEven</fromserviceparameter-name>
+ <tonode-name>test</tonode-name>
+ <toserviceparameter-name>ValEven</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>label_test</fromnode-name>
+ <fromserviceparameter-name>ValOne</fromserviceparameter-name>
+ <tonode-name>test</tonode-name>
+ <toserviceparameter-name>ValOne</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>label_test</fromnode-name>
+ <fromserviceparameter-name>NT</fromserviceparameter-name>
+ <tonode-name>test</tonode-name>
+ <toserviceparameter-name>NT</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>label_test</fromnode-name>
+ <fromserviceparameter-name>KT</fromserviceparameter-name>
+ <tonode-name>test</tonode-name>
+ <toserviceparameter-name>KT</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>test</fromnode-name>
+ <fromserviceparameter-name>Finished</fromserviceparameter-name>
+ <tonode-name>EndSwitch_OneEven</tonode-name>
+ <toserviceparameter-name>Finished</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>test</fromnode-name>
+ <fromserviceparameter-name>Even</fromserviceparameter-name>
+ <tonode-name>div2</tonode-name>
+ <toserviceparameter-name>Gate</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>793</x>
+ <y>561</y> </coord>
+ <coord>
+<x>794</x>
+ <y>310</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>test</fromnode-name>
+ <fromserviceparameter-name>Odd</fromserviceparameter-name>
+ <tonode-name>m3p1</tonode-name>
+ <toserviceparameter-name>Gate</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>778</x>
+ <y>138</y> </coord>
+ <coord>
+<x>780</x>
+ <y>328</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>test</fromnode-name>
+ <fromserviceparameter-name>N</fromserviceparameter-name>
+ <tonode-name>m3p1</tonode-name>
+ <toserviceparameter-name>anOddInteger</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>808</x>
+ <y>113</y> </coord>
+ <coord>
+<x>807</x>
+ <y>352</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>test</fromnode-name>
+ <fromserviceparameter-name>N</fromserviceparameter-name>
+ <tonode-name>div2</tonode-name>
+ <toserviceparameter-name>anEvenInteger</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>806</x>
+ <y>537</y> </coord>
+ <coord>
+<x>807</x>
+ <y>351</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>test</fromnode-name>
+ <fromserviceparameter-name>K</fromserviceparameter-name>
+ <tonode-name>EndSwitch_OneEven</tonode-name>
+ <toserviceparameter-name>K</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>test</fromnode-name>
+ <fromserviceparameter-name>K</fromserviceparameter-name>
+ <tonode-name>incr</tonode-name>
+ <toserviceparameter-name>aCount</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>773</x>
+ <y>236</y> </coord>
+ <coord>
+<x>773</x>
+ <y>370</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>test</fromnode-name>
+ <fromserviceparameter-name>Default</fromserviceparameter-name>
+ <tonode-name>EndSwitch_OneEven</tonode-name>
+ <toserviceparameter-name>Default</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>840</x>
+ <y>381</y> </coord>
+ <coord>
+<x>839</x>
+ <y>394</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>control_m3p1</fromnode-name>
+ <fromserviceparameter-name>Gate</fromserviceparameter-name>
+ <tonode-name>label_test</tonode-name>
+ <toserviceparameter-name>Gate</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>388</x>
+ <y>388</y> </coord>
+ <coord>
+<x>389</x>
+ <y>597</y> </coord>
+ <coord>
+<x>1441</x>
+ <y>604</y> </coord>
+ <coord>
+<x>1441</x>
+ <y>199</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>control_div2</fromnode-name>
+ <fromserviceparameter-name>Gate</fromserviceparameter-name>
+ <tonode-name>label_begin</tonode-name>
+ <toserviceparameter-name>Gate</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>4</x>
+ <y>388</y> </coord>
+ <coord>
+<x>3</x>
+ <y>587</y> </coord>
+ <coord>
+<x>1307</x>
+ <y>586</y> </coord>
+ <coord>
+<x>1307</x>
+ <y>528</y> </coord> </coord-list> </link> </link-list>
+ <data-list>
+<data>
+<fromnode-name>GraphGOTO_2_2</fromnode-name>
+ <fromserviceparameter-name>label_begin__NB</fromserviceparameter-name>
+ <tonode-name>label_begin</tonode-name>
+ <toserviceparameter-name>NB</toserviceparameter-name>
+ <data-value>
+<value-type>3</value-type>
+ <value>7</value> </data-value>
+ <coord-list/> </data>
+ <data>
+<fromnode-name>GraphGOTO_2_2</fromnode-name>
+ <fromserviceparameter-name>label_begin__KB</fromserviceparameter-name>
+ <tonode-name>label_begin</tonode-name>
+ <toserviceparameter-name>KB</toserviceparameter-name>
+ <data-value>
+<value-type>3</value-type>
+ <value>0</value> </data-value>
+ <coord-list/> </data> </data-list> </dataflow></supergraph>
--- /dev/null
+
+# Generated python file of Graph GraphGOTO_2_2
+
+from SuperV import *
+
+# Graph creation of GraphGOTO_2_2
+def DefGraphGOTO_2_2() :
+ GraphGOTO_2_2 = Graph( 'GraphGOTO_2_2' )
+ GraphGOTO_2_2.SetName( 'GraphGOTO_2_2' )
+ GraphGOTO_2_2.SetAuthor( 'JR' )
+ GraphGOTO_2_2.SetComment( 'Syracuse algorithm' )
+ GraphGOTO_2_2.Coords( 0 , 0 )
+
+ # Creation of Factory Nodes
+
+ test_ISEVEN = GraphGOTO_2_2.FNode( 'SyrComponent' , 'SyrComponent' , 'C_ISEVEN' )
+ test_ISEVEN.SetName( 'test_ISEVEN' )
+ test_ISEVEN.SetAuthor( '' )
+ test_ISEVEN.SetContainer( 'localhost/FactoryServer' )
+ test_ISEVEN.SetComment( 'C_ISEVEN from SyrComponent' )
+ test_ISEVEN.Coords( 195 , 417 )
+ Itest_ISEVENanInteger = test_ISEVEN.GetInPort( 'anInteger' )
+ Itest_ISEVENGate = test_ISEVEN.GetInPort( 'Gate' )
+ Otest_ISEVENBoolEven = test_ISEVEN.GetOutPort( 'BoolEven' )
+ Otest_ISEVENGate = test_ISEVEN.GetOutPort( 'Gate' )
+
+ test_ISONE = GraphGOTO_2_2.FNode( 'SyrComponent' , 'SyrComponent' , 'C_ISONE' )
+ test_ISONE.SetName( 'test_ISONE' )
+ test_ISONE.SetAuthor( '' )
+ test_ISONE.SetContainer( 'localhost/FactoryServer' )
+ test_ISONE.SetComment( 'C_ISONE from SyrComponent' )
+ test_ISONE.Coords( 201 , 145 )
+ Itest_ISONEanInteger = test_ISONE.GetInPort( 'anInteger' )
+ Itest_ISONEGate = test_ISONE.GetInPort( 'Gate' )
+ Otest_ISONEBoolOne = test_ISONE.GetOutPort( 'BoolOne' )
+ Otest_ISONEGate = test_ISONE.GetOutPort( 'Gate' )
+
+ m3p1 = GraphGOTO_2_2.FNode( 'SyrComponent' , 'SyrComponent' , 'C_M3P1' )
+ m3p1.SetName( 'm3p1' )
+ m3p1.SetAuthor( '' )
+ m3p1.SetContainer( 'localhost/FactoryServer' )
+ m3p1.SetComment( 'C_M3P1 from SyrComponent' )
+ m3p1.Coords( 861 , 46 )
+ Im3p1anOddInteger = m3p1.GetInPort( 'anOddInteger' )
+ Im3p1Gate = m3p1.GetInPort( 'Gate' )
+ Om3p1anEvenInteger = m3p1.GetOutPort( 'anEvenInteger' )
+ Om3p1Gate = m3p1.GetOutPort( 'Gate' )
+
+ div2 = GraphGOTO_2_2.FNode( 'SyrComponent' , 'SyrComponent' , 'C_DIV2' )
+ div2.SetName( 'div2' )
+ div2.SetAuthor( '' )
+ div2.SetContainer( 'localhost/FactoryServer' )
+ div2.SetComment( 'C_DIV2 from SyrComponent' )
+ div2.Coords( 858 , 466 )
+ Idiv2anEvenInteger = div2.GetInPort( 'anEvenInteger' )
+ Idiv2Gate = div2.GetInPort( 'Gate' )
+ Odiv2anInteger = div2.GetOutPort( 'anInteger' )
+ Odiv2Gate = div2.GetOutPort( 'Gate' )
+
+ incr = GraphGOTO_2_2.FNode( 'SyrComponent' , 'SyrComponent' , 'C_INCR' )
+ incr.SetName( 'incr' )
+ incr.SetAuthor( '' )
+ incr.SetContainer( 'localhost/FactoryServer' )
+ incr.SetComment( 'C_INCR from SyrComponent' )
+ incr.Coords( 865 , 169 )
+ IincraCount = incr.GetInPort( 'aCount' )
+ IincrGate = incr.GetInPort( 'Gate' )
+ OincraNewCount = incr.GetOutPort( 'aNewCount' )
+ OincrGate = incr.GetOutPort( 'Gate' )
+
+ # Creation of InLine Nodes
+ Pylabel_begin = []
+ Pylabel_begin.append( 'def label_begin( NB , KB ):' )
+ Pylabel_begin.append( ' print "label_begin",NB,KB' )
+ Pylabel_begin.append( ' return NB,KB' )
+ label_begin = GraphGOTO_2_2.INode( 'label_begin' , Pylabel_begin )
+ label_begin.SetName( 'label_begin' )
+ label_begin.SetAuthor( '' )
+ label_begin.SetComment( 'Python function' )
+ label_begin.Coords( 9 , 250 )
+ Ilabel_beginNB = label_begin.InPort( 'NB' , 'long' )
+ Ilabel_beginKB = label_begin.InPort( 'KB' , 'long' )
+ Ilabel_beginGate = label_begin.GetInPort( 'Gate' )
+ Olabel_beginNT = label_begin.OutPort( 'NT' , 'long' )
+ Olabel_beginKT = label_begin.OutPort( 'KT' , 'long' )
+ Olabel_beginGate = label_begin.GetOutPort( 'Gate' )
+
+ Pylabel_test = []
+ Pylabel_test.append( 'def label_test( ValEven , ValOne , NB , KB ):' )
+ Pylabel_test.append( ' print "label_begin",ValEven,ValOne,NB,KB' )
+ Pylabel_test.append( ' return ValEven,ValOne,NB,KB' )
+ label_test = GraphGOTO_2_2.INode( 'label_test' , Pylabel_test )
+ label_test.SetName( 'label_test' )
+ label_test.SetAuthor( '' )
+ label_test.SetComment( 'Python function' )
+ label_test.Coords( 396 , 193 )
+ Ilabel_testValEven = label_test.InPort( 'ValEven' , 'long' )
+ Ilabel_testValOne = label_test.InPort( 'ValOne' , 'long' )
+ Ilabel_testNT = label_test.InPort( 'NT' , 'long' )
+ Ilabel_testKT = label_test.InPort( 'KT' , 'long' )
+ Ilabel_testGate = label_test.GetInPort( 'Gate' )
+ Olabel_testValEven = label_test.OutPort( 'ValEven' , 'long' )
+ Olabel_testValOne = label_test.OutPort( 'ValOne' , 'long' )
+ Olabel_testNT = label_test.OutPort( 'NT' , 'long' )
+ Olabel_testKT = label_test.OutPort( 'KT' , 'long' )
+ Olabel_testGate = label_test.GetOutPort( 'Gate' )
+
+ # Creation of Switch Nodes
+ Pytest = []
+ Pytest.append( 'def Switch_OneEven( ValOne , ValEven , NT , KT ) :' )
+ Pytest.append( ' Finished = ValOne' )
+ Pytest.append( ' if Finished == 0 :' )
+ Pytest.append( ' Incr = 1' )
+ Pytest.append( ' Even = ValEven' )
+ Pytest.append( ' if Even == 0 :' )
+ Pytest.append( ' Odd = 1' )
+ Pytest.append( ' else :' )
+ Pytest.append( ' Odd = 0' )
+ Pytest.append( ' else :' )
+ Pytest.append( ' Incr = 0' )
+ Pytest.append( ' Even = 0' )
+ Pytest.append( ' Odd = 0' )
+ Pytest.append( ' Even = ValEven' )
+ Pytest.append( ' return Finished,Incr,Even,Odd,NT,KT' )
+ test,EndSwitch_OneEven = GraphGOTO_2_2.SNode( 'Switch_OneEven' , Pytest )
+ EndSwitch_OneEven.SetName( 'EndSwitch_OneEven' )
+ EndSwitch_OneEven.SetAuthor( '' )
+ EndSwitch_OneEven.SetComment( 'Compute Node' )
+ EndSwitch_OneEven.Coords( 1256 , 305 )
+ PyEndSwitch_OneEven = []
+ PyEndSwitch_OneEven.append( 'def EndSwitch_OneEven( Finished , K ):' )
+ PyEndSwitch_OneEven.append( ' print "label_begin",Finished,K' )
+ PyEndSwitch_OneEven.append( ' return Finished,K' )
+ EndSwitch_OneEven.SetPyFunction( 'EndSwitch_OneEven' , PyEndSwitch_OneEven )
+ IEndSwitch_OneEvenFinished = EndSwitch_OneEven.InPort( 'Finished' , 'long' )
+ IEndSwitch_OneEvenK = EndSwitch_OneEven.InPort( 'K' , 'long' )
+ IEndSwitch_OneEvenDefault = EndSwitch_OneEven.GetInPort( 'Default' )
+ OEndSwitch_OneEvenFinished = EndSwitch_OneEven.OutPort( 'Finished' , 'long' )
+ OEndSwitch_OneEvenK = EndSwitch_OneEven.OutPort( 'K' , 'long' )
+ OEndSwitch_OneEvenGate = EndSwitch_OneEven.GetOutPort( 'Gate' )
+ test.SetName( 'test' )
+ test.SetAuthor( '' )
+ test.SetComment( 'Compute Node' )
+ test.Coords( 595 , 239 )
+ ItestValOne = test.InPort( 'ValOne' , 'long' )
+ ItestValEven = test.InPort( 'ValEven' , 'long' )
+ ItestNT = test.InPort( 'NT' , 'long' )
+ ItestKT = test.InPort( 'KT' , 'long' )
+ ItestGate = test.GetInPort( 'Gate' )
+ OtestFinished = test.OutPort( 'Finished' , 'long' )
+ OtestIncr = test.OutPort( 'Incr' , 'long' )
+ OtestEven = test.OutPort( 'Even' , 'long' )
+ OtestOdd = test.OutPort( 'Odd' , 'long' )
+ OtestN = test.OutPort( 'N' , 'long' )
+ OtestK = test.OutPort( 'K' , 'long' )
+ OtestDefault = test.GetOutPort( 'Default' )
+
+ # Creation of GOTO Nodes
+ Pycontrol_m3p1 = []
+ Pycontrol_m3p1.append( 'def control_m3p1( N , K ):' )
+ Pycontrol_m3p1.append( ' return 0,1,N,K' )
+ control_m3p1 = GraphGOTO_2_2.GNode( 'control_m3p1' , Pycontrol_m3p1 , 'label_test' )
+ control_m3p1.SetName( 'control_m3p1' )
+ control_m3p1.SetAuthor( '' )
+ control_m3p1.SetComment( 'Compute Node' )
+ control_m3p1.Coords( 1073 , 87 )
+ Icontrol_m3p1N = control_m3p1.InPort( 'N' , 'long' )
+ Icontrol_m3p1K = control_m3p1.InPort( 'K' , 'long' )
+ Icontrol_m3p1Gate = control_m3p1.GetInPort( 'Gate' )
+ Ocontrol_m3p1ValOne = control_m3p1.OutPort( 'ValOne' , 'long' )
+ Ocontrol_m3p1ValEven = control_m3p1.OutPort( 'ValEven' , 'long' )
+ Ocontrol_m3p1NT = control_m3p1.OutPort( 'NT' , 'long' )
+ Ocontrol_m3p1KT = control_m3p1.OutPort( 'KT' , 'long' )
+ Ocontrol_m3p1Gate = control_m3p1.GetOutPort( 'Gate' )
+
+ Pycontrol_div2 = []
+ Pycontrol_div2.append( 'def control_div2( N , NB ) :' )
+ Pycontrol_div2.append( ' return N,NB' )
+ control_div2 = GraphGOTO_2_2.GNode( 'control_div2' , Pycontrol_div2 , 'label_begin' )
+ control_div2.SetName( 'control_div2' )
+ control_div2.SetAuthor( '' )
+ control_div2.SetComment( 'Compute Node' )
+ control_div2.Coords( 1128 , 453 )
+ Icontrol_div2N = control_div2.InPort( 'N' , 'long' )
+ Icontrol_div2K = control_div2.InPort( 'K' , 'long' )
+ Icontrol_div2Gate = control_div2.GetInPort( 'Gate' )
+ Ocontrol_div2NB = control_div2.OutPort( 'NB' , 'long' )
+ Ocontrol_div2KB = control_div2.OutPort( 'KB' , 'long' )
+ Ocontrol_div2Gate = control_div2.GetOutPort( 'Gate' )
+
+ # Creation of Links
+ Ltest_ISEVENBoolEvenlabel_testValEven = GraphGOTO_2_2.Link( Otest_ISEVENBoolEven , Ilabel_testValEven )
+ Ltest_ISEVENBoolEvenlabel_testValEven.AddCoord( 1 , 369 , 273 )
+ Ltest_ISEVENBoolEvenlabel_testValEven.AddCoord( 2 , 370 , 498 )
+
+ Ltest_ISONEBoolOnelabel_testValOne = GraphGOTO_2_2.Link( Otest_ISONEBoolOne , Ilabel_testValOne )
+ Ltest_ISONEBoolOnelabel_testValOne.AddCoord( 1 , 384 , 281 )
+ Ltest_ISONEBoolOnelabel_testValOne.AddCoord( 2 , 384 , 225 )
+
+ Lm3p1anEvenIntegercontrol_m3p1N = GraphGOTO_2_2.Link( Om3p1anEvenInteger , Icontrol_m3p1N )
+
+ Ldiv2anIntegercontrol_div2N = GraphGOTO_2_2.Link( Odiv2anInteger , Icontrol_div2N )
+
+ LincraNewCountcontrol_m3p1K = GraphGOTO_2_2.Link( OincraNewCount , Icontrol_m3p1K )
+ LincraNewCountcontrol_m3p1K.AddCoord( 1 , 1048 , 139 )
+ LincraNewCountcontrol_m3p1K.AddCoord( 2 , 1048 , 241 )
+
+ LincraNewCountcontrol_div2K = GraphGOTO_2_2.Link( OincraNewCount , Icontrol_div2K )
+ LincraNewCountcontrol_div2K.AddCoord( 1 , 1052 , 504 )
+ LincraNewCountcontrol_div2K.AddCoord( 2 , 1049 , 239 )
+
+ Llabel_beginNTlabel_testNT = GraphGOTO_2_2.Link( Olabel_beginNT , Ilabel_testNT )
+
+ Llabel_beginNTtest_ISONEanInteger = GraphGOTO_2_2.Link( Olabel_beginNT , Itest_ISONEanInteger )
+ Llabel_beginNTtest_ISONEanInteger.AddCoord( 1 , 192 , 226 )
+ Llabel_beginNTtest_ISONEanInteger.AddCoord( 2 , 191 , 331 )
+
+ Llabel_beginNTtest_ISEVENanInteger = GraphGOTO_2_2.Link( Olabel_beginNT , Itest_ISEVENanInteger )
+ Llabel_beginNTtest_ISEVENanInteger.AddCoord( 1 , 191 , 494 )
+ Llabel_beginNTtest_ISEVENanInteger.AddCoord( 2 , 192 , 331 )
+
+ Llabel_beginKTlabel_testKT = GraphGOTO_2_2.Link( Olabel_beginKT , Ilabel_testKT )
+
+ Llabel_testValEventestValEven = GraphGOTO_2_2.Link( Olabel_testValEven , ItestValEven )
+
+ Llabel_testValOnetestValOne = GraphGOTO_2_2.Link( Olabel_testValOne , ItestValOne )
+
+ Llabel_testNTtestNT = GraphGOTO_2_2.Link( Olabel_testNT , ItestNT )
+
+ Llabel_testKTtestKT = GraphGOTO_2_2.Link( Olabel_testKT , ItestKT )
+
+ LtestFinishedEndSwitch_OneEvenFinished = GraphGOTO_2_2.Link( OtestFinished , IEndSwitch_OneEvenFinished )
+
+ LtestIncrincrGate = GraphGOTO_2_2.Link( OtestIncr , IincrGate )
+
+ LtestEvendiv2Gate = GraphGOTO_2_2.Link( OtestEven , Idiv2Gate )
+ LtestEvendiv2Gate.AddCoord( 1 , 793 , 561 )
+ LtestEvendiv2Gate.AddCoord( 2 , 794 , 310 )
+
+ LtestOddm3p1Gate = GraphGOTO_2_2.Link( OtestOdd , Im3p1Gate )
+ LtestOddm3p1Gate.AddCoord( 1 , 778 , 138 )
+ LtestOddm3p1Gate.AddCoord( 2 , 780 , 328 )
+
+ LtestNm3p1anOddInteger = GraphGOTO_2_2.Link( OtestN , Im3p1anOddInteger )
+ LtestNm3p1anOddInteger.AddCoord( 1 , 808 , 113 )
+ LtestNm3p1anOddInteger.AddCoord( 2 , 807 , 352 )
+
+ LtestNdiv2anEvenInteger = GraphGOTO_2_2.Link( OtestN , Idiv2anEvenInteger )
+ LtestNdiv2anEvenInteger.AddCoord( 1 , 806 , 537 )
+ LtestNdiv2anEvenInteger.AddCoord( 2 , 807 , 351 )
+
+ LtestKEndSwitch_OneEvenK = GraphGOTO_2_2.Link( OtestK , IEndSwitch_OneEvenK )
+
+ LtestKincraCount = GraphGOTO_2_2.Link( OtestK , IincraCount )
+ LtestKincraCount.AddCoord( 1 , 773 , 236 )
+ LtestKincraCount.AddCoord( 2 , 773 , 370 )
+
+ LtestDefaultEndSwitch_OneEvenDefault = GraphGOTO_2_2.Link( OtestDefault , IEndSwitch_OneEvenDefault )
+ LtestDefaultEndSwitch_OneEvenDefault.AddCoord( 1 , 840 , 381 )
+ LtestDefaultEndSwitch_OneEvenDefault.AddCoord( 2 , 839 , 394 )
+
+ Lcontrol_m3p1Gatelabel_testGate = GraphGOTO_2_2.Link( Ocontrol_m3p1Gate , Ilabel_testGate )
+ Lcontrol_m3p1Gatelabel_testGate.AddCoord( 1 , 388 , 388 )
+ Lcontrol_m3p1Gatelabel_testGate.AddCoord( 2 , 389 , 597 )
+ Lcontrol_m3p1Gatelabel_testGate.AddCoord( 3 , 1441 , 604 )
+ Lcontrol_m3p1Gatelabel_testGate.AddCoord( 4 , 1441 , 199 )
+
+ Lcontrol_div2Gatelabel_beginGate = GraphGOTO_2_2.Link( Ocontrol_div2Gate , Ilabel_beginGate )
+ Lcontrol_div2Gatelabel_beginGate.AddCoord( 1 , 4 , 388 )
+ Lcontrol_div2Gatelabel_beginGate.AddCoord( 2 , 3 , 587 )
+ Lcontrol_div2Gatelabel_beginGate.AddCoord( 3 , 1307 , 586 )
+ Lcontrol_div2Gatelabel_beginGate.AddCoord( 4 , 1307 , 528 )
+
+ # Input datas
+ Ilabel_beginNB.Input( 7 )
+ Ilabel_beginKB.Input( 0 )
+
+ # Output Ports of the graph
+ #OEndSwitch_OneEvenFinished = EndSwitch_OneEven.GetOutPort( 'Finished' )
+ #OEndSwitch_OneEvenK = EndSwitch_OneEven.GetOutPort( 'K' )
+ return GraphGOTO_2_2
+
+
+GraphGOTO_2_2 = DefGraphGOTO_2_2()
--- /dev/null
+<!DOCTYPE SuperGraph>
+<supergraph>
+<dataflow>
+<info-list>
+<node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>GraphGOTO_2_2</node-name>
+ <kind>1</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>GraphGOTO_2_2</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>label_begin__NB</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>label_begin__KB</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>EndSwitch_OneEven__Finished</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>EndSwitch_OneEven__K</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list/>
+ <creation-date>17/1/2005 - 13:44:46</creation-date>
+ <lastmodification-date>19/1/2005 - 18:25:16</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>JR</author>
+ <container>?</container>
+ <comment>Syracuse algorithm</comment>
+ <x-position>0</x-position>
+ <y-position>0</y-position> </node> </info-list>
+ <node-list>
+<node>
+<component-name>SyrComponent</component-name>
+ <interface-name>SyrComponent</interface-name>
+ <node-name>test_ISEVEN</node-name>
+ <kind>0</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>C_ISEVEN</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>anInteger</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>BoolEven</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list/>
+ <creation-date>19/1/2005 - 18:24:34</creation-date>
+ <lastmodification-date>19/1/2005 - 18:24:34</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>localhost/FactoryServer</container>
+ <comment>C_ISEVEN from SyrComponent</comment>
+ <x-position>195</x-position>
+ <y-position>417</y-position> </node>
+ <node>
+<component-name>SyrComponent</component-name>
+ <interface-name>SyrComponent</interface-name>
+ <node-name>test_ISONE</node-name>
+ <kind>0</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>C_ISONE</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>anInteger</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>BoolOne</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list/>
+ <creation-date>19/1/2005 - 18:24:34</creation-date>
+ <lastmodification-date>19/1/2005 - 18:24:34</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>localhost/FactoryServer</container>
+ <comment>C_ISONE from SyrComponent</comment>
+ <x-position>201</x-position>
+ <y-position>145</y-position> </node>
+ <node>
+<component-name>SyrComponent</component-name>
+ <interface-name>SyrComponent</interface-name>
+ <node-name>m3p1</node-name>
+ <kind>0</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>C_M3P1</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>anOddInteger</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>anEvenInteger</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list/>
+ <creation-date>19/1/2005 - 18:24:34</creation-date>
+ <lastmodification-date>19/1/2005 - 18:24:34</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>localhost/FactoryServer</container>
+ <comment>C_M3P1 from SyrComponent</comment>
+ <x-position>861</x-position>
+ <y-position>46</y-position> </node>
+ <node>
+<component-name>SyrComponent</component-name>
+ <interface-name>SyrComponent</interface-name>
+ <node-name>div2</node-name>
+ <kind>0</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>C_DIV2</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>anEvenInteger</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>anInteger</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list/>
+ <creation-date>19/1/2005 - 18:24:34</creation-date>
+ <lastmodification-date>19/1/2005 - 18:24:34</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>localhost/FactoryServer</container>
+ <comment>C_DIV2 from SyrComponent</comment>
+ <x-position>858</x-position>
+ <y-position>466</y-position> </node>
+ <node>
+<component-name>SyrComponent</component-name>
+ <interface-name>SyrComponent</interface-name>
+ <node-name>incr</node-name>
+ <kind>0</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>C_INCR</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>aCount</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>aNewCount</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list/>
+ <creation-date>19/1/2005 - 18:24:34</creation-date>
+ <lastmodification-date>19/1/2005 - 18:24:34</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>localhost/FactoryServer</container>
+ <comment>C_INCR from SyrComponent</comment>
+ <x-position>865</x-position>
+ <y-position>169</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>label_begin</node-name>
+ <kind>3</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>label_begin</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>NB</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>KB</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>NT</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>KT</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>label_begin</FuncName>
+ <PyFunc><![CDATA[def label_begin( NB , KB ):]]></PyFunc>
+ <PyFunc><![CDATA[ print "label_begin",NB,KB]]></PyFunc>
+ <PyFunc><![CDATA[ return NB,KB]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 18:24:34</creation-date>
+ <lastmodification-date>19/1/2005 - 18:24:34</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Python function</comment>
+ <x-position>9</x-position>
+ <y-position>250</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>label_test</node-name>
+ <kind>3</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>label_test</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>ValEven</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>ValOne</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>NT</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>KT</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>ValEven</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>ValOne</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>NT</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>KT</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>label_test</FuncName>
+ <PyFunc><![CDATA[def label_test( ValEven , ValOne , NB , KB ):]]></PyFunc>
+ <PyFunc><![CDATA[ print "label_begin",ValEven,ValOne,NB,KB]]></PyFunc>
+ <PyFunc><![CDATA[ return ValEven,ValOne,NB,KB]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 18:24:34</creation-date>
+ <lastmodification-date>19/1/2005 - 18:24:34</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Python function</comment>
+ <x-position>396</x-position>
+ <y-position>193</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>test</node-name>
+ <kind>6</kind>
+ <coupled-node>EndSwitch_OneEven</coupled-node>
+ <service>
+<service-name>test</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>ValOne</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>ValEven</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>NT</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>KT</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Finished</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Incr</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Even</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Odd</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>N</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>K</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>Switch_OneEven</FuncName>
+ <PyFunc><![CDATA[def Switch_OneEven( ValOne , ValEven , NT , KT ) :]]></PyFunc>
+ <PyFunc><![CDATA[ Finished = ValOne]]></PyFunc>
+ <PyFunc><![CDATA[ if Finished == 0 :]]></PyFunc>
+ <PyFunc><![CDATA[ Incr = 1]]></PyFunc>
+ <PyFunc><![CDATA[ Even = ValEven]]></PyFunc>
+ <PyFunc><![CDATA[ if Even == 0 :]]></PyFunc>
+ <PyFunc><![CDATA[ Odd = 1]]></PyFunc>
+ <PyFunc><![CDATA[ else :]]></PyFunc>
+ <PyFunc><![CDATA[ Odd = 0]]></PyFunc>
+ <PyFunc><![CDATA[ else :]]></PyFunc>
+ <PyFunc><![CDATA[ Incr = 0]]></PyFunc>
+ <PyFunc><![CDATA[ Even = 0]]></PyFunc>
+ <PyFunc><![CDATA[ Odd = 0]]></PyFunc>
+ <PyFunc><![CDATA[ Even = ValEven]]></PyFunc>
+ <PyFunc><![CDATA[ return Finished,Incr,Even,Odd,NT,KT]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 18:24:34</creation-date>
+ <lastmodification-date>19/1/2005 - 18:24:34</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>595</x-position>
+ <y-position>239</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>EndSwitch_OneEven</node-name>
+ <kind>7</kind>
+ <coupled-node>test</coupled-node>
+ <service>
+<service-name>EndSwitch_OneEven</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Finished</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>K</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Finished</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>K</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>EndSwitch_OneEven</FuncName>
+ <PyFunc><![CDATA[def EndSwitch_OneEven( Finished , K ):]]></PyFunc>
+ <PyFunc><![CDATA[ print "label_begin",Finished,K]]></PyFunc>
+ <PyFunc><![CDATA[ return Finished,K]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 18:24:34</creation-date>
+ <lastmodification-date>19/1/2005 - 18:24:34</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>1256</x-position>
+ <y-position>305</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>control_m3p1</node-name>
+ <kind>8</kind>
+ <coupled-node>label_test</coupled-node>
+ <service>
+<service-name>control_m3p1</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>N</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>K</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>ValOne</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>ValEven</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>NT</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>KT</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>control_m3p1</FuncName>
+ <PyFunc><![CDATA[def control_m3p1( N , K ):]]></PyFunc>
+ <PyFunc><![CDATA[ return 0,1,N,K]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 18:24:34</creation-date>
+ <lastmodification-date>19/1/2005 - 18:24:34</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>1073</x-position>
+ <y-position>87</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>control_div2</node-name>
+ <kind>8</kind>
+ <coupled-node>label_begin</coupled-node>
+ <service>
+<service-name>control_div2</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>N</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>K</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>NB</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>KB</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>control_div2</FuncName>
+ <PyFunc><![CDATA[def control_div2( N , NB ) :]]></PyFunc>
+ <PyFunc><![CDATA[ return N,NB]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 18:24:34</creation-date>
+ <lastmodification-date>19/1/2005 - 18:24:34</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>1128</x-position>
+ <y-position>453</y-position> </node> </node-list>
+ <link-list>
+<link>
+<fromnode-name>test_ISEVEN</fromnode-name>
+ <fromserviceparameter-name>BoolEven</fromserviceparameter-name>
+ <tonode-name>label_test</tonode-name>
+ <toserviceparameter-name>ValEven</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>369</x>
+ <y>273</y> </coord>
+ <coord>
+<x>370</x>
+ <y>498</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>test_ISONE</fromnode-name>
+ <fromserviceparameter-name>BoolOne</fromserviceparameter-name>
+ <tonode-name>label_test</tonode-name>
+ <toserviceparameter-name>ValOne</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>384</x>
+ <y>281</y> </coord>
+ <coord>
+<x>384</x>
+ <y>225</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>m3p1</fromnode-name>
+ <fromserviceparameter-name>anEvenInteger</fromserviceparameter-name>
+ <tonode-name>control_m3p1</tonode-name>
+ <toserviceparameter-name>N</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>div2</fromnode-name>
+ <fromserviceparameter-name>anInteger</fromserviceparameter-name>
+ <tonode-name>control_div2</tonode-name>
+ <toserviceparameter-name>N</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>incr</fromnode-name>
+ <fromserviceparameter-name>aNewCount</fromserviceparameter-name>
+ <tonode-name>control_m3p1</tonode-name>
+ <toserviceparameter-name>K</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>1048</x>
+ <y>139</y> </coord>
+ <coord>
+<x>1048</x>
+ <y>241</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>incr</fromnode-name>
+ <fromserviceparameter-name>aNewCount</fromserviceparameter-name>
+ <tonode-name>control_div2</tonode-name>
+ <toserviceparameter-name>K</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>1052</x>
+ <y>504</y> </coord>
+ <coord>
+<x>1049</x>
+ <y>239</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>label_begin</fromnode-name>
+ <fromserviceparameter-name>NT</fromserviceparameter-name>
+ <tonode-name>label_test</tonode-name>
+ <toserviceparameter-name>NT</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>label_begin</fromnode-name>
+ <fromserviceparameter-name>NT</fromserviceparameter-name>
+ <tonode-name>test_ISONE</tonode-name>
+ <toserviceparameter-name>anInteger</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>192</x>
+ <y>226</y> </coord>
+ <coord>
+<x>191</x>
+ <y>331</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>label_begin</fromnode-name>
+ <fromserviceparameter-name>NT</fromserviceparameter-name>
+ <tonode-name>test_ISEVEN</tonode-name>
+ <toserviceparameter-name>anInteger</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>191</x>
+ <y>494</y> </coord>
+ <coord>
+<x>192</x>
+ <y>331</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>label_begin</fromnode-name>
+ <fromserviceparameter-name>KT</fromserviceparameter-name>
+ <tonode-name>label_test</tonode-name>
+ <toserviceparameter-name>KT</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>label_test</fromnode-name>
+ <fromserviceparameter-name>ValEven</fromserviceparameter-name>
+ <tonode-name>test</tonode-name>
+ <toserviceparameter-name>ValEven</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>label_test</fromnode-name>
+ <fromserviceparameter-name>ValOne</fromserviceparameter-name>
+ <tonode-name>test</tonode-name>
+ <toserviceparameter-name>ValOne</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>label_test</fromnode-name>
+ <fromserviceparameter-name>NT</fromserviceparameter-name>
+ <tonode-name>test</tonode-name>
+ <toserviceparameter-name>NT</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>label_test</fromnode-name>
+ <fromserviceparameter-name>KT</fromserviceparameter-name>
+ <tonode-name>test</tonode-name>
+ <toserviceparameter-name>KT</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>test</fromnode-name>
+ <fromserviceparameter-name>Finished</fromserviceparameter-name>
+ <tonode-name>EndSwitch_OneEven</tonode-name>
+ <toserviceparameter-name>Finished</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>test</fromnode-name>
+ <fromserviceparameter-name>Incr</fromserviceparameter-name>
+ <tonode-name>incr</tonode-name>
+ <toserviceparameter-name>Gate</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>test</fromnode-name>
+ <fromserviceparameter-name>Even</fromserviceparameter-name>
+ <tonode-name>div2</tonode-name>
+ <toserviceparameter-name>Gate</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>793</x>
+ <y>561</y> </coord>
+ <coord>
+<x>794</x>
+ <y>310</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>test</fromnode-name>
+ <fromserviceparameter-name>Odd</fromserviceparameter-name>
+ <tonode-name>m3p1</tonode-name>
+ <toserviceparameter-name>Gate</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>778</x>
+ <y>138</y> </coord>
+ <coord>
+<x>780</x>
+ <y>328</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>test</fromnode-name>
+ <fromserviceparameter-name>N</fromserviceparameter-name>
+ <tonode-name>m3p1</tonode-name>
+ <toserviceparameter-name>anOddInteger</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>808</x>
+ <y>113</y> </coord>
+ <coord>
+<x>807</x>
+ <y>352</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>test</fromnode-name>
+ <fromserviceparameter-name>N</fromserviceparameter-name>
+ <tonode-name>div2</tonode-name>
+ <toserviceparameter-name>anEvenInteger</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>806</x>
+ <y>537</y> </coord>
+ <coord>
+<x>807</x>
+ <y>351</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>test</fromnode-name>
+ <fromserviceparameter-name>K</fromserviceparameter-name>
+ <tonode-name>EndSwitch_OneEven</tonode-name>
+ <toserviceparameter-name>K</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>test</fromnode-name>
+ <fromserviceparameter-name>K</fromserviceparameter-name>
+ <tonode-name>incr</tonode-name>
+ <toserviceparameter-name>aCount</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>773</x>
+ <y>236</y> </coord>
+ <coord>
+<x>773</x>
+ <y>370</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>test</fromnode-name>
+ <fromserviceparameter-name>Default</fromserviceparameter-name>
+ <tonode-name>EndSwitch_OneEven</tonode-name>
+ <toserviceparameter-name>Default</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>840</x>
+ <y>381</y> </coord>
+ <coord>
+<x>839</x>
+ <y>394</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>control_m3p1</fromnode-name>
+ <fromserviceparameter-name>Gate</fromserviceparameter-name>
+ <tonode-name>label_test</tonode-name>
+ <toserviceparameter-name>Gate</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>388</x>
+ <y>388</y> </coord>
+ <coord>
+<x>389</x>
+ <y>597</y> </coord>
+ <coord>
+<x>1441</x>
+ <y>604</y> </coord>
+ <coord>
+<x>1441</x>
+ <y>199</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>control_div2</fromnode-name>
+ <fromserviceparameter-name>Gate</fromserviceparameter-name>
+ <tonode-name>label_begin</tonode-name>
+ <toserviceparameter-name>Gate</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>4</x>
+ <y>388</y> </coord>
+ <coord>
+<x>3</x>
+ <y>587</y> </coord>
+ <coord>
+<x>1307</x>
+ <y>586</y> </coord>
+ <coord>
+<x>1307</x>
+ <y>528</y> </coord> </coord-list> </link> </link-list>
+ <data-list>
+<data>
+<fromnode-name>GraphGOTO_2_2</fromnode-name>
+ <fromserviceparameter-name>label_begin__NB</fromserviceparameter-name>
+ <tonode-name>label_begin</tonode-name>
+ <toserviceparameter-name>NB</toserviceparameter-name>
+ <data-value>
+<value-type>3</value-type>
+ <value>7</value> </data-value>
+ <coord-list/> </data>
+ <data>
+<fromnode-name>GraphGOTO_2_2</fromnode-name>
+ <fromserviceparameter-name>label_begin__KB</fromserviceparameter-name>
+ <tonode-name>label_begin</tonode-name>
+ <toserviceparameter-name>KB</toserviceparameter-name>
+ <data-value>
+<value-type>3</value-type>
+ <value>0</value> </data-value>
+ <coord-list/> </data> </data-list> </dataflow></supergraph>
--- /dev/null
+
+# Generated python file of Graph GraphLoopSwitchOfSwitch
+
+from SuperV import *
+
+# Graph creation of GraphLoopSwitchOfSwitch
+def DefGraphLoopSwitchOfSwitch() :
+ GraphLoopSwitchOfSwitch = Graph( 'GraphLoopSwitchOfSwitch' )
+ GraphLoopSwitchOfSwitch.SetName( 'GraphLoopSwitchOfSwitch' )
+ GraphLoopSwitchOfSwitch.SetAuthor( 'JR' )
+ GraphLoopSwitchOfSwitch.SetComment( '' )
+ GraphLoopSwitchOfSwitch.Coords( 0 , 0 )
+
+ # Creation of Factory Nodes
+
+ # Creation of InLine Nodes
+ PyIsEven = []
+ PyIsEven.append( 'from time import * ' )
+ PyIsEven.append( 'def IsEven(a) : ' )
+ PyIsEven.append( ' print a,"IsEven (GraphSwitch)" ' )
+ PyIsEven.append( ' sleep( 1 ) ' )
+ PyIsEven.append( ' return a ' )
+ IsEven = GraphLoopSwitchOfSwitch.INode( 'IsEven' , PyIsEven )
+ IsEven.SetName( 'IsEven' )
+ IsEven.SetAuthor( '' )
+ IsEven.SetComment( 'Compute Node' )
+ IsEven.Coords( 437 , 520 )
+ IIsEvena = IsEven.InPort( 'a' , 'long' )
+ IIsEvenGate = IsEven.GetInPort( 'Gate' )
+ OIsEvena = IsEven.OutPort( 'a' , 'long' )
+ OIsEvenGate = IsEven.GetOutPort( 'Gate' )
+
+ PyPseudoPOne = []
+ PyPseudoPOne.append( 'from time import * ' )
+ PyPseudoPOne.append( 'def PseudoPOne(POne) : ' )
+ PyPseudoPOne.append( ' sleep(1) ' )
+ PyPseudoPOne.append( ' return 6*POne+1 ' )
+ PseudoPOne = GraphLoopSwitchOfSwitch.INode( 'PseudoPOne' , PyPseudoPOne )
+ PseudoPOne.SetName( 'PseudoPOne' )
+ PseudoPOne.SetAuthor( '' )
+ PseudoPOne.SetComment( 'Compute Node' )
+ PseudoPOne.Coords( 612 , 5 )
+ IPseudoPOnePOne = PseudoPOne.InPort( 'POne' , 'long' )
+ IPseudoPOneGate = PseudoPOne.GetInPort( 'Gate' )
+ OPseudoPOnea = PseudoPOne.OutPort( 'a' , 'long' )
+ OPseudoPOneGate = PseudoPOne.GetOutPort( 'Gate' )
+
+ PyPseudoPThree = []
+ PyPseudoPThree.append( 'from time import * ' )
+ PyPseudoPThree.append( 'def PseudoPThree_1(PThree) : ' )
+ PyPseudoPThree.append( ' sleep(1) ' )
+ PyPseudoPThree.append( ' return 6*PThree+3 ' )
+ PseudoPThree = GraphLoopSwitchOfSwitch.INode( 'PseudoPThree_1' , PyPseudoPThree )
+ PseudoPThree.SetName( 'PseudoPThree' )
+ PseudoPThree.SetAuthor( '' )
+ PseudoPThree.SetComment( 'Compute Node' )
+ PseudoPThree.Coords( 620 , 149 )
+ IPseudoPThreePThree = PseudoPThree.InPort( 'PThree' , 'long' )
+ IPseudoPThreeGate = PseudoPThree.GetInPort( 'Gate' )
+ OPseudoPThreea = PseudoPThree.OutPort( 'a' , 'long' )
+ OPseudoPThreeGate = PseudoPThree.GetOutPort( 'Gate' )
+
+ PyPseudoPFive = []
+ PyPseudoPFive.append( 'from time import * ' )
+ PyPseudoPFive.append( 'def PseudoPFive(PFive) : ' )
+ PyPseudoPFive.append( ' sleep(1) ' )
+ PyPseudoPFive.append( ' return 6*PFive+5 ' )
+ PseudoPFive = GraphLoopSwitchOfSwitch.INode( 'PseudoPFive' , PyPseudoPFive )
+ PseudoPFive.SetName( 'PseudoPFive' )
+ PseudoPFive.SetAuthor( '' )
+ PseudoPFive.SetComment( 'Compute Node' )
+ PseudoPFive.Coords( 625 , 343 )
+ IPseudoPFivePFive = PseudoPFive.InPort( 'PFive' , 'long' )
+ IPseudoPFiveGate = PseudoPFive.GetInPort( 'Gate' )
+ OPseudoPFivea = PseudoPFive.OutPort( 'a' , 'long' )
+ OPseudoPFiveGate = PseudoPFive.GetOutPort( 'Gate' )
+
+ # Creation of Loop Nodes
+ PyLoopSwitch = []
+ PyLoopSwitch.append( 'def InitLoop(Index,Min,Max) : ' )
+ PyLoopSwitch.append( ' Index = Max ' )
+ PyLoopSwitch.append( ' return Index,Min,Max ' )
+ PyMoreLoopSwitch = []
+ PyMoreLoopSwitch.append( 'def MoreLoop(Index,Min,Max) : ' )
+ PyMoreLoopSwitch.append( ' if Index >= Min : ' )
+ PyMoreLoopSwitch.append( ' DoLoop = 1 ' )
+ PyMoreLoopSwitch.append( ' else : ' )
+ PyMoreLoopSwitch.append( ' DoLoop = 0 ' )
+ PyMoreLoopSwitch.append( ' return DoLoop,Index,Min,Max ' )
+ PyNextLoopSwitch = []
+ PyNextLoopSwitch.append( 'def NextLoop(Index,Min,Max) : ' )
+ PyNextLoopSwitch.append( ' Index = Index - 1 ' )
+ PyNextLoopSwitch.append( ' return Index,Min,Max ' )
+ LoopSwitch,EndOfLoopSwitch = GraphLoopSwitchOfSwitch.LNode( 'InitLoop' , PyLoopSwitch , 'MoreLoop' , PyMoreLoopSwitch , 'NextLoop' , PyNextLoopSwitch )
+ EndOfLoopSwitch.SetName( 'EndOfLoopSwitch' )
+ EndOfLoopSwitch.SetAuthor( '' )
+ EndOfLoopSwitch.SetComment( 'Compute Node' )
+ EndOfLoopSwitch.Coords( 1268 , 210 )
+ PyEndOfLoopSwitch = []
+ EndOfLoopSwitch.SetPyFunction( '' , PyEndOfLoopSwitch )
+ ILoopSwitchDoLoop = LoopSwitch.GetInPort( 'DoLoop' )
+ ILoopSwitchIndex = LoopSwitch.InPort( 'Index' , 'long' )
+ ILoopSwitchMin = LoopSwitch.InPort( 'Min' , 'long' )
+ ILoopSwitchMax = LoopSwitch.InPort( 'Max' , 'long' )
+ ILoopSwitchGate = LoopSwitch.GetInPort( 'Gate' )
+ OLoopSwitchDoLoop = LoopSwitch.GetOutPort( 'DoLoop' )
+ OLoopSwitchIndex = LoopSwitch.GetOutPort( 'Index' )
+ OLoopSwitchMin = LoopSwitch.GetOutPort( 'Min' )
+ OLoopSwitchMax = LoopSwitch.GetOutPort( 'Max' )
+ IEndOfLoopSwitchDoLoop = EndOfLoopSwitch.GetInPort( 'DoLoop' )
+ IEndOfLoopSwitchIndex = EndOfLoopSwitch.GetInPort( 'Index' )
+ IEndOfLoopSwitchMin = EndOfLoopSwitch.GetInPort( 'Min' )
+ IEndOfLoopSwitchMax = EndOfLoopSwitch.GetInPort( 'Max' )
+ IEndOfLoopSwitchGate = EndOfLoopSwitch.GetInPort( 'Gate' )
+ OEndOfLoopSwitchDoLoop = EndOfLoopSwitch.GetOutPort( 'DoLoop' )
+ OEndOfLoopSwitchIndex = EndOfLoopSwitch.GetOutPort( 'Index' )
+ OEndOfLoopSwitchMin = EndOfLoopSwitch.GetOutPort( 'Min' )
+ OEndOfLoopSwitchMax = EndOfLoopSwitch.GetOutPort( 'Max' )
+ OEndOfLoopSwitchGate = EndOfLoopSwitch.GetOutPort( 'Gate' )
+ LoopSwitch.SetName( 'LoopSwitch' )
+ LoopSwitch.SetAuthor( '' )
+ LoopSwitch.SetComment( 'Compute Node' )
+ LoopSwitch.Coords( 6 , 233 )
+
+ # Creation of Switch Nodes
+ PySwitch = []
+ PySwitch.append( 'from time import * ' )
+ PySwitch.append( 'def Switch(a) : ' )
+ PySwitch.append( ' sleep(1) ' )
+ PySwitch.append( ' if a <= 0 : ' )
+ PySwitch.append( ' return 0,a,0 ' )
+ PySwitch.append( ' return a & 1,a,1-(a&1) ' )
+ Switch,EndOfSwitch = GraphLoopSwitchOfSwitch.SNode( 'Switch' , PySwitch )
+ EndOfSwitch.SetName( 'EndOfSwitch' )
+ EndOfSwitch.SetAuthor( '' )
+ EndOfSwitch.SetComment( 'Compute Node' )
+ EndOfSwitch.Coords( 1075 , 210 )
+ PyEndOfSwitch = []
+ EndOfSwitch.SetPyFunction( 'EndSwitch_1' , PyEndOfSwitch )
+ IEndOfSwitcha = EndOfSwitch.InPort( 'a' , 'long' )
+ IEndOfSwitchDefault = EndOfSwitch.GetInPort( 'Default' )
+ OEndOfSwitcha = EndOfSwitch.OutPort( 'a' , 'long' )
+ OEndOfSwitchGate = EndOfSwitch.GetOutPort( 'Gate' )
+ Switch.SetName( 'Switch' )
+ Switch.SetAuthor( '' )
+ Switch.SetComment( 'Compute Node' )
+ Switch.Coords( 201 , 233 )
+ ISwitcha = Switch.InPort( 'a' , 'long' )
+ ISwitchGate = Switch.GetInPort( 'Gate' )
+ OSwitchOdd = Switch.OutPort( 'Odd' , 'long' )
+ OSwitcha = Switch.OutPort( 'a' , 'int' )
+ OSwitchEven = Switch.OutPort( 'Even' , 'boolean' )
+ OSwitchDefault = Switch.GetOutPort( 'Default' )
+
+ PySwitchOdd = []
+ PySwitchOdd.append( 'def SwitchOdd(a) : ' )
+ PySwitchOdd.append( ' n = a/6 ' )
+ PySwitchOdd.append( ' r = a%6 ' )
+ PySwitchOdd.append( ' POne = 0 ' )
+ PySwitchOdd.append( ' PThree = 0 ' )
+ PySwitchOdd.append( ' PFive = 0 ' )
+ PySwitchOdd.append( ' if r == 1 : ' )
+ PySwitchOdd.append( ' POne = 1 ' )
+ PySwitchOdd.append( ' if r == 3 : ' )
+ PySwitchOdd.append( ' PThree = 1 ' )
+ PySwitchOdd.append( ' if r == 5 : ' )
+ PySwitchOdd.append( ' PFive = 1 ' )
+ PySwitchOdd.append( ' return POne,PThree,PFive,n ' )
+ SwitchOdd,EndOfSwitchOdd = GraphLoopSwitchOfSwitch.SNode( 'SwitchOdd' , PySwitchOdd )
+ EndOfSwitchOdd.SetName( 'EndOfSwitchOdd' )
+ EndOfSwitchOdd.SetAuthor( '' )
+ EndOfSwitchOdd.SetComment( 'Compute Node' )
+ EndOfSwitchOdd.Coords( 851 , 210 )
+ PyEndOfSwitchOdd = []
+ EndOfSwitchOdd.SetPyFunction( 'EndSwitch' , PyEndOfSwitchOdd )
+ IEndOfSwitchOddn = EndOfSwitchOdd.InPort( 'n' , 'long' )
+ IEndOfSwitchOddDefault = EndOfSwitchOdd.GetInPort( 'Default' )
+ OEndOfSwitchOddn = EndOfSwitchOdd.OutPort( 'n' , 'long' )
+ OEndOfSwitchOddGate = EndOfSwitchOdd.GetOutPort( 'Gate' )
+ SwitchOdd.SetName( 'SwitchOdd' )
+ SwitchOdd.SetAuthor( '' )
+ SwitchOdd.SetComment( 'Compute Node' )
+ SwitchOdd.Coords( 412 , 169 )
+ ISwitchOdda = SwitchOdd.InPort( 'a' , 'long' )
+ ISwitchOddGate = SwitchOdd.GetInPort( 'Gate' )
+ OSwitchOddPOne = SwitchOdd.OutPort( 'POne' , 'boolean' )
+ OSwitchOddPThree = SwitchOdd.OutPort( 'PThree' , 'boolean' )
+ OSwitchOddPFive = SwitchOdd.OutPort( 'PFive' , 'boolean' )
+ OSwitchOddn = SwitchOdd.OutPort( 'n' , 'long' )
+ OSwitchOddDefault = SwitchOdd.GetOutPort( 'Default' )
+
+ # Creation of Links
+ LLoopSwitchIndexSwitcha = GraphLoopSwitchOfSwitch.Link( OLoopSwitchIndex , ISwitcha )
+
+ LLoopSwitchMinEndOfLoopSwitchMin = GraphLoopSwitchOfSwitch.Link( OLoopSwitchMin , IEndOfLoopSwitchMin )
+
+ LLoopSwitchMaxEndOfLoopSwitchMax = GraphLoopSwitchOfSwitch.Link( OLoopSwitchMax , IEndOfLoopSwitchMax )
+
+ LIsEvenaEndOfSwitcha = GraphLoopSwitchOfSwitch.Link( OIsEvena , IEndOfSwitcha )
+ LIsEvenaEndOfSwitcha.AddCoord( 1 , 719 , 591 )
+
+ LSwitchOddSwitchOddGate = GraphLoopSwitchOfSwitch.Link( OSwitchOdd , ISwitchOddGate )
+
+ LSwitchaIsEvena = GraphLoopSwitchOfSwitch.Link( OSwitcha , IIsEvena )
+
+ LSwitchaSwitchOdda = GraphLoopSwitchOfSwitch.Link( OSwitcha , ISwitchOdda )
+
+ LSwitchEvenIsEvenGate = GraphLoopSwitchOfSwitch.Link( OSwitchEven , IIsEvenGate )
+
+ LSwitchDefaultEndOfSwitchDefault = GraphLoopSwitchOfSwitch.Link( OSwitchDefault , IEndOfSwitchDefault )
+ LSwitchDefaultEndOfSwitchDefault.AddCoord( 1 , 1057 , 267 )
+ LSwitchDefaultEndOfSwitchDefault.AddCoord( 2 , 1079 , 669 )
+ LSwitchDefaultEndOfSwitchDefault.AddCoord( 3 , 383 , 666 )
+
+ LEndOfSwitchaEndOfLoopSwitchIndex = GraphLoopSwitchOfSwitch.Link( OEndOfSwitcha , IEndOfLoopSwitchIndex )
+
+ LSwitchOddPOnePseudoPOneGate = GraphLoopSwitchOfSwitch.Link( OSwitchOddPOne , IPseudoPOneGate )
+
+ LSwitchOddPThreePseudoPThreeGate = GraphLoopSwitchOfSwitch.Link( OSwitchOddPThree , IPseudoPThreeGate )
+
+ LSwitchOddPFivePseudoPFiveGate = GraphLoopSwitchOfSwitch.Link( OSwitchOddPFive , IPseudoPFiveGate )
+
+ LSwitchOddnPseudoPOnePOne = GraphLoopSwitchOfSwitch.Link( OSwitchOddn , IPseudoPOnePOne )
+
+ LSwitchOddnPseudoPThreePThree = GraphLoopSwitchOfSwitch.Link( OSwitchOddn , IPseudoPThreePThree )
+
+ LSwitchOddnPseudoPFivePFive = GraphLoopSwitchOfSwitch.Link( OSwitchOddn , IPseudoPFivePFive )
+
+ LSwitchOddDefaultEndOfSwitchOddDefault = GraphLoopSwitchOfSwitch.Link( OSwitchOddDefault , IEndOfSwitchOddDefault )
+
+ LEndOfSwitchOddnEndOfSwitcha = GraphLoopSwitchOfSwitch.Link( OEndOfSwitchOddn , IEndOfSwitcha )
+
+ LPseudoPOneaEndOfSwitchOddn = GraphLoopSwitchOfSwitch.Link( OPseudoPOnea , IEndOfSwitchOddn )
+
+ LPseudoPThreeaEndOfSwitchOddn = GraphLoopSwitchOfSwitch.Link( OPseudoPThreea , IEndOfSwitchOddn )
+
+ LPseudoPFiveaEndOfSwitchOddn = GraphLoopSwitchOfSwitch.Link( OPseudoPFivea , IEndOfSwitchOddn )
+
+ # Input datas
+ ILoopSwitchIndex.Input( 0 )
+ ILoopSwitchMin.Input( -5 )
+ ILoopSwitchMax.Input( 65 )
+
+ # Output Ports of the graph
+ #OEndOfLoopSwitchIndex = EndOfLoopSwitch.GetOutPort( 'Index' )
+ #OEndOfLoopSwitchMin = EndOfLoopSwitch.GetOutPort( 'Min' )
+ #OEndOfLoopSwitchMax = EndOfLoopSwitch.GetOutPort( 'Max' )
+ return GraphLoopSwitchOfSwitch
+
+
+GraphLoopSwitchOfSwitch = DefGraphLoopSwitchOfSwitch()
--- /dev/null
+<!DOCTYPE SuperGraph>
+<supergraph>
+<dataflow>
+<info-list>
+<node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>GraphLoopSwitchOfSwitch</node-name>
+ <kind>1</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>GraphLoopSwitchOfSwitch</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>LoopSwitch__Index</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>LoopSwitch__Min</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>LoopSwitch__Max</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>EndOfLoopSwitch__Index</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>EndOfLoopSwitch__Min</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>EndOfLoopSwitch__Max</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list/>
+ <creation-date>1/10/2003 - 17:23:54</creation-date>
+ <lastmodification-date>20/1/2005 - 17:13:50</lastmodification-date>
+ <editor-release>1.05</editor-release>
+ <author>JR</author>
+ <container>?</container>
+ <comment>?</comment>
+ <x-position>0</x-position>
+ <y-position>0</y-position> </node> </info-list>
+ <node-list>
+<node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>LoopSwitch</node-name>
+ <kind>4</kind>
+ <coupled-node>EndOfLoopSwitch</coupled-node>
+ <service>
+<service-name>LoopSwitch</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Index</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Min</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Max</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Index</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Min</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Max</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>InitLoop</FuncName>
+ <PyFunc><![CDATA[def InitLoop(Index,Min,Max) : ]]></PyFunc>
+ <PyFunc><![CDATA[ Index = Max ]]></PyFunc>
+ <PyFunc><![CDATA[ return Index,Min,Max ]]></PyFunc> </PyFunction>
+ <PyFunction>
+<FuncName>MoreLoop</FuncName>
+ <PyFunc><![CDATA[def MoreLoop(Index,Min,Max) : ]]></PyFunc>
+ <PyFunc><![CDATA[ if Index >= Min : ]]></PyFunc>
+ <PyFunc><![CDATA[ DoLoop = 1 ]]></PyFunc>
+ <PyFunc><![CDATA[ else : ]]></PyFunc>
+ <PyFunc><![CDATA[ DoLoop = 0 ]]></PyFunc>
+ <PyFunc><![CDATA[ return DoLoop,Index,Min,Max ]]></PyFunc> </PyFunction>
+ <PyFunction>
+<FuncName>NextLoop</FuncName>
+ <PyFunc><![CDATA[def NextLoop(Index,Min,Max) : ]]></PyFunc>
+ <PyFunc><![CDATA[ Index = Index - 1 ]]></PyFunc>
+ <PyFunc><![CDATA[ return Index,Min,Max ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>20/1/2005 - 17:13:50</creation-date>
+ <lastmodification-date>20/1/2005 - 17:13:50</lastmodification-date>
+ <editor-release>1.05</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>6</x-position>
+ <y-position>233</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>EndOfLoopSwitch</node-name>
+ <kind>5</kind>
+ <coupled-node>LoopSwitch</coupled-node>
+ <service>
+<service-name>EndOfLoopSwitch</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Index</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Min</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Max</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Index</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Min</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Max</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>?</FuncName>
+ <PyFunc><![CDATA[?]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>20/1/2005 - 17:13:50</creation-date>
+ <lastmodification-date>20/1/2005 - 17:13:50</lastmodification-date>
+ <editor-release>1.05</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>1268</x-position>
+ <y-position>210</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>IsEven</node-name>
+ <kind>3</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>IsEven</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>IsEven</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def IsEven(a) : ]]></PyFunc>
+ <PyFunc><![CDATA[ print a,"IsEven (GraphSwitch)" ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep( 1 ) ]]></PyFunc>
+ <PyFunc><![CDATA[ return a ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>20/1/2005 - 17:13:50</creation-date>
+ <lastmodification-date>20/1/2005 - 17:13:50</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>437</x-position>
+ <y-position>520</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>Switch</node-name>
+ <kind>6</kind>
+ <coupled-node>EndOfSwitch</coupled-node>
+ <service>
+<service-name>Switch</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Odd</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>int</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>boolean</outParameter-type>
+ <outParameter-name>Even</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>Switch</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def Switch(a) : ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
+ <PyFunc><![CDATA[ if a <= 0 : ]]></PyFunc>
+ <PyFunc><![CDATA[ return 0,a,0 ]]></PyFunc>
+ <PyFunc><![CDATA[ return a & 1,a,1-(a&1) ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>20/1/2005 - 17:13:50</creation-date>
+ <lastmodification-date>20/1/2005 - 17:13:50</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>201</x-position>
+ <y-position>233</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>EndOfSwitch</node-name>
+ <kind>7</kind>
+ <coupled-node>Switch</coupled-node>
+ <service>
+<service-name>EndOfSwitch</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>EndSwitch_1</FuncName>
+ <PyFunc><![CDATA[?]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>20/1/2005 - 17:13:50</creation-date>
+ <lastmodification-date>20/1/2005 - 17:13:50</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>1075</x-position>
+ <y-position>210</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>SwitchOdd</node-name>
+ <kind>6</kind>
+ <coupled-node>EndOfSwitchOdd</coupled-node>
+ <service>
+<service-name>SwitchOdd</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>boolean</outParameter-type>
+ <outParameter-name>POne</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>boolean</outParameter-type>
+ <outParameter-name>PThree</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>boolean</outParameter-type>
+ <outParameter-name>PFive</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>n</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>SwitchOdd</FuncName>
+ <PyFunc><![CDATA[def SwitchOdd(a) : ]]></PyFunc>
+ <PyFunc><![CDATA[ n = a/6 ]]></PyFunc>
+ <PyFunc><![CDATA[ r = a%6 ]]></PyFunc>
+ <PyFunc><![CDATA[ POne = 0 ]]></PyFunc>
+ <PyFunc><![CDATA[ PThree = 0 ]]></PyFunc>
+ <PyFunc><![CDATA[ PFive = 0 ]]></PyFunc>
+ <PyFunc><![CDATA[ if r == 1 : ]]></PyFunc>
+ <PyFunc><![CDATA[ POne = 1 ]]></PyFunc>
+ <PyFunc><![CDATA[ if r == 3 : ]]></PyFunc>
+ <PyFunc><![CDATA[ PThree = 1 ]]></PyFunc>
+ <PyFunc><![CDATA[ if r == 5 : ]]></PyFunc>
+ <PyFunc><![CDATA[ PFive = 1 ]]></PyFunc>
+ <PyFunc><![CDATA[ return POne,PThree,PFive,n ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>20/1/2005 - 17:13:50</creation-date>
+ <lastmodification-date>20/1/2005 - 17:13:50</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>412</x-position>
+ <y-position>169</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>EndOfSwitchOdd</node-name>
+ <kind>7</kind>
+ <coupled-node>SwitchOdd</coupled-node>
+ <service>
+<service-name>EndOfSwitchOdd</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>n</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>n</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>EndSwitch</FuncName>
+ <PyFunc><![CDATA[?]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>20/1/2005 - 17:13:50</creation-date>
+ <lastmodification-date>20/1/2005 - 17:13:50</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>851</x-position>
+ <y-position>210</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>PseudoPOne</node-name>
+ <kind>3</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>PseudoPOne</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>POne</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>PseudoPOne</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def PseudoPOne(POne) : ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
+ <PyFunc><![CDATA[ return 6*POne+1 ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>20/1/2005 - 17:13:50</creation-date>
+ <lastmodification-date>20/1/2005 - 17:13:50</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>612</x-position>
+ <y-position>5</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>PseudoPThree</node-name>
+ <kind>3</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>PseudoPThree</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>PThree</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>PseudoPThree_1</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def PseudoPThree_1(PThree) : ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
+ <PyFunc><![CDATA[ return 6*PThree+3 ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>20/1/2005 - 17:13:50</creation-date>
+ <lastmodification-date>20/1/2005 - 17:13:50</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>620</x-position>
+ <y-position>149</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>PseudoPFive</node-name>
+ <kind>3</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>PseudoPFive</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>PFive</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>PseudoPFive</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def PseudoPFive(PFive) : ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
+ <PyFunc><![CDATA[ return 6*PFive+5 ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>20/1/2005 - 17:13:50</creation-date>
+ <lastmodification-date>20/1/2005 - 17:13:50</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>625</x-position>
+ <y-position>343</y-position> </node> </node-list>
+ <link-list>
+<link>
+<fromnode-name>LoopSwitch</fromnode-name>
+ <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
+ <tonode-name>EndOfLoopSwitch</tonode-name>
+ <toserviceparameter-name>DoLoop</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>LoopSwitch</fromnode-name>
+ <fromserviceparameter-name>Index</fromserviceparameter-name>
+ <tonode-name>Switch</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>LoopSwitch</fromnode-name>
+ <fromserviceparameter-name>Min</fromserviceparameter-name>
+ <tonode-name>EndOfLoopSwitch</tonode-name>
+ <toserviceparameter-name>Min</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>LoopSwitch</fromnode-name>
+ <fromserviceparameter-name>Max</fromserviceparameter-name>
+ <tonode-name>EndOfLoopSwitch</tonode-name>
+ <toserviceparameter-name>Max</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>EndOfLoopSwitch</fromnode-name>
+ <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
+ <tonode-name>LoopSwitch</tonode-name>
+ <toserviceparameter-name>DoLoop</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>IsEven</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>EndOfSwitch</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>719</x>
+ <y>591</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>Odd</fromserviceparameter-name>
+ <tonode-name>SwitchOdd</tonode-name>
+ <toserviceparameter-name>Gate</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>IsEven</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>SwitchOdd</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>Even</fromserviceparameter-name>
+ <tonode-name>IsEven</tonode-name>
+ <toserviceparameter-name>Gate</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>Default</fromserviceparameter-name>
+ <tonode-name>EndOfSwitch</tonode-name>
+ <toserviceparameter-name>Default</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>1057</x>
+ <y>267</y> </coord>
+ <coord>
+<x>1079</x>
+ <y>669</y> </coord>
+ <coord>
+<x>383</x>
+ <y>666</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>EndOfSwitch</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>EndOfLoopSwitch</tonode-name>
+ <toserviceparameter-name>Index</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>SwitchOdd</fromnode-name>
+ <fromserviceparameter-name>POne</fromserviceparameter-name>
+ <tonode-name>PseudoPOne</tonode-name>
+ <toserviceparameter-name>Gate</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>SwitchOdd</fromnode-name>
+ <fromserviceparameter-name>PThree</fromserviceparameter-name>
+ <tonode-name>PseudoPThree</tonode-name>
+ <toserviceparameter-name>Gate</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>SwitchOdd</fromnode-name>
+ <fromserviceparameter-name>PFive</fromserviceparameter-name>
+ <tonode-name>PseudoPFive</tonode-name>
+ <toserviceparameter-name>Gate</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>SwitchOdd</fromnode-name>
+ <fromserviceparameter-name>n</fromserviceparameter-name>
+ <tonode-name>PseudoPOne</tonode-name>
+ <toserviceparameter-name>POne</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>SwitchOdd</fromnode-name>
+ <fromserviceparameter-name>n</fromserviceparameter-name>
+ <tonode-name>PseudoPThree</tonode-name>
+ <toserviceparameter-name>PThree</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>SwitchOdd</fromnode-name>
+ <fromserviceparameter-name>n</fromserviceparameter-name>
+ <tonode-name>PseudoPFive</tonode-name>
+ <toserviceparameter-name>PFive</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>SwitchOdd</fromnode-name>
+ <fromserviceparameter-name>Default</fromserviceparameter-name>
+ <tonode-name>EndOfSwitchOdd</tonode-name>
+ <toserviceparameter-name>Default</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>EndOfSwitchOdd</fromnode-name>
+ <fromserviceparameter-name>n</fromserviceparameter-name>
+ <tonode-name>EndOfSwitch</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>PseudoPOne</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>EndOfSwitchOdd</tonode-name>
+ <toserviceparameter-name>n</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>PseudoPThree</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>EndOfSwitchOdd</tonode-name>
+ <toserviceparameter-name>n</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>PseudoPFive</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>EndOfSwitchOdd</tonode-name>
+ <toserviceparameter-name>n</toserviceparameter-name>
+ <coord-list/> </link> </link-list>
+ <data-list>
+<data>
+<fromnode-name>GraphLoopSwitchOfSwitch</fromnode-name>
+ <fromserviceparameter-name>LoopSwitch__Index</fromserviceparameter-name>
+ <tonode-name>LoopSwitch</tonode-name>
+ <toserviceparameter-name>Index</toserviceparameter-name>
+ <data-value>
+<value-type>3</value-type>
+ <value>0</value> </data-value>
+ <coord-list/> </data>
+ <data>
+<fromnode-name>GraphLoopSwitchOfSwitch</fromnode-name>
+ <fromserviceparameter-name>LoopSwitch__Min</fromserviceparameter-name>
+ <tonode-name>LoopSwitch</tonode-name>
+ <toserviceparameter-name>Min</toserviceparameter-name>
+ <data-value>
+<value-type>3</value-type>
+ <value>-5</value> </data-value>
+ <coord-list/> </data>
+ <data>
+<fromnode-name>GraphLoopSwitchOfSwitch</fromnode-name>
+ <fromserviceparameter-name>LoopSwitch__Max</fromserviceparameter-name>
+ <tonode-name>LoopSwitch</tonode-name>
+ <toserviceparameter-name>Max</toserviceparameter-name>
+ <data-value>
+<value-type>3</value-type>
+ <value>65</value> </data-value>
+ <coord-list/> </data> </data-list> </dataflow></supergraph>
--- /dev/null
+
+# Generated python file of Graph GraphLoopSwitchOfSwitchNOTValid
+
+from SuperV import *
+
+# Graph creation of GraphLoopSwitchOfSwitchNOTValid
+def DefGraphLoopSwitchOfSwitchNOTValid() :
+ GraphLoopSwitchOfSwitchNOTValid = Graph( 'GraphLoopSwitchOfSwitchNOTValid' )
+ GraphLoopSwitchOfSwitchNOTValid.SetName( 'GraphLoopSwitchOfSwitchNOTValid' )
+ GraphLoopSwitchOfSwitchNOTValid.SetAuthor( 'JR' )
+ GraphLoopSwitchOfSwitchNOTValid.SetComment( '' )
+ GraphLoopSwitchOfSwitchNOTValid.Coords( 0 , 0 )
+
+ # Creation of Factory Nodes
+
+ # Creation of InLine Nodes
+ PyIsEven = []
+ PyIsEven.append( 'from time import * ' )
+ PyIsEven.append( 'def IsEven(a) : ' )
+ PyIsEven.append( ' print a,"IsEven (GraphSwitch)" ' )
+ PyIsEven.append( ' sleep( 1 ) ' )
+ PyIsEven.append( ' return a ' )
+ IsEven = GraphLoopSwitchOfSwitchNOTValid.INode( 'IsEven' , PyIsEven )
+ IsEven.SetName( 'IsEven' )
+ IsEven.SetAuthor( '' )
+ IsEven.SetComment( 'Compute Node' )
+ IsEven.Coords( 437 , 520 )
+ IIsEvena = IsEven.InPort( 'a' , 'long' )
+ IIsEvenGate = IsEven.GetInPort( 'Gate' )
+ OIsEvena = IsEven.OutPort( 'a' , 'long' )
+ OIsEvenGate = IsEven.GetOutPort( 'Gate' )
+
+ PyPseudoPOne = []
+ PyPseudoPOne.append( 'from time import * ' )
+ PyPseudoPOne.append( 'def PseudoPOne(POne) : ' )
+ PyPseudoPOne.append( ' sleep(1) ' )
+ PyPseudoPOne.append( ' return 6*POne+1 ' )
+ PseudoPOne = GraphLoopSwitchOfSwitchNOTValid.INode( 'PseudoPOne' , PyPseudoPOne )
+ PseudoPOne.SetName( 'PseudoPOne' )
+ PseudoPOne.SetAuthor( '' )
+ PseudoPOne.SetComment( 'Compute Node' )
+ PseudoPOne.Coords( 612 , 5 )
+ IPseudoPOnePOne = PseudoPOne.InPort( 'POne' , 'long' )
+ IPseudoPOneGate = PseudoPOne.GetInPort( 'Gate' )
+ OPseudoPOnea = PseudoPOne.OutPort( 'a' , 'long' )
+ OPseudoPOneGate = PseudoPOne.GetOutPort( 'Gate' )
+
+ PyPseudoPThree = []
+ PyPseudoPThree.append( 'from time import * ' )
+ PyPseudoPThree.append( 'def PseudoPThree_1(PThree) : ' )
+ PyPseudoPThree.append( ' sleep(1) ' )
+ PyPseudoPThree.append( ' return 6*PThree+3 ' )
+ PseudoPThree = GraphLoopSwitchOfSwitchNOTValid.INode( 'PseudoPThree_1' , PyPseudoPThree )
+ PseudoPThree.SetName( 'PseudoPThree' )
+ PseudoPThree.SetAuthor( '' )
+ PseudoPThree.SetComment( 'Compute Node' )
+ PseudoPThree.Coords( 620 , 149 )
+ IPseudoPThreePThree = PseudoPThree.InPort( 'PThree' , 'long' )
+ IPseudoPThreeGate = PseudoPThree.GetInPort( 'Gate' )
+ OPseudoPThreea = PseudoPThree.OutPort( 'a' , 'long' )
+ OPseudoPThreeGate = PseudoPThree.GetOutPort( 'Gate' )
+
+ PyPseudoPFive = []
+ PyPseudoPFive.append( 'from time import * ' )
+ PyPseudoPFive.append( 'def PseudoPFive(PFive) : ' )
+ PyPseudoPFive.append( ' sleep(1) ' )
+ PyPseudoPFive.append( ' return 6*PFive+5 ' )
+ PseudoPFive = GraphLoopSwitchOfSwitchNOTValid.INode( 'PseudoPFive' , PyPseudoPFive )
+ PseudoPFive.SetName( 'PseudoPFive' )
+ PseudoPFive.SetAuthor( '' )
+ PseudoPFive.SetComment( 'Compute Node' )
+ PseudoPFive.Coords( 625 , 343 )
+ IPseudoPFivePFive = PseudoPFive.InPort( 'PFive' , 'long' )
+ IPseudoPFiveGate = PseudoPFive.GetInPort( 'Gate' )
+ OPseudoPFivea = PseudoPFive.OutPort( 'a' , 'long' )
+ OPseudoPFiveGate = PseudoPFive.GetOutPort( 'Gate' )
+
+ # Creation of Loop Nodes
+ PyLoopSwitch = []
+ PyLoopSwitch.append( 'def InitLoop(Index,Min,Max) : ' )
+ PyLoopSwitch.append( ' Index = Max ' )
+ PyLoopSwitch.append( ' return Index,Min,Max ' )
+ PyMoreLoopSwitch = []
+ PyMoreLoopSwitch.append( 'def MoreLoop(Index,Min,Max) : ' )
+ PyMoreLoopSwitch.append( ' if Index >= Min : ' )
+ PyMoreLoopSwitch.append( ' DoLoop = 1 ' )
+ PyMoreLoopSwitch.append( ' else : ' )
+ PyMoreLoopSwitch.append( ' DoLoop = 0 ' )
+ PyMoreLoopSwitch.append( ' return DoLoop,Index,Min,Max ' )
+ PyNextLoopSwitch = []
+ PyNextLoopSwitch.append( 'def NextLoop(Index,Min,Max) : ' )
+ PyNextLoopSwitch.append( ' Index = Index - 1 ' )
+ PyNextLoopSwitch.append( ' return Index,Min,Max ' )
+ LoopSwitch,EndOfLoopSwitch = GraphLoopSwitchOfSwitchNOTValid.LNode( 'InitLoop' , PyLoopSwitch , 'MoreLoop' , PyMoreLoopSwitch , 'NextLoop' , PyNextLoopSwitch )
+ EndOfLoopSwitch.SetName( 'EndOfLoopSwitch' )
+ EndOfLoopSwitch.SetAuthor( '' )
+ EndOfLoopSwitch.SetComment( 'Compute Node' )
+ EndOfLoopSwitch.Coords( 1268 , 210 )
+ PyEndOfLoopSwitch = []
+ EndOfLoopSwitch.SetPyFunction( '' , PyEndOfLoopSwitch )
+ ILoopSwitchDoLoop = LoopSwitch.GetInPort( 'DoLoop' )
+ ILoopSwitchIndex = LoopSwitch.InPort( 'Index' , 'long' )
+ ILoopSwitchMin = LoopSwitch.InPort( 'Min' , 'long' )
+ ILoopSwitchMax = LoopSwitch.InPort( 'Max' , 'long' )
+ ILoopSwitchGate = LoopSwitch.GetInPort( 'Gate' )
+ OLoopSwitchDoLoop = LoopSwitch.GetOutPort( 'DoLoop' )
+ OLoopSwitchIndex = LoopSwitch.GetOutPort( 'Index' )
+ OLoopSwitchMin = LoopSwitch.GetOutPort( 'Min' )
+ OLoopSwitchMax = LoopSwitch.GetOutPort( 'Max' )
+ IEndOfLoopSwitchDoLoop = EndOfLoopSwitch.GetInPort( 'DoLoop' )
+ IEndOfLoopSwitchIndex = EndOfLoopSwitch.GetInPort( 'Index' )
+ IEndOfLoopSwitchMin = EndOfLoopSwitch.GetInPort( 'Min' )
+ IEndOfLoopSwitchMax = EndOfLoopSwitch.GetInPort( 'Max' )
+ IEndOfLoopSwitchGate = EndOfLoopSwitch.GetInPort( 'Gate' )
+ OEndOfLoopSwitchDoLoop = EndOfLoopSwitch.GetOutPort( 'DoLoop' )
+ OEndOfLoopSwitchIndex = EndOfLoopSwitch.GetOutPort( 'Index' )
+ OEndOfLoopSwitchMin = EndOfLoopSwitch.GetOutPort( 'Min' )
+ OEndOfLoopSwitchMax = EndOfLoopSwitch.GetOutPort( 'Max' )
+ OEndOfLoopSwitchGate = EndOfLoopSwitch.GetOutPort( 'Gate' )
+ LoopSwitch.SetName( 'LoopSwitch' )
+ LoopSwitch.SetAuthor( '' )
+ LoopSwitch.SetComment( 'Compute Node' )
+ LoopSwitch.Coords( 6 , 233 )
+
+ # Creation of Switch Nodes
+ PySwitch = []
+ PySwitch.append( 'from time import * ' )
+ PySwitch.append( 'def Switch(a) : ' )
+ PySwitch.append( ' sleep(1) ' )
+ PySwitch.append( ' if a <= 0 : ' )
+ PySwitch.append( ' return 0,a,0 ' )
+ PySwitch.append( ' return a & 1,a,1-(a&1) ' )
+ Switch,EndOfSwitch = GraphLoopSwitchOfSwitchNOTValid.SNode( 'Switch' , PySwitch )
+ EndOfSwitch.SetName( 'EndOfSwitch' )
+ EndOfSwitch.SetAuthor( '' )
+ EndOfSwitch.SetComment( 'Compute Node' )
+ EndOfSwitch.Coords( 1075 , 210 )
+ PyEndOfSwitch = []
+ EndOfSwitch.SetPyFunction( 'EndSwitch_1' , PyEndOfSwitch )
+ IEndOfSwitcha = EndOfSwitch.InPort( 'a' , 'long' )
+ IEndOfSwitchDefault = EndOfSwitch.GetInPort( 'Default' )
+ OEndOfSwitcha = EndOfSwitch.OutPort( 'a' , 'long' )
+ OEndOfSwitchGate = EndOfSwitch.GetOutPort( 'Gate' )
+ Switch.SetName( 'Switch' )
+ Switch.SetAuthor( '' )
+ Switch.SetComment( 'Compute Node' )
+ Switch.Coords( 201 , 233 )
+ ISwitcha = Switch.InPort( 'a' , 'long' )
+ ISwitchGate = Switch.GetInPort( 'Gate' )
+ OSwitchOdd = Switch.OutPort( 'Odd' , 'long' )
+ OSwitcha = Switch.OutPort( 'a' , 'int' )
+ OSwitchEven = Switch.OutPort( 'Even' , 'boolean' )
+ OSwitchDefault = Switch.GetOutPort( 'Default' )
+
+ PySwitchOdd = []
+ PySwitchOdd.append( 'def SwitchOdd(a) : ' )
+ PySwitchOdd.append( ' n = a/6 ' )
+ PySwitchOdd.append( ' r = a%6 ' )
+ PySwitchOdd.append( ' POne = 0 ' )
+ PySwitchOdd.append( ' PThree = 0 ' )
+ PySwitchOdd.append( ' PFive = 0 ' )
+ PySwitchOdd.append( ' if r == 1 : ' )
+ PySwitchOdd.append( ' POne = 1 ' )
+ PySwitchOdd.append( ' if r == 3 : ' )
+ PySwitchOdd.append( ' PThree = 1 ' )
+ PySwitchOdd.append( ' if r == 5 : ' )
+ PySwitchOdd.append( ' PFive = 1 ' )
+ PySwitchOdd.append( ' return POne,PThree,PFive,n ' )
+ SwitchOdd,EndOfSwitchOdd = GraphLoopSwitchOfSwitchNOTValid.SNode( 'SwitchOdd' , PySwitchOdd )
+ EndOfSwitchOdd.SetName( 'EndOfSwitchOdd' )
+ EndOfSwitchOdd.SetAuthor( '' )
+ EndOfSwitchOdd.SetComment( 'Compute Node' )
+ EndOfSwitchOdd.Coords( 851 , 210 )
+ PyEndOfSwitchOdd = []
+ EndOfSwitchOdd.SetPyFunction( 'EndSwitch' , PyEndOfSwitchOdd )
+ IEndOfSwitchOddn = EndOfSwitchOdd.InPort( 'n' , 'long' )
+ IEndOfSwitchOddDefault = EndOfSwitchOdd.GetInPort( 'Default' )
+ OEndOfSwitchOddn = EndOfSwitchOdd.OutPort( 'n' , 'long' )
+ OEndOfSwitchOddGate = EndOfSwitchOdd.GetOutPort( 'Gate' )
+ SwitchOdd.SetName( 'SwitchOdd' )
+ SwitchOdd.SetAuthor( '' )
+ SwitchOdd.SetComment( 'Compute Node' )
+ SwitchOdd.Coords( 412 , 169 )
+ ISwitchOdda = SwitchOdd.InPort( 'a' , 'long' )
+ ISwitchOddGate = SwitchOdd.GetInPort( 'Gate' )
+ OSwitchOddPOne = SwitchOdd.OutPort( 'POne' , 'boolean' )
+ OSwitchOddPThree = SwitchOdd.OutPort( 'PThree' , 'boolean' )
+ OSwitchOddPFive = SwitchOdd.OutPort( 'PFive' , 'boolean' )
+ OSwitchOddn = SwitchOdd.OutPort( 'n' , 'long' )
+ OSwitchOddDefault = SwitchOdd.GetOutPort( 'Default' )
+
+ # Creation of Links
+ LLoopSwitchIndexSwitcha = GraphLoopSwitchOfSwitchNOTValid.Link( OLoopSwitchIndex , ISwitcha )
+
+ LLoopSwitchMinEndOfLoopSwitchMin = GraphLoopSwitchOfSwitchNOTValid.Link( OLoopSwitchMin , IEndOfLoopSwitchMin )
+
+ LLoopSwitchMaxEndOfLoopSwitchMax = GraphLoopSwitchOfSwitchNOTValid.Link( OLoopSwitchMax , IEndOfLoopSwitchMax )
+
+ LIsEvenaEndOfSwitcha = GraphLoopSwitchOfSwitchNOTValid.Link( OIsEvena , IEndOfSwitcha )
+ LIsEvenaEndOfSwitcha.AddCoord( 1 , 719 , 591 )
+
+ LSwitchOddSwitchOddGate = GraphLoopSwitchOfSwitchNOTValid.Link( OSwitchOdd , ISwitchOddGate )
+
+ LSwitchaIsEvena = GraphLoopSwitchOfSwitchNOTValid.Link( OSwitcha , IIsEvena )
+
+ LSwitchaSwitchOdda = GraphLoopSwitchOfSwitchNOTValid.Link( OSwitcha , ISwitchOdda )
+
+ LSwitchEvenIsEvenGate = GraphLoopSwitchOfSwitchNOTValid.Link( OSwitchEven , IIsEvenGate )
+
+ LSwitchDefaultEndOfSwitchDefault = GraphLoopSwitchOfSwitchNOTValid.Link( OSwitchDefault , IEndOfSwitchDefault )
+ LSwitchDefaultEndOfSwitchDefault.AddCoord( 1 , 1057 , 267 )
+ LSwitchDefaultEndOfSwitchDefault.AddCoord( 2 , 1079 , 669 )
+ LSwitchDefaultEndOfSwitchDefault.AddCoord( 3 , 383 , 666 )
+
+ LEndOfSwitchaEndOfLoopSwitchIndex = GraphLoopSwitchOfSwitchNOTValid.Link( OEndOfSwitcha , IEndOfLoopSwitchIndex )
+
+ LSwitchOddPOnePseudoPOneGate = GraphLoopSwitchOfSwitchNOTValid.Link( OSwitchOddPOne , IPseudoPOneGate )
+
+ LSwitchOddPThreePseudoPThreeGate = GraphLoopSwitchOfSwitchNOTValid.Link( OSwitchOddPThree , IPseudoPThreeGate )
+
+ LSwitchOddPFivePseudoPFiveGate = GraphLoopSwitchOfSwitchNOTValid.Link( OSwitchOddPFive , IPseudoPFiveGate )
+
+ LSwitchOddnPseudoPOnePOne = GraphLoopSwitchOfSwitchNOTValid.Link( OSwitchOddn , IPseudoPOnePOne )
+
+ LSwitchOddnPseudoPThreePThree = GraphLoopSwitchOfSwitchNOTValid.Link( OSwitchOddn , IPseudoPThreePThree )
+
+ LSwitchOddnPseudoPFivePFive = GraphLoopSwitchOfSwitchNOTValid.Link( OSwitchOddn , IPseudoPFivePFive )
+
+ LSwitchOddDefaultEndOfSwitchOddDefault = GraphLoopSwitchOfSwitchNOTValid.Link( OSwitchOddDefault , IEndOfSwitchOddDefault )
+
+ LPseudoPOneaEndOfSwitchOddn = GraphLoopSwitchOfSwitchNOTValid.Link( OPseudoPOnea , IEndOfSwitchOddn )
+
+ LPseudoPThreeaEndOfSwitchOddn = GraphLoopSwitchOfSwitchNOTValid.Link( OPseudoPThreea , IEndOfSwitchOddn )
+
+ LPseudoPFiveaEndOfSwitchOddn = GraphLoopSwitchOfSwitchNOTValid.Link( OPseudoPFivea , IEndOfSwitchOddn )
+
+ # Input datas
+ ILoopSwitchIndex.Input( 0 )
+ ILoopSwitchMin.Input( -5 )
+ ILoopSwitchMax.Input( 65 )
+
+ # Output Ports of the graph
+ #OEndOfLoopSwitchIndex = EndOfLoopSwitch.GetOutPort( 'Index' )
+ #OEndOfLoopSwitchMin = EndOfLoopSwitch.GetOutPort( 'Min' )
+ #OEndOfLoopSwitchMax = EndOfLoopSwitch.GetOutPort( 'Max' )
+ #OEndOfSwitchOddn = EndOfSwitchOdd.GetOutPort( 'n' )
+ return GraphLoopSwitchOfSwitchNOTValid
+
+
+GraphLoopSwitchOfSwitchNOTValid = DefGraphLoopSwitchOfSwitchNOTValid()
--- /dev/null
+<!DOCTYPE SuperGraph>
+<supergraph>
+<dataflow>
+<info-list>
+<node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>GraphLoopSwitchOfSwitchNOTValid</node-name>
+ <kind>1</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>GraphLoopSwitchOfSwitchNOTValid</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>LoopSwitch__Index</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>LoopSwitch__Min</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>LoopSwitch__Max</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>EndOfLoopSwitch__Index</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>EndOfLoopSwitch__Min</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>EndOfLoopSwitch__Max</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>EndOfSwitchOdd__n</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list/>
+ <creation-date>1/10/2003 - 17:23:54</creation-date>
+ <lastmodification-date>20/1/2005 - 17:22:49</lastmodification-date>
+ <editor-release>1.05</editor-release>
+ <author>JR</author>
+ <container>?</container>
+ <comment>?</comment>
+ <x-position>0</x-position>
+ <y-position>0</y-position> </node> </info-list>
+ <node-list>
+<node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>LoopSwitch</node-name>
+ <kind>4</kind>
+ <coupled-node>EndOfLoopSwitch</coupled-node>
+ <service>
+<service-name>LoopSwitch</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Index</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Min</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Max</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Index</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Min</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Max</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>InitLoop</FuncName>
+ <PyFunc><![CDATA[def InitLoop(Index,Min,Max) : ]]></PyFunc>
+ <PyFunc><![CDATA[ Index = Max ]]></PyFunc>
+ <PyFunc><![CDATA[ return Index,Min,Max ]]></PyFunc> </PyFunction>
+ <PyFunction>
+<FuncName>MoreLoop</FuncName>
+ <PyFunc><![CDATA[def MoreLoop(Index,Min,Max) : ]]></PyFunc>
+ <PyFunc><![CDATA[ if Index >= Min : ]]></PyFunc>
+ <PyFunc><![CDATA[ DoLoop = 1 ]]></PyFunc>
+ <PyFunc><![CDATA[ else : ]]></PyFunc>
+ <PyFunc><![CDATA[ DoLoop = 0 ]]></PyFunc>
+ <PyFunc><![CDATA[ return DoLoop,Index,Min,Max ]]></PyFunc> </PyFunction>
+ <PyFunction>
+<FuncName>NextLoop</FuncName>
+ <PyFunc><![CDATA[def NextLoop(Index,Min,Max) : ]]></PyFunc>
+ <PyFunc><![CDATA[ Index = Index - 1 ]]></PyFunc>
+ <PyFunc><![CDATA[ return Index,Min,Max ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>20/1/2005 - 17:13:50</creation-date>
+ <lastmodification-date>20/1/2005 - 17:13:50</lastmodification-date>
+ <editor-release>1.05</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>6</x-position>
+ <y-position>233</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>EndOfLoopSwitch</node-name>
+ <kind>5</kind>
+ <coupled-node>LoopSwitch</coupled-node>
+ <service>
+<service-name>EndOfLoopSwitch</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Index</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Min</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Max</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Index</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Min</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Max</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>?</FuncName>
+ <PyFunc><![CDATA[?]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>20/1/2005 - 17:13:50</creation-date>
+ <lastmodification-date>20/1/2005 - 17:13:50</lastmodification-date>
+ <editor-release>1.05</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>1268</x-position>
+ <y-position>210</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>IsEven</node-name>
+ <kind>3</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>IsEven</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>IsEven</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def IsEven(a) : ]]></PyFunc>
+ <PyFunc><![CDATA[ print a,"IsEven (GraphSwitch)" ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep( 1 ) ]]></PyFunc>
+ <PyFunc><![CDATA[ return a ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>20/1/2005 - 17:13:50</creation-date>
+ <lastmodification-date>20/1/2005 - 17:13:50</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>437</x-position>
+ <y-position>520</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>Switch</node-name>
+ <kind>6</kind>
+ <coupled-node>EndOfSwitch</coupled-node>
+ <service>
+<service-name>Switch</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Odd</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>int</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>boolean</outParameter-type>
+ <outParameter-name>Even</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>Switch</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def Switch(a) : ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
+ <PyFunc><![CDATA[ if a <= 0 : ]]></PyFunc>
+ <PyFunc><![CDATA[ return 0,a,0 ]]></PyFunc>
+ <PyFunc><![CDATA[ return a & 1,a,1-(a&1) ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>20/1/2005 - 17:13:50</creation-date>
+ <lastmodification-date>20/1/2005 - 17:13:50</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>201</x-position>
+ <y-position>233</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>EndOfSwitch</node-name>
+ <kind>7</kind>
+ <coupled-node>Switch</coupled-node>
+ <service>
+<service-name>EndOfSwitch</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>EndSwitch_1</FuncName>
+ <PyFunc><![CDATA[?]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>20/1/2005 - 17:13:50</creation-date>
+ <lastmodification-date>20/1/2005 - 17:13:50</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>1075</x-position>
+ <y-position>210</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>SwitchOdd</node-name>
+ <kind>6</kind>
+ <coupled-node>EndOfSwitchOdd</coupled-node>
+ <service>
+<service-name>SwitchOdd</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>boolean</outParameter-type>
+ <outParameter-name>POne</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>boolean</outParameter-type>
+ <outParameter-name>PThree</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>boolean</outParameter-type>
+ <outParameter-name>PFive</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>n</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>SwitchOdd</FuncName>
+ <PyFunc><![CDATA[def SwitchOdd(a) : ]]></PyFunc>
+ <PyFunc><![CDATA[ n = a/6 ]]></PyFunc>
+ <PyFunc><![CDATA[ r = a%6 ]]></PyFunc>
+ <PyFunc><![CDATA[ POne = 0 ]]></PyFunc>
+ <PyFunc><![CDATA[ PThree = 0 ]]></PyFunc>
+ <PyFunc><![CDATA[ PFive = 0 ]]></PyFunc>
+ <PyFunc><![CDATA[ if r == 1 : ]]></PyFunc>
+ <PyFunc><![CDATA[ POne = 1 ]]></PyFunc>
+ <PyFunc><![CDATA[ if r == 3 : ]]></PyFunc>
+ <PyFunc><![CDATA[ PThree = 1 ]]></PyFunc>
+ <PyFunc><![CDATA[ if r == 5 : ]]></PyFunc>
+ <PyFunc><![CDATA[ PFive = 1 ]]></PyFunc>
+ <PyFunc><![CDATA[ return POne,PThree,PFive,n ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>20/1/2005 - 17:13:50</creation-date>
+ <lastmodification-date>20/1/2005 - 17:13:50</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>412</x-position>
+ <y-position>169</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>EndOfSwitchOdd</node-name>
+ <kind>7</kind>
+ <coupled-node>SwitchOdd</coupled-node>
+ <service>
+<service-name>EndOfSwitchOdd</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>n</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>n</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>EndSwitch</FuncName>
+ <PyFunc><![CDATA[?]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>20/1/2005 - 17:13:50</creation-date>
+ <lastmodification-date>20/1/2005 - 17:13:50</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>851</x-position>
+ <y-position>210</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>PseudoPOne</node-name>
+ <kind>3</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>PseudoPOne</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>POne</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>PseudoPOne</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def PseudoPOne(POne) : ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
+ <PyFunc><![CDATA[ return 6*POne+1 ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>20/1/2005 - 17:13:50</creation-date>
+ <lastmodification-date>20/1/2005 - 17:13:50</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>612</x-position>
+ <y-position>5</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>PseudoPThree</node-name>
+ <kind>3</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>PseudoPThree</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>PThree</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>PseudoPThree_1</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def PseudoPThree_1(PThree) : ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
+ <PyFunc><![CDATA[ return 6*PThree+3 ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>20/1/2005 - 17:13:50</creation-date>
+ <lastmodification-date>20/1/2005 - 17:13:50</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>620</x-position>
+ <y-position>149</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>PseudoPFive</node-name>
+ <kind>3</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>PseudoPFive</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>PFive</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>PseudoPFive</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def PseudoPFive(PFive) : ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
+ <PyFunc><![CDATA[ return 6*PFive+5 ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>20/1/2005 - 17:13:50</creation-date>
+ <lastmodification-date>20/1/2005 - 17:13:50</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>625</x-position>
+ <y-position>343</y-position> </node> </node-list>
+ <link-list>
+<link>
+<fromnode-name>LoopSwitch</fromnode-name>
+ <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
+ <tonode-name>EndOfLoopSwitch</tonode-name>
+ <toserviceparameter-name>DoLoop</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>LoopSwitch</fromnode-name>
+ <fromserviceparameter-name>Index</fromserviceparameter-name>
+ <tonode-name>Switch</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>LoopSwitch</fromnode-name>
+ <fromserviceparameter-name>Min</fromserviceparameter-name>
+ <tonode-name>EndOfLoopSwitch</tonode-name>
+ <toserviceparameter-name>Min</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>LoopSwitch</fromnode-name>
+ <fromserviceparameter-name>Max</fromserviceparameter-name>
+ <tonode-name>EndOfLoopSwitch</tonode-name>
+ <toserviceparameter-name>Max</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>EndOfLoopSwitch</fromnode-name>
+ <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
+ <tonode-name>LoopSwitch</tonode-name>
+ <toserviceparameter-name>DoLoop</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>IsEven</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>EndOfSwitch</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>719</x>
+ <y>591</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>Odd</fromserviceparameter-name>
+ <tonode-name>SwitchOdd</tonode-name>
+ <toserviceparameter-name>Gate</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>IsEven</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>SwitchOdd</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>Even</fromserviceparameter-name>
+ <tonode-name>IsEven</tonode-name>
+ <toserviceparameter-name>Gate</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>Default</fromserviceparameter-name>
+ <tonode-name>EndOfSwitch</tonode-name>
+ <toserviceparameter-name>Default</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>1057</x>
+ <y>267</y> </coord>
+ <coord>
+<x>1079</x>
+ <y>669</y> </coord>
+ <coord>
+<x>383</x>
+ <y>666</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>EndOfSwitch</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>EndOfLoopSwitch</tonode-name>
+ <toserviceparameter-name>Index</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>SwitchOdd</fromnode-name>
+ <fromserviceparameter-name>POne</fromserviceparameter-name>
+ <tonode-name>PseudoPOne</tonode-name>
+ <toserviceparameter-name>Gate</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>SwitchOdd</fromnode-name>
+ <fromserviceparameter-name>PThree</fromserviceparameter-name>
+ <tonode-name>PseudoPThree</tonode-name>
+ <toserviceparameter-name>Gate</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>SwitchOdd</fromnode-name>
+ <fromserviceparameter-name>PFive</fromserviceparameter-name>
+ <tonode-name>PseudoPFive</tonode-name>
+ <toserviceparameter-name>Gate</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>SwitchOdd</fromnode-name>
+ <fromserviceparameter-name>n</fromserviceparameter-name>
+ <tonode-name>PseudoPOne</tonode-name>
+ <toserviceparameter-name>POne</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>SwitchOdd</fromnode-name>
+ <fromserviceparameter-name>n</fromserviceparameter-name>
+ <tonode-name>PseudoPThree</tonode-name>
+ <toserviceparameter-name>PThree</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>SwitchOdd</fromnode-name>
+ <fromserviceparameter-name>n</fromserviceparameter-name>
+ <tonode-name>PseudoPFive</tonode-name>
+ <toserviceparameter-name>PFive</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>SwitchOdd</fromnode-name>
+ <fromserviceparameter-name>Default</fromserviceparameter-name>
+ <tonode-name>EndOfSwitchOdd</tonode-name>
+ <toserviceparameter-name>Default</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>PseudoPOne</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>EndOfSwitchOdd</tonode-name>
+ <toserviceparameter-name>n</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>PseudoPThree</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>EndOfSwitchOdd</tonode-name>
+ <toserviceparameter-name>n</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>PseudoPFive</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>EndOfSwitchOdd</tonode-name>
+ <toserviceparameter-name>n</toserviceparameter-name>
+ <coord-list/> </link> </link-list>
+ <data-list>
+<data>
+<fromnode-name>GraphLoopSwitchOfSwitchNOTValid</fromnode-name>
+ <fromserviceparameter-name>LoopSwitch__Index</fromserviceparameter-name>
+ <tonode-name>LoopSwitch</tonode-name>
+ <toserviceparameter-name>Index</toserviceparameter-name>
+ <data-value>
+<value-type>3</value-type>
+ <value>0</value> </data-value>
+ <coord-list/> </data>
+ <data>
+<fromnode-name>GraphLoopSwitchOfSwitchNOTValid</fromnode-name>
+ <fromserviceparameter-name>LoopSwitch__Min</fromserviceparameter-name>
+ <tonode-name>LoopSwitch</tonode-name>
+ <toserviceparameter-name>Min</toserviceparameter-name>
+ <data-value>
+<value-type>3</value-type>
+ <value>-5</value> </data-value>
+ <coord-list/> </data>
+ <data>
+<fromnode-name>GraphLoopSwitchOfSwitchNOTValid</fromnode-name>
+ <fromserviceparameter-name>LoopSwitch__Max</fromserviceparameter-name>
+ <tonode-name>LoopSwitch</tonode-name>
+ <toserviceparameter-name>Max</toserviceparameter-name>
+ <data-value>
+<value-type>3</value-type>
+ <value>65</value> </data-value>
+ <coord-list/> </data> </data-list> </dataflow></supergraph>
--- /dev/null
+
+# Generated python file of Graph GraphLoopSwitchs
+
+from SuperV import *
+
+# Graph creation of GraphLoopSwitchs
+def DefGraphLoopSwitchs() :
+ GraphLoopSwitchs = Graph( 'GraphLoopSwitchs' )
+ GraphLoopSwitchs.SetName( 'GraphLoopSwitchs' )
+ GraphLoopSwitchs.SetAuthor( 'JR' )
+ GraphLoopSwitchs.SetComment( '' )
+ GraphLoopSwitchs.Coords( 0 , 0 )
+
+ # Creation of Factory Nodes
+
+ # Creation of InLine Nodes
+ PyIsOdd = []
+ PyIsOdd.append( 'from time import * ' )
+ PyIsOdd.append( 'def IsOdd(a) : ' )
+ PyIsOdd.append( ' print a,"IsOdd" ' )
+ PyIsOdd.append( ' sleep( 1 ) ' )
+ PyIsOdd.append( ' return a ' )
+ IsOdd = GraphLoopSwitchs.INode( 'IsOdd' , PyIsOdd )
+ IsOdd.SetName( 'IsOdd' )
+ IsOdd.SetAuthor( '' )
+ IsOdd.SetComment( 'Python function' )
+ IsOdd.Coords( 476 , 50 )
+ IIsOdda = IsOdd.InPort( 'a' , 'long' )
+ IIsOddGate = IsOdd.GetInPort( 'Gate' )
+ OIsOdda = IsOdd.OutPort( 'a' , 'long' )
+ OIsOddGate = IsOdd.GetOutPort( 'Gate' )
+
+ PyIsEven = []
+ PyIsEven.append( 'from time import * ' )
+ PyIsEven.append( 'def IsEven(a) : ' )
+ PyIsEven.append( ' print a,"IsEven" ' )
+ PyIsEven.append( ' sleep( 1 ) ' )
+ PyIsEven.append( ' return a ' )
+ IsEven = GraphLoopSwitchs.INode( 'IsEven' , PyIsEven )
+ IsEven.SetName( 'IsEven' )
+ IsEven.SetAuthor( '' )
+ IsEven.SetComment( 'Python function' )
+ IsEven.Coords( 479 , 311 )
+ IIsEvena = IsEven.InPort( 'a' , 'long' )
+ IIsEvenGate = IsEven.GetInPort( 'Gate' )
+ OIsEvena = IsEven.OutPort( 'a' , 'long' )
+ OIsEvenGate = IsEven.GetOutPort( 'Gate' )
+
+ PySwitchsCompare = []
+ PySwitchsCompare.append( 'def SwitchsCompare(aOdd,Odd,aEven,Even) : ' )
+ PySwitchsCompare.append( ' return a ' )
+ SwitchsCompare = GraphLoopSwitchs.INode( 'SwitchsCompare' , PySwitchsCompare )
+ SwitchsCompare.SetName( 'SwitchsCompare' )
+ SwitchsCompare.SetAuthor( '' )
+ SwitchsCompare.SetComment( 'Compute Node' )
+ SwitchsCompare.Coords( 919 , 242 )
+ ISwitchsCompareaOdd = SwitchsCompare.InPort( 'aOdd' , 'long' )
+ ISwitchsCompareOdd = SwitchsCompare.InPort( 'Odd' , 'boolean' )
+ ISwitchsCompareaEven = SwitchsCompare.InPort( 'aEven' , 'long' )
+ ISwitchsCompareEven = SwitchsCompare.InPort( 'Even' , 'boolean' )
+ ISwitchsCompareGate = SwitchsCompare.GetInPort( 'Gate' )
+ OSwitchsComparea = SwitchsCompare.OutPort( 'a' , 'long' )
+ OSwitchsCompareGate = SwitchsCompare.GetOutPort( 'Gate' )
+
+ # Creation of Loop Nodes
+ PyLoop = []
+ PyLoop.append( 'def InitLoop(Index,Min,Max) : ' )
+ PyLoop.append( ' return Index,Min,Max ' )
+ PyMoreLoop = []
+ PyMoreLoop.append( 'def MoreLoop(Index,Min,Max) : ' )
+ PyMoreLoop.append( ' if Index <= Max : ' )
+ PyMoreLoop.append( ' DoLoop = 1 ' )
+ PyMoreLoop.append( ' else : ' )
+ PyMoreLoop.append( ' DoLoop = 0 ' )
+ PyMoreLoop.append( ' return DoLoop,Index,Min,Max ' )
+ PyNextLoop = []
+ PyNextLoop.append( 'def NextLoop(Index,Min,Max) : ' )
+ PyNextLoop.append( ' Index = Index + 1 ' )
+ PyNextLoop.append( ' return Index,Min,Max ' )
+ Loop,EndOfLoop = GraphLoopSwitchs.LNode( 'InitLoop' , PyLoop , 'MoreLoop' , PyMoreLoop , 'NextLoop' , PyNextLoop )
+ EndOfLoop.SetName( 'EndOfLoop' )
+ EndOfLoop.SetAuthor( '' )
+ EndOfLoop.SetComment( 'Compute Node' )
+ EndOfLoop.Coords( 1102 , 282 )
+ PyEndOfLoop = []
+ EndOfLoop.SetPyFunction( '' , PyEndOfLoop )
+ ILoopDoLoop = Loop.GetInPort( 'DoLoop' )
+ ILoopIndex = Loop.InPort( 'Index' , 'long' )
+ ILoopMin = Loop.InPort( 'Min' , 'long' )
+ ILoopMax = Loop.InPort( 'Max' , 'long' )
+ ILoopGate = Loop.GetInPort( 'Gate' )
+ OLoopDoLoop = Loop.GetOutPort( 'DoLoop' )
+ OLoopIndex = Loop.GetOutPort( 'Index' )
+ OLoopMin = Loop.GetOutPort( 'Min' )
+ OLoopMax = Loop.GetOutPort( 'Max' )
+ IEndOfLoopDoLoop = EndOfLoop.GetInPort( 'DoLoop' )
+ IEndOfLoopIndex = EndOfLoop.GetInPort( 'Index' )
+ IEndOfLoopMin = EndOfLoop.GetInPort( 'Min' )
+ IEndOfLoopMax = EndOfLoop.GetInPort( 'Max' )
+ IEndOfLoopGate = EndOfLoop.GetInPort( 'Gate' )
+ OEndOfLoopDoLoop = EndOfLoop.GetOutPort( 'DoLoop' )
+ OEndOfLoopIndex = EndOfLoop.GetOutPort( 'Index' )
+ OEndOfLoopMin = EndOfLoop.GetOutPort( 'Min' )
+ OEndOfLoopMax = EndOfLoop.GetOutPort( 'Max' )
+ OEndOfLoopGate = EndOfLoop.GetOutPort( 'Gate' )
+ Loop.SetName( 'Loop' )
+ Loop.SetAuthor( '' )
+ Loop.SetComment( 'Compute Node' )
+ Loop.Coords( 12 , 276 )
+
+ # Creation of Switch Nodes
+ PySwitchOdd = []
+ PySwitchOdd.append( 'from time import * ' )
+ PySwitchOdd.append( 'def Switch(a) : ' )
+ PySwitchOdd.append( ' if ( a & 1 ) == 0 : ' )
+ PySwitchOdd.append( ' sleep(1) ' )
+ PySwitchOdd.append( ' return a & 1,1-(a&1),a ' )
+ SwitchOdd,EndOfSwitchOdd = GraphLoopSwitchs.SNode( 'Switch' , PySwitchOdd )
+ EndOfSwitchOdd.SetName( 'EndOfSwitchOdd' )
+ EndOfSwitchOdd.SetAuthor( '' )
+ EndOfSwitchOdd.SetComment( 'Compute Node' )
+ EndOfSwitchOdd.Coords( 711 , 161 )
+ PyEndOfSwitchOdd = []
+ EndOfSwitchOdd.SetPyFunction( '' , PyEndOfSwitchOdd )
+ IEndOfSwitchOdda = EndOfSwitchOdd.InPort( 'a' , 'long' )
+ IEndOfSwitchOddOdd = EndOfSwitchOdd.InPort( 'Odd' , 'boolean' )
+ IEndOfSwitchOddDefault = EndOfSwitchOdd.GetInPort( 'Default' )
+ OEndOfSwitchOdda = EndOfSwitchOdd.OutPort( 'a' , 'long' )
+ OEndOfSwitchOddOdd = EndOfSwitchOdd.OutPort( 'Odd' , 'boolean' )
+ OEndOfSwitchOddGate = EndOfSwitchOdd.GetOutPort( 'Gate' )
+ SwitchOdd.SetName( 'SwitchOdd' )
+ SwitchOdd.SetAuthor( '' )
+ SwitchOdd.SetComment( 'Compute Node' )
+ SwitchOdd.Coords( 240 , 141 )
+ ISwitchOdda = SwitchOdd.InPort( 'a' , 'long' )
+ ISwitchOddGate = SwitchOdd.GetInPort( 'Gate' )
+ OSwitchOddOdd = SwitchOdd.OutPort( 'Odd' , 'long' )
+ OSwitchOddEven = SwitchOdd.OutPort( 'Even' , 'int' )
+ OSwitchOdda = SwitchOdd.OutPort( 'a' , 'int' )
+ OSwitchOddDefault = SwitchOdd.GetOutPort( 'Default' )
+
+ PySwitchEven = []
+ PySwitchEven.append( 'from time import * ' )
+ PySwitchEven.append( 'def Switch(a) : ' )
+ PySwitchEven.append( ' if ( a & 1 ) == 0 : ' )
+ PySwitchEven.append( ' sleep(1) ' )
+ PySwitchEven.append( ' return a & 1,1-(a&1),a ' )
+ SwitchEven,EndOfSwitchEven = GraphLoopSwitchs.SNode( 'Switch' , PySwitchEven )
+ EndOfSwitchEven.SetName( 'EndOfSwitchEven' )
+ EndOfSwitchEven.SetAuthor( '' )
+ EndOfSwitchEven.SetComment( 'Compute Node' )
+ EndOfSwitchEven.Coords( 718 , 361 )
+ PyEndOfSwitchEven = []
+ EndOfSwitchEven.SetPyFunction( '' , PyEndOfSwitchEven )
+ IEndOfSwitchEvena = EndOfSwitchEven.InPort( 'a' , 'long' )
+ IEndOfSwitchEvenEven = EndOfSwitchEven.InPort( 'Even' , 'boolean' )
+ IEndOfSwitchEvenDefault = EndOfSwitchEven.GetInPort( 'Default' )
+ OEndOfSwitchEvena = EndOfSwitchEven.OutPort( 'a' , 'long' )
+ OEndOfSwitchEvenEven = EndOfSwitchEven.OutPort( 'Even' , 'boolean' )
+ OEndOfSwitchEvenGate = EndOfSwitchEven.GetOutPort( 'Gate' )
+ SwitchEven.SetName( 'SwitchEven' )
+ SwitchEven.SetAuthor( '' )
+ SwitchEven.SetComment( 'Compute Node' )
+ SwitchEven.Coords( 235 , 386 )
+ ISwitchEvena = SwitchEven.InPort( 'a' , 'long' )
+ ISwitchEvenGate = SwitchEven.GetInPort( 'Gate' )
+ OSwitchEvenOdd = SwitchEven.OutPort( 'Odd' , 'long' )
+ OSwitchEvenEven = SwitchEven.OutPort( 'Even' , 'int' )
+ OSwitchEvena = SwitchEven.OutPort( 'a' , 'int' )
+ OSwitchEvenDefault = SwitchEven.GetOutPort( 'Default' )
+
+ # Creation of Links
+ LIsOddaEndOfSwitchOdda = GraphLoopSwitchs.Link( OIsOdda , IEndOfSwitchOdda )
+
+ LSwitchOddOddIsOddGate = GraphLoopSwitchs.Link( OSwitchOddOdd , IIsOddGate )
+
+ LSwitchOddOddEndOfSwitchOddOdd = GraphLoopSwitchs.Link( OSwitchOddOdd , IEndOfSwitchOddOdd )
+
+ LSwitchOddaIsOdda = GraphLoopSwitchs.Link( OSwitchOdda , IIsOdda )
+ LSwitchOddaIsOdda.AddCoord( 1 , 443 , 121 )
+ LSwitchOddaIsOdda.AddCoord( 2 , 443 , 212 )
+
+ LSwitchOddDefaultEndOfSwitchOddDefault = GraphLoopSwitchs.Link( OSwitchOddDefault , IEndOfSwitchOddDefault )
+
+ LEndOfSwitchOddaSwitchsCompareaOdd = GraphLoopSwitchs.Link( OEndOfSwitchOdda , ISwitchsCompareaOdd )
+
+ LEndOfSwitchOddOddSwitchsCompareOdd = GraphLoopSwitchs.Link( OEndOfSwitchOddOdd , ISwitchsCompareOdd )
+
+ LIsEvenaEndOfSwitchEvena = GraphLoopSwitchs.Link( OIsEvena , IEndOfSwitchEvena )
+
+ LLoopIndexSwitchEvena = GraphLoopSwitchs.Link( OLoopIndex , ISwitchEvena )
+
+ LLoopIndexSwitchOdda = GraphLoopSwitchs.Link( OLoopIndex , ISwitchOdda )
+
+ LLoopMinEndOfLoopMin = GraphLoopSwitchs.Link( OLoopMin , IEndOfLoopMin )
+
+ LLoopMaxEndOfLoopMax = GraphLoopSwitchs.Link( OLoopMax , IEndOfLoopMax )
+
+ LSwitchEvenOddIsEvenGate = GraphLoopSwitchs.Link( OSwitchEvenOdd , IIsEvenGate )
+
+ LSwitchEvenEvenEndOfSwitchEvenDefault = GraphLoopSwitchs.Link( OSwitchEvenEven , IEndOfSwitchEvenDefault )
+
+ LSwitchEvenaIsEvena = GraphLoopSwitchs.Link( OSwitchEvena , IIsEvena )
+ LSwitchEvenaIsEvena.AddCoord( 1 , 434 , 382 )
+ LSwitchEvenaIsEvena.AddCoord( 2 , 434 , 457 )
+
+ LEndOfSwitchEvenaSwitchsCompareaEven = GraphLoopSwitchs.Link( OEndOfSwitchEvena , ISwitchsCompareaEven )
+
+ LEndOfSwitchEvenEvenSwitchsCompareEven = GraphLoopSwitchs.Link( OEndOfSwitchEvenEven , ISwitchsCompareEven )
+
+ LSwitchsCompareaEndOfLoopIndex = GraphLoopSwitchs.Link( OSwitchsComparea , IEndOfLoopIndex )
+
+ # Input datas
+ ILoopIndex.Input( 0 )
+ ILoopMin.Input( 0 )
+ ILoopMax.Input( 100 )
+
+ # Output Ports of the graph
+ #OSwitchOddEven = SwitchOdd.GetOutPort( 'Even' )
+ #OEndOfLoopIndex = EndOfLoop.GetOutPort( 'Index' )
+ #OEndOfLoopMin = EndOfLoop.GetOutPort( 'Min' )
+ #OEndOfLoopMax = EndOfLoop.GetOutPort( 'Max' )
+ return GraphLoopSwitchs
+
+
+GraphLoopSwitchs = DefGraphLoopSwitchs()
--- /dev/null
+<!DOCTYPE SuperGraph>
+<supergraph>
+<dataflow>
+<info-list>
+<node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>GraphLoopSwitchs</node-name>
+ <kind>1</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>GraphLoopSwitchs</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Loop__Index</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Loop__Min</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Loop__Max</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>int</outParameter-type>
+ <outParameter-name>SwitchOdd__Even</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>EndOfLoop__Index</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>EndOfLoop__Min</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>EndOfLoop__Max</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list/>
+ <creation-date>14/10/2003 - 10:29:4</creation-date>
+ <lastmodification-date>19/1/2005 - 18:42:37</lastmodification-date>
+ <editor-release>1.05</editor-release>
+ <author>JR</author>
+ <container>?</container>
+ <comment>?</comment>
+ <x-position>0</x-position>
+ <y-position>0</y-position> </node> </info-list>
+ <node-list>
+<node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>IsOdd</node-name>
+ <kind>3</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>IsOdd</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>IsOdd</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def IsOdd(a) : ]]></PyFunc>
+ <PyFunc><![CDATA[ print a,"IsOdd" ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep( 1 ) ]]></PyFunc>
+ <PyFunc><![CDATA[ return a ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 18:26:50</creation-date>
+ <lastmodification-date>19/1/2005 - 18:26:50</lastmodification-date>
+ <editor-release>1.05</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Python function</comment>
+ <x-position>476</x-position>
+ <y-position>50</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>SwitchOdd</node-name>
+ <kind>6</kind>
+ <coupled-node>EndOfSwitchOdd</coupled-node>
+ <service>
+<service-name>Switch</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Odd</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>int</outParameter-type>
+ <outParameter-name>Even</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>int</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>Switch</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def Switch(a) : ]]></PyFunc>
+ <PyFunc><![CDATA[ if ( a & 1 ) == 0 : ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
+ <PyFunc><![CDATA[ return a & 1,1-(a&1),a ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 18:26:50</creation-date>
+ <lastmodification-date>19/1/2005 - 18:26:50</lastmodification-date>
+ <editor-release>1.05</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>240</x-position>
+ <y-position>141</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>EndOfSwitchOdd</node-name>
+ <kind>7</kind>
+ <coupled-node>SwitchOdd</coupled-node>
+ <service>
+<service-name>EndOfSwitch</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>boolean</inParameter-type>
+ <inParameter-name>Odd</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>boolean</outParameter-type>
+ <outParameter-name>Odd</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>?</FuncName>
+ <PyFunc><![CDATA[?]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 18:26:50</creation-date>
+ <lastmodification-date>19/1/2005 - 18:26:50</lastmodification-date>
+ <editor-release>1.05</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>711</x-position>
+ <y-position>161</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>IsEven</node-name>
+ <kind>3</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>IsOdd_1</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>IsEven</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def IsEven(a) : ]]></PyFunc>
+ <PyFunc><![CDATA[ print a,"IsEven" ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep( 1 ) ]]></PyFunc>
+ <PyFunc><![CDATA[ return a ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 18:26:50</creation-date>
+ <lastmodification-date>19/1/2005 - 18:26:50</lastmodification-date>
+ <editor-release>1.05</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Python function</comment>
+ <x-position>479</x-position>
+ <y-position>311</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>Loop</node-name>
+ <kind>4</kind>
+ <coupled-node>EndOfLoop</coupled-node>
+ <service>
+<service-name>InitLoop</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Index</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Min</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Max</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Index</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Min</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Max</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>InitLoop</FuncName>
+ <PyFunc><![CDATA[def InitLoop(Index,Min,Max) : ]]></PyFunc>
+ <PyFunc><![CDATA[ return Index,Min,Max ]]></PyFunc> </PyFunction>
+ <PyFunction>
+<FuncName>MoreLoop</FuncName>
+ <PyFunc><![CDATA[def MoreLoop(Index,Min,Max) : ]]></PyFunc>
+ <PyFunc><![CDATA[ if Index <= Max : ]]></PyFunc>
+ <PyFunc><![CDATA[ DoLoop = 1 ]]></PyFunc>
+ <PyFunc><![CDATA[ else : ]]></PyFunc>
+ <PyFunc><![CDATA[ DoLoop = 0 ]]></PyFunc>
+ <PyFunc><![CDATA[ return DoLoop,Index,Min,Max ]]></PyFunc> </PyFunction>
+ <PyFunction>
+<FuncName>NextLoop</FuncName>
+ <PyFunc><![CDATA[def NextLoop(Index,Min,Max) : ]]></PyFunc>
+ <PyFunc><![CDATA[ Index = Index + 1 ]]></PyFunc>
+ <PyFunc><![CDATA[ return Index,Min,Max ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 18:26:50</creation-date>
+ <lastmodification-date>19/1/2005 - 18:26:50</lastmodification-date>
+ <editor-release>1.05</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>12</x-position>
+ <y-position>276</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>EndOfLoop</node-name>
+ <kind>5</kind>
+ <coupled-node>Loop</coupled-node>
+ <service>
+<service-name>EndOfInitLoop</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Index</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Min</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Max</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Index</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Min</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Max</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>?</FuncName>
+ <PyFunc><![CDATA[?]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 18:26:50</creation-date>
+ <lastmodification-date>19/1/2005 - 18:26:50</lastmodification-date>
+ <editor-release>1.05</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>1102</x-position>
+ <y-position>282</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>SwitchEven</node-name>
+ <kind>6</kind>
+ <coupled-node>EndOfSwitchEven</coupled-node>
+ <service>
+<service-name>Switch_1</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Odd</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>int</outParameter-type>
+ <outParameter-name>Even</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>int</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>Switch</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def Switch(a) : ]]></PyFunc>
+ <PyFunc><![CDATA[ if ( a & 1 ) == 0 : ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
+ <PyFunc><![CDATA[ return a & 1,1-(a&1),a ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 18:26:50</creation-date>
+ <lastmodification-date>19/1/2005 - 18:26:50</lastmodification-date>
+ <editor-release>1.05</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>235</x-position>
+ <y-position>386</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>EndOfSwitchEven</node-name>
+ <kind>7</kind>
+ <coupled-node>SwitchEven</coupled-node>
+ <service>
+<service-name>EndSwitch</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>boolean</inParameter-type>
+ <inParameter-name>Even</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>boolean</outParameter-type>
+ <outParameter-name>Even</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>?</FuncName>
+ <PyFunc><![CDATA[?]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 18:26:50</creation-date>
+ <lastmodification-date>19/1/2005 - 18:26:50</lastmodification-date>
+ <editor-release>1.05</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>718</x-position>
+ <y-position>361</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>SwitchsCompare</node-name>
+ <kind>3</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>SwitchsCompare</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>aOdd</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>boolean</inParameter-type>
+ <inParameter-name>Odd</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>aEven</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>boolean</inParameter-type>
+ <inParameter-name>Even</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>SwitchsCompare</FuncName>
+ <PyFunc><![CDATA[def SwitchsCompare(aOdd,Odd,aEven,Even) : ]]></PyFunc>
+ <PyFunc><![CDATA[ return a ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 18:34:18</creation-date>
+ <lastmodification-date>19/1/2005 - 18:34:18</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>919</x-position>
+ <y-position>242</y-position> </node> </node-list>
+ <link-list>
+<link>
+<fromnode-name>IsOdd</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>EndOfSwitchOdd</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>SwitchOdd</fromnode-name>
+ <fromserviceparameter-name>Odd</fromserviceparameter-name>
+ <tonode-name>IsOdd</tonode-name>
+ <toserviceparameter-name>Gate</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>SwitchOdd</fromnode-name>
+ <fromserviceparameter-name>Odd</fromserviceparameter-name>
+ <tonode-name>EndOfSwitchOdd</tonode-name>
+ <toserviceparameter-name>Odd</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>SwitchOdd</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>IsOdd</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>443</x>
+ <y>121</y> </coord>
+ <coord>
+<x>443</x>
+ <y>212</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>SwitchOdd</fromnode-name>
+ <fromserviceparameter-name>Default</fromserviceparameter-name>
+ <tonode-name>EndOfSwitchOdd</tonode-name>
+ <toserviceparameter-name>Default</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>EndOfSwitchOdd</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>SwitchsCompare</tonode-name>
+ <toserviceparameter-name>aOdd</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>EndOfSwitchOdd</fromnode-name>
+ <fromserviceparameter-name>Odd</fromserviceparameter-name>
+ <tonode-name>SwitchsCompare</tonode-name>
+ <toserviceparameter-name>Odd</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>IsEven</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>EndOfSwitchEven</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>Loop</fromnode-name>
+ <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
+ <tonode-name>EndOfLoop</tonode-name>
+ <toserviceparameter-name>DoLoop</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>Loop</fromnode-name>
+ <fromserviceparameter-name>Index</fromserviceparameter-name>
+ <tonode-name>SwitchEven</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>Loop</fromnode-name>
+ <fromserviceparameter-name>Index</fromserviceparameter-name>
+ <tonode-name>SwitchOdd</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>Loop</fromnode-name>
+ <fromserviceparameter-name>Min</fromserviceparameter-name>
+ <tonode-name>EndOfLoop</tonode-name>
+ <toserviceparameter-name>Min</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>Loop</fromnode-name>
+ <fromserviceparameter-name>Max</fromserviceparameter-name>
+ <tonode-name>EndOfLoop</tonode-name>
+ <toserviceparameter-name>Max</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>EndOfLoop</fromnode-name>
+ <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
+ <tonode-name>Loop</tonode-name>
+ <toserviceparameter-name>DoLoop</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>SwitchEven</fromnode-name>
+ <fromserviceparameter-name>Odd</fromserviceparameter-name>
+ <tonode-name>IsEven</tonode-name>
+ <toserviceparameter-name>Gate</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>SwitchEven</fromnode-name>
+ <fromserviceparameter-name>Even</fromserviceparameter-name>
+ <tonode-name>EndOfSwitchEven</tonode-name>
+ <toserviceparameter-name>Default</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>SwitchEven</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>IsEven</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>434</x>
+ <y>382</y> </coord>
+ <coord>
+<x>434</x>
+ <y>457</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>EndOfSwitchEven</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>SwitchsCompare</tonode-name>
+ <toserviceparameter-name>aEven</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>EndOfSwitchEven</fromnode-name>
+ <fromserviceparameter-name>Even</fromserviceparameter-name>
+ <tonode-name>SwitchsCompare</tonode-name>
+ <toserviceparameter-name>Even</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>SwitchsCompare</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>EndOfLoop</tonode-name>
+ <toserviceparameter-name>Index</toserviceparameter-name>
+ <coord-list/> </link> </link-list>
+ <data-list>
+<data>
+<fromnode-name>GraphLoopSwitchs</fromnode-name>
+ <fromserviceparameter-name>Loop__Index</fromserviceparameter-name>
+ <tonode-name>Loop</tonode-name>
+ <toserviceparameter-name>Index</toserviceparameter-name>
+ <data-value>
+<value-type>3</value-type>
+ <value>0</value> </data-value>
+ <coord-list/> </data>
+ <data>
+<fromnode-name>GraphLoopSwitchs</fromnode-name>
+ <fromserviceparameter-name>Loop__Min</fromserviceparameter-name>
+ <tonode-name>Loop</tonode-name>
+ <toserviceparameter-name>Min</toserviceparameter-name>
+ <data-value>
+<value-type>3</value-type>
+ <value>0</value> </data-value>
+ <coord-list/> </data>
+ <data>
+<fromnode-name>GraphLoopSwitchs</fromnode-name>
+ <fromserviceparameter-name>Loop__Max</fromserviceparameter-name>
+ <tonode-name>Loop</tonode-name>
+ <toserviceparameter-name>Max</toserviceparameter-name>
+ <data-value>
+<value-type>3</value-type>
+ <value>100</value> </data-value>
+ <coord-list/> </data> </data-list> </dataflow></supergraph>
--- /dev/null
+
+# Generated python file of Graph GraphSwitchCheckBranch
+
+from SuperV import *
+
+# Graph creation of GraphSwitchCheckBranch
+def DefGraphSwitchCheckBranch() :
+ GraphSwitchCheckBranch = Graph( 'GraphSwitchCheckBranch' )
+ GraphSwitchCheckBranch.SetName( 'GraphSwitchCheckBranch' )
+ GraphSwitchCheckBranch.SetAuthor( 'JR' )
+ GraphSwitchCheckBranch.SetComment( 'Switch with two SwitchBranches, One NotSwitchBranch and the DefaultBranch' )
+ GraphSwitchCheckBranch.Coords( 0 , 0 )
+
+ # Creation of Factory Nodes
+
+ # Creation of InLine Nodes
+ PyIsOdd = []
+ PyIsOdd.append( 'from time import * ' )
+ PyIsOdd.append( 'def IsOdd(a) : ' )
+ PyIsOdd.append( ' print a,"IsOdd (GraphSwitch)" ' )
+ PyIsOdd.append( ' sleep( 1 ) ' )
+ PyIsOdd.append( ' return a ' )
+ IsOdd = GraphSwitchCheckBranch.INode( 'IsOdd' , PyIsOdd )
+ IsOdd.SetName( 'IsOdd' )
+ IsOdd.SetAuthor( '' )
+ IsOdd.SetComment( 'Python function' )
+ IsOdd.Coords( 415 , 7 )
+ IIsOdda = IsOdd.InPort( 'a' , 'long' )
+ IIsOddGate = IsOdd.GetInPort( 'Gate' )
+ OIsOdda = IsOdd.OutPort( 'a' , 'long' )
+ OIsOddGate = IsOdd.GetOutPort( 'Gate' )
+
+ PyIsEven = []
+ PyIsEven.append( 'from time import * ' )
+ PyIsEven.append( 'def IsEven(a) : ' )
+ PyIsEven.append( ' print a,"IsEven (GraphSwitch)" ' )
+ PyIsEven.append( ' sleep( 1 ) ' )
+ PyIsEven.append( ' return a ' )
+ IsEven = GraphSwitchCheckBranch.INode( 'IsEven' , PyIsEven )
+ IsEven.SetName( 'IsEven' )
+ IsEven.SetAuthor( '' )
+ IsEven.SetComment( 'Compute Node' )
+ IsEven.Coords( 421 , 438 )
+ IIsEvena = IsEven.InPort( 'a' , 'long' )
+ IIsEvenGate = IsEven.GetInPort( 'Gate' )
+ OIsEvena = IsEven.OutPort( 'a' , 'long' )
+ OIsEvenGate = IsEven.GetOutPort( 'Gate' )
+
+ PyBranchNode = []
+ PyBranchNode.append( 'from time import * ' )
+ PyBranchNode.append( 'def Print_1(Branch) : ' )
+ PyBranchNode.append( ' print "Print ",Branch ' )
+ PyBranchNode.append( ' sleep(1) ' )
+ PyBranchNode.append( ' return Branch ' )
+ BranchNode = GraphSwitchCheckBranch.INode( 'Print_1' , PyBranchNode )
+ BranchNode.SetName( 'BranchNode' )
+ BranchNode.SetAuthor( '' )
+ BranchNode.SetComment( 'Compute Node' )
+ BranchNode.Coords( 604 , 149 )
+ IBranchNodeBranch = BranchNode.InPort( 'Branch' , 'string' )
+ IBranchNodeGate = BranchNode.GetInPort( 'Gate' )
+ OBranchNodeBranch = BranchNode.OutPort( 'Branch' , 'string' )
+ OBranchNodeGate = BranchNode.GetOutPort( 'Gate' )
+
+ # Creation of Loop Nodes
+ PyInitLoopSwitch = []
+ PyInitLoopSwitch.append( 'def InitLoop(Index,Min,Max) : ' )
+ PyInitLoopSwitch.append( ' Index = Max ' )
+ PyInitLoopSwitch.append( ' return Index,Min,Max ' )
+ PyMoreInitLoopSwitch = []
+ PyMoreInitLoopSwitch.append( 'from time import * ' )
+ PyMoreInitLoopSwitch.append( 'def MoreLoop(Index,Min,Max) : ' )
+ PyMoreInitLoopSwitch.append( ' sleep(1) ' )
+ PyMoreInitLoopSwitch.append( ' if Index >= Min : ' )
+ PyMoreInitLoopSwitch.append( ' DoLoop = 1 ' )
+ PyMoreInitLoopSwitch.append( ' else : ' )
+ PyMoreInitLoopSwitch.append( ' DoLoop = 0 ' )
+ PyMoreInitLoopSwitch.append( ' return DoLoop,Index,Min,Max ' )
+ PyNextInitLoopSwitch = []
+ PyNextInitLoopSwitch.append( 'def NextLoop(Index,Min,Max) : ' )
+ PyNextInitLoopSwitch.append( ' Index = Index - 1 ' )
+ PyNextInitLoopSwitch.append( ' return Index,Min,Max ' )
+ InitLoopSwitch,EndOfInitLoopSwitch = GraphSwitchCheckBranch.LNode( 'InitLoop' , PyInitLoopSwitch , 'MoreLoop' , PyMoreInitLoopSwitch , 'NextLoop' , PyNextInitLoopSwitch )
+ EndOfInitLoopSwitch.SetName( 'EndOfInitLoopSwitch' )
+ EndOfInitLoopSwitch.SetAuthor( '' )
+ EndOfInitLoopSwitch.SetComment( 'Compute Node' )
+ EndOfInitLoopSwitch.Coords( 1074 , 194 )
+ PyEndOfInitLoopSwitch = []
+ PyEndOfInitLoopSwitch.append( 'from time import * ' )
+ PyEndOfInitLoopSwitch.append( 'def EndOfInitLoopSwitch(DoLoop,Index,Min,Max) : ' )
+ PyEndOfInitLoopSwitch.append( ' sleep(1) ' )
+ PyEndOfInitLoopSwitch.append( ' return DoLoop,Index,Min,Max ' )
+ EndOfInitLoopSwitch.SetPyFunction( 'EndOfInitLoopSwitch' , PyEndOfInitLoopSwitch )
+ IInitLoopSwitchDoLoop = InitLoopSwitch.GetInPort( 'DoLoop' )
+ IInitLoopSwitchIndex = InitLoopSwitch.InPort( 'Index' , 'long' )
+ IInitLoopSwitchMin = InitLoopSwitch.InPort( 'Min' , 'long' )
+ IInitLoopSwitchMax = InitLoopSwitch.InPort( 'Max' , 'long' )
+ IInitLoopSwitchGate = InitLoopSwitch.GetInPort( 'Gate' )
+ OInitLoopSwitchDoLoop = InitLoopSwitch.GetOutPort( 'DoLoop' )
+ OInitLoopSwitchIndex = InitLoopSwitch.GetOutPort( 'Index' )
+ OInitLoopSwitchMin = InitLoopSwitch.GetOutPort( 'Min' )
+ OInitLoopSwitchMax = InitLoopSwitch.GetOutPort( 'Max' )
+ IEndOfInitLoopSwitchDoLoop = EndOfInitLoopSwitch.GetInPort( 'DoLoop' )
+ IEndOfInitLoopSwitchIndex = EndOfInitLoopSwitch.GetInPort( 'Index' )
+ IEndOfInitLoopSwitchMin = EndOfInitLoopSwitch.GetInPort( 'Min' )
+ IEndOfInitLoopSwitchMax = EndOfInitLoopSwitch.GetInPort( 'Max' )
+ IEndOfInitLoopSwitchGate = EndOfInitLoopSwitch.GetInPort( 'Gate' )
+ OEndOfInitLoopSwitchDoLoop = EndOfInitLoopSwitch.GetOutPort( 'DoLoop' )
+ OEndOfInitLoopSwitchIndex = EndOfInitLoopSwitch.GetOutPort( 'Index' )
+ OEndOfInitLoopSwitchMin = EndOfInitLoopSwitch.GetOutPort( 'Min' )
+ OEndOfInitLoopSwitchMax = EndOfInitLoopSwitch.GetOutPort( 'Max' )
+ OEndOfInitLoopSwitchGate = EndOfInitLoopSwitch.GetOutPort( 'Gate' )
+ InitLoopSwitch.SetName( 'InitLoopSwitch' )
+ InitLoopSwitch.SetAuthor( '' )
+ InitLoopSwitch.SetComment( 'Compute Node' )
+ InitLoopSwitch.Coords( 10 , 129 )
+
+ # Creation of Switch Nodes
+ PySwitch = []
+ PySwitch.append( 'from time import * ' )
+ PySwitch.append( 'def Switch(a) : ' )
+ PySwitch.append( ' sleep(1) ' )
+ PySwitch.append( ' Branch = "Negative or null" ' )
+ PySwitch.append( ' if a <= 0 : ' )
+ PySwitch.append( ' return 0,0,a,Branch,1 ' )
+ PySwitch.append( ' if ( a & 1 ) == 0 : ' )
+ PySwitch.append( ' Branch = "Even" ' )
+ PySwitch.append( ' else : ' )
+ PySwitch.append( ' Branch = "Odd" ' )
+ PySwitch.append( ' return a & 1,1-(a&1),a,Branch,0 ' )
+ Switch,EndOfSwitch = GraphSwitchCheckBranch.SNode( 'Switch' , PySwitch )
+ EndOfSwitch.SetName( 'EndOfSwitch' )
+ EndOfSwitch.SetAuthor( '' )
+ EndOfSwitch.SetComment( 'Compute Node' )
+ EndOfSwitch.Coords( 882 , 194 )
+ PyEndOfSwitch = []
+ PyEndOfSwitch.append( 'from time import * ' )
+ PyEndOfSwitch.append( 'def EndOfSwitch(a,Branch) : ' )
+ PyEndOfSwitch.append( ' sleep(1) ' )
+ PyEndOfSwitch.append( ' return a ' )
+ EndOfSwitch.SetPyFunction( 'EndOfSwitch' , PyEndOfSwitch )
+ IEndOfSwitcha = EndOfSwitch.InPort( 'a' , 'long' )
+ IEndOfSwitchBranch = EndOfSwitch.InPort( 'Branch' , 'string' )
+ IEndOfSwitchDefault = EndOfSwitch.GetInPort( 'Default' )
+ OEndOfSwitcha = EndOfSwitch.OutPort( 'a' , 'long' )
+ OEndOfSwitchGate = EndOfSwitch.GetOutPort( 'Gate' )
+ Switch.SetName( 'Switch' )
+ Switch.SetAuthor( '' )
+ Switch.SetComment( 'Compute Node' )
+ Switch.Coords( 195 , 129 )
+ ISwitcha = Switch.InPort( 'a' , 'long' )
+ ISwitchGate = Switch.GetInPort( 'Gate' )
+ OSwitchOdd = Switch.OutPort( 'Odd' , 'long' )
+ OSwitchEven = Switch.OutPort( 'Even' , 'int' )
+ OSwitcha = Switch.OutPort( 'a' , 'int' )
+ OSwitchBranch = Switch.OutPort( 'Branch' , 'string' )
+ OSwitchdefault = Switch.OutPort( 'default' , 'boolean' )
+ OSwitchDefault = Switch.GetOutPort( 'Default' )
+
+ # Creation of Links
+ LIsOddaEndOfSwitcha = GraphSwitchCheckBranch.Link( OIsOdda , IEndOfSwitcha )
+
+ LIsEvenaEndOfSwitcha = GraphSwitchCheckBranch.Link( OIsEvena , IEndOfSwitcha )
+
+ LBranchNodeBranchEndOfSwitchBranch = GraphSwitchCheckBranch.Link( OBranchNodeBranch , IEndOfSwitchBranch )
+
+ LInitLoopSwitchIndexSwitcha = GraphSwitchCheckBranch.Link( OInitLoopSwitchIndex , ISwitcha )
+
+ LInitLoopSwitchMinEndOfInitLoopSwitchMin = GraphSwitchCheckBranch.Link( OInitLoopSwitchMin , IEndOfInitLoopSwitchMin )
+
+ LInitLoopSwitchMaxEndOfInitLoopSwitchMax = GraphSwitchCheckBranch.Link( OInitLoopSwitchMax , IEndOfInitLoopSwitchMax )
+
+ LSwitchOddIsOddGate = GraphSwitchCheckBranch.Link( OSwitchOdd , IIsOddGate )
+ LSwitchOddIsOddGate.AddCoord( 1 , 401 , 101 )
+ LSwitchOddIsOddGate.AddCoord( 2 , 401 , 160 )
+
+ LSwitchEvenIsEvenGate = GraphSwitchCheckBranch.Link( OSwitchEven , IIsEvenGate )
+ LSwitchEvenIsEvenGate.AddCoord( 1 , 392 , 533 )
+ LSwitchEvenIsEvenGate.AddCoord( 2 , 392 , 182 )
+
+ LSwitchaIsOdda = GraphSwitchCheckBranch.Link( OSwitcha , IIsOdda )
+ LSwitchaIsOdda.AddCoord( 1 , 382 , 78 )
+ LSwitchaIsOdda.AddCoord( 2 , 382 , 199 )
+
+ LSwitchaIsEvena = GraphSwitchCheckBranch.Link( OSwitcha , IIsEvena )
+ LSwitchaIsEvena.AddCoord( 1 , 381 , 509 )
+ LSwitchaIsEvena.AddCoord( 2 , 382 , 200 )
+
+ LSwitchBranchBranchNodeBranch = GraphSwitchCheckBranch.Link( OSwitchBranch , IBranchNodeBranch )
+
+ LSwitchDefaultEndOfSwitchDefault = GraphSwitchCheckBranch.Link( OSwitchDefault , IEndOfSwitchDefault )
+
+ LEndOfSwitchaEndOfInitLoopSwitchIndex = GraphSwitchCheckBranch.Link( OEndOfSwitcha , IEndOfInitLoopSwitchIndex )
+
+ # Input datas
+ IInitLoopSwitchIndex.Input( 0 )
+ IInitLoopSwitchMin.Input( -5 )
+ IInitLoopSwitchMax.Input( 10 )
+
+ # Output Ports of the graph
+ #OEndOfInitLoopSwitchIndex = EndOfInitLoopSwitch.GetOutPort( 'Index' )
+ #OEndOfInitLoopSwitchMin = EndOfInitLoopSwitch.GetOutPort( 'Min' )
+ #OEndOfInitLoopSwitchMax = EndOfInitLoopSwitch.GetOutPort( 'Max' )
+ #OSwitchdefault = Switch.GetOutPort( 'default' )
+ return GraphSwitchCheckBranch
+
+
+GraphSwitchCheckBranch = DefGraphSwitchCheckBranch()
--- /dev/null
+<!DOCTYPE SuperGraph>
+<supergraph>
+<dataflow>
+<info-list>
+<node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>GraphSwitchCheckBranch</node-name>
+ <kind>1</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>GraphSwitchCheckBranch</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>InitLoopSwitch__Index</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>InitLoopSwitch__Min</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>InitLoopSwitch__Max</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>EndOfInitLoopSwitch__Index</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>EndOfInitLoopSwitch__Min</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>EndOfInitLoopSwitch__Max</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>boolean</outParameter-type>
+ <outParameter-name>Switch__default</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list/>
+ <creation-date>13/1/2005 - 11:48:50</creation-date>
+ <lastmodification-date>19/1/2005 - 11:48:48</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>JR</author>
+ <container>?</container>
+ <comment>Switch with two SwitchBranches, One NotSwitchBranch and the DefaultBranch</comment>
+ <x-position>0</x-position>
+ <y-position>0</y-position> </node> </info-list>
+ <node-list>
+<node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>IsOdd</node-name>
+ <kind>3</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>IsOdd</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>IsOdd</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def IsOdd(a) : ]]></PyFunc>
+ <PyFunc><![CDATA[ print a,"IsOdd (GraphSwitch)" ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep( 1 ) ]]></PyFunc>
+ <PyFunc><![CDATA[ return a ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 11:48:48</creation-date>
+ <lastmodification-date>19/1/2005 - 11:48:48</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Python function</comment>
+ <x-position>415</x-position>
+ <y-position>7</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>IsEven</node-name>
+ <kind>3</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>IsEven</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>IsEven</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def IsEven(a) : ]]></PyFunc>
+ <PyFunc><![CDATA[ print a,"IsEven (GraphSwitch)" ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep( 1 ) ]]></PyFunc>
+ <PyFunc><![CDATA[ return a ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 11:48:48</creation-date>
+ <lastmodification-date>19/1/2005 - 11:48:48</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>421</x-position>
+ <y-position>438</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>BranchNode</node-name>
+ <kind>3</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>BranchNode</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>string</inParameter-type>
+ <inParameter-name>Branch</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>string</outParameter-type>
+ <outParameter-name>Branch</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>Print_1</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def Print_1(Branch) : ]]></PyFunc>
+ <PyFunc><![CDATA[ print "Print ",Branch ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
+ <PyFunc><![CDATA[ return Branch ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 11:48:48</creation-date>
+ <lastmodification-date>19/1/2005 - 11:48:48</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>604</x-position>
+ <y-position>149</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>InitLoopSwitch</node-name>
+ <kind>4</kind>
+ <coupled-node>EndOfInitLoopSwitch</coupled-node>
+ <service>
+<service-name>InitLoopSwitch</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Index</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Min</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Max</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Index</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Min</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Max</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>InitLoop</FuncName>
+ <PyFunc><![CDATA[def InitLoop(Index,Min,Max) : ]]></PyFunc>
+ <PyFunc><![CDATA[ Index = Max ]]></PyFunc>
+ <PyFunc><![CDATA[ return Index,Min,Max ]]></PyFunc> </PyFunction>
+ <PyFunction>
+<FuncName>MoreLoop</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def MoreLoop(Index,Min,Max) : ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
+ <PyFunc><![CDATA[ if Index >= Min : ]]></PyFunc>
+ <PyFunc><![CDATA[ DoLoop = 1 ]]></PyFunc>
+ <PyFunc><![CDATA[ else : ]]></PyFunc>
+ <PyFunc><![CDATA[ DoLoop = 0 ]]></PyFunc>
+ <PyFunc><![CDATA[ return DoLoop,Index,Min,Max ]]></PyFunc> </PyFunction>
+ <PyFunction>
+<FuncName>NextLoop</FuncName>
+ <PyFunc><![CDATA[def NextLoop(Index,Min,Max) : ]]></PyFunc>
+ <PyFunc><![CDATA[ Index = Index - 1 ]]></PyFunc>
+ <PyFunc><![CDATA[ return Index,Min,Max ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 11:48:48</creation-date>
+ <lastmodification-date>19/1/2005 - 11:48:48</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>10</x-position>
+ <y-position>129</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>EndOfInitLoopSwitch</node-name>
+ <kind>5</kind>
+ <coupled-node>InitLoopSwitch</coupled-node>
+ <service>
+<service-name>EndOfInitLoopSwitch</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Index</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Min</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Max</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Index</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Min</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Max</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>EndOfInitLoopSwitch</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def EndOfInitLoopSwitch(DoLoop,Index,Min,Max) : ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
+ <PyFunc><![CDATA[ return DoLoop,Index,Min,Max ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 11:48:48</creation-date>
+ <lastmodification-date>19/1/2005 - 11:48:48</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>1074</x-position>
+ <y-position>194</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>Switch</node-name>
+ <kind>6</kind>
+ <coupled-node>EndOfSwitch</coupled-node>
+ <service>
+<service-name>Switch</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Odd</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>int</outParameter-type>
+ <outParameter-name>Even</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>int</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>string</outParameter-type>
+ <outParameter-name>Branch</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>boolean</outParameter-type>
+ <outParameter-name>default</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>Switch</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def Switch(a) : ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
+ <PyFunc><![CDATA[ Branch = "Negative or null" ]]></PyFunc>
+ <PyFunc><![CDATA[ if a <= 0 : ]]></PyFunc>
+ <PyFunc><![CDATA[ return 0,0,a,Branch,1 ]]></PyFunc>
+ <PyFunc><![CDATA[ if ( a & 1 ) == 0 : ]]></PyFunc>
+ <PyFunc><![CDATA[ Branch = "Even" ]]></PyFunc>
+ <PyFunc><![CDATA[ else : ]]></PyFunc>
+ <PyFunc><![CDATA[ Branch = "Odd" ]]></PyFunc>
+ <PyFunc><![CDATA[ return a & 1,1-(a&1),a,Branch,0 ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 11:48:48</creation-date>
+ <lastmodification-date>19/1/2005 - 11:48:48</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>195</x-position>
+ <y-position>129</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>EndOfSwitch</node-name>
+ <kind>7</kind>
+ <coupled-node>Switch</coupled-node>
+ <service>
+<service-name>EndOfSwitch</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>string</inParameter-type>
+ <inParameter-name>Branch</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>EndOfSwitch</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def EndOfSwitch(a,Branch) : ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
+ <PyFunc><![CDATA[ return a ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 11:48:48</creation-date>
+ <lastmodification-date>19/1/2005 - 11:48:48</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>882</x-position>
+ <y-position>194</y-position> </node> </node-list>
+ <link-list>
+<link>
+<fromnode-name>IsOdd</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>EndOfSwitch</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>IsEven</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>EndOfSwitch</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>BranchNode</fromnode-name>
+ <fromserviceparameter-name>Branch</fromserviceparameter-name>
+ <tonode-name>EndOfSwitch</tonode-name>
+ <toserviceparameter-name>Branch</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>InitLoopSwitch</fromnode-name>
+ <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
+ <tonode-name>EndOfInitLoopSwitch</tonode-name>
+ <toserviceparameter-name>DoLoop</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>InitLoopSwitch</fromnode-name>
+ <fromserviceparameter-name>Index</fromserviceparameter-name>
+ <tonode-name>Switch</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>InitLoopSwitch</fromnode-name>
+ <fromserviceparameter-name>Min</fromserviceparameter-name>
+ <tonode-name>EndOfInitLoopSwitch</tonode-name>
+ <toserviceparameter-name>Min</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>InitLoopSwitch</fromnode-name>
+ <fromserviceparameter-name>Max</fromserviceparameter-name>
+ <tonode-name>EndOfInitLoopSwitch</tonode-name>
+ <toserviceparameter-name>Max</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>EndOfInitLoopSwitch</fromnode-name>
+ <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
+ <tonode-name>InitLoopSwitch</tonode-name>
+ <toserviceparameter-name>DoLoop</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>Odd</fromserviceparameter-name>
+ <tonode-name>IsOdd</tonode-name>
+ <toserviceparameter-name>Gate</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>401</x>
+ <y>101</y> </coord>
+ <coord>
+<x>401</x>
+ <y>160</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>Even</fromserviceparameter-name>
+ <tonode-name>IsEven</tonode-name>
+ <toserviceparameter-name>Gate</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>392</x>
+ <y>533</y> </coord>
+ <coord>
+<x>392</x>
+ <y>182</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>IsOdd</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>382</x>
+ <y>78</y> </coord>
+ <coord>
+<x>382</x>
+ <y>199</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>IsEven</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>381</x>
+ <y>509</y> </coord>
+ <coord>
+<x>382</x>
+ <y>200</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>Branch</fromserviceparameter-name>
+ <tonode-name>BranchNode</tonode-name>
+ <toserviceparameter-name>Branch</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>Default</fromserviceparameter-name>
+ <tonode-name>EndOfSwitch</tonode-name>
+ <toserviceparameter-name>Default</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>EndOfSwitch</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>EndOfInitLoopSwitch</tonode-name>
+ <toserviceparameter-name>Index</toserviceparameter-name>
+ <coord-list/> </link> </link-list>
+ <data-list>
+<data>
+<fromnode-name>GraphSwitchCheckBranch</fromnode-name>
+ <fromserviceparameter-name>InitLoopSwitch__Index</fromserviceparameter-name>
+ <tonode-name>InitLoopSwitch</tonode-name>
+ <toserviceparameter-name>Index</toserviceparameter-name>
+ <data-value>
+<value-type>3</value-type>
+ <value>0</value> </data-value>
+ <coord-list/> </data>
+ <data>
+<fromnode-name>GraphSwitchCheckBranch</fromnode-name>
+ <fromserviceparameter-name>InitLoopSwitch__Min</fromserviceparameter-name>
+ <tonode-name>InitLoopSwitch</tonode-name>
+ <toserviceparameter-name>Min</toserviceparameter-name>
+ <data-value>
+<value-type>3</value-type>
+ <value>-5</value> </data-value>
+ <coord-list/> </data>
+ <data>
+<fromnode-name>GraphSwitchCheckBranch</fromnode-name>
+ <fromserviceparameter-name>InitLoopSwitch__Max</fromserviceparameter-name>
+ <tonode-name>InitLoopSwitch</tonode-name>
+ <toserviceparameter-name>Max</toserviceparameter-name>
+ <data-value>
+<value-type>3</value-type>
+ <value>10</value> </data-value>
+ <coord-list/> </data> </data-list> </dataflow></supergraph>
--- /dev/null
+
+# Generated python file of Graph GraphSwitchCheckBranch1
+
+from SuperV import *
+
+# Graph creation of GraphSwitchCheckBranch1
+def DefGraphSwitchCheckBranch1() :
+ GraphSwitchCheckBranch1 = Graph( 'GraphSwitchCheckBranch1' )
+ GraphSwitchCheckBranch1.SetName( 'GraphSwitchCheckBranch1' )
+ GraphSwitchCheckBranch1.SetAuthor( 'JR' )
+ GraphSwitchCheckBranch1.SetComment( 'Switch with two SwitchBranches, One NotSwitchBranch and the DefaultBranch' )
+ GraphSwitchCheckBranch1.Coords( 0 , 0 )
+
+ # Creation of Factory Nodes
+
+ # Creation of InLine Nodes
+ PyIsOdd = []
+ PyIsOdd.append( 'from time import * ' )
+ PyIsOdd.append( 'def IsOdd(a) : ' )
+ PyIsOdd.append( ' print a,"IsOdd (GraphSwitch)" ' )
+ PyIsOdd.append( ' sleep( 1 ) ' )
+ PyIsOdd.append( ' return a ' )
+ IsOdd = GraphSwitchCheckBranch1.INode( 'IsOdd' , PyIsOdd )
+ IsOdd.SetName( 'IsOdd' )
+ IsOdd.SetAuthor( '' )
+ IsOdd.SetComment( 'Python function' )
+ IsOdd.Coords( 415 , 7 )
+ IIsOdda = IsOdd.InPort( 'a' , 'long' )
+ IIsOddGate = IsOdd.GetInPort( 'Gate' )
+ OIsOdda = IsOdd.OutPort( 'a' , 'long' )
+ OIsOddGate = IsOdd.GetOutPort( 'Gate' )
+
+ PyIsEven = []
+ PyIsEven.append( 'from time import * ' )
+ PyIsEven.append( 'def IsEven(a) : ' )
+ PyIsEven.append( ' print a,"IsEven (GraphSwitch)" ' )
+ PyIsEven.append( ' sleep( 1 ) ' )
+ PyIsEven.append( ' return a ' )
+ IsEven = GraphSwitchCheckBranch1.INode( 'IsEven' , PyIsEven )
+ IsEven.SetName( 'IsEven' )
+ IsEven.SetAuthor( '' )
+ IsEven.SetComment( 'Compute Node' )
+ IsEven.Coords( 421 , 438 )
+ IIsEvena = IsEven.InPort( 'a' , 'long' )
+ IIsEvenGate = IsEven.GetInPort( 'Gate' )
+ OIsEvena = IsEven.OutPort( 'a' , 'long' )
+ OIsEvenGate = IsEven.GetOutPort( 'Gate' )
+
+ PyBranchNode = []
+ PyBranchNode.append( 'from time import * ' )
+ PyBranchNode.append( 'def Print_1(Branch) : ' )
+ PyBranchNode.append( ' print "Print ",Branch ' )
+ PyBranchNode.append( ' sleep(1) ' )
+ PyBranchNode.append( ' return Branch ' )
+ BranchNode = GraphSwitchCheckBranch1.INode( 'Print_1' , PyBranchNode )
+ BranchNode.SetName( 'BranchNode' )
+ BranchNode.SetAuthor( '' )
+ BranchNode.SetComment( 'Compute Node' )
+ BranchNode.Coords( 604 , 149 )
+ IBranchNodeBranch = BranchNode.InPort( 'Branch' , 'string' )
+ IBranchNodeGate = BranchNode.GetInPort( 'Gate' )
+ OBranchNodeBranch = BranchNode.OutPort( 'Branch' , 'string' )
+ OBranchNodeGate = BranchNode.GetOutPort( 'Gate' )
+
+ # Creation of Loop Nodes
+ PyInitLoopSwitch = []
+ PyInitLoopSwitch.append( 'def InitLoop(Index,Min,Max) : ' )
+ PyInitLoopSwitch.append( ' Index = Max ' )
+ PyInitLoopSwitch.append( ' return Index,Min,Max ' )
+ PyMoreInitLoopSwitch = []
+ PyMoreInitLoopSwitch.append( 'from time import * ' )
+ PyMoreInitLoopSwitch.append( 'def MoreLoop(Index,Min,Max) : ' )
+ PyMoreInitLoopSwitch.append( ' sleep(1) ' )
+ PyMoreInitLoopSwitch.append( ' if Index >= Min : ' )
+ PyMoreInitLoopSwitch.append( ' DoLoop = 1 ' )
+ PyMoreInitLoopSwitch.append( ' else : ' )
+ PyMoreInitLoopSwitch.append( ' DoLoop = 0 ' )
+ PyMoreInitLoopSwitch.append( ' return DoLoop,Index,Min,Max ' )
+ PyNextInitLoopSwitch = []
+ PyNextInitLoopSwitch.append( 'def NextLoop(Index,Min,Max) : ' )
+ PyNextInitLoopSwitch.append( ' Index = Index - 1 ' )
+ PyNextInitLoopSwitch.append( ' return Index,Min,Max ' )
+ InitLoopSwitch,EndOfInitLoopSwitch = GraphSwitchCheckBranch1.LNode( 'InitLoop' , PyInitLoopSwitch , 'MoreLoop' , PyMoreInitLoopSwitch , 'NextLoop' , PyNextInitLoopSwitch )
+ EndOfInitLoopSwitch.SetName( 'EndOfInitLoopSwitch' )
+ EndOfInitLoopSwitch.SetAuthor( '' )
+ EndOfInitLoopSwitch.SetComment( 'Compute Node' )
+ EndOfInitLoopSwitch.Coords( 1074 , 194 )
+ PyEndOfInitLoopSwitch = []
+ PyEndOfInitLoopSwitch.append( 'from time import * ' )
+ PyEndOfInitLoopSwitch.append( 'def EndOfInitLoopSwitch(DoLoop,Index,Min,Max) : ' )
+ PyEndOfInitLoopSwitch.append( ' sleep(1) ' )
+ PyEndOfInitLoopSwitch.append( ' return DoLoop,Index,Min,Max ' )
+ EndOfInitLoopSwitch.SetPyFunction( 'EndOfInitLoopSwitch' , PyEndOfInitLoopSwitch )
+ IInitLoopSwitchDoLoop = InitLoopSwitch.GetInPort( 'DoLoop' )
+ IInitLoopSwitchIndex = InitLoopSwitch.InPort( 'Index' , 'long' )
+ IInitLoopSwitchMin = InitLoopSwitch.InPort( 'Min' , 'long' )
+ IInitLoopSwitchMax = InitLoopSwitch.InPort( 'Max' , 'long' )
+ IInitLoopSwitchGate = InitLoopSwitch.GetInPort( 'Gate' )
+ OInitLoopSwitchDoLoop = InitLoopSwitch.GetOutPort( 'DoLoop' )
+ OInitLoopSwitchIndex = InitLoopSwitch.GetOutPort( 'Index' )
+ OInitLoopSwitchMin = InitLoopSwitch.GetOutPort( 'Min' )
+ OInitLoopSwitchMax = InitLoopSwitch.GetOutPort( 'Max' )
+ IEndOfInitLoopSwitchDoLoop = EndOfInitLoopSwitch.GetInPort( 'DoLoop' )
+ IEndOfInitLoopSwitchIndex = EndOfInitLoopSwitch.GetInPort( 'Index' )
+ IEndOfInitLoopSwitchMin = EndOfInitLoopSwitch.GetInPort( 'Min' )
+ IEndOfInitLoopSwitchMax = EndOfInitLoopSwitch.GetInPort( 'Max' )
+ IEndOfInitLoopSwitchGate = EndOfInitLoopSwitch.GetInPort( 'Gate' )
+ OEndOfInitLoopSwitchDoLoop = EndOfInitLoopSwitch.GetOutPort( 'DoLoop' )
+ OEndOfInitLoopSwitchIndex = EndOfInitLoopSwitch.GetOutPort( 'Index' )
+ OEndOfInitLoopSwitchMin = EndOfInitLoopSwitch.GetOutPort( 'Min' )
+ OEndOfInitLoopSwitchMax = EndOfInitLoopSwitch.GetOutPort( 'Max' )
+ OEndOfInitLoopSwitchGate = EndOfInitLoopSwitch.GetOutPort( 'Gate' )
+ InitLoopSwitch.SetName( 'InitLoopSwitch' )
+ InitLoopSwitch.SetAuthor( '' )
+ InitLoopSwitch.SetComment( 'Compute Node' )
+ InitLoopSwitch.Coords( 10 , 157 )
+
+ # Creation of Switch Nodes
+ PySwitch = []
+ PySwitch.append( 'from time import * ' )
+ PySwitch.append( 'def Switch(a) : ' )
+ PySwitch.append( ' sleep(1) ' )
+ PySwitch.append( ' Branch = "Negative or null" ' )
+ PySwitch.append( ' if a <= 0 : ' )
+ PySwitch.append( ' return 0,0,a,Branch,1 ' )
+ PySwitch.append( ' if ( a & 1 ) == 0 : ' )
+ PySwitch.append( ' Branch = "Even" ' )
+ PySwitch.append( ' else : ' )
+ PySwitch.append( ' Branch = "Odd" ' )
+ PySwitch.append( ' return a & 1,1-(a&1),a,Branch,0 ' )
+ Switch,EndOfSwitch = GraphSwitchCheckBranch1.SNode( 'Switch' , PySwitch )
+ EndOfSwitch.SetName( 'EndOfSwitch' )
+ EndOfSwitch.SetAuthor( '' )
+ EndOfSwitch.SetComment( 'Compute Node' )
+ EndOfSwitch.Coords( 882 , 194 )
+ PyEndOfSwitch = []
+ PyEndOfSwitch.append( 'from time import * ' )
+ PyEndOfSwitch.append( 'def EndOfSwitch(a,Branch) : ' )
+ PyEndOfSwitch.append( ' sleep(1) ' )
+ PyEndOfSwitch.append( ' return a ' )
+ EndOfSwitch.SetPyFunction( 'EndOfSwitch' , PyEndOfSwitch )
+ IEndOfSwitcha = EndOfSwitch.InPort( 'a' , 'long' )
+ IEndOfSwitchBranch = EndOfSwitch.InPort( 'Branch' , 'string' )
+ IEndOfSwitchDefault = EndOfSwitch.GetInPort( 'Default' )
+ OEndOfSwitcha = EndOfSwitch.OutPort( 'a' , 'long' )
+ OEndOfSwitchGate = EndOfSwitch.GetOutPort( 'Gate' )
+ Switch.SetName( 'Switch' )
+ Switch.SetAuthor( '' )
+ Switch.SetComment( 'Compute Node' )
+ Switch.Coords( 194 , 157 )
+ ISwitcha = Switch.InPort( 'a' , 'long' )
+ ISwitchGate = Switch.GetInPort( 'Gate' )
+ OSwitchOdd = Switch.OutPort( 'Odd' , 'long' )
+ OSwitchEven = Switch.OutPort( 'Even' , 'int' )
+ OSwitcha = Switch.OutPort( 'a' , 'int' )
+ OSwitchBranch = Switch.OutPort( 'Branch' , 'string' )
+ OSwitchdefault = Switch.OutPort( 'default' , 'boolean' )
+ OSwitchDefault = Switch.GetOutPort( 'Default' )
+
+ # Creation of Links
+ LIsOddaEndOfSwitcha = GraphSwitchCheckBranch1.Link( OIsOdda , IEndOfSwitcha )
+
+ LIsEvenaEndOfSwitcha = GraphSwitchCheckBranch1.Link( OIsEvena , IEndOfSwitcha )
+
+ LBranchNodeBranchEndOfSwitchBranch = GraphSwitchCheckBranch1.Link( OBranchNodeBranch , IEndOfSwitchBranch )
+
+ LInitLoopSwitchIndexSwitcha = GraphSwitchCheckBranch1.Link( OInitLoopSwitchIndex , ISwitcha )
+
+ LInitLoopSwitchMinEndOfInitLoopSwitchMin = GraphSwitchCheckBranch1.Link( OInitLoopSwitchMin , IEndOfInitLoopSwitchMin )
+
+ LInitLoopSwitchMaxEndOfInitLoopSwitchMax = GraphSwitchCheckBranch1.Link( OInitLoopSwitchMax , IEndOfInitLoopSwitchMax )
+
+ LSwitchOddIsOddGate = GraphSwitchCheckBranch1.Link( OSwitchOdd , IIsOddGate )
+ LSwitchOddIsOddGate.AddCoord( 1 , 401 , 101 )
+ LSwitchOddIsOddGate.AddCoord( 2 , 401 , 188 )
+
+ LSwitchEvenIsEvenGate = GraphSwitchCheckBranch1.Link( OSwitchEven , IIsEvenGate )
+ LSwitchEvenIsEvenGate.AddCoord( 1 , 392 , 533 )
+ LSwitchEvenIsEvenGate.AddCoord( 2 , 392 , 208 )
+
+ LSwitchaIsOdda = GraphSwitchCheckBranch1.Link( OSwitcha , IIsOdda )
+ LSwitchaIsOdda.AddCoord( 1 , 382 , 78 )
+ LSwitchaIsOdda.AddCoord( 2 , 382 , 229 )
+
+ LSwitchaIsEvena = GraphSwitchCheckBranch1.Link( OSwitcha , IIsEvena )
+ LSwitchaIsEvena.AddCoord( 1 , 381 , 509 )
+ LSwitchaIsEvena.AddCoord( 2 , 381 , 229 )
+
+ LSwitchBranchBranchNodeBranch = GraphSwitchCheckBranch1.Link( OSwitchBranch , IBranchNodeBranch )
+
+ LSwitchdefaultEndOfSwitchDefault = GraphSwitchCheckBranch1.Link( OSwitchdefault , IEndOfSwitchDefault )
+
+ LEndOfSwitchaEndOfInitLoopSwitchIndex = GraphSwitchCheckBranch1.Link( OEndOfSwitcha , IEndOfInitLoopSwitchIndex )
+
+ # Input datas
+ IInitLoopSwitchIndex.Input( 0 )
+ IInitLoopSwitchMin.Input( -5 )
+ IInitLoopSwitchMax.Input( 10 )
+
+ # Output Ports of the graph
+ #OEndOfInitLoopSwitchIndex = EndOfInitLoopSwitch.GetOutPort( 'Index' )
+ #OEndOfInitLoopSwitchMin = EndOfInitLoopSwitch.GetOutPort( 'Min' )
+ #OEndOfInitLoopSwitchMax = EndOfInitLoopSwitch.GetOutPort( 'Max' )
+ return GraphSwitchCheckBranch1
+
+
+GraphSwitchCheckBranch1 = DefGraphSwitchCheckBranch1()
--- /dev/null
+<!DOCTYPE SuperGraph>
+<supergraph>
+<dataflow>
+<info-list>
+<node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>GraphSwitchCheckBranch1</node-name>
+ <kind>1</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>GraphSwitchCheckBranch1</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>InitLoopSwitch__Index</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>InitLoopSwitch__Min</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>InitLoopSwitch__Max</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>EndOfInitLoopSwitch__Index</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>EndOfInitLoopSwitch__Min</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>EndOfInitLoopSwitch__Max</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list/>
+ <creation-date>13/1/2005 - 11:48:50</creation-date>
+ <lastmodification-date>19/1/2005 - 17:18:17</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>JR</author>
+ <container>?</container>
+ <comment>Switch with two SwitchBranches, One NotSwitchBranch and the DefaultBranch</comment>
+ <x-position>0</x-position>
+ <y-position>0</y-position> </node> </info-list>
+ <node-list>
+<node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>IsOdd</node-name>
+ <kind>3</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>IsOdd</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>IsOdd</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def IsOdd(a) : ]]></PyFunc>
+ <PyFunc><![CDATA[ print a,"IsOdd (GraphSwitch)" ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep( 1 ) ]]></PyFunc>
+ <PyFunc><![CDATA[ return a ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 17:7:48</creation-date>
+ <lastmodification-date>19/1/2005 - 17:7:48</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Python function</comment>
+ <x-position>415</x-position>
+ <y-position>7</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>IsEven</node-name>
+ <kind>3</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>IsEven</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>IsEven</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def IsEven(a) : ]]></PyFunc>
+ <PyFunc><![CDATA[ print a,"IsEven (GraphSwitch)" ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep( 1 ) ]]></PyFunc>
+ <PyFunc><![CDATA[ return a ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 17:7:48</creation-date>
+ <lastmodification-date>19/1/2005 - 17:7:48</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>421</x-position>
+ <y-position>438</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>BranchNode</node-name>
+ <kind>3</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>BranchNode</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>string</inParameter-type>
+ <inParameter-name>Branch</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>string</outParameter-type>
+ <outParameter-name>Branch</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>Print_1</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def Print_1(Branch) : ]]></PyFunc>
+ <PyFunc><![CDATA[ print "Print ",Branch ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
+ <PyFunc><![CDATA[ return Branch ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 17:7:48</creation-date>
+ <lastmodification-date>19/1/2005 - 17:7:48</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>604</x-position>
+ <y-position>149</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>InitLoopSwitch</node-name>
+ <kind>4</kind>
+ <coupled-node>EndOfInitLoopSwitch</coupled-node>
+ <service>
+<service-name>InitLoopSwitch</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Index</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Min</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Max</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Index</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Min</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Max</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>InitLoop</FuncName>
+ <PyFunc><![CDATA[def InitLoop(Index,Min,Max) : ]]></PyFunc>
+ <PyFunc><![CDATA[ Index = Max ]]></PyFunc>
+ <PyFunc><![CDATA[ return Index,Min,Max ]]></PyFunc> </PyFunction>
+ <PyFunction>
+<FuncName>MoreLoop</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def MoreLoop(Index,Min,Max) : ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
+ <PyFunc><![CDATA[ if Index >= Min : ]]></PyFunc>
+ <PyFunc><![CDATA[ DoLoop = 1 ]]></PyFunc>
+ <PyFunc><![CDATA[ else : ]]></PyFunc>
+ <PyFunc><![CDATA[ DoLoop = 0 ]]></PyFunc>
+ <PyFunc><![CDATA[ return DoLoop,Index,Min,Max ]]></PyFunc> </PyFunction>
+ <PyFunction>
+<FuncName>NextLoop</FuncName>
+ <PyFunc><![CDATA[def NextLoop(Index,Min,Max) : ]]></PyFunc>
+ <PyFunc><![CDATA[ Index = Index - 1 ]]></PyFunc>
+ <PyFunc><![CDATA[ return Index,Min,Max ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 17:7:48</creation-date>
+ <lastmodification-date>19/1/2005 - 17:7:48</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>10</x-position>
+ <y-position>157</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>EndOfInitLoopSwitch</node-name>
+ <kind>5</kind>
+ <coupled-node>InitLoopSwitch</coupled-node>
+ <service>
+<service-name>EndOfInitLoopSwitch</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Index</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Min</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Max</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Index</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Min</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Max</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>EndOfInitLoopSwitch</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def EndOfInitLoopSwitch(DoLoop,Index,Min,Max) : ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
+ <PyFunc><![CDATA[ return DoLoop,Index,Min,Max ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 17:7:48</creation-date>
+ <lastmodification-date>19/1/2005 - 17:7:48</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>1074</x-position>
+ <y-position>194</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>Switch</node-name>
+ <kind>6</kind>
+ <coupled-node>EndOfSwitch</coupled-node>
+ <service>
+<service-name>Switch</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Odd</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>int</outParameter-type>
+ <outParameter-name>Even</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>int</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>string</outParameter-type>
+ <outParameter-name>Branch</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>boolean</outParameter-type>
+ <outParameter-name>default</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>Switch</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def Switch(a) : ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
+ <PyFunc><![CDATA[ Branch = "Negative or null" ]]></PyFunc>
+ <PyFunc><![CDATA[ if a <= 0 : ]]></PyFunc>
+ <PyFunc><![CDATA[ return 0,0,a,Branch,1 ]]></PyFunc>
+ <PyFunc><![CDATA[ if ( a & 1 ) == 0 : ]]></PyFunc>
+ <PyFunc><![CDATA[ Branch = "Even" ]]></PyFunc>
+ <PyFunc><![CDATA[ else : ]]></PyFunc>
+ <PyFunc><![CDATA[ Branch = "Odd" ]]></PyFunc>
+ <PyFunc><![CDATA[ return a & 1,1-(a&1),a,Branch,0 ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 17:7:48</creation-date>
+ <lastmodification-date>19/1/2005 - 17:7:48</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>194</x-position>
+ <y-position>157</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>EndOfSwitch</node-name>
+ <kind>7</kind>
+ <coupled-node>Switch</coupled-node>
+ <service>
+<service-name>EndOfSwitch</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>string</inParameter-type>
+ <inParameter-name>Branch</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>EndOfSwitch</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def EndOfSwitch(a,Branch) : ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
+ <PyFunc><![CDATA[ return a ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 17:7:48</creation-date>
+ <lastmodification-date>19/1/2005 - 17:7:48</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>882</x-position>
+ <y-position>194</y-position> </node> </node-list>
+ <link-list>
+<link>
+<fromnode-name>IsOdd</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>EndOfSwitch</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>IsEven</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>EndOfSwitch</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>BranchNode</fromnode-name>
+ <fromserviceparameter-name>Branch</fromserviceparameter-name>
+ <tonode-name>EndOfSwitch</tonode-name>
+ <toserviceparameter-name>Branch</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>InitLoopSwitch</fromnode-name>
+ <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
+ <tonode-name>EndOfInitLoopSwitch</tonode-name>
+ <toserviceparameter-name>DoLoop</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>InitLoopSwitch</fromnode-name>
+ <fromserviceparameter-name>Index</fromserviceparameter-name>
+ <tonode-name>Switch</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>InitLoopSwitch</fromnode-name>
+ <fromserviceparameter-name>Min</fromserviceparameter-name>
+ <tonode-name>EndOfInitLoopSwitch</tonode-name>
+ <toserviceparameter-name>Min</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>InitLoopSwitch</fromnode-name>
+ <fromserviceparameter-name>Max</fromserviceparameter-name>
+ <tonode-name>EndOfInitLoopSwitch</tonode-name>
+ <toserviceparameter-name>Max</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>EndOfInitLoopSwitch</fromnode-name>
+ <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
+ <tonode-name>InitLoopSwitch</tonode-name>
+ <toserviceparameter-name>DoLoop</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>Odd</fromserviceparameter-name>
+ <tonode-name>IsOdd</tonode-name>
+ <toserviceparameter-name>Gate</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>401</x>
+ <y>101</y> </coord>
+ <coord>
+<x>401</x>
+ <y>188</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>Even</fromserviceparameter-name>
+ <tonode-name>IsEven</tonode-name>
+ <toserviceparameter-name>Gate</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>392</x>
+ <y>533</y> </coord>
+ <coord>
+<x>392</x>
+ <y>208</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>IsOdd</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>382</x>
+ <y>78</y> </coord>
+ <coord>
+<x>382</x>
+ <y>229</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>IsEven</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>381</x>
+ <y>509</y> </coord>
+ <coord>
+<x>381</x>
+ <y>229</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>Branch</fromserviceparameter-name>
+ <tonode-name>BranchNode</tonode-name>
+ <toserviceparameter-name>Branch</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>default</fromserviceparameter-name>
+ <tonode-name>EndOfSwitch</tonode-name>
+ <toserviceparameter-name>Default</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>EndOfSwitch</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>EndOfInitLoopSwitch</tonode-name>
+ <toserviceparameter-name>Index</toserviceparameter-name>
+ <coord-list/> </link> </link-list>
+ <data-list>
+<data>
+<fromnode-name>GraphSwitchCheckBranch1</fromnode-name>
+ <fromserviceparameter-name>InitLoopSwitch__Index</fromserviceparameter-name>
+ <tonode-name>InitLoopSwitch</tonode-name>
+ <toserviceparameter-name>Index</toserviceparameter-name>
+ <data-value>
+<value-type>3</value-type>
+ <value>0</value> </data-value>
+ <coord-list/> </data>
+ <data>
+<fromnode-name>GraphSwitchCheckBranch1</fromnode-name>
+ <fromserviceparameter-name>InitLoopSwitch__Min</fromserviceparameter-name>
+ <tonode-name>InitLoopSwitch</tonode-name>
+ <toserviceparameter-name>Min</toserviceparameter-name>
+ <data-value>
+<value-type>3</value-type>
+ <value>-5</value> </data-value>
+ <coord-list/> </data>
+ <data>
+<fromnode-name>GraphSwitchCheckBranch1</fromnode-name>
+ <fromserviceparameter-name>InitLoopSwitch__Max</fromserviceparameter-name>
+ <tonode-name>InitLoopSwitch</tonode-name>
+ <toserviceparameter-name>Max</toserviceparameter-name>
+ <data-value>
+<value-type>3</value-type>
+ <value>10</value> </data-value>
+ <coord-list/> </data> </data-list> </dataflow></supergraph>
--- /dev/null
+
+# Generated python file of Graph GraphSwitchCheckDefault11NOTValid
+
+from SuperV import *
+
+# Graph creation of GraphSwitchCheckDefault11NOTValid
+def DefGraphSwitchCheckDefault11NOTValid() :
+ GraphSwitchCheckDefault11NOTValid = Graph( 'GraphSwitchCheckDefault11NOTValid' )
+ GraphSwitchCheckDefault11NOTValid.SetName( 'GraphSwitchCheckDefault11NOTValid' )
+ GraphSwitchCheckDefault11NOTValid.SetAuthor( 'JR' )
+ GraphSwitchCheckDefault11NOTValid.SetComment( '' )
+ GraphSwitchCheckDefault11NOTValid.Coords( 0 , 0 )
+
+ # Creation of Factory Nodes
+
+ # Creation of InLine Nodes
+ PyIsOdd = []
+ PyIsOdd.append( 'from time import * ' )
+ PyIsOdd.append( 'def IsOdd(a) : ' )
+ PyIsOdd.append( ' print a,"IsOdd (GraphSwitch)" ' )
+ PyIsOdd.append( ' sleep( 1 ) ' )
+ PyIsOdd.append( ' return a ' )
+ IsOdd = GraphSwitchCheckDefault11NOTValid.INode( 'IsOdd' , PyIsOdd )
+ IsOdd.SetName( 'IsOdd' )
+ IsOdd.SetAuthor( '' )
+ IsOdd.SetComment( 'Python function' )
+ IsOdd.Coords( 415 , 7 )
+ IIsOdda = IsOdd.InPort( 'a' , 'long' )
+ IIsOddGate = IsOdd.GetInPort( 'Gate' )
+ OIsOdda = IsOdd.OutPort( 'a' , 'long' )
+ OIsOddGate = IsOdd.GetOutPort( 'Gate' )
+
+ PyIsEven = []
+ PyIsEven.append( 'from time import * ' )
+ PyIsEven.append( 'def IsEven(a) : ' )
+ PyIsEven.append( ' print a,"IsEven (GraphSwitch)" ' )
+ PyIsEven.append( ' sleep( 1 ) ' )
+ PyIsEven.append( ' return a ' )
+ IsEven = GraphSwitchCheckDefault11NOTValid.INode( 'IsEven' , PyIsEven )
+ IsEven.SetName( 'IsEven' )
+ IsEven.SetAuthor( '' )
+ IsEven.SetComment( 'Compute Node' )
+ IsEven.Coords( 421 , 438 )
+ IIsEvena = IsEven.InPort( 'a' , 'long' )
+ IIsEvenGate = IsEven.GetInPort( 'Gate' )
+ OIsEvena = IsEven.OutPort( 'a' , 'long' )
+ OIsEvenGate = IsEven.GetOutPort( 'Gate' )
+
+ PyPrintOdd = []
+ PyPrintOdd.append( 'from time import * ' )
+ PyPrintOdd.append( 'def Print(a,Branch) : ' )
+ PyPrintOdd.append( ' print "Print ",a,Branch ' )
+ PyPrintOdd.append( ' sleep(1) ' )
+ PyPrintOdd.append( ' return Branch ' )
+ PrintOdd = GraphSwitchCheckDefault11NOTValid.INode( 'Print' , PyPrintOdd )
+ PrintOdd.SetName( 'PrintOdd' )
+ PrintOdd.SetAuthor( '' )
+ PrintOdd.SetComment( 'Compute Node' )
+ PrintOdd.Coords( 415 , 130 )
+ IPrintOdda = PrintOdd.InPort( 'a' , 'long' )
+ IPrintOddBranch = PrintOdd.InPort( 'Branch' , 'string' )
+ IPrintOddGate = PrintOdd.GetInPort( 'Gate' )
+ OPrintOddBranch = PrintOdd.OutPort( 'Branch' , 'string' )
+ OPrintOddGate = PrintOdd.GetOutPort( 'Gate' )
+
+ PyPrintEven = []
+ PyPrintEven.append( 'from time import * ' )
+ PyPrintEven.append( 'def Print_1(a,Branch) : ' )
+ PyPrintEven.append( ' print "Print ",a,Branch ' )
+ PyPrintEven.append( ' sleep(1) ' )
+ PyPrintEven.append( ' return Branch ' )
+ PrintEven = GraphSwitchCheckDefault11NOTValid.INode( 'Print_1' , PyPrintEven )
+ PrintEven.SetName( 'PrintEven' )
+ PrintEven.SetAuthor( '' )
+ PrintEven.SetComment( 'Compute Node' )
+ PrintEven.Coords( 423 , 289 )
+ IPrintEvena = PrintEven.InPort( 'a' , 'long' )
+ IPrintEvenBranch = PrintEven.InPort( 'Branch' , 'string' )
+ IPrintEvenGate = PrintEven.GetInPort( 'Gate' )
+ OPrintEvenBranch = PrintEven.OutPort( 'Branch' , 'string' )
+ OPrintEvenGate = PrintEven.GetOutPort( 'Gate' )
+
+ PyEmptyNode = []
+ PyEmptyNode.append( 'from time import * ' )
+ PyEmptyNode.append( 'def EmptyNode(a,Branch) : ' )
+ PyEmptyNode.append( ' sleep(1) ' )
+ PyEmptyNode.append( ' return a,Branch ' )
+ EmptyNode = GraphSwitchCheckDefault11NOTValid.INode( 'EmptyNode' , PyEmptyNode )
+ EmptyNode.SetName( 'EmptyNode' )
+ EmptyNode.SetAuthor( '' )
+ EmptyNode.SetComment( 'Compute Node' )
+ EmptyNode.Coords( 652 , 110 )
+ IEmptyNodea = EmptyNode.InPort( 'a' , 'long' )
+ IEmptyNodeBranch = EmptyNode.InPort( 'Branch' , 'string' )
+ IEmptyNodeGate = EmptyNode.GetInPort( 'Gate' )
+ OEmptyNodea = EmptyNode.OutPort( 'a' , 'long' )
+ OEmptyNodeBranch = EmptyNode.OutPort( 'Branch' , 'string' )
+ OEmptyNodeGate = EmptyNode.GetOutPort( 'Gate' )
+
+ PyDefault = []
+ PyDefault.append( 'from time import * ' )
+ PyDefault.append( 'def Default(a,Branch) : ' )
+ PyDefault.append( ' sleep(1) ' )
+ PyDefault.append( ' return a,Branch ' )
+ Default = GraphSwitchCheckDefault11NOTValid.INode( 'Default' , PyDefault )
+ Default.SetName( 'Default' )
+ Default.SetAuthor( '' )
+ Default.SetComment( 'Compute Node' )
+ Default.Coords( 421 , 592 )
+ IDefaulta = Default.InPort( 'a' , 'long' )
+ IDefaultBranch = Default.InPort( 'Branch' , 'string' )
+ IDefaultGate = Default.GetInPort( 'Gate' )
+ ODefaulta = Default.OutPort( 'a' , 'long' )
+ ODefaultBranch = Default.OutPort( 'Branch' , 'string' )
+ ODefaultGate = Default.GetOutPort( 'Gate' )
+
+ # Creation of Loop Nodes
+ PyInitLoopSwitch = []
+ PyInitLoopSwitch.append( 'def InitLoop(Index,Min,Max) : ' )
+ PyInitLoopSwitch.append( ' Index = Max ' )
+ PyInitLoopSwitch.append( ' return Index,Min,Max ' )
+ PyMoreInitLoopSwitch = []
+ PyMoreInitLoopSwitch.append( 'from time import * ' )
+ PyMoreInitLoopSwitch.append( 'def MoreLoop(Index,Min,Max) : ' )
+ PyMoreInitLoopSwitch.append( ' sleep(1) ' )
+ PyMoreInitLoopSwitch.append( ' if Index >= Min : ' )
+ PyMoreInitLoopSwitch.append( ' DoLoop = 1 ' )
+ PyMoreInitLoopSwitch.append( ' else : ' )
+ PyMoreInitLoopSwitch.append( ' DoLoop = 0 ' )
+ PyMoreInitLoopSwitch.append( ' return DoLoop,Index,Min,Max ' )
+ PyNextInitLoopSwitch = []
+ PyNextInitLoopSwitch.append( 'def NextLoop(Index,Min,Max) : ' )
+ PyNextInitLoopSwitch.append( ' Index = Index - 1 ' )
+ PyNextInitLoopSwitch.append( ' return Index,Min,Max ' )
+ InitLoopSwitch,EndOfInitLoopSwitch = GraphSwitchCheckDefault11NOTValid.LNode( 'InitLoop' , PyInitLoopSwitch , 'MoreLoop' , PyMoreInitLoopSwitch , 'NextLoop' , PyNextInitLoopSwitch )
+ EndOfInitLoopSwitch.SetName( 'EndOfInitLoopSwitch' )
+ EndOfInitLoopSwitch.SetAuthor( '' )
+ EndOfInitLoopSwitch.SetComment( 'Compute Node' )
+ EndOfInitLoopSwitch.Coords( 1074 , 194 )
+ PyEndOfInitLoopSwitch = []
+ PyEndOfInitLoopSwitch.append( 'from time import * ' )
+ PyEndOfInitLoopSwitch.append( 'def EndOfInitLoopSwitch(DoLoop,Index,Min,Max) : ' )
+ PyEndOfInitLoopSwitch.append( ' sleep(1) ' )
+ PyEndOfInitLoopSwitch.append( ' return DoLoop,Index,Min,Max ' )
+ EndOfInitLoopSwitch.SetPyFunction( 'EndOfInitLoopSwitch' , PyEndOfInitLoopSwitch )
+ IInitLoopSwitchDoLoop = InitLoopSwitch.GetInPort( 'DoLoop' )
+ IInitLoopSwitchIndex = InitLoopSwitch.InPort( 'Index' , 'long' )
+ IInitLoopSwitchMin = InitLoopSwitch.InPort( 'Min' , 'long' )
+ IInitLoopSwitchMax = InitLoopSwitch.InPort( 'Max' , 'long' )
+ IInitLoopSwitchGate = InitLoopSwitch.GetInPort( 'Gate' )
+ OInitLoopSwitchDoLoop = InitLoopSwitch.GetOutPort( 'DoLoop' )
+ OInitLoopSwitchIndex = InitLoopSwitch.GetOutPort( 'Index' )
+ OInitLoopSwitchMin = InitLoopSwitch.GetOutPort( 'Min' )
+ OInitLoopSwitchMax = InitLoopSwitch.GetOutPort( 'Max' )
+ IEndOfInitLoopSwitchDoLoop = EndOfInitLoopSwitch.GetInPort( 'DoLoop' )
+ IEndOfInitLoopSwitchIndex = EndOfInitLoopSwitch.GetInPort( 'Index' )
+ IEndOfInitLoopSwitchMin = EndOfInitLoopSwitch.GetInPort( 'Min' )
+ IEndOfInitLoopSwitchMax = EndOfInitLoopSwitch.GetInPort( 'Max' )
+ IEndOfInitLoopSwitchGate = EndOfInitLoopSwitch.GetInPort( 'Gate' )
+ OEndOfInitLoopSwitchDoLoop = EndOfInitLoopSwitch.GetOutPort( 'DoLoop' )
+ OEndOfInitLoopSwitchIndex = EndOfInitLoopSwitch.GetOutPort( 'Index' )
+ OEndOfInitLoopSwitchMin = EndOfInitLoopSwitch.GetOutPort( 'Min' )
+ OEndOfInitLoopSwitchMax = EndOfInitLoopSwitch.GetOutPort( 'Max' )
+ OEndOfInitLoopSwitchGate = EndOfInitLoopSwitch.GetOutPort( 'Gate' )
+ InitLoopSwitch.SetName( 'InitLoopSwitch' )
+ InitLoopSwitch.SetAuthor( '' )
+ InitLoopSwitch.SetComment( 'Compute Node' )
+ InitLoopSwitch.Coords( 10 , 129 )
+
+ # Creation of Switch Nodes
+ PySwitch = []
+ PySwitch.append( 'from time import * ' )
+ PySwitch.append( 'def Switch(a) : ' )
+ PySwitch.append( ' sleep(1) ' )
+ PySwitch.append( ' Branch = "Negative or null" ' )
+ PySwitch.append( ' if a <= 0 : ' )
+ PySwitch.append( ' return 0,0,a,Branch,1 ' )
+ PySwitch.append( ' if ( a & 1 ) == 0 : ' )
+ PySwitch.append( ' Branch = "Even" ' )
+ PySwitch.append( ' else : ' )
+ PySwitch.append( ' Branch = "Odd" ' )
+ PySwitch.append( ' return a & 1,1-(a&1),a,Branch,0 ' )
+ Switch,EndOfSwitch = GraphSwitchCheckDefault11NOTValid.SNode( 'Switch' , PySwitch )
+ EndOfSwitch.SetName( 'EndOfSwitch' )
+ EndOfSwitch.SetAuthor( '' )
+ EndOfSwitch.SetComment( 'Compute Node' )
+ EndOfSwitch.Coords( 882 , 194 )
+ PyEndOfSwitch = []
+ PyEndOfSwitch.append( 'from time import * ' )
+ PyEndOfSwitch.append( 'def EndOfSwitch(a,Branch) : ' )
+ PyEndOfSwitch.append( ' sleep(1) ' )
+ PyEndOfSwitch.append( ' return a ' )
+ EndOfSwitch.SetPyFunction( 'EndOfSwitch' , PyEndOfSwitch )
+ IEndOfSwitcha = EndOfSwitch.InPort( 'a' , 'long' )
+ IEndOfSwitchBranch = EndOfSwitch.InPort( 'Branch' , 'string' )
+ IEndOfSwitchDefault = EndOfSwitch.GetInPort( 'Default' )
+ OEndOfSwitcha = EndOfSwitch.OutPort( 'a' , 'long' )
+ OEndOfSwitchGate = EndOfSwitch.GetOutPort( 'Gate' )
+ Switch.SetName( 'Switch' )
+ Switch.SetAuthor( '' )
+ Switch.SetComment( 'Compute Node' )
+ Switch.Coords( 190 , 129 )
+ ISwitcha = Switch.InPort( 'a' , 'long' )
+ ISwitchGate = Switch.GetInPort( 'Gate' )
+ OSwitchOdd = Switch.OutPort( 'Odd' , 'long' )
+ OSwitchEven = Switch.OutPort( 'Even' , 'int' )
+ OSwitcha = Switch.OutPort( 'a' , 'int' )
+ OSwitchBranch = Switch.OutPort( 'Branch' , 'string' )
+ OSwitchdefault = Switch.OutPort( 'default' , 'boolean' )
+ OSwitchDefault = Switch.GetOutPort( 'Default' )
+
+ # Creation of Links
+ LIsOddaEmptyNodea = GraphSwitchCheckDefault11NOTValid.Link( OIsOdda , IEmptyNodea )
+ LIsOddaEmptyNodea.AddCoord( 1 , 646 , 78 )
+
+ LIsEvenaEndOfSwitcha = GraphSwitchCheckDefault11NOTValid.Link( OIsEvena , IEndOfSwitcha )
+
+ LPrintOddBranchEmptyNodeBranch = GraphSwitchCheckDefault11NOTValid.Link( OPrintOddBranch , IEmptyNodeBranch )
+
+ LPrintEvenBranchEndOfSwitchBranch = GraphSwitchCheckDefault11NOTValid.Link( OPrintEvenBranch , IEndOfSwitchBranch )
+
+ LEmptyNodeaEndOfSwitcha = GraphSwitchCheckDefault11NOTValid.Link( OEmptyNodea , IEndOfSwitcha )
+
+ LEmptyNodeBranchEndOfSwitchBranch = GraphSwitchCheckDefault11NOTValid.Link( OEmptyNodeBranch , IEndOfSwitchBranch )
+
+ LDefaultBranchEndOfSwitchBranch = GraphSwitchCheckDefault11NOTValid.Link( ODefaultBranch , IEndOfSwitchBranch )
+
+ LInitLoopSwitchIndexSwitcha = GraphSwitchCheckDefault11NOTValid.Link( OInitLoopSwitchIndex , ISwitcha )
+
+ LInitLoopSwitchMinEndOfInitLoopSwitchMin = GraphSwitchCheckDefault11NOTValid.Link( OInitLoopSwitchMin , IEndOfInitLoopSwitchMin )
+
+ LInitLoopSwitchMaxEndOfInitLoopSwitchMax = GraphSwitchCheckDefault11NOTValid.Link( OInitLoopSwitchMax , IEndOfInitLoopSwitchMax )
+
+ LSwitchOddIsOddGate = GraphSwitchCheckDefault11NOTValid.Link( OSwitchOdd , IIsOddGate )
+ LSwitchOddIsOddGate.AddCoord( 1 , 401 , 101 )
+ LSwitchOddIsOddGate.AddCoord( 2 , 401 , 160 )
+
+ LSwitchOddPrintOddGate = GraphSwitchCheckDefault11NOTValid.Link( OSwitchOdd , IPrintOddGate )
+ LSwitchOddPrintOddGate.AddCoord( 1 , 401 , 245 )
+ LSwitchOddPrintOddGate.AddCoord( 2 , 401 , 159 )
+
+ LSwitchEvenIsEvenGate = GraphSwitchCheckDefault11NOTValid.Link( OSwitchEven , IIsEvenGate )
+ LSwitchEvenIsEvenGate.AddCoord( 1 , 392 , 533 )
+ LSwitchEvenIsEvenGate.AddCoord( 2 , 392 , 182 )
+
+ LSwitchEvenPrintEvenGate = GraphSwitchCheckDefault11NOTValid.Link( OSwitchEven , IPrintEvenGate )
+ LSwitchEvenPrintEvenGate.AddCoord( 1 , 392 , 403 )
+ LSwitchEvenPrintEvenGate.AddCoord( 2 , 392 , 181 )
+
+ LSwitchaIsOdda = GraphSwitchCheckDefault11NOTValid.Link( OSwitcha , IIsOdda )
+ LSwitchaIsOdda.AddCoord( 1 , 382 , 78 )
+ LSwitchaIsOdda.AddCoord( 2 , 382 , 199 )
+
+ LSwitchaIsEvena = GraphSwitchCheckDefault11NOTValid.Link( OSwitcha , IIsEvena )
+ LSwitchaIsEvena.AddCoord( 1 , 381 , 509 )
+ LSwitchaIsEvena.AddCoord( 2 , 382 , 200 )
+
+ LSwitchaPrintOdda = GraphSwitchCheckDefault11NOTValid.Link( OSwitcha , IPrintOdda )
+
+ LSwitchaPrintEvena = GraphSwitchCheckDefault11NOTValid.Link( OSwitcha , IPrintEvena )
+ LSwitchaPrintEvena.AddCoord( 1 , 381 , 361 )
+ LSwitchaPrintEvena.AddCoord( 2 , 382 , 200 )
+
+ LSwitchaDefaulta = GraphSwitchCheckDefault11NOTValid.Link( OSwitcha , IDefaulta )
+ LSwitchaDefaulta.AddCoord( 1 , 382 , 663 )
+ LSwitchaDefaulta.AddCoord( 2 , 382 , 199 )
+
+ LSwitchBranchPrintOddBranch = GraphSwitchCheckDefault11NOTValid.Link( OSwitchBranch , IPrintOddBranch )
+
+ LSwitchBranchPrintEvenBranch = GraphSwitchCheckDefault11NOTValid.Link( OSwitchBranch , IPrintEvenBranch )
+ LSwitchBranchPrintEvenBranch.AddCoord( 1 , 369 , 381 )
+ LSwitchBranchPrintEvenBranch.AddCoord( 2 , 369 , 219 )
+
+ LSwitchBranchDefaultBranch = GraphSwitchCheckDefault11NOTValid.Link( OSwitchBranch , IDefaultBranch )
+ LSwitchBranchDefaultBranch.AddCoord( 1 , 370 , 683 )
+ LSwitchBranchDefaultBranch.AddCoord( 2 , 370 , 220 )
+
+ LSwitchdefaultDefaultGate = GraphSwitchCheckDefault11NOTValid.Link( OSwitchdefault , IDefaultGate )
+ LSwitchdefaultDefaultGate.AddCoord( 1 , 363 , 707 )
+ LSwitchdefaultDefaultGate.AddCoord( 2 , 362 , 239 )
+
+ LSwitchDefaultEndOfSwitchDefault = GraphSwitchCheckDefault11NOTValid.Link( OSwitchDefault , IEndOfSwitchDefault )
+
+ LEndOfSwitchaEndOfInitLoopSwitchIndex = GraphSwitchCheckDefault11NOTValid.Link( OEndOfSwitcha , IEndOfInitLoopSwitchIndex )
+
+ # Input datas
+ IInitLoopSwitchIndex.Input( 0 )
+ IInitLoopSwitchMin.Input( -5 )
+ IInitLoopSwitchMax.Input( 10 )
+
+ # Output Ports of the graph
+ #ODefaulta = Default.GetOutPort( 'a' )
+ #OEndOfInitLoopSwitchIndex = EndOfInitLoopSwitch.GetOutPort( 'Index' )
+ #OEndOfInitLoopSwitchMin = EndOfInitLoopSwitch.GetOutPort( 'Min' )
+ #OEndOfInitLoopSwitchMax = EndOfInitLoopSwitch.GetOutPort( 'Max' )
+ return GraphSwitchCheckDefault11NOTValid
+
+
+GraphSwitchCheckDefault11NOTValid = DefGraphSwitchCheckDefault11NOTValid()
--- /dev/null
+<!DOCTYPE SuperGraph>
+<supergraph>
+<dataflow>
+<info-list>
+<node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>GraphSwitchCheckDefault11NOTValid</node-name>
+ <kind>1</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>GraphSwitchCheckDefault11NOTValid</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>InitLoopSwitch__Index</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>InitLoopSwitch__Min</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>InitLoopSwitch__Max</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Default__a</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>EndOfInitLoopSwitch__Index</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>EndOfInitLoopSwitch__Min</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>EndOfInitLoopSwitch__Max</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list/>
+ <creation-date>13/1/2005 - 12:21:43</creation-date>
+ <lastmodification-date>19/1/2005 - 12:14:37</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>JR</author>
+ <container>?</container>
+ <comment>?</comment>
+ <x-position>0</x-position>
+ <y-position>0</y-position> </node> </info-list>
+ <node-list>
+<node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>IsOdd</node-name>
+ <kind>3</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>IsOdd</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>IsOdd</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def IsOdd(a) : ]]></PyFunc>
+ <PyFunc><![CDATA[ print a,"IsOdd (GraphSwitch)" ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep( 1 ) ]]></PyFunc>
+ <PyFunc><![CDATA[ return a ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 12:14:37</creation-date>
+ <lastmodification-date>19/1/2005 - 12:14:37</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Python function</comment>
+ <x-position>415</x-position>
+ <y-position>7</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>IsEven</node-name>
+ <kind>3</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>IsEven</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>IsEven</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def IsEven(a) : ]]></PyFunc>
+ <PyFunc><![CDATA[ print a,"IsEven (GraphSwitch)" ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep( 1 ) ]]></PyFunc>
+ <PyFunc><![CDATA[ return a ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 12:14:37</creation-date>
+ <lastmodification-date>19/1/2005 - 12:14:37</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>421</x-position>
+ <y-position>438</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>PrintOdd</node-name>
+ <kind>3</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>PrintOdd</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>string</inParameter-type>
+ <inParameter-name>Branch</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>string</outParameter-type>
+ <outParameter-name>Branch</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>Print</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def Print(a,Branch) : ]]></PyFunc>
+ <PyFunc><![CDATA[ print "Print ",a,Branch ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
+ <PyFunc><![CDATA[ return Branch ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 12:14:37</creation-date>
+ <lastmodification-date>19/1/2005 - 12:14:37</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>415</x-position>
+ <y-position>130</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>PrintEven</node-name>
+ <kind>3</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>PrintEven</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>string</inParameter-type>
+ <inParameter-name>Branch</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>string</outParameter-type>
+ <outParameter-name>Branch</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>Print_1</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def Print_1(a,Branch) : ]]></PyFunc>
+ <PyFunc><![CDATA[ print "Print ",a,Branch ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
+ <PyFunc><![CDATA[ return Branch ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 12:14:37</creation-date>
+ <lastmodification-date>19/1/2005 - 12:14:37</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>423</x-position>
+ <y-position>289</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>EmptyNode</node-name>
+ <kind>3</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>EmptyNode</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>string</inParameter-type>
+ <inParameter-name>Branch</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>string</outParameter-type>
+ <outParameter-name>Branch</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>EmptyNode</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def EmptyNode(a,Branch) : ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
+ <PyFunc><![CDATA[ return a,Branch ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 12:14:37</creation-date>
+ <lastmodification-date>19/1/2005 - 12:14:37</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>652</x-position>
+ <y-position>110</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>Default</node-name>
+ <kind>3</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>Default</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>string</inParameter-type>
+ <inParameter-name>Branch</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>string</outParameter-type>
+ <outParameter-name>Branch</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>Default</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def Default(a,Branch) : ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
+ <PyFunc><![CDATA[ return a,Branch ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 12:14:37</creation-date>
+ <lastmodification-date>19/1/2005 - 12:14:37</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>421</x-position>
+ <y-position>592</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>InitLoopSwitch</node-name>
+ <kind>4</kind>
+ <coupled-node>EndOfInitLoopSwitch</coupled-node>
+ <service>
+<service-name>InitLoopSwitch</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Index</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Min</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Max</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Index</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Min</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Max</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>InitLoop</FuncName>
+ <PyFunc><![CDATA[def InitLoop(Index,Min,Max) : ]]></PyFunc>
+ <PyFunc><![CDATA[ Index = Max ]]></PyFunc>
+ <PyFunc><![CDATA[ return Index,Min,Max ]]></PyFunc> </PyFunction>
+ <PyFunction>
+<FuncName>MoreLoop</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def MoreLoop(Index,Min,Max) : ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
+ <PyFunc><![CDATA[ if Index >= Min : ]]></PyFunc>
+ <PyFunc><![CDATA[ DoLoop = 1 ]]></PyFunc>
+ <PyFunc><![CDATA[ else : ]]></PyFunc>
+ <PyFunc><![CDATA[ DoLoop = 0 ]]></PyFunc>
+ <PyFunc><![CDATA[ return DoLoop,Index,Min,Max ]]></PyFunc> </PyFunction>
+ <PyFunction>
+<FuncName>NextLoop</FuncName>
+ <PyFunc><![CDATA[def NextLoop(Index,Min,Max) : ]]></PyFunc>
+ <PyFunc><![CDATA[ Index = Index - 1 ]]></PyFunc>
+ <PyFunc><![CDATA[ return Index,Min,Max ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 12:14:37</creation-date>
+ <lastmodification-date>19/1/2005 - 12:14:37</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>10</x-position>
+ <y-position>129</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>EndOfInitLoopSwitch</node-name>
+ <kind>5</kind>
+ <coupled-node>InitLoopSwitch</coupled-node>
+ <service>
+<service-name>EndOfInitLoopSwitch</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Index</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Min</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Max</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Index</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Min</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Max</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>EndOfInitLoopSwitch</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def EndOfInitLoopSwitch(DoLoop,Index,Min,Max) : ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
+ <PyFunc><![CDATA[ return DoLoop,Index,Min,Max ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 12:14:37</creation-date>
+ <lastmodification-date>19/1/2005 - 12:14:37</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>1074</x-position>
+ <y-position>194</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>Switch</node-name>
+ <kind>6</kind>
+ <coupled-node>EndOfSwitch</coupled-node>
+ <service>
+<service-name>Switch</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Odd</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>int</outParameter-type>
+ <outParameter-name>Even</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>int</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>string</outParameter-type>
+ <outParameter-name>Branch</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>boolean</outParameter-type>
+ <outParameter-name>default</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>Switch</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def Switch(a) : ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
+ <PyFunc><![CDATA[ Branch = "Negative or null" ]]></PyFunc>
+ <PyFunc><![CDATA[ if a <= 0 : ]]></PyFunc>
+ <PyFunc><![CDATA[ return 0,0,a,Branch,1 ]]></PyFunc>
+ <PyFunc><![CDATA[ if ( a & 1 ) == 0 : ]]></PyFunc>
+ <PyFunc><![CDATA[ Branch = "Even" ]]></PyFunc>
+ <PyFunc><![CDATA[ else : ]]></PyFunc>
+ <PyFunc><![CDATA[ Branch = "Odd" ]]></PyFunc>
+ <PyFunc><![CDATA[ return a & 1,1-(a&1),a,Branch,0 ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 12:14:37</creation-date>
+ <lastmodification-date>19/1/2005 - 12:14:37</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>190</x-position>
+ <y-position>129</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>EndOfSwitch</node-name>
+ <kind>7</kind>
+ <coupled-node>Switch</coupled-node>
+ <service>
+<service-name>EndOfSwitch</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>string</inParameter-type>
+ <inParameter-name>Branch</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>EndOfSwitch</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def EndOfSwitch(a,Branch) : ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
+ <PyFunc><![CDATA[ return a ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 12:14:37</creation-date>
+ <lastmodification-date>19/1/2005 - 12:14:37</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>882</x-position>
+ <y-position>194</y-position> </node> </node-list>
+ <link-list>
+<link>
+<fromnode-name>IsOdd</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>EmptyNode</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>646</x>
+ <y>78</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>IsEven</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>EndOfSwitch</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>PrintOdd</fromnode-name>
+ <fromserviceparameter-name>Branch</fromserviceparameter-name>
+ <tonode-name>EmptyNode</tonode-name>
+ <toserviceparameter-name>Branch</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>PrintEven</fromnode-name>
+ <fromserviceparameter-name>Branch</fromserviceparameter-name>
+ <tonode-name>EndOfSwitch</tonode-name>
+ <toserviceparameter-name>Branch</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>EmptyNode</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>EndOfSwitch</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>EmptyNode</fromnode-name>
+ <fromserviceparameter-name>Branch</fromserviceparameter-name>
+ <tonode-name>EndOfSwitch</tonode-name>
+ <toserviceparameter-name>Branch</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>Default</fromnode-name>
+ <fromserviceparameter-name>Branch</fromserviceparameter-name>
+ <tonode-name>EndOfSwitch</tonode-name>
+ <toserviceparameter-name>Branch</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>InitLoopSwitch</fromnode-name>
+ <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
+ <tonode-name>EndOfInitLoopSwitch</tonode-name>
+ <toserviceparameter-name>DoLoop</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>InitLoopSwitch</fromnode-name>
+ <fromserviceparameter-name>Index</fromserviceparameter-name>
+ <tonode-name>Switch</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>InitLoopSwitch</fromnode-name>
+ <fromserviceparameter-name>Min</fromserviceparameter-name>
+ <tonode-name>EndOfInitLoopSwitch</tonode-name>
+ <toserviceparameter-name>Min</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>InitLoopSwitch</fromnode-name>
+ <fromserviceparameter-name>Max</fromserviceparameter-name>
+ <tonode-name>EndOfInitLoopSwitch</tonode-name>
+ <toserviceparameter-name>Max</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>EndOfInitLoopSwitch</fromnode-name>
+ <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
+ <tonode-name>InitLoopSwitch</tonode-name>
+ <toserviceparameter-name>DoLoop</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>Odd</fromserviceparameter-name>
+ <tonode-name>IsOdd</tonode-name>
+ <toserviceparameter-name>Gate</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>401</x>
+ <y>101</y> </coord>
+ <coord>
+<x>401</x>
+ <y>160</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>Odd</fromserviceparameter-name>
+ <tonode-name>PrintOdd</tonode-name>
+ <toserviceparameter-name>Gate</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>401</x>
+ <y>245</y> </coord>
+ <coord>
+<x>401</x>
+ <y>159</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>Even</fromserviceparameter-name>
+ <tonode-name>IsEven</tonode-name>
+ <toserviceparameter-name>Gate</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>392</x>
+ <y>533</y> </coord>
+ <coord>
+<x>392</x>
+ <y>182</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>Even</fromserviceparameter-name>
+ <tonode-name>PrintEven</tonode-name>
+ <toserviceparameter-name>Gate</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>392</x>
+ <y>403</y> </coord>
+ <coord>
+<x>392</x>
+ <y>181</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>IsOdd</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>382</x>
+ <y>78</y> </coord>
+ <coord>
+<x>382</x>
+ <y>199</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>IsEven</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>381</x>
+ <y>509</y> </coord>
+ <coord>
+<x>382</x>
+ <y>200</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>PrintOdd</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>PrintEven</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>381</x>
+ <y>361</y> </coord>
+ <coord>
+<x>382</x>
+ <y>200</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>Default</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>382</x>
+ <y>663</y> </coord>
+ <coord>
+<x>382</x>
+ <y>199</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>Branch</fromserviceparameter-name>
+ <tonode-name>PrintOdd</tonode-name>
+ <toserviceparameter-name>Branch</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>Branch</fromserviceparameter-name>
+ <tonode-name>PrintEven</tonode-name>
+ <toserviceparameter-name>Branch</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>369</x>
+ <y>381</y> </coord>
+ <coord>
+<x>369</x>
+ <y>219</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>Branch</fromserviceparameter-name>
+ <tonode-name>Default</tonode-name>
+ <toserviceparameter-name>Branch</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>370</x>
+ <y>683</y> </coord>
+ <coord>
+<x>370</x>
+ <y>220</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>default</fromserviceparameter-name>
+ <tonode-name>Default</tonode-name>
+ <toserviceparameter-name>Gate</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>363</x>
+ <y>707</y> </coord>
+ <coord>
+<x>362</x>
+ <y>239</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>Default</fromserviceparameter-name>
+ <tonode-name>EndOfSwitch</tonode-name>
+ <toserviceparameter-name>Default</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>EndOfSwitch</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>EndOfInitLoopSwitch</tonode-name>
+ <toserviceparameter-name>Index</toserviceparameter-name>
+ <coord-list/> </link> </link-list>
+ <data-list>
+<data>
+<fromnode-name>GraphSwitchCheckDefault11NOTValid</fromnode-name>
+ <fromserviceparameter-name>InitLoopSwitch__Index</fromserviceparameter-name>
+ <tonode-name>InitLoopSwitch</tonode-name>
+ <toserviceparameter-name>Index</toserviceparameter-name>
+ <data-value>
+<value-type>3</value-type>
+ <value>0</value> </data-value>
+ <coord-list/> </data>
+ <data>
+<fromnode-name>GraphSwitchCheckDefault11NOTValid</fromnode-name>
+ <fromserviceparameter-name>InitLoopSwitch__Min</fromserviceparameter-name>
+ <tonode-name>InitLoopSwitch</tonode-name>
+ <toserviceparameter-name>Min</toserviceparameter-name>
+ <data-value>
+<value-type>3</value-type>
+ <value>-5</value> </data-value>
+ <coord-list/> </data>
+ <data>
+<fromnode-name>GraphSwitchCheckDefault11NOTValid</fromnode-name>
+ <fromserviceparameter-name>InitLoopSwitch__Max</fromserviceparameter-name>
+ <tonode-name>InitLoopSwitch</tonode-name>
+ <toserviceparameter-name>Max</toserviceparameter-name>
+ <data-value>
+<value-type>3</value-type>
+ <value>10</value> </data-value>
+ <coord-list/> </data> </data-list> </dataflow></supergraph>
--- /dev/null
+
+# Generated python file of Graph GraphSwitchCheckDefault2NOTValid
+
+from SuperV import *
+
+# Graph creation of GraphSwitchCheckDefault2NOTValid
+def DefGraphSwitchCheckDefault2NOTValid() :
+ GraphSwitchCheckDefault2NOTValid = Graph( 'GraphSwitchCheckDefault2NOTValid' )
+ GraphSwitchCheckDefault2NOTValid.SetName( 'GraphSwitchCheckDefault2NOTValid' )
+ GraphSwitchCheckDefault2NOTValid.SetAuthor( 'JR' )
+ GraphSwitchCheckDefault2NOTValid.SetComment( '' )
+ GraphSwitchCheckDefault2NOTValid.Coords( 0 , 0 )
+
+ # Creation of Factory Nodes
+
+ # Creation of InLine Nodes
+ PyIsOdd = []
+ PyIsOdd.append( 'from time import * ' )
+ PyIsOdd.append( 'def IsOdd(a) : ' )
+ PyIsOdd.append( ' print a,"IsOdd (GraphSwitch)" ' )
+ PyIsOdd.append( ' sleep( 1 ) ' )
+ PyIsOdd.append( ' return a ' )
+ IsOdd = GraphSwitchCheckDefault2NOTValid.INode( 'IsOdd' , PyIsOdd )
+ IsOdd.SetName( 'IsOdd' )
+ IsOdd.SetAuthor( '' )
+ IsOdd.SetComment( 'Python function' )
+ IsOdd.Coords( 415 , 7 )
+ IIsOdda = IsOdd.InPort( 'a' , 'long' )
+ IIsOddGate = IsOdd.GetInPort( 'Gate' )
+ OIsOdda = IsOdd.OutPort( 'a' , 'long' )
+ OIsOddGate = IsOdd.GetOutPort( 'Gate' )
+
+ PyIsEven = []
+ PyIsEven.append( 'from time import * ' )
+ PyIsEven.append( 'def IsEven(a) : ' )
+ PyIsEven.append( ' print a,"IsEven (GraphSwitch)" ' )
+ PyIsEven.append( ' sleep( 1 ) ' )
+ PyIsEven.append( ' return a ' )
+ IsEven = GraphSwitchCheckDefault2NOTValid.INode( 'IsEven' , PyIsEven )
+ IsEven.SetName( 'IsEven' )
+ IsEven.SetAuthor( '' )
+ IsEven.SetComment( 'Compute Node' )
+ IsEven.Coords( 421 , 438 )
+ IIsEvena = IsEven.InPort( 'a' , 'long' )
+ IIsEvenGate = IsEven.GetInPort( 'Gate' )
+ OIsEvena = IsEven.OutPort( 'a' , 'long' )
+ OIsEvenGate = IsEven.GetOutPort( 'Gate' )
+
+ PyPrintOdd = []
+ PyPrintOdd.append( 'from time import * ' )
+ PyPrintOdd.append( 'def Print(a,Branch) : ' )
+ PyPrintOdd.append( ' print "Print ",a,Branch ' )
+ PyPrintOdd.append( ' sleep(1) ' )
+ PyPrintOdd.append( ' return Branch ' )
+ PrintOdd = GraphSwitchCheckDefault2NOTValid.INode( 'Print' , PyPrintOdd )
+ PrintOdd.SetName( 'PrintOdd' )
+ PrintOdd.SetAuthor( '' )
+ PrintOdd.SetComment( 'Compute Node' )
+ PrintOdd.Coords( 415 , 130 )
+ IPrintOdda = PrintOdd.InPort( 'a' , 'long' )
+ IPrintOddBranch = PrintOdd.InPort( 'Branch' , 'string' )
+ IPrintOddGate = PrintOdd.GetInPort( 'Gate' )
+ OPrintOddBranch = PrintOdd.OutPort( 'Branch' , 'string' )
+ OPrintOddGate = PrintOdd.GetOutPort( 'Gate' )
+
+ PyPrintEven = []
+ PyPrintEven.append( 'from time import * ' )
+ PyPrintEven.append( 'def Print_1(a,Branch) : ' )
+ PyPrintEven.append( ' print "Print ",a,Branch ' )
+ PyPrintEven.append( ' sleep(1) ' )
+ PyPrintEven.append( ' return Branch ' )
+ PrintEven = GraphSwitchCheckDefault2NOTValid.INode( 'Print_1' , PyPrintEven )
+ PrintEven.SetName( 'PrintEven' )
+ PrintEven.SetAuthor( '' )
+ PrintEven.SetComment( 'Compute Node' )
+ PrintEven.Coords( 423 , 289 )
+ IPrintEvena = PrintEven.InPort( 'a' , 'long' )
+ IPrintEvenBranch = PrintEven.InPort( 'Branch' , 'string' )
+ IPrintEvenGate = PrintEven.GetInPort( 'Gate' )
+ OPrintEvenBranch = PrintEven.OutPort( 'Branch' , 'string' )
+ OPrintEvenGate = PrintEven.GetOutPort( 'Gate' )
+
+ PyEmptyNode = []
+ PyEmptyNode.append( 'from time import * ' )
+ PyEmptyNode.append( 'def EmptyNode(a,Branch) : ' )
+ PyEmptyNode.append( ' sleep(1) ' )
+ PyEmptyNode.append( ' return a,Branch ' )
+ EmptyNode = GraphSwitchCheckDefault2NOTValid.INode( 'EmptyNode' , PyEmptyNode )
+ EmptyNode.SetName( 'EmptyNode' )
+ EmptyNode.SetAuthor( '' )
+ EmptyNode.SetComment( 'Compute Node' )
+ EmptyNode.Coords( 652 , 110 )
+ IEmptyNodea = EmptyNode.InPort( 'a' , 'long' )
+ IEmptyNodeBranch = EmptyNode.InPort( 'Branch' , 'string' )
+ IEmptyNodeGate = EmptyNode.GetInPort( 'Gate' )
+ OEmptyNodea = EmptyNode.OutPort( 'a' , 'long' )
+ OEmptyNodeBranch = EmptyNode.OutPort( 'Branch' , 'string' )
+ OEmptyNodeGate = EmptyNode.GetOutPort( 'Gate' )
+
+ PyDefault = []
+ PyDefault.append( 'from time import * ' )
+ PyDefault.append( 'def Default(a,Branch) : ' )
+ PyDefault.append( ' sleep(1) ' )
+ PyDefault.append( ' return a,Branch ' )
+ Default = GraphSwitchCheckDefault2NOTValid.INode( 'Default' , PyDefault )
+ Default.SetName( 'Default' )
+ Default.SetAuthor( '' )
+ Default.SetComment( 'Compute Node' )
+ Default.Coords( 421 , 592 )
+ IDefaulta = Default.InPort( 'a' , 'long' )
+ IDefaultBranch = Default.InPort( 'Branch' , 'string' )
+ IDefaultGate = Default.GetInPort( 'Gate' )
+ ODefaulta = Default.OutPort( 'a' , 'long' )
+ ODefaultBranch = Default.OutPort( 'Branch' , 'string' )
+ ODefaultGate = Default.GetOutPort( 'Gate' )
+
+ PyPuta = []
+ PyPuta.append( 'from time import * ' )
+ PyPuta.append( 'def Puta(a) : ' )
+ PyPuta.append( ' sleep(1) ' )
+ PyPuta.append( ' return a ' )
+ Puta = GraphSwitchCheckDefault2NOTValid.INode( 'Puta' , PyPuta )
+ Puta.SetName( 'Puta' )
+ Puta.SetAuthor( '' )
+ Puta.SetComment( 'Compute Node' )
+ Puta.Coords( 665 , 486 )
+ IPutaa = Puta.InPort( 'a' , 'long' )
+ IPutaGate = Puta.GetInPort( 'Gate' )
+ OPutaa = Puta.OutPort( 'a' , 'long' )
+ OPutaGate = Puta.GetOutPort( 'Gate' )
+
+ PyPutBranch = []
+ PyPutBranch.append( 'from time import * ' )
+ PyPutBranch.append( 'def PutBranch(Branch) : ' )
+ PyPutBranch.append( ' sleep(1) ' )
+ PyPutBranch.append( ' return Branch ' )
+ PutBranch = GraphSwitchCheckDefault2NOTValid.INode( 'PutBranch' , PyPutBranch )
+ PutBranch.SetName( 'PutBranch' )
+ PutBranch.SetAuthor( '' )
+ PutBranch.SetComment( 'Compute Node' )
+ PutBranch.Coords( 662 , 613 )
+ IPutBranchBranch = PutBranch.InPort( 'Branch' , 'string' )
+ IPutBranchGate = PutBranch.GetInPort( 'Gate' )
+ OPutBranchBranch = PutBranch.OutPort( 'Branch' , 'string' )
+ OPutBranchGate = PutBranch.GetOutPort( 'Gate' )
+
+ # Creation of Loop Nodes
+ PyInitLoopSwitch = []
+ PyInitLoopSwitch.append( 'def InitLoop(Index,Min,Max) : ' )
+ PyInitLoopSwitch.append( ' Index = Max ' )
+ PyInitLoopSwitch.append( ' return Index,Min,Max ' )
+ PyMoreInitLoopSwitch = []
+ PyMoreInitLoopSwitch.append( 'from time import * ' )
+ PyMoreInitLoopSwitch.append( 'def MoreLoop(Index,Min,Max) : ' )
+ PyMoreInitLoopSwitch.append( ' sleep(1) ' )
+ PyMoreInitLoopSwitch.append( ' if Index >= Min : ' )
+ PyMoreInitLoopSwitch.append( ' DoLoop = 1 ' )
+ PyMoreInitLoopSwitch.append( ' else : ' )
+ PyMoreInitLoopSwitch.append( ' DoLoop = 0 ' )
+ PyMoreInitLoopSwitch.append( ' return DoLoop,Index,Min,Max ' )
+ PyNextInitLoopSwitch = []
+ PyNextInitLoopSwitch.append( 'def NextLoop(Index,Min,Max) : ' )
+ PyNextInitLoopSwitch.append( ' Index = Index - 1 ' )
+ PyNextInitLoopSwitch.append( ' return Index,Min,Max ' )
+ InitLoopSwitch,EndOfInitLoopSwitch = GraphSwitchCheckDefault2NOTValid.LNode( 'InitLoop' , PyInitLoopSwitch , 'MoreLoop' , PyMoreInitLoopSwitch , 'NextLoop' , PyNextInitLoopSwitch )
+ EndOfInitLoopSwitch.SetName( 'EndOfInitLoopSwitch' )
+ EndOfInitLoopSwitch.SetAuthor( '' )
+ EndOfInitLoopSwitch.SetComment( 'Compute Node' )
+ EndOfInitLoopSwitch.Coords( 1074 , 194 )
+ PyEndOfInitLoopSwitch = []
+ PyEndOfInitLoopSwitch.append( 'from time import * ' )
+ PyEndOfInitLoopSwitch.append( 'def EndOfInitLoopSwitch(DoLoop,Index,Min,Max) : ' )
+ PyEndOfInitLoopSwitch.append( ' sleep(1) ' )
+ PyEndOfInitLoopSwitch.append( ' return DoLoop,Index,Min,Max ' )
+ EndOfInitLoopSwitch.SetPyFunction( 'EndOfInitLoopSwitch' , PyEndOfInitLoopSwitch )
+ IInitLoopSwitchDoLoop = InitLoopSwitch.GetInPort( 'DoLoop' )
+ IInitLoopSwitchIndex = InitLoopSwitch.InPort( 'Index' , 'long' )
+ IInitLoopSwitchMin = InitLoopSwitch.InPort( 'Min' , 'long' )
+ IInitLoopSwitchMax = InitLoopSwitch.InPort( 'Max' , 'long' )
+ IInitLoopSwitchGate = InitLoopSwitch.GetInPort( 'Gate' )
+ OInitLoopSwitchDoLoop = InitLoopSwitch.GetOutPort( 'DoLoop' )
+ OInitLoopSwitchIndex = InitLoopSwitch.GetOutPort( 'Index' )
+ OInitLoopSwitchMin = InitLoopSwitch.GetOutPort( 'Min' )
+ OInitLoopSwitchMax = InitLoopSwitch.GetOutPort( 'Max' )
+ IEndOfInitLoopSwitchDoLoop = EndOfInitLoopSwitch.GetInPort( 'DoLoop' )
+ IEndOfInitLoopSwitchIndex = EndOfInitLoopSwitch.GetInPort( 'Index' )
+ IEndOfInitLoopSwitchMin = EndOfInitLoopSwitch.GetInPort( 'Min' )
+ IEndOfInitLoopSwitchMax = EndOfInitLoopSwitch.GetInPort( 'Max' )
+ IEndOfInitLoopSwitchGate = EndOfInitLoopSwitch.GetInPort( 'Gate' )
+ OEndOfInitLoopSwitchDoLoop = EndOfInitLoopSwitch.GetOutPort( 'DoLoop' )
+ OEndOfInitLoopSwitchIndex = EndOfInitLoopSwitch.GetOutPort( 'Index' )
+ OEndOfInitLoopSwitchMin = EndOfInitLoopSwitch.GetOutPort( 'Min' )
+ OEndOfInitLoopSwitchMax = EndOfInitLoopSwitch.GetOutPort( 'Max' )
+ OEndOfInitLoopSwitchGate = EndOfInitLoopSwitch.GetOutPort( 'Gate' )
+ InitLoopSwitch.SetName( 'InitLoopSwitch' )
+ InitLoopSwitch.SetAuthor( '' )
+ InitLoopSwitch.SetComment( 'Compute Node' )
+ InitLoopSwitch.Coords( 10 , 129 )
+
+ # Creation of Switch Nodes
+ PySwitch = []
+ PySwitch.append( 'from time import * ' )
+ PySwitch.append( 'def Switch(a) : ' )
+ PySwitch.append( ' sleep(1) ' )
+ PySwitch.append( ' Branch = "Negative or null" ' )
+ PySwitch.append( ' if a <= 0 : ' )
+ PySwitch.append( ' return 0,0,a,Branch,1 ' )
+ PySwitch.append( ' if ( a & 1 ) == 0 : ' )
+ PySwitch.append( ' Branch = "Even" ' )
+ PySwitch.append( ' else : ' )
+ PySwitch.append( ' Branch = "Odd" ' )
+ PySwitch.append( ' return a & 1,1-(a&1),a,Branch,0 ' )
+ Switch,EndOfSwitch = GraphSwitchCheckDefault2NOTValid.SNode( 'Switch' , PySwitch )
+ EndOfSwitch.SetName( 'EndOfSwitch' )
+ EndOfSwitch.SetAuthor( '' )
+ EndOfSwitch.SetComment( 'Compute Node' )
+ EndOfSwitch.Coords( 882 , 194 )
+ PyEndOfSwitch = []
+ PyEndOfSwitch.append( 'from time import * ' )
+ PyEndOfSwitch.append( 'def EndOfSwitch(a,Branch) : ' )
+ PyEndOfSwitch.append( ' sleep(1) ' )
+ PyEndOfSwitch.append( ' return a ' )
+ EndOfSwitch.SetPyFunction( 'EndOfSwitch' , PyEndOfSwitch )
+ IEndOfSwitcha = EndOfSwitch.InPort( 'a' , 'long' )
+ IEndOfSwitchBranch = EndOfSwitch.InPort( 'Branch' , 'string' )
+ IEndOfSwitchDefault = EndOfSwitch.GetInPort( 'Default' )
+ OEndOfSwitcha = EndOfSwitch.OutPort( 'a' , 'long' )
+ OEndOfSwitchGate = EndOfSwitch.GetOutPort( 'Gate' )
+ Switch.SetName( 'Switch' )
+ Switch.SetAuthor( '' )
+ Switch.SetComment( 'Compute Node' )
+ Switch.Coords( 190 , 129 )
+ ISwitcha = Switch.InPort( 'a' , 'long' )
+ ISwitchGate = Switch.GetInPort( 'Gate' )
+ OSwitchOdd = Switch.OutPort( 'Odd' , 'long' )
+ OSwitchEven = Switch.OutPort( 'Even' , 'int' )
+ OSwitcha = Switch.OutPort( 'a' , 'int' )
+ OSwitchBranch = Switch.OutPort( 'Branch' , 'string' )
+ OSwitchdefault = Switch.OutPort( 'default' , 'boolean' )
+ OSwitchDefault = Switch.GetOutPort( 'Default' )
+
+ # Creation of Links
+ LIsOddaEmptyNodea = GraphSwitchCheckDefault2NOTValid.Link( OIsOdda , IEmptyNodea )
+ LIsOddaEmptyNodea.AddCoord( 1 , 646 , 78 )
+
+ LIsEvenaEndOfSwitcha = GraphSwitchCheckDefault2NOTValid.Link( OIsEvena , IEndOfSwitcha )
+
+ LPrintOddBranchEmptyNodeBranch = GraphSwitchCheckDefault2NOTValid.Link( OPrintOddBranch , IEmptyNodeBranch )
+
+ LPrintEvenBranchEndOfSwitchBranch = GraphSwitchCheckDefault2NOTValid.Link( OPrintEvenBranch , IEndOfSwitchBranch )
+
+ LEmptyNodeaEndOfSwitcha = GraphSwitchCheckDefault2NOTValid.Link( OEmptyNodea , IEndOfSwitcha )
+
+ LEmptyNodeBranchEndOfSwitchBranch = GraphSwitchCheckDefault2NOTValid.Link( OEmptyNodeBranch , IEndOfSwitchBranch )
+
+ LDefaultaEndOfSwitcha = GraphSwitchCheckDefault2NOTValid.Link( ODefaulta , IEndOfSwitcha )
+
+ LDefaultaPutaa = GraphSwitchCheckDefault2NOTValid.Link( ODefaulta , IPutaa )
+
+ LDefaultBranchEndOfSwitchBranch = GraphSwitchCheckDefault2NOTValid.Link( ODefaultBranch , IEndOfSwitchBranch )
+
+ LDefaultBranchPutBranchBranch = GraphSwitchCheckDefault2NOTValid.Link( ODefaultBranch , IPutBranchBranch )
+
+ LInitLoopSwitchIndexSwitcha = GraphSwitchCheckDefault2NOTValid.Link( OInitLoopSwitchIndex , ISwitcha )
+
+ LInitLoopSwitchMinEndOfInitLoopSwitchMin = GraphSwitchCheckDefault2NOTValid.Link( OInitLoopSwitchMin , IEndOfInitLoopSwitchMin )
+
+ LInitLoopSwitchMaxEndOfInitLoopSwitchMax = GraphSwitchCheckDefault2NOTValid.Link( OInitLoopSwitchMax , IEndOfInitLoopSwitchMax )
+
+ LSwitchOddIsOddGate = GraphSwitchCheckDefault2NOTValid.Link( OSwitchOdd , IIsOddGate )
+ LSwitchOddIsOddGate.AddCoord( 1 , 401 , 101 )
+ LSwitchOddIsOddGate.AddCoord( 2 , 401 , 160 )
+
+ LSwitchOddPrintOddGate = GraphSwitchCheckDefault2NOTValid.Link( OSwitchOdd , IPrintOddGate )
+ LSwitchOddPrintOddGate.AddCoord( 1 , 401 , 245 )
+ LSwitchOddPrintOddGate.AddCoord( 2 , 401 , 159 )
+
+ LSwitchEvenIsEvenGate = GraphSwitchCheckDefault2NOTValid.Link( OSwitchEven , IIsEvenGate )
+ LSwitchEvenIsEvenGate.AddCoord( 1 , 392 , 533 )
+ LSwitchEvenIsEvenGate.AddCoord( 2 , 392 , 182 )
+
+ LSwitchEvenPrintEvenGate = GraphSwitchCheckDefault2NOTValid.Link( OSwitchEven , IPrintEvenGate )
+ LSwitchEvenPrintEvenGate.AddCoord( 1 , 392 , 403 )
+ LSwitchEvenPrintEvenGate.AddCoord( 2 , 392 , 181 )
+
+ LSwitchaIsOdda = GraphSwitchCheckDefault2NOTValid.Link( OSwitcha , IIsOdda )
+ LSwitchaIsOdda.AddCoord( 1 , 382 , 78 )
+ LSwitchaIsOdda.AddCoord( 2 , 382 , 199 )
+
+ LSwitchaIsEvena = GraphSwitchCheckDefault2NOTValid.Link( OSwitcha , IIsEvena )
+ LSwitchaIsEvena.AddCoord( 1 , 381 , 509 )
+ LSwitchaIsEvena.AddCoord( 2 , 382 , 200 )
+
+ LSwitchaPrintOdda = GraphSwitchCheckDefault2NOTValid.Link( OSwitcha , IPrintOdda )
+
+ LSwitchaPrintEvena = GraphSwitchCheckDefault2NOTValid.Link( OSwitcha , IPrintEvena )
+ LSwitchaPrintEvena.AddCoord( 1 , 381 , 361 )
+ LSwitchaPrintEvena.AddCoord( 2 , 382 , 200 )
+
+ LSwitchaDefaulta = GraphSwitchCheckDefault2NOTValid.Link( OSwitcha , IDefaulta )
+ LSwitchaDefaulta.AddCoord( 1 , 382 , 663 )
+ LSwitchaDefaulta.AddCoord( 2 , 382 , 199 )
+
+ LSwitchBranchPrintOddBranch = GraphSwitchCheckDefault2NOTValid.Link( OSwitchBranch , IPrintOddBranch )
+
+ LSwitchBranchPrintEvenBranch = GraphSwitchCheckDefault2NOTValid.Link( OSwitchBranch , IPrintEvenBranch )
+ LSwitchBranchPrintEvenBranch.AddCoord( 1 , 369 , 381 )
+ LSwitchBranchPrintEvenBranch.AddCoord( 2 , 369 , 219 )
+
+ LSwitchBranchDefaultBranch = GraphSwitchCheckDefault2NOTValid.Link( OSwitchBranch , IDefaultBranch )
+ LSwitchBranchDefaultBranch.AddCoord( 1 , 370 , 683 )
+ LSwitchBranchDefaultBranch.AddCoord( 2 , 370 , 220 )
+
+ LSwitchdefaultDefaultGate = GraphSwitchCheckDefault2NOTValid.Link( OSwitchdefault , IDefaultGate )
+ LSwitchdefaultDefaultGate.AddCoord( 1 , 363 , 707 )
+ LSwitchdefaultDefaultGate.AddCoord( 2 , 362 , 239 )
+
+ LSwitchDefaultEndOfSwitchDefault = GraphSwitchCheckDefault2NOTValid.Link( OSwitchDefault , IEndOfSwitchDefault )
+
+ LEndOfSwitchaEndOfInitLoopSwitchIndex = GraphSwitchCheckDefault2NOTValid.Link( OEndOfSwitcha , IEndOfInitLoopSwitchIndex )
+
+ LPutaaEndOfSwitcha = GraphSwitchCheckDefault2NOTValid.Link( OPutaa , IEndOfSwitcha )
+
+ LPutBranchBranchEndOfSwitchBranch = GraphSwitchCheckDefault2NOTValid.Link( OPutBranchBranch , IEndOfSwitchBranch )
+
+ # Input datas
+ IInitLoopSwitchIndex.Input( 0 )
+ IInitLoopSwitchMin.Input( -5 )
+ IInitLoopSwitchMax.Input( 10 )
+
+ # Output Ports of the graph
+ #OEndOfInitLoopSwitchIndex = EndOfInitLoopSwitch.GetOutPort( 'Index' )
+ #OEndOfInitLoopSwitchMin = EndOfInitLoopSwitch.GetOutPort( 'Min' )
+ #OEndOfInitLoopSwitchMax = EndOfInitLoopSwitch.GetOutPort( 'Max' )
+ return GraphSwitchCheckDefault2NOTValid
+
+
+GraphSwitchCheckDefault2NOTValid = DefGraphSwitchCheckDefault2NOTValid()
--- /dev/null
+<!DOCTYPE SuperGraph>
+<supergraph>
+<dataflow>
+<info-list>
+<node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>GraphSwitchCheckDefault2NOTValid</node-name>
+ <kind>1</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>GraphSwitchCheckDefault2NOTValid</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>InitLoopSwitch__Index</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>InitLoopSwitch__Min</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>InitLoopSwitch__Max</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>EndOfInitLoopSwitch__Index</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>EndOfInitLoopSwitch__Min</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>EndOfInitLoopSwitch__Max</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list/>
+ <creation-date>13/1/2005 - 12:21:43</creation-date>
+ <lastmodification-date>19/1/2005 - 12:15:57</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>JR</author>
+ <container>?</container>
+ <comment>?</comment>
+ <x-position>0</x-position>
+ <y-position>0</y-position> </node> </info-list>
+ <node-list>
+<node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>IsOdd</node-name>
+ <kind>3</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>IsOdd</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>IsOdd</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def IsOdd(a) : ]]></PyFunc>
+ <PyFunc><![CDATA[ print a,"IsOdd (GraphSwitch)" ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep( 1 ) ]]></PyFunc>
+ <PyFunc><![CDATA[ return a ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 12:15:57</creation-date>
+ <lastmodification-date>19/1/2005 - 12:15:57</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Python function</comment>
+ <x-position>415</x-position>
+ <y-position>7</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>IsEven</node-name>
+ <kind>3</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>IsEven</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>IsEven</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def IsEven(a) : ]]></PyFunc>
+ <PyFunc><![CDATA[ print a,"IsEven (GraphSwitch)" ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep( 1 ) ]]></PyFunc>
+ <PyFunc><![CDATA[ return a ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 12:15:57</creation-date>
+ <lastmodification-date>19/1/2005 - 12:15:57</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>421</x-position>
+ <y-position>438</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>PrintOdd</node-name>
+ <kind>3</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>PrintOdd</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>string</inParameter-type>
+ <inParameter-name>Branch</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>string</outParameter-type>
+ <outParameter-name>Branch</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>Print</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def Print(a,Branch) : ]]></PyFunc>
+ <PyFunc><![CDATA[ print "Print ",a,Branch ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
+ <PyFunc><![CDATA[ return Branch ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 12:15:57</creation-date>
+ <lastmodification-date>19/1/2005 - 12:15:57</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>415</x-position>
+ <y-position>130</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>PrintEven</node-name>
+ <kind>3</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>PrintEven</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>string</inParameter-type>
+ <inParameter-name>Branch</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>string</outParameter-type>
+ <outParameter-name>Branch</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>Print_1</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def Print_1(a,Branch) : ]]></PyFunc>
+ <PyFunc><![CDATA[ print "Print ",a,Branch ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
+ <PyFunc><![CDATA[ return Branch ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 12:15:57</creation-date>
+ <lastmodification-date>19/1/2005 - 12:15:57</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>423</x-position>
+ <y-position>289</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>EmptyNode</node-name>
+ <kind>3</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>EmptyNode</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>string</inParameter-type>
+ <inParameter-name>Branch</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>string</outParameter-type>
+ <outParameter-name>Branch</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>EmptyNode</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def EmptyNode(a,Branch) : ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
+ <PyFunc><![CDATA[ return a,Branch ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 12:15:57</creation-date>
+ <lastmodification-date>19/1/2005 - 12:15:57</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>652</x-position>
+ <y-position>110</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>Default</node-name>
+ <kind>3</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>Default</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>string</inParameter-type>
+ <inParameter-name>Branch</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>string</outParameter-type>
+ <outParameter-name>Branch</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>Default</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def Default(a,Branch) : ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
+ <PyFunc><![CDATA[ return a,Branch ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 12:15:57</creation-date>
+ <lastmodification-date>19/1/2005 - 12:15:57</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>421</x-position>
+ <y-position>592</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>InitLoopSwitch</node-name>
+ <kind>4</kind>
+ <coupled-node>EndOfInitLoopSwitch</coupled-node>
+ <service>
+<service-name>InitLoopSwitch</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Index</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Min</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Max</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Index</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Min</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Max</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>InitLoop</FuncName>
+ <PyFunc><![CDATA[def InitLoop(Index,Min,Max) : ]]></PyFunc>
+ <PyFunc><![CDATA[ Index = Max ]]></PyFunc>
+ <PyFunc><![CDATA[ return Index,Min,Max ]]></PyFunc> </PyFunction>
+ <PyFunction>
+<FuncName>MoreLoop</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def MoreLoop(Index,Min,Max) : ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
+ <PyFunc><![CDATA[ if Index >= Min : ]]></PyFunc>
+ <PyFunc><![CDATA[ DoLoop = 1 ]]></PyFunc>
+ <PyFunc><![CDATA[ else : ]]></PyFunc>
+ <PyFunc><![CDATA[ DoLoop = 0 ]]></PyFunc>
+ <PyFunc><![CDATA[ return DoLoop,Index,Min,Max ]]></PyFunc> </PyFunction>
+ <PyFunction>
+<FuncName>NextLoop</FuncName>
+ <PyFunc><![CDATA[def NextLoop(Index,Min,Max) : ]]></PyFunc>
+ <PyFunc><![CDATA[ Index = Index - 1 ]]></PyFunc>
+ <PyFunc><![CDATA[ return Index,Min,Max ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 12:15:57</creation-date>
+ <lastmodification-date>19/1/2005 - 12:15:57</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>10</x-position>
+ <y-position>129</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>EndOfInitLoopSwitch</node-name>
+ <kind>5</kind>
+ <coupled-node>InitLoopSwitch</coupled-node>
+ <service>
+<service-name>EndOfInitLoopSwitch</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Index</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Min</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Max</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Index</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Min</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Max</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>EndOfInitLoopSwitch</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def EndOfInitLoopSwitch(DoLoop,Index,Min,Max) : ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
+ <PyFunc><![CDATA[ return DoLoop,Index,Min,Max ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 12:15:57</creation-date>
+ <lastmodification-date>19/1/2005 - 12:15:57</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>1074</x-position>
+ <y-position>194</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>Switch</node-name>
+ <kind>6</kind>
+ <coupled-node>EndOfSwitch</coupled-node>
+ <service>
+<service-name>Switch</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Odd</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>int</outParameter-type>
+ <outParameter-name>Even</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>int</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>string</outParameter-type>
+ <outParameter-name>Branch</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>boolean</outParameter-type>
+ <outParameter-name>default</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>Switch</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def Switch(a) : ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
+ <PyFunc><![CDATA[ Branch = "Negative or null" ]]></PyFunc>
+ <PyFunc><![CDATA[ if a <= 0 : ]]></PyFunc>
+ <PyFunc><![CDATA[ return 0,0,a,Branch,1 ]]></PyFunc>
+ <PyFunc><![CDATA[ if ( a & 1 ) == 0 : ]]></PyFunc>
+ <PyFunc><![CDATA[ Branch = "Even" ]]></PyFunc>
+ <PyFunc><![CDATA[ else : ]]></PyFunc>
+ <PyFunc><![CDATA[ Branch = "Odd" ]]></PyFunc>
+ <PyFunc><![CDATA[ return a & 1,1-(a&1),a,Branch,0 ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 12:15:57</creation-date>
+ <lastmodification-date>19/1/2005 - 12:15:57</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>190</x-position>
+ <y-position>129</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>EndOfSwitch</node-name>
+ <kind>7</kind>
+ <coupled-node>Switch</coupled-node>
+ <service>
+<service-name>EndOfSwitch</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>string</inParameter-type>
+ <inParameter-name>Branch</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>EndOfSwitch</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def EndOfSwitch(a,Branch) : ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
+ <PyFunc><![CDATA[ return a ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 12:15:57</creation-date>
+ <lastmodification-date>19/1/2005 - 12:15:57</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>882</x-position>
+ <y-position>194</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>Puta</node-name>
+ <kind>3</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>Puta</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>Puta</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def Puta(a) : ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
+ <PyFunc><![CDATA[ return a ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 12:15:57</creation-date>
+ <lastmodification-date>19/1/2005 - 12:15:57</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>665</x-position>
+ <y-position>486</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>PutBranch</node-name>
+ <kind>3</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>PutBranch</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>string</inParameter-type>
+ <inParameter-name>Branch</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>string</outParameter-type>
+ <outParameter-name>Branch</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>PutBranch</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def PutBranch(Branch) : ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
+ <PyFunc><![CDATA[ return Branch ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 12:15:57</creation-date>
+ <lastmodification-date>19/1/2005 - 12:15:57</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>662</x-position>
+ <y-position>613</y-position> </node> </node-list>
+ <link-list>
+<link>
+<fromnode-name>IsOdd</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>EmptyNode</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>646</x>
+ <y>78</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>IsEven</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>EndOfSwitch</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>PrintOdd</fromnode-name>
+ <fromserviceparameter-name>Branch</fromserviceparameter-name>
+ <tonode-name>EmptyNode</tonode-name>
+ <toserviceparameter-name>Branch</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>PrintEven</fromnode-name>
+ <fromserviceparameter-name>Branch</fromserviceparameter-name>
+ <tonode-name>EndOfSwitch</tonode-name>
+ <toserviceparameter-name>Branch</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>EmptyNode</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>EndOfSwitch</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>EmptyNode</fromnode-name>
+ <fromserviceparameter-name>Branch</fromserviceparameter-name>
+ <tonode-name>EndOfSwitch</tonode-name>
+ <toserviceparameter-name>Branch</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>Default</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>EndOfSwitch</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>Default</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>Puta</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>Default</fromnode-name>
+ <fromserviceparameter-name>Branch</fromserviceparameter-name>
+ <tonode-name>EndOfSwitch</tonode-name>
+ <toserviceparameter-name>Branch</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>Default</fromnode-name>
+ <fromserviceparameter-name>Branch</fromserviceparameter-name>
+ <tonode-name>PutBranch</tonode-name>
+ <toserviceparameter-name>Branch</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>InitLoopSwitch</fromnode-name>
+ <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
+ <tonode-name>EndOfInitLoopSwitch</tonode-name>
+ <toserviceparameter-name>DoLoop</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>InitLoopSwitch</fromnode-name>
+ <fromserviceparameter-name>Index</fromserviceparameter-name>
+ <tonode-name>Switch</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>InitLoopSwitch</fromnode-name>
+ <fromserviceparameter-name>Min</fromserviceparameter-name>
+ <tonode-name>EndOfInitLoopSwitch</tonode-name>
+ <toserviceparameter-name>Min</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>InitLoopSwitch</fromnode-name>
+ <fromserviceparameter-name>Max</fromserviceparameter-name>
+ <tonode-name>EndOfInitLoopSwitch</tonode-name>
+ <toserviceparameter-name>Max</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>EndOfInitLoopSwitch</fromnode-name>
+ <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
+ <tonode-name>InitLoopSwitch</tonode-name>
+ <toserviceparameter-name>DoLoop</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>Odd</fromserviceparameter-name>
+ <tonode-name>IsOdd</tonode-name>
+ <toserviceparameter-name>Gate</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>401</x>
+ <y>101</y> </coord>
+ <coord>
+<x>401</x>
+ <y>160</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>Odd</fromserviceparameter-name>
+ <tonode-name>PrintOdd</tonode-name>
+ <toserviceparameter-name>Gate</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>401</x>
+ <y>245</y> </coord>
+ <coord>
+<x>401</x>
+ <y>159</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>Even</fromserviceparameter-name>
+ <tonode-name>IsEven</tonode-name>
+ <toserviceparameter-name>Gate</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>392</x>
+ <y>533</y> </coord>
+ <coord>
+<x>392</x>
+ <y>182</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>Even</fromserviceparameter-name>
+ <tonode-name>PrintEven</tonode-name>
+ <toserviceparameter-name>Gate</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>392</x>
+ <y>403</y> </coord>
+ <coord>
+<x>392</x>
+ <y>181</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>IsOdd</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>382</x>
+ <y>78</y> </coord>
+ <coord>
+<x>382</x>
+ <y>199</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>IsEven</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>381</x>
+ <y>509</y> </coord>
+ <coord>
+<x>382</x>
+ <y>200</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>PrintOdd</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>PrintEven</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>381</x>
+ <y>361</y> </coord>
+ <coord>
+<x>382</x>
+ <y>200</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>Default</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>382</x>
+ <y>663</y> </coord>
+ <coord>
+<x>382</x>
+ <y>199</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>Branch</fromserviceparameter-name>
+ <tonode-name>PrintOdd</tonode-name>
+ <toserviceparameter-name>Branch</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>Branch</fromserviceparameter-name>
+ <tonode-name>PrintEven</tonode-name>
+ <toserviceparameter-name>Branch</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>369</x>
+ <y>381</y> </coord>
+ <coord>
+<x>369</x>
+ <y>219</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>Branch</fromserviceparameter-name>
+ <tonode-name>Default</tonode-name>
+ <toserviceparameter-name>Branch</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>370</x>
+ <y>683</y> </coord>
+ <coord>
+<x>370</x>
+ <y>220</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>default</fromserviceparameter-name>
+ <tonode-name>Default</tonode-name>
+ <toserviceparameter-name>Gate</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>363</x>
+ <y>707</y> </coord>
+ <coord>
+<x>362</x>
+ <y>239</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>Default</fromserviceparameter-name>
+ <tonode-name>EndOfSwitch</tonode-name>
+ <toserviceparameter-name>Default</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>EndOfSwitch</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>EndOfInitLoopSwitch</tonode-name>
+ <toserviceparameter-name>Index</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>Puta</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>EndOfSwitch</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>PutBranch</fromnode-name>
+ <fromserviceparameter-name>Branch</fromserviceparameter-name>
+ <tonode-name>EndOfSwitch</tonode-name>
+ <toserviceparameter-name>Branch</toserviceparameter-name>
+ <coord-list/> </link> </link-list>
+ <data-list>
+<data>
+<fromnode-name>GraphSwitchCheckDefault2NOTValid</fromnode-name>
+ <fromserviceparameter-name>InitLoopSwitch__Index</fromserviceparameter-name>
+ <tonode-name>InitLoopSwitch</tonode-name>
+ <toserviceparameter-name>Index</toserviceparameter-name>
+ <data-value>
+<value-type>3</value-type>
+ <value>0</value> </data-value>
+ <coord-list/> </data>
+ <data>
+<fromnode-name>GraphSwitchCheckDefault2NOTValid</fromnode-name>
+ <fromserviceparameter-name>InitLoopSwitch__Min</fromserviceparameter-name>
+ <tonode-name>InitLoopSwitch</tonode-name>
+ <toserviceparameter-name>Min</toserviceparameter-name>
+ <data-value>
+<value-type>3</value-type>
+ <value>-5</value> </data-value>
+ <coord-list/> </data>
+ <data>
+<fromnode-name>GraphSwitchCheckDefault2NOTValid</fromnode-name>
+ <fromserviceparameter-name>InitLoopSwitch__Max</fromserviceparameter-name>
+ <tonode-name>InitLoopSwitch</tonode-name>
+ <toserviceparameter-name>Max</toserviceparameter-name>
+ <data-value>
+<value-type>3</value-type>
+ <value>10</value> </data-value>
+ <coord-list/> </data> </data-list> </dataflow></supergraph>
--- /dev/null
+
+# Generated python file of Graph GraphSwitchCheckDefault2NOTValid1
+
+from SuperV import *
+
+# Graph creation of GraphSwitchCheckDefault2NOTValid1
+def DefGraphSwitchCheckDefault2NOTValid1() :
+ GraphSwitchCheckDefault2NOTValid1 = Graph( 'GraphSwitchCheckDefault2NOTValid1' )
+ GraphSwitchCheckDefault2NOTValid1.SetName( 'GraphSwitchCheckDefault2NOTValid1' )
+ GraphSwitchCheckDefault2NOTValid1.SetAuthor( 'JR' )
+ GraphSwitchCheckDefault2NOTValid1.SetComment( '' )
+ GraphSwitchCheckDefault2NOTValid1.Coords( 0 , 0 )
+
+ # Creation of Factory Nodes
+
+ # Creation of InLine Nodes
+ PyIsOdd = []
+ PyIsOdd.append( 'from time import * ' )
+ PyIsOdd.append( 'def IsOdd(a) : ' )
+ PyIsOdd.append( ' print a,"IsOdd (GraphSwitch)" ' )
+ PyIsOdd.append( ' sleep( 1 ) ' )
+ PyIsOdd.append( ' return a ' )
+ IsOdd = GraphSwitchCheckDefault2NOTValid1.INode( 'IsOdd' , PyIsOdd )
+ IsOdd.SetName( 'IsOdd' )
+ IsOdd.SetAuthor( '' )
+ IsOdd.SetComment( 'Python function' )
+ IsOdd.Coords( 415 , 7 )
+ IIsOdda = IsOdd.InPort( 'a' , 'long' )
+ IIsOddGate = IsOdd.GetInPort( 'Gate' )
+ OIsOdda = IsOdd.OutPort( 'a' , 'long' )
+ OIsOddGate = IsOdd.GetOutPort( 'Gate' )
+
+ PyIsEven = []
+ PyIsEven.append( 'from time import * ' )
+ PyIsEven.append( 'def IsEven(a) : ' )
+ PyIsEven.append( ' print a,"IsEven (GraphSwitch)" ' )
+ PyIsEven.append( ' sleep( 1 ) ' )
+ PyIsEven.append( ' return a ' )
+ IsEven = GraphSwitchCheckDefault2NOTValid1.INode( 'IsEven' , PyIsEven )
+ IsEven.SetName( 'IsEven' )
+ IsEven.SetAuthor( '' )
+ IsEven.SetComment( 'Compute Node' )
+ IsEven.Coords( 421 , 438 )
+ IIsEvena = IsEven.InPort( 'a' , 'long' )
+ IIsEvenGate = IsEven.GetInPort( 'Gate' )
+ OIsEvena = IsEven.OutPort( 'a' , 'long' )
+ OIsEvenGate = IsEven.GetOutPort( 'Gate' )
+
+ PyPrintOdd = []
+ PyPrintOdd.append( 'from time import * ' )
+ PyPrintOdd.append( 'def Print(a,Branch) : ' )
+ PyPrintOdd.append( ' print "Print ",a,Branch ' )
+ PyPrintOdd.append( ' sleep(1) ' )
+ PyPrintOdd.append( ' return Branch ' )
+ PrintOdd = GraphSwitchCheckDefault2NOTValid1.INode( 'Print' , PyPrintOdd )
+ PrintOdd.SetName( 'PrintOdd' )
+ PrintOdd.SetAuthor( '' )
+ PrintOdd.SetComment( 'Compute Node' )
+ PrintOdd.Coords( 415 , 130 )
+ IPrintOdda = PrintOdd.InPort( 'a' , 'long' )
+ IPrintOddBranch = PrintOdd.InPort( 'Branch' , 'string' )
+ IPrintOddGate = PrintOdd.GetInPort( 'Gate' )
+ OPrintOddBranch = PrintOdd.OutPort( 'Branch' , 'string' )
+ OPrintOddGate = PrintOdd.GetOutPort( 'Gate' )
+
+ PyPrintEven = []
+ PyPrintEven.append( 'from time import * ' )
+ PyPrintEven.append( 'def Print_1(a,Branch) : ' )
+ PyPrintEven.append( ' print "Print ",a,Branch ' )
+ PyPrintEven.append( ' sleep(1) ' )
+ PyPrintEven.append( ' return Branch ' )
+ PrintEven = GraphSwitchCheckDefault2NOTValid1.INode( 'Print_1' , PyPrintEven )
+ PrintEven.SetName( 'PrintEven' )
+ PrintEven.SetAuthor( '' )
+ PrintEven.SetComment( 'Compute Node' )
+ PrintEven.Coords( 423 , 289 )
+ IPrintEvena = PrintEven.InPort( 'a' , 'long' )
+ IPrintEvenBranch = PrintEven.InPort( 'Branch' , 'string' )
+ IPrintEvenGate = PrintEven.GetInPort( 'Gate' )
+ OPrintEvenBranch = PrintEven.OutPort( 'Branch' , 'string' )
+ OPrintEvenGate = PrintEven.GetOutPort( 'Gate' )
+
+ PyEmptyNode = []
+ PyEmptyNode.append( 'from time import * ' )
+ PyEmptyNode.append( 'def EmptyNode(a,Branch) : ' )
+ PyEmptyNode.append( ' sleep(1) ' )
+ PyEmptyNode.append( ' return a,Branch ' )
+ EmptyNode = GraphSwitchCheckDefault2NOTValid1.INode( 'EmptyNode' , PyEmptyNode )
+ EmptyNode.SetName( 'EmptyNode' )
+ EmptyNode.SetAuthor( '' )
+ EmptyNode.SetComment( 'Compute Node' )
+ EmptyNode.Coords( 652 , 110 )
+ IEmptyNodea = EmptyNode.InPort( 'a' , 'long' )
+ IEmptyNodeBranch = EmptyNode.InPort( 'Branch' , 'string' )
+ IEmptyNodeGate = EmptyNode.GetInPort( 'Gate' )
+ OEmptyNodea = EmptyNode.OutPort( 'a' , 'long' )
+ OEmptyNodeBranch = EmptyNode.OutPort( 'Branch' , 'string' )
+ OEmptyNodeGate = EmptyNode.GetOutPort( 'Gate' )
+
+ PyDefault = []
+ PyDefault.append( 'from time import * ' )
+ PyDefault.append( 'def Default(a,Branch) : ' )
+ PyDefault.append( ' sleep(1) ' )
+ PyDefault.append( ' return a,Branch ' )
+ Default = GraphSwitchCheckDefault2NOTValid1.INode( 'Default' , PyDefault )
+ Default.SetName( 'Default' )
+ Default.SetAuthor( '' )
+ Default.SetComment( 'Compute Node' )
+ Default.Coords( 421 , 592 )
+ IDefaulta = Default.InPort( 'a' , 'long' )
+ IDefaultBranch = Default.InPort( 'Branch' , 'string' )
+ IDefaultGate = Default.GetInPort( 'Gate' )
+ ODefaulta = Default.OutPort( 'a' , 'long' )
+ ODefaultBranch = Default.OutPort( 'Branch' , 'string' )
+ ODefaultGate = Default.GetOutPort( 'Gate' )
+
+ # Creation of Loop Nodes
+ PyInitLoopSwitch = []
+ PyInitLoopSwitch.append( 'def InitLoop(Index,Min,Max) : ' )
+ PyInitLoopSwitch.append( ' Index = Max ' )
+ PyInitLoopSwitch.append( ' return Index,Min,Max ' )
+ PyMoreInitLoopSwitch = []
+ PyMoreInitLoopSwitch.append( 'from time import * ' )
+ PyMoreInitLoopSwitch.append( 'def MoreLoop(Index,Min,Max) : ' )
+ PyMoreInitLoopSwitch.append( ' sleep(1) ' )
+ PyMoreInitLoopSwitch.append( ' if Index >= Min : ' )
+ PyMoreInitLoopSwitch.append( ' DoLoop = 1 ' )
+ PyMoreInitLoopSwitch.append( ' else : ' )
+ PyMoreInitLoopSwitch.append( ' DoLoop = 0 ' )
+ PyMoreInitLoopSwitch.append( ' return DoLoop,Index,Min,Max ' )
+ PyNextInitLoopSwitch = []
+ PyNextInitLoopSwitch.append( 'def NextLoop(Index,Min,Max) : ' )
+ PyNextInitLoopSwitch.append( ' Index = Index - 1 ' )
+ PyNextInitLoopSwitch.append( ' return Index,Min,Max ' )
+ InitLoopSwitch,EndOfInitLoopSwitch = GraphSwitchCheckDefault2NOTValid1.LNode( 'InitLoop' , PyInitLoopSwitch , 'MoreLoop' , PyMoreInitLoopSwitch , 'NextLoop' , PyNextInitLoopSwitch )
+ EndOfInitLoopSwitch.SetName( 'EndOfInitLoopSwitch' )
+ EndOfInitLoopSwitch.SetAuthor( '' )
+ EndOfInitLoopSwitch.SetComment( 'Compute Node' )
+ EndOfInitLoopSwitch.Coords( 1074 , 194 )
+ PyEndOfInitLoopSwitch = []
+ PyEndOfInitLoopSwitch.append( 'from time import * ' )
+ PyEndOfInitLoopSwitch.append( 'def EndOfInitLoopSwitch(DoLoop,Index,Min,Max) : ' )
+ PyEndOfInitLoopSwitch.append( ' sleep(1) ' )
+ PyEndOfInitLoopSwitch.append( ' return DoLoop,Index,Min,Max ' )
+ EndOfInitLoopSwitch.SetPyFunction( 'EndOfInitLoopSwitch' , PyEndOfInitLoopSwitch )
+ IInitLoopSwitchDoLoop = InitLoopSwitch.GetInPort( 'DoLoop' )
+ IInitLoopSwitchIndex = InitLoopSwitch.InPort( 'Index' , 'long' )
+ IInitLoopSwitchMin = InitLoopSwitch.InPort( 'Min' , 'long' )
+ IInitLoopSwitchMax = InitLoopSwitch.InPort( 'Max' , 'long' )
+ IInitLoopSwitchGate = InitLoopSwitch.GetInPort( 'Gate' )
+ OInitLoopSwitchDoLoop = InitLoopSwitch.GetOutPort( 'DoLoop' )
+ OInitLoopSwitchIndex = InitLoopSwitch.GetOutPort( 'Index' )
+ OInitLoopSwitchMin = InitLoopSwitch.GetOutPort( 'Min' )
+ OInitLoopSwitchMax = InitLoopSwitch.GetOutPort( 'Max' )
+ IEndOfInitLoopSwitchDoLoop = EndOfInitLoopSwitch.GetInPort( 'DoLoop' )
+ IEndOfInitLoopSwitchIndex = EndOfInitLoopSwitch.GetInPort( 'Index' )
+ IEndOfInitLoopSwitchMin = EndOfInitLoopSwitch.GetInPort( 'Min' )
+ IEndOfInitLoopSwitchMax = EndOfInitLoopSwitch.GetInPort( 'Max' )
+ IEndOfInitLoopSwitchGate = EndOfInitLoopSwitch.GetInPort( 'Gate' )
+ OEndOfInitLoopSwitchDoLoop = EndOfInitLoopSwitch.GetOutPort( 'DoLoop' )
+ OEndOfInitLoopSwitchIndex = EndOfInitLoopSwitch.GetOutPort( 'Index' )
+ OEndOfInitLoopSwitchMin = EndOfInitLoopSwitch.GetOutPort( 'Min' )
+ OEndOfInitLoopSwitchMax = EndOfInitLoopSwitch.GetOutPort( 'Max' )
+ OEndOfInitLoopSwitchGate = EndOfInitLoopSwitch.GetOutPort( 'Gate' )
+ InitLoopSwitch.SetName( 'InitLoopSwitch' )
+ InitLoopSwitch.SetAuthor( '' )
+ InitLoopSwitch.SetComment( 'Compute Node' )
+ InitLoopSwitch.Coords( 10 , 129 )
+
+ # Creation of Switch Nodes
+ PySwitch = []
+ PySwitch.append( 'from time import * ' )
+ PySwitch.append( 'def Switch(a) : ' )
+ PySwitch.append( ' sleep(1) ' )
+ PySwitch.append( ' Branch = "Negative or null" ' )
+ PySwitch.append( ' if a <= 0 : ' )
+ PySwitch.append( ' return 0,0,a,Branch,1 ' )
+ PySwitch.append( ' if ( a & 1 ) == 0 : ' )
+ PySwitch.append( ' Branch = "Even" ' )
+ PySwitch.append( ' else : ' )
+ PySwitch.append( ' Branch = "Odd" ' )
+ PySwitch.append( ' return a & 1,1-(a&1),a,Branch,0 ' )
+ Switch,EndOfSwitch = GraphSwitchCheckDefault2NOTValid1.SNode( 'Switch' , PySwitch )
+ EndOfSwitch.SetName( 'EndOfSwitch' )
+ EndOfSwitch.SetAuthor( '' )
+ EndOfSwitch.SetComment( 'Compute Node' )
+ EndOfSwitch.Coords( 882 , 194 )
+ PyEndOfSwitch = []
+ PyEndOfSwitch.append( 'from time import * ' )
+ PyEndOfSwitch.append( 'def EndOfSwitch(a,Branch) : ' )
+ PyEndOfSwitch.append( ' sleep(1) ' )
+ PyEndOfSwitch.append( ' return a ' )
+ EndOfSwitch.SetPyFunction( 'EndOfSwitch' , PyEndOfSwitch )
+ IEndOfSwitcha = EndOfSwitch.InPort( 'a' , 'long' )
+ IEndOfSwitchBranch = EndOfSwitch.InPort( 'Branch' , 'string' )
+ IEndOfSwitchDefault = EndOfSwitch.GetInPort( 'Default' )
+ OEndOfSwitcha = EndOfSwitch.OutPort( 'a' , 'long' )
+ OEndOfSwitchGate = EndOfSwitch.GetOutPort( 'Gate' )
+ Switch.SetName( 'Switch' )
+ Switch.SetAuthor( '' )
+ Switch.SetComment( 'Compute Node' )
+ Switch.Coords( 190 , 129 )
+ ISwitcha = Switch.InPort( 'a' , 'long' )
+ ISwitchGate = Switch.GetInPort( 'Gate' )
+ OSwitchOdd = Switch.OutPort( 'Odd' , 'long' )
+ OSwitchEven = Switch.OutPort( 'Even' , 'int' )
+ OSwitcha = Switch.OutPort( 'a' , 'int' )
+ OSwitchBranch = Switch.OutPort( 'Branch' , 'string' )
+ OSwitchdefault = Switch.OutPort( 'default' , 'boolean' )
+ OSwitchDefault = Switch.GetOutPort( 'Default' )
+
+ # Creation of Links
+ LIsOddaEmptyNodea = GraphSwitchCheckDefault2NOTValid1.Link( OIsOdda , IEmptyNodea )
+ LIsOddaEmptyNodea.AddCoord( 1 , 646 , 78 )
+
+ LPrintOddBranchEmptyNodeBranch = GraphSwitchCheckDefault2NOTValid1.Link( OPrintOddBranch , IEmptyNodeBranch )
+
+ LEmptyNodeaEndOfSwitcha = GraphSwitchCheckDefault2NOTValid1.Link( OEmptyNodea , IEndOfSwitcha )
+
+ LEmptyNodeBranchEndOfSwitchBranch = GraphSwitchCheckDefault2NOTValid1.Link( OEmptyNodeBranch , IEndOfSwitchBranch )
+
+ LDefaultGateEmptyNodeGate = GraphSwitchCheckDefault2NOTValid1.Link( ODefaultGate , IEmptyNodeGate )
+
+ LInitLoopSwitchIndexSwitcha = GraphSwitchCheckDefault2NOTValid1.Link( OInitLoopSwitchIndex , ISwitcha )
+
+ LInitLoopSwitchMinEndOfInitLoopSwitchMin = GraphSwitchCheckDefault2NOTValid1.Link( OInitLoopSwitchMin , IEndOfInitLoopSwitchMin )
+
+ LInitLoopSwitchMaxEndOfInitLoopSwitchMax = GraphSwitchCheckDefault2NOTValid1.Link( OInitLoopSwitchMax , IEndOfInitLoopSwitchMax )
+
+ LSwitchOddIsOddGate = GraphSwitchCheckDefault2NOTValid1.Link( OSwitchOdd , IIsOddGate )
+ LSwitchOddIsOddGate.AddCoord( 1 , 401 , 101 )
+ LSwitchOddIsOddGate.AddCoord( 2 , 401 , 160 )
+
+ LSwitchOddPrintOddGate = GraphSwitchCheckDefault2NOTValid1.Link( OSwitchOdd , IPrintOddGate )
+ LSwitchOddPrintOddGate.AddCoord( 1 , 401 , 245 )
+ LSwitchOddPrintOddGate.AddCoord( 2 , 401 , 159 )
+
+ LSwitchEvenIsEvenGate = GraphSwitchCheckDefault2NOTValid1.Link( OSwitchEven , IIsEvenGate )
+ LSwitchEvenIsEvenGate.AddCoord( 1 , 392 , 533 )
+ LSwitchEvenIsEvenGate.AddCoord( 2 , 392 , 182 )
+
+ LSwitchEvenPrintEvenGate = GraphSwitchCheckDefault2NOTValid1.Link( OSwitchEven , IPrintEvenGate )
+ LSwitchEvenPrintEvenGate.AddCoord( 1 , 392 , 403 )
+ LSwitchEvenPrintEvenGate.AddCoord( 2 , 392 , 181 )
+
+ LSwitchaIsOdda = GraphSwitchCheckDefault2NOTValid1.Link( OSwitcha , IIsOdda )
+ LSwitchaIsOdda.AddCoord( 1 , 382 , 78 )
+ LSwitchaIsOdda.AddCoord( 2 , 382 , 199 )
+
+ LSwitchaIsEvena = GraphSwitchCheckDefault2NOTValid1.Link( OSwitcha , IIsEvena )
+ LSwitchaIsEvena.AddCoord( 1 , 381 , 509 )
+ LSwitchaIsEvena.AddCoord( 2 , 382 , 200 )
+
+ LSwitchaPrintOdda = GraphSwitchCheckDefault2NOTValid1.Link( OSwitcha , IPrintOdda )
+
+ LSwitchaPrintEvena = GraphSwitchCheckDefault2NOTValid1.Link( OSwitcha , IPrintEvena )
+ LSwitchaPrintEvena.AddCoord( 1 , 381 , 361 )
+ LSwitchaPrintEvena.AddCoord( 2 , 382 , 200 )
+
+ LSwitchaDefaulta = GraphSwitchCheckDefault2NOTValid1.Link( OSwitcha , IDefaulta )
+ LSwitchaDefaulta.AddCoord( 1 , 382 , 663 )
+ LSwitchaDefaulta.AddCoord( 2 , 382 , 199 )
+
+ LSwitchBranchPrintOddBranch = GraphSwitchCheckDefault2NOTValid1.Link( OSwitchBranch , IPrintOddBranch )
+
+ LSwitchBranchPrintEvenBranch = GraphSwitchCheckDefault2NOTValid1.Link( OSwitchBranch , IPrintEvenBranch )
+ LSwitchBranchPrintEvenBranch.AddCoord( 1 , 369 , 381 )
+ LSwitchBranchPrintEvenBranch.AddCoord( 2 , 369 , 219 )
+
+ LSwitchBranchDefaultBranch = GraphSwitchCheckDefault2NOTValid1.Link( OSwitchBranch , IDefaultBranch )
+ LSwitchBranchDefaultBranch.AddCoord( 1 , 370 , 683 )
+ LSwitchBranchDefaultBranch.AddCoord( 2 , 370 , 220 )
+
+ LSwitchdefaultDefaultGate = GraphSwitchCheckDefault2NOTValid1.Link( OSwitchdefault , IDefaultGate )
+ LSwitchdefaultDefaultGate.AddCoord( 1 , 363 , 707 )
+ LSwitchdefaultDefaultGate.AddCoord( 2 , 362 , 239 )
+
+ LSwitchDefaultEndOfSwitchDefault = GraphSwitchCheckDefault2NOTValid1.Link( OSwitchDefault , IEndOfSwitchDefault )
+
+ LEndOfSwitchaEndOfInitLoopSwitchIndex = GraphSwitchCheckDefault2NOTValid1.Link( OEndOfSwitcha , IEndOfInitLoopSwitchIndex )
+
+ # Input datas
+ IInitLoopSwitchIndex.Input( 0 )
+ IInitLoopSwitchMin.Input( -5 )
+ IInitLoopSwitchMax.Input( 10 )
+
+ # Output Ports of the graph
+ #OIsEvena = IsEven.GetOutPort( 'a' )
+ #OPrintEvenBranch = PrintEven.GetOutPort( 'Branch' )
+ #ODefaulta = Default.GetOutPort( 'a' )
+ #ODefaultBranch = Default.GetOutPort( 'Branch' )
+ #OEndOfInitLoopSwitchIndex = EndOfInitLoopSwitch.GetOutPort( 'Index' )
+ #OEndOfInitLoopSwitchMin = EndOfInitLoopSwitch.GetOutPort( 'Min' )
+ #OEndOfInitLoopSwitchMax = EndOfInitLoopSwitch.GetOutPort( 'Max' )
+ return GraphSwitchCheckDefault2NOTValid1
+
+
+GraphSwitchCheckDefault2NOTValid1 = DefGraphSwitchCheckDefault2NOTValid1()
--- /dev/null
+<!DOCTYPE SuperGraph>
+<supergraph>
+<dataflow>
+<info-list>
+<node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>GraphSwitchCheckDefault2NOTValid1</node-name>
+ <kind>1</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>GraphSwitchCheckDefault2NOTValid1</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>InitLoopSwitch__Index</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>InitLoopSwitch__Min</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>InitLoopSwitch__Max</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>IsEven__a</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>string</outParameter-type>
+ <outParameter-name>PrintEven__Branch</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Default__a</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>string</outParameter-type>
+ <outParameter-name>Default__Branch</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>EndOfInitLoopSwitch__Index</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>EndOfInitLoopSwitch__Min</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>EndOfInitLoopSwitch__Max</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list/>
+ <creation-date>13/1/2005 - 12:21:43</creation-date>
+ <lastmodification-date>19/1/2005 - 12:16:32</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>JR</author>
+ <container>?</container>
+ <comment>?</comment>
+ <x-position>0</x-position>
+ <y-position>0</y-position> </node> </info-list>
+ <node-list>
+<node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>IsOdd</node-name>
+ <kind>3</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>IsOdd</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>IsOdd</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def IsOdd(a) : ]]></PyFunc>
+ <PyFunc><![CDATA[ print a,"IsOdd (GraphSwitch)" ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep( 1 ) ]]></PyFunc>
+ <PyFunc><![CDATA[ return a ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 12:16:32</creation-date>
+ <lastmodification-date>19/1/2005 - 12:16:32</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Python function</comment>
+ <x-position>415</x-position>
+ <y-position>7</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>IsEven</node-name>
+ <kind>3</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>IsEven</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>IsEven</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def IsEven(a) : ]]></PyFunc>
+ <PyFunc><![CDATA[ print a,"IsEven (GraphSwitch)" ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep( 1 ) ]]></PyFunc>
+ <PyFunc><![CDATA[ return a ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 12:16:32</creation-date>
+ <lastmodification-date>19/1/2005 - 12:16:32</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>421</x-position>
+ <y-position>438</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>PrintOdd</node-name>
+ <kind>3</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>PrintOdd</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>string</inParameter-type>
+ <inParameter-name>Branch</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>string</outParameter-type>
+ <outParameter-name>Branch</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>Print</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def Print(a,Branch) : ]]></PyFunc>
+ <PyFunc><![CDATA[ print "Print ",a,Branch ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
+ <PyFunc><![CDATA[ return Branch ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 12:16:32</creation-date>
+ <lastmodification-date>19/1/2005 - 12:16:32</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>415</x-position>
+ <y-position>130</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>PrintEven</node-name>
+ <kind>3</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>PrintEven</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>string</inParameter-type>
+ <inParameter-name>Branch</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>string</outParameter-type>
+ <outParameter-name>Branch</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>Print_1</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def Print_1(a,Branch) : ]]></PyFunc>
+ <PyFunc><![CDATA[ print "Print ",a,Branch ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
+ <PyFunc><![CDATA[ return Branch ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 12:16:32</creation-date>
+ <lastmodification-date>19/1/2005 - 12:16:32</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>423</x-position>
+ <y-position>289</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>EmptyNode</node-name>
+ <kind>3</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>EmptyNode</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>string</inParameter-type>
+ <inParameter-name>Branch</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>string</outParameter-type>
+ <outParameter-name>Branch</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>EmptyNode</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def EmptyNode(a,Branch) : ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
+ <PyFunc><![CDATA[ return a,Branch ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 12:16:32</creation-date>
+ <lastmodification-date>19/1/2005 - 12:16:32</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>652</x-position>
+ <y-position>110</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>Default</node-name>
+ <kind>3</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>Default</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>string</inParameter-type>
+ <inParameter-name>Branch</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>string</outParameter-type>
+ <outParameter-name>Branch</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>Default</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def Default(a,Branch) : ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
+ <PyFunc><![CDATA[ return a,Branch ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 12:16:32</creation-date>
+ <lastmodification-date>19/1/2005 - 12:16:32</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>421</x-position>
+ <y-position>592</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>InitLoopSwitch</node-name>
+ <kind>4</kind>
+ <coupled-node>EndOfInitLoopSwitch</coupled-node>
+ <service>
+<service-name>InitLoopSwitch</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Index</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Min</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Max</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Index</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Min</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Max</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>InitLoop</FuncName>
+ <PyFunc><![CDATA[def InitLoop(Index,Min,Max) : ]]></PyFunc>
+ <PyFunc><![CDATA[ Index = Max ]]></PyFunc>
+ <PyFunc><![CDATA[ return Index,Min,Max ]]></PyFunc> </PyFunction>
+ <PyFunction>
+<FuncName>MoreLoop</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def MoreLoop(Index,Min,Max) : ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
+ <PyFunc><![CDATA[ if Index >= Min : ]]></PyFunc>
+ <PyFunc><![CDATA[ DoLoop = 1 ]]></PyFunc>
+ <PyFunc><![CDATA[ else : ]]></PyFunc>
+ <PyFunc><![CDATA[ DoLoop = 0 ]]></PyFunc>
+ <PyFunc><![CDATA[ return DoLoop,Index,Min,Max ]]></PyFunc> </PyFunction>
+ <PyFunction>
+<FuncName>NextLoop</FuncName>
+ <PyFunc><![CDATA[def NextLoop(Index,Min,Max) : ]]></PyFunc>
+ <PyFunc><![CDATA[ Index = Index - 1 ]]></PyFunc>
+ <PyFunc><![CDATA[ return Index,Min,Max ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 12:16:32</creation-date>
+ <lastmodification-date>19/1/2005 - 12:16:32</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>10</x-position>
+ <y-position>129</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>EndOfInitLoopSwitch</node-name>
+ <kind>5</kind>
+ <coupled-node>InitLoopSwitch</coupled-node>
+ <service>
+<service-name>EndOfInitLoopSwitch</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Index</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Min</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Max</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Index</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Min</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Max</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>EndOfInitLoopSwitch</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def EndOfInitLoopSwitch(DoLoop,Index,Min,Max) : ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
+ <PyFunc><![CDATA[ return DoLoop,Index,Min,Max ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 12:16:32</creation-date>
+ <lastmodification-date>19/1/2005 - 12:16:32</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>1074</x-position>
+ <y-position>194</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>Switch</node-name>
+ <kind>6</kind>
+ <coupled-node>EndOfSwitch</coupled-node>
+ <service>
+<service-name>Switch</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Odd</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>int</outParameter-type>
+ <outParameter-name>Even</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>int</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>string</outParameter-type>
+ <outParameter-name>Branch</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>boolean</outParameter-type>
+ <outParameter-name>default</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>Switch</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def Switch(a) : ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
+ <PyFunc><![CDATA[ Branch = "Negative or null" ]]></PyFunc>
+ <PyFunc><![CDATA[ if a <= 0 : ]]></PyFunc>
+ <PyFunc><![CDATA[ return 0,0,a,Branch,1 ]]></PyFunc>
+ <PyFunc><![CDATA[ if ( a & 1 ) == 0 : ]]></PyFunc>
+ <PyFunc><![CDATA[ Branch = "Even" ]]></PyFunc>
+ <PyFunc><![CDATA[ else : ]]></PyFunc>
+ <PyFunc><![CDATA[ Branch = "Odd" ]]></PyFunc>
+ <PyFunc><![CDATA[ return a & 1,1-(a&1),a,Branch,0 ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 12:16:32</creation-date>
+ <lastmodification-date>19/1/2005 - 12:16:32</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>190</x-position>
+ <y-position>129</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>EndOfSwitch</node-name>
+ <kind>7</kind>
+ <coupled-node>Switch</coupled-node>
+ <service>
+<service-name>EndOfSwitch</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>string</inParameter-type>
+ <inParameter-name>Branch</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>EndOfSwitch</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def EndOfSwitch(a,Branch) : ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
+ <PyFunc><![CDATA[ return a ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 12:16:32</creation-date>
+ <lastmodification-date>19/1/2005 - 12:16:32</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>882</x-position>
+ <y-position>194</y-position> </node> </node-list>
+ <link-list>
+<link>
+<fromnode-name>IsOdd</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>EmptyNode</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>646</x>
+ <y>78</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>PrintOdd</fromnode-name>
+ <fromserviceparameter-name>Branch</fromserviceparameter-name>
+ <tonode-name>EmptyNode</tonode-name>
+ <toserviceparameter-name>Branch</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>EmptyNode</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>EndOfSwitch</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>EmptyNode</fromnode-name>
+ <fromserviceparameter-name>Branch</fromserviceparameter-name>
+ <tonode-name>EndOfSwitch</tonode-name>
+ <toserviceparameter-name>Branch</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>Default</fromnode-name>
+ <fromserviceparameter-name>Gate</fromserviceparameter-name>
+ <tonode-name>EmptyNode</tonode-name>
+ <toserviceparameter-name>Gate</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>InitLoopSwitch</fromnode-name>
+ <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
+ <tonode-name>EndOfInitLoopSwitch</tonode-name>
+ <toserviceparameter-name>DoLoop</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>InitLoopSwitch</fromnode-name>
+ <fromserviceparameter-name>Index</fromserviceparameter-name>
+ <tonode-name>Switch</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>InitLoopSwitch</fromnode-name>
+ <fromserviceparameter-name>Min</fromserviceparameter-name>
+ <tonode-name>EndOfInitLoopSwitch</tonode-name>
+ <toserviceparameter-name>Min</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>InitLoopSwitch</fromnode-name>
+ <fromserviceparameter-name>Max</fromserviceparameter-name>
+ <tonode-name>EndOfInitLoopSwitch</tonode-name>
+ <toserviceparameter-name>Max</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>EndOfInitLoopSwitch</fromnode-name>
+ <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
+ <tonode-name>InitLoopSwitch</tonode-name>
+ <toserviceparameter-name>DoLoop</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>Odd</fromserviceparameter-name>
+ <tonode-name>IsOdd</tonode-name>
+ <toserviceparameter-name>Gate</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>401</x>
+ <y>101</y> </coord>
+ <coord>
+<x>401</x>
+ <y>160</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>Odd</fromserviceparameter-name>
+ <tonode-name>PrintOdd</tonode-name>
+ <toserviceparameter-name>Gate</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>401</x>
+ <y>245</y> </coord>
+ <coord>
+<x>401</x>
+ <y>159</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>Even</fromserviceparameter-name>
+ <tonode-name>IsEven</tonode-name>
+ <toserviceparameter-name>Gate</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>392</x>
+ <y>533</y> </coord>
+ <coord>
+<x>392</x>
+ <y>182</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>Even</fromserviceparameter-name>
+ <tonode-name>PrintEven</tonode-name>
+ <toserviceparameter-name>Gate</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>392</x>
+ <y>403</y> </coord>
+ <coord>
+<x>392</x>
+ <y>181</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>IsOdd</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>382</x>
+ <y>78</y> </coord>
+ <coord>
+<x>382</x>
+ <y>199</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>IsEven</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>381</x>
+ <y>509</y> </coord>
+ <coord>
+<x>382</x>
+ <y>200</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>PrintOdd</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>PrintEven</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>381</x>
+ <y>361</y> </coord>
+ <coord>
+<x>382</x>
+ <y>200</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>Default</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>382</x>
+ <y>663</y> </coord>
+ <coord>
+<x>382</x>
+ <y>199</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>Branch</fromserviceparameter-name>
+ <tonode-name>PrintOdd</tonode-name>
+ <toserviceparameter-name>Branch</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>Branch</fromserviceparameter-name>
+ <tonode-name>PrintEven</tonode-name>
+ <toserviceparameter-name>Branch</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>369</x>
+ <y>381</y> </coord>
+ <coord>
+<x>369</x>
+ <y>219</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>Branch</fromserviceparameter-name>
+ <tonode-name>Default</tonode-name>
+ <toserviceparameter-name>Branch</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>370</x>
+ <y>683</y> </coord>
+ <coord>
+<x>370</x>
+ <y>220</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>default</fromserviceparameter-name>
+ <tonode-name>Default</tonode-name>
+ <toserviceparameter-name>Gate</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>363</x>
+ <y>707</y> </coord>
+ <coord>
+<x>362</x>
+ <y>239</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>Default</fromserviceparameter-name>
+ <tonode-name>EndOfSwitch</tonode-name>
+ <toserviceparameter-name>Default</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>EndOfSwitch</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>EndOfInitLoopSwitch</tonode-name>
+ <toserviceparameter-name>Index</toserviceparameter-name>
+ <coord-list/> </link> </link-list>
+ <data-list>
+<data>
+<fromnode-name>GraphSwitchCheckDefault2NOTValid1</fromnode-name>
+ <fromserviceparameter-name>InitLoopSwitch__Index</fromserviceparameter-name>
+ <tonode-name>InitLoopSwitch</tonode-name>
+ <toserviceparameter-name>Index</toserviceparameter-name>
+ <data-value>
+<value-type>3</value-type>
+ <value>0</value> </data-value>
+ <coord-list/> </data>
+ <data>
+<fromnode-name>GraphSwitchCheckDefault2NOTValid1</fromnode-name>
+ <fromserviceparameter-name>InitLoopSwitch__Min</fromserviceparameter-name>
+ <tonode-name>InitLoopSwitch</tonode-name>
+ <toserviceparameter-name>Min</toserviceparameter-name>
+ <data-value>
+<value-type>3</value-type>
+ <value>-5</value> </data-value>
+ <coord-list/> </data>
+ <data>
+<fromnode-name>GraphSwitchCheckDefault2NOTValid1</fromnode-name>
+ <fromserviceparameter-name>InitLoopSwitch__Max</fromserviceparameter-name>
+ <tonode-name>InitLoopSwitch</tonode-name>
+ <toserviceparameter-name>Max</toserviceparameter-name>
+ <data-value>
+<value-type>3</value-type>
+ <value>10</value> </data-value>
+ <coord-list/> </data> </data-list> </dataflow></supergraph>
--- /dev/null
+
+# Generated python file of Graph GraphSwitchCheckDefault2NOTValid2
+
+from SuperV import *
+
+# Graph creation of GraphSwitchCheckDefault2NOTValid2
+def DefGraphSwitchCheckDefault2NOTValid2() :
+ GraphSwitchCheckDefault2NOTValid2 = Graph( 'GraphSwitchCheckDefault2NOTValid2' )
+ GraphSwitchCheckDefault2NOTValid2.SetName( 'GraphSwitchCheckDefault2NOTValid2' )
+ GraphSwitchCheckDefault2NOTValid2.SetAuthor( 'JR' )
+ GraphSwitchCheckDefault2NOTValid2.SetComment( '' )
+ GraphSwitchCheckDefault2NOTValid2.Coords( 0 , 0 )
+
+ # Creation of Factory Nodes
+
+ # Creation of InLine Nodes
+ PyIsOdd = []
+ PyIsOdd.append( 'from time import * ' )
+ PyIsOdd.append( 'def IsOdd(a) : ' )
+ PyIsOdd.append( ' print a,"IsOdd (GraphSwitch)" ' )
+ PyIsOdd.append( ' sleep( 1 ) ' )
+ PyIsOdd.append( ' return a ' )
+ IsOdd = GraphSwitchCheckDefault2NOTValid2.INode( 'IsOdd' , PyIsOdd )
+ IsOdd.SetName( 'IsOdd' )
+ IsOdd.SetAuthor( '' )
+ IsOdd.SetComment( 'Python function' )
+ IsOdd.Coords( 415 , 7 )
+ IIsOdda = IsOdd.InPort( 'a' , 'long' )
+ IIsOddGate = IsOdd.GetInPort( 'Gate' )
+ OIsOdda = IsOdd.OutPort( 'a' , 'long' )
+ OIsOddGate = IsOdd.GetOutPort( 'Gate' )
+
+ PyIsEven = []
+ PyIsEven.append( 'from time import * ' )
+ PyIsEven.append( 'def IsEven(a) : ' )
+ PyIsEven.append( ' print a,"IsEven (GraphSwitch)" ' )
+ PyIsEven.append( ' sleep( 1 ) ' )
+ PyIsEven.append( ' return a ' )
+ IsEven = GraphSwitchCheckDefault2NOTValid2.INode( 'IsEven' , PyIsEven )
+ IsEven.SetName( 'IsEven' )
+ IsEven.SetAuthor( '' )
+ IsEven.SetComment( 'Compute Node' )
+ IsEven.Coords( 421 , 438 )
+ IIsEvena = IsEven.InPort( 'a' , 'long' )
+ IIsEvenGate = IsEven.GetInPort( 'Gate' )
+ OIsEvena = IsEven.OutPort( 'a' , 'long' )
+ OIsEvenGate = IsEven.GetOutPort( 'Gate' )
+
+ PyPrintOdd = []
+ PyPrintOdd.append( 'from time import * ' )
+ PyPrintOdd.append( 'def Print(a,Branch) : ' )
+ PyPrintOdd.append( ' print "Print ",a,Branch ' )
+ PyPrintOdd.append( ' sleep(1) ' )
+ PyPrintOdd.append( ' return Branch ' )
+ PrintOdd = GraphSwitchCheckDefault2NOTValid2.INode( 'Print' , PyPrintOdd )
+ PrintOdd.SetName( 'PrintOdd' )
+ PrintOdd.SetAuthor( '' )
+ PrintOdd.SetComment( 'Compute Node' )
+ PrintOdd.Coords( 415 , 130 )
+ IPrintOdda = PrintOdd.InPort( 'a' , 'long' )
+ IPrintOddBranch = PrintOdd.InPort( 'Branch' , 'string' )
+ IPrintOddGate = PrintOdd.GetInPort( 'Gate' )
+ OPrintOddBranch = PrintOdd.OutPort( 'Branch' , 'string' )
+ OPrintOddGate = PrintOdd.GetOutPort( 'Gate' )
+
+ PyPrintEven = []
+ PyPrintEven.append( 'from time import * ' )
+ PyPrintEven.append( 'def Print_1(a,Branch) : ' )
+ PyPrintEven.append( ' print "Print ",a,Branch ' )
+ PyPrintEven.append( ' sleep(1) ' )
+ PyPrintEven.append( ' return Branch ' )
+ PrintEven = GraphSwitchCheckDefault2NOTValid2.INode( 'Print_1' , PyPrintEven )
+ PrintEven.SetName( 'PrintEven' )
+ PrintEven.SetAuthor( '' )
+ PrintEven.SetComment( 'Compute Node' )
+ PrintEven.Coords( 423 , 289 )
+ IPrintEvena = PrintEven.InPort( 'a' , 'long' )
+ IPrintEvenBranch = PrintEven.InPort( 'Branch' , 'string' )
+ IPrintEvenGate = PrintEven.GetInPort( 'Gate' )
+ OPrintEvenBranch = PrintEven.OutPort( 'Branch' , 'string' )
+ OPrintEvenGate = PrintEven.GetOutPort( 'Gate' )
+
+ PyEmptyNode = []
+ PyEmptyNode.append( 'from time import * ' )
+ PyEmptyNode.append( 'def EmptyNode(a,Branch) : ' )
+ PyEmptyNode.append( ' sleep(1) ' )
+ PyEmptyNode.append( ' return a,Branch ' )
+ EmptyNode = GraphSwitchCheckDefault2NOTValid2.INode( 'EmptyNode' , PyEmptyNode )
+ EmptyNode.SetName( 'EmptyNode' )
+ EmptyNode.SetAuthor( '' )
+ EmptyNode.SetComment( 'Compute Node' )
+ EmptyNode.Coords( 652 , 110 )
+ IEmptyNodea = EmptyNode.InPort( 'a' , 'long' )
+ IEmptyNodeBranch = EmptyNode.InPort( 'Branch' , 'string' )
+ IEmptyNodeGate = EmptyNode.GetInPort( 'Gate' )
+ OEmptyNodea = EmptyNode.OutPort( 'a' , 'long' )
+ OEmptyNodeBranch = EmptyNode.OutPort( 'Branch' , 'string' )
+ OEmptyNodeGate = EmptyNode.GetOutPort( 'Gate' )
+
+ PyDefault = []
+ PyDefault.append( 'from time import * ' )
+ PyDefault.append( 'def Default(a,Branch) : ' )
+ PyDefault.append( ' sleep(1) ' )
+ PyDefault.append( ' return a,Branch ' )
+ Default = GraphSwitchCheckDefault2NOTValid2.INode( 'Default' , PyDefault )
+ Default.SetName( 'Default' )
+ Default.SetAuthor( '' )
+ Default.SetComment( 'Compute Node' )
+ Default.Coords( 421 , 592 )
+ IDefaulta = Default.InPort( 'a' , 'long' )
+ IDefaultBranch = Default.InPort( 'Branch' , 'string' )
+ IDefaultGate = Default.GetInPort( 'Gate' )
+ ODefaulta = Default.OutPort( 'a' , 'long' )
+ ODefaultBranch = Default.OutPort( 'Branch' , 'string' )
+ ODefaultGate = Default.GetOutPort( 'Gate' )
+
+ PyPuta = []
+ PyPuta.append( 'from time import * ' )
+ PyPuta.append( 'def Puta(a) : ' )
+ PyPuta.append( ' sleep(1) ' )
+ PyPuta.append( ' return a ' )
+ Puta = GraphSwitchCheckDefault2NOTValid2.INode( 'Puta' , PyPuta )
+ Puta.SetName( 'Puta' )
+ Puta.SetAuthor( '' )
+ Puta.SetComment( 'Compute Node' )
+ Puta.Coords( 665 , 486 )
+ IPutaa = Puta.InPort( 'a' , 'long' )
+ IPutaGate = Puta.GetInPort( 'Gate' )
+ OPutaa = Puta.OutPort( 'a' , 'long' )
+ OPutaGate = Puta.GetOutPort( 'Gate' )
+
+ PyPutBranch = []
+ PyPutBranch.append( 'from time import * ' )
+ PyPutBranch.append( 'def PutBranch(Branch) : ' )
+ PyPutBranch.append( ' sleep(1) ' )
+ PyPutBranch.append( ' return Branch ' )
+ PutBranch = GraphSwitchCheckDefault2NOTValid2.INode( 'PutBranch' , PyPutBranch )
+ PutBranch.SetName( 'PutBranch' )
+ PutBranch.SetAuthor( '' )
+ PutBranch.SetComment( 'Compute Node' )
+ PutBranch.Coords( 662 , 613 )
+ IPutBranchBranch = PutBranch.InPort( 'Branch' , 'string' )
+ IPutBranchGate = PutBranch.GetInPort( 'Gate' )
+ OPutBranchBranch = PutBranch.OutPort( 'Branch' , 'string' )
+ OPutBranchGate = PutBranch.GetOutPort( 'Gate' )
+
+ # Creation of Loop Nodes
+ PyInitLoopSwitch = []
+ PyInitLoopSwitch.append( 'def InitLoop(Index,Min,Max) : ' )
+ PyInitLoopSwitch.append( ' Index = Max ' )
+ PyInitLoopSwitch.append( ' return Index,Min,Max ' )
+ PyMoreInitLoopSwitch = []
+ PyMoreInitLoopSwitch.append( 'from time import * ' )
+ PyMoreInitLoopSwitch.append( 'def MoreLoop(Index,Min,Max) : ' )
+ PyMoreInitLoopSwitch.append( ' sleep(1) ' )
+ PyMoreInitLoopSwitch.append( ' if Index >= Min : ' )
+ PyMoreInitLoopSwitch.append( ' DoLoop = 1 ' )
+ PyMoreInitLoopSwitch.append( ' else : ' )
+ PyMoreInitLoopSwitch.append( ' DoLoop = 0 ' )
+ PyMoreInitLoopSwitch.append( ' return DoLoop,Index,Min,Max ' )
+ PyNextInitLoopSwitch = []
+ PyNextInitLoopSwitch.append( 'def NextLoop(Index,Min,Max) : ' )
+ PyNextInitLoopSwitch.append( ' Index = Index - 1 ' )
+ PyNextInitLoopSwitch.append( ' return Index,Min,Max ' )
+ InitLoopSwitch,EndOfInitLoopSwitch = GraphSwitchCheckDefault2NOTValid2.LNode( 'InitLoop' , PyInitLoopSwitch , 'MoreLoop' , PyMoreInitLoopSwitch , 'NextLoop' , PyNextInitLoopSwitch )
+ EndOfInitLoopSwitch.SetName( 'EndOfInitLoopSwitch' )
+ EndOfInitLoopSwitch.SetAuthor( '' )
+ EndOfInitLoopSwitch.SetComment( 'Compute Node' )
+ EndOfInitLoopSwitch.Coords( 1074 , 194 )
+ PyEndOfInitLoopSwitch = []
+ PyEndOfInitLoopSwitch.append( 'from time import * ' )
+ PyEndOfInitLoopSwitch.append( 'def EndOfInitLoopSwitch(DoLoop,Index,Min,Max) : ' )
+ PyEndOfInitLoopSwitch.append( ' sleep(1) ' )
+ PyEndOfInitLoopSwitch.append( ' return DoLoop,Index,Min,Max ' )
+ EndOfInitLoopSwitch.SetPyFunction( 'EndOfInitLoopSwitch' , PyEndOfInitLoopSwitch )
+ IInitLoopSwitchDoLoop = InitLoopSwitch.GetInPort( 'DoLoop' )
+ IInitLoopSwitchIndex = InitLoopSwitch.InPort( 'Index' , 'long' )
+ IInitLoopSwitchMin = InitLoopSwitch.InPort( 'Min' , 'long' )
+ IInitLoopSwitchMax = InitLoopSwitch.InPort( 'Max' , 'long' )
+ IInitLoopSwitchGate = InitLoopSwitch.GetInPort( 'Gate' )
+ OInitLoopSwitchDoLoop = InitLoopSwitch.GetOutPort( 'DoLoop' )
+ OInitLoopSwitchIndex = InitLoopSwitch.GetOutPort( 'Index' )
+ OInitLoopSwitchMin = InitLoopSwitch.GetOutPort( 'Min' )
+ OInitLoopSwitchMax = InitLoopSwitch.GetOutPort( 'Max' )
+ IEndOfInitLoopSwitchDoLoop = EndOfInitLoopSwitch.GetInPort( 'DoLoop' )
+ IEndOfInitLoopSwitchIndex = EndOfInitLoopSwitch.GetInPort( 'Index' )
+ IEndOfInitLoopSwitchMin = EndOfInitLoopSwitch.GetInPort( 'Min' )
+ IEndOfInitLoopSwitchMax = EndOfInitLoopSwitch.GetInPort( 'Max' )
+ IEndOfInitLoopSwitchGate = EndOfInitLoopSwitch.GetInPort( 'Gate' )
+ OEndOfInitLoopSwitchDoLoop = EndOfInitLoopSwitch.GetOutPort( 'DoLoop' )
+ OEndOfInitLoopSwitchIndex = EndOfInitLoopSwitch.GetOutPort( 'Index' )
+ OEndOfInitLoopSwitchMin = EndOfInitLoopSwitch.GetOutPort( 'Min' )
+ OEndOfInitLoopSwitchMax = EndOfInitLoopSwitch.GetOutPort( 'Max' )
+ OEndOfInitLoopSwitchGate = EndOfInitLoopSwitch.GetOutPort( 'Gate' )
+ InitLoopSwitch.SetName( 'InitLoopSwitch' )
+ InitLoopSwitch.SetAuthor( '' )
+ InitLoopSwitch.SetComment( 'Compute Node' )
+ InitLoopSwitch.Coords( 10 , 129 )
+
+ # Creation of Switch Nodes
+ PySwitch = []
+ PySwitch.append( 'from time import * ' )
+ PySwitch.append( 'def Switch(a) : ' )
+ PySwitch.append( ' sleep(1) ' )
+ PySwitch.append( ' Branch = "Negative or null" ' )
+ PySwitch.append( ' if a <= 0 : ' )
+ PySwitch.append( ' return 0,0,a,Branch,1 ' )
+ PySwitch.append( ' if ( a & 1 ) == 0 : ' )
+ PySwitch.append( ' Branch = "Even" ' )
+ PySwitch.append( ' else : ' )
+ PySwitch.append( ' Branch = "Odd" ' )
+ PySwitch.append( ' return a & 1,1-(a&1),a,Branch,0 ' )
+ Switch,EndOfSwitch = GraphSwitchCheckDefault2NOTValid2.SNode( 'Switch' , PySwitch )
+ EndOfSwitch.SetName( 'EndOfSwitch' )
+ EndOfSwitch.SetAuthor( '' )
+ EndOfSwitch.SetComment( 'Compute Node' )
+ EndOfSwitch.Coords( 882 , 194 )
+ PyEndOfSwitch = []
+ PyEndOfSwitch.append( 'from time import * ' )
+ PyEndOfSwitch.append( 'def EndOfSwitch(a,Branch) : ' )
+ PyEndOfSwitch.append( ' sleep(1) ' )
+ PyEndOfSwitch.append( ' return a ' )
+ EndOfSwitch.SetPyFunction( 'EndOfSwitch' , PyEndOfSwitch )
+ IEndOfSwitcha = EndOfSwitch.InPort( 'a' , 'long' )
+ IEndOfSwitchBranch = EndOfSwitch.InPort( 'Branch' , 'string' )
+ IEndOfSwitchDefault = EndOfSwitch.GetInPort( 'Default' )
+ OEndOfSwitcha = EndOfSwitch.OutPort( 'a' , 'long' )
+ OEndOfSwitchGate = EndOfSwitch.GetOutPort( 'Gate' )
+ Switch.SetName( 'Switch' )
+ Switch.SetAuthor( '' )
+ Switch.SetComment( 'Compute Node' )
+ Switch.Coords( 190 , 129 )
+ ISwitcha = Switch.InPort( 'a' , 'long' )
+ ISwitchGate = Switch.GetInPort( 'Gate' )
+ OSwitchOdd = Switch.OutPort( 'Odd' , 'long' )
+ OSwitchEven = Switch.OutPort( 'Even' , 'int' )
+ OSwitcha = Switch.OutPort( 'a' , 'int' )
+ OSwitchBranch = Switch.OutPort( 'Branch' , 'string' )
+ OSwitchdefault = Switch.OutPort( 'default' , 'boolean' )
+ OSwitchDefault = Switch.GetOutPort( 'Default' )
+
+ # Creation of Links
+ LIsOddaEmptyNodea = GraphSwitchCheckDefault2NOTValid2.Link( OIsOdda , IEmptyNodea )
+ LIsOddaEmptyNodea.AddCoord( 1 , 646 , 78 )
+
+ LIsEvenaEndOfSwitcha = GraphSwitchCheckDefault2NOTValid2.Link( OIsEvena , IEndOfSwitcha )
+
+ LPrintOddBranchEmptyNodeBranch = GraphSwitchCheckDefault2NOTValid2.Link( OPrintOddBranch , IEmptyNodeBranch )
+
+ LPrintEvenBranchEndOfSwitchBranch = GraphSwitchCheckDefault2NOTValid2.Link( OPrintEvenBranch , IEndOfSwitchBranch )
+
+ LEmptyNodeaEndOfSwitcha = GraphSwitchCheckDefault2NOTValid2.Link( OEmptyNodea , IEndOfSwitcha )
+
+ LEmptyNodeBranchEndOfSwitchBranch = GraphSwitchCheckDefault2NOTValid2.Link( OEmptyNodeBranch , IEndOfSwitchBranch )
+
+ LDefaultaPutaa = GraphSwitchCheckDefault2NOTValid2.Link( ODefaulta , IPutaa )
+
+ LDefaultBranchPutBranchBranch = GraphSwitchCheckDefault2NOTValid2.Link( ODefaultBranch , IPutBranchBranch )
+
+ LInitLoopSwitchIndexSwitcha = GraphSwitchCheckDefault2NOTValid2.Link( OInitLoopSwitchIndex , ISwitcha )
+
+ LInitLoopSwitchMinEndOfInitLoopSwitchMin = GraphSwitchCheckDefault2NOTValid2.Link( OInitLoopSwitchMin , IEndOfInitLoopSwitchMin )
+
+ LInitLoopSwitchMaxEndOfInitLoopSwitchMax = GraphSwitchCheckDefault2NOTValid2.Link( OInitLoopSwitchMax , IEndOfInitLoopSwitchMax )
+
+ LSwitchOddIsOddGate = GraphSwitchCheckDefault2NOTValid2.Link( OSwitchOdd , IIsOddGate )
+ LSwitchOddIsOddGate.AddCoord( 1 , 401 , 101 )
+ LSwitchOddIsOddGate.AddCoord( 2 , 401 , 160 )
+
+ LSwitchOddPrintOddGate = GraphSwitchCheckDefault2NOTValid2.Link( OSwitchOdd , IPrintOddGate )
+ LSwitchOddPrintOddGate.AddCoord( 1 , 401 , 245 )
+ LSwitchOddPrintOddGate.AddCoord( 2 , 401 , 159 )
+
+ LSwitchEvenIsEvenGate = GraphSwitchCheckDefault2NOTValid2.Link( OSwitchEven , IIsEvenGate )
+ LSwitchEvenIsEvenGate.AddCoord( 1 , 392 , 533 )
+ LSwitchEvenIsEvenGate.AddCoord( 2 , 392 , 182 )
+
+ LSwitchEvenPrintEvenGate = GraphSwitchCheckDefault2NOTValid2.Link( OSwitchEven , IPrintEvenGate )
+ LSwitchEvenPrintEvenGate.AddCoord( 1 , 392 , 403 )
+ LSwitchEvenPrintEvenGate.AddCoord( 2 , 392 , 181 )
+
+ LSwitchaIsOdda = GraphSwitchCheckDefault2NOTValid2.Link( OSwitcha , IIsOdda )
+ LSwitchaIsOdda.AddCoord( 1 , 382 , 78 )
+ LSwitchaIsOdda.AddCoord( 2 , 382 , 199 )
+
+ LSwitchaIsEvena = GraphSwitchCheckDefault2NOTValid2.Link( OSwitcha , IIsEvena )
+ LSwitchaIsEvena.AddCoord( 1 , 381 , 509 )
+ LSwitchaIsEvena.AddCoord( 2 , 382 , 200 )
+
+ LSwitchaPrintOdda = GraphSwitchCheckDefault2NOTValid2.Link( OSwitcha , IPrintOdda )
+
+ LSwitchaPrintEvena = GraphSwitchCheckDefault2NOTValid2.Link( OSwitcha , IPrintEvena )
+ LSwitchaPrintEvena.AddCoord( 1 , 381 , 361 )
+ LSwitchaPrintEvena.AddCoord( 2 , 382 , 200 )
+
+ LSwitchaDefaulta = GraphSwitchCheckDefault2NOTValid2.Link( OSwitcha , IDefaulta )
+ LSwitchaDefaulta.AddCoord( 1 , 382 , 663 )
+ LSwitchaDefaulta.AddCoord( 2 , 382 , 199 )
+
+ LSwitchBranchPrintOddBranch = GraphSwitchCheckDefault2NOTValid2.Link( OSwitchBranch , IPrintOddBranch )
+
+ LSwitchBranchPrintEvenBranch = GraphSwitchCheckDefault2NOTValid2.Link( OSwitchBranch , IPrintEvenBranch )
+ LSwitchBranchPrintEvenBranch.AddCoord( 1 , 369 , 381 )
+ LSwitchBranchPrintEvenBranch.AddCoord( 2 , 369 , 219 )
+
+ LSwitchBranchDefaultBranch = GraphSwitchCheckDefault2NOTValid2.Link( OSwitchBranch , IDefaultBranch )
+ LSwitchBranchDefaultBranch.AddCoord( 1 , 370 , 683 )
+ LSwitchBranchDefaultBranch.AddCoord( 2 , 370 , 220 )
+
+ LSwitchdefaultDefaultGate = GraphSwitchCheckDefault2NOTValid2.Link( OSwitchdefault , IDefaultGate )
+ LSwitchdefaultDefaultGate.AddCoord( 1 , 363 , 707 )
+ LSwitchdefaultDefaultGate.AddCoord( 2 , 362 , 239 )
+
+ LEndOfSwitchaEndOfInitLoopSwitchIndex = GraphSwitchCheckDefault2NOTValid2.Link( OEndOfSwitcha , IEndOfInitLoopSwitchIndex )
+
+ LPutaaEndOfSwitcha = GraphSwitchCheckDefault2NOTValid2.Link( OPutaa , IEndOfSwitcha )
+
+ LPutBranchBranchEndOfSwitchBranch = GraphSwitchCheckDefault2NOTValid2.Link( OPutBranchBranch , IEndOfSwitchBranch )
+
+ # Input datas
+ IInitLoopSwitchIndex.Input( 0 )
+ IInitLoopSwitchMin.Input( -5 )
+ IInitLoopSwitchMax.Input( 10 )
+
+ # Output Ports of the graph
+ #OEndOfInitLoopSwitchIndex = EndOfInitLoopSwitch.GetOutPort( 'Index' )
+ #OEndOfInitLoopSwitchMin = EndOfInitLoopSwitch.GetOutPort( 'Min' )
+ #OEndOfInitLoopSwitchMax = EndOfInitLoopSwitch.GetOutPort( 'Max' )
+ return GraphSwitchCheckDefault2NOTValid2
+
+
+GraphSwitchCheckDefault2NOTValid2 = DefGraphSwitchCheckDefault2NOTValid2()
--- /dev/null
+<!DOCTYPE SuperGraph>
+<supergraph>
+<dataflow>
+<info-list>
+<node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>GraphSwitchCheckDefault2NOTValid2</node-name>
+ <kind>1</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>GraphSwitchCheckDefault2NOTValid2</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>InitLoopSwitch__Index</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>InitLoopSwitch__Min</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>InitLoopSwitch__Max</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>EndOfInitLoopSwitch__Index</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>EndOfInitLoopSwitch__Min</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>EndOfInitLoopSwitch__Max</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list/>
+ <creation-date>13/1/2005 - 12:21:43</creation-date>
+ <lastmodification-date>19/1/2005 - 12:17:7</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>JR</author>
+ <container>?</container>
+ <comment>?</comment>
+ <x-position>0</x-position>
+ <y-position>0</y-position> </node> </info-list>
+ <node-list>
+<node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>IsOdd</node-name>
+ <kind>3</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>IsOdd</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>IsOdd</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def IsOdd(a) : ]]></PyFunc>
+ <PyFunc><![CDATA[ print a,"IsOdd (GraphSwitch)" ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep( 1 ) ]]></PyFunc>
+ <PyFunc><![CDATA[ return a ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 12:17:7</creation-date>
+ <lastmodification-date>19/1/2005 - 12:17:7</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Python function</comment>
+ <x-position>415</x-position>
+ <y-position>7</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>IsEven</node-name>
+ <kind>3</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>IsEven</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>IsEven</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def IsEven(a) : ]]></PyFunc>
+ <PyFunc><![CDATA[ print a,"IsEven (GraphSwitch)" ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep( 1 ) ]]></PyFunc>
+ <PyFunc><![CDATA[ return a ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 12:17:7</creation-date>
+ <lastmodification-date>19/1/2005 - 12:17:7</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>421</x-position>
+ <y-position>438</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>PrintOdd</node-name>
+ <kind>3</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>PrintOdd</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>string</inParameter-type>
+ <inParameter-name>Branch</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>string</outParameter-type>
+ <outParameter-name>Branch</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>Print</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def Print(a,Branch) : ]]></PyFunc>
+ <PyFunc><![CDATA[ print "Print ",a,Branch ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
+ <PyFunc><![CDATA[ return Branch ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 12:17:7</creation-date>
+ <lastmodification-date>19/1/2005 - 12:17:7</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>415</x-position>
+ <y-position>130</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>PrintEven</node-name>
+ <kind>3</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>PrintEven</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>string</inParameter-type>
+ <inParameter-name>Branch</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>string</outParameter-type>
+ <outParameter-name>Branch</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>Print_1</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def Print_1(a,Branch) : ]]></PyFunc>
+ <PyFunc><![CDATA[ print "Print ",a,Branch ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
+ <PyFunc><![CDATA[ return Branch ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 12:17:7</creation-date>
+ <lastmodification-date>19/1/2005 - 12:17:7</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>423</x-position>
+ <y-position>289</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>EmptyNode</node-name>
+ <kind>3</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>EmptyNode</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>string</inParameter-type>
+ <inParameter-name>Branch</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>string</outParameter-type>
+ <outParameter-name>Branch</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>EmptyNode</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def EmptyNode(a,Branch) : ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
+ <PyFunc><![CDATA[ return a,Branch ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 12:17:7</creation-date>
+ <lastmodification-date>19/1/2005 - 12:17:7</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>652</x-position>
+ <y-position>110</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>Default</node-name>
+ <kind>3</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>Default</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>string</inParameter-type>
+ <inParameter-name>Branch</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>string</outParameter-type>
+ <outParameter-name>Branch</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>Default</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def Default(a,Branch) : ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
+ <PyFunc><![CDATA[ return a,Branch ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 12:17:7</creation-date>
+ <lastmodification-date>19/1/2005 - 12:17:7</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>421</x-position>
+ <y-position>592</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>InitLoopSwitch</node-name>
+ <kind>4</kind>
+ <coupled-node>EndOfInitLoopSwitch</coupled-node>
+ <service>
+<service-name>InitLoopSwitch</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Index</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Min</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Max</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Index</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Min</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Max</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>InitLoop</FuncName>
+ <PyFunc><![CDATA[def InitLoop(Index,Min,Max) : ]]></PyFunc>
+ <PyFunc><![CDATA[ Index = Max ]]></PyFunc>
+ <PyFunc><![CDATA[ return Index,Min,Max ]]></PyFunc> </PyFunction>
+ <PyFunction>
+<FuncName>MoreLoop</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def MoreLoop(Index,Min,Max) : ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
+ <PyFunc><![CDATA[ if Index >= Min : ]]></PyFunc>
+ <PyFunc><![CDATA[ DoLoop = 1 ]]></PyFunc>
+ <PyFunc><![CDATA[ else : ]]></PyFunc>
+ <PyFunc><![CDATA[ DoLoop = 0 ]]></PyFunc>
+ <PyFunc><![CDATA[ return DoLoop,Index,Min,Max ]]></PyFunc> </PyFunction>
+ <PyFunction>
+<FuncName>NextLoop</FuncName>
+ <PyFunc><![CDATA[def NextLoop(Index,Min,Max) : ]]></PyFunc>
+ <PyFunc><![CDATA[ Index = Index - 1 ]]></PyFunc>
+ <PyFunc><![CDATA[ return Index,Min,Max ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 12:17:7</creation-date>
+ <lastmodification-date>19/1/2005 - 12:17:7</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>10</x-position>
+ <y-position>129</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>EndOfInitLoopSwitch</node-name>
+ <kind>5</kind>
+ <coupled-node>InitLoopSwitch</coupled-node>
+ <service>
+<service-name>EndOfInitLoopSwitch</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Index</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Min</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Max</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Index</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Min</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Max</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>EndOfInitLoopSwitch</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def EndOfInitLoopSwitch(DoLoop,Index,Min,Max) : ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
+ <PyFunc><![CDATA[ return DoLoop,Index,Min,Max ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 12:17:7</creation-date>
+ <lastmodification-date>19/1/2005 - 12:17:7</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>1074</x-position>
+ <y-position>194</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>Switch</node-name>
+ <kind>6</kind>
+ <coupled-node>EndOfSwitch</coupled-node>
+ <service>
+<service-name>Switch</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Odd</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>int</outParameter-type>
+ <outParameter-name>Even</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>int</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>string</outParameter-type>
+ <outParameter-name>Branch</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>boolean</outParameter-type>
+ <outParameter-name>default</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>Switch</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def Switch(a) : ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
+ <PyFunc><![CDATA[ Branch = "Negative or null" ]]></PyFunc>
+ <PyFunc><![CDATA[ if a <= 0 : ]]></PyFunc>
+ <PyFunc><![CDATA[ return 0,0,a,Branch,1 ]]></PyFunc>
+ <PyFunc><![CDATA[ if ( a & 1 ) == 0 : ]]></PyFunc>
+ <PyFunc><![CDATA[ Branch = "Even" ]]></PyFunc>
+ <PyFunc><![CDATA[ else : ]]></PyFunc>
+ <PyFunc><![CDATA[ Branch = "Odd" ]]></PyFunc>
+ <PyFunc><![CDATA[ return a & 1,1-(a&1),a,Branch,0 ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 12:17:7</creation-date>
+ <lastmodification-date>19/1/2005 - 12:17:7</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>190</x-position>
+ <y-position>129</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>EndOfSwitch</node-name>
+ <kind>7</kind>
+ <coupled-node>Switch</coupled-node>
+ <service>
+<service-name>EndOfSwitch</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>string</inParameter-type>
+ <inParameter-name>Branch</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>EndOfSwitch</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def EndOfSwitch(a,Branch) : ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
+ <PyFunc><![CDATA[ return a ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 12:17:7</creation-date>
+ <lastmodification-date>19/1/2005 - 12:17:7</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>882</x-position>
+ <y-position>194</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>Puta</node-name>
+ <kind>3</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>Puta</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>Puta</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def Puta(a) : ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
+ <PyFunc><![CDATA[ return a ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 12:17:7</creation-date>
+ <lastmodification-date>19/1/2005 - 12:17:7</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>665</x-position>
+ <y-position>486</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>PutBranch</node-name>
+ <kind>3</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>PutBranch</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>string</inParameter-type>
+ <inParameter-name>Branch</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>string</outParameter-type>
+ <outParameter-name>Branch</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>PutBranch</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def PutBranch(Branch) : ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
+ <PyFunc><![CDATA[ return Branch ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>19/1/2005 - 12:17:7</creation-date>
+ <lastmodification-date>19/1/2005 - 12:17:7</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>662</x-position>
+ <y-position>613</y-position> </node> </node-list>
+ <link-list>
+<link>
+<fromnode-name>IsOdd</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>EmptyNode</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>646</x>
+ <y>78</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>IsEven</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>EndOfSwitch</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>PrintOdd</fromnode-name>
+ <fromserviceparameter-name>Branch</fromserviceparameter-name>
+ <tonode-name>EmptyNode</tonode-name>
+ <toserviceparameter-name>Branch</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>PrintEven</fromnode-name>
+ <fromserviceparameter-name>Branch</fromserviceparameter-name>
+ <tonode-name>EndOfSwitch</tonode-name>
+ <toserviceparameter-name>Branch</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>EmptyNode</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>EndOfSwitch</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>EmptyNode</fromnode-name>
+ <fromserviceparameter-name>Branch</fromserviceparameter-name>
+ <tonode-name>EndOfSwitch</tonode-name>
+ <toserviceparameter-name>Branch</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>Default</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>Puta</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>Default</fromnode-name>
+ <fromserviceparameter-name>Branch</fromserviceparameter-name>
+ <tonode-name>PutBranch</tonode-name>
+ <toserviceparameter-name>Branch</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>InitLoopSwitch</fromnode-name>
+ <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
+ <tonode-name>EndOfInitLoopSwitch</tonode-name>
+ <toserviceparameter-name>DoLoop</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>InitLoopSwitch</fromnode-name>
+ <fromserviceparameter-name>Index</fromserviceparameter-name>
+ <tonode-name>Switch</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>InitLoopSwitch</fromnode-name>
+ <fromserviceparameter-name>Min</fromserviceparameter-name>
+ <tonode-name>EndOfInitLoopSwitch</tonode-name>
+ <toserviceparameter-name>Min</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>InitLoopSwitch</fromnode-name>
+ <fromserviceparameter-name>Max</fromserviceparameter-name>
+ <tonode-name>EndOfInitLoopSwitch</tonode-name>
+ <toserviceparameter-name>Max</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>EndOfInitLoopSwitch</fromnode-name>
+ <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
+ <tonode-name>InitLoopSwitch</tonode-name>
+ <toserviceparameter-name>DoLoop</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>Odd</fromserviceparameter-name>
+ <tonode-name>IsOdd</tonode-name>
+ <toserviceparameter-name>Gate</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>401</x>
+ <y>101</y> </coord>
+ <coord>
+<x>401</x>
+ <y>160</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>Odd</fromserviceparameter-name>
+ <tonode-name>PrintOdd</tonode-name>
+ <toserviceparameter-name>Gate</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>401</x>
+ <y>245</y> </coord>
+ <coord>
+<x>401</x>
+ <y>159</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>Even</fromserviceparameter-name>
+ <tonode-name>IsEven</tonode-name>
+ <toserviceparameter-name>Gate</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>392</x>
+ <y>533</y> </coord>
+ <coord>
+<x>392</x>
+ <y>182</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>Even</fromserviceparameter-name>
+ <tonode-name>PrintEven</tonode-name>
+ <toserviceparameter-name>Gate</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>392</x>
+ <y>403</y> </coord>
+ <coord>
+<x>392</x>
+ <y>181</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>IsOdd</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>382</x>
+ <y>78</y> </coord>
+ <coord>
+<x>382</x>
+ <y>199</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>IsEven</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>381</x>
+ <y>509</y> </coord>
+ <coord>
+<x>382</x>
+ <y>200</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>PrintOdd</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>PrintEven</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>381</x>
+ <y>361</y> </coord>
+ <coord>
+<x>382</x>
+ <y>200</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>Default</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>382</x>
+ <y>663</y> </coord>
+ <coord>
+<x>382</x>
+ <y>199</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>Branch</fromserviceparameter-name>
+ <tonode-name>PrintOdd</tonode-name>
+ <toserviceparameter-name>Branch</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>Branch</fromserviceparameter-name>
+ <tonode-name>PrintEven</tonode-name>
+ <toserviceparameter-name>Branch</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>369</x>
+ <y>381</y> </coord>
+ <coord>
+<x>369</x>
+ <y>219</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>Branch</fromserviceparameter-name>
+ <tonode-name>Default</tonode-name>
+ <toserviceparameter-name>Branch</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>370</x>
+ <y>683</y> </coord>
+ <coord>
+<x>370</x>
+ <y>220</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>default</fromserviceparameter-name>
+ <tonode-name>Default</tonode-name>
+ <toserviceparameter-name>Gate</toserviceparameter-name>
+ <coord-list>
+<coord>
+<x>363</x>
+ <y>707</y> </coord>
+ <coord>
+<x>362</x>
+ <y>239</y> </coord> </coord-list> </link>
+ <link>
+<fromnode-name>EndOfSwitch</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>EndOfInitLoopSwitch</tonode-name>
+ <toserviceparameter-name>Index</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>Puta</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>EndOfSwitch</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>PutBranch</fromnode-name>
+ <fromserviceparameter-name>Branch</fromserviceparameter-name>
+ <tonode-name>EndOfSwitch</tonode-name>
+ <toserviceparameter-name>Branch</toserviceparameter-name>
+ <coord-list/> </link> </link-list>
+ <data-list>
+<data>
+<fromnode-name>GraphSwitchCheckDefault2NOTValid2</fromnode-name>
+ <fromserviceparameter-name>InitLoopSwitch__Index</fromserviceparameter-name>
+ <tonode-name>InitLoopSwitch</tonode-name>
+ <toserviceparameter-name>Index</toserviceparameter-name>
+ <data-value>
+<value-type>3</value-type>
+ <value>0</value> </data-value>
+ <coord-list/> </data>
+ <data>
+<fromnode-name>GraphSwitchCheckDefault2NOTValid2</fromnode-name>
+ <fromserviceparameter-name>InitLoopSwitch__Min</fromserviceparameter-name>
+ <tonode-name>InitLoopSwitch</tonode-name>
+ <toserviceparameter-name>Min</toserviceparameter-name>
+ <data-value>
+<value-type>3</value-type>
+ <value>-5</value> </data-value>
+ <coord-list/> </data>
+ <data>
+<fromnode-name>GraphSwitchCheckDefault2NOTValid2</fromnode-name>
+ <fromserviceparameter-name>InitLoopSwitch__Max</fromserviceparameter-name>
+ <tonode-name>InitLoopSwitch</tonode-name>
+ <toserviceparameter-name>Max</toserviceparameter-name>
+ <data-value>
+<value-type>3</value-type>
+ <value>10</value> </data-value>
+ <coord-list/> </data> </data-list> </dataflow></supergraph>
--- /dev/null
+
+# Generated python file of Graph GraphSwitch_1_1_1
+
+from SuperV import *
+
+# Graph creation of GraphSwitch_1_1_1
+def DefGraphSwitch_1_1_1() :
+ GraphSwitch_1_1_1 = Graph( 'GraphSwitch_1_1_1' )
+ GraphSwitch_1_1_1.SetName( 'GraphSwitch_1_1_1' )
+ GraphSwitch_1_1_1.SetAuthor( '' )
+ GraphSwitch_1_1_1.SetComment( '' )
+ GraphSwitch_1_1_1.Coords( 0 , 0 )
+
+ # Creation of Factory Nodes
+
+ # Creation of InLine Nodes
+ PyIsOdd = []
+ PyIsOdd.append( 'from time import * ' )
+ PyIsOdd.append( 'def IsOdd(a) : ' )
+ PyIsOdd.append( ' print a,"IsOdd (GraphSwitch)" ' )
+ PyIsOdd.append( ' sleep( 1 ) ' )
+ PyIsOdd.append( ' return a ' )
+ IsOdd = GraphSwitch_1_1_1.INode( 'IsOdd' , PyIsOdd )
+ IsOdd.SetName( 'IsOdd' )
+ IsOdd.SetAuthor( '' )
+ IsOdd.SetComment( 'Python function' )
+ IsOdd.Coords( 388 , 50 )
+ IIsOdda = IsOdd.InPort( 'a' , 'long' )
+ IIsOddGate = IsOdd.GetInPort( 'Gate' )
+ OIsOdda = IsOdd.OutPort( 'a' , 'long' )
+ OIsOddGate = IsOdd.GetOutPort( 'Gate' )
+
+ PyIsEven = []
+ PyIsEven.append( 'from time import * ' )
+ PyIsEven.append( 'def IsEven(a) : ' )
+ PyIsEven.append( ' print a,"IsEven (GraphSwitch)" ' )
+ PyIsEven.append( ' sleep( 1 ) ' )
+ PyIsEven.append( ' return a ' )
+ IsEven = GraphSwitch_1_1_1.INode( 'IsEven' , PyIsEven )
+ IsEven.SetName( 'IsEven' )
+ IsEven.SetAuthor( '' )
+ IsEven.SetComment( 'Compute Node' )
+ IsEven.Coords( 395 , 334 )
+ IIsEvena = IsEven.InPort( 'a' , 'long' )
+ IIsEvenGate = IsEven.GetInPort( 'Gate' )
+ OIsEvena = IsEven.OutPort( 'a' , 'long' )
+ OIsEvenGate = IsEven.GetOutPort( 'Gate' )
+
+ PyPrint = []
+ PyPrint.append( 'def Print(a,Branch) : ' )
+ PyPrint.append( ' print "Print ",Branch ' )
+ PyPrint.append( ' return a,Branch ' )
+ Print = GraphSwitch_1_1_1.INode( 'Print' , PyPrint )
+ Print.SetName( 'Print' )
+ Print.SetAuthor( '' )
+ Print.SetComment( 'Compute Node' )
+ Print.Coords( 639 , 63 )
+ IPrinta = Print.InPort( 'a' , 'long' )
+ IPrintBranch = Print.InPort( 'Branch' , 'string' )
+ IPrintGate = Print.GetInPort( 'Gate' )
+ OPrinta = Print.OutPort( 'a' , 'long' )
+ OPrintBranch = Print.OutPort( 'Branch' , 'string' )
+ OPrintGate = Print.GetOutPort( 'Gate' )
+
+ PyPrint_1 = []
+ PyPrint_1.append( 'def Print_1(a,Branch) : ' )
+ PyPrint_1.append( ' print "Print ",Branch ' )
+ PyPrint_1.append( ' return a,Branch ' )
+ Print_1 = GraphSwitch_1_1_1.INode( 'Print_1' , PyPrint_1 )
+ Print_1.SetName( 'Print_1' )
+ Print_1.SetAuthor( '' )
+ Print_1.SetComment( 'Compute Node' )
+ Print_1.Coords( 639 , 263 )
+ IPrint_1a = Print_1.InPort( 'a' , 'long' )
+ IPrint_1Branch = Print_1.InPort( 'Branch' , 'string' )
+ IPrint_1Gate = Print_1.GetInPort( 'Gate' )
+ OPrint_1a = Print_1.OutPort( 'a' , 'long' )
+ OPrint_1Branch = Print_1.OutPort( 'Branch' , 'string' )
+ OPrint_1Gate = Print_1.GetOutPort( 'Gate' )
+
+ # Creation of Loop Nodes
+ PyInitLoopSwitch = []
+ PyInitLoopSwitch.append( 'def InitLoop(Index,Min,Max) : ' )
+ PyInitLoopSwitch.append( ' Index = Max ' )
+ PyInitLoopSwitch.append( ' return Index,Min,Max ' )
+ PyMoreInitLoopSwitch = []
+ PyMoreInitLoopSwitch.append( 'def MoreLoop(Index,Min,Max) : ' )
+ PyMoreInitLoopSwitch.append( ' if Index >= Min : ' )
+ PyMoreInitLoopSwitch.append( ' DoLoop = 1 ' )
+ PyMoreInitLoopSwitch.append( ' else : ' )
+ PyMoreInitLoopSwitch.append( ' DoLoop = 0 ' )
+ PyMoreInitLoopSwitch.append( ' return DoLoop,Index,Min,Max ' )
+ PyNextInitLoopSwitch = []
+ PyNextInitLoopSwitch.append( 'def NextLoop(Index,Min,Max) : ' )
+ PyNextInitLoopSwitch.append( ' Index = Index - 1 ' )
+ PyNextInitLoopSwitch.append( ' return Index,Min,Max ' )
+ InitLoopSwitch,EndOfInitLoopSwitch = GraphSwitch_1_1_1.LNode( 'InitLoop' , PyInitLoopSwitch , 'MoreLoop' , PyMoreInitLoopSwitch , 'NextLoop' , PyNextInitLoopSwitch )
+ EndOfInitLoopSwitch.SetName( 'EndOfInitLoopSwitch' )
+ EndOfInitLoopSwitch.SetAuthor( '' )
+ EndOfInitLoopSwitch.SetComment( 'Compute Node' )
+ EndOfInitLoopSwitch.Coords( 1082 , 150 )
+ PyEndOfInitLoopSwitch = []
+ EndOfInitLoopSwitch.SetPyFunction( '' , PyEndOfInitLoopSwitch )
+ IInitLoopSwitchDoLoop = InitLoopSwitch.GetInPort( 'DoLoop' )
+ IInitLoopSwitchIndex = InitLoopSwitch.InPort( 'Index' , 'long' )
+ IInitLoopSwitchMin = InitLoopSwitch.InPort( 'Min' , 'long' )
+ IInitLoopSwitchMax = InitLoopSwitch.InPort( 'Max' , 'long' )
+ IInitLoopSwitchGate = InitLoopSwitch.GetInPort( 'Gate' )
+ OInitLoopSwitchDoLoop = InitLoopSwitch.GetOutPort( 'DoLoop' )
+ OInitLoopSwitchIndex = InitLoopSwitch.GetOutPort( 'Index' )
+ OInitLoopSwitchMin = InitLoopSwitch.GetOutPort( 'Min' )
+ OInitLoopSwitchMax = InitLoopSwitch.GetOutPort( 'Max' )
+ IEndOfInitLoopSwitchDoLoop = EndOfInitLoopSwitch.GetInPort( 'DoLoop' )
+ IEndOfInitLoopSwitchIndex = EndOfInitLoopSwitch.GetInPort( 'Index' )
+ IEndOfInitLoopSwitchMin = EndOfInitLoopSwitch.GetInPort( 'Min' )
+ IEndOfInitLoopSwitchMax = EndOfInitLoopSwitch.GetInPort( 'Max' )
+ IEndOfInitLoopSwitchGate = EndOfInitLoopSwitch.GetInPort( 'Gate' )
+ OEndOfInitLoopSwitchDoLoop = EndOfInitLoopSwitch.GetOutPort( 'DoLoop' )
+ OEndOfInitLoopSwitchIndex = EndOfInitLoopSwitch.GetOutPort( 'Index' )
+ OEndOfInitLoopSwitchMin = EndOfInitLoopSwitch.GetOutPort( 'Min' )
+ OEndOfInitLoopSwitchMax = EndOfInitLoopSwitch.GetOutPort( 'Max' )
+ OEndOfInitLoopSwitchGate = EndOfInitLoopSwitch.GetOutPort( 'Gate' )
+ InitLoopSwitch.SetName( 'InitLoopSwitch' )
+ InitLoopSwitch.SetAuthor( '' )
+ InitLoopSwitch.SetComment( 'Compute Node' )
+ InitLoopSwitch.Coords( 10 , 129 )
+
+ # Creation of Switch Nodes
+ PySwitch = []
+ PySwitch.append( 'from time import * ' )
+ PySwitch.append( 'def Switch(a) : ' )
+ PySwitch.append( ' Branch = 'Negative or null' ' )
+ PySwitch.append( ' if a <= 0 : ' )
+ PySwitch.append( ' return 0,0,a,Branch,1 ' )
+ PySwitch.append( ' if ( a & 1 ) == 0 : ' )
+ PySwitch.append( ' Branch = 'Even' ' )
+ PySwitch.append( ' else : ' )
+ PySwitch.append( ' Branch = 'Odd' ' )
+ PySwitch.append( ' sleep(1) ' )
+ PySwitch.append( ' return a & 1,1-(a&1),a,Branch,0 ' )
+ Switch,EndOfSwitch = GraphSwitch_1_1_1.SNode( 'Switch' , PySwitch )
+ EndOfSwitch.SetName( 'EndOfSwitch' )
+ EndOfSwitch.SetAuthor( '' )
+ EndOfSwitch.SetComment( 'Compute Node' )
+ EndOfSwitch.Coords( 880 , 150 )
+ PyEndOfSwitch = []
+ EndOfSwitch.SetPyFunction( 'EndSwitch_1' , PyEndOfSwitch )
+ IEndOfSwitcha = EndOfSwitch.InPort( 'a' , 'long' )
+ IEndOfSwitchDefault = EndOfSwitch.GetInPort( 'Default' )
+ OEndOfSwitcha = EndOfSwitch.OutPort( 'a' , 'long' )
+ OEndOfSwitchGate = EndOfSwitch.GetOutPort( 'Gate' )
+ Switch.SetName( 'Switch' )
+ Switch.SetAuthor( '' )
+ Switch.SetComment( 'Compute Node' )
+ Switch.Coords( 195 , 129 )
+ ISwitcha = Switch.InPort( 'a' , 'long' )
+ ISwitchGate = Switch.GetInPort( 'Gate' )
+ OSwitchOdd = Switch.OutPort( 'Odd' , 'long' )
+ OSwitchEven = Switch.OutPort( 'Even' , 'int' )
+ OSwitcha = Switch.OutPort( 'a' , 'int' )
+ OSwitchBranch = Switch.OutPort( 'Branch' , 'string' )
+ OSwitchdefault = Switch.OutPort( 'default' , 'boolean' )
+ OSwitchDefault = Switch.GetOutPort( 'Default' )
+
+ # Creation of Links
+ LIsOddaPrinta = GraphSwitch_1_1_1.Link( OIsOdda , IPrinta )
+
+ LInitLoopSwitchIndexSwitcha = GraphSwitch_1_1_1.Link( OInitLoopSwitchIndex , ISwitcha )
+
+ LInitLoopSwitchMinEndOfInitLoopSwitchMin = GraphSwitch_1_1_1.Link( OInitLoopSwitchMin , IEndOfInitLoopSwitchMin )
+
+ LInitLoopSwitchMaxEndOfInitLoopSwitchMax = GraphSwitch_1_1_1.Link( OInitLoopSwitchMax , IEndOfInitLoopSwitchMax )
+
+ LIsEvenaPrint_1a = GraphSwitch_1_1_1.Link( OIsEvena , IPrint_1a )
+
+ LSwitchOddIsOddGate = GraphSwitch_1_1_1.Link( OSwitchOdd , IIsOddGate )
+
+ LSwitchEvenIsEvenGate = GraphSwitch_1_1_1.Link( OSwitchEven , IIsEvenGate )
+
+ LSwitchaIsOdda = GraphSwitch_1_1_1.Link( OSwitcha , IIsOdda )
+
+ LSwitchaIsEvena = GraphSwitch_1_1_1.Link( OSwitcha , IIsEvena )
+
+ LSwitchBranchPrintBranch = GraphSwitch_1_1_1.Link( OSwitchBranch , IPrintBranch )
+
+ LSwitchBranchPrint_1Branch = GraphSwitch_1_1_1.Link( OSwitchBranch , IPrint_1Branch )
+
+ LSwitchDefaultEndOfSwitchDefault = GraphSwitch_1_1_1.Link( OSwitchDefault , IEndOfSwitchDefault )
+
+ LEndOfSwitchaEndOfInitLoopSwitchIndex = GraphSwitch_1_1_1.Link( OEndOfSwitcha , IEndOfInitLoopSwitchIndex )
+
+ LPrintaEndOfSwitcha = GraphSwitch_1_1_1.Link( OPrinta , IEndOfSwitcha )
+
+ LPrint_1aEndOfSwitcha = GraphSwitch_1_1_1.Link( OPrint_1a , IEndOfSwitcha )
+
+ # Input datas
+ IInitLoopSwitchIndex.Input( 0 )
+ IInitLoopSwitchMin.Input( -5 )
+ IInitLoopSwitchMax.Input( 10 )
+
+ # Output Ports of the graph
+ #OEndOfInitLoopSwitchIndex = EndOfInitLoopSwitch.GetOutPort( 'Index' )
+ #OEndOfInitLoopSwitchMin = EndOfInitLoopSwitch.GetOutPort( 'Min' )
+ #OEndOfInitLoopSwitchMax = EndOfInitLoopSwitch.GetOutPort( 'Max' )
+ #OSwitchdefault = Switch.GetOutPort( 'default' )
+ #OPrintBranch = Print.GetOutPort( 'Branch' )
+ #OPrint_1Branch = Print_1.GetOutPort( 'Branch' )
+ return GraphSwitch_1_1_1
+
+
+GraphSwitch_1_1_1 = DefGraphSwitch_1_1_1()
--- /dev/null
+<!DOCTYPE SuperGraph>
+<supergraph>
+<dataflow>
+<info-list>
+<node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>GraphSwitch_1_1_1</node-name>
+ <kind>1</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>GraphSwitch_1_1_1</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>InitLoopSwitch__Index</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>InitLoopSwitch__Min</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>InitLoopSwitch__Max</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>EndOfInitLoopSwitch__Index</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>EndOfInitLoopSwitch__Min</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>EndOfInitLoopSwitch__Max</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>boolean</outParameter-type>
+ <outParameter-name>Switch__default</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>string</outParameter-type>
+ <outParameter-name>Print__Branch</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>string</outParameter-type>
+ <outParameter-name>Print_1__Branch</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list/>
+ <creation-date>1/10/2003 - 17:23:54</creation-date>
+ <lastmodification-date>20/1/2005 - 12:54:59</lastmodification-date>
+ <editor-release>1.05</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>?</comment>
+ <x-position>0</x-position>
+ <y-position>0</y-position> </node> </info-list>
+ <node-list>
+<node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>IsOdd</node-name>
+ <kind>3</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>IsOdd</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>IsOdd</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def IsOdd(a) : ]]></PyFunc>
+ <PyFunc><![CDATA[ print a,"IsOdd (GraphSwitch)" ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep( 1 ) ]]></PyFunc>
+ <PyFunc><![CDATA[ return a ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>20/1/2005 - 12:54:59</creation-date>
+ <lastmodification-date>20/1/2005 - 12:54:59</lastmodification-date>
+ <editor-release>1.05</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Python function</comment>
+ <x-position>388</x-position>
+ <y-position>50</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>InitLoopSwitch</node-name>
+ <kind>4</kind>
+ <coupled-node>EndOfInitLoopSwitch</coupled-node>
+ <service>
+<service-name>InitLoopSwitch</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Index</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Min</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Max</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Index</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Min</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Max</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>InitLoop</FuncName>
+ <PyFunc><![CDATA[def InitLoop(Index,Min,Max) : ]]></PyFunc>
+ <PyFunc><![CDATA[ Index = Max ]]></PyFunc>
+ <PyFunc><![CDATA[ return Index,Min,Max ]]></PyFunc> </PyFunction>
+ <PyFunction>
+<FuncName>MoreLoop</FuncName>
+ <PyFunc><![CDATA[def MoreLoop(Index,Min,Max) : ]]></PyFunc>
+ <PyFunc><![CDATA[ if Index >= Min : ]]></PyFunc>
+ <PyFunc><![CDATA[ DoLoop = 1 ]]></PyFunc>
+ <PyFunc><![CDATA[ else : ]]></PyFunc>
+ <PyFunc><![CDATA[ DoLoop = 0 ]]></PyFunc>
+ <PyFunc><![CDATA[ return DoLoop,Index,Min,Max ]]></PyFunc> </PyFunction>
+ <PyFunction>
+<FuncName>NextLoop</FuncName>
+ <PyFunc><![CDATA[def NextLoop(Index,Min,Max) : ]]></PyFunc>
+ <PyFunc><![CDATA[ Index = Index - 1 ]]></PyFunc>
+ <PyFunc><![CDATA[ return Index,Min,Max ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>20/1/2005 - 12:54:59</creation-date>
+ <lastmodification-date>20/1/2005 - 12:54:59</lastmodification-date>
+ <editor-release>1.05</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>10</x-position>
+ <y-position>129</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>EndOfInitLoopSwitch</node-name>
+ <kind>5</kind>
+ <coupled-node>InitLoopSwitch</coupled-node>
+ <service>
+<service-name>EndOfInitLoopSwitch</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Index</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Min</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>Max</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Index</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Min</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Max</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>?</FuncName>
+ <PyFunc><![CDATA[?]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>20/1/2005 - 12:54:59</creation-date>
+ <lastmodification-date>20/1/2005 - 12:54:59</lastmodification-date>
+ <editor-release>1.05</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>1082</x-position>
+ <y-position>150</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>IsEven</node-name>
+ <kind>3</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>IsEven</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>IsEven</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def IsEven(a) : ]]></PyFunc>
+ <PyFunc><![CDATA[ print a,"IsEven (GraphSwitch)" ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep( 1 ) ]]></PyFunc>
+ <PyFunc><![CDATA[ return a ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>20/1/2005 - 12:54:59</creation-date>
+ <lastmodification-date>20/1/2005 - 12:54:59</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>395</x-position>
+ <y-position>334</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>Switch</node-name>
+ <kind>6</kind>
+ <coupled-node>EndOfSwitch</coupled-node>
+ <service>
+<service-name>Switch</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>Odd</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>int</outParameter-type>
+ <outParameter-name>Even</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>int</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>string</outParameter-type>
+ <outParameter-name>Branch</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>boolean</outParameter-type>
+ <outParameter-name>default</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>Switch</FuncName>
+ <PyFunc><![CDATA[from time import * ]]></PyFunc>
+ <PyFunc><![CDATA[def Switch(a) : ]]></PyFunc>
+ <PyFunc><![CDATA[ Branch = 'Negative or null' ]]></PyFunc>
+ <PyFunc><![CDATA[ if a <= 0 : ]]></PyFunc>
+ <PyFunc><![CDATA[ return 0,0,a,Branch,1 ]]></PyFunc>
+ <PyFunc><![CDATA[ if ( a & 1 ) == 0 : ]]></PyFunc>
+ <PyFunc><![CDATA[ Branch = 'Even' ]]></PyFunc>
+ <PyFunc><![CDATA[ else : ]]></PyFunc>
+ <PyFunc><![CDATA[ Branch = 'Odd' ]]></PyFunc>
+ <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
+ <PyFunc><![CDATA[ return a & 1,1-(a&1),a,Branch,0 ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>20/1/2005 - 12:54:59</creation-date>
+ <lastmodification-date>20/1/2005 - 12:54:59</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>195</x-position>
+ <y-position>129</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>EndOfSwitch</node-name>
+ <kind>7</kind>
+ <coupled-node>Switch</coupled-node>
+ <service>
+<service-name>EndOfSwitch</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>EndSwitch_1</FuncName>
+ <PyFunc><![CDATA[?]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>20/1/2005 - 12:54:59</creation-date>
+ <lastmodification-date>20/1/2005 - 12:54:59</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>880</x-position>
+ <y-position>150</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>Print</node-name>
+ <kind>3</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>Print</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>string</inParameter-type>
+ <inParameter-name>Branch</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>string</outParameter-type>
+ <outParameter-name>Branch</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>Print</FuncName>
+ <PyFunc><![CDATA[def Print(a,Branch) : ]]></PyFunc>
+ <PyFunc><![CDATA[ print "Print ",Branch ]]></PyFunc>
+ <PyFunc><![CDATA[ return a,Branch ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>20/1/2005 - 12:54:59</creation-date>
+ <lastmodification-date>20/1/2005 - 12:54:59</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>639</x-position>
+ <y-position>63</y-position> </node>
+ <node>
+<component-name>?</component-name>
+ <interface-name>?</interface-name>
+ <node-name>Print_1</node-name>
+ <kind>3</kind>
+ <coupled-node>?</coupled-node>
+ <service>
+<service-name>Print_1</service-name>
+ <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+ <inParameter-name>a</inParameter-name> </inParameter>
+ <inParameter>
+<inParameter-type>string</inParameter-type>
+ <inParameter-name>Branch</inParameter-name> </inParameter> </inParameter-list>
+ <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+ <outParameter-name>a</outParameter-name> </outParameter>
+ <outParameter>
+<outParameter-type>string</outParameter-type>
+ <outParameter-name>Branch</outParameter-name> </outParameter> </outParameter-list> </service>
+ <DataStream-list/>
+ <PyFunction-list>
+<PyFunction>
+<FuncName>Print_1</FuncName>
+ <PyFunc><![CDATA[def Print_1(a,Branch) : ]]></PyFunc>
+ <PyFunc><![CDATA[ print "Print ",Branch ]]></PyFunc>
+ <PyFunc><![CDATA[ return a,Branch ]]></PyFunc> </PyFunction> </PyFunction-list>
+ <creation-date>20/1/2005 - 12:54:59</creation-date>
+ <lastmodification-date>20/1/2005 - 12:54:59</lastmodification-date>
+ <editor-release>2.0</editor-release>
+ <author>?</author>
+ <container>?</container>
+ <comment>Compute Node</comment>
+ <x-position>639</x-position>
+ <y-position>263</y-position> </node> </node-list>
+ <link-list>
+<link>
+<fromnode-name>IsOdd</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>Print</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>InitLoopSwitch</fromnode-name>
+ <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
+ <tonode-name>EndOfInitLoopSwitch</tonode-name>
+ <toserviceparameter-name>DoLoop</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>InitLoopSwitch</fromnode-name>
+ <fromserviceparameter-name>Index</fromserviceparameter-name>
+ <tonode-name>Switch</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>InitLoopSwitch</fromnode-name>
+ <fromserviceparameter-name>Min</fromserviceparameter-name>
+ <tonode-name>EndOfInitLoopSwitch</tonode-name>
+ <toserviceparameter-name>Min</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>InitLoopSwitch</fromnode-name>
+ <fromserviceparameter-name>Max</fromserviceparameter-name>
+ <tonode-name>EndOfInitLoopSwitch</tonode-name>
+ <toserviceparameter-name>Max</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>EndOfInitLoopSwitch</fromnode-name>
+ <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
+ <tonode-name>InitLoopSwitch</tonode-name>
+ <toserviceparameter-name>DoLoop</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>IsEven</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>Print_1</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>Odd</fromserviceparameter-name>
+ <tonode-name>IsOdd</tonode-name>
+ <toserviceparameter-name>Gate</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>Even</fromserviceparameter-name>
+ <tonode-name>IsEven</tonode-name>
+ <toserviceparameter-name>Gate</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>IsOdd</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>IsEven</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>Branch</fromserviceparameter-name>
+ <tonode-name>Print</tonode-name>
+ <toserviceparameter-name>Branch</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>Branch</fromserviceparameter-name>
+ <tonode-name>Print_1</tonode-name>
+ <toserviceparameter-name>Branch</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>Switch</fromnode-name>
+ <fromserviceparameter-name>Default</fromserviceparameter-name>
+ <tonode-name>EndOfSwitch</tonode-name>
+ <toserviceparameter-name>Default</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>EndOfSwitch</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>EndOfInitLoopSwitch</tonode-name>
+ <toserviceparameter-name>Index</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>Print</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>EndOfSwitch</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list/> </link>
+ <link>
+<fromnode-name>Print_1</fromnode-name>
+ <fromserviceparameter-name>a</fromserviceparameter-name>
+ <tonode-name>EndOfSwitch</tonode-name>
+ <toserviceparameter-name>a</toserviceparameter-name>
+ <coord-list/> </link> </link-list>
+ <data-list>
+<data>
+<fromnode-name>GraphSwitch_1_1_1</fromnode-name>
+ <fromserviceparameter-name>InitLoopSwitch__Index</fromserviceparameter-name>
+ <tonode-name>InitLoopSwitch</tonode-name>
+ <toserviceparameter-name>Index</toserviceparameter-name>
+ <data-value>
+<value-type>3</value-type>
+ <value>0</value> </data-value>
+ <coord-list/> </data>
+ <data>
+<fromnode-name>GraphSwitch_1_1_1</fromnode-name>
+ <fromserviceparameter-name>InitLoopSwitch__Min</fromserviceparameter-name>
+ <tonode-name>InitLoopSwitch</tonode-name>
+ <toserviceparameter-name>Min</toserviceparameter-name>
+ <data-value>
+<value-type>3</value-type>
+ <value>-5</value> </data-value>
+ <coord-list/> </data>
+ <data>
+<fromnode-name>GraphSwitch_1_1_1</fromnode-name>
+ <fromserviceparameter-name>InitLoopSwitch__Max</fromserviceparameter-name>
+ <tonode-name>InitLoopSwitch</tonode-name>
+ <toserviceparameter-name>Max</toserviceparameter-name>
+ <data-value>
+<value-type>3</value-type>
+ <value>10</value> </data-value>
+ <coord-list/> </data> </data-list> </dataflow></supergraph>