From 6cd48740c6c534d0749c59e432a05436c5deb855 Mon Sep 17 00:00:00 2001 From: Gilles DAVID Date: Fri, 31 Mar 2017 11:30:05 +0200 Subject: [PATCH] Merge Python 3 porting. --- Superv/Graphs/GeomGraph.xml | 519 --- Superv/Graphs/GeomGraphGates.xml | 694 ---- Superv/Graphs/GeomGraphGates_py.xml | 770 ----- Superv/Graphs/GeomGraph_py.xml | 576 ---- Superv/Graphs/GraphAdd.xml | 115 - Superv/Graphs/GraphBadInputInLoop.xml | 381 --- Superv/Graphs/GraphBadInputInLoop1.xml | 381 --- Superv/Graphs/GraphBadInputInLoop2.xml | 384 --- Superv/Graphs/GraphBadInputInLoop3.xml | 390 --- Superv/Graphs/GraphBadOutputOfLoop.xml | 387 --- Superv/Graphs/GraphBadOutputOfLoop1.xml | 381 --- Superv/Graphs/GraphBadOutputOfLoop2.xml | 381 --- Superv/Graphs/GraphBugEditor.xml | 230 -- Superv/Graphs/GraphContainer.xml | 387 --- Superv/Graphs/GraphConvertBoolCheck.xml | 218 -- Superv/Graphs/GraphConvertBoolStringCheck.xml | 218 -- Superv/Graphs/GraphConvertCharCheck.xml | 218 -- Superv/Graphs/GraphConvertCharStringCheck.xml | 218 -- Superv/Graphs/GraphConvertDoubleCheck.xml | 391 --- .../Graphs/GraphConvertDoubleStringCheck.xml | 218 -- Superv/Graphs/GraphConvertFloatCheck.xml | 219 -- .../Graphs/GraphConvertFloatStringCheck.xml | 218 -- Superv/Graphs/GraphConvertIORCheck.xml | 257 -- Superv/Graphs/GraphConvertLongCheck.xml | 219 -- Superv/Graphs/GraphConvertLongStringCheck.xml | 218 -- Superv/Graphs/GraphConvertObjRefCheck.xml | 323 -- .../GraphConvertObjRefCheckNotCompatible.xml | 287 -- Superv/Graphs/GraphConvertShortCheck.xml | 219 -- .../Graphs/GraphConvertShortStringCheck.xml | 218 -- .../Graphs/GraphConvertStringStringCheck.xml | 218 -- Superv/Graphs/GraphCpuUsed.xml | 362 --- Superv/Graphs/GraphEditGraphSwitchs_1.xml | 516 --- Superv/Graphs/GraphEditGraphSwitchs_2.xml | 519 --- Superv/Graphs/GraphEditGraphSwitchs_3.xml | 525 --- Superv/Graphs/GraphEditGraphSwitchs_4.xml | 522 --- Superv/Graphs/GraphEditGraphSwitchs_5.xml | 498 --- Superv/Graphs/GraphEmbeddedComponents.xml | 484 --- .../Graphs/GraphEmbeddedComponentsCrash.xml | 498 --- .../Graphs/GraphEmbeddedComponentsCrash1.xml | 484 --- Superv/Graphs/GraphEmptyInLinesTypesCheck.xml | 544 ---- Superv/Graphs/GraphEssai.xml | 320 -- Superv/Graphs/GraphEssai1.xml | 264 -- Superv/Graphs/GraphEssai2.xml | 267 -- Superv/Graphs/GraphEssai3.xml | 387 --- Superv/Graphs/GraphFactorial.xml | 122 - Superv/Graphs/GraphGOTO.xml | 747 ----- Superv/Graphs/GraphGOTO1.xml | 721 ----- Superv/Graphs/GraphGOTOAborted.xml | 724 ----- Superv/Graphs/GraphGOTOAddMemory.xml | 182 -- Superv/Graphs/GraphGOTOMemory.xml | 114 - Superv/Graphs/GraphGeomEssai.xml | 359 --- Superv/Graphs/GraphGeomEssaiGates.xml | 477 --- Superv/Graphs/GraphGeomEssaiGates_py.xml | 511 --- Superv/Graphs/GraphGeomEssai_py.xml | 387 --- Superv/Graphs/GraphImportSalome.xml | 83 - Superv/Graphs/GraphInLines.xml | 228 -- Superv/Graphs/GraphInLinesParall.xml | 239 -- Superv/Graphs/GraphInLinesTypesCheck.xml | 559 ---- Superv/Graphs/GraphInLinesUnValid.xml | 222 -- Superv/Graphs/GraphInconsistencyTypes.xml | 137 - Superv/Graphs/GraphInputInLoop.xml | 395 --- Superv/Graphs/GraphLoop.xml | 260 -- Superv/Graphs/GraphLoop1.xml | 330 -- Superv/Graphs/GraphLoop2.xml | 351 -- Superv/Graphs/GraphLoopAddMemory.xml | 314 -- Superv/Graphs/GraphLoopDoWhile.xml | 192 -- Superv/Graphs/GraphLoopGates.xml | 543 ---- Superv/Graphs/GraphLoopGatesNOTValid.xml | 537 ---- Superv/Graphs/GraphLoopMacroNodes.xml | 1092 ------- Superv/Graphs/GraphLoopMacroNodesOutput.xml | 1656 ---------- Superv/Graphs/GraphLoopMemory.xml | 258 -- Superv/Graphs/GraphLoopPyAddAddMemory.xml | 365 --- Superv/Graphs/GraphLoopSwitch.xml | 403 --- Superv/Graphs/GraphLoopSwitchDefault.xml | 359 --- .../Graphs/GraphLoopSwitchDefaultAborted.xml | 397 --- Superv/Graphs/GraphLoopSwitchGateDefault.xml | 409 --- .../GraphLoopSwitchGatesDefaultNOTValid.xml | 415 --- Superv/Graphs/GraphLoopSwitchOddEven.xml | 400 --- Superv/Graphs/GraphLoopSwitchOfSwitch.xml | 619 ---- Superv/Graphs/GraphLoopSwitchOfSwitch1.xml | 613 ---- .../Graphs/GraphLoopSwitchOfSwitchAborted.xml | 598 ---- .../GraphLoopSwitchOfSwitchNOTValid.xml | 616 ---- Superv/Graphs/GraphLoopSwitchs.xml | 588 ---- Superv/Graphs/GraphLoopSwitchsAborted.xml | 576 ---- Superv/Graphs/GraphLoopSwitchsBranches.xml | 715 ----- ...GraphLoopSwitchsBranchesDefaultAborted.xml | 837 ----- .../GraphLoopSwitchsBranchesdefault.xml | 849 ----- Superv/Graphs/GraphLoopSwitchsNOTValid.xml | 582 ---- Superv/Graphs/GraphLoopTwoBranches.xml | 790 ----- Superv/Graphs/GraphLoopWhile.xml | 191 -- Superv/Graphs/GraphLoopsCoupled.xml | 576 ---- Superv/Graphs/GraphLoopsGates.xml | 718 ----- .../Graphs/GraphLoopsStupidCoupledSwitchs.xml | 729 ----- Superv/Graphs/GraphMacroNodes.xml | 2811 ----------------- Superv/Graphs/GraphMacroNodes1.xml | 617 ---- Superv/Graphs/GraphNoEqualInPortsNumber.xml | 118 - Superv/Graphs/GraphNoInputData.xml | 127 - Superv/Graphs/GraphNonVoidEndLoop.xml | 266 -- .../Graphs/GraphNotClosedChainInsideLoop.xml | 456 --- .../GraphNotClosedChainInsideSwitch.xml | 451 --- Superv/Graphs/GraphObjRef.xml | 390 --- Superv/Graphs/GraphObjRefOMNIORB4.xml | 648 ---- Superv/Graphs/GraphPyFunctions.xml | 674 ---- Superv/Graphs/GraphPythonSyntaxError.xml | 136 - Superv/Graphs/GraphSIGFPE.xml | 106 - Superv/Graphs/GraphSIGFPEPython.xml | 77 - Superv/Graphs/GraphSIGSEGV.xml | 76 - Superv/Graphs/GraphSIGSEGVPython.xml | 77 - Superv/Graphs/GraphStream.xml | 467 --- Superv/Graphs/GraphStreamInLines.xml | 532 ---- Superv/Graphs/GraphStreamInLines_1.cpl | 77 - Superv/Graphs/GraphStreamTopologies.xml | 478 --- Superv/Graphs/GraphStreamTopologies_1.cpl | 68 - Superv/Graphs/GraphStreamTopologies_2.cpl | 54 - Superv/Graphs/GraphStreamTopology.xml | 480 --- Superv/Graphs/GraphStreamTopology_1.cpl | 101 - Superv/Graphs/GraphStream_1.cpl | 45 - Superv/Graphs/GraphStream_2.cpl | 33 - Superv/Graphs/GraphStream_3.cpl | 31 - Superv/Graphs/GraphStreams.xml | 996 ------ Superv/Graphs/GraphStreams_1.cpl | 55 - Superv/Graphs/GraphStreams_2.cpl | 55 - Superv/Graphs/GraphSub.xml | 107 - Superv/Graphs/GraphSwitch.xml | 367 --- Superv/Graphs/GraphSwitch1.xml | 450 --- Superv/Graphs/GraphSwitch2.xml | 405 --- Superv/Graphs/GraphSwitchBranchGates.xml | 374 --- Superv/Graphs/GraphSwitchBranchGates1.xml | 380 --- Superv/Graphs/GraphSwitchBugAborted.xml | 368 --- Superv/Graphs/GraphSwitchBugDefault.xml | 375 --- Superv/Graphs/GraphSwitchCheck.xml | 651 ---- Superv/Graphs/GraphSwitchCheckBranch.xml | 499 --- Superv/Graphs/GraphSwitchCheckBranch1.xml | 561 ---- .../Graphs/GraphSwitchCheckBranch1Default.xml | 564 ---- .../GraphSwitchCheckBranch1NoDefault.xml | 555 ---- .../GraphSwitchCheckBranch2NOTValid.xml | 571 ---- Superv/Graphs/GraphSwitchCheckDefault.xml | 651 ---- Superv/Graphs/GraphSwitchCheckDefault1.xml | 734 ----- .../GraphSwitchCheckDefault1NOTValid.xml | 731 ----- Superv/Graphs/GraphSwitchCheckDefault2.xml | 810 ----- .../GraphSwitchCheckDefault2NOTValid.xml | 822 ----- .../GraphSwitchCheckDefault2NOTValid1.xml | 728 ----- .../GraphSwitchCheckDefault2NOTValid2.xml | 822 ----- Superv/Graphs/GraphSwitchCheckNoDefault2.xml | 804 ----- Superv/Graphs/GraphSwitchCrash.xml | 690 ---- Superv/Graphs/GraphSwitchErrExec.xml | 408 --- Superv/Graphs/GraphSwitchExecutable.xml | 374 --- Superv/Graphs/GraphSwitchGates.xml | 377 --- Superv/Graphs/GraphSwitchGatesDefault.xml | 384 --- .../GraphSwitchGatesNoDefaultAborted.xml | 378 --- .../Graphs/GraphSwitchGatesdefaultBranch.xml | 422 --- Superv/Graphs/GraphSwitchGatesdefault_.xml | 384 --- Superv/Graphs/GraphSwitchManyCases.xml | 679 ---- .../Graphs/GraphSwitchManyCasesNOTValid.xml | 590 ---- Superv/Graphs/GraphSwitchNOTExecutable.xml | 367 --- Superv/Graphs/GraphSwitchNOTExecutable1.xml | 373 --- Superv/Graphs/GraphSwitchNOTExecutable2.xml | 376 --- Superv/Graphs/GraphSwitchOutput.xml | 547 ---- Superv/Graphs/GraphSwitchOutputNOTValid.xml | 523 --- Superv/Graphs/GraphSwitchs.xml | 862 ----- Superv/Graphs/GraphSyrControl.xml | 719 ----- Superv/Graphs/GraphSyrControl1.xml | 630 ---- Superv/Graphs/GraphSyrControlAborted.xml | 706 ----- Superv/Graphs/GraphSyrControlAve.xml | 1121 ------- Superv/Graphs/GraphSyrControlAveAborted.xml | 1130 ------- .../Graphs/GraphSyrControlAveExecutable.xml | 1136 ------- Superv/Graphs/GraphSyrControlAveNOTValid.xml | 1130 ------- Superv/Graphs/GraphSyrControlAveValid.xml | 1127 ------- Superv/Graphs/GraphSyrControlDefault.xml | 695 ---- Superv/Graphs/GraphSyrControlGUI.xml | 791 ----- Superv/Graphs/GraphTwoLoops.xml | 344 -- Superv/Graphs/GraphTwoLoops1.xml | 338 -- Superv/Graphs/GraphTypesCheck.xml | 482 --- Superv/Graphs/GraphUnValid.xml | 277 -- Superv/Graphs/GraphUndefinedSymbol.xml | 76 - Superv/Graphs/GraphVoidMoreLoop.xml | 262 -- .../Graphs/GraphWrongContainerOrComponent.xml | 168 - Superv/Graphs/GraphWrongPythonFunctions.xml | 405 --- Superv/Graphs/Graphs.xml | 476 --- Superv/Graphs/Loop.xml | 329 -- Superv/Graphs/MacroWithGeom.xml | 673 ---- Superv/Graphs/MacroWithGeomGates.xml | 872 ----- Superv/Graphs/MacroWithGeomGates_py.xml | 965 ------ Superv/Graphs/MacroWithGeom_py.xml | 730 ----- Superv/Graphs/NewGraphEssai.xml | 287 -- Superv/Graphs/NewGraphGeomEssai.xml | 327 -- Superv/Graphs/NewGraphGeomEssaiGates.xml | 433 --- Superv/Graphs/NewGraphGeomEssaiGates_py.xml | 458 --- Superv/Graphs/NewGraphGeomEssai_py.xml | 350 -- Superv/Graphs/SyrStruct.xml | 1193 ------- Superv/Graphs/TestSupervMedfieldLoopFori.xml | 464 --- .../Graphs/TestSupervMedfieldLoopForiVisu.xml | 562 ---- Superv/Graphs/dataflow_calculator_example.xml | 329 -- Superv/Graphs/newsupervisionexample.xml | 310 -- Superv/Graphs/test_events.xml | 190 -- Superv/Graphs/test_superv_basic_loop.xml | 327 -- Superv/Graphs/testvisu20.xml | 516 --- Superv/Graphs/testvisu20_multi.xml | 825 ----- Superv/Python/GeomGraph.py | 177 -- Superv/Python/GeomGraphGates.py | 191 -- Superv/Python/GeomGraphGates_py.py | 231 -- Superv/Python/GeomGraph_py.py | 217 -- Superv/Python/GraphAdd.py | 60 - Superv/Python/GraphBadInputInLoop.py | 173 - Superv/Python/GraphBadInputInLoop1.py | 173 - Superv/Python/GraphBadInputInLoop2.py | 174 - Superv/Python/GraphBadInputInLoop3.py | 178 -- Superv/Python/GraphBadOutputOfLoop.py | 177 -- Superv/Python/GraphBadOutputOfLoop1.py | 173 - Superv/Python/GraphBadOutputOfLoop2.py | 173 - Superv/Python/GraphBugEditor.py | 118 - Superv/Python/GraphContainer.py | 112 - Superv/Python/GraphConvertBoolCheck.py | 85 - Superv/Python/GraphConvertBoolStringCheck.py | 85 - Superv/Python/GraphConvertCharCheck.py | 85 - Superv/Python/GraphConvertCharStringCheck.py | 85 - Superv/Python/GraphConvertDoubleCheck.py | 133 - .../Python/GraphConvertDoubleStringCheck.py | 85 - Superv/Python/GraphConvertFloatCheck.py | 86 - Superv/Python/GraphConvertFloatStringCheck.py | 85 - Superv/Python/GraphConvertIORCheck.py | 100 - Superv/Python/GraphConvertLongCheck.py | 86 - Superv/Python/GraphConvertLongStringCheck.py | 85 - Superv/Python/GraphConvertObjRefCheck.py | 131 - .../GraphConvertObjRefCheckNotCompatible.py | 133 - Superv/Python/GraphConvertShortCheck.py | 86 - Superv/Python/GraphConvertShortStringCheck.py | 85 - .../Python/GraphConvertStringStringCheck.py | 85 - Superv/Python/GraphCpuUsed.py | 172 - Superv/Python/GraphEditGraphSwitchs.py | 92 - Superv/Python/GraphEditGraphSwitchs_1.py | 225 -- Superv/Python/GraphEditGraphSwitchs_2.py | 226 -- Superv/Python/GraphEditGraphSwitchs_3.py | 226 -- Superv/Python/GraphEditGraphSwitchs_4.py | 227 -- Superv/Python/GraphEditGraphSwitchs_5.py | 217 -- Superv/Python/GraphEmbeddedComponents.py | 177 -- Superv/Python/GraphEmbeddedComponentsCrash.py | 181 -- .../Python/GraphEmbeddedComponentsCrash1.py | 177 -- Superv/Python/GraphEmptyInLinesTypesCheck.py | 197 -- Superv/Python/GraphErrMsgs.py | 1254 -------- Superv/Python/GraphEssai.py | 112 - Superv/Python/GraphEssai1.py | 98 - Superv/Python/GraphEssai2.py | 101 - Superv/Python/GraphEssai3.py | 146 - Superv/Python/GraphExample.py | 94 - Superv/Python/GraphFactorial.py | 58 - Superv/Python/GraphFactorialLcc.py | 40 - Superv/Python/GraphGOTO.py | 320 -- Superv/Python/GraphGOTO1.py | 309 -- Superv/Python/GraphGOTOAborted.py | 310 -- Superv/Python/GraphGOTOAddMemory.py | 94 - Superv/Python/GraphGOTOMemory.py | 73 - Superv/Python/GraphGeomEssai.py | 137 - Superv/Python/GraphGeomEssaiGates.py | 146 - Superv/Python/GraphGeomEssaiGates_py.py | 174 - Superv/Python/GraphGeomEssai_py.py | 164 - Superv/Python/GraphImportSalome.py | 58 - Superv/Python/GraphInLines.py | 103 - Superv/Python/GraphInLinesParall.py | 108 - Superv/Python/GraphInLinesTypesCheck.py | 212 -- Superv/Python/GraphInLinesUnValid.py | 108 - Superv/Python/GraphInconsistencyTypes.py | 62 - Superv/Python/GraphInputInLoop.py | 171 - Superv/Python/GraphKillSuspend.py | 61 - Superv/Python/GraphLoop.py | 115 - Superv/Python/GraphLoop1.py | 143 - Superv/Python/GraphLoop2.py | 147 - Superv/Python/GraphLoopAddMemory.py | 135 - Superv/Python/GraphLoopDoWhile.py | 97 - Superv/Python/GraphLoopGates.py | 202 -- Superv/Python/GraphLoopGatesNOTValid.py | 200 -- Superv/Python/GraphLoopMacroNodes.py | 362 --- Superv/Python/GraphLoopMacroNodesOutput.py | 515 --- Superv/Python/GraphLoopMemory.py | 114 - Superv/Python/GraphLoopPyAddAddMemory.py | 156 - Superv/Python/GraphLoopSwitch.py | 184 -- Superv/Python/GraphLoopSwitchDefault.py | 165 - .../Python/GraphLoopSwitchDefaultAborted.py | 182 -- Superv/Python/GraphLoopSwitchGateDefault.py | 186 -- .../GraphLoopSwitchGatesDefaultNOTValid.py | 188 -- Superv/Python/GraphLoopSwitchOddEven.py | 183 -- Superv/Python/GraphLoopSwitchOfSwitch.py | 272 -- Superv/Python/GraphLoopSwitchOfSwitch1.py | 270 -- .../Python/GraphLoopSwitchOfSwitchAborted.py | 265 -- .../Python/GraphLoopSwitchOfSwitchNOTValid.py | 271 -- Superv/Python/GraphLoopSwitchs.py | 256 -- Superv/Python/GraphLoopSwitchsAborted.py | 252 -- Superv/Python/GraphLoopSwitchsBranches.py | 311 -- .../GraphLoopSwitchsBranchesDefaultAborted.py | 367 --- .../Python/GraphLoopSwitchsBranchesdefault.py | 371 --- Superv/Python/GraphLoopSwitchsNOTValid.py | 250 -- Superv/Python/GraphLoopTwoBranches.py | 347 -- Superv/Python/GraphLoopWhile.py | 95 - Superv/Python/GraphLoopsCoupled.py | 236 -- Superv/Python/GraphLoopsGates.py | 277 -- .../Python/GraphLoopsStupidCoupledSwitchs.py | 294 -- Superv/Python/GraphMacroNodes.py | 1073 ------- Superv/Python/GraphMacroNodes1.py | 230 -- Superv/Python/GraphMerge.py | 82 - Superv/Python/GraphMerge1.py | 77 - Superv/Python/GraphNoEqualInPortsNumber.py | 60 - Superv/Python/GraphNoInputData.py | 62 - Superv/Python/GraphNonVoidEndLoop.py | 122 - .../Python/GraphNotClosedChainInsideLoop.py | 163 - .../Python/GraphNotClosedChainInsideSwitch.py | 164 - Superv/Python/GraphObjRef.py | 149 - Superv/Python/GraphObjRefOMNIORB4.py | 250 -- .../Python/GraphObjRefOMNIORB4_StandAlone.py | 45 - Superv/Python/GraphPyFunctions.py | 262 -- Superv/Python/GraphPythonSyntaxError.py | 61 - Superv/Python/GraphRunSyr.py | 64 - Superv/Python/GraphSIGFPE.py | 58 - Superv/Python/GraphSIGFPEPython.py | 56 - Superv/Python/GraphSIGSEGV.py | 52 - Superv/Python/GraphSIGSEGVPython.py | 56 - Superv/Python/GraphStream.py | 242 -- Superv/Python/GraphStreamInLines.py | 222 -- Superv/Python/GraphStreamTopologies.py | 256 -- Superv/Python/GraphStreamTopology.py | 265 -- Superv/Python/GraphStreams.py | 425 --- Superv/Python/GraphStreamsXmlTest.py | 134 - Superv/Python/GraphSub.py | 58 - Superv/Python/GraphSwitch.py | 163 - Superv/Python/GraphSwitch1.py | 162 - Superv/Python/GraphSwitch2.py | 182 -- Superv/Python/GraphSwitchBranchGates.py | 168 - Superv/Python/GraphSwitchBranchGates1.py | 170 - Superv/Python/GraphSwitchBugAborted.py | 167 - Superv/Python/GraphSwitchBugDefault.py | 170 - Superv/Python/GraphSwitchCheck.py | 289 -- Superv/Python/GraphSwitchCheckBranch.py | 229 -- Superv/Python/GraphSwitchCheckBranch1.py | 254 -- .../Python/GraphSwitchCheckBranch1Default.py | 257 -- .../GraphSwitchCheckBranch1NoDefault.py | 252 -- .../Python/GraphSwitchCheckBranch2NOTValid.py | 258 -- Superv/Python/GraphSwitchCheckDefault.py | 289 -- Superv/Python/GraphSwitchCheckDefault1.py | 321 -- .../GraphSwitchCheckDefault1NOTValid.py | 320 -- Superv/Python/GraphSwitchCheckDefault2.py | 355 --- .../GraphSwitchCheckDefault2NOTValid.py | 359 --- .../GraphSwitchCheckDefault2NOTValid1.py | 319 -- .../GraphSwitchCheckDefault2NOTValid2.py | 359 --- Superv/Python/GraphSwitchCheckNoDefault2.py | 353 --- Superv/Python/GraphSwitchCrash.py | 281 -- Superv/Python/GraphSwitchErrExec.py | 185 -- Superv/Python/GraphSwitchExecutable.py | 169 - Superv/Python/GraphSwitchGates.py | 177 -- Superv/Python/GraphSwitchGatesDefault.py | 180 -- .../GraphSwitchGatesNoDefaultAborted.py | 178 -- .../Python/GraphSwitchGatesdefaultBranch.py | 199 -- Superv/Python/GraphSwitchGatesdefault_.py | 184 -- Superv/Python/GraphSwitchManyCases.py | 254 -- Superv/Python/GraphSwitchManyCasesNOTValid.py | 271 -- Superv/Python/GraphSwitchNOTExecutable.py | 163 - Superv/Python/GraphSwitchNOTExecutable1.py | 165 - Superv/Python/GraphSwitchNOTExecutable2.py | 168 - Superv/Python/GraphSwitchOutput.py | 240 -- Superv/Python/GraphSwitchOutputNOTValid.py | 232 -- Superv/Python/GraphSwitchs.py | 282 -- Superv/Python/GraphSyrControl.py | 306 -- Superv/Python/GraphSyrControl1.py | 267 -- Superv/Python/GraphSyrControlAborted.py | 299 -- Superv/Python/GraphSyrControlAve.py | 433 --- Superv/Python/GraphSyrControlAveAborted.py | 434 --- Superv/Python/GraphSyrControlAveExecutable.py | 436 --- Superv/Python/GraphSyrControlAveNOTValid.py | 436 --- Superv/Python/GraphSyrControlAveValid.py | 433 --- Superv/Python/GraphSyrControlDefault.py | 293 -- Superv/Python/GraphSyrControlGUI.py | 265 -- Superv/Python/GraphSyracuseControl.py | 143 - Superv/Python/GraphTestMacroNodes.py | 333 -- Superv/Python/GraphTwoLoops.py | 153 - Superv/Python/GraphTwoLoops1.py | 154 - Superv/Python/GraphTypesCheck.py | 146 - Superv/Python/GraphUnValid.py | 123 - Superv/Python/GraphUndefinedSymbol.py | 52 - Superv/Python/GraphVoidMoreLoop.py | 118 - .../Python/GraphWrongContainerOrComponent.py | 75 - Superv/Python/GraphWrongPythonFunctions.py | 186 -- Superv/Python/Graphs.py | 152 - Superv/Python/InLine_Nut.py | 166 - Superv/Python/MacroWithGeom.py | 245 -- Superv/Python/MacroWithGeomGates.py | 255 -- Superv/Python/MacroWithGeomGates_py.py | 299 -- Superv/Python/MacroWithGeom_py.py | 285 -- Superv/Python/NewGraphEssai.py | 117 - Superv/Python/NewGraphGeomEssai.py | 124 - Superv/Python/NewGraphGeomEssaiGates.py | 132 - Superv/Python/NewGraphGeomEssaiGates_py.py | 156 - Superv/Python/NewGraphGeomEssai_py.py | 148 - Superv/Python/SIGSEGV.py | 29 - Superv/Python/SIGSEGVTUI.py | 28 - Superv/Python/SIGSEGV_Swig.py | 24 - Superv/Python/SyrStruct.py | 469 --- Superv/Python/TestSupervMedfieldLoopFori.py | 206 -- .../Python/TestSupervMedfieldLoopForiVisu.py | 264 -- Superv/Python/dataflow_calculator_example.py | 229 -- Superv/Python/myFactorialPy.py | 42 - Superv/Python/newsupervisionexample.py | 85 - Superv/Python/test_events.py | 87 - Superv/Python/test_superv_basic_loop.py | 124 - Superv/Python/testvisu20_multi.py | 355 --- 402 files changed, 133249 deletions(-) delete mode 100644 Superv/Graphs/GeomGraph.xml delete mode 100644 Superv/Graphs/GeomGraphGates.xml delete mode 100644 Superv/Graphs/GeomGraphGates_py.xml delete mode 100644 Superv/Graphs/GeomGraph_py.xml delete mode 100644 Superv/Graphs/GraphAdd.xml delete mode 100755 Superv/Graphs/GraphBadInputInLoop.xml delete mode 100755 Superv/Graphs/GraphBadInputInLoop1.xml delete mode 100755 Superv/Graphs/GraphBadInputInLoop2.xml delete mode 100755 Superv/Graphs/GraphBadInputInLoop3.xml delete mode 100755 Superv/Graphs/GraphBadOutputOfLoop.xml delete mode 100755 Superv/Graphs/GraphBadOutputOfLoop1.xml delete mode 100755 Superv/Graphs/GraphBadOutputOfLoop2.xml delete mode 100644 Superv/Graphs/GraphBugEditor.xml delete mode 100755 Superv/Graphs/GraphContainer.xml delete mode 100755 Superv/Graphs/GraphConvertBoolCheck.xml delete mode 100755 Superv/Graphs/GraphConvertBoolStringCheck.xml delete mode 100755 Superv/Graphs/GraphConvertCharCheck.xml delete mode 100755 Superv/Graphs/GraphConvertCharStringCheck.xml delete mode 100755 Superv/Graphs/GraphConvertDoubleCheck.xml delete mode 100755 Superv/Graphs/GraphConvertDoubleStringCheck.xml delete mode 100755 Superv/Graphs/GraphConvertFloatCheck.xml delete mode 100755 Superv/Graphs/GraphConvertFloatStringCheck.xml delete mode 100755 Superv/Graphs/GraphConvertIORCheck.xml delete mode 100755 Superv/Graphs/GraphConvertLongCheck.xml delete mode 100755 Superv/Graphs/GraphConvertLongStringCheck.xml delete mode 100755 Superv/Graphs/GraphConvertObjRefCheck.xml delete mode 100644 Superv/Graphs/GraphConvertObjRefCheckNotCompatible.xml delete mode 100755 Superv/Graphs/GraphConvertShortCheck.xml delete mode 100755 Superv/Graphs/GraphConvertShortStringCheck.xml delete mode 100755 Superv/Graphs/GraphConvertStringStringCheck.xml delete mode 100755 Superv/Graphs/GraphCpuUsed.xml delete mode 100644 Superv/Graphs/GraphEditGraphSwitchs_1.xml delete mode 100644 Superv/Graphs/GraphEditGraphSwitchs_2.xml delete mode 100644 Superv/Graphs/GraphEditGraphSwitchs_3.xml delete mode 100644 Superv/Graphs/GraphEditGraphSwitchs_4.xml delete mode 100644 Superv/Graphs/GraphEditGraphSwitchs_5.xml delete mode 100644 Superv/Graphs/GraphEmbeddedComponents.xml delete mode 100644 Superv/Graphs/GraphEmbeddedComponentsCrash.xml delete mode 100644 Superv/Graphs/GraphEmbeddedComponentsCrash1.xml delete mode 100755 Superv/Graphs/GraphEmptyInLinesTypesCheck.xml delete mode 100755 Superv/Graphs/GraphEssai.xml delete mode 100644 Superv/Graphs/GraphEssai1.xml delete mode 100644 Superv/Graphs/GraphEssai2.xml delete mode 100644 Superv/Graphs/GraphEssai3.xml delete mode 100644 Superv/Graphs/GraphFactorial.xml delete mode 100644 Superv/Graphs/GraphGOTO.xml delete mode 100755 Superv/Graphs/GraphGOTO1.xml delete mode 100644 Superv/Graphs/GraphGOTOAborted.xml delete mode 100644 Superv/Graphs/GraphGOTOAddMemory.xml delete mode 100644 Superv/Graphs/GraphGOTOMemory.xml delete mode 100644 Superv/Graphs/GraphGeomEssai.xml delete mode 100644 Superv/Graphs/GraphGeomEssaiGates.xml delete mode 100644 Superv/Graphs/GraphGeomEssaiGates_py.xml delete mode 100644 Superv/Graphs/GraphGeomEssai_py.xml delete mode 100644 Superv/Graphs/GraphImportSalome.xml delete mode 100644 Superv/Graphs/GraphInLines.xml delete mode 100755 Superv/Graphs/GraphInLinesParall.xml delete mode 100755 Superv/Graphs/GraphInLinesTypesCheck.xml delete mode 100755 Superv/Graphs/GraphInLinesUnValid.xml delete mode 100644 Superv/Graphs/GraphInconsistencyTypes.xml delete mode 100644 Superv/Graphs/GraphInputInLoop.xml delete mode 100644 Superv/Graphs/GraphLoop.xml delete mode 100644 Superv/Graphs/GraphLoop1.xml delete mode 100644 Superv/Graphs/GraphLoop2.xml delete mode 100644 Superv/Graphs/GraphLoopAddMemory.xml delete mode 100644 Superv/Graphs/GraphLoopDoWhile.xml delete mode 100644 Superv/Graphs/GraphLoopGates.xml delete mode 100644 Superv/Graphs/GraphLoopGatesNOTValid.xml delete mode 100644 Superv/Graphs/GraphLoopMacroNodes.xml delete mode 100644 Superv/Graphs/GraphLoopMacroNodesOutput.xml delete mode 100644 Superv/Graphs/GraphLoopMemory.xml delete mode 100644 Superv/Graphs/GraphLoopPyAddAddMemory.xml delete mode 100755 Superv/Graphs/GraphLoopSwitch.xml delete mode 100644 Superv/Graphs/GraphLoopSwitchDefault.xml delete mode 100644 Superv/Graphs/GraphLoopSwitchDefaultAborted.xml delete mode 100644 Superv/Graphs/GraphLoopSwitchGateDefault.xml delete mode 100644 Superv/Graphs/GraphLoopSwitchGatesDefaultNOTValid.xml delete mode 100644 Superv/Graphs/GraphLoopSwitchOddEven.xml delete mode 100644 Superv/Graphs/GraphLoopSwitchOfSwitch.xml delete mode 100644 Superv/Graphs/GraphLoopSwitchOfSwitch1.xml delete mode 100644 Superv/Graphs/GraphLoopSwitchOfSwitchAborted.xml delete mode 100644 Superv/Graphs/GraphLoopSwitchOfSwitchNOTValid.xml delete mode 100644 Superv/Graphs/GraphLoopSwitchs.xml delete mode 100644 Superv/Graphs/GraphLoopSwitchsAborted.xml delete mode 100644 Superv/Graphs/GraphLoopSwitchsBranches.xml delete mode 100644 Superv/Graphs/GraphLoopSwitchsBranchesDefaultAborted.xml delete mode 100644 Superv/Graphs/GraphLoopSwitchsBranchesdefault.xml delete mode 100644 Superv/Graphs/GraphLoopSwitchsNOTValid.xml delete mode 100644 Superv/Graphs/GraphLoopTwoBranches.xml delete mode 100644 Superv/Graphs/GraphLoopWhile.xml delete mode 100644 Superv/Graphs/GraphLoopsCoupled.xml delete mode 100644 Superv/Graphs/GraphLoopsGates.xml delete mode 100644 Superv/Graphs/GraphLoopsStupidCoupledSwitchs.xml delete mode 100644 Superv/Graphs/GraphMacroNodes.xml delete mode 100644 Superv/Graphs/GraphMacroNodes1.xml delete mode 100644 Superv/Graphs/GraphNoEqualInPortsNumber.xml delete mode 100644 Superv/Graphs/GraphNoInputData.xml delete mode 100644 Superv/Graphs/GraphNonVoidEndLoop.xml delete mode 100644 Superv/Graphs/GraphNotClosedChainInsideLoop.xml delete mode 100644 Superv/Graphs/GraphNotClosedChainInsideSwitch.xml delete mode 100755 Superv/Graphs/GraphObjRef.xml delete mode 100644 Superv/Graphs/GraphObjRefOMNIORB4.xml delete mode 100755 Superv/Graphs/GraphPyFunctions.xml delete mode 100644 Superv/Graphs/GraphPythonSyntaxError.xml delete mode 100644 Superv/Graphs/GraphSIGFPE.xml delete mode 100644 Superv/Graphs/GraphSIGFPEPython.xml delete mode 100644 Superv/Graphs/GraphSIGSEGV.xml delete mode 100644 Superv/Graphs/GraphSIGSEGVPython.xml delete mode 100644 Superv/Graphs/GraphStream.xml delete mode 100644 Superv/Graphs/GraphStreamInLines.xml delete mode 100644 Superv/Graphs/GraphStreamInLines_1.cpl delete mode 100644 Superv/Graphs/GraphStreamTopologies.xml delete mode 100644 Superv/Graphs/GraphStreamTopologies_1.cpl delete mode 100644 Superv/Graphs/GraphStreamTopologies_2.cpl delete mode 100644 Superv/Graphs/GraphStreamTopology.xml delete mode 100644 Superv/Graphs/GraphStreamTopology_1.cpl delete mode 100644 Superv/Graphs/GraphStream_1.cpl delete mode 100644 Superv/Graphs/GraphStream_2.cpl delete mode 100644 Superv/Graphs/GraphStream_3.cpl delete mode 100644 Superv/Graphs/GraphStreams.xml delete mode 100644 Superv/Graphs/GraphStreams_1.cpl delete mode 100644 Superv/Graphs/GraphStreams_2.cpl delete mode 100644 Superv/Graphs/GraphSub.xml delete mode 100644 Superv/Graphs/GraphSwitch.xml delete mode 100755 Superv/Graphs/GraphSwitch1.xml delete mode 100644 Superv/Graphs/GraphSwitch2.xml delete mode 100644 Superv/Graphs/GraphSwitchBranchGates.xml delete mode 100644 Superv/Graphs/GraphSwitchBranchGates1.xml delete mode 100644 Superv/Graphs/GraphSwitchBugAborted.xml delete mode 100644 Superv/Graphs/GraphSwitchBugDefault.xml delete mode 100644 Superv/Graphs/GraphSwitchCheck.xml delete mode 100644 Superv/Graphs/GraphSwitchCheckBranch.xml delete mode 100644 Superv/Graphs/GraphSwitchCheckBranch1.xml delete mode 100644 Superv/Graphs/GraphSwitchCheckBranch1Default.xml delete mode 100644 Superv/Graphs/GraphSwitchCheckBranch1NoDefault.xml delete mode 100644 Superv/Graphs/GraphSwitchCheckBranch2NOTValid.xml delete mode 100644 Superv/Graphs/GraphSwitchCheckDefault.xml delete mode 100644 Superv/Graphs/GraphSwitchCheckDefault1.xml delete mode 100755 Superv/Graphs/GraphSwitchCheckDefault1NOTValid.xml delete mode 100644 Superv/Graphs/GraphSwitchCheckDefault2.xml delete mode 100755 Superv/Graphs/GraphSwitchCheckDefault2NOTValid.xml delete mode 100755 Superv/Graphs/GraphSwitchCheckDefault2NOTValid1.xml delete mode 100644 Superv/Graphs/GraphSwitchCheckDefault2NOTValid2.xml delete mode 100644 Superv/Graphs/GraphSwitchCheckNoDefault2.xml delete mode 100755 Superv/Graphs/GraphSwitchCrash.xml delete mode 100644 Superv/Graphs/GraphSwitchErrExec.xml delete mode 100644 Superv/Graphs/GraphSwitchExecutable.xml delete mode 100644 Superv/Graphs/GraphSwitchGates.xml delete mode 100644 Superv/Graphs/GraphSwitchGatesDefault.xml delete mode 100644 Superv/Graphs/GraphSwitchGatesNoDefaultAborted.xml delete mode 100644 Superv/Graphs/GraphSwitchGatesdefaultBranch.xml delete mode 100755 Superv/Graphs/GraphSwitchGatesdefault_.xml delete mode 100644 Superv/Graphs/GraphSwitchManyCases.xml delete mode 100644 Superv/Graphs/GraphSwitchManyCasesNOTValid.xml delete mode 100644 Superv/Graphs/GraphSwitchNOTExecutable.xml delete mode 100644 Superv/Graphs/GraphSwitchNOTExecutable1.xml delete mode 100644 Superv/Graphs/GraphSwitchNOTExecutable2.xml delete mode 100644 Superv/Graphs/GraphSwitchOutput.xml delete mode 100644 Superv/Graphs/GraphSwitchOutputNOTValid.xml delete mode 100755 Superv/Graphs/GraphSwitchs.xml delete mode 100644 Superv/Graphs/GraphSyrControl.xml delete mode 100755 Superv/Graphs/GraphSyrControl1.xml delete mode 100644 Superv/Graphs/GraphSyrControlAborted.xml delete mode 100644 Superv/Graphs/GraphSyrControlAve.xml delete mode 100644 Superv/Graphs/GraphSyrControlAveAborted.xml delete mode 100644 Superv/Graphs/GraphSyrControlAveExecutable.xml delete mode 100644 Superv/Graphs/GraphSyrControlAveNOTValid.xml delete mode 100644 Superv/Graphs/GraphSyrControlAveValid.xml delete mode 100644 Superv/Graphs/GraphSyrControlDefault.xml delete mode 100644 Superv/Graphs/GraphSyrControlGUI.xml delete mode 100644 Superv/Graphs/GraphTwoLoops.xml delete mode 100644 Superv/Graphs/GraphTwoLoops1.xml delete mode 100755 Superv/Graphs/GraphTypesCheck.xml delete mode 100755 Superv/Graphs/GraphUnValid.xml delete mode 100644 Superv/Graphs/GraphUndefinedSymbol.xml delete mode 100644 Superv/Graphs/GraphVoidMoreLoop.xml delete mode 100644 Superv/Graphs/GraphWrongContainerOrComponent.xml delete mode 100644 Superv/Graphs/GraphWrongPythonFunctions.xml delete mode 100644 Superv/Graphs/Graphs.xml delete mode 100755 Superv/Graphs/Loop.xml delete mode 100755 Superv/Graphs/MacroWithGeom.xml delete mode 100644 Superv/Graphs/MacroWithGeomGates.xml delete mode 100644 Superv/Graphs/MacroWithGeomGates_py.xml delete mode 100644 Superv/Graphs/MacroWithGeom_py.xml delete mode 100644 Superv/Graphs/NewGraphEssai.xml delete mode 100644 Superv/Graphs/NewGraphGeomEssai.xml delete mode 100644 Superv/Graphs/NewGraphGeomEssaiGates.xml delete mode 100644 Superv/Graphs/NewGraphGeomEssaiGates_py.xml delete mode 100644 Superv/Graphs/NewGraphGeomEssai_py.xml delete mode 100644 Superv/Graphs/SyrStruct.xml delete mode 100755 Superv/Graphs/TestSupervMedfieldLoopFori.xml delete mode 100755 Superv/Graphs/TestSupervMedfieldLoopForiVisu.xml delete mode 100755 Superv/Graphs/dataflow_calculator_example.xml delete mode 100644 Superv/Graphs/newsupervisionexample.xml delete mode 100644 Superv/Graphs/test_events.xml delete mode 100755 Superv/Graphs/test_superv_basic_loop.xml delete mode 100644 Superv/Graphs/testvisu20.xml delete mode 100644 Superv/Graphs/testvisu20_multi.xml delete mode 100644 Superv/Python/GeomGraph.py delete mode 100644 Superv/Python/GeomGraphGates.py delete mode 100644 Superv/Python/GeomGraphGates_py.py delete mode 100644 Superv/Python/GeomGraph_py.py delete mode 100644 Superv/Python/GraphAdd.py delete mode 100755 Superv/Python/GraphBadInputInLoop.py delete mode 100755 Superv/Python/GraphBadInputInLoop1.py delete mode 100755 Superv/Python/GraphBadInputInLoop2.py delete mode 100755 Superv/Python/GraphBadInputInLoop3.py delete mode 100755 Superv/Python/GraphBadOutputOfLoop.py delete mode 100755 Superv/Python/GraphBadOutputOfLoop1.py delete mode 100755 Superv/Python/GraphBadOutputOfLoop2.py delete mode 100644 Superv/Python/GraphBugEditor.py delete mode 100755 Superv/Python/GraphContainer.py delete mode 100755 Superv/Python/GraphConvertBoolCheck.py delete mode 100755 Superv/Python/GraphConvertBoolStringCheck.py delete mode 100755 Superv/Python/GraphConvertCharCheck.py delete mode 100755 Superv/Python/GraphConvertCharStringCheck.py delete mode 100755 Superv/Python/GraphConvertDoubleCheck.py delete mode 100755 Superv/Python/GraphConvertDoubleStringCheck.py delete mode 100755 Superv/Python/GraphConvertFloatCheck.py delete mode 100755 Superv/Python/GraphConvertFloatStringCheck.py delete mode 100755 Superv/Python/GraphConvertIORCheck.py delete mode 100755 Superv/Python/GraphConvertLongCheck.py delete mode 100755 Superv/Python/GraphConvertLongStringCheck.py delete mode 100755 Superv/Python/GraphConvertObjRefCheck.py delete mode 100644 Superv/Python/GraphConvertObjRefCheckNotCompatible.py delete mode 100755 Superv/Python/GraphConvertShortCheck.py delete mode 100755 Superv/Python/GraphConvertShortStringCheck.py delete mode 100755 Superv/Python/GraphConvertStringStringCheck.py delete mode 100755 Superv/Python/GraphCpuUsed.py delete mode 100644 Superv/Python/GraphEditGraphSwitchs.py delete mode 100644 Superv/Python/GraphEditGraphSwitchs_1.py delete mode 100644 Superv/Python/GraphEditGraphSwitchs_2.py delete mode 100644 Superv/Python/GraphEditGraphSwitchs_3.py delete mode 100644 Superv/Python/GraphEditGraphSwitchs_4.py delete mode 100644 Superv/Python/GraphEditGraphSwitchs_5.py delete mode 100644 Superv/Python/GraphEmbeddedComponents.py delete mode 100644 Superv/Python/GraphEmbeddedComponentsCrash.py delete mode 100644 Superv/Python/GraphEmbeddedComponentsCrash1.py delete mode 100755 Superv/Python/GraphEmptyInLinesTypesCheck.py delete mode 100644 Superv/Python/GraphErrMsgs.py delete mode 100644 Superv/Python/GraphEssai.py delete mode 100755 Superv/Python/GraphEssai1.py delete mode 100755 Superv/Python/GraphEssai2.py delete mode 100644 Superv/Python/GraphEssai3.py delete mode 100644 Superv/Python/GraphExample.py delete mode 100644 Superv/Python/GraphFactorial.py delete mode 100755 Superv/Python/GraphFactorialLcc.py delete mode 100644 Superv/Python/GraphGOTO.py delete mode 100755 Superv/Python/GraphGOTO1.py delete mode 100644 Superv/Python/GraphGOTOAborted.py delete mode 100644 Superv/Python/GraphGOTOAddMemory.py delete mode 100644 Superv/Python/GraphGOTOMemory.py delete mode 100644 Superv/Python/GraphGeomEssai.py delete mode 100644 Superv/Python/GraphGeomEssaiGates.py delete mode 100644 Superv/Python/GraphGeomEssaiGates_py.py delete mode 100644 Superv/Python/GraphGeomEssai_py.py delete mode 100644 Superv/Python/GraphImportSalome.py delete mode 100644 Superv/Python/GraphInLines.py delete mode 100755 Superv/Python/GraphInLinesParall.py delete mode 100755 Superv/Python/GraphInLinesTypesCheck.py delete mode 100755 Superv/Python/GraphInLinesUnValid.py delete mode 100644 Superv/Python/GraphInconsistencyTypes.py delete mode 100644 Superv/Python/GraphInputInLoop.py delete mode 100644 Superv/Python/GraphKillSuspend.py delete mode 100644 Superv/Python/GraphLoop.py delete mode 100644 Superv/Python/GraphLoop1.py delete mode 100644 Superv/Python/GraphLoop2.py delete mode 100644 Superv/Python/GraphLoopAddMemory.py delete mode 100644 Superv/Python/GraphLoopDoWhile.py delete mode 100644 Superv/Python/GraphLoopGates.py delete mode 100644 Superv/Python/GraphLoopGatesNOTValid.py delete mode 100644 Superv/Python/GraphLoopMacroNodes.py delete mode 100644 Superv/Python/GraphLoopMacroNodesOutput.py delete mode 100644 Superv/Python/GraphLoopMemory.py delete mode 100644 Superv/Python/GraphLoopPyAddAddMemory.py delete mode 100755 Superv/Python/GraphLoopSwitch.py delete mode 100644 Superv/Python/GraphLoopSwitchDefault.py delete mode 100644 Superv/Python/GraphLoopSwitchDefaultAborted.py delete mode 100644 Superv/Python/GraphLoopSwitchGateDefault.py delete mode 100644 Superv/Python/GraphLoopSwitchGatesDefaultNOTValid.py delete mode 100644 Superv/Python/GraphLoopSwitchOddEven.py delete mode 100644 Superv/Python/GraphLoopSwitchOfSwitch.py delete mode 100644 Superv/Python/GraphLoopSwitchOfSwitch1.py delete mode 100644 Superv/Python/GraphLoopSwitchOfSwitchAborted.py delete mode 100644 Superv/Python/GraphLoopSwitchOfSwitchNOTValid.py delete mode 100644 Superv/Python/GraphLoopSwitchs.py delete mode 100644 Superv/Python/GraphLoopSwitchsAborted.py delete mode 100644 Superv/Python/GraphLoopSwitchsBranches.py delete mode 100644 Superv/Python/GraphLoopSwitchsBranchesDefaultAborted.py delete mode 100644 Superv/Python/GraphLoopSwitchsBranchesdefault.py delete mode 100644 Superv/Python/GraphLoopSwitchsNOTValid.py delete mode 100644 Superv/Python/GraphLoopTwoBranches.py delete mode 100644 Superv/Python/GraphLoopWhile.py delete mode 100644 Superv/Python/GraphLoopsCoupled.py delete mode 100644 Superv/Python/GraphLoopsGates.py delete mode 100644 Superv/Python/GraphLoopsStupidCoupledSwitchs.py delete mode 100644 Superv/Python/GraphMacroNodes.py delete mode 100644 Superv/Python/GraphMacroNodes1.py delete mode 100755 Superv/Python/GraphMerge.py delete mode 100755 Superv/Python/GraphMerge1.py delete mode 100644 Superv/Python/GraphNoEqualInPortsNumber.py delete mode 100644 Superv/Python/GraphNoInputData.py delete mode 100644 Superv/Python/GraphNonVoidEndLoop.py delete mode 100644 Superv/Python/GraphNotClosedChainInsideLoop.py delete mode 100644 Superv/Python/GraphNotClosedChainInsideSwitch.py delete mode 100755 Superv/Python/GraphObjRef.py delete mode 100644 Superv/Python/GraphObjRefOMNIORB4.py delete mode 100644 Superv/Python/GraphObjRefOMNIORB4_StandAlone.py delete mode 100755 Superv/Python/GraphPyFunctions.py delete mode 100644 Superv/Python/GraphPythonSyntaxError.py delete mode 100644 Superv/Python/GraphRunSyr.py delete mode 100644 Superv/Python/GraphSIGFPE.py delete mode 100644 Superv/Python/GraphSIGFPEPython.py delete mode 100644 Superv/Python/GraphSIGSEGV.py delete mode 100644 Superv/Python/GraphSIGSEGVPython.py delete mode 100644 Superv/Python/GraphStream.py delete mode 100644 Superv/Python/GraphStreamInLines.py delete mode 100644 Superv/Python/GraphStreamTopologies.py delete mode 100644 Superv/Python/GraphStreamTopology.py delete mode 100644 Superv/Python/GraphStreams.py delete mode 100644 Superv/Python/GraphStreamsXmlTest.py delete mode 100644 Superv/Python/GraphSub.py delete mode 100644 Superv/Python/GraphSwitch.py delete mode 100755 Superv/Python/GraphSwitch1.py delete mode 100644 Superv/Python/GraphSwitch2.py delete mode 100644 Superv/Python/GraphSwitchBranchGates.py delete mode 100644 Superv/Python/GraphSwitchBranchGates1.py delete mode 100644 Superv/Python/GraphSwitchBugAborted.py delete mode 100644 Superv/Python/GraphSwitchBugDefault.py delete mode 100644 Superv/Python/GraphSwitchCheck.py delete mode 100644 Superv/Python/GraphSwitchCheckBranch.py delete mode 100644 Superv/Python/GraphSwitchCheckBranch1.py delete mode 100644 Superv/Python/GraphSwitchCheckBranch1Default.py delete mode 100644 Superv/Python/GraphSwitchCheckBranch1NoDefault.py delete mode 100644 Superv/Python/GraphSwitchCheckBranch2NOTValid.py delete mode 100644 Superv/Python/GraphSwitchCheckDefault.py delete mode 100644 Superv/Python/GraphSwitchCheckDefault1.py delete mode 100755 Superv/Python/GraphSwitchCheckDefault1NOTValid.py delete mode 100644 Superv/Python/GraphSwitchCheckDefault2.py delete mode 100755 Superv/Python/GraphSwitchCheckDefault2NOTValid.py delete mode 100755 Superv/Python/GraphSwitchCheckDefault2NOTValid1.py delete mode 100644 Superv/Python/GraphSwitchCheckDefault2NOTValid2.py delete mode 100644 Superv/Python/GraphSwitchCheckNoDefault2.py delete mode 100755 Superv/Python/GraphSwitchCrash.py delete mode 100644 Superv/Python/GraphSwitchErrExec.py delete mode 100644 Superv/Python/GraphSwitchExecutable.py delete mode 100644 Superv/Python/GraphSwitchGates.py delete mode 100644 Superv/Python/GraphSwitchGatesDefault.py delete mode 100644 Superv/Python/GraphSwitchGatesNoDefaultAborted.py delete mode 100644 Superv/Python/GraphSwitchGatesdefaultBranch.py delete mode 100755 Superv/Python/GraphSwitchGatesdefault_.py delete mode 100644 Superv/Python/GraphSwitchManyCases.py delete mode 100644 Superv/Python/GraphSwitchManyCasesNOTValid.py delete mode 100644 Superv/Python/GraphSwitchNOTExecutable.py delete mode 100644 Superv/Python/GraphSwitchNOTExecutable1.py delete mode 100644 Superv/Python/GraphSwitchNOTExecutable2.py delete mode 100644 Superv/Python/GraphSwitchOutput.py delete mode 100644 Superv/Python/GraphSwitchOutputNOTValid.py delete mode 100755 Superv/Python/GraphSwitchs.py delete mode 100644 Superv/Python/GraphSyrControl.py delete mode 100755 Superv/Python/GraphSyrControl1.py delete mode 100644 Superv/Python/GraphSyrControlAborted.py delete mode 100644 Superv/Python/GraphSyrControlAve.py delete mode 100644 Superv/Python/GraphSyrControlAveAborted.py delete mode 100644 Superv/Python/GraphSyrControlAveExecutable.py delete mode 100644 Superv/Python/GraphSyrControlAveNOTValid.py delete mode 100644 Superv/Python/GraphSyrControlAveValid.py delete mode 100644 Superv/Python/GraphSyrControlDefault.py delete mode 100644 Superv/Python/GraphSyrControlGUI.py delete mode 100644 Superv/Python/GraphSyracuseControl.py delete mode 100644 Superv/Python/GraphTestMacroNodes.py delete mode 100644 Superv/Python/GraphTwoLoops.py delete mode 100644 Superv/Python/GraphTwoLoops1.py delete mode 100755 Superv/Python/GraphTypesCheck.py delete mode 100755 Superv/Python/GraphUnValid.py delete mode 100644 Superv/Python/GraphUndefinedSymbol.py delete mode 100644 Superv/Python/GraphVoidMoreLoop.py delete mode 100644 Superv/Python/GraphWrongContainerOrComponent.py delete mode 100644 Superv/Python/GraphWrongPythonFunctions.py delete mode 100644 Superv/Python/Graphs.py delete mode 100755 Superv/Python/InLine_Nut.py delete mode 100644 Superv/Python/MacroWithGeom.py delete mode 100644 Superv/Python/MacroWithGeomGates.py delete mode 100644 Superv/Python/MacroWithGeomGates_py.py delete mode 100644 Superv/Python/MacroWithGeom_py.py delete mode 100644 Superv/Python/NewGraphEssai.py delete mode 100644 Superv/Python/NewGraphGeomEssai.py delete mode 100644 Superv/Python/NewGraphGeomEssaiGates.py delete mode 100644 Superv/Python/NewGraphGeomEssaiGates_py.py delete mode 100644 Superv/Python/NewGraphGeomEssai_py.py delete mode 100644 Superv/Python/SIGSEGV.py delete mode 100644 Superv/Python/SIGSEGVTUI.py delete mode 100644 Superv/Python/SIGSEGV_Swig.py delete mode 100644 Superv/Python/SyrStruct.py delete mode 100755 Superv/Python/TestSupervMedfieldLoopFori.py delete mode 100755 Superv/Python/TestSupervMedfieldLoopForiVisu.py delete mode 100755 Superv/Python/dataflow_calculator_example.py delete mode 100644 Superv/Python/myFactorialPy.py delete mode 100644 Superv/Python/newsupervisionexample.py delete mode 100644 Superv/Python/test_events.py delete mode 100755 Superv/Python/test_superv_basic_loop.py delete mode 100644 Superv/Python/testvisu20_multi.py diff --git a/Superv/Graphs/GeomGraph.xml b/Superv/Graphs/GeomGraph.xml deleted file mode 100644 index 047cef4..0000000 --- a/Superv/Graphs/GeomGraph.xml +++ /dev/null @@ -1,519 +0,0 @@ - - - - - - -? - ? - GeomGraph - 1 - ? - -GeomGraph - - -long - SetStudyID__theStudyID - -double - MakeBox__theX1 - -double - MakeBox__theY1 - -double - MakeBox__theZ1 - -double - MakeBox__theX2 - -double - MakeBox__theY2 - -double - MakeBox__theZ2 - -double - TranslateDXDYDZ__theDX - -double - TranslateDXDYDZ__theDY - -double - TranslateDXDYDZ__theDZ - -double - MakeSphere_1__theX - -double - MakeSphere_1__theY - -double - MakeSphere_1__theZ - -double - MakeSphere_1__theRadius - - -GEOM_Object - MakeFuse_1__return - - - 29/10/2004 - 10:52:34 - 6/6/2005 - 10:39:55 - 2.0 - ? - ? - ? - 0 - 0 - - -GEOM_Superv - GEOM_Superv - SetStudyID - 0 - ? - -SetStudyID - - -long - theStudyID - - - - 6/6/2005 - 10:39:55 - 6/6/2005 - 10:39:55 - 2.0 - ? - localhost/FactoryServer - SetStudyID from GEOM_Superv - 14 - 241 - -GEOM_Superv - GEOM_Superv - MakeBox - 0 - ? - -MakeBox - - -double - theX1 - -double - theY1 - -double - theZ1 - -double - theX2 - -double - theY2 - -double - theZ2 - - -GEOM_Object - return - - - 6/6/2005 - 10:39:55 - 6/6/2005 - 10:39:55 - 2.0 - ? - localhost/FactoryServer - MakeBox from GEOM_Superv - 198 - 46 - -GEOM_Superv - GEOM_Superv - MakeCopy - 0 - ? - -MakeCopy - - -GEOM_Object - theOriginal - - -GEOM_Object - return - - - 6/6/2005 - 10:39:55 - 6/6/2005 - 10:39:55 - 2.0 - ? - localhost/FactoryServer - MakeCopy from GEOM_Superv - 383 - 46 - -GEOM_Superv - GEOM_Superv - TranslateDXDYDZ - 0 - ? - -TranslateDXDYDZ - - -GEOM_Object - theObject - -double - theDX - -double - theDY - -double - theDZ - - -GEOM_Object - return - - - 6/6/2005 - 10:39:55 - 6/6/2005 - 10:39:55 - 2.0 - ? - localhost/FactoryServer - TranslateDXDYDZ from GEOM_Superv - 579 - 46 - -GEOM_Superv - GEOM_Superv - MakeCopy_1 - 0 - ? - -MakeCopy - - -GEOM_Object - theOriginal - - -GEOM_Object - return - - - 6/6/2005 - 10:39:55 - 6/6/2005 - 10:39:55 - 2.0 - ? - localhost/FactoryServer - MakeCopy from GEOM_Superv - 384 - 168 - -GEOM_Superv - GEOM_Superv - MakeSphere_1 - 0 - ? - -MakeSphere - - -double - theX - -double - theY - -double - theZ - -double - theRadius - - -GEOM_Object - return - - - 6/6/2005 - 10:39:55 - 6/6/2005 - 10:39:55 - 2.0 - ? - localhost/FactoryServer - MakeSphere from GEOM_Superv - 201 - 332 - -GEOM_Superv - GEOM_Superv - MakeFuse - 0 - ? - -MakeFuse - - -GEOM_Object - theShape1 - -GEOM_Object - theShape2 - - -GEOM_Object - return - - - 6/6/2005 - 10:39:55 - 6/6/2005 - 10:39:55 - 2.0 - ? - localhost/FactoryServer - MakeFuse from GEOM_Superv - 790 - 148 - -GEOM_Superv - GEOM_Superv - MakeFuse_1 - 0 - ? - -MakeFuse - - -GEOM_Object - theShape1 - -GEOM_Object - theShape2 - - -GEOM_Object - return - - - 6/6/2005 - 10:39:55 - 6/6/2005 - 10:39:55 - 2.0 - ? - localhost/FactoryServer - MakeFuse from GEOM_Superv - 993 - 312 - - -SetStudyID - Gate - MakeBox - Gate - - -SetStudyID - Gate - MakeSphere_1 - Gate - - -MakeBox - return - MakeCopy - theOriginal - - -MakeBox - return - MakeCopy_1 - theOriginal - - -MakeCopy - return - TranslateDXDYDZ - theObject - - -TranslateDXDYDZ - return - MakeFuse - theShape1 - - -MakeCopy_1 - return - MakeFuse - theShape2 - - -MakeSphere_1 - return - MakeFuse_1 - theShape2 - - -MakeFuse - return - MakeFuse_1 - theShape1 - - - -GeomGraph - SetStudyID__theStudyID - SetStudyID - theStudyID - -3 - 1 - - -GeomGraph - MakeBox__theX1 - MakeBox - theX1 - -7 - 0 - - -GeomGraph - MakeBox__theY1 - MakeBox - theY1 - -7 - 0 - - -GeomGraph - MakeBox__theZ1 - MakeBox - theZ1 - -7 - 0 - - -GeomGraph - MakeBox__theX2 - MakeBox - theX2 - -7 - 50 - - -GeomGraph - MakeBox__theY2 - MakeBox - theY2 - -7 - 50 - - -GeomGraph - MakeBox__theZ2 - MakeBox - theZ2 - -7 - 50 - - -GeomGraph - TranslateDXDYDZ__theDX - TranslateDXDYDZ - theDX - -7 - 10 - - -GeomGraph - TranslateDXDYDZ__theDY - TranslateDXDYDZ - theDY - -7 - 10 - - -GeomGraph - TranslateDXDYDZ__theDZ - TranslateDXDYDZ - theDZ - -7 - 10 - - -GeomGraph - MakeSphere_1__theX - MakeSphere_1 - theX - -7 - 0 - - -GeomGraph - MakeSphere_1__theY - MakeSphere_1 - theY - -7 - 0 - - -GeomGraph - MakeSphere_1__theZ - MakeSphere_1 - theZ - -7 - 0 - - -GeomGraph - MakeSphere_1__theRadius - MakeSphere_1 - theRadius - -7 - 12 - diff --git a/Superv/Graphs/GeomGraphGates.xml b/Superv/Graphs/GeomGraphGates.xml deleted file mode 100644 index fa49eaa..0000000 --- a/Superv/Graphs/GeomGraphGates.xml +++ /dev/null @@ -1,694 +0,0 @@ - - - - - - - ? - ? - GeomGraph - 1 - ? - - GeomGraph - - - long - SetStudyID__theStudyID - - - double - MakeBox__theX1 - - - double - MakeBox__theY1 - - - double - MakeBox__theZ1 - - - double - MakeBox__theX2 - - - double - MakeBox__theY2 - - - double - MakeBox__theZ2 - - - double - TranslateDXDYDZ__theDX - - - double - TranslateDXDYDZ__theDY - - - double - TranslateDXDYDZ__theDZ - - - double - MakeSphere_1__theX - - - double - MakeSphere_1__theY - - - double - MakeSphere_1__theZ - - - double - MakeSphere_1__theRadius - - - - - GEOM_Object - MakeFuse_1__return - - - - - - 29/10/2004 - 10:52:34 - 14/12/2005 - 14:40:22 - 2.0 - ? - ? - ? - 0 - 0 - - - - - GEOM_Superv - GEOM_Superv - SetStudyID - 0 - ? - - SetStudyID - - - long - theStudyID - - - - - - - 14/12/2005 - 14:39:18 - 14/12/2005 - 14:39:18 - 2.0 - ? - localhost/FactoryServer - SetStudyID from GEOM_Superv - 14 - 241 - - - GEOM_Superv - GEOM_Superv - MakeBox - 0 - ? - - MakeBox - - - double - theX1 - - - double - theY1 - - - double - theZ1 - - - double - theX2 - - - double - theY2 - - - double - theZ2 - - - - - GEOM_Object - return - - - - - - 14/12/2005 - 14:39:18 - 14/12/2005 - 14:39:18 - 2.0 - ? - localhost/FactoryServer - MakeBox from GEOM_Superv - 198 - 46 - - - GEOM_Superv - GEOM_Superv - MakeCopy - 0 - ? - - MakeCopy - - - GEOM_Object - theOriginal - - - - - GEOM_Object - return - - - - - - 14/12/2005 - 14:39:18 - 14/12/2005 - 14:39:18 - 2.0 - ? - localhost/FactoryServer - MakeCopy from GEOM_Superv - 383 - 46 - - - GEOM_Superv - GEOM_Superv - TranslateDXDYDZ - 0 - ? - - TranslateDXDYDZ - - - GEOM_Object - theObject - - - double - theDX - - - double - theDY - - - double - theDZ - - - - - GEOM_Object - return - - - - - - 14/12/2005 - 14:39:18 - 14/12/2005 - 14:39:18 - 2.0 - ? - localhost/FactoryServer - TranslateDXDYDZ from GEOM_Superv - 579 - 46 - - - GEOM_Superv - GEOM_Superv - MakeCopy_1 - 0 - ? - - MakeCopy - - - GEOM_Object - theOriginal - - - - - GEOM_Object - return - - - - - - 14/12/2005 - 14:39:18 - 14/12/2005 - 14:39:18 - 2.0 - ? - localhost/FactoryServer - MakeCopy from GEOM_Superv - 384 - 168 - - - GEOM_Superv - GEOM_Superv - MakeSphere_1 - 0 - ? - - MakeSphere - - - double - theX - - - double - theY - - - double - theZ - - - double - theRadius - - - - - GEOM_Object - return - - - - - - 14/12/2005 - 14:39:18 - 14/12/2005 - 14:39:18 - 2.0 - ? - localhost/FactoryServer - MakeSphere from GEOM_Superv - 604 - 348 - - - GEOM_Superv - GEOM_Superv - MakeFuse - 0 - ? - - MakeFuse - - - GEOM_Object - theShape1 - - - GEOM_Object - theShape2 - - - - - GEOM_Object - return - - - - - - 14/12/2005 - 14:39:18 - 14/12/2005 - 14:39:18 - 2.0 - ? - localhost/FactoryServer - MakeFuse from GEOM_Superv - 790 - 148 - - - GEOM_Superv - GEOM_Superv - MakeFuse_1 - 0 - ? - - MakeFuse - - - GEOM_Object - theShape1 - - - GEOM_Object - theShape2 - - - - - GEOM_Object - return - - - - - - 14/12/2005 - 14:39:18 - 14/12/2005 - 14:39:18 - 2.0 - ? - localhost/FactoryServer - MakeFuse from GEOM_Superv - 993 - 312 - - - - - SetStudyID - Gate - MakeBox - Gate - - - - MakeBox - return - MakeCopy - theOriginal - - - - MakeBox - return - MakeCopy_1 - theOriginal - - - - MakeBox - Gate - MakeCopy - Gate - - - - MakeCopy - return - TranslateDXDYDZ - theObject - - - - MakeCopy - Gate - MakeCopy_1 - Gate - - - 363 - 263 - - - 564 - 141 - - - - - TranslateDXDYDZ - return - MakeFuse - theShape1 - - - - TranslateDXDYDZ - Gate - MakeFuse - Gate - - - - MakeCopy_1 - return - MakeFuse - theShape2 - - - - MakeCopy_1 - Gate - MakeSphere_1 - Gate - - - 572 - 503 - - - 572 - 263 - - - - - MakeSphere_1 - return - MakeFuse_1 - theShape2 - - - - MakeSphere_1 - Gate - TranslateDXDYDZ - Gate - - - - MakeFuse - return - MakeFuse_1 - theShape1 - - - - MakeFuse - Gate - MakeFuse_1 - Gate - - - - - - GeomGraph - SetStudyID__theStudyID - SetStudyID - theStudyID - - 3 - 1 - - - - - GeomGraph - MakeBox__theX1 - MakeBox - theX1 - - 7 - 0 - - - - - GeomGraph - MakeBox__theY1 - MakeBox - theY1 - - 7 - 0 - - - - - GeomGraph - MakeBox__theZ1 - MakeBox - theZ1 - - 7 - 0 - - - - - GeomGraph - MakeBox__theX2 - MakeBox - theX2 - - 7 - 50 - - - - - GeomGraph - MakeBox__theY2 - MakeBox - theY2 - - 7 - 50 - - - - - GeomGraph - MakeBox__theZ2 - MakeBox - theZ2 - - 7 - 50 - - - - - GeomGraph - TranslateDXDYDZ__theDX - TranslateDXDYDZ - theDX - - 7 - 10 - - - - - GeomGraph - TranslateDXDYDZ__theDY - TranslateDXDYDZ - theDY - - 7 - 10 - - - - - GeomGraph - TranslateDXDYDZ__theDZ - TranslateDXDYDZ - theDZ - - 7 - 10 - - - - - GeomGraph - MakeSphere_1__theX - MakeSphere_1 - theX - - 7 - 0 - - - - - GeomGraph - MakeSphere_1__theY - MakeSphere_1 - theY - - 7 - 0 - - - - - GeomGraph - MakeSphere_1__theZ - MakeSphere_1 - theZ - - 7 - 0 - - - - - GeomGraph - MakeSphere_1__theRadius - MakeSphere_1 - theRadius - - 7 - 12 - - - - - - - diff --git a/Superv/Graphs/GeomGraphGates_py.xml b/Superv/Graphs/GeomGraphGates_py.xml deleted file mode 100644 index 2cfc4bb..0000000 --- a/Superv/Graphs/GeomGraphGates_py.xml +++ /dev/null @@ -1,770 +0,0 @@ - - - - - - - ? - ? - aNewDataFlow_1_4_2_1_1_2_2_1_1 - 1 - ? - - aNewDataFlow_1_4_2_1_1_2_2_1_1 - - - double - MakeBox1__x1 - - - double - MakeBox1__y1 - - - double - MakeBox1__z1 - - - double - MakeBox1__x2 - - - double - MakeBox1__y2 - - - double - MakeBox1__z2 - - - double - MakeSphere_1__x1 - - - double - MakeSphere_1__y1 - - - double - MakeSphere_1__z1 - - - double - MakeSphere_1__radius - - - double - MakeTranslation_1__x1 - - - double - MakeTranslation_1__y1 - - - double - MakeTranslation_1__z1 - - - - - objref - MakeFuse_2__shape - - - - - - 25/8/2004 - 16:28:50 - 14/12/2005 - 14:41:59 - 2.0 - ? - ? - ? - 0 - 0 - - - - - ? - ? - gag - 3 - ? - - gag - - - - - - - gag - - - - - - - 14/12/2005 - 14:41:8 - 14/12/2005 - 14:41:8 - 2.0 - ? - ? - Compute Node - 0 - 123 - - - ? - ? - MakeBox1 - 3 - ? - - MakeBox1 - - - double - x1 - - - double - y1 - - - double - z1 - - - double - x2 - - - double - y2 - - - double - z2 - - - - - objref - shape - - - - - - - MakeBox1 - - - - - - 14/12/2005 - 14:41:8 - 14/12/2005 - 14:41:8 - 2.0 - ? - ? - Compute Node - 194 - 3 - - - ? - ? - MakeCopy_1 - 3 - ? - - MakeCopy_1 - - - objref - shape1 - - - - - objref - shape - - - - - - - MakeCopy_1 - - - - - - 14/12/2005 - 14:41:8 - 14/12/2005 - 14:41:8 - 2.0 - ? - ? - Compute Node - 389 - 3 - - - ? - ? - MakeCopy_2 - 3 - ? - - MakeCopy_2 - - - objref - shape1 - - - - - objref - shape - - - - - - - MakeCopy_2 - - - - - - 14/12/2005 - 14:41:8 - 14/12/2005 - 14:41:8 - 2.0 - ? - ? - Compute Node - 389 - 136 - - - ? - ? - MakeSphere_1 - 3 - ? - - MakeSphere_1 - - - double - x1 - - - double - y1 - - - double - z1 - - - double - radius - - - - - objref - shape - - - - - - - MakeSphere_1 - - - - - - - 14/12/2005 - 14:41:8 - 14/12/2005 - 14:41:8 - 2.0 - ? - ? - Compute Node - 609 - 313 - - - ? - ? - MakeTranslation_1 - 3 - ? - - MakeTranslation_1 - - - objref - shape1 - - - double - x1 - - - double - y1 - - - double - z1 - - - - - objref - shape - - - - - - - MakeTranslation_1 - - - - - - 14/12/2005 - 14:41:8 - 14/12/2005 - 14:41:8 - 2.0 - ? - ? - Compute Node - 596 - 3 - - - ? - ? - MakeFuse_1 - 3 - ? - - MakeFuse_1 - - - objref - shape1 - - - objref - shape2 - - - - - objref - shape - - - - - - - MakeFuse_1 - - - - - - - 14/12/2005 - 14:41:8 - 14/12/2005 - 14:41:8 - 2.0 - ? - ? - Compute Node - 823 - 116 - - - ? - ? - MakeFuse_2 - 3 - ? - - MakeFuse_2 - - - objref - shape1 - - - objref - shape2 - - - - - objref - shape - - - - - - - MakeFuse_2 - - - - - - - - - - - - - - 14/12/2005 - 14:41:8 - 14/12/2005 - 14:41:8 - 2.0 - ? - ? - Compute Node - 1049 - 295 - - - - - gag - Gate - MakeBox1 - Gate - - - - MakeBox1 - shape - MakeCopy_1 - shape1 - - - - MakeBox1 - shape - MakeCopy_2 - shape1 - - - 384 - 207 - - - - - MakeBox1 - Gate - MakeCopy_1 - Gate - - - - MakeCopy_1 - shape - MakeTranslation_1 - shape1 - - - - MakeCopy_1 - Gate - MakeCopy_2 - Gate - - - 366 - 231 - - - 570 - 98 - - - - - MakeCopy_2 - shape - MakeFuse_1 - shape2 - - - 674 - 207 - - - - - MakeCopy_2 - Gate - MakeSphere_1 - Gate - - - 554 - 468 - - - - - MakeSphere_1 - shape - MakeFuse_2 - shape2 - - - - MakeSphere_1 - Gate - MakeTranslation_1 - Gate - - - 573 - 158 - - - 796 - 468 - - - - - MakeTranslation_1 - shape - MakeFuse_1 - shape1 - - - - MakeTranslation_1 - Gate - MakeFuse_1 - Gate - - - - MakeFuse_1 - shape - MakeFuse_2 - shape1 - - - 1017 - 366 - - - 1017 - 187 - - - - - MakeFuse_1 - Gate - MakeFuse_2 - Gate - - - 987 - 410 - - - - - - - aNewDataFlow_1_4_2_1_1_2_2_1_1 - MakeBox1__x1 - MakeBox1 - x1 - - 7 - 0 - - - - - aNewDataFlow_1_4_2_1_1_2_2_1_1 - MakeBox1__y1 - MakeBox1 - y1 - - 7 - 0 - - - - - aNewDataFlow_1_4_2_1_1_2_2_1_1 - MakeBox1__z1 - MakeBox1 - z1 - - 7 - 0 - - - - - aNewDataFlow_1_4_2_1_1_2_2_1_1 - MakeBox1__x2 - MakeBox1 - x2 - - 7 - 50 - - - - - aNewDataFlow_1_4_2_1_1_2_2_1_1 - MakeBox1__y2 - MakeBox1 - y2 - - 7 - 50 - - - - - aNewDataFlow_1_4_2_1_1_2_2_1_1 - MakeBox1__z2 - MakeBox1 - z2 - - 7 - 50 - - - - - aNewDataFlow_1_4_2_1_1_2_2_1_1 - MakeSphere_1__x1 - MakeSphere_1 - x1 - - 7 - 0 - - - - - aNewDataFlow_1_4_2_1_1_2_2_1_1 - MakeSphere_1__y1 - MakeSphere_1 - y1 - - 7 - 0 - - - - - aNewDataFlow_1_4_2_1_1_2_2_1_1 - MakeSphere_1__z1 - MakeSphere_1 - z1 - - 7 - 0 - - - - - aNewDataFlow_1_4_2_1_1_2_2_1_1 - MakeSphere_1__radius - MakeSphere_1 - radius - - 7 - 12 - - - - - aNewDataFlow_1_4_2_1_1_2_2_1_1 - MakeTranslation_1__x1 - MakeTranslation_1 - x1 - - 7 - 25 - - - - - aNewDataFlow_1_4_2_1_1_2_2_1_1 - MakeTranslation_1__y1 - MakeTranslation_1 - y1 - - 7 - 25 - - - - - aNewDataFlow_1_4_2_1_1_2_2_1_1 - MakeTranslation_1__z1 - MakeTranslation_1 - z1 - - 7 - 25 - - - - - - - diff --git a/Superv/Graphs/GeomGraph_py.xml b/Superv/Graphs/GeomGraph_py.xml deleted file mode 100644 index 546ab7f..0000000 --- a/Superv/Graphs/GeomGraph_py.xml +++ /dev/null @@ -1,576 +0,0 @@ - - - - - - -? - ? - aNewDataFlow_1_4_2_1_1_2_2_1_1 - 1 - ? - -aNewDataFlow_1_4_2_1_1_2_2_1_1 - - -double - MakeBox1__x1 - -double - MakeBox1__y1 - -double - MakeBox1__z1 - -double - MakeBox1__x2 - -double - MakeBox1__y2 - -double - MakeBox1__z2 - -double - MakeSphere_1__x1 - -double - MakeSphere_1__y1 - -double - MakeSphere_1__z1 - -double - MakeSphere_1__radius - -double - MakeTranslation_1__x1 - -double - MakeTranslation_1__y1 - -double - MakeTranslation_1__z1 - - -objref - MakeFuse_2__shape - - - 25/8/2004 - 16:28:50 - 29/10/2004 - 10:50:25 - 2.0 - ? - ? - ? - 0 - 0 - - -? - ? - gag - 3 - ? - -gag - - - - - -gag - - - - - 29/10/2004 - 10:50:25 - 29/10/2004 - 10:50:25 - 2.0 - ? - ? - Compute Node - 0 - 123 - -? - ? - MakeBox1 - 3 - ? - -MakeBox1 - - -double - x1 - -double - y1 - -double - z1 - -double - x2 - -double - y2 - -double - z2 - - -objref - shape - - - -MakeBox1 - - - - 29/10/2004 - 10:50:25 - 29/10/2004 - 10:50:25 - 2.0 - ? - ? - Compute Node - 194 - 3 - -? - ? - MakeCopy_1 - 3 - ? - -MakeCopy_1 - - -objref - shape1 - - -objref - shape - - - -MakeCopy_1 - - - - 29/10/2004 - 10:50:25 - 29/10/2004 - 10:50:25 - 2.0 - ? - ? - Compute Node - 389 - 3 - -? - ? - MakeCopy_2 - 3 - ? - -MakeCopy_2 - - -objref - shape1 - - -objref - shape - - - -MakeCopy_2 - - - - 29/10/2004 - 10:50:25 - 29/10/2004 - 10:50:25 - 2.0 - ? - ? - Compute Node - 389 - 136 - -? - ? - MakeSphere_1 - 3 - ? - -MakeSphere_1 - - -double - x1 - -double - y1 - -double - z1 - -double - radius - - -objref - shape - - - -MakeSphere_1 - - - - - 29/10/2004 - 10:50:25 - 29/10/2004 - 10:50:25 - 2.0 - ? - ? - Compute Node - 203 - 315 - -? - ? - MakeTranslation_1 - 3 - ? - -MakeTranslation_1 - - -objref - shape1 - -double - x1 - -double - y1 - -double - z1 - - -objref - shape - - - -MakeTranslation_1 - - - - 29/10/2004 - 10:50:25 - 29/10/2004 - 10:50:25 - 2.0 - ? - ? - Compute Node - 596 - 3 - -? - ? - MakeFuse_1 - 3 - ? - -MakeFuse_1 - - -objref - shape1 - -objref - shape2 - - -objref - shape - - - -MakeFuse_1 - - - - - 29/10/2004 - 10:50:25 - 29/10/2004 - 10:50:25 - 2.0 - ? - ? - Compute Node - 823 - 116 - -? - ? - MakeFuse_2 - 3 - ? - -MakeFuse_2 - - -objref - shape1 - -objref - shape2 - - -objref - shape - - - -MakeFuse_2 - - - - - - - - - - - - - - - 29/10/2004 - 10:50:25 - 29/10/2004 - 10:50:25 - 2.0 - ? - ? - Compute Node - 1049 - 295 - - -gag - Gate - MakeBox1 - Gate - - -gag - Gate - MakeSphere_1 - Gate - - -164 - 470 - -164 - 265 - -MakeBox1 - shape - MakeCopy_1 - shape1 - - -MakeBox1 - shape - MakeCopy_2 - shape1 - - -384 - 207 - -MakeCopy_1 - shape - MakeTranslation_1 - shape1 - - -MakeCopy_2 - shape - MakeFuse_1 - shape2 - - -674 - 207 - -MakeSphere_1 - shape - MakeFuse_2 - shape2 - - -MakeTranslation_1 - shape - MakeFuse_1 - shape1 - - -MakeFuse_1 - shape - MakeFuse_2 - shape1 - - -1017 - 366 - -1017 - 187 - - -aNewDataFlow_1_4_2_1_1_2_2_1_1 - MakeBox1__x1 - MakeBox1 - x1 - -7 - 0 - - -aNewDataFlow_1_4_2_1_1_2_2_1_1 - MakeBox1__y1 - MakeBox1 - y1 - -7 - 0 - - -aNewDataFlow_1_4_2_1_1_2_2_1_1 - MakeBox1__z1 - MakeBox1 - z1 - -7 - 0 - - -aNewDataFlow_1_4_2_1_1_2_2_1_1 - MakeBox1__x2 - MakeBox1 - x2 - -7 - 50 - - -aNewDataFlow_1_4_2_1_1_2_2_1_1 - MakeBox1__y2 - MakeBox1 - y2 - -7 - 50 - - -aNewDataFlow_1_4_2_1_1_2_2_1_1 - MakeBox1__z2 - MakeBox1 - z2 - -7 - 50 - - -aNewDataFlow_1_4_2_1_1_2_2_1_1 - MakeSphere_1__x1 - MakeSphere_1 - x1 - -7 - 0 - - -aNewDataFlow_1_4_2_1_1_2_2_1_1 - MakeSphere_1__y1 - MakeSphere_1 - y1 - -7 - 0 - - -aNewDataFlow_1_4_2_1_1_2_2_1_1 - MakeSphere_1__z1 - MakeSphere_1 - z1 - -7 - 0 - - -aNewDataFlow_1_4_2_1_1_2_2_1_1 - MakeSphere_1__radius - MakeSphere_1 - radius - -7 - 12 - - -aNewDataFlow_1_4_2_1_1_2_2_1_1 - MakeTranslation_1__x1 - MakeTranslation_1 - x1 - -7 - 25 - - -aNewDataFlow_1_4_2_1_1_2_2_1_1 - MakeTranslation_1__y1 - MakeTranslation_1 - y1 - -7 - 25 - - -aNewDataFlow_1_4_2_1_1_2_2_1_1 - MakeTranslation_1__z1 - MakeTranslation_1 - z1 - -7 - 25 - diff --git a/Superv/Graphs/GraphAdd.xml b/Superv/Graphs/GraphAdd.xml deleted file mode 100644 index 0d2c0e0..0000000 --- a/Superv/Graphs/GraphAdd.xml +++ /dev/null @@ -1,115 +0,0 @@ - - - - - - - ? - ? - GraphAdd - 1 - ? - - aNewDataFlow - - - double - Add__x - - - double - Add__y - - - - - double - Add__FuncValue - - - double - Add__z - - - - - - 28/9/2005 - 16:2:26 - 28/9/2005 - 16:2:39 - 2.0 - ? - ? - ? - 0 - 0 - - - - - AddComponent - AddComponent - Add - 0 - ? - - Add - - - double - x - - - double - y - - - - - double - FuncValue - - - double - z - - - - - - 28/9/2005 - 16:2:39 - 28/9/2005 - 16:2:39 - 2.0 - ? - localhost/FactoryServer - Add from AddComponent - 55 - 61 - - - - - - - diff --git a/Superv/Graphs/GraphBadInputInLoop.xml b/Superv/Graphs/GraphBadInputInLoop.xml deleted file mode 100755 index 682d5fe..0000000 --- a/Superv/Graphs/GraphBadInputInLoop.xml +++ /dev/null @@ -1,381 +0,0 @@ - - - - - - -? - ? - GraphBadInputInLoop_1 - 1 - ? - -GraphBadInputInLoop_1 - - -long - InitLoop__Index - -long - InitLoop__Min - -long - InitLoop__Max - - -long - EndOfInitLoop__Index - -long - EndOfInitLoop__Min - -long - EndOfInitLoop__Max - -int - Switch__Even - - - 22/10/2003 - 10:36:39 - 17/6/2005 - 15:31:43 - 1.05 - ? - ? - ? - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - - -long - a - - - -IsOdd - - - - - - 17/6/2005 - 15:25:34 - 17/6/2005 - 15:25:34 - 1.05 - ? - ? - Python function - 397 - 1 - -? - ? - InitLoop - 4 - EndOfInitLoop - -InitLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -? - - -? - - -? - - 17/6/2005 - 15:25:34 - 17/6/2005 - 15:25:34 - 1.05 - ? - ? - Compute Node - 10 - 108 - -? - ? - EndOfInitLoop - 5 - InitLoop - -EndOfInitLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -EndOfInitLoop - - - - - - - - 17/6/2005 - 15:25:34 - 17/6/2005 - 15:25:34 - 1.05 - ? - ? - Compute Node - 767 - 102 - -? - ? - Switch - 6 - EndSwitch - -Switch - - -long - a - -long - InputInLoop - - -long - Odd - -int - Even - -int - a - - - -Switch - - - - - - 17/6/2005 - 15:25:34 - 17/6/2005 - 15:25:34 - 1.05 - ? - ? - Compute Node - 194 - 109 - -? - ? - EndSwitch - 7 - Switch - -EndSwitch - - -long - a - - -long - a - - - -EndSwitch - - - - - 17/6/2005 - 15:25:34 - 17/6/2005 - 15:25:34 - 1.05 - ? - ? - Compute Node - 587 - 103 - -? - ? - BadInputOfLoop - 3 - ? - -BadInputOfLoop - - - -long - InputInLoop - - - -BadInputOfLoop - - - - 17/6/2005 - 15:25:34 - 17/6/2005 - 15:25:34 - 2.0 - ? - ? - Compute Node - 15 - 307 - - -IsOdd - a - EndSwitch - a - - -InitLoop - DoLoop - EndOfInitLoop - DoLoop - - -InitLoop - Index - Switch - a - - -InitLoop - Min - EndOfInitLoop - Min - - -EndOfInitLoop - DoLoop - InitLoop - DoLoop - - -Switch - Odd - IsOdd - Gate - - -Switch - a - IsOdd - a - - -EndSwitch - a - EndOfInitLoop - Index - - -BadInputOfLoop - InputInLoop - Switch - InputInLoop - - - -GraphBadInputInLoop_1 - InitLoop__Index - InitLoop - Index - -3 - 0 - - -GraphBadInputInLoop_1 - InitLoop__Min - InitLoop - Min - -3 - 0 - - -GraphBadInputInLoop_1 - InitLoop__Max - InitLoop - Max - -3 - 100 - diff --git a/Superv/Graphs/GraphBadInputInLoop1.xml b/Superv/Graphs/GraphBadInputInLoop1.xml deleted file mode 100755 index d826e8b..0000000 --- a/Superv/Graphs/GraphBadInputInLoop1.xml +++ /dev/null @@ -1,381 +0,0 @@ - - - - - - -? - ? - GraphBadInputInLoop1_1 - 1 - ? - -GraphBadInputInLoop1_1 - - -long - InitLoop__Index - -long - InitLoop__Min - -long - InitLoop__Max - - -long - EndOfInitLoop__Index - -long - EndOfInitLoop__Min - -long - EndOfInitLoop__Max - - - 22/10/2003 - 10:36:39 - 17/6/2005 - 16:4:48 - 1.05 - ? - ? - ? - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - - -long - a - - - -IsOdd - - - - - - 17/6/2005 - 16:4:37 - 17/6/2005 - 16:4:37 - 1.05 - ? - ? - Python function - 397 - 1 - -? - ? - InitLoop - 4 - EndOfInitLoop - -InitLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -? - - -? - - -? - - 17/6/2005 - 16:4:37 - 17/6/2005 - 16:4:37 - 1.05 - ? - ? - Compute Node - 10 - 108 - -? - ? - EndOfInitLoop - 5 - InitLoop - -EndOfInitLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -EndOfInitLoop - - - - - - - - 17/6/2005 - 16:4:37 - 17/6/2005 - 16:4:37 - 1.05 - ? - ? - Compute Node - 767 - 102 - -? - ? - Switch - 6 - EndSwitch - -Switch - - -long - a - - -long - Odd - -int - Even - -int - a - - - -Switch - - - - - - 17/6/2005 - 16:4:37 - 17/6/2005 - 16:4:37 - 1.05 - ? - ? - Compute Node - 194 - 109 - -? - ? - EndSwitch - 7 - Switch - -EndSwitch - - -long - a - - -long - a - - - -EndSwitch - - - - - 17/6/2005 - 16:4:37 - 17/6/2005 - 16:4:37 - 1.05 - ? - ? - Compute Node - 587 - 103 - -? - ? - BadInputOfLoop - 3 - ? - -BadInputOfLoop - - - -boolean - InputInLoop - - - -BadInputOfLoop - - - - 17/6/2005 - 16:4:37 - 17/6/2005 - 16:4:37 - 2.0 - ? - ? - Compute Node - 15 - 307 - - -IsOdd - a - EndSwitch - a - - -InitLoop - DoLoop - EndOfInitLoop - DoLoop - - -InitLoop - Index - Switch - a - - -InitLoop - Min - EndOfInitLoop - Min - - -EndOfInitLoop - DoLoop - InitLoop - DoLoop - - -Switch - Odd - IsOdd - Gate - - -Switch - Even - EndSwitch - Default - - -Switch - a - IsOdd - a - - -EndSwitch - a - EndOfInitLoop - Index - - -BadInputOfLoop - InputInLoop - EndOfInitLoop - Max - - - -GraphBadInputInLoop1_1 - InitLoop__Index - InitLoop - Index - -3 - 0 - - -GraphBadInputInLoop1_1 - InitLoop__Min - InitLoop - Min - -3 - 0 - - -GraphBadInputInLoop1_1 - InitLoop__Max - InitLoop - Max - -3 - 100 - diff --git a/Superv/Graphs/GraphBadInputInLoop2.xml b/Superv/Graphs/GraphBadInputInLoop2.xml deleted file mode 100755 index 1ef5c9c..0000000 --- a/Superv/Graphs/GraphBadInputInLoop2.xml +++ /dev/null @@ -1,384 +0,0 @@ - - - - - - -? - ? - GraphBadInputInLoop2 - 1 - ? - -GraphBadInputInLoop2 - - -long - InitLoop__Index - -long - InitLoop__Min - -long - InitLoop__Max - - -long - EndOfInitLoop__Index - -long - EndOfInitLoop__Min - -long - EndOfInitLoop__Max - - - 22/10/2003 - 10:36:39 - 6/6/2005 - 11:9:55 - 1.05 - ? - ? - ? - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - -boolean - InputInLoop - - -long - a - - - -IsOdd - - - - - - 6/6/2005 - 11:9:7 - 6/6/2005 - 11:9:7 - 1.05 - ? - ? - Python function - 397 - 1 - -? - ? - InitLoop - 4 - EndOfInitLoop - -InitLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -? - - -? - - -? - - 6/6/2005 - 11:9:7 - 6/6/2005 - 11:9:7 - 1.05 - ? - ? - Compute Node - 10 - 108 - -? - ? - EndOfInitLoop - 5 - InitLoop - -EndOfInitLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -EndOfInitLoop - - - - - - - - 6/6/2005 - 11:9:7 - 6/6/2005 - 11:9:7 - 1.05 - ? - ? - Compute Node - 767 - 102 - -? - ? - Switch - 6 - EndSwitch - -Switch - - -long - a - - -long - Odd - -int - Even - -int - a - - - -Switch - - - - - - 6/6/2005 - 11:9:7 - 6/6/2005 - 11:9:7 - 1.05 - ? - ? - Compute Node - 194 - 109 - -? - ? - EndSwitch - 7 - Switch - -EndSwitch - - -long - a - - -long - a - - - -EndSwitch - - - - - 6/6/2005 - 11:9:7 - 6/6/2005 - 11:9:7 - 1.05 - ? - ? - Compute Node - 587 - 103 - -? - ? - BadInputOfLoop - 3 - ? - -BadInputOfLoop - - - -boolean - InputInLoop - - - -BadInputOfLoop - - - - 6/6/2005 - 11:9:7 - 6/6/2005 - 11:9:7 - 2.0 - ? - ? - Compute Node - 15 - 307 - - -IsOdd - a - EndSwitch - a - - -InitLoop - DoLoop - EndOfInitLoop - DoLoop - - -InitLoop - Index - Switch - a - - -InitLoop - Min - EndOfInitLoop - Min - - -EndOfInitLoop - DoLoop - InitLoop - DoLoop - - -Switch - Odd - IsOdd - Gate - - -Switch - Even - EndSwitch - Default - - -Switch - a - IsOdd - a - - -EndSwitch - a - EndOfInitLoop - Index - - -BadInputOfLoop - InputInLoop - IsOdd - InputInLoop - - - -GraphBadInputInLoop2 - InitLoop__Index - InitLoop - Index - -3 - 0 - - -GraphBadInputInLoop2 - InitLoop__Min - InitLoop - Min - -3 - 0 - - -GraphBadInputInLoop2 - InitLoop__Max - InitLoop - Max - -3 - 100 - diff --git a/Superv/Graphs/GraphBadInputInLoop3.xml b/Superv/Graphs/GraphBadInputInLoop3.xml deleted file mode 100755 index ea17596..0000000 --- a/Superv/Graphs/GraphBadInputInLoop3.xml +++ /dev/null @@ -1,390 +0,0 @@ - - - - - - -? - ? - GraphBadInputInLoop3 - 1 - ? - -GraphBadInputInLoop3 - - -boolean - IsOdd__InputInLoop - -long - InitLoop__Index - -long - InitLoop__Min - -long - InitLoop__Max - - -long - EndOfInitLoop__Index - -long - EndOfInitLoop__Min - -long - EndOfInitLoop__Max - -boolean - BadInputOfLoop__InputInLoop - - - 22/10/2003 - 10:36:39 - 6/6/2005 - 11:13:36 - 1.05 - ? - ? - ? - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - -boolean - InputInLoop - - -long - a - - - -IsOdd - - - - - - 6/6/2005 - 11:11:59 - 6/6/2005 - 11:11:59 - 1.05 - ? - ? - Python function - 397 - 1 - -? - ? - InitLoop - 4 - EndOfInitLoop - -InitLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -? - - -? - - -? - - 6/6/2005 - 11:11:59 - 6/6/2005 - 11:11:59 - 1.05 - ? - ? - Compute Node - 10 - 108 - -? - ? - EndOfInitLoop - 5 - InitLoop - -EndOfInitLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -EndOfInitLoop - - - - - - - - 6/6/2005 - 11:11:59 - 6/6/2005 - 11:11:59 - 1.05 - ? - ? - Compute Node - 767 - 102 - -? - ? - Switch - 6 - EndSwitch - -Switch - - -long - a - - -long - Odd - -int - Even - -int - a - - - -Switch - - - - - - 6/6/2005 - 11:11:59 - 6/6/2005 - 11:11:59 - 1.05 - ? - ? - Compute Node - 194 - 109 - -? - ? - EndSwitch - 7 - Switch - -EndSwitch - - -long - a - - -long - a - - - -EndSwitch - - - - - 6/6/2005 - 11:11:59 - 6/6/2005 - 11:11:59 - 1.05 - ? - ? - Compute Node - 587 - 103 - -? - ? - BadInputOfLoop - 3 - ? - -BadInputOfLoop - - - -boolean - InputInLoop - - - -BadInputOfLoop - - - - 6/6/2005 - 11:11:59 - 6/6/2005 - 11:11:59 - 2.0 - ? - ? - Compute Node - 359 - 318 - - -IsOdd - a - EndSwitch - a - - -InitLoop - DoLoop - EndOfInitLoop - DoLoop - - -InitLoop - Index - Switch - a - - -InitLoop - Min - EndOfInitLoop - Min - - -EndOfInitLoop - DoLoop - InitLoop - DoLoop - - -Switch - Odd - IsOdd - Gate - - -Switch - Even - EndSwitch - Default - - -Switch - a - IsOdd - a - - -EndSwitch - a - EndOfInitLoop - Index - - -BadInputOfLoop - Gate - EndOfInitLoop - Gate - - - -GraphBadInputInLoop3 - InitLoop__Index - InitLoop - Index - -3 - 0 - - -GraphBadInputInLoop3 - InitLoop__Min - InitLoop - Min - -3 - 0 - - -GraphBadInputInLoop3 - InitLoop__Max - InitLoop - Max - -3 - 100 - diff --git a/Superv/Graphs/GraphBadOutputOfLoop.xml b/Superv/Graphs/GraphBadOutputOfLoop.xml deleted file mode 100755 index f0b225c..0000000 --- a/Superv/Graphs/GraphBadOutputOfLoop.xml +++ /dev/null @@ -1,387 +0,0 @@ - - - - - - -? - ? - GraphBadOutputOfLoop - 1 - ? - -GraphBadOutputOfLoop - - -boolean - IsOdd__InputInLoop - -long - InitLoop__Index - -long - InitLoop__Min - -long - InitLoop__Max - - -long - EndOfInitLoop__Index - -long - EndOfInitLoop__Min - -long - EndOfInitLoop__Max - - - 22/10/2003 - 10:36:39 - 6/6/2005 - 11:19:39 - 1.05 - ? - ? - ? - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - -boolean - InputInLoop - - -long - a - - - -IsOdd - - - - - - 6/6/2005 - 11:18:37 - 6/6/2005 - 11:18:37 - 1.05 - ? - ? - Python function - 397 - 1 - -? - ? - InitLoop - 4 - EndOfInitLoop - -InitLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -? - - -? - - -? - - 6/6/2005 - 11:18:37 - 6/6/2005 - 11:18:37 - 1.05 - ? - ? - Compute Node - 10 - 108 - -? - ? - EndOfInitLoop - 5 - InitLoop - -EndOfInitLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -EndOfInitLoop - - - - - - - - 6/6/2005 - 11:18:37 - 6/6/2005 - 11:18:37 - 1.05 - ? - ? - Compute Node - 767 - 102 - -? - ? - Switch - 6 - EndSwitch - -Switch - - -long - a - - -long - Odd - -int - Even - -int - a - - - -Switch - - - - - - 6/6/2005 - 11:18:37 - 6/6/2005 - 11:18:37 - 1.05 - ? - ? - Compute Node - 194 - 109 - -? - ? - EndSwitch - 7 - Switch - -EndSwitch - - -long - a - - -long - a - - - -EndSwitch - - - - - 6/6/2005 - 11:18:37 - 6/6/2005 - 11:18:37 - 1.05 - ? - ? - Compute Node - 587 - 103 - -? - ? - BadOutputOfLoop - 3 - ? - -BadOutputOfLoop - - -long - OutputOfLoop - - - - -BadOutputOfLoop - - - - 6/6/2005 - 11:18:37 - 6/6/2005 - 11:18:37 - 2.0 - ? - ? - Compute Node - 768 - 323 - - -IsOdd - a - EndSwitch - a - - -InitLoop - DoLoop - EndOfInitLoop - DoLoop - - -InitLoop - Index - Switch - a - - -InitLoop - Min - EndOfInitLoop - Min - - -EndOfInitLoop - DoLoop - InitLoop - DoLoop - - -Switch - Odd - IsOdd - Gate - - -Switch - Even - EndSwitch - Default - - -Switch - a - IsOdd - a - - -EndSwitch - a - EndOfInitLoop - Index - - -EndSwitch - a - BadOutputOfLoop - OutputOfLoop - - - -GraphBadOutputOfLoop - InitLoop__Index - InitLoop - Index - -3 - 0 - - -GraphBadOutputOfLoop - InitLoop__Min - InitLoop - Min - -3 - 0 - - -GraphBadOutputOfLoop - InitLoop__Max - InitLoop - Max - -3 - 100 - diff --git a/Superv/Graphs/GraphBadOutputOfLoop1.xml b/Superv/Graphs/GraphBadOutputOfLoop1.xml deleted file mode 100755 index 6b2036c..0000000 --- a/Superv/Graphs/GraphBadOutputOfLoop1.xml +++ /dev/null @@ -1,381 +0,0 @@ - - - - - - -? - ? - GraphBadOutputOfLoop1 - 1 - ? - -GraphBadOutputOfLoop1 - - -long - InitLoop__Index - -long - InitLoop__Min - -long - InitLoop__Max - - -long - EndOfInitLoop__Index - -long - EndOfInitLoop__Min - -long - EndOfInitLoop__Max - - - 22/10/2003 - 10:36:39 - 6/6/2005 - 11:25:16 - 1.05 - ? - ? - ? - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - - -long - a - - - -IsOdd - - - - - - 6/6/2005 - 11:23:48 - 6/6/2005 - 11:23:48 - 1.05 - ? - ? - Python function - 397 - 1 - -? - ? - InitLoop - 4 - EndOfInitLoop - -InitLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -? - - -? - - -? - - 6/6/2005 - 11:23:48 - 6/6/2005 - 11:23:48 - 1.05 - ? - ? - Compute Node - 10 - 108 - -? - ? - EndOfInitLoop - 5 - InitLoop - -EndOfInitLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -EndOfInitLoop - - - - - - - - 6/6/2005 - 11:23:48 - 6/6/2005 - 11:23:48 - 1.05 - ? - ? - Compute Node - 767 - 102 - -? - ? - Switch - 6 - EndSwitch - -Switch - - -long - a - - -long - Odd - -int - Even - -int - a - - - -Switch - - - - - - 6/6/2005 - 11:23:48 - 6/6/2005 - 11:23:48 - 1.05 - ? - ? - Compute Node - 194 - 109 - -? - ? - EndSwitch - 7 - Switch - -EndSwitch - - -long - a - - -long - a - - - -EndSwitch - - - - - 6/6/2005 - 11:23:48 - 6/6/2005 - 11:23:48 - 1.05 - ? - ? - Compute Node - 587 - 103 - -? - ? - BadOutputOfLoop - 3 - ? - -BadOutputOfLoop - - -long - OutputOfLoop - - - - -BadOutputOfLoop - - - - 6/6/2005 - 11:23:48 - 6/6/2005 - 11:23:48 - 2.0 - ? - ? - Compute Node - 287 - 349 - - -IsOdd - a - EndSwitch - a - - -InitLoop - DoLoop - EndOfInitLoop - DoLoop - - -InitLoop - Index - Switch - a - - -InitLoop - Min - EndOfInitLoop - Min - - -InitLoop - Max - BadOutputOfLoop - OutputOfLoop - - -EndOfInitLoop - DoLoop - InitLoop - DoLoop - - -Switch - Odd - IsOdd - Gate - - -Switch - Even - EndSwitch - Default - - -Switch - a - IsOdd - a - - -EndSwitch - a - EndOfInitLoop - Index - - - -GraphBadOutputOfLoop1 - InitLoop__Index - InitLoop - Index - -3 - 0 - - -GraphBadOutputOfLoop1 - InitLoop__Min - InitLoop - Min - -3 - 0 - - -GraphBadOutputOfLoop1 - InitLoop__Max - InitLoop - Max - -3 - 100 - diff --git a/Superv/Graphs/GraphBadOutputOfLoop2.xml b/Superv/Graphs/GraphBadOutputOfLoop2.xml deleted file mode 100755 index 31da5a6..0000000 --- a/Superv/Graphs/GraphBadOutputOfLoop2.xml +++ /dev/null @@ -1,381 +0,0 @@ - - - - - - -? - ? - GraphBadOutputOfLoop2 - 1 - ? - -GraphBadOutputOfLoop2 - - -long - InitLoop__Index - -long - InitLoop__Min - -long - InitLoop__Max - - -long - EndOfInitLoop__Index - -long - EndOfInitLoop__Min - -long - EndOfInitLoop__Max - - - 22/10/2003 - 10:36:39 - 6/6/2005 - 11:27:14 - 1.05 - ? - ? - ? - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - - -long - a - - - -IsOdd - - - - - - 6/6/2005 - 11:26:44 - 6/6/2005 - 11:26:44 - 1.05 - ? - ? - Python function - 397 - 1 - -? - ? - InitLoop - 4 - EndOfInitLoop - -InitLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -? - - -? - - -? - - 6/6/2005 - 11:26:44 - 6/6/2005 - 11:26:44 - 1.05 - ? - ? - Compute Node - 10 - 108 - -? - ? - EndOfInitLoop - 5 - InitLoop - -EndOfInitLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -EndOfInitLoop - - - - - - - - 6/6/2005 - 11:26:44 - 6/6/2005 - 11:26:44 - 1.05 - ? - ? - Compute Node - 767 - 102 - -? - ? - Switch - 6 - EndSwitch - -Switch - - -long - a - - -long - Odd - -int - Even - -int - a - - - -Switch - - - - - - 6/6/2005 - 11:26:44 - 6/6/2005 - 11:26:44 - 1.05 - ? - ? - Compute Node - 194 - 109 - -? - ? - EndSwitch - 7 - Switch - -EndSwitch - - -long - a - - -long - a - - - -EndSwitch - - - - - 6/6/2005 - 11:26:44 - 6/6/2005 - 11:26:44 - 1.05 - ? - ? - Compute Node - 587 - 103 - -? - ? - BadOutputOfLoop - 3 - ? - -BadOutputOfLoop - - -long - OutputOfLoop - - - - -BadOutputOfLoop - - - - 6/6/2005 - 11:26:44 - 6/6/2005 - 11:26:44 - 2.0 - ? - ? - Compute Node - 503 - 338 - - -IsOdd - a - EndSwitch - a - - -InitLoop - DoLoop - EndOfInitLoop - DoLoop - - -InitLoop - Index - Switch - a - - -InitLoop - Min - EndOfInitLoop - Min - - -EndOfInitLoop - DoLoop - InitLoop - DoLoop - - -Switch - Odd - IsOdd - Gate - - -Switch - Even - EndSwitch - Default - - -Switch - a - BadOutputOfLoop - OutputOfLoop - - -Switch - a - IsOdd - a - - -EndSwitch - a - EndOfInitLoop - Index - - - -GraphBadOutputOfLoop2 - InitLoop__Index - InitLoop - Index - -3 - 0 - - -GraphBadOutputOfLoop2 - InitLoop__Min - InitLoop - Min - -3 - 0 - - -GraphBadOutputOfLoop2 - InitLoop__Max - InitLoop - Max - -3 - 100 - diff --git a/Superv/Graphs/GraphBugEditor.xml b/Superv/Graphs/GraphBugEditor.xml deleted file mode 100644 index f700f70..0000000 --- a/Superv/Graphs/GraphBugEditor.xml +++ /dev/null @@ -1,230 +0,0 @@ - - - - - - -? - ? - GraphBugEditor - 1 - ? - -GraphBugEditor - - -int - Loop__it - -int - Loop__itMax - -long - compute_power_1__nitermax - -long - compute_power_1__epsflux - -long - compute_power_1__espeigenval - - -int - EndLoop__it - -int - EndLoop__itMax - -long - compute_power_1__return - - - 10/6/2005 - 11:33:49 - 7/7/2005 - 11:39:27 - 2.0 - Nicolas Crouzet & JR - ? - ? - 0 - 0 - - -? - ? - Loop - 4 - EndLoop - -Loop - - -int - it - -int - itMax - - -int - it - -int - itMax - - - -Loop - - - -More - - - - - - - -Next - - - - 7/7/2005 - 11:37:23 - 7/7/2005 - 11:37:23 - 2.0 - ? - ? - Compute Node - 21 - 161 - -? - ? - EndLoop - 5 - Loop - -EndLoop - - -int - it - -int - itMax - - -int - it - -int - itMax - - - -EndLoop - - 7/7/2005 - 11:37:23 - 7/7/2005 - 11:37:23 - 2.0 - ? - ? - Compute Node - 426 - 161 - -? - ? - compute_power_1 - 3 - ? - -compute_power_1 - - - - - -compute_power - - - 7/7/2005 - 11:38:24 - 7/7/2005 - 11:38:24 - 2.0 - ? - ? - Compute Node - 226 - 103 - - -Loop - DoLoop - EndLoop - DoLoop - - -Loop - it - EndLoop - it - - -Loop - itMax - EndLoop - itMax - - -Loop - Gate - compute_power_1 - Gate - - -EndLoop - DoLoop - Loop - DoLoop - - - -GraphBugEditor - Loop__it - Loop - it - -3 - 1 - - -GraphBugEditor - Loop__itMax - Loop - itMax - -3 - 5 - diff --git a/Superv/Graphs/GraphContainer.xml b/Superv/Graphs/GraphContainer.xml deleted file mode 100755 index 4faf73e..0000000 --- a/Superv/Graphs/GraphContainer.xml +++ /dev/null @@ -1,387 +0,0 @@ - - - - - -? - ? - GraphContainer - 1 - ? - -GraphContainer - - -double - Add\x - -double - Add\y - -double - Sub\y - -double - Mul\y - - -double - Div\z - -double - AddAndCompare\FuncValue - -double - AddAndCompare\z - - - 11/3/2003 - 10:59:37 - 13/11/2003 - 14:33:24 - 1.04 - ? - ? - ? - 0 - 0 - - -AddComponent - AddComponent - Add - 0 - ? - -Add - - -double - x - -double - y - - -double - FuncValue - -double - z - - - 13/11/2003 - 14:29:5 - 13/11/2003 - 14:29:5 - 1.04 - ? - SuperVisionContainer - Add from AddComponent - 1 - 152 - -SubComponent - SubComponent - Sub - 0 - ? - -Sub - - -double - x - -double - y - - -double - z - - - 13/11/2003 - 14:29:5 - 13/11/2003 - 14:29:5 - 1.04 - ? - localhost/FactoryServer - Sub from SubComponent - 412 - 377 - -MulComponent - MulComponent - Mul - 0 - ? - -Mul - - -double - x - -double - y - - -double - z - - - 13/11/2003 - 14:29:5 - 13/11/2003 - 14:29:5 - 1.04 - ? - localhost/FactoryServer - Mul from MulComponent - 412 - 152 - -DivComponent - DivComponent - Div - 0 - ? - -Div - - -double - x - -double - y - - -double - z - - - 13/11/2003 - 14:29:5 - 13/11/2003 - 14:29:5 - 1.04 - ? - localhost/FactoryServer - Div from DivComponent - 622 - 124 - -AddComponent - AddComponent - Addition - 0 - ? - -Addition - - - -Adder - Adder - - - 13/11/2003 - 14:29:5 - 13/11/2003 - 14:29:5 - 1.04 - ? - SuperVisionContainer - Addition from AddComponent - 0 - 0 - -AddComponent - AddComponent - Addition_1 - 0 - ? - -Addition - - - -Adder - Adder - - - 13/11/2003 - 14:29:5 - 13/11/2003 - 14:29:5 - 1.04 - ? - SuperVisionContainer - Addition from AddComponent - 4 - 327 - -? - ? - AddAndCompare - 2 - ? - -AddAndCompare - - -Adder - Adder - -double - x - -double - y - -Adder - anOtherAdder - - -double - FuncValue - -double - z - - - 13/11/2003 - 14:29:5 - 13/11/2003 - 14:29:5 - 1.04 - ? - ? - ? - 233 - 0 - - -Add - FuncValue - Mul - x - - -Add - FuncValue - AddAndCompare - x - - -195 - 108 - -195 - 233 - -Add - z - Sub - x - - -187 - 459 - -186 - 262 - -Add - z - AddAndCompare - y - - -187 - 139 - -186 - 261 - -Sub - z - Div - x - - -598 - 203 - -598 - 457 - -Mul - z - Div - y - - -Addition - Adder - AddAndCompare - Adder - - -Addition_1 - Adder - AddAndCompare - anOtherAdder - - -215 - 168 - -214 - 407 - - -GraphContainer - Add\x - Add - x - -7 - 1 - - -GraphContainer - Add\y - Add - y - -7 - 2 - - -GraphContainer - Sub\y - Sub - y - -7 - 3 - - -GraphContainer - Mul\y - Mul - y - -7 - 4 - diff --git a/Superv/Graphs/GraphConvertBoolCheck.xml b/Superv/Graphs/GraphConvertBoolCheck.xml deleted file mode 100755 index df2043b..0000000 --- a/Superv/Graphs/GraphConvertBoolCheck.xml +++ /dev/null @@ -1,218 +0,0 @@ - - - - - -? - ? - GraphConvertBoolCheck - 1 - ? - -GraphConvertStringCheck - - - -string - MiscTypes\OutString - -boolean - MiscTypes\OutBool - -char - MiscTypes\OutChar - -short - MiscTypes\OutShort - -long - MiscTypes\OutLong - -float - MiscTypes\OutFloat - -double - MiscTypes\OutDouble - -SuperVisionTest::Adder - MiscTypes\OutObjRef - - - 30/7/2003 - 14:23:52 - 11/9/2003 - 17:12:56 - 1.04 - JR - ? - Check conversions of Bool - 0 - 0 - - -? - ? - Bool - 3 - ? - -StringString - - - -boolean - OutBool - - - -Bool - - - - - 11/9/2003 - 17:10:57 - 11/9/2003 - 17:10:57 - 1.04 - JR - ? - InLine Node - 14 - 114 - -TypesCheck - TypesCheck - MiscTypes - 0 - ? - -MiscTypes - - -string - InString - -boolean - InBool - -char - InChar - -short - InShort - -long - InLong - -float - InFloat - -double - InDouble - -SuperVisionTest::Adder - InObjRef - - -string - OutString - -boolean - OutBool - -char - OutChar - -short - OutShort - -long - OutLong - -float - OutFloat - -double - OutDouble - -SuperVisionTest::Adder - OutObjRef - - - 11/9/2003 - 17:10:57 - 11/9/2003 - 17:10:57 - 1.05 - ? - localhost/FactoryServer - MiscTypes from TypesCheck - 284 - 28 - - -Bool - OutBool - MiscTypes - InString - - -Bool - OutBool - MiscTypes - InBool - - -Bool - OutBool - MiscTypes - InChar - - -Bool - OutBool - MiscTypes - InShort - - -Bool - OutBool - MiscTypes - InLong - - -Bool - OutBool - MiscTypes - InFloat - - -Bool - OutBool - MiscTypes - InDouble - - -Bool - OutBool - MiscTypes - InObjRef - - diff --git a/Superv/Graphs/GraphConvertBoolStringCheck.xml b/Superv/Graphs/GraphConvertBoolStringCheck.xml deleted file mode 100755 index 09dc82d..0000000 --- a/Superv/Graphs/GraphConvertBoolStringCheck.xml +++ /dev/null @@ -1,218 +0,0 @@ - - - - - -? - ? - GraphConvertBoolStringCheck - 1 - ? - -GraphConvertBoolStringCheck - - - -string - MiscTypes\OutString - -boolean - MiscTypes\OutBool - -char - MiscTypes\OutChar - -short - MiscTypes\OutShort - -long - MiscTypes\OutLong - -float - MiscTypes\OutFloat - -double - MiscTypes\OutDouble - -SuperVisionTest::Adder - MiscTypes\OutObjRef - - - 30/7/2003 - 14:23:52 - 11/9/2003 - 16:51:13 - 1.04 - JR - ? - Check conversions of String - 0 - 0 - - -? - ? - BoolString - 3 - ? - -StringString - - - -string - OutString - - - -StringString - - - - - 11/9/2003 - 16:49:52 - 11/9/2003 - 16:49:52 - 1.04 - JR - ? - InLine Node - 14 - 114 - -TypesCheck - TypesCheck - MiscTypes - 0 - ? - -MiscTypes - - -string - InString - -boolean - InBool - -char - InChar - -short - InShort - -long - InLong - -float - InFloat - -double - InDouble - -SuperVisionTest::Adder - InObjRef - - -string - OutString - -boolean - OutBool - -char - OutChar - -short - OutShort - -long - OutLong - -float - OutFloat - -double - OutDouble - -SuperVisionTest::Adder - OutObjRef - - - 11/9/2003 - 16:49:52 - 11/9/2003 - 16:49:52 - 1.05 - ? - localhost/FactoryServer - MiscTypes from TypesCheck - 284 - 28 - - -BoolString - OutString - MiscTypes - InString - - -BoolString - OutString - MiscTypes - InBool - - -BoolString - OutString - MiscTypes - InChar - - -BoolString - OutString - MiscTypes - InShort - - -BoolString - OutString - MiscTypes - InLong - - -BoolString - OutString - MiscTypes - InFloat - - -BoolString - OutString - MiscTypes - InDouble - - -BoolString - OutString - MiscTypes - InObjRef - - diff --git a/Superv/Graphs/GraphConvertCharCheck.xml b/Superv/Graphs/GraphConvertCharCheck.xml deleted file mode 100755 index da999c8..0000000 --- a/Superv/Graphs/GraphConvertCharCheck.xml +++ /dev/null @@ -1,218 +0,0 @@ - - - - - -? - ? - GraphConvertCharCheck - 1 - ? - -GraphConvertCharCheck - - - -string - MiscTypes\OutString - -boolean - MiscTypes\OutBool - -char - MiscTypes\OutChar - -short - MiscTypes\OutShort - -long - MiscTypes\OutLong - -float - MiscTypes\OutFloat - -double - MiscTypes\OutDouble - -SuperVisionTest::Adder - MiscTypes\OutObjRef - - - 30/7/2003 - 14:23:52 - 11/9/2003 - 17:20:24 - 1.04 - JR - ? - Check conversions of Char - 0 - 0 - - -? - ? - Char - 3 - ? - -Char - - - -char - OutChar - - - -Char - - - - - 11/9/2003 - 17:20:24 - 11/9/2003 - 17:20:24 - 1.04 - JR - ? - InLine Node - 14 - 114 - -TypesCheck - TypesCheck - MiscTypes - 0 - ? - -MiscTypes - - -string - InString - -boolean - InBool - -char - InChar - -short - InShort - -long - InLong - -float - InFloat - -double - InDouble - -SuperVisionTest::Adder - InObjRef - - -string - OutString - -boolean - OutBool - -char - OutChar - -short - OutShort - -long - OutLong - -float - OutFloat - -double - OutDouble - -SuperVisionTest::Adder - OutObjRef - - - 11/9/2003 - 17:20:24 - 11/9/2003 - 17:20:24 - 1.05 - ? - localhost/FactoryServer - MiscTypes from TypesCheck - 284 - 28 - - -Char - OutChar - MiscTypes - InString - - -Char - OutChar - MiscTypes - InBool - - -Char - OutChar - MiscTypes - InChar - - -Char - OutChar - MiscTypes - InShort - - -Char - OutChar - MiscTypes - InLong - - -Char - OutChar - MiscTypes - InFloat - - -Char - OutChar - MiscTypes - InDouble - - -Char - OutChar - MiscTypes - InObjRef - - diff --git a/Superv/Graphs/GraphConvertCharStringCheck.xml b/Superv/Graphs/GraphConvertCharStringCheck.xml deleted file mode 100755 index 2a7abb9..0000000 --- a/Superv/Graphs/GraphConvertCharStringCheck.xml +++ /dev/null @@ -1,218 +0,0 @@ - - - - - -? - ? - GraphConvertCharStringCheck - 1 - ? - -GraphConvertStringCheck - - - -string - MiscTypes\OutString - -boolean - MiscTypes\OutBool - -char - MiscTypes\OutChar - -short - MiscTypes\OutShort - -long - MiscTypes\OutLong - -float - MiscTypes\OutFloat - -double - MiscTypes\OutDouble - -SuperVisionTest::Adder - MiscTypes\OutObjRef - - - 30/7/2003 - 14:23:52 - 11/9/2003 - 16:52:50 - 1.04 - JR - ? - Check conversions of String - 0 - 0 - - -? - ? - CharString - 3 - ? - -StringString - - - -string - OutString - - - -StringString - - - - - 11/9/2003 - 16:52:29 - 11/9/2003 - 16:52:29 - 1.04 - JR - ? - InLine Node - 14 - 114 - -TypesCheck - TypesCheck - MiscTypes - 0 - ? - -MiscTypes - - -string - InString - -boolean - InBool - -char - InChar - -short - InShort - -long - InLong - -float - InFloat - -double - InDouble - -SuperVisionTest::Adder - InObjRef - - -string - OutString - -boolean - OutBool - -char - OutChar - -short - OutShort - -long - OutLong - -float - OutFloat - -double - OutDouble - -SuperVisionTest::Adder - OutObjRef - - - 11/9/2003 - 16:52:29 - 11/9/2003 - 16:52:29 - 1.05 - ? - localhost/FactoryServer - MiscTypes from TypesCheck - 284 - 28 - - -CharString - OutString - MiscTypes - InString - - -CharString - OutString - MiscTypes - InBool - - -CharString - OutString - MiscTypes - InChar - - -CharString - OutString - MiscTypes - InShort - - -CharString - OutString - MiscTypes - InLong - - -CharString - OutString - MiscTypes - InFloat - - -CharString - OutString - MiscTypes - InDouble - - -CharString - OutString - MiscTypes - InObjRef - - diff --git a/Superv/Graphs/GraphConvertDoubleCheck.xml b/Superv/Graphs/GraphConvertDoubleCheck.xml deleted file mode 100755 index e277ecd..0000000 --- a/Superv/Graphs/GraphConvertDoubleCheck.xml +++ /dev/null @@ -1,391 +0,0 @@ - - - - - -? - ? - GraphConvertDoubleCheck - 1 - ? - -GraphConvertDoubleCheck - - - -string - MiscTypes\OutString - -boolean - MiscTypes\OutBool - -char - MiscTypes\OutChar - -short - MiscTypes\OutShort - -long - MiscTypes\OutLong - -float - MiscTypes\OutFloat - -double - MiscTypes\OutDouble - -SuperVisionTest::Adder - MiscTypes\OutObjRef - -string - MiscTypes_1\OutString - -boolean - MiscTypes_1\OutBool - -char - MiscTypes_1\OutChar - -short - MiscTypes_1\OutShort - -long - MiscTypes_1\OutLong - -float - MiscTypes_1\OutFloat - -double - MiscTypes_1\OutDouble - -SuperVisionTest::Adder - MiscTypes_1\OutObjRef - - - 30/7/2003 - 14:23:52 - 12/9/2003 - 17:49:39 - 1.04 - JR - ? - Check conversions of Double - 0 - 0 - - -? - ? - Double - 3 - ? - -Double - - - -double - OutDouble - - - -Double - - - - - - 12/9/2003 - 17:49:39 - 12/9/2003 - 17:49:39 - 1.04 - JR - ? - InLine Node - 9 - 87 - -TypesCheck - TypesCheck - MiscTypes - 0 - ? - -MiscTypes - - -string - InString - -boolean - InBool - -char - InChar - -short - InShort - -long - InLong - -float - InFloat - -double - InDouble - -SuperVisionTest::Adder - InObjRef - - -string - OutString - -boolean - OutBool - -char - OutChar - -short - OutShort - -long - OutLong - -float - OutFloat - -double - OutDouble - -SuperVisionTest::Adder - OutObjRef - - - 12/9/2003 - 17:49:39 - 12/9/2003 - 17:49:39 - 1.05 - ? - localhost/FactoryServer - MiscTypes from TypesCheck - 217 - 0 - -? - ? - DoubleString - 3 - ? - -DoubleString - - - -string - OutDoubleString - - - -DoubleString - - - - - - - - 12/9/2003 - 17:49:39 - 12/9/2003 - 17:49:39 - 1.04 - JR - ? - InLine Node - 217 - 334 - -TypesCheck - TypesCheck - MiscTypes_1 - 0 - ? - -MiscTypes - - -string - InString - -boolean - InBool - -char - InChar - -short - InShort - -long - InLong - -float - InFloat - -double - InDouble - -SuperVisionTest::Adder - InObjRef - - -string - OutString - -boolean - OutBool - -char - OutChar - -short - OutShort - -long - OutLong - -float - OutFloat - -double - OutDouble - -SuperVisionTest::Adder - OutObjRef - - - 12/9/2003 - 17:49:39 - 12/9/2003 - 17:49:39 - 1.05 - ? - localhost/FactoryServer - MiscTypes from TypesCheck - 433 - 131 - - -Double - OutDouble - MiscTypes - InString - - -Double - OutDouble - MiscTypes - InBool - - -Double - OutDouble - MiscTypes - InChar - - -Double - OutDouble - MiscTypes - InShort - - -Double - OutDouble - MiscTypes - InLong - - -Double - OutDouble - MiscTypes - InFloat - - -Double - OutDouble - MiscTypes - InDouble - - -Double - OutDouble - MiscTypes - InObjRef - - -DoubleString - OutDoubleString - MiscTypes_1 - InString - - -DoubleString - OutDoubleString - MiscTypes_1 - InBool - - -DoubleString - OutDoubleString - MiscTypes_1 - InChar - - -DoubleString - OutDoubleString - MiscTypes_1 - InShort - - -DoubleString - OutDoubleString - MiscTypes_1 - InLong - - -DoubleString - OutDoubleString - MiscTypes_1 - InFloat - - -DoubleString - OutDoubleString - MiscTypes_1 - InDouble - - -DoubleString - OutDoubleString - MiscTypes_1 - InObjRef - - diff --git a/Superv/Graphs/GraphConvertDoubleStringCheck.xml b/Superv/Graphs/GraphConvertDoubleStringCheck.xml deleted file mode 100755 index f0b3fe9..0000000 --- a/Superv/Graphs/GraphConvertDoubleStringCheck.xml +++ /dev/null @@ -1,218 +0,0 @@ - - - - - -? - ? - GraphConvertDoubleStringCheck - 1 - ? - -GraphConvertDoubleStringCheck - - - -string - MiscTypes\OutString - -boolean - MiscTypes\OutBool - -char - MiscTypes\OutChar - -short - MiscTypes\OutShort - -long - MiscTypes\OutLong - -float - MiscTypes\OutFloat - -double - MiscTypes\OutDouble - -SuperVisionTest::Adder - MiscTypes\OutObjRef - - - 30/7/2003 - 14:23:52 - 12/9/2003 - 15:10:45 - 1.04 - JR - ? - Check conversions of String - 0 - 0 - - -? - ? - DoubleString - 3 - ? - -StringString - - - -string - OutString - - - -DoubleString - - - - - 12/9/2003 - 15:9:48 - 12/9/2003 - 15:9:48 - 1.04 - JR - ? - InLine Node - 14 - 114 - -TypesCheck - TypesCheck - MiscTypes - 0 - ? - -MiscTypes - - -string - InString - -boolean - InBool - -char - InChar - -short - InShort - -long - InLong - -float - InFloat - -double - InDouble - -SuperVisionTest::Adder - InObjRef - - -string - OutString - -boolean - OutBool - -char - OutChar - -short - OutShort - -long - OutLong - -float - OutFloat - -double - OutDouble - -SuperVisionTest::Adder - OutObjRef - - - 12/9/2003 - 15:9:48 - 12/9/2003 - 15:9:48 - 1.05 - ? - localhost/FactoryServer - MiscTypes from TypesCheck - 284 - 28 - - -DoubleString - OutString - MiscTypes - InString - - -DoubleString - OutString - MiscTypes - InBool - - -DoubleString - OutString - MiscTypes - InChar - - -DoubleString - OutString - MiscTypes - InShort - - -DoubleString - OutString - MiscTypes - InLong - - -DoubleString - OutString - MiscTypes - InFloat - - -DoubleString - OutString - MiscTypes - InDouble - - -DoubleString - OutString - MiscTypes - InObjRef - - diff --git a/Superv/Graphs/GraphConvertFloatCheck.xml b/Superv/Graphs/GraphConvertFloatCheck.xml deleted file mode 100755 index 207e768..0000000 --- a/Superv/Graphs/GraphConvertFloatCheck.xml +++ /dev/null @@ -1,219 +0,0 @@ - - - - - -? - ? - GraphConvertFloatCheck - 1 - ? - -GraphConvertFloatCheck - - - -string - MiscTypes\OutString - -boolean - MiscTypes\OutBool - -char - MiscTypes\OutChar - -short - MiscTypes\OutShort - -long - MiscTypes\OutLong - -float - MiscTypes\OutFloat - -double - MiscTypes\OutDouble - -SuperVisionTest::Adder - MiscTypes\OutObjRef - - - 30/7/2003 - 14:23:52 - 12/9/2003 - 15:12:6 - 1.04 - JR - ? - Check conversions of Float - 0 - 0 - - -? - ? - Float - 3 - ? - -Float - - - -float - OutFloat - - - -Float - - - - - - 12/9/2003 - 15:12:6 - 12/9/2003 - 15:12:6 - 1.04 - JR - ? - InLine Node - 14 - 114 - -TypesCheck - TypesCheck - MiscTypes - 0 - ? - -MiscTypes - - -string - InString - -boolean - InBool - -char - InChar - -short - InShort - -long - InLong - -float - InFloat - -double - InDouble - -SuperVisionTest::Adder - InObjRef - - -string - OutString - -boolean - OutBool - -char - OutChar - -short - OutShort - -long - OutLong - -float - OutFloat - -double - OutDouble - -SuperVisionTest::Adder - OutObjRef - - - 12/9/2003 - 15:12:6 - 12/9/2003 - 15:12:6 - 1.05 - ? - localhost/FactoryServer - MiscTypes from TypesCheck - 284 - 28 - - -Float - OutFloat - MiscTypes - InString - - -Float - OutFloat - MiscTypes - InBool - - -Float - OutFloat - MiscTypes - InChar - - -Float - OutFloat - MiscTypes - InShort - - -Float - OutFloat - MiscTypes - InLong - - -Float - OutFloat - MiscTypes - InFloat - - -Float - OutFloat - MiscTypes - InDouble - - -Float - OutFloat - MiscTypes - InObjRef - - diff --git a/Superv/Graphs/GraphConvertFloatStringCheck.xml b/Superv/Graphs/GraphConvertFloatStringCheck.xml deleted file mode 100755 index 197175e..0000000 --- a/Superv/Graphs/GraphConvertFloatStringCheck.xml +++ /dev/null @@ -1,218 +0,0 @@ - - - - - -? - ? - GraphConvertFloatStringCheck - 1 - ? - -GraphConvertFloatStringCheck - - - -string - MiscTypes\OutString - -boolean - MiscTypes\OutBool - -char - MiscTypes\OutChar - -short - MiscTypes\OutShort - -long - MiscTypes\OutLong - -float - MiscTypes\OutFloat - -double - MiscTypes\OutDouble - -SuperVisionTest::Adder - MiscTypes\OutObjRef - - - 30/7/2003 - 14:23:52 - 11/9/2003 - 17:7:31 - 1.04 - JR - ? - Check conversions of String - 0 - 0 - - -? - ? - FloatString - 3 - ? - -StringString - - - -string - OutString - - - -FloatString - - - - - 11/9/2003 - 17:7:14 - 11/9/2003 - 17:7:14 - 1.04 - JR - ? - InLine Node - 14 - 114 - -TypesCheck - TypesCheck - MiscTypes - 0 - ? - -MiscTypes - - -string - InString - -boolean - InBool - -char - InChar - -short - InShort - -long - InLong - -float - InFloat - -double - InDouble - -SuperVisionTest::Adder - InObjRef - - -string - OutString - -boolean - OutBool - -char - OutChar - -short - OutShort - -long - OutLong - -float - OutFloat - -double - OutDouble - -SuperVisionTest::Adder - OutObjRef - - - 11/9/2003 - 17:7:14 - 11/9/2003 - 17:7:14 - 1.05 - ? - localhost/FactoryServer - MiscTypes from TypesCheck - 284 - 28 - - -FloatString - OutString - MiscTypes - InString - - -FloatString - OutString - MiscTypes - InBool - - -FloatString - OutString - MiscTypes - InChar - - -FloatString - OutString - MiscTypes - InShort - - -FloatString - OutString - MiscTypes - InLong - - -FloatString - OutString - MiscTypes - InFloat - - -FloatString - OutString - MiscTypes - InDouble - - -FloatString - OutString - MiscTypes - InObjRef - - diff --git a/Superv/Graphs/GraphConvertIORCheck.xml b/Superv/Graphs/GraphConvertIORCheck.xml deleted file mode 100755 index 13d9fb4..0000000 --- a/Superv/Graphs/GraphConvertIORCheck.xml +++ /dev/null @@ -1,257 +0,0 @@ - - - - - -? - ? - GraphConvertIORCheck - 1 - ? - -GraphConvertIORCheck - - -string - SyrComponent\aContainer - -string - SyrComponent\aComponent - - -string - MiscTypes\OutString - -boolean - MiscTypes\OutBool - -char - MiscTypes\OutChar - -short - MiscTypes\OutShort - -long - MiscTypes\OutLong - -float - MiscTypes\OutFloat - -double - MiscTypes\OutDouble - -SuperVisionTest::Adder - MiscTypes\OutObjRef - - - 30/7/2003 - 14:23:52 - 11/9/2003 - 15:45:18 - 1.04 - JR - ? - Check conversions of IOR - 0 - 0 - - -? - ? - SyrComponent - 3 - ? - -SyrComponent - - -string - aContainer - -string - aComponent - - -string - anIOR - - - -SyrComponent - - - - - - - - - - ",ComponentRef ]]> - - - - 11/9/2003 - 15:45:18 - 11/9/2003 - 15:45:18 - 1.04 - JR - ? - InLine Node - 14 - 114 - -TypesCheck - TypesCheck - MiscTypes - 0 - ? - -MiscTypes - - -string - InString - -boolean - InBool - -char - InChar - -short - InShort - -long - InLong - -float - InFloat - -double - InDouble - -SuperVisionTest::Adder - InObjRef - - -string - OutString - -boolean - OutBool - -char - OutChar - -short - OutShort - -long - OutLong - -float - OutFloat - -double - OutDouble - -SuperVisionTest::Adder - OutObjRef - - - 11/9/2003 - 15:45:18 - 11/9/2003 - 15:45:18 - 1.05 - ? - localhost/FactoryServer - MiscTypes from TypesCheck - 284 - 28 - - -SyrComponent - anIOR - MiscTypes - InShort - - -SyrComponent - anIOR - MiscTypes - InString - - -SyrComponent - anIOR - MiscTypes - InBool - - -SyrComponent - anIOR - MiscTypes - InChar - - -SyrComponent - anIOR - MiscTypes - InLong - - -SyrComponent - anIOR - MiscTypes - InFloat - - -SyrComponent - anIOR - MiscTypes - InDouble - - -SyrComponent - anIOR - MiscTypes - InObjRef - - - -GraphConvertIORCheck - SyrComponent\aContainer - SyrComponent - aContainer - -18 - FactoryServerPy - - -GraphConvertIORCheck - SyrComponent\aComponent - SyrComponent - aComponent - -18 - SyrControlComponent - diff --git a/Superv/Graphs/GraphConvertLongCheck.xml b/Superv/Graphs/GraphConvertLongCheck.xml deleted file mode 100755 index 06d9ccb..0000000 --- a/Superv/Graphs/GraphConvertLongCheck.xml +++ /dev/null @@ -1,219 +0,0 @@ - - - - - -? - ? - GraphConvertLongCheck - 1 - ? - -GraphConvertLongCheck - - - -string - MiscTypes\OutString - -boolean - MiscTypes\OutBool - -char - MiscTypes\OutChar - -short - MiscTypes\OutShort - -long - MiscTypes\OutLong - -float - MiscTypes\OutFloat - -double - MiscTypes\OutDouble - -SuperVisionTest::Adder - MiscTypes\OutObjRef - - - 30/7/2003 - 14:23:52 - 12/9/2003 - 10:31:19 - 1.04 - JR - ? - Check conversions of Long - 0 - 0 - - -? - ? - Long - 3 - ? - -Long - - - -long - OutLong - - - -Long - - - - - - 12/9/2003 - 10:31:19 - 12/9/2003 - 10:31:19 - 1.04 - JR - ? - InLine Node - 14 - 114 - -TypesCheck - TypesCheck - MiscTypes - 0 - ? - -MiscTypes - - -string - InString - -boolean - InBool - -char - InChar - -short - InShort - -long - InLong - -float - InFloat - -double - InDouble - -SuperVisionTest::Adder - InObjRef - - -string - OutString - -boolean - OutBool - -char - OutChar - -short - OutShort - -long - OutLong - -float - OutFloat - -double - OutDouble - -SuperVisionTest::Adder - OutObjRef - - - 12/9/2003 - 10:31:19 - 12/9/2003 - 10:31:19 - 1.05 - ? - localhost/FactoryServer - MiscTypes from TypesCheck - 284 - 28 - - -Long - OutLong - MiscTypes - InString - - -Long - OutLong - MiscTypes - InBool - - -Long - OutLong - MiscTypes - InChar - - -Long - OutLong - MiscTypes - InShort - - -Long - OutLong - MiscTypes - InLong - - -Long - OutLong - MiscTypes - InFloat - - -Long - OutLong - MiscTypes - InDouble - - -Long - OutLong - MiscTypes - InObjRef - - diff --git a/Superv/Graphs/GraphConvertLongStringCheck.xml b/Superv/Graphs/GraphConvertLongStringCheck.xml deleted file mode 100755 index 7422ad3..0000000 --- a/Superv/Graphs/GraphConvertLongStringCheck.xml +++ /dev/null @@ -1,218 +0,0 @@ - - - - - -? - ? - GraphConvertLongStringCheck - 1 - ? - -GraphConvertLongStringCheck - - - -string - MiscTypes\OutString - -boolean - MiscTypes\OutBool - -char - MiscTypes\OutChar - -short - MiscTypes\OutShort - -long - MiscTypes\OutLong - -float - MiscTypes\OutFloat - -double - MiscTypes\OutDouble - -SuperVisionTest::Adder - MiscTypes\OutObjRef - - - 30/7/2003 - 14:23:52 - 12/9/2003 - 10:51:28 - 1.04 - JR - ? - Check conversions of String - 0 - 0 - - -? - ? - LongString - 3 - ? - -LongString - - - -string - OutString - - - -LongString - - - - - 12/9/2003 - 10:51:28 - 12/9/2003 - 10:51:28 - 1.04 - JR - ? - InLine Node - 14 - 114 - -TypesCheck - TypesCheck - MiscTypes - 0 - ? - -MiscTypes - - -string - InString - -boolean - InBool - -char - InChar - -short - InShort - -long - InLong - -float - InFloat - -double - InDouble - -SuperVisionTest::Adder - InObjRef - - -string - OutString - -boolean - OutBool - -char - OutChar - -short - OutShort - -long - OutLong - -float - OutFloat - -double - OutDouble - -SuperVisionTest::Adder - OutObjRef - - - 12/9/2003 - 10:51:28 - 12/9/2003 - 10:51:28 - 1.05 - ? - localhost/FactoryServer - MiscTypes from TypesCheck - 284 - 28 - - -LongString - OutString - MiscTypes - InString - - -LongString - OutString - MiscTypes - InBool - - -LongString - OutString - MiscTypes - InChar - - -LongString - OutString - MiscTypes - InShort - - -LongString - OutString - MiscTypes - InLong - - -LongString - OutString - MiscTypes - InFloat - - -LongString - OutString - MiscTypes - InDouble - - -LongString - OutString - MiscTypes - InObjRef - - diff --git a/Superv/Graphs/GraphConvertObjRefCheck.xml b/Superv/Graphs/GraphConvertObjRefCheck.xml deleted file mode 100755 index 18d2279..0000000 --- a/Superv/Graphs/GraphConvertObjRefCheck.xml +++ /dev/null @@ -1,323 +0,0 @@ - - - - - - -? - ? - GraphConvertObjRefCheck - 1 - ? - -GraphConvertObjRefCheck - - -string - SyrComponent__aContainer - -string - SyrComponent__aComponent - -boolean - MiscTypes__InBool - -char - MiscTypes__InChar - -short - MiscTypes__InShort - -long - MiscTypes__InLong - -float - MiscTypes__InFloat - -double - MiscTypes__InDouble - - -string - MiscTypes__OutString - -boolean - MiscTypes__OutBool - -char - MiscTypes__OutChar - -short - MiscTypes__OutShort - -long - MiscTypes__OutLong - -float - MiscTypes__OutFloat - -double - MiscTypes__OutDouble - - - 30/7/2003 - 14:23:52 - 29/12/2004 - 16:1:50 - 1.04 - JR - ? - Check conversions of ObjRef - 0 - 0 - - -? - ? - SyrComponent - 3 - ? - -SyrComponent - - -string - aContainer - -string - aComponent - - -objref - anObjRef - - - -SyrComponent - - - - - - - - - - ",ComponentRef ]]> - - - 29/12/2004 - 15:57:21 - 29/12/2004 - 15:57:21 - 1.04 - JR - ? - InLine Node - 14 - 114 - -TypesCheck - TypesCheck - MiscTypes - 0 - ? - -MiscTypes - - -string - InString - -boolean - InBool - -char - InChar - -short - InShort - -long - InLong - -float - InFloat - -double - InDouble - -SuperVisionTest::Adder - InObjRef - - -string - OutString - -boolean - OutBool - -char - OutChar - -short - OutShort - -long - OutLong - -float - OutFloat - -double - OutDouble - -SuperVisionTest::Adder - OutObjRef - - - 29/12/2004 - 15:57:21 - 29/12/2004 - 15:57:21 - 1.05 - ? - localhost/FactoryServer - MiscTypes from TypesCheck - 284 - 28 - -? - ? - ObjRefToInline - 3 - ? - -ObjRefToInline - - -int - toInLine - - - - -ObjRefToInline - - - 29/12/2004 - 15:58:56 - 29/12/2004 - 15:58:56 - 2.0 - ? - ? - Compute Node - 496 - 168 - - -SyrComponent - anObjRef - MiscTypes - InObjRef - - -SyrComponent - anObjRef - MiscTypes - InString - - -MiscTypes - OutObjRef - ObjRefToInline - toInLine - - - -GraphConvertObjRefCheck - SyrComponent__aContainer - SyrComponent - aContainer - -18 - FactoryServerPy - - -GraphConvertObjRefCheck - SyrComponent__aComponent - SyrComponent - aComponent - -18 - SyrControlComponent - - -GraphConvertObjRefCheck - MiscTypes__InBool - MiscTypes - InBool - -3 - 138492744 - - -GraphConvertObjRefCheck - MiscTypes__InChar - MiscTypes - InChar - -3 - 135402800 - - -GraphConvertObjRefCheck - MiscTypes__InShort - MiscTypes - InShort - -3 - 135448464 - - -GraphConvertObjRefCheck - MiscTypes__InLong - MiscTypes - InLong - -3 - 135469224 - - -GraphConvertObjRefCheck - MiscTypes__InFloat - MiscTypes - InFloat - -7 - 65.6954 - - -GraphConvertObjRefCheck - MiscTypes__InDouble - MiscTypes - InDouble - -7 - 65.6954 - diff --git a/Superv/Graphs/GraphConvertObjRefCheckNotCompatible.xml b/Superv/Graphs/GraphConvertObjRefCheckNotCompatible.xml deleted file mode 100644 index 9649fc2..0000000 --- a/Superv/Graphs/GraphConvertObjRefCheckNotCompatible.xml +++ /dev/null @@ -1,287 +0,0 @@ - - - - - - -? - ? - GraphConvertObjRefCheckNotCompatible - 1 - ? - -GraphConvertObjRefCheckNotCompatible - - -string - SyrComponent__aContainer - -string - SyrComponent__aComponent - - -string - MiscTypes__OutString - -boolean - MiscTypes__OutBool - -char - MiscTypes__OutChar - -short - MiscTypes__OutShort - -long - MiscTypes__OutLong - -float - MiscTypes__OutFloat - -double - MiscTypes__OutDouble - - - 30/7/2003 - 14:23:52 - 20/6/2005 - 11:34:50 - 1.04 - JR - ? - Check conversions of ObjRef - 0 - 0 - - -? - ? - SyrComponent - 3 - ? - -SyrComponent - - -string - aContainer - -string - aComponent - - -objref - anObjRef - - - -SyrComponent - - - - - - - - - - ",ComponentRef ]]> - - - 20/6/2005 - 11:31:43 - 20/6/2005 - 11:31:43 - 1.04 - JR - ? - InLine Node - 14 - 114 - -TypesCheck - TypesCheck - MiscTypes - 0 - ? - -MiscTypes - - -string - InString - -boolean - InBool - -char - InChar - -short - InShort - -long - InLong - -float - InFloat - -double - InDouble - -SuperVisionTest::Adder - InObjRef - - -string - OutString - -boolean - OutBool - -char - OutChar - -short - OutShort - -long - OutLong - -float - OutFloat - -double - OutDouble - -SuperVisionTest::Adder - OutObjRef - - - 20/6/2005 - 11:31:43 - 20/6/2005 - 11:31:43 - 1.05 - ? - localhost/FactoryServer - MiscTypes from TypesCheck - 284 - 28 - -? - ? - ObjRefToInline - 3 - ? - -ObjRefToInline - - -int - toInLine - - - - -ObjRefToInline - - - 20/6/2005 - 11:31:43 - 20/6/2005 - 11:31:43 - 2.0 - ? - ? - Compute Node - 496 - 168 - - -SyrComponent - anObjRef - MiscTypes - InObjRef - - -SyrComponent - anObjRef - MiscTypes - InString - - -SyrComponent - anObjRef - MiscTypes - InBool - - -SyrComponent - anObjRef - MiscTypes - InChar - - -SyrComponent - anObjRef - MiscTypes - InShort - - -SyrComponent - anObjRef - MiscTypes - InLong - - -SyrComponent - anObjRef - MiscTypes - InFloat - - -SyrComponent - anObjRef - MiscTypes - InDouble - - -MiscTypes - OutObjRef - ObjRefToInline - toInLine - - - -GraphConvertObjRefCheckNotCompatible - SyrComponent__aContainer - SyrComponent - aContainer - -18 - - - -GraphConvertObjRefCheckNotCompatible - SyrComponent__aComponent - SyrComponent - aComponent - -18 - - diff --git a/Superv/Graphs/GraphConvertShortCheck.xml b/Superv/Graphs/GraphConvertShortCheck.xml deleted file mode 100755 index cebadb9..0000000 --- a/Superv/Graphs/GraphConvertShortCheck.xml +++ /dev/null @@ -1,219 +0,0 @@ - - - - - -? - ? - GraphConvertShortCheck - 1 - ? - -GraphConvertShortCheck - - - -string - MiscTypes\OutString - -boolean - MiscTypes\OutBool - -char - MiscTypes\OutChar - -short - MiscTypes\OutShort - -long - MiscTypes\OutLong - -float - MiscTypes\OutFloat - -double - MiscTypes\OutDouble - -SuperVisionTest::Adder - MiscTypes\OutObjRef - - - 30/7/2003 - 14:23:52 - 12/9/2003 - 10:35:33 - 1.04 - JR - ? - Check conversions of Short - 0 - 0 - - -? - ? - Short - 3 - ? - -Short - - - -short - OutShort - - - -Short - - - - - - 12/9/2003 - 10:35:33 - 12/9/2003 - 10:35:33 - 1.04 - JR - ? - InLine Node - 14 - 114 - -TypesCheck - TypesCheck - MiscTypes - 0 - ? - -MiscTypes - - -string - InString - -boolean - InBool - -char - InChar - -short - InShort - -long - InLong - -float - InFloat - -double - InDouble - -SuperVisionTest::Adder - InObjRef - - -string - OutString - -boolean - OutBool - -char - OutChar - -short - OutShort - -long - OutLong - -float - OutFloat - -double - OutDouble - -SuperVisionTest::Adder - OutObjRef - - - 12/9/2003 - 10:35:33 - 12/9/2003 - 10:35:33 - 1.05 - ? - localhost/FactoryServer - MiscTypes from TypesCheck - 284 - 28 - - -Short - OutShort - MiscTypes - InString - - -Short - OutShort - MiscTypes - InBool - - -Short - OutShort - MiscTypes - InChar - - -Short - OutShort - MiscTypes - InShort - - -Short - OutShort - MiscTypes - InLong - - -Short - OutShort - MiscTypes - InFloat - - -Short - OutShort - MiscTypes - InDouble - - -Short - OutShort - MiscTypes - InObjRef - - diff --git a/Superv/Graphs/GraphConvertShortStringCheck.xml b/Superv/Graphs/GraphConvertShortStringCheck.xml deleted file mode 100755 index 0ae29e2..0000000 --- a/Superv/Graphs/GraphConvertShortStringCheck.xml +++ /dev/null @@ -1,218 +0,0 @@ - - - - - -? - ? - GraphConvertShortStringCheck - 1 - ? - -GraphConvertShortStringCheck - - - -string - MiscTypes\OutString - -boolean - MiscTypes\OutBool - -char - MiscTypes\OutChar - -short - MiscTypes\OutShort - -long - MiscTypes\OutLong - -float - MiscTypes\OutFloat - -double - MiscTypes\OutDouble - -SuperVisionTest::Adder - MiscTypes\OutObjRef - - - 30/7/2003 - 14:23:52 - 12/9/2003 - 10:37:59 - 1.04 - JR - ? - Check conversions of String - 0 - 0 - - -? - ? - ShortString - 3 - ? - -ShortString - - - -string - OutString - - - -ShortString - - - - - 12/9/2003 - 10:37:59 - 12/9/2003 - 10:37:59 - 1.04 - JR - ? - InLine Node - 14 - 114 - -TypesCheck - TypesCheck - MiscTypes - 0 - ? - -MiscTypes - - -string - InString - -boolean - InBool - -char - InChar - -short - InShort - -long - InLong - -float - InFloat - -double - InDouble - -SuperVisionTest::Adder - InObjRef - - -string - OutString - -boolean - OutBool - -char - OutChar - -short - OutShort - -long - OutLong - -float - OutFloat - -double - OutDouble - -SuperVisionTest::Adder - OutObjRef - - - 12/9/2003 - 10:37:59 - 12/9/2003 - 10:37:59 - 1.05 - ? - localhost/FactoryServer - MiscTypes from TypesCheck - 284 - 28 - - -ShortString - OutString - MiscTypes - InString - - -ShortString - OutString - MiscTypes - InBool - - -ShortString - OutString - MiscTypes - InChar - - -ShortString - OutString - MiscTypes - InShort - - -ShortString - OutString - MiscTypes - InLong - - -ShortString - OutString - MiscTypes - InFloat - - -ShortString - OutString - MiscTypes - InDouble - - -ShortString - OutString - MiscTypes - InObjRef - - diff --git a/Superv/Graphs/GraphConvertStringStringCheck.xml b/Superv/Graphs/GraphConvertStringStringCheck.xml deleted file mode 100755 index 8581b66..0000000 --- a/Superv/Graphs/GraphConvertStringStringCheck.xml +++ /dev/null @@ -1,218 +0,0 @@ - - - - - -? - ? - GraphConvertStringStringCheck - 1 - ? - -GraphConvertStringCheck - - - -string - MiscTypes\OutString - -boolean - MiscTypes\OutBool - -char - MiscTypes\OutChar - -short - MiscTypes\OutShort - -long - MiscTypes\OutLong - -float - MiscTypes\OutFloat - -double - MiscTypes\OutDouble - -SuperVisionTest::Adder - MiscTypes\OutObjRef - - - 30/7/2003 - 14:23:52 - 11/9/2003 - 16:43:51 - 1.04 - JR - ? - Check conversions of String - 0 - 0 - - -? - ? - StringString - 3 - ? - -StringString - - - -string - OutString - - - -StringString - - - - - 11/9/2003 - 16:43:51 - 11/9/2003 - 16:43:51 - 1.04 - JR - ? - InLine Node - 14 - 114 - -TypesCheck - TypesCheck - MiscTypes - 0 - ? - -MiscTypes - - -string - InString - -boolean - InBool - -char - InChar - -short - InShort - -long - InLong - -float - InFloat - -double - InDouble - -SuperVisionTest::Adder - InObjRef - - -string - OutString - -boolean - OutBool - -char - OutChar - -short - OutShort - -long - OutLong - -float - OutFloat - -double - OutDouble - -SuperVisionTest::Adder - OutObjRef - - - 11/9/2003 - 16:43:51 - 11/9/2003 - 16:43:51 - 1.05 - ? - localhost/FactoryServer - MiscTypes from TypesCheck - 284 - 28 - - -StringString - OutString - MiscTypes - InString - - -StringString - OutString - MiscTypes - InBool - - -StringString - OutString - MiscTypes - InChar - - -StringString - OutString - MiscTypes - InShort - - -StringString - OutString - MiscTypes - InLong - - -StringString - OutString - MiscTypes - InFloat - - -StringString - OutString - MiscTypes - InDouble - - -StringString - OutString - MiscTypes - InObjRef - - diff --git a/Superv/Graphs/GraphCpuUsed.xml b/Superv/Graphs/GraphCpuUsed.xml deleted file mode 100755 index d7d9568..0000000 --- a/Superv/Graphs/GraphCpuUsed.xml +++ /dev/null @@ -1,362 +0,0 @@ - - - - - -? - ? - GraphCpuUsed - 1 - ? - -GraphCpuUsed - - -long - Add\a - -long - Sub\a - -long - Sub\b - - -string - Compare\Result - - - 24/3/2003 - 10:58:41 - 6/8/2003 - 11:44:4 - 1.04 - ? - ? - ? - 0 - 0 - - -? - ? - Add - 3 - ? - -Add - - -long - a - -long - b - - -long - f - - - -Add - - - - - - - - - - - - - - - - - - - - 6/8/2003 - 11:44:4 - 6/8/2003 - 11:44:4 - 1.04 - ? - ? - Python function - 214 - 0 - -? - ? - Sub - 3 - ? - -Sub - - -long - a - -long - b - - -long - f - - - -Sub - - - - 6/8/2003 - 11:44:4 - 6/8/2003 - 11:44:4 - 1.04 - ? - ? - Python function - 0 - 139 - -FactorialComponent - FactorialComponent - sigma - 0 - ? - -sigma - - -long - n - - -long - f - - - 6/8/2003 - 11:44:4 - 6/8/2003 - 11:44:4 - 1.04 - JR - localhost/FactoryServerPy - sigma from FactorialComponent - 214 - 172 - -AddComponent - AddComponent - Sigma - 0 - ? - -Sigma - - -long - n - - -long - f - - - 6/8/2003 - 11:44:4 - 6/8/2003 - 11:44:4 - 1.04 - ? - localhost/FactoryServer - Sigma from AddComponent - 418 - 21 - -? - ? - Compare - 3 - ? - -Compare - - -long - Add - -long - Sigma - -long - sigma - - -string - Result - - - -Compare - - - - - - - - - 6/8/2003 - 11:44:4 - 6/8/2003 - 11:44:4 - 1.04 - ? - ? - Compute Node - 419 - 184 - - -Add - f - Compare - Add - - -411 - 265 - -411 - 169 - -617 - 169 - -618 - 8 - -401 - 8 - -400 - 80 - -Sub - f - Add - b - - -189 - 108 - -191 - 220 - -Sub - f - sigma - n - - -206 - 254 - -206 - 220 - -Sub - f - Sigma - n - - -389 - 101 - -390 - 160 - -190 - 161 - -190 - 220 - -sigma - f - Compare - sigma - - -386 - 323 - -385 - 253 - -Sigma - f - Compare - Sigma - - -400 - 295 - -400 - 153 - -595 - 153 - -595 - 102 - - -GraphCpuUsed - Add\a - Add - a - -3 - 1 - - -GraphCpuUsed - Sub\a - Sub - a - -3 - 1000 - - -GraphCpuUsed - Sub\b - Sub - b - -3 - 1 - diff --git a/Superv/Graphs/GraphEditGraphSwitchs_1.xml b/Superv/Graphs/GraphEditGraphSwitchs_1.xml deleted file mode 100644 index b9d442b..0000000 --- a/Superv/Graphs/GraphEditGraphSwitchs_1.xml +++ /dev/null @@ -1,516 +0,0 @@ - - - - - - -? - ? - GraphEditSwitchs - 1 - ? - -GraphEditSwitchs - - -long - InitLoop__Index - -long - InitLoop__Min - -long - InitLoop__Max - -long - Switch__a - - -long - EndOfInitLoop__Index - -long - EndOfInitLoop__Min - -long - EndOfInitLoop__Max - -int - Switch__Even - -long - EndOfSwitch__a - - - 3/2/2005 - 16:14:10 - 3/2/2005 - 16:14:11 - 2.0 - ? - ? - ? - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - - -long - a - - - -IsOdd - - - - - - 3/2/2005 - 16:14:10 - 3/2/2005 - 16:14:10 - 2.0 - ? - ? - Python function - 388 - 50 - -? - ? - IsOdd_1 - 3 - ? - -IsOdd_1 - - -long - a - - -long - a - - - -IsOdd - - - - - - 3/2/2005 - 16:14:10 - 3/2/2005 - 16:14:10 - 2.0 - ? - ? - Python function - 419 - 308 - -? - ? - InitLoop - 4 - EndOfInitLoop - -InitLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -InitLoop - - - -MoreLoop - - - - - - - -NextLoop - - - - 3/2/2005 - 16:14:10 - 3/2/2005 - 16:14:10 - 2.0 - ? - ? - Compute Node - 10 - 388 - -? - ? - EndOfInitLoop - 5 - InitLoop - -EndInitLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -? - - 3/2/2005 - 16:14:10 - 3/2/2005 - 16:14:10 - 2.0 - ? - ? - Compute Node - 783 - 381 - -? - ? - Switch - 6 - EndOfSwitch - -Switch - - -long - a - - -long - Odd - -int - Even - -int - a - - - -Switch - - - - - - 3/2/2005 - 16:14:10 - 3/2/2005 - 16:14:10 - 2.0 - ? - ? - Compute Node - 186 - 130 - -? - ? - EndOfSwitch - 7 - Switch - -EndSwitch - - -long - a - - -long - a - - - -? - - 3/2/2005 - 16:14:10 - 3/2/2005 - 16:14:10 - 2.0 - ? - ? - Compute Node - 587 - 126 - -? - ? - Switch_1 - 6 - EndSwitch - -Switch_1 - - -long - a - - -long - Odd - -int - Even - -int - a - - - -Switch - - - - - - 3/2/2005 - 16:14:11 - 3/2/2005 - 16:14:11 - 2.0 - ? - ? - Compute Node - 193 - 388 - -? - ? - EndSwitch - 7 - Switch_1 - -EndSwitch - - -long - a - - -long - a - - - -? - - 3/2/2005 - 16:14:11 - 3/2/2005 - 16:14:11 - 2.0 - ? - ? - Compute Node - 605 - 382 - - -IsOdd - a - EndOfSwitch - a - - -573 - 160 - -572 - 130 - -IsOdd_1 - a - EndSwitch - a - - -599 - 416 - -598 - 389 - -InitLoop - DoLoop - EndOfInitLoop - DoLoop - - -InitLoop - Index - Switch_1 - a - - -InitLoop - Min - EndOfInitLoop - Min - - -InitLoop - Max - EndOfInitLoop - Max - - -EndOfInitLoop - DoLoop - InitLoop - DoLoop - - -Switch - Odd - IsOdd - Gate - - -Switch - a - IsOdd - a - - -365 - 129 - -365 - 222 - -Switch - Default - EndOfSwitch - Default - - -572 - 194 - -571 - 257 - -Switch_1 - Odd - IsOdd_1 - Gate - - -Switch_1 - Even - EndSwitch - Default - - -Switch_1 - a - IsOdd_1 - a - - -379 - 387 - -378 - 481 - -EndSwitch - a - EndOfInitLoop - Index - - - -GraphEditSwitchs - InitLoop__Index - InitLoop - Index - -3 - 0 - - -GraphEditSwitchs - InitLoop__Min - InitLoop - Min - -3 - 0 - - -GraphEditSwitchs - InitLoop__Max - InitLoop - Max - -3 - 20 - diff --git a/Superv/Graphs/GraphEditGraphSwitchs_2.xml b/Superv/Graphs/GraphEditGraphSwitchs_2.xml deleted file mode 100644 index 8df9821..0000000 --- a/Superv/Graphs/GraphEditGraphSwitchs_2.xml +++ /dev/null @@ -1,519 +0,0 @@ - - - - - - -? - ? - GraphEditSwitchs - 1 - ? - -GraphEditSwitchs - - -long - InitLoop__Index - -long - InitLoop__Min - -long - InitLoop__Max - -long - EndOfInitLoop__Index - - -long - EndOfInitLoop__Index - -long - EndOfInitLoop__Min - -long - EndOfInitLoop__Max - -int - Switch__Even - -long - EndOfSwitch__a - -long - EndSwitch__a - - - 3/2/2005 - 16:14:10 - 3/2/2005 - 16:14:12 - 2.0 - ? - ? - ? - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - - -long - a - - - -IsOdd - - - - - - 3/2/2005 - 16:14:10 - 3/2/2005 - 16:14:10 - 2.0 - ? - ? - Python function - 388 - 50 - -? - ? - IsOdd_1 - 3 - ? - -IsOdd_1 - - -long - a - - -long - a - - - -IsOdd - - - - - - 3/2/2005 - 16:14:10 - 3/2/2005 - 16:14:10 - 2.0 - ? - ? - Python function - 419 - 308 - -? - ? - InitLoop - 4 - EndOfInitLoop - -InitLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -InitLoop - - - -MoreLoop - - - - - - - -NextLoop - - - - 3/2/2005 - 16:14:10 - 3/2/2005 - 16:14:10 - 2.0 - ? - ? - Compute Node - 10 - 388 - -? - ? - EndOfInitLoop - 5 - InitLoop - -EndInitLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -? - - 3/2/2005 - 16:14:10 - 3/2/2005 - 16:14:10 - 2.0 - ? - ? - Compute Node - 783 - 381 - -? - ? - Switch - 6 - EndOfSwitch - -Switch - - -long - a - - -long - Odd - -int - Even - -int - a - - - -Switch - - - - - - 3/2/2005 - 16:14:10 - 3/2/2005 - 16:14:10 - 2.0 - ? - ? - Compute Node - 186 - 130 - -? - ? - EndOfSwitch - 7 - Switch - -EndSwitch - - -long - a - - -long - a - - - -? - - 3/2/2005 - 16:14:10 - 3/2/2005 - 16:14:10 - 2.0 - ? - ? - Compute Node - 587 - 126 - -? - ? - Switch_1 - 6 - EndSwitch - -Switch_1 - - -long - a - - -long - Odd - -int - Even - -int - a - - - -Switch - - - - - - 3/2/2005 - 16:14:11 - 3/2/2005 - 16:14:11 - 2.0 - ? - ? - Compute Node - 193 - 388 - -? - ? - EndSwitch - 7 - Switch_1 - -EndSwitch - - -long - a - - -long - a - - - -? - - 3/2/2005 - 16:14:11 - 3/2/2005 - 16:14:11 - 2.0 - ? - ? - Compute Node - 605 - 382 - - -IsOdd - a - EndOfSwitch - a - - -573 - 160 - -572 - 130 - -IsOdd_1 - a - EndSwitch - a - - -599 - 416 - -598 - 389 - -InitLoop - DoLoop - EndOfInitLoop - DoLoop - - -InitLoop - Index - Switch_1 - a - - -InitLoop - Index - Switch - a - - -InitLoop - Min - EndOfInitLoop - Min - - -InitLoop - Max - EndOfInitLoop - Max - - -EndOfInitLoop - DoLoop - InitLoop - DoLoop - - -Switch - Odd - IsOdd - Gate - - -Switch - a - IsOdd - a - - -365 - 129 - -365 - 222 - -Switch - Default - EndOfSwitch - Default - - -572 - 194 - -571 - 257 - -Switch_1 - Odd - IsOdd_1 - Gate - - -Switch_1 - Even - EndSwitch - Default - - -Switch_1 - a - IsOdd_1 - a - - -379 - 387 - -378 - 481 - - -GraphEditSwitchs - InitLoop__Index - InitLoop - Index - -3 - 0 - - -GraphEditSwitchs - InitLoop__Min - InitLoop - Min - -3 - 0 - - -GraphEditSwitchs - InitLoop__Max - InitLoop - Max - -3 - 20 - diff --git a/Superv/Graphs/GraphEditGraphSwitchs_3.xml b/Superv/Graphs/GraphEditGraphSwitchs_3.xml deleted file mode 100644 index 2c3a2ea..0000000 --- a/Superv/Graphs/GraphEditGraphSwitchs_3.xml +++ /dev/null @@ -1,525 +0,0 @@ - - - - - - -? - ? - GraphEditSwitchs - 1 - ? - -GraphEditSwitchs - - -long - InitLoop__Index - -long - InitLoop__Min - -long - InitLoop__Max - - -long - EndOfInitLoop__Index - -long - EndOfInitLoop__Min - -long - EndOfInitLoop__Max - -int - Switch__Even - -long - EndSwitch__a - - - 3/2/2005 - 16:14:10 - 3/2/2005 - 16:14:12 - 2.0 - ? - ? - ? - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - - -long - a - - - -IsOdd - - - - - - 3/2/2005 - 16:14:10 - 3/2/2005 - 16:14:10 - 2.0 - ? - ? - Python function - 388 - 50 - -? - ? - IsOdd_1 - 3 - ? - -IsOdd_1 - - -long - a - - -long - a - - - -IsOdd - - - - - - 3/2/2005 - 16:14:10 - 3/2/2005 - 16:14:10 - 2.0 - ? - ? - Python function - 419 - 308 - -? - ? - InitLoop - 4 - EndOfInitLoop - -InitLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -InitLoop - - - -MoreLoop - - - - - - - -NextLoop - - - - 3/2/2005 - 16:14:10 - 3/2/2005 - 16:14:10 - 2.0 - ? - ? - Compute Node - 10 - 388 - -? - ? - EndOfInitLoop - 5 - InitLoop - -EndInitLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -? - - 3/2/2005 - 16:14:10 - 3/2/2005 - 16:14:10 - 2.0 - ? - ? - Compute Node - 783 - 381 - -? - ? - Switch - 6 - EndOfSwitch - -Switch - - -long - a - - -long - Odd - -int - Even - -int - a - - - -Switch - - - - - - 3/2/2005 - 16:14:10 - 3/2/2005 - 16:14:10 - 2.0 - ? - ? - Compute Node - 186 - 130 - -? - ? - EndOfSwitch - 7 - Switch - -EndSwitch - - -long - a - - -long - a - - - -? - - 3/2/2005 - 16:14:10 - 3/2/2005 - 16:14:10 - 2.0 - ? - ? - Compute Node - 587 - 126 - -? - ? - Switch_1 - 6 - EndSwitch - -Switch_1 - - -long - a - - -long - Odd - -int - Even - -int - a - - - -Switch - - - - - - 3/2/2005 - 16:14:11 - 3/2/2005 - 16:14:11 - 2.0 - ? - ? - Compute Node - 193 - 388 - -? - ? - EndSwitch - 7 - Switch_1 - -EndSwitch - - -long - a - - -long - a - - - -? - - 3/2/2005 - 16:14:11 - 3/2/2005 - 16:14:11 - 2.0 - ? - ? - Compute Node - 605 - 382 - - -IsOdd - a - EndOfSwitch - a - - -573 - 160 - -572 - 130 - -IsOdd_1 - a - EndSwitch - a - - -599 - 416 - -598 - 389 - -InitLoop - DoLoop - EndOfInitLoop - DoLoop - - -InitLoop - Index - Switch_1 - a - - -InitLoop - Index - Switch - a - - -InitLoop - Min - EndOfInitLoop - Min - - -InitLoop - Max - EndOfInitLoop - Max - - -EndOfInitLoop - DoLoop - InitLoop - DoLoop - - -Switch - Odd - IsOdd - Gate - - -Switch - a - IsOdd - a - - -365 - 129 - -365 - 222 - -Switch - Default - EndOfSwitch - Default - - -572 - 194 - -571 - 257 - -EndOfSwitch - a - EndOfInitLoop - Index - - -Switch_1 - Odd - IsOdd_1 - Gate - - -Switch_1 - Even - EndSwitch - Default - - -Switch_1 - a - IsOdd_1 - a - - -379 - 387 - -378 - 481 - -EndSwitch - Gate - EndOfInitLoop - Gate - - - -GraphEditSwitchs - InitLoop__Index - InitLoop - Index - -3 - 0 - - -GraphEditSwitchs - InitLoop__Min - InitLoop - Min - -3 - 0 - - -GraphEditSwitchs - InitLoop__Max - InitLoop - Max - -3 - 20 - diff --git a/Superv/Graphs/GraphEditGraphSwitchs_4.xml b/Superv/Graphs/GraphEditGraphSwitchs_4.xml deleted file mode 100644 index e993131..0000000 --- a/Superv/Graphs/GraphEditGraphSwitchs_4.xml +++ /dev/null @@ -1,522 +0,0 @@ - - - - - - -? - ? - GraphEditSwitchs - 1 - ? - -GraphEditSwitchs - - -long - IsEven__a - -long - InitLoop__Index - -long - InitLoop__Min - -long - InitLoop__Max - - -long - EndOfInitLoop__Index - -long - EndOfInitLoop__Min - -long - EndOfInitLoop__Max - -int - Switch__Even - -long - Switch_1__Odd - -int - Switch_1__a - -long - EndSwitch__a - - - 3/2/2005 - 16:14:10 - 3/2/2005 - 16:56:34 - 2.0 - ? - ? - ? - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - - -long - a - - - -IsOdd - - - - - - 3/2/2005 - 16:54:2 - 3/2/2005 - 16:54:2 - 2.0 - ? - ? - Python function - 388 - 50 - -? - ? - IsEven - 3 - ? - -IsOdd_1 - - -long - a - - -long - a - - - -IsOdd - - - - - - 3/2/2005 - 16:54:2 - 3/2/2005 - 16:54:2 - 2.0 - ? - ? - Python function - 419 - 308 - -? - ? - InitLoop - 4 - EndOfInitLoop - -InitLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -InitLoop - - - -MoreLoop - - - - - - - -NextLoop - - - - 3/2/2005 - 16:54:2 - 3/2/2005 - 16:54:2 - 2.0 - ? - ? - Compute Node - 10 - 388 - -? - ? - EndOfInitLoop - 5 - InitLoop - -EndOfInitLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -? - - 3/2/2005 - 16:54:2 - 3/2/2005 - 16:54:2 - 2.0 - ? - ? - Compute Node - 783 - 381 - -? - ? - Switch - 6 - EndOfSwitch - -Switch - - -long - a - - -long - Odd - -int - Even - -int - a - - - -Switch - - - - - - 3/2/2005 - 16:54:2 - 3/2/2005 - 16:54:2 - 2.0 - ? - ? - Compute Node - 186 - 130 - -? - ? - EndOfSwitch - 7 - Switch - -EndOfSwitch - - -long - a - - -long - a - - - -? - - 3/2/2005 - 16:54:2 - 3/2/2005 - 16:54:2 - 2.0 - ? - ? - Compute Node - 587 - 126 - -? - ? - Switch_1 - 6 - EndSwitch - -Switch_1 - - -long - a - - -long - Odd - -int - Even - -int - a - - - -Switch - - - - - - 3/2/2005 - 16:54:2 - 3/2/2005 - 16:54:2 - 2.0 - ? - ? - Compute Node - 193 - 388 - -? - ? - EndSwitch - 7 - Switch_1 - -EndSwitch - - -long - a - - -long - a - - - -? - - 3/2/2005 - 16:54:2 - 3/2/2005 - 16:54:2 - 2.0 - ? - ? - Compute Node - 605 - 382 - - -IsOdd - a - EndOfSwitch - a - - -573 - 160 - -572 - 130 - -IsEven - a - EndSwitch - a - - -599 - 416 - -598 - 389 - -InitLoop - DoLoop - EndOfInitLoop - DoLoop - - -InitLoop - Index - Switch_1 - a - - -InitLoop - Index - Switch - a - - -InitLoop - Min - EndOfInitLoop - Min - - -InitLoop - Max - EndOfInitLoop - Max - - -EndOfInitLoop - DoLoop - InitLoop - DoLoop - - -Switch - Odd - IsOdd - Gate - - -Switch - a - IsOdd - a - - -365 - 129 - -365 - 222 - -Switch - Default - EndOfSwitch - Default - - -572 - 194 - -571 - 257 - -EndOfSwitch - a - EndOfInitLoop - Index - - -Switch_1 - Even - EndSwitch - Default - - -Switch_1 - Even - IsEven - Gate - - -EndSwitch - Gate - EndOfInitLoop - Gate - - - -GraphEditSwitchs - InitLoop__Index - InitLoop - Index - -3 - 0 - - -GraphEditSwitchs - InitLoop__Min - InitLoop - Min - -3 - 0 - - -GraphEditSwitchs - InitLoop__Max - InitLoop - Max - -3 - 20 - diff --git a/Superv/Graphs/GraphEditGraphSwitchs_5.xml b/Superv/Graphs/GraphEditGraphSwitchs_5.xml deleted file mode 100644 index dcea07c..0000000 --- a/Superv/Graphs/GraphEditGraphSwitchs_5.xml +++ /dev/null @@ -1,498 +0,0 @@ - - - - - - -? - ? - GraphEditSwitchs_5 - 1 - ? - -GraphEditSwitchs_5 - - -long - InitLoop__Index - -long - InitLoop__Min - -long - InitLoop__Max - - -long - EndOfInitLoop__Index - -long - EndOfInitLoop__Min - -long - EndOfInitLoop__Max - -int - Switch__Even - -long - Switch_1__Odd - -long - EndSwitch__a - - - 3/2/2005 - 16:14:10 - 24/2/2005 - 14:34:28 - 2.0 - ? - ? - ? - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - - -long - a - - - -IsOdd - - - - - - 24/2/2005 - 14:34:28 - 24/2/2005 - 14:34:28 - 2.0 - ? - ? - Python function - 393 - 67 - -? - ? - IsEven - 3 - ? - -IsEven - - -long - a - - -long - a - - - -IsEven - - - - - - 24/2/2005 - 14:34:28 - 24/2/2005 - 14:34:28 - 2.0 - ? - ? - Python function - 408 - 343 - -? - ? - InitLoop - 4 - EndOfInitLoop - -InitLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -InitLoop - - - -MoreLoop - - - - - - - -NextLoop - - - - 24/2/2005 - 14:34:28 - 24/2/2005 - 14:34:28 - 2.0 - ? - ? - Compute Node - 10 - 248 - -? - ? - EndOfInitLoop - 5 - InitLoop - -EndOfInitLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -? - - 24/2/2005 - 14:34:28 - 24/2/2005 - 14:34:28 - 2.0 - ? - ? - Compute Node - 823 - 259 - -? - ? - Switch - 6 - EndOfSwitch - -Switch - - -long - a - - -long - Odd - -int - Even - -int - a - - - -Switch - - - - - - 24/2/2005 - 14:34:28 - 24/2/2005 - 14:34:28 - 2.0 - ? - ? - Compute Node - 199 - 132 - -? - ? - EndOfSwitch - 7 - Switch - -EndOfSwitch - - -long - a - - -long - a - - - -? - - 24/2/2005 - 14:34:28 - 24/2/2005 - 14:34:28 - 2.0 - ? - ? - Compute Node - 584 - 172 - -? - ? - Switch_1 - 6 - EndSwitch - -Switch_1 - - -long - a - - -long - Odd - -int - Even - -int - a - - - -Switch - - - - - - 24/2/2005 - 14:34:28 - 24/2/2005 - 14:34:28 - 2.0 - ? - ? - Compute Node - 201 - 388 - -? - ? - EndSwitch - 7 - Switch_1 - -EndSwitch - - -long - a - - -long - a - - - -? - - 24/2/2005 - 14:34:28 - 24/2/2005 - 14:34:28 - 2.0 - ? - ? - Compute Node - 608 - 430 - - -IsOdd - a - EndOfSwitch - a - - -IsEven - a - EndSwitch - a - - -InitLoop - DoLoop - EndOfInitLoop - DoLoop - - -InitLoop - Index - Switch_1 - a - - -InitLoop - Index - Switch - a - - -InitLoop - Min - EndOfInitLoop - Min - - -InitLoop - Max - EndOfInitLoop - Max - - -EndOfInitLoop - DoLoop - InitLoop - DoLoop - - -Switch - Odd - IsOdd - Gate - - -Switch - a - IsOdd - a - - -Switch - Default - EndOfSwitch - Default - - -EndOfSwitch - a - EndOfInitLoop - Index - - -Switch_1 - Even - IsEven - Gate - - -Switch_1 - a - IsEven - a - - -Switch_1 - Default - EndSwitch - Default - - -EndSwitch - Gate - EndOfInitLoop - Gate - - - -GraphEditSwitchs_5 - InitLoop__Index - InitLoop - Index - -3 - 0 - - -GraphEditSwitchs_5 - InitLoop__Min - InitLoop - Min - -3 - 0 - - -GraphEditSwitchs_5 - InitLoop__Max - InitLoop - Max - -3 - 20 - diff --git a/Superv/Graphs/GraphEmbeddedComponents.xml b/Superv/Graphs/GraphEmbeddedComponents.xml deleted file mode 100644 index ab5ef8f..0000000 --- a/Superv/Graphs/GraphEmbeddedComponents.xml +++ /dev/null @@ -1,484 +0,0 @@ - - - - - - - ? - ? - GraphEmbeddedComponents - 1 - ? - - GraphEmbeddedComponents - - - double - Add__x - - - double - Add__y - - - double - Sub__y - - - double - Mul__y - - - - - double - Div__z - - - double - AddAndCompare__FuncValue - - - double - AddAndCompare__z - - - - - - 11/3/2003 - 10:59:37 - 2/9/2005 - 16:17:8 - 1.04 - ? - ? - ? - 0 - 0 - - - - - AddComponent - AddComponent - Add - 0 - ? - - Add - - - double - x - - - double - y - - - - - double - FuncValue - - - double - z - - - - - - 2/9/2005 - 16:16:1 - 2/9/2005 - 16:16:1 - 1.04 - ? - localhost/SuperVisionContainer - Add from AddComponent - 1 - 152 - - - SubComponent - SubComponent - Sub - 0 - ? - - Sub - - - double - x - - - double - y - - - - - double - z - - - - - - 2/9/2005 - 16:16:1 - 2/9/2005 - 16:16:1 - 1.04 - ? - localhost/SuperVisionContainer - Sub from SubComponent - 412 - 377 - - - MulComponent - MulComponent - Mul - 0 - ? - - Mul - - - double - x - - - double - y - - - - - double - z - - - - - - 2/9/2005 - 16:16:1 - 2/9/2005 - 16:16:1 - 1.04 - ? - localhost/SuperVisionContainer - Mul from MulComponent - 412 - 152 - - - DivComponent - DivComponent - Div - 0 - ? - - Div - - - double - x - - - double - y - - - - - double - z - - - - - - 2/9/2005 - 16:16:1 - 2/9/2005 - 16:16:1 - 1.04 - ? - localhost/SuperVisionContainer - Div from DivComponent - 622 - 124 - - - AddComponent - AddComponent - Addition - 0 - ? - - Addition - - - - Adder - Adder - - - - - - 2/9/2005 - 16:16:1 - 2/9/2005 - 16:16:1 - 1.04 - ? - localhost/AdditionServer - Addition from AddComponent - 0 - 0 - - - AddComponent - AddComponent - Addition_1 - 0 - ? - - Addition - - - - Adder - Adder - - - - - - 2/9/2005 - 16:16:1 - 2/9/2005 - 16:16:1 - 1.04 - ? - localhost/Addition_1Server - Addition from AddComponent - 4 - 327 - - - ? - ? - AddAndCompare - 2 - ? - - AddAndCompare - - - Adder - Adder - - - double - x - - - double - y - - - Adder - anOtherAdder - - - - - double - FuncValue - - - double - z - - - - - - 2/9/2005 - 16:16:1 - 2/9/2005 - 16:16:1 - 1.04 - ? - ? - Python function - 233 - 0 - - - - - Add - FuncValue - Mul - x - - - - Add - FuncValue - AddAndCompare - x - - - 195 - 108 - - - 195 - 233 - - - - - Add - z - Sub - x - - - 187 - 459 - - - 186 - 262 - - - - - Add - z - AddAndCompare - y - - - 187 - 139 - - - 186 - 261 - - - - - Sub - z - Div - x - - - 598 - 203 - - - 598 - 457 - - - - - Mul - z - Div - y - - - - Addition - Adder - AddAndCompare - Adder - - - - Addition_1 - Adder - AddAndCompare - anOtherAdder - - - 215 - 168 - - - 214 - 407 - - - - - - - GraphEmbeddedComponents - Add__x - Add - x - - 7 - 1 - - - - - GraphEmbeddedComponents - Add__y - Add - y - - 7 - 2 - - - - - GraphEmbeddedComponents - Sub__y - Sub - y - - 7 - 3 - - - - - GraphEmbeddedComponents - Mul__y - Mul - y - - 7 - 4 - - - - - - - diff --git a/Superv/Graphs/GraphEmbeddedComponentsCrash.xml b/Superv/Graphs/GraphEmbeddedComponentsCrash.xml deleted file mode 100644 index 48d7040..0000000 --- a/Superv/Graphs/GraphEmbeddedComponentsCrash.xml +++ /dev/null @@ -1,498 +0,0 @@ - - - - - - - ? - ? - GraphEmbeddedComponentsCrash - 1 - ? - - GraphEmbeddedComponentsCrash - - - double - Add__x - - - double - Add__y - - - double - Sub__y - - - double - Mul__y - - - - - double - Div__z - - - double - AddAndCompare__FuncValue - - - double - AddAndCompare__z - - - - - - 11/3/2003 - 10:59:37 - 3/8/2005 - 15:53:13 - 1.04 - ? - ? - ? - 0 - 0 - - - - - AddComponent - AddComponent - Add - 0 - ? - - Add - - - double - x - - - double - y - - - - - double - FuncValue - - - double - z - - - - - - 3/8/2005 - 15:52:50 - 3/8/2005 - 15:52:50 - 1.04 - ? - localhost/FactoryServer - Add from AddComponent - 1 - 152 - - - SubComponent - SubComponent - Sub - 0 - ? - - Sub - - - double - x - - - double - y - - - - - double - z - - - - - - 3/8/2005 - 15:52:50 - 3/8/2005 - 15:52:50 - 1.04 - ? - localhost/FactoryServer - Sub from SubComponent - 477 - 381 - - - MulComponent - MulComponent - Mul - 0 - ? - - Mul - - - double - x - - - double - y - - - - - double - z - - - - - - 3/8/2005 - 15:52:50 - 3/8/2005 - 15:52:50 - 1.04 - ? - localhost/FactoryServer - Mul from MulComponent - 480 - 152 - - - DivComponent - DivComponent - Div - 0 - ? - - Div - - - double - x - - - double - y - - - - - double - z - - - - - - 3/8/2005 - 15:52:50 - 3/8/2005 - 15:52:50 - 1.04 - ? - localhost/FactoryServer - Div from DivComponent - 714 - 136 - - - AddComponent - AddComponent - Addition - 0 - ? - - Addition - - - - Adder - Adder - - - - - - 3/8/2005 - 15:52:50 - 3/8/2005 - 15:52:50 - 1.04 - ? - localhost/AdditionServer - Addition from AddComponent - 0 - 0 - - - AddComponent - AddComponent - Addition_1 - 0 - ? - - Addition - - - - Adder - Adder - - - - - - 3/8/2005 - 15:52:50 - 3/8/2005 - 15:52:50 - 1.04 - ? - localhost/Addition_1Server - Addition from AddComponent - 4 - 327 - - - ? - ? - AddAndCompare - 2 - ? - - AddAndCompare - - - Adder - Adder - - - double - x - - - double - y - - - Adder - anOtherAdder - - - - - double - FuncValue - - - double - z - - - - - - 3/8/2005 - 15:52:50 - 3/8/2005 - 15:52:50 - 1.04 - ? - ? - Python function - 233 - 0 - - - - - Add - FuncValue - Mul - x - - - - Add - FuncValue - AddAndCompare - x - - - 195 - 108 - - - 195 - 233 - - - - - Add - z - Sub - x - - - 187 - 459 - - - 186 - 262 - - - - - Add - z - AddAndCompare - y - - - 187 - 139 - - - 186 - 261 - - - - - Sub - z - Div - x - - - 670 - 206 - - - 680 - 447 - - - - - Mul - z - Div - y - - - - Addition - Adder - AddAndCompare - Adder - - - - Addition_1 - Adder - AddAndCompare - anOtherAdder - - - 215 - 168 - - - 214 - 407 - - - - - AddAndCompare - Gate - Mul - Gate - - - - AddAndCompare - Gate - Sub - Gate - - - - - - GraphEmbeddedComponentsCrash - Add__x - Add - x - - 7 - 1 - - - - - GraphEmbeddedComponentsCrash - Add__y - Add - y - - 7 - 2 - - - - - GraphEmbeddedComponentsCrash - Sub__y - Sub - y - - 7 - 3 - - - - - GraphEmbeddedComponentsCrash - Mul__y - Mul - y - - 7 - 4 - - - - - - - diff --git a/Superv/Graphs/GraphEmbeddedComponentsCrash1.xml b/Superv/Graphs/GraphEmbeddedComponentsCrash1.xml deleted file mode 100644 index 1a4995c..0000000 --- a/Superv/Graphs/GraphEmbeddedComponentsCrash1.xml +++ /dev/null @@ -1,484 +0,0 @@ - - - - - - - ? - ? - GraphEmbeddedComponentsCrash1 - 1 - ? - - GraphEmbeddedComponentsCrash1 - - - double - Add__x - - - double - Add__y - - - double - Sub__y - - - double - Mul__y - - - - - double - Div__z - - - double - AddAndCompare__FuncValue - - - double - AddAndCompare__z - - - - - - 11/3/2003 - 10:59:37 - 5/8/2005 - 11:41:6 - 1.04 - ? - ? - ? - 0 - 0 - - - - - AddComponent - AddComponent - Add - 0 - ? - - Add - - - double - x - - - double - y - - - - - double - FuncValue - - - double - z - - - - - - 5/8/2005 - 11:40:48 - 5/8/2005 - 11:40:48 - 1.04 - ? - localhost/SuperVisionContainer - Add from AddComponent - 1 - 152 - - - SubComponent - SubComponent - Sub - 0 - ? - - Sub - - - double - x - - - double - y - - - - - double - z - - - - - - 5/8/2005 - 11:40:48 - 5/8/2005 - 11:40:48 - 1.04 - ? - localhost/SuperVisionContainer - Sub from SubComponent - 477 - 381 - - - MulComponent - MulComponent - Mul - 0 - ? - - Mul - - - double - x - - - double - y - - - - - double - z - - - - - - 5/8/2005 - 11:40:48 - 5/8/2005 - 11:40:48 - 1.04 - ? - localhost/SuperVisionContainer - Mul from MulComponent - 480 - 152 - - - DivComponent - DivComponent - Div - 0 - ? - - Div - - - double - x - - - double - y - - - - - double - z - - - - - - 5/8/2005 - 11:40:48 - 5/8/2005 - 11:40:48 - 1.04 - ? - localhost/SuperVisionContainer - Div from DivComponent - 714 - 136 - - - AddComponent - AddComponent - Addition - 0 - ? - - Addition - - - - Adder - Adder - - - - - - 5/8/2005 - 11:40:48 - 5/8/2005 - 11:40:48 - 1.04 - ? - localhost/SuperVisionContainer - Addition from AddComponent - 0 - 0 - - - AddComponent - AddComponent - Addition_1 - 0 - ? - - Addition - - - - Adder - Adder - - - - - - 5/8/2005 - 11:40:48 - 5/8/2005 - 11:40:48 - 1.04 - ? - localhost/SuperVisionContainer - Addition from AddComponent - 4 - 327 - - - ? - ? - AddAndCompare - 2 - ? - - AddAndCompare - - - Adder - Adder - - - double - x - - - double - y - - - Adder - anOtherAdder - - - - - double - FuncValue - - - double - z - - - - - - 5/8/2005 - 11:40:48 - 5/8/2005 - 11:40:48 - 1.04 - ? - ? - Python function - 233 - 0 - - - - - Add - FuncValue - Mul - x - - - - Add - FuncValue - AddAndCompare - x - - - 195 - 108 - - - 195 - 233 - - - - - Add - z - Sub - x - - - 187 - 459 - - - 186 - 262 - - - - - Add - z - AddAndCompare - y - - - 187 - 139 - - - 186 - 261 - - - - - Sub - z - Div - x - - - 670 - 206 - - - 680 - 447 - - - - - Mul - z - Div - y - - - - Addition - Adder - AddAndCompare - Adder - - - - Addition_1 - Adder - AddAndCompare - anOtherAdder - - - 215 - 168 - - - 214 - 407 - - - - - - - GraphEmbeddedComponentsCrash1 - Add__x - Add - x - - 7 - 1 - - - - - GraphEmbeddedComponentsCrash1 - Add__y - Add - y - - 7 - 2 - - - - - GraphEmbeddedComponentsCrash1 - Sub__y - Sub - y - - 7 - 3 - - - - - GraphEmbeddedComponentsCrash1 - Mul__y - Mul - y - - 7 - 4 - - - - - - - diff --git a/Superv/Graphs/GraphEmptyInLinesTypesCheck.xml b/Superv/Graphs/GraphEmptyInLinesTypesCheck.xml deleted file mode 100755 index d8e2bc8..0000000 --- a/Superv/Graphs/GraphEmptyInLinesTypesCheck.xml +++ /dev/null @@ -1,544 +0,0 @@ - - - - - -? - ? - GraphEmptyInLinesConvertCheck - 1 - ? - -GraphInLinesConvertCheck - - -boolean - BoolCheck\InBool - -char - CharCheck\InChar - -short - ShortCheck\InShort - -float - FloatCheck\InFloat - -long - LongCheck\InLong - -string - StringCheck\InString - -double - DoubleCheck\InDouble - - -string - MiscTypes\OutString - -boolean - MiscTypes\OutBool - -char - MiscTypes\OutChar - -short - MiscTypes\OutShort - -long - MiscTypes\OutLong - -float - MiscTypes\OutFloat - -double - MiscTypes\OutDouble - -SuperVisionTest::Addre - MiscTypes\OutObjRef - - - 1/9/2003 - 17:28:48 - 11/9/2003 - 14:24:29 - 1.04 - JR - ? - ? - 0 - 0 - - -? - ? - BoolCheck - 3 - ? - -BoolCheck - - -boolean - InBool - - -boolean - OutBool - - - -? - - 11/9/2003 - 14:21:42 - 11/9/2003 - 14:21:42 - 1.04 - ? - ? - Empty InLine Node - 234 - 92 - -? - ? - CharCheck - 3 - ? - -CharCheck - - -char - InChar - - -char - OutChar - - - -? - - 11/9/2003 - 14:21:42 - 11/9/2003 - 14:21:42 - 1.04 - ? - ? - Empty InLine Node - 30 - 142 - -? - ? - ShortCheck - 3 - ? - -ShortCheck - - -short - InShort - - -short - OutShort - - - -? - - 11/9/2003 - 14:21:42 - 11/9/2003 - 14:21:42 - 1.04 - ? - ? - Empty InLine Node - 234 - 230 - -? - ? - FloatCheck - 3 - ? - -FloatCheck - - -float - InFloat - - -float - OutFloat - - - -? - - 11/9/2003 - 14:21:42 - 11/9/2003 - 14:21:42 - 1.04 - ? - ? - Empty InLine Node - 230 - 375 - -AddComponent - AddComponent - Addition - 0 - ? - -Addition - - - -objref - Adder - - - 11/9/2003 - 14:21:42 - 11/9/2003 - 14:21:42 - 1.05 - ? - localhost/FactoryServer - Addition from AddComponent - 232 - 514 - -? - ? - LongCheck - 3 - ? - -LongCheck - - -long - InLong - - -long - OutLong - - - -? - - 11/9/2003 - 14:21:42 - 11/9/2003 - 14:21:42 - 1.05 - ? - ? - Empty InLine Node - 30 - 282 - -? - ? - StringCheck - 3 - ? - -StringCheck - - -string - InString - - -string - OutString - - - -? - - 11/9/2003 - 14:21:42 - 11/9/2003 - 14:21:42 - 1.05 - ? - ? - Empty InLine Node - 30 - 6 - -? - ? - DoubleCheck - 3 - ? - -DoubleCheck - - -double - InDouble - - -double - OutDouble - - - -? - - 11/9/2003 - 14:21:42 - 11/9/2003 - 14:21:42 - 1.05 - ? - ? - Empty InLine Node - 29 - 428 - -? - ? - MiscTypes - 3 - ? - -MiscTypes - - -string - InString - -boolean - InBool - -char - InChar - -short - InShort - -long - InLong - -float - InFloat - -double - InDouble - -SuperVision::Adder - InObjRef - - -string - OutString - -boolean - OutBool - -char - OutChar - -short - OutShort - -long - OutLong - -float - OutFloat - -double - OutDouble - -SuperVisionTest::Addre - OutObjRef - - - -? - - 11/9/2003 - 14:21:42 - 11/9/2003 - 14:21:42 - 1.05 - ? - ? - Empty InLine Node - 477 - 231 - - -BoolCheck - OutBool - MiscTypes - InBool - - -446 - 341 - -446 - 172 - -CharCheck - OutChar - MiscTypes - InChar - - -431 - 368 - -431 - 223 - -ShortCheck - OutShort - MiscTypes - InShort - - -415 - 397 - -414 - 310 - -FloatCheck - OutFloat - MiscTypes - InFloat - - -Addition - Adder - MiscTypes - InObjRef - - -462 - 514 - -461 - 593 - -LongCheck - OutLong - MiscTypes - InLong - - -406 - 426 - -405 - 363 - -StringCheck - OutString - MiscTypes - InString - - -462 - 312 - -461 - 87 - -DoubleCheck - OutDouble - MiscTypes - InDouble - - -445 - 485 - -445 - 508 - - -GraphEmptyInLinesConvertCheck - BoolCheck\InBool - BoolCheck - InBool - -3 - 1 - - -GraphEmptyInLinesConvertCheck - CharCheck\InChar - CharCheck - InChar - -3 - 255 - - -GraphEmptyInLinesConvertCheck - ShortCheck\InShort - ShortCheck - InShort - -3 - 16383 - - -GraphEmptyInLinesConvertCheck - FloatCheck\InFloat - FloatCheck - InFloat - -7 - 3.14159 - - -GraphEmptyInLinesConvertCheck - LongCheck\InLong - LongCheck - InLong - -3 - 1234567890 - - -GraphEmptyInLinesConvertCheck - StringCheck\InString - StringCheck - InString - -18 - aString - - -GraphEmptyInLinesConvertCheck - DoubleCheck\InDouble - DoubleCheck - InDouble - -7 - 1.23457 - diff --git a/Superv/Graphs/GraphEssai.xml b/Superv/Graphs/GraphEssai.xml deleted file mode 100755 index dd0e901..0000000 --- a/Superv/Graphs/GraphEssai.xml +++ /dev/null @@ -1,320 +0,0 @@ - - - - - - - - - - ? - ? - GraphEssai - 1 - ? - - GraphEssai - - - double - Add\x - - - double - Add\y - - - double - Sub\x - - - - - double - Add\FuncValue - - - double - Div\z - - - - - - - - 11/3/2003 - 9:58:58 - 11/3/2003 - 9:58:59 - 1.04 - ? - ? - ? - 0 - 0 - - - - - - AddComponent - AddComponent - Add - 0 - ? - - Add - - - double - x - - - double - y - - - - - double - FuncValue - - - double - z - - - - - - - - 11/3/2003 - 9:58:58 - 11/3/2003 - 9:58:58 - 1.04 - ? - FactoryServer - ? - 15 - 241 - - - SubComponent - SubComponent - Sub - 0 - ? - - Sub - - - double - x - - - double - y - - - - - double - z - - - - - - - - 11/3/2003 - 9:58:58 - 11/3/2003 - 9:58:58 - 1.04 - ? - FactoryServer - ? - 227 - 99 - - - MulComponent - MulComponent - Mul - 0 - ? - - Mul - - - double - x - - - double - y - - - - - double - z - - - - - - - - 11/3/2003 - 9:58:58 - 11/3/2003 - 9:58:58 - 1.04 - ? - FactoryServer - ? - 443 - 278 - - - DivComponent - DivComponent - Div - 0 - ? - - Div - - - double - x - - - double - y - - - - - double - z - - - - - - - - 11/3/2003 - 9:58:58 - 11/3/2003 - 9:58:58 - 1.04 - ? - FactoryServer - ? - 634 - 97 - - - - - - Add - z - Sub - y - - - - - Add - z - Mul - y - - - - - Sub - z - Mul - x - - - - - Sub - z - Div - x - - - - - Mul - z - Div - y - - - - - - - - GraphEssai - Add\x - Add - x - - 3 - 3 - - - - - - GraphEssai - Add\y - Add - y - - 7 - 4.5 - - - - - - GraphEssai - Sub\x - Sub - x - - 7 - 1.5 - - - - - - - diff --git a/Superv/Graphs/GraphEssai1.xml b/Superv/Graphs/GraphEssai1.xml deleted file mode 100644 index cda4aa3..0000000 --- a/Superv/Graphs/GraphEssai1.xml +++ /dev/null @@ -1,264 +0,0 @@ - - - - - -? - ? - GraphEssai1 - 1 - ? - -GraphEssai1 - - -double - Add\x - -double - Add\y - -double - Sub\y - -double - Mul\y - - -double - Add\FuncValue - -double - Div\z - - - 11/3/2003 - 10:3:19 - 18/9/2003 - 17:14:2 - 1.04 - ? - ? - ? - 0 - 0 - - -AddComponent - AddComponent - Add - 0 - ? - -Add - - -double - x - -double - y - - -double - FuncValue - -double - z - - - 18/9/2003 - 17:14:2 - 18/9/2003 - 17:14:2 - 1.04 - ? - localhost/FactoryServer - Add from AddComponent - 16 - 262 - -SubComponent - SubComponent - Sub - 0 - ? - -Sub - - -double - x - -double - y - - -double - z - - - 18/9/2003 - 17:14:2 - 18/9/2003 - 17:14:2 - 1.04 - ? - localhost/FactoryServer - Sub from SubComponent - 219 - 54 - -MulComponent - MulComponent - Mul - 0 - ? - -Mul - - -double - x - -double - y - - -double - z - - - 18/9/2003 - 17:14:2 - 18/9/2003 - 17:14:2 - 1.04 - ? - localhost/FactoryServer - Mul from MulComponent - 419 - 262 - -DivComponent - DivComponent - Div - 0 - ? - -Div - - -double - x - -double - y - - -double - z - - - 18/9/2003 - 17:14:2 - 18/9/2003 - 17:14:2 - 1.04 - ? - localhost/FactoryServer - Div from DivComponent - 623 - 55 - - -Add - z - Sub - x - - -193 - 135 - -193 - 372 - -Sub - z - Div - x - - -Sub - z - Mul - x - - -396 - 343 - -397 - 136 - -Mul - z - Div - y - - -598 - 163 - -598 - 343 - - -GraphEssai1 - Add\x - Add - x - -7 - 3 - - -GraphEssai1 - Add\y - Add - y - -7 - 5 - - -GraphEssai1 - Sub\y - Sub - y - -7 - 7 - - -GraphEssai1 - Mul\y - Mul - y - -7 - 11 - diff --git a/Superv/Graphs/GraphEssai2.xml b/Superv/Graphs/GraphEssai2.xml deleted file mode 100644 index 81b5c37..0000000 --- a/Superv/Graphs/GraphEssai2.xml +++ /dev/null @@ -1,267 +0,0 @@ - - - - - -? - ? - GraphEssai2 - 1 - ? - -GraphEssai2 - - -double - Add\x - -double - Add\y - -double - Sub\y - -double - Mul\y - - -double - Div\z - - - 11/3/2003 - 10:6:28 - 23/10/2003 - 16:11:44 - 1.04 - ? - ? - ? - 0 - 0 - - -AddComponent - AddComponent - Add - 0 - ? - -Add - - -double - x - -double - y - - -double - FuncValue - -double - z - - - 23/10/2003 - 16:11:44 - 23/10/2003 - 16:11:44 - 1.04 - ? - localhost/FactoryServer - Add from AddComponent - 18 - 239 - -SubComponent - SubComponent - Sub - 0 - ? - -Sub - - -double - x - -double - y - - -double - z - - - 23/10/2003 - 16:11:44 - 23/10/2003 - 16:11:44 - 1.04 - ? - localhost/FactoryServer - Sub from SubComponent - 232 - 269 - -MulComponent - MulComponent - Mul - 0 - ? - -Mul - - -double - x - -double - y - - -double - z - - - 23/10/2003 - 16:11:44 - 23/10/2003 - 16:11:44 - 1.04 - ? - localhost/FactoryServer - Mul from MulComponent - 431 - 22 - -DivComponent - DivComponent - Div - 0 - ? - -Div - - -double - x - -double - y - - -double - z - - - 23/10/2003 - 16:11:44 - 23/10/2003 - 16:11:44 - 1.04 - ? - localhost/FactoryServer - Div from DivComponent - 645 - 268 - - -Add - FuncValue - Mul - x - - -199 - 102 - -198 - 319 - -Add - z - Sub - x - - -Sub - z - Div - x - - -Sub - OutGate - Mul - InGate - - -405 - 165 - -405 - 412 - -Mul - z - Div - y - - -612 - 377 - -612 - 103 - - -GraphEssai2 - Add\x - Add - x - -7 - 1 - - -GraphEssai2 - Add\y - Add - y - -7 - 2 - - -GraphEssai2 - Sub\y - Sub - y - -7 - 3 - - -GraphEssai2 - Mul\y - Mul - y - -7 - 4 - diff --git a/Superv/Graphs/GraphEssai3.xml b/Superv/Graphs/GraphEssai3.xml deleted file mode 100644 index 0415994..0000000 --- a/Superv/Graphs/GraphEssai3.xml +++ /dev/null @@ -1,387 +0,0 @@ - - - - - -? - ? - GraphEssai3 - 1 - ? - -GraphEssai3 - - -double - Add\x - -double - Add\y - -double - Sub\y - -double - Mul\y - - -double - Div\z - -double - AddAndCompare\FuncValue - -double - AddAndCompare\z - - - 11/3/2003 - 10:59:37 - 18/9/2003 - 17:23:8 - 1.04 - ? - ? - ? - 0 - 0 - - -AddComponent - AddComponent - Add - 0 - ? - -Add - - -double - x - -double - y - - -double - FuncValue - -double - z - - - 18/9/2003 - 17:23:8 - 18/9/2003 - 17:23:8 - 1.04 - ? - localhost/FactoryServer - Add from AddComponent - 1 - 152 - -SubComponent - SubComponent - Sub - 0 - ? - -Sub - - -double - x - -double - y - - -double - z - - - 18/9/2003 - 17:23:8 - 18/9/2003 - 17:23:8 - 1.04 - ? - localhost/FactoryServer - Sub from SubComponent - 412 - 377 - -MulComponent - MulComponent - Mul - 0 - ? - -Mul - - -double - x - -double - y - - -double - z - - - 18/9/2003 - 17:23:8 - 18/9/2003 - 17:23:8 - 1.04 - ? - localhost/FactoryServer - Mul from MulComponent - 412 - 152 - -DivComponent - DivComponent - Div - 0 - ? - -Div - - -double - x - -double - y - - -double - z - - - 18/9/2003 - 17:23:8 - 18/9/2003 - 17:23:8 - 1.04 - ? - localhost/FactoryServer - Div from DivComponent - 622 - 124 - -AddComponent - AddComponent - Addition - 0 - ? - -Addition - - - -Adder - Adder - - - 18/9/2003 - 17:23:8 - 18/9/2003 - 17:23:8 - 1.04 - ? - localhost/AdditionServer - Addition from AddComponent - 0 - 0 - -AddComponent - AddComponent - Addition_1 - 0 - ? - -Addition - - - -Adder - Adder - - - 18/9/2003 - 17:23:8 - 18/9/2003 - 17:23:8 - 1.04 - ? - localhost/Addition_1Server - Addition from AddComponent - 4 - 327 - -? - ? - AddAndCompare - 2 - ? - -AddAndCompare - - -Adder - Adder - -double - x - -double - y - -Adder - anOtherAdder - - -double - FuncValue - -double - z - - - 18/9/2003 - 17:23:8 - 18/9/2003 - 17:23:8 - 1.04 - ? - ? - Python function - 233 - 0 - - -Add - FuncValue - Mul - x - - -Add - FuncValue - AddAndCompare - x - - -195 - 108 - -195 - 233 - -Add - z - Sub - x - - -187 - 459 - -186 - 262 - -Add - z - AddAndCompare - y - - -187 - 139 - -186 - 261 - -Sub - z - Div - x - - -598 - 203 - -598 - 457 - -Mul - z - Div - y - - -Addition - Adder - AddAndCompare - Adder - - -Addition_1 - Adder - AddAndCompare - anOtherAdder - - -215 - 168 - -214 - 407 - - -GraphEssai3 - Add\x - Add - x - -7 - 1 - - -GraphEssai3 - Add\y - Add - y - -7 - 2 - - -GraphEssai3 - Sub\y - Sub - y - -7 - 3 - - -GraphEssai3 - Mul\y - Mul - y - -7 - 4 - diff --git a/Superv/Graphs/GraphFactorial.xml b/Superv/Graphs/GraphFactorial.xml deleted file mode 100644 index 1adce7d..0000000 --- a/Superv/Graphs/GraphFactorial.xml +++ /dev/null @@ -1,122 +0,0 @@ - - - - - - - - - - ? - ? - GraphFactorial - 1 - ? - - GraphFactorial - - - long - eval\n - - - - - long - eval\f - - - - - - - - 11/3/2003 - 11:3:56 - 11/3/2003 - 11:3:56 - 1.04 - ? - ? - ? - 0 - 0 - - - - - - FactorialComponent - FactorialComponent - eval - 0 - ? - - eval - - - long - n - - - - - long - f - - - - - - - - 11/3/2003 - 11:3:56 - 11/3/2003 - 11:3:56 - 1.04 - ? - ServerPy - ? - 0 - 0 - - - - - - - - - GraphFactorial - eval\n - eval - n - - 3 - 5 - - - - - - - diff --git a/Superv/Graphs/GraphGOTO.xml b/Superv/Graphs/GraphGOTO.xml deleted file mode 100644 index d9d6649..0000000 --- a/Superv/Graphs/GraphGOTO.xml +++ /dev/null @@ -1,747 +0,0 @@ - - - - - - -? - ? - GraphGOTO_2 - 1 - ? - -GraphGOTO_2 - - -long - label_begin__NB - -long - label_begin__KB - - -long - test__Incr - -long - EndSwitch_OneEven__Finished - -long - EndSwitch_OneEven__K - - - 17/1/2005 - 13:44:46 - 18/1/2005 - 16:11:13 - 2.0 - JR - ? - Syracuse algorithm - 0 - 0 - - -SyrComponent - SyrComponent - test_ISEVEN - 0 - ? - -C_ISEVEN - - -long - anInteger - - -long - BoolEven - - - 18/1/2005 - 16:11:13 - 18/1/2005 - 16:11:13 - 2.0 - ? - localhost/FactoryServer - C_ISEVEN from SyrComponent - 204 - 420 - -SyrComponent - SyrComponent - test_ISONE - 0 - ? - -C_ISONE - - -long - anInteger - - -long - BoolOne - - - 18/1/2005 - 16:11:13 - 18/1/2005 - 16:11:13 - 2.0 - ? - localhost/FactoryServer - C_ISONE from SyrComponent - 208 - 155 - -SyrComponent - SyrComponent - m3p1 - 0 - ? - -C_M3P1 - - -long - anOddInteger - - -long - anEvenInteger - - - 18/1/2005 - 16:11:13 - 18/1/2005 - 16:11:13 - 2.0 - ? - localhost/FactoryServer - C_M3P1 from SyrComponent - 861 - 46 - -SyrComponent - SyrComponent - div2 - 0 - ? - -C_DIV2 - - -long - anEvenInteger - - -long - anInteger - - - 18/1/2005 - 16:11:13 - 18/1/2005 - 16:11:13 - 2.0 - ? - localhost/FactoryServer - C_DIV2 from SyrComponent - 858 - 466 - -SyrComponent - SyrComponent - incr - 0 - ? - -C_INCR - - -long - aCount - - -long - aNewCount - - - 18/1/2005 - 16:11:13 - 18/1/2005 - 16:11:13 - 2.0 - ? - localhost/FactoryServer - C_INCR from SyrComponent - 865 - 169 - -SyrComponent - SyrComponent - incr_1 - 0 - ? - -C_INCR - - -long - aCount - - -long - aNewCount - - - 18/1/2005 - 16:11:13 - 18/1/2005 - 16:11:13 - 2.0 - ? - localhost/FactoryServer - C_INCR from SyrComponent - 859 - 338 - -? - ? - label_begin - 3 - ? - -label_begin - - -long - NB - -long - KB - - -long - NT - -long - KT - - - -label_begin - - - - 18/1/2005 - 16:11:13 - 18/1/2005 - 16:11:13 - 2.0 - ? - ? - Python function - 10 - 260 - -? - ? - label_test - 3 - ? - -label_test - - -long - ValEven - -long - ValOne - -long - NT - -long - KT - - -long - ValEven - -long - ValOne - -long - NT - -long - KT - - - -label_test - - - - 18/1/2005 - 16:11:13 - 18/1/2005 - 16:11:13 - 2.0 - ? - ? - Python function - 400 - 220 - -? - ? - test - 6 - EndSwitch_OneEven - -test - - -long - ValOne - -long - ValEven - -long - NT - -long - KT - - -long - Finished - -long - Incr - -long - Even - -long - Odd - -long - N - -long - K - - - -Switch_OneEven - - - - - - - - - - - - - - - - 18/1/2005 - 16:11:13 - 18/1/2005 - 16:11:13 - 2.0 - ? - ? - Compute Node - 596 - 260 - -? - ? - EndSwitch_OneEven - 7 - test - -EndSwitch_OneEven - - -long - Finished - -long - K - - -long - Finished - -long - K - - - -EndSwitch_OneEven - - - - 18/1/2005 - 16:11:13 - 18/1/2005 - 16:11:13 - 2.0 - ? - ? - Compute Node - 1331 - 310 - -? - ? - control_m3p1 - 8 - label_test - -control_m3p1 - - -long - N - -long - K - - -long - ValOne - -long - ValEven - -long - NT - -long - KT - - - -control_m3p1 - - - 18/1/2005 - 16:11:13 - 18/1/2005 - 16:11:13 - 2.0 - ? - ? - Compute Node - 1073 - 86 - -? - ? - control_div2 - 8 - label_begin - -control_div2 - - -long - N - -long - K - - -long - NB - -long - KB - - - -control_div2 - - - 18/1/2005 - 16:11:13 - 18/1/2005 - 16:11:13 - 2.0 - ? - ? - Compute Node - 1128 - 453 - - -test_ISEVEN - BoolEven - label_test - ValEven - - -374 - 290 - -374 - 491 - -test_ISONE - BoolOne - label_test - ValOne - - -385 - 311 - -385 - 226 - -m3p1 - anEvenInteger - control_m3p1 - N - - -div2 - anInteger - control_div2 - N - - -incr - aNewCount - control_m3p1 - K - - -1048 - 135 - -1048 - 241 - -incr_1 - aNewCount - control_div2 - K - - -label_begin - NT - label_test - NT - - -label_begin - NT - test_ISONE - anInteger - - -191 - 225 - -191 - 331 - -label_begin - NT - test_ISEVEN - anInteger - - -190 - 491 - -190 - 331 - -label_begin - KT - label_test - KT - - -label_test - ValEven - test - ValEven - - -label_test - ValOne - test - ValOne - - -label_test - NT - test - NT - - -label_test - KT - test - KT - - -test - Finished - EndSwitch_OneEven - Finished - - -test - Even - incr_1 - Gate - - -test - Even - div2 - Gate - - -test - Odd - incr - Gate - - -test - Odd - m3p1 - Gate - - -test - N - m3p1 - anOddInteger - - -808 - 116 - -806 - 372 - -test - N - div2 - anEvenInteger - - -806 - 537 - -806 - 373 - -test - K - EndSwitch_OneEven - K - - -test - K - incr - aCount - - -test - K - incr_1 - aCount - - -test - Default - EndSwitch_OneEven - Default - - -1319 - 385 - -1319 - 577 - -779 - 577 - -778 - 415 - -control_m3p1 - Gate - label_test - Gate - - -389 - 375 - -389 - 597 - -1519 - 602 - -1508 - 201 - -control_div2 - Gate - label_begin - Gate - - -3 - 373 - -3 - 587 - -1307 - 586 - -1307 - 528 - - -GraphGOTO_2 - label_begin__NB - label_begin - NB - -3 - 7 - - -GraphGOTO_2 - label_begin__KB - label_begin - KB - -3 - 0 - diff --git a/Superv/Graphs/GraphGOTO1.xml b/Superv/Graphs/GraphGOTO1.xml deleted file mode 100755 index 7f4ef38..0000000 --- a/Superv/Graphs/GraphGOTO1.xml +++ /dev/null @@ -1,721 +0,0 @@ - - - - - - -? - ? - GraphGOTO1 - 1 - ? - -GraphGOTO_2_2_3 - - -long - label_begin__NB - -long - label_begin__KB - - -long - test__Incr - -long - EndSwitch_OneEven__Finished - -long - EndSwitch_OneEven__K - - - 17/1/2005 - 13:44:46 - 6/6/2005 - 14:54:25 - 2.0 - JR - ? - Syracuse algorithm - 0 - 0 - - -SyrComponent - SyrComponent - test_ISEVEN - 0 - ? - -C_ISEVEN - - -long - anInteger - - -long - BoolEven - - - 6/6/2005 - 14:54:25 - 6/6/2005 - 14:54:25 - 2.0 - ? - localhost/FactoryServer - C_ISEVEN from SyrComponent - 195 - 417 - -SyrComponent - SyrComponent - test_ISONE - 0 - ? - -C_ISONE - - -long - anInteger - - -long - BoolOne - - - 6/6/2005 - 14:54:25 - 6/6/2005 - 14:54:25 - 2.0 - ? - localhost/FactoryServer - C_ISONE from SyrComponent - 201 - 145 - -SyrComponent - SyrComponent - m3p1 - 0 - ? - -C_M3P1 - - -long - anOddInteger - - -long - anEvenInteger - - - 6/6/2005 - 14:54:25 - 6/6/2005 - 14:54:25 - 2.0 - ? - localhost/FactoryServer - C_M3P1 from SyrComponent - 861 - 46 - -SyrComponent - SyrComponent - div2 - 0 - ? - -C_DIV2 - - -long - anEvenInteger - - -long - anInteger - - - 6/6/2005 - 14:54:25 - 6/6/2005 - 14:54:25 - 2.0 - ? - localhost/FactoryServer - C_DIV2 from SyrComponent - 858 - 466 - -SyrComponent - SyrComponent - incr - 0 - ? - -C_INCR - - -long - aCount - - -long - aNewCount - - - 6/6/2005 - 14:54:25 - 6/6/2005 - 14:54:25 - 2.0 - ? - localhost/FactoryServer - C_INCR from SyrComponent - 865 - 169 - -? - ? - label_begin - 3 - ? - -label_begin - - -long - NB - -long - KB - - -long - NT - -long - KT - - - -label_begin - - - - 6/6/2005 - 14:54:25 - 6/6/2005 - 14:54:25 - 2.0 - ? - ? - Python function - 9 - 250 - -? - ? - label_test - 3 - ? - -label_test - - -long - ValEven - -long - ValOne - -long - NT - -long - KT - - -long - ValEven - -long - ValOne - -long - NT - -long - KT - - - -label_test - - - - 6/6/2005 - 14:54:25 - 6/6/2005 - 14:54:25 - 2.0 - ? - ? - Python function - 396 - 193 - -? - ? - test - 6 - EndSwitch_OneEven - -test - - -long - ValOne - -long - ValEven - -long - NT - -long - KT - - -long - Finished - -long - Incr - -long - Even - -long - Odd - -long - N - -long - K - - - -Switch_OneEven - - - - - - - - - - - - - - - - 6/6/2005 - 14:54:25 - 6/6/2005 - 14:54:25 - 2.0 - ? - ? - Compute Node - 595 - 239 - -? - ? - EndSwitch_OneEven - 7 - test - -EndSwitch_OneEven - - -long - Finished - -long - K - - -long - Finished - -long - K - - - -EndSwitch_OneEven - - - - 6/6/2005 - 14:54:25 - 6/6/2005 - 14:54:25 - 2.0 - ? - ? - Compute Node - 1256 - 305 - -? - ? - control_m3p1 - 8 - label_test - -control_m3p1 - - -long - N - -long - K - - -long - ValOne - -long - ValEven - -long - NT - -long - KT - - - -control_m3p1 - - - 6/6/2005 - 14:54:25 - 6/6/2005 - 14:54:25 - 2.0 - ? - ? - Compute Node - 1073 - 87 - -? - ? - control_div2 - 8 - label_begin - -control_div2 - - -long - N - -long - K - - -long - NB - -long - KB - - - -control_div2 - - - 6/6/2005 - 14:54:25 - 6/6/2005 - 14:54:25 - 2.0 - ? - ? - Compute Node - 1128 - 453 - - -test_ISEVEN - BoolEven - label_test - ValEven - - -369 - 273 - -370 - 498 - -test_ISONE - BoolOne - label_test - ValOne - - -384 - 281 - -384 - 225 - -m3p1 - anEvenInteger - control_m3p1 - N - - -div2 - anInteger - control_div2 - N - - -incr - aNewCount - control_m3p1 - K - - -1048 - 139 - -1048 - 241 - -incr - aNewCount - control_div2 - K - - -1052 - 504 - -1049 - 239 - -label_begin - NT - label_test - NT - - -label_begin - NT - test_ISONE - anInteger - - -192 - 226 - -191 - 331 - -label_begin - NT - test_ISEVEN - anInteger - - -191 - 494 - -192 - 331 - -label_begin - KT - label_test - KT - - -label_test - ValEven - test - ValEven - - -label_test - ValOne - test - ValOne - - -label_test - NT - test - NT - - -label_test - KT - test - KT - - -test - Finished - EndSwitch_OneEven - Finished - - -test - Even - div2 - Gate - - -793 - 561 - -794 - 310 - -test - Odd - m3p1 - Gate - - -778 - 138 - -780 - 328 - -test - N - m3p1 - anOddInteger - - -808 - 113 - -807 - 352 - -test - N - div2 - anEvenInteger - - -806 - 537 - -807 - 351 - -test - K - EndSwitch_OneEven - K - - -test - K - incr - aCount - - -773 - 236 - -773 - 370 - -test - Default - EndSwitch_OneEven - Default - - -840 - 381 - -839 - 394 - -control_m3p1 - Gate - label_test - Gate - - -388 - 388 - -389 - 597 - -1441 - 604 - -1441 - 199 - -control_div2 - Gate - label_begin - Gate - - -4 - 388 - -3 - 587 - -1307 - 586 - -1307 - 528 - - -GraphGOTO1 - label_begin__NB - label_begin - NB - -3 - 7 - - -GraphGOTO1 - label_begin__KB - label_begin - KB - -3 - 0 - diff --git a/Superv/Graphs/GraphGOTOAborted.xml b/Superv/Graphs/GraphGOTOAborted.xml deleted file mode 100644 index 5145caa..0000000 --- a/Superv/Graphs/GraphGOTOAborted.xml +++ /dev/null @@ -1,724 +0,0 @@ - - - - - - -? - ? - GraphGOTOAborted - 1 - ? - -GraphGOTO_2_2_2 - - -long - label_begin__NB - -long - label_begin__KB - - -long - EndSwitch_OneEven__Finished - -long - EndSwitch_OneEven__K - - - 17/1/2005 - 13:44:46 - 6/6/2005 - 14:53:29 - 2.0 - JR - ? - Syracuse algorithm - 0 - 0 - - -SyrComponent - SyrComponent - test_ISEVEN - 0 - ? - -C_ISEVEN - - -long - anInteger - - -long - BoolEven - - - 6/6/2005 - 14:53:29 - 6/6/2005 - 14:53:29 - 2.0 - ? - localhost/FactoryServer - C_ISEVEN from SyrComponent - 195 - 417 - -SyrComponent - SyrComponent - test_ISONE - 0 - ? - -C_ISONE - - -long - anInteger - - -long - BoolOne - - - 6/6/2005 - 14:53:29 - 6/6/2005 - 14:53:29 - 2.0 - ? - localhost/FactoryServer - C_ISONE from SyrComponent - 201 - 145 - -SyrComponent - SyrComponent - m3p1 - 0 - ? - -C_M3P1 - - -long - anOddInteger - - -long - anEvenInteger - - - 6/6/2005 - 14:53:29 - 6/6/2005 - 14:53:29 - 2.0 - ? - localhost/FactoryServer - C_M3P1 from SyrComponent - 861 - 46 - -SyrComponent - SyrComponent - div2 - 0 - ? - -C_DIV2 - - -long - anEvenInteger - - -long - anInteger - - - 6/6/2005 - 14:53:29 - 6/6/2005 - 14:53:29 - 2.0 - ? - localhost/FactoryServer - C_DIV2 from SyrComponent - 858 - 466 - -SyrComponent - SyrComponent - incr - 0 - ? - -C_INCR - - -long - aCount - - -long - aNewCount - - - 6/6/2005 - 14:53:29 - 6/6/2005 - 14:53:29 - 2.0 - ? - localhost/FactoryServer - C_INCR from SyrComponent - 865 - 169 - -? - ? - label_begin - 3 - ? - -label_begin - - -long - NB - -long - KB - - -long - NT - -long - KT - - - -label_begin - - - - 6/6/2005 - 14:53:29 - 6/6/2005 - 14:53:29 - 2.0 - ? - ? - Python function - 9 - 250 - -? - ? - label_test - 3 - ? - -label_test - - -long - ValEven - -long - ValOne - -long - NT - -long - KT - - -long - ValEven - -long - ValOne - -long - NT - -long - KT - - - -label_test - - - - 6/6/2005 - 14:53:29 - 6/6/2005 - 14:53:29 - 2.0 - ? - ? - Python function - 396 - 193 - -? - ? - test - 6 - EndSwitch_OneEven - -test - - -long - ValOne - -long - ValEven - -long - NT - -long - KT - - -long - Finished - -long - Incr - -long - Even - -long - Odd - -long - N - -long - K - - - -Switch_OneEven - - - - - - - - - - - - - - - - 6/6/2005 - 14:53:29 - 6/6/2005 - 14:53:29 - 2.0 - ? - ? - Compute Node - 595 - 239 - -? - ? - EndSwitch_OneEven - 7 - test - -EndSwitch_OneEven - - -long - Finished - -long - K - - -long - Finished - -long - K - - - -EndSwitch_OneEven - - - - 6/6/2005 - 14:53:29 - 6/6/2005 - 14:53:29 - 2.0 - ? - ? - Compute Node - 1256 - 305 - -? - ? - control_m3p1 - 8 - label_test - -control_m3p1 - - -long - N - -long - K - - -long - ValOne - -long - ValEven - -long - NT - -long - KT - - - -control_m3p1 - - - 6/6/2005 - 14:53:29 - 6/6/2005 - 14:53:29 - 2.0 - ? - ? - Compute Node - 1073 - 87 - -? - ? - control_div2 - 8 - label_begin - -control_div2 - - -long - N - -long - K - - -long - NB - -long - KB - - - -control_div2 - - - 6/6/2005 - 14:53:29 - 6/6/2005 - 14:53:29 - 2.0 - ? - ? - Compute Node - 1128 - 453 - - -test_ISEVEN - BoolEven - label_test - ValEven - - -369 - 273 - -370 - 498 - -test_ISONE - BoolOne - label_test - ValOne - - -384 - 281 - -384 - 225 - -m3p1 - anEvenInteger - control_m3p1 - N - - -div2 - anInteger - control_div2 - N - - -incr - aNewCount - control_m3p1 - K - - -1048 - 139 - -1048 - 241 - -incr - aNewCount - control_div2 - K - - -1052 - 504 - -1049 - 239 - -label_begin - NT - label_test - NT - - -label_begin - NT - test_ISONE - anInteger - - -192 - 226 - -191 - 331 - -label_begin - NT - test_ISEVEN - anInteger - - -191 - 494 - -192 - 331 - -label_begin - KT - label_test - KT - - -label_test - ValEven - test - ValEven - - -label_test - ValOne - test - ValOne - - -label_test - NT - test - NT - - -label_test - KT - test - KT - - -test - Finished - EndSwitch_OneEven - Finished - - -test - Incr - incr - Gate - - -test - Even - div2 - Gate - - -793 - 561 - -794 - 310 - -test - Odd - m3p1 - Gate - - -778 - 138 - -780 - 328 - -test - N - m3p1 - anOddInteger - - -808 - 113 - -807 - 352 - -test - N - div2 - anEvenInteger - - -806 - 537 - -807 - 351 - -test - K - EndSwitch_OneEven - K - - -test - K - incr - aCount - - -773 - 236 - -773 - 370 - -test - Default - EndSwitch_OneEven - Default - - -840 - 381 - -839 - 394 - -control_m3p1 - Gate - label_test - Gate - - -388 - 388 - -389 - 597 - -1441 - 604 - -1441 - 199 - -control_div2 - Gate - label_begin - Gate - - -4 - 388 - -3 - 587 - -1307 - 586 - -1307 - 528 - - -GraphGOTOAborted - label_begin__NB - label_begin - NB - -3 - 7 - - -GraphGOTOAborted - label_begin__KB - label_begin - KB - -3 - 0 - diff --git a/Superv/Graphs/GraphGOTOAddMemory.xml b/Superv/Graphs/GraphGOTOAddMemory.xml deleted file mode 100644 index 8ed4a8b..0000000 --- a/Superv/Graphs/GraphGOTOAddMemory.xml +++ /dev/null @@ -1,182 +0,0 @@ - - - - - - -? - ? - GraphGOTOAddMemory - 1 - ? - -GraphGOTOAddMemory_1 - - -double - AddWithoutSleep__x - -double - AddWithoutSleep__y - - -double - AddWithoutSleep__FuncValue - -double - AddWithoutSleep__z - - - 17/2/2005 - 14:8:55 - 21/2/2005 - 10:9:51 - 2.0 - JR - ? - To study memory leaks - 0 - 0 - - -? - ? - InLine - 3 - ? - -InLine - - - - - -? - - 21/2/2005 - 10:9:51 - 21/2/2005 - 10:9:51 - 2.0 - ? - ? - Compute Node - 74 - 178 - -? - ? - GoTo - 8 - InLine - -GoTo - - - - - -? - - 21/2/2005 - 10:9:51 - 21/2/2005 - 10:9:51 - 2.0 - ? - ? - Compute Node - 533 - 218 - -AddComponent - AddComponent - AddWithoutSleep - 0 - ? - -AddWithoutSleep - - -double - x - -double - y - - -double - FuncValue - -double - z - - - 21/2/2005 - 10:9:51 - 21/2/2005 - 10:9:51 - 2.0 - ? - localhost/FactoryServer - AddWithoutSleep from AddComponent - 297 - 138 - - -InLine - Gate - AddWithoutSleep - Gate - - -GoTo - Gate - InLine - Gate - - -69 - 420 - -700 - 420 - -AddWithoutSleep - Gate - GoTo - Gate - - - -GraphGOTOAddMemory - AddWithoutSleep__x - AddWithoutSleep - x - -7 - 1 - - -GraphGOTOAddMemory - AddWithoutSleep__y - AddWithoutSleep - y - -7 - 2 - diff --git a/Superv/Graphs/GraphGOTOMemory.xml b/Superv/Graphs/GraphGOTOMemory.xml deleted file mode 100644 index f173594..0000000 --- a/Superv/Graphs/GraphGOTOMemory.xml +++ /dev/null @@ -1,114 +0,0 @@ - - - - - - -? - ? - GraphGOTOMemory - 1 - ? - -GraphGOTOAddMemory_2 - - - - - 17/2/2005 - 14:8:55 - 21/2/2005 - 10:10:15 - 2.0 - JR - ? - To study memory leaks - 0 - 0 - - -? - ? - InLine - 3 - ? - -InLine - - - - - -? - - 21/2/2005 - 10:10:15 - 21/2/2005 - 10:10:15 - 2.0 - ? - ? - Compute Node - 74 - 178 - -? - ? - GoTo - 8 - InLine - -GoTo - - - - - -? - - 21/2/2005 - 10:10:15 - 21/2/2005 - 10:10:15 - 2.0 - ? - ? - Compute Node - 533 - 218 - - -InLine - Gate - GoTo - Gate - - -GoTo - Gate - InLine - Gate - - -69 - 420 - -700 - 420 - diff --git a/Superv/Graphs/GraphGeomEssai.xml b/Superv/Graphs/GraphGeomEssai.xml deleted file mode 100644 index 206e333..0000000 --- a/Superv/Graphs/GraphGeomEssai.xml +++ /dev/null @@ -1,359 +0,0 @@ - - - - - - -? - ? - aNewDataFlow - 1 - ? - -aNewDataFlow - - -long - SetStudyID__theStudyID - -double - MakeSphere__theX - -double - MakeSphere__theY - -double - MakeSphere__theZ - -double - MakeSphere__theRadius - -double - TranslateDXDYDZ__theDX - -double - TranslateDXDYDZ__theDY - -double - TranslateDXDYDZ__theDZ - - -GEOM_Object - MakeFuse__return - - - 29/10/2004 - 11:8:11 - 11/11/2004 - 12:53:24 - 2.0 - ? - ? - ? - 0 - 0 - - -GEOM_Superv - GEOM_Superv - SetStudyID - 0 - ? - -SetStudyID - - -long - theStudyID - - - - 11/11/2004 - 12:50:30 - 11/11/2004 - 12:50:30 - 2.0 - ? - localhost/FactoryServer - SetStudyID from GEOM_Superv - 13 - 109 - -GEOM_Superv - GEOM_Superv - MakeSphere - 0 - ? - -MakeSphere - - -double - theX - -double - theY - -double - theZ - -double - theRadius - - -GEOM_Object - return - - - 11/11/2004 - 12:51:22 - 11/11/2004 - 12:51:22 - 2.0 - ? - localhost/FactoryServer - MakeSphere from GEOM_Superv - 210 - 49 - -GEOM_Superv - GEOM_Superv - MakeCopy - 0 - ? - -MakeCopy - - -GEOM_Object - theOriginal - - -GEOM_Object - return - - - 11/11/2004 - 12:52:16 - 11/11/2004 - 12:52:16 - 2.0 - ? - localhost/FactoryServer - MakeCopy from GEOM_Superv - 412 - 12 - -GEOM_Superv - GEOM_Superv - MakeCopy_1 - 0 - ? - -MakeCopy - - -GEOM_Object - theOriginal - - -GEOM_Object - return - - - 11/11/2004 - 12:52:31 - 11/11/2004 - 12:52:31 - 2.0 - ? - localhost/FactoryServer - MakeCopy from GEOM_Superv - 414 - 183 - -GEOM_Superv - GEOM_Superv - TranslateDXDYDZ - 0 - ? - -TranslateDXDYDZ - - -GEOM_Object - theObject - -double - theDX - -double - theDY - -double - theDZ - - -GEOM_Object - return - - - 11/11/2004 - 12:52:54 - 11/11/2004 - 12:52:54 - 2.0 - ? - localhost/FactoryServer - TranslateDXDYDZ from GEOM_Superv - 606 - 12 - -GEOM_Superv - GEOM_Superv - MakeFuse - 0 - ? - -MakeFuse - - -GEOM_Object - theShape1 - -GEOM_Object - theShape2 - - -GEOM_Object - return - - - 11/11/2004 - 12:53:16 - 11/11/2004 - 12:53:16 - 2.0 - ? - localhost/FactoryServer - MakeFuse from GEOM_Superv - 801 - 163 - - -SetStudyID - Gate - MakeSphere - Gate - - -MakeSphere - return - MakeCopy - theOriginal - - -MakeSphere - return - MakeCopy_1 - theOriginal - - -MakeCopy - return - TranslateDXDYDZ - theObject - - -MakeCopy_1 - return - MakeFuse - theShape2 - - -TranslateDXDYDZ - return - MakeFuse - theShape1 - - - -aNewDataFlow - SetStudyID__theStudyID - SetStudyID - theStudyID - -3 - 1 - - -aNewDataFlow - MakeSphere__theX - MakeSphere - theX - -7 - 0 - - -aNewDataFlow - MakeSphere__theY - MakeSphere - theY - -7 - 0 - - -aNewDataFlow - MakeSphere__theZ - MakeSphere - theZ - -7 - 0 - - -aNewDataFlow - MakeSphere__theRadius - MakeSphere - theRadius - -7 - 20 - - -aNewDataFlow - TranslateDXDYDZ__theDX - TranslateDXDYDZ - theDX - -7 - 10 - - -aNewDataFlow - TranslateDXDYDZ__theDY - TranslateDXDYDZ - theDY - -7 - 10 - - -aNewDataFlow - TranslateDXDYDZ__theDZ - TranslateDXDYDZ - theDZ - -7 - 10 - diff --git a/Superv/Graphs/GraphGeomEssaiGates.xml b/Superv/Graphs/GraphGeomEssaiGates.xml deleted file mode 100644 index b954009..0000000 --- a/Superv/Graphs/GraphGeomEssaiGates.xml +++ /dev/null @@ -1,477 +0,0 @@ - - - - - - - ? - ? - aNewDataFlow - 1 - ? - - aNewDataFlow - - - long - SetStudyID__theStudyID - - - double - MakeSphere__theX - - - double - MakeSphere__theY - - - double - MakeSphere__theZ - - - double - MakeSphere__theRadius - - - double - TranslateDXDYDZ__theDX - - - double - TranslateDXDYDZ__theDY - - - double - TranslateDXDYDZ__theDZ - - - - - GEOM_Object - MakeFuse__return - - - - - - 29/10/2004 - 11:8:11 - 7/12/2005 - 16:43:30 - 2.0 - ? - ? - ? - 0 - 0 - - - - - GEOM_Superv - GEOM_Superv - SetStudyID - 0 - ? - - SetStudyID - - - long - theStudyID - - - - - - - 7/12/2005 - 16:43:30 - 7/12/2005 - 16:43:30 - 2.0 - ? - localhost/FactoryServer - SetStudyID from GEOM_Superv - 14 - 104 - - - GEOM_Superv - GEOM_Superv - MakeSphere - 0 - ? - - MakeSphere - - - double - theX - - - double - theY - - - double - theZ - - - double - theRadius - - - - - GEOM_Object - return - - - - - - 7/12/2005 - 16:43:30 - 7/12/2005 - 16:43:30 - 2.0 - ? - localhost/FactoryServer - MakeSphere from GEOM_Superv - 198 - 32 - - - GEOM_Superv - GEOM_Superv - MakeCopy - 0 - ? - - MakeCopy - - - GEOM_Object - theOriginal - - - - - GEOM_Object - return - - - - - - 7/12/2005 - 16:43:30 - 7/12/2005 - 16:43:30 - 2.0 - ? - localhost/FactoryServer - MakeCopy from GEOM_Superv - 390 - 11 - - - GEOM_Superv - GEOM_Superv - MakeCopy_1 - 0 - ? - - MakeCopy - - - GEOM_Object - theOriginal - - - - - GEOM_Object - return - - - - - - 7/12/2005 - 16:43:30 - 7/12/2005 - 16:43:30 - 2.0 - ? - localhost/FactoryServer - MakeCopy from GEOM_Superv - 429 - 177 - - - GEOM_Superv - GEOM_Superv - TranslateDXDYDZ - 0 - ? - - TranslateDXDYDZ - - - GEOM_Object - theObject - - - double - theDX - - - double - theDY - - - double - theDZ - - - - - GEOM_Object - return - - - - - - 7/12/2005 - 16:43:30 - 7/12/2005 - 16:43:30 - 2.0 - ? - localhost/FactoryServer - TranslateDXDYDZ from GEOM_Superv - 615 - 11 - - - GEOM_Superv - GEOM_Superv - MakeFuse - 0 - ? - - MakeFuse - - - GEOM_Object - theShape1 - - - GEOM_Object - theShape2 - - - - - GEOM_Object - return - - - - - - 7/12/2005 - 16:43:30 - 7/12/2005 - 16:43:30 - 2.0 - ? - localhost/FactoryServer - MakeFuse from GEOM_Superv - 806 - 33 - - - - - SetStudyID - Gate - MakeSphere - Gate - - - - MakeSphere - return - MakeCopy - theOriginal - - - - MakeSphere - return - MakeCopy_1 - theOriginal - - - - MakeCopy - return - TranslateDXDYDZ - theObject - - - - MakeCopy - Gate - MakeCopy_1 - Gate - - - 382 - 174 - - - 552 - 147 - - - - - MakeCopy_1 - return - MakeFuse - theShape2 - - - 784 - 199 - - - - - MakeCopy_1 - Gate - TranslateDXDYDZ - Gate - - - - TranslateDXDYDZ - return - MakeFuse - theShape1 - - - - TranslateDXDYDZ - Gate - MakeFuse - Gate - - - - - - aNewDataFlow - SetStudyID__theStudyID - SetStudyID - theStudyID - - 3 - 1 - - - - - aNewDataFlow - MakeSphere__theX - MakeSphere - theX - - 7 - 0 - - - - - aNewDataFlow - MakeSphere__theY - MakeSphere - theY - - 7 - 0 - - - - - aNewDataFlow - MakeSphere__theZ - MakeSphere - theZ - - 7 - 0 - - - - - aNewDataFlow - MakeSphere__theRadius - MakeSphere - theRadius - - 7 - 20 - - - - - aNewDataFlow - TranslateDXDYDZ__theDX - TranslateDXDYDZ - theDX - - 7 - 10 - - - - - aNewDataFlow - TranslateDXDYDZ__theDY - TranslateDXDYDZ - theDY - - 7 - 10 - - - - - aNewDataFlow - TranslateDXDYDZ__theDZ - TranslateDXDYDZ - theDZ - - 7 - 10 - - - - - - - diff --git a/Superv/Graphs/GraphGeomEssaiGates_py.xml b/Superv/Graphs/GraphGeomEssaiGates_py.xml deleted file mode 100644 index e460f8d..0000000 --- a/Superv/Graphs/GraphGeomEssaiGates_py.xml +++ /dev/null @@ -1,511 +0,0 @@ - - - - - - - ? - ? - GraphGeomEssai_1_1_1_1 - 1 - ? - - GraphGeomEssai_1_1_1_1 - - - double - MakeSphere_1__x1 - - - double - MakeSphere_1__y1 - - - double - MakeSphere_1__z1 - - - double - MakeSphere_1__radius - - - double - MakeTranslation_1__x1 - - - double - MakeTranslation_1__y1 - - - double - MakeTranslation_1__z1 - - - - - objref - MakeFuse_1__shape - - - - - - 10/7/2002 - 14:53:2 - 14/12/2005 - 14:43:56 - 1.03 - ? - ? - ? - 0 - 0 - - - - - ? - ? - gag - 3 - ? - - gag - - - - - - - gag - - - - - - - 14/12/2005 - 14:43:22 - 14/12/2005 - 14:43:22 - 2.0 - ? - ? - Compute Node - 0 - 166 - - - ? - ? - MakeSphere_1 - 3 - ? - - MakeSphere_1 - - - double - x1 - - - double - y1 - - - double - z1 - - - double - radius - - - - - objref - shape - - - - - - - MakeSphere_1 - - - - - - - 14/12/2005 - 14:43:22 - 14/12/2005 - 14:43:22 - 2.0 - ? - ? - Compute Node - 181 - 86 - - - ? - ? - MakeCopy_1 - 3 - ? - - MakeCopy_1 - - - objref - shape1 - - - - - objref - shape - - - - - - - MakeCopy_1 - - - - - - 14/12/2005 - 14:43:22 - 14/12/2005 - 14:43:22 - 2.0 - ? - ? - Compute Node - 386 - 2 - - - ? - ? - MakeCopy_2 - 3 - ? - - MakeCopy_2 - - - objref - shape1 - - - - - objref - shape - - - - - - - MakeCopy_2 - - - - - - 14/12/2005 - 14:43:22 - 14/12/2005 - 14:43:22 - 2.0 - ? - ? - Compute Node - 388 - 181 - - - ? - ? - MakeFuse_1 - 3 - ? - - MakeFuse_1 - - - objref - shape1 - - - objref - shape2 - - - - - objref - shape - - - - - - - MakeFuse_1 - - - - - - - - - - - - - - 14/12/2005 - 14:43:22 - 14/12/2005 - 14:43:22 - 2.0 - ? - ? - Compute Node - 779 - 161 - - - ? - ? - MakeTranslation_1 - 3 - ? - - MakeTranslation_1 - - - objref - shape1 - - - double - x1 - - - double - y1 - - - double - z1 - - - - - objref - shape - - - - - - - MakeTranslation_1 - - - - - - 14/12/2005 - 14:43:22 - 14/12/2005 - 14:43:22 - 2.0 - ? - ? - Compute Node - 580 - 2 - - - - - gag - Gate - MakeSphere_1 - Gate - - - - MakeSphere_1 - shape - MakeCopy_1 - shape1 - - - - MakeSphere_1 - shape - MakeCopy_2 - shape1 - - - - MakeSphere_1 - Gate - MakeCopy_1 - Gate - - - - MakeCopy_1 - shape - MakeTranslation_1 - shape1 - - - - MakeCopy_1 - Gate - MakeCopy_2 - Gate - - - 369 - 276 - - - 560 - 97 - - - - - MakeCopy_2 - shape - MakeFuse_1 - shape2 - - - - MakeCopy_2 - Gate - MakeTranslation_1 - Gate - - - - MakeTranslation_1 - shape - MakeFuse_1 - shape1 - - - - MakeTranslation_1 - Gate - MakeFuse_1 - Gate - - - - - - GraphGeomEssai_1_1_1_1 - MakeSphere_1__x1 - MakeSphere_1 - x1 - - 7 - 0 - - - - - GraphGeomEssai_1_1_1_1 - MakeSphere_1__y1 - MakeSphere_1 - y1 - - 7 - 0 - - - - - GraphGeomEssai_1_1_1_1 - MakeSphere_1__z1 - MakeSphere_1 - z1 - - 7 - 0 - - - - - GraphGeomEssai_1_1_1_1 - MakeSphere_1__radius - MakeSphere_1 - radius - - 7 - 20 - - - - - GraphGeomEssai_1_1_1_1 - MakeTranslation_1__x1 - MakeTranslation_1 - x1 - - 7 - 10 - - - - - GraphGeomEssai_1_1_1_1 - MakeTranslation_1__y1 - MakeTranslation_1 - y1 - - 7 - 10 - - - - - GraphGeomEssai_1_1_1_1 - MakeTranslation_1__z1 - MakeTranslation_1 - z1 - - 7 - 10 - - - - - - - diff --git a/Superv/Graphs/GraphGeomEssai_py.xml b/Superv/Graphs/GraphGeomEssai_py.xml deleted file mode 100644 index ae0dacd..0000000 --- a/Superv/Graphs/GraphGeomEssai_py.xml +++ /dev/null @@ -1,387 +0,0 @@ - - - - - - -? - ? - GraphGeomEssai_1_1_1_1 - 1 - ? - -GraphGeomEssai_1_1_1_1 - - -double - MakeSphere_1__x1 - -double - MakeSphere_1__y1 - -double - MakeSphere_1__z1 - -double - MakeSphere_1__radius - -double - MakeTranslation_1__x1 - -double - MakeTranslation_1__y1 - -double - MakeTranslation_1__z1 - - -objref - MakeFuse_1__shape - - - 10/7/2002 - 14:53:2 - 29/10/2004 - 15:7:37 - 1.03 - ? - ? - ? - 0 - 0 - - -? - ? - gag - 3 - ? - -gag - - - - - -gag - - - - - 29/10/2004 - 14:58:4 - 29/10/2004 - 14:58:4 - 2.0 - ? - ? - Compute Node - 0 - 166 - -? - ? - MakeSphere_1 - 3 - ? - -MakeSphere_1 - - -double - x1 - -double - y1 - -double - z1 - -double - radius - - -objref - shape - - - -MakeSphere_1 - - - - - 29/10/2004 - 14:58:4 - 29/10/2004 - 14:58:4 - 2.0 - ? - ? - Compute Node - 181 - 86 - -? - ? - MakeCopy_1 - 3 - ? - -MakeCopy_1 - - -objref - shape1 - - -objref - shape - - - -MakeCopy_1 - - - - 29/10/2004 - 14:58:4 - 29/10/2004 - 14:58:4 - 2.0 - ? - ? - Compute Node - 386 - 2 - -? - ? - MakeCopy_2 - 3 - ? - -MakeCopy_2 - - -objref - shape1 - - -objref - shape - - - -MakeCopy_2 - - - - 29/10/2004 - 14:58:4 - 29/10/2004 - 14:58:4 - 2.0 - ? - ? - Compute Node - 388 - 181 - -? - ? - MakeFuse_1 - 3 - ? - -MakeFuse_1 - - -objref - shape1 - -objref - shape2 - - -objref - shape - - - -MakeFuse_1 - - - - - - - - - - - - - - - 29/10/2004 - 14:58:4 - 29/10/2004 - 14:58:4 - 2.0 - ? - ? - Compute Node - 779 - 161 - -? - ? - MakeTranslation_1 - 3 - ? - -MakeTranslation_1 - - -objref - shape1 - -double - x1 - -double - y1 - -double - z1 - - -objref - shape - - - -MakeTranslation_1 - - - - 29/10/2004 - 15:1:27 - 29/10/2004 - 15:1:27 - 2.0 - ? - ? - Compute Node - 580 - 2 - - -gag - Gate - MakeSphere_1 - Gate - - -MakeSphere_1 - shape - MakeCopy_1 - shape1 - - -MakeSphere_1 - shape - MakeCopy_2 - shape1 - - -MakeCopy_1 - shape - MakeTranslation_1 - shape1 - - -MakeCopy_2 - shape - MakeFuse_1 - shape2 - - -MakeTranslation_1 - shape - MakeFuse_1 - shape1 - - - -GraphGeomEssai_1_1_1_1 - MakeSphere_1__x1 - MakeSphere_1 - x1 - -7 - 0 - - -GraphGeomEssai_1_1_1_1 - MakeSphere_1__y1 - MakeSphere_1 - y1 - -7 - 0 - - -GraphGeomEssai_1_1_1_1 - MakeSphere_1__z1 - MakeSphere_1 - z1 - -7 - 0 - - -GraphGeomEssai_1_1_1_1 - MakeSphere_1__radius - MakeSphere_1 - radius - -7 - 20 - - -GraphGeomEssai_1_1_1_1 - MakeTranslation_1__x1 - MakeTranslation_1 - x1 - -7 - 10 - - -GraphGeomEssai_1_1_1_1 - MakeTranslation_1__y1 - MakeTranslation_1 - y1 - -7 - 10 - - -GraphGeomEssai_1_1_1_1 - MakeTranslation_1__z1 - MakeTranslation_1 - z1 - -7 - 10 - diff --git a/Superv/Graphs/GraphImportSalome.xml b/Superv/Graphs/GraphImportSalome.xml deleted file mode 100644 index fd90ed1..0000000 --- a/Superv/Graphs/GraphImportSalome.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - -? - ? - aNewDataFlow - 1 - ? - -aNewDataFlow - - - -string - VoidFunction__Done - - - 8/12/2004 - 12:52:44 - 8/12/2004 - 16:0:49 - 2.0 - ? - ? - ? - 0 - 0 - - -? - ? - VoidFunction - 3 - ? - -VoidFunction - - - -string - Done - - - -VoidFunction - - - - - - 8/12/2004 - 16:0:49 - 8/12/2004 - 16:0:49 - 2.0 - ? - ? - Compute Node - 60 - 58 - - diff --git a/Superv/Graphs/GraphInLines.xml b/Superv/Graphs/GraphInLines.xml deleted file mode 100644 index 616db86..0000000 --- a/Superv/Graphs/GraphInLines.xml +++ /dev/null @@ -1,228 +0,0 @@ - - - - - -? - ? - GraphInLines - 1 - ? - -GraphInLines - - -long - Add\a - -long - Sub\a - -long - Sub\b - - -long - Mul\Result - - - 24/3/2003 - 10:58:41 - 18/9/2003 - 17:30:7 - 1.04 - ? - ? - ? - 0 - 0 - - -? - ? - Add - 3 - ? - -Add - - -long - a - -long - b - - -long - f - - - -Add - - - - 18/9/2003 - 17:30:7 - 18/9/2003 - 17:30:7 - 1.04 - ? - ? - Python function - 351 - 77 - -? - ? - Sub - 3 - ? - -Sub - - -long - a - -long - b - - -long - f - - - -Sub - - - - 18/9/2003 - 17:30:7 - 18/9/2003 - 17:30:7 - 1.04 - ? - ? - Python function - 86 - 333 - -? - ? - Mul - 3 - ? - -Mul - - -long - a - -long - b - - -long - Result - - - -Mul - - - 18/9/2003 - 17:30:7 - 18/9/2003 - 17:30:7 - 1.04 - ? - ? - Python function - 616 - 247 - - -Add - f - Mul - a - - -569 - 326 - -569 - 158 - -Sub - f - Mul - b - - -283 - 358 - -281 - 413 - -Sub - f - Add - b - - -283 - 187 - -282 - 356 - -281 - 414 - - -GraphInLines - Add\a - Add - a - -3 - 1 - - -GraphInLines - Sub\a - Sub - a - -3 - 3 - - -GraphInLines - Sub\b - Sub - b - -3 - 4 - diff --git a/Superv/Graphs/GraphInLinesParall.xml b/Superv/Graphs/GraphInLinesParall.xml deleted file mode 100755 index 2fc2314..0000000 --- a/Superv/Graphs/GraphInLinesParall.xml +++ /dev/null @@ -1,239 +0,0 @@ - - - - - -? - ? - GraphInLinesParall - 1 - ? - -GraphInLinesParall - - -long - Add\a - -long - Sub\a - -long - Sub\b - - -long - Add\f - -long - Mul\Result - - - 24/3/2003 - 10:58:41 - 18/9/2003 - 17:31:28 - 1.04 - ? - ? - ? - 0 - 0 - - -? - ? - Add - 3 - ? - -Add - - -long - a - -long - b - - -long - f - - - -Add - - - - - - - - 18/9/2003 - 17:31:28 - 18/9/2003 - 17:31:28 - 1.04 - ? - ? - Python function - 351 - 77 - -? - ? - Sub - 3 - ? - -Sub - - -long - a - -long - b - - -long - f - - - -Sub - - - - 18/9/2003 - 17:31:28 - 18/9/2003 - 17:31:28 - 1.04 - ? - ? - Python function - 86 - 333 - -? - ? - Mul - 3 - ? - -Mul - - -long - a - -long - b - - -long - Result - - - -Mul - - - - - - - 18/9/2003 - 17:31:28 - 18/9/2003 - 17:31:28 - 1.04 - ? - ? - Python function - 616 - 247 - - -Sub - f - Mul - b - - -583 - 357 - -583 - 413 - -282 - 413 - -Sub - f - Add - b - - -282 - 186 - -283 - 413 - -Sub - f - Mul - a - - -583 - 328 - -583 - 412 - - -GraphInLinesParall - Add\a - Add - a - -3 - 1 - - -GraphInLinesParall - Sub\a - Sub - a - -3 - 3 - - -GraphInLinesParall - Sub\b - Sub - b - -3 - 4 - diff --git a/Superv/Graphs/GraphInLinesTypesCheck.xml b/Superv/Graphs/GraphInLinesTypesCheck.xml deleted file mode 100755 index f1239a9..0000000 --- a/Superv/Graphs/GraphInLinesTypesCheck.xml +++ /dev/null @@ -1,559 +0,0 @@ - - - - - -? - ? - GraphInLinesConvertCheck - 1 - ? - -GraphInLinesConvertCheck - - -boolean - BoolCheck\InBool - -char - CharCheck\InChar - -short - ShortCheck\InShort - -float - FloatCheck\InFloat - -long - LongCheck\InLong - -string - StringCheck\InString - -double - DoubleCheck\InDouble - - -string - MiscTypes\OutString - -boolean - MiscTypes\OutBool - -char - MiscTypes\OutChar - -short - MiscTypes\OutShort - -long - MiscTypes\OutLong - -float - MiscTypes\OutFloat - -double - MiscTypes\OutDouble - -SuperVisionTest::Addre - MiscTypes\OutObjRef - - - 1/9/2003 - 17:28:48 - 11/9/2003 - 14:10:54 - 1.04 - JR - ? - ? - 0 - 0 - - -? - ? - BoolCheck - 3 - ? - -BoolCheck - - -boolean - InBool - - -boolean - OutBool - - - -BoolCheck - - - - 11/9/2003 - 14:10:54 - 11/9/2003 - 14:10:54 - 1.04 - ? - ? - InLine Node - 234 - 92 - -? - ? - CharCheck - 3 - ? - -CharCheck - - -char - InChar - - -char - OutChar - - - -CharCheck - - - - 11/9/2003 - 14:10:54 - 11/9/2003 - 14:10:54 - 1.04 - ? - ? - InLine Node - 30 - 142 - -? - ? - ShortCheck - 3 - ? - -ShortCheck - - -short - InShort - - -short - OutShort - - - -ShortCheck - - - - 11/9/2003 - 14:10:54 - 11/9/2003 - 14:10:54 - 1.04 - ? - ? - InLine Node - 234 - 230 - -? - ? - FloatCheck - 3 - ? - -FloatCheck - - -float - InFloat - - -float - OutFloat - - - -FloatCheck - - - - 11/9/2003 - 14:10:54 - 11/9/2003 - 14:10:54 - 1.04 - ? - ? - InLine Node - 230 - 375 - -AddComponent - AddComponent - Addition - 0 - ? - -Addition - - - -objref - Adder - - - 11/9/2003 - 14:10:54 - 11/9/2003 - 14:10:54 - 1.05 - ? - localhost/FactoryServer - Addition from AddComponent - 232 - 514 - -? - ? - LongCheck - 3 - ? - -LongCheck - - -long - InLong - - -long - OutLong - - - -LongCheck - - - - 11/9/2003 - 14:10:54 - 11/9/2003 - 14:10:54 - 1.05 - ? - ? - InLine Node - 30 - 282 - -? - ? - StringCheck - 3 - ? - -StringCheck - - -string - InString - - -string - OutString - - - -StringCheck - - - - 11/9/2003 - 14:10:54 - 11/9/2003 - 14:10:54 - 1.05 - ? - ? - InLine Node - 30 - 6 - -? - ? - DoubleCheck - 3 - ? - -DoubleCheck - - -double - InDouble - - -double - OutDouble - - - -DoubleCheck - - - - 11/9/2003 - 14:10:54 - 11/9/2003 - 14:10:54 - 1.05 - ? - ? - Compute Node - 23 - 427 - -? - ? - MiscTypes - 3 - ? - -MiscTypes - - -string - InString - -boolean - InBool - -char - InChar - -short - InShort - -long - InLong - -float - InFloat - -double - InDouble - -SuperVision::Adder - InObjRef - - -string - OutString - -boolean - OutBool - -char - OutChar - -short - OutShort - -long - OutLong - -float - OutFloat - -double - OutDouble - -SuperVisionTest::Addre - OutObjRef - - - -MiscTypes - - - 11/9/2003 - 14:10:54 - 11/9/2003 - 14:10:54 - 1.05 - ? - ? - InLine Node - 477 - 231 - - -BoolCheck - OutBool - MiscTypes - InBool - - -446 - 341 - -446 - 172 - -CharCheck - OutChar - MiscTypes - InChar - - -431 - 368 - -431 - 223 - -ShortCheck - OutShort - MiscTypes - InShort - - -415 - 397 - -414 - 310 - -FloatCheck - OutFloat - MiscTypes - InFloat - - -Addition - Adder - MiscTypes - InObjRef - - -462 - 514 - -461 - 593 - -LongCheck - OutLong - MiscTypes - InLong - - -406 - 426 - -405 - 363 - -StringCheck - OutString - MiscTypes - InString - - -462 - 312 - -461 - 87 - -DoubleCheck - OutDouble - MiscTypes - InDouble - - -445 - 485 - -445 - 508 - - -GraphInLinesConvertCheck - BoolCheck\InBool - BoolCheck - InBool - -3 - 1 - - -GraphInLinesConvertCheck - CharCheck\InChar - CharCheck - InChar - -3 - 255 - - -GraphInLinesConvertCheck - ShortCheck\InShort - ShortCheck - InShort - -3 - 16383 - - -GraphInLinesConvertCheck - FloatCheck\InFloat - FloatCheck - InFloat - -7 - 3.14159 - - -GraphInLinesConvertCheck - LongCheck\InLong - LongCheck - InLong - -3 - 1234567890 - - -GraphInLinesConvertCheck - StringCheck\InString - StringCheck - InString - -18 - aString - - -GraphInLinesConvertCheck - DoubleCheck\InDouble - DoubleCheck - InDouble - -7 - 1.23457 - diff --git a/Superv/Graphs/GraphInLinesUnValid.xml b/Superv/Graphs/GraphInLinesUnValid.xml deleted file mode 100755 index 6fe7ec6..0000000 --- a/Superv/Graphs/GraphInLinesUnValid.xml +++ /dev/null @@ -1,222 +0,0 @@ - - - - - -? - ? - GraphInLinesUnValid - 1 - ? - -GraphInLinesUnValid - - -long - Sub\a - -long - Sub\b - - - - 24/3/2003 - 10:58:41 - 8/8/2003 - 15:31:37 - 1.04 - ? - ? - ? - 0 - 0 - - -? - ? - Add - 3 - ? - -Add - - -long - a - -long - b - - -long - f - - - -Add - - - - 8/8/2003 - 15:30:23 - 8/8/2003 - 15:30:23 - 1.04 - ? - ? - Python function - 257 - 13 - -? - ? - Sub - 3 - ? - -Sub - - -long - a - -long - b - - -long - f - - - -Sub - - - - 8/8/2003 - 15:30:23 - 8/8/2003 - 15:30:23 - 1.04 - ? - ? - Python function - 20 - 152 - -? - ? - Mul - 3 - ? - -Mul - - -long - a - -long - b - - -long - Result - - - -Mul - - - 8/8/2003 - 15:30:23 - 8/8/2003 - 15:30:23 - 1.04 - ? - ? - Python function - 469 - 125 - - -Add - f - Mul - a - - -451 - 205 - -450 - 93 - -Sub - f - Mul - b - - -Sub - f - Add - b - - -235 - 122 - -236 - 232 - -Mul - Result - Add - a - - -8 - 92 - -7 - 332 - -645 - 334 - -645 - 204 - - -GraphInLinesUnValid - Sub\a - Sub - a - -3 - 3 - - -GraphInLinesUnValid - Sub\b - Sub - b - -3 - 4 - diff --git a/Superv/Graphs/GraphInconsistencyTypes.xml b/Superv/Graphs/GraphInconsistencyTypes.xml deleted file mode 100644 index 957f52a..0000000 --- a/Superv/Graphs/GraphInconsistencyTypes.xml +++ /dev/null @@ -1,137 +0,0 @@ - - - - - - - ? - ? - aNewDataFlow_4 - 1 - ? - - aNewDataFlow_4 - - - double - MulNode__a - - - double - MulNode__b - - - - - string - MulNode__c - - - - - - 14/4/2006 - 15:16:9 - 14/4/2006 - 15:16:12 - 3.0 - ? - ? - ? - 0 - 0 - - - - - ? - ? - MulNode - 3 - ? - - MulNode - - - double - a - - - double - b - - - - - string - c - - - - - - - MulNode - - - - - - 14/4/2006 - 15:16:12 - 14/4/2006 - 15:16:12 - 3.0 - ? - ? - Compute Node - 0 - 0 - - - - - - aNewDataFlow_4 - MulNode__a - MulNode - a - - 7 - 10.5 - - - - - aNewDataFlow_4 - MulNode__b - MulNode - b - - 7 - 2 - - - - - - - diff --git a/Superv/Graphs/GraphInputInLoop.xml b/Superv/Graphs/GraphInputInLoop.xml deleted file mode 100644 index 080501f..0000000 --- a/Superv/Graphs/GraphInputInLoop.xml +++ /dev/null @@ -1,395 +0,0 @@ - - - - - - -? - ? - GraphInputInLoop_2_1 - 1 - ? - -GraphInputInLoop_2_1 - - -string - IsOdd__Const - -long - InitLoop__Index - -long - InitLoop__Min - -long - InitLoop__Max - - -string - IsOdd__Const - -long - EndOfInitLoop__Index - -long - EndOfInitLoop__Min - -long - EndOfInitLoop__Max - - - 22/10/2003 - 10:36:39 - 8/3/2005 - 15:2:42 - 1.05 - ? - ? - ? - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - -boolean - Even - -string - Const - - -long - a - -string - Const - - - -IsOdd - - - - - - 8/3/2005 - 15:2:42 - 8/3/2005 - 15:2:42 - 1.05 - ? - ? - Python function - 397 - 5 - -? - ? - InitLoop - 4 - EndOfInitLoop - -InitLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -? - - -? - - -? - - 8/3/2005 - 15:2:42 - 8/3/2005 - 15:2:42 - 1.05 - ? - ? - Compute Node - 10 - 108 - -? - ? - EndOfInitLoop - 5 - InitLoop - -EndOfInitLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -EndOfInitLoop - - - - - - - - 8/3/2005 - 15:2:42 - 8/3/2005 - 15:2:42 - 1.05 - ? - ? - Compute Node - 770 - 147 - -? - ? - Switch - 6 - EndSwitch - -Switch - - -long - a - - -long - Odd - -int - Even - -int - a - - - -Switch - - - - - - 8/3/2005 - 15:2:42 - 8/3/2005 - 15:2:42 - 1.05 - ? - ? - Compute Node - 194 - 109 - -? - ? - EndSwitch - 7 - Switch - -EndSwitch - - -long - a - - -long - a - - - -EndSwitch - - - - - 8/3/2005 - 15:2:42 - 8/3/2005 - 15:2:42 - 1.05 - ? - ? - Compute Node - 588 - 147 - - -IsOdd - a - EndSwitch - a - - -573 - 178 - -573 - 76 - -InitLoop - DoLoop - EndOfInitLoop - DoLoop - - -InitLoop - Index - Switch - a - - -InitLoop - Min - EndOfInitLoop - Min - - -InitLoop - Max - EndOfInitLoop - Max - - -EndOfInitLoop - DoLoop - InitLoop - DoLoop - - -Switch - Odd - IsOdd - Gate - - -Switch - Even - IsOdd - Even - - -Switch - a - IsOdd - a - - -366 - 71 - -366 - 182 - -Switch - Default - EndSwitch - Default - - -EndSwitch - a - EndOfInitLoop - Index - - - -GraphInputInLoop_2_1 - IsOdd__Const - IsOdd - Const - -18 - Const Input Value - - -GraphInputInLoop_2_1 - InitLoop__Index - InitLoop - Index - -3 - 0 - - -GraphInputInLoop_2_1 - InitLoop__Min - InitLoop - Min - -3 - 0 - - -GraphInputInLoop_2_1 - InitLoop__Max - InitLoop - Max - -3 - 23 - diff --git a/Superv/Graphs/GraphLoop.xml b/Superv/Graphs/GraphLoop.xml deleted file mode 100644 index 4c0afdf..0000000 --- a/Superv/Graphs/GraphLoop.xml +++ /dev/null @@ -1,260 +0,0 @@ - - - - - - -? - ? - GraphLoop - 1 - ? - -GraphLoop - - -long - Init__Index - -long - Init__Min - -long - Init__Max - -long - Init__Incr - - -long - EndInit__Index - -long - EndInit__Min - -long - EndInit__Max - -long - EndInit__Incr - - - 24/3/2003 - 14:44:35 - 16/12/2004 - 11:8:15 - 1.04 - ? - ? - ? - 0 - 0 - - -? - ? - Init - 4 - EndInit - -Init - - -long - Index - -long - Min - -long - Max - -long - Incr - - -long - Index - -long - Min - -long - Max - -long - Incr - - - -Init - - - - - - - -More - - - - - - - - - -Next - - - - 16/12/2004 - 11:8:15 - 16/12/2004 - 11:8:15 - 1.04 - ? - ? - Compute Node - 17 - 257 - -? - ? - EndInit - 5 - Init - -EndInit - - -long - Index - -long - Min - -long - Max - -long - Incr - - -long - Index - -long - Min - -long - Max - -long - Incr - - - -? - - 16/12/2004 - 11:8:15 - 16/12/2004 - 11:8:15 - 1.04 - ? - ? - Compute Node - 366 - 262 - - -Init - DoLoop - EndInit - DoLoop - - -Init - Index - EndInit - Index - - -Init - Min - EndInit - Min - - -Init - Max - EndInit - Max - - -Init - Incr - EndInit - Incr - - -EndInit - DoLoop - Init - DoLoop - - - -GraphLoop - Init__Index - Init - Index - -3 - 0 - - -GraphLoop - Init__Min - Init - Min - -3 - 5 - - -GraphLoop - Init__Max - Init - Max - -3 - 10 - - -GraphLoop - Init__Incr - Init - Incr - -3 - 1 - diff --git a/Superv/Graphs/GraphLoop1.xml b/Superv/Graphs/GraphLoop1.xml deleted file mode 100644 index a32b9be..0000000 --- a/Superv/Graphs/GraphLoop1.xml +++ /dev/null @@ -1,330 +0,0 @@ - - - - - - -? - ? - GraphLoop1 - 1 - ? - -GraphLoop_2 - - -long - Init__Index - -long - Init__Min - -long - Init__Max - -long - Init__Incr - - -long - EndInit__Index - -long - EndInit__Min - -long - EndInit__Max - -long - EndInit__Incr - - - 24/3/2003 - 14:44:35 - 6/6/2005 - 15:13:52 - 1.04 - ? - ? - ? - 0 - 0 - - -? - ? - Init - 4 - EndInit - -Init - - -long - Index - -long - Min - -long - Max - -long - Incr - - -long - Index - -long - Min - -long - Max - -long - Incr - - - -Init - - - - - - - -More - - - - - - - - - -Next - - - - 6/6/2005 - 15:13:52 - 6/6/2005 - 15:13:52 - 1.04 - ? - ? - Compute Node - 17 - 257 - -? - ? - EndInit - 5 - Init - -EndInit - - -long - Index - -long - Min - -long - Max - -long - Incr - - -long - Index - -long - Min - -long - Max - -long - Incr - - - -? - - 6/6/2005 - 15:13:52 - 6/6/2005 - 15:13:52 - 1.04 - ? - ? - Compute Node - 555 - 255 - -? - ? - NodeIndex - 3 - ? - -NodeIndex - - -long - Index - - -long - Index - - - -? - - 6/6/2005 - 15:13:52 - 6/6/2005 - 15:13:52 - 2.0 - ? - ? - Compute Node - 281 - 215 - -? - ? - NodeIncr - 3 - ? - -NodeIncr - - -long - Incr - - -long - Incr - - - -? - - 6/6/2005 - 15:13:52 - 6/6/2005 - 15:13:52 - 2.0 - ? - ? - Compute Node - 278 - 372 - - -Init - DoLoop - EndInit - DoLoop - - -Init - Index - NodeIndex - Index - - -Init - Min - EndInit - Min - - -Init - Max - EndInit - Max - - -Init - Incr - NodeIncr - Incr - - -EndInit - DoLoop - Init - DoLoop - - -NodeIndex - Index - EndInit - Index - - -NodeIncr - Incr - EndInit - Incr - - - -GraphLoop1 - Init__Index - Init - Index - -3 - 0 - - -GraphLoop1 - Init__Min - Init - Min - -3 - 5 - - -GraphLoop1 - Init__Max - Init - Max - -3 - 10 - - -GraphLoop1 - Init__Incr - Init - Incr - -3 - 1 - diff --git a/Superv/Graphs/GraphLoop2.xml b/Superv/Graphs/GraphLoop2.xml deleted file mode 100644 index 9beb452..0000000 --- a/Superv/Graphs/GraphLoop2.xml +++ /dev/null @@ -1,351 +0,0 @@ - - - - - - -? - ? - GraphLoop2 - 1 - ? - -GraphLoop1_1 - - -long - Init__Index - -long - Init__Min - -long - Init__Max - -long - Init__Incr - -string - NodeIncr__aString - - -long - EndInit__Index - -long - EndInit__Min - -long - EndInit__Max - -long - EndInit__Incr - -string - NodeIncr__aString - - - 24/3/2003 - 14:44:35 - 6/6/2005 - 16:24:36 - 1.04 - ? - ? - ? - 0 - 0 - - -? - ? - Init - 4 - EndInit - -Init - - -long - Index - -long - Min - -long - Max - -long - Incr - - -long - Index - -long - Min - -long - Max - -long - Incr - - - -Init - - - - - - - -More - - - - - - - - - -Next - - - - 6/6/2005 - 16:24:36 - 6/6/2005 - 16:24:36 - 1.04 - ? - ? - Compute Node - 17 - 257 - -? - ? - EndInit - 5 - Init - -EndInit - - -long - Index - -long - Min - -long - Max - -long - Incr - - -long - Index - -long - Min - -long - Max - -long - Incr - - - -? - - 6/6/2005 - 16:24:36 - 6/6/2005 - 16:24:36 - 1.04 - ? - ? - Compute Node - 555 - 255 - -? - ? - NodeIndex - 3 - ? - -NodeIndex - - -long - Index - - -long - Index - - - -? - - 6/6/2005 - 16:24:36 - 6/6/2005 - 16:24:36 - 2.0 - ? - ? - Compute Node - 281 - 215 - -? - ? - NodeIncr - 3 - ? - -NodeIncr - - -long - Incr - -string - aString - - -long - Incr - -string - aString - - - -? - - 6/6/2005 - 16:24:36 - 6/6/2005 - 16:24:36 - 2.0 - ? - ? - Compute Node - 278 - 372 - - -Init - DoLoop - EndInit - DoLoop - - -Init - Index - NodeIndex - Index - - -Init - Min - EndInit - Min - - -Init - Max - EndInit - Max - - -Init - Incr - NodeIncr - Incr - - -EndInit - DoLoop - Init - DoLoop - - -NodeIndex - Index - EndInit - Index - - -NodeIncr - Incr - EndInit - Incr - - - -GraphLoop2 - Init__Index - Init - Index - -3 - 0 - - -GraphLoop2 - Init__Min - Init - Min - -3 - 5 - - -GraphLoop2 - Init__Max - Init - Max - -3 - 10 - - -GraphLoop2 - Init__Incr - Init - Incr - -3 - 1 - - -GraphLoop2 - NodeIncr__aString - NodeIncr - aString - -18 - NodeToDelete - diff --git a/Superv/Graphs/GraphLoopAddMemory.xml b/Superv/Graphs/GraphLoopAddMemory.xml deleted file mode 100644 index aa86e9c..0000000 --- a/Superv/Graphs/GraphLoopAddMemory.xml +++ /dev/null @@ -1,314 +0,0 @@ - - - - - - -? - ? - GraphLoopAddMemory - 1 - ? - -GraphLoopMemory_1 - - -long - Init__Index - -long - Init__Min - -long - Init__Max - -long - Init__Incr - - -long - EndInit__Index - -long - EndInit__Min - -long - EndInit__Max - -long - EndInit__Incr - -double - AddWithoutSleep__FuncValue - -double - AddWithoutSleep__z - - - 24/3/2003 - 14:44:35 - 14/4/2005 - 16:44:51 - 1.04 - JR - ? - For solving of memory leaks - 0 - 0 - - -? - ? - Init - 4 - EndInit - -Init - - -long - Index - -long - Min - -long - Max - -long - Incr - - -long - Index - -long - Min - -long - Max - -long - Incr - - - -Init - - - - - - - -More - - - - - - - -Next - - - - 14/4/2005 - 16:43:41 - 14/4/2005 - 16:43:41 - 1.04 - ? - ? - Compute Node - 17 - 257 - -? - ? - EndInit - 5 - Init - -EndInit - - -long - Index - -long - Min - -long - Max - -long - Incr - - -long - Index - -long - Min - -long - Max - -long - Incr - - - -? - - 14/4/2005 - 16:43:41 - 14/4/2005 - 16:43:41 - 1.04 - ? - ? - Compute Node - 495 - 262 - -AddComponent - AddComponent - AddWithoutSleep - 0 - ? - -AddWithoutSleep - - -double - x - -double - y - - -double - FuncValue - -double - z - - - 14/4/2005 - 16:44:22 - 14/4/2005 - 16:44:22 - 2.0 - ? - localhost/FactoryServer - AddWithoutSleep from AddComponent - 246 - 262 - - -Init - DoLoop - EndInit - DoLoop - - -Init - Index - EndInit - Index - - -Init - Index - AddWithoutSleep - x - - -Init - Min - EndInit - Min - - -Init - Max - EndInit - Max - - -Init - Max - AddWithoutSleep - y - - -Init - Incr - EndInit - Incr - - -EndInit - DoLoop - Init - DoLoop - - -AddWithoutSleep - Gate - EndInit - Gate - - - -GraphLoopAddMemory - Init__Index - Init - Index - -3 - 0 - - -GraphLoopAddMemory - Init__Min - Init - Min - -3 - 5 - - -GraphLoopAddMemory - Init__Max - Init - Max - -3 - 100000 - - -GraphLoopAddMemory - Init__Incr - Init - Incr - -3 - 1 - diff --git a/Superv/Graphs/GraphLoopDoWhile.xml b/Superv/Graphs/GraphLoopDoWhile.xml deleted file mode 100644 index ea4e2f0..0000000 --- a/Superv/Graphs/GraphLoopDoWhile.xml +++ /dev/null @@ -1,192 +0,0 @@ - - - - - - -? - ? - GraphLoopDoWhile - 1 - ? - -GraphLoopDoWhile - - -long - Loop__Index - -long - Loop__Max - - -long - EndLoop__Index - -long - EndLoop__Max - - - 16/12/2004 - 15:39:50 - 16/12/2004 - 18:44:10 - 2.0 - JR - ? - ? - 0 - 0 - - -? - ? - Loop - 4 - EndLoop - -Loop - - -long - Index - -long - Max - - -long - Index - -long - Max - - - -? - - -? - - -LoopWhileNext - - - - - 16/12/2004 - 18:44:10 - 16/12/2004 - 18:44:10 - 2.0 - ? - ? - Compute Node - 105 - 226 - -? - ? - EndLoop - 5 - Loop - -EndLoop - - -long - Index - -long - Max - - -long - Index - -long - Max - - - -DoWhile - - - - - - - - - - - 16/12/2004 - 18:44:10 - 16/12/2004 - 18:44:10 - 2.0 - ? - ? - Compute Node - 414 - 232 - - -Loop - DoLoop - EndLoop - DoLoop - - -Loop - Index - EndLoop - Index - - -Loop - Max - EndLoop - Max - - -EndLoop - DoLoop - Loop - DoLoop - - - -GraphLoopDoWhile - Loop__Index - Loop - Index - -3 - 5 - - -GraphLoopDoWhile - Loop__Max - Loop - Max - -3 - 10 - diff --git a/Superv/Graphs/GraphLoopGates.xml b/Superv/Graphs/GraphLoopGates.xml deleted file mode 100644 index cde903e..0000000 --- a/Superv/Graphs/GraphLoopGates.xml +++ /dev/null @@ -1,543 +0,0 @@ - - - - - - -? - ? - GraphLoopGates - 1 - ? - -GraphLoopGates1_1 - - -long - Init__Index - -long - Init__Min - -long - Init__Max - -double - Add__x - -double - Add__y - -double - Add_1__x - -double - Add_1__y - -double - Sub__x - -double - Sub__y - -double - Sub_1__x - -double - Sub_1__y - - -long - EndInit__Index - -long - EndInit__Min - -long - EndInit__Max - -double - Add__FuncValue - -double - Add__z - -double - Add_1__FuncValue - -double - Add_1__z - -double - Sub__z - -long - Gate__G - - - 7/1/2005 - 16:57:1 - 4/7/2005 - 10:26:6 - 2.0 - JR - ? - ? - 0 - 0 - - -? - ? - Init - 4 - EndInit - -Init - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -Init - - - - - - -More - - - - - - - -Next - - - - 4/7/2005 - 10:26:6 - 4/7/2005 - 10:26:6 - 2.0 - ? - ? - Compute Node - 10 - 181 - -? - ? - EndInit - 5 - Init - -EndInit - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -EndInit - - 4/7/2005 - 10:26:6 - 4/7/2005 - 10:26:6 - 2.0 - ? - ? - Compute Node - 847 - 247 - -AddComponent - AddComponent - Add - 0 - ? - -Add - - -double - x - -double - y - - -double - FuncValue - -double - z - - - 4/7/2005 - 10:26:6 - 4/7/2005 - 10:26:6 - 2.0 - ? - localhost/FactoryServer - Add from AddComponent - 248 - 70 - -AddComponent - AddComponent - Add_1 - 0 - ? - -Add - - -double - x - -double - y - - -double - FuncValue - -double - z - - - 4/7/2005 - 10:26:6 - 4/7/2005 - 10:26:6 - 2.0 - ? - localhost/FactoryServer - Add from AddComponent - 249 - 305 - -SubComponent - SubComponent - Sub - 0 - ? - -Sub - - -double - x - -double - y - - -double - z - - - 4/7/2005 - 10:26:6 - 4/7/2005 - 10:26:6 - 2.0 - ? - localhost/FactoryServer - Sub from SubComponent - 453 - 72 - -SubComponent - SubComponent - Sub_1 - 0 - ? - -Sub - - -double - x - -double - y - - -double - z - - - 4/7/2005 - 10:26:6 - 4/7/2005 - 10:26:6 - 2.0 - ? - localhost/FactoryServer - Sub from SubComponent - 455 - 304 - -? - ? - Gate - 3 - ? - -Gate - - -long - G1 - -long - G2 - - -long - G - - - -Gate - - - - - 4/7/2005 - 10:26:6 - 4/7/2005 - 10:26:6 - 2.0 - ? - ? - Compute Node - 650 - 227 - - -Init - DoLoop - EndInit - DoLoop - - -Init - Index - EndInit - Index - - -Init - Min - EndInit - Min - - -Init - Max - EndInit - Max - - -Init - Gate - Add_1 - Gate - - -Init - Gate - Add - Gate - - -EndInit - DoLoop - Init - DoLoop - - -Add - Gate - Sub - Gate - - -Add_1 - Gate - Sub_1 - Gate - - -Sub - Gate - Gate - G1 - - -Sub_1 - z - Gate - G2 - - -Sub_1 - Gate - Gate - Gate - - -Gate - Gate - EndInit - Gate - - - -GraphLoopGates - Init__Index - Init - Index - -3 - 0 - - -GraphLoopGates - Init__Min - Init - Min - -3 - 5 - - -GraphLoopGates - Init__Max - Init - Max - -3 - 13 - - -GraphLoopGates - Add__x - Add - x - -7 - 1 - - -GraphLoopGates - Add__y - Add - y - -7 - 2 - - -GraphLoopGates - Add_1__x - Add_1 - x - -7 - 3 - - -GraphLoopGates - Add_1__y - Add_1 - y - -7 - 4 - - -GraphLoopGates - Sub__x - Sub - x - -7 - 5 - - -GraphLoopGates - Sub__y - Sub - y - -7 - 6 - - -GraphLoopGates - Sub_1__x - Sub_1 - x - -7 - 7 - - -GraphLoopGates - Sub_1__y - Sub_1 - y - -7 - 8 - diff --git a/Superv/Graphs/GraphLoopGatesNOTValid.xml b/Superv/Graphs/GraphLoopGatesNOTValid.xml deleted file mode 100644 index 1ef50a9..0000000 --- a/Superv/Graphs/GraphLoopGatesNOTValid.xml +++ /dev/null @@ -1,537 +0,0 @@ - - - - - - -? - ? - GraphLoopGatesNOTValid - 1 - ? - -GraphLoopsGates - - -long - Init__Index - -long - Init__Min - -long - Init__Max - -double - Add__x - -double - Add__y - -double - Add_1__x - -double - Add_1__y - -double - Sub__x - -double - Sub__y - -double - Sub_1__x - -double - Sub_1__y - - -long - EndInit__Index - -long - EndInit__Min - -long - EndInit__Max - -double - Add__FuncValue - -double - Add__z - -double - Add_1__FuncValue - -double - Add_1__z - -double - Sub__z - -double - Sub_1__z - - - 7/1/2005 - 16:57:1 - 7/1/2005 - 17:8:8 - 2.0 - JR - ? - ? - 0 - 0 - - -? - ? - Init - 4 - EndInit - -Init - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -Init - - - - - - -More - - - - - - - -Next - - - - 7/1/2005 - 16:59:3 - 7/1/2005 - 16:59:3 - 2.0 - ? - ? - Compute Node - 10 - 181 - -? - ? - EndInit - 5 - Init - -EndInit - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -EndInit - - 7/1/2005 - 16:59:3 - 7/1/2005 - 16:59:3 - 2.0 - ? - ? - Compute Node - 840 - 204 - -AddComponent - AddComponent - Add - 0 - ? - -Add - - -double - x - -double - y - - -double - FuncValue - -double - z - - - 7/1/2005 - 17:3:59 - 7/1/2005 - 17:3:59 - 2.0 - ? - localhost/FactoryServer - Add from AddComponent - 248 - 70 - -AddComponent - AddComponent - Add_1 - 0 - ? - -Add - - -double - x - -double - y - - -double - FuncValue - -double - z - - - 7/1/2005 - 17:4:5 - 7/1/2005 - 17:4:5 - 2.0 - ? - localhost/FactoryServer - Add from AddComponent - 249 - 305 - -SubComponent - SubComponent - Sub - 0 - ? - -Sub - - -double - x - -double - y - - -double - z - - - 7/1/2005 - 17:4:31 - 7/1/2005 - 17:4:31 - 2.0 - ? - localhost/FactoryServer - Sub from SubComponent - 453 - 72 - -SubComponent - SubComponent - Sub_1 - 0 - ? - -Sub - - -double - x - -double - y - - -double - z - - - 7/1/2005 - 17:4:32 - 7/1/2005 - 17:4:32 - 2.0 - ? - localhost/FactoryServer - Sub from SubComponent - 455 - 304 - -? - ? - Gate - 3 - ? - -Gate - - -long - G1 - -long - G2 - - -long - G - - - -Gate - - - - - 7/1/2005 - 17:7:9 - 7/1/2005 - 17:7:9 - 2.0 - ? - ? - Compute Node - 650 - 227 - - -Init - DoLoop - EndInit - DoLoop - - -Init - Gate - Add_1 - Gate - - -Init - Gate - Add - Gate - - -Init - Index - EndInit - Index - - -Init - Min - EndInit - Min - - -Init - Max - EndInit - Max - - -EndInit - DoLoop - Init - DoLoop - - -Add - Gate - Sub - Gate - - -Add_1 - Gate - Sub_1 - Gate - - -Sub - Gate - Gate - G1 - - -Sub_1 - Gate - Gate - G2 - - -Gate - G - EndInit - Gate - - - -GraphLoopGatesNOTValid - Init__Index - Init - Index - -3 - 0 - - -GraphLoopGatesNOTValid - Init__Min - Init - Min - -3 - 5 - - -GraphLoopGatesNOTValid - Init__Max - Init - Max - -3 - 13 - - -GraphLoopGatesNOTValid - Add__x - Add - x - -7 - 1 - - -GraphLoopGatesNOTValid - Add__y - Add - y - -7 - 2 - - -GraphLoopGatesNOTValid - Add_1__x - Add_1 - x - -7 - 3 - - -GraphLoopGatesNOTValid - Add_1__y - Add_1 - y - -7 - 4 - - -GraphLoopGatesNOTValid - Sub__x - Sub - x - -7 - 5 - - -GraphLoopGatesNOTValid - Sub__y - Sub - y - -7 - 6 - - -GraphLoopGatesNOTValid - Sub_1__x - Sub_1 - x - -7 - 7 - - -GraphLoopGatesNOTValid - Sub_1__y - Sub_1 - y - -7 - 8 - diff --git a/Superv/Graphs/GraphLoopMacroNodes.xml b/Superv/Graphs/GraphLoopMacroNodes.xml deleted file mode 100644 index 079b425..0000000 --- a/Superv/Graphs/GraphLoopMacroNodes.xml +++ /dev/null @@ -1,1092 +0,0 @@ - - - - - - - ? - ? - GraphLoopMacroNodes - 1 - ? - - GraphLoopMacroNodes - - - double - Sub__x - - - long - Loop__Index - - - long - Loop__Min - - - long - Loop__Max - - - long - Loop__Incr - - - double - Loop__zDiv - - - double - Loop__zMul - - - string - Loop__OK - - - - - long - EndLoop__Index - - - long - EndLoop__Min - - - long - EndLoop__Max - - - long - EndLoop__Incr - - - double - EndLoop__zDiv - - - double - EndLoop__zMul - - - string - EndLoop__OK - - - double - ResultsControl__Div_z - - - double - ResultsControl__Mul_z - - - - - - 11/3/2003 - 9:58:58 - 9/2/2007 - 15:44:35 - 1.04 - JR - ? - ? - 0 - 0 - - - - - AddComponent - AddComponent - Add - 0 - ? - - Add - - - double - x - - - double - y - - - - - double - FuncValue - - - double - z - - - - - - 9/2/2007 - 14:26:53 - 9/2/2007 - 14:26:53 - 1.04 - ? - FactoryServer - Add from AddComponent - 205 - 238 - - - SubComponent - SubComponent - Sub - 0 - ? - - Sub - - - double - x - - - double - y - - - - - double - z - - - - - - 9/2/2007 - 14:26:53 - 9/2/2007 - 14:26:53 - 1.04 - ? - FactoryServer - Sub from SubComponent - 394 - 146 - - - MulComponent - MulComponent - Mul - 0 - ? - - Mul - - - double - x - - - double - y - - - - - double - z - - - - - - 9/2/2007 - 14:26:53 - 9/2/2007 - 14:26:53 - 1.04 - ? - FactoryServer - Mul from MulComponent - 821 - 319 - - - DivComponent - DivComponent - Div - 0 - ? - - Div - - - double - x - - - double - y - - - - - double - z - - - - - - 9/2/2007 - 14:26:53 - 9/2/2007 - 14:26:53 - 1.04 - ? - FactoryServer - Div from DivComponent - 825 - 133 - - - ? - ? - Macro_GraphAdd - 10 - GraphAdd_1 - - GraphAdd - - - double - Add__x - - - double - Add__y - - - - - double - Add__FuncValue - - - double - Add__z - - - - - - - ? - - - - 9/2/2007 - 14:26:53 - 9/2/2007 - 14:26:53 - 3.0 - ? - ? - Macro Node - 625 - 133 - - - ? - ? - Macro_GraphSub - 10 - GraphSub_1 - - GraphSub - - - double - Sub__x - - - double - Sub__y - - - - - double - Sub__z - - - - - - - ? - - - - 9/2/2007 - 14:26:53 - 9/2/2007 - 14:26:53 - 3.0 - ? - ? - Macro Node - 512 - 319 - - - ? - ? - Loop - 4 - EndLoop - - Loop - - - long - Index - - - long - Min - - - long - Max - - - long - Incr - - - double - zDiv - - - double - zMul - - - string - OK - - - - - long - Index - - - long - Min - - - long - Max - - - long - Incr - - - double - zDiv - - - double - zMul - - - string - OK - - - - - - - Init - - - - - - - - - - More - - - - - - - - - - Next - - - - - - - 9/2/2007 - 14:26:53 - 9/2/2007 - 14:26:53 - 3.0 - ? - ? - Compute Node - 5 - 265 - - - ? - ? - EndLoop - 5 - Loop - - EndLoop - - - long - Index - - - long - Min - - - long - Max - - - long - Incr - - - double - zDiv - - - double - zMul - - - string - OK - - - - - long - Index - - - long - Min - - - long - Max - - - long - Incr - - - double - zDiv - - - double - zMul - - - string - OK - - - - - - - EndLoop - - - - - - - - - 9/2/2007 - 14:26:53 - 9/2/2007 - 14:26:53 - 3.0 - ? - ? - Compute Node - 1354 - 156 - - - ? - ? - ResultsControl - 3 - ? - - ResultsControl - - - double - x - - - double - y - - - double - zDiv - - - double - zMul - - - - - double - zDiv - - - double - zMul - - - double - Div_z - - - double - Mul_z - - - string - OK - - - - - - - ResultsControl - - - - - - - - - - - - - - - - - 9/2/2007 - 14:56:27 - 9/2/2007 - 14:56:27 - 3.0 - ? - ? - Compute Node - 1102 - 196 - - - - - Add - FuncValue - Macro_GraphSub - Sub__x - - - - Add - FuncValue - Macro_GraphAdd - Add__y - - - 512 - 309 - - - - - Add - z - Sub - y - - - - Add - z - Macro_GraphSub - Sub__y - - - - Sub - z - Macro_GraphAdd - Add__x - - - - Sub - z - Mul - x - - - 767 - 389 - - - 767 - 297 - - - 592 - 297 - - - 592 - 217 - - - - - Mul - z - ResultsControl - zMul - - - - Div - z - ResultsControl - zDiv - - - - Macro_GraphAdd - Add__FuncValue - Div - x - - - - Macro_GraphAdd - Add__z - Div - y - - - - Macro_GraphSub - Sub__z - Mul - y - - - - Macro_GraphSub - Gate - Mul - Gate - - - - Loop - DoLoop - EndLoop - DoLoop - - - - Loop - Index - EndLoop - Index - - - - Loop - Index - Add - x - - - - Loop - Index - ResultsControl - x - - - - Loop - Min - EndLoop - Min - - - - Loop - Max - EndLoop - Max - - - - Loop - Max - Add - y - - - - Loop - Max - ResultsControl - y - - - - Loop - Incr - EndLoop - Incr - - - - EndLoop - DoLoop - Loop - DoLoop - - - - ResultsControl - zDiv - EndLoop - zDiv - - - - ResultsControl - zMul - EndLoop - zMul - - - - ResultsControl - OK - EndLoop - OK - - - - - - GraphLoopMacroNodes - Sub__x - Sub - x - - 7 - 1.5 - - - - - GraphLoopMacroNodes - Loop__Index - Loop - Index - - 3 - 0 - - - - - GraphLoopMacroNodes - Loop__Min - Loop - Min - - 3 - 7 - - - - - GraphLoopMacroNodes - Loop__Max - Loop - Max - - 3 - 17 - - - - - GraphLoopMacroNodes - Loop__Incr - Loop - Incr - - 3 - 1 - - - - - GraphLoopMacroNodes - Loop__zDiv - Loop - zDiv - - 7 - 0 - - - - - GraphLoopMacroNodes - Loop__zMul - Loop - zMul - - 7 - 0 - - - - - GraphLoopMacroNodes - Loop__OK - Loop - OK - - 18 - - - - - - - - - - ? - ? - GraphAdd_1 - 1 - ? - - GraphAdd_1 - - - double - Add__x - - - double - Add__y - - - - - double - Add__FuncValue - - - double - Add__z - - - - - - 28/9/2005 - 16:2:26 - 9/2/2007 - 14:26:53 - 2.0 - ? - ? - ? - 0 - 0 - - - - - AddComponent - AddComponent - Add - 0 - ? - - Add - - - double - x - - - double - y - - - - - double - FuncValue - - - double - z - - - - - - 9/2/2007 - 14:26:53 - 9/2/2007 - 14:26:53 - 2.0 - ? - localhost/FactoryServer - Add from AddComponent - 55 - 61 - - - - - - - - - ? - ? - GraphSub_1 - 1 - ? - - GraphSub_1 - - - double - Sub__x - - - double - Sub__y - - - - - double - Sub__z - - - - - - 28/9/2005 - 16:4:7 - 9/2/2007 - 14:26:53 - 2.0 - ? - ? - ? - 0 - 0 - - - - - SubComponent - SubComponent - Sub - 0 - ? - - Sub - - - double - x - - - double - y - - - - - double - z - - - - - - 9/2/2007 - 14:26:53 - 9/2/2007 - 14:26:53 - 2.0 - ? - localhost/FactoryServer - Sub from SubComponent - 55 - 71 - - - - - - - diff --git a/Superv/Graphs/GraphLoopMacroNodesOutput.xml b/Superv/Graphs/GraphLoopMacroNodesOutput.xml deleted file mode 100644 index f667f35..0000000 --- a/Superv/Graphs/GraphLoopMacroNodesOutput.xml +++ /dev/null @@ -1,1656 +0,0 @@ - - - - - - - ? - ? - GraphLoopMacroNodesOutput - 1 - ? - - GraphLoopMacroNodesOutput - - - double - Sub__x - - - long - Loop__Index - - - long - Loop__Min - - - long - Loop__Max - - - long - Loop__Incr - - - double - Loop__zDiv - - - double - Loop__zMul - - - string - Loop__OK - - - long - Macro_GraphAddLoop__Init_1__Index - - - long - Macro_GraphAddLoop__Init_1__Min - - - long - Macro_GraphAddLoop__Init_1__Max - - - long - Macro_GraphAddLoop__Init_1__Incr - - - - - long - EndLoop__Index - - - long - EndLoop__Min - - - long - EndLoop__Max - - - long - EndLoop__Incr - - - double - EndLoop__zDiv - - - double - EndLoop__zMul - - - string - EndLoop__OK - - - double - ResultsControl__Div_z - - - double - ResultsControl__Mul_z - - - long - Macro_GraphAddLoop__EndInit_1__Index - - - long - Macro_GraphAddLoop__EndInit_1__Min - - - long - Macro_GraphAddLoop__EndInit_1__Max - - - long - Macro_GraphAddLoop__EndInit_1__Incr - - - double - Macro_GraphAddLoop__EndInit_1__zDiv - - - double - Macro_GraphAddLoop__EndInit_1__zMul - - - string - Macro_GraphAddLoop__EndInit_1__OK - - - double - Macro_GraphAddLoop__EndInit_1__x - - - double - Macro_GraphAddLoop__EndInit_1__y - - - - - - 11/3/2003 - 9:58:58 - 12/2/2007 - 18:3:29 - 1.04 - JR - ? - ? - 0 - 0 - - - - - AddComponent - AddComponent - Add - 0 - ? - - Add - - - double - x - - - double - y - - - - - double - FuncValue - - - double - z - - - - - - 12/2/2007 - 18:3:29 - 12/2/2007 - 18:3:29 - 1.04 - ? - FactoryServer - Add from AddComponent - 205 - 238 - - - SubComponent - SubComponent - Sub - 0 - ? - - Sub - - - double - x - - - double - y - - - - - double - z - - - - - - 12/2/2007 - 18:3:29 - 12/2/2007 - 18:3:29 - 1.04 - ? - FactoryServer - Sub from SubComponent - 394 - 146 - - - MulComponent - MulComponent - Mul - 0 - ? - - Mul - - - double - x - - - double - y - - - - - double - z - - - - - - 12/2/2007 - 18:3:29 - 12/2/2007 - 18:3:29 - 1.04 - ? - FactoryServer - Mul from MulComponent - 821 - 319 - - - DivComponent - DivComponent - Div - 0 - ? - - Div - - - double - x - - - double - y - - - - - double - z - - - - - - 12/2/2007 - 18:3:29 - 12/2/2007 - 18:3:29 - 1.04 - ? - FactoryServer - Div from DivComponent - 825 - 133 - - - ? - ? - Macro_GraphSub - 10 - GraphSub_1 - - GraphSub - - - double - Sub__x - - - double - Sub__y - - - - - double - Sub__z - - - - - - - ? - - - - 12/2/2007 - 18:3:29 - 12/2/2007 - 18:3:29 - 3.0 - ? - ? - Macro Node - 512 - 319 - - - ? - ? - Loop - 4 - EndLoop - - Loop - - - long - Index - - - long - Min - - - long - Max - - - long - Incr - - - double - zDiv - - - double - zMul - - - string - OK - - - - - long - Index - - - long - Min - - - long - Max - - - long - Incr - - - double - zDiv - - - double - zMul - - - string - OK - - - - - - - Init - - - - - - - - - - More - - - - - - - - - - Next - - - - - - - 12/2/2007 - 18:3:29 - 12/2/2007 - 18:3:29 - 3.0 - ? - ? - Compute Node - 5 - 265 - - - ? - ? - EndLoop - 5 - Loop - - EndLoop - - - long - Index - - - long - Min - - - long - Max - - - long - Incr - - - double - zDiv - - - double - zMul - - - string - OK - - - - - long - Index - - - long - Min - - - long - Max - - - long - Incr - - - double - zDiv - - - double - zMul - - - string - OK - - - - - - - EndLoop - - - - - - - - - 12/2/2007 - 18:3:29 - 12/2/2007 - 18:3:29 - 3.0 - ? - ? - Compute Node - 1354 - 156 - - - ? - ? - ResultsControl - 3 - ? - - ResultsControl - - - double - x - - - double - y - - - double - zDiv - - - double - zMul - - - - - double - zDiv - - - double - zMul - - - double - Div_z - - - double - Mul_z - - - string - OK - - - - - - - ResultsControl - - - - - - - - - - - - - - - - - 12/2/2007 - 18:3:29 - 12/2/2007 - 18:3:29 - 3.0 - ? - ? - Compute Node - 1102 - 196 - - - ? - ? - Macro_GraphAddLoop - 10 - GraphAddLoop - - GraphAddLoop - - - long - Init_1__Index - - - long - Init_1__Min - - - long - Init_1__Max - - - long - Init_1__Incr - - - double - Init_1__zDiv - - - double - Init_1__zMul - - - string - Init_1__OK - - - double - Init_1__x - - - double - Init_1__y - - - - - double - Add__FuncValue - - - double - Add__z - - - long - EndInit_1__Index - - - long - EndInit_1__Min - - - long - EndInit_1__Max - - - long - EndInit_1__Incr - - - double - EndInit_1__zDiv - - - double - EndInit_1__zMul - - - string - EndInit_1__OK - - - double - EndInit_1__x - - - double - EndInit_1__y - - - - - - - ? - - - - 12/2/2007 - 18:3:29 - 12/2/2007 - 18:3:29 - 3.0 - ? - ? - Macro Node - 628 - 14 - - - - - Add - FuncValue - Macro_GraphSub - Sub__x - - - - Add - FuncValue - Macro_GraphAddLoop - Init_1__y - - - - Add - z - Sub - y - - - - Add - z - Macro_GraphSub - Sub__y - - - - Sub - z - Mul - x - - - 767 - 389 - - - 767 - 297 - - - 592 - 297 - - - 592 - 217 - - - - - Sub - z - Macro_GraphAddLoop - Init_1__x - - - - Sub - z - Macro_GraphAddLoop - Init_1__zDiv - - - - Sub - z - Macro_GraphAddLoop - Init_1__zMul - - - - Sub - z - Macro_GraphAddLoop - Init_1__OK - - - - Mul - z - ResultsControl - zMul - - - - Div - z - ResultsControl - zDiv - - - - Macro_GraphSub - Sub__z - Mul - y - - - - Macro_GraphSub - Gate - Mul - Gate - - - - Loop - DoLoop - EndLoop - DoLoop - - - - Loop - Index - EndLoop - Index - - - - Loop - Index - Add - x - - - - Loop - Index - ResultsControl - x - - - - Loop - Min - EndLoop - Min - - - - Loop - Max - EndLoop - Max - - - - Loop - Max - Add - y - - - - Loop - Max - ResultsControl - y - - - - Loop - Incr - EndLoop - Incr - - - - EndLoop - DoLoop - Loop - DoLoop - - - - ResultsControl - zDiv - EndLoop - zDiv - - - - ResultsControl - zMul - EndLoop - zMul - - - - ResultsControl - OK - EndLoop - OK - - - - Macro_GraphAddLoop - Add__FuncValue - Div - x - - - - Macro_GraphAddLoop - Add__z - Div - y - - - - - - GraphLoopMacroNodesOutput - Sub__x - Sub - x - - 7 - 1.5 - - - - - GraphLoopMacroNodesOutput - Loop__Index - Loop - Index - - 3 - 0 - - - - - GraphLoopMacroNodesOutput - Loop__Min - Loop - Min - - 3 - 7 - - - - - GraphLoopMacroNodesOutput - Loop__Max - Loop - Max - - 3 - 17 - - - - - GraphLoopMacroNodesOutput - Loop__Incr - Loop - Incr - - 3 - 1 - - - - - GraphLoopMacroNodesOutput - Loop__zDiv - Loop - zDiv - - 7 - 0 - - - - - GraphLoopMacroNodesOutput - Loop__zMul - Loop - zMul - - 7 - 0 - - - - - GraphLoopMacroNodesOutput - Loop__OK - Loop - OK - - 18 - - - - - - GraphLoopMacroNodesOutput - Macro_GraphAddLoop__Init_1__Index - Macro_GraphAddLoop - Init_1__Index - - 3 - 0 - - - - - GraphLoopMacroNodesOutput - Macro_GraphAddLoop__Init_1__Min - Macro_GraphAddLoop - Init_1__Min - - 3 - 5 - - - - - GraphLoopMacroNodesOutput - Macro_GraphAddLoop__Init_1__Max - Macro_GraphAddLoop - Init_1__Max - - 3 - 11 - - - - - GraphLoopMacroNodesOutput - Macro_GraphAddLoop__Init_1__Incr - Macro_GraphAddLoop - Init_1__Incr - - 3 - 1 - - - - - - - - - ? - ? - GraphSub_1 - 1 - ? - - GraphSub_1 - - - double - Sub__x - - - double - Sub__y - - - - - double - Sub__z - - - - - - 28/9/2005 - 16:4:7 - 12/2/2007 - 18:3:29 - 2.0 - ? - ? - ? - 0 - 0 - - - - - SubComponent - SubComponent - Sub - 0 - ? - - Sub - - - double - x - - - double - y - - - - - double - z - - - - - - 12/2/2007 - 18:3:29 - 12/2/2007 - 18:3:29 - 2.0 - ? - localhost/FactoryServer - Sub from SubComponent - 55 - 71 - - - - - - - - - ? - ? - GraphAddLoop - 1 - ? - - GraphAddLoop - - - long - Init_1__Index - - - long - Init_1__Min - - - long - Init_1__Max - - - long - Init_1__Incr - - - double - Init_1__zDiv - - - double - Init_1__zMul - - - string - Init_1__OK - - - double - Init_1__x - - - double - Init_1__y - - - - - double - Add__FuncValue - - - double - Add__z - - - long - EndInit_1__Index - - - long - EndInit_1__Min - - - long - EndInit_1__Max - - - long - EndInit_1__Incr - - - double - EndInit_1__zDiv - - - double - EndInit_1__zMul - - - string - EndInit_1__OK - - - double - EndInit_1__x - - - double - EndInit_1__y - - - - - - 28/9/2005 - 16:2:26 - 12/2/2007 - 18:3:29 - 2.0 - ? - ? - ? - 0 - 0 - - - - - AddComponent - AddComponent - Add - 0 - ? - - Add - - - double - x - - - double - y - - - - - double - FuncValue - - - double - z - - - - - - 12/2/2007 - 18:3:29 - 12/2/2007 - 18:3:29 - 2.0 - ? - localhost/FactoryServer - Add from AddComponent - 248 - 247 - - - ? - ? - Init_1 - 4 - EndInit_1 - - Init_1 - - - long - Index - - - long - Min - - - long - Max - - - long - Incr - - - double - zDiv - - - double - zMul - - - string - OK - - - double - x - - - double - y - - - - - long - Index - - - long - Min - - - long - Max - - - long - Incr - - - double - zDiv - - - double - zMul - - - string - OK - - - double - x - - - double - y - - - - - - - Init_1 - - - - - - - - - - More_1 - - - - - - - - - - Next_1 - - - - - - - 12/2/2007 - 18:3:29 - 12/2/2007 - 18:3:29 - 3.0 - ? - ? - Compute Node - 37 - 147 - - - ? - ? - EndInit_1 - 5 - Init_1 - - EndInit_1 - - - long - Index - - - long - Min - - - long - Max - - - long - Incr - - - double - zDiv - - - double - zMul - - - string - OK - - - double - x - - - double - y - - - - - long - Index - - - long - Min - - - long - Max - - - long - Incr - - - double - zDiv - - - double - zMul - - - string - OK - - - double - x - - - double - y - - - - - - - EndInit_1 - - - - 12/2/2007 - 18:3:29 - 12/2/2007 - 18:3:29 - 3.0 - ? - ? - Compute Node - 460 - 146 - - - - - Add - Gate - EndInit_1 - Gate - - - - Init_1 - DoLoop - EndInit_1 - DoLoop - - - - Init_1 - Index - EndInit_1 - Index - - - - Init_1 - Min - EndInit_1 - Min - - - - Init_1 - Max - EndInit_1 - Max - - - - Init_1 - Incr - EndInit_1 - Incr - - - - Init_1 - zDiv - EndInit_1 - zDiv - - - - Init_1 - zMul - EndInit_1 - zMul - - - - Init_1 - OK - EndInit_1 - OK - - - - Init_1 - x - EndInit_1 - x - - - - Init_1 - x - Add - x - - - - Init_1 - y - EndInit_1 - y - - - - Init_1 - y - Add - y - - - - EndInit_1 - DoLoop - Init_1 - DoLoop - - - - - - - diff --git a/Superv/Graphs/GraphLoopMemory.xml b/Superv/Graphs/GraphLoopMemory.xml deleted file mode 100644 index 4db0132..0000000 --- a/Superv/Graphs/GraphLoopMemory.xml +++ /dev/null @@ -1,258 +0,0 @@ - - - - - - -? - ? - GraphLoopMemory_1 - 1 - ? - -GraphLoopMemory_1 - - -long - Init__Index - -long - Init__Min - -long - Init__Max - -long - Init__Incr - - -long - EndInit__Index - -long - EndInit__Min - -long - EndInit__Max - -long - EndInit__Incr - - - 24/3/2003 - 14:44:35 - 21/2/2005 - 11:43:50 - 1.04 - JR - ? - For solving of memory leaks - 0 - 0 - - -? - ? - Init - 4 - EndInit - -Init - - -long - Index - -long - Min - -long - Max - -long - Incr - - -long - Index - -long - Min - -long - Max - -long - Incr - - - -Init - - - - - - - -More - - - - - - - -Next - - - - 21/2/2005 - 11:43:50 - 21/2/2005 - 11:43:50 - 1.04 - ? - ? - Compute Node - 17 - 257 - -? - ? - EndInit - 5 - Init - -EndInit - - -long - Index - -long - Min - -long - Max - -long - Incr - - -long - Index - -long - Min - -long - Max - -long - Incr - - - -? - - 21/2/2005 - 11:43:50 - 21/2/2005 - 11:43:50 - 1.04 - ? - ? - Compute Node - 366 - 262 - - -Init - DoLoop - EndInit - DoLoop - - -Init - Index - EndInit - Index - - -Init - Min - EndInit - Min - - -Init - Max - EndInit - Max - - -Init - Incr - EndInit - Incr - - -EndInit - DoLoop - Init - DoLoop - - - -GraphLoopMemory_1 - Init__Index - Init - Index - -3 - 0 - - -GraphLoopMemory_1 - Init__Min - Init - Min - -3 - 5 - - -GraphLoopMemory_1 - Init__Max - Init - Max - -3 - 100000 - - -GraphLoopMemory_1 - Init__Incr - Init - Incr - -3 - 1 - diff --git a/Superv/Graphs/GraphLoopPyAddAddMemory.xml b/Superv/Graphs/GraphLoopPyAddAddMemory.xml deleted file mode 100644 index eda0acc..0000000 --- a/Superv/Graphs/GraphLoopPyAddAddMemory.xml +++ /dev/null @@ -1,365 +0,0 @@ - - - - - - -? - ? - GraphLoopPyAddAddMemory - 1 - ? - -GraphLoopPyAddAddMemory - - -long - Init__Index - -long - Init__Min - -long - Init__Max - -long - Init__Incr - - -long - EndInit__Index - -long - EndInit__Min - -long - EndInit__Max - -long - EndInit__Incr - -double - AddWithoutSleep__FuncValue - -double - AddWithoutSleep__z - -long - PyAdd__c - - - 24/3/2003 - 14:44:35 - 14/4/2005 - 16:55:59 - 1.04 - JR - ? - For solving of memory leaks - 0 - 0 - - -? - ? - Init - 4 - EndInit - -Init - - -long - Index - -long - Min - -long - Max - -long - Incr - - -long - Index - -long - Min - -long - Max - -long - Incr - - - -Init - - - - - - - -More - - - - - - - -Next - - - - 14/4/2005 - 16:43:41 - 14/4/2005 - 16:43:41 - 1.04 - ? - ? - Compute Node - 17 - 257 - -? - ? - EndInit - 5 - Init - -EndInit - - -long - Index - -long - Min - -long - Max - -long - Incr - - -long - Index - -long - Min - -long - Max - -long - Incr - - - -? - - 14/4/2005 - 16:43:41 - 14/4/2005 - 16:43:41 - 1.04 - ? - ? - Compute Node - 495 - 262 - -AddComponent - AddComponent - AddWithoutSleep - 0 - ? - -AddWithoutSleep - - -double - x - -double - y - - -double - FuncValue - -double - z - - - 14/4/2005 - 16:44:22 - 14/4/2005 - 16:44:22 - 2.0 - ? - localhost/FactoryServer - AddWithoutSleep from AddComponent - 255 - 352 - -? - ? - PyAdd - 3 - ? - -PyAdd - - -long - a - -long - b - - -long - a - -long - c - - - -PyAdd - - - 14/4/2005 - 16:54:44 - 14/4/2005 - 16:54:44 - 2.0 - ? - ? - Compute Node - 266 - 188 - - -Init - DoLoop - EndInit - DoLoop - - -Init - Index - AddWithoutSleep - x - - -Init - Index - PyAdd - a - - -Init - Min - EndInit - Min - - -Init - Max - EndInit - Max - - -Init - Max - AddWithoutSleep - y - - -Init - Max - PyAdd - b - - -Init - Incr - EndInit - Incr - - -EndInit - DoLoop - Init - DoLoop - - -AddWithoutSleep - Gate - EndInit - Gate - - -PyAdd - a - EndInit - Index - - - -GraphLoopPyAddAddMemory - Init__Index - Init - Index - -3 - 0 - - -GraphLoopPyAddAddMemory - Init__Min - Init - Min - -3 - 5 - - -GraphLoopPyAddAddMemory - Init__Max - Init - Max - -3 - 100000 - - -GraphLoopPyAddAddMemory - Init__Incr - Init - Incr - -3 - 1 - diff --git a/Superv/Graphs/GraphLoopSwitch.xml b/Superv/Graphs/GraphLoopSwitch.xml deleted file mode 100755 index 2f0c03d..0000000 --- a/Superv/Graphs/GraphLoopSwitch.xml +++ /dev/null @@ -1,403 +0,0 @@ - - - - - - -? - ? - GraphLoopSwitch - 1 - ? - -GraphLoopSwitch - - -long - InitLoop__Index - -long - InitLoop__Min - -long - InitLoop__Max - - -long - EndOfInitLoop__Index - -long - EndOfInitLoop__Min - -long - EndOfInitLoop__Max - - - 22/10/2003 - 10:36:39 - 8/3/2005 - 15:8:55 - 1.05 - JR - ? - ? - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - - -long - a - - - -IsOdd - - - - - - 8/3/2005 - 15:8:55 - 8/3/2005 - 15:8:55 - 1.05 - ? - ? - Python function - 397 - 1 - -? - ? - InitLoop - 4 - EndOfInitLoop - -InitLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -InitLoop - - - - - -? - - -? - - 8/3/2005 - 15:8:55 - 8/3/2005 - 15:8:55 - 1.05 - ? - ? - Compute Node - 10 - 108 - -? - ? - EndOfInitLoop - 5 - InitLoop - -EndOfInitLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -EndOfInitLoop - - - - - - - - 8/3/2005 - 15:8:55 - 8/3/2005 - 15:8:55 - 1.05 - ? - ? - Compute Node - 767 - 102 - -? - ? - Switch - 6 - EndSwitch - -Switch - - -long - a - - -long - Odd - -int - Even - -int - a - - - -Switch - - - - - - 8/3/2005 - 15:8:55 - 8/3/2005 - 15:8:55 - 1.05 - ? - ? - Compute Node - 194 - 109 - -? - ? - EndSwitch - 7 - Switch - -EndSwitch - - -long - a - -long - Even - - -long - a - - - -EndSwitch - - - - 8/3/2005 - 15:8:55 - 8/3/2005 - 15:8:55 - 1.05 - ? - ? - Compute Node - 587 - 103 - -? - ? - ValEven - 3 - ? - -ValEven - - -long - Even - - -long - Even - - - -ValEven - - - - - - 8/3/2005 - 15:8:55 - 8/3/2005 - 15:8:55 - 2.0 - ? - ? - Compute Node - 396 - 222 - - -IsOdd - a - EndSwitch - a - - -InitLoop - DoLoop - EndOfInitLoop - DoLoop - - -InitLoop - Index - Switch - a - - -InitLoop - Min - EndOfInitLoop - Min - - -InitLoop - Max - EndOfInitLoop - Max - - -EndOfInitLoop - DoLoop - InitLoop - DoLoop - - -Switch - Odd - IsOdd - Gate - - -Switch - Even - ValEven - Even - - -Switch - a - IsOdd - a - - -Switch - Default - EndSwitch - Default - - -EndSwitch - a - EndOfInitLoop - Index - - -ValEven - Even - EndSwitch - Even - - - -GraphLoopSwitch - InitLoop__Index - InitLoop - Index - -3 - 0 - - -GraphLoopSwitch - InitLoop__Min - InitLoop - Min - -3 - 5 - - -GraphLoopSwitch - InitLoop__Max - InitLoop - Max - -3 - 23 - diff --git a/Superv/Graphs/GraphLoopSwitchDefault.xml b/Superv/Graphs/GraphLoopSwitchDefault.xml deleted file mode 100644 index c261137..0000000 --- a/Superv/Graphs/GraphLoopSwitchDefault.xml +++ /dev/null @@ -1,359 +0,0 @@ - - - - - - -? - ? - GraphLoopSwitchDefault - 1 - ? - -GraphLoopSwitch_1_1 - - -long - InitLoop__Index - -long - InitLoop__Min - -long - InitLoop__Max - - -long - EndOfInitLoop__Index - -long - EndOfInitLoop__Min - -long - EndOfInitLoop__Max - -int - Switch__Even - - - 22/10/2003 - 10:36:39 - 9/2/2005 - 10:29:19 - 1.05 - JR - ? - ? - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - - -long - a - - - -IsOdd - - - - - - 9/2/2005 - 10:29:19 - 9/2/2005 - 10:29:19 - 1.05 - ? - ? - Python function - 397 - 1 - -? - ? - InitLoop - 4 - EndOfInitLoop - -InitLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -InitLoop - - - - - -? - - -? - - 9/2/2005 - 10:29:19 - 9/2/2005 - 10:29:19 - 1.05 - ? - ? - Compute Node - 10 - 108 - -? - ? - EndOfInitLoop - 5 - InitLoop - -EndOfInitLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -EndOfInitLoop - - - - - - - - 9/2/2005 - 10:29:19 - 9/2/2005 - 10:29:19 - 1.05 - ? - ? - Compute Node - 767 - 102 - -? - ? - Switch - 6 - EndSwitch - -Switch - - -long - a - - -long - Odd - -int - Even - -int - a - - - -Switch - - - - - - 9/2/2005 - 10:29:19 - 9/2/2005 - 10:29:19 - 1.05 - ? - ? - Compute Node - 194 - 109 - -? - ? - EndSwitch - 7 - Switch - -EndSwitch - - -long - a - - -long - a - - - -EndSwitch - - - - - 9/2/2005 - 10:29:19 - 9/2/2005 - 10:29:19 - 1.05 - ? - ? - Compute Node - 587 - 103 - - -IsOdd - a - EndSwitch - a - - -InitLoop - DoLoop - EndOfInitLoop - DoLoop - - -InitLoop - Index - Switch - a - - -InitLoop - Min - EndOfInitLoop - Min - - -InitLoop - Max - EndOfInitLoop - Max - - -EndOfInitLoop - DoLoop - InitLoop - DoLoop - - -Switch - Odd - IsOdd - Gate - - -Switch - a - IsOdd - a - - -Switch - Default - EndSwitch - Default - - -EndSwitch - a - EndOfInitLoop - Index - - - -GraphLoopSwitchDefault - InitLoop__Index - InitLoop - Index - -3 - 0 - - -GraphLoopSwitchDefault - InitLoop__Min - InitLoop - Min - -3 - 5 - - -GraphLoopSwitchDefault - InitLoop__Max - InitLoop - Max - -3 - 23 - diff --git a/Superv/Graphs/GraphLoopSwitchDefaultAborted.xml b/Superv/Graphs/GraphLoopSwitchDefaultAborted.xml deleted file mode 100644 index 523c815..0000000 --- a/Superv/Graphs/GraphLoopSwitchDefaultAborted.xml +++ /dev/null @@ -1,397 +0,0 @@ - - - - - - -? - ? - GraphLoopSwitchDefaultAborted - 1 - ? - -GraphLoopSwitch_1 - - -long - InitLoop__Index - -long - InitLoop__Min - -long - InitLoop__Max - - -long - EndOfInitLoop__Index - -long - EndOfInitLoop__Min - -long - EndOfInitLoop__Max - - - 22/10/2003 - 10:36:39 - 11/2/2005 - 11:46:10 - 1.05 - JR - ? - Default Ports are not connected and the Executor will detect a Default condition ==> ABORT - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - - -long - a - - - -IsOdd - - - - - - 11/2/2005 - 11:46:10 - 11/2/2005 - 11:46:10 - 1.05 - ? - ? - Python function - 397 - 1 - -? - ? - InitLoop - 4 - EndOfInitLoop - -InitLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -InitLoop - - - - - -? - - -? - - 11/2/2005 - 11:46:10 - 11/2/2005 - 11:46:10 - 1.05 - ? - ? - Compute Node - 10 - 108 - -? - ? - EndOfInitLoop - 5 - InitLoop - -EndOfInitLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -EndOfInitLoop - - - - - - - - 11/2/2005 - 11:46:10 - 11/2/2005 - 11:46:10 - 1.05 - ? - ? - Compute Node - 767 - 102 - -? - ? - Switch - 6 - EndSwitch - -Switch - - -long - a - - -long - Odd - -int - Even - -int - a - - - -Switch - - - - - - 11/2/2005 - 11:46:10 - 11/2/2005 - 11:46:10 - 1.05 - ? - ? - Compute Node - 194 - 109 - -? - ? - EndSwitch - 7 - Switch - -EndSwitch - - -long - a - -long - Even - - -long - a - - - -EndSwitch - - - - 11/2/2005 - 11:46:10 - 11/2/2005 - 11:46:10 - 1.05 - ? - ? - Compute Node - 587 - 103 - -? - ? - Vala - 3 - ? - -Vala - - -long - Even - - -long - Even - - - -ValEven - - - - - - 11/2/2005 - 11:46:10 - 11/2/2005 - 11:46:10 - 2.0 - ? - ? - Compute Node - 394 - 137 - - -IsOdd - a - EndSwitch - a - - -InitLoop - DoLoop - EndOfInitLoop - DoLoop - - -InitLoop - Index - Switch - a - - -InitLoop - Min - EndOfInitLoop - Min - - -InitLoop - Max - EndOfInitLoop - Max - - -EndOfInitLoop - DoLoop - InitLoop - DoLoop - - -Switch - Odd - IsOdd - Gate - - -Switch - Even - Vala - Even - - -Switch - a - IsOdd - a - - -EndSwitch - a - EndOfInitLoop - Index - - -Vala - Even - EndSwitch - Even - - - -GraphLoopSwitchDefaultAborted - InitLoop__Index - InitLoop - Index - -3 - 0 - - -GraphLoopSwitchDefaultAborted - InitLoop__Min - InitLoop - Min - -3 - 5 - - -GraphLoopSwitchDefaultAborted - InitLoop__Max - InitLoop - Max - -3 - 23 - diff --git a/Superv/Graphs/GraphLoopSwitchGateDefault.xml b/Superv/Graphs/GraphLoopSwitchGateDefault.xml deleted file mode 100644 index 823f7b4..0000000 --- a/Superv/Graphs/GraphLoopSwitchGateDefault.xml +++ /dev/null @@ -1,409 +0,0 @@ - - - - - - -? - ? - GraphLoopSwitchGateDefault - 1 - ? - -GraphLoopSwitchGateDefault - - -long - InitLoop__Index - -long - InitLoop__Min - -long - InitLoop__Max - - -long - EndOfInitLoop__Index - -long - EndOfInitLoop__Min - -long - EndOfInitLoop__Max - - - 22/10/2003 - 10:36:39 - 6/7/2005 - 16:30:40 - 1.05 - JR - ? - ? - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - - -long - a - - - -IsOdd - - - - - - 6/7/2005 - 16:27:18 - 6/7/2005 - 16:27:18 - 1.05 - ? - ? - Python function - 397 - 1 - -? - ? - InitLoop - 4 - EndOfInitLoop - -InitLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -InitLoop - - - - - -? - - -? - - 6/7/2005 - 16:27:18 - 6/7/2005 - 16:27:18 - 1.05 - ? - ? - Compute Node - 10 - 108 - -? - ? - EndOfInitLoop - 5 - InitLoop - -EndOfInitLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -EndOfInitLoop - - - - - - - - 6/7/2005 - 16:27:18 - 6/7/2005 - 16:27:18 - 1.05 - ? - ? - Compute Node - 767 - 102 - -? - ? - Switch - 6 - EndSwitch - -Switch - - -long - a - - -long - Odd - -int - Even - -int - a - - - -Switch - - - - - - 6/7/2005 - 16:27:18 - 6/7/2005 - 16:27:18 - 1.05 - ? - ? - Compute Node - 194 - 109 - -? - ? - EndSwitch - 7 - Switch - -EndSwitch - - -long - a - -long - Even - - -long - a - - - -EndSwitch - - - - 6/7/2005 - 16:27:18 - 6/7/2005 - 16:27:18 - 1.05 - ? - ? - Compute Node - 587 - 103 - -? - ? - ValEven - 3 - ? - -ValEven - - -long - Even - - -long - Even - - - -ValEven - - - - - - 6/7/2005 - 16:27:18 - 6/7/2005 - 16:27:18 - 2.0 - ? - ? - Compute Node - 396 - 222 - - -IsOdd - a - EndSwitch - a - - -IsOdd - Gate - EndSwitch - Default - - -InitLoop - DoLoop - EndOfInitLoop - DoLoop - - -InitLoop - Index - Switch - a - - -InitLoop - Min - EndOfInitLoop - Min - - -InitLoop - Max - EndOfInitLoop - Max - - -EndOfInitLoop - DoLoop - InitLoop - DoLoop - - -Switch - Odd - IsOdd - Gate - - -Switch - Even - ValEven - Even - - -Switch - a - IsOdd - a - - -Switch - Default - EndSwitch - Default - - -EndSwitch - a - EndOfInitLoop - Index - - -ValEven - Even - EndSwitch - Even - - - -GraphLoopSwitchGateDefault - InitLoop__Index - InitLoop - Index - -3 - 0 - - -GraphLoopSwitchGateDefault - InitLoop__Min - InitLoop - Min - -3 - 5 - - -GraphLoopSwitchGateDefault - InitLoop__Max - InitLoop - Max - -3 - 23 - diff --git a/Superv/Graphs/GraphLoopSwitchGatesDefaultNOTValid.xml b/Superv/Graphs/GraphLoopSwitchGatesDefaultNOTValid.xml deleted file mode 100644 index a9d37c1..0000000 --- a/Superv/Graphs/GraphLoopSwitchGatesDefaultNOTValid.xml +++ /dev/null @@ -1,415 +0,0 @@ - - - - - - -? - ? - GraphLoopSwitchGatesDefaultNOTValid - 1 - ? - -GraphLoopSwitchGatesDefault_1 - - -long - InitLoop__Index - -long - InitLoop__Min - -long - InitLoop__Max - - -long - EndOfInitLoop__Index - -long - EndOfInitLoop__Min - -long - EndOfInitLoop__Max - - - 22/10/2003 - 10:36:39 - 8/7/2005 - 10:51:30 - 1.05 - JR - ? - ? - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - - -long - a - - - -IsOdd - - - - - - 8/7/2005 - 10:51:30 - 8/7/2005 - 10:51:30 - 1.05 - ? - ? - Python function - 397 - 1 - -? - ? - InitLoop - 4 - EndOfInitLoop - -InitLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -InitLoop - - - - - -? - - -? - - 8/7/2005 - 10:51:30 - 8/7/2005 - 10:51:30 - 1.05 - ? - ? - Compute Node - 10 - 108 - -? - ? - EndOfInitLoop - 5 - InitLoop - -EndOfInitLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -EndOfInitLoop - - - - - - - - 8/7/2005 - 10:51:30 - 8/7/2005 - 10:51:30 - 1.05 - ? - ? - Compute Node - 767 - 102 - -? - ? - Switch - 6 - EndSwitch - -Switch - - -long - a - - -long - Odd - -int - Even - -int - a - - - -Switch - - - - - - 8/7/2005 - 10:51:30 - 8/7/2005 - 10:51:30 - 1.05 - ? - ? - Compute Node - 194 - 109 - -? - ? - EndSwitch - 7 - Switch - -EndSwitch - - -long - a - -long - Even - - -long - a - - - -EndSwitch - - - - 8/7/2005 - 10:51:30 - 8/7/2005 - 10:51:30 - 1.05 - ? - ? - Compute Node - 587 - 103 - -? - ? - ValEven - 3 - ? - -ValEven - - -long - Even - - -long - Even - - - -ValEven - - - - - - 8/7/2005 - 10:51:30 - 8/7/2005 - 10:51:30 - 2.0 - ? - ? - Compute Node - 396 - 222 - - -IsOdd - a - EndSwitch - a - - -IsOdd - Gate - EndSwitch - Default - - -InitLoop - DoLoop - EndOfInitLoop - DoLoop - - -InitLoop - Index - Switch - a - - -InitLoop - Min - EndOfInitLoop - Min - - -InitLoop - Max - EndOfInitLoop - Max - - -EndOfInitLoop - DoLoop - InitLoop - DoLoop - - -Switch - Odd - IsOdd - Gate - - -Switch - Even - ValEven - Even - - -Switch - a - IsOdd - a - - -Switch - Default - EndSwitch - Default - - -EndSwitch - a - EndOfInitLoop - Index - - -ValEven - Even - EndSwitch - Even - - -ValEven - Gate - EndSwitch - Default - - - -GraphLoopSwitchGatesDefaultNOTValid - InitLoop__Index - InitLoop - Index - -3 - 0 - - -GraphLoopSwitchGatesDefaultNOTValid - InitLoop__Min - InitLoop - Min - -3 - 5 - - -GraphLoopSwitchGatesDefaultNOTValid - InitLoop__Max - InitLoop - Max - -3 - 23 - diff --git a/Superv/Graphs/GraphLoopSwitchOddEven.xml b/Superv/Graphs/GraphLoopSwitchOddEven.xml deleted file mode 100644 index 63f62fb..0000000 --- a/Superv/Graphs/GraphLoopSwitchOddEven.xml +++ /dev/null @@ -1,400 +0,0 @@ - - - - - - -? - ? - GraphLoopSwitchOddEven - 1 - ? - -GraphLoopSwitchOddEven - - -long - InitLoop__Index - -long - InitLoop__Min - -long - InitLoop__Max - - -long - EndOfInitLoop__Index - -long - EndOfInitLoop__Min - -long - EndOfInitLoop__Max - - - 22/10/2003 - 10:36:39 - 14/2/2005 - 16:43:55 - 1.05 - JR - ? - ? - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - - -long - a - - - -IsOdd - - - - - - 14/2/2005 - 16:43:55 - 14/2/2005 - 16:43:55 - 1.05 - ? - ? - Python function - 397 - 1 - -? - ? - InitLoop - 4 - EndOfInitLoop - -InitLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -InitLoop - - - - - -? - - -? - - 14/2/2005 - 16:43:55 - 14/2/2005 - 16:43:55 - 1.05 - ? - ? - Compute Node - 10 - 108 - -? - ? - EndOfInitLoop - 5 - InitLoop - -EndOfInitLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -EndOfInitLoop - - - - - - - - 14/2/2005 - 16:43:55 - 14/2/2005 - 16:43:55 - 1.05 - ? - ? - Compute Node - 767 - 102 - -? - ? - Switch - 6 - EndSwitch - -Switch - - -long - a - - -long - Odd - -int - Even - -int - a - - - -Switch - - - - - - 14/2/2005 - 16:43:55 - 14/2/2005 - 16:43:55 - 1.05 - ? - ? - Compute Node - 194 - 109 - -? - ? - EndSwitch - 7 - Switch - -EndSwitch - - -long - a - - -long - a - - - -EndSwitch - - - - 14/2/2005 - 16:43:55 - 14/2/2005 - 16:43:55 - 1.05 - ? - ? - Compute Node - 587 - 103 - -? - ? - IsEven - 3 - ? - -IsEven - - -long - a - - -long - a - - - -IsEven - - - - - - 14/2/2005 - 16:43:55 - 14/2/2005 - 16:43:55 - 2.0 - ? - ? - Compute Node - 400 - 160 - - -IsOdd - a - EndSwitch - a - - -InitLoop - DoLoop - EndOfInitLoop - DoLoop - - -InitLoop - Index - Switch - a - - -InitLoop - Min - EndOfInitLoop - Min - - -InitLoop - Max - EndOfInitLoop - Max - - -EndOfInitLoop - DoLoop - InitLoop - DoLoop - - -Switch - Odd - IsOdd - Gate - - -Switch - Even - IsEven - Gate - - -Switch - a - IsOdd - a - - -Switch - a - IsEven - a - - -EndSwitch - a - EndOfInitLoop - Index - - -IsEven - a - EndSwitch - a - - - -GraphLoopSwitchOddEven - InitLoop__Index - InitLoop - Index - -3 - 0 - - -GraphLoopSwitchOddEven - InitLoop__Min - InitLoop - Min - -3 - 5 - - -GraphLoopSwitchOddEven - InitLoop__Max - InitLoop - Max - -3 - 23 - diff --git a/Superv/Graphs/GraphLoopSwitchOfSwitch.xml b/Superv/Graphs/GraphLoopSwitchOfSwitch.xml deleted file mode 100644 index 3afc3cd..0000000 --- a/Superv/Graphs/GraphLoopSwitchOfSwitch.xml +++ /dev/null @@ -1,619 +0,0 @@ - - - - - - -? - ? - GraphLoopSwitchOfSwitch - 1 - ? - -GraphLoopSwitchOfSwitch - - -long - LoopSwitch__Index - -long - LoopSwitch__Min - -long - LoopSwitch__Max - - -long - EndOfLoopSwitch__Index - -long - EndOfLoopSwitch__Min - -long - EndOfLoopSwitch__Max - - - 1/10/2003 - 17:23:54 - 8/7/2005 - 10:53:29 - 1.05 - JR - ? - ? - 0 - 0 - - -? - ? - LoopSwitch - 4 - EndOfLoopSwitch - -LoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -InitLoop - - - - -MoreLoop - - = Min : ]]> - - - - - -NextLoop - - - - 8/7/2005 - 10:53:29 - 8/7/2005 - 10:53:29 - 1.05 - ? - ? - Compute Node - 6 - 233 - -? - ? - EndOfLoopSwitch - 5 - LoopSwitch - -EndOfLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -? - - 8/7/2005 - 10:53:29 - 8/7/2005 - 10:53:29 - 1.05 - ? - ? - Compute Node - 1268 - 210 - -? - ? - IsEven - 3 - ? - -IsEven - - -long - a - - -long - a - - - -IsEven - - - - - - 8/7/2005 - 10:53:29 - 8/7/2005 - 10:53:29 - 2.0 - ? - ? - Compute Node - 437 - 520 - -? - ? - Switch - 6 - EndOfSwitch - -Switch - - -long - a - - -long - Odd - -int - a - -boolean - Even - - - -Switch - - - - - - - 8/7/2005 - 10:53:29 - 8/7/2005 - 10:53:29 - 2.0 - ? - ? - Compute Node - 201 - 233 - -? - ? - EndOfSwitch - 7 - Switch - -EndOfSwitch - - -long - a - - -long - a - - - -EndSwitch_1 - - 8/7/2005 - 10:53:29 - 8/7/2005 - 10:53:29 - 2.0 - ? - ? - Compute Node - 1075 - 210 - -? - ? - SwitchOdd - 6 - EndOfSwitchOdd - -SwitchOdd - - -long - a - - -boolean - POne - -boolean - PThree - -boolean - PFive - -long - n - - - -SwitchOdd - - - - - - - - - - - - - - 8/7/2005 - 10:53:29 - 8/7/2005 - 10:53:29 - 2.0 - ? - ? - Compute Node - 412 - 169 - -? - ? - EndOfSwitchOdd - 7 - SwitchOdd - -EndOfSwitchOdd - - -long - n - - -long - n - - - -EndSwitch - - 8/7/2005 - 10:53:29 - 8/7/2005 - 10:53:29 - 2.0 - ? - ? - Compute Node - 851 - 210 - -? - ? - PseudoPOne - 3 - ? - -PseudoPOne - - -long - POne - - -long - a - - - -PseudoPOne - - - - - 8/7/2005 - 10:53:29 - 8/7/2005 - 10:53:29 - 2.0 - ? - ? - Compute Node - 612 - 5 - -? - ? - PseudoPThree - 3 - ? - -PseudoPThree - - -long - PThree - - -long - a - - - -PseudoPThree_1 - - - - - 8/7/2005 - 10:53:29 - 8/7/2005 - 10:53:29 - 2.0 - ? - ? - Compute Node - 620 - 149 - -? - ? - PseudoPFive - 3 - ? - -PseudoPFive - - -long - PFive - - -long - a - - - -PseudoPFive - - - - - 8/7/2005 - 10:53:29 - 8/7/2005 - 10:53:29 - 2.0 - ? - ? - Compute Node - 625 - 343 - - -LoopSwitch - DoLoop - EndOfLoopSwitch - DoLoop - - -LoopSwitch - Index - Switch - a - - -LoopSwitch - Min - EndOfLoopSwitch - Min - - -LoopSwitch - Max - EndOfLoopSwitch - Max - - -EndOfLoopSwitch - DoLoop - LoopSwitch - DoLoop - - -IsEven - a - EndOfSwitch - a - - -719 - 591 - -Switch - Odd - SwitchOdd - Gate - - -Switch - a - IsEven - a - - -Switch - a - SwitchOdd - a - - -Switch - Even - IsEven - Gate - - -Switch - Default - EndOfSwitch - Default - - -1057 - 267 - -1079 - 669 - -383 - 666 - -EndOfSwitch - a - EndOfLoopSwitch - Index - - -SwitchOdd - POne - PseudoPOne - Gate - - -SwitchOdd - PThree - PseudoPThree - Gate - - -SwitchOdd - PFive - PseudoPFive - Gate - - -SwitchOdd - n - PseudoPOne - POne - - -SwitchOdd - n - PseudoPThree - PThree - - -SwitchOdd - n - PseudoPFive - PFive - - -SwitchOdd - Default - EndOfSwitchOdd - Default - - -EndOfSwitchOdd - n - EndOfSwitch - a - - -PseudoPOne - a - EndOfSwitchOdd - n - - -PseudoPThree - a - EndOfSwitchOdd - n - - -PseudoPFive - a - EndOfSwitchOdd - n - - - -GraphLoopSwitchOfSwitch - LoopSwitch__Index - LoopSwitch - Index - -3 - 0 - - -GraphLoopSwitchOfSwitch - LoopSwitch__Min - LoopSwitch - Min - -3 - -5 - - -GraphLoopSwitchOfSwitch - LoopSwitch__Max - LoopSwitch - Max - -3 - 17 - diff --git a/Superv/Graphs/GraphLoopSwitchOfSwitch1.xml b/Superv/Graphs/GraphLoopSwitchOfSwitch1.xml deleted file mode 100644 index 50faf11..0000000 --- a/Superv/Graphs/GraphLoopSwitchOfSwitch1.xml +++ /dev/null @@ -1,613 +0,0 @@ - - - - - - -? - ? - GraphLoopSwitchOfSwitch1 - 1 - ? - -GraphLoopSwitchOfSwitch1 - - -long - LoopSwitch__Index - -long - LoopSwitch__Min - -long - LoopSwitch__Max - - -long - EndOfLoopSwitch__Index - -long - EndOfLoopSwitch__Min - -long - EndOfLoopSwitch__Max - - - 1/10/2003 - 17:23:54 - 8/7/2005 - 10:56:45 - 1.05 - JR - ? - DefaultPorts of SwitchOdd and EndSwitchOdd are not connected but that link was not used - 0 - 0 - - -? - ? - LoopSwitch - 4 - EndOfLoopSwitch - -LoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -InitLoop - - - - -MoreLoop - - = Min : ]]> - - - - - -NextLoop - - - - 8/7/2005 - 10:56:45 - 8/7/2005 - 10:56:45 - 1.05 - ? - ? - Compute Node - 6 - 233 - -? - ? - EndOfLoopSwitch - 5 - LoopSwitch - -EndOfLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -? - - 8/7/2005 - 10:56:45 - 8/7/2005 - 10:56:45 - 1.05 - ? - ? - Compute Node - 1268 - 210 - -? - ? - IsEven - 3 - ? - -IsEven - - -long - a - - -long - a - - - -IsEven - - - - - - 8/7/2005 - 10:56:45 - 8/7/2005 - 10:56:45 - 2.0 - ? - ? - Compute Node - 437 - 520 - -? - ? - Switch - 6 - EndOfSwitch - -Switch - - -long - a - - -long - Odd - -int - a - -boolean - Even - - - -Switch - - - - - - - 8/7/2005 - 10:56:45 - 8/7/2005 - 10:56:45 - 2.0 - ? - ? - Compute Node - 201 - 233 - -? - ? - EndOfSwitch - 7 - Switch - -EndOfSwitch - - -long - a - - -long - a - - - -EndSwitch_1 - - 8/7/2005 - 10:56:45 - 8/7/2005 - 10:56:45 - 2.0 - ? - ? - Compute Node - 1075 - 210 - -? - ? - SwitchOdd - 6 - EndOfSwitchOdd - -SwitchOdd - - -long - a - - -boolean - POne - -boolean - PThree - -boolean - PFive - -long - n - - - -SwitchOdd - - - - - - - - - - - - - - 8/7/2005 - 10:56:45 - 8/7/2005 - 10:56:45 - 2.0 - ? - ? - Compute Node - 412 - 169 - -? - ? - EndOfSwitchOdd - 7 - SwitchOdd - -EndOfSwitchOdd - - -long - n - - -long - n - - - -EndSwitch - - 8/7/2005 - 10:56:45 - 8/7/2005 - 10:56:45 - 2.0 - ? - ? - Compute Node - 851 - 210 - -? - ? - PseudoPOne - 3 - ? - -PseudoPOne - - -long - POne - - -long - a - - - -PseudoPOne - - - - - 8/7/2005 - 10:56:45 - 8/7/2005 - 10:56:45 - 2.0 - ? - ? - Compute Node - 612 - 5 - -? - ? - PseudoPThree - 3 - ? - -PseudoPThree - - -long - PThree - - -long - a - - - -PseudoPThree_1 - - - - - 8/7/2005 - 10:56:45 - 8/7/2005 - 10:56:45 - 2.0 - ? - ? - Compute Node - 620 - 149 - -? - ? - PseudoPFive - 3 - ? - -PseudoPFive - - -long - PFive - - -long - a - - - -PseudoPFive - - - - - 8/7/2005 - 10:56:45 - 8/7/2005 - 10:56:45 - 2.0 - ? - ? - Compute Node - 625 - 343 - - -LoopSwitch - DoLoop - EndOfLoopSwitch - DoLoop - - -LoopSwitch - Index - Switch - a - - -LoopSwitch - Min - EndOfLoopSwitch - Min - - -LoopSwitch - Max - EndOfLoopSwitch - Max - - -EndOfLoopSwitch - DoLoop - LoopSwitch - DoLoop - - -IsEven - a - EndOfSwitch - a - - -719 - 591 - -Switch - Odd - SwitchOdd - Gate - - -Switch - a - IsEven - a - - -Switch - a - SwitchOdd - a - - -Switch - Even - IsEven - Gate - - -Switch - Default - EndOfSwitch - Default - - -1057 - 267 - -1079 - 669 - -383 - 666 - -EndOfSwitch - a - EndOfLoopSwitch - Index - - -SwitchOdd - POne - PseudoPOne - Gate - - -SwitchOdd - PThree - PseudoPThree - Gate - - -SwitchOdd - PFive - PseudoPFive - Gate - - -SwitchOdd - n - PseudoPOne - POne - - -SwitchOdd - n - PseudoPThree - PThree - - -SwitchOdd - n - PseudoPFive - PFive - - -EndOfSwitchOdd - n - EndOfSwitch - a - - -PseudoPOne - a - EndOfSwitchOdd - n - - -PseudoPThree - a - EndOfSwitchOdd - n - - -PseudoPFive - a - EndOfSwitchOdd - n - - - -GraphLoopSwitchOfSwitch1 - LoopSwitch__Index - LoopSwitch - Index - -3 - 0 - - -GraphLoopSwitchOfSwitch1 - LoopSwitch__Min - LoopSwitch - Min - -3 - -5 - - -GraphLoopSwitchOfSwitch1 - LoopSwitch__Max - LoopSwitch - Max - -3 - 17 - diff --git a/Superv/Graphs/GraphLoopSwitchOfSwitchAborted.xml b/Superv/Graphs/GraphLoopSwitchOfSwitchAborted.xml deleted file mode 100644 index 51a90c7..0000000 --- a/Superv/Graphs/GraphLoopSwitchOfSwitchAborted.xml +++ /dev/null @@ -1,598 +0,0 @@ - - - - - - -? - ? - GraphLoopSwitchOfSwitchAborted - 1 - ? - -GraphLoopSwitchOfSwitchAborted - - -long - LoopSwitch__Index - -long - LoopSwitch__Min - -long - LoopSwitch__Max - - -long - EndOfLoopSwitch__Index - -long - EndOfLoopSwitch__Min - -long - EndOfLoopSwitch__Max - - - 1/10/2003 - 17:23:54 - 8/7/2005 - 10:58:36 - 1.05 - JR - ? - DefaultPorts of SwitchOdd and EndSwitchOdd are not connected but that link was not used. DefaultPorts of Switch and EndSwitch are not linked ==> ABORT - 0 - 0 - - -? - ? - LoopSwitch - 4 - EndOfLoopSwitch - -LoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -InitLoop - - - - -MoreLoop - - = Min : ]]> - - - - - -NextLoop - - - - 8/7/2005 - 10:58:36 - 8/7/2005 - 10:58:36 - 1.05 - ? - ? - Compute Node - 6 - 233 - -? - ? - EndOfLoopSwitch - 5 - LoopSwitch - -EndOfLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -? - - 8/7/2005 - 10:58:36 - 8/7/2005 - 10:58:36 - 1.05 - ? - ? - Compute Node - 1268 - 210 - -? - ? - IsEven - 3 - ? - -IsEven - - -long - a - - -long - a - - - -IsEven - - - - - - 8/7/2005 - 10:58:36 - 8/7/2005 - 10:58:36 - 2.0 - ? - ? - Compute Node - 437 - 520 - -? - ? - Switch - 6 - EndOfSwitch - -Switch - - -long - a - - -long - Odd - -int - a - -boolean - Even - - - -Switch - - - - - - - 8/7/2005 - 10:58:36 - 8/7/2005 - 10:58:36 - 2.0 - ? - ? - Compute Node - 201 - 233 - -? - ? - EndOfSwitch - 7 - Switch - -EndOfSwitch - - -long - a - - -long - a - - - -EndSwitch_1 - - 8/7/2005 - 10:58:36 - 8/7/2005 - 10:58:36 - 2.0 - ? - ? - Compute Node - 1075 - 210 - -? - ? - SwitchOdd - 6 - EndOfSwitchOdd - -SwitchOdd - - -long - a - - -boolean - POne - -boolean - PThree - -boolean - PFive - -long - n - - - -SwitchOdd - - - - - - - - - - - - - - 8/7/2005 - 10:58:36 - 8/7/2005 - 10:58:36 - 2.0 - ? - ? - Compute Node - 412 - 169 - -? - ? - EndOfSwitchOdd - 7 - SwitchOdd - -EndOfSwitchOdd - - -long - n - - -long - n - - - -EndSwitch - - 8/7/2005 - 10:58:36 - 8/7/2005 - 10:58:36 - 2.0 - ? - ? - Compute Node - 851 - 210 - -? - ? - PseudoPOne - 3 - ? - -PseudoPOne - - -long - POne - - -long - a - - - -PseudoPOne - - - - - 8/7/2005 - 10:58:36 - 8/7/2005 - 10:58:36 - 2.0 - ? - ? - Compute Node - 612 - 5 - -? - ? - PseudoPThree - 3 - ? - -PseudoPThree - - -long - PThree - - -long - a - - - -PseudoPThree_1 - - - - - 8/7/2005 - 10:58:36 - 8/7/2005 - 10:58:36 - 2.0 - ? - ? - Compute Node - 620 - 149 - -? - ? - PseudoPFive - 3 - ? - -PseudoPFive - - -long - PFive - - -long - a - - - -PseudoPFive - - - - - 8/7/2005 - 10:58:36 - 8/7/2005 - 10:58:36 - 2.0 - ? - ? - Compute Node - 625 - 343 - - -LoopSwitch - DoLoop - EndOfLoopSwitch - DoLoop - - -LoopSwitch - Index - Switch - a - - -LoopSwitch - Min - EndOfLoopSwitch - Min - - -LoopSwitch - Max - EndOfLoopSwitch - Max - - -EndOfLoopSwitch - DoLoop - LoopSwitch - DoLoop - - -IsEven - a - EndOfSwitch - a - - -719 - 591 - -Switch - Odd - SwitchOdd - Gate - - -Switch - a - IsEven - a - - -Switch - a - SwitchOdd - a - - -Switch - Even - IsEven - Gate - - -EndOfSwitch - a - EndOfLoopSwitch - Index - - -SwitchOdd - POne - PseudoPOne - Gate - - -SwitchOdd - PThree - PseudoPThree - Gate - - -SwitchOdd - PFive - PseudoPFive - Gate - - -SwitchOdd - n - PseudoPOne - POne - - -SwitchOdd - n - PseudoPThree - PThree - - -SwitchOdd - n - PseudoPFive - PFive - - -EndOfSwitchOdd - n - EndOfSwitch - a - - -PseudoPOne - a - EndOfSwitchOdd - n - - -PseudoPThree - a - EndOfSwitchOdd - n - - -PseudoPFive - a - EndOfSwitchOdd - n - - - -GraphLoopSwitchOfSwitchAborted - LoopSwitch__Index - LoopSwitch - Index - -3 - 0 - - -GraphLoopSwitchOfSwitchAborted - LoopSwitch__Min - LoopSwitch - Min - -3 - -5 - - -GraphLoopSwitchOfSwitchAborted - LoopSwitch__Max - LoopSwitch - Max - -3 - 17 - diff --git a/Superv/Graphs/GraphLoopSwitchOfSwitchNOTValid.xml b/Superv/Graphs/GraphLoopSwitchOfSwitchNOTValid.xml deleted file mode 100644 index 4a2cf1b..0000000 --- a/Superv/Graphs/GraphLoopSwitchOfSwitchNOTValid.xml +++ /dev/null @@ -1,616 +0,0 @@ - - - - - - -? - ? - GraphLoopSwitchOfSwitchNOTValid - 1 - ? - -GraphLoopSwitchOfSwitchNOTValid - - -long - LoopSwitch__Index - -long - LoopSwitch__Min - -long - LoopSwitch__Max - - -long - EndOfLoopSwitch__Index - -long - EndOfLoopSwitch__Min - -long - EndOfLoopSwitch__Max - -long - EndOfSwitchOdd__n - - - 1/10/2003 - 17:23:54 - 20/1/2005 - 17:22:49 - 1.05 - JR - ? - ? - 0 - 0 - - -? - ? - LoopSwitch - 4 - EndOfLoopSwitch - -LoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -InitLoop - - - - -MoreLoop - - = Min : ]]> - - - - - -NextLoop - - - - 20/1/2005 - 17:13:50 - 20/1/2005 - 17:13:50 - 1.05 - ? - ? - Compute Node - 6 - 233 - -? - ? - EndOfLoopSwitch - 5 - LoopSwitch - -EndOfLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -? - - 20/1/2005 - 17:13:50 - 20/1/2005 - 17:13:50 - 1.05 - ? - ? - Compute Node - 1268 - 210 - -? - ? - IsEven - 3 - ? - -IsEven - - -long - a - - -long - a - - - -IsEven - - - - - - 20/1/2005 - 17:13:50 - 20/1/2005 - 17:13:50 - 2.0 - ? - ? - Compute Node - 437 - 520 - -? - ? - Switch - 6 - EndOfSwitch - -Switch - - -long - a - - -long - Odd - -int - a - -boolean - Even - - - -Switch - - - - - - - 20/1/2005 - 17:13:50 - 20/1/2005 - 17:13:50 - 2.0 - ? - ? - Compute Node - 201 - 233 - -? - ? - EndOfSwitch - 7 - Switch - -EndOfSwitch - - -long - a - - -long - a - - - -EndSwitch_1 - - 20/1/2005 - 17:13:50 - 20/1/2005 - 17:13:50 - 2.0 - ? - ? - Compute Node - 1075 - 210 - -? - ? - SwitchOdd - 6 - EndOfSwitchOdd - -SwitchOdd - - -long - a - - -boolean - POne - -boolean - PThree - -boolean - PFive - -long - n - - - -SwitchOdd - - - - - - - - - - - - - - 20/1/2005 - 17:13:50 - 20/1/2005 - 17:13:50 - 2.0 - ? - ? - Compute Node - 412 - 169 - -? - ? - EndOfSwitchOdd - 7 - SwitchOdd - -EndOfSwitchOdd - - -long - n - - -long - n - - - -EndSwitch - - 20/1/2005 - 17:13:50 - 20/1/2005 - 17:13:50 - 2.0 - ? - ? - Compute Node - 851 - 210 - -? - ? - PseudoPOne - 3 - ? - -PseudoPOne - - -long - POne - - -long - a - - - -PseudoPOne - - - - - 20/1/2005 - 17:13:50 - 20/1/2005 - 17:13:50 - 2.0 - ? - ? - Compute Node - 612 - 5 - -? - ? - PseudoPThree - 3 - ? - -PseudoPThree - - -long - PThree - - -long - a - - - -PseudoPThree_1 - - - - - 20/1/2005 - 17:13:50 - 20/1/2005 - 17:13:50 - 2.0 - ? - ? - Compute Node - 620 - 149 - -? - ? - PseudoPFive - 3 - ? - -PseudoPFive - - -long - PFive - - -long - a - - - -PseudoPFive - - - - - 20/1/2005 - 17:13:50 - 20/1/2005 - 17:13:50 - 2.0 - ? - ? - Compute Node - 625 - 343 - - -LoopSwitch - DoLoop - EndOfLoopSwitch - DoLoop - - -LoopSwitch - Index - Switch - a - - -LoopSwitch - Min - EndOfLoopSwitch - Min - - -LoopSwitch - Max - EndOfLoopSwitch - Max - - -EndOfLoopSwitch - DoLoop - LoopSwitch - DoLoop - - -IsEven - a - EndOfSwitch - a - - -719 - 591 - -Switch - Odd - SwitchOdd - Gate - - -Switch - a - IsEven - a - - -Switch - a - SwitchOdd - a - - -Switch - Even - IsEven - Gate - - -Switch - Default - EndOfSwitch - Default - - -1057 - 267 - -1079 - 669 - -383 - 666 - -EndOfSwitch - a - EndOfLoopSwitch - Index - - -SwitchOdd - POne - PseudoPOne - Gate - - -SwitchOdd - PThree - PseudoPThree - Gate - - -SwitchOdd - PFive - PseudoPFive - Gate - - -SwitchOdd - n - PseudoPOne - POne - - -SwitchOdd - n - PseudoPThree - PThree - - -SwitchOdd - n - PseudoPFive - PFive - - -SwitchOdd - Default - EndOfSwitchOdd - Default - - -PseudoPOne - a - EndOfSwitchOdd - n - - -PseudoPThree - a - EndOfSwitchOdd - n - - -PseudoPFive - a - EndOfSwitchOdd - n - - - -GraphLoopSwitchOfSwitchNOTValid - LoopSwitch__Index - LoopSwitch - Index - -3 - 0 - - -GraphLoopSwitchOfSwitchNOTValid - LoopSwitch__Min - LoopSwitch - Min - -3 - -5 - - -GraphLoopSwitchOfSwitchNOTValid - LoopSwitch__Max - LoopSwitch - Max - -3 - 65 - diff --git a/Superv/Graphs/GraphLoopSwitchs.xml b/Superv/Graphs/GraphLoopSwitchs.xml deleted file mode 100644 index 18dad92..0000000 --- a/Superv/Graphs/GraphLoopSwitchs.xml +++ /dev/null @@ -1,588 +0,0 @@ - - - - - - -? - ? - GraphLoopSwitchs_1 - 1 - ? - -GraphLoopSwitchs_1 - - -long - Loop__Index - -long - Loop__Min - -long - Loop__Max - - -int - SwitchOdd__Even - -long - EndOfLoop__Index - -long - EndOfLoop__Min - -long - EndOfLoop__Max - -long - SwitchEven__Odd - - - 14/10/2003 - 10:29:4 - 8/3/2005 - 15:15:0 - 1.05 - JR - ? - ? - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - - -long - a - -long - Odd - - - -IsOdd - - - - - - 8/3/2005 - 15:15:0 - 8/3/2005 - 15:15:0 - 1.05 - ? - ? - Python function - 476 - 50 - -? - ? - SwitchOdd - 6 - EndOfSwitchOdd - -SwitchOdd - - -long - a - - -long - Odd - -int - Even - -int - a - - - -Switch - - - - - 8/3/2005 - 15:15:0 - 8/3/2005 - 15:15:0 - 1.05 - ? - ? - Compute Node - 240 - 141 - -? - ? - EndOfSwitchOdd - 7 - SwitchOdd - -EndOfSwitchOdd - - -long - a - -boolean - Odd - - -long - a - -boolean - Odd - - - -EndOfSwitchOdd - - - - - 8/3/2005 - 15:15:0 - 8/3/2005 - 15:15:0 - 1.05 - ? - ? - Compute Node - 711 - 161 - -? - ? - IsEven - 3 - ? - -IsEven - - -long - a - - -long - a - -long - Even - - - -IsEven - - - - - - 8/3/2005 - 15:15:0 - 8/3/2005 - 15:15:0 - 1.05 - ? - ? - Python function - 482 - 292 - -? - ? - Loop - 4 - EndOfLoop - -Loop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -InitLoop - - - -MoreLoop - - - - - - - -NextLoop - - - - 8/3/2005 - 15:15:0 - 8/3/2005 - 15:15:0 - 1.05 - ? - ? - Compute Node - 12 - 276 - -? - ? - EndOfLoop - 5 - Loop - -EndOfLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -? - - 8/3/2005 - 15:15:0 - 8/3/2005 - 15:15:0 - 1.05 - ? - ? - Compute Node - 1102 - 282 - -? - ? - SwitchEven - 6 - EndOfSwitchEven - -SwitchEven - - -long - a - - -long - Odd - -int - Even - -int - a - - - -Switch - - - - - 8/3/2005 - 15:15:0 - 8/3/2005 - 15:15:0 - 1.05 - ? - ? - Compute Node - 235 - 386 - -? - ? - EndOfSwitchEven - 7 - SwitchEven - -EndOfSwitchEven - - -long - a - -boolean - Even - - -long - a - -boolean - Even - - - -EndOfSwitchEven - - - - - 8/3/2005 - 15:15:0 - 8/3/2005 - 15:15:0 - 1.05 - ? - ? - Compute Node - 718 - 361 - -? - ? - SwitchsCompare - 3 - ? - -SwitchsCompare - - -long - aOdd - -boolean - Odd - -long - aEven - -boolean - Even - - -long - a - - - -SwitchsCompare - - - - - 8/3/2005 - 15:15:0 - 8/3/2005 - 15:15:0 - 2.0 - ? - ? - Compute Node - 919 - 242 - - -IsOdd - a - EndOfSwitchOdd - a - - -IsOdd - Odd - EndOfSwitchOdd - Odd - - -SwitchOdd - Odd - IsOdd - Gate - - -SwitchOdd - a - IsOdd - a - - -SwitchOdd - Default - EndOfSwitchOdd - Default - - -EndOfSwitchOdd - a - SwitchsCompare - aOdd - - -EndOfSwitchOdd - Odd - SwitchsCompare - Odd - - -IsEven - a - EndOfSwitchEven - a - - -IsEven - Even - EndOfSwitchEven - Even - - -Loop - DoLoop - EndOfLoop - DoLoop - - -Loop - Index - SwitchEven - a - - -Loop - Index - SwitchOdd - a - - -Loop - Min - EndOfLoop - Min - - -Loop - Max - EndOfLoop - Max - - -EndOfLoop - DoLoop - Loop - DoLoop - - -SwitchEven - Even - IsEven - Gate - - -SwitchEven - a - IsEven - a - - -SwitchEven - Default - EndOfSwitchEven - Default - - -EndOfSwitchEven - a - SwitchsCompare - aEven - - -EndOfSwitchEven - Even - SwitchsCompare - Even - - -SwitchsCompare - a - EndOfLoop - Index - - - -GraphLoopSwitchs_1 - Loop__Index - Loop - Index - -3 - 0 - - -GraphLoopSwitchs_1 - Loop__Min - Loop - Min - -3 - 0 - - -GraphLoopSwitchs_1 - Loop__Max - Loop - Max - -3 - 23 - diff --git a/Superv/Graphs/GraphLoopSwitchsAborted.xml b/Superv/Graphs/GraphLoopSwitchsAborted.xml deleted file mode 100644 index cf332e7..0000000 --- a/Superv/Graphs/GraphLoopSwitchsAborted.xml +++ /dev/null @@ -1,576 +0,0 @@ - - - - - - -? - ? - GraphLoopSwitchsAborted - 1 - ? - -GraphLoopSwitchs_1 - - -long - Loop__Index - -long - Loop__Min - -long - Loop__Max - - -int - SwitchOdd__Even - -long - EndOfLoop__Index - -long - EndOfLoop__Min - -long - EndOfLoop__Max - -long - SwitchEven__Odd - - - 14/10/2003 - 10:29:4 - 14/2/2005 - 16:59:13 - 1.05 - JR - ? - Default links are missing - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - - -long - a - -long - Odd - - - -IsOdd - - - - - - 14/2/2005 - 16:59:13 - 14/2/2005 - 16:59:13 - 1.05 - ? - ? - Python function - 476 - 50 - -? - ? - SwitchOdd - 6 - EndOfSwitchOdd - -SwitchOdd - - -long - a - - -long - Odd - -int - Even - -int - a - - - -Switch - - - - - 14/2/2005 - 16:59:13 - 14/2/2005 - 16:59:13 - 1.05 - ? - ? - Compute Node - 240 - 141 - -? - ? - EndOfSwitchOdd - 7 - SwitchOdd - -EndOfSwitchOdd - - -long - a - -boolean - Odd - - -long - a - -boolean - Odd - - - -EndOfSwitchOdd - - - - - 14/2/2005 - 16:59:13 - 14/2/2005 - 16:59:13 - 1.05 - ? - ? - Compute Node - 711 - 161 - -? - ? - IsEven - 3 - ? - -IsEven - - -long - a - - -long - a - -long - Even - - - -IsEven - - - - - - 14/2/2005 - 16:59:13 - 14/2/2005 - 16:59:13 - 1.05 - ? - ? - Python function - 482 - 292 - -? - ? - Loop - 4 - EndOfLoop - -Loop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -InitLoop - - - -MoreLoop - - - - - - - -NextLoop - - - - 14/2/2005 - 16:59:13 - 14/2/2005 - 16:59:13 - 1.05 - ? - ? - Compute Node - 12 - 276 - -? - ? - EndOfLoop - 5 - Loop - -EndOfLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -? - - 14/2/2005 - 16:59:13 - 14/2/2005 - 16:59:13 - 1.05 - ? - ? - Compute Node - 1102 - 282 - -? - ? - SwitchEven - 6 - EndOfSwitchEven - -SwitchEven - - -long - a - - -long - Odd - -int - Even - -int - a - - - -Switch - - - - - 14/2/2005 - 16:59:13 - 14/2/2005 - 16:59:13 - 1.05 - ? - ? - Compute Node - 235 - 386 - -? - ? - EndOfSwitchEven - 7 - SwitchEven - -EndOfSwitchEven - - -long - a - -boolean - Even - - -long - a - -boolean - Even - - - -EndOfSwitchEven - - - - - 14/2/2005 - 16:59:13 - 14/2/2005 - 16:59:13 - 1.05 - ? - ? - Compute Node - 718 - 361 - -? - ? - SwitchsCompare - 3 - ? - -SwitchsCompare - - -long - aOdd - -boolean - Odd - -long - aEven - -boolean - Even - - -long - a - - - -SwitchsCompare - - - - - 14/2/2005 - 16:59:13 - 14/2/2005 - 16:59:13 - 2.0 - ? - ? - Compute Node - 919 - 242 - - -IsOdd - a - EndOfSwitchOdd - a - - -IsOdd - Odd - EndOfSwitchOdd - Odd - - -SwitchOdd - Odd - IsOdd - Gate - - -SwitchOdd - a - IsOdd - a - - -EndOfSwitchOdd - a - SwitchsCompare - aOdd - - -EndOfSwitchOdd - Odd - SwitchsCompare - Odd - - -IsEven - a - EndOfSwitchEven - a - - -IsEven - Even - EndOfSwitchEven - Even - - -Loop - DoLoop - EndOfLoop - DoLoop - - -Loop - Index - SwitchEven - a - - -Loop - Index - SwitchOdd - a - - -Loop - Min - EndOfLoop - Min - - -Loop - Max - EndOfLoop - Max - - -EndOfLoop - DoLoop - Loop - DoLoop - - -SwitchEven - Even - IsEven - Gate - - -SwitchEven - a - IsEven - a - - -EndOfSwitchEven - a - SwitchsCompare - aEven - - -EndOfSwitchEven - Even - SwitchsCompare - Even - - -SwitchsCompare - a - EndOfLoop - Index - - - -GraphLoopSwitchsAborted - Loop__Index - Loop - Index - -3 - 0 - - -GraphLoopSwitchsAborted - Loop__Min - Loop - Min - -3 - 0 - - -GraphLoopSwitchsAborted - Loop__Max - Loop - Max - -3 - 23 - diff --git a/Superv/Graphs/GraphLoopSwitchsBranches.xml b/Superv/Graphs/GraphLoopSwitchsBranches.xml deleted file mode 100644 index 501f98f..0000000 --- a/Superv/Graphs/GraphLoopSwitchsBranches.xml +++ /dev/null @@ -1,715 +0,0 @@ - - - - - - -? - ? - GraphLoopSwitchsBranches_1 - 1 - ? - -GraphLoopSwitchsBranches_1 - - -long - Loop__Index - -long - Loop__Min - -long - Loop__Max - - -long - EndOfLoop__Index - -long - EndOfLoop__Min - -long - EndOfLoop__Max - - - 14/10/2003 - 10:29:4 - 11/2/2005 - 17:27:23 - 1.05 - JR - ? - ? - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - - -long - a - -long - Odd - - - -IsOdd - - - - - - 11/2/2005 - 17:27:23 - 11/2/2005 - 17:27:23 - 1.05 - ? - ? - Python function - 476 - 2 - -? - ? - SwitchOdd - 6 - EndOfSwitchOdd - -SwitchOdd - - -long - a - - -long - Odd - -int - Even - -int - a - -string - OddEven - - - -SwitchOdd - - - - - - - - 11/2/2005 - 17:27:23 - 11/2/2005 - 17:27:23 - 1.05 - ? - ? - Compute Node - 241 - 208 - -? - ? - EndOfSwitchOdd - 7 - SwitchOdd - -EndOfSwitchOdd - - -long - a - -boolean - Odd - -long - Even - -boolean - OddEven - - -long - a - -boolean - Odd - - - -EndOfSwitchOdd - - - - - 11/2/2005 - 17:27:23 - 11/2/2005 - 17:27:23 - 1.05 - ? - ? - Compute Node - 715 - 208 - -? - ? - IsEven - 3 - ? - -IsEven - - -long - a - - -long - a - -long - Even - - - -IsEven - - - - - - 11/2/2005 - 17:27:23 - 11/2/2005 - 17:27:23 - 1.05 - ? - ? - Python function - 472 - 724 - -? - ? - Loop - 4 - EndOfLoop - -Loop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -InitLoop - - - -MoreLoop - - - - - - - -NextLoop - - - - 11/2/2005 - 17:27:23 - 11/2/2005 - 17:27:23 - 1.05 - ? - ? - Compute Node - 19 - 341 - -? - ? - EndOfLoop - 5 - Loop - -EndOfLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -? - - 11/2/2005 - 17:27:23 - 11/2/2005 - 17:27:23 - 1.05 - ? - ? - Compute Node - 1099 - 261 - -? - ? - SwitchEven - 6 - EndOfSwitchEven - -SwitchEven - - -long - a - - -long - Odd - -int - Even - -int - a - -string - OddEven - - - -SwitchEven - - - - - - - - 11/2/2005 - 17:27:23 - 11/2/2005 - 17:27:23 - 1.05 - ? - ? - Compute Node - 228 - 425 - -? - ? - EndOfSwitchEven - 7 - SwitchEven - -EndOfSwitchEven - - -long - a - -boolean - Even - -long - Odd - -string - OddEven - - -long - a - -boolean - Even - - - -EndOfSwitchEven - - - - - 11/2/2005 - 17:27:23 - 11/2/2005 - 17:27:23 - 1.05 - ? - ? - Compute Node - 722 - 425 - -? - ? - SwitchsCompare - 3 - ? - -SwitchsCompare - - -long - aOdd - -boolean - Odd - -long - aEven - -boolean - Even - -long - Index - - -long - Index - - - -SwitchsCompare - - - - - 11/2/2005 - 17:27:23 - 11/2/2005 - 17:27:23 - 2.0 - ? - ? - Compute Node - 918 - 221 - -? - ? - IsNotOdd - 3 - ? - -IsNotOdd - - -long - Even - - -long - Even - - - -IsNotOdd - - - - - 11/2/2005 - 17:27:23 - 11/2/2005 - 17:27:23 - 2.0 - ? - ? - Compute Node - 477 - 145 - -? - ? - IsNotEven - 3 - ? - -IsNotEven - - -long - Odd - - -long - Odd - - - -IsNotEven - - - - - 11/2/2005 - 17:27:23 - 11/2/2005 - 17:27:23 - 2.0 - ? - ? - Compute Node - 477 - 570 - - -IsOdd - a - EndOfSwitchOdd - a - - -IsOdd - Odd - EndOfSwitchOdd - Odd - - -SwitchOdd - Odd - IsOdd - Gate - - -SwitchOdd - Even - IsNotOdd - Even - - -SwitchOdd - a - IsOdd - a - - -SwitchOdd - OddEven - EndOfSwitchOdd - OddEven - - -SwitchOdd - Default - EndOfSwitchOdd - Default - - -EndOfSwitchOdd - a - SwitchsCompare - aOdd - - -EndOfSwitchOdd - Odd - SwitchsCompare - Odd - - -IsEven - a - EndOfSwitchEven - a - - -IsEven - Even - EndOfSwitchEven - Even - - -Loop - DoLoop - EndOfLoop - DoLoop - - -Loop - Index - SwitchOdd - a - - -Loop - Index - SwitchEven - a - - -Loop - Index - SwitchsCompare - Index - - -Loop - Min - EndOfLoop - Min - - -Loop - Max - EndOfLoop - Max - - -EndOfLoop - DoLoop - Loop - DoLoop - - -SwitchEven - Odd - IsNotEven - Odd - - -SwitchEven - Even - IsEven - Gate - - -SwitchEven - a - IsEven - a - - -SwitchEven - OddEven - EndOfSwitchEven - OddEven - - -SwitchEven - Default - EndOfSwitchEven - Default - - -EndOfSwitchEven - a - SwitchsCompare - aEven - - -EndOfSwitchEven - Even - SwitchsCompare - Even - - -SwitchsCompare - Index - EndOfLoop - Index - - -IsNotOdd - Even - EndOfSwitchOdd - Even - - -IsNotEven - Odd - EndOfSwitchEven - Odd - - - -GraphLoopSwitchsBranches_1 - Loop__Index - Loop - Index - -3 - 0 - - -GraphLoopSwitchsBranches_1 - Loop__Min - Loop - Min - -3 - 0 - - -GraphLoopSwitchsBranches_1 - Loop__Max - Loop - Max - -3 - 23 - diff --git a/Superv/Graphs/GraphLoopSwitchsBranchesDefaultAborted.xml b/Superv/Graphs/GraphLoopSwitchsBranchesDefaultAborted.xml deleted file mode 100644 index 4e16f77..0000000 --- a/Superv/Graphs/GraphLoopSwitchsBranchesDefaultAborted.xml +++ /dev/null @@ -1,837 +0,0 @@ - - - - - - -? - ? - GraphLoopSwitchsBranchesdefaultAborted - 1 - ? - -GraphLoopSwitchsBranchesdefault - - -long - Loop__Index - -long - Loop__Min - -long - Loop__Max - - -long - EndOfLoop__Index - -long - EndOfLoop__Min - -long - EndOfLoop__Max - - - 14/10/2003 - 10:29:4 - 14/2/2005 - 17:10:5 - 1.05 - JR - ? - ? - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - - -long - a - -long - Odd - - - -IsOdd - - - - - - 14/2/2005 - 17:10:5 - 14/2/2005 - 17:10:5 - 1.05 - ? - ? - Python function - 476 - 2 - -? - ? - SwitchOdd - 6 - EndOfSwitchOdd - -SwitchOdd - - -long - a - - -long - Odd - -int - Even - -long - default - -long - a - -string - OddEven - - - -SwitchOdd - - - - - - - - - - - 14/2/2005 - 17:10:5 - 14/2/2005 - 17:10:5 - 1.05 - ? - ? - Compute Node - 240 - 142 - -? - ? - EndOfSwitchOdd - 7 - SwitchOdd - -EndOfSwitchOdd - - -long - a - -boolean - Odd - -long - Even - -boolean - OddEven - - -long - a - -boolean - Odd - - - -EndOfSwitchOdd - - - - - 14/2/2005 - 17:10:5 - 14/2/2005 - 17:10:5 - 1.05 - ? - ? - Compute Node - 718 - 162 - -? - ? - IsEven - 3 - ? - -IsEven - - -long - a - - -long - a - -long - Even - - - -IsEven - - - - - - 14/2/2005 - 17:10:5 - 14/2/2005 - 17:10:5 - 1.05 - ? - ? - Python function - 472 - 724 - -? - ? - Loop - 4 - EndOfLoop - -Loop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -InitLoop - - - - -MoreLoop - - = Min : ]]> - - - - - -NextLoop - - - - 14/2/2005 - 17:10:5 - 14/2/2005 - 17:10:5 - 1.05 - ? - ? - Compute Node - 18 - 389 - -? - ? - EndOfLoop - 5 - Loop - -EndOfLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -? - - 14/2/2005 - 17:10:5 - 14/2/2005 - 17:10:5 - 1.05 - ? - ? - Compute Node - 1097 - 309 - -? - ? - SwitchEven - 6 - EndOfSwitchEven - -SwitchEven - - -long - a - - -long - Odd - -int - Even - -long - default - -int - a - -string - OddEven - - - -SwitchEven - - - - - - - - - - - - 14/2/2005 - 17:10:5 - 14/2/2005 - 17:10:5 - 1.05 - ? - ? - Compute Node - 230 - 457 - -? - ? - EndOfSwitchEven - 7 - SwitchEven - -EndOfSwitchEven - - -long - a - -boolean - Even - -long - Odd - -string - OddEven - - -long - a - -boolean - Even - - - -EndOfSwitchEven - - - - - 14/2/2005 - 17:10:5 - 14/2/2005 - 17:10:5 - 1.05 - ? - ? - Compute Node - 721 - 477 - -? - ? - SwitchsCompare - 3 - ? - -SwitchsCompare - - -long - aOdd - -boolean - Odd - -long - aEven - -boolean - Even - -long - Index - - -long - Index - - - -SwitchsCompare - - - - - 14/2/2005 - 17:10:5 - 14/2/2005 - 17:10:5 - 2.0 - ? - ? - Compute Node - 916 - 269 - -? - ? - IsNotOdd - 3 - ? - -IsNotOdd - - -long - Even - - -long - Even - - - -IsNotOdd - - - - - 14/2/2005 - 17:10:5 - 14/2/2005 - 17:10:5 - 2.0 - ? - ? - Compute Node - 477 - 137 - -? - ? - IsNotEven - 3 - ? - -IsNotEven - - -long - Odd - - -long - Odd - - - -IsNotEven - - - - - 14/2/2005 - 17:10:5 - 14/2/2005 - 17:10:5 - 2.0 - ? - ? - Compute Node - 475 - 601 - -? - ? - IsOdddefault - 3 - ? - -IsOdddefault - - -long - a - - -long - a - -long - Odd - - - -IsOdddefault - - - - - - 14/2/2005 - 17:10:5 - 14/2/2005 - 17:10:5 - 2.0 - ? - ? - Compute Node - 477 - 285 - -? - ? - IsEvendefault - 3 - ? - -IsEvendefault - - -long - a - - -long - a - -long - Even - - - -IsEvendefault - - - - - - 14/2/2005 - 17:10:5 - 14/2/2005 - 17:10:5 - 2.0 - ? - ? - Compute Node - 478 - 434 - - -IsOdd - a - EndOfSwitchOdd - a - - -IsOdd - Odd - EndOfSwitchOdd - Odd - - -SwitchOdd - Odd - IsOdd - Gate - - -SwitchOdd - Even - IsNotOdd - Even - - -SwitchOdd - default - IsOdddefault - Gate - - -SwitchOdd - a - IsOdddefault - a - - -SwitchOdd - a - IsOdd - a - - -SwitchOdd - OddEven - EndOfSwitchOdd - OddEven - - -EndOfSwitchOdd - a - SwitchsCompare - aOdd - - -EndOfSwitchOdd - Odd - SwitchsCompare - Odd - - -IsEven - a - EndOfSwitchEven - a - - -IsEven - Even - EndOfSwitchEven - Even - - -Loop - DoLoop - EndOfLoop - DoLoop - - -Loop - Index - SwitchsCompare - Index - - -Loop - Index - SwitchOdd - a - - -Loop - Index - SwitchEven - a - - -Loop - Min - EndOfLoop - Min - - -Loop - Max - EndOfLoop - Max - - -EndOfLoop - DoLoop - Loop - DoLoop - - -SwitchEven - Odd - IsNotEven - Odd - - -SwitchEven - Even - IsEven - Gate - - -SwitchEven - default - IsEvendefault - Gate - - -SwitchEven - a - IsEven - a - - -SwitchEven - a - IsEvendefault - a - - -SwitchEven - OddEven - EndOfSwitchEven - OddEven - - -EndOfSwitchEven - a - SwitchsCompare - aEven - - -EndOfSwitchEven - Even - SwitchsCompare - Even - - -SwitchsCompare - Index - EndOfLoop - Index - - -IsNotOdd - Even - EndOfSwitchOdd - Even - - -IsNotEven - Odd - EndOfSwitchEven - Odd - - -IsOdddefault - a - EndOfSwitchOdd - a - - -IsOdddefault - Odd - EndOfSwitchOdd - Odd - - -IsEvendefault - a - EndOfSwitchEven - a - - -IsEvendefault - Even - EndOfSwitchEven - Even - - - -GraphLoopSwitchsBranchesdefaultAborted - Loop__Index - Loop - Index - -3 - 0 - - -GraphLoopSwitchsBranchesdefaultAborted - Loop__Min - Loop - Min - -3 - -5 - - -GraphLoopSwitchsBranchesdefaultAborted - Loop__Max - Loop - Max - -3 - 11 - diff --git a/Superv/Graphs/GraphLoopSwitchsBranchesdefault.xml b/Superv/Graphs/GraphLoopSwitchsBranchesdefault.xml deleted file mode 100644 index 236ab67..0000000 --- a/Superv/Graphs/GraphLoopSwitchsBranchesdefault.xml +++ /dev/null @@ -1,849 +0,0 @@ - - - - - - -? - ? - GraphLoopSwitchsBranchesdefault - 1 - ? - -GraphLoopSwitchsBranchesdefault - - -long - Loop__Index - -long - Loop__Min - -long - Loop__Max - - -long - EndOfLoop__Index - -long - EndOfLoop__Min - -long - EndOfLoop__Max - - - 14/10/2003 - 10:29:4 - 11/2/2005 - 17:25:28 - 1.05 - JR - ? - ? - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - - -long - a - -long - Odd - - - -IsOdd - - - - - - 11/2/2005 - 17:9:54 - 11/2/2005 - 17:9:54 - 1.05 - ? - ? - Python function - 476 - 2 - -? - ? - SwitchOdd - 6 - EndOfSwitchOdd - -SwitchOdd - - -long - a - - -long - Odd - -int - Even - -long - default - -long - a - -string - OddEven - - - -SwitchOdd - - - - - - - - - - - 11/2/2005 - 17:9:54 - 11/2/2005 - 17:9:54 - 1.05 - ? - ? - Compute Node - 240 - 142 - -? - ? - EndOfSwitchOdd - 7 - SwitchOdd - -EndOfSwitchOdd - - -long - a - -boolean - Odd - -long - Even - -boolean - OddEven - - -long - a - -boolean - Odd - - - -EndOfSwitchOdd - - - - - 11/2/2005 - 17:9:54 - 11/2/2005 - 17:9:54 - 1.05 - ? - ? - Compute Node - 718 - 162 - -? - ? - IsEven - 3 - ? - -IsEven - - -long - a - - -long - a - -long - Even - - - -IsEven - - - - - - 11/2/2005 - 17:9:54 - 11/2/2005 - 17:9:54 - 1.05 - ? - ? - Python function - 472 - 724 - -? - ? - Loop - 4 - EndOfLoop - -Loop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -InitLoop - - - - -MoreLoop - - = Min : ]]> - - - - - -NextLoop - - - - 11/2/2005 - 17:9:54 - 11/2/2005 - 17:9:54 - 1.05 - ? - ? - Compute Node - 18 - 389 - -? - ? - EndOfLoop - 5 - Loop - -EndOfLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -? - - 11/2/2005 - 17:9:54 - 11/2/2005 - 17:9:54 - 1.05 - ? - ? - Compute Node - 1097 - 309 - -? - ? - SwitchEven - 6 - EndOfSwitchEven - -SwitchEven - - -long - a - - -long - Odd - -int - Even - -long - default - -int - a - -string - OddEven - - - -SwitchEven - - - - - - - - - - - - 11/2/2005 - 17:9:54 - 11/2/2005 - 17:9:54 - 1.05 - ? - ? - Compute Node - 230 - 457 - -? - ? - EndOfSwitchEven - 7 - SwitchEven - -EndOfSwitchEven - - -long - a - -boolean - Even - -long - Odd - -string - OddEven - - -long - a - -boolean - Even - - - -EndOfSwitchEven - - - - - 11/2/2005 - 17:9:54 - 11/2/2005 - 17:9:54 - 1.05 - ? - ? - Compute Node - 721 - 477 - -? - ? - SwitchsCompare - 3 - ? - -SwitchsCompare - - -long - aOdd - -boolean - Odd - -long - aEven - -boolean - Even - -long - Index - - -long - Index - - - -SwitchsCompare - - - - - 11/2/2005 - 17:9:54 - 11/2/2005 - 17:9:54 - 2.0 - ? - ? - Compute Node - 916 - 269 - -? - ? - IsNotOdd - 3 - ? - -IsNotOdd - - -long - Even - - -long - Even - - - -IsNotOdd - - - - - 11/2/2005 - 17:9:54 - 11/2/2005 - 17:9:54 - 2.0 - ? - ? - Compute Node - 477 - 137 - -? - ? - IsNotEven - 3 - ? - -IsNotEven - - -long - Odd - - -long - Odd - - - -IsNotEven - - - - - 11/2/2005 - 17:9:54 - 11/2/2005 - 17:9:54 - 2.0 - ? - ? - Compute Node - 475 - 601 - -? - ? - IsOdddefault - 3 - ? - -IsOdddefault - - -long - a - - -long - a - -long - Odd - - - -IsOdddefault - - - - - - 11/2/2005 - 17:16:6 - 11/2/2005 - 17:16:6 - 2.0 - ? - ? - Compute Node - 477 - 285 - -? - ? - IsEvendefault - 3 - ? - -IsOdddefault_1 - - -long - a - - -long - a - -long - Even - - - -IsEvendefault - - - - - - 11/2/2005 - 17:23:32 - 11/2/2005 - 17:23:32 - 2.0 - ? - ? - Compute Node - 478 - 434 - - -IsOdd - a - EndOfSwitchOdd - a - - -IsOdd - Odd - EndOfSwitchOdd - Odd - - -SwitchOdd - Odd - IsOdd - Gate - - -SwitchOdd - Even - IsNotOdd - Even - - -SwitchOdd - default - IsOdddefault - Gate - - -SwitchOdd - a - IsOdddefault - a - - -SwitchOdd - a - IsOdd - a - - -SwitchOdd - OddEven - EndOfSwitchOdd - OddEven - - -SwitchOdd - Default - EndOfSwitchOdd - Default - - -EndOfSwitchOdd - a - SwitchsCompare - aOdd - - -EndOfSwitchOdd - Odd - SwitchsCompare - Odd - - -IsEven - a - EndOfSwitchEven - a - - -IsEven - Even - EndOfSwitchEven - Even - - -Loop - DoLoop - EndOfLoop - DoLoop - - -Loop - Index - SwitchsCompare - Index - - -Loop - Index - SwitchOdd - a - - -Loop - Index - SwitchEven - a - - -Loop - Min - EndOfLoop - Min - - -Loop - Max - EndOfLoop - Max - - -EndOfLoop - DoLoop - Loop - DoLoop - - -SwitchEven - Odd - IsNotEven - Odd - - -SwitchEven - Even - IsEven - Gate - - -SwitchEven - default - IsEvendefault - Gate - - -SwitchEven - a - IsEven - a - - -SwitchEven - a - IsEvendefault - a - - -SwitchEven - OddEven - EndOfSwitchEven - OddEven - - -SwitchEven - Default - EndOfSwitchEven - Default - - -EndOfSwitchEven - a - SwitchsCompare - aEven - - -EndOfSwitchEven - Even - SwitchsCompare - Even - - -SwitchsCompare - Index - EndOfLoop - Index - - -IsNotOdd - Even - EndOfSwitchOdd - Even - - -IsNotEven - Odd - EndOfSwitchEven - Odd - - -IsOdddefault - a - EndOfSwitchOdd - a - - -IsOdddefault - Odd - EndOfSwitchOdd - Odd - - -IsEvendefault - a - EndOfSwitchEven - a - - -IsEvendefault - Even - EndOfSwitchEven - Even - - - -GraphLoopSwitchsBranchesdefault - Loop__Index - Loop - Index - -3 - 0 - - -GraphLoopSwitchsBranchesdefault - Loop__Min - Loop - Min - -3 - -5 - - -GraphLoopSwitchsBranchesdefault - Loop__Max - Loop - Max - -3 - 23 - diff --git a/Superv/Graphs/GraphLoopSwitchsNOTValid.xml b/Superv/Graphs/GraphLoopSwitchsNOTValid.xml deleted file mode 100644 index 73d35e9..0000000 --- a/Superv/Graphs/GraphLoopSwitchsNOTValid.xml +++ /dev/null @@ -1,582 +0,0 @@ - - - - - - -? - ? - GraphLoopSwitchsNOTValid - 1 - ? - -GraphLoopSwitchsNOTValid - - -long - Loop__Index - -long - Loop__Min - -long - Loop__Max - -boolean - EndOfSwitchEven__Even - - -int - SwitchOdd__Even - -long - EndOfLoop__Index - -long - EndOfLoop__Min - -long - EndOfLoop__Max - - - 14/10/2003 - 10:29:4 - 8/2/2005 - 11:26:57 - 1.05 - JR - ? - ? - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - - -long - a - - - -IsOdd - - - - - - 8/2/2005 - 11:26:56 - 8/2/2005 - 11:26:56 - 1.05 - ? - ? - Python function - 476 - 50 - -? - ? - SwitchOdd - 6 - EndOfSwitchOdd - -SwitchOdd - - -long - a - - -long - Odd - -int - Even - -int - a - - - -Switch - - - - - - 8/2/2005 - 11:26:56 - 8/2/2005 - 11:26:56 - 1.05 - ? - ? - Compute Node - 240 - 141 - -? - ? - EndOfSwitchOdd - 7 - SwitchOdd - -EndOfSwitchOdd - - -long - a - -boolean - Odd - - -long - a - -boolean - Odd - - - -? - - 8/2/2005 - 11:26:56 - 8/2/2005 - 11:26:56 - 1.05 - ? - ? - Compute Node - 711 - 161 - -? - ? - IsEven - 3 - ? - -IsEven - - -long - a - - -long - a - - - -IsEven - - - - - - 8/2/2005 - 11:26:56 - 8/2/2005 - 11:26:56 - 1.05 - ? - ? - Python function - 479 - 311 - -? - ? - Loop - 4 - EndOfLoop - -Loop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -InitLoop - - - -MoreLoop - - - - - - - -NextLoop - - - - 8/2/2005 - 11:26:56 - 8/2/2005 - 11:26:56 - 1.05 - ? - ? - Compute Node - 12 - 276 - -? - ? - EndOfLoop - 5 - Loop - -EndOfLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -? - - 8/2/2005 - 11:26:56 - 8/2/2005 - 11:26:56 - 1.05 - ? - ? - Compute Node - 1102 - 282 - -? - ? - SwitchEven - 6 - EndOfSwitchEven - -SwitchEven - - -long - a - - -long - Odd - -int - Even - -int - a - - - -Switch - - - - - - 8/2/2005 - 11:26:56 - 8/2/2005 - 11:26:56 - 1.05 - ? - ? - Compute Node - 235 - 386 - -? - ? - EndOfSwitchEven - 7 - SwitchEven - -EndOfSwitchEven - - -long - a - -boolean - Even - - -long - a - -boolean - Even - - - -? - - 8/2/2005 - 11:26:56 - 8/2/2005 - 11:26:56 - 1.05 - ? - ? - Compute Node - 718 - 361 - -? - ? - SwitchsCompare - 3 - ? - -SwitchsCompare - - -long - aOdd - -boolean - Odd - -long - aEven - -boolean - Even - - -long - a - - - -SwitchsCompare - - - 8/2/2005 - 11:26:56 - 8/2/2005 - 11:26:56 - 2.0 - ? - ? - Compute Node - 919 - 242 - - -IsOdd - a - EndOfSwitchOdd - a - - -SwitchOdd - Odd - IsOdd - Gate - - -SwitchOdd - Odd - EndOfSwitchOdd - Odd - - -SwitchOdd - a - IsOdd - a - - -443 - 121 - -443 - 212 - -SwitchOdd - Default - EndOfSwitchOdd - Default - - -EndOfSwitchOdd - a - SwitchsCompare - aOdd - - -EndOfSwitchOdd - Odd - SwitchsCompare - Odd - - -IsEven - a - EndOfSwitchEven - a - - -Loop - DoLoop - EndOfLoop - DoLoop - - -Loop - Index - SwitchEven - a - - -Loop - Index - SwitchOdd - a - - -Loop - Min - EndOfLoop - Min - - -Loop - Max - EndOfLoop - Max - - -EndOfLoop - DoLoop - Loop - DoLoop - - -SwitchEven - Odd - IsEven - Gate - - -SwitchEven - Even - EndOfSwitchEven - Default - - -SwitchEven - a - IsEven - a - - -434 - 382 - -434 - 457 - -EndOfSwitchEven - a - SwitchsCompare - aEven - - -EndOfSwitchEven - Even - SwitchsCompare - Even - - -SwitchsCompare - a - EndOfLoop - Index - - - -GraphLoopSwitchsNOTValid - Loop__Index - Loop - Index - -3 - 0 - - -GraphLoopSwitchsNOTValid - Loop__Min - Loop - Min - -3 - 0 - - -GraphLoopSwitchsNOTValid - Loop__Max - Loop - Max - -3 - 100 - diff --git a/Superv/Graphs/GraphLoopTwoBranches.xml b/Superv/Graphs/GraphLoopTwoBranches.xml deleted file mode 100644 index fbee2cb..0000000 --- a/Superv/Graphs/GraphLoopTwoBranches.xml +++ /dev/null @@ -1,790 +0,0 @@ - - - - - - -? - ? - GraphLoopTwoBranches_1 - 1 - ? - -GraphLoopTwoBranches_1 - - -long - Loop__Index - -long - Loop__Min - -long - Loop__Max - - -boolean - EndOfSwitchOdd__Odd - -long - EndOfLoop__Index - -long - EndOfLoop__Min - -long - EndOfLoop__Max - -long - EndOfSwitchEven__a - -boolean - EndOfSwitchEven__Even - - - 4/7/2005 - 15:59:20 - 4/7/2005 - 17:43:34 - 2.0 - ? - ? - ? - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - - -long - a - -long - Odd - - - -IsOdd - - - - - - 4/7/2005 - 17:38:58 - 4/7/2005 - 17:38:58 - 1.05 - ? - ? - Python function - 476 - 2 - -? - ? - SwitchOdd - 6 - EndOfSwitchOdd - -SwitchOdd - - -long - a - - -long - Odd - -int - Even - -long - default - -long - a - -string - OddEven - - - -SwitchOdd - - - - - - - - - - - 4/7/2005 - 17:38:58 - 4/7/2005 - 17:38:58 - 1.05 - ? - ? - Compute Node - 240 - 142 - -? - ? - EndOfSwitchOdd - 7 - SwitchOdd - -EndOfSwitchOdd - - -long - a - -boolean - Odd - -long - Even - -boolean - OddEven - - -long - a - -boolean - Odd - - - -EndOfSwitchOdd - - - - - 4/7/2005 - 17:38:58 - 4/7/2005 - 17:38:58 - 1.05 - ? - ? - Compute Node - 718 - 162 - -? - ? - IsEven - 3 - ? - -IsEven - - -long - a - - -long - a - -long - Even - - - -IsEven - - - - - - 4/7/2005 - 17:38:58 - 4/7/2005 - 17:38:58 - 1.05 - ? - ? - Python function - 472 - 724 - -? - ? - Loop - 4 - EndOfLoop - -Loop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -InitLoop - - - - -MoreLoop - - = Min : ]]> - - - - - -NextLoop - - - - 4/7/2005 - 17:38:58 - 4/7/2005 - 17:38:58 - 1.05 - ? - ? - Compute Node - 18 - 389 - -? - ? - EndOfLoop - 5 - Loop - -EndOfLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -? - - 4/7/2005 - 17:38:58 - 4/7/2005 - 17:38:58 - 1.05 - ? - ? - Compute Node - 1097 - 309 - -? - ? - SwitchEven - 6 - EndOfSwitchEven - -SwitchEven - - -long - a - - -long - Odd - -int - Even - -long - default - -int - a - -string - OddEven - - - -SwitchEven - - - - - - - - - - - - 4/7/2005 - 17:38:58 - 4/7/2005 - 17:38:58 - 1.05 - ? - ? - Compute Node - 230 - 457 - -? - ? - EndOfSwitchEven - 7 - SwitchEven - -EndOfSwitchEven - - -long - a - -boolean - Even - -long - Odd - -string - OddEven - - -long - a - -boolean - Even - - - -EndOfSwitchEven - - - - - 4/7/2005 - 17:38:58 - 4/7/2005 - 17:38:58 - 1.05 - ? - ? - Compute Node - 721 - 477 - -? - ? - IsNotOdd - 3 - ? - -IsNotOdd - - -long - Even - - -long - Even - - - -IsNotOdd - - - - - 4/7/2005 - 17:38:58 - 4/7/2005 - 17:38:58 - 2.0 - ? - ? - Compute Node - 477 - 137 - -? - ? - IsNotEven - 3 - ? - -IsNotEven - - -long - Odd - - -long - Odd - - - -IsNotEven - - - - - 4/7/2005 - 17:38:58 - 4/7/2005 - 17:38:58 - 2.0 - ? - ? - Compute Node - 475 - 601 - -? - ? - IsOdddefault - 3 - ? - -IsOdddefault - - -long - a - - -long - a - -long - Odd - - - -IsOdddefault - - - - - - 4/7/2005 - 17:38:58 - 4/7/2005 - 17:38:58 - 2.0 - ? - ? - Compute Node - 477 - 285 - -? - ? - IsEvendefault - 3 - ? - -IsEvendefault - - -long - a - - -long - a - -long - Even - - - -IsEvendefault - - - - - - 4/7/2005 - 17:38:58 - 4/7/2005 - 17:38:58 - 2.0 - ? - ? - Compute Node - 478 - 434 - - -IsOdd - a - EndOfSwitchOdd - a - - -IsOdd - Odd - EndOfSwitchOdd - Odd - - -SwitchOdd - Odd - IsOdd - Gate - - -SwitchOdd - Even - IsNotOdd - Even - - -SwitchOdd - default - IsOdddefault - Gate - - -SwitchOdd - a - IsOdddefault - a - - -SwitchOdd - a - IsOdd - a - - -SwitchOdd - OddEven - EndOfSwitchOdd - OddEven - - -SwitchOdd - Default - EndOfSwitchOdd - Default - - -EndOfSwitchOdd - a - EndOfLoop - Index - - -IsEven - a - EndOfSwitchEven - a - - -IsEven - Even - EndOfSwitchEven - Even - - -Loop - DoLoop - EndOfLoop - DoLoop - - -Loop - Index - SwitchOdd - a - - -Loop - Index - SwitchEven - a - - -Loop - Min - EndOfLoop - Min - - -Loop - Max - EndOfLoop - Max - - -EndOfLoop - DoLoop - Loop - DoLoop - - -SwitchEven - Odd - IsNotEven - Odd - - -SwitchEven - Even - IsEven - Gate - - -SwitchEven - default - IsEvendefault - Gate - - -SwitchEven - a - IsEven - a - - -SwitchEven - a - IsEvendefault - a - - -SwitchEven - OddEven - EndOfSwitchEven - OddEven - - -SwitchEven - Default - EndOfSwitchEven - Default - - -EndOfSwitchEven - Gate - EndOfLoop - Gate - - -IsNotOdd - Even - EndOfSwitchOdd - Even - - -IsNotEven - Odd - EndOfSwitchEven - Odd - - -IsOdddefault - a - EndOfSwitchOdd - a - - -IsOdddefault - Odd - EndOfSwitchOdd - Odd - - -IsEvendefault - a - EndOfSwitchEven - a - - -IsEvendefault - Even - EndOfSwitchEven - Even - - - -GraphLoopTwoBranches_1 - Loop__Index - Loop - Index - -3 - 0 - - -GraphLoopTwoBranches_1 - Loop__Min - Loop - Min - -3 - -5 - - -GraphLoopTwoBranches_1 - Loop__Max - Loop - Max - -3 - 11 - diff --git a/Superv/Graphs/GraphLoopWhile.xml b/Superv/Graphs/GraphLoopWhile.xml deleted file mode 100644 index c1dc674..0000000 --- a/Superv/Graphs/GraphLoopWhile.xml +++ /dev/null @@ -1,191 +0,0 @@ - - - - - - -? - ? - GraphLoopWhile - 1 - ? - -GraphLoopWhile_1 - - -long - Loop__Index - -long - Loop__Max - - -long - EndLoop__Index - -long - EndLoop__Max - - - 16/12/2004 - 15:39:50 - 16/12/2004 - 16:51:46 - 2.0 - JR - ? - ? - 0 - 0 - - -? - ? - Loop - 4 - EndLoop - -Loop - - -long - Index - -long - Max - - -long - Index - -long - Max - - - -? - - -LoopWhileMore - - - - - - - - - - -LoopWhileNext - - - - - 16/12/2004 - 16:51:46 - 16/12/2004 - 16:51:46 - 2.0 - ? - ? - Compute Node - 105 - 226 - -? - ? - EndLoop - 5 - Loop - -EndLoop - - -long - Index - -long - Max - - -long - Index - -long - Max - - - -EndLoop - - 16/12/2004 - 16:51:46 - 16/12/2004 - 16:51:46 - 2.0 - ? - ? - Compute Node - 414 - 232 - - -Loop - DoLoop - EndLoop - DoLoop - - -Loop - Index - EndLoop - Index - - -Loop - Max - EndLoop - Max - - -EndLoop - DoLoop - Loop - DoLoop - - - -GraphLoopWhile - Loop__Index - Loop - Index - -3 - 5 - - -GraphLoopWhile - Loop__Max - Loop - Max - -3 - 10 - diff --git a/Superv/Graphs/GraphLoopsCoupled.xml b/Superv/Graphs/GraphLoopsCoupled.xml deleted file mode 100644 index b5805c3..0000000 --- a/Superv/Graphs/GraphLoopsCoupled.xml +++ /dev/null @@ -1,576 +0,0 @@ - - - - - - -? - ? - GraphLoopsCoupled_3 - 1 - ? - -GraphLoopsCoupled_3 - - -long - Loop__Index - -long - Loop__Max - -long - Loop__z - -long - Init__Index - -long - Init__Max - -long - Init__z - - -long - EndLoop__Index - -long - EndLoop__Max - -long - EndLoop__z - -long - EndInit__Index - -long - EndInit__Max - -long - EndInit__z - - - 17/12/2004 - 17:11:7 - 17/12/2004 - 18:26:39 - 2.0 - JR - ? - ? - 0 - 0 - - -? - ? - Add - 3 - ? - -Add - - -long - x - -long - y - - -long - z - - - -Add - - - - 17/12/2004 - 18:26:39 - 17/12/2004 - 18:26:39 - 2.0 - ? - ? - Compute Node - 245 - 38 - -? - ? - Add_1 - 3 - ? - -Add_1 - - -long - x - -long - y - - -long - z - - - -Add - - - - 17/12/2004 - 18:26:39 - 17/12/2004 - 18:26:39 - 2.0 - ? - ? - Compute Node - 243 - 288 - -? - ? - Sub - 3 - ? - -Sub - - -long - x - -long - y - - -long - z - - - -Sub - - - - 17/12/2004 - 18:26:39 - 17/12/2004 - 18:26:39 - 2.0 - ? - ? - Compute Node - 458 - 18 - -? - ? - Sub_1 - 3 - ? - -Sub_1 - - -long - x - -long - y - - -long - z - - - -Sub - - - - 17/12/2004 - 18:26:39 - 17/12/2004 - 18:26:39 - 2.0 - ? - ? - Compute Node - 461 - 268 - -? - ? - Loop - 4 - EndLoop - -Loop - - -long - Index - -long - Max - -long - z - - -long - Index - -long - Max - -long - z - - - -? - - -More - - - - - - - -Next - - - - - 17/12/2004 - 18:26:39 - 17/12/2004 - 18:26:39 - 2.0 - ? - ? - Compute Node - 15 - 58 - -? - ? - EndLoop - 5 - Loop - -EndLoop - - -long - Index - -long - Max - -long - z - - -long - Index - -long - Max - -long - z - - - -EndLoop - - 17/12/2004 - 18:26:39 - 17/12/2004 - 18:26:39 - 2.0 - ? - ? - Compute Node - 662 - 38 - -? - ? - Init - 4 - EndInit - -Init - - -long - Index - -long - Max - -long - z - - -long - Index - -long - Max - -long - z - - - -? - - -More - - - - - - - -Next - - - - - 17/12/2004 - 18:26:39 - 17/12/2004 - 18:26:39 - 2.0 - ? - ? - Compute Node - 10 - 308 - -? - ? - EndInit - 5 - Init - -EndInit - - -long - Index - -long - Max - -long - z - - -long - Index - -long - Max - -long - z - - - -EndInit - - 17/12/2004 - 18:26:39 - 17/12/2004 - 18:26:39 - 2.0 - ? - ? - Compute Node - 670 - 288 - - -Add - z - Sub - y - - -Add - z - Sub_1 - x - - -Add_1 - z - Sub_1 - y - - -Add_1 - z - Sub - x - - -Sub - z - EndInit - z - - -Sub_1 - z - EndLoop - z - - -Loop - DoLoop - EndLoop - DoLoop - - -Loop - Index - EndLoop - Index - - -Loop - Max - EndLoop - Max - - -Loop - Max - Add - x - - -Loop - z - Add - y - - -EndLoop - DoLoop - Loop - DoLoop - - -Init - DoLoop - EndInit - DoLoop - - -Init - Index - EndInit - Index - - -Init - Max - EndInit - Max - - -Init - Max - Add_1 - x - - -Init - z - Add_1 - y - - -EndInit - DoLoop - Init - DoLoop - - - -GraphLoopsCoupled_3 - Loop__Index - Loop - Index - -3 - 5 - - -GraphLoopsCoupled_3 - Loop__Max - Loop - Max - -3 - 15 - - -GraphLoopsCoupled_3 - Loop__z - Loop - z - -3 - -1 - - -GraphLoopsCoupled_3 - Init__Index - Init - Index - -3 - 3 - - -GraphLoopsCoupled_3 - Init__Max - Init - Max - -3 - 13 - - -GraphLoopsCoupled_3 - Init__z - Init - z - -3 - -2 - diff --git a/Superv/Graphs/GraphLoopsGates.xml b/Superv/Graphs/GraphLoopsGates.xml deleted file mode 100644 index 35f4e1c..0000000 --- a/Superv/Graphs/GraphLoopsGates.xml +++ /dev/null @@ -1,718 +0,0 @@ - - - - - - -? - ? - GraphLoopsGates_1 - 1 - ? - -GraphLoopsGates_1 - - -long - Init__Index - -long - Init__Min - -long - Init__Max - -double - Add__x - -double - Add__y - -double - Add_1__x - -double - Add_1__y - -long - Init_1__Index - -long - Init_1__Min - -long - Init_1__Max - - -long - EndInit__Index - -long - EndInit__Min - -long - EndInit__Max - -double - Add__FuncValue - -double - Add__z - -double - Add_1__FuncValue - -double - Add_1__z - -double - Sub__z - -double - Sub_1__z - -long - Gate__G - -long - EndInit_1__Index - -long - EndInit_1__Min - -long - EndInit_1__Max - - - 7/1/2005 - 16:57:1 - 5/7/2005 - 16:16:19 - 2.0 - JR - ? - ? - 0 - 0 - - -? - ? - Init - 4 - EndInit - -Init - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -Init - - - - - - -More - - - - - - - -Next - - - - - - 5/7/2005 - 16:15:13 - 5/7/2005 - 16:15:13 - 2.0 - ? - ? - Compute Node - 29 - 251 - -? - ? - EndInit - 5 - Init - -EndInit - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -EndInit - - 5/7/2005 - 16:15:13 - 5/7/2005 - 16:15:13 - 2.0 - ? - ? - Compute Node - 838 - 243 - -AddComponent - AddComponent - Add - 0 - ? - -Add - - -double - x - -double - y - - -double - FuncValue - -double - z - - - 5/7/2005 - 16:15:13 - 5/7/2005 - 16:15:13 - 2.0 - ? - localhost/FactoryServer - Add from AddComponent - 230 - 76 - -AddComponent - AddComponent - Add_1 - 0 - ? - -Add - - -double - x - -double - y - - -double - FuncValue - -double - z - - - 5/7/2005 - 16:15:13 - 5/7/2005 - 16:15:13 - 2.0 - ? - localhost/FactoryServer - Add from AddComponent - 225 - 304 - -SubComponent - SubComponent - Sub - 0 - ? - -Sub - - -double - x - -double - y - - -double - z - - - 5/7/2005 - 16:15:13 - 5/7/2005 - 16:15:13 - 2.0 - ? - localhost/FactoryServer - Sub from SubComponent - 447 - 77 - -SubComponent - SubComponent - Sub_1 - 0 - ? - -Sub - - -double - x - -double - y - - -double - z - - - 5/7/2005 - 16:15:13 - 5/7/2005 - 16:15:13 - 2.0 - ? - localhost/FactoryServer - Sub from SubComponent - 448 - 304 - -? - ? - Gate - 3 - ? - -Gate - - -long - G1 - -long - G2 - - -long - G - - - -Gate - - - - - 5/7/2005 - 16:15:13 - 5/7/2005 - 16:15:13 - 2.0 - ? - ? - Compute Node - 640 - 224 - -? - ? - Init_1 - 4 - EndInit_1 - -Init_1 - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -Init_1 - - - - - - -More_1 - - - - - - - -Next_1 - - - - - - 5/7/2005 - 16:15:13 - 5/7/2005 - 16:15:13 - 2.0 - ? - ? - Compute Node - 9 - 24 - -? - ? - EndInit_1 - 5 - Init_1 - -EndInit_1 - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -EndInit_1 - - 5/7/2005 - 16:15:13 - 5/7/2005 - 16:15:13 - 2.0 - ? - ? - Compute Node - 1049 - 201 - - -Init - DoLoop - EndInit - DoLoop - - -Init - Index - EndInit - Index - - -Init - Index - Sub - x - - -Init - Min - EndInit - Min - - -Init - Min - Sub - y - - -Init - Min - Sub_1 - x - - -Init - Max - EndInit - Max - - -Init - Max - Sub_1 - y - - -Init - Gate - Add_1 - Gate - - -Init - Gate - Add - Gate - - -EndInit - DoLoop - Init - DoLoop - - -EndInit - Gate - EndInit_1 - Gate - - -Add - Gate - Sub - Gate - - -Add_1 - Gate - Sub_1 - Gate - - -Sub - Gate - Gate - G1 - - -Sub_1 - Gate - Gate - G2 - - -Gate - Gate - EndInit - Gate - - -Init_1 - DoLoop - EndInit_1 - DoLoop - - -Init_1 - Index - EndInit_1 - Index - - -Init_1 - Min - EndInit_1 - Min - - -Init_1 - Max - EndInit_1 - Max - - -Init_1 - Gate - Init - Gate - - -9 - 346 - -9 - 199 - -194 - 199 - -194 - 119 - -EndInit_1 - DoLoop - Init_1 - DoLoop - - - -GraphLoopsGates_1 - Init__Index - Init - Index - -3 - 0 - - -GraphLoopsGates_1 - Init__Min - Init - Min - -3 - 5 - - -GraphLoopsGates_1 - Init__Max - Init - Max - -3 - 8 - - -GraphLoopsGates_1 - Add__x - Add - x - -7 - 1 - - -GraphLoopsGates_1 - Add__y - Add - y - -7 - 2 - - -GraphLoopsGates_1 - Add_1__x - Add_1 - x - -7 - 3 - - -GraphLoopsGates_1 - Add_1__y - Add_1 - y - -7 - 4 - - -GraphLoopsGates_1 - Init_1__Index - Init_1 - Index - -3 - 0 - - -GraphLoopsGates_1 - Init_1__Min - Init_1 - Min - -3 - 1 - - -GraphLoopsGates_1 - Init_1__Max - Init_1 - Max - -3 - 3 - diff --git a/Superv/Graphs/GraphLoopsStupidCoupledSwitchs.xml b/Superv/Graphs/GraphLoopsStupidCoupledSwitchs.xml deleted file mode 100644 index 79e9f4c..0000000 --- a/Superv/Graphs/GraphLoopsStupidCoupledSwitchs.xml +++ /dev/null @@ -1,729 +0,0 @@ - - - - - - -? - ? - GraphLoopsStupidCoupledSwitchs - 1 - ? - -GraphLoopsStupidCoupledSwitchs - - -long - InitLoopSwitch__Index - -long - InitLoopSwitch__Min - -long - InitLoopSwitch__Max - -long - InitLoop__Index - -long - InitLoop__Min - -long - InitLoop__Max - - -long - EndOfInitLoopSwitch__Index - -long - EndOfInitLoopSwitch__Min - -long - EndOfInitLoopSwitch__Max - -long - Switch__Odd - -int - Switch__Even - -long - EndOfInitLoop__Index - -long - EndOfInitLoop__Min - -long - EndOfInitLoop__Max - -long - Switch_1__Odd - - - 14/10/2003 - 10:29:4 - 29/4/2005 - 17:18:4 - 1.05 - ? - ? - ? - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - - -long - a - - - -IsOdd - - - - - - 29/4/2005 - 17:8:53 - 29/4/2005 - 17:8:53 - 1.05 - ? - ? - Python function - 458 - 52 - -? - ? - InitLoopSwitch - 4 - EndOfInitLoopSwitch - -InitLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -InitLoop - - - -MoreLoop - - - - - - - -NextLoop - - - - 29/4/2005 - 17:8:53 - 29/4/2005 - 17:8:53 - 1.05 - ? - ? - Compute Node - 14 - 136 - -? - ? - EndOfInitLoopSwitch - 5 - InitLoopSwitch - -EndOfInitLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -? - - 29/4/2005 - 17:8:53 - 29/4/2005 - 17:8:53 - 1.05 - ? - ? - Compute Node - 955 - 122 - -? - ? - Switch - 6 - EndOfSwitch - -Switch - - -long - a - - -long - Odd - -int - Even - -int - a - - - -Switch - - - - - - 29/4/2005 - 17:8:53 - 29/4/2005 - 17:8:53 - 1.05 - ? - ? - Compute Node - 245 - 136 - -? - ? - EndOfSwitch - 7 - Switch - -EndOfSwitch - - -long - a - - -long - a - - - -? - - 29/4/2005 - 17:8:53 - 29/4/2005 - 17:8:53 - 1.05 - ? - ? - Compute Node - 690 - 129 - -? - ? - IsOdd_1 - 3 - ? - -IsOdd_1 - - -long - a - - -long - a - - - -IsOdd - - - - - - 29/4/2005 - 17:8:53 - 29/4/2005 - 17:8:53 - 1.05 - ? - ? - Python function - 487 - 321 - -? - ? - InitLoop - 4 - EndOfInitLoop - -InitLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -InitLoop - - - -MoreLoop - - - - - - - -NextLoop - - - - 29/4/2005 - 17:8:53 - 29/4/2005 - 17:8:53 - 1.05 - ? - ? - Compute Node - 10 - 391 - -? - ? - EndOfInitLoop - 5 - InitLoop - -EndOfInitLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -? - - 29/4/2005 - 17:8:53 - 29/4/2005 - 17:8:53 - 1.05 - ? - ? - Compute Node - 961 - 369 - -? - ? - Switch_1 - 6 - EndSwitch - -Switch_1 - - -long - a - - -long - Odd - -int - Even - -int - a - - - -Switch - - - - - - 29/4/2005 - 17:8:53 - 29/4/2005 - 17:8:53 - 1.05 - ? - ? - Compute Node - 258 - 391 - -? - ? - EndSwitch - 7 - Switch_1 - -EndSwitch - - -long - a - - -long - a - - - -? - - 29/4/2005 - 17:8:53 - 29/4/2005 - 17:8:53 - 1.05 - ? - ? - Compute Node - 695 - 387 - - -IsOdd - a - EndOfSwitch - a - - -IsOdd - Gate - EndOfSwitch - Default - - -InitLoopSwitch - DoLoop - EndOfInitLoopSwitch - DoLoop - - -InitLoopSwitch - Index - Switch - a - - -InitLoopSwitch - Min - EndOfInitLoopSwitch - Min - - -InitLoopSwitch - Max - EndOfInitLoopSwitch - Max - - -InitLoopSwitch - Gate - EndSwitch - Default - - -EndOfInitLoopSwitch - DoLoop - InitLoopSwitch - DoLoop - - -Switch - a - IsOdd - a - - -Switch - Default - EndSwitch - Default - - -EndOfSwitch - a - EndOfInitLoopSwitch - Index - - -IsOdd_1 - a - EndSwitch - a - - -IsOdd_1 - Gate - EndSwitch - Default - - -IsOdd_1 - Gate - EndOfSwitch - Default - - -InitLoop - DoLoop - EndOfInitLoop - DoLoop - - -InitLoop - Index - Switch_1 - a - - -InitLoop - Min - EndOfInitLoop - Min - - -InitLoop - Max - EndOfInitLoop - Max - - -InitLoop - Gate - Switch - Gate - - -InitLoop - Gate - Switch_1 - Gate - - -InitLoop - Gate - IsOdd_1 - Gate - - -InitLoop - Gate - EndOfSwitch - Default - - -EndOfInitLoop - DoLoop - InitLoop - DoLoop - - -Switch_1 - Even - EndSwitch - Default - - -Switch_1 - a - IsOdd_1 - a - - -Switch_1 - Default - IsOdd - Gate - - -Switch_1 - Default - EndOfSwitch - Default - - -Switch_1 - Default - EndOfInitLoopSwitch - Gate - - -Switch_1 - Default - EndOfInitLoop - Gate - - -Switch_1 - Default - EndSwitch - Default - - -EndSwitch - a - EndOfInitLoop - Index - - - -GraphLoopsStupidCoupledSwitchs - InitLoopSwitch__Index - InitLoopSwitch - Index - -3 - 0 - - -GraphLoopsStupidCoupledSwitchs - InitLoopSwitch__Min - InitLoopSwitch - Min - -3 - 0 - - -GraphLoopsStupidCoupledSwitchs - InitLoopSwitch__Max - InitLoopSwitch - Max - -3 - 20 - - -GraphLoopsStupidCoupledSwitchs - InitLoop__Index - InitLoop - Index - -3 - 0 - - -GraphLoopsStupidCoupledSwitchs - InitLoop__Min - InitLoop - Min - -3 - 0 - - -GraphLoopsStupidCoupledSwitchs - InitLoop__Max - InitLoop - Max - -3 - 20 - diff --git a/Superv/Graphs/GraphMacroNodes.xml b/Superv/Graphs/GraphMacroNodes.xml deleted file mode 100644 index a756d53..0000000 --- a/Superv/Graphs/GraphMacroNodes.xml +++ /dev/null @@ -1,2811 +0,0 @@ - - - - - - -? - ? - GraphMacroNodes - 1 - ? - -GraphMacroNodes - - -double - Add__x - -double - Add__y - -double - Sub__x - -string - Macro_SyrStruct__SyrComponent__aContainer - -string - Macro_SyrStruct__SyrComponent__aComponent - -long - Macro_SyrStruct__forN__N - -long - Macro_SyrStruct__forN__K - -long - Macro_SyrStruct__forN__min - -long - Macro_SyrStruct__forN__max - -long - Macro_SyrStruct__fori__i - -string - Macro_SyrStruct_1__SyrComponent__aContainer - -string - Macro_SyrStruct_1__SyrComponent__aComponent - -long - Macro_SyrStruct_1__forN__N - -long - Macro_SyrStruct_1__forN__K - -long - Macro_SyrStruct_1__forN__min - -long - Macro_SyrStruct_1__forN__max - -long - Macro_SyrStruct_1__fori__i - - -double - Add__FuncValue - -double - Div__z - -long - Macro_SyrStruct__EndOfforN__N - -long - Macro_SyrStruct__EndOfforN__K - -objref - Macro_SyrStruct__EndOfforN__SyrComponent - -long - Macro_SyrStruct__EndOfforN__min - -long - Macro_SyrStruct__EndOfforN__max - -objref - Macro_SyrStruct__EndOfwhileNotOne__SyrComponent - -long - Macro_SyrStruct__EndOfwhileNotOne__N - -long - Macro_SyrStruct__EndOffori__i - -objref - Macro_SyrStruct__EndOfwhileEven__SyrComponent - -long - Macro_SyrStruct_1__EndOfforN__N - -long - Macro_SyrStruct_1__EndOfforN__K - -objref - Macro_SyrStruct_1__EndOfforN__SyrComponent - -long - Macro_SyrStruct_1__EndOfforN__min - -long - Macro_SyrStruct_1__EndOfforN__max - -objref - Macro_SyrStruct_1__EndOfwhileNotOne__SyrComponent - -long - Macro_SyrStruct_1__EndOfwhileNotOne__N - -long - Macro_SyrStruct_1__EndOffori__i - -objref - Macro_SyrStruct_1__EndOfwhileEven__SyrComponent - - - 15/6/2004 - 10:28:51 - 4/5/2005 - 14:6:2 - 2.0 - ? - ? - ? - 0 - 0 - - -AddComponent - AddComponent - Add - 0 - ? - -Add - - -double - x - -double - y - - -double - FuncValue - -double - z - - - 4/5/2005 - 14:6:2 - 4/5/2005 - 14:6:2 - 2.0 - ? - FactoryServer - Add from AddComponent - 9 - 293 - -SubComponent - SubComponent - Sub - 0 - ? - -Sub - - -double - x - -double - y - - -double - z - - - 4/5/2005 - 14:6:2 - 4/5/2005 - 14:6:2 - 2.0 - ? - FactoryServer - Sub from SubComponent - 227 - 99 - -MulComponent - MulComponent - Mul - 0 - ? - -Mul - - -double - x - -double - y - - -double - z - - - 4/5/2005 - 14:6:2 - 4/5/2005 - 14:6:2 - 2.0 - ? - FactoryServer - Mul from MulComponent - 443 - 278 - -DivComponent - DivComponent - Div - 0 - ? - -Div - - -double - x - -double - y - - -double - z - - - 4/5/2005 - 14:6:2 - 4/5/2005 - 14:6:2 - 2.0 - ? - FactoryServer - Div from DivComponent - 634 - 97 - -? - ? - Macro_SyrStruct - 10 - SyrStruct_1 - -SyrStruct_1 - - -string - SyrComponent__aContainer - -string - SyrComponent__aComponent - -long - forN__N - -long - forN__K - -long - forN__min - -long - forN__max - -long - fori__i - - -long - EndOfforN__N - -long - EndOfforN__K - -objref - EndOfforN__SyrComponent - -long - EndOfforN__min - -long - EndOfforN__max - -objref - EndOfwhileNotOne__SyrComponent - -long - EndOfwhileNotOne__N - -long - EndOffori__i - -objref - EndOfwhileEven__SyrComponent - - - -? - - 4/5/2005 - 14:6:2 - 4/5/2005 - 14:6:2 - 2.0 - ? - ? - Macro Node - 13 - 6 - -? - ? - Macro_SyrStruct_1 - 10 - SyrStruct_1_1 - -SyrStruct_1_1 - - -string - SyrComponent__aContainer - -string - SyrComponent__aComponent - -long - forN__N - -long - forN__K - -long - forN__min - -long - forN__max - -long - fori__i - - -long - EndOfforN__N - -long - EndOfforN__K - -objref - EndOfforN__SyrComponent - -long - EndOfforN__min - -long - EndOfforN__max - -objref - EndOfwhileNotOne__SyrComponent - -long - EndOfwhileNotOne__N - -long - EndOffori__i - -objref - EndOfwhileEven__SyrComponent - - - -? - - 4/5/2005 - 14:6:2 - 4/5/2005 - 14:6:2 - 2.0 - ? - ? - Macro Node - 8 - 441 - - -Add - z - Sub - y - - -Add - z - Mul - y - - -Sub - z - Mul - x - - -Sub - z - Div - x - - -Mul - z - Div - y - - - -GraphMacroNodes - Add__x - Add - x - -7 - 3 - - -GraphMacroNodes - Add__y - Add - y - -7 - 4.5 - - -GraphMacroNodes - Sub__x - Sub - x - -7 - 1.5 - - -GraphMacroNodes - Macro_SyrStruct__SyrComponent__aContainer - Macro_SyrStruct - SyrComponent__aContainer - -18 - FactoryServer - - -GraphMacroNodes - Macro_SyrStruct__SyrComponent__aComponent - Macro_SyrStruct - SyrComponent__aComponent - -18 - SyrComponent - - -GraphMacroNodes - Macro_SyrStruct__forN__N - Macro_SyrStruct - forN__N - -3 - 0 - - -GraphMacroNodes - Macro_SyrStruct__forN__K - Macro_SyrStruct - forN__K - -3 - 0 - - -GraphMacroNodes - Macro_SyrStruct__forN__min - Macro_SyrStruct - forN__min - -3 - 5 - - -GraphMacroNodes - Macro_SyrStruct__forN__max - Macro_SyrStruct - forN__max - -3 - 9 - - -GraphMacroNodes - Macro_SyrStruct__fori__i - Macro_SyrStruct - fori__i - -3 - 0 - - -GraphMacroNodes - Macro_SyrStruct_1__SyrComponent__aContainer - Macro_SyrStruct_1 - SyrComponent__aContainer - -18 - FactoryServer - - -GraphMacroNodes - Macro_SyrStruct_1__SyrComponent__aComponent - Macro_SyrStruct_1 - SyrComponent__aComponent - -18 - SyrComponent - - -GraphMacroNodes - Macro_SyrStruct_1__forN__N - Macro_SyrStruct_1 - forN__N - -3 - 0 - - -GraphMacroNodes - Macro_SyrStruct_1__forN__K - Macro_SyrStruct_1 - forN__K - -3 - 0 - - -GraphMacroNodes - Macro_SyrStruct_1__forN__min - Macro_SyrStruct_1 - forN__min - -3 - 5 - - -GraphMacroNodes - Macro_SyrStruct_1__forN__max - Macro_SyrStruct_1 - forN__max - -3 - 9 - - -GraphMacroNodes - Macro_SyrStruct_1__fori__i - Macro_SyrStruct_1 - fori__i - -3 - 0 - - - - -? - ? - SyrStruct_1 - 1 - ? - -SyrStruct_1 - - -string - SyrComponent__aContainer - -string - SyrComponent__aComponent - -long - forN__N - -long - forN__K - -long - forN__min - -long - forN__max - -long - fori__i - - -long - EndOfforN__N - -long - EndOfforN__K - -objref - EndOfforN__SyrComponent - -long - EndOfforN__min - -long - EndOfforN__max - -objref - EndOfwhileNotOne__SyrComponent - -long - EndOfwhileNotOne__N - -long - EndOffori__i - -objref - EndOfwhileEven__SyrComponent - - - 15/6/2004 - 10:28:51 - 4/5/2005 - 14:6:2 - 2.0 - JR - ? - Syracuse algorithm - 0 - 0 - - -SyrComponent - SyrComponent - m3 - 0 - ? - -C_M3 - - -long - anOddInteger - - -long - anInteger - - - 4/5/2005 - 14:6:2 - 4/5/2005 - 14:6:2 - 2.0 - ? - localhost/FactoryServer - C_M3 from SyrComponent - 672 - 28 - -SyrComponent - SyrComponent - m3incr - 0 - ? - -C_INCR - - -long - aCount - - -long - aNewCount - - - 4/5/2005 - 14:6:2 - 4/5/2005 - 14:6:2 - 2.0 - ? - localhost/FactoryServer - C_INCR from SyrComponent - 898 - 29 - -SyrComponent - SyrComponent - incra - 0 - ? - -C_INCR - - -long - aCount - - -long - aNewCount - - - 4/5/2005 - 14:6:2 - 4/5/2005 - 14:6:2 - 2.0 - ? - localhost/FactoryServer - C_INCR from SyrComponent - 803 - 195 - -SyrComponent - SyrComponent - div2 - 0 - ? - -C_DIV2 - - -long - anEvenInteger - - -long - anInteger - - - 4/5/2005 - 14:6:2 - 4/5/2005 - 14:6:2 - 2.0 - ? - localhost/FactoryServer - C_DIV2 from SyrComponent - 810 - 435 - -SyrComponent - SyrComponent - incrb - 0 - ? - -C_INCR - - -long - aCount - - -long - aNewCount - - - 4/5/2005 - 14:6:2 - 4/5/2005 - 14:6:2 - 2.0 - ? - localhost/FactoryServer - C_INCR from SyrComponent - 809 - 574 - -? - ? - SyrComponent - 3 - ? - -SyrComponent - - -string - aContainer - -string - aComponent - - -objref - SyrComponentobjref - - - -SyrComponent - - - - - - - 4/5/2005 - 14:6:2 - 4/5/2005 - 14:6:2 - 2.0 - ? - ? - SyrComponent( aContainer , aComponent ) - 0 - 0 - -? - ? - forN - 4 - EndOfforN - -forN - - -long - N - -long - K - -objref - SyrComponent - -long - min - -long - max - - -long - N - -long - K - -objref - SyrComponent - -long - min - -long - max - - - -InitN - - - 0 : ]]> - = min : ]]> - - - -MoreN - - - - NN : ]]> - - - -NextN - - - - - 4/5/2005 - 14:6:2 - 4/5/2005 - 14:6:2 - 2.0 - ? - ? - InitN , MoreN , NextN - 20 - 302 - -? - ? - EndOfforN - 5 - forN - -EndOfforN - - -long - N - -long - K - -objref - SyrComponent - -long - min - -long - max - - -long - N - -long - K - -objref - SyrComponent - -long - min - -long - max - - - -? - - 4/5/2005 - 14:6:2 - 4/5/2005 - 14:6:2 - 2.0 - ? - ? - ? - 1535 - 332 - -? - ? - whileNotOne - 4 - EndOfwhileNotOne - -whileNotOne - - -objref - SyrComponent - -long - N - -long - K - - -objref - SyrComponent - -long - N - -long - K - - - -InitNotOne - - - - - -MoreNotOne - - - - - -NextNotOne - - - - 4/5/2005 - 14:6:2 - 4/5/2005 - 14:6:2 - 2.0 - ? - ? - InitNotOne , MoreNotOne , NextNotOne - 212 - 274 - -? - ? - EndOfwhileNotOne - 5 - whileNotOne - -EndOfwhileNotOne - - -objref - SyrComponent - -long - N - -long - K - - -objref - SyrComponent - -long - N - -long - K - - - -? - - 4/5/2005 - 14:6:2 - 4/5/2005 - 14:6:2 - 2.0 - ? - ? - ? - 1366 - 303 - -? - ? - fori - 4 - EndOffori - -fori - - -long - i - -long - K - - -long - i - -long - K - - - -Initfori - - - -Morefori - - - ii :]]> - - - -Nextfori - - - - 4/5/2005 - 14:6:2 - 4/5/2005 - 14:6:2 - 2.0 - ? - ? - Initfori, Morefori, Nextfori - 635 - 212 - -? - ? - EndOffori - 5 - fori - -EndOffori - - -long - i - -long - K - - -long - i - -long - K - - - -? - - 4/5/2005 - 14:6:2 - 4/5/2005 - 14:6:2 - 2.0 - ? - ? - ? - 976 - 212 - -? - ? - whileEven - 4 - EndOfwhileEven - -whileEven - - -objref - SyrComponent - -long - N - -long - K - - -objref - SyrComponent - -long - N - -long - K - - - -InitEven - - - - -MoreEven - - - - - -NextEven - - - - 4/5/2005 - 14:6:2 - 4/5/2005 - 14:6:2 - 2.0 - ? - ? - InitEven, MoreEven, NextEven - 632 - 451 - -? - ? - EndOfwhileEven - 5 - whileEven - -EndOfwhileEven - - -objref - SyrComponent - -long - N - -long - K - - -objref - SyrComponent - -long - N - -long - K - - - -? - - 4/5/2005 - 14:6:2 - 4/5/2005 - 14:6:2 - 2.0 - ? - ? - ? - 988 - 451 - -? - ? - ifNotEven - 6 - EndOfifNotEven - -ifNotEven - - -objref - SyrComponent - -long - N - -long - K - - -long - Odd - -long - Even - -objref - SyrComponent - -long - N - -long - K - - - -ifNotEven - - - - - - 4/5/2005 - 14:6:2 - 4/5/2005 - 14:6:2 - 2.0 - ? - ? - ifNotEven - 418 - 274 - -? - ? - EndOfifNotEven - 7 - ifNotEven - -EndOfifNotEven - - -long - N - -long - K - - -long - N - -long - K - - - -? - - 4/5/2005 - 14:6:2 - 4/5/2005 - 14:6:2 - 2.0 - ? - ? - ? - 1205 - 331 - - -m3 - anInteger - m3incr - aCount - - -m3incr - aNewCount - EndOfifNotEven - N - - -1190 - 366 - -1191 - 109 - -incra - aNewCount - EndOffori - K - - -div2 - anInteger - EndOfwhileEven - N - - -incrb - aNewCount - EndOfwhileEven - K - - -988 - 543 - -988 - 654 - -SyrComponent - SyrComponentobjref - forN - SyrComponent - - -13 - 394 - -12 - 181 - -196 - 181 - -197 - 81 - -forN - DoLoop - EndOfforN - DoLoop - - -forN - N - whileNotOne - N - - -forN - N - EndOfforN - N - - -forN - K - whileNotOne - K - - -forN - SyrComponent - EndOfforN - SyrComponent - - -forN - SyrComponent - whileNotOne - SyrComponent - - -192 - 309 - -191 - 394 - -forN - min - EndOfforN - min - - -forN - max - EndOfforN - max - - -EndOfforN - DoLoop - forN - DoLoop - - -whileNotOne - DoLoop - EndOfwhileNotOne - DoLoop - - -whileNotOne - SyrComponent - EndOfwhileNotOne - SyrComponent - - -whileNotOne - SyrComponent - ifNotEven - SyrComponent - - -whileNotOne - N - ifNotEven - N - - -whileNotOne - K - ifNotEven - K - - -EndOfwhileNotOne - DoLoop - whileNotOne - DoLoop - - -EndOfwhileNotOne - K - EndOfforN - K - - -fori - DoLoop - EndOffori - DoLoop - - -fori - i - EndOffori - i - - -fori - K - incra - aCount - - -EndOffori - DoLoop - fori - DoLoop - - -EndOffori - K - EndOfifNotEven - K - - -1170 - 396 - -1169 - 275 - -whileEven - DoLoop - EndOfwhileEven - DoLoop - - -whileEven - SyrComponent - EndOfwhileEven - SyrComponent - - -whileEven - N - div2 - anEvenInteger - - -whileEven - K - incrb - aCount - - -796 - 655 - -795 - 543 - -EndOfwhileEven - DoLoop - whileEven - DoLoop - - -EndOfwhileEven - N - EndOfifNotEven - N - - -1191 - 366 - -1191 - 513 - -EndOfwhileEven - K - EndOfifNotEven - K - - -1169 - 395 - -1170 - 543 - -ifNotEven - Odd - m3 - Gate - - -593 - 141 - -593 - 307 - -ifNotEven - Odd - fori - Gate - - -ifNotEven - Even - whileEven - Gate - - -593 - 576 - -592 - 339 - -ifNotEven - SyrComponent - whileEven - SyrComponent - - -586 - 486 - -587 - 367 - -ifNotEven - N - whileEven - N - - -604 - 513 - -603 - 397 - -ifNotEven - N - m3 - anOddInteger - - -604 - 107 - -604 - 395 - -ifNotEven - K - whileEven - K - - -621 - 544 - -622 - 426 - -ifNotEven - K - fori - K - - -622 - 275 - -622 - 426 - -ifNotEven - Default - EndOfifNotEven - Default - - -1204 - 429 - -1203 - 12 - -581 - 13 - -581 - 458 - -EndOfifNotEven - N - EndOfwhileNotOne - N - - -EndOfifNotEven - K - EndOfwhileNotOne - K - - - - - -? - ? - SyrStruct_1_1 - 1 - ? - -SyrStruct_1_1 - - -string - SyrComponent__aContainer - -string - SyrComponent__aComponent - -long - forN__N - -long - forN__K - -long - forN__min - -long - forN__max - -long - fori__i - - -long - EndOfforN__N - -long - EndOfforN__K - -objref - EndOfforN__SyrComponent - -long - EndOfforN__min - -long - EndOfforN__max - -objref - EndOfwhileNotOne__SyrComponent - -long - EndOfwhileNotOne__N - -long - EndOffori__i - -objref - EndOfwhileEven__SyrComponent - - - 15/6/2004 - 10:28:52 - 4/5/2005 - 14:6:2 - 2.0 - JR - ? - Syracuse algorithm - 0 - 0 - - -SyrComponent - SyrComponent - m3 - 0 - ? - -C_M3 - - -long - anOddInteger - - -long - anInteger - - - 4/5/2005 - 14:6:2 - 4/5/2005 - 14:6:2 - 2.0 - ? - localhost/FactoryServer - C_M3 from SyrComponent - 672 - 28 - -SyrComponent - SyrComponent - m3incr - 0 - ? - -C_INCR - - -long - aCount - - -long - aNewCount - - - 4/5/2005 - 14:6:2 - 4/5/2005 - 14:6:2 - 2.0 - ? - localhost/FactoryServer - C_INCR from SyrComponent - 898 - 29 - -SyrComponent - SyrComponent - incra - 0 - ? - -C_INCR - - -long - aCount - - -long - aNewCount - - - 4/5/2005 - 14:6:2 - 4/5/2005 - 14:6:2 - 2.0 - ? - localhost/FactoryServer - C_INCR from SyrComponent - 803 - 195 - -SyrComponent - SyrComponent - div2 - 0 - ? - -C_DIV2 - - -long - anEvenInteger - - -long - anInteger - - - 4/5/2005 - 14:6:2 - 4/5/2005 - 14:6:2 - 2.0 - ? - localhost/FactoryServer - C_DIV2 from SyrComponent - 810 - 435 - -SyrComponent - SyrComponent - incrb - 0 - ? - -C_INCR - - -long - aCount - - -long - aNewCount - - - 4/5/2005 - 14:6:2 - 4/5/2005 - 14:6:2 - 2.0 - ? - localhost/FactoryServer - C_INCR from SyrComponent - 809 - 574 - -? - ? - SyrComponent - 3 - ? - -SyrComponent - - -string - aContainer - -string - aComponent - - -objref - SyrComponentobjref - - - -SyrComponent - - - - - - - 4/5/2005 - 14:6:2 - 4/5/2005 - 14:6:2 - 2.0 - ? - ? - SyrComponent( aContainer , aComponent ) - 0 - 0 - -? - ? - forN - 4 - EndOfforN - -forN - - -long - N - -long - K - -objref - SyrComponent - -long - min - -long - max - - -long - N - -long - K - -objref - SyrComponent - -long - min - -long - max - - - -InitN - - - 0 : ]]> - = min : ]]> - - - -MoreN - - - - NN : ]]> - - - -NextN - - - - - 4/5/2005 - 14:6:2 - 4/5/2005 - 14:6:2 - 2.0 - ? - ? - InitN , MoreN , NextN - 20 - 302 - -? - ? - EndOfforN - 5 - forN - -EndOfforN - - -long - N - -long - K - -objref - SyrComponent - -long - min - -long - max - - -long - N - -long - K - -objref - SyrComponent - -long - min - -long - max - - - -? - - 4/5/2005 - 14:6:2 - 4/5/2005 - 14:6:2 - 2.0 - ? - ? - ? - 1535 - 332 - -? - ? - whileNotOne - 4 - EndOfwhileNotOne - -whileNotOne - - -objref - SyrComponent - -long - N - -long - K - - -objref - SyrComponent - -long - N - -long - K - - - -InitNotOne - - - - - -MoreNotOne - - - - - -NextNotOne - - - - 4/5/2005 - 14:6:2 - 4/5/2005 - 14:6:2 - 2.0 - ? - ? - InitNotOne , MoreNotOne , NextNotOne - 212 - 274 - -? - ? - EndOfwhileNotOne - 5 - whileNotOne - -EndOfwhileNotOne - - -objref - SyrComponent - -long - N - -long - K - - -objref - SyrComponent - -long - N - -long - K - - - -? - - 4/5/2005 - 14:6:2 - 4/5/2005 - 14:6:2 - 2.0 - ? - ? - ? - 1366 - 303 - -? - ? - fori - 4 - EndOffori - -fori - - -long - i - -long - K - - -long - i - -long - K - - - -Initfori - - - -Morefori - - - ii :]]> - - - -Nextfori - - - - 4/5/2005 - 14:6:2 - 4/5/2005 - 14:6:2 - 2.0 - ? - ? - Initfori, Morefori, Nextfori - 635 - 212 - -? - ? - EndOffori - 5 - fori - -EndOffori - - -long - i - -long - K - - -long - i - -long - K - - - -? - - 4/5/2005 - 14:6:2 - 4/5/2005 - 14:6:2 - 2.0 - ? - ? - ? - 976 - 212 - -? - ? - whileEven - 4 - EndOfwhileEven - -whileEven - - -objref - SyrComponent - -long - N - -long - K - - -objref - SyrComponent - -long - N - -long - K - - - -InitEven - - - - -MoreEven - - - - - -NextEven - - - - 4/5/2005 - 14:6:2 - 4/5/2005 - 14:6:2 - 2.0 - ? - ? - InitEven, MoreEven, NextEven - 632 - 451 - -? - ? - EndOfwhileEven - 5 - whileEven - -EndOfwhileEven - - -objref - SyrComponent - -long - N - -long - K - - -objref - SyrComponent - -long - N - -long - K - - - -? - - 4/5/2005 - 14:6:2 - 4/5/2005 - 14:6:2 - 2.0 - ? - ? - ? - 988 - 451 - -? - ? - ifNotEven - 6 - EndOfifNotEven - -ifNotEven - - -objref - SyrComponent - -long - N - -long - K - - -long - Odd - -long - Even - -objref - SyrComponent - -long - N - -long - K - - - -ifNotEven - - - - - - 4/5/2005 - 14:6:2 - 4/5/2005 - 14:6:2 - 2.0 - ? - ? - ifNotEven - 418 - 274 - -? - ? - EndOfifNotEven - 7 - ifNotEven - -EndOfifNotEven - - -long - N - -long - K - - -long - N - -long - K - - - -? - - 4/5/2005 - 14:6:2 - 4/5/2005 - 14:6:2 - 2.0 - ? - ? - ? - 1205 - 331 - - -m3 - anInteger - m3incr - aCount - - -m3incr - aNewCount - EndOfifNotEven - N - - -1190 - 366 - -1191 - 109 - -incra - aNewCount - EndOffori - K - - -div2 - anInteger - EndOfwhileEven - N - - -incrb - aNewCount - EndOfwhileEven - K - - -988 - 543 - -988 - 654 - -SyrComponent - SyrComponentobjref - forN - SyrComponent - - -13 - 394 - -12 - 181 - -196 - 181 - -197 - 81 - -forN - DoLoop - EndOfforN - DoLoop - - -forN - N - whileNotOne - N - - -forN - N - EndOfforN - N - - -forN - K - whileNotOne - K - - -forN - SyrComponent - EndOfforN - SyrComponent - - -forN - SyrComponent - whileNotOne - SyrComponent - - -192 - 309 - -191 - 394 - -forN - min - EndOfforN - min - - -forN - max - EndOfforN - max - - -EndOfforN - DoLoop - forN - DoLoop - - -whileNotOne - DoLoop - EndOfwhileNotOne - DoLoop - - -whileNotOne - SyrComponent - EndOfwhileNotOne - SyrComponent - - -whileNotOne - SyrComponent - ifNotEven - SyrComponent - - -whileNotOne - N - ifNotEven - N - - -whileNotOne - K - ifNotEven - K - - -EndOfwhileNotOne - DoLoop - whileNotOne - DoLoop - - -EndOfwhileNotOne - K - EndOfforN - K - - -fori - DoLoop - EndOffori - DoLoop - - -fori - i - EndOffori - i - - -fori - K - incra - aCount - - -EndOffori - DoLoop - fori - DoLoop - - -EndOffori - K - EndOfifNotEven - K - - -1170 - 396 - -1169 - 275 - -whileEven - DoLoop - EndOfwhileEven - DoLoop - - -whileEven - SyrComponent - EndOfwhileEven - SyrComponent - - -whileEven - N - div2 - anEvenInteger - - -whileEven - K - incrb - aCount - - -796 - 655 - -795 - 543 - -EndOfwhileEven - DoLoop - whileEven - DoLoop - - -EndOfwhileEven - N - EndOfifNotEven - N - - -1191 - 366 - -1191 - 513 - -EndOfwhileEven - K - EndOfifNotEven - K - - -1169 - 395 - -1170 - 543 - -ifNotEven - Odd - m3 - Gate - - -593 - 141 - -593 - 307 - -ifNotEven - Odd - fori - Gate - - -ifNotEven - Even - whileEven - Gate - - -593 - 576 - -592 - 339 - -ifNotEven - SyrComponent - whileEven - SyrComponent - - -586 - 486 - -587 - 367 - -ifNotEven - N - whileEven - N - - -604 - 513 - -603 - 397 - -ifNotEven - N - m3 - anOddInteger - - -604 - 107 - -604 - 395 - -ifNotEven - K - whileEven - K - - -621 - 544 - -622 - 426 - -ifNotEven - K - fori - K - - -622 - 275 - -622 - 426 - -ifNotEven - Default - EndOfifNotEven - Default - - -1204 - 429 - -1203 - 12 - -581 - 13 - -581 - 458 - -EndOfifNotEven - N - EndOfwhileNotOne - N - - -EndOfifNotEven - K - EndOfwhileNotOne - K - - diff --git a/Superv/Graphs/GraphMacroNodes1.xml b/Superv/Graphs/GraphMacroNodes1.xml deleted file mode 100644 index 212ba75..0000000 --- a/Superv/Graphs/GraphMacroNodes1.xml +++ /dev/null @@ -1,617 +0,0 @@ - - - - - - - ? - ? - GraphMacroNodes1_1 - 1 - ? - - GraphMacroNodes1_1 - - - double - Add__x - - - double - Add__y - - - double - Sub__x - - - double - Div__x - - - double - Div__y - - - - - double - Mul__z - - - double - Div__z - - - double - Macro_GraphAdd__Add__FuncValue - - - double - Macro_GraphAdd__Add__z - - - - - - 11/3/2003 - 9:58:58 - 28/9/2005 - 16:42:9 - 1.04 - ? - ? - ? - 0 - 0 - - - - - AddComponent - AddComponent - Add - 0 - ? - - Add - - - double - x - - - double - y - - - - - double - FuncValue - - - double - z - - - - - - 28/9/2005 - 16:42:9 - 28/9/2005 - 16:42:9 - 1.04 - ? - FactoryServer - Add from AddComponent - 15 - 241 - - - SubComponent - SubComponent - Sub - 0 - ? - - Sub - - - double - x - - - double - y - - - - - double - z - - - - - - 28/9/2005 - 16:42:9 - 28/9/2005 - 16:42:9 - 1.04 - ? - FactoryServer - Sub from SubComponent - 227 - 99 - - - MulComponent - MulComponent - Mul - 0 - ? - - Mul - - - double - x - - - double - y - - - - - double - z - - - - - - 28/9/2005 - 16:42:9 - 28/9/2005 - 16:42:9 - 1.04 - ? - FactoryServer - Mul from MulComponent - 468 - 301 - - - DivComponent - DivComponent - Div - 0 - ? - - Div - - - double - x - - - double - y - - - - - double - z - - - - - - 28/9/2005 - 16:42:9 - 28/9/2005 - 16:42:9 - 1.04 - ? - FactoryServer - Div from DivComponent - 642 - 128 - - - ? - ? - Macro_GraphAdd - 10 - GraphAdd_1 - - GraphAdd - - - double - Add__x - - - double - Add__y - - - - - double - Add__FuncValue - - - double - Add__z - - - - - - - ? - - - - 28/9/2005 - 16:42:9 - 28/9/2005 - 16:42:9 - 2.0 - ? - ? - Macro Node - 434 - 128 - - - ? - ? - Macro_GraphSub - 10 - GraphSub_1 - - GraphSub - - - double - Sub__x - - - double - Sub__y - - - - - double - Sub__z - - - - - - - ? - - - - 28/9/2005 - 16:42:9 - 28/9/2005 - 16:42:9 - 2.0 - ? - ? - Macro Node - 240 - 301 - - - - - Add - FuncValue - Macro_GraphSub - Sub__x - - - - Add - FuncValue - Macro_GraphAdd - Add__y - - - - Add - z - Sub - y - - - - Add - z - Macro_GraphSub - Sub__y - - - - Sub - z - Mul - x - - - - Sub - z - Macro_GraphAdd - Add__x - - - - Macro_GraphAdd - Gate - Div - Gate - - - - Macro_GraphSub - Sub__z - Mul - y - - - - Macro_GraphSub - Gate - Mul - Gate - - - - - - GraphMacroNodes1_1 - Add__x - Add - x - - 7 - 3 - - - - - GraphMacroNodes1_1 - Add__y - Add - y - - 7 - 4.5 - - - - - GraphMacroNodes1_1 - Sub__x - Sub - x - - 7 - 1.5 - - - - - GraphMacroNodes1_1 - Div__x - Div - x - - 7 - 1 - - - - - GraphMacroNodes1_1 - Div__y - Div - y - - 7 - 2 - - - - - - - - - ? - ? - GraphAdd_1 - 1 - ? - - GraphAdd_1 - - - double - Add__x - - - double - Add__y - - - - - double - Add__FuncValue - - - double - Add__z - - - - - - 28/9/2005 - 16:2:26 - 28/9/2005 - 16:42:9 - 2.0 - ? - ? - ? - 0 - 0 - - - - - AddComponent - AddComponent - Add - 0 - ? - - Add - - - double - x - - - double - y - - - - - double - FuncValue - - - double - z - - - - - - 28/9/2005 - 16:42:9 - 28/9/2005 - 16:42:9 - 2.0 - ? - localhost/FactoryServer - Add from AddComponent - 55 - 61 - - - - - - - - - ? - ? - GraphSub_1 - 1 - ? - - GraphSub_1 - - - double - Sub__x - - - double - Sub__y - - - - - double - Sub__z - - - - - - 28/9/2005 - 16:4:7 - 28/9/2005 - 16:42:9 - 2.0 - ? - ? - ? - 0 - 0 - - - - - SubComponent - SubComponent - Sub - 0 - ? - - Sub - - - double - x - - - double - y - - - - - double - z - - - - - - 28/9/2005 - 16:42:9 - 28/9/2005 - 16:42:9 - 2.0 - ? - localhost/FactoryServer - Sub from SubComponent - 55 - 71 - - - - - - - diff --git a/Superv/Graphs/GraphNoEqualInPortsNumber.xml b/Superv/Graphs/GraphNoEqualInPortsNumber.xml deleted file mode 100644 index 1704859..0000000 --- a/Superv/Graphs/GraphNoEqualInPortsNumber.xml +++ /dev/null @@ -1,118 +0,0 @@ - - - - - - - ? - ? - aNewDataFlow_3 - 1 - ? - - aNewDataFlow_3 - - - double - MulNode__a - - - - - double - MulNode__c - - - - - - 14/4/2006 - 15:8:0 - 14/4/2006 - 15:11:16 - 3.0 - ? - ? - ? - 0 - 0 - - - - - ? - ? - MulNode - 3 - ? - - MulNode - - - double - a - - - - - double - c - - - - - - - MulNode - - - - - - 14/4/2006 - 15:11:16 - 14/4/2006 - 15:11:16 - 3.0 - ? - ? - Compute Node - 0 - 0 - - - - - - aNewDataFlow_3 - MulNode__a - MulNode - a - - 7 - 10.5 - - - - - - - diff --git a/Superv/Graphs/GraphNoInputData.xml b/Superv/Graphs/GraphNoInputData.xml deleted file mode 100644 index 13d1859..0000000 --- a/Superv/Graphs/GraphNoInputData.xml +++ /dev/null @@ -1,127 +0,0 @@ - - - - - - - ? - ? - aNewDataFlow_1 - 1 - ? - - aNewDataFlow_1 - - - double - Add__x - - - double - Add__y - - - - - double - Add__FuncValue - - - double - Add__z - - - - - - 14/4/2006 - 14:54:2 - 14/4/2006 - 14:54:16 - 3.0 - ? - ? - ? - 0 - 0 - - - - - AddComponent - AddComponent - Add - 0 - ? - - Add - - - double - x - - - double - y - - - - - double - FuncValue - - - double - z - - - - - - 14/4/2006 - 14:54:16 - 14/4/2006 - 14:54:16 - 3.0 - ? - localhost/FactoryServer - Add from AddComponent - 0 - 0 - - - - - - aNewDataFlow_1 - Add__x - Add - x - - 7 - 0.4 - - - - - - - diff --git a/Superv/Graphs/GraphNonVoidEndLoop.xml b/Superv/Graphs/GraphNonVoidEndLoop.xml deleted file mode 100644 index fbc4c91..0000000 --- a/Superv/Graphs/GraphNonVoidEndLoop.xml +++ /dev/null @@ -1,266 +0,0 @@ - - - - - - -? - ? - GraphNonVoidEndLoop - 1 - ? - -GraphNonVoidEndLoop_1 - - -long - Init__Index - -long - Init__Min - -long - Init__Max - -long - Init__Incr - - -long - EndInit__Index - -long - EndInit__Min - -long - EndInit__Max - -long - EndInit__Incr - - - 24/3/2003 - 14:44:35 - 16/12/2004 - 16:53:28 - 1.04 - ? - ? - ? - 0 - 0 - - -? - ? - Init - 4 - EndInit - -Init - - -long - Index - -long - Min - -long - Max - -long - Incr - - -long - Index - -long - Min - -long - Max - -long - Incr - - - -Init - - - - - - - - -More - - - - - - - - - - -Next - - - - - 16/12/2004 - 16:53:28 - 16/12/2004 - 16:53:28 - 1.04 - ? - ? - Compute Node - 17 - 257 - -? - ? - EndInit - 5 - Init - -EndInit - - -long - Index - -long - Min - -long - Max - -long - Incr - - -long - Index - -long - Min - -long - Max - -long - Incr - - - -EndLoop - - - - - 16/12/2004 - 16:53:28 - 16/12/2004 - 16:53:28 - 1.04 - ? - ? - Compute Node - 411 - 260 - - -Init - DoLoop - EndInit - DoLoop - - -Init - Index - EndInit - Index - - -Init - Min - EndInit - Min - - -Init - Max - EndInit - Max - - -Init - Incr - EndInit - Incr - - -EndInit - DoLoop - Init - DoLoop - - - -GraphNonVoidEndLoop - Init__Index - Init - Index - -3 - 0 - - -GraphNonVoidEndLoop - Init__Min - Init - Min - -3 - 5 - - -GraphNonVoidEndLoop - Init__Max - Init - Max - -3 - 10 - - -GraphNonVoidEndLoop - Init__Incr - Init - Incr - -3 - 1 - diff --git a/Superv/Graphs/GraphNotClosedChainInsideLoop.xml b/Superv/Graphs/GraphNotClosedChainInsideLoop.xml deleted file mode 100644 index bea4d20..0000000 --- a/Superv/Graphs/GraphNotClosedChainInsideLoop.xml +++ /dev/null @@ -1,456 +0,0 @@ - - - - - - - ? - ? - GraphSwitch - 1 - ? - - GraphSwitch - - - long - InitLoopSwitch__Index - - - long - InitLoopSwitch__Min - - - long - InitLoopSwitch__Max - - - - - long - EndOfInitLoopSwitch__Index - - - long - EndOfInitLoopSwitch__Min - - - long - EndOfInitLoopSwitch__Max - - - int - Switch__Even - - - long - EndOfSwitch__a - - - - - - 1/10/2003 - 17:23:54 - 14/4/2006 - 15:47:47 - 1.05 - ? - ? - ? - 0 - 0 - - - - - ? - ? - IsOdd - 3 - ? - - IsOdd - - - long - a - - - - - long - a - - - - - - - IsOdd - - - - - - - - 14/4/2006 - 15:42:11 - 14/4/2006 - 15:42:11 - 1.05 - ? - ? - Python function - 389 - 65 - - - ? - ? - InitLoopSwitch - 4 - EndOfInitLoopSwitch - - InitLoopSwitch - - - long - Index - - - long - Min - - - long - Max - - - - - long - Index - - - long - Min - - - long - Max - - - - - - - InitLoop - - - - - MoreLoop - - - - - - - - - NextLoop - - - - - - 14/4/2006 - 15:42:11 - 14/4/2006 - 15:42:11 - 1.05 - ? - ? - Compute Node - 10 - 129 - - - ? - ? - EndOfInitLoopSwitch - 5 - InitLoopSwitch - - EndOfInitLoopSwitch - - - long - Index - - - long - Min - - - long - Max - - - - - long - Index - - - long - Min - - - long - Max - - - - - - - ? - - - - 14/4/2006 - 15:42:11 - 14/4/2006 - 15:42:11 - 1.05 - ? - ? - Compute Node - 776 - 170 - - - ? - ? - Switch - 6 - EndOfSwitch - - Switch - - - long - a - - - - - long - Odd - - - int - Even - - - int - a - - - - - - - Switch - - - - - - - - 14/4/2006 - 15:42:11 - 14/4/2006 - 15:42:11 - 1.05 - ? - ? - Compute Node - 194 - 129 - - - ? - ? - EndOfSwitch - 7 - Switch - - EndOfSwitch - - - long - a - - - - - long - a - - - - - - - ? - - - - 14/4/2006 - 15:42:11 - 14/4/2006 - 15:42:11 - 1.05 - ? - ? - Compute Node - 582 - 170 - - - - - IsOdd - a - EndOfSwitch - a - - - 564 - 201 - - - 564 - 134 - - - - - InitLoopSwitch - DoLoop - EndOfInitLoopSwitch - DoLoop - - - - InitLoopSwitch - Index - Switch - a - - - - InitLoopSwitch - Min - EndOfInitLoopSwitch - Min - - - - InitLoopSwitch - Max - EndOfInitLoopSwitch - Max - - - - EndOfInitLoopSwitch - DoLoop - InitLoopSwitch - DoLoop - - - - Switch - Odd - IsOdd - Gate - - - - Switch - a - IsOdd - a - - - 371 - 136 - - - 371 - 200 - - - - - Switch - Default - EndOfSwitch - Default - - - - - - GraphSwitch - InitLoopSwitch__Index - InitLoopSwitch - Index - - 3 - 0 - - - - - GraphSwitch - InitLoopSwitch__Min - InitLoopSwitch - Min - - 3 - 0 - - - - - GraphSwitch - InitLoopSwitch__Max - InitLoopSwitch - Max - - 3 - 35 - - - - - - - diff --git a/Superv/Graphs/GraphNotClosedChainInsideSwitch.xml b/Superv/Graphs/GraphNotClosedChainInsideSwitch.xml deleted file mode 100644 index 0712568..0000000 --- a/Superv/Graphs/GraphNotClosedChainInsideSwitch.xml +++ /dev/null @@ -1,451 +0,0 @@ - - - - - - - ? - ? - GraphSwitch - 1 - ? - - GraphSwitch - - - long - InitLoopSwitch__Index - - - long - InitLoopSwitch__Min - - - long - InitLoopSwitch__Max - - - long - EndOfSwitch__a - - - - - long - IsOdd__a - - - long - EndOfInitLoopSwitch__Index - - - long - EndOfInitLoopSwitch__Min - - - long - EndOfInitLoopSwitch__Max - - - int - Switch__Even - - - - - - 1/10/2003 - 17:23:54 - 14/4/2006 - 15:42:25 - 1.05 - ? - ? - ? - 0 - 0 - - - - - ? - ? - IsOdd - 3 - ? - - IsOdd - - - long - a - - - - - long - a - - - - - - - IsOdd - - - - - - - - 14/4/2006 - 15:42:11 - 14/4/2006 - 15:42:11 - 1.05 - ? - ? - Python function - 389 - 65 - - - ? - ? - InitLoopSwitch - 4 - EndOfInitLoopSwitch - - InitLoopSwitch - - - long - Index - - - long - Min - - - long - Max - - - - - long - Index - - - long - Min - - - long - Max - - - - - - - InitLoop - - - - - MoreLoop - - - - - - - - - NextLoop - - - - - - 14/4/2006 - 15:42:11 - 14/4/2006 - 15:42:11 - 1.05 - ? - ? - Compute Node - 10 - 129 - - - ? - ? - EndOfInitLoopSwitch - 5 - InitLoopSwitch - - EndOfInitLoopSwitch - - - long - Index - - - long - Min - - - long - Max - - - - - long - Index - - - long - Min - - - long - Max - - - - - - - ? - - - - 14/4/2006 - 15:42:11 - 14/4/2006 - 15:42:11 - 1.05 - ? - ? - Compute Node - 776 - 170 - - - ? - ? - Switch - 6 - EndOfSwitch - - Switch - - - long - a - - - - - long - Odd - - - int - Even - - - int - a - - - - - - - Switch - - - - - - - - 14/4/2006 - 15:42:11 - 14/4/2006 - 15:42:11 - 1.05 - ? - ? - Compute Node - 194 - 129 - - - ? - ? - EndOfSwitch - 7 - Switch - - EndOfSwitch - - - long - a - - - - - long - a - - - - - - - ? - - - - 14/4/2006 - 15:42:11 - 14/4/2006 - 15:42:11 - 1.05 - ? - ? - Compute Node - 582 - 170 - - - - - InitLoopSwitch - DoLoop - EndOfInitLoopSwitch - DoLoop - - - - InitLoopSwitch - Index - Switch - a - - - - InitLoopSwitch - Min - EndOfInitLoopSwitch - Min - - - - InitLoopSwitch - Max - EndOfInitLoopSwitch - Max - - - - EndOfInitLoopSwitch - DoLoop - InitLoopSwitch - DoLoop - - - - Switch - Odd - IsOdd - Gate - - - - Switch - a - IsOdd - a - - - 371 - 136 - - - 371 - 200 - - - - - Switch - Default - EndOfSwitch - Default - - - - EndOfSwitch - a - EndOfInitLoopSwitch - Index - - - - - - GraphSwitch - InitLoopSwitch__Index - InitLoopSwitch - Index - - 3 - 0 - - - - - GraphSwitch - InitLoopSwitch__Min - InitLoopSwitch - Min - - 3 - 0 - - - - - GraphSwitch - InitLoopSwitch__Max - InitLoopSwitch - Max - - 3 - 35 - - - - - - - diff --git a/Superv/Graphs/GraphObjRef.xml b/Superv/Graphs/GraphObjRef.xml deleted file mode 100755 index 3403664..0000000 --- a/Superv/Graphs/GraphObjRef.xml +++ /dev/null @@ -1,390 +0,0 @@ - - - - - - - ? - ? - GraphObjRef - 1 - ? - - GraphObjRef - - - string - SyrComponent__aContainer - - - string - SyrComponent__aComponent - - - long - Init__Index - - - - - objref - EndInit__Addder - - - objref - EndInit__anObjRef - - - long - EndInit__Index - - - - - - 1/7/2003 - 19:4:59 - 25/8/2005 - 11:24:44 - 1.04 - ? - ? - ? - 0 - 0 - - - - - AddComponent - AddComponent - Addition - 0 - ? - - Addition - - - - Adder - Adder - - - - - - 25/8/2005 - 11:24:44 - 25/8/2005 - 11:24:44 - 1.04 - ? - localhost/AdditionServer - Addition from AddComponent - 10 - 15 - - - ? - ? - SyrComponent - 3 - ? - - SyrComponent - - - string - aContainer - - - string - aComponent - - - - - objref - anObjRef - - - - - - - SyrComponent - - - - - - - - - - ",ComponentRef ]]> - - - - - 25/8/2005 - 11:24:44 - 25/8/2005 - 11:24:44 - 1.04 - ? - ? - Compute Node - 26 - 209 - - - ? - ? - Init - 4 - EndInit - - Init - - - objref - Addder - - - objref - anObjRef - - - long - Index - - - - - objref - Addder - - - objref - anObjRef - - - long - Index - - - - - - - Init - - - - - - - - More - - - Index : ]]> - - - - - - Nextfori - - - - - - - 25/8/2005 - 11:24:44 - 25/8/2005 - 11:24:44 - 1.04 - ? - ? - Compute Node - 236 - 161 - - - ? - ? - EndInit - 5 - Init - - EndInit - - - objref - Addder - - - objref - anObjRef - - - long - Index - - - - - objref - Addder - - - objref - anObjRef - - - long - Index - - - - - - - ? - - - - 25/8/2005 - 11:24:44 - 25/8/2005 - 11:24:44 - 1.04 - ? - ? - Compute Node - 449 - 165 - - - - - Addition - Adder - Init - Addder - - - 202 - 194 - - - 201 - 95 - - - - - SyrComponent - anObjRef - Init - anObjRef - - - 209 - 224 - - - 208 - 289 - - - - - Init - DoLoop - EndInit - DoLoop - - - - Init - Addder - EndInit - Addder - - - - Init - anObjRef - EndInit - anObjRef - - - - Init - Index - EndInit - Index - - - - EndInit - DoLoop - Init - DoLoop - - - - - - GraphObjRef - SyrComponent__aContainer - SyrComponent - aContainer - - 18 - - - - - - GraphObjRef - SyrComponent__aComponent - SyrComponent - aComponent - - 18 - - - - - - GraphObjRef - Init__Index - Init - Index - - 3 - 0 - - - - - - - diff --git a/Superv/Graphs/GraphObjRefOMNIORB4.xml b/Superv/Graphs/GraphObjRefOMNIORB4.xml deleted file mode 100644 index 5f40277..0000000 --- a/Superv/Graphs/GraphObjRefOMNIORB4.xml +++ /dev/null @@ -1,648 +0,0 @@ - - - - - - - ? - ? - GraphObjRefOMNIORB4 - 1 - ? - - GraphObjRefOMNIORB4 - - - string - AddComponent__aContainer - - - string - AddComponent__aComponent - - - string - LccAddComponent__aContainer - - - string - LccAddComponent__aComponentName - - - string - EmbeddedLccAddComponent__aContainer - - - string - EmbeddedLccAddComponent__aComponentName - - - - - boolean - AdditionObjRefs__return - - - Adder - AdditionObjRefs__RetAdder2 - - - Adder - AdditionObjRefs__RetAdder3 - - - objref - FindComponentInstance__AddComponentObjRef - - - objref - FindComponentInstance_1__AddComponentRef - - - boolean - AdditionObjRefs_1__return - - - AddComponent - AdditionObjRefs_1__RetAddComponent1 - - - Adder - AdditionObjRefs_1__RetAdder2 - - - Adder - AdditionObjRefs_1__RetAdder3 - - - - - - 8/8/2005 - 12:45:3 - 25/8/2005 - 11:29:11 - 2.0 - ? - ? - ? - 0 - 0 - - - - - ? - ? - AddComponent - 3 - ? - - AddComponent - - - string - aContainer - - - string - aComponent - - - - - objref - AddComponentobjref - - - - - - - defAddComponent - - - - - - - - - - - - 25/8/2005 - 11:29:11 - 25/8/2005 - 11:29:11 - 2.0 - ? - ? - Compute Node - 240 - 31 - - - AddComponent - AddComponent - Addition - 0 - ? - - Addition - - - - Adder - Adder - - - - - - 25/8/2005 - 11:29:11 - 25/8/2005 - 11:29:11 - 2.0 - ? - localhost/FactoryServer - Addition from AddComponent - 13 - 185 - - - AddComponent - AddComponent - EmbeddedAddition - 0 - ? - - Addition - - - - Adder - Adder - - - - - - 25/8/2005 - 11:29:11 - 25/8/2005 - 11:29:11 - 2.0 - ? - localhost/SuperVisionContainer - Addition from AddComponent - 17 - 347 - - - ? - ? - LccAddComponent - 2 - ? - - LccAddComponent - - - SuperVisionTest::Adder - Adder - - - string - aContainer - - - string - aComponentName - - - - - Component - return - - - - - - 25/8/2005 - 11:29:11 - 25/8/2005 - 11:29:11 - 2.0 - ? - ? - Compute Node - 235 - 184 - - - ? - ? - EmbeddedLccAddComponent - 2 - ? - - LccAddComponent - - - SuperVisionTest::Adder - Adder - - - string - aContainer - - - string - aComponentName - - - - - Component - return - - - - - - 25/8/2005 - 11:29:11 - 25/8/2005 - 11:29:11 - 2.0 - ? - ? - Compute Node - 235 - 347 - - - AddComponent - AddComponent - AdditionObjRefs - 0 - ? - - AdditionObjRefs - - - AddComponent - AddComponent1 - - - Adder - Adder2 - - - Adder - Adder3 - - - - - boolean - return - - - AddComponent - RetAddComponent1 - - - Adder - RetAdder2 - - - Adder - RetAdder3 - - - - - - 25/8/2005 - 11:29:11 - 25/8/2005 - 11:29:11 - 2.0 - ? - localhost/FactoryServer - AdditionObjRefs from AddComponent - 453 - 164 - - - ? - ? - FindComponentInstance - 3 - ? - - FindComponentInstance - - - objref - AddComponentObjRef - - - - - objref - AddComponentObjRef - - - - - - - FindComponentInstance - - - - - - - - - - - - - - - - - 25/8/2005 - 11:29:11 - 25/8/2005 - 11:29:11 - 2.0 - ? - ? - Compute Node - 648 - 184 - - - ? - ? - FindComponentInstance_1 - 3 - ? - - FindComponentInstance_1 - - - objref - AddComponentRef - - - - - objref - AddComponentRef - - - - - - - FindComponentInstance_1 - - - - - - - - - - - - - - - - - - - - - 25/8/2005 - 11:29:11 - 25/8/2005 - 11:29:11 - 3.0 - ? - ? - Compute Node - 647 - 31 - - - AddComponent - AddComponent - AdditionObjRefs_1 - 0 - ? - - AdditionObjRefs - - - AddComponent - AddComponent1 - - - Adder - Adder2 - - - Adder - Adder3 - - - - - boolean - return - - - AddComponent - RetAddComponent1 - - - Adder - RetAdder2 - - - Adder - RetAdder3 - - - - - - 25/8/2005 - 11:29:11 - 25/8/2005 - 11:29:11 - 3.0 - ? - localhost/AdditionObjRefsServer - AdditionObjRefs from AddComponent - 457 - 345 - - - - - AddComponent - AddComponentobjref - AdditionObjRefs - AddComponent1 - - - - AddComponent - AddComponentobjref - FindComponentInstance_1 - AddComponentRef - - - - AddComponent - AddComponentobjref - AdditionObjRefs_1 - AddComponent1 - - - - Addition - Adder - LccAddComponent - Adder - - - - EmbeddedAddition - Adder - EmbeddedLccAddComponent - Adder - - - - LccAddComponent - return - AdditionObjRefs - Adder2 - - - - LccAddComponent - return - AdditionObjRefs_1 - Adder2 - - - - EmbeddedLccAddComponent - return - AdditionObjRefs - Adder3 - - - - EmbeddedLccAddComponent - return - AdditionObjRefs_1 - Adder3 - - - - AdditionObjRefs - RetAddComponent1 - FindComponentInstance - AddComponentObjRef - - - - - - GraphObjRefOMNIORB4 - AddComponent__aContainer - AddComponent - aContainer - - 18 - - - - - - GraphObjRefOMNIORB4 - AddComponent__aComponent - AddComponent - aComponent - - 18 - - - - - - GraphObjRefOMNIORB4 - LccAddComponent__aContainer - LccAddComponent - aContainer - - 18 - - - - - - GraphObjRefOMNIORB4 - LccAddComponent__aComponentName - LccAddComponent - aComponentName - - 18 - - - - - - GraphObjRefOMNIORB4 - EmbeddedLccAddComponent__aContainer - EmbeddedLccAddComponent - aContainer - - 18 - - - - - - GraphObjRefOMNIORB4 - EmbeddedLccAddComponent__aComponentName - EmbeddedLccAddComponent - aComponentName - - 18 - - - - - - - - diff --git a/Superv/Graphs/GraphPyFunctions.xml b/Superv/Graphs/GraphPyFunctions.xml deleted file mode 100755 index 8847cb1..0000000 --- a/Superv/Graphs/GraphPyFunctions.xml +++ /dev/null @@ -1,674 +0,0 @@ - - - - - - -? - ? - GraphPyFunctions_1 - 1 - ? - -GraphPyFunctions_1 - - -long - InitLoop__Index - -long - InitLoop__Min - -long - InitLoop__Max - -long - InitLoop_1__Index - -long - InitLoop_1__Min - -long - InitLoop_1__Max - - -long - EndOfInitLoop__Index - -long - EndOfInitLoop__Min - -long - EndOfInitLoop__Max - -long - EndOfInitLoop_1__Index - -long - EndOfInitLoop_1__Min - -long - EndOfInitLoop_1__Max - -int - Switch__Even - -int - Switch_1__Even - - - 23/10/2003 - 17:46:20 - 8/7/2005 - 11:22:37 - 1.05 - ? - ? - ? - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - - -long - a - - - -IsOdd - - 8/7/2005 - 11:22:37 - 8/7/2005 - 11:22:37 - 1.05 - ? - ? - Python function - 388 - 50 - -? - ? - IsOdd_1 - 3 - ? - -IsOdd_1 - - -long - a - - -long - a - - - -IsOdd - - - - - - 8/7/2005 - 11:22:37 - 8/7/2005 - 11:22:37 - 1.05 - ? - ? - Python function - 391 - 288 - -? - ? - InitLoop - 4 - EndOfInitLoop - -InitLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -InitLoop - - - -MoreLoop - - - - - - - -NextLoop - - - - 8/7/2005 - 11:22:37 - 8/7/2005 - 11:22:37 - 1.05 - ? - ? - Compute Node - 10 - 129 - -? - ? - EndOfInitLoop - 5 - InitLoop - -EndOfInitLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -EndInitLoop - - 8/7/2005 - 11:22:37 - 8/7/2005 - 11:22:37 - 1.05 - ? - ? - Compute Node - 766 - 127 - -? - ? - InitLoop_1 - 4 - EndOfInitLoop_1 - -InitLoop_1 - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -InitLoop - - -MoreLoop - - -NextLoop - - 8/7/2005 - 11:22:37 - 8/7/2005 - 11:22:37 - 1.05 - ? - ? - Compute Node - 12 - 369 - -? - ? - EndOfInitLoop_1 - 5 - InitLoop_1 - -EndOfInitLoop_1 - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -EndInitLoop - - 8/7/2005 - 11:22:37 - 8/7/2005 - 11:22:37 - 1.05 - ? - ? - Compute Node - 784 - 361 - -? - ? - Switch - 6 - EndOfSwitch - -Switch - - -long - a - - -long - Odd - -int - Even - -int - a - - - -Switch - - 8/7/2005 - 11:22:37 - 8/7/2005 - 11:22:37 - 1.05 - ? - ? - Compute Node - 186 - 130 - -? - ? - EndOfSwitch - 7 - Switch - -EndOfSwitch - - -long - a - - -long - a - - - -EndOfSwitch_1 - - 8/7/2005 - 11:22:37 - 8/7/2005 - 11:22:37 - 1.05 - ? - ? - Compute Node - 587 - 126 - -? - ? - Switch_1 - 6 - EndOfSwitch_1 - -Switch_1 - - -long - a - - -long - Odd - -int - Even - -int - a - - - -Switch - - - - - - 8/7/2005 - 11:22:37 - 8/7/2005 - 11:22:37 - 1.05 - ? - ? - Compute Node - 185 - 368 - -? - ? - EndOfSwitch_1 - 7 - Switch_1 - -EndOfSwitch_1 - - -long - a - - -long - a - - - -EndOfSwitch_1 - - 8/7/2005 - 11:22:37 - 8/7/2005 - 11:22:37 - 1.05 - ? - ? - Compute Node - 594 - 362 - - -IsOdd - a - EndOfSwitch - a - - -571 - 160 - -571 - 129 - -IsOdd_1 - a - EndOfSwitch_1 - a - - -580 - 396 - -580 - 368 - -InitLoop - DoLoop - EndOfInitLoop - DoLoop - - -InitLoop - Index - Switch - a - - -InitLoop - Min - EndOfInitLoop - Min - - -InitLoop - Max - EndOfInitLoop - Max - - -EndOfInitLoop - DoLoop - InitLoop - DoLoop - - -InitLoop_1 - DoLoop - EndOfInitLoop_1 - DoLoop - - -InitLoop_1 - Index - Switch_1 - a - - -InitLoop_1 - Min - EndOfInitLoop_1 - Min - - -InitLoop_1 - Max - EndOfInitLoop_1 - Max - - -EndOfInitLoop_1 - DoLoop - InitLoop_1 - DoLoop - - -Switch - Odd - IsOdd - Gate - - -Switch - a - IsOdd - a - - -366 - 131 - -365 - 223 - -Switch - Default - EndOfSwitch - Default - - -572 - 194 - -571 - 257 - -EndOfSwitch - a - EndOfInitLoop - Index - - -Switch_1 - Odd - IsOdd_1 - Gate - - -Switch_1 - a - IsOdd_1 - a - - -368 - 368 - -367 - 460 - -Switch_1 - Default - EndOfSwitch_1 - Default - - -EndOfSwitch_1 - a - EndOfInitLoop_1 - Index - - - -GraphPyFunctions_1 - InitLoop__Index - InitLoop - Index - -3 - 0 - - -GraphPyFunctions_1 - InitLoop__Min - InitLoop - Min - -3 - 0 - - -GraphPyFunctions_1 - InitLoop__Max - InitLoop - Max - -3 - 25 - - -GraphPyFunctions_1 - InitLoop_1__Index - InitLoop_1 - Index - -3 - 0 - - -GraphPyFunctions_1 - InitLoop_1__Min - InitLoop_1 - Min - -3 - 0 - - -GraphPyFunctions_1 - InitLoop_1__Max - InitLoop_1 - Max - -3 - 35 - diff --git a/Superv/Graphs/GraphPythonSyntaxError.xml b/Superv/Graphs/GraphPythonSyntaxError.xml deleted file mode 100644 index c3248cc..0000000 --- a/Superv/Graphs/GraphPythonSyntaxError.xml +++ /dev/null @@ -1,136 +0,0 @@ - - - - - - - ? - ? - aNewDataFlow_2 - 1 - ? - - aNewDataFlow_2 - - - boolean - ErrorNode__a - - - boolean - ErrorNode__b - - - - - boolean - ErrorNode__c - - - - - - 14/4/2006 - 14:55:17 - 14/4/2006 - 15:0:48 - 3.0 - ? - ? - ? - 0 - 0 - - - - - ? - ? - ErrorNode - 3 - ? - - ErrorNode - - - boolean - a - - - boolean - b - - - - - boolean - c - - - - - - - ErrorNode - - - - - 14/4/2006 - 15:0:48 - 14/4/2006 - 15:0:48 - 3.0 - ? - ? - Compute Node - 0 - 0 - - - - - - aNewDataFlow_2 - ErrorNode__a - ErrorNode - a - - 3 - 1 - - - - - aNewDataFlow_2 - ErrorNode__b - ErrorNode - b - - 3 - 0 - - - - - - - diff --git a/Superv/Graphs/GraphSIGFPE.xml b/Superv/Graphs/GraphSIGFPE.xml deleted file mode 100644 index 0a43a0c..0000000 --- a/Superv/Graphs/GraphSIGFPE.xml +++ /dev/null @@ -1,106 +0,0 @@ - - - - - - -? - ? - GraphSIGFPE - 1 - ? - -GraphSIGFPE - - -long - SIGFPEfunc__a - -long - SIGFPEfunc__b - - -long - SIGFPEfunc__return - - - 8/12/2004 - 18:15:9 - 8/12/2004 - 18:15:36 - 2.0 - JR - ? - ? - 0 - 0 - - -SIGNALSComponent - SIGNALSComponent - SIGFPEfunc - 0 - ? - -SIGFPEfunc - - -long - a - -long - b - - -long - return - - - 8/12/2004 - 18:15:36 - 8/12/2004 - 18:15:36 - 2.0 - ? - localhost/FactoryServer - SIGFPEfunc from SIGNALSComponent - 134 - 137 - - - -GraphSIGFPE - SIGFPEfunc__a - SIGFPEfunc - a - -3 - 1 - - -GraphSIGFPE - SIGFPEfunc__b - SIGFPEfunc - b - -3 - 0 - diff --git a/Superv/Graphs/GraphSIGFPEPython.xml b/Superv/Graphs/GraphSIGFPEPython.xml deleted file mode 100644 index 7e1cc06..0000000 --- a/Superv/Graphs/GraphSIGFPEPython.xml +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - -? - ? - SIGFPEPython - 1 - ? - -SIGFPEPython - - - - - 9/12/2004 - 18:7:31 - 10/12/2004 - 12:35:36 - 2.0 - JR - ? - ? - 0 - 0 - - -? - ? - SIGFPEPython - 3 - ? - -SIGFPEPython - - - - - -SIGFPEPython - - - - - - 10/12/2004 - 12:35:36 - 10/12/2004 - 12:35:36 - 2.0 - ? - ? - Compute Node - 118 - 159 - - diff --git a/Superv/Graphs/GraphSIGSEGV.xml b/Superv/Graphs/GraphSIGSEGV.xml deleted file mode 100644 index 09ec53e..0000000 --- a/Superv/Graphs/GraphSIGSEGV.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - -? - ? - GraphSIGSEGV - 1 - ? - -GraphSIGSEGV - - - -long - SIGSEGVfunc__return - - - 8/12/2004 - 18:9:47 - 8/12/2004 - 18:13:40 - 2.0 - JR - ? - ? - 0 - 0 - - -SIGNALSComponent - SIGNALSComponent - SIGSEGVfunc - 0 - ? - -SIGSEGVfunc - - - -long - return - - - 8/12/2004 - 18:10:12 - 8/12/2004 - 18:10:12 - 2.0 - ? - localhost/FactoryServer - SIGSEGVfunc from SIGNALSComponent - 152 - 197 - - diff --git a/Superv/Graphs/GraphSIGSEGVPython.xml b/Superv/Graphs/GraphSIGSEGVPython.xml deleted file mode 100644 index 1fdac13..0000000 --- a/Superv/Graphs/GraphSIGSEGVPython.xml +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - -? - ? - GraphSIGSEGVPython - 1 - ? - -GraphSIGSEGVPython - - - - - 9/12/2004 - 18:13:21 - 10/12/2004 - 12:39:15 - 2.0 - JR - ? - ? - 0 - 0 - - -? - ? - SIGSEGVPython - 3 - ? - -SIGSEGVPython - - - - - -SIGSEGVPython - - - - - - 10/12/2004 - 12:39:15 - 10/12/2004 - 12:39:15 - 2.0 - ? - ? - Compute Node - 105 - 143 - - diff --git a/Superv/Graphs/GraphStream.xml b/Superv/Graphs/GraphStream.xml deleted file mode 100644 index 13c95a3..0000000 --- a/Superv/Graphs/GraphStream.xml +++ /dev/null @@ -1,467 +0,0 @@ - - - - - -? - ? - GraphStream - 9 - 0 - 0 - 0 - ? - -GraphStream - - -long - Add\x - -long - Add\y - -long - Sub\x - -long - StreamAdd\x - -long - StreamAdd\y - - -long - Div\z - -long - StreamAdd\z - - -1 - Add\istream - 2 - 0 - 0 - 0 - -1 - StreamAdd\istream - 2 - 0 - 0 - 0 - -1 - Div\ostream - 2 - 0 - -1 - StreamAdd\ostream - 2 - 0 - -1 - StreamAdd\OStream - 2 - 0 - - 23/4/2004 - 17:0:10 - 12/5/2004 - 10:38:33 - 2.0 - ? - ? - Test of DataStreamPorts in FactoryNodes - 0 - 0 - - -DataStreamFactory - DataStreamFactory - NewDataStream - 0 - ? - -NewDataStream - - - -DataStream - DataStream - - - 12/5/2004 - 10:38:32 - 12/5/2004 - 10:38:32 - 2.0 - ? - FactoryServer - NewDataStream from DataStreamFactory - 4 - 10 - -DataStreamFactory - DataStreamFactory - Add - 0 - ? - -Add - - -long - x - -long - y - - -long - z - - -1 - istream - 2 - 0 - 0 - 0 - -1 - ostream - 2 - 0 - -1 - OStream - 2 - 0 - - 12/5/2004 - 10:38:33 - 12/5/2004 - 10:38:33 - 2.0 - ? - FactoryServer - Add from DataStreamFactory from DataStreamComponent - 6 - 370 - -DataStreamFactory - DataStreamFactory - Sub - 0 - ? - -Sub - - -long - x - -long - y - - -long - z - - -1 - istream - 2 - 0 - 0 - 0 - -1 - Istream - 2 - 0 - 0 - 0 - - 12/5/2004 - 10:38:33 - 12/5/2004 - 10:38:33 - 2.0 - ? - FactoryServer - Sub from DataStreamFactory from DataStreamComponent - 234 - 216 - -DataStreamFactory - DataStreamFactory - Mul - 0 - ? - -Mul - - -long - x - -long - y - - -long - z - - - 12/5/2004 - 10:38:33 - 12/5/2004 - 10:38:33 - 2.0 - ? - FactoryServer - Mul from DataStreamFactory from DataStreamComponent - 448 - 342 - -DataStreamFactory - DataStreamFactory - Div - 0 - ? - -Div - - -long - x - -long - y - - -long - z - - -1 - ostream - 2 - 0 - - 12/5/2004 - 10:38:33 - 12/5/2004 - 10:38:33 - 2.0 - ? - FactoryServer - Div from DataStreamFactory from DataStreamComponent - 678 - 214 - -? - ? - StreamAdd - 2 - ? - -StreamAdd - - -objref - this - -long - x - -long - y - - -long - z - - -1 - istream - 2 - 0 - 0 - 0 - -1 - ostream - 2 - 0 - -1 - OStream - 2 - 0 - - 12/5/2004 - 10:38:33 - 12/5/2004 - 10:38:33 - 2.0 - ? - ? - Compute Node - 448 - 9 - - -NewDataStream - DataStream - StreamAdd - this - - -Add - z - Sub - y - - -185 - 310 - -185 - 437 - -Add - z - Mul - y - - -Add - ostream - Sub - istream - - -199 - 343 - -200 - 497 - -Add - OStream - Sub - Istream - - -219 - 374 - -218 - 529 - -Sub - z - Mul - x - - -426 - 408 - -427 - 282 - -Sub - z - Div - x - - -Mul - z - Div - y - - -648 - 309 - -648 - 406 - - -GraphStream - Add\x - Add - x - -3 - 3 - - -GraphStream - Add\y - Add - y - -3 - 7 - - -GraphStream - Sub\x - Sub - x - -3 - 1 - - -GraphStream - StreamAdd\x - StreamAdd - x - -3 - 1 - - -GraphStream - StreamAdd\y - StreamAdd - y - -3 - 2 - - -GraphStream - Add\istream - Add - istream - -3 - 1 - - -GraphStream - StreamAdd\istream - StreamAdd - istream - -3 - 136159896 - diff --git a/Superv/Graphs/GraphStreamInLines.xml b/Superv/Graphs/GraphStreamInLines.xml deleted file mode 100644 index 62b5ef1..0000000 --- a/Superv/Graphs/GraphStreamInLines.xml +++ /dev/null @@ -1,532 +0,0 @@ - - - - - - -? - ? - GraphStreamInLines - 9 - 300 - 0 - 0 - ? - -GraphStreamInLines - - -long - InitLoop__Index - -long - InitLoop__Min - -long - InitLoop__Max - - -long - EndOfInitLoop__Index - -long - EndOfInitLoop__Min - -long - EndOfInitLoop__Max - - -1 - EndOfInitLoop__ostream - 1 - 0 - - 27/4/2004 - 15:5:25 - 8/7/2005 - 11:28:41 - 2.0 - ? - ? - ? - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - -boolean - Even - - -long - a - - -1 - istream - 1 - 1 - 2 - 0 - -1 - ostream - 2 - 0 - - -IsOdd - - - - - - 8/7/2005 - 11:28:41 - 8/7/2005 - 11:28:41 - 2.0 - ? - ? - Python function - 404 - 7 - -? - ? - InitLoop - 4 - EndOfInitLoop - -InitLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - -1 - istream - 1 - 1 - 2 - 0 - -1 - ostream - 2 - 0 - - -? - - -? - - -? - - 8/7/2005 - 11:28:41 - 8/7/2005 - 11:28:41 - 2.0 - ? - ? - Compute Node - 11 - 119 - -? - ? - EndOfInitLoop - 5 - InitLoop - -EndOfInitLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - -1 - istream - 2 - 0 - 0 - 0 - -1 - ostream - 1 - 0 - - -EndOfInitLoop - - - - - - - - 8/7/2005 - 11:28:41 - 8/7/2005 - 11:28:41 - 2.0 - ? - ? - Compute Node - 807 - 104 - -? - ? - Switch - 6 - EndSwitch - -Switch - - -long - a - - -long - Odd - -int - Even - -int - a - - -1 - istream - 1 - 1 - 2 - 0 - -1 - ostream - 2 - 0 - - -Switch - - - - - - 8/7/2005 - 11:28:41 - 8/7/2005 - 11:28:41 - 2.0 - ? - ? - Compute Node - 198 - 115 - -? - ? - EndSwitch - 7 - Switch - -EndSwitch - - -long - a - - -long - a - - -1 - istream - 1 - 1 - 2 - 0 - -1 - ostream - 1 - 0 - - -EndOfSwitch - - - - - 8/7/2005 - 11:28:41 - 8/7/2005 - 11:28:41 - 2.0 - ? - ? - Compute Node - 604 - 105 - - -IsOdd - a - EndSwitch - a - - -IsOdd - ostream - InitLoop - istream - - -3 - 240 - -3 - 395 - -571 - 394 - -577 - 122 - -InitLoop - DoLoop - EndOfInitLoop - DoLoop - - -InitLoop - Index - Switch - a - - -InitLoop - Min - EndOfInitLoop - Min - - -InitLoop - Max - EndOfInitLoop - Max - - -InitLoop - ostream - EndSwitch - istream - - -586 - 158 - -586 - 362 - -591 - 362 - -591 - 359 - -180 - 359 - -180 - 212 - -181 - 212 - -181 - 214 - -584 - 167 - -584 - 369 - -184 - 368 - -185 - 240 - -EndOfInitLoop - DoLoop - InitLoop - DoLoop - - -Switch - Odd - IsOdd - Gate - - -Switch - Even - IsOdd - Even - - -Switch - a - IsOdd - a - - -Switch - ostream - IsOdd - istream - - -Switch - ostream - EndOfInitLoop - istream - - -779 - 203 - -775 - 261 - -397 - 260 - -403 - 217 - -Switch - Default - EndSwitch - Default - - -EndSwitch - a - EndOfInitLoop - Index - - -EndSwitch - ostream - Switch - istream - - -186 - 240 - -186 - 331 - -790 - 329 - -786 - 161 - - -GraphStreamInLines - InitLoop__Index - InitLoop - Index - -3 - 0 - - -GraphStreamInLines - InitLoop__Min - InitLoop - Min - -3 - 0 - - -GraphStreamInLines - InitLoop__Max - InitLoop - Max - -3 - 35 - diff --git a/Superv/Graphs/GraphStreamInLines_1.cpl b/Superv/Graphs/GraphStreamInLines_1.cpl deleted file mode 100644 index 91c3a29..0000000 --- a/Superv/Graphs/GraphStreamInLines_1.cpl +++ /dev/null @@ -1,77 +0,0 @@ -DEBUT GraphStreamInLines_1 - TIMEOUT 300 - TRACE SANS - DELTA_T 0 - - -# Liste des codes - - CODE EndOfInitLoop - istream I IN ENTIER - ostream T OUT ENTIER - FIN #EndOfInitLoop - - - CODE EndSwitch - istream T IN ENTIER - ostream T OUT ENTIER - FIN #EndSwitch - - - CODE InitLoop - istream T IN ENTIER - ostream I OUT ENTIER - FIN #InitLoop - - - CODE IsOdd - istream T IN ENTIER - ostream I OUT ENTIER - FIN #IsOdd - - - CODE Switch - istream T IN ENTIER - ostream I OUT ENTIER - FIN #Switch - - - - -# Liste des instances - - INSTANCE IsOdd - CODE IsOdd - FIN - - INSTANCE InitLoop - CODE InitLoop - FIN - - INSTANCE EndOfInitLoop - CODE EndOfInitLoop - FIN - - INSTANCE Switch - CODE Switch - FIN - - INSTANCE EndSwitch - CODE EndSwitch - FIN - - - - - -# Liste des liens - - LIEN - IsOdd.ostream 0 => InitLoop.istream TI L1 EXTRANULL ; - InitLoop.ostream 0 => EndSwitch.istream TI L1 EXTRANULL ; - Switch.ostream 0 => IsOdd.istream TI L1 EXTRANULL ; - Switch.ostream 0 => EndOfInitLoop.istream SCHENULL INTERNULL EXTRANULL ; - EndSwitch.ostream 0 => Switch.istream TI L1 EXTRANULL ; - FIN - -FIN diff --git a/Superv/Graphs/GraphStreamTopologies.xml b/Superv/Graphs/GraphStreamTopologies.xml deleted file mode 100644 index 39d40c9..0000000 --- a/Superv/Graphs/GraphStreamTopologies.xml +++ /dev/null @@ -1,478 +0,0 @@ - - - - - -? - ? - GraphStreamTopologies - 9 - 300 - 0 - 0 - ? - -GraphStreamTopologies - - - - -1 - Node_B_2\istream_B_2_1 - 1 - 1 - 2 - 0 - - 4/5/2004 - 10:13:53 - 21/5/2004 - 9:18:58 - 2.0 - JR - ? - Test of SubStreamGraphs of a StreamGraph - 0 - 0 - - -? - ? - Node_A_1 - 3 - ? - -Node_A_1 - - - -long - a_1 - - -1 - istream_A_1_1 - 1 - 1 - 2 - 0 - -1 - istream_A_1_2 - 1 - 1 - 2 - 0 - -1 - istream_A_1_3 - 1 - 1 - 2 - 0 - - -Node_A_1 - - - 21/5/2004 - 9:18:58 - 21/5/2004 - 9:18:58 - 2.0 - ? - ? - Python function - 29 - 66 - -? - ? - Node_A_2 - 3 - ? - -Node_A_2 - - - -long - a_2 - - -1 - istream_A_2_1 - 1 - 1 - 2 - 0 - -1 - ostream_A_2_1 - 1 - 0 - - -Node_A_2 - - - 21/5/2004 - 9:18:58 - 21/5/2004 - 9:18:58 - 2.0 - ? - ? - Python function - 23 - 309 - -? - ? - Node_B_1 - 3 - ? - -Node_B_1 - - -long - b_1 - - -long - b_1 - - -1 - istream_B_1_1 - 1 - 1 - 2 - 0 - - -Node_B_1 - - - 21/5/2004 - 9:18:58 - 21/5/2004 - 9:18:58 - 2.0 - ? - ? - Python function - 249 - 66 - -? - ? - Node_B_2 - 3 - ? - -Node_B_2 - - -long - b_2 - - -long - b_2 - - -1 - istream_B_2_1 - 1 - 1 - 2 - 0 - -1 - ostream_B_2_1 - 1 - 0 - -1 - ostream_B_2_2 - 1 - 0 - - -Node_B_2 - - - 21/5/2004 - 9:18:58 - 21/5/2004 - 9:18:58 - 2.0 - ? - ? - Python function - 245 - 308 - -? - ? - Node_C_1 - 3 - ? - -Node_C_1 - - -long - c_1 - - - -1 - ostream_C_1_1 - 1 - 0 - - -Node_C_1 - - - 21/5/2004 - 9:18:58 - 21/5/2004 - 9:18:58 - 2.0 - ? - ? - Python function - 481 - 67 - -? - ? - Node_C_2 - 3 - ? - -Node_C_2 - - -long - c_2 - - -long - c_2 - - -1 - istream_C_2_1 - 1 - 1 - 2 - 0 - - -Node_C_2 - - - 21/5/2004 - 9:18:58 - 21/5/2004 - 9:18:58 - 2.0 - ? - ? - Python function - 476 - 307 - -? - ? - Node_D_1 - 3 - ? - -Node_D_1 - - -long - d_1 - - - -1 - ostream_D_1_1 - 1 - 0 - - -Node_D_1 - - - 21/5/2004 - 9:18:58 - 21/5/2004 - 9:18:58 - 2.0 - ? - ? - Python function - 703 - 306 - - -Node_A_1 - a_1 - Node_B_1 - b_1 - - -Node_A_2 - a_2 - Node_B_2 - b_2 - - -Node_A_2 - ostream_A_2_1 - Node_A_1 - istream_A_1_1 - - -13 - 164 - -13 - 44 - -207 - 44 - -207 - 409 - -Node_B_1 - b_1 - Node_C_1 - c_1 - - -Node_B_2 - b_2 - Node_C_2 - c_2 - - -Node_B_2 - ostream_B_2_1 - Node_A_1 - istream_A_1_2 - - -14 - 195 - -13 - 299 - -428 - 300 - -428 - 407 - -Node_B_2 - ostream_B_2_2 - Node_A_2 - istream_A_2_1 - - -12 - 406 - -11 - 525 - -427 - 525 - -426 - 438 - -Node_C_1 - ostream_C_1_1 - Node_A_1 - istream_A_1_3 - - -5 - 227 - -5 - 16 - -672 - 16 - -671 - 166 - -Node_C_2 - c_2 - Node_D_1 - d_1 - - -Node_D_1 - ostream_D_1_1 - Node_C_2 - istream_C_2_1 - - -453 - 406 - -454 - 499 - -903 - 500 - -903 - 404 - -Node_D_1 - ostream_D_1_1 - Node_B_1 - istream_B_1_1 - - -229 - 163 - -229 - 282 - -902 - 282 - -903 - 404 - - -GraphStreamTopologies - Node_B_2\istream_B_2_1 - Node_B_2 - istream_B_2_1 - -3 - 1 - diff --git a/Superv/Graphs/GraphStreamTopologies_1.cpl b/Superv/Graphs/GraphStreamTopologies_1.cpl deleted file mode 100644 index b0e6528..0000000 --- a/Superv/Graphs/GraphStreamTopologies_1.cpl +++ /dev/null @@ -1,68 +0,0 @@ -DEBUT GraphStreamTopologies_1 - TIMEOUT 300 - TRACE SANS - DELTA_T 0 - - -# Liste des codes - - CODE Node_A_1 - istream_A_1_1 T IN ENTIER - istream_A_1_2 T IN ENTIER - istream_A_1_3 T IN ENTIER - FIN #Node_A_1 - - - CODE Node_A_2 - istream_A_2_1 T IN ENTIER - ostream_A_2_1 T OUT ENTIER - FIN #Node_A_2 - - - CODE Node_B_2 - istream_B_2_1 T IN ENTIER - ostream_B_2_1 T OUT ENTIER - ostream_B_2_2 T OUT ENTIER - FIN #Node_B_2 - - - CODE Node_C_1 - istream_B_2_1 T IN ENTIER - ostream_C_1_1 T OUT ENTIER - FIN #Node_C_1 - - - - -# Liste des instances - - INSTANCE Node_A_1 - CODE Node_A_1 - FIN - - INSTANCE Node_A_2 - CODE Node_A_2 - FIN - - INSTANCE Node_B_2 - CODE Node_B_2 - FIN - - INSTANCE Node_C_1 - CODE Node_C_1 - FIN - - - - - -# Liste des liens - - LIEN - Node_A_2.ostream_A_2_1 0 => Node_A_1.istream_A_1_1 TI L1 EXTRANULL ; - Node_B_2.ostream_B_2_1 0 => Node_A_1.istream_A_1_2 TI L1 EXTRANULL ; - Node_B_2.ostream_B_2_2 0 => Node_A_2.istream_A_2_1 TI L1 EXTRANULL ; - Node_C_1.ostream_C_1_1 0 => Node_A_1.istream_A_1_3 TI L1 EXTRANULL ; - FIN - -FIN diff --git a/Superv/Graphs/GraphStreamTopologies_2.cpl b/Superv/Graphs/GraphStreamTopologies_2.cpl deleted file mode 100644 index 0916ccc..0000000 --- a/Superv/Graphs/GraphStreamTopologies_2.cpl +++ /dev/null @@ -1,54 +0,0 @@ -DEBUT GraphStreamTopologies_2 - TIMEOUT 300 - TRACE SANS - DELTA_T 0 - - -# Liste des codes - - CODE Node_B_1 - istream_B_1_1 T IN ENTIER - ostream_A_2_1 T OUT ENTIER - FIN #Node_B_1 - - - CODE Node_C_2 - istream_C_2_1 T IN ENTIER - ostream_C_1_1 T OUT ENTIER - FIN #Node_C_2 - - - CODE Node_D_1 - istream_C_2_1 T IN ENTIER - ostream_D_1_1 T OUT ENTIER - FIN #Node_D_1 - - - - -# Liste des instances - - INSTANCE Node_B_1 - CODE Node_B_1 - FIN - - INSTANCE Node_C_2 - CODE Node_C_2 - FIN - - INSTANCE Node_D_1 - CODE Node_D_1 - FIN - - - - - -# Liste des liens - - LIEN - Node_D_1.ostream_D_1_1 0 => Node_C_2.istream_C_2_1 TI L1 EXTRANULL ; - Node_D_1.ostream_D_1_1 0 => Node_B_1.istream_B_1_1 TI L1 EXTRANULL ; - FIN - -FIN diff --git a/Superv/Graphs/GraphStreamTopology.xml b/Superv/Graphs/GraphStreamTopology.xml deleted file mode 100644 index fce4c20..0000000 --- a/Superv/Graphs/GraphStreamTopology.xml +++ /dev/null @@ -1,480 +0,0 @@ - - - - - -? - ? - GraphStreamTopology - 9 - 300 - 0 - 0 - ? - -GraphStreamTopology - - - - - 4/5/2004 - 10:4:18 - 21/5/2004 - 10:17:39 - 2.0 - JR - ? - Test of SubStreamGraphs of a StreamGraph - 0 - 0 - - -? - ? - Node_A_1 - 3 - ? - -Node_A_1 - - - -long - a_1 - - -1 - istream_A_1_1 - 1 - 1 - 2 - 0 - -1 - istream_A_1_2 - 1 - 1 - 2 - 0 - -1 - istream_A_1_3 - 1 - 1 - 2 - 0 - - -Node_A_1 - - - 21/5/2004 - 10:17:39 - 21/5/2004 - 10:17:39 - 2.0 - ? - ? - Python function - 32 - 65 - -? - ? - Node_A_2 - 3 - ? - -Node_A_2 - - - -long - a_2 - - -1 - istream_A_2_1 - 1 - 1 - 2 - 0 - -1 - ostream_A_2_1 - 1 - 0 - - -Node_A_2 - - - 21/5/2004 - 10:17:39 - 21/5/2004 - 10:17:39 - 2.0 - ? - ? - Python function - 31 - 336 - -? - ? - Node_B_1 - 3 - ? - -Node_B_1 - - -long - b_1 - - -long - b_1 - - -1 - istream_B_1_1 - 1 - 1 - 2 - 0 - - -Node_B_1 - - - 21/5/2004 - 10:17:39 - 21/5/2004 - 10:17:39 - 2.0 - ? - ? - Python function - 254 - 64 - -? - ? - Node_B_2 - 3 - ? - -Node_B_2 - - -long - b_2 - - -long - b_2 - - -1 - istream_B_2_1 - 1 - 1 - 2 - 0 - -1 - ostream_B_2_1 - 1 - 0 - -1 - ostream_B_2_2 - 1 - 0 - - -Node_B_2 - - - 21/5/2004 - 10:17:39 - 21/5/2004 - 10:17:39 - 2.0 - ? - ? - Python function - 255 - 336 - -? - ? - Node_C_1 - 3 - ? - -Node_C_1 - - -long - c_1 - - - -1 - ostream_C_1_1 - 1 - 0 - - -Node_C_1 - - - 21/5/2004 - 10:17:39 - 21/5/2004 - 10:17:39 - 2.0 - ? - ? - Python function - 478 - 63 - -? - ? - Node_C_2 - 3 - ? - -Node_C_2 - - -long - c_2 - - -long - c_2 - - -1 - istream_C_2_1 - 1 - 1 - 2 - 0 - - -Node_C_2 - - - 21/5/2004 - 10:17:39 - 21/5/2004 - 10:17:39 - 2.0 - ? - ? - Python function - 477 - 337 - -? - ? - Node_D_1 - 3 - ? - -Node_D_1 - - -long - d_1 - - - -1 - ostream_D_1_1 - 1 - 0 - - -Node_D_1 - - - 21/5/2004 - 10:17:39 - 21/5/2004 - 10:17:39 - 2.0 - ? - ? - Python function - 702 - 336 - - -Node_A_1 - a_1 - Node_B_1 - b_1 - - -Node_A_2 - a_2 - Node_B_2 - b_2 - - -Node_A_2 - ostream_A_2_1 - Node_A_1 - istream_A_1_1 - - -14 - 162 - -13 - 37 - -211 - 36 - -210 - 435 - -Node_B_1 - b_1 - Node_C_1 - c_1 - - -Node_B_2 - b_2 - Node_C_2 - c_2 - - -Node_B_2 - ostream_B_2_1 - Node_A_1 - istream_A_1_2 - - -8 - 195 - -7 - 324 - -443 - 323 - -442 - 434 - -Node_B_2 - ostream_B_2_2 - Node_A_2 - istream_A_2_1 - - -16 - 433 - -15 - 583 - -434 - 584 - -434 - 467 - -Node_C_1 - ostream_C_1_1 - Node_A_1 - istream_A_1_3 - - -21 - 226 - -20 - 296 - -663 - 295 - -662 - 161 - -Node_C_2 - c_2 - Node_D_1 - d_1 - - -Node_D_1 - ostream_D_1_1 - Node_B_2 - istream_B_2_1 - - -232 - 433 - -231 - 553 - -903 - 553 - -902 - 434 - -Node_D_1 - ostream_D_1_1 - Node_C_2 - istream_C_2_1 - - -461 - 434 - -461 - 524 - -889 - 525 - -888 - 434 - -Node_D_1 - ostream_D_1_1 - Node_B_1 - istream_B_1_1 - - -236 - 162 - -236 - 249 - -887 - 249 - -888 - 432 - diff --git a/Superv/Graphs/GraphStreamTopology_1.cpl b/Superv/Graphs/GraphStreamTopology_1.cpl deleted file mode 100644 index a9cd739..0000000 --- a/Superv/Graphs/GraphStreamTopology_1.cpl +++ /dev/null @@ -1,101 +0,0 @@ -DEBUT GraphStreamTopology_1 - TIMEOUT 300 - TRACE SANS - DELTA_T 0 - - -# Liste des codes - - CODE Node_A_1 - istream_A_1_1 T IN ENTIER - istream_A_1_2 T IN ENTIER - istream_A_1_3 T IN ENTIER - FIN #Node_A_1 - - - CODE Node_A_2 - istream_A_2_1 T IN ENTIER - ostream_A_2_1 T OUT ENTIER - FIN #Node_A_2 - - - CODE Node_B_1 - istream_B_1_1 T IN ENTIER - ostream_A_2_1 T OUT ENTIER - FIN #Node_B_1 - - - CODE Node_B_2 - istream_B_2_1 T IN ENTIER - ostream_B_2_1 T OUT ENTIER - ostream_B_2_2 T OUT ENTIER - FIN #Node_B_2 - - - CODE Node_C_1 - istream_B_2_1 T IN ENTIER - ostream_C_1_1 T OUT ENTIER - FIN #Node_C_1 - - - CODE Node_C_2 - istream_C_2_1 T IN ENTIER - ostream_C_1_1 T OUT ENTIER - FIN #Node_C_2 - - - CODE Node_D_1 - istream_C_2_1 T IN ENTIER - ostream_D_1_1 T OUT ENTIER - FIN #Node_D_1 - - - - -# Liste des instances - - INSTANCE Node_A_1 - CODE Node_A_1 - FIN - - INSTANCE Node_A_2 - CODE Node_A_2 - FIN - - INSTANCE Node_B_1 - CODE Node_B_1 - FIN - - INSTANCE Node_B_2 - CODE Node_B_2 - FIN - - INSTANCE Node_C_1 - CODE Node_C_1 - FIN - - INSTANCE Node_C_2 - CODE Node_C_2 - FIN - - INSTANCE Node_D_1 - CODE Node_D_1 - FIN - - - - - -# Liste des liens - - LIEN - Node_A_2.ostream_A_2_1 0 => Node_A_1.istream_A_1_1 TI L1 EXTRANULL ; - Node_B_2.ostream_B_2_1 0 => Node_A_1.istream_A_1_2 TI L1 EXTRANULL ; - Node_B_2.ostream_B_2_2 0 => Node_A_2.istream_A_2_1 TI L1 EXTRANULL ; - Node_C_1.ostream_C_1_1 0 => Node_A_1.istream_A_1_3 TI L1 EXTRANULL ; - Node_D_1.ostream_D_1_1 0 => Node_B_2.istream_B_2_1 TI L1 EXTRANULL ; - Node_D_1.ostream_D_1_1 0 => Node_C_2.istream_C_2_1 TI L1 EXTRANULL ; - Node_D_1.ostream_D_1_1 0 => Node_B_1.istream_B_1_1 TI L1 EXTRANULL ; - FIN - -FIN diff --git a/Superv/Graphs/GraphStream_1.cpl b/Superv/Graphs/GraphStream_1.cpl deleted file mode 100644 index 963a85c..0000000 --- a/Superv/Graphs/GraphStream_1.cpl +++ /dev/null @@ -1,45 +0,0 @@ -DEBUT GraphStream_1 - TIMEOUT 300 - TRACE SANS - DELTA_T 0 - - -# Liste des codes - - CODE Add - istream I IN ENTIER - ostream I OUT ENTIER - OStream I OUT ENTIER - FIN #Add - - - CODE Sub - istream I IN ENTIER - Istream I IN ENTIER - FIN #Sub - - - - -# Liste des instances - - INSTANCE Add - CODE Add - FIN - - INSTANCE Sub - CODE Sub - FIN - - - - - -# Liste des liens - - LIEN - Add.ostream 0 => Sub.istream SCHENULL INTERNULL EXTRANULL ; - Add.OStream 0 => Sub.Istream SCHENULL INTERNULL EXTRANULL ; - FIN - -FIN diff --git a/Superv/Graphs/GraphStream_2.cpl b/Superv/Graphs/GraphStream_2.cpl deleted file mode 100644 index cb8df94..0000000 --- a/Superv/Graphs/GraphStream_2.cpl +++ /dev/null @@ -1,33 +0,0 @@ -DEBUT GraphStream_2 - TIMEOUT 300 - TRACE SANS - DELTA_T 0 - - -# Liste des codes - - CODE StreamAdd - istream I IN ENTIER - ostream I OUT ENTIER - OStream I OUT ENTIER - FIN #StreamAdd - - - - -# Liste des instances - - INSTANCE StreamAdd - CODE StreamAdd - FIN - - - - - -# Liste des liens - - LIEN - FIN - -FIN diff --git a/Superv/Graphs/GraphStream_3.cpl b/Superv/Graphs/GraphStream_3.cpl deleted file mode 100644 index 4f31cef..0000000 --- a/Superv/Graphs/GraphStream_3.cpl +++ /dev/null @@ -1,31 +0,0 @@ -DEBUT GraphStream_3 - TIMEOUT 300 - TRACE SANS - DELTA_T 0 - - -# Liste des codes - - CODE Div - ostream I OUT ENTIER - FIN #Div - - - - -# Liste des instances - - INSTANCE Div - CODE Div - FIN - - - - - -# Liste des liens - - LIEN - FIN - -FIN diff --git a/Superv/Graphs/GraphStreams.xml b/Superv/Graphs/GraphStreams.xml deleted file mode 100644 index 28a7837..0000000 --- a/Superv/Graphs/GraphStreams.xml +++ /dev/null @@ -1,996 +0,0 @@ - - - - - -? - ? - GraphStreams - 9 - 1000 - 1 - 1.5 - ? - -GraphStreams - - -long - Loop\Index - -long - Loop\Min - -long - Loop\Max - -long - Loop\Incr - -double - Loop\z_Div - -double - Loop\z_Div_1 - -double - Loop\y_Add - -double - Loop\x_Sub - - -double - Loop\z_Div - -double - Loop\z_Div_1 - -long - EndLoop\Index - -long - EndLoop\Min - -long - EndLoop\Max - -long - EndLoop\Incr - -double - EndLoop\z_Div - -double - EndLoop\z_Div_1 - -double - EndLoop\y_Add - -double - EndLoop\x_Sub - - - 23/4/2004 - 18:20:13 - 21/5/2004 - 10:32:29 - 2.0 - JR - ? - Graph with DataStreamPorts CEA/EDF : Calcium - 0 - 0 - - -DataStreamFactory - DataStreamFactory - Add - 0 - ? - -Add - - -long - x - -long - y - - -long - z - - -1 - istream - 2 - 0 - 0 - 0 - -1 - ostream - 2 - 0 - -1 - OStream - 2 - 10 - - 21/5/2004 - 10:32:29 - 21/5/2004 - 10:32:29 - 2.0 - ? - FactoryServer - Add from DataStreamFactory - 255 - 171 - -DataStreamFactory - DataStreamFactory - Sub - 0 - ? - -Sub - - -long - x - -long - y - - -long - z - - -1 - istream - 2 - 0 - 0 - 0 - -1 - Istream - 2 - 0 - 0 - 0 - - 21/5/2004 - 10:32:29 - 21/5/2004 - 10:32:29 - 2.0 - ? - FactoryServer - Sub from DataStreamFactory - 519 - 48 - -DataStreamFactory - DataStreamFactory - Mul - 0 - ? - -Mul - - -long - x - -long - y - - -long - z - - - 21/5/2004 - 10:32:29 - 21/5/2004 - 10:32:29 - 2.0 - ? - FactoryServer - Mul from DataStreamFactory - 724 - 142 - -DataStreamFactory - DataStreamFactory - Div - 0 - ? - -Div - - -long - x - -long - y - - -long - z - - -1 - ostream - 2 - 0 - - 21/5/2004 - 10:32:29 - 21/5/2004 - 10:32:29 - 2.0 - ? - FactoryServer - Div from DataStreamFactory - 935 - 48 - -DataStreamFactory - DataStreamFactory - Add_1 - 0 - ? - -Add - - -long - x - -long - y - - -long - z - - -1 - istream - 2 - 0 - 0 - 0 - -1 - ostream - 2 - 0 - -1 - OStream - 2 - 0 - - 21/5/2004 - 10:32:29 - 21/5/2004 - 10:32:29 - 2.0 - ? - localhost/FactoryServer - Add from DataStreamFactory - 252 - 499 - -DataStreamFactory - DataStreamFactory - Sub_1 - 0 - ? - -Sub - - -long - x - -long - y - - -long - z - - -1 - istream - 2 - 0 - 0 - 0 - -1 - Istream - 2 - 0 - 0 - 0 - - 21/5/2004 - 10:32:29 - 21/5/2004 - 10:32:29 - 2.0 - ? - localhost/FactoryServer - Sub from DataStreamFactory - 516 - 385 - -DataStreamFactory - DataStreamFactory - Mul_1 - 0 - ? - -Mul - - -long - x - -long - y - - -long - z - - - 21/5/2004 - 10:32:29 - 21/5/2004 - 10:32:29 - 2.0 - ? - localhost/FactoryServer - Mul from DataStreamFactory - 731 - 487 - -DataStreamFactory - DataStreamFactory - Div_1 - 0 - ? - -Div - - -long - x - -long - y - - -long - z - - -1 - ostream - 2 - 0 - - 21/5/2004 - 10:32:29 - 21/5/2004 - 10:32:29 - 2.0 - ? - localhost/FactoryServer - Div from DataStreamFactory - 931 - 385 - -? - ? - Loop - 4 - EndLoop - -Loop - - -long - Index - -long - Min - -long - Max - -long - Incr - -double - z_Div - -double - z_Div_1 - -double - y_Add - -double - x_Sub - - -long - Index - -long - Min - -long - Max - -long - Incr - -double - z_Div - -double - z_Div_1 - -double - y_Add - -double - x_Sub - - - -Init - - - - - - - - - -More - - - - - - - - - -Next - - - - - - 21/5/2004 - 10:32:29 - 21/5/2004 - 10:32:29 - 2.0 - ? - ? - ? - 5 - 391 - -? - ? - EndLoop - 5 - Loop - -EndLoop - - -long - Index - -long - Min - -long - Max - -long - Incr - -double - z_Div - -double - z_Div_1 - -double - y_Add - -double - x_Sub - - -long - Index - -long - Min - -long - Max - -long - Incr - -double - z_Div - -double - z_Div_1 - -double - y_Add - -double - x_Sub - - - -EndInit - - 21/5/2004 - 10:32:29 - 21/5/2004 - 10:32:29 - 2.0 - ? - ? - ? - 1158 - 393 - - -Add - z - Sub - y - - -448 - 143 - -449 - 237 - -Add - z - Mul - y - - -708 - 237 - -708 - 270 - -449 - 270 - -448 - 238 - -Add - ostream - Sub - istream - - -474 - 175 - -474 - 297 - -Add - OStream - Sub - Istream - - -497 - 207 - -498 - 328 - -Sub - z - Mul - x - - -706 - 207 - -706 - 114 - -Sub - z - Div - x - - -Mul - z - Div - y - - -912 - 143 - -911 - 208 - -Div - z - EndLoop - z_Div - - -1147 - 537 - -1148 - 113 - -Div - ostream - Add_1 - istream - - -233 - 626 - -232 - 763 - -1126 - 763 - -1125 - 175 - -Add_1 - z - Sub_1 - y - - -445 - 478 - -444 - 566 - -Add_1 - z - Mul_1 - y - - -703 - 582 - -703 - 677 - -445 - 678 - -444 - 567 - -Add_1 - ostream - Sub_1 - istream - - -473 - 511 - -473 - 627 - -Add_1 - OStream - Sub_1 - Istream - - -498 - 543 - -497 - 658 - -Sub_1 - z - Mul_1 - x - - -708 - 552 - -707 - 450 - -Sub_1 - z - Div_1 - x - - -Mul_1 - z - Div_1 - y - - -913 - 479 - -913 - 551 - -Div_1 - z - EndLoop - z_Div_1 - - -1138 - 567 - -1138 - 449 - -Div_1 - ostream - Add - istream - - -229 - 297 - -229 - 426 - -475 - 425 - -475 - 352 - -1110 - 352 - -1111 - 512 - -Loop - DoLoop - EndLoop - DoLoop - - -Loop - Index - EndLoop - Index - - -Loop - Index - Add - x - - -201 - 236 - -202 - 420 - -Loop - Index - Add_1 - x - - -201 - 562 - -202 - 422 - -Loop - Min - EndLoop - Min - - -Loop - Max - EndLoop - Max - - -Loop - Incr - EndLoop - Incr - - -Loop - y_Add - EndLoop - y_Add - - -Loop - y_Add - Add - y - - -183 - 266 - -182 - 593 - -Loop - y_Add - Add_1 - y - - -Loop - x_Sub - EndLoop - x_Sub - - -Loop - x_Sub - Sub - x - - -167 - 113 - -167 - 625 - -Loop - x_Sub - Sub_1 - x - - -167 - 450 - -168 - 624 - -EndLoop - DoLoop - Loop - DoLoop - - - -GraphStreams - Loop\Index - Loop - Index - -3 - 0 - - -GraphStreams - Loop\Min - Loop - Min - -3 - 1 - - -GraphStreams - Loop\Max - Loop - Max - -3 - 10 - - -GraphStreams - Loop\Incr - Loop - Incr - -3 - 1 - - -GraphStreams - Loop\z_Div - Loop - z_Div - -7 - 0 - - -GraphStreams - Loop\z_Div_1 - Loop - z_Div_1 - -7 - 0 - - -GraphStreams - Loop\y_Add - Loop - y_Add - -7 - 4.5 - - -GraphStreams - Loop\x_Sub - Loop - x_Sub - -7 - 1.5 - diff --git a/Superv/Graphs/GraphStreams_1.cpl b/Superv/Graphs/GraphStreams_1.cpl deleted file mode 100644 index 799f81e..0000000 --- a/Superv/Graphs/GraphStreams_1.cpl +++ /dev/null @@ -1,55 +0,0 @@ -DEBUT GraphStreams_1 - TIMEOUT 1000 - TRACE SUCCINT - DELTA_T 1.5 - - -# Liste des codes - - CODE Add - istream I IN ENTIER - ostream I OUT ENTIER - OStream I OUT ENTIER - FIN #Add - - - CODE Div - ostream I OUT ENTIER - FIN #Div - - - CODE Sub - istream I IN ENTIER - Istream I IN ENTIER - FIN #Sub - - - - -# Liste des instances - - INSTANCE Add - CODE Add - FIN - - INSTANCE Sub - CODE Sub - FIN - - INSTANCE Div_1 - CODE Div - FIN - - - - - -# Liste des liens - - LIEN - Add.ostream 0 => Sub.istream SCHENULL INTERNULL EXTRANULL ; - Add.OStream 10 => Sub.Istream SCHENULL INTERNULL EXTRANULL ; - Div_1.ostream 0 => Add.istream SCHENULL INTERNULL EXTRANULL ; - FIN - -FIN diff --git a/Superv/Graphs/GraphStreams_2.cpl b/Superv/Graphs/GraphStreams_2.cpl deleted file mode 100644 index 3a8205c..0000000 --- a/Superv/Graphs/GraphStreams_2.cpl +++ /dev/null @@ -1,55 +0,0 @@ -DEBUT GraphStreams_2 - TIMEOUT 1000 - TRACE SUCCINT - DELTA_T 1.5 - - -# Liste des codes - - CODE Add - istream I IN ENTIER - ostream I OUT ENTIER - OStream I OUT ENTIER - FIN #Add - - - CODE Div - ostream I OUT ENTIER - FIN #Div - - - CODE Sub - istream I IN ENTIER - Istream I IN ENTIER - FIN #Sub - - - - -# Liste des instances - - INSTANCE Div - CODE Div - FIN - - INSTANCE Add_1 - CODE Add - FIN - - INSTANCE Sub_1 - CODE Sub - FIN - - - - - -# Liste des liens - - LIEN - Div.ostream 0 => Add_1.istream SCHENULL INTERNULL EXTRANULL ; - Add_1.ostream 0 => Sub_1.istream SCHENULL INTERNULL EXTRANULL ; - Add_1.OStream 0 => Sub_1.Istream SCHENULL INTERNULL EXTRANULL ; - FIN - -FIN diff --git a/Superv/Graphs/GraphSub.xml b/Superv/Graphs/GraphSub.xml deleted file mode 100644 index c776ab1..0000000 --- a/Superv/Graphs/GraphSub.xml +++ /dev/null @@ -1,107 +0,0 @@ - - - - - - - ? - ? - GraphSub - 1 - ? - - GraphSub - - - double - Sub__x - - - double - Sub__y - - - - - double - Sub__z - - - - - - 28/9/2005 - 16:4:7 - 28/9/2005 - 16:4:20 - 2.0 - ? - ? - ? - 0 - 0 - - - - - SubComponent - SubComponent - Sub - 0 - ? - - Sub - - - double - x - - - double - y - - - - - double - z - - - - - - 28/9/2005 - 16:4:20 - 28/9/2005 - 16:4:20 - 2.0 - ? - localhost/FactoryServer - Sub from SubComponent - 55 - 71 - - - - - - - diff --git a/Superv/Graphs/GraphSwitch.xml b/Superv/Graphs/GraphSwitch.xml deleted file mode 100644 index 19e4a65..0000000 --- a/Superv/Graphs/GraphSwitch.xml +++ /dev/null @@ -1,367 +0,0 @@ - - - - - - -? - ? - GraphSwitch - 1 - ? - -GraphSwitch - - -long - InitLoopSwitch__Index - -long - InitLoopSwitch__Min - -long - InitLoopSwitch__Max - - -long - EndOfInitLoopSwitch__Index - -long - EndOfInitLoopSwitch__Min - -long - EndOfInitLoopSwitch__Max - -int - Switch__Even - - - 1/10/2003 - 17:23:54 - 8/7/2005 - 11:33:23 - 1.05 - ? - ? - ? - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - - -long - a - - - -IsOdd - - - - - - 8/7/2005 - 11:33:23 - 8/7/2005 - 11:33:23 - 1.05 - ? - ? - Python function - 389 - 65 - -? - ? - InitLoopSwitch - 4 - EndOfInitLoopSwitch - -InitLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -InitLoop - - - -MoreLoop - - - - - - - -NextLoop - - - - 8/7/2005 - 11:33:23 - 8/7/2005 - 11:33:23 - 1.05 - ? - ? - Compute Node - 10 - 129 - -? - ? - EndOfInitLoopSwitch - 5 - InitLoopSwitch - -EndOfInitLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -? - - 8/7/2005 - 11:33:23 - 8/7/2005 - 11:33:23 - 1.05 - ? - ? - Compute Node - 776 - 170 - -? - ? - Switch - 6 - EndOfSwitch - -Switch - - -long - a - - -long - Odd - -int - Even - -int - a - - - -Switch - - - - - - 8/7/2005 - 11:33:23 - 8/7/2005 - 11:33:23 - 1.05 - ? - ? - Compute Node - 194 - 129 - -? - ? - EndOfSwitch - 7 - Switch - -EndOfSwitch - - -long - a - - -long - a - - - -? - - 8/7/2005 - 11:33:23 - 8/7/2005 - 11:33:23 - 1.05 - ? - ? - Compute Node - 582 - 170 - - -IsOdd - a - EndOfSwitch - a - - -564 - 201 - -564 - 137 - -InitLoopSwitch - DoLoop - EndOfInitLoopSwitch - DoLoop - - -InitLoopSwitch - Index - Switch - a - - -InitLoopSwitch - Min - EndOfInitLoopSwitch - Min - - -InitLoopSwitch - Max - EndOfInitLoopSwitch - Max - - -EndOfInitLoopSwitch - DoLoop - InitLoopSwitch - DoLoop - - -Switch - Odd - IsOdd - Gate - - -Switch - a - IsOdd - a - - -371 - 136 - -371 - 200 - -Switch - Default - EndOfSwitch - Default - - -EndOfSwitch - a - EndOfInitLoopSwitch - Index - - - -GraphSwitch - InitLoopSwitch__Index - InitLoopSwitch - Index - -3 - 0 - - -GraphSwitch - InitLoopSwitch__Min - InitLoopSwitch - Min - -3 - 0 - - -GraphSwitch - InitLoopSwitch__Max - InitLoopSwitch - Max - -3 - 35 - diff --git a/Superv/Graphs/GraphSwitch1.xml b/Superv/Graphs/GraphSwitch1.xml deleted file mode 100755 index 5026153..0000000 --- a/Superv/Graphs/GraphSwitch1.xml +++ /dev/null @@ -1,450 +0,0 @@ - - - - - - - ? - ? - GraphSwitch1 - 1 - ? - - GraphSwitch1 - - - long - InitLoop__Index - - - long - InitLoop__Min - - - long - InitLoop__Max - - - - - long - EndOfInitLoop__Index - - - long - EndOfInitLoop__Min - - - long - EndOfInitLoop__Max - - - int - Switch__Even - - - - - - 1/10/2003 - 17:12:48 - 9/12/2005 - 17:19:21 - 1.05 - ? - ? - ? - 0 - 0 - - - - - ? - ? - IsOdd - 3 - ? - - IsOdd - - - long - a - - - - - long - a - - - - - - - IsOdd - - - - - - - - 9/12/2005 - 17:18:41 - 9/12/2005 - 17:18:41 - 1.05 - ? - ? - Python function - 408 - 34 - - - ? - ? - InitLoop - 4 - EndOfInitLoop - - InitLoop - - - long - Index - - - long - Min - - - long - Max - - - - - long - Index - - - long - Min - - - long - Max - - - - - - - InitLoop - - - - - MoreLoop - - - - - - - - - NextLoop - - - - - - 9/12/2005 - 17:18:41 - 9/12/2005 - 17:18:41 - 1.05 - ? - ? - Compute Node - 10 - 129 - - - ? - ? - EndOfInitLoop - 5 - InitLoop - - EndOfInitLoop - - - long - Index - - - long - Min - - - long - Max - - - - - long - Index - - - long - Min - - - long - Max - - - - - - - ? - - - - 9/12/2005 - 17:18:41 - 9/12/2005 - 17:18:41 - 1.05 - ? - ? - Compute Node - 862 - 156 - - - ? - ? - Switch - 6 - EndOfSwitch - - Switch - - - long - a - - - - - long - Odd - - - int - Even - - - int - a - - - - - - - Switch - - - - - - - - 9/12/2005 - 17:18:41 - 9/12/2005 - 17:18:41 - 1.05 - ? - ? - Compute Node - 195 - 130 - - - ? - ? - EndOfSwitch - 7 - Switch - - EndOfSwitch - - - long - a - - - - - long - a - - - - - - - ? - - - - 9/12/2005 - 17:18:41 - 9/12/2005 - 17:18:41 - 1.05 - ? - ? - Compute Node - 640 - 155 - - - - - IsOdd - a - EndOfSwitch - a - - - - InitLoop - DoLoop - EndOfInitLoop - DoLoop - - - - InitLoop - Index - Switch - a - - - - InitLoop - Min - EndOfInitLoop - Min - - - - InitLoop - Max - EndOfInitLoop - Max - - - - EndOfInitLoop - DoLoop - InitLoop - DoLoop - - - - Switch - Odd - IsOdd - Gate - - - - Switch - a - IsOdd - a - - - 375 - 105 - - - 375 - 201 - - - - - Switch - Default - EndOfSwitch - Default - - - - EndOfSwitch - a - EndOfInitLoop - Index - - - - - - GraphSwitch1 - InitLoop__Index - InitLoop - Index - - 3 - 0 - - - - - GraphSwitch1 - InitLoop__Min - InitLoop - Min - - 3 - 0 - - - - - GraphSwitch1 - InitLoop__Max - InitLoop - Max - - 3 - 100 - - - - - - - diff --git a/Superv/Graphs/GraphSwitch2.xml b/Superv/Graphs/GraphSwitch2.xml deleted file mode 100644 index 47c5c15..0000000 --- a/Superv/Graphs/GraphSwitch2.xml +++ /dev/null @@ -1,405 +0,0 @@ - - - - - - -? - ? - GraphSwitch_1_1 - 1 - ? - -GraphSwitch_1_1 - - -long - InitLoopSwitch__Index - -long - InitLoopSwitch__Min - -long - InitLoopSwitch__Max - - -long - EndOfInitLoopSwitch__Index - -long - EndOfInitLoopSwitch__Min - -long - EndOfInitLoopSwitch__Max - - - 1/10/2003 - 17:23:54 - 20/1/2005 - 12:38:11 - 1.05 - ? - ? - ? - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - - -long - a - - - -IsOdd - - - - - - 20/1/2005 - 12:38:11 - 20/1/2005 - 12:38:11 - 1.05 - ? - ? - Python function - 388 - 50 - -? - ? - InitLoopSwitch - 4 - EndOfInitLoopSwitch - -InitLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -InitLoop - - - - -MoreLoop - - = Min : ]]> - - - - - -NextLoop - - - - 20/1/2005 - 12:38:11 - 20/1/2005 - 12:38:11 - 1.05 - ? - ? - Compute Node - 10 - 129 - -? - ? - EndOfInitLoopSwitch - 5 - InitLoopSwitch - -EndOfInitLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -? - - 20/1/2005 - 12:38:11 - 20/1/2005 - 12:38:11 - 1.05 - ? - ? - Compute Node - 775 - 169 - -? - ? - IsEven - 3 - ? - -IsEven - - -long - a - - -long - a - - - -IsEven - - - - - - 20/1/2005 - 12:38:11 - 20/1/2005 - 12:38:11 - 2.0 - ? - ? - Compute Node - 397 - 279 - -? - ? - Switch - 6 - EndOfSwitch - -Switch - - -long - a - - -long - Odd - -int - Even - -int - a - - - -Switch - - - - - - - 20/1/2005 - 12:38:11 - 20/1/2005 - 12:38:11 - 2.0 - ? - ? - Compute Node - 195 - 129 - -? - ? - EndOfSwitch - 7 - Switch - -EndOfSwitch - - -long - a - - -long - a - - - -EndSwitch_1 - - 20/1/2005 - 12:38:11 - 20/1/2005 - 12:38:11 - 2.0 - ? - ? - Compute Node - 583 - 169 - - -IsOdd - a - EndOfSwitch - a - - -InitLoopSwitch - DoLoop - EndOfInitLoopSwitch - DoLoop - - -InitLoopSwitch - Index - Switch - a - - -InitLoopSwitch - Min - EndOfInitLoopSwitch - Min - - -InitLoopSwitch - Max - EndOfInitLoopSwitch - Max - - -EndOfInitLoopSwitch - DoLoop - InitLoopSwitch - DoLoop - - -IsEven - a - EndOfSwitch - a - - -Switch - Odd - IsOdd - Gate - - -Switch - Even - IsEven - Gate - - -Switch - a - IsOdd - a - - -Switch - a - IsEven - a - - -Switch - Default - EndOfSwitch - Default - - -EndOfSwitch - a - EndOfInitLoopSwitch - Index - - - -GraphSwitch_1_1 - InitLoopSwitch__Index - InitLoopSwitch - Index - -3 - 0 - - -GraphSwitch_1_1 - InitLoopSwitch__Min - InitLoopSwitch - Min - -3 - -5 - - -GraphSwitch_1_1 - InitLoopSwitch__Max - InitLoopSwitch - Max - -3 - 10 - diff --git a/Superv/Graphs/GraphSwitchBranchGates.xml b/Superv/Graphs/GraphSwitchBranchGates.xml deleted file mode 100644 index f1cbeb0..0000000 --- a/Superv/Graphs/GraphSwitchBranchGates.xml +++ /dev/null @@ -1,374 +0,0 @@ - - - - - - -? - ? - GraphSwitchBranchGates - 1 - ? - -GraphSwitchNOTValid_1 - - -long - InitLoop__Index - -long - InitLoop__Min - -long - InitLoop__Max - - -long - EndOfInitLoop__Index - -long - EndOfInitLoop__Min - -long - EndOfInitLoop__Max - - - 1/10/2003 - 17:12:48 - 8/4/2005 - 10:0:0 - 1.05 - JR - ? - ? - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - - -long - a - - - -IsOdd - - - - - - 8/4/2005 - 10:0:0 - 8/4/2005 - 10:0:0 - 1.05 - ? - ? - Python function - 389 - 65 - -? - ? - InitLoop - 4 - EndOfInitLoop - -InitLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -InitLoop - - - - -MoreLoop - - = Min : ]]> - - - - - -NextLoop - - - - 8/4/2005 - 10:0:0 - 8/4/2005 - 10:0:0 - 1.05 - ? - ? - Compute Node - 10 - 129 - -? - ? - EndOfInitLoop - 5 - InitLoop - -EndOfInitLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -? - - 8/4/2005 - 10:0:0 - 8/4/2005 - 10:0:0 - 1.05 - ? - ? - Compute Node - 777 - 170 - -? - ? - Switch - 6 - EndOfSwitch - -Switch - - -long - a - - -long - Odd - -int - Even - -int - a - - - -Switch - - - - - - - - - 8/4/2005 - 10:0:0 - 8/4/2005 - 10:0:0 - 1.05 - ? - ? - Compute Node - 195 - 130 - -? - ? - EndOfSwitch - 7 - Switch - -EndOfSwitch - - -long - a - - -long - a - - - -? - - 8/4/2005 - 10:0:0 - 8/4/2005 - 10:0:0 - 1.05 - ? - ? - Compute Node - 589 - 170 - - -IsOdd - a - EndOfSwitch - a - - -571 - 201 - -571 - 136 - -InitLoop - DoLoop - EndOfInitLoop - DoLoop - - -InitLoop - Index - Switch - a - - -InitLoop - Min - EndOfInitLoop - Min - - -InitLoop - Max - EndOfInitLoop - Max - - -EndOfInitLoop - DoLoop - InitLoop - DoLoop - - -Switch - Odd - IsOdd - Gate - - -Switch - Even - EndOfSwitch - Default - - -Switch - a - IsOdd - a - - -375 - 136 - -375 - 201 - -Switch - Default - EndOfSwitch - Default - - -EndOfSwitch - a - EndOfInitLoop - Index - - - -GraphSwitchBranchGates - InitLoop__Index - InitLoop - Index - -3 - 0 - - -GraphSwitchBranchGates - InitLoop__Min - InitLoop - Min - -3 - -5 - - -GraphSwitchBranchGates - InitLoop__Max - InitLoop - Max - -3 - 23 - diff --git a/Superv/Graphs/GraphSwitchBranchGates1.xml b/Superv/Graphs/GraphSwitchBranchGates1.xml deleted file mode 100644 index f8c361e..0000000 --- a/Superv/Graphs/GraphSwitchBranchGates1.xml +++ /dev/null @@ -1,380 +0,0 @@ - - - - - - -? - ? - GraphSwitchBranchGates1 - 1 - ? - -GraphSwitchNOTValid - - -long - InitLoop__Index - -long - InitLoop__Min - -long - InitLoop__Max - - -long - EndOfInitLoop__Index - -long - EndOfInitLoop__Min - -long - EndOfInitLoop__Max - - - 1/10/2003 - 17:12:48 - 8/4/2005 - 9:55:15 - 1.05 - JR - ? - ? - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - - -long - a - - - -IsOdd - - - - - - 8/4/2005 - 9:39:12 - 8/4/2005 - 9:39:12 - 1.05 - ? - ? - Python function - 389 - 65 - -? - ? - InitLoop - 4 - EndOfInitLoop - -InitLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -InitLoop - - - - -MoreLoop - - = Min : ]]> - - - - - -NextLoop - - - - 8/4/2005 - 9:39:12 - 8/4/2005 - 9:39:12 - 1.05 - ? - ? - Compute Node - 10 - 129 - -? - ? - EndOfInitLoop - 5 - InitLoop - -EndOfInitLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -? - - 8/4/2005 - 9:39:12 - 8/4/2005 - 9:39:12 - 1.05 - ? - ? - Compute Node - 777 - 170 - -? - ? - Switch - 6 - EndOfSwitch - -Switch - - -long - a - - -long - Odd - -int - Even - -int - a - - - -Switch - - - - - - - - - 8/4/2005 - 9:39:12 - 8/4/2005 - 9:39:12 - 1.05 - ? - ? - Compute Node - 195 - 130 - -? - ? - EndOfSwitch - 7 - Switch - -EndOfSwitch - - -long - a - - -long - a - - - -? - - 8/4/2005 - 9:39:12 - 8/4/2005 - 9:39:12 - 1.05 - ? - ? - Compute Node - 589 - 170 - - -IsOdd - a - EndOfSwitch - a - - -571 - 201 - -571 - 136 - -IsOdd - Gate - EndOfSwitch - Default - - -InitLoop - DoLoop - EndOfInitLoop - DoLoop - - -InitLoop - Index - Switch - a - - -InitLoop - Min - EndOfInitLoop - Min - - -InitLoop - Max - EndOfInitLoop - Max - - -EndOfInitLoop - DoLoop - InitLoop - DoLoop - - -Switch - Odd - IsOdd - Gate - - -Switch - Even - EndOfSwitch - Default - - -Switch - a - IsOdd - a - - -375 - 136 - -375 - 201 - -Switch - Default - EndOfSwitch - Default - - -EndOfSwitch - a - EndOfInitLoop - Index - - - -GraphSwitchBranchGates1 - InitLoop__Index - InitLoop - Index - -3 - 0 - - -GraphSwitchBranchGates1 - InitLoop__Min - InitLoop - Min - -3 - -5 - - -GraphSwitchBranchGates1 - InitLoop__Max - InitLoop - Max - -3 - 23 - diff --git a/Superv/Graphs/GraphSwitchBugAborted.xml b/Superv/Graphs/GraphSwitchBugAborted.xml deleted file mode 100644 index bdb51c8..0000000 --- a/Superv/Graphs/GraphSwitchBugAborted.xml +++ /dev/null @@ -1,368 +0,0 @@ - - - - - - -? - ? - GraphSwitchBugAborted - 1 - ? - -GraphSwitchBugNODefault_1 - - -long - InitLoopSwitch__Index - -long - InitLoopSwitch__Min - -long - InitLoopSwitch__Max - -long - EndOfSwitch__Even - - -long - EndOfInitLoopSwitch__Index - -long - EndOfInitLoopSwitch__Min - -long - EndOfInitLoopSwitch__Max - -int - Switch__Even - - - 1/10/2003 - 17:23:54 - 28/6/2005 - 10:56:46 - 1.05 - JR - ? - ? - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - - -long - a - - - -IsOdd - - - - - - 28/6/2005 - 10:56:46 - 28/6/2005 - 10:56:46 - 1.05 - ? - ? - Python function - 389 - 65 - -? - ? - InitLoopSwitch - 4 - EndOfInitLoopSwitch - -InitLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -InitLoop - - - -MoreLoop - - - - - - - -NextLoop - - - - 28/6/2005 - 10:56:46 - 28/6/2005 - 10:56:46 - 1.05 - ? - ? - Compute Node - 10 - 129 - -? - ? - EndOfInitLoopSwitch - 5 - InitLoopSwitch - -EndOfInitLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -? - - 28/6/2005 - 10:56:46 - 28/6/2005 - 10:56:46 - 1.05 - ? - ? - Compute Node - 772 - 132 - -? - ? - Switch - 6 - EndOfSwitch - -Switch - - -long - a - - -long - Odd - -int - Even - -int - a - -int - n - - - -Switch - - - - - - 28/6/2005 - 10:56:46 - 28/6/2005 - 10:56:46 - 1.05 - ? - ? - Compute Node - 194 - 129 - -? - ? - EndOfSwitch - 7 - Switch - -EndOfSwitch - - -long - a - -long - Even - -long - k - - -long - a - - - -EndOfSwitch - - - 28/6/2005 - 10:56:46 - 28/6/2005 - 10:56:46 - 1.05 - ? - ? - Compute Node - 581 - 132 - - -IsOdd - a - EndOfSwitch - a - - -InitLoopSwitch - DoLoop - EndOfInitLoopSwitch - DoLoop - - -InitLoopSwitch - Index - Switch - a - - -InitLoopSwitch - Min - EndOfInitLoopSwitch - Min - - -InitLoopSwitch - Max - EndOfInitLoopSwitch - Max - - -EndOfInitLoopSwitch - DoLoop - InitLoopSwitch - DoLoop - - -Switch - Odd - IsOdd - Gate - - -Switch - a - IsOdd - a - - -Switch - n - EndOfSwitch - k - - -EndOfSwitch - a - EndOfInitLoopSwitch - Index - - - -GraphSwitchBugAborted - InitLoopSwitch__Index - InitLoopSwitch - Index - -3 - 0 - - -GraphSwitchBugAborted - InitLoopSwitch__Min - InitLoopSwitch - Min - -3 - 0 - - -GraphSwitchBugAborted - InitLoopSwitch__Max - InitLoopSwitch - Max - -3 - 20 - diff --git a/Superv/Graphs/GraphSwitchBugDefault.xml b/Superv/Graphs/GraphSwitchBugDefault.xml deleted file mode 100644 index 680e661..0000000 --- a/Superv/Graphs/GraphSwitchBugDefault.xml +++ /dev/null @@ -1,375 +0,0 @@ - - - - - - -? - ? - GraphSwitchBugDefault - 1 - ? - -GraphSwitchBugDefault - - -long - InitLoopSwitch__Index - -long - InitLoopSwitch__Min - -long - InitLoopSwitch__Max - -long - EndOfSwitch__Even - - -long - EndOfInitLoopSwitch__Index - -long - EndOfInitLoopSwitch__Min - -long - EndOfInitLoopSwitch__Max - -int - Switch__Even - - - 1/10/2003 - 17:23:54 - 30/6/2005 - 10:41:27 - 1.05 - JR - ? - ? - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - - -long - a - - - -IsOdd - - - - - - 30/6/2005 - 10:41:27 - 30/6/2005 - 10:41:27 - 1.05 - ? - ? - Python function - 389 - 65 - -? - ? - InitLoopSwitch - 4 - EndOfInitLoopSwitch - -InitLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -InitLoop - - - - -MoreLoop - - - - - - - -NextLoop - - - - 30/6/2005 - 10:41:27 - 30/6/2005 - 10:41:27 - 1.05 - ? - ? - Compute Node - 10 - 129 - -? - ? - EndOfInitLoopSwitch - 5 - InitLoopSwitch - -EndOfInitLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -? - - 30/6/2005 - 10:41:27 - 30/6/2005 - 10:41:27 - 1.05 - ? - ? - Compute Node - 772 - 132 - -? - ? - Switch - 6 - EndOfSwitch - -Switch - - -long - a - - -long - Odd - -int - Even - -int - a - -int - n - - - -Switch - - - - - - 30/6/2005 - 10:41:27 - 30/6/2005 - 10:41:27 - 1.05 - ? - ? - Compute Node - 194 - 129 - -? - ? - EndOfSwitch - 7 - Switch - -EndOfSwitch - - -long - a - -long - Even - -long - k - - -long - a - - - -EndOfSwitch - - - 30/6/2005 - 10:41:27 - 30/6/2005 - 10:41:27 - 1.05 - ? - ? - Compute Node - 581 - 132 - - -IsOdd - a - EndOfSwitch - a - - -InitLoopSwitch - DoLoop - EndOfInitLoopSwitch - DoLoop - - -InitLoopSwitch - Index - Switch - a - - -InitLoopSwitch - Min - EndOfInitLoopSwitch - Min - - -InitLoopSwitch - Max - EndOfInitLoopSwitch - Max - - -EndOfInitLoopSwitch - DoLoop - InitLoopSwitch - DoLoop - - -Switch - Odd - IsOdd - Gate - - -Switch - a - IsOdd - a - - -Switch - n - EndOfSwitch - k - - -Switch - Default - EndOfSwitch - Default - - -EndOfSwitch - a - EndOfInitLoopSwitch - Index - - - -GraphSwitchBugDefault - InitLoopSwitch__Index - InitLoopSwitch - Index - -3 - 0 - - -GraphSwitchBugDefault - InitLoopSwitch__Min - InitLoopSwitch - Min - -3 - 1 - - -GraphSwitchBugDefault - InitLoopSwitch__Max - InitLoopSwitch - Max - -3 - 20 - diff --git a/Superv/Graphs/GraphSwitchCheck.xml b/Superv/Graphs/GraphSwitchCheck.xml deleted file mode 100644 index 4fd9331..0000000 --- a/Superv/Graphs/GraphSwitchCheck.xml +++ /dev/null @@ -1,651 +0,0 @@ - - - - - - -? - ? - GraphSwitchCheck - 1 - ? - -GraphSwitchCheck - - -long - InitLoopSwitch__Index - -long - InitLoopSwitch__Min - -long - InitLoopSwitch__Max - - -long - EndOfInitLoopSwitch__Index - -long - EndOfInitLoopSwitch__Min - -long - EndOfInitLoopSwitch__Max - -boolean - Switch__default - - - 13/1/2005 - 11:48:50 - 13/1/2005 - 11:51:24 - 2.0 - JR - ? - ? - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - - -long - a - - - -IsOdd - - - - - - 13/1/2005 - 11:50:18 - 13/1/2005 - 11:50:18 - 2.0 - ? - ? - Python function - 415 - 7 - -? - ? - IsEven - 3 - ? - -IsEven - - -long - a - - -long - a - - - -IsEven - - - - - - 13/1/2005 - 11:50:18 - 13/1/2005 - 11:50:18 - 2.0 - ? - ? - Compute Node - 421 - 438 - -? - ? - PrintOdd - 3 - ? - -Print - - -long - a - -string - Branch - - -string - Branch - - - -Print - - - - - - 13/1/2005 - 11:50:18 - 13/1/2005 - 11:50:18 - 2.0 - ? - ? - Compute Node - 415 - 130 - -? - ? - PrintEven - 3 - ? - -Print_1 - - -long - a - -string - Branch - - -string - Branch - - - -Print_1 - - - - - - 13/1/2005 - 11:50:18 - 13/1/2005 - 11:50:18 - 2.0 - ? - ? - Compute Node - 423 - 289 - -? - ? - EmptyNode - 3 - ? - -EmptyNode - - -long - a - -string - Branch - - -long - a - -string - Branch - - - -EmptyNode - - - - - 13/1/2005 - 11:50:18 - 13/1/2005 - 11:50:18 - 2.0 - ? - ? - Compute Node - 652 - 110 - -? - ? - InitLoopSwitch - 4 - EndOfInitLoopSwitch - -InitLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -InitLoop - - - - -MoreLoop - - - - = Min : ]]> - - - - - -NextLoop - - - - 13/1/2005 - 11:50:18 - 13/1/2005 - 11:50:18 - 2.0 - ? - ? - Compute Node - 10 - 129 - -? - ? - EndOfInitLoopSwitch - 5 - InitLoopSwitch - -EndOfInitLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -EndOfInitLoopSwitch - - - - - 13/1/2005 - 11:50:18 - 13/1/2005 - 11:50:18 - 2.0 - ? - ? - Compute Node - 1074 - 194 - -? - ? - Switch - 6 - EndOfSwitch - -Switch - - -long - a - - -long - Odd - -int - Even - -int - a - -string - Branch - -boolean - default - - - -Switch - - - - - - - - - - - - 13/1/2005 - 11:50:18 - 13/1/2005 - 11:50:18 - 2.0 - ? - ? - Compute Node - 195 - 129 - -? - ? - EndOfSwitch - 7 - Switch - -EndOfSwitch - - -long - a - -string - Branch - - -long - a - - - -EndOfSwitch - - - - - 13/1/2005 - 11:50:18 - 13/1/2005 - 11:50:18 - 2.0 - ? - ? - Compute Node - 882 - 194 - - -IsOdd - a - EmptyNode - a - - -646 - 78 - -IsEven - a - EndOfSwitch - a - - -PrintOdd - Branch - EmptyNode - Branch - - -PrintEven - Branch - EndOfSwitch - Branch - - -EmptyNode - a - EndOfSwitch - a - - -EmptyNode - Branch - EndOfSwitch - Branch - - -InitLoopSwitch - DoLoop - EndOfInitLoopSwitch - DoLoop - - -InitLoopSwitch - Index - Switch - a - - -InitLoopSwitch - Min - EndOfInitLoopSwitch - Min - - -InitLoopSwitch - Max - EndOfInitLoopSwitch - Max - - -EndOfInitLoopSwitch - DoLoop - InitLoopSwitch - DoLoop - - -Switch - Odd - IsOdd - Gate - - -401 - 101 - -401 - 160 - -Switch - Odd - PrintOdd - Gate - - -401 - 245 - -401 - 159 - -Switch - Even - IsEven - Gate - - -392 - 533 - -392 - 182 - -Switch - Even - PrintEven - Gate - - -392 - 403 - -392 - 181 - -Switch - a - IsOdd - a - - -382 - 78 - -382 - 199 - -Switch - a - IsEven - a - - -381 - 509 - -382 - 200 - -Switch - a - PrintOdd - a - - -Switch - a - PrintEven - a - - -381 - 361 - -382 - 200 - -Switch - Branch - PrintOdd - Branch - - -Switch - Branch - PrintEven - Branch - - -369 - 381 - -369 - 219 - -Switch - Default - EndOfSwitch - Default - - -EndOfSwitch - a - EndOfInitLoopSwitch - Index - - - -GraphSwitchCheck - InitLoopSwitch__Index - InitLoopSwitch - Index - -3 - 0 - - -GraphSwitchCheck - InitLoopSwitch__Min - InitLoopSwitch - Min - -3 - -5 - - -GraphSwitchCheck - InitLoopSwitch__Max - InitLoopSwitch - Max - -3 - 10 - diff --git a/Superv/Graphs/GraphSwitchCheckBranch.xml b/Superv/Graphs/GraphSwitchCheckBranch.xml deleted file mode 100644 index dc91604..0000000 --- a/Superv/Graphs/GraphSwitchCheckBranch.xml +++ /dev/null @@ -1,499 +0,0 @@ - - - - - - -? - ? - GraphSwitchCheckBranch - 1 - ? - -GraphSwitchCheckBranch - - -long - InitLoopSwitch__Index - -long - InitLoopSwitch__Min - -long - InitLoopSwitch__Max - - -long - EndOfInitLoopSwitch__Index - -long - EndOfInitLoopSwitch__Min - -long - EndOfInitLoopSwitch__Max - -boolean - Switch__default - - - 13/1/2005 - 11:48:50 - 19/1/2005 - 11:48:48 - 2.0 - JR - ? - Switch with two SwitchBranches, One NotSwitchBranch and the DefaultBranch - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - - -long - a - - - -IsOdd - - - - - - 19/1/2005 - 11:48:48 - 19/1/2005 - 11:48:48 - 2.0 - ? - ? - Python function - 415 - 7 - -? - ? - IsEven - 3 - ? - -IsEven - - -long - a - - -long - a - - - -IsEven - - - - - - 19/1/2005 - 11:48:48 - 19/1/2005 - 11:48:48 - 2.0 - ? - ? - Compute Node - 421 - 438 - -? - ? - BranchNode - 3 - ? - -BranchNode - - -string - Branch - - -string - Branch - - - -Print_1 - - - - - - 19/1/2005 - 11:48:48 - 19/1/2005 - 11:48:48 - 2.0 - ? - ? - Compute Node - 604 - 149 - -? - ? - InitLoopSwitch - 4 - EndOfInitLoopSwitch - -InitLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -InitLoop - - - - -MoreLoop - - - - = Min : ]]> - - - - - -NextLoop - - - - 19/1/2005 - 11:48:48 - 19/1/2005 - 11:48:48 - 2.0 - ? - ? - Compute Node - 10 - 129 - -? - ? - EndOfInitLoopSwitch - 5 - InitLoopSwitch - -EndOfInitLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -EndOfInitLoopSwitch - - - - - 19/1/2005 - 11:48:48 - 19/1/2005 - 11:48:48 - 2.0 - ? - ? - Compute Node - 1074 - 194 - -? - ? - Switch - 6 - EndOfSwitch - -Switch - - -long - a - - -long - Odd - -int - Even - -int - a - -string - Branch - -boolean - default - - - -Switch - - - - - - - - - - - - 19/1/2005 - 11:48:48 - 19/1/2005 - 11:48:48 - 2.0 - ? - ? - Compute Node - 195 - 129 - -? - ? - EndOfSwitch - 7 - Switch - -EndOfSwitch - - -long - a - -string - Branch - - -long - a - - - -EndOfSwitch - - - - - 19/1/2005 - 11:48:48 - 19/1/2005 - 11:48:48 - 2.0 - ? - ? - Compute Node - 882 - 194 - - -IsOdd - a - EndOfSwitch - a - - -IsEven - a - EndOfSwitch - a - - -BranchNode - Branch - EndOfSwitch - Branch - - -InitLoopSwitch - DoLoop - EndOfInitLoopSwitch - DoLoop - - -InitLoopSwitch - Index - Switch - a - - -InitLoopSwitch - Min - EndOfInitLoopSwitch - Min - - -InitLoopSwitch - Max - EndOfInitLoopSwitch - Max - - -EndOfInitLoopSwitch - DoLoop - InitLoopSwitch - DoLoop - - -Switch - Odd - IsOdd - Gate - - -401 - 101 - -401 - 160 - -Switch - Even - IsEven - Gate - - -392 - 533 - -392 - 182 - -Switch - a - IsOdd - a - - -382 - 78 - -382 - 199 - -Switch - a - IsEven - a - - -381 - 509 - -382 - 200 - -Switch - Branch - BranchNode - Branch - - -Switch - Default - EndOfSwitch - Default - - -EndOfSwitch - a - EndOfInitLoopSwitch - Index - - - -GraphSwitchCheckBranch - InitLoopSwitch__Index - InitLoopSwitch - Index - -3 - 0 - - -GraphSwitchCheckBranch - InitLoopSwitch__Min - InitLoopSwitch - Min - -3 - -5 - - -GraphSwitchCheckBranch - InitLoopSwitch__Max - InitLoopSwitch - Max - -3 - 10 - diff --git a/Superv/Graphs/GraphSwitchCheckBranch1.xml b/Superv/Graphs/GraphSwitchCheckBranch1.xml deleted file mode 100644 index 4d0ed87..0000000 --- a/Superv/Graphs/GraphSwitchCheckBranch1.xml +++ /dev/null @@ -1,561 +0,0 @@ - - - - - - -? - ? - GraphSwitchCheckBranch1_1 - 1 - ? - -GraphSwitchCheckBranch1_1 - - -long - InitLoopSwitch__Index - -long - InitLoopSwitch__Min - -long - InitLoopSwitch__Max - - -long - EndOfInitLoopSwitch__Index - -long - EndOfInitLoopSwitch__Min - -long - EndOfInitLoopSwitch__Max - - - 13/1/2005 - 11:48:50 - 8/3/2005 - 16:43:59 - 2.0 - JR - ? - Switch with two SwitchBranches, One NotSwitchBranch and the DefaultBranch - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - - -long - a - - - -IsOdd - - - - - - 8/3/2005 - 16:43:59 - 8/3/2005 - 16:43:59 - 2.0 - ? - ? - Python function - 415 - 7 - -? - ? - IsEven - 3 - ? - -IsEven - - -long - a - - -long - a - - - -IsEven - - - - - - 8/3/2005 - 16:43:59 - 8/3/2005 - 16:43:59 - 2.0 - ? - ? - Compute Node - 421 - 438 - -? - ? - BranchNode - 3 - ? - -BranchNode - - -string - Branch - - -string - Branch - - - -Print_1 - - - - - - 8/3/2005 - 16:43:59 - 8/3/2005 - 16:43:59 - 2.0 - ? - ? - Compute Node - 529 - 177 - -? - ? - InitLoopSwitch - 4 - EndOfInitLoopSwitch - -InitLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -InitLoop - - - - -MoreLoop - - - - = Min : ]]> - - - - - -NextLoop - - - - 8/3/2005 - 16:43:59 - 8/3/2005 - 16:43:59 - 2.0 - ? - ? - Compute Node - 10 - 157 - -? - ? - EndOfInitLoopSwitch - 5 - InitLoopSwitch - -EndOfInitLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -EndOfInitLoopSwitch - - - - - 8/3/2005 - 16:43:59 - 8/3/2005 - 16:43:59 - 2.0 - ? - ? - Compute Node - 1073 - 216 - -? - ? - Switch - 6 - EndOfSwitch - -Switch - - -long - a - - -long - Odd - -int - Even - -int - a - -string - Branch - -boolean - default - - - -Switch - - - - - - - - - - - - 8/3/2005 - 16:43:59 - 8/3/2005 - 16:43:59 - 2.0 - ? - ? - Compute Node - 194 - 157 - -? - ? - EndOfSwitch - 7 - Switch - -EndOfSwitch - - -long - a - -string - Branch - - -long - a - - - -EndOfSwitch - - - - - 8/3/2005 - 16:43:59 - 8/3/2005 - 16:43:59 - 2.0 - ? - ? - Compute Node - 880 - 216 - -? - ? - default - 3 - ? - -default - - -long - a - - -long - a - - - -default - - - - - 8/3/2005 - 16:43:59 - 8/3/2005 - 16:43:59 - 2.0 - ? - ? - Compute Node - 428 - 308 - - -IsOdd - a - EndOfSwitch - a - - -IsEven - a - EndOfSwitch - a - - -BranchNode - Branch - EndOfSwitch - Branch - - -InitLoopSwitch - DoLoop - EndOfInitLoopSwitch - DoLoop - - -InitLoopSwitch - Index - Switch - a - - -InitLoopSwitch - Min - EndOfInitLoopSwitch - Min - - -InitLoopSwitch - Max - EndOfInitLoopSwitch - Max - - -EndOfInitLoopSwitch - DoLoop - InitLoopSwitch - DoLoop - - -Switch - Odd - IsOdd - Gate - - -401 - 101 - -401 - 188 - -Switch - Even - IsEven - Gate - - -392 - 533 - -392 - 208 - -Switch - a - IsOdd - a - - -382 - 78 - -382 - 229 - -Switch - a - IsEven - a - - -381 - 509 - -381 - 229 - -Switch - a - default - a - - -382 - 377 - -382 - 228 - -Switch - Branch - BranchNode - Branch - - -Switch - default - default - Gate - - -410 - 403 - -410 - 269 - -410 - 268 - -Switch - Default - EndOfSwitch - Default - - -EndOfSwitch - a - EndOfInitLoopSwitch - Index - - -default - a - EndOfSwitch - a - - - -GraphSwitchCheckBranch1_1 - InitLoopSwitch__Index - InitLoopSwitch - Index - -3 - 0 - - -GraphSwitchCheckBranch1_1 - InitLoopSwitch__Min - InitLoopSwitch - Min - -3 - -5 - - -GraphSwitchCheckBranch1_1 - InitLoopSwitch__Max - InitLoopSwitch - Max - -3 - 10 - diff --git a/Superv/Graphs/GraphSwitchCheckBranch1Default.xml b/Superv/Graphs/GraphSwitchCheckBranch1Default.xml deleted file mode 100644 index bd18cc5..0000000 --- a/Superv/Graphs/GraphSwitchCheckBranch1Default.xml +++ /dev/null @@ -1,564 +0,0 @@ - - - - - - -? - ? - GraphSwitchCheckBranch1Default - 1 - ? - -GraphSwitchCheckBranch1Default - - -long - InitLoopSwitch__Index - -long - InitLoopSwitch__Min - -long - InitLoopSwitch__Max - - -long - EndOfInitLoopSwitch__Index - -long - EndOfInitLoopSwitch__Min - -long - EndOfInitLoopSwitch__Max - - - 13/1/2005 - 11:48:50 - 8/7/2005 - 14:42:28 - 2.0 - JR - ? - Switch with two SwitchBranches, One NotSwitchBranch and the DefaultBranch - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - - -long - a - - - -IsOdd - - - - - - 8/7/2005 - 14:41:7 - 8/7/2005 - 14:41:7 - 2.0 - ? - ? - Python function - 415 - 7 - -? - ? - IsEven - 3 - ? - -IsEven - - -long - a - - -long - a - - - -IsEven - - - - - - 8/7/2005 - 14:41:7 - 8/7/2005 - 14:41:7 - 2.0 - ? - ? - Compute Node - 421 - 438 - -? - ? - BranchNode - 3 - ? - -BranchNode - - -string - Branch - - -string - Branch - - - -Print_1 - - - - - - 8/7/2005 - 14:41:7 - 8/7/2005 - 14:41:7 - 2.0 - ? - ? - Compute Node - 529 - 177 - -? - ? - InitLoopSwitch - 4 - EndOfInitLoopSwitch - -InitLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -InitLoop - - - - -MoreLoop - - - - = Min : ]]> - - - - - -NextLoop - - - - 8/7/2005 - 14:41:7 - 8/7/2005 - 14:41:7 - 2.0 - ? - ? - Compute Node - 10 - 157 - -? - ? - EndOfInitLoopSwitch - 5 - InitLoopSwitch - -EndOfInitLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -EndOfInitLoopSwitch - - - - - 8/7/2005 - 14:41:7 - 8/7/2005 - 14:41:7 - 2.0 - ? - ? - Compute Node - 1073 - 216 - -? - ? - Switch - 6 - EndOfSwitch - -Switch - - -long - a - - -long - Odd - -int - Even - -int - a - -string - Branch - -boolean - default - - - -Switch - - - - - - - - - - - - - - - 8/7/2005 - 14:41:7 - 8/7/2005 - 14:41:7 - 2.0 - ? - ? - Compute Node - 194 - 157 - -? - ? - EndOfSwitch - 7 - Switch - -EndOfSwitch - - -long - a - -string - Branch - - -long - a - - - -EndOfSwitch - - - - - 8/7/2005 - 14:41:7 - 8/7/2005 - 14:41:7 - 2.0 - ? - ? - Compute Node - 880 - 216 - -? - ? - default - 3 - ? - -default - - -long - a - - -long - a - - - -default - - - - - 8/7/2005 - 14:41:7 - 8/7/2005 - 14:41:7 - 2.0 - ? - ? - Compute Node - 428 - 308 - - -IsOdd - a - EndOfSwitch - a - - -IsEven - a - EndOfSwitch - a - - -BranchNode - Branch - EndOfSwitch - Branch - - -InitLoopSwitch - DoLoop - EndOfInitLoopSwitch - DoLoop - - -InitLoopSwitch - Index - Switch - a - - -InitLoopSwitch - Min - EndOfInitLoopSwitch - Min - - -InitLoopSwitch - Max - EndOfInitLoopSwitch - Max - - -EndOfInitLoopSwitch - DoLoop - InitLoopSwitch - DoLoop - - -Switch - Odd - IsOdd - Gate - - -401 - 101 - -401 - 188 - -Switch - Even - IsEven - Gate - - -392 - 533 - -392 - 208 - -Switch - a - IsOdd - a - - -382 - 78 - -382 - 229 - -Switch - a - IsEven - a - - -381 - 509 - -381 - 229 - -Switch - a - default - a - - -382 - 377 - -382 - 228 - -Switch - Branch - BranchNode - Branch - - -Switch - default - default - Gate - - -410 - 403 - -410 - 269 - -410 - 268 - -Switch - Default - EndOfSwitch - Default - - -EndOfSwitch - a - EndOfInitLoopSwitch - Index - - -default - a - EndOfSwitch - a - - - -GraphSwitchCheckBranch1Default - InitLoopSwitch__Index - InitLoopSwitch - Index - -3 - 0 - - -GraphSwitchCheckBranch1Default - InitLoopSwitch__Min - InitLoopSwitch - Min - -3 - -5 - - -GraphSwitchCheckBranch1Default - InitLoopSwitch__Max - InitLoopSwitch - Max - -3 - 10 - diff --git a/Superv/Graphs/GraphSwitchCheckBranch1NoDefault.xml b/Superv/Graphs/GraphSwitchCheckBranch1NoDefault.xml deleted file mode 100644 index 9ff4386..0000000 --- a/Superv/Graphs/GraphSwitchCheckBranch1NoDefault.xml +++ /dev/null @@ -1,555 +0,0 @@ - - - - - - -? - ? - GraphSwitchCheckBranch1NoDefault - 1 - ? - -GraphSwitchCheckBranch1 - - -long - InitLoopSwitch__Index - -long - InitLoopSwitch__Min - -long - InitLoopSwitch__Max - - -long - EndOfInitLoopSwitch__Index - -long - EndOfInitLoopSwitch__Min - -long - EndOfInitLoopSwitch__Max - - - 13/1/2005 - 11:48:50 - 14/2/2005 - 11:39:30 - 2.0 - JR - ? - Switch with two SwitchBranches, One NotSwitchBranch and the DefaultBranch - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - - -long - a - - - -IsOdd - - - - - - 14/2/2005 - 11:36:28 - 14/2/2005 - 11:36:28 - 2.0 - ? - ? - Python function - 415 - 7 - -? - ? - IsEven - 3 - ? - -IsEven - - -long - a - - -long - a - - - -IsEven - - - - - - 14/2/2005 - 11:36:28 - 14/2/2005 - 11:36:28 - 2.0 - ? - ? - Compute Node - 421 - 438 - -? - ? - BranchNode - 3 - ? - -BranchNode - - -string - Branch - - -string - Branch - - - -Print_1 - - - - - - 14/2/2005 - 11:36:28 - 14/2/2005 - 11:36:28 - 2.0 - ? - ? - Compute Node - 529 - 177 - -? - ? - InitLoopSwitch - 4 - EndOfInitLoopSwitch - -InitLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -InitLoop - - - - -MoreLoop - - - - = Min : ]]> - - - - - -NextLoop - - - - 14/2/2005 - 11:36:28 - 14/2/2005 - 11:36:28 - 2.0 - ? - ? - Compute Node - 10 - 157 - -? - ? - EndOfInitLoopSwitch - 5 - InitLoopSwitch - -EndOfInitLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -EndOfInitLoopSwitch - - - - - 14/2/2005 - 11:36:28 - 14/2/2005 - 11:36:28 - 2.0 - ? - ? - Compute Node - 1073 - 216 - -? - ? - Switch - 6 - EndOfSwitch - -Switch - - -long - a - - -long - Odd - -int - Even - -int - a - -string - Branch - -boolean - default - - - -Switch - - - - - - - - - - - - 14/2/2005 - 11:36:28 - 14/2/2005 - 11:36:28 - 2.0 - ? - ? - Compute Node - 194 - 157 - -? - ? - EndOfSwitch - 7 - Switch - -EndOfSwitch - - -long - a - -string - Branch - - -long - a - - - -EndOfSwitch - - - - - 14/2/2005 - 11:36:28 - 14/2/2005 - 11:36:28 - 2.0 - ? - ? - Compute Node - 880 - 216 - -? - ? - default - 3 - ? - -default - - -long - a - - -long - a - - - -default - - - - - 14/2/2005 - 11:36:28 - 14/2/2005 - 11:36:28 - 2.0 - ? - ? - Compute Node - 428 - 308 - - -IsOdd - a - EndOfSwitch - a - - -IsEven - a - EndOfSwitch - a - - -BranchNode - Branch - EndOfSwitch - Branch - - -InitLoopSwitch - DoLoop - EndOfInitLoopSwitch - DoLoop - - -InitLoopSwitch - Index - Switch - a - - -InitLoopSwitch - Min - EndOfInitLoopSwitch - Min - - -InitLoopSwitch - Max - EndOfInitLoopSwitch - Max - - -EndOfInitLoopSwitch - DoLoop - InitLoopSwitch - DoLoop - - -Switch - Odd - IsOdd - Gate - - -401 - 101 - -401 - 188 - -Switch - Even - IsEven - Gate - - -392 - 533 - -392 - 208 - -Switch - a - IsOdd - a - - -382 - 78 - -382 - 229 - -Switch - a - IsEven - a - - -381 - 509 - -381 - 229 - -Switch - a - default - a - - -382 - 377 - -382 - 228 - -Switch - Branch - BranchNode - Branch - - -Switch - default - default - Gate - - -410 - 403 - -410 - 269 - -410 - 268 - -EndOfSwitch - a - EndOfInitLoopSwitch - Index - - -default - a - EndOfSwitch - a - - - -GraphSwitchCheckBranch1NoDefault - InitLoopSwitch__Index - InitLoopSwitch - Index - -3 - 0 - - -GraphSwitchCheckBranch1NoDefault - InitLoopSwitch__Min - InitLoopSwitch - Min - -3 - -5 - - -GraphSwitchCheckBranch1NoDefault - InitLoopSwitch__Max - InitLoopSwitch - Max - -3 - 10 - diff --git a/Superv/Graphs/GraphSwitchCheckBranch2NOTValid.xml b/Superv/Graphs/GraphSwitchCheckBranch2NOTValid.xml deleted file mode 100644 index e4a9bb4..0000000 --- a/Superv/Graphs/GraphSwitchCheckBranch2NOTValid.xml +++ /dev/null @@ -1,571 +0,0 @@ - - - - - - -? - ? - GraphSwitchCheckBranch2NOTValid - 1 - ? - -GraphSwitchCheckBranch2NOTValid - - -long - InitLoopSwitch__Index - -long - InitLoopSwitch__Min - -long - InitLoopSwitch__Max - - -long - EndOfInitLoopSwitch__Index - -long - EndOfInitLoopSwitch__Min - -long - EndOfInitLoopSwitch__Max - - - 13/1/2005 - 11:48:50 - 15/2/2005 - 11:47:4 - 2.0 - JR - ? - Switch with two SwitchBranches, One NotSwitchBranch and the DefaultBranch -Shared Node between Branches - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - -string - Branch - - -long - a - - - -IsOdd - - - - - - 15/2/2005 - 11:42:57 - 15/2/2005 - 11:42:57 - 2.0 - ? - ? - Python function - 649 - 6 - -? - ? - IsEven - 3 - ? - -IsEven - - -long - a - -string - Branch - - -long - a - - - -IsEven - - - - - - 15/2/2005 - 11:42:57 - 15/2/2005 - 11:42:57 - 2.0 - ? - ? - Compute Node - 657 - 451 - -? - ? - BranchNode - 3 - ? - -BranchNode - - -string - Branch - - -string - Branch - - - -Print_1 - - - - - - 15/2/2005 - 11:42:57 - 15/2/2005 - 11:42:57 - 2.0 - ? - ? - Compute Node - 429 - 177 - -? - ? - InitLoopSwitch - 4 - EndOfInitLoopSwitch - -InitLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -InitLoop - - - - -MoreLoop - - - - = Min : ]]> - - - - - -NextLoop - - - - 15/2/2005 - 11:42:57 - 15/2/2005 - 11:42:57 - 2.0 - ? - ? - Compute Node - 10 - 157 - -? - ? - EndOfInitLoopSwitch - 5 - InitLoopSwitch - -EndOfInitLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -EndOfInitLoopSwitch - - - - - 15/2/2005 - 11:42:57 - 15/2/2005 - 11:42:57 - 2.0 - ? - ? - Compute Node - 1073 - 216 - -? - ? - Switch - 6 - EndOfSwitch - -Switch - - -long - a - - -long - Odd - -int - Even - -int - a - -string - Branch - -boolean - default - - - -Switch - - - - - - - - - - - - 15/2/2005 - 11:42:57 - 15/2/2005 - 11:42:57 - 2.0 - ? - ? - Compute Node - 194 - 157 - -? - ? - EndOfSwitch - 7 - Switch - -EndOfSwitch - - -long - a - -string - Branch - - -long - a - - - -EndOfSwitch - - - - - 15/2/2005 - 11:42:57 - 15/2/2005 - 11:42:57 - 2.0 - ? - ? - Compute Node - 880 - 216 - -? - ? - default - 3 - ? - -default - - -long - a - -string - Branch - - -long - a - - - -default - - - - - 15/2/2005 - 11:42:57 - 15/2/2005 - 11:42:57 - 2.0 - ? - ? - Compute Node - 655 - 306 - - -IsOdd - a - EndOfSwitch - a - - -IsEven - a - EndOfSwitch - a - - -BranchNode - Branch - EndOfSwitch - Branch - - -BranchNode - Branch - IsOdd - Branch - - -BranchNode - Branch - default - Branch - - -BranchNode - Branch - IsEven - Branch - - -InitLoopSwitch - DoLoop - EndOfInitLoopSwitch - DoLoop - - -InitLoopSwitch - Index - Switch - a - - -InitLoopSwitch - Min - EndOfInitLoopSwitch - Min - - -InitLoopSwitch - Max - EndOfInitLoopSwitch - Max - - -EndOfInitLoopSwitch - DoLoop - InitLoopSwitch - DoLoop - - -Switch - Odd - IsOdd - Gate - - -400 - 121 - -401 - 188 - -Switch - Even - IsEven - Gate - - -391 - 568 - -392 - 208 - -Switch - a - default - a - - -Switch - a - IsEven - a - - -Switch - a - IsOdd - a - - -Switch - Branch - BranchNode - Branch - - -Switch - default - default - Gate - - -410 - 422 - -410 - 269 - -410 - 268 - -Switch - Default - EndOfSwitch - Default - - -EndOfSwitch - a - EndOfInitLoopSwitch - Index - - -default - a - EndOfSwitch - a - - - -GraphSwitchCheckBranch2NOTValid - InitLoopSwitch__Index - InitLoopSwitch - Index - -3 - 0 - - -GraphSwitchCheckBranch2NOTValid - InitLoopSwitch__Min - InitLoopSwitch - Min - -3 - -5 - - -GraphSwitchCheckBranch2NOTValid - InitLoopSwitch__Max - InitLoopSwitch - Max - -3 - 10 - diff --git a/Superv/Graphs/GraphSwitchCheckDefault.xml b/Superv/Graphs/GraphSwitchCheckDefault.xml deleted file mode 100644 index 75957b4..0000000 --- a/Superv/Graphs/GraphSwitchCheckDefault.xml +++ /dev/null @@ -1,651 +0,0 @@ - - - - - - -? - ? - GraphSwitchCheckDefault_1 - 1 - ? - -GraphSwitchCheckDefault_1 - - -long - InitLoopSwitch__Index - -long - InitLoopSwitch__Min - -long - InitLoopSwitch__Max - - -long - EndOfInitLoopSwitch__Index - -long - EndOfInitLoopSwitch__Min - -long - EndOfInitLoopSwitch__Max - -boolean - Switch__default - - - 13/1/2005 - 12:21:43 - 8/3/2005 - 16:47:4 - 2.0 - JR - ? - ? - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - - -long - a - - - -IsOdd - - - - - - 8/3/2005 - 16:47:4 - 8/3/2005 - 16:47:4 - 2.0 - ? - ? - Python function - 415 - 7 - -? - ? - IsEven - 3 - ? - -IsEven - - -long - a - - -long - a - - - -IsEven - - - - - - 8/3/2005 - 16:47:4 - 8/3/2005 - 16:47:4 - 2.0 - ? - ? - Compute Node - 421 - 438 - -? - ? - PrintOdd - 3 - ? - -PrintOdd - - -long - a - -string - Branch - - -string - Branch - - - -Print - - - - - - 8/3/2005 - 16:47:4 - 8/3/2005 - 16:47:4 - 2.0 - ? - ? - Compute Node - 415 - 130 - -? - ? - PrintEven - 3 - ? - -PrintEven - - -long - a - -string - Branch - - -string - Branch - - - -Print_1 - - - - - - 8/3/2005 - 16:47:4 - 8/3/2005 - 16:47:4 - 2.0 - ? - ? - Compute Node - 423 - 289 - -? - ? - EmptyNode - 3 - ? - -EmptyNode - - -long - a - -string - Branch - - -long - a - -string - Branch - - - -EmptyNode - - - - - 8/3/2005 - 16:47:4 - 8/3/2005 - 16:47:4 - 2.0 - ? - ? - Compute Node - 652 - 110 - -? - ? - InitLoopSwitch - 4 - EndOfInitLoopSwitch - -InitLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -InitLoop - - - - -MoreLoop - - - - = Min : ]]> - - - - - -NextLoop - - - - 8/3/2005 - 16:47:4 - 8/3/2005 - 16:47:4 - 2.0 - ? - ? - Compute Node - 10 - 129 - -? - ? - EndOfInitLoopSwitch - 5 - InitLoopSwitch - -EndOfInitLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -EndOfInitLoopSwitch - - - - - 8/3/2005 - 16:47:4 - 8/3/2005 - 16:47:4 - 2.0 - ? - ? - Compute Node - 1074 - 194 - -? - ? - Switch - 6 - EndOfSwitch - -Switch - - -long - a - - -long - Odd - -int - Even - -int - a - -string - Branch - -boolean - default - - - -Switch - - - - - - - - - - - - 8/3/2005 - 16:47:4 - 8/3/2005 - 16:47:4 - 2.0 - ? - ? - Compute Node - 190 - 129 - -? - ? - EndOfSwitch - 7 - Switch - -EndOfSwitch - - -long - a - -string - Branch - - -long - a - - - -EndOfSwitch - - - - - 8/3/2005 - 16:47:4 - 8/3/2005 - 16:47:4 - 2.0 - ? - ? - Compute Node - 882 - 194 - - -IsOdd - a - EmptyNode - a - - -646 - 78 - -IsEven - a - EndOfSwitch - a - - -PrintOdd - Branch - EmptyNode - Branch - - -PrintEven - Branch - EndOfSwitch - Branch - - -EmptyNode - a - EndOfSwitch - a - - -EmptyNode - Branch - EndOfSwitch - Branch - - -InitLoopSwitch - DoLoop - EndOfInitLoopSwitch - DoLoop - - -InitLoopSwitch - Index - Switch - a - - -InitLoopSwitch - Min - EndOfInitLoopSwitch - Min - - -InitLoopSwitch - Max - EndOfInitLoopSwitch - Max - - -EndOfInitLoopSwitch - DoLoop - InitLoopSwitch - DoLoop - - -Switch - Odd - IsOdd - Gate - - -401 - 101 - -401 - 160 - -Switch - Odd - PrintOdd - Gate - - -401 - 245 - -401 - 159 - -Switch - Even - IsEven - Gate - - -392 - 533 - -392 - 182 - -Switch - Even - PrintEven - Gate - - -392 - 403 - -392 - 181 - -Switch - a - IsOdd - a - - -382 - 78 - -382 - 199 - -Switch - a - IsEven - a - - -381 - 509 - -382 - 200 - -Switch - a - PrintOdd - a - - -Switch - a - PrintEven - a - - -381 - 361 - -382 - 200 - -Switch - Branch - PrintOdd - Branch - - -Switch - Branch - PrintEven - Branch - - -369 - 381 - -369 - 219 - -Switch - Default - EndOfSwitch - Default - - -EndOfSwitch - a - EndOfInitLoopSwitch - Index - - - -GraphSwitchCheckDefault_1 - InitLoopSwitch__Index - InitLoopSwitch - Index - -3 - 0 - - -GraphSwitchCheckDefault_1 - InitLoopSwitch__Min - InitLoopSwitch - Min - -3 - -5 - - -GraphSwitchCheckDefault_1 - InitLoopSwitch__Max - InitLoopSwitch - Max - -3 - 10 - diff --git a/Superv/Graphs/GraphSwitchCheckDefault1.xml b/Superv/Graphs/GraphSwitchCheckDefault1.xml deleted file mode 100644 index 0aea497..0000000 --- a/Superv/Graphs/GraphSwitchCheckDefault1.xml +++ /dev/null @@ -1,734 +0,0 @@ - - - - - - -? - ? - GraphSwitchCheckDefault1 - 1 - ? - -GraphSwitchCheckDefault1 - - -long - InitLoopSwitch__Index - -long - InitLoopSwitch__Min - -long - InitLoopSwitch__Max - - -long - EndOfInitLoopSwitch__Index - -long - EndOfInitLoopSwitch__Min - -long - EndOfInitLoopSwitch__Max - - - 13/1/2005 - 12:21:43 - 14/1/2005 - 17:54:11 - 2.0 - JR - ? - ? - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - - -long - a - - - -IsOdd - - - - - - 14/1/2005 - 17:51:6 - 14/1/2005 - 17:51:6 - 2.0 - ? - ? - Python function - 415 - 7 - -? - ? - IsEven - 3 - ? - -IsEven - - -long - a - - -long - a - - - -IsEven - - - - - - 14/1/2005 - 17:51:6 - 14/1/2005 - 17:51:6 - 2.0 - ? - ? - Compute Node - 421 - 438 - -? - ? - PrintOdd - 3 - ? - -PrintOdd - - -long - a - -string - Branch - - -string - Branch - - - -Print - - - - - - 14/1/2005 - 17:51:6 - 14/1/2005 - 17:51:6 - 2.0 - ? - ? - Compute Node - 415 - 130 - -? - ? - PrintEven - 3 - ? - -PrintEven - - -long - a - -string - Branch - - -string - Branch - - - -Print_1 - - - - - - 14/1/2005 - 17:51:6 - 14/1/2005 - 17:51:6 - 2.0 - ? - ? - Compute Node - 423 - 289 - -? - ? - EmptyNode - 3 - ? - -EmptyNode - - -long - a - -string - Branch - - -long - a - -string - Branch - - - -EmptyNode - - - - - 14/1/2005 - 17:51:6 - 14/1/2005 - 17:51:6 - 2.0 - ? - ? - Compute Node - 652 - 110 - -? - ? - Default - 3 - ? - -Default - - -long - a - -string - Branch - - -long - a - -string - Branch - - - -Default - - - - - 14/1/2005 - 17:51:6 - 14/1/2005 - 17:51:6 - 2.0 - ? - ? - Compute Node - 421 - 592 - -? - ? - InitLoopSwitch - 4 - EndOfInitLoopSwitch - -InitLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -InitLoop - - - - -MoreLoop - - - - = Min : ]]> - - - - - -NextLoop - - - - 14/1/2005 - 17:51:6 - 14/1/2005 - 17:51:6 - 2.0 - ? - ? - Compute Node - 10 - 129 - -? - ? - EndOfInitLoopSwitch - 5 - InitLoopSwitch - -EndOfInitLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -EndOfInitLoopSwitch - - - - - 14/1/2005 - 17:51:6 - 14/1/2005 - 17:51:6 - 2.0 - ? - ? - Compute Node - 1074 - 194 - -? - ? - Switch - 6 - EndOfSwitch - -Switch - - -long - a - - -long - Odd - -int - Even - -int - a - -string - Branch - -boolean - default - - - -Switch - - - - - - - - - - - - 14/1/2005 - 17:51:6 - 14/1/2005 - 17:51:6 - 2.0 - ? - ? - Compute Node - 190 - 129 - -? - ? - EndOfSwitch - 7 - Switch - -EndOfSwitch - - -long - a - -string - Branch - - -long - a - - - -EndOfSwitch - - - - - 14/1/2005 - 17:51:6 - 14/1/2005 - 17:51:6 - 2.0 - ? - ? - Compute Node - 882 - 194 - - -IsOdd - a - EmptyNode - a - - -646 - 78 - -IsEven - a - EndOfSwitch - a - - -PrintOdd - Branch - EmptyNode - Branch - - -PrintEven - Branch - EndOfSwitch - Branch - - -EmptyNode - a - EndOfSwitch - a - - -EmptyNode - Branch - EndOfSwitch - Branch - - -Default - a - EndOfSwitch - a - - -Default - Branch - EndOfSwitch - Branch - - -InitLoopSwitch - DoLoop - EndOfInitLoopSwitch - DoLoop - - -InitLoopSwitch - Index - Switch - a - - -InitLoopSwitch - Min - EndOfInitLoopSwitch - Min - - -InitLoopSwitch - Max - EndOfInitLoopSwitch - Max - - -EndOfInitLoopSwitch - DoLoop - InitLoopSwitch - DoLoop - - -Switch - Odd - IsOdd - Gate - - -401 - 101 - -401 - 160 - -Switch - Odd - PrintOdd - Gate - - -401 - 245 - -401 - 159 - -Switch - Even - IsEven - Gate - - -392 - 533 - -392 - 182 - -Switch - Even - PrintEven - Gate - - -392 - 403 - -392 - 181 - -Switch - a - IsOdd - a - - -382 - 78 - -382 - 199 - -Switch - a - IsEven - a - - -381 - 509 - -382 - 200 - -Switch - a - PrintOdd - a - - -Switch - a - PrintEven - a - - -381 - 361 - -382 - 200 - -Switch - a - Default - a - - -382 - 663 - -382 - 199 - -Switch - Branch - PrintOdd - Branch - - -Switch - Branch - PrintEven - Branch - - -369 - 381 - -369 - 219 - -Switch - Branch - Default - Branch - - -370 - 683 - -370 - 220 - -Switch - default - Default - Gate - - -363 - 707 - -362 - 239 - -Switch - Default - EndOfSwitch - Default - - -EndOfSwitch - a - EndOfInitLoopSwitch - Index - - - -GraphSwitchCheckDefault1 - InitLoopSwitch__Index - InitLoopSwitch - Index - -3 - 0 - - -GraphSwitchCheckDefault1 - InitLoopSwitch__Min - InitLoopSwitch - Min - -3 - -5 - - -GraphSwitchCheckDefault1 - InitLoopSwitch__Max - InitLoopSwitch - Max - -3 - 10 - diff --git a/Superv/Graphs/GraphSwitchCheckDefault1NOTValid.xml b/Superv/Graphs/GraphSwitchCheckDefault1NOTValid.xml deleted file mode 100755 index 13eb02e..0000000 --- a/Superv/Graphs/GraphSwitchCheckDefault1NOTValid.xml +++ /dev/null @@ -1,731 +0,0 @@ - - - - - - -? - ? - GraphSwitchCheckDefault11NOTValid - 1 - ? - -GraphSwitchCheckDefault11NOTValid - - -long - InitLoopSwitch__Index - -long - InitLoopSwitch__Min - -long - InitLoopSwitch__Max - - -long - Default__a - -long - EndOfInitLoopSwitch__Index - -long - EndOfInitLoopSwitch__Min - -long - EndOfInitLoopSwitch__Max - - - 13/1/2005 - 12:21:43 - 19/1/2005 - 12:14:37 - 2.0 - JR - ? - ? - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - - -long - a - - - -IsOdd - - - - - - 19/1/2005 - 12:14:37 - 19/1/2005 - 12:14:37 - 2.0 - ? - ? - Python function - 415 - 7 - -? - ? - IsEven - 3 - ? - -IsEven - - -long - a - - -long - a - - - -IsEven - - - - - - 19/1/2005 - 12:14:37 - 19/1/2005 - 12:14:37 - 2.0 - ? - ? - Compute Node - 421 - 438 - -? - ? - PrintOdd - 3 - ? - -PrintOdd - - -long - a - -string - Branch - - -string - Branch - - - -Print - - - - - - 19/1/2005 - 12:14:37 - 19/1/2005 - 12:14:37 - 2.0 - ? - ? - Compute Node - 415 - 130 - -? - ? - PrintEven - 3 - ? - -PrintEven - - -long - a - -string - Branch - - -string - Branch - - - -Print_1 - - - - - - 19/1/2005 - 12:14:37 - 19/1/2005 - 12:14:37 - 2.0 - ? - ? - Compute Node - 423 - 289 - -? - ? - EmptyNode - 3 - ? - -EmptyNode - - -long - a - -string - Branch - - -long - a - -string - Branch - - - -EmptyNode - - - - - 19/1/2005 - 12:14:37 - 19/1/2005 - 12:14:37 - 2.0 - ? - ? - Compute Node - 652 - 110 - -? - ? - Default - 3 - ? - -Default - - -long - a - -string - Branch - - -long - a - -string - Branch - - - -Default - - - - - 19/1/2005 - 12:14:37 - 19/1/2005 - 12:14:37 - 2.0 - ? - ? - Compute Node - 421 - 592 - -? - ? - InitLoopSwitch - 4 - EndOfInitLoopSwitch - -InitLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -InitLoop - - - - -MoreLoop - - - - = Min : ]]> - - - - - -NextLoop - - - - 19/1/2005 - 12:14:37 - 19/1/2005 - 12:14:37 - 2.0 - ? - ? - Compute Node - 10 - 129 - -? - ? - EndOfInitLoopSwitch - 5 - InitLoopSwitch - -EndOfInitLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -EndOfInitLoopSwitch - - - - - 19/1/2005 - 12:14:37 - 19/1/2005 - 12:14:37 - 2.0 - ? - ? - Compute Node - 1074 - 194 - -? - ? - Switch - 6 - EndOfSwitch - -Switch - - -long - a - - -long - Odd - -int - Even - -int - a - -string - Branch - -boolean - default - - - -Switch - - - - - - - - - - - - 19/1/2005 - 12:14:37 - 19/1/2005 - 12:14:37 - 2.0 - ? - ? - Compute Node - 190 - 129 - -? - ? - EndOfSwitch - 7 - Switch - -EndOfSwitch - - -long - a - -string - Branch - - -long - a - - - -EndOfSwitch - - - - - 19/1/2005 - 12:14:37 - 19/1/2005 - 12:14:37 - 2.0 - ? - ? - Compute Node - 882 - 194 - - -IsOdd - a - EmptyNode - a - - -646 - 78 - -IsEven - a - EndOfSwitch - a - - -PrintOdd - Branch - EmptyNode - Branch - - -PrintEven - Branch - EndOfSwitch - Branch - - -EmptyNode - a - EndOfSwitch - a - - -EmptyNode - Branch - EndOfSwitch - Branch - - -Default - Branch - EndOfSwitch - Branch - - -InitLoopSwitch - DoLoop - EndOfInitLoopSwitch - DoLoop - - -InitLoopSwitch - Index - Switch - a - - -InitLoopSwitch - Min - EndOfInitLoopSwitch - Min - - -InitLoopSwitch - Max - EndOfInitLoopSwitch - Max - - -EndOfInitLoopSwitch - DoLoop - InitLoopSwitch - DoLoop - - -Switch - Odd - IsOdd - Gate - - -401 - 101 - -401 - 160 - -Switch - Odd - PrintOdd - Gate - - -401 - 245 - -401 - 159 - -Switch - Even - IsEven - Gate - - -392 - 533 - -392 - 182 - -Switch - Even - PrintEven - Gate - - -392 - 403 - -392 - 181 - -Switch - a - IsOdd - a - - -382 - 78 - -382 - 199 - -Switch - a - IsEven - a - - -381 - 509 - -382 - 200 - -Switch - a - PrintOdd - a - - -Switch - a - PrintEven - a - - -381 - 361 - -382 - 200 - -Switch - a - Default - a - - -382 - 663 - -382 - 199 - -Switch - Branch - PrintOdd - Branch - - -Switch - Branch - PrintEven - Branch - - -369 - 381 - -369 - 219 - -Switch - Branch - Default - Branch - - -370 - 683 - -370 - 220 - -Switch - default - Default - Gate - - -363 - 707 - -362 - 239 - -Switch - Default - EndOfSwitch - Default - - -EndOfSwitch - a - EndOfInitLoopSwitch - Index - - - -GraphSwitchCheckDefault11NOTValid - InitLoopSwitch__Index - InitLoopSwitch - Index - -3 - 0 - - -GraphSwitchCheckDefault11NOTValid - InitLoopSwitch__Min - InitLoopSwitch - Min - -3 - -5 - - -GraphSwitchCheckDefault11NOTValid - InitLoopSwitch__Max - InitLoopSwitch - Max - -3 - 10 - diff --git a/Superv/Graphs/GraphSwitchCheckDefault2.xml b/Superv/Graphs/GraphSwitchCheckDefault2.xml deleted file mode 100644 index 5626ab9..0000000 --- a/Superv/Graphs/GraphSwitchCheckDefault2.xml +++ /dev/null @@ -1,810 +0,0 @@ - - - - - - -? - ? - GraphSwitchCheckDefault2 - 1 - ? - -GraphSwitchCheckDefault1_1_1 - - -long - InitLoopSwitch__Index - -long - InitLoopSwitch__Min - -long - InitLoopSwitch__Max - - -long - EndOfInitLoopSwitch__Index - -long - EndOfInitLoopSwitch__Min - -long - EndOfInitLoopSwitch__Max - - - 13/1/2005 - 12:21:43 - 19/1/2005 - 12:15:25 - 2.0 - JR - ? - ? - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - - -long - a - - - -IsOdd - - - - - - 19/1/2005 - 12:15:25 - 19/1/2005 - 12:15:25 - 2.0 - ? - ? - Python function - 415 - 7 - -? - ? - IsEven - 3 - ? - -IsEven - - -long - a - - -long - a - - - -IsEven - - - - - - 19/1/2005 - 12:15:25 - 19/1/2005 - 12:15:25 - 2.0 - ? - ? - Compute Node - 421 - 438 - -? - ? - PrintOdd - 3 - ? - -PrintOdd - - -long - a - -string - Branch - - -string - Branch - - - -Print - - - - - - 19/1/2005 - 12:15:25 - 19/1/2005 - 12:15:25 - 2.0 - ? - ? - Compute Node - 415 - 130 - -? - ? - PrintEven - 3 - ? - -PrintEven - - -long - a - -string - Branch - - -string - Branch - - - -Print_1 - - - - - - 19/1/2005 - 12:15:25 - 19/1/2005 - 12:15:25 - 2.0 - ? - ? - Compute Node - 423 - 289 - -? - ? - EmptyNode - 3 - ? - -EmptyNode - - -long - a - -string - Branch - - -long - a - -string - Branch - - - -EmptyNode - - - - - 19/1/2005 - 12:15:25 - 19/1/2005 - 12:15:25 - 2.0 - ? - ? - Compute Node - 652 - 110 - -? - ? - Default - 3 - ? - -Default - - -long - a - -string - Branch - - -long - a - -string - Branch - - - -Default - - - - - 19/1/2005 - 12:15:25 - 19/1/2005 - 12:15:25 - 2.0 - ? - ? - Compute Node - 421 - 592 - -? - ? - InitLoopSwitch - 4 - EndOfInitLoopSwitch - -InitLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -InitLoop - - - - -MoreLoop - - - - = Min : ]]> - - - - - -NextLoop - - - - 19/1/2005 - 12:15:25 - 19/1/2005 - 12:15:25 - 2.0 - ? - ? - Compute Node - 10 - 129 - -? - ? - EndOfInitLoopSwitch - 5 - InitLoopSwitch - -EndOfInitLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -EndOfInitLoopSwitch - - - - - 19/1/2005 - 12:15:25 - 19/1/2005 - 12:15:25 - 2.0 - ? - ? - Compute Node - 1074 - 194 - -? - ? - Switch - 6 - EndOfSwitch - -Switch - - -long - a - - -long - Odd - -int - Even - -int - a - -string - Branch - -boolean - default - - - -Switch - - - - - - - - - - - - 19/1/2005 - 12:15:25 - 19/1/2005 - 12:15:25 - 2.0 - ? - ? - Compute Node - 190 - 129 - -? - ? - EndOfSwitch - 7 - Switch - -EndOfSwitch - - -long - a - -string - Branch - - -long - a - - - -EndOfSwitch - - - - - 19/1/2005 - 12:15:25 - 19/1/2005 - 12:15:25 - 2.0 - ? - ? - Compute Node - 882 - 194 - -? - ? - Puta - 3 - ? - -Puta - - -long - a - - -long - a - - - -Puta - - - - - 19/1/2005 - 12:15:25 - 19/1/2005 - 12:15:25 - 2.0 - ? - ? - Compute Node - 665 - 486 - -? - ? - PutBranch - 3 - ? - -PutBranch - - -string - Branch - - -string - Branch - - - -PutBranch - - - - - 19/1/2005 - 12:15:25 - 19/1/2005 - 12:15:25 - 2.0 - ? - ? - Compute Node - 662 - 613 - - -IsOdd - a - EmptyNode - a - - -646 - 78 - -IsEven - a - EndOfSwitch - a - - -PrintOdd - Branch - EmptyNode - Branch - - -PrintEven - Branch - EndOfSwitch - Branch - - -EmptyNode - a - EndOfSwitch - a - - -EmptyNode - Branch - EndOfSwitch - Branch - - -Default - a - Puta - a - - -Default - Branch - PutBranch - Branch - - -InitLoopSwitch - DoLoop - EndOfInitLoopSwitch - DoLoop - - -InitLoopSwitch - Index - Switch - a - - -InitLoopSwitch - Min - EndOfInitLoopSwitch - Min - - -InitLoopSwitch - Max - EndOfInitLoopSwitch - Max - - -EndOfInitLoopSwitch - DoLoop - InitLoopSwitch - DoLoop - - -Switch - Odd - IsOdd - Gate - - -401 - 101 - -401 - 160 - -Switch - Odd - PrintOdd - Gate - - -401 - 245 - -401 - 159 - -Switch - Even - IsEven - Gate - - -392 - 533 - -392 - 182 - -Switch - Even - PrintEven - Gate - - -392 - 403 - -392 - 181 - -Switch - a - IsOdd - a - - -382 - 78 - -382 - 199 - -Switch - a - IsEven - a - - -381 - 509 - -382 - 200 - -Switch - a - PrintOdd - a - - -Switch - a - PrintEven - a - - -381 - 361 - -382 - 200 - -Switch - a - Default - a - - -382 - 663 - -382 - 199 - -Switch - Branch - PrintOdd - Branch - - -Switch - Branch - PrintEven - Branch - - -369 - 381 - -369 - 219 - -Switch - Branch - Default - Branch - - -370 - 683 - -370 - 220 - -Switch - default - Default - Gate - - -363 - 707 - -362 - 239 - -Switch - Default - EndOfSwitch - Default - - -EndOfSwitch - a - EndOfInitLoopSwitch - Index - - -Puta - a - EndOfSwitch - a - - -PutBranch - Branch - EndOfSwitch - Branch - - - -GraphSwitchCheckDefault2 - InitLoopSwitch__Index - InitLoopSwitch - Index - -3 - 0 - - -GraphSwitchCheckDefault2 - InitLoopSwitch__Min - InitLoopSwitch - Min - -3 - -5 - - -GraphSwitchCheckDefault2 - InitLoopSwitch__Max - InitLoopSwitch - Max - -3 - 10 - diff --git a/Superv/Graphs/GraphSwitchCheckDefault2NOTValid.xml b/Superv/Graphs/GraphSwitchCheckDefault2NOTValid.xml deleted file mode 100755 index 8eed02b..0000000 --- a/Superv/Graphs/GraphSwitchCheckDefault2NOTValid.xml +++ /dev/null @@ -1,822 +0,0 @@ - - - - - - -? - ? - GraphSwitchCheckDefault2NOTValid - 1 - ? - -GraphSwitchCheckDefault2NOTValid - - -long - InitLoopSwitch__Index - -long - InitLoopSwitch__Min - -long - InitLoopSwitch__Max - - -long - EndOfInitLoopSwitch__Index - -long - EndOfInitLoopSwitch__Min - -long - EndOfInitLoopSwitch__Max - - - 13/1/2005 - 12:21:43 - 19/1/2005 - 12:15:57 - 2.0 - JR - ? - ? - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - - -long - a - - - -IsOdd - - - - - - 19/1/2005 - 12:15:57 - 19/1/2005 - 12:15:57 - 2.0 - ? - ? - Python function - 415 - 7 - -? - ? - IsEven - 3 - ? - -IsEven - - -long - a - - -long - a - - - -IsEven - - - - - - 19/1/2005 - 12:15:57 - 19/1/2005 - 12:15:57 - 2.0 - ? - ? - Compute Node - 421 - 438 - -? - ? - PrintOdd - 3 - ? - -PrintOdd - - -long - a - -string - Branch - - -string - Branch - - - -Print - - - - - - 19/1/2005 - 12:15:57 - 19/1/2005 - 12:15:57 - 2.0 - ? - ? - Compute Node - 415 - 130 - -? - ? - PrintEven - 3 - ? - -PrintEven - - -long - a - -string - Branch - - -string - Branch - - - -Print_1 - - - - - - 19/1/2005 - 12:15:57 - 19/1/2005 - 12:15:57 - 2.0 - ? - ? - Compute Node - 423 - 289 - -? - ? - EmptyNode - 3 - ? - -EmptyNode - - -long - a - -string - Branch - - -long - a - -string - Branch - - - -EmptyNode - - - - - 19/1/2005 - 12:15:57 - 19/1/2005 - 12:15:57 - 2.0 - ? - ? - Compute Node - 652 - 110 - -? - ? - Default - 3 - ? - -Default - - -long - a - -string - Branch - - -long - a - -string - Branch - - - -Default - - - - - 19/1/2005 - 12:15:57 - 19/1/2005 - 12:15:57 - 2.0 - ? - ? - Compute Node - 421 - 592 - -? - ? - InitLoopSwitch - 4 - EndOfInitLoopSwitch - -InitLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -InitLoop - - - - -MoreLoop - - - - = Min : ]]> - - - - - -NextLoop - - - - 19/1/2005 - 12:15:57 - 19/1/2005 - 12:15:57 - 2.0 - ? - ? - Compute Node - 10 - 129 - -? - ? - EndOfInitLoopSwitch - 5 - InitLoopSwitch - -EndOfInitLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -EndOfInitLoopSwitch - - - - - 19/1/2005 - 12:15:57 - 19/1/2005 - 12:15:57 - 2.0 - ? - ? - Compute Node - 1074 - 194 - -? - ? - Switch - 6 - EndOfSwitch - -Switch - - -long - a - - -long - Odd - -int - Even - -int - a - -string - Branch - -boolean - default - - - -Switch - - - - - - - - - - - - 19/1/2005 - 12:15:57 - 19/1/2005 - 12:15:57 - 2.0 - ? - ? - Compute Node - 190 - 129 - -? - ? - EndOfSwitch - 7 - Switch - -EndOfSwitch - - -long - a - -string - Branch - - -long - a - - - -EndOfSwitch - - - - - 19/1/2005 - 12:15:57 - 19/1/2005 - 12:15:57 - 2.0 - ? - ? - Compute Node - 882 - 194 - -? - ? - Puta - 3 - ? - -Puta - - -long - a - - -long - a - - - -Puta - - - - - 19/1/2005 - 12:15:57 - 19/1/2005 - 12:15:57 - 2.0 - ? - ? - Compute Node - 665 - 486 - -? - ? - PutBranch - 3 - ? - -PutBranch - - -string - Branch - - -string - Branch - - - -PutBranch - - - - - 19/1/2005 - 12:15:57 - 19/1/2005 - 12:15:57 - 2.0 - ? - ? - Compute Node - 662 - 613 - - -IsOdd - a - EmptyNode - a - - -646 - 78 - -IsEven - a - EndOfSwitch - a - - -PrintOdd - Branch - EmptyNode - Branch - - -PrintEven - Branch - EndOfSwitch - Branch - - -EmptyNode - a - EndOfSwitch - a - - -EmptyNode - Branch - EndOfSwitch - Branch - - -Default - a - EndOfSwitch - a - - -Default - a - Puta - a - - -Default - Branch - EndOfSwitch - Branch - - -Default - Branch - PutBranch - Branch - - -InitLoopSwitch - DoLoop - EndOfInitLoopSwitch - DoLoop - - -InitLoopSwitch - Index - Switch - a - - -InitLoopSwitch - Min - EndOfInitLoopSwitch - Min - - -InitLoopSwitch - Max - EndOfInitLoopSwitch - Max - - -EndOfInitLoopSwitch - DoLoop - InitLoopSwitch - DoLoop - - -Switch - Odd - IsOdd - Gate - - -401 - 101 - -401 - 160 - -Switch - Odd - PrintOdd - Gate - - -401 - 245 - -401 - 159 - -Switch - Even - IsEven - Gate - - -392 - 533 - -392 - 182 - -Switch - Even - PrintEven - Gate - - -392 - 403 - -392 - 181 - -Switch - a - IsOdd - a - - -382 - 78 - -382 - 199 - -Switch - a - IsEven - a - - -381 - 509 - -382 - 200 - -Switch - a - PrintOdd - a - - -Switch - a - PrintEven - a - - -381 - 361 - -382 - 200 - -Switch - a - Default - a - - -382 - 663 - -382 - 199 - -Switch - Branch - PrintOdd - Branch - - -Switch - Branch - PrintEven - Branch - - -369 - 381 - -369 - 219 - -Switch - Branch - Default - Branch - - -370 - 683 - -370 - 220 - -Switch - default - Default - Gate - - -363 - 707 - -362 - 239 - -Switch - Default - EndOfSwitch - Default - - -EndOfSwitch - a - EndOfInitLoopSwitch - Index - - -Puta - a - EndOfSwitch - a - - -PutBranch - Branch - EndOfSwitch - Branch - - - -GraphSwitchCheckDefault2NOTValid - InitLoopSwitch__Index - InitLoopSwitch - Index - -3 - 0 - - -GraphSwitchCheckDefault2NOTValid - InitLoopSwitch__Min - InitLoopSwitch - Min - -3 - -5 - - -GraphSwitchCheckDefault2NOTValid - InitLoopSwitch__Max - InitLoopSwitch - Max - -3 - 10 - diff --git a/Superv/Graphs/GraphSwitchCheckDefault2NOTValid1.xml b/Superv/Graphs/GraphSwitchCheckDefault2NOTValid1.xml deleted file mode 100755 index 21ffc37..0000000 --- a/Superv/Graphs/GraphSwitchCheckDefault2NOTValid1.xml +++ /dev/null @@ -1,728 +0,0 @@ - - - - - - -? - ? - GraphSwitchCheckDefault2NOTValid1 - 1 - ? - -GraphSwitchCheckDefault2NOTValid1 - - -long - InitLoopSwitch__Index - -long - InitLoopSwitch__Min - -long - InitLoopSwitch__Max - - -long - IsEven__a - -string - PrintEven__Branch - -long - Default__a - -string - Default__Branch - -long - EndOfInitLoopSwitch__Index - -long - EndOfInitLoopSwitch__Min - -long - EndOfInitLoopSwitch__Max - - - 13/1/2005 - 12:21:43 - 19/1/2005 - 12:16:32 - 2.0 - JR - ? - ? - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - - -long - a - - - -IsOdd - - - - - - 19/1/2005 - 12:16:32 - 19/1/2005 - 12:16:32 - 2.0 - ? - ? - Python function - 415 - 7 - -? - ? - IsEven - 3 - ? - -IsEven - - -long - a - - -long - a - - - -IsEven - - - - - - 19/1/2005 - 12:16:32 - 19/1/2005 - 12:16:32 - 2.0 - ? - ? - Compute Node - 421 - 438 - -? - ? - PrintOdd - 3 - ? - -PrintOdd - - -long - a - -string - Branch - - -string - Branch - - - -Print - - - - - - 19/1/2005 - 12:16:32 - 19/1/2005 - 12:16:32 - 2.0 - ? - ? - Compute Node - 415 - 130 - -? - ? - PrintEven - 3 - ? - -PrintEven - - -long - a - -string - Branch - - -string - Branch - - - -Print_1 - - - - - - 19/1/2005 - 12:16:32 - 19/1/2005 - 12:16:32 - 2.0 - ? - ? - Compute Node - 423 - 289 - -? - ? - EmptyNode - 3 - ? - -EmptyNode - - -long - a - -string - Branch - - -long - a - -string - Branch - - - -EmptyNode - - - - - 19/1/2005 - 12:16:32 - 19/1/2005 - 12:16:32 - 2.0 - ? - ? - Compute Node - 652 - 110 - -? - ? - Default - 3 - ? - -Default - - -long - a - -string - Branch - - -long - a - -string - Branch - - - -Default - - - - - 19/1/2005 - 12:16:32 - 19/1/2005 - 12:16:32 - 2.0 - ? - ? - Compute Node - 421 - 592 - -? - ? - InitLoopSwitch - 4 - EndOfInitLoopSwitch - -InitLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -InitLoop - - - - -MoreLoop - - - - = Min : ]]> - - - - - -NextLoop - - - - 19/1/2005 - 12:16:32 - 19/1/2005 - 12:16:32 - 2.0 - ? - ? - Compute Node - 10 - 129 - -? - ? - EndOfInitLoopSwitch - 5 - InitLoopSwitch - -EndOfInitLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -EndOfInitLoopSwitch - - - - - 19/1/2005 - 12:16:32 - 19/1/2005 - 12:16:32 - 2.0 - ? - ? - Compute Node - 1074 - 194 - -? - ? - Switch - 6 - EndOfSwitch - -Switch - - -long - a - - -long - Odd - -int - Even - -int - a - -string - Branch - -boolean - default - - - -Switch - - - - - - - - - - - - 19/1/2005 - 12:16:32 - 19/1/2005 - 12:16:32 - 2.0 - ? - ? - Compute Node - 190 - 129 - -? - ? - EndOfSwitch - 7 - Switch - -EndOfSwitch - - -long - a - -string - Branch - - -long - a - - - -EndOfSwitch - - - - - 19/1/2005 - 12:16:32 - 19/1/2005 - 12:16:32 - 2.0 - ? - ? - Compute Node - 882 - 194 - - -IsOdd - a - EmptyNode - a - - -646 - 78 - -PrintOdd - Branch - EmptyNode - Branch - - -EmptyNode - a - EndOfSwitch - a - - -EmptyNode - Branch - EndOfSwitch - Branch - - -Default - Gate - EmptyNode - Gate - - -InitLoopSwitch - DoLoop - EndOfInitLoopSwitch - DoLoop - - -InitLoopSwitch - Index - Switch - a - - -InitLoopSwitch - Min - EndOfInitLoopSwitch - Min - - -InitLoopSwitch - Max - EndOfInitLoopSwitch - Max - - -EndOfInitLoopSwitch - DoLoop - InitLoopSwitch - DoLoop - - -Switch - Odd - IsOdd - Gate - - -401 - 101 - -401 - 160 - -Switch - Odd - PrintOdd - Gate - - -401 - 245 - -401 - 159 - -Switch - Even - IsEven - Gate - - -392 - 533 - -392 - 182 - -Switch - Even - PrintEven - Gate - - -392 - 403 - -392 - 181 - -Switch - a - IsOdd - a - - -382 - 78 - -382 - 199 - -Switch - a - IsEven - a - - -381 - 509 - -382 - 200 - -Switch - a - PrintOdd - a - - -Switch - a - PrintEven - a - - -381 - 361 - -382 - 200 - -Switch - a - Default - a - - -382 - 663 - -382 - 199 - -Switch - Branch - PrintOdd - Branch - - -Switch - Branch - PrintEven - Branch - - -369 - 381 - -369 - 219 - -Switch - Branch - Default - Branch - - -370 - 683 - -370 - 220 - -Switch - default - Default - Gate - - -363 - 707 - -362 - 239 - -Switch - Default - EndOfSwitch - Default - - -EndOfSwitch - a - EndOfInitLoopSwitch - Index - - - -GraphSwitchCheckDefault2NOTValid1 - InitLoopSwitch__Index - InitLoopSwitch - Index - -3 - 0 - - -GraphSwitchCheckDefault2NOTValid1 - InitLoopSwitch__Min - InitLoopSwitch - Min - -3 - -5 - - -GraphSwitchCheckDefault2NOTValid1 - InitLoopSwitch__Max - InitLoopSwitch - Max - -3 - 10 - diff --git a/Superv/Graphs/GraphSwitchCheckDefault2NOTValid2.xml b/Superv/Graphs/GraphSwitchCheckDefault2NOTValid2.xml deleted file mode 100644 index 373be0a..0000000 --- a/Superv/Graphs/GraphSwitchCheckDefault2NOTValid2.xml +++ /dev/null @@ -1,822 +0,0 @@ - - - - - - -? - ? - GraphSwitchCheckDefault2NOTValid2_1 - 1 - ? - -GraphSwitchCheckDefault2NOTValid2_1 - - -long - InitLoopSwitch__Index - -long - InitLoopSwitch__Min - -long - InitLoopSwitch__Max - - -long - EndOfInitLoopSwitch__Index - -long - EndOfInitLoopSwitch__Min - -long - EndOfInitLoopSwitch__Max - - - 13/1/2005 - 12:21:43 - 8/3/2005 - 16:55:59 - 2.0 - JR - ? - ? - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - - -long - a - - - -IsOdd - - - - - - 8/3/2005 - 16:55:59 - 8/3/2005 - 16:55:59 - 2.0 - ? - ? - Python function - 415 - 7 - -? - ? - IsEven - 3 - ? - -IsEven - - -long - a - - -long - a - - - -IsEven - - - - - - 8/3/2005 - 16:55:59 - 8/3/2005 - 16:55:59 - 2.0 - ? - ? - Compute Node - 421 - 438 - -? - ? - PrintOdd - 3 - ? - -PrintOdd - - -long - a - -string - Branch - - -string - Branch - - - -Print - - - - - - 8/3/2005 - 16:55:59 - 8/3/2005 - 16:55:59 - 2.0 - ? - ? - Compute Node - 415 - 130 - -? - ? - PrintEven - 3 - ? - -PrintEven - - -long - a - -string - Branch - - -string - Branch - - - -Print_1 - - - - - - 8/3/2005 - 16:55:59 - 8/3/2005 - 16:55:59 - 2.0 - ? - ? - Compute Node - 423 - 289 - -? - ? - EmptyNode - 3 - ? - -EmptyNode - - -long - a - -string - Branch - - -long - a - -string - Branch - - - -EmptyNode - - - - - 8/3/2005 - 16:55:59 - 8/3/2005 - 16:55:59 - 2.0 - ? - ? - Compute Node - 652 - 110 - -? - ? - Default - 3 - ? - -Default - - -long - a - -string - Branch - - -long - a - -string - Branch - - - -Default - - - - - 8/3/2005 - 16:55:59 - 8/3/2005 - 16:55:59 - 2.0 - ? - ? - Compute Node - 421 - 592 - -? - ? - InitLoopSwitch - 4 - EndOfInitLoopSwitch - -InitLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -InitLoop - - - - -MoreLoop - - - - = Min : ]]> - - - - - -NextLoop - - - - 8/3/2005 - 16:55:59 - 8/3/2005 - 16:55:59 - 2.0 - ? - ? - Compute Node - 10 - 129 - -? - ? - EndOfInitLoopSwitch - 5 - InitLoopSwitch - -EndOfInitLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -EndOfInitLoopSwitch - - - - - 8/3/2005 - 16:55:59 - 8/3/2005 - 16:55:59 - 2.0 - ? - ? - Compute Node - 1074 - 194 - -? - ? - Switch - 6 - EndOfSwitch - -Switch - - -long - a - - -long - Odd - -int - Even - -int - a - -string - Branch - -boolean - default - - - -Switch - - - - - - - - - - - - 8/3/2005 - 16:55:59 - 8/3/2005 - 16:55:59 - 2.0 - ? - ? - Compute Node - 190 - 129 - -? - ? - EndOfSwitch - 7 - Switch - -EndOfSwitch - - -long - a - -string - Branch - - -long - a - - - -EndOfSwitch - - - - - 8/3/2005 - 16:55:59 - 8/3/2005 - 16:55:59 - 2.0 - ? - ? - Compute Node - 882 - 194 - -? - ? - Puta - 3 - ? - -Puta - - -long - a - - -long - a - - - -Puta - - - - - 8/3/2005 - 16:55:59 - 8/3/2005 - 16:55:59 - 2.0 - ? - ? - Compute Node - 653 - 414 - -? - ? - PutBranch - 3 - ? - -PutBranch - - -string - Branch - - -string - Branch - - - -PutBranch - - - - - 8/3/2005 - 16:55:59 - 8/3/2005 - 16:55:59 - 2.0 - ? - ? - Compute Node - 662 - 613 - - -IsOdd - a - EmptyNode - a - - -646 - 78 - -IsEven - a - EndOfSwitch - a - - -IsEven - a - Puta - a - - -PrintOdd - Branch - EmptyNode - Branch - - -PrintEven - Branch - EndOfSwitch - Branch - - -EmptyNode - a - EndOfSwitch - a - - -EmptyNode - Branch - EndOfSwitch - Branch - - -Default - a - EndOfSwitch - a - - -Default - Branch - EndOfSwitch - Branch - - -Default - Branch - PutBranch - Branch - - -InitLoopSwitch - DoLoop - EndOfInitLoopSwitch - DoLoop - - -InitLoopSwitch - Index - Switch - a - - -InitLoopSwitch - Min - EndOfInitLoopSwitch - Min - - -InitLoopSwitch - Max - EndOfInitLoopSwitch - Max - - -EndOfInitLoopSwitch - DoLoop - InitLoopSwitch - DoLoop - - -Switch - Odd - IsOdd - Gate - - -401 - 101 - -401 - 160 - -Switch - Odd - PrintOdd - Gate - - -401 - 245 - -401 - 159 - -Switch - Even - IsEven - Gate - - -392 - 533 - -392 - 182 - -Switch - Even - PrintEven - Gate - - -392 - 403 - -392 - 181 - -Switch - a - IsOdd - a - - -382 - 78 - -382 - 199 - -Switch - a - IsEven - a - - -381 - 509 - -382 - 200 - -Switch - a - PrintOdd - a - - -Switch - a - PrintEven - a - - -381 - 361 - -382 - 200 - -Switch - a - Default - a - - -382 - 663 - -382 - 199 - -Switch - Branch - PrintOdd - Branch - - -Switch - Branch - PrintEven - Branch - - -369 - 381 - -369 - 219 - -Switch - Branch - Default - Branch - - -370 - 683 - -370 - 220 - -Switch - default - Default - Gate - - -363 - 707 - -362 - 239 - -Switch - Default - EndOfSwitch - Default - - -EndOfSwitch - a - EndOfInitLoopSwitch - Index - - -Puta - a - EndOfSwitch - a - - -PutBranch - Branch - EndOfSwitch - Branch - - - -GraphSwitchCheckDefault2NOTValid2_1 - InitLoopSwitch__Index - InitLoopSwitch - Index - -3 - 0 - - -GraphSwitchCheckDefault2NOTValid2_1 - InitLoopSwitch__Min - InitLoopSwitch - Min - -3 - -5 - - -GraphSwitchCheckDefault2NOTValid2_1 - InitLoopSwitch__Max - InitLoopSwitch - Max - -3 - 10 - diff --git a/Superv/Graphs/GraphSwitchCheckNoDefault2.xml b/Superv/Graphs/GraphSwitchCheckNoDefault2.xml deleted file mode 100644 index 359e06b..0000000 --- a/Superv/Graphs/GraphSwitchCheckNoDefault2.xml +++ /dev/null @@ -1,804 +0,0 @@ - - - - - - -? - ? - GraphSwitchCheckNoDefault2 - 1 - ? - -GraphSwitchCheckDefault2NOTValid2 - - -long - InitLoopSwitch__Index - -long - InitLoopSwitch__Min - -long - InitLoopSwitch__Max - - -long - EndOfInitLoopSwitch__Index - -long - EndOfInitLoopSwitch__Min - -long - EndOfInitLoopSwitch__Max - - - 13/1/2005 - 12:21:43 - 14/2/2005 - 14:13:3 - 2.0 - JR - ? - ? - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - - -long - a - - - -IsOdd - - - - - - 14/2/2005 - 14:13:3 - 14/2/2005 - 14:13:3 - 2.0 - ? - ? - Python function - 415 - 7 - -? - ? - IsEven - 3 - ? - -IsEven - - -long - a - - -long - a - - - -IsEven - - - - - - 14/2/2005 - 14:13:3 - 14/2/2005 - 14:13:3 - 2.0 - ? - ? - Compute Node - 421 - 438 - -? - ? - PrintOdd - 3 - ? - -PrintOdd - - -long - a - -string - Branch - - -string - Branch - - - -Print - - - - - - 14/2/2005 - 14:13:3 - 14/2/2005 - 14:13:3 - 2.0 - ? - ? - Compute Node - 415 - 130 - -? - ? - PrintEven - 3 - ? - -PrintEven - - -long - a - -string - Branch - - -string - Branch - - - -Print_1 - - - - - - 14/2/2005 - 14:13:3 - 14/2/2005 - 14:13:3 - 2.0 - ? - ? - Compute Node - 423 - 289 - -? - ? - EmptyNode - 3 - ? - -EmptyNode - - -long - a - -string - Branch - - -long - a - -string - Branch - - - -EmptyNode - - - - - 14/2/2005 - 14:13:3 - 14/2/2005 - 14:13:3 - 2.0 - ? - ? - Compute Node - 652 - 110 - -? - ? - Default - 3 - ? - -Default - - -long - a - -string - Branch - - -long - a - -string - Branch - - - -Default - - - - - 14/2/2005 - 14:13:3 - 14/2/2005 - 14:13:3 - 2.0 - ? - ? - Compute Node - 421 - 592 - -? - ? - InitLoopSwitch - 4 - EndOfInitLoopSwitch - -InitLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -InitLoop - - - - -MoreLoop - - - - = Min : ]]> - - - - - -NextLoop - - - - 14/2/2005 - 14:13:3 - 14/2/2005 - 14:13:3 - 2.0 - ? - ? - Compute Node - 10 - 129 - -? - ? - EndOfInitLoopSwitch - 5 - InitLoopSwitch - -EndOfInitLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -EndOfInitLoopSwitch - - - - - 14/2/2005 - 14:13:3 - 14/2/2005 - 14:13:3 - 2.0 - ? - ? - Compute Node - 1074 - 194 - -? - ? - Switch - 6 - EndOfSwitch - -Switch - - -long - a - - -long - Odd - -int - Even - -int - a - -string - Branch - -boolean - default - - - -Switch - - - - - - - - - - - - 14/2/2005 - 14:13:3 - 14/2/2005 - 14:13:3 - 2.0 - ? - ? - Compute Node - 190 - 129 - -? - ? - EndOfSwitch - 7 - Switch - -EndOfSwitch - - -long - a - -string - Branch - - -long - a - - - -EndOfSwitch - - - - - 14/2/2005 - 14:13:3 - 14/2/2005 - 14:13:3 - 2.0 - ? - ? - Compute Node - 882 - 194 - -? - ? - Puta - 3 - ? - -Puta - - -long - a - - -long - a - - - -Puta - - - - - 14/2/2005 - 14:13:3 - 14/2/2005 - 14:13:3 - 2.0 - ? - ? - Compute Node - 665 - 486 - -? - ? - PutBranch - 3 - ? - -PutBranch - - -string - Branch - - -string - Branch - - - -PutBranch - - - - - 14/2/2005 - 14:13:3 - 14/2/2005 - 14:13:3 - 2.0 - ? - ? - Compute Node - 662 - 613 - - -IsOdd - a - EmptyNode - a - - -646 - 78 - -IsEven - a - EndOfSwitch - a - - -PrintOdd - Branch - EmptyNode - Branch - - -PrintEven - Branch - EndOfSwitch - Branch - - -EmptyNode - a - EndOfSwitch - a - - -EmptyNode - Branch - EndOfSwitch - Branch - - -Default - a - Puta - a - - -Default - Branch - PutBranch - Branch - - -InitLoopSwitch - DoLoop - EndOfInitLoopSwitch - DoLoop - - -InitLoopSwitch - Index - Switch - a - - -InitLoopSwitch - Min - EndOfInitLoopSwitch - Min - - -InitLoopSwitch - Max - EndOfInitLoopSwitch - Max - - -EndOfInitLoopSwitch - DoLoop - InitLoopSwitch - DoLoop - - -Switch - Odd - IsOdd - Gate - - -401 - 101 - -401 - 160 - -Switch - Odd - PrintOdd - Gate - - -401 - 245 - -401 - 159 - -Switch - Even - IsEven - Gate - - -392 - 533 - -392 - 182 - -Switch - Even - PrintEven - Gate - - -392 - 403 - -392 - 181 - -Switch - a - IsOdd - a - - -382 - 78 - -382 - 199 - -Switch - a - IsEven - a - - -381 - 509 - -382 - 200 - -Switch - a - PrintOdd - a - - -Switch - a - PrintEven - a - - -381 - 361 - -382 - 200 - -Switch - a - Default - a - - -382 - 663 - -382 - 199 - -Switch - Branch - PrintOdd - Branch - - -Switch - Branch - PrintEven - Branch - - -369 - 381 - -369 - 219 - -Switch - Branch - Default - Branch - - -370 - 683 - -370 - 220 - -Switch - default - Default - Gate - - -363 - 707 - -362 - 239 - -EndOfSwitch - a - EndOfInitLoopSwitch - Index - - -Puta - a - EndOfSwitch - a - - -PutBranch - Branch - EndOfSwitch - Branch - - - -GraphSwitchCheckNoDefault2 - InitLoopSwitch__Index - InitLoopSwitch - Index - -3 - 0 - - -GraphSwitchCheckNoDefault2 - InitLoopSwitch__Min - InitLoopSwitch - Min - -3 - -5 - - -GraphSwitchCheckNoDefault2 - InitLoopSwitch__Max - InitLoopSwitch - Max - -3 - 10 - diff --git a/Superv/Graphs/GraphSwitchCrash.xml b/Superv/Graphs/GraphSwitchCrash.xml deleted file mode 100755 index 02555b5..0000000 --- a/Superv/Graphs/GraphSwitchCrash.xml +++ /dev/null @@ -1,690 +0,0 @@ - - - - - - -? - ? - GraphSwitchCrash_1 - 1 - ? - -GraphSwitchCrash_1 - - -long - InitLoopSwitch__Index - -long - InitLoopSwitch__Min - -long - InitLoopSwitch__Max - -long - InitLoop__Index - -long - InitLoop__Min - -long - InitLoop__Max - - -long - EndOfInitLoopSwitch__Index - -long - EndOfInitLoopSwitch__Min - -long - EndOfInitLoopSwitch__Max - -int - Switch__Even - -long - EndOfInitLoop__Index - -long - EndOfInitLoop__Min - -long - EndOfInitLoop__Max - - - 14/10/2003 - 10:29:4 - 8/3/2005 - 16:57:44 - 1.05 - ? - ? - ? - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - - -long - a - - - -IsOdd - - - - - - 8/3/2005 - 16:57:44 - 8/3/2005 - 16:57:44 - 1.05 - ? - ? - Python function - 387 - 58 - -? - ? - InitLoopSwitch - 4 - EndOfInitLoopSwitch - -InitLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -InitLoop - - - -MoreLoop - - - - - - - -NextLoop - - - - 8/3/2005 - 16:57:44 - 8/3/2005 - 16:57:44 - 1.05 - ? - ? - Compute Node - 10 - 129 - -? - ? - EndOfInitLoopSwitch - 5 - InitLoopSwitch - -EndOfInitLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -? - - 8/3/2005 - 16:57:44 - 8/3/2005 - 16:57:44 - 1.05 - ? - ? - Compute Node - 766 - 127 - -? - ? - Switch - 6 - EndOfSwitch - -Switch - - -long - a - - -long - Odd - -int - Even - -int - a - - - -Switch - - - - - - 8/3/2005 - 16:57:44 - 8/3/2005 - 16:57:44 - 1.05 - ? - ? - Compute Node - 186 - 130 - -? - ? - EndOfSwitch - 7 - Switch - -EndOfSwitch - - -long - a - - -long - a - - - -? - - 8/3/2005 - 16:57:44 - 8/3/2005 - 16:57:44 - 1.05 - ? - ? - Compute Node - 587 - 126 - -? - ? - IsOdd_1 - 3 - ? - -IsOdd_1 - - -long - a - -boolean - Even - - -long - a - - - -IsOdd - - - - - - 8/3/2005 - 16:57:44 - 8/3/2005 - 16:57:44 - 1.05 - ? - ? - Python function - 417 - 287 - -? - ? - InitLoop - 4 - EndOfInitLoop - -InitLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -InitLoop - - - -MoreLoop - - - - - - - -NextLoop - - - - 8/3/2005 - 16:57:44 - 8/3/2005 - 16:57:44 - 1.05 - ? - ? - Compute Node - 10 - 388 - -? - ? - EndOfInitLoop - 5 - InitLoop - -EndOfInitLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -? - - 8/3/2005 - 16:57:44 - 8/3/2005 - 16:57:44 - 1.05 - ? - ? - Compute Node - 783 - 381 - -? - ? - Switch_1 - 6 - EndSwitch - -Switch_1 - - -long - a - - -long - Odd - -int - Even - -int - a - - - -Switch - - - - - - 8/3/2005 - 16:57:44 - 8/3/2005 - 16:57:44 - 1.05 - ? - ? - Compute Node - 193 - 388 - -? - ? - EndSwitch - 7 - Switch_1 - -EndSwitch - - -long - a - - -long - a - - - -? - - 8/3/2005 - 16:57:44 - 8/3/2005 - 16:57:44 - 1.05 - ? - ? - Compute Node - 605 - 382 - - -IsOdd - a - EndOfSwitch - a - - -572 - 157 - -572 - 130 - -InitLoopSwitch - DoLoop - EndOfInitLoopSwitch - DoLoop - - -InitLoopSwitch - Index - Switch - a - - -InitLoopSwitch - Min - EndOfInitLoopSwitch - Min - - -InitLoopSwitch - Max - EndOfInitLoopSwitch - Max - - -EndOfInitLoopSwitch - DoLoop - InitLoopSwitch - DoLoop - - -Switch - Odd - IsOdd - Gate - - -Switch - a - IsOdd - a - - -365 - 129 - -365 - 201 - -Switch - Default - EndOfSwitch - Default - - -EndOfSwitch - a - EndOfInitLoopSwitch - Index - - -IsOdd_1 - a - EndSwitch - a - - -593 - 411 - -593 - 358 - -InitLoop - DoLoop - EndOfInitLoop - DoLoop - - -InitLoop - Index - Switch_1 - a - - -InitLoop - Min - EndOfInitLoop - Min - - -InitLoop - Max - EndOfInitLoop - Max - - -EndOfInitLoop - DoLoop - InitLoop - DoLoop - - -Switch_1 - Odd - IsOdd_1 - Gate - - -Switch_1 - Even - IsOdd_1 - Even - - -Switch_1 - a - IsOdd_1 - a - - -377 - 358 - -377 - 460 - -Switch_1 - Default - EndSwitch - Default - - -EndSwitch - a - EndOfInitLoop - Index - - - -GraphSwitchCrash_1 - InitLoopSwitch__Index - InitLoopSwitch - Index - -3 - 0 - - -GraphSwitchCrash_1 - InitLoopSwitch__Min - InitLoopSwitch - Min - -3 - 0 - - -GraphSwitchCrash_1 - InitLoopSwitch__Max - InitLoopSwitch - Max - -3 - 23 - - -GraphSwitchCrash_1 - InitLoop__Index - InitLoop - Index - -3 - 0 - - -GraphSwitchCrash_1 - InitLoop__Min - InitLoop - Min - -3 - 0 - - -GraphSwitchCrash_1 - InitLoop__Max - InitLoop - Max - -3 - 31 - diff --git a/Superv/Graphs/GraphSwitchErrExec.xml b/Superv/Graphs/GraphSwitchErrExec.xml deleted file mode 100644 index 4baecc5..0000000 --- a/Superv/Graphs/GraphSwitchErrExec.xml +++ /dev/null @@ -1,408 +0,0 @@ - - - - - - -? - ? - GraphSwitchErrExec - 1 - ? - -GraphSwitch_1 - - -long - InitLoopSwitch__Index - -long - InitLoopSwitch__Min - -long - InitLoopSwitch__Max - - -long - EndOfInitLoopSwitch__Index - -long - EndOfInitLoopSwitch__Min - -long - EndOfInitLoopSwitch__Max - - - 1/10/2003 - 17:23:54 - 5/7/2005 - 17:11:46 - 1.05 - ? - ? - ? - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - - -long - a - - - -IsOdd - - - - - - 5/7/2005 - 17:11:46 - 5/7/2005 - 17:11:46 - 1.05 - ? - ? - Python function - 388 - 50 - -? - ? - InitLoopSwitch - 4 - EndOfInitLoopSwitch - -InitLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -InitLoop - - - - -MoreLoop - - = Min : ]]> - - - - - -NextLoop - - - - 5/7/2005 - 17:11:46 - 5/7/2005 - 17:11:46 - 1.05 - ? - ? - Compute Node - 10 - 129 - -? - ? - EndOfInitLoopSwitch - 5 - InitLoopSwitch - -EndOfInitLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -? - - 5/7/2005 - 17:11:46 - 5/7/2005 - 17:11:46 - 1.05 - ? - ? - Compute Node - 766 - 127 - -? - ? - IsEven - 3 - ? - -IsEven - - -long - a - - -long - a - - - -IsEven - - - - - - 5/7/2005 - 17:11:46 - 5/7/2005 - 17:11:46 - 2.0 - ? - ? - Compute Node - 397 - 279 - -? - ? - Switch - 6 - EndOfSwitch - -Switch - - -long - a - - -long - Odd - -int - Even - -int - a - - - -Switch - - - - - - - - - - 5/7/2005 - 17:11:46 - 5/7/2005 - 17:11:46 - 2.0 - ? - ? - Compute Node - 195 - 129 - -? - ? - EndOfSwitch - 7 - Switch - -EndOfSwitch - - -long - a - - -long - a - - - -EndSwitch_1 - - 5/7/2005 - 17:11:46 - 5/7/2005 - 17:11:46 - 2.0 - ? - ? - Compute Node - 580 - 147 - - -IsOdd - a - EndOfSwitch - a - - -InitLoopSwitch - DoLoop - EndOfInitLoopSwitch - DoLoop - - -InitLoopSwitch - Index - Switch - a - - -InitLoopSwitch - Min - EndOfInitLoopSwitch - Min - - -InitLoopSwitch - Max - EndOfInitLoopSwitch - Max - - -EndOfInitLoopSwitch - DoLoop - InitLoopSwitch - DoLoop - - -IsEven - a - EndOfSwitch - a - - -Switch - Odd - IsOdd - Gate - - -Switch - Even - IsEven - Gate - - -Switch - a - IsOdd - a - - -Switch - a - IsEven - a - - -Switch - Default - EndOfSwitch - Default - - -EndOfSwitch - a - EndOfInitLoopSwitch - Index - - - -GraphSwitchErrExec - InitLoopSwitch__Index - InitLoopSwitch - Index - -3 - 0 - - -GraphSwitchErrExec - InitLoopSwitch__Min - InitLoopSwitch - Min - -3 - -5 - - -GraphSwitchErrExec - InitLoopSwitch__Max - InitLoopSwitch - Max - -3 - 10 - diff --git a/Superv/Graphs/GraphSwitchExecutable.xml b/Superv/Graphs/GraphSwitchExecutable.xml deleted file mode 100644 index 9d11a7e..0000000 --- a/Superv/Graphs/GraphSwitchExecutable.xml +++ /dev/null @@ -1,374 +0,0 @@ - - - - - - -? - ? - GraphSwitchExecutable - 1 - ? - -GraphSwitchExecutable - - -long - InitLoopSwitch__Index - -long - InitLoopSwitch__Min - -long - InitLoopSwitch__Max - -long - EndOfSwitch__Even - - -long - EndOfInitLoopSwitch__Index - -long - EndOfInitLoopSwitch__Min - -long - EndOfInitLoopSwitch__Max - -int - Switch__Even - - - 1/10/2003 - 17:23:54 - 8/7/2005 - 14:55:5 - 1.05 - ? - ? - ? - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - - -long - a - - - -IsOdd - - - - - - 8/7/2005 - 14:55:5 - 8/7/2005 - 14:55:5 - 1.05 - ? - ? - Python function - 389 - 65 - -? - ? - InitLoopSwitch - 4 - EndOfInitLoopSwitch - -InitLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -InitLoop - - - -MoreLoop - - - - - - - -NextLoop - - - - 8/7/2005 - 14:55:5 - 8/7/2005 - 14:55:5 - 1.05 - ? - ? - Compute Node - 10 - 129 - -? - ? - EndOfInitLoopSwitch - 5 - InitLoopSwitch - -EndOfInitLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -? - - 8/7/2005 - 14:55:5 - 8/7/2005 - 14:55:5 - 1.05 - ? - ? - Compute Node - 772 - 132 - -? - ? - Switch - 6 - EndOfSwitch - -Switch - - -long - a - - -long - Odd - -int - Even - -int - a - -long - i - - - -Switch - - - - - - 8/7/2005 - 14:55:5 - 8/7/2005 - 14:55:5 - 1.05 - ? - ? - Compute Node - 194 - 129 - -? - ? - EndOfSwitch - 7 - Switch - -EndOfSwitch - - -long - a - -long - Even - -long - k - - -long - a - - - -EndOfSwitch - - - 8/7/2005 - 14:55:5 - 8/7/2005 - 14:55:5 - 1.05 - ? - ? - Compute Node - 581 - 132 - - -IsOdd - a - EndOfSwitch - a - - -InitLoopSwitch - DoLoop - EndOfInitLoopSwitch - DoLoop - - -InitLoopSwitch - Index - Switch - a - - -InitLoopSwitch - Min - EndOfInitLoopSwitch - Min - - -InitLoopSwitch - Max - EndOfInitLoopSwitch - Max - - -EndOfInitLoopSwitch - DoLoop - InitLoopSwitch - DoLoop - - -Switch - Odd - IsOdd - Gate - - -Switch - a - IsOdd - a - - -Switch - i - EndOfSwitch - k - - -Switch - Default - EndOfSwitch - Default - - -EndOfSwitch - a - EndOfInitLoopSwitch - Index - - - -GraphSwitchExecutable - InitLoopSwitch__Index - InitLoopSwitch - Index - -3 - 0 - - -GraphSwitchExecutable - InitLoopSwitch__Min - InitLoopSwitch - Min - -3 - 0 - - -GraphSwitchExecutable - InitLoopSwitch__Max - InitLoopSwitch - Max - -3 - 35 - diff --git a/Superv/Graphs/GraphSwitchGates.xml b/Superv/Graphs/GraphSwitchGates.xml deleted file mode 100644 index dc4ee8a..0000000 --- a/Superv/Graphs/GraphSwitchGates.xml +++ /dev/null @@ -1,377 +0,0 @@ - - - - - - -? - ? - GraphSwitchGates - 1 - ? - -GraphSwitchGatesDefault - - -long - LoopGates__Index - -long - LoopGates__Max - -long - LoopGates__Min - - -long - EndLoopGates__Index - -long - EndLoopGates__Max - -long - EndLoopGates__Min - - - 16/2/2005 - 10:40:8 - 16/2/2005 - 11:44:13 - 2.0 - JR - ? - ? - 0 - 0 - - -? - ? - LoopGates - 4 - EndLoopGates - -LoopGates - - -long - Index - -long - Max - -long - Min - - -long - Index - -long - Max - -long - Min - - - -InitLoop - - - - -MoreLoop - - - - - = Min : ]]> - - - -NextLoop - - - - 16/2/2005 - 11:33:14 - 16/2/2005 - 11:33:14 - 2.0 - ? - ? - Compute Node - 13 - 236 - -? - ? - EndLoopGates - 5 - LoopGates - -EndLoopGates - - -long - Index - -long - Max - -long - Min - - -long - Index - -long - Max - -long - Min - - - -EndLoopGates - - 16/2/2005 - 11:33:14 - 16/2/2005 - 11:33:14 - 2.0 - ? - ? - Compute Node - 875 - 216 - -? - ? - SwitchGates - 6 - EndSwitchGates - -SwitchGates - - -long - Index - - -long - Odd - -long - Even - - - -SwitchGates - - - - - - - - - 16/2/2005 - 11:33:14 - 16/2/2005 - 11:33:14 - 2.0 - ? - ? - Compute Node - 204 - 236 - -? - ? - EndSwitchGates - 7 - SwitchGates - -EndSwitchGates - - - - - -EndSwitchGates - - - - - - 16/2/2005 - 11:33:14 - 16/2/2005 - 11:33:14 - 2.0 - ? - ? - Compute Node - 648 - 276 - -? - ? - IsOdd - 3 - ? - -IsOdd - - - - - -IsOdd - - - - - 16/2/2005 - 11:33:14 - 16/2/2005 - 11:33:14 - 2.0 - ? - ? - Compute Node - 424 - 116 - -? - ? - IsEven - 3 - ? - -IsEven - - - - - -IsEven - - - - - 16/2/2005 - 11:33:14 - 16/2/2005 - 11:33:14 - 2.0 - ? - ? - Compute Node - 428 - 345 - - -LoopGates - DoLoop - EndLoopGates - DoLoop - - -LoopGates - Index - EndLoopGates - Index - - -LoopGates - Index - SwitchGates - Index - - -LoopGates - Max - EndLoopGates - Max - - -LoopGates - Min - EndLoopGates - Min - - -EndLoopGates - DoLoop - LoopGates - DoLoop - - -SwitchGates - Odd - IsOdd - Gate - - -SwitchGates - Even - IsEven - Gate - - -EndSwitchGates - Gate - EndLoopGates - Gate - - -IsOdd - Gate - EndSwitchGates - Default - - -IsEven - Gate - EndSwitchGates - Default - - - -GraphSwitchGates - LoopGates__Index - LoopGates - Index - -3 - 0 - - -GraphSwitchGates - LoopGates__Max - LoopGates - Max - -3 - 13 - - -GraphSwitchGates - LoopGates__Min - LoopGates - Min - -3 - -7 - diff --git a/Superv/Graphs/GraphSwitchGatesDefault.xml b/Superv/Graphs/GraphSwitchGatesDefault.xml deleted file mode 100644 index 47758d3..0000000 --- a/Superv/Graphs/GraphSwitchGatesDefault.xml +++ /dev/null @@ -1,384 +0,0 @@ - - - - - - -? - ? - GraphSwitchGatesDefault - 1 - ? - -GraphSwitchGatesDefault_1 - - -long - LoopGates__Index - -long - LoopGates__Max - -long - LoopGates__Min - - -long - EndLoopGates__Index - -long - EndLoopGates__Max - -long - EndLoopGates__Min - - - 16/2/2005 - 10:40:8 - 16/2/2005 - 11:46:44 - 2.0 - JR - ? - ? - 0 - 0 - - -? - ? - LoopGates - 4 - EndLoopGates - -LoopGates - - -long - Index - -long - Max - -long - Min - - -long - Index - -long - Max - -long - Min - - - -InitLoop - - - - -MoreLoop - - - - - = Min : ]]> - - - -NextLoop - - - - 16/2/2005 - 11:46:44 - 16/2/2005 - 11:46:44 - 2.0 - ? - ? - Compute Node - 13 - 236 - -? - ? - EndLoopGates - 5 - LoopGates - -EndLoopGates - - -long - Index - -long - Max - -long - Min - - -long - Index - -long - Max - -long - Min - - - -EndLoopGates - - 16/2/2005 - 11:46:44 - 16/2/2005 - 11:46:44 - 2.0 - ? - ? - Compute Node - 875 - 216 - -? - ? - SwitchGates - 6 - EndSwitchGates - -SwitchGates - - -long - Index - - -long - Odd - -long - Even - - - -SwitchGates - - - - 0 : ]]> - - - - - - 16/2/2005 - 11:46:44 - 16/2/2005 - 11:46:44 - 2.0 - ? - ? - Compute Node - 204 - 236 - -? - ? - EndSwitchGates - 7 - SwitchGates - -EndSwitchGates - - - - - -EndSwitchGates - - - - - - 16/2/2005 - 11:46:44 - 16/2/2005 - 11:46:44 - 2.0 - ? - ? - Compute Node - 648 - 276 - -? - ? - IsOdd - 3 - ? - -IsOdd - - - - - -IsOdd - - - - - 16/2/2005 - 11:46:44 - 16/2/2005 - 11:46:44 - 2.0 - ? - ? - Compute Node - 424 - 116 - -? - ? - IsEven - 3 - ? - -IsEven - - - - - -IsEven - - - - - 16/2/2005 - 11:46:44 - 16/2/2005 - 11:46:44 - 2.0 - ? - ? - Compute Node - 428 - 345 - - -LoopGates - DoLoop - EndLoopGates - DoLoop - - -LoopGates - Index - EndLoopGates - Index - - -LoopGates - Index - SwitchGates - Index - - -LoopGates - Max - EndLoopGates - Max - - -LoopGates - Min - EndLoopGates - Min - - -EndLoopGates - DoLoop - LoopGates - DoLoop - - -SwitchGates - Odd - IsOdd - Gate - - -SwitchGates - Even - IsEven - Gate - - -SwitchGates - Default - EndSwitchGates - Default - - -EndSwitchGates - Gate - EndLoopGates - Gate - - -IsOdd - Gate - EndSwitchGates - Default - - -IsEven - Gate - EndSwitchGates - Default - - - -GraphSwitchGatesDefault - LoopGates__Index - LoopGates - Index - -3 - 0 - - -GraphSwitchGatesDefault - LoopGates__Max - LoopGates - Max - -3 - 13 - - -GraphSwitchGatesDefault - LoopGates__Min - LoopGates - Min - -3 - -7 - diff --git a/Superv/Graphs/GraphSwitchGatesNoDefaultAborted.xml b/Superv/Graphs/GraphSwitchGatesNoDefaultAborted.xml deleted file mode 100644 index f51e4da..0000000 --- a/Superv/Graphs/GraphSwitchGatesNoDefaultAborted.xml +++ /dev/null @@ -1,378 +0,0 @@ - - - - - - -? - ? - GraphSwitchGatesNoDefaultAborted - 1 - ? - -GraphSwitchGatesDefault_1 - - -long - LoopGates__Index - -long - LoopGates__Max - -long - LoopGates__Min - - -long - EndLoopGates__Index - -long - EndLoopGates__Max - -long - EndLoopGates__Min - - - 16/2/2005 - 10:40:8 - 16/2/2005 - 12:12:25 - 2.0 - JR - ? - ? - 0 - 0 - - -? - ? - LoopGates - 4 - EndLoopGates - -LoopGates - - -long - Index - -long - Max - -long - Min - - -long - Index - -long - Max - -long - Min - - - -InitLoop - - - - -MoreLoop - - - - - = Min : ]]> - - - -NextLoop - - - - 16/2/2005 - 12:12:25 - 16/2/2005 - 12:12:25 - 2.0 - ? - ? - Compute Node - 13 - 236 - -? - ? - EndLoopGates - 5 - LoopGates - -EndLoopGates - - -long - Index - -long - Max - -long - Min - - -long - Index - -long - Max - -long - Min - - - -EndLoopGates - - 16/2/2005 - 12:12:25 - 16/2/2005 - 12:12:25 - 2.0 - ? - ? - Compute Node - 875 - 216 - -? - ? - SwitchGates - 6 - EndSwitchGates - -SwitchGates - - -long - Index - - -long - Odd - -long - Even - - - -SwitchGates - - - - 0 : ]]> - - - - - - 16/2/2005 - 12:12:25 - 16/2/2005 - 12:12:25 - 2.0 - ? - ? - Compute Node - 204 - 236 - -? - ? - EndSwitchGates - 7 - SwitchGates - -EndSwitchGates - - - - - -EndSwitchGates - - - - - - 16/2/2005 - 12:12:25 - 16/2/2005 - 12:12:25 - 2.0 - ? - ? - Compute Node - 648 - 276 - -? - ? - IsOdd - 3 - ? - -IsOdd - - - - - -IsOdd - - - - - 16/2/2005 - 12:12:25 - 16/2/2005 - 12:12:25 - 2.0 - ? - ? - Compute Node - 424 - 116 - -? - ? - IsEven - 3 - ? - -IsEven - - - - - -IsEven - - - - - 16/2/2005 - 12:12:25 - 16/2/2005 - 12:12:25 - 2.0 - ? - ? - Compute Node - 428 - 345 - - -LoopGates - DoLoop - EndLoopGates - DoLoop - - -LoopGates - Index - EndLoopGates - Index - - -LoopGates - Index - SwitchGates - Index - - -LoopGates - Max - EndLoopGates - Max - - -LoopGates - Min - EndLoopGates - Min - - -EndLoopGates - DoLoop - LoopGates - DoLoop - - -SwitchGates - Odd - IsOdd - Gate - - -SwitchGates - Even - IsEven - Gate - - -EndSwitchGates - Gate - EndLoopGates - Gate - - -IsOdd - Gate - EndSwitchGates - Default - - -IsEven - Gate - EndSwitchGates - Default - - - -GraphSwitchGatesNoDefaultAborted - LoopGates__Index - LoopGates - Index - -3 - 0 - - -GraphSwitchGatesNoDefaultAborted - LoopGates__Max - LoopGates - Max - -3 - 13 - - -GraphSwitchGatesNoDefaultAborted - LoopGates__Min - LoopGates - Min - -3 - -7 - diff --git a/Superv/Graphs/GraphSwitchGatesdefaultBranch.xml b/Superv/Graphs/GraphSwitchGatesdefaultBranch.xml deleted file mode 100644 index 8cdc77d..0000000 --- a/Superv/Graphs/GraphSwitchGatesdefaultBranch.xml +++ /dev/null @@ -1,422 +0,0 @@ - - - - - - -? - ? - GraphSwitchGatesdefaultBranch - 1 - ? - -GraphSwitchGatesdefaultBranch - - -long - LoopGates__Index - -long - LoopGates__Max - -long - LoopGates__Min - - -long - EndLoopGates__Index - -long - EndLoopGates__Max - -long - EndLoopGates__Min - - - 16/2/2005 - 10:40:8 - 16/2/2005 - 15:13:4 - 2.0 - JR - ? - ? - 0 - 0 - - -? - ? - LoopGates - 4 - EndLoopGates - -LoopGates - - -long - Index - -long - Max - -long - Min - - -long - Index - -long - Max - -long - Min - - - -InitLoop - - - - -MoreLoop - - - - - = Min : ]]> - - - -NextLoop - - - - 16/2/2005 - 15:4:47 - 16/2/2005 - 15:4:47 - 2.0 - ? - ? - Compute Node - 13 - 236 - -? - ? - EndLoopGates - 5 - LoopGates - -EndLoopGates - - -long - Index - -long - Max - -long - Min - - -long - Index - -long - Max - -long - Min - - - -EndLoopGates - - 16/2/2005 - 15:4:47 - 16/2/2005 - 15:4:47 - 2.0 - ? - ? - Compute Node - 875 - 216 - -? - ? - SwitchGates - 6 - EndSwitchGates - -SwitchGates - - -long - Index - - -long - Odd - -long - Even - -long - default - - - -SwitchGates - - - - - 0 : ]]> - - - - - - - - 16/2/2005 - 15:4:47 - 16/2/2005 - 15:4:47 - 2.0 - ? - ? - Compute Node - 204 - 236 - -? - ? - EndSwitchGates - 7 - SwitchGates - -EndSwitchGates - - - - - -EndSwitchGates - - - - - - 16/2/2005 - 15:4:47 - 16/2/2005 - 15:4:47 - 2.0 - ? - ? - Compute Node - 647 - 272 - -? - ? - IsOdd - 3 - ? - -IsOdd - - - - - -IsOdd - - - - - 16/2/2005 - 15:4:47 - 16/2/2005 - 15:4:47 - 2.0 - ? - ? - Compute Node - 424 - 116 - -? - ? - IsEven - 3 - ? - -IsEven - - - - - -IsEven - - - - - 16/2/2005 - 15:4:47 - 16/2/2005 - 15:4:47 - 2.0 - ? - ? - Compute Node - 428 - 345 - -? - ? - defaultNode - 3 - ? - -defaultNode - - - - - -defaultNode - - - - - 16/2/2005 - 15:12:49 - 16/2/2005 - 15:12:49 - 2.0 - ? - ? - Compute Node - 425 - 232 - - -LoopGates - DoLoop - EndLoopGates - DoLoop - - -LoopGates - Index - EndLoopGates - Index - - -LoopGates - Index - SwitchGates - Index - - -LoopGates - Max - EndLoopGates - Max - - -LoopGates - Min - EndLoopGates - Min - - -EndLoopGates - DoLoop - LoopGates - DoLoop - - -SwitchGates - Odd - IsOdd - Gate - - -SwitchGates - Even - IsEven - Gate - - -SwitchGates - default - defaultNode - Gate - - -EndSwitchGates - Gate - EndLoopGates - Gate - - -IsOdd - Gate - EndSwitchGates - Default - - -IsEven - Gate - EndSwitchGates - Default - - -defaultNode - Gate - EndSwitchGates - Default - - - -GraphSwitchGatesdefaultBranch - LoopGates__Index - LoopGates - Index - -3 - 0 - - -GraphSwitchGatesdefaultBranch - LoopGates__Max - LoopGates - Max - -3 - 13 - - -GraphSwitchGatesdefaultBranch - LoopGates__Min - LoopGates - Min - -3 - -7 - diff --git a/Superv/Graphs/GraphSwitchGatesdefault_.xml b/Superv/Graphs/GraphSwitchGatesdefault_.xml deleted file mode 100755 index 47758d3..0000000 --- a/Superv/Graphs/GraphSwitchGatesdefault_.xml +++ /dev/null @@ -1,384 +0,0 @@ - - - - - - -? - ? - GraphSwitchGatesDefault - 1 - ? - -GraphSwitchGatesDefault_1 - - -long - LoopGates__Index - -long - LoopGates__Max - -long - LoopGates__Min - - -long - EndLoopGates__Index - -long - EndLoopGates__Max - -long - EndLoopGates__Min - - - 16/2/2005 - 10:40:8 - 16/2/2005 - 11:46:44 - 2.0 - JR - ? - ? - 0 - 0 - - -? - ? - LoopGates - 4 - EndLoopGates - -LoopGates - - -long - Index - -long - Max - -long - Min - - -long - Index - -long - Max - -long - Min - - - -InitLoop - - - - -MoreLoop - - - - - = Min : ]]> - - - -NextLoop - - - - 16/2/2005 - 11:46:44 - 16/2/2005 - 11:46:44 - 2.0 - ? - ? - Compute Node - 13 - 236 - -? - ? - EndLoopGates - 5 - LoopGates - -EndLoopGates - - -long - Index - -long - Max - -long - Min - - -long - Index - -long - Max - -long - Min - - - -EndLoopGates - - 16/2/2005 - 11:46:44 - 16/2/2005 - 11:46:44 - 2.0 - ? - ? - Compute Node - 875 - 216 - -? - ? - SwitchGates - 6 - EndSwitchGates - -SwitchGates - - -long - Index - - -long - Odd - -long - Even - - - -SwitchGates - - - - 0 : ]]> - - - - - - 16/2/2005 - 11:46:44 - 16/2/2005 - 11:46:44 - 2.0 - ? - ? - Compute Node - 204 - 236 - -? - ? - EndSwitchGates - 7 - SwitchGates - -EndSwitchGates - - - - - -EndSwitchGates - - - - - - 16/2/2005 - 11:46:44 - 16/2/2005 - 11:46:44 - 2.0 - ? - ? - Compute Node - 648 - 276 - -? - ? - IsOdd - 3 - ? - -IsOdd - - - - - -IsOdd - - - - - 16/2/2005 - 11:46:44 - 16/2/2005 - 11:46:44 - 2.0 - ? - ? - Compute Node - 424 - 116 - -? - ? - IsEven - 3 - ? - -IsEven - - - - - -IsEven - - - - - 16/2/2005 - 11:46:44 - 16/2/2005 - 11:46:44 - 2.0 - ? - ? - Compute Node - 428 - 345 - - -LoopGates - DoLoop - EndLoopGates - DoLoop - - -LoopGates - Index - EndLoopGates - Index - - -LoopGates - Index - SwitchGates - Index - - -LoopGates - Max - EndLoopGates - Max - - -LoopGates - Min - EndLoopGates - Min - - -EndLoopGates - DoLoop - LoopGates - DoLoop - - -SwitchGates - Odd - IsOdd - Gate - - -SwitchGates - Even - IsEven - Gate - - -SwitchGates - Default - EndSwitchGates - Default - - -EndSwitchGates - Gate - EndLoopGates - Gate - - -IsOdd - Gate - EndSwitchGates - Default - - -IsEven - Gate - EndSwitchGates - Default - - - -GraphSwitchGatesDefault - LoopGates__Index - LoopGates - Index - -3 - 0 - - -GraphSwitchGatesDefault - LoopGates__Max - LoopGates - Max - -3 - 13 - - -GraphSwitchGatesDefault - LoopGates__Min - LoopGates - Min - -3 - -7 - diff --git a/Superv/Graphs/GraphSwitchManyCases.xml b/Superv/Graphs/GraphSwitchManyCases.xml deleted file mode 100644 index 88cc737..0000000 --- a/Superv/Graphs/GraphSwitchManyCases.xml +++ /dev/null @@ -1,679 +0,0 @@ - - - - - - - ? - ? - GraphSwitchManyCases - 1 - ? - - GraphSwitchManyCases_1 - - - long - Loop__Index - - - long - Loop__Max - - - long - Loop__Min - - - long - EndSwitch__f - - - - - long - EndLoop__Index - - - long - EndLoop__Max - - - long - EndLoop__Min - - - long - Switch__f - - - - - - 29/6/2005 - 16:32:43 - 25/8/2005 - 12:41:10 - 2.0 - JR - ? - ? - 0 - 0 - - - - - ? - ? - Loop - 4 - EndLoop - - Loop - - - long - Index - - - long - Max - - - long - Min - - - - - long - Index - - - long - Max - - - long - Min - - - - - - - Init - - - - - - More - - = Min : ]]> - - - - - - - Next - - - - - - 25/8/2005 - 12:41:10 - 25/8/2005 - 12:41:10 - 2.0 - ? - ? - Compute Node - 15 - 336 - - - ? - ? - EndLoop - 5 - Loop - - EndLoop - - - long - Index - - - long - Max - - - long - Min - - - - - long - Index - - - long - Max - - - long - Min - - - - - - - EndLoop - - - - 25/8/2005 - 12:41:10 - 25/8/2005 - 12:41:10 - 2.0 - ? - ? - Compute Node - 972 - 344 - - - ? - ? - Switch - 6 - EndSwitch - - Switch - - - long - Index - - - - - long - SB1 - - - long - SB2 - - - long - a - - - long - b - - - long - c - - - long - d - - - long - e - - - long - f - - - - - - - Switch - - - - - - - - - - - - - 25/8/2005 - 12:41:10 - 25/8/2005 - 12:41:10 - 2.0 - ? - ? - Compute Node - 232 - 285 - - - ? - ? - EndSwitch - 7 - Switch - - EndSwitch - - - long - a - - - long - b - - - long - dd - - - long - e - - - long - f - - - - - long - Index - - - - - - - EndSwitch - - - - - - - - - - - - - - - - - - - 25/8/2005 - 12:41:10 - 25/8/2005 - 12:41:10 - 2.0 - ? - ? - Compute Node - 732 - 344 - - - ? - ? - Case1 - 3 - ? - - Case1 - - - long - a - - - - - long - a - - - - - - - Case1 - - - - - - - 25/8/2005 - 12:41:10 - 25/8/2005 - 12:41:10 - 2.0 - ? - ? - Compute Node - 448 - 13 - - - ? - ? - Case3 - 3 - ? - - Case3 - - - long - b - - - - - long - b - - - - - - - Case3 - - - - - - - 25/8/2005 - 12:41:10 - 25/8/2005 - 12:41:10 - 2.0 - ? - ? - Compute Node - 458 - 286 - - - ? - ? - Case4 - 3 - ? - - Case4 - - - long - c - - - - - - - - Case4 - - - - - - - 25/8/2005 - 12:41:10 - 25/8/2005 - 12:41:10 - 2.0 - ? - ? - Compute Node - 459 - 493 - - - ? - ? - Case2a - 3 - ? - - Case2a - - - long - a - - - - - long - a - - - - - - - Case2a - - - - - - - 25/8/2005 - 12:41:10 - 25/8/2005 - 12:41:10 - 2.0 - ? - ? - Compute Node - 453 - 154 - - - - - Loop - DoLoop - EndLoop - DoLoop - - - - Loop - Index - Switch - Index - - - - Loop - Max - EndLoop - Max - - - - Loop - Min - EndLoop - Min - - - - EndLoop - DoLoop - Loop - DoLoop - - - - Switch - SB1 - Case1 - Gate - - - - Switch - SB2 - Case2a - Gate - - - - Switch - a - Case1 - a - - - - Switch - a - Case2a - a - - - - Switch - b - Case3 - b - - - - Switch - c - Case4 - c - - - - Switch - d - EndSwitch - dd - - - - Switch - e - EndSwitch - e - - - - Switch - Default - EndSwitch - Default - - - - EndSwitch - Index - EndLoop - Index - - - - Case1 - a - EndSwitch - a - - - - Case3 - b - EndSwitch - b - - - - Case4 - Gate - EndSwitch - Default - - - - Case2a - a - EndSwitch - a - - - - - - GraphSwitchManyCases - Loop__Index - Loop - Index - - 3 - 0 - - - - - GraphSwitchManyCases - Loop__Max - Loop - Max - - 3 - 23 - - - - - GraphSwitchManyCases - Loop__Min - Loop - Min - - 3 - -7 - - - - - - - diff --git a/Superv/Graphs/GraphSwitchManyCasesNOTValid.xml b/Superv/Graphs/GraphSwitchManyCasesNOTValid.xml deleted file mode 100644 index c4a097b..0000000 --- a/Superv/Graphs/GraphSwitchManyCasesNOTValid.xml +++ /dev/null @@ -1,590 +0,0 @@ - - - - - - -? - ? - GraphSwitchManyCasesNOTValid - 1 - ? - -GraphSwitchManyCases_1_1_1 - - -long - Loop__Index - -long - Loop__Max - -long - Loop__Min - -long - EndSwitch__f - - -long - EndLoop__Index - -long - EndLoop__Max - -long - EndLoop__Min - -long - Switch__f - - - 29/6/2005 - 16:32:43 - 8/7/2005 - 15:6:33 - 2.0 - JR - ? - ? - 0 - 0 - - -? - ? - Loop - 4 - EndLoop - -Loop - - -long - Index - -long - Max - -long - Min - - -long - Index - -long - Max - -long - Min - - - -Init - - - - -More - - = Min : ]]> - - - - - -Next - - - - 8/7/2005 - 15:6:33 - 8/7/2005 - 15:6:33 - 2.0 - ? - ? - Compute Node - 15 - 336 - -? - ? - EndLoop - 5 - Loop - -EndLoop - - -long - Index - -long - Max - -long - Min - - -long - Index - -long - Max - -long - Min - - - -EndLoop - - 8/7/2005 - 15:6:33 - 8/7/2005 - 15:6:33 - 2.0 - ? - ? - Compute Node - 972 - 344 - -? - ? - Switch - 6 - EndSwitch - -Switch - - -long - Index - - -long - SB1 - -long - SB2 - -long - a - -long - b - -long - c - -long - d - -long - e - -long - f - - - -Switch - - - - - - - - - - - 8/7/2005 - 15:6:33 - 8/7/2005 - 15:6:33 - 2.0 - ? - ? - Compute Node - 232 - 285 - -? - ? - EndSwitch - 7 - Switch - -EndSwitch - - -long - a - -long - b - -long - dd - -long - e - -long - f - - -long - Index - - - -EndSwitch - - - - - - - - - - - - - - - - - 8/7/2005 - 15:6:33 - 8/7/2005 - 15:6:33 - 2.0 - ? - ? - Compute Node - 732 - 344 - -? - ? - Case1 - 3 - ? - -Case1 - - -long - a - - -long - a - - - -Case1 - - - - - 8/7/2005 - 15:6:33 - 8/7/2005 - 15:6:33 - 2.0 - ? - ? - Compute Node - 448 - 13 - -? - ? - Case3 - 3 - ? - -Case3 - - -long - b - - -long - b - - - -Case3 - - - - - 8/7/2005 - 15:6:33 - 8/7/2005 - 15:6:33 - 2.0 - ? - ? - Compute Node - 461 - 500 - -? - ? - Case4 - 3 - ? - -Case4 - - -long - c - - - - -Case4 - - - - - 8/7/2005 - 15:6:33 - 8/7/2005 - 15:6:33 - 2.0 - ? - ? - Compute Node - 455 - 647 - -? - ? - Case2 - 3 - ? - -Case2 - - - - - -Case2 - - - - - 8/7/2005 - 15:6:33 - 8/7/2005 - 15:6:33 - 2.0 - ? - ? - Compute Node - 455 - 179 - -? - ? - Case2a - 3 - ? - -Case2a - - -long - a - - -long - a - - - -Case2a - - - - - 8/7/2005 - 15:6:33 - 8/7/2005 - 15:6:33 - 2.0 - ? - ? - Compute Node - 456 - 304 - - -Loop - DoLoop - EndLoop - DoLoop - - -Loop - Index - Switch - Index - - -Loop - Max - EndLoop - Max - - -Loop - Min - EndLoop - Min - - -EndLoop - DoLoop - Loop - DoLoop - - -Switch - SB1 - Case1 - Gate - - -Switch - SB2 - Case2 - Gate - - -Switch - SB2 - Case2a - Gate - - -Switch - a - Case1 - a - - -Switch - a - Case2a - a - - -Switch - b - Case3 - b - - -Switch - c - Case4 - c - - -Switch - d - EndSwitch - dd - - -Switch - e - EndSwitch - e - - -Switch - Default - EndSwitch - Default - - -EndSwitch - Index - EndLoop - Index - - -Case1 - a - EndSwitch - a - - -Case3 - b - EndSwitch - b - - -Case4 - Gate - EndSwitch - Default - - -Case2 - Gate - EndSwitch - Default - - -Case2a - a - EndSwitch - a - - - -GraphSwitchManyCasesNOTValid - Loop__Index - Loop - Index - -3 - 0 - - -GraphSwitchManyCasesNOTValid - Loop__Max - Loop - Max - -3 - 23 - - -GraphSwitchManyCasesNOTValid - Loop__Min - Loop - Min - -3 - -7 - diff --git a/Superv/Graphs/GraphSwitchNOTExecutable.xml b/Superv/Graphs/GraphSwitchNOTExecutable.xml deleted file mode 100644 index 289ec1b..0000000 --- a/Superv/Graphs/GraphSwitchNOTExecutable.xml +++ /dev/null @@ -1,367 +0,0 @@ - - - - - - -? - ? - GraphSwitchNOTExecutable - 1 - ? - -GraphSwitch_3 - - -long - InitLoopSwitch__Index - -long - InitLoopSwitch__Min - -long - InitLoopSwitch__Max - - -long - EndOfInitLoopSwitch__Index - -long - EndOfInitLoopSwitch__Min - -long - EndOfInitLoopSwitch__Max - -int - Switch__Even - - - 1/10/2003 - 17:23:54 - 22/6/2005 - 16:49:45 - 1.05 - ? - ? - ? - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - - -long - a - - - -IsOdd - - - - - - 22/6/2005 - 16:49:45 - 22/6/2005 - 16:49:45 - 1.05 - ? - ? - Python function - 389 - 65 - -? - ? - InitLoopSwitch - 4 - EndOfInitLoopSwitch - -InitLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -InitLoop - - - -MoreLoop - - - - - - - -NextLoop - - - - 22/6/2005 - 16:49:45 - 22/6/2005 - 16:49:45 - 1.05 - ? - ? - Compute Node - 10 - 129 - -? - ? - EndOfInitLoopSwitch - 5 - InitLoopSwitch - -EndOfInitLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -? - - 22/6/2005 - 16:49:45 - 22/6/2005 - 16:49:45 - 1.05 - ? - ? - Compute Node - 776 - 170 - -? - ? - Switch - 6 - EndOfSwitch - -Switch - - -long - a - - -long - Odd - -int - Even - -int - n - - - -Switch - - - - - - 22/6/2005 - 16:49:45 - 22/6/2005 - 16:49:45 - 1.05 - ? - ? - Compute Node - 194 - 129 - -? - ? - EndOfSwitch - 7 - Switch - -EndOfSwitch - - -long - a - - -long - a - - - -? - - 22/6/2005 - 16:49:45 - 22/6/2005 - 16:49:45 - 1.05 - ? - ? - Compute Node - 582 - 170 - - -IsOdd - a - EndOfSwitch - a - - -564 - 201 - -564 - 137 - -InitLoopSwitch - DoLoop - EndOfInitLoopSwitch - DoLoop - - -InitLoopSwitch - Index - Switch - a - - -InitLoopSwitch - Min - EndOfInitLoopSwitch - Min - - -InitLoopSwitch - Max - EndOfInitLoopSwitch - Max - - -EndOfInitLoopSwitch - DoLoop - InitLoopSwitch - DoLoop - - -Switch - Odd - IsOdd - Gate - - -Switch - n - IsOdd - a - - -371 - 136 - -371 - 200 - -Switch - Default - EndOfSwitch - Default - - -EndOfSwitch - a - EndOfInitLoopSwitch - Index - - - -GraphSwitchNOTExecutable - InitLoopSwitch__Index - InitLoopSwitch - Index - -3 - 0 - - -GraphSwitchNOTExecutable - InitLoopSwitch__Min - InitLoopSwitch - Min - -3 - 0 - - -GraphSwitchNOTExecutable - InitLoopSwitch__Max - InitLoopSwitch - Max - -3 - 100 - diff --git a/Superv/Graphs/GraphSwitchNOTExecutable1.xml b/Superv/Graphs/GraphSwitchNOTExecutable1.xml deleted file mode 100644 index d28a2de..0000000 --- a/Superv/Graphs/GraphSwitchNOTExecutable1.xml +++ /dev/null @@ -1,373 +0,0 @@ - - - - - - -? - ? - GraphSwitchNOTExecutable1 - 1 - ? - -GraphSwitchExecutable_1 - - -long - InitLoopSwitch__Index - -long - InitLoopSwitch__Min - -long - InitLoopSwitch__Max - - -long - EndOfInitLoopSwitch__Index - -long - EndOfInitLoopSwitch__Min - -long - EndOfInitLoopSwitch__Max - -int - Switch__Even - - - 1/10/2003 - 17:23:54 - 22/6/2005 - 16:57:22 - 1.05 - ? - ? - ? - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - - -long - a - - - -IsOdd - - - - - - 22/6/2005 - 16:57:22 - 22/6/2005 - 16:57:22 - 1.05 - ? - ? - Python function - 389 - 65 - -? - ? - InitLoopSwitch - 4 - EndOfInitLoopSwitch - -InitLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -InitLoop - - - -MoreLoop - - - - - - - -NextLoop - - - - 22/6/2005 - 16:57:22 - 22/6/2005 - 16:57:22 - 1.05 - ? - ? - Compute Node - 10 - 129 - -? - ? - EndOfInitLoopSwitch - 5 - InitLoopSwitch - -EndOfInitLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -? - - 22/6/2005 - 16:57:22 - 22/6/2005 - 16:57:22 - 1.05 - ? - ? - Compute Node - 776 - 170 - -? - ? - Switch - 6 - EndOfSwitch - -Switch - - -long - a - - -long - Odd - -int - Even - -int - n - - - -Switch - - - - - - 22/6/2005 - 16:57:22 - 22/6/2005 - 16:57:22 - 1.05 - ? - ? - Compute Node - 194 - 129 - -? - ? - EndOfSwitch - 7 - Switch - -EndOfSwitch - - -long - a - - -long - a - - - -? - - 22/6/2005 - 16:57:22 - 22/6/2005 - 16:57:22 - 1.05 - ? - ? - Compute Node - 582 - 170 - - -IsOdd - a - EndOfSwitch - a - - -564 - 201 - -564 - 137 - -InitLoopSwitch - DoLoop - EndOfInitLoopSwitch - DoLoop - - -InitLoopSwitch - Index - Switch - a - - -InitLoopSwitch - Min - EndOfInitLoopSwitch - Min - - -InitLoopSwitch - Max - EndOfInitLoopSwitch - Max - - -EndOfInitLoopSwitch - DoLoop - InitLoopSwitch - DoLoop - - -Switch - Odd - IsOdd - Gate - - -Switch - n - IsOdd - a - - -371 - 136 - -371 - 200 - -Switch - n - EndOfSwitch - a - - -Switch - Default - EndOfSwitch - Default - - -EndOfSwitch - a - EndOfInitLoopSwitch - Index - - - -GraphSwitchNOTExecutable1 - InitLoopSwitch__Index - InitLoopSwitch - Index - -3 - 0 - - -GraphSwitchNOTExecutable1 - InitLoopSwitch__Min - InitLoopSwitch - Min - -3 - 0 - - -GraphSwitchNOTExecutable1 - InitLoopSwitch__Max - InitLoopSwitch - Max - -3 - 100 - diff --git a/Superv/Graphs/GraphSwitchNOTExecutable2.xml b/Superv/Graphs/GraphSwitchNOTExecutable2.xml deleted file mode 100644 index 40e9a28..0000000 --- a/Superv/Graphs/GraphSwitchNOTExecutable2.xml +++ /dev/null @@ -1,376 +0,0 @@ - - - - - - -? - ? - GraphSwitchNOTExecutable2 - 1 - ? - -GraphSwitchExecutable - - -long - InitLoopSwitch__Index - -long - InitLoopSwitch__Min - -long - InitLoopSwitch__Max - -long - EndOfSwitch__Even - - -long - EndOfInitLoopSwitch__Index - -long - EndOfInitLoopSwitch__Min - -long - EndOfInitLoopSwitch__Max - -int - Switch__Even - - - 1/10/2003 - 17:23:54 - 23/6/2005 - 10:53:15 - 1.05 - JR - ? - ? - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - - -long - a - - - -IsOdd - - - - - - 23/6/2005 - 10:53:15 - 23/6/2005 - 10:53:15 - 1.05 - ? - ? - Python function - 389 - 65 - -? - ? - InitLoopSwitch - 4 - EndOfInitLoopSwitch - -InitLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -InitLoop - - - -MoreLoop - - - - - - - -NextLoop - - - - 23/6/2005 - 10:53:15 - 23/6/2005 - 10:53:15 - 1.05 - ? - ? - Compute Node - 10 - 129 - -? - ? - EndOfInitLoopSwitch - 5 - InitLoopSwitch - -EndOfInitLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -? - - 23/6/2005 - 10:53:15 - 23/6/2005 - 10:53:15 - 1.05 - ? - ? - Compute Node - 772 - 132 - -? - ? - Switch - 6 - EndOfSwitch - -Switch - - -long - a - - -long - Odd - -int - Even - -int - n - - - -Switch - - - - - - 23/6/2005 - 10:53:15 - 23/6/2005 - 10:53:15 - 1.05 - ? - ? - Compute Node - 194 - 129 - -? - ? - EndOfSwitch - 7 - Switch - -EndOfSwitch - - -long - a - -long - Even - -long - k - - -long - a - - - -? - - 23/6/2005 - 10:53:15 - 23/6/2005 - 10:53:15 - 1.05 - ? - ? - Compute Node - 581 - 132 - - -IsOdd - a - EndOfSwitch - a - - -InitLoopSwitch - DoLoop - EndOfInitLoopSwitch - DoLoop - - -InitLoopSwitch - Index - Switch - a - - -InitLoopSwitch - Min - EndOfInitLoopSwitch - Min - - -InitLoopSwitch - Max - EndOfInitLoopSwitch - Max - - -EndOfInitLoopSwitch - DoLoop - InitLoopSwitch - DoLoop - - -Switch - Odd - IsOdd - Gate - - -Switch - n - IsOdd - a - - -371 - 136 - -371 - 200 - -Switch - n - EndOfSwitch - k - - -Switch - Default - EndOfSwitch - Default - - -EndOfSwitch - a - EndOfInitLoopSwitch - Index - - - -GraphSwitchNOTExecutable2 - InitLoopSwitch__Index - InitLoopSwitch - Index - -3 - 0 - - -GraphSwitchNOTExecutable2 - InitLoopSwitch__Min - InitLoopSwitch - Min - -3 - 0 - - -GraphSwitchNOTExecutable2 - InitLoopSwitch__Max - InitLoopSwitch - Max - -3 - 100 - diff --git a/Superv/Graphs/GraphSwitchOutput.xml b/Superv/Graphs/GraphSwitchOutput.xml deleted file mode 100644 index ed195df..0000000 --- a/Superv/Graphs/GraphSwitchOutput.xml +++ /dev/null @@ -1,547 +0,0 @@ - - - - - - -? - ? - GraphSwitch_1_1_2 - 1 - ? - -GraphSwitch_1_1_2 - - -long - InitLoopSwitch__Index - -long - InitLoopSwitch__Min - -long - InitLoopSwitch__Max - - -long - EndOfInitLoopSwitch__Index - -long - EndOfInitLoopSwitch__Min - -long - EndOfInitLoopSwitch__Max - -boolean - Switch__default - -string - Print__Branch - -string - Print_1__Branch - - - 1/10/2003 - 17:23:54 - 20/1/2005 - 13:2:4 - 1.05 - ? - ? - ? - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - -string - Branch - - -long - a - -string - Branch - - - -IsOdd - - - - - - 20/1/2005 - 13:0:10 - 20/1/2005 - 13:0:10 - 1.05 - ? - ? - Python function - 388 - 50 - -? - ? - InitLoopSwitch - 4 - EndOfInitLoopSwitch - -InitLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -InitLoop - - - - -MoreLoop - - = Min : ]]> - - - - - -NextLoop - - - - 20/1/2005 - 13:0:10 - 20/1/2005 - 13:0:10 - 1.05 - ? - ? - Compute Node - 10 - 129 - -? - ? - EndOfInitLoopSwitch - 5 - InitLoopSwitch - -EndOfInitLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -? - - 20/1/2005 - 13:0:10 - 20/1/2005 - 13:0:10 - 1.05 - ? - ? - Compute Node - 1082 - 150 - -? - ? - IsEven - 3 - ? - -IsEven - - -long - a - -string - Branch - - -long - a - -string - Branch - - - -IsEven - - - - - - 20/1/2005 - 13:0:10 - 20/1/2005 - 13:0:10 - 2.0 - ? - ? - Compute Node - 395 - 334 - -? - ? - Switch - 6 - EndOfSwitch - -Switch - - -long - a - - -long - Odd - -int - Even - -int - a - -string - Branch - -boolean - default - - - -Switch - - - - - - - - - - - - 20/1/2005 - 13:0:10 - 20/1/2005 - 13:0:10 - 2.0 - ? - ? - Compute Node - 195 - 129 - -? - ? - EndOfSwitch - 7 - Switch - -EndOfSwitch - - -long - a - - -long - a - - - -EndSwitch_1 - - 20/1/2005 - 13:0:10 - 20/1/2005 - 13:0:10 - 2.0 - ? - ? - Compute Node - 880 - 150 - -? - ? - Print - 3 - ? - -Print - - -long - a - -string - Branch - - -long - a - -string - Branch - - - -Print - - - - 20/1/2005 - 13:0:10 - 20/1/2005 - 13:0:10 - 2.0 - ? - ? - Compute Node - 639 - 63 - -? - ? - Print_1 - 3 - ? - -Print_1 - - -long - a - -string - Branch - - -long - a - -string - Branch - - - -Print_1 - - - - 20/1/2005 - 13:0:10 - 20/1/2005 - 13:0:10 - 2.0 - ? - ? - Compute Node - 639 - 263 - - -IsOdd - a - Print - a - - -IsOdd - Branch - Print - Branch - - -InitLoopSwitch - DoLoop - EndOfInitLoopSwitch - DoLoop - - -InitLoopSwitch - Index - Switch - a - - -InitLoopSwitch - Min - EndOfInitLoopSwitch - Min - - -InitLoopSwitch - Max - EndOfInitLoopSwitch - Max - - -EndOfInitLoopSwitch - DoLoop - InitLoopSwitch - DoLoop - - -IsEven - a - Print_1 - a - - -IsEven - Branch - Print_1 - Branch - - -Switch - Odd - IsOdd - Gate - - -Switch - Even - IsEven - Gate - - -Switch - a - IsOdd - a - - -Switch - a - IsEven - a - - -Switch - Branch - IsOdd - Branch - - -Switch - Branch - IsEven - Branch - - -Switch - Default - EndOfSwitch - Default - - -EndOfSwitch - a - EndOfInitLoopSwitch - Index - - -Print - a - EndOfSwitch - a - - -Print_1 - a - EndOfSwitch - a - - - -GraphSwitch_1_1_2 - InitLoopSwitch__Index - InitLoopSwitch - Index - -3 - 0 - - -GraphSwitch_1_1_2 - InitLoopSwitch__Min - InitLoopSwitch - Min - -3 - -5 - - -GraphSwitch_1_1_2 - InitLoopSwitch__Max - InitLoopSwitch - Max - -3 - 10 - diff --git a/Superv/Graphs/GraphSwitchOutputNOTValid.xml b/Superv/Graphs/GraphSwitchOutputNOTValid.xml deleted file mode 100644 index 1128637..0000000 --- a/Superv/Graphs/GraphSwitchOutputNOTValid.xml +++ /dev/null @@ -1,523 +0,0 @@ - - - - - - -? - ? - GraphSwitchOutputNOTValid - 1 - ? - -GraphSwitchOutputNOTValid - - -long - InitLoopSwitch__Index - -long - InitLoopSwitch__Min - -long - InitLoopSwitch__Max - - -long - EndOfInitLoopSwitch__Index - -long - EndOfInitLoopSwitch__Min - -long - EndOfInitLoopSwitch__Max - -boolean - Switch__default - -string - Print__Branch - -string - Print_1__Branch - - - 1/10/2003 - 17:23:54 - 8/3/2005 - 17:1:28 - 1.05 - JR - ? - ? - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - - -long - a - - - -IsOdd - - - - - - 8/3/2005 - 17:1:28 - 8/3/2005 - 17:1:28 - 1.05 - ? - ? - Python function - 388 - 50 - -? - ? - InitLoopSwitch - 4 - EndOfInitLoopSwitch - -InitLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -InitLoop - - - - -MoreLoop - - = Min : ]]> - - - - - -NextLoop - - - - 8/3/2005 - 17:1:28 - 8/3/2005 - 17:1:28 - 1.05 - ? - ? - Compute Node - 10 - 129 - -? - ? - EndOfInitLoopSwitch - 5 - InitLoopSwitch - -EndOfInitLoopSwitch - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -? - - 8/3/2005 - 17:1:28 - 8/3/2005 - 17:1:28 - 1.05 - ? - ? - Compute Node - 1082 - 150 - -? - ? - IsEven - 3 - ? - -IsEven - - -long - a - - -long - a - - - -IsEven - - - - - - 8/3/2005 - 17:1:28 - 8/3/2005 - 17:1:28 - 2.0 - ? - ? - Compute Node - 432 - 337 - -? - ? - Switch - 6 - EndOfSwitch - -Switch - - -long - a - - -long - Odd - -int - Even - -int - a - -string - Branch - -boolean - default - - - -Switch - - - - - - - - - - - - 8/3/2005 - 17:1:28 - 8/3/2005 - 17:1:28 - 2.0 - ? - ? - Compute Node - 195 - 129 - -? - ? - EndOfSwitch - 7 - Switch - -EndOfSwitch - - -long - a - - -long - a - - - -EndSwitch_1 - - 8/3/2005 - 17:1:28 - 8/3/2005 - 17:1:28 - 2.0 - ? - ? - Compute Node - 880 - 150 - -? - ? - Print - 3 - ? - -Print - - -long - a - -string - Branch - - -long - a - -string - Branch - - - -Print - - - - 8/3/2005 - 17:1:28 - 8/3/2005 - 17:1:28 - 2.0 - ? - ? - Compute Node - 639 - 50 - -? - ? - Print_1 - 3 - ? - -Print_1 - - -long - a - -string - Branch - - -long - a - -string - Branch - - - -Print_1 - - - - 8/3/2005 - 17:1:28 - 8/3/2005 - 17:1:28 - 2.0 - ? - ? - Compute Node - 645 - 250 - - -IsOdd - a - Print - a - - -InitLoopSwitch - DoLoop - EndOfInitLoopSwitch - DoLoop - - -InitLoopSwitch - Index - Switch - a - - -InitLoopSwitch - Min - EndOfInitLoopSwitch - Min - - -InitLoopSwitch - Max - EndOfInitLoopSwitch - Max - - -EndOfInitLoopSwitch - DoLoop - InitLoopSwitch - DoLoop - - -IsEven - a - Print_1 - a - - -Switch - Odd - IsOdd - Gate - - -Switch - Even - IsEven - Gate - - -Switch - a - IsOdd - a - - -Switch - a - IsEven - a - - -Switch - Branch - Print - Branch - - -Switch - Branch - Print_1 - Branch - - -Switch - Default - EndOfSwitch - Default - - -EndOfSwitch - a - EndOfInitLoopSwitch - Index - - -Print - a - EndOfSwitch - a - - -Print_1 - a - EndOfSwitch - a - - - -GraphSwitchOutputNOTValid - InitLoopSwitch__Index - InitLoopSwitch - Index - -3 - 0 - - -GraphSwitchOutputNOTValid - InitLoopSwitch__Min - InitLoopSwitch - Min - -3 - -5 - - -GraphSwitchOutputNOTValid - InitLoopSwitch__Max - InitLoopSwitch - Max - -3 - 10 - diff --git a/Superv/Graphs/GraphSwitchs.xml b/Superv/Graphs/GraphSwitchs.xml deleted file mode 100755 index 49ef653..0000000 --- a/Superv/Graphs/GraphSwitchs.xml +++ /dev/null @@ -1,862 +0,0 @@ - - - - - - - ? - ? - GraphSwitchs_1 - 1 - ? - - GraphSwitchs_1 - - - long - InitLoopSwitch__Index - - - long - InitLoopSwitch__Min - - - long - InitLoopSwitch__Max - - - long - InitLoop__Index - - - long - InitLoop__Min - - - long - InitLoop__Max - - - - - long - EndOfInitLoopSwitch__Index - - - long - EndOfInitLoopSwitch__Min - - - long - EndOfInitLoopSwitch__Max - - - int - Switch__Even - - - long - EndOfInitLoop__Index - - - long - EndOfInitLoop__Min - - - long - EndOfInitLoop__Max - - - - - - 14/10/2003 - 10:29:4 - 6/9/2005 - 11:18:10 - 1.05 - ? - ? - ? - 0 - 0 - - - - - ? - ? - IsOdd - 3 - ? - - IsOdd - - - long - a - - - - - long - a - - - - - - - IsOdd - - - - - - - - 6/9/2005 - 11:18:10 - 6/9/2005 - 11:18:10 - 1.05 - ? - ? - Python function - 388 - 50 - - - ? - ? - InitLoopSwitch - 4 - EndOfInitLoopSwitch - - InitLoopSwitch - - - long - Index - - - long - Min - - - long - Max - - - - - long - Index - - - long - Min - - - long - Max - - - - - - - InitLoop - - - - - MoreLoop - - - - - - - - - NextLoop - - - - - - 6/9/2005 - 11:18:10 - 6/9/2005 - 11:18:10 - 1.05 - ? - ? - Compute Node - 10 - 129 - - - ? - ? - EndOfInitLoopSwitch - 5 - InitLoopSwitch - - EndOfInitLoopSwitch - - - long - Index - - - long - Min - - - long - Max - - - - - long - Index - - - long - Min - - - long - Max - - - - - - - ? - - - - 6/9/2005 - 11:18:10 - 6/9/2005 - 11:18:10 - 1.05 - ? - ? - Compute Node - 766 - 127 - - - ? - ? - Switch - 6 - EndOfSwitch - - Switch - - - long - a - - - - - long - Odd - - - int - Even - - - int - a - - - - - - - Switch - - - - - - - - 6/9/2005 - 11:18:10 - 6/9/2005 - 11:18:10 - 1.05 - ? - ? - Compute Node - 186 - 130 - - - ? - ? - EndOfSwitch - 7 - Switch - - EndOfSwitch - - - long - a - - - - - long - a - - - - - - - ? - - - - 6/9/2005 - 11:18:10 - 6/9/2005 - 11:18:10 - 1.05 - ? - ? - Compute Node - 587 - 126 - - - ? - ? - IsOdd_1 - 3 - ? - - IsOdd_1 - - - long - a - - - - - long - a - - - - - - - IsOdd - - - - - - - - 6/9/2005 - 11:18:10 - 6/9/2005 - 11:18:10 - 1.05 - ? - ? - Python function - 419 - 308 - - - ? - ? - InitLoop - 4 - EndOfInitLoop - - InitLoop - - - long - Index - - - long - Min - - - long - Max - - - - - long - Index - - - long - Min - - - long - Max - - - - - - - InitLoop - - - - - MoreLoop - - - - - - - - - NextLoop - - - - - - 6/9/2005 - 11:18:10 - 6/9/2005 - 11:18:10 - 1.05 - ? - ? - Compute Node - 10 - 388 - - - ? - ? - EndOfInitLoop - 5 - InitLoop - - EndOfInitLoop - - - long - Index - - - long - Min - - - long - Max - - - - - long - Index - - - long - Min - - - long - Max - - - - - - - ? - - - - 6/9/2005 - 11:18:10 - 6/9/2005 - 11:18:10 - 1.05 - ? - ? - Compute Node - 783 - 381 - - - ? - ? - Switch_1 - 6 - EndSwitch - - Switch_1 - - - long - a - - - - - long - Odd - - - int - Even - - - int - a - - - - - - - Switch - - - - - - - - 6/9/2005 - 11:18:10 - 6/9/2005 - 11:18:10 - 1.05 - ? - ? - Compute Node - 193 - 388 - - - ? - ? - EndSwitch - 7 - Switch_1 - - EndSwitch - - - long - a - - - - - long - a - - - - - - - ? - - - - 6/9/2005 - 11:18:10 - 6/9/2005 - 11:18:10 - 1.05 - ? - ? - Compute Node - 605 - 382 - - - - - IsOdd - a - EndOfSwitch - a - - - 573 - 160 - - - 572 - 130 - - - - - InitLoopSwitch - DoLoop - EndOfInitLoopSwitch - DoLoop - - - - InitLoopSwitch - Index - Switch - a - - - - InitLoopSwitch - Min - EndOfInitLoopSwitch - Min - - - - InitLoopSwitch - Max - EndOfInitLoopSwitch - Max - - - - EndOfInitLoopSwitch - DoLoop - InitLoopSwitch - DoLoop - - - - Switch - Odd - IsOdd - Gate - - - - Switch - a - IsOdd - a - - - 365 - 129 - - - 365 - 222 - - - - - Switch - Default - EndOfSwitch - Default - - - 572 - 194 - - - 571 - 257 - - - - - EndOfSwitch - a - EndOfInitLoopSwitch - Index - - - - IsOdd_1 - a - EndSwitch - a - - - 599 - 416 - - - 598 - 389 - - - - - InitLoop - DoLoop - EndOfInitLoop - DoLoop - - - - InitLoop - Index - Switch_1 - a - - - - InitLoop - Min - EndOfInitLoop - Min - - - - InitLoop - Max - EndOfInitLoop - Max - - - - EndOfInitLoop - DoLoop - InitLoop - DoLoop - - - - Switch_1 - Odd - IsOdd_1 - Gate - - - - Switch_1 - Even - EndSwitch - Default - - - - Switch_1 - a - IsOdd_1 - a - - - 379 - 387 - - - 378 - 481 - - - - - EndSwitch - a - EndOfInitLoop - Index - - - - - - GraphSwitchs_1 - InitLoopSwitch__Index - InitLoopSwitch - Index - - 3 - 0 - - - - - GraphSwitchs_1 - InitLoopSwitch__Min - InitLoopSwitch - Min - - 3 - 0 - - - - - GraphSwitchs_1 - InitLoopSwitch__Max - InitLoopSwitch - Max - - 3 - 20 - - - - - GraphSwitchs_1 - InitLoop__Index - InitLoop - Index - - 3 - 0 - - - - - GraphSwitchs_1 - InitLoop__Min - InitLoop - Min - - 3 - 0 - - - - - GraphSwitchs_1 - InitLoop__Max - InitLoop - Max - - 3 - 20 - - - - - - - diff --git a/Superv/Graphs/GraphSyrControl.xml b/Superv/Graphs/GraphSyrControl.xml deleted file mode 100644 index 5ade441..0000000 --- a/Superv/Graphs/GraphSyrControl.xml +++ /dev/null @@ -1,719 +0,0 @@ - - - - - - -? - ? - GraphSyrControl - 1 - ? - -GraphSyrControl - - -long - label_begin__NB - -long - label_begin__KB - - -long - test__Incr - -long - EndSwitch_OneEven__Finished - -long - EndSwitch_OneEven__K - - - 11/3/2003 - 18:34:21 - 6/7/2005 - 10:21:5 - 1.04 - JR - ? - Syracuse algorithm - 0 - 0 - - -SyrComponent - SyrComponent - test_ISEVEN - 0 - ? - -C_ISEVEN - - -long - anInteger - - -long - BoolEven - - - 6/7/2005 - 10:21:5 - 6/7/2005 - 10:21:5 - 1.04 - ? - localhost/FactoryServer - C_ISEVEN from SyrComponent - 190 - 338 - -SyrComponent - SyrComponent - test_ISONE - 0 - ? - -C_ISONE - - -long - anInteger - - -long - BoolOne - - - 6/7/2005 - 10:21:5 - 6/7/2005 - 10:21:5 - 1.04 - ? - localhost/FactoryServer - C_ISONE from SyrComponent - 196 - 131 - -SyrComponent - SyrComponent - m3p1 - 0 - ? - -C_M3P1 - - -long - anOddInteger - - -long - anEvenInteger - - - 6/7/2005 - 10:21:5 - 6/7/2005 - 10:21:5 - 1.04 - ? - localhost/FactoryServer - C_M3P1 from SyrComponent - 788 - 22 - -SyrComponent - SyrComponent - div2 - 0 - ? - -C_DIV2 - - -long - anEvenInteger - - -long - anInteger - - - 6/7/2005 - 10:21:5 - 6/7/2005 - 10:21:5 - 1.04 - ? - localhost/FactoryServer - C_DIV2 from SyrComponent - 794 - 427 - -SyrComponent - SyrComponent - incr - 0 - ? - -C_INCR - - -long - aCount - - -long - aNewCount - - - 6/7/2005 - 10:21:5 - 6/7/2005 - 10:21:5 - 1.04 - ? - localhost/FactoryServer - C_INCR from SyrComponent - 790 - 158 - -? - ? - label_begin - 3 - ? - -label_begin - - -long - NB - -long - KB - - -long - NT - -long - KT - - - -label_begin - - - - 6/7/2005 - 10:21:5 - 6/7/2005 - 10:21:5 - 1.04 - ? - ? - Python function - 7 - 216 - -? - ? - label_test - 3 - ? - -label_test - - -long - ValEven - -long - ValOne - -long - NT - -long - KT - - -long - ValEven - -long - ValOne - -long - NT - -long - KT - - - -label_test - - - - 6/7/2005 - 10:21:5 - 6/7/2005 - 10:21:5 - 1.04 - ? - ? - Python function - 385 - 159 - -? - ? - test - 6 - EndSwitch_OneEven - -test - - -long - ValOne - -long - ValEven - -long - NT - -long - KT - - -long - Finished - -long - Incr - -long - Even - -long - Odd - -long - N - -long - K - - - -Switch_OneEven - - - - - - - - - - - - - - - - 6/7/2005 - 10:21:5 - 6/7/2005 - 10:21:5 - 1.04 - ? - ? - Compute Node - 592 - 205 - -? - ? - EndSwitch_OneEven - 7 - test - -EndSwitch_OneEven - - -long - Finished - -long - K - - -long - Finished - -long - K - - - -EndSwitch_OneEven - - - - 6/7/2005 - 10:21:5 - 6/7/2005 - 10:21:5 - 1.04 - ? - ? - Compute Node - 1065 - 321 - -? - ? - control_m3p1 - 8 - label_test - -control_m3p1 - - -long - N - -long - K - - -long - ValOne - -long - ValEven - -long - NT - -long - KT - - - -control_m3p1 - - - - - 6/7/2005 - 10:21:5 - 6/7/2005 - 10:21:5 - 1.04 - ? - ? - Compute Node - 1012 - 68 - -? - ? - control_div2 - 8 - label_begin - -control_div2 - - -long - N - -long - K - - -long - NB - -long - KB - - - -control_div2 - - - - - 6/7/2005 - 10:21:5 - 6/7/2005 - 10:21:5 - 1.04 - ? - ? - Compute Node - 1010 - 473 - - -test_ISEVEN - BoolEven - label_test - ValEven - - -380 - 236 - -379 - 419 - -test_ISONE - BoolOne - label_test - ValOne - - -367 - 269 - -367 - 213 - -m3p1 - anEvenInteger - control_m3p1 - N - - -div2 - anInteger - control_div2 - N - - -incr - aNewCount - control_m3p1 - K - - -978 - 132 - -978 - 239 - -incr - aNewCount - control_div2 - K - - -979 - 536 - -978 - 240 - -label_begin - NT - label_test - NT - - -label_begin - NT - test_ISEVEN - anInteger - - -184 - 416 - -185 - 298 - -label_begin - NT - test_ISONE - anInteger - - -186 - 211 - -185 - 297 - -label_begin - KT - label_test - KT - - -label_test - ValEven - test - ValEven - - -label_test - ValOne - test - ValOne - - -label_test - NT - test - NT - - -label_test - KT - test - KT - - -test - Finished - EndSwitch_OneEven - Finished - - -test - Even - div2 - Gate - - -764 - 536 - -763 - 297 - -test - Odd - m3p1 - Gate - - -773 - 133 - -773 - 326 - -test - N - m3p1 - anOddInteger - - -753 - 102 - -752 - 355 - -test - N - div2 - anEvenInteger - - -753 - 508 - -752 - 356 - -test - K - EndSwitch_OneEven - K - - -test - K - incr - aCount - - -779 - 239 - -780 - 385 - -test - Default - EndSwitch_OneEven - Default - - -control_m3p1 - Gate - label_test - Gate - - -373 - 354 - -372 - 10 - -1180 - 9 - -1181 - 217 - -control_div2 - Gate - label_begin - Gate - - -5 - 355 - -4 - 608 - -1177 - 608 - -1177 - 563 - - -GraphSyrControl - label_begin__NB - label_begin - NB - -3 - 7 - - -GraphSyrControl - label_begin__KB - label_begin - KB - -3 - 0 - diff --git a/Superv/Graphs/GraphSyrControl1.xml b/Superv/Graphs/GraphSyrControl1.xml deleted file mode 100755 index 48cd565..0000000 --- a/Superv/Graphs/GraphSyrControl1.xml +++ /dev/null @@ -1,630 +0,0 @@ - - - - - - -? - ? - GraphSyrControl1 - 1 - ? - -GraphSyrControlGUI - - -long - label_begin__NB - -long - label_begin__KB - - -long - label_test__Finished - -long - label_test__Incr - - - 11/3/2003 - 18:28:48 - 6/7/2005 - 10:7:41 - 1.04 - JR - ? - Syracuse algorithm - 0 - 0 - - -SyrComponent - SyrComponent - test_ISEVEN - 0 - ? - -C_ISEVEN - - -long - anInteger - - -long - BoolEven - - - 6/7/2005 - 10:7:41 - 6/7/2005 - 10:7:41 - 1.04 - ? - localhost/FactoryServer - C_ISEVEN from SyrComponent - 190 - 338 - -SyrComponent - SyrComponent - test_ISONE - 0 - ? - -C_ISONE - - -long - anInteger - - -long - BoolOne - - - 6/7/2005 - 10:7:41 - 6/7/2005 - 10:7:41 - 1.04 - ? - localhost/FactoryServer - C_ISONE from SyrComponent - 196 - 131 - -SyrComponent - SyrComponent - m3p1 - 0 - ? - -C_M3P1 - - -long - anOddInteger - - -long - anEvenInteger - - - 6/7/2005 - 10:7:41 - 6/7/2005 - 10:7:41 - 1.04 - ? - localhost/FactoryServer - C_M3P1 from SyrComponent - 615 - 30 - -SyrComponent - SyrComponent - div2 - 0 - ? - -C_DIV2 - - -long - anEvenInteger - - -long - anInteger - - - 6/7/2005 - 10:7:41 - 6/7/2005 - 10:7:41 - 1.04 - ? - localhost/FactoryServer - C_DIV2 from SyrComponent - 624 - 391 - -SyrComponent - SyrComponent - incr - 0 - ? - -C_INCR - - -long - aCount - - -long - aNewCount - - - 6/7/2005 - 10:7:41 - 6/7/2005 - 10:7:41 - 1.04 - ? - localhost/FactoryServer - C_INCR from SyrComponent - 623 - 206 - -? - ? - label_begin - 3 - ? - -label_begin - - -long - NB - -long - KB - - -long - NT - -long - KT - - - -label_begin - - - 6/7/2005 - 10:7:41 - 6/7/2005 - 10:7:41 - 1.04 - ? - ? - Python function - 5 - 190 - -? - ? - label_test - 6 - EndL_OneEven - -label_test - - -long - ValOne - -long - ValEven - -long - NT - -long - KT - - -long - Finished - -long - Incr - -long - Even - -long - Odd - -long - N - -long - K - - - -L_OneEven - - - - - - - - - - - - - - - - 6/7/2005 - 10:7:41 - 6/7/2005 - 10:7:41 - 1.04 - ? - ? - Compute Node - 399 - 177 - -? - ? - EndL_OneEven - 7 - label_test - -EndL_OneEven - - - - - -? - - 6/7/2005 - 10:7:41 - 6/7/2005 - 10:7:41 - 1.04 - ? - ? - Compute Node - 1017 - 247 - -? - ? - control_m3p1 - 8 - label_test - -control_m3p1 - - -long - N - -long - K - - -long - ValOne - -long - ValEven - -long - NT - -long - KT - - - -C_NotOneIsEven - - - 6/7/2005 - 10:7:41 - 6/7/2005 - 10:7:41 - 1.04 - ? - ? - Compute Node - 821 - 28 - -? - ? - control_div2 - 8 - label_begin - -control_div2 - - -long - N - -long - K - - -long - NB - -long - KB - - - -control_div2 - - - 6/7/2005 - 10:7:41 - 6/7/2005 - 10:7:41 - 1.04 - ? - ? - Compute Node - 818 - 358 - - -test_ISEVEN - BoolEven - label_test - ValEven - - -383 - 239 - -382 - 417 - -test_ISONE - BoolOne - label_test - ValOne - - -m3p1 - anEvenInteger - control_m3p1 - N - - -793 - 62 - -792 - 111 - -div2 - anInteger - control_div2 - N - - -797 - 392 - -798 - 471 - -incr - aNewCount - control_div2 - K - - -809 - 420 - -808 - 288 - -incr - aNewCount - control_m3p1 - K - - -807 - 91 - -808 - 286 - -label_begin - NT - test_ISONE - anInteger - - -180 - 211 - -179 - 269 - -label_begin - NT - label_test - NT - - -label_begin - NT - test_ISEVEN - anInteger - - -179 - 417 - -179 - 271 - -label_begin - KT - label_test - KT - - -label_test - Even - div2 - Gate - - -583 - 500 - -582 - 269 - -label_test - Odd - m3p1 - Gate - - -571 - 138 - -573 - 298 - -label_test - N - m3p1 - anOddInteger - - -604 - 110 - -605 - 328 - -label_test - N - div2 - anEvenInteger - - -606 - 471 - -605 - 328 - -label_test - K - incr - aCount - - -594 - 287 - -595 - 356 - -label_test - Default - EndL_OneEven - Default - - -1008 - 281 - -1008 - 560 - -565 - 559 - -564 - 385 - -control_m3p1 - Gate - label_test - Gate - - -368 - 327 - -369 - 7 - -1009 - 8 - -1009 - 179 - -control_div2 - Gate - label_begin - Gate - - -3 - 327 - -2 - 582 - -991 - 583 - -991 - 451 - - -GraphSyrControl1 - label_begin__NB - label_begin - NB - -3 - 7 - - -GraphSyrControl1 - label_begin__KB - label_begin - KB - -3 - 0 - diff --git a/Superv/Graphs/GraphSyrControlAborted.xml b/Superv/Graphs/GraphSyrControlAborted.xml deleted file mode 100644 index a9bc639..0000000 --- a/Superv/Graphs/GraphSyrControlAborted.xml +++ /dev/null @@ -1,706 +0,0 @@ - - - - - - -? - ? - GraphSyrControlAborted - 1 - ? - -GraphSyrControl - - -long - label_begin__NB - -long - label_begin__KB - - -long - test__Incr - -long - EndSwitch_OneEven__Finished - -long - EndSwitch_OneEven__K - - - 11/3/2003 - 18:34:21 - 15/2/2005 - 11:29:21 - 1.04 - JR - ? - Syracuse algorithm - 0 - 0 - - -SyrComponent - SyrComponent - test_ISEVEN - 0 - ? - -C_ISEVEN - - -long - anInteger - - -long - BoolEven - - - 15/2/2005 - 11:4:0 - 15/2/2005 - 11:4:0 - 1.04 - ? - localhost/FactoryServer - C_ISEVEN from SyrComponent - 190 - 338 - -SyrComponent - SyrComponent - test_ISONE - 0 - ? - -C_ISONE - - -long - anInteger - - -long - BoolOne - - - 15/2/2005 - 11:4:1 - 15/2/2005 - 11:4:1 - 1.04 - ? - localhost/FactoryServer - C_ISONE from SyrComponent - 196 - 131 - -SyrComponent - SyrComponent - m3p1 - 0 - ? - -C_M3P1 - - -long - anOddInteger - - -long - anEvenInteger - - - 15/2/2005 - 11:4:1 - 15/2/2005 - 11:4:1 - 1.04 - ? - localhost/FactoryServer - C_M3P1 from SyrComponent - 788 - 22 - -SyrComponent - SyrComponent - div2 - 0 - ? - -C_DIV2 - - -long - anEvenInteger - - -long - anInteger - - - 15/2/2005 - 11:4:1 - 15/2/2005 - 11:4:1 - 1.04 - ? - localhost/FactoryServer - C_DIV2 from SyrComponent - 794 - 427 - -SyrComponent - SyrComponent - incr - 0 - ? - -C_INCR - - -long - aCount - - -long - aNewCount - - - 15/2/2005 - 11:4:1 - 15/2/2005 - 11:4:1 - 1.04 - ? - localhost/FactoryServer - C_INCR from SyrComponent - 790 - 158 - -? - ? - label_begin - 3 - ? - -label_begin - - -long - NB - -long - KB - - -long - NT - -long - KT - - - -label_begin - - - - 15/2/2005 - 11:4:1 - 15/2/2005 - 11:4:1 - 1.04 - ? - ? - Python function - 8 - 205 - -? - ? - label_test - 3 - ? - -label_test - - -long - ValEven - -long - ValOne - -long - NT - -long - KT - - -long - ValEven - -long - ValOne - -long - NT - -long - KT - - - -label_test - - - - 15/2/2005 - 11:4:1 - 15/2/2005 - 11:4:1 - 1.04 - ? - ? - Python function - 397 - 165 - -? - ? - test - 6 - EndSwitch_OneEven - -test - - -long - ValOne - -long - ValEven - -long - NT - -long - KT - - -long - Finished - -long - Incr - -long - Even - -long - Odd - -long - N - -long - K - - - -Switch_OneEven - - - - - - - - - - - - - - - - 15/2/2005 - 11:4:1 - 15/2/2005 - 11:4:1 - 1.04 - ? - ? - Compute Node - 575 - 205 - -? - ? - EndSwitch_OneEven - 7 - test - -EndSwitch_OneEven - - -long - Finished - -long - K - - -long - Finished - -long - K - - - -EndSwitch_OneEven - - - - 15/2/2005 - 11:4:1 - 15/2/2005 - 11:4:1 - 1.04 - ? - ? - Compute Node - 1065 - 356 - -? - ? - control_m3p1 - 8 - label_test - -control_m3p1 - - -long - N - -long - K - - -long - ValOne - -long - ValEven - -long - NT - -long - KT - - - -control_m3p1 - - - 15/2/2005 - 11:4:1 - 15/2/2005 - 11:4:1 - 1.04 - ? - ? - Compute Node - 1013 - 63 - -? - ? - control_div2 - 8 - label_begin - -control_div2 - - -long - N - -long - K - - -long - NB - -long - KB - - - -control_div2 - - - 15/2/2005 - 11:4:1 - 15/2/2005 - 11:4:1 - 1.04 - ? - ? - Compute Node - 1010 - 473 - - -test_ISEVEN - BoolEven - label_test - ValEven - - -381 - 234 - -381 - 410 - -test_ISONE - BoolOne - label_test - ValOne - - -367 - 256 - -367 - 201 - -m3p1 - anEvenInteger - control_m3p1 - N - - -div2 - anInteger - control_div2 - N - - -incr - aNewCount - control_m3p1 - K - - -978 - 114 - -978 - 230 - -incr - aNewCount - control_div2 - K - - -981 - 524 - -978 - 229 - -label_begin - NT - label_test - NT - - -label_begin - NT - test_ISEVEN - anInteger - - -179 - 408 - -179 - 276 - -label_begin - NT - test_ISONE - anInteger - - -179 - 203 - -180 - 275 - -label_begin - KT - label_test - KT - - -label_test - ValEven - test - ValEven - - -label_test - ValOne - test - ValOne - - -label_test - NT - test - NT - - -label_test - KT - test - KT - - -test - Finished - EndSwitch_OneEven - Finished - - -test - Even - div2 - Gate - - -763 - 522 - -763 - 278 - -test - Odd - m3p1 - Gate - - -772 - 117 - -772 - 297 - -test - N - m3p1 - anOddInteger - - -751 - 93 - -752 - 317 - -test - N - div2 - anEvenInteger - - -751 - 498 - -752 - 318 - -test - K - EndSwitch_OneEven - K - - -test - K - incr - aCount - - -779 - 229 - -779 - 336 - -control_m3p1 - Gate - label_test - Gate - - -374 - 321 - -374 - 15 - -1180 - 9 - -1181 - 217 - -control_div2 - Gate - label_begin - Gate - - -4 - 608 - -1184 - 604 - -1184 - 548 - - -GraphSyrControlAborted - label_begin__NB - label_begin - NB - -3 - 7 - - -GraphSyrControlAborted - label_begin__KB - label_begin - KB - -3 - 0 - diff --git a/Superv/Graphs/GraphSyrControlAve.xml b/Superv/Graphs/GraphSyrControlAve.xml deleted file mode 100644 index a41ab30..0000000 --- a/Superv/Graphs/GraphSyrControlAve.xml +++ /dev/null @@ -1,1121 +0,0 @@ - - - - - - -? - ? - GraphSyrControlAve - 1 - ? - -GraphSyrControlAveNOTExecutable_1 - - -long - label_begin__NB - -long - label_begin__KB - -long - label_begin__MINB - -long - label_begin__MAXB - -double - label_begin__AVERAGEB - -long - EndL_OneEven__MINT - -long - EndL_OneEven__MAXT - -double - EndL_OneEven__AVERAGET - - -long - label_test__Finished - -long - label_test__Incr - -double - label_test__AVERAGET - -long - EndL_OneEven__MIN - -long - EndL_OneEven__MAX - -double - EndL_OneEven__AVERAGE - - - 2/10/2003 - 11:17:14 - 22/6/2005 - 11:35:16 - 1.05 - JR - ? - Syracuse algorithm - 0 - 0 - - -SyrComponent - SyrComponent - test_ISEVEN - 0 - ? - -C_ISEVEN - - -long - anInteger - - -long - BoolEven - - - 22/6/2005 - 11:35:16 - 22/6/2005 - 11:35:16 - 1.05 - ? - localhost/FactoryServer - C_ISEVEN from SyrComponent - 370 - 455 - -SyrComponent - SyrComponent - test_ISONE - 0 - ? - -C_ISONE - - -long - anInteger - - -long - BoolOne - - - 22/6/2005 - 11:35:16 - 22/6/2005 - 11:35:16 - 1.05 - ? - localhost/FactoryServer - C_ISONE from SyrComponent - 370 - 127 - -SyrComponent - SyrComponent - m3p1 - 0 - ? - -C_M3P1 - - -long - anOddInteger - - -long - anEvenInteger - - - 22/6/2005 - 11:35:16 - 22/6/2005 - 11:35:16 - 1.05 - ? - localhost/FactoryServer - C_M3P1 from SyrComponent - 789 - 0 - -SyrComponent - SyrComponent - div2 - 0 - ? - -C_DIV2 - - -long - anEvenInteger - - -long - anInteger - - - 22/6/2005 - 11:35:16 - 22/6/2005 - 11:35:16 - 1.05 - ? - localhost/FactoryServer - C_DIV2 from SyrComponent - 789 - 255 - -SyrComponent - SyrComponent - incr - 0 - ? - -C_INCR - - -long - aCount - - -long - aNewCount - - - 22/6/2005 - 11:35:16 - 22/6/2005 - 11:35:16 - 1.05 - ? - localhost/FactoryServer - C_INCR from SyrComponent - 790 - 136 - -SyrComponent - SyrComponent - C_MIN - 0 - ? - -C_MIN - - -long - aMinVal - -long - anInteger - - -long - aNewMinVal - - - 22/6/2005 - 11:35:16 - 22/6/2005 - 11:35:16 - 1.05 - ? - localhost/FactoryServer - C_MIN from SyrComponent - 798 - 833 - -SyrComponent - SyrComponent - C_MAX - 0 - ? - -C_MAX - - -long - aMaxVal - -long - anInteger - - -long - aNewMaxVal - - - 22/6/2005 - 11:35:16 - 22/6/2005 - 11:35:16 - 1.05 - ? - localhost/FactoryServer - C_MAX from SyrComponent - 798 - 668 - -SyrComponent - SyrComponent - C_AVERAGE - 0 - ? - -C_AVERAGE - - -ListOfSyr - aListOfSyr - -long - anInteger - -long - aCount - - -ListOfSyr - aNewListOfSyr - -double - anAverage - - - 22/6/2005 - 11:35:16 - 22/6/2005 - 11:35:16 - 1.05 - ? - localhost/FactoryServer - C_AVERAGE from SyrComponent - 784 - 476 - -SyrComponent - SyrComponent - C_LISTOFSYR - 0 - ? - -C_LISTOFSYR - - - -ListOfSyr - aListOfSyr - - - 22/6/2005 - 11:35:16 - 22/6/2005 - 11:35:16 - 1.05 - ? - localhost/FactoryServer - C_LISTOFSYR from SyrComponent - 5 - 321 - -? - ? - label_begin - 3 - ? - -label_begin - - -long - NB - -long - KB - -long - MINB - -long - MAXB - -double - AVERAGEB - -ListOfSyr - SYRLISTB - - -long - NT - -long - KT - -long - MIN - -long - MAX - -double - AVERAGE - -ListOfSyr - SYRLIST - - - -label_begin - - - 22/6/2005 - 11:35:16 - 22/6/2005 - 11:35:16 - 1.05 - ? - ? - Python function - 183 - 220 - -? - ? - label_test - 6 - EndL_OneEven - -label_test - - -long - ValOne - -long - ValEven - -long - NT - -long - KT - -long - MIN - -long - MAX - -double - AVERAGE - -ListOfSyr - SYRLIST - - -long - Finished - -long - Incr - -long - Even - -long - Odd - -long - N - -long - K - -long - MINT - -long - MAXT - -double - AVERAGET - -ListOfSyr - SYRLISTT - - - -L_OneEven - - - - - - - - - - - - - - - - 22/6/2005 - 11:35:16 - 22/6/2005 - 11:35:16 - 1.05 - ? - ? - Compute Node - 564 - 219 - -? - ? - EndL_OneEven - 7 - label_test - -EndL_OneEven - - -long - MINT - -long - MAXT - -double - AVERAGET - - -long - MIN - -long - MAX - -double - AVERAGE - - - -? - - 22/6/2005 - 11:35:16 - 22/6/2005 - 11:35:16 - 1.05 - ? - ? - Compute Node - 1064 - 339 - -? - ? - control_m3p1 - 8 - label_test - -control_m3p1 - - -long - N - -long - K - -long - MINT - -long - MAXT - -double - AVERAGET - -ListOfSyr - SYRLISTT - - -long - ValOne - -long - ValEven - -long - NT - -long - KT - -long - MIN - -long - MAX - -double - AVERAGE - -ListOfSyr - SYRLIST - - - -C_NotOneIsEven - - - 22/6/2005 - 11:35:16 - 22/6/2005 - 11:35:16 - 1.05 - ? - ? - Compute Node - 1058 - 8 - -? - ? - control_div2 - 8 - label_begin - -control_div2 - - -long - N - -long - K - -long - MINT - -long - MAXT - -double - AVERAGET - -ListOfSyr - SYRLISTT - - -long - NB - -long - KB - -long - MINB - -long - MAXB - -double - AVERAGEB - -ListOfSyr - SYRLISTB - - - -control_div2 - - - 22/6/2005 - 11:35:16 - 22/6/2005 - 11:35:16 - 1.05 - ? - ? - Compute Node - 1048 - 555 - - -test_ISEVEN - BoolEven - label_test - ValEven - - -544 - 256 - -544 - 524 - -test_ISONE - BoolOne - label_test - ValOne - - -546 - 237 - -546 - 198 - -m3p1 - anEvenInteger - control_m3p1 - N - - -975 - 38 - -976 - 81 - -div2 - anInteger - control_div2 - N - - -1012 - 585 - -1011 - 346 - -incr - aNewCount - control_div2 - K - - -966 - 606 - -968 - 207 - -incr - aNewCount - control_m3p1 - K - - -965 - 59 - -966 - 208 - -incr - aNewCount - C_AVERAGE - aCount - - -751 - 588 - -751 - 460 - -965 - 462 - -968 - 205 - -C_MIN - aNewMinVal - control_m3p1 - MINT - - -991 - 78 - -991 - 905 - -C_MIN - aNewMinVal - control_div2 - MINT - - -991 - 626 - -991 - 905 - -C_MAX - aNewMaxVal - control_m3p1 - MAXT - - -976 - 98 - -974 - 738 - -C_MAX - aNewMaxVal - control_div2 - MAXT - - -972 - 648 - -974 - 738 - -C_AVERAGE - aNewListOfSyr - control_m3p1 - SYRLISTT - - -1037 - 137 - -1038 - 556 - -C_AVERAGE - aNewListOfSyr - control_div2 - SYRLISTT - - -1038 - 686 - -1038 - 555 - -C_AVERAGE - anAverage - control_m3p1 - AVERAGET - - -1026 - 118 - -1027 - 567 - -C_AVERAGE - anAverage - control_div2 - AVERAGET - - -1027 - 668 - -1026 - 568 - -C_LISTOFSYR - aListOfSyr - label_begin - SYRLISTB - - -label_begin - NT - test_ISONE - anInteger - - -361 - 197 - -360 - 290 - -label_begin - NT - label_test - NT - - -label_begin - NT - test_ISEVEN - anInteger - - -359 - 525 - -361 - 291 - -label_begin - KT - label_test - KT - - -label_begin - MIN - label_test - MIN - - -label_begin - MAX - label_test - MAX - - -label_begin - AVERAGE - label_test - AVERAGE - - -label_begin - SYRLIST - label_test - SYRLIST - - -label_test - Even - div2 - Gate - - -777 - 351 - -777 - 286 - -label_test - Odd - m3p1 - Gate - - -757 - 95 - -757 - 310 - -label_test - N - m3p1 - anOddInteger - - -741 - 72 - -741 - 331 - -label_test - N - div2 - anEvenInteger - - -label_test - N - C_MIN - anInteger - - -744 - 923 - -742 - 331 - -label_test - N - C_MAX - anInteger - - -742 - 759 - -743 - 332 - -label_test - N - C_AVERAGE - anInteger - - -741 - 568 - -742 - 330 - -label_test - K - incr - aCount - - -766 - 207 - -766 - 343 - -label_test - MINT - C_MIN - aMinVal - - -760 - 904 - -756 - 372 - -label_test - MAXT - C_MAX - aMaxVal - - -765 - 742 - -766 - 384 - -label_test - SYRLISTT - C_AVERAGE - aListOfSyr - - -773 - 546 - -772 - 424 - -label_test - Default - EndL_OneEven - Default - - -control_m3p1 - Gate - label_test - Gate - - -553 - 453 - -554 - 1025 - -1242 - 1026 - -1234 - 204 - -control_div2 - Gate - label_begin - Gate - - -176 - 419 - -176 - 997 - -1217 - 996 - -1223 - 711 - - -GraphSyrControlAve - label_begin__NB - label_begin - NB - -3 - 31 - - -GraphSyrControlAve - label_begin__KB - label_begin - KB - -3 - 0 - - -GraphSyrControlAve - label_begin__MINB - label_begin - MINB - -3 - 0 - - -GraphSyrControlAve - label_begin__MAXB - label_begin - MAXB - -3 - 0 - - -GraphSyrControlAve - label_begin__AVERAGEB - label_begin - AVERAGEB - -7 - 0 - diff --git a/Superv/Graphs/GraphSyrControlAveAborted.xml b/Superv/Graphs/GraphSyrControlAveAborted.xml deleted file mode 100644 index 4769612..0000000 --- a/Superv/Graphs/GraphSyrControlAveAborted.xml +++ /dev/null @@ -1,1130 +0,0 @@ - - - - - - -? - ? - GraphSyrControlAveAborted - 1 - ? - -GraphSyrControlAveNOTValid1 - - -long - label_begin__NB - -long - label_begin__KB - -long - label_begin__MINB - -long - label_begin__MAXB - -double - label_begin__AVERAGEB - - -long - label_test__Finished - -long - label_test__Incr - -long - EndL_OneEven__MIN - -long - EndL_OneEven__MAX - -double - EndL_OneEven__AVERAGE - - - 2/10/2003 - 11:17:14 - 6/7/2005 - 10:32:56 - 1.05 - JR - ? - Syracuse algorithm - 0 - 0 - - -SyrComponent - SyrComponent - test_ISEVEN - 0 - ? - -C_ISEVEN - - -long - anInteger - - -long - BoolEven - - - 6/7/2005 - 10:32:56 - 6/7/2005 - 10:32:56 - 1.05 - ? - localhost/FactoryServer - C_ISEVEN from SyrComponent - 370 - 455 - -SyrComponent - SyrComponent - test_ISONE - 0 - ? - -C_ISONE - - -long - anInteger - - -long - BoolOne - - - 6/7/2005 - 10:32:56 - 6/7/2005 - 10:32:56 - 1.05 - ? - localhost/FactoryServer - C_ISONE from SyrComponent - 370 - 127 - -SyrComponent - SyrComponent - m3p1 - 0 - ? - -C_M3P1 - - -long - anOddInteger - - -long - anEvenInteger - - - 6/7/2005 - 10:32:56 - 6/7/2005 - 10:32:56 - 1.05 - ? - localhost/FactoryServer - C_M3P1 from SyrComponent - 789 - 0 - -SyrComponent - SyrComponent - div2 - 0 - ? - -C_DIV2 - - -long - anEvenInteger - - -long - anInteger - - - 6/7/2005 - 10:32:56 - 6/7/2005 - 10:32:56 - 1.05 - ? - localhost/FactoryServer - C_DIV2 from SyrComponent - 789 - 255 - -SyrComponent - SyrComponent - incr - 0 - ? - -C_INCR - - -long - aCount - - -long - aNewCount - - - 6/7/2005 - 10:32:56 - 6/7/2005 - 10:32:56 - 1.05 - ? - localhost/FactoryServer - C_INCR from SyrComponent - 790 - 136 - -SyrComponent - SyrComponent - C_MIN - 0 - ? - -C_MIN - - -long - aMinVal - -long - anInteger - - -long - aNewMinVal - - - 6/7/2005 - 10:32:56 - 6/7/2005 - 10:32:56 - 1.05 - ? - localhost/FactoryServer - C_MIN from SyrComponent - 798 - 833 - -SyrComponent - SyrComponent - C_MAX - 0 - ? - -C_MAX - - -long - aMaxVal - -long - anInteger - - -long - aNewMaxVal - - - 6/7/2005 - 10:32:56 - 6/7/2005 - 10:32:56 - 1.05 - ? - localhost/FactoryServer - C_MAX from SyrComponent - 798 - 668 - -SyrComponent - SyrComponent - C_AVERAGE - 0 - ? - -C_AVERAGE - - -ListOfSyr - aListOfSyr - -long - anInteger - -long - aCount - - -ListOfSyr - aNewListOfSyr - -double - anAverage - - - 6/7/2005 - 10:32:56 - 6/7/2005 - 10:32:56 - 1.05 - ? - localhost/FactoryServer - C_AVERAGE from SyrComponent - 784 - 476 - -SyrComponent - SyrComponent - C_LISTOFSYR - 0 - ? - -C_LISTOFSYR - - - -ListOfSyr - aListOfSyr - - - 6/7/2005 - 10:32:56 - 6/7/2005 - 10:32:56 - 1.05 - ? - localhost/FactoryServer - C_LISTOFSYR from SyrComponent - 5 - 321 - -? - ? - label_begin - 3 - ? - -label_begin - - -long - NB - -long - KB - -long - MINB - -long - MAXB - -double - AVERAGEB - -ListOfSyr - SYRLISTB - - -long - NT - -long - KT - -long - MIN - -long - MAX - -double - AVERAGE - -ListOfSyr - SYRLIST - - - -label_begin - - - 6/7/2005 - 10:32:56 - 6/7/2005 - 10:32:56 - 1.05 - ? - ? - Python function - 183 - 220 - -? - ? - label_test - 6 - EndL_OneEven - -label_test - - -long - ValOne - -long - ValEven - -long - NT - -long - KT - -long - MIN - -long - MAX - -double - AVERAGE - -ListOfSyr - SYRLIST - - -long - Finished - -long - Incr - -long - Even - -long - Odd - -long - N - -long - K - -long - MIN - -long - MAX - -double - AVERAGE - -ListOfSyr - SYRLIST - - - -L_OneEven - - - - - - - - - - - - - - - - 6/7/2005 - 10:32:56 - 6/7/2005 - 10:32:56 - 1.05 - ? - ? - Compute Node - 564 - 219 - -? - ? - EndL_OneEven - 7 - label_test - -EndL_OneEven - - -long - MINT - -long - MAXT - -double - AVERAGET - - -long - MIN - -long - MAX - -double - AVERAGE - - - -? - - 6/7/2005 - 10:32:56 - 6/7/2005 - 10:32:56 - 1.05 - ? - ? - Compute Node - 1064 - 339 - -? - ? - control_m3p1 - 8 - label_test - -control_m3p1 - - -long - N - -long - K - -long - MINT - -long - MAXT - -double - AVERAGET - -ListOfSyr - SYRLISTT - - -long - ValOne - -long - ValEven - -long - NT - -long - KT - -long - MIN - -long - MAX - -double - AVERAGE - -ListOfSyr - SYRLIST - - - -C_NotOneIsEven - - - 6/7/2005 - 10:32:56 - 6/7/2005 - 10:32:56 - 1.05 - ? - ? - Compute Node - 1058 - 8 - -? - ? - control_div2 - 8 - label_begin - -control_div2 - - -long - N - -long - K - -long - MINT - -long - MAXT - -double - AVERAGET - -ListOfSyr - SYRLISTT - - -long - NB - -long - KB - -long - MINB - -long - MAXB - -double - AVERAGEB - -ListOfSyr - SYRLISTB - - - -control_div2 - - - 6/7/2005 - 10:32:56 - 6/7/2005 - 10:32:56 - 1.05 - ? - ? - Compute Node - 1048 - 555 - - -test_ISEVEN - BoolEven - label_test - ValEven - - -544 - 256 - -544 - 524 - -test_ISONE - BoolOne - label_test - ValOne - - -546 - 237 - -546 - 198 - -m3p1 - anEvenInteger - control_m3p1 - N - - -975 - 38 - -976 - 81 - -div2 - anInteger - control_div2 - N - - -1012 - 585 - -1011 - 346 - -incr - aNewCount - control_div2 - K - - -966 - 606 - -968 - 207 - -incr - aNewCount - control_m3p1 - K - - -965 - 59 - -966 - 208 - -incr - aNewCount - C_AVERAGE - aCount - - -751 - 588 - -751 - 460 - -965 - 462 - -968 - 205 - -C_MIN - aNewMinVal - control_m3p1 - MINT - - -991 - 78 - -991 - 905 - -C_MIN - aNewMinVal - control_div2 - MINT - - -991 - 626 - -991 - 905 - -C_MAX - aNewMaxVal - control_m3p1 - MAXT - - -976 - 98 - -974 - 738 - -C_MAX - aNewMaxVal - control_div2 - MAXT - - -972 - 648 - -974 - 738 - -C_AVERAGE - aNewListOfSyr - control_m3p1 - SYRLISTT - - -1037 - 137 - -1038 - 556 - -C_AVERAGE - aNewListOfSyr - control_div2 - SYRLISTT - - -1038 - 686 - -1038 - 555 - -C_AVERAGE - anAverage - control_m3p1 - AVERAGET - - -1026 - 118 - -1027 - 567 - -C_AVERAGE - anAverage - control_div2 - AVERAGET - - -1027 - 668 - -1026 - 568 - -C_LISTOFSYR - aListOfSyr - label_begin - SYRLISTB - - -label_begin - NT - test_ISONE - anInteger - - -361 - 197 - -360 - 290 - -label_begin - NT - label_test - NT - - -label_begin - NT - test_ISEVEN - anInteger - - -359 - 525 - -361 - 291 - -label_begin - KT - label_test - KT - - -label_begin - MIN - label_test - MIN - - -label_begin - MAX - label_test - MAX - - -label_begin - AVERAGE - label_test - AVERAGE - - -label_begin - SYRLIST - label_test - SYRLIST - - -label_test - Even - div2 - Gate - - -777 - 351 - -777 - 286 - -label_test - Odd - m3p1 - Gate - - -757 - 95 - -757 - 310 - -label_test - N - m3p1 - anOddInteger - - -741 - 72 - -741 - 331 - -label_test - N - div2 - anEvenInteger - - -label_test - N - C_MIN - anInteger - - -744 - 923 - -742 - 331 - -label_test - N - C_MAX - anInteger - - -742 - 759 - -743 - 332 - -label_test - N - C_AVERAGE - anInteger - - -741 - 568 - -742 - 330 - -label_test - K - incr - aCount - - -766 - 207 - -766 - 343 - -label_test - MIN - C_MIN - aMinVal - - -771 - 902 - -777 - 371 - -777 - 370 - -label_test - MIN - EndL_OneEven - MINT - - -label_test - MAX - C_MAX - aMaxVal - - -764 - 739 - -762 - 390 - -label_test - MAX - EndL_OneEven - MAXT - - -label_test - AVERAGE - EndL_OneEven - AVERAGET - - -label_test - SYRLIST - C_AVERAGE - aListOfSyr - - -769 - 546 - -769 - 431 - -768 - 431 - -768 - 430 - -control_m3p1 - Gate - label_test - Gate - - -553 - 453 - -554 - 1025 - -1242 - 1026 - -1234 - 204 - -control_div2 - Gate - label_begin - Gate - - -176 - 419 - -176 - 997 - -1217 - 996 - -1223 - 711 - - -GraphSyrControlAveAborted - label_begin__NB - label_begin - NB - -3 - 31 - - -GraphSyrControlAveAborted - label_begin__KB - label_begin - KB - -3 - 0 - - -GraphSyrControlAveAborted - label_begin__MINB - label_begin - MINB - -3 - 0 - - -GraphSyrControlAveAborted - label_begin__MAXB - label_begin - MAXB - -3 - 0 - - -GraphSyrControlAveAborted - label_begin__AVERAGEB - label_begin - AVERAGEB - -7 - 0 - diff --git a/Superv/Graphs/GraphSyrControlAveExecutable.xml b/Superv/Graphs/GraphSyrControlAveExecutable.xml deleted file mode 100644 index 839a55b..0000000 --- a/Superv/Graphs/GraphSyrControlAveExecutable.xml +++ /dev/null @@ -1,1136 +0,0 @@ - - - - - - -? - ? - GraphSyrControlAveExecutable - 1 - ? - -GraphSyrControlAveNOTExecutable - - -long - label_begin__NB - -long - label_begin__KB - -long - label_begin__MINB - -long - label_begin__MAXB - -double - label_begin__AVERAGEB - - -long - label_test__Finished - -long - label_test__Incr - -long - EndL_OneEven__MIN - -long - EndL_OneEven__MAX - -double - EndL_OneEven__AVERAGE - - - 2/10/2003 - 11:17:14 - 22/6/2005 - 15:5:27 - 1.05 - JR - ? - Syracuse algorithm - 0 - 0 - - -SyrComponent - SyrComponent - test_ISEVEN - 0 - ? - -C_ISEVEN - - -long - anInteger - - -long - BoolEven - - - 22/6/2005 - 15:4:37 - 22/6/2005 - 15:4:37 - 1.05 - ? - localhost/FactoryServer - C_ISEVEN from SyrComponent - 370 - 455 - -SyrComponent - SyrComponent - test_ISONE - 0 - ? - -C_ISONE - - -long - anInteger - - -long - BoolOne - - - 22/6/2005 - 15:4:37 - 22/6/2005 - 15:4:37 - 1.05 - ? - localhost/FactoryServer - C_ISONE from SyrComponent - 370 - 127 - -SyrComponent - SyrComponent - m3p1 - 0 - ? - -C_M3P1 - - -long - anOddInteger - - -long - anEvenInteger - - - 22/6/2005 - 15:4:37 - 22/6/2005 - 15:4:37 - 1.05 - ? - localhost/FactoryServer - C_M3P1 from SyrComponent - 789 - 0 - -SyrComponent - SyrComponent - div2 - 0 - ? - -C_DIV2 - - -long - anEvenInteger - - -long - anInteger - - - 22/6/2005 - 15:4:37 - 22/6/2005 - 15:4:37 - 1.05 - ? - localhost/FactoryServer - C_DIV2 from SyrComponent - 789 - 255 - -SyrComponent - SyrComponent - incr - 0 - ? - -C_INCR - - -long - aCount - - -long - aNewCount - - - 22/6/2005 - 15:4:37 - 22/6/2005 - 15:4:37 - 1.05 - ? - localhost/FactoryServer - C_INCR from SyrComponent - 790 - 136 - -SyrComponent - SyrComponent - C_MIN - 0 - ? - -C_MIN - - -long - aMinVal - -long - anInteger - - -long - aNewMinVal - - - 22/6/2005 - 15:4:37 - 22/6/2005 - 15:4:37 - 1.05 - ? - localhost/FactoryServer - C_MIN from SyrComponent - 798 - 833 - -SyrComponent - SyrComponent - C_MAX - 0 - ? - -C_MAX - - -long - aMaxVal - -long - anInteger - - -long - aNewMaxVal - - - 22/6/2005 - 15:4:37 - 22/6/2005 - 15:4:37 - 1.05 - ? - localhost/FactoryServer - C_MAX from SyrComponent - 798 - 668 - -SyrComponent - SyrComponent - C_AVERAGE - 0 - ? - -C_AVERAGE - - -ListOfSyr - aListOfSyr - -long - anInteger - -long - aCount - - -ListOfSyr - aNewListOfSyr - -double - anAverage - - - 22/6/2005 - 15:4:37 - 22/6/2005 - 15:4:37 - 1.05 - ? - localhost/FactoryServer - C_AVERAGE from SyrComponent - 784 - 476 - -SyrComponent - SyrComponent - C_LISTOFSYR - 0 - ? - -C_LISTOFSYR - - - -ListOfSyr - aListOfSyr - - - 22/6/2005 - 15:4:37 - 22/6/2005 - 15:4:37 - 1.05 - ? - localhost/FactoryServer - C_LISTOFSYR from SyrComponent - 5 - 321 - -? - ? - label_begin - 3 - ? - -label_begin - - -long - NB - -long - KB - -long - MINB - -long - MAXB - -double - AVERAGEB - -ListOfSyr - SYRLISTB - - -long - NT - -long - KT - -long - MIN - -long - MAX - -double - AVERAGE - -ListOfSyr - SYRLIST - - - -label_begin - - - 22/6/2005 - 15:4:37 - 22/6/2005 - 15:4:37 - 1.05 - ? - ? - Python function - 183 - 220 - -? - ? - label_test - 6 - EndL_OneEven - -label_test - - -long - ValOne - -long - ValEven - -long - NT - -long - KT - -long - MIN - -long - MAX - -double - AVERAGE - -ListOfSyr - SYRLIST - - -long - Finished - -long - Incr - -long - Even - -long - Odd - -long - N - -long - K - -long - MIN - -long - MAX - -double - AVERAGE - -ListOfSyr - SYRLIST - - - -L_OneEven - - - - - - - - - - - - - - - - 22/6/2005 - 15:4:37 - 22/6/2005 - 15:4:37 - 1.05 - ? - ? - Compute Node - 564 - 219 - -? - ? - EndL_OneEven - 7 - label_test - -EndL_OneEven - - -long - MINT - -long - MAXT - -double - AVERAGET - - -long - MIN - -long - MAX - -double - AVERAGE - - - -? - - 22/6/2005 - 15:4:37 - 22/6/2005 - 15:4:37 - 1.05 - ? - ? - Compute Node - 1064 - 339 - -? - ? - control_m3p1 - 8 - label_test - -control_m3p1 - - -long - N - -long - K - -long - MINT - -long - MAXT - -double - AVERAGET - -ListOfSyr - SYRLISTT - - -long - ValOne - -long - ValEven - -long - NT - -long - KT - -long - MIN - -long - MAX - -double - AVERAGE - -ListOfSyr - SYRLIST - - - -C_NotOneIsEven - - - 22/6/2005 - 15:4:37 - 22/6/2005 - 15:4:37 - 1.05 - ? - ? - Compute Node - 1058 - 8 - -? - ? - control_div2 - 8 - label_begin - -control_div2 - - -long - N - -long - K - -long - MINT - -long - MAXT - -double - AVERAGET - -ListOfSyr - SYRLISTT - - -long - NB - -long - KB - -long - MINB - -long - MAXB - -double - AVERAGEB - -ListOfSyr - SYRLISTB - - - -control_div2 - - - 22/6/2005 - 15:4:37 - 22/6/2005 - 15:4:37 - 1.05 - ? - ? - Compute Node - 1048 - 555 - - -test_ISEVEN - BoolEven - label_test - ValEven - - -544 - 256 - -544 - 524 - -test_ISONE - BoolOne - label_test - ValOne - - -546 - 237 - -546 - 198 - -m3p1 - anEvenInteger - control_m3p1 - N - - -975 - 38 - -976 - 81 - -div2 - anInteger - control_div2 - N - - -1012 - 585 - -1011 - 346 - -incr - aNewCount - control_div2 - K - - -966 - 606 - -968 - 207 - -incr - aNewCount - control_m3p1 - K - - -965 - 59 - -966 - 208 - -incr - aNewCount - C_AVERAGE - aCount - - -751 - 588 - -751 - 460 - -965 - 462 - -968 - 205 - -C_MIN - aNewMinVal - control_m3p1 - MINT - - -991 - 78 - -991 - 905 - -C_MIN - aNewMinVal - control_div2 - MINT - - -991 - 626 - -991 - 905 - -C_MAX - aNewMaxVal - control_m3p1 - MAXT - - -976 - 98 - -974 - 738 - -C_MAX - aNewMaxVal - control_div2 - MAXT - - -972 - 648 - -974 - 738 - -C_AVERAGE - aNewListOfSyr - control_m3p1 - SYRLISTT - - -1037 - 137 - -1038 - 556 - -C_AVERAGE - aNewListOfSyr - control_div2 - SYRLISTT - - -1038 - 686 - -1038 - 555 - -C_AVERAGE - anAverage - control_m3p1 - AVERAGET - - -1026 - 118 - -1027 - 567 - -C_AVERAGE - anAverage - control_div2 - AVERAGET - - -1027 - 668 - -1026 - 568 - -C_LISTOFSYR - aListOfSyr - label_begin - SYRLISTB - - -label_begin - NT - test_ISONE - anInteger - - -361 - 197 - -360 - 290 - -label_begin - NT - label_test - NT - - -label_begin - NT - test_ISEVEN - anInteger - - -359 - 525 - -361 - 291 - -label_begin - KT - label_test - KT - - -label_begin - MIN - label_test - MIN - - -label_begin - MAX - label_test - MAX - - -label_begin - AVERAGE - label_test - AVERAGE - - -label_begin - SYRLIST - label_test - SYRLIST - - -label_test - Even - div2 - Gate - - -777 - 351 - -777 - 286 - -label_test - Odd - m3p1 - Gate - - -757 - 95 - -757 - 310 - -label_test - N - m3p1 - anOddInteger - - -741 - 72 - -741 - 331 - -label_test - N - div2 - anEvenInteger - - -label_test - N - C_MIN - anInteger - - -744 - 923 - -742 - 331 - -label_test - N - C_MAX - anInteger - - -742 - 759 - -743 - 332 - -label_test - N - C_AVERAGE - anInteger - - -741 - 568 - -742 - 330 - -label_test - K - incr - aCount - - -766 - 207 - -766 - 343 - -label_test - MIN - C_MIN - aMinVal - - -771 - 902 - -777 - 371 - -777 - 370 - -label_test - MIN - EndL_OneEven - MINT - - -label_test - MAX - C_MAX - aMaxVal - - -764 - 739 - -762 - 390 - -label_test - MAX - EndL_OneEven - MAXT - - -label_test - AVERAGE - EndL_OneEven - AVERAGET - - -label_test - SYRLIST - C_AVERAGE - aListOfSyr - - -769 - 546 - -769 - 431 - -768 - 431 - -768 - 430 - -label_test - Default - EndL_OneEven - Default - - -control_m3p1 - Gate - label_test - Gate - - -553 - 453 - -554 - 1025 - -1242 - 1026 - -1234 - 204 - -control_div2 - Gate - label_begin - Gate - - -176 - 419 - -176 - 997 - -1217 - 996 - -1223 - 711 - - -GraphSyrControlAveExecutable - label_begin__NB - label_begin - NB - -3 - 31 - - -GraphSyrControlAveExecutable - label_begin__KB - label_begin - KB - -3 - 0 - - -GraphSyrControlAveExecutable - label_begin__MINB - label_begin - MINB - -3 - 0 - - -GraphSyrControlAveExecutable - label_begin__MAXB - label_begin - MAXB - -3 - 0 - - -GraphSyrControlAveExecutable - label_begin__AVERAGEB - label_begin - AVERAGEB - -7 - 0 - diff --git a/Superv/Graphs/GraphSyrControlAveNOTValid.xml b/Superv/Graphs/GraphSyrControlAveNOTValid.xml deleted file mode 100644 index 96d4e46..0000000 --- a/Superv/Graphs/GraphSyrControlAveNOTValid.xml +++ /dev/null @@ -1,1130 +0,0 @@ - - - - - - -? - ? - GraphSyrControlAveNOTValid - 1 - ? - -GraphSyrControlAveNOTValid - - -long - label_begin__NB - -long - label_begin__KB - -long - label_begin__MINB - -long - label_begin__MAXB - -double - label_begin__AVERAGEB - -long - EndL_OneEven__MINT - -long - EndL_OneEven__MAXT - -double - EndL_OneEven__AVERAGET - - -long - label_test__Finished - -long - label_test__Incr - -double - label_test__AVERAGE - -long - EndL_OneEven__MIN - -long - EndL_OneEven__MAX - -double - EndL_OneEven__AVERAGE - - - 2/10/2003 - 11:17:14 - 28/6/2005 - 12:6:44 - 1.05 - JR - ? - Syracuse algorithm - 0 - 0 - - -SyrComponent - SyrComponent - test_ISEVEN - 0 - ? - -C_ISEVEN - - -long - anInteger - - -long - BoolEven - - - 28/6/2005 - 12:6:44 - 28/6/2005 - 12:6:44 - 1.05 - ? - localhost/FactoryServer - C_ISEVEN from SyrComponent - 370 - 455 - -SyrComponent - SyrComponent - test_ISONE - 0 - ? - -C_ISONE - - -long - anInteger - - -long - BoolOne - - - 28/6/2005 - 12:6:44 - 28/6/2005 - 12:6:44 - 1.05 - ? - localhost/FactoryServer - C_ISONE from SyrComponent - 370 - 127 - -SyrComponent - SyrComponent - m3p1 - 0 - ? - -C_M3P1 - - -long - anOddInteger - - -long - anEvenInteger - - - 28/6/2005 - 12:6:44 - 28/6/2005 - 12:6:44 - 1.05 - ? - localhost/FactoryServer - C_M3P1 from SyrComponent - 789 - 0 - -SyrComponent - SyrComponent - div2 - 0 - ? - -C_DIV2 - - -long - anEvenInteger - - -long - anInteger - - - 28/6/2005 - 12:6:44 - 28/6/2005 - 12:6:44 - 1.05 - ? - localhost/FactoryServer - C_DIV2 from SyrComponent - 789 - 255 - -SyrComponent - SyrComponent - incr - 0 - ? - -C_INCR - - -long - aCount - - -long - aNewCount - - - 28/6/2005 - 12:6:44 - 28/6/2005 - 12:6:44 - 1.05 - ? - localhost/FactoryServer - C_INCR from SyrComponent - 790 - 136 - -SyrComponent - SyrComponent - C_MIN - 0 - ? - -C_MIN - - -long - aMinVal - -long - anInteger - - -long - aNewMinVal - - - 28/6/2005 - 12:6:44 - 28/6/2005 - 12:6:44 - 1.05 - ? - localhost/FactoryServer - C_MIN from SyrComponent - 798 - 833 - -SyrComponent - SyrComponent - C_MAX - 0 - ? - -C_MAX - - -long - aMaxVal - -long - anInteger - - -long - aNewMaxVal - - - 28/6/2005 - 12:6:44 - 28/6/2005 - 12:6:44 - 1.05 - ? - localhost/FactoryServer - C_MAX from SyrComponent - 798 - 668 - -SyrComponent - SyrComponent - C_AVERAGE - 0 - ? - -C_AVERAGE - - -ListOfSyr - aListOfSyr - -long - anInteger - -long - aCount - - -ListOfSyr - aNewListOfSyr - -double - anAverage - - - 28/6/2005 - 12:6:44 - 28/6/2005 - 12:6:44 - 1.05 - ? - localhost/FactoryServer - C_AVERAGE from SyrComponent - 784 - 476 - -SyrComponent - SyrComponent - C_LISTOFSYR - 0 - ? - -C_LISTOFSYR - - - -ListOfSyr - aListOfSyr - - - 28/6/2005 - 12:6:44 - 28/6/2005 - 12:6:44 - 1.05 - ? - localhost/FactoryServer - C_LISTOFSYR from SyrComponent - 5 - 321 - -? - ? - label_begin - 3 - ? - -label_begin - - -long - NB - -long - KB - -long - MINB - -long - MAXB - -double - AVERAGEB - -ListOfSyr - SYRLISTB - - -long - NT - -long - KT - -long - MIN - -long - MAX - -double - AVERAGE - -ListOfSyr - SYRLIST - - - -label_begin - - - 28/6/2005 - 12:6:44 - 28/6/2005 - 12:6:44 - 1.05 - ? - ? - Python function - 183 - 220 - -? - ? - label_test - 6 - EndL_OneEven - -label_test - - -long - ValOne - -long - ValEven - -long - NT - -long - KT - -long - MIN - -long - MAX - -double - AVERAGE - -ListOfSyr - SYRLIST - - -long - Finished - -long - Incr - -long - Even - -long - Odd - -long - N - -long - K - -long - MIN - -long - MAX - -double - AVERAGE - -ListOfSyr - SYRLIST - - - -L_OneEven - - - - - - - - - - - - - - - - 28/6/2005 - 12:6:44 - 28/6/2005 - 12:6:44 - 1.05 - ? - ? - Compute Node - 564 - 219 - -? - ? - EndL_OneEven - 7 - label_test - -EndL_OneEven - - -long - MINT - -long - MAXT - -double - AVERAGET - - -long - MIN - -long - MAX - -double - AVERAGE - - - -? - - 28/6/2005 - 12:6:44 - 28/6/2005 - 12:6:44 - 1.05 - ? - ? - Compute Node - 1064 - 339 - -? - ? - control_m3p1 - 8 - label_test - -control_m3p1 - - -long - N - -long - K - -long - MINT - -long - MAXT - -double - AVERAGET - -ListOfSyr - SYRLISTT - - -long - ValOne - -long - ValEven - -long - NT - -long - KT - -long - MIN - -long - MAX - -double - AVERAGE - -ListOfSyr - SYRLIST - - - -C_NotOneIsEven - - - 28/6/2005 - 12:6:44 - 28/6/2005 - 12:6:44 - 1.05 - ? - ? - Compute Node - 1058 - 8 - -? - ? - control_div2 - 8 - label_begin - -control_div2 - - -long - N - -long - K - -long - MINT - -long - MAXT - -double - AVERAGET - -ListOfSyr - SYRLISTT - - -long - NB - -long - KB - -long - MINB - -long - MAXB - -double - AVERAGEB - -ListOfSyr - SYRLISTB - - - -control_div2 - - - 28/6/2005 - 12:6:44 - 28/6/2005 - 12:6:44 - 1.05 - ? - ? - Compute Node - 1048 - 555 - - -test_ISEVEN - BoolEven - label_test - ValEven - - -544 - 256 - -544 - 524 - -test_ISONE - BoolOne - label_test - ValOne - - -546 - 237 - -546 - 198 - -m3p1 - anEvenInteger - control_m3p1 - N - - -975 - 38 - -976 - 81 - -div2 - anInteger - control_div2 - N - - -1012 - 585 - -1011 - 346 - -incr - aNewCount - control_div2 - K - - -966 - 606 - -968 - 207 - -incr - aNewCount - control_m3p1 - K - - -965 - 59 - -966 - 208 - -incr - aNewCount - C_AVERAGE - aCount - - -751 - 588 - -751 - 460 - -965 - 462 - -968 - 205 - -C_MIN - aNewMinVal - control_m3p1 - MINT - - -991 - 78 - -991 - 905 - -C_MIN - aNewMinVal - control_div2 - MINT - - -991 - 626 - -991 - 905 - -C_MAX - aNewMaxVal - control_m3p1 - MAXT - - -976 - 98 - -974 - 738 - -C_MAX - aNewMaxVal - control_div2 - MAXT - - -972 - 648 - -974 - 738 - -C_AVERAGE - aNewListOfSyr - control_m3p1 - SYRLISTT - - -1037 - 137 - -1038 - 556 - -C_AVERAGE - aNewListOfSyr - control_div2 - SYRLISTT - - -1038 - 686 - -1038 - 555 - -C_AVERAGE - anAverage - control_m3p1 - AVERAGET - - -1026 - 118 - -1027 - 567 - -C_AVERAGE - anAverage - control_div2 - AVERAGET - - -1027 - 668 - -1026 - 568 - -C_LISTOFSYR - aListOfSyr - label_begin - SYRLISTB - - -label_begin - NT - test_ISONE - anInteger - - -361 - 197 - -360 - 290 - -label_begin - NT - label_test - NT - - -label_begin - NT - test_ISEVEN - anInteger - - -359 - 525 - -361 - 291 - -label_begin - KT - label_test - KT - - -label_begin - MIN - label_test - MIN - - -label_begin - MAX - label_test - MAX - - -label_begin - AVERAGE - label_test - AVERAGE - - -label_begin - SYRLIST - label_test - SYRLIST - - -label_test - Even - div2 - Gate - - -777 - 351 - -777 - 286 - -label_test - Odd - m3p1 - Gate - - -757 - 95 - -757 - 310 - -label_test - N - m3p1 - anOddInteger - - -741 - 72 - -741 - 331 - -label_test - N - div2 - anEvenInteger - - -label_test - N - C_MIN - anInteger - - -744 - 923 - -742 - 331 - -label_test - N - C_MAX - anInteger - - -742 - 759 - -743 - 332 - -label_test - N - C_AVERAGE - anInteger - - -741 - 568 - -742 - 330 - -label_test - K - incr - aCount - - -766 - 207 - -766 - 343 - -label_test - MIN - C_MIN - aMinVal - - -771 - 902 - -777 - 371 - -777 - 370 - -label_test - MAX - C_MAX - aMaxVal - - -764 - 739 - -762 - 390 - -label_test - SYRLIST - C_AVERAGE - aListOfSyr - - -769 - 546 - -769 - 431 - -768 - 431 - -768 - 430 - -label_test - Default - EndL_OneEven - Default - - -control_m3p1 - Gate - label_test - Gate - - -553 - 453 - -554 - 1025 - -1242 - 1026 - -1234 - 204 - -control_div2 - Gate - label_begin - Gate - - -176 - 419 - -176 - 997 - -1217 - 996 - -1223 - 711 - - -GraphSyrControlAveNOTValid - label_begin__NB - label_begin - NB - -3 - 31 - - -GraphSyrControlAveNOTValid - label_begin__KB - label_begin - KB - -3 - 0 - - -GraphSyrControlAveNOTValid - label_begin__MINB - label_begin - MINB - -3 - 0 - - -GraphSyrControlAveNOTValid - label_begin__MAXB - label_begin - MAXB - -3 - 0 - - -GraphSyrControlAveNOTValid - label_begin__AVERAGEB - label_begin - AVERAGEB - -7 - 0 - diff --git a/Superv/Graphs/GraphSyrControlAveValid.xml b/Superv/Graphs/GraphSyrControlAveValid.xml deleted file mode 100644 index 0a52257..0000000 --- a/Superv/Graphs/GraphSyrControlAveValid.xml +++ /dev/null @@ -1,1127 +0,0 @@ - - - - - - -? - ? - GraphSyrControlAveValid - 1 - ? - -GraphSyrControlAveValid - - -long - label_begin__NB - -long - label_begin__KB - -long - label_begin__MINB - -long - label_begin__MAXB - -double - label_begin__AVERAGEB - - -long - label_test__Finished - -long - label_test__Incr - -long - EndL_OneEven__MIN - -long - EndL_OneEven__MAX - -double - EndL_OneEven__AVERAGE - - - 2/10/2003 - 11:17:14 - 28/6/2005 - 14:10:50 - 1.05 - JR - ? - Syracuse algorithm - 0 - 0 - - -SyrComponent - SyrComponent - test_ISEVEN - 0 - ? - -C_ISEVEN - - -long - anInteger - - -long - BoolEven - - - 28/6/2005 - 14:8:24 - 28/6/2005 - 14:8:24 - 1.05 - ? - localhost/FactoryServer - C_ISEVEN from SyrComponent - 370 - 455 - -SyrComponent - SyrComponent - test_ISONE - 0 - ? - -C_ISONE - - -long - anInteger - - -long - BoolOne - - - 28/6/2005 - 14:8:24 - 28/6/2005 - 14:8:24 - 1.05 - ? - localhost/FactoryServer - C_ISONE from SyrComponent - 370 - 127 - -SyrComponent - SyrComponent - m3p1 - 0 - ? - -C_M3P1 - - -long - anOddInteger - - -long - anEvenInteger - - - 28/6/2005 - 14:8:24 - 28/6/2005 - 14:8:24 - 1.05 - ? - localhost/FactoryServer - C_M3P1 from SyrComponent - 789 - 0 - -SyrComponent - SyrComponent - div2 - 0 - ? - -C_DIV2 - - -long - anEvenInteger - - -long - anInteger - - - 28/6/2005 - 14:8:24 - 28/6/2005 - 14:8:24 - 1.05 - ? - localhost/FactoryServer - C_DIV2 from SyrComponent - 789 - 255 - -SyrComponent - SyrComponent - incr - 0 - ? - -C_INCR - - -long - aCount - - -long - aNewCount - - - 28/6/2005 - 14:8:24 - 28/6/2005 - 14:8:24 - 1.05 - ? - localhost/FactoryServer - C_INCR from SyrComponent - 790 - 136 - -SyrComponent - SyrComponent - C_MIN - 0 - ? - -C_MIN - - -long - aMinVal - -long - anInteger - - -long - aNewMinVal - - - 28/6/2005 - 14:8:24 - 28/6/2005 - 14:8:24 - 1.05 - ? - localhost/FactoryServer - C_MIN from SyrComponent - 798 - 833 - -SyrComponent - SyrComponent - C_MAX - 0 - ? - -C_MAX - - -long - aMaxVal - -long - anInteger - - -long - aNewMaxVal - - - 28/6/2005 - 14:8:24 - 28/6/2005 - 14:8:24 - 1.05 - ? - localhost/FactoryServer - C_MAX from SyrComponent - 798 - 668 - -SyrComponent - SyrComponent - C_AVERAGE - 0 - ? - -C_AVERAGE - - -ListOfSyr - aListOfSyr - -long - anInteger - -long - aCount - - -ListOfSyr - aNewListOfSyr - -double - anAverage - - - 28/6/2005 - 14:8:24 - 28/6/2005 - 14:8:24 - 1.05 - ? - localhost/FactoryServer - C_AVERAGE from SyrComponent - 784 - 476 - -SyrComponent - SyrComponent - C_LISTOFSYR - 0 - ? - -C_LISTOFSYR - - - -ListOfSyr - aListOfSyr - - - 28/6/2005 - 14:8:24 - 28/6/2005 - 14:8:24 - 1.05 - ? - localhost/FactoryServer - C_LISTOFSYR from SyrComponent - 5 - 321 - -? - ? - label_begin - 3 - ? - -label_begin - - -long - NB - -long - KB - -long - MINB - -long - MAXB - -double - AVERAGEB - -ListOfSyr - SYRLISTB - - -long - NT - -long - KT - -long - MIN - -long - MAX - -double - AVERAGE - -ListOfSyr - SYRLIST - - - -label_begin - - - 28/6/2005 - 14:8:24 - 28/6/2005 - 14:8:24 - 1.05 - ? - ? - Python function - 183 - 220 - -? - ? - label_test - 6 - EndL_OneEven - -label_test - - -long - ValOne - -long - ValEven - -long - NT - -long - KT - -long - MIN - -long - MAX - -double - AVERAGE - -ListOfSyr - SYRLIST - - -long - Finished - -long - Incr - -long - Even - -long - Odd - -long - N - -long - K - -long - MINT - -long - MAXT - -double - AVERAGET - -ListOfSyr - SYRLISTT - - - -L_OneEven - - - - - - - - - - - - - - - - 28/6/2005 - 14:8:24 - 28/6/2005 - 14:8:24 - 1.05 - ? - ? - Compute Node - 564 - 219 - -? - ? - EndL_OneEven - 7 - label_test - -EndL_OneEven - - -long - MINT - -long - MAXT - -double - AVERAGET - - -long - MIN - -long - MAX - -double - AVERAGE - - - -? - - 28/6/2005 - 14:8:24 - 28/6/2005 - 14:8:24 - 1.05 - ? - ? - Compute Node - 1064 - 339 - -? - ? - control_m3p1 - 8 - label_test - -control_m3p1 - - -long - N - -long - K - -long - MINT - -long - MAXT - -double - AVERAGET - -ListOfSyr - SYRLISTT - - -long - ValOne - -long - ValEven - -long - NT - -long - KT - -long - MIN - -long - MAX - -double - AVERAGE - -ListOfSyr - SYRLIST - - - -C_NotOneIsEven - - - 28/6/2005 - 14:8:24 - 28/6/2005 - 14:8:24 - 1.05 - ? - ? - Compute Node - 1058 - 8 - -? - ? - control_div2 - 8 - label_begin - -control_div2 - - -long - N - -long - K - -long - MINT - -long - MAXT - -double - AVERAGET - -ListOfSyr - SYRLISTT - - -long - NB - -long - KB - -long - MINB - -long - MAXB - -double - AVERAGEB - -ListOfSyr - SYRLISTB - - - -control_div2 - - - 28/6/2005 - 14:8:24 - 28/6/2005 - 14:8:24 - 1.05 - ? - ? - Compute Node - 1048 - 555 - - -test_ISEVEN - BoolEven - label_test - ValEven - - -544 - 256 - -544 - 524 - -test_ISONE - BoolOne - label_test - ValOne - - -546 - 237 - -546 - 198 - -m3p1 - anEvenInteger - control_m3p1 - N - - -975 - 38 - -976 - 81 - -div2 - anInteger - control_div2 - N - - -1012 - 585 - -1011 - 346 - -incr - aNewCount - control_div2 - K - - -966 - 606 - -968 - 207 - -incr - aNewCount - control_m3p1 - K - - -965 - 59 - -966 - 208 - -incr - aNewCount - C_AVERAGE - aCount - - -751 - 588 - -751 - 460 - -965 - 462 - -968 - 205 - -C_MIN - aNewMinVal - control_m3p1 - MINT - - -991 - 78 - -991 - 905 - -C_MIN - aNewMinVal - control_div2 - MINT - - -991 - 626 - -991 - 905 - -C_MAX - aNewMaxVal - control_m3p1 - MAXT - - -976 - 98 - -974 - 738 - -C_MAX - aNewMaxVal - control_div2 - MAXT - - -972 - 648 - -974 - 738 - -C_AVERAGE - aNewListOfSyr - control_m3p1 - SYRLISTT - - -1037 - 137 - -1038 - 556 - -C_AVERAGE - aNewListOfSyr - control_div2 - SYRLISTT - - -1038 - 686 - -1038 - 555 - -C_AVERAGE - anAverage - control_m3p1 - AVERAGET - - -1026 - 118 - -1027 - 567 - -C_AVERAGE - anAverage - control_div2 - AVERAGET - - -1027 - 668 - -1026 - 568 - -C_LISTOFSYR - aListOfSyr - label_begin - SYRLISTB - - -label_begin - NT - test_ISONE - anInteger - - -361 - 197 - -360 - 290 - -label_begin - NT - label_test - NT - - -label_begin - NT - test_ISEVEN - anInteger - - -359 - 525 - -361 - 291 - -label_begin - KT - label_test - KT - - -label_begin - MIN - label_test - MIN - - -label_begin - MAX - label_test - MAX - - -label_begin - AVERAGE - label_test - AVERAGE - - -label_begin - SYRLIST - label_test - SYRLIST - - -label_test - Even - div2 - Gate - - -777 - 351 - -777 - 286 - -label_test - Odd - m3p1 - Gate - - -757 - 95 - -757 - 310 - -label_test - N - m3p1 - anOddInteger - - -741 - 72 - -741 - 331 - -label_test - N - div2 - anEvenInteger - - -label_test - N - C_MIN - anInteger - - -744 - 923 - -742 - 331 - -label_test - N - C_MAX - anInteger - - -742 - 759 - -743 - 332 - -label_test - N - C_AVERAGE - anInteger - - -741 - 568 - -742 - 330 - -label_test - K - incr - aCount - - -766 - 207 - -766 - 343 - -label_test - MINT - C_MIN - aMinVal - - -760 - 904 - -756 - 372 - -label_test - MINT - EndL_OneEven - MINT - - -label_test - MAXT - C_MAX - aMaxVal - - -765 - 742 - -766 - 384 - -label_test - MAXT - EndL_OneEven - MAXT - - -label_test - AVERAGET - EndL_OneEven - AVERAGET - - -label_test - SYRLISTT - C_AVERAGE - aListOfSyr - - -773 - 546 - -772 - 424 - -label_test - Default - EndL_OneEven - Default - - -control_m3p1 - Gate - label_test - Gate - - -553 - 453 - -554 - 1025 - -1242 - 1026 - -1234 - 204 - -control_div2 - Gate - label_begin - Gate - - -176 - 419 - -176 - 997 - -1217 - 996 - -1223 - 711 - - -GraphSyrControlAveValid - label_begin__NB - label_begin - NB - -3 - 31 - - -GraphSyrControlAveValid - label_begin__KB - label_begin - KB - -3 - 0 - - -GraphSyrControlAveValid - label_begin__MINB - label_begin - MINB - -3 - 0 - - -GraphSyrControlAveValid - label_begin__MAXB - label_begin - MAXB - -3 - 0 - - -GraphSyrControlAveValid - label_begin__AVERAGEB - label_begin - AVERAGEB - -7 - 0 - diff --git a/Superv/Graphs/GraphSyrControlDefault.xml b/Superv/Graphs/GraphSyrControlDefault.xml deleted file mode 100644 index 8e1570c..0000000 --- a/Superv/Graphs/GraphSyrControlDefault.xml +++ /dev/null @@ -1,695 +0,0 @@ - - - - - - -? - ? - GraphSyrControlDefault - 1 - ? - -GraphSyrControlDefault - - -long - label_begin__NB - -long - label_begin__KB - - -long - test__Incr - -long - EndSwitch_OneEven__K - - - 19/3/2003 - 16:49:51 - 20/1/2005 - 13:15:44 - 1.04 - JR - ? - Syracuse algorithm - 0 - 0 - - -SyrComponent - SyrComponent - test_ISEVEN - 0 - ? - -C_ISEVEN - - -long - anInteger - - -long - BoolEven - - - 20/1/2005 - 13:15:28 - 20/1/2005 - 13:15:28 - 1.04 - ? - localhost/FactoryServer - C_ISEVEN from SyrComponent - 204 - 444 - -SyrComponent - SyrComponent - test_ISONE - 0 - ? - -C_ISONE - - -long - anInteger - - -long - BoolOne - - - 20/1/2005 - 13:15:28 - 20/1/2005 - 13:15:28 - 1.04 - ? - localhost/FactoryServer - C_ISONE from SyrComponent - 201 - 52 - -SyrComponent - SyrComponent - m3p1 - 0 - ? - -C_M3P1 - - -long - anOddInteger - - -long - anEvenInteger - - - 20/1/2005 - 13:15:28 - 20/1/2005 - 13:15:28 - 1.04 - ? - localhost/FactoryServer - C_M3P1 from SyrComponent - 806 - 19 - -SyrComponent - SyrComponent - div2 - 0 - ? - -C_DIV2 - - -long - anEvenInteger - - -long - anInteger - - - 20/1/2005 - 13:15:29 - 20/1/2005 - 13:15:29 - 1.04 - ? - localhost/FactoryServer - C_DIV2 from SyrComponent - 803 - 451 - -SyrComponent - SyrComponent - incr - 0 - ? - -C_INCR - - -long - aCount - - -long - aNewCount - - - 20/1/2005 - 13:15:29 - 20/1/2005 - 13:15:29 - 1.04 - ? - localhost/FactoryServer - C_INCR from SyrComponent - 802 - 170 - -? - ? - label_begin - 3 - ? - -label_begin - - -long - NB - -long - KB - - -long - NT - -long - KT - - - -label_begin - - - - 20/1/2005 - 13:15:29 - 20/1/2005 - 13:15:29 - 1.04 - ? - ? - Python function - 12 - 264 - -? - ? - label_test - 3 - ? - -label_test - - -long - ValEven - -long - ValOne - -long - NT - -long - KT - - -long - ValEven - -long - ValOne - -long - NT - -long - KT - - - -label_test - - - - 20/1/2005 - 13:15:29 - 20/1/2005 - 13:15:29 - 1.04 - ? - ? - Python function - 415 - 206 - -? - ? - test - 6 - EndSwitch_OneEven - -test - - -long - ValOne - -long - ValEven - -long - NT - -long - KT - - -long - Incr - -long - Even - -long - Odd - -long - N - -long - K - - - -Switch_OneEven - - - - - - - - - - - - - - - - 20/1/2005 - 13:15:29 - 20/1/2005 - 13:15:29 - 1.04 - ? - ? - Compute Node - 597 - 251 - -? - ? - EndSwitch_OneEven - 7 - test - -EndSwitch_OneEven - - -long - K - - -long - K - - - -? - - 20/1/2005 - 13:15:29 - 20/1/2005 - 13:15:29 - 1.04 - ? - ? - Compute Node - 1074 - 367 - -? - ? - control_m3p1 - 8 - label_test - -control_m3p1 - - -long - N - -long - K - - -long - ValOne - -long - ValEven - -long - NT - -long - KT - - - -control_m3p1 - - - 20/1/2005 - 13:15:29 - 20/1/2005 - 13:15:29 - 1.04 - ? - ? - Compute Node - 1002 - 64 - -? - ? - control_div2 - 8 - label_begin - -control_div2 - - -long - N - -long - K - - -long - NB - -long - KB - - - -control_div2 - - - 20/1/2005 - 13:15:29 - 20/1/2005 - 13:15:29 - 1.04 - ? - ? - Compute Node - 1013 - 496 - - -test_ISEVEN - BoolEven - label_test - ValEven - - -381 - 286 - -382 - 524 - -test_ISONE - BoolOne - label_test - ValOne - - -393 - 314 - -393 - 133 - -m3p1 - anEvenInteger - control_m3p1 - N - - -div2 - anInteger - control_div2 - N - - -incr - aNewCount - control_m3p1 - K - - -985 - 128 - -985 - 250 - -incr - aNewCount - control_div2 - K - - -987 - 559 - -985 - 250 - -label_begin - NT - label_test - NT - - -label_begin - NT - test_ISEVEN - anInteger - - -191 - 524 - -192 - 345 - -label_begin - NT - test_ISONE - anInteger - - -192 - 131 - -193 - 345 - -label_begin - KT - label_test - KT - - -label_test - ValEven - test - ValEven - - -label_test - ValOne - test - ValOne - - -label_test - NT - test - NT - - -label_test - KT - test - KT - - -test - Even - div2 - Gate - - -793 - 567 - -792 - 314 - -test - Odd - m3p1 - Gate - - -786 - 132 - -785 - 343 - -test - N - m3p1 - anOddInteger - - -767 - 100 - -767 - 371 - -test - N - div2 - anEvenInteger - - -768 - 531 - -767 - 371 - -test - K - EndSwitch_OneEven - K - - -test - K - incr - aCount - - -773 - 251 - -774 - 400 - -test - Default - EndSwitch_OneEven - Default - - -control_m3p1 - Gate - label_test - Gate - - -402 - 406 - -403 - 4 - -1174 - 5 - -1175 - 219 - -control_div2 - Gate - label_begin - Gate - - -3 - 409 - -2 - 671 - -1199 - 670 - -1198 - 592 - - -GraphSyrControlDefault - label_begin__NB - label_begin - NB - -3 - 7 - - -GraphSyrControlDefault - label_begin__KB - label_begin - KB - -3 - 0 - diff --git a/Superv/Graphs/GraphSyrControlGUI.xml b/Superv/Graphs/GraphSyrControlGUI.xml deleted file mode 100644 index 8607b77..0000000 --- a/Superv/Graphs/GraphSyrControlGUI.xml +++ /dev/null @@ -1,791 +0,0 @@ - - - - - - - ? - ? - GraphSyrControlGUI_2 - 1 - ? - - GraphSyrControlGUI_2 - - - long - label_begin__NB - - - long - label_begin__KB - - - - - long - label_test__Finished - - - long - label_test__Incr - - - - - - 11/3/2003 - 18:28:48 - 1/2/2007 - 10:25:28 - 1.04 - JR - ? - Syracuse algorithm - 0 - 0 - - - - - SyrComponent - SyrComponent - test_ISEVEN - 0 - ? - - C_ISEVEN - - - long - anInteger - - - - - long - BoolEven - - - - - - 1/2/2007 - 10:25:28 - 1/2/2007 - 10:25:28 - 1.04 - ? - localhost/FactoryServer - C_ISEVEN from SyrComponent - 288 - 337 - - - SyrComponent - SyrComponent - test_ISONE - 0 - ? - - C_ISONE - - - long - anInteger - - - - - long - BoolOne - - - - - - 1/2/2007 - 10:25:28 - 1/2/2007 - 10:25:28 - 1.04 - ? - localhost/FactoryServer - C_ISONE from SyrComponent - 293 - 130 - - - SyrComponent - SyrComponent - m3p1 - 0 - ? - - C_M3P1 - - - long - anOddInteger - - - - - long - anEvenInteger - - - - - - 1/2/2007 - 10:25:28 - 1/2/2007 - 10:25:28 - 1.04 - ? - localhost/FactoryServer - C_M3P1 from SyrComponent - 761 - 19 - - - SyrComponent - SyrComponent - div2 - 0 - ? - - C_DIV2 - - - long - anEvenInteger - - - - - long - anInteger - - - - - - 1/2/2007 - 10:25:28 - 1/2/2007 - 10:25:28 - 1.04 - ? - localhost/FactoryServer - C_DIV2 from SyrComponent - 770 - 384 - - - SyrComponent - SyrComponent - incr - 0 - ? - - C_INCR - - - long - aCount - - - - - long - aNewCount - - - - - - 1/2/2007 - 10:25:28 - 1/2/2007 - 10:25:28 - 1.04 - ? - localhost/FactoryServer - C_INCR from SyrComponent - 764 - 179 - - - ? - ? - label_begin - 3 - ? - - label_begin - - - long - NB - - - long - KB - - - - - long - NT - - - long - KT - - - - - - - label_begin - - - - - 1/2/2007 - 10:25:28 - 1/2/2007 - 10:25:28 - 1.04 - ? - ? - Python function - 58 - 189 - - - ? - ? - label_test - 6 - EndL_OneEven - - label_test - - - long - ValOne - - - long - ValEven - - - long - NT - - - long - KT - - - - - long - Finished - - - long - Incr - - - long - Even - - - long - Odd - - - long - N - - - long - K - - - - - - - L_OneEven - - - - - - - - - - - - - - - - - - 1/2/2007 - 10:25:28 - 1/2/2007 - 10:25:28 - 1.04 - ? - ? - Compute Node - 515 - 190 - - - ? - ? - EndL_OneEven - 7 - label_test - - EndL_OneEven - - - - - - - ? - - - - 1/2/2007 - 10:25:28 - 1/2/2007 - 10:25:28 - 1.04 - ? - ? - Compute Node - 1069 - 310 - - - ? - ? - control_m3p1 - 8 - label_test - - control_m3p1 - - - long - N - - - long - K - - - - - long - ValOne - - - long - ValEven - - - long - NT - - - long - KT - - - - - - - C_NotOneIsEven - - - - - 1/2/2007 - 10:25:28 - 1/2/2007 - 10:25:28 - 1.04 - ? - ? - Compute Node - 973 - 59 - - - ? - ? - control_div2 - 8 - label_begin - - control_div2 - - - long - N - - - long - K - - - - - long - NB - - - long - KB - - - - - - - control_div2 - - - - - 1/2/2007 - 10:25:28 - 1/2/2007 - 10:25:28 - 1.04 - ? - ? - Compute Node - 973 - 424 - - - - - test_ISEVEN - BoolEven - label_test - ValEven - - - 493 - 241 - - - 492 - 405 - - - - - test_ISONE - BoolOne - label_test - ValOne - - - 476 - 222 - - - 476 - 202 - - - - - m3p1 - anEvenInteger - control_m3p1 - N - - - - div2 - anInteger - control_div2 - N - - - - incr - aNewCount - control_div2 - K - - - 954 - 475 - - - 953 - 251 - - - - - incr - aNewCount - control_m3p1 - K - - - 955 - 110 - - - 953 - 250 - - - - - label_begin - NT - test_ISONE - anInteger - - - 275 - 201 - - - 275 - 260 - - - - - label_begin - NT - label_test - NT - - - - label_begin - NT - test_ISEVEN - anInteger - - - 275 - 408 - - - 275 - 261 - - - - - label_begin - KT - label_test - KT - - - 476 - 282 - - - 475 - 515 - - - 260 - 515 - - - 260 - 280 - - - - - label_test - Even - div2 - Gate - - - 722 - 480 - - - 722 - 261 - - - - - label_test - Odd - m3p1 - Gate - - - 698 - 114 - - - 698 - 281 - - - - - label_test - N - m3p1 - anOddInteger - - - 745 - 90 - - - 747 - 301 - - - - - label_test - N - div2 - anEvenInteger - - - 746 - 455 - - - 748 - 301 - - - - - label_test - K - incr - aCount - - - 733 - 250 - - - 734 - 321 - - - - - label_test - Default - EndL_OneEven - Default - - - - control_m3p1 - Gate - label_test - Gate - - - 504 - 344 - - - 505 - 5 - - - 1149 - 5 - - - 1150 - 174 - - - - - control_div2 - Gate - label_begin - Gate - - - 34 - 304 - - - 34 - 592 - - - 1145 - 586 - - - 1145 - 499 - - - - - - - GraphSyrControlGUI_2 - label_begin__NB - label_begin - NB - - 3 - 7 - - - - - GraphSyrControlGUI_2 - label_begin__KB - label_begin - KB - - 3 - 0 - - - - - - - diff --git a/Superv/Graphs/GraphTwoLoops.xml b/Superv/Graphs/GraphTwoLoops.xml deleted file mode 100644 index da6e810..0000000 --- a/Superv/Graphs/GraphTwoLoops.xml +++ /dev/null @@ -1,344 +0,0 @@ - - - - - - -? - ? - GraphTwoLoops - 1 - ? - -aNewDataFlow - - -long - Loop1__Index - -long - Loop1__Max - -long - Loop__Index - -long - Loop__Max - - -long - EndLoop1__Index - -long - EndLoop1__Max - -long - EndLoop__Index - -long - EndLoop__Max - - - 17/12/2004 - 11:3:21 - 17/12/2004 - 16:23:40 - 2.0 - JR - ? - ? - 0 - 0 - - -? - ? - Loop1 - 4 - EndLoop1 - -Loop1 - - -long - Index - -long - Max - - -long - Index - -long - Max - - - -Loop1 - - - - -More - - - - - - - - - -Next - - - - - 17/12/2004 - 16:23:40 - 17/12/2004 - 16:23:40 - 2.0 - ? - ? - Compute Node - 7 - 175 - -? - ? - EndLoop1 - 5 - Loop1 - -EndLoop1 - - -long - Index - -long - Max - - -long - Index - -long - Max - - - -EndLoop1 - - 17/12/2004 - 16:23:40 - 17/12/2004 - 16:23:40 - 2.0 - ? - ? - Compute Node - 634 - 177 - -? - ? - Loop - 4 - EndLoop - -Loop - - -long - Index - -long - Max - - -long - Index - -long - Max - - - -? - - -? - - -Next - - - - - 17/12/2004 - 16:23:40 - 17/12/2004 - 16:23:40 - 2.0 - ? - ? - Compute Node - 208 - 179 - -? - ? - EndLoop - 5 - Loop - -EndLoop - - -long - Index - -long - Max - - -long - Index - -long - Max - - - -EndLoop - - - - - - - - - 17/12/2004 - 16:23:40 - 17/12/2004 - 16:23:40 - 2.0 - ? - ? - Compute Node - 426 - 180 - - -Loop1 - DoLoop - EndLoop1 - DoLoop - - -Loop1 - Index - EndLoop1 - Index - - -Loop1 - Max - EndLoop1 - Max - - -Loop1 - Gate - Loop - Gate - - -EndLoop1 - DoLoop - Loop1 - DoLoop - - -Loop - DoLoop - EndLoop - DoLoop - - -Loop - Index - EndLoop - Index - - -Loop - Max - EndLoop - Max - - -EndLoop - DoLoop - Loop - DoLoop - - -EndLoop - Gate - EndLoop1 - Gate - - - -GraphTwoLoops - Loop1__Index - Loop1 - Index - -3 - 5 - - -GraphTwoLoops - Loop1__Max - Loop1 - Max - -3 - 15 - - -GraphTwoLoops - Loop__Index - Loop - Index - -3 - 2 - - -GraphTwoLoops - Loop__Max - Loop - Max - -3 - 20 - diff --git a/Superv/Graphs/GraphTwoLoops1.xml b/Superv/Graphs/GraphTwoLoops1.xml deleted file mode 100644 index 586a42a..0000000 --- a/Superv/Graphs/GraphTwoLoops1.xml +++ /dev/null @@ -1,338 +0,0 @@ - - - - - - -? - ? - GraphTwoLoops1 - 1 - ? - -GraphTwoLoops1 - - -long - Loop1__Index - -long - Loop1__Max - -long - Loop__Max - - -long - EndLoop1__Index - -long - EndLoop1__Max - -long - EndLoop__Index - -long - EndLoop__Max - - - 17/12/2004 - 11:3:21 - 8/7/2005 - 15:57:18 - 2.0 - JR - ? - ? - 0 - 0 - - -? - ? - Loop1 - 4 - EndLoop1 - -Loop1 - - -long - Index - -long - Max - - -long - Index - -long - Max - - - -Loop1 - - - - -More - - - - - - - - - -Next - - - - - 8/7/2005 - 15:51:35 - 8/7/2005 - 15:51:35 - 2.0 - ? - ? - Compute Node - 7 - 175 - -? - ? - EndLoop1 - 5 - Loop1 - -EndLoop1 - - -long - Index - -long - Max - - -long - Index - -long - Max - - - -EndLoop1 - - 8/7/2005 - 15:51:35 - 8/7/2005 - 15:51:35 - 2.0 - ? - ? - Compute Node - 634 - 177 - -? - ? - Loop - 4 - EndLoop - -Loop - - -long - Index - -long - Max - - -long - Index - -long - Max - - - -? - - -? - - -Next - - - - - 8/7/2005 - 15:51:35 - 8/7/2005 - 15:51:35 - 2.0 - ? - ? - Compute Node - 208 - 179 - -? - ? - EndLoop - 5 - Loop - -EndLoop - - -long - Index - -long - Max - - -long - Index - -long - Max - - - -EndLoop - - - - - - - - - 8/7/2005 - 15:51:35 - 8/7/2005 - 15:51:35 - 2.0 - ? - ? - Compute Node - 426 - 180 - - -Loop1 - DoLoop - EndLoop1 - DoLoop - - -Loop1 - Index - EndLoop1 - Index - - -Loop1 - Index - Loop - Index - - -Loop1 - Max - EndLoop1 - Max - - -Loop1 - Gate - Loop - Gate - - -EndLoop1 - DoLoop - Loop1 - DoLoop - - -Loop - DoLoop - EndLoop - DoLoop - - -Loop - Index - EndLoop - Index - - -Loop - Max - EndLoop - Max - - -EndLoop - DoLoop - Loop - DoLoop - - -EndLoop - Gate - EndLoop1 - Gate - - - -GraphTwoLoops1 - Loop1__Index - Loop1 - Index - -3 - 5 - - -GraphTwoLoops1 - Loop1__Max - Loop1 - Max - -3 - 15 - - -GraphTwoLoops1 - Loop__Max - Loop - Max - -3 - 20 - diff --git a/Superv/Graphs/GraphTypesCheck.xml b/Superv/Graphs/GraphTypesCheck.xml deleted file mode 100755 index 731192b..0000000 --- a/Superv/Graphs/GraphTypesCheck.xml +++ /dev/null @@ -1,482 +0,0 @@ - - - - - -? - ? - GraphTypesCheck - 1 - ? - -GraphTypesCheck - - -boolean - BoolCheck\InBool - -char - CharCheck\InChar - -short - ShortCheck\InShort - -float - FloatCheck\InFloat - -long - LongCheck\InLong - -double - MiscTypes\InDouble - -string - StringCheck\InString - - -string - MiscTypes\OutString - -boolean - MiscTypes\OutBool - -char - MiscTypes\OutChar - -short - MiscTypes\OutShort - -long - MiscTypes\OutLong - -float - MiscTypes\OutFloat - -double - MiscTypes\OutDouble - -SuperVisionTest::Adder - MiscTypes\OutObjRef - - - 11/9/2003 - 10:53:21 - 11/9/2003 - 14:45:54 - 1.05 - JR - ? - ? - 0 - 0 - - -TypesCheck - TypesCheck - BoolCheck - 0 - ? - -BoolCheck - - -boolean - InBool - - -boolean - OutBool - - - 11/9/2003 - 14:45:53 - 11/9/2003 - 14:45:53 - 1.05 - ? - localhost/FactoryServer - BoolCheck from TypesCheck - 202 - 108 - -TypesCheck - TypesCheck - CharCheck - 0 - ? - -CharCheck - - -char - InChar - - -char - OutChar - - - 11/9/2003 - 14:45:53 - 11/9/2003 - 14:45:53 - 1.05 - ? - localhost/FactoryServer - CharCheck from TypesCheck - 13 - 166 - -TypesCheck - TypesCheck - ShortCheck - 0 - ? - -ShortCheck - - -short - InShort - - -short - OutShort - - - 11/9/2003 - 14:45:53 - 11/9/2003 - 14:45:53 - 1.05 - ? - localhost/FactoryServer - ShortCheck from TypesCheck - 205 - 258 - -TypesCheck - TypesCheck - FloatCheck - 0 - ? - -FloatCheck - - -float - InFloat - - -float - OutFloat - - - 11/9/2003 - 14:45:53 - 11/9/2003 - 14:45:53 - 1.05 - ? - localhost/FactoryServer - FloatCheck from TypesCheck - 204 - 409 - -AddComponent - AddComponent - Addition - 0 - ? - -Addition - - - -objref - Adder - - - 11/9/2003 - 14:45:53 - 11/9/2003 - 14:45:53 - 1.05 - ? - localhost/FactoryServer - Addition from AddComponent - 16 - 459 - -TypesCheck - TypesCheck - LongCheck - 0 - ? - -LongCheck - - -long - InLong - - -long - OutLong - - - 11/9/2003 - 14:45:53 - 11/9/2003 - 14:45:53 - 1.05 - ? - localhost/FactoryServer - LongCheck from TypesCheck - 17 - 318 - -TypesCheck - TypesCheck - MiscTypes - 0 - ? - -MiscTypes - - -string - InString - -boolean - InBool - -char - InChar - -short - InShort - -long - InLong - -float - InFloat - -double - InDouble - -SuperVisionTest::Adder - InObjRef - - -string - OutString - -boolean - OutBool - -char - OutChar - -short - OutShort - -long - OutLong - -float - OutFloat - -double - OutDouble - -SuperVisionTest::Adder - OutObjRef - - - 11/9/2003 - 14:45:53 - 11/9/2003 - 14:45:53 - 1.05 - ? - localhost/FactoryServer - MiscTypes from TypesCheck - 431 - 170 - -TypesCheck - TypesCheck - StringCheck - 0 - ? - -StringCheck - - -string - InString - - -string - OutString - - - 11/9/2003 - 14:45:53 - 11/9/2003 - 14:45:53 - 1.05 - ? - localhost/FactoryServer - StringCheck from TypesCheck - 13 - 10 - - -BoolCheck - OutBool - MiscTypes - InBool - - -402 - 280 - -401 - 188 - -CharCheck - OutChar - MiscTypes - InChar - - -382 - 307 - -382 - 247 - -ShortCheck - OutShort - MiscTypes - InShort - - -FloatCheck - OutFloat - MiscTypes - InFloat - - -400 - 395 - -399 - 490 - -Addition - Adder - MiscTypes - InObjRef - - -415 - 453 - -415 - 540 - -LongCheck - OutLong - MiscTypes - InLong - - -383 - 367 - -383 - 399 - -StringCheck - OutString - MiscTypes - InString - - -412 - 251 - -411 - 91 - - -GraphTypesCheck - BoolCheck\InBool - BoolCheck - InBool - -3 - 1 - - -GraphTypesCheck - CharCheck\InChar - CharCheck - InChar - -3 - 255 - - -GraphTypesCheck - ShortCheck\InShort - ShortCheck - InShort - -3 - 16383 - - -GraphTypesCheck - FloatCheck\InFloat - FloatCheck - InFloat - -7 - 3.14159 - - -GraphTypesCheck - LongCheck\InLong - LongCheck - InLong - -3 - 2147483647 - - -GraphTypesCheck - MiscTypes\InDouble - MiscTypes - InDouble - -7 - 3.14159 - - -GraphTypesCheck - StringCheck\InString - StringCheck - InString - -18 - aString - diff --git a/Superv/Graphs/GraphUnValid.xml b/Superv/Graphs/GraphUnValid.xml deleted file mode 100755 index 4a39535..0000000 --- a/Superv/Graphs/GraphUnValid.xml +++ /dev/null @@ -1,277 +0,0 @@ - - - - - - -? - ? - GraphUnValid - 1 - ? - -GraphEssai - - -double - Add__x - -double - Add__y - - -double - Add__FuncValue - -double - Div__z - - - 11/3/2003 - 9:58:58 - 8/7/2005 - 16:1:1 - 1.04 - JR - ? - ? - 0 - 0 - - -AddComponent - AddComponent - Add - 0 - ? - -Add - - -double - x - -double - y - - -double - FuncValue - -double - z - - - 8/7/2005 - 16:1:1 - 8/7/2005 - 16:1:1 - 1.04 - ? - FactoryServer - Add from AddComponent - 8 - 62 - -SubComponent - SubComponent - Sub - 0 - ? - -Sub - - -double - x - -double - y - - -double - z - - - 8/7/2005 - 16:1:1 - 8/7/2005 - 16:1:1 - 1.04 - ? - FactoryServer - Sub from SubComponent - 203 - 4 - -MulComponent - MulComponent - Mul - 0 - ? - -Mul - - -double - x - -double - y - - -double - z - - - 8/7/2005 - 16:1:1 - 8/7/2005 - 16:1:1 - 1.04 - ? - FactoryServer - Mul from MulComponent - 390 - 62 - -DivComponent - DivComponent - Div - 0 - ? - -Div - - -double - x - -double - y - - -double - z - - - 8/7/2005 - 16:1:1 - 8/7/2005 - 16:1:1 - 1.04 - ? - FactoryServer - Div from DivComponent - 575 - 11 - - -Add - z - Mul - y - - -Add - z - Sub - y - - -182 - 113 - -183 - 170 - -Sub - z - Div - x - - -566 - 91 - -566 - 49 - -380 - 49 - -379 - 84 - -Sub - z - Mul - x - - -379 - 141 - -378 - 85 - -Mul - z - Div - y - - -565 - 120 - -565 - 141 - -Mul - z - Sub - x - - -194 - 84 - -195 - 252 - -566 - 252 - -565 - 141 - - -GraphUnValid - Add__x - Add - x - -7 - 3 - - -GraphUnValid - Add__y - Add - y - -7 - 4.5 - diff --git a/Superv/Graphs/GraphUndefinedSymbol.xml b/Superv/Graphs/GraphUndefinedSymbol.xml deleted file mode 100644 index 97d15ae..0000000 --- a/Superv/Graphs/GraphUndefinedSymbol.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - -? - ? - GraphUndefinedSymbol - 1 - ? - -GraphUndefinedSymbol - - - -long - UndefinedSymbol__return - - - 8/12/2004 - 18:16:21 - 8/12/2004 - 18:16:32 - 2.0 - JR - ? - ? - 0 - 0 - - -UndefinedSymbolComponent - UndefinedSymbolComponent - UndefinedSymbol - 0 - ? - -UndefinedSymbol - - - -long - return - - - 8/12/2004 - 18:16:32 - 8/12/2004 - 18:16:32 - 2.0 - ? - localhost/FactoryServer - UndefinedSymbol from UndefinedSymbolComponent - 146 - 166 - - diff --git a/Superv/Graphs/GraphVoidMoreLoop.xml b/Superv/Graphs/GraphVoidMoreLoop.xml deleted file mode 100644 index f3ad3bf..0000000 --- a/Superv/Graphs/GraphVoidMoreLoop.xml +++ /dev/null @@ -1,262 +0,0 @@ - - - - - - -? - ? - GraphNonVoidEndLoop_1 - 1 - ? - -GraphNonVoidEndLoop_1 - - -long - Init__Index - -long - Init__Min - -long - Init__Max - -long - Init__Incr - - -long - EndInit__Index - -long - EndInit__Min - -long - EndInit__Max - -long - EndInit__Incr - - - 24/3/2003 - 14:44:35 - 16/12/2004 - 11:17:3 - 1.04 - ? - ? - ? - 0 - 0 - - -? - ? - Init - 4 - EndInit - -Init - - -long - Index - -long - Min - -long - Max - -long - Incr - - -long - Index - -long - Min - -long - Max - -long - Incr - - - -Init - - - - - - - - -? - - -Next - - - - - - - 16/12/2004 - 11:17:3 - 16/12/2004 - 11:17:3 - 1.04 - ? - ? - Compute Node - 17 - 257 - -? - ? - EndInit - 5 - Init - -EndInit - - -long - Index - -long - Min - -long - Max - -long - Incr - - -long - Index - -long - Min - -long - Max - -long - Incr - - - -EndLoop - - - - - - - 16/12/2004 - 11:17:3 - 16/12/2004 - 11:17:3 - 1.04 - ? - ? - Compute Node - 411 - 260 - - -Init - DoLoop - EndInit - DoLoop - - -Init - Index - EndInit - Index - - -Init - Min - EndInit - Min - - -Init - Max - EndInit - Max - - -Init - Incr - EndInit - Incr - - -EndInit - DoLoop - Init - InitLoop - - - -GraphNonVoidEndLoop_1 - Init__Index - Init - Index - -3 - 0 - - -GraphNonVoidEndLoop_1 - Init__Min - Init - Min - -3 - 5 - - -GraphNonVoidEndLoop_1 - Init__Max - Init - Max - -3 - 10 - - -GraphNonVoidEndLoop_1 - Init__Incr - Init - Incr - -3 - 1 - diff --git a/Superv/Graphs/GraphWrongContainerOrComponent.xml b/Superv/Graphs/GraphWrongContainerOrComponent.xml deleted file mode 100644 index 31304c4..0000000 --- a/Superv/Graphs/GraphWrongContainerOrComponent.xml +++ /dev/null @@ -1,168 +0,0 @@ - - - - - - -? - ? - GraphWrongContainerOrComponent - 1 - ? - -GraphEssai - - -double - Add__x - -double - Add__y - -double - Sub__x - -double - Sub__y - - -double - Add__FuncValue - -double - Add__z - -double - Sub__z - - - 11/3/2003 - 9:58:58 - 21/6/2005 - 11:29:39 - 1.04 - JR - ? - ? - 0 - 0 - - -NOAddComponent - NOAddComponent - Add - 0 - ? - -Add - - -double - x - -double - y - - -double - FuncValue - -double - z - - - 21/6/2005 - 11:29:24 - 21/6/2005 - 11:29:24 - 1.04 - ? - FactoryServer - Add from AddComponent - 99 - 304 - -SubComponent - SubComponent - Sub - 0 - ? - -Sub - - -double - x - -double - y - - -double - z - - - 21/6/2005 - 11:29:24 - 21/6/2005 - 11:29:24 - 1.04 - ? - NOComputer/FactoryServer - Sub from SubComponent - 98 - 59 - - - -GraphWrongContainerOrComponent - Add__x - Add - x - -7 - 3 - - -GraphWrongContainerOrComponent - Add__y - Add - y - -7 - 4.5 - - -GraphWrongContainerOrComponent - Sub__x - Sub - x - -7 - 1.5 - - -GraphWrongContainerOrComponent - Sub__y - Sub - y - -7 - 0 - diff --git a/Superv/Graphs/GraphWrongPythonFunctions.xml b/Superv/Graphs/GraphWrongPythonFunctions.xml deleted file mode 100644 index a93f81a..0000000 --- a/Superv/Graphs/GraphWrongPythonFunctions.xml +++ /dev/null @@ -1,405 +0,0 @@ - - - - - - -? - ? - GraphWrongPythonFunctions_1 - 1 - ? - -GraphWrongPythonFunctions_1 - - -long - InitLoop__Index - -long - InitLoop__Min - -long - InitLoop__Max - - -long - EndOfInitLoop__Index - -long - EndOfInitLoop__Min - -long - EndOfInitLoop__Max - - - 22/10/2003 - 10:36:39 - 21/6/2005 - 10:54:1 - 1.05 - JR - ? - ? - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - - -long - a - - - -IsOdd - - - - - - 21/6/2005 - 10:54:1 - 21/6/2005 - 10:54:1 - 1.05 - ? - ? - Python function - 397 - 1 - -? - ? - InitLoop - 4 - EndOfInitLoop - -InitLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -InitLoop - - - - - -More - - - -Next - - - 21/6/2005 - 10:54:1 - 21/6/2005 - 10:54:1 - 1.05 - ? - ? - Compute Node - 10 - 108 - -? - ? - EndOfInitLoop - 5 - InitLoop - -EndOfInitLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -EndOfInitLoop - - - - - - - - 21/6/2005 - 10:54:1 - 21/6/2005 - 10:54:1 - 1.05 - ? - ? - Compute Node - 767 - 102 - -? - ? - Switch - 6 - EndSwitch - -Switch - - -long - a - - -long - Odd - -int - Even - -int - a - - - -Switch - - - - - - 21/6/2005 - 10:54:1 - 21/6/2005 - 10:54:1 - 1.05 - ? - ? - Compute Node - 194 - 109 - -? - ? - EndSwitch - 7 - Switch - -EndSwitch - - -long - a - -long - Even - - -long - a - - - -EndSwitch - - - - 21/6/2005 - 10:54:1 - 21/6/2005 - 10:54:1 - 1.05 - ? - ? - Compute Node - 587 - 103 - -? - ? - ValEven - 3 - ? - -ValEven - - -long - Even - - -long - Even - - - -ValEven - - - - - - 21/6/2005 - 10:54:1 - 21/6/2005 - 10:54:1 - 2.0 - ? - ? - Compute Node - 396 - 222 - - -IsOdd - a - EndSwitch - a - - -InitLoop - DoLoop - EndOfInitLoop - DoLoop - - -InitLoop - Index - Switch - a - - -InitLoop - Min - EndOfInitLoop - Min - - -InitLoop - Max - EndOfInitLoop - Max - - -EndOfInitLoop - DoLoop - InitLoop - DoLoop - - -Switch - Odd - IsOdd - Gate - - -Switch - Even - ValEven - Even - - -Switch - a - IsOdd - a - - -Switch - Default - EndSwitch - Default - - -EndSwitch - a - EndOfInitLoop - Index - - -ValEven - Even - EndSwitch - Even - - - -GraphWrongPythonFunctions_1 - InitLoop__Index - InitLoop - Index - -3 - 0 - - -GraphWrongPythonFunctions_1 - InitLoop__Min - InitLoop - Min - -3 - 5 - - -GraphWrongPythonFunctions_1 - InitLoop__Max - InitLoop - Max - -3 - 23 - diff --git a/Superv/Graphs/Graphs.xml b/Superv/Graphs/Graphs.xml deleted file mode 100644 index 65acb2d..0000000 --- a/Superv/Graphs/Graphs.xml +++ /dev/null @@ -1,476 +0,0 @@ - - - - - -? - ? - Graphs - 1 - ? - -Graphs - - -double - Add\x - -double - Add\y - -double - Sub\y - -double - Mul\y - -double - Add_1\x - -double - Add_1\y - -double - Mul_1\y - - -double - Add\FuncValue - -double - Div\z - -double - Div_1\z - - - 11/3/2003 - 15:3:57 - 19/9/2003 - 15:18:32 - 1.04 - ? - ? - ? - 0 - 0 - - -AddComponent - AddComponent - Add - 0 - ? - -Add - - -double - x - -double - y - - -double - FuncValue - -double - z - - - 19/9/2003 - 15:18:1 - 19/9/2003 - 15:18:1 - 1.04 - ? - localhost/FactoryServer - Add from AddComponent - 30 - 8 - -SubComponent - SubComponent - Sub - 0 - ? - -Sub - - -double - x - -double - y - - -double - z - - - 19/9/2003 - 15:18:1 - 19/9/2003 - 15:18:1 - 1.04 - ? - localhost/FactoryServer - Sub from SubComponent - 241 - 38 - -MulComponent - MulComponent - Mul - 0 - ? - -Mul - - -double - x - -double - y - - -double - z - - - 19/9/2003 - 15:18:1 - 19/9/2003 - 15:18:1 - 1.04 - ? - localhost/FactoryServer - Mul from MulComponent - 439 - 39 - -DivComponent - DivComponent - Div - 0 - ? - -Div - - -double - x - -double - y - - -double - z - - - 19/9/2003 - 15:18:1 - 19/9/2003 - 15:18:1 - 1.04 - ? - localhost/FactoryServer - Div from DivComponent - 633 - 120 - -AddComponent - AddComponent - Add_1 - 0 - ? - -Add - - -double - x - -double - y - - -double - FuncValue - -double - z - - - 19/9/2003 - 15:18:1 - 19/9/2003 - 15:18:1 - 1.04 - ? - localhost/FactoryServer - Add from AddComponent - 13 - 297 - -SubComponent - SubComponent - Sub_1 - 0 - ? - -Sub - - -double - x - -double - y - - -double - z - - - 19/9/2003 - 15:18:1 - 19/9/2003 - 15:18:1 - 1.04 - ? - localhost/FactoryServer - Sub from SubComponent - 235 - 217 - -MulComponent - MulComponent - Mul_1 - 0 - ? - -Mul - - -double - x - -double - y - - -double - z - - - 19/9/2003 - 15:18:1 - 19/9/2003 - 15:18:1 - 1.04 - ? - localhost/FactoryServer - Mul from MulComponent - 423 - 375 - -DivComponent - DivComponent - Div_1 - 0 - ? - -Div - - -double - x - -double - y - - -double - z - - - 19/9/2003 - 15:18:1 - 19/9/2003 - 15:18:1 - 1.04 - ? - localhost/FactoryServer - Div from DivComponent - 630 - 284 - - -Add - z - Sub - x - - -Sub - z - Div - x - - -426 - 201 - -425 - 119 - -Sub - z - Mul - x - - -Mul - z - Div - y - - -619 - 230 - -620 - 120 - -Add_1 - FuncValue - Mul_1 - x - - -396 - 455 - -395 - 378 - -Add_1 - FuncValue - Sub_1 - x - - -215 - 297 - -215 - 378 - -Add_1 - z - Sub_1 - y - - -197 - 327 - -196 - 406 - -Sub_1 - z - Div_1 - x - - -604 - 364 - -603 - 297 - -Mul_1 - z - Div_1 - y - - -610 - 394 - -610 - 455 - - -Graphs - Add\x - Add - x - -7 - 3 - - -Graphs - Add\y - Add - y - -7 - 5 - - -Graphs - Sub\y - Sub - y - -7 - 7 - - -Graphs - Mul\y - Mul - y - -7 - 11 - - -Graphs - Add_1\x - Add_1 - x - -7 - 1 - - -Graphs - Add_1\y - Add_1 - y - -7 - 2 - - -Graphs - Mul_1\y - Mul_1 - y - -7 - 4 - diff --git a/Superv/Graphs/Loop.xml b/Superv/Graphs/Loop.xml deleted file mode 100755 index 523f1fc..0000000 --- a/Superv/Graphs/Loop.xml +++ /dev/null @@ -1,329 +0,0 @@ - - - - - -? - ? - test_superv_basic_loop - 1 - ? - -test_superv_basic_loop - - -long - fori\index - -long - fori\min - -long - fori\max - -long - fori\sum - - -long - Add\incr - -long - Endfori\index - -long - Endfori\min - -long - Endfori\max - -long - Endfori\sum - - - 2/5/2003 - 13:43:38 - 2/12/2003 - 9:26:10 - 1.04 - ? - ? - ? - 0 - 0 - - -? - ? - Add - 3 - ? - -Add - - -long - sum - -long - incr - - -long - Sum - -long - incr - - - -Sum - - - - 2/12/2003 - 9:26:10 - 2/12/2003 - 9:26:10 - 1.04 - ? - ? - Python function - 220 - 40 - -? - ? - fori - 4 - Endfori - -fori - - -long - index - -long - min - -long - max - -long - sum - - -long - index - -long - min - -long - max - -long - sum - - - -Init - - min : ]]> - - - - - - -More - - - index : ]]> - - - - -Next - - - - - 2/12/2003 - 9:26:10 - 2/12/2003 - 9:26:10 - 1.04 - ? - ? - ? - 12 - 0 - -? - ? - Endfori - 5 - fori - -Endfori - - -long - index - -long - min - -long - max - -long - sum - - -long - index - -long - min - -long - max - -long - sum - - - -? - - 2/12/2003 - 9:26:10 - 2/12/2003 - 9:26:10 - 1.04 - ? - ? - ? - 432 - 0 - - -Add - Sum - Endfori - sum - - -fori - DoLoop - Endfori - DoLoop - - -fori - index - Endfori - index - - -fori - index - Add - incr - - -186 - 150 - -187 - 34 - -fori - min - Endfori - min - - -fori - max - Endfori - max - - -fori - sum - Add - sum - - -Endfori - DoLoop - fori - DoLoop - - -8 - 215 - -7 - 5 - -747 - 5 - -748 - 214 - - -test_superv_basic_loop - fori\index - fori - index - -3 - 0 - - -test_superv_basic_loop - fori\min - fori - min - -3 - 0 - - -test_superv_basic_loop - fori\max - fori - max - -3 - 1001 - - -test_superv_basic_loop - fori\sum - fori - sum - -3 - 0 - diff --git a/Superv/Graphs/MacroWithGeom.xml b/Superv/Graphs/MacroWithGeom.xml deleted file mode 100755 index 97b6db6..0000000 --- a/Superv/Graphs/MacroWithGeom.xml +++ /dev/null @@ -1,673 +0,0 @@ - - - - - - -? - ? - aNewDataFlow - 1 - ? - -aNewDataFlow - - -double - Macro_aNewDataFlow_1__sum__a - -double - Macro_aNewDataFlow_1__sum__b - -double - TranslateDXDYDZ__theDX - -double - TranslateDXDYDZ__theDZ - -double - MakeBox__theX1 - -double - MakeBox__theY1 - -double - MakeBox__theZ1 - -double - MakeBox__theX2 - -double - MakeBox__theY2 - -double - MakeBox__theZ2 - -double - MakeSphere__theX - -double - MakeSphere__theY - -double - MakeSphere__theZ - -double - MakeSphere__theRadius - -long - SetStudyID__theStudyID - - -GEOM_Object - MakeFuse_1__return - - - 29/10/2004 - 14:37:33 - 11/11/2004 - 13:15:14 - 2.0 - ? - ? - ? - 0 - 0 - - -? - ? - Macro_aNewDataFlow_1 - 10 - aNewDataFlow_1 - -aNewDataFlow_1 - - -double - sum__a - -double - sum__b - - -double - Mult__b - - - -? - - 11/11/2004 - 13:11:17 - 11/11/2004 - 13:11:17 - 2.0 - ? - ? - Macro Node - 480 - 145 - -GEOM_Superv - GEOM_Superv - TranslateDXDYDZ - 0 - ? - -TranslateDXDYDZ - - -GEOM_Object - theObject - -double - theDX - -double - theDY - -double - theDZ - - -GEOM_Object - return - - - 11/11/2004 - 13:11:58 - 11/11/2004 - 13:11:58 - 2.0 - ? - localhost/FactoryServer - TranslateDXDYDZ from GEOM_Superv - 735 - 14 - -GEOM_Superv - GEOM_Superv - MakeCopy - 0 - ? - -MakeCopy - - -GEOM_Object - theOriginal - - -GEOM_Object - return - - - 11/11/2004 - 13:12:24 - 11/11/2004 - 13:12:24 - 2.0 - ? - localhost/FactoryServer - MakeCopy from GEOM_Superv - 477 - 14 - -GEOM_Superv - GEOM_Superv - MakeBox - 0 - ? - -MakeBox - - -double - theX1 - -double - theY1 - -double - theZ1 - -double - theX2 - -double - theY2 - -double - theZ2 - - -GEOM_Object - return - - - 11/11/2004 - 13:12:49 - 11/11/2004 - 13:12:49 - 2.0 - ? - localhost/FactoryServer - MakeBox from GEOM_Superv - 219 - 14 - -GEOM_Superv - GEOM_Superv - MakeCopy_1 - 0 - ? - -MakeCopy - - -GEOM_Object - theOriginal - - -GEOM_Object - return - - - 11/11/2004 - 13:13:9 - 11/11/2004 - 13:13:9 - 2.0 - ? - localhost/FactoryServer - MakeCopy from GEOM_Superv - 482 - 306 - -GEOM_Superv - GEOM_Superv - MakeFuse - 0 - ? - -MakeFuse - - -GEOM_Object - theShape1 - -GEOM_Object - theShape2 - - -GEOM_Object - return - - - 11/11/2004 - 13:13:47 - 11/11/2004 - 13:13:47 - 2.0 - ? - localhost/FactoryServer - MakeFuse from GEOM_Superv - 950 - 121 - -GEOM_Superv - GEOM_Superv - MakeSphere - 0 - ? - -MakeSphere - - -double - theX - -double - theY - -double - theZ - -double - theRadius - - -GEOM_Object - return - - - 11/11/2004 - 13:14:15 - 11/11/2004 - 13:14:15 - 2.0 - ? - localhost/FactoryServer - MakeSphere from GEOM_Superv - 227 - 409 - -GEOM_Superv - GEOM_Superv - MakeFuse_1 - 0 - ? - -MakeFuse - - -GEOM_Object - theShape1 - -GEOM_Object - theShape2 - - -GEOM_Object - return - - - 11/11/2004 - 13:14:36 - 11/11/2004 - 13:14:36 - 2.0 - ? - localhost/FactoryServer - MakeFuse from GEOM_Superv - 1217 - 389 - -GEOM_Superv - GEOM_Superv - SetStudyID - 0 - ? - -SetStudyID - - -long - theStudyID - - - - 11/11/2004 - 13:15:1 - 11/11/2004 - 13:15:1 - 2.0 - ? - localhost/FactoryServer - SetStudyID from GEOM_Superv - 7 - 269 - - -Macro_aNewDataFlow_1 - Mult__b - TranslateDXDYDZ - theDY - - -TranslateDXDYDZ - return - MakeFuse - theShape1 - - -MakeCopy - return - TranslateDXDYDZ - theObject - - -MakeBox - return - MakeCopy - theOriginal - - -MakeBox - return - MakeCopy_1 - theOriginal - - -MakeCopy_1 - return - MakeFuse - theShape2 - - -MakeFuse - return - MakeFuse_1 - theShape1 - - -MakeSphere - return - MakeFuse_1 - theShape2 - - -SetStudyID - Gate - MakeBox - Gate - - -SetStudyID - Gate - MakeSphere - Gate - - - -aNewDataFlow - Macro_aNewDataFlow_1__sum__a - Macro_aNewDataFlow_1 - sum__a - -7 - 1 - - -aNewDataFlow - Macro_aNewDataFlow_1__sum__b - Macro_aNewDataFlow_1 - sum__b - -7 - 2 - - -aNewDataFlow - TranslateDXDYDZ__theDX - TranslateDXDYDZ - theDX - -7 - 25 - - -aNewDataFlow - TranslateDXDYDZ__theDZ - TranslateDXDYDZ - theDZ - -7 - 25 - - -aNewDataFlow - MakeBox__theX1 - MakeBox - theX1 - -7 - 0 - - -aNewDataFlow - MakeBox__theY1 - MakeBox - theY1 - -7 - 0 - - -aNewDataFlow - MakeBox__theZ1 - MakeBox - theZ1 - -7 - 0 - - -aNewDataFlow - MakeBox__theX2 - MakeBox - theX2 - -7 - 50 - - -aNewDataFlow - MakeBox__theY2 - MakeBox - theY2 - -7 - 50 - - -aNewDataFlow - MakeBox__theZ2 - MakeBox - theZ2 - -7 - 50 - - -aNewDataFlow - MakeSphere__theX - MakeSphere - theX - -7 - 0 - - -aNewDataFlow - MakeSphere__theY - MakeSphere - theY - -7 - 0 - - -aNewDataFlow - MakeSphere__theZ - MakeSphere - theZ - -7 - 0 - - -aNewDataFlow - MakeSphere__theRadius - MakeSphere - theRadius - -7 - 12 - - -aNewDataFlow - SetStudyID__theStudyID - SetStudyID - theStudyID - -3 - 1 - - - - -? - ? - aNewDataFlow_1 - 1 - ? - -aNewDataFlow_1 - - -double - sum__a - -double - sum__b - - -double - Mult__b - - - 29/10/2004 - 14:40:44 - 11/11/2004 - 13:11:18 - 2.0 - ? - ? - ? - 0 - 0 - - -? - ? - Mult - 3 - ? - -Mult - - -double - a - - -double - b - - - -Mult - - - - 11/11/2004 - 13:11:18 - 11/11/2004 - 13:11:18 - 2.0 - ? - ? - Compute Node - 382 - 78 - -? - ? - sum - 3 - ? - -sum - - -double - a - -double - b - - -double - s - - - -sum - - - 11/11/2004 - 13:11:18 - 11/11/2004 - 13:11:18 - 2.0 - ? - ? - Compute Node - 47 - 87 - - -sum - s - Mult - a - - diff --git a/Superv/Graphs/MacroWithGeomGates.xml b/Superv/Graphs/MacroWithGeomGates.xml deleted file mode 100644 index cd136e4..0000000 --- a/Superv/Graphs/MacroWithGeomGates.xml +++ /dev/null @@ -1,872 +0,0 @@ - - - - - - - ? - ? - aNewDataFlow_1_4 - 1 - ? - - aNewDataFlow_1_4 - - - double - Macro_aNewDataFlow_1__sum__a - - - double - Macro_aNewDataFlow_1__sum__b - - - double - TranslateDXDYDZ__theDX - - - double - TranslateDXDYDZ__theDZ - - - double - MakeBox__theX1 - - - double - MakeBox__theY1 - - - double - MakeBox__theZ1 - - - double - MakeBox__theX2 - - - double - MakeBox__theY2 - - - double - MakeBox__theZ2 - - - double - MakeSphere__theX - - - double - MakeSphere__theY - - - double - MakeSphere__theZ - - - double - MakeSphere__theRadius - - - long - SetStudyID__theStudyID - - - - - GEOM_Object - MakeFuse_1__return - - - - - - 29/10/2004 - 14:37:33 - 3/3/2006 - 17:3:13 - 2.0 - ? - ? - ? - 0 - 0 - - - - - ? - ? - Macro_aNewDataFlow_1 - 10 - aNewDataFlow_1_1_2 - - aNewDataFlow_1 - - - double - sum__a - - - double - sum__b - - - - - double - Mult__b - - - - - - - ? - - - - 3/3/2006 - 17:2:48 - 3/3/2006 - 17:2:48 - 3.0 - ? - ? - Macro Node - 718 - 263 - - - GEOM_Superv - GEOM_Superv - TranslateDXDYDZ - 0 - ? - - TranslateDXDYDZ - - - GEOM_Object - theObject - - - double - theDX - - - double - theDY - - - double - theDZ - - - - - GEOM_Object - return - - - - - - 3/3/2006 - 17:2:48 - 3/3/2006 - 17:2:48 - 2.0 - ? - localhost/FactoryServer - TranslateDXDYDZ from GEOM_Superv - 1051 - 118 - - - GEOM_Superv - GEOM_Superv - MakeCopy - 0 - ? - - MakeCopy - - - GEOM_Object - theOriginal - - - - - GEOM_Object - return - - - - - - 3/3/2006 - 17:2:48 - 3/3/2006 - 17:2:48 - 2.0 - ? - localhost/FactoryServer - MakeCopy from GEOM_Superv - 656 - 101 - - - GEOM_Superv - GEOM_Superv - MakeBox - 0 - ? - - MakeBox - - - double - theX1 - - - double - theY1 - - - double - theZ1 - - - double - theX2 - - - double - theY2 - - - double - theZ2 - - - - - GEOM_Object - return - - - - - - 3/3/2006 - 17:2:48 - 3/3/2006 - 17:2:48 - 2.0 - ? - localhost/FactoryServer - MakeBox from GEOM_Superv - 219 - 14 - - - GEOM_Superv - GEOM_Superv - MakeCopy_1 - 0 - ? - - MakeCopy - - - GEOM_Object - theOriginal - - - - - GEOM_Object - return - - - - - - 3/3/2006 - 17:2:48 - 3/3/2006 - 17:2:48 - 2.0 - ? - localhost/FactoryServer - MakeCopy from GEOM_Superv - 1286 - 14 - - - GEOM_Superv - GEOM_Superv - MakeFuse - 0 - ? - - MakeFuse - - - GEOM_Object - theShape1 - - - GEOM_Object - theShape2 - - - - - GEOM_Object - return - - - - - - 3/3/2006 - 17:2:48 - 3/3/2006 - 17:2:48 - 2.0 - ? - localhost/FactoryServer - MakeFuse from GEOM_Superv - 1549 - 146 - - - GEOM_Superv - GEOM_Superv - MakeSphere - 0 - ? - - MakeSphere - - - double - theX - - - double - theY - - - double - theZ - - - double - theRadius - - - - - GEOM_Object - return - - - - - - 3/3/2006 - 17:2:48 - 3/3/2006 - 17:2:48 - 2.0 - ? - localhost/FactoryServer - MakeSphere from GEOM_Superv - 1749 - 41 - - - GEOM_Superv - GEOM_Superv - MakeFuse_1 - 0 - ? - - MakeFuse - - - GEOM_Object - theShape1 - - - GEOM_Object - theShape2 - - - - - GEOM_Object - return - - - - - - 3/3/2006 - 17:2:48 - 3/3/2006 - 17:2:48 - 2.0 - ? - localhost/FactoryServer - MakeFuse from GEOM_Superv - 2007 - 210 - - - GEOM_Superv - GEOM_Superv - SetStudyID - 0 - ? - - SetStudyID - - - long - theStudyID - - - - - - - 3/3/2006 - 17:2:48 - 3/3/2006 - 17:2:48 - 2.0 - ? - localhost/FactoryServer - SetStudyID from GEOM_Superv - 7 - 269 - - - - - Macro_aNewDataFlow_1 - Mult__b - TranslateDXDYDZ - theDY - - - - TranslateDXDYDZ - return - MakeFuse - theShape1 - - - - TranslateDXDYDZ - Gate - MakeCopy_1 - Gate - - - - MakeCopy - return - TranslateDXDYDZ - theObject - - - - MakeCopy - Gate - TranslateDXDYDZ - Gate - - - - MakeBox - return - MakeCopy - theOriginal - - - - MakeBox - return - MakeCopy_1 - theOriginal - - - - MakeBox - Gate - MakeCopy - Gate - - - - MakeCopy_1 - return - MakeFuse - theShape2 - - - - MakeCopy_1 - Gate - MakeFuse - Gate - - - - MakeFuse - return - MakeFuse_1 - theShape1 - - - - MakeFuse - Gate - MakeSphere - Gate - - - - MakeSphere - return - MakeFuse_1 - theShape2 - - - - MakeSphere - Gate - MakeFuse_1 - Gate - - - - SetStudyID - Gate - MakeBox - Gate - - - - - - aNewDataFlow_1_4 - Macro_aNewDataFlow_1__sum__a - Macro_aNewDataFlow_1 - sum__a - - 7 - 1 - - - - - aNewDataFlow_1_4 - Macro_aNewDataFlow_1__sum__b - Macro_aNewDataFlow_1 - sum__b - - 7 - 2 - - - - - aNewDataFlow_1_4 - TranslateDXDYDZ__theDX - TranslateDXDYDZ - theDX - - 7 - 25 - - - - - aNewDataFlow_1_4 - TranslateDXDYDZ__theDZ - TranslateDXDYDZ - theDZ - - 7 - 25 - - - - - aNewDataFlow_1_4 - MakeBox__theX1 - MakeBox - theX1 - - 7 - 0 - - - - - aNewDataFlow_1_4 - MakeBox__theY1 - MakeBox - theY1 - - 7 - 0 - - - - - aNewDataFlow_1_4 - MakeBox__theZ1 - MakeBox - theZ1 - - 7 - 0 - - - - - aNewDataFlow_1_4 - MakeBox__theX2 - MakeBox - theX2 - - 7 - 50 - - - - - aNewDataFlow_1_4 - MakeBox__theY2 - MakeBox - theY2 - - 7 - 50 - - - - - aNewDataFlow_1_4 - MakeBox__theZ2 - MakeBox - theZ2 - - 7 - 50 - - - - - aNewDataFlow_1_4 - MakeSphere__theX - MakeSphere - theX - - 7 - 0 - - - - - aNewDataFlow_1_4 - MakeSphere__theY - MakeSphere - theY - - 7 - 0 - - - - - aNewDataFlow_1_4 - MakeSphere__theZ - MakeSphere - theZ - - 7 - 0 - - - - - aNewDataFlow_1_4 - MakeSphere__theRadius - MakeSphere - theRadius - - 7 - 12 - - - - - aNewDataFlow_1_4 - SetStudyID__theStudyID - SetStudyID - theStudyID - - 3 - 12 - - - - - - - - - ? - ? - aNewDataFlow_1_1_2 - 1 - ? - - aNewDataFlow_1_1_2 - - - double - sum__a - - - double - sum__b - - - - - double - Mult__b - - - - - - 29/10/2004 - 14:40:44 - 3/3/2006 - 17:2:48 - 2.0 - ? - ? - ? - 0 - 0 - - - - - ? - ? - Mult - 3 - ? - - Mult - - - double - a - - - - - double - b - - - - - - - Mult - - - - - - 3/3/2006 - 17:2:48 - 3/3/2006 - 17:2:48 - 2.0 - ? - ? - Compute Node - 382 - 78 - - - ? - ? - sum - 3 - ? - - sum - - - double - a - - - double - b - - - - - double - s - - - - - - - sum - - - - - 3/3/2006 - 17:2:48 - 3/3/2006 - 17:2:48 - 2.0 - ? - ? - Compute Node - 47 - 87 - - - - - sum - s - Mult - a - - - - - - - diff --git a/Superv/Graphs/MacroWithGeomGates_py.xml b/Superv/Graphs/MacroWithGeomGates_py.xml deleted file mode 100644 index 75b2232..0000000 --- a/Superv/Graphs/MacroWithGeomGates_py.xml +++ /dev/null @@ -1,965 +0,0 @@ - - - - - - - ? - ? - aNewDataFlow_1_4_1_1_1_1 - 1 - ? - - aNewDataFlow_1_4_1_1_1_1 - - - double - MakeBox1__x1 - - - double - MakeBox1__y1 - - - double - MakeBox1__z1 - - - double - MakeBox1__x2 - - - double - MakeBox1__y2 - - - double - MakeBox1__z2 - - - double - MakeSphere_1__x1 - - - double - MakeSphere_1__y1 - - - double - MakeSphere_1__z1 - - - double - MakeSphere_1__radius - - - double - Macro_aNewDataFlow_1_5_1_1__sum__a - - - double - Macro_aNewDataFlow_1_5_1_1__sum__b - - - double - MakeTranslation_1__x1 - - - double - MakeTranslation_1__z1 - - - - - objref - MakeFuse_2__shape - - - - - - 25/8/2004 - 16:28:50 - 14/12/2005 - 14:50:46 - 2.0 - ? - ? - ? - 0 - 0 - - - - - ? - ? - gag - 3 - ? - - gag - - - - - - - gag - - - - - - - 14/12/2005 - 14:49:53 - 14/12/2005 - 14:49:53 - 2.0 - ? - ? - Compute Node - 0 - 123 - - - ? - ? - MakeBox1 - 3 - ? - - MakeBox1 - - - double - x1 - - - double - y1 - - - double - z1 - - - double - x2 - - - double - y2 - - - double - z2 - - - - - objref - shape - - - - - - - MakeBox1 - - - - - - 14/12/2005 - 14:49:53 - 14/12/2005 - 14:49:53 - 2.0 - ? - ? - Compute Node - 194 - 3 - - - ? - ? - MakeCopy_1 - 3 - ? - - MakeCopy_1 - - - objref - shape1 - - - - - objref - shape - - - - - - - MakeCopy_1 - - - - - - 14/12/2005 - 14:49:53 - 14/12/2005 - 14:49:53 - 2.0 - ? - ? - Compute Node - 389 - 3 - - - ? - ? - MakeCopy_2 - 3 - ? - - MakeCopy_2 - - - objref - shape1 - - - - - objref - shape - - - - - - - MakeCopy_2 - - - - - - 14/12/2005 - 14:49:53 - 14/12/2005 - 14:49:53 - 2.0 - ? - ? - Compute Node - 391 - 264 - - - ? - ? - MakeSphere_1 - 3 - ? - - MakeSphere_1 - - - double - x1 - - - double - y1 - - - double - z1 - - - double - radius - - - - - objref - shape - - - - - - - MakeSphere_1 - - - - - - - 14/12/2005 - 14:49:53 - 14/12/2005 - 14:49:53 - 2.0 - ? - ? - Compute Node - 641 - 326 - - - ? - ? - MakeFuse_1 - 3 - ? - - MakeFuse_1 - - - objref - shape1 - - - objref - shape2 - - - - - objref - shape - - - - - - - MakeFuse_1 - - - - - - - 14/12/2005 - 14:49:53 - 14/12/2005 - 14:49:53 - 2.0 - ? - ? - Compute Node - 823 - 116 - - - ? - ? - MakeFuse_2 - 3 - ? - - MakeFuse_2 - - - objref - shape1 - - - objref - shape2 - - - - - objref - shape - - - - - - - MakeFuse_2 - - - - - - - - - - - - - - 14/12/2005 - 14:49:53 - 14/12/2005 - 14:49:53 - 2.0 - ? - ? - Compute Node - 1049 - 295 - - - ? - ? - Macro_aNewDataFlow_1_5_1_1 - 10 - aNewDataFlow_1_5_1_1_3_3_1_1_1_3_1 - - aNewDataFlow_1_5_1_1 - - - double - sum__a - - - double - sum__b - - - - - double - Mult__b - - - - - - - ? - - - - 14/12/2005 - 14:49:53 - 14/12/2005 - 14:49:53 - 3.0 - ? - ? - Macro Node - 391 - 121 - - - ? - ? - MakeTranslation_1 - 3 - ? - - MakeTranslation_1 - - - objref - shape1 - - - double - x1 - - - double - y1 - - - double - z1 - - - - - objref - shape - - - - - - - MakeTranslation_1 - - - - - - 14/12/2005 - 14:49:53 - 14/12/2005 - 14:49:53 - 2.0 - ? - ? - Compute Node - 621 - 12 - - - - - gag - Gate - MakeBox1 - Gate - - - - MakeBox1 - shape - MakeCopy_1 - shape1 - - - - MakeBox1 - shape - MakeCopy_2 - shape1 - - - 373 - 211 - - - - - MakeBox1 - Gate - MakeCopy_1 - Gate - - - - MakeCopy_1 - shape - MakeTranslation_1 - shape1 - - - - MakeCopy_1 - Gate - MakeCopy_2 - Gate - - - 365 - 359 - - - 570 - 98 - - - - - MakeCopy_2 - shape - MakeFuse_1 - shape2 - - - 674 - 207 - - - - - MakeCopy_2 - Gate - MakeSphere_1 - Gate - - - - MakeSphere_1 - shape - MakeFuse_2 - shape2 - - - - MakeSphere_1 - Gate - MakeTranslation_1 - Gate - - - 593 - 167 - - - 828 - 481 - - - - - MakeFuse_1 - shape - MakeFuse_2 - shape1 - - - 1017 - 366 - - - 1017 - 187 - - - - - MakeFuse_1 - Gate - MakeFuse_2 - Gate - - - 1001 - 410 - - - 1001 - 231 - - - - - Macro_aNewDataFlow_1_5_1_1 - Mult__b - MakeTranslation_1 - y1 - - - - MakeTranslation_1 - shape - MakeFuse_1 - shape1 - - - - MakeTranslation_1 - Gate - MakeFuse_1 - Gate - - - - - - aNewDataFlow_1_4_1_1_1_1 - MakeBox1__x1 - MakeBox1 - x1 - - 7 - 0 - - - - - aNewDataFlow_1_4_1_1_1_1 - MakeBox1__y1 - MakeBox1 - y1 - - 7 - 0 - - - - - aNewDataFlow_1_4_1_1_1_1 - MakeBox1__z1 - MakeBox1 - z1 - - 7 - 0 - - - - - aNewDataFlow_1_4_1_1_1_1 - MakeBox1__x2 - MakeBox1 - x2 - - 7 - 50 - - - - - aNewDataFlow_1_4_1_1_1_1 - MakeBox1__y2 - MakeBox1 - y2 - - 7 - 50 - - - - - aNewDataFlow_1_4_1_1_1_1 - MakeBox1__z2 - MakeBox1 - z2 - - 7 - 50 - - - - - aNewDataFlow_1_4_1_1_1_1 - MakeSphere_1__x1 - MakeSphere_1 - x1 - - 7 - 0 - - - - - aNewDataFlow_1_4_1_1_1_1 - MakeSphere_1__y1 - MakeSphere_1 - y1 - - 7 - 0 - - - - - aNewDataFlow_1_4_1_1_1_1 - MakeSphere_1__z1 - MakeSphere_1 - z1 - - 7 - 0 - - - - - aNewDataFlow_1_4_1_1_1_1 - MakeSphere_1__radius - MakeSphere_1 - radius - - 7 - 12 - - - - - aNewDataFlow_1_4_1_1_1_1 - Macro_aNewDataFlow_1_5_1_1__sum__a - Macro_aNewDataFlow_1_5_1_1 - sum__a - - 7 - 1 - - - - - aNewDataFlow_1_4_1_1_1_1 - Macro_aNewDataFlow_1_5_1_1__sum__b - Macro_aNewDataFlow_1_5_1_1 - sum__b - - 7 - 2 - - - - - aNewDataFlow_1_4_1_1_1_1 - MakeTranslation_1__x1 - MakeTranslation_1 - x1 - - 7 - 25 - - - - - aNewDataFlow_1_4_1_1_1_1 - MakeTranslation_1__z1 - MakeTranslation_1 - z1 - - 7 - 25 - - - - - - - - - ? - ? - aNewDataFlow_1_5_1_1_3_3_1_1_1_3_1 - 1 - ? - - aNewDataFlow_1_5_1_1_3_3_1_1_1_3_1 - - - double - sum__a - - - double - sum__b - - - - - double - Mult__b - - - - - - 25/6/2004 - 17:42:12 - 14/12/2005 - 14:49:53 - 2.0 - ? - ? - ? - 0 - 0 - - - - - ? - ? - sum - 3 - ? - - sum - - - double - a - - - double - b - - - - - double - s - - - - - - - sum - - - - - 14/12/2005 - 14:49:53 - 14/12/2005 - 14:49:53 - 2.0 - ? - ? - Compute Node - 52 - 80 - - - ? - ? - Mult - 3 - ? - - Mult - - - double - a - - - - - double - b - - - - - - - Mult - - - - - - 14/12/2005 - 14:49:53 - 14/12/2005 - 14:49:53 - 2.0 - ? - ? - Compute Node - 298 - 72 - - - - - sum - s - Mult - a - - - - - - - diff --git a/Superv/Graphs/MacroWithGeom_py.xml b/Superv/Graphs/MacroWithGeom_py.xml deleted file mode 100644 index 97da21b..0000000 --- a/Superv/Graphs/MacroWithGeom_py.xml +++ /dev/null @@ -1,730 +0,0 @@ - - - - - - -? - ? - aNewDataFlow_1_4_1_1_1_1 - 1 - ? - -aNewDataFlow_1_4_1_1_1_1 - - -double - MakeBox1__x1 - -double - MakeBox1__y1 - -double - MakeBox1__z1 - -double - MakeBox1__x2 - -double - MakeBox1__y2 - -double - MakeBox1__z2 - -double - MakeSphere_1__x1 - -double - MakeSphere_1__y1 - -double - MakeSphere_1__z1 - -double - MakeSphere_1__radius - -double - Macro_aNewDataFlow_1_5_1_1__sum__a - -double - Macro_aNewDataFlow_1_5_1_1__sum__b - -double - MakeTranslation_1__x1 - -double - MakeTranslation_1__z1 - - -objref - MakeFuse_2__shape - - - 25/8/2004 - 16:28:50 - 29/10/2004 - 15:25:57 - 2.0 - ? - ? - ? - 0 - 0 - - -? - ? - gag - 3 - ? - -gag - - - - - -gag - - - - - 29/10/2004 - 15:22:47 - 29/10/2004 - 15:22:47 - 2.0 - ? - ? - Compute Node - 0 - 123 - -? - ? - MakeBox1 - 3 - ? - -MakeBox1 - - -double - x1 - -double - y1 - -double - z1 - -double - x2 - -double - y2 - -double - z2 - - -objref - shape - - - -MakeBox1 - - - - 29/10/2004 - 15:22:47 - 29/10/2004 - 15:22:47 - 2.0 - ? - ? - Compute Node - 194 - 3 - -? - ? - MakeCopy_1 - 3 - ? - -MakeCopy_1 - - -objref - shape1 - - -objref - shape - - - -MakeCopy_1 - - - - 29/10/2004 - 15:22:47 - 29/10/2004 - 15:22:47 - 2.0 - ? - ? - Compute Node - 389 - 3 - -? - ? - MakeCopy_2 - 3 - ? - -MakeCopy_2 - - -objref - shape1 - - -objref - shape - - - -MakeCopy_2 - - - - 29/10/2004 - 15:22:47 - 29/10/2004 - 15:22:47 - 2.0 - ? - ? - Compute Node - 391 - 264 - -? - ? - MakeSphere_1 - 3 - ? - -MakeSphere_1 - - -double - x1 - -double - y1 - -double - z1 - -double - radius - - -objref - shape - - - -MakeSphere_1 - - - - - 29/10/2004 - 15:22:47 - 29/10/2004 - 15:22:47 - 2.0 - ? - ? - Compute Node - 203 - 315 - -? - ? - MakeFuse_1 - 3 - ? - -MakeFuse_1 - - -objref - shape1 - -objref - shape2 - - -objref - shape - - - -MakeFuse_1 - - - - - 29/10/2004 - 15:22:47 - 29/10/2004 - 15:22:47 - 2.0 - ? - ? - Compute Node - 823 - 116 - -? - ? - MakeFuse_2 - 3 - ? - -MakeFuse_2 - - -objref - shape1 - -objref - shape2 - - -objref - shape - - - -MakeFuse_2 - - - - - - - - - - - - - - - 29/10/2004 - 15:22:47 - 29/10/2004 - 15:22:47 - 2.0 - ? - ? - Compute Node - 1049 - 295 - -? - ? - Macro_aNewDataFlow_1_5_1_1 - 10 - aNewDataFlow_1_5_1_1_3_3_1_1_1_3_1 - -aNewDataFlow_1_5_1_1 - - -double - sum__a - -double - sum__b - - -double - Mult__b - - - -? - - 29/10/2004 - 15:22:47 - 29/10/2004 - 15:22:47 - 2.0 - ? - ? - Macro Node - 391 - 121 - -? - ? - MakeTranslation_1 - 3 - ? - -MakeTranslation_1 - - -objref - shape1 - -double - x1 - -double - y1 - -double - z1 - - -objref - shape - - - -MakeTranslation_1 - - - - 29/10/2004 - 15:24:21 - 29/10/2004 - 15:24:21 - 2.0 - ? - ? - Compute Node - 621 - 12 - - -gag - Gate - MakeBox1 - Gate - - -gag - Gate - MakeSphere_1 - Gate - - -175 - 470 - -175 - 198 - -MakeBox1 - shape - MakeCopy_1 - shape1 - - -MakeBox1 - shape - MakeCopy_2 - shape1 - - -373 - 211 - -MakeCopy_1 - shape - MakeTranslation_1 - shape1 - - -MakeCopy_2 - shape - MakeFuse_1 - shape2 - - -674 - 207 - -MakeSphere_1 - shape - MakeFuse_2 - shape2 - - -MakeFuse_1 - shape - MakeFuse_2 - shape1 - - -1017 - 366 - -1017 - 187 - -Macro_aNewDataFlow_1_5_1_1 - Mult__b - MakeTranslation_1 - y1 - - -MakeTranslation_1 - shape - MakeFuse_1 - shape1 - - - -aNewDataFlow_1_4_1_1_1_1 - MakeBox1__x1 - MakeBox1 - x1 - -7 - 0 - - -aNewDataFlow_1_4_1_1_1_1 - MakeBox1__y1 - MakeBox1 - y1 - -7 - 0 - - -aNewDataFlow_1_4_1_1_1_1 - MakeBox1__z1 - MakeBox1 - z1 - -7 - 0 - - -aNewDataFlow_1_4_1_1_1_1 - MakeBox1__x2 - MakeBox1 - x2 - -7 - 50 - - -aNewDataFlow_1_4_1_1_1_1 - MakeBox1__y2 - MakeBox1 - y2 - -7 - 50 - - -aNewDataFlow_1_4_1_1_1_1 - MakeBox1__z2 - MakeBox1 - z2 - -7 - 50 - - -aNewDataFlow_1_4_1_1_1_1 - MakeSphere_1__x1 - MakeSphere_1 - x1 - -7 - 0 - - -aNewDataFlow_1_4_1_1_1_1 - MakeSphere_1__y1 - MakeSphere_1 - y1 - -7 - 0 - - -aNewDataFlow_1_4_1_1_1_1 - MakeSphere_1__z1 - MakeSphere_1 - z1 - -7 - 0 - - -aNewDataFlow_1_4_1_1_1_1 - MakeSphere_1__radius - MakeSphere_1 - radius - -7 - 12 - - -aNewDataFlow_1_4_1_1_1_1 - Macro_aNewDataFlow_1_5_1_1__sum__a - Macro_aNewDataFlow_1_5_1_1 - sum__a - -7 - 1 - - -aNewDataFlow_1_4_1_1_1_1 - Macro_aNewDataFlow_1_5_1_1__sum__b - Macro_aNewDataFlow_1_5_1_1 - sum__b - -7 - 2 - - -aNewDataFlow_1_4_1_1_1_1 - MakeTranslation_1__x1 - MakeTranslation_1 - x1 - -7 - 25 - - -aNewDataFlow_1_4_1_1_1_1 - MakeTranslation_1__z1 - MakeTranslation_1 - z1 - -7 - 25 - - - - -? - ? - aNewDataFlow_1_5_1_1_3_3_1_1_1_3_1 - 1 - ? - -aNewDataFlow_1_5_1_1_3_3_1_1_1_3_1 - - -double - sum__a - -double - sum__b - - -double - Mult__b - - - 25/6/2004 - 17:42:12 - 29/10/2004 - 15:22:47 - 2.0 - ? - ? - ? - 0 - 0 - - -? - ? - sum - 3 - ? - -sum - - -double - a - -double - b - - -double - s - - - -sum - - - 29/10/2004 - 15:22:47 - 29/10/2004 - 15:22:47 - 2.0 - ? - ? - Compute Node - 52 - 80 - -? - ? - Mult - 3 - ? - -Mult - - -double - a - - -double - b - - - -Mult - - - - 29/10/2004 - 15:22:47 - 29/10/2004 - 15:22:47 - 2.0 - ? - ? - Compute Node - 298 - 72 - - -sum - s - Mult - a - - diff --git a/Superv/Graphs/NewGraphEssai.xml b/Superv/Graphs/NewGraphEssai.xml deleted file mode 100644 index 56850fd..0000000 --- a/Superv/Graphs/NewGraphEssai.xml +++ /dev/null @@ -1,287 +0,0 @@ - - - - - -? - ? - NewGraphEssai - 1 - ? - -NewGraphEssai - - -double - Sub\x - -double - Add\x - -double - Add\y - - -double - Div\z - - - 21/11/2001 - 17:17:23 - 19/9/2003 - 15:23:10 - 1.00 - ? - ? - ? - 0 - 0 - - -SubComponent - SubComponent - Sub - 0 - ? - -Sub - - -double - x - -double - y - - -double - z - - - 19/9/2003 - 15:20:52 - 19/9/2003 - 15:20:52 - 1.00 - ? - SubDivServer - Sub from SubComponent - 413 - 74 - -MulComponent - MulComponent - Mul - 0 - ? - -Mul - - -double - x - -double - y - - -double - z - - - 19/9/2003 - 15:20:52 - 19/9/2003 - 15:20:52 - 1.00 - ? - MulServer - Mul from MulComponent - 617 - 268 - -DivComponent - DivComponent - Div - 0 - ? - -Div - - -double - x - -double - y - - -double - z - - - 19/9/2003 - 15:20:52 - 19/9/2003 - 15:20:52 - 1.00 - ? - SubDivServer - Div from DivComponent - 823 - 74 - -AddComponent - AddComponent - Addition - 0 - ? - -Addition - - - -Adder - Adder - - - 19/9/2003 - 15:20:52 - 19/9/2003 - 15:20:52 - 1.03 - ? - localhost/AddServer - Addition from AddComponent - 11 - 268 - -? - ? - Add - 2 - ? - -Add - - -Adder - Adder - -double - x - -double - y - - -double - FuncValue - -double - z - - - 19/9/2003 - 15:20:52 - 19/9/2003 - 15:20:52 - 1.04 - ? - ? - Compute Node - 215 - 268 - - -Sub - z - Div - x - - -Sub - z - Mul - x - - -595 - 348 - -595 - 154 - -Mul - z - Div - y - - -805 - 183 - -806 - 348 - -Addition - Adder - Add - Adder - - -Add - FuncValue - Sub - y - - -395 - 183 - -395 - 349 - -Add - z - Mul - y - - - -NewGraphEssai - Sub\x - Sub - x - -7 - 4.5 - - -NewGraphEssai - Add\x - Add - x - -7 - 1.5 - - -NewGraphEssai - Add\y - Add - y - -7 - 3 - diff --git a/Superv/Graphs/NewGraphGeomEssai.xml b/Superv/Graphs/NewGraphGeomEssai.xml deleted file mode 100644 index 894365d..0000000 --- a/Superv/Graphs/NewGraphGeomEssai.xml +++ /dev/null @@ -1,327 +0,0 @@ - - - - - - -? - ? - aNewDataFlow_1 - 1 - ? - -aNewDataFlow_1 - - -long - SetStudyID__theStudyID - -double - MakeSphere__theX - -double - MakeSphere__theY - -double - MakeSphere__theZ - -double - MakeSphere__theRadius - -double - TranslateDXDYDZ__theDX - -double - TranslateDXDYDZ__theDY - -double - TranslateDXDYDZ__theDZ - - -GEOM_Object - MakeFuse__return - - - 29/10/2004 - 11:15:45 - 11/11/2004 - 13:5:45 - 2.0 - ? - ? - ? - 0 - 0 - - -GEOM_Superv - GEOM_Superv - SetStudyID - 0 - ? - -SetStudyID - - -long - theStudyID - - - - 11/11/2004 - 13:3:46 - 11/11/2004 - 13:3:46 - 2.0 - ? - localhost/FactoryServer - SetStudyID from GEOM_Superv - 9 - 118 - -GEOM_Superv - GEOM_Superv - MakeSphere - 0 - ? - -MakeSphere - - -double - theX - -double - theY - -double - theZ - -double - theRadius - - -GEOM_Object - return - - - 11/11/2004 - 13:4:18 - 11/11/2004 - 13:4:18 - 2.0 - ? - localhost/FactoryServer - MakeSphere from GEOM_Superv - 202 - 58 - -GEOM_Superv - GEOM_Superv - MakeCopy - 0 - ? - -MakeCopy - - -GEOM_Object - theOriginal - - -GEOM_Object - return - - - 11/11/2004 - 13:4:49 - 11/11/2004 - 13:4:49 - 2.0 - ? - localhost/FactoryServer - MakeCopy from GEOM_Superv - 425 - 11 - -GEOM_Superv - GEOM_Superv - TranslateDXDYDZ - 0 - ? - -TranslateDXDYDZ - - -GEOM_Object - theObject - -double - theDX - -double - theDY - -double - theDZ - - -GEOM_Object - return - - - 11/11/2004 - 13:5:12 - 11/11/2004 - 13:5:12 - 2.0 - ? - localhost/FactoryServer - TranslateDXDYDZ from GEOM_Superv - 428 - 197 - -GEOM_Superv - GEOM_Superv - MakeFuse - 0 - ? - -MakeFuse - - -GEOM_Object - theShape1 - -GEOM_Object - theShape2 - - -GEOM_Object - return - - - 11/11/2004 - 13:5:36 - 11/11/2004 - 13:5:36 - 2.0 - ? - localhost/FactoryServer - MakeFuse from GEOM_Superv - 651 - 103 - - -SetStudyID - Gate - MakeSphere - Gate - - -MakeSphere - return - MakeCopy - theOriginal - - -MakeSphere - return - TranslateDXDYDZ - theObject - - -MakeCopy - return - MakeFuse - theShape1 - - -TranslateDXDYDZ - return - MakeFuse - theShape2 - - - -aNewDataFlow_1 - SetStudyID__theStudyID - SetStudyID - theStudyID - -3 - 1 - - -aNewDataFlow_1 - MakeSphere__theX - MakeSphere - theX - -7 - 0 - - -aNewDataFlow_1 - MakeSphere__theY - MakeSphere - theY - -7 - 0 - - -aNewDataFlow_1 - MakeSphere__theZ - MakeSphere - theZ - -7 - 0 - - -aNewDataFlow_1 - MakeSphere__theRadius - MakeSphere - theRadius - -7 - 50 - - -aNewDataFlow_1 - TranslateDXDYDZ__theDX - TranslateDXDYDZ - theDX - -7 - 80 - - -aNewDataFlow_1 - TranslateDXDYDZ__theDY - TranslateDXDYDZ - theDY - -7 - 0 - - -aNewDataFlow_1 - TranslateDXDYDZ__theDZ - TranslateDXDYDZ - theDZ - -7 - 0 - diff --git a/Superv/Graphs/NewGraphGeomEssaiGates.xml b/Superv/Graphs/NewGraphGeomEssaiGates.xml deleted file mode 100644 index 0a122d7..0000000 --- a/Superv/Graphs/NewGraphGeomEssaiGates.xml +++ /dev/null @@ -1,433 +0,0 @@ - - - - - - - ? - ? - aNewDataFlow_1 - 1 - ? - - aNewDataFlow_1 - - - long - SetStudyID__theStudyID - - - double - MakeSphere__theX - - - double - MakeSphere__theY - - - double - MakeSphere__theZ - - - double - MakeSphere__theRadius - - - double - TranslateDXDYDZ__theDX - - - double - TranslateDXDYDZ__theDY - - - double - TranslateDXDYDZ__theDZ - - - - - GEOM_Object - MakeFuse__return - - - - - - 29/10/2004 - 11:15:45 - 14/12/2005 - 14:54:54 - 2.0 - ? - ? - ? - 0 - 0 - - - - - GEOM_Superv - GEOM_Superv - SetStudyID - 0 - ? - - SetStudyID - - - long - theStudyID - - - - - - - 14/12/2005 - 14:54:37 - 14/12/2005 - 14:54:37 - 2.0 - ? - localhost/FactoryServer - SetStudyID from GEOM_Superv - 9 - 118 - - - GEOM_Superv - GEOM_Superv - MakeSphere - 0 - ? - - MakeSphere - - - double - theX - - - double - theY - - - double - theZ - - - double - theRadius - - - - - GEOM_Object - return - - - - - - 14/12/2005 - 14:54:37 - 14/12/2005 - 14:54:37 - 2.0 - ? - localhost/FactoryServer - MakeSphere from GEOM_Superv - 202 - 58 - - - GEOM_Superv - GEOM_Superv - MakeCopy - 0 - ? - - MakeCopy - - - GEOM_Object - theOriginal - - - - - GEOM_Object - return - - - - - - 14/12/2005 - 14:54:37 - 14/12/2005 - 14:54:37 - 2.0 - ? - localhost/FactoryServer - MakeCopy from GEOM_Superv - 425 - 11 - - - GEOM_Superv - GEOM_Superv - TranslateDXDYDZ - 0 - ? - - TranslateDXDYDZ - - - GEOM_Object - theObject - - - double - theDX - - - double - theDY - - - double - theDZ - - - - - GEOM_Object - return - - - - - - 14/12/2005 - 14:54:37 - 14/12/2005 - 14:54:37 - 2.0 - ? - localhost/FactoryServer - TranslateDXDYDZ from GEOM_Superv - 428 - 197 - - - GEOM_Superv - GEOM_Superv - MakeFuse - 0 - ? - - MakeFuse - - - GEOM_Object - theShape1 - - - GEOM_Object - theShape2 - - - - - GEOM_Object - return - - - - - - 14/12/2005 - 14:54:37 - 14/12/2005 - 14:54:37 - 2.0 - ? - localhost/FactoryServer - MakeFuse from GEOM_Superv - 651 - 103 - - - - - SetStudyID - Gate - MakeSphere - Gate - - - - MakeSphere - return - MakeCopy - theOriginal - - - - MakeSphere - return - TranslateDXDYDZ - theObject - - - - MakeSphere - Gate - MakeCopy - Gate - - - - MakeCopy - return - MakeFuse - theShape1 - - - - MakeCopy - Gate - TranslateDXDYDZ - Gate - - - 390 - 352 - - - 618 - 107 - - - - - TranslateDXDYDZ - return - MakeFuse - theShape2 - - - - TranslateDXDYDZ - Gate - MakeFuse - Gate - - - - - - aNewDataFlow_1 - SetStudyID__theStudyID - SetStudyID - theStudyID - - 3 - 1 - - - - - aNewDataFlow_1 - MakeSphere__theX - MakeSphere - theX - - 7 - 0 - - - - - aNewDataFlow_1 - MakeSphere__theY - MakeSphere - theY - - 7 - 0 - - - - - aNewDataFlow_1 - MakeSphere__theZ - MakeSphere - theZ - - 7 - 0 - - - - - aNewDataFlow_1 - MakeSphere__theRadius - MakeSphere - theRadius - - 7 - 50 - - - - - aNewDataFlow_1 - TranslateDXDYDZ__theDX - TranslateDXDYDZ - theDX - - 7 - 80 - - - - - aNewDataFlow_1 - TranslateDXDYDZ__theDY - TranslateDXDYDZ - theDY - - 7 - 0 - - - - - aNewDataFlow_1 - TranslateDXDYDZ__theDZ - TranslateDXDYDZ - theDZ - - 7 - 0 - - - - - - - diff --git a/Superv/Graphs/NewGraphGeomEssaiGates_py.xml b/Superv/Graphs/NewGraphGeomEssaiGates_py.xml deleted file mode 100644 index d1de75e..0000000 --- a/Superv/Graphs/NewGraphGeomEssaiGates_py.xml +++ /dev/null @@ -1,458 +0,0 @@ - - - - - - - ? - ? - aNewDataFlow_1_4_2_1 - 1 - ? - - aNewDataFlow_1_4_2_1 - - - double - MakeSphere_1__x1 - - - double - MakeSphere_1__y1 - - - double - MakeSphere_1__z1 - - - double - MakeSphere_1__radius - - - double - MakeTranslation_1__x1 - - - double - MakeTranslation_1__y1 - - - double - MakeTranslation_1__z1 - - - - - objref - MakeFuse_1__shape - - - - - - 25/8/2004 - 16:28:50 - 14/12/2005 - 14:55:42 - 2.0 - ? - ? - ? - 0 - 0 - - - - - ? - ? - gag - 3 - ? - - gag - - - - - - - gag - - - - - - - 14/12/2005 - 14:55:28 - 14/12/2005 - 14:55:28 - 2.0 - ? - ? - Compute Node - 0 - 123 - - - ? - ? - MakeCopy_1 - 3 - ? - - MakeCopy_1 - - - objref - shape1 - - - - - objref - shape - - - - - - - MakeCopy_1 - - - - - - 14/12/2005 - 14:55:28 - 14/12/2005 - 14:55:28 - 2.0 - ? - ? - Compute Node - 385 - 3 - - - ? - ? - MakeSphere_1 - 3 - ? - - MakeSphere_1 - - - double - x1 - - - double - y1 - - - double - z1 - - - double - radius - - - - - objref - shape - - - - - - - MakeSphere_1 - - - - - - - 14/12/2005 - 14:55:28 - 14/12/2005 - 14:55:28 - 2.0 - ? - ? - Compute Node - 193 - 67 - - - ? - ? - MakeTranslation_1 - 3 - ? - - MakeTranslation_1 - - - objref - shape1 - - - double - x1 - - - double - y1 - - - double - z1 - - - - - objref - shape - - - - - - - MakeTranslation_1 - - - - - - 14/12/2005 - 14:55:28 - 14/12/2005 - 14:55:28 - 2.0 - ? - ? - Compute Node - 388 - 146 - - - ? - ? - MakeFuse_1 - 3 - ? - - MakeFuse_1 - - - objref - shape1 - - - objref - shape2 - - - - - objref - shape - - - - - - - MakeFuse_1 - - - - - - - - - - - - - - 14/12/2005 - 14:55:28 - 14/12/2005 - 14:55:28 - 2.0 - ? - ? - Compute Node - 618 - 64 - - - - - gag - Gate - MakeSphere_1 - Gate - - - - MakeCopy_1 - shape - MakeFuse_1 - shape1 - - - - MakeCopy_1 - Gate - MakeTranslation_1 - Gate - - - 363 - 301 - - - 568 - 98 - - - - - MakeSphere_1 - shape - MakeCopy_1 - shape1 - - - - MakeSphere_1 - shape - MakeTranslation_1 - shape1 - - - - MakeSphere_1 - Gate - MakeCopy_1 - Gate - - - - MakeTranslation_1 - shape - MakeFuse_1 - shape2 - - - - MakeTranslation_1 - Gate - MakeFuse_1 - Gate - - - - - - aNewDataFlow_1_4_2_1 - MakeSphere_1__x1 - MakeSphere_1 - x1 - - 7 - 0 - - - - - aNewDataFlow_1_4_2_1 - MakeSphere_1__y1 - MakeSphere_1 - y1 - - 7 - 0 - - - - - aNewDataFlow_1_4_2_1 - MakeSphere_1__z1 - MakeSphere_1 - z1 - - 7 - 0 - - - - - aNewDataFlow_1_4_2_1 - MakeSphere_1__radius - MakeSphere_1 - radius - - 7 - 50 - - - - - aNewDataFlow_1_4_2_1 - MakeTranslation_1__x1 - MakeTranslation_1 - x1 - - 7 - 80 - - - - - aNewDataFlow_1_4_2_1 - MakeTranslation_1__y1 - MakeTranslation_1 - y1 - - 7 - 0 - - - - - aNewDataFlow_1_4_2_1 - MakeTranslation_1__z1 - MakeTranslation_1 - z1 - - 7 - 0 - - - - - - - diff --git a/Superv/Graphs/NewGraphGeomEssai_py.xml b/Superv/Graphs/NewGraphGeomEssai_py.xml deleted file mode 100644 index 1ee9cc2..0000000 --- a/Superv/Graphs/NewGraphGeomEssai_py.xml +++ /dev/null @@ -1,350 +0,0 @@ - - - - - - -? - ? - aNewDataFlow_1_4_2_1 - 1 - ? - -aNewDataFlow_1_4_2_1 - - -double - MakeSphere_1__x1 - -double - MakeSphere_1__y1 - -double - MakeSphere_1__z1 - -double - MakeSphere_1__radius - -double - MakeTranslation_1__x1 - -double - MakeTranslation_1__y1 - -double - MakeTranslation_1__z1 - - -objref - MakeFuse_1__shape - - - 25/8/2004 - 16:28:50 - 29/10/2004 - 15:17:44 - 2.0 - ? - ? - ? - 0 - 0 - - -? - ? - gag - 3 - ? - -gag - - - - - -gag - - - - - 29/10/2004 - 15:17:44 - 29/10/2004 - 15:17:44 - 2.0 - ? - ? - Compute Node - 0 - 123 - -? - ? - MakeCopy_1 - 3 - ? - -MakeCopy_1 - - -objref - shape1 - - -objref - shape - - - -MakeCopy_1 - - - - 29/10/2004 - 15:17:44 - 29/10/2004 - 15:17:44 - 2.0 - ? - ? - Compute Node - 385 - 3 - -? - ? - MakeSphere_1 - 3 - ? - -MakeSphere_1 - - -double - x1 - -double - y1 - -double - z1 - -double - radius - - -objref - shape - - - -MakeSphere_1 - - - - - 29/10/2004 - 15:17:44 - 29/10/2004 - 15:17:44 - 2.0 - ? - ? - Compute Node - 193 - 67 - -? - ? - MakeTranslation_1 - 3 - ? - -MakeTranslation_1 - - -objref - shape1 - -double - x1 - -double - y1 - -double - z1 - - -objref - shape - - - -MakeTranslation_1 - - - - 29/10/2004 - 15:17:44 - 29/10/2004 - 15:17:44 - 2.0 - ? - ? - Compute Node - 388 - 146 - -? - ? - MakeFuse_1 - 3 - ? - -MakeFuse_1 - - -objref - shape1 - -objref - shape2 - - -objref - shape - - - -MakeFuse_1 - - - - - - - - - - - - - - - 29/10/2004 - 15:17:44 - 29/10/2004 - 15:17:44 - 2.0 - ? - ? - Compute Node - 618 - 64 - - -gag - Gate - MakeSphere_1 - Gate - - -MakeCopy_1 - shape - MakeFuse_1 - shape1 - - -MakeSphere_1 - shape - MakeCopy_1 - shape1 - - -MakeSphere_1 - shape - MakeTranslation_1 - shape1 - - -MakeTranslation_1 - shape - MakeFuse_1 - shape2 - - - -aNewDataFlow_1_4_2_1 - MakeSphere_1__x1 - MakeSphere_1 - x1 - -7 - 0 - - -aNewDataFlow_1_4_2_1 - MakeSphere_1__y1 - MakeSphere_1 - y1 - -7 - 0 - - -aNewDataFlow_1_4_2_1 - MakeSphere_1__z1 - MakeSphere_1 - z1 - -7 - 0 - - -aNewDataFlow_1_4_2_1 - MakeSphere_1__radius - MakeSphere_1 - radius - -7 - 50 - - -aNewDataFlow_1_4_2_1 - MakeTranslation_1__x1 - MakeTranslation_1 - x1 - -7 - 80 - - -aNewDataFlow_1_4_2_1 - MakeTranslation_1__y1 - MakeTranslation_1 - y1 - -7 - 0 - - -aNewDataFlow_1_4_2_1 - MakeTranslation_1__z1 - MakeTranslation_1 - z1 - -7 - 0 - diff --git a/Superv/Graphs/SyrStruct.xml b/Superv/Graphs/SyrStruct.xml deleted file mode 100644 index a8a5263..0000000 --- a/Superv/Graphs/SyrStruct.xml +++ /dev/null @@ -1,1193 +0,0 @@ - - - - - - -? - ? - SyrStruct - 1 - ? - -SyrStruct - - -string - SyrComponent__aContainer - -string - SyrComponent__aComponent - -long - forN__N - -long - forN__K - -long - forN__min - -long - forN__max - -long - fori__i - - -long - EndOfforN__N - -long - EndOfforN__K - -objref - EndOfforN__SyrComponent - -long - EndOfforN__min - -long - EndOfforN__max - -objref - EndOfwhileNotOne__SyrComponent - -long - EndOfwhileNotOne__N - -long - EndOffori__i - -objref - EndOfwhileEven__SyrComponent - - - 4/8/2003 - 17:56:20 - 19/1/2005 - 13:1:13 - 1.04 - JR - ? - Syracuse algorithm - 0 - 0 - - -SyrComponent - SyrComponent - m3 - 0 - ? - -C_M3 - - -long - anOddInteger - - -long - anInteger - - - 19/1/2005 - 13:1:13 - 19/1/2005 - 13:1:13 - 1.04 - ? - localhost/FactoryServer - C_M3 from SyrComponent - 672 - 28 - -SyrComponent - SyrComponent - m3incr - 0 - ? - -C_INCR - - -long - aCount - - -long - aNewCount - - - 19/1/2005 - 13:1:13 - 19/1/2005 - 13:1:13 - 1.04 - ? - localhost/FactoryServer - C_INCR from SyrComponent - 899 - 28 - -SyrComponent - SyrComponent - incra - 0 - ? - -C_INCR - - -long - aCount - - -long - aNewCount - - - 19/1/2005 - 13:1:13 - 19/1/2005 - 13:1:13 - 1.04 - ? - localhost/FactoryServer - C_INCR from SyrComponent - 824 - 218 - -SyrComponent - SyrComponent - div2 - 0 - ? - -C_DIV2 - - -long - anEvenInteger - - -long - anInteger - - - 19/1/2005 - 13:1:13 - 19/1/2005 - 13:1:13 - 1.04 - ? - localhost/FactoryServer - C_DIV2 from SyrComponent - 817 - 431 - -SyrComponent - SyrComponent - incrb - 0 - ? - -C_INCR - - -long - aCount - - -long - aNewCount - - - 19/1/2005 - 13:1:13 - 19/1/2005 - 13:1:13 - 1.04 - ? - localhost/FactoryServer - C_INCR from SyrComponent - 821 - 574 - -? - ? - SyrComponent - 3 - ? - -SyrComponent - - -string - aContainer - -string - aComponent - - -objref - SyrComponentobjref - - - -SyrComponent - - - - - - - 19/1/2005 - 13:1:13 - 19/1/2005 - 13:1:13 - 1.04 - ? - ? - SyrComponent( aContainer , aComponent ) - 0 - 0 - -? - ? - forN - 4 - EndOfforN - -forN - - -long - N - -long - K - -objref - SyrComponent - -long - min - -long - max - - -long - N - -long - K - -objref - SyrComponent - -long - min - -long - max - - - -InitN - - - 0 : ]]> - = min : ]]> - - - -MoreN - - - - NN : ]]> - - - -NextN - - - - - 19/1/2005 - 13:1:13 - 19/1/2005 - 13:1:13 - 1.04 - ? - ? - InitN , MoreN , NextN - 20 - 302 - -? - ? - EndOfforN - 5 - forN - -EndOfforN - - -long - N - -long - K - -objref - SyrComponent - -long - min - -long - max - - -long - N - -long - K - -objref - SyrComponent - -long - min - -long - max - - - -? - - 19/1/2005 - 13:1:13 - 19/1/2005 - 13:1:13 - 1.04 - ? - ? - Compute Node - 1590 - 331 - -? - ? - whileNotOne - 4 - EndOfwhileNotOne - -whileNotOne - - -objref - SyrComponent - -long - N - -long - K - - -objref - SyrComponent - -long - N - -long - K - - - -InitNotOne - - - - - -MoreNotOne - - - - - -NextNotOne - - - - 19/1/2005 - 13:1:13 - 19/1/2005 - 13:1:13 - 1.04 - ? - ? - InitNotOne , MoreNotOne , NextNotOne - 215 - 282 - -? - ? - EndOfwhileNotOne - 5 - whileNotOne - -EndOfwhileNotOne - - -objref - SyrComponent - -long - N - -long - K - - -objref - SyrComponent - -long - N - -long - K - - - -? - - 19/1/2005 - 13:1:13 - 19/1/2005 - 13:1:13 - 1.04 - ? - ? - Compute Node - 1405 - 311 - -? - ? - fori - 4 - EndOffori - -fori - - -long - i - -long - K - - -long - i - -long - K - - - -Initfori - - - - -Morefori - - - - - - - -Nextfori - - - - 19/1/2005 - 13:1:13 - 19/1/2005 - 13:1:13 - 1.04 - ? - ? - Initfori, Morefori, Nextfori - 641 - 238 - -? - ? - EndOffori - 5 - fori - -EndOffori - - -long - i - -long - K - - -long - i - -long - K - - - -? - - 19/1/2005 - 13:1:13 - 19/1/2005 - 13:1:13 - 1.04 - ? - ? - Compute Node - 1009 - 238 - -? - ? - whileEven - 4 - EndOfwhileEven - -whileEven - - -objref - SyrComponent - -long - N - -long - K - - -objref - SyrComponent - -long - N - -long - K - - - -InitEven - - - - -MoreEven - - - - - -NextEven - - - - 19/1/2005 - 13:1:13 - 19/1/2005 - 13:1:13 - 1.04 - ? - ? - InitEven, MoreEven, NextEven - 632 - 451 - -? - ? - EndOfwhileEven - 5 - whileEven - -EndOfwhileEven - - -objref - SyrComponent - -long - N - -long - K - - -objref - SyrComponent - -long - N - -long - K - - - -? - - 19/1/2005 - 13:1:13 - 19/1/2005 - 13:1:13 - 1.04 - ? - ? - Compute Node - 1006 - 451 - -? - ? - ifNotEven - 6 - EndOfifNotEven - -ifNotEven - - -objref - SyrComponent - -long - N - -long - K - - -long - Odd - -long - Even - -objref - SyrComponent - -long - N - -long - K - - - -ifNotEven - - - - - - 19/1/2005 - 13:1:13 - 19/1/2005 - 13:1:13 - 1.04 - ? - ? - ifNotEven - 407 - 282 - -? - ? - EndOfifNotEven - 7 - ifNotEven - -EndOfifNotEven - - -long - N - -long - K - - -long - N - -long - K - - - -? - - 19/1/2005 - 13:1:13 - 19/1/2005 - 13:1:13 - 1.04 - ? - ? - Compute Node - 1220 - 331 - - -m3 - anInteger - m3incr - aCount - - -m3incr - aNewCount - EndOfifNotEven - N - - -1193 - 362 - -1191 - 100 - -incra - aNewCount - EndOffori - K - - -div2 - anInteger - EndOfwhileEven - N - - -incrb - aNewCount - EndOfwhileEven - K - - -992 - 521 - -992 - 645 - -SyrComponent - SyrComponentobjref - forN - SyrComponent - - -8 - 373 - -8 - 181 - -196 - 181 - -196 - 71 - -forN - DoLoop - EndOfforN - DoLoop - - -forN - N - whileNotOne - N - - -forN - N - EndOfforN - N - - -forN - K - whileNotOne - K - - -forN - SyrComponent - EndOfforN - SyrComponent - - -forN - SyrComponent - whileNotOne - SyrComponent - - -197 - 313 - -197 - 373 - -forN - min - EndOfforN - min - - -forN - max - EndOfforN - max - - -EndOfforN - DoLoop - forN - DoLoop - - -whileNotOne - DoLoop - EndOfwhileNotOne - DoLoop - - -whileNotOne - SyrComponent - EndOfwhileNotOne - SyrComponent - - -whileNotOne - SyrComponent - ifNotEven - SyrComponent - - -whileNotOne - N - ifNotEven - N - - -whileNotOne - K - ifNotEven - K - - -EndOfwhileNotOne - DoLoop - whileNotOne - DoLoop - - -EndOfwhileNotOne - K - EndOfforN - K - - -fori - DoLoop - EndOffori - DoLoop - - -fori - i - EndOffori - i - - -fori - K - incra - aCount - - -EndOffori - DoLoop - fori - DoLoop - - -EndOffori - K - EndOfifNotEven - K - - -1180 - 382 - -1180 - 289 - -whileEven - DoLoop - EndOfwhileEven - DoLoop - - -whileEven - SyrComponent - EndOfwhileEven - SyrComponent - - -whileEven - N - div2 - anEvenInteger - - -whileEven - K - incrb - aCount - - -805 - 645 - -805 - 522 - -EndOfwhileEven - DoLoop - whileEven - DoLoop - - -EndOfwhileEven - N - EndOfifNotEven - N - - -1192 - 362 - -1192 - 502 - -EndOfwhileEven - K - EndOfifNotEven - K - - -1180 - 382 - -1180 - 522 - -ifNotEven - Odd - m3 - Gate - - -594 - 123 - -594 - 313 - -ifNotEven - Odd - fori - Gate - - -ifNotEven - Even - whileEven - Gate - - -594 - 546 - -594 - 334 - -ifNotEven - SyrComponent - whileEven - SyrComponent - - -588 - 482 - -588 - 354 - -ifNotEven - N - whileEven - N - - -603 - 502 - -603 - 373 - -ifNotEven - N - m3 - anOddInteger - - -605 - 99 - -604 - 372 - -ifNotEven - K - whileEven - K - - -620 - 523 - -620 - 396 - -ifNotEven - K - fori - K - - -620 - 289 - -620 - 395 - -ifNotEven - Default - EndOfifNotEven - Default - - -1204 - 407 - -1203 - 12 - -581 - 13 - -581 - 418 - -EndOfifNotEven - N - EndOfwhileNotOne - N - - -EndOfifNotEven - K - EndOfwhileNotOne - K - - - -SyrStruct - SyrComponent__aContainer - SyrComponent - aContainer - -18 - FactoryServer - - -SyrStruct - SyrComponent__aComponent - SyrComponent - aComponent - -18 - SyrComponent - - -SyrStruct - forN__N - forN - N - -3 - 0 - - -SyrStruct - forN__K - forN - K - -3 - 0 - - -SyrStruct - forN__min - forN - min - -3 - 5 - - -SyrStruct - forN__max - forN - max - -3 - 9 - - -SyrStruct - fori__i - fori - i - -3 - 0 - diff --git a/Superv/Graphs/TestSupervMedfieldLoopFori.xml b/Superv/Graphs/TestSupervMedfieldLoopFori.xml deleted file mode 100755 index d3356ca..0000000 --- a/Superv/Graphs/TestSupervMedfieldLoopFori.xml +++ /dev/null @@ -1,464 +0,0 @@ - - - - - - -? - ? - TestSupervMedfieldLoopFori - 1 - ? - -LoopGraph - - -long - Init__index - -long - Init__min - -long - Init__max - -objref - Init__medfield - -double - Init__x1 - - -long - EndInit__index - -long - EndInit__min - -long - EndInit__max - -objref - EndInit__medfield - -double - EndInit__x1 - -objref - EndInit__aVisu - -objref - EndInit__aView - - - 15/9/2003 - 15:25:24 - 8/4/2005 - 13:44:4 - 1.04 - ? - ? - ? - 0 - 0 - - -? - ? - InitDisplay - 3 - ? - -InitDisplay - - - -objref - aVisu - -objref - aView - - - -InitDisplay - - - - - - - - - - - - - - - - - - - aVisu = ",aVisu ]]> - - - aViewManager = ",aViewManager ]]> - - aView = ",aView ]]> - - 8/4/2005 - 13:44:4 - 8/4/2005 - 13:44:4 - 1.04 - ? - ? - Compute Node - 1 - 105 - -? - ? - Init - 4 - EndInit - -Init - - -long - index - -long - min - -long - max - -objref - medfield - -double - x1 - -objref - aVisu - -objref - aView - - -long - index - -long - min - -long - max - -objref - medfield - -double - x1 - -objref - aVisu - -objref - aView - - - -Init - - = min : ]]> - - - - index = ",index ]]> - - - - - -More - - = index : ]]> - - - - DoLoop = ",DoLoop ]]> - - - - - - -Next - - - index = ",index ]]> - - - - - 8/4/2005 - 13:44:4 - 8/4/2005 - 13:44:4 - 1.04 - LD - ? - no comment - 216 - 5 - -? - ? - EndInit - 5 - Init - -EndInit - - -long - index - -long - min - -long - max - -objref - medfield - -double - x1 - -objref - aVisu - -objref - aView - - -long - index - -long - min - -long - max - -objref - medfield - -double - x1 - -objref - aVisu - -objref - aView - - - -? - - 8/4/2005 - 13:44:4 - 8/4/2005 - 13:44:4 - 1.04 - LD - ? - no comment - 631 - 5 - -Calculator - Calculator - Mul - 0 - ? - -Mul - - -FIELDDOUBLE - field1 - -double - x1 - - -FIELDDOUBLE - return - - - 8/4/2005 - 13:44:4 - 8/4/2005 - 13:44:4 - 1.04 - LD - localhost/FactoryServer - Multiply a field by a constant - 429 - 46 - - -InitDisplay - aVisu - Init - aVisu - - -InitDisplay - aView - Init - aView - - -Init - DoLoop - EndInit - DoLoop - - -Init - index - EndInit - index - - -Init - min - EndInit - min - - -Init - max - EndInit - max - - -Init - medfield - Mul - field1 - - -Init - x1 - EndInit - x1 - - -Init - x1 - Mul - x1 - - -Init - aVisu - EndInit - aVisu - - -Init - aView - EndInit - aView - - -EndInit - DoLoop - Init - DoLoop - - -205 - 98 - -204 - 21 - -936 - 20 - -935 - 70 - -Mul - return - EndInit - medfield - - - -TestSupervMedfieldLoopFori - Init__index - Init - index - -3 - 0 - - -TestSupervMedfieldLoopFori - Init__min - Init - min - -3 - 0 - - -TestSupervMedfieldLoopFori - Init__max - Init - max - -3 - 55 - - -TestSupervMedfieldLoopFori - Init__medfield - Init - medfield - -14 - IOR:010000001f00000049444c3a53414c4f4d455f4d45442f4649454c44444f55424c453a312e300000010000000000000026000000010100000a0000003132372e302e302e3100ead00e000000fe1948673f000058e60000000021 - - -TestSupervMedfieldLoopFori - Init__x1 - Init - x1 - -7 - 2 - diff --git a/Superv/Graphs/TestSupervMedfieldLoopForiVisu.xml b/Superv/Graphs/TestSupervMedfieldLoopForiVisu.xml deleted file mode 100755 index 0aa1573..0000000 --- a/Superv/Graphs/TestSupervMedfieldLoopForiVisu.xml +++ /dev/null @@ -1,562 +0,0 @@ - - - - - - -? - ? - TestSupervMedfieldLoopForiVisu - 1 - ? - -LoopGraph_1 - - -long - Init__index - -long - Init__min - -long - Init__max - -objref - Init__medfield - -double - Init__x1 - - -long - EndInit__index - -long - EndInit__min - -long - EndInit__max - -objref - EndInit__medfield - -double - EndInit__x1 - -objref - EndInit__aVisu - -objref - EndInit__aView - - - 20/6/2003 - 15:13:42 - 8/4/2005 - 13:52:51 - 1.04 - ? - ? - ? - 0 - 0 - - -? - ? - InitDisplay - 3 - ? - -InitDisplay - - - -objref - aVisu - -objref - aView - - - -InitDisplay - - - - - - - - - - - aVisu = ",aVisu ]]> - - aViewManager = ",aViewManager ]]> - - - aView = ",aView ]]> - - 8/4/2005 - 13:52:51 - 8/4/2005 - 13:52:51 - 1.04 - ? - ? - Compute Node - 0 - 163 - -? - ? - Init - 4 - EndInit - -Init - - -long - index - -long - min - -long - max - -objref - medfield - -double - x1 - -objref - aVisu - -objref - aView - - -long - index - -long - min - -long - max - -objref - medfield - -double - x1 - -objref - aVisu - -objref - aView - - - -Init - - = min : ]]> - - - - index = ",index ]]> - - - - - -More - - = index : ]]> - - - - DoLoop = ",DoLoop ]]> - - - - - - -Next - - - index = ",index ]]> - - - - - 8/4/2005 - 13:52:51 - 8/4/2005 - 13:52:51 - 1.04 - LD - ? - no comment - 205 - 63 - -? - ? - EndInit - 5 - Init - -EndInit - - -long - index - -long - min - -long - max - -objref - medfield - -double - x1 - -objref - aVisu - -objref - aView - - -long - index - -long - min - -long - max - -objref - medfield - -double - x1 - -objref - aVisu - -objref - aView - - - -? - - 8/4/2005 - 13:52:51 - 8/4/2005 - 13:52:51 - 1.04 - LD - ? - no comment - 776 - 64 - -Calculator - Calculator - Mul - 0 - ? - -Mul - - -objref - field1 - -double - x1 - - -objref - return - - - 8/4/2005 - 13:52:51 - 8/4/2005 - 13:52:51 - 1.04 - LD - localhost/FactoryServer - Multiply a field by a constant - 387 - 104 - -? - ? - DisplayMed - 3 - ? - -DisplayMed - - -objref - INmedfield - -long - index - -objref - aVisu - -objref - aView - - -objref - OUTmedfield - - - -DisplayMed - - - - - - - - - - - - - calc = ",calc ]]> - - Writing Med field in temporary file : ",medfilename ]]> - - calc = ",calc ]]> - - - myResult1 = ",myResult1 ]]> - - field_name = ",field_name ]]> - - mesh_name = ",mesh_name ]]> - - aMesh1 = ",aMesh1 ]]> - - aScalarMap1 = ",aScalarMap1 ]]> - - - - - Delete temporary Med file : ",medfilename ]]> - - - - 8/4/2005 - 13:52:51 - 8/4/2005 - 13:52:51 - 1.04 - ? - ? - Compute Node - 594 - 105 - - -InitDisplay - aVisu - Init - aVisu - - -InitDisplay - aView - Init - aView - - -Init - DoLoop - EndInit - DoLoop - - -Init - index - EndInit - index - - -Init - index - DisplayMed - index - - -566 - 215 - -566 - 96 - -Init - min - EndInit - min - - -Init - max - EndInit - max - - -Init - medfield - Mul - field1 - - -Init - x1 - EndInit - x1 - - -Init - x1 - Mul - x1 - - -Init - aVisu - EndInit - aVisu - - -Init - aVisu - DisplayMed - aVisu - - -570 - 242 - -569 - 263 - -377 - 264 - -376 - 242 - -Init - aView - EndInit - aView - - -Init - aView - DisplayMed - aView - - -EndInit - DoLoop - Init - DoLoop - - -205 - 233 - -204 - 21 - -936 - 20 - -935 - 235 - -Mul - return - DisplayMed - INmedfield - - -DisplayMed - OUTmedfield - EndInit - medfield - - - -TestSupervMedfieldLoopForiVisu - Init__index - Init - index - -3 - 0 - - -TestSupervMedfieldLoopForiVisu - Init__min - Init - min - -3 - 0 - - -TestSupervMedfieldLoopForiVisu - Init__max - Init - max - -3 - 4 - - -TestSupervMedfieldLoopForiVisu - Init__x1 - Init - x1 - -7 - 2 - diff --git a/Superv/Graphs/dataflow_calculator_example.xml b/Superv/Graphs/dataflow_calculator_example.xml deleted file mode 100755 index dfd3a5d..0000000 --- a/Superv/Graphs/dataflow_calculator_example.xml +++ /dev/null @@ -1,329 +0,0 @@ - - - - - - - - - - ? - ? - CalculatorDataflow - 1 - - CalculatorDataflow - - - FIELDDOUBLE - -Constant\field1 - - - double - Constant\x1 - - - FIELDDOUBLE - Mul\field1 - - - double - Mul\x1 - - - -FieldNodeDouble - -writeMEDfile\field1 - - - string - -writeMEDfile\filename - - - string - -writeMEDfile_1\filename - - - - - - 22/11/2002 - 14:38:49 - 22/11/2002 - 14:47:14 - 1.03 - ? - FactoryServer - ? - 0 - 0 - - - - - - Calculator - Calculator - Constant - 0 - - Constant - - - FIELDDOUBLE - field1 - - - double - x1 - - - - - FIELDDOUBLE - return - - - - 22/11/2002 - 14:47:14 - 22/11/2002 - 14:47:14 - 1.03 - ? - FactoryServer - ? - 28 - 0 - - - Calculator - Calculator - Mul - 0 - - Mul - - - FIELDDOUBLE - field1 - - - double - x1 - - - - - FIELDDOUBLE - return - - - - 22/11/2002 - 14:47:14 - 22/11/2002 - 14:47:14 - 1.03 - ? - FactoryServer - ? - 27 - 208 - - - Calculator - Calculator - Add - 0 - - Add - - - FIELDDOUBLE - field1 - - - FIELDDOUBLE - field2 - - - - - FIELDDOUBLE - return - - - - 22/11/2002 - 14:47:14 - 22/11/2002 - 14:47:14 - 1.03 - ? - FactoryServer - ? - 398 - 54 - - - Calculator - Calculator - writeMEDfile - 0 - - writeMEDfile - - - -FieldNodeDouble - field1 - - - string - filename - - - - - - 22/11/2002 - 14:47:14 - 22/11/2002 - 14:47:14 - 1.03 - ? - FactoryServer - ? - 212 - 392 - - - Calculator - Calculator - writeMEDfile_1 - 0 - - writeMEDfile - - - FIELDDOUBLE - field1 - - - string - filename - - - - - - 22/11/2002 - 14:47:14 - 22/11/2002 - 14:47:14 - 1.03 - ? - FactoryServer - ? - 572 - 52 - - - - - - Constant - return - Add - field1 - - - - - Mul - return - Add - field2 - - - - - Add - return - writeMEDfile_1 - field1 - - - - - - - - CalculatorDataflow - Constant\x1 - Constant - x1 - - 7 - 10 - - - - - - CalculatorDataflow - Mul\x1 - Mul - x1 - - 7 - -1 - - - - - - CalculatorDataflow - -writeMEDfile\filename - writeMEDfile - filename - - 18 - test_dataflow_calculator.med - - - - - - CalculatorDataflow - -writeMEDfile_1\filename - writeMEDfile_1 - filename - - 18 - test_dataflow_calculator.med - - - - - - - - diff --git a/Superv/Graphs/newsupervisionexample.xml b/Superv/Graphs/newsupervisionexample.xml deleted file mode 100644 index 6c54d50..0000000 --- a/Superv/Graphs/newsupervisionexample.xml +++ /dev/null @@ -1,310 +0,0 @@ - - - - - - - - - - newsupervisionexample - ? - newsupervisionexample - 1 - ? - - newsupervisionexample - - - double - Add\x - - - double - Add\y - - - double - Sub\x - - - - - double - Add\FuncValue - - - double - Div\z - - - - - - 21/11/2001 - 17:17:23 - 31/7/2002 - 16:43:19 - 1.00 - ? - FactoryServer - ? - 0 - 0 - - - - - - AddComponent - AddComponent - Add - 0 - ? - - Add - - - double - x - - - double - y - - - - - double - FuncValue - - - double - z - - - - - - 31/7/2002 - 16:43:19 - 31/7/2002 - 16:43:19 - 1.00 - ? - FactoryServer - ? - 15 - 241 - - - SubComponent - SubComponent - Sub - 0 - ? - - Sub - - - double - x - - - double - y - - - - - double - z - - - - - - 31/7/2002 - 16:43:19 - 31/7/2002 - 16:43:19 - 1.00 - ? - FactoryServer - ? - 227 - 99 - - - MulComponent - MulComponent - Mul - 0 - ? - - Mul - - - double - x - - - double - y - - - - - double - z - - - - - - 31/7/2002 - 16:43:19 - 31/7/2002 - 16:43:19 - 1.00 - ? - FactoryServer - ? - 443 - 278 - - - DivComponent - DivComponent - Div - 0 - ? - - Div - - - double - x - - - double - y - - - - - double - z - - - - - - 31/7/2002 - 16:43:19 - 31/7/2002 - 16:43:19 - 1.00 - ? - FactoryServer - ? - 634 - 97 - - - - - - Add - z - Sub - y - - - - - Add - z - Mul - y - - - - - Sub - z - Mul - x - - - - - Sub - z - Div - x - - - - - Mul - z - Div - y - - - - - - - - newsupervisionexample - Add\x - Add - x - - 7 - 3 - - - - - - newsupervisionexample - Add\y - Add - y - - 7 - 4.5 - - - - - - newsupervisionexample - Sub\x - Sub - x - - 7 - 1.5 - - - - - - - diff --git a/Superv/Graphs/test_events.xml b/Superv/Graphs/test_events.xml deleted file mode 100644 index b49df8f..0000000 --- a/Superv/Graphs/test_events.xml +++ /dev/null @@ -1,190 +0,0 @@ - - - - - -? - ? - aNewDataFlow - 1 - ? - -aNewDataFlow - - -int - Init\A - - -int - EndInit\A - - - 2/4/2004 - 16:38:31 - 2/4/2004 - 18:30:31 - 1.05 - ? - ? - ? - 0 - 0 - - -? - ? - Init - 4 - EndInit - -Init - - -int - A - - -int - A - - - -Init - - - -More - - - - - -Next - - - 2/4/2004 - 18:30:31 - 2/4/2004 - 18:30:31 - 1.05 - ? - ? - ? - 118 - 160 - -? - ? - EndInit - 5 - Init - -EndInit - - -int - A - - -int - A - - - -EndInit - - 2/4/2004 - 18:30:31 - 2/4/2004 - 18:30:31 - 1.05 - ? - ? - ? - 740 - 168 - -? - ? - Func - 3 - ? - -Func - - -int - A - - -int - B - - - -Func - - - - - - 2/4/2004 - 18:30:31 - 2/4/2004 - 18:30:31 - 1.05 - ? - ? - Compute Node - 375 - 162 - - -Init - DoLoop - EndInit - DoLoop - - -Init - A - Func - A - - -EndInit - DoLoop - Init - DoLoop - - -Func - B - EndInit - A - - - -aNewDataFlow - Init\A - Init - A - -3 - 0 - diff --git a/Superv/Graphs/test_superv_basic_loop.xml b/Superv/Graphs/test_superv_basic_loop.xml deleted file mode 100755 index 4cb8aa1..0000000 --- a/Superv/Graphs/test_superv_basic_loop.xml +++ /dev/null @@ -1,327 +0,0 @@ - - - - - -? - ? - test_superv_basic_loop - 1 - ? - -test_superv_basic_loop - - -long - fori\index - -long - fori\min - -long - fori\max - -long - fori\sum - - -long - Add\incr - -long - Endfori\index - -long - Endfori\min - -long - Endfori\max - -long - Endfori\sum - - - 2/5/2003 - 13:43:38 - 19/9/2003 - 16:38:30 - 1.04 - ? - ? - ? - 0 - 0 - - -? - ? - Add - 3 - ? - -Add - - -long - sum - -long - incr - - -long - Sum - -long - incr - - - -Sum - - - - 19/9/2003 - 16:38:30 - 19/9/2003 - 16:38:30 - 1.04 - ? - ? - Python function - 220 - 40 - -? - ? - fori - 4 - Endfori - -fori - - -long - index - -long - min - -long - max - -long - sum - - -long - index - -long - min - -long - max - -long - sum - - - -Init - - min : ]]> - - - - - - -More - - - index : ]]> - - - - -Next - - - - - 19/9/2003 - 16:38:30 - 19/9/2003 - 16:38:30 - 1.04 - ? - ? - ? - 12 - 0 - -? - ? - Endfori - 5 - fori - -Endfori - - -long - index - -long - min - -long - max - -long - sum - - -long - index - -long - min - -long - max - -long - sum - - - - 19/9/2003 - 16:38:30 - 19/9/2003 - 16:38:30 - 1.04 - ? - ? - ? - 432 - 0 - - -Add - Sum - Endfori - sum - - -fori - DoLoop - Endfori - DoLoop - - -fori - index - Endfori - index - - -fori - index - Add - incr - - -186 - 150 - -187 - 34 - -fori - min - Endfori - min - - -fori - max - Endfori - max - - -fori - sum - Add - sum - - -Endfori - DoLoop - fori - DoLoop - - -8 - 215 - -7 - 5 - -747 - 5 - -748 - 214 - - -test_superv_basic_loop - fori\index - fori - index - -3 - 0 - - -test_superv_basic_loop - fori\min - fori - min - -3 - 0 - - -test_superv_basic_loop - fori\max - fori - max - -3 - 1001 - - -test_superv_basic_loop - fori\sum - fori - sum - -3 - 0 - diff --git a/Superv/Graphs/testvisu20.xml b/Superv/Graphs/testvisu20.xml deleted file mode 100644 index 2b534ec..0000000 --- a/Superv/Graphs/testvisu20.xml +++ /dev/null @@ -1,516 +0,0 @@ - - - - - - -? - ? - TestVisu20 - 1 - ? - -aNewDataFlow_1 - - -long - Init__index - -long - Init__min - -long - Init__max - -double - Init__x1 - - -long - EndOfInit__index - -long - EndOfInit__min - -long - EndOfInit__max - -objref - EndOfInit__aVisu - -objref - EndOfInit__aView - -objref - EndOfInit__aResult - -double - EndOfInit__x1 - - - 13/11/2003 - 11:15:53 - 8/4/2005 - 14:3:47 - 1.05 - ? - ? - ? - 0 - 0 - - -? - ? - InitDisplay - 3 - ? - -InitDisplay - - - -objref - aVisu - -objref - aView - -objref - myResult - - - -InitDisplay - - - - - - - - - - - - - - - - - - - - - aVisu ", aVisu ]]> - - - aViewManager ", aViewManager ]]> - - - - aView ", aView ]]> - - - - - myResult ", myResult ]]> - - - 8/4/2005 - 14:3:47 - 8/4/2005 - 14:3:47 - 1.05 - ? - ? - Compute Node - 0 - 46 - -? - ? - Init - 4 - EndOfInit - -Init - - -long - index - -long - min - -long - max - -objref - aVisu - -objref - aView - -objref - aResult - -double - x1 - - -long - index - -long - min - -long - max - -objref - aVisu - -objref - aView - -objref - aResult - -double - x1 - - - -Init - - = min : ]]> - - - - - - -More - - = index : ]]> - - - - - - -Next - - - - - - 8/4/2005 - 14:3:47 - 8/4/2005 - 14:3:47 - 1.05 - ? - ? - Compute Node - 190 - 4 - -? - ? - EndOfInit - 5 - Init - -EndOfInit - - -long - index - -long - min - -long - max - -objref - aVisu - -objref - aView - -objref - aResult - -double - x1 - - -long - index - -long - min - -long - max - -objref - aVisu - -objref - aView - -objref - aResult - -double - x1 - - - -? - - 8/4/2005 - 14:3:47 - 8/4/2005 - 14:3:47 - 1.05 - ? - ? - Compute Node - 553 - 5 - -? - ? - DisplayVitesse - 3 - ? - -DisplayVitesse - - -string - index - -objref - aVisu - -objref - aView - -objref - aResult - -double - x1 - - -objref - theResult - - - -DisplayVitesse - - - - - - - - - - - - - - - - - - - - - - - - - - 8/4/2005 - 14:3:47 - 8/4/2005 - 14:3:47 - 1.05 - ? - ? - Compute Node - 374 - 16 - - -InitDisplay - aVisu - Init - aVisu - - -InitDisplay - aView - Init - aView - - -InitDisplay - myResult - Init - aResult - - -Init - DoLoop - EndOfInit - DoLoop - - -Init - index - EndOfInit - index - - -Init - index - DisplayVitesse - index - - -351 - 96 - -350 - 38 - -Init - min - EndOfInit - min - - -Init - max - EndOfInit - max - - -Init - aVisu - EndOfInit - aVisu - - -Init - aVisu - DisplayVitesse - aVisu - - -Init - aView - EndOfInit - aView - - -Init - aView - DisplayVitesse - aView - - -Init - aResult - DisplayVitesse - aResult - - -Init - x1 - EndOfInit - x1 - - -Init - x1 - DisplayVitesse - x1 - - -EndOfInit - DoLoop - Init - DoLoop - - -DisplayVitesse - theResult - EndOfInit - aResult - - -548 - 183 - -548 - 97 - - -TestVisu20 - Init__index - Init - index - -3 - 1 - - -TestVisu20 - Init__min - Init - min - -3 - 1 - - -TestVisu20 - Init__max - Init - max - -3 - 100 - - -TestVisu20 - Init__x1 - Init - x1 - -7 - 1 - diff --git a/Superv/Graphs/testvisu20_multi.xml b/Superv/Graphs/testvisu20_multi.xml deleted file mode 100644 index 0336db3..0000000 --- a/Superv/Graphs/testvisu20_multi.xml +++ /dev/null @@ -1,825 +0,0 @@ - - - - - - -? - ? - TestVisu20_multi - 1 - ? - -aNewDataFlow - - -long - Init__index - -long - Init__min - -long - Init__max - -double - Init__x1 - -int - LoopOnViews__ViewCount - -int - LoopOnViews__MinCount - -int - LoopOnViews__MaxCount - - -long - EndOfInit__index - -long - EndOfInit__min - -long - EndOfInit__max - -objref - EndOfInit__aVisu - -objref - EndOfInit__aView - -double - EndOfInit__x1 - -objref - EndOfLoopOnViews__aVisu - -objref - EndOfLoopOnViews__aResult - -int - EndOfLoopOnViews__ViewCount - -int - EndOfLoopOnViews__MinCount - -int - EndOfLoopOnViews__MaxCount - - - 13/11/2003 - 11:15:53 - 8/4/2005 - 14:2:18 - 1.05 - ? - ? - ? - 0 - 0 - - -? - ? - InitDisplay - 3 - ? - -InitDisplay - - - -objref - aVisu - -objref - myResult - - - -InitDisplay - - - - - - - - - - - - - - - - - - - - - aVisu ", aVisu ]]> - - - aViewManager ", aViewManager ]]> - - - - aView ", aView ]]> - - - - - myResult ", myResult ]]> - - - 8/4/2005 - 14:2:18 - 8/4/2005 - 14:2:18 - 1.05 - ? - ? - Compute Node - 13 - 173 - -? - ? - Init - 4 - EndOfInit - -Init - - -long - index - -long - min - -long - max - -objref - aVisu - -objref - aView - -objref - aResult - -double - x1 - - -long - index - -long - min - -long - max - -objref - aVisu - -objref - aView - -objref - aResult - -double - x1 - - - -Init - - = min : ]]> - - - - - - -More - - = index : ]]> - - - - - - -Next - - - - - - 8/4/2005 - 14:2:18 - 8/4/2005 - 14:2:18 - 1.05 - ? - ? - Compute Node - 428 - 493 - -? - ? - EndOfInit - 5 - Init - -EndOfInit - - -long - index - -long - min - -long - max - -objref - aVisu - -objref - aView - -objref - aResult - -double - x1 - - -long - index - -long - min - -long - max - -objref - aVisu - -objref - aView - -objref - aResult - -double - x1 - - - -? - - 8/4/2005 - 14:2:18 - 8/4/2005 - 14:2:18 - 1.05 - ? - ? - Compute Node - 797 - 507 - -? - ? - DisplayVitesse - 3 - ? - -DisplayVitesse - - -string - index - -objref - aVisu - -objref - aView - -objref - aResult - -double - x1 - - -objref - theResult - - - -DisplayVitesse - - - - - - - - - - - - - - - - - - - - - - - - - - 8/4/2005 - 14:2:18 - 8/4/2005 - 14:2:18 - 1.05 - ? - ? - Compute Node - 609 - 506 - -? - ? - LoopOnViews - 4 - EndOfLoopOnViews - -LoopOnViews - - -objref - aVisu - -objref - aResult - -int - ViewCount - -int - MinCount - -int - MaxCount - - -objref - aVisu - -objref - aResult - -int - ViewCount - -int - MinCount - -int - MaxCount - - - -InitViews - - - - -MoreViews - - - - - -NextViews - - - - 8/4/2005 - 14:2:18 - 8/4/2005 - 14:2:18 - 1.05 - ? - ? - Compute Node - 219 - 218 - -? - ? - EndOfLoopOnViews - 5 - LoopOnViews - -EndOfLoopOnViews - - -objref - aVisu - -objref - aResult - -int - ViewCount - -int - MinCount - -int - MaxCount - - -objref - aVisu - -objref - aResult - -int - ViewCount - -int - MinCount - -int - MaxCount - - - -EndLoop - - 8/4/2005 - 14:2:18 - 8/4/2005 - 14:2:18 - 1.05 - ? - ? - Compute Node - 773 - 224 - -? - ? - CreateView - 3 - ? - -CreateView - - -objref - aVisu - -objref - aResult - - -objref - aView - -objref - theVisu - -objref - theResult - - - -CreateView - - - - - - - 8/4/2005 - 14:2:18 - 8/4/2005 - 14:2:18 - 1.05 - ? - ? - Compute Node - 221 - 563 - - -InitDisplay - aVisu - LoopOnViews - aVisu - - -InitDisplay - myResult - LoopOnViews - aResult - - -Init - DoLoop - EndOfInit - DoLoop - - -Init - index - EndOfInit - index - - -Init - index - DisplayVitesse - index - - -590 - 587 - -591 - 527 - -Init - min - EndOfInit - min - - -Init - max - EndOfInit - max - - -Init - aVisu - EndOfInit - aVisu - - -Init - aVisu - DisplayVitesse - aVisu - - -Init - aView - EndOfInit - aView - - -Init - aView - DisplayVitesse - aView - - -Init - aResult - DisplayVitesse - aResult - - -Init - x1 - EndOfInit - x1 - - -Init - x1 - DisplayVitesse - x1 - - -EndOfInit - DoLoop - Init - DoLoop - - -EndOfInit - aResult - EndOfLoopOnViews - aResult - - -762 - 288 - -763 - 424 - -972 - 425 - -971 - 687 - -DisplayVitesse - theResult - EndOfInit - aResult - - -787 - 687 - -786 - 585 - -LoopOnViews - DoLoop - EndOfLoopOnViews - DoLoop - - -LoopOnViews - aVisu - EndOfLoopOnViews - aVisu - - -LoopOnViews - aVisu - CreateView - aVisu - - -186 - 643 - -186 - 442 - -400 - 441 - -401 - 251 - -LoopOnViews - aResult - CreateView - aResult - - -169 - 671 - -170 - 412 - -386 - 413 - -387 - 280 - -LoopOnViews - ViewCount - EndOfLoopOnViews - ViewCount - - -LoopOnViews - MinCount - EndOfLoopOnViews - MinCount - - -LoopOnViews - MaxCount - EndOfLoopOnViews - MaxCount - - -EndOfLoopOnViews - DoLoop - LoopOnViews - DoLoop - - -CreateView - aView - Init - aView - - -CreateView - theVisu - Init - aVisu - - -CreateView - theResult - Init - aResult - - - -TestVisu20_multi - Init__index - Init - index - -3 - 1 - - -TestVisu20_multi - Init__min - Init - min - -3 - 1 - - -TestVisu20_multi - Init__max - Init - max - -3 - 10 - - -TestVisu20_multi - Init__x1 - Init - x1 - -7 - 1 - - -TestVisu20_multi - LoopOnViews__ViewCount - LoopOnViews - ViewCount - -3 - 0 - - -TestVisu20_multi - LoopOnViews__MinCount - LoopOnViews - MinCount - -3 - 0 - - -TestVisu20_multi - LoopOnViews__MaxCount - LoopOnViews - MaxCount - -3 - 10 - diff --git a/Superv/Python/GeomGraph.py b/Superv/Python/GeomGraph.py deleted file mode 100644 index a9feb7c..0000000 --- a/Superv/Python/GeomGraph.py +++ /dev/null @@ -1,177 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GeomGraph -# -from SuperV import * - -# Graph creation of GeomGraph -def DefGeomGraph() : - GeomGraph = Graph( 'GeomGraph' ) - GeomGraph.SetName( 'GeomGraph' ) - GeomGraph.SetAuthor( '' ) - GeomGraph.SetComment( '' ) - GeomGraph.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - SetStudyID = GeomGraph.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'SetStudyID' ) - SetStudyID.SetName( 'SetStudyID' ) - SetStudyID.SetAuthor( '' ) - SetStudyID.SetContainer( 'localhost/FactoryServer' ) - SetStudyID.SetComment( 'SetStudyID from GEOM_Superv' ) - SetStudyID.Coords( 14 , 241 ) - ISetStudyIDtheStudyID = SetStudyID.GetInPort( 'theStudyID' ) - ISetStudyIDGate = SetStudyID.GetInPort( 'Gate' ) - OSetStudyIDGate = SetStudyID.GetOutPort( 'Gate' ) - - MakeBox = GeomGraph.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeBox' ) - MakeBox.SetName( 'MakeBox' ) - MakeBox.SetAuthor( '' ) - MakeBox.SetContainer( 'localhost/FactoryServer' ) - MakeBox.SetComment( 'MakeBox from GEOM_Superv' ) - MakeBox.Coords( 198 , 46 ) - IMakeBoxtheX1 = MakeBox.GetInPort( 'theX1' ) - IMakeBoxtheY1 = MakeBox.GetInPort( 'theY1' ) - IMakeBoxtheZ1 = MakeBox.GetInPort( 'theZ1' ) - IMakeBoxtheX2 = MakeBox.GetInPort( 'theX2' ) - IMakeBoxtheY2 = MakeBox.GetInPort( 'theY2' ) - IMakeBoxtheZ2 = MakeBox.GetInPort( 'theZ2' ) - IMakeBoxGate = MakeBox.GetInPort( 'Gate' ) - OMakeBoxreturn = MakeBox.GetOutPort( 'return' ) - OMakeBoxGate = MakeBox.GetOutPort( 'Gate' ) - - MakeCopy = GeomGraph.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeCopy' ) - MakeCopy.SetName( 'MakeCopy' ) - MakeCopy.SetAuthor( '' ) - MakeCopy.SetContainer( 'localhost/FactoryServer' ) - MakeCopy.SetComment( 'MakeCopy from GEOM_Superv' ) - MakeCopy.Coords( 383 , 46 ) - IMakeCopytheOriginal = MakeCopy.GetInPort( 'theOriginal' ) - IMakeCopyGate = MakeCopy.GetInPort( 'Gate' ) - OMakeCopyreturn = MakeCopy.GetOutPort( 'return' ) - OMakeCopyGate = MakeCopy.GetOutPort( 'Gate' ) - - TranslateDXDYDZ = GeomGraph.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'TranslateDXDYDZ' ) - TranslateDXDYDZ.SetName( 'TranslateDXDYDZ' ) - TranslateDXDYDZ.SetAuthor( '' ) - TranslateDXDYDZ.SetContainer( 'localhost/FactoryServer' ) - TranslateDXDYDZ.SetComment( 'TranslateDXDYDZ from GEOM_Superv' ) - TranslateDXDYDZ.Coords( 579 , 46 ) - ITranslateDXDYDZtheObject = TranslateDXDYDZ.GetInPort( 'theObject' ) - ITranslateDXDYDZtheDX = TranslateDXDYDZ.GetInPort( 'theDX' ) - ITranslateDXDYDZtheDY = TranslateDXDYDZ.GetInPort( 'theDY' ) - ITranslateDXDYDZtheDZ = TranslateDXDYDZ.GetInPort( 'theDZ' ) - ITranslateDXDYDZGate = TranslateDXDYDZ.GetInPort( 'Gate' ) - OTranslateDXDYDZreturn = TranslateDXDYDZ.GetOutPort( 'return' ) - OTranslateDXDYDZGate = TranslateDXDYDZ.GetOutPort( 'Gate' ) - - MakeCopy_1 = GeomGraph.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeCopy' ) - MakeCopy_1.SetName( 'MakeCopy_1' ) - MakeCopy_1.SetAuthor( '' ) - MakeCopy_1.SetContainer( 'localhost/FactoryServer' ) - MakeCopy_1.SetComment( 'MakeCopy from GEOM_Superv' ) - MakeCopy_1.Coords( 384 , 168 ) - IMakeCopy_1theOriginal = MakeCopy_1.GetInPort( 'theOriginal' ) - IMakeCopy_1Gate = MakeCopy_1.GetInPort( 'Gate' ) - OMakeCopy_1return = MakeCopy_1.GetOutPort( 'return' ) - OMakeCopy_1Gate = MakeCopy_1.GetOutPort( 'Gate' ) - - MakeSphere_1 = GeomGraph.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeSphere' ) - MakeSphere_1.SetName( 'MakeSphere_1' ) - MakeSphere_1.SetAuthor( '' ) - MakeSphere_1.SetContainer( 'localhost/FactoryServer' ) - MakeSphere_1.SetComment( 'MakeSphere from GEOM_Superv' ) - MakeSphere_1.Coords( 201 , 332 ) - IMakeSphere_1theX = MakeSphere_1.GetInPort( 'theX' ) - IMakeSphere_1theY = MakeSphere_1.GetInPort( 'theY' ) - IMakeSphere_1theZ = MakeSphere_1.GetInPort( 'theZ' ) - IMakeSphere_1theRadius = MakeSphere_1.GetInPort( 'theRadius' ) - IMakeSphere_1Gate = MakeSphere_1.GetInPort( 'Gate' ) - OMakeSphere_1return = MakeSphere_1.GetOutPort( 'return' ) - OMakeSphere_1Gate = MakeSphere_1.GetOutPort( 'Gate' ) - - MakeFuse = GeomGraph.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeFuse' ) - MakeFuse.SetName( 'MakeFuse' ) - MakeFuse.SetAuthor( '' ) - MakeFuse.SetContainer( 'localhost/FactoryServer' ) - MakeFuse.SetComment( 'MakeFuse from GEOM_Superv' ) - MakeFuse.Coords( 790 , 148 ) - IMakeFusetheShape1 = MakeFuse.GetInPort( 'theShape1' ) - IMakeFusetheShape2 = MakeFuse.GetInPort( 'theShape2' ) - IMakeFuseGate = MakeFuse.GetInPort( 'Gate' ) - OMakeFusereturn = MakeFuse.GetOutPort( 'return' ) - OMakeFuseGate = MakeFuse.GetOutPort( 'Gate' ) - - MakeFuse_1 = GeomGraph.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeFuse' ) - MakeFuse_1.SetName( 'MakeFuse_1' ) - MakeFuse_1.SetAuthor( '' ) - MakeFuse_1.SetContainer( 'localhost/FactoryServer' ) - MakeFuse_1.SetComment( 'MakeFuse from GEOM_Superv' ) - MakeFuse_1.Coords( 993 , 312 ) - IMakeFuse_1theShape1 = MakeFuse_1.GetInPort( 'theShape1' ) - IMakeFuse_1theShape2 = MakeFuse_1.GetInPort( 'theShape2' ) - IMakeFuse_1Gate = MakeFuse_1.GetInPort( 'Gate' ) - OMakeFuse_1return = MakeFuse_1.GetOutPort( 'return' ) - OMakeFuse_1Gate = MakeFuse_1.GetOutPort( 'Gate' ) - - # Creation of Links - LSetStudyIDGateMakeBoxGate = GeomGraph.Link( OSetStudyIDGate , IMakeBoxGate ) - - LSetStudyIDGateMakeSphere_1Gate = GeomGraph.Link( OSetStudyIDGate , IMakeSphere_1Gate ) - - LMakeBoxreturnMakeCopytheOriginal = GeomGraph.Link( OMakeBoxreturn , IMakeCopytheOriginal ) - - LMakeBoxreturnMakeCopy_1theOriginal = GeomGraph.Link( OMakeBoxreturn , IMakeCopy_1theOriginal ) - - LMakeCopyreturnTranslateDXDYDZtheObject = GeomGraph.Link( OMakeCopyreturn , ITranslateDXDYDZtheObject ) - - LTranslateDXDYDZreturnMakeFusetheShape1 = GeomGraph.Link( OTranslateDXDYDZreturn , IMakeFusetheShape1 ) - - LMakeCopy_1returnMakeFusetheShape2 = GeomGraph.Link( OMakeCopy_1return , IMakeFusetheShape2 ) - - LMakeSphere_1returnMakeFuse_1theShape2 = GeomGraph.Link( OMakeSphere_1return , IMakeFuse_1theShape2 ) - - LMakeFusereturnMakeFuse_1theShape1 = GeomGraph.Link( OMakeFusereturn , IMakeFuse_1theShape1 ) - - # Input datas - ISetStudyIDtheStudyID.Input( 1 ) - IMakeBoxtheX1.Input( 0 ) - IMakeBoxtheY1.Input( 0 ) - IMakeBoxtheZ1.Input( 0 ) - IMakeBoxtheX2.Input( 50 ) - IMakeBoxtheY2.Input( 50 ) - IMakeBoxtheZ2.Input( 50 ) - ITranslateDXDYDZtheDX.Input( 10 ) - ITranslateDXDYDZtheDY.Input( 10 ) - ITranslateDXDYDZtheDZ.Input( 10 ) - IMakeSphere_1theX.Input( 0 ) - IMakeSphere_1theY.Input( 0 ) - IMakeSphere_1theZ.Input( 0 ) - IMakeSphere_1theRadius.Input( 12 ) - - # Output Ports of the graph - #OMakeFuse_1return = MakeFuse_1.GetOutPort( 'return' ) - return GeomGraph - - -GeomGraph = DefGeomGraph() diff --git a/Superv/Python/GeomGraphGates.py b/Superv/Python/GeomGraphGates.py deleted file mode 100644 index cf3619a..0000000 --- a/Superv/Python/GeomGraphGates.py +++ /dev/null @@ -1,191 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GeomGraph -# -from SuperV import * - -# Graph creation of GeomGraph -def DefGeomGraph() : - GeomGraph = Graph( 'GeomGraph' ) - GeomGraph.SetName( 'GeomGraph' ) - GeomGraph.SetAuthor( '' ) - GeomGraph.SetComment( '' ) - GeomGraph.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - SetStudyID = GeomGraph.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'SetStudyID' ) - SetStudyID.SetName( 'SetStudyID' ) - SetStudyID.SetAuthor( '' ) - SetStudyID.SetContainer( 'localhost/FactoryServer' ) - SetStudyID.SetComment( 'SetStudyID from GEOM_Superv' ) - SetStudyID.Coords( 14 , 241 ) - ISetStudyIDtheStudyID = SetStudyID.GetInPort( 'theStudyID' ) - ISetStudyIDGate = SetStudyID.GetInPort( 'Gate' ) - OSetStudyIDGate = SetStudyID.GetOutPort( 'Gate' ) - - MakeBox = GeomGraph.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeBox' ) - MakeBox.SetName( 'MakeBox' ) - MakeBox.SetAuthor( '' ) - MakeBox.SetContainer( 'localhost/FactoryServer' ) - MakeBox.SetComment( 'MakeBox from GEOM_Superv' ) - MakeBox.Coords( 198 , 46 ) - IMakeBoxtheX1 = MakeBox.GetInPort( 'theX1' ) - IMakeBoxtheY1 = MakeBox.GetInPort( 'theY1' ) - IMakeBoxtheZ1 = MakeBox.GetInPort( 'theZ1' ) - IMakeBoxtheX2 = MakeBox.GetInPort( 'theX2' ) - IMakeBoxtheY2 = MakeBox.GetInPort( 'theY2' ) - IMakeBoxtheZ2 = MakeBox.GetInPort( 'theZ2' ) - IMakeBoxGate = MakeBox.GetInPort( 'Gate' ) - OMakeBoxreturn = MakeBox.GetOutPort( 'return' ) - OMakeBoxGate = MakeBox.GetOutPort( 'Gate' ) - - MakeCopy = GeomGraph.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeCopy' ) - MakeCopy.SetName( 'MakeCopy' ) - MakeCopy.SetAuthor( '' ) - MakeCopy.SetContainer( 'localhost/FactoryServer' ) - MakeCopy.SetComment( 'MakeCopy from GEOM_Superv' ) - MakeCopy.Coords( 383 , 46 ) - IMakeCopytheOriginal = MakeCopy.GetInPort( 'theOriginal' ) - IMakeCopyGate = MakeCopy.GetInPort( 'Gate' ) - OMakeCopyreturn = MakeCopy.GetOutPort( 'return' ) - OMakeCopyGate = MakeCopy.GetOutPort( 'Gate' ) - - TranslateDXDYDZ = GeomGraph.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'TranslateDXDYDZ' ) - TranslateDXDYDZ.SetName( 'TranslateDXDYDZ' ) - TranslateDXDYDZ.SetAuthor( '' ) - TranslateDXDYDZ.SetContainer( 'localhost/FactoryServer' ) - TranslateDXDYDZ.SetComment( 'TranslateDXDYDZ from GEOM_Superv' ) - TranslateDXDYDZ.Coords( 579 , 46 ) - ITranslateDXDYDZtheObject = TranslateDXDYDZ.GetInPort( 'theObject' ) - ITranslateDXDYDZtheDX = TranslateDXDYDZ.GetInPort( 'theDX' ) - ITranslateDXDYDZtheDY = TranslateDXDYDZ.GetInPort( 'theDY' ) - ITranslateDXDYDZtheDZ = TranslateDXDYDZ.GetInPort( 'theDZ' ) - ITranslateDXDYDZGate = TranslateDXDYDZ.GetInPort( 'Gate' ) - OTranslateDXDYDZreturn = TranslateDXDYDZ.GetOutPort( 'return' ) - OTranslateDXDYDZGate = TranslateDXDYDZ.GetOutPort( 'Gate' ) - - MakeCopy_1 = GeomGraph.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeCopy' ) - MakeCopy_1.SetName( 'MakeCopy_1' ) - MakeCopy_1.SetAuthor( '' ) - MakeCopy_1.SetContainer( 'localhost/FactoryServer' ) - MakeCopy_1.SetComment( 'MakeCopy from GEOM_Superv' ) - MakeCopy_1.Coords( 384 , 168 ) - IMakeCopy_1theOriginal = MakeCopy_1.GetInPort( 'theOriginal' ) - IMakeCopy_1Gate = MakeCopy_1.GetInPort( 'Gate' ) - OMakeCopy_1return = MakeCopy_1.GetOutPort( 'return' ) - OMakeCopy_1Gate = MakeCopy_1.GetOutPort( 'Gate' ) - - MakeSphere_1 = GeomGraph.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeSphere' ) - MakeSphere_1.SetName( 'MakeSphere_1' ) - MakeSphere_1.SetAuthor( '' ) - MakeSphere_1.SetContainer( 'localhost/FactoryServer' ) - MakeSphere_1.SetComment( 'MakeSphere from GEOM_Superv' ) - MakeSphere_1.Coords( 604 , 348 ) - IMakeSphere_1theX = MakeSphere_1.GetInPort( 'theX' ) - IMakeSphere_1theY = MakeSphere_1.GetInPort( 'theY' ) - IMakeSphere_1theZ = MakeSphere_1.GetInPort( 'theZ' ) - IMakeSphere_1theRadius = MakeSphere_1.GetInPort( 'theRadius' ) - IMakeSphere_1Gate = MakeSphere_1.GetInPort( 'Gate' ) - OMakeSphere_1return = MakeSphere_1.GetOutPort( 'return' ) - OMakeSphere_1Gate = MakeSphere_1.GetOutPort( 'Gate' ) - - MakeFuse = GeomGraph.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeFuse' ) - MakeFuse.SetName( 'MakeFuse' ) - MakeFuse.SetAuthor( '' ) - MakeFuse.SetContainer( 'localhost/FactoryServer' ) - MakeFuse.SetComment( 'MakeFuse from GEOM_Superv' ) - MakeFuse.Coords( 790 , 148 ) - IMakeFusetheShape1 = MakeFuse.GetInPort( 'theShape1' ) - IMakeFusetheShape2 = MakeFuse.GetInPort( 'theShape2' ) - IMakeFuseGate = MakeFuse.GetInPort( 'Gate' ) - OMakeFusereturn = MakeFuse.GetOutPort( 'return' ) - OMakeFuseGate = MakeFuse.GetOutPort( 'Gate' ) - - MakeFuse_1 = GeomGraph.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeFuse' ) - MakeFuse_1.SetName( 'MakeFuse_1' ) - MakeFuse_1.SetAuthor( '' ) - MakeFuse_1.SetContainer( 'localhost/FactoryServer' ) - MakeFuse_1.SetComment( 'MakeFuse from GEOM_Superv' ) - MakeFuse_1.Coords( 993 , 312 ) - IMakeFuse_1theShape1 = MakeFuse_1.GetInPort( 'theShape1' ) - IMakeFuse_1theShape2 = MakeFuse_1.GetInPort( 'theShape2' ) - IMakeFuse_1Gate = MakeFuse_1.GetInPort( 'Gate' ) - OMakeFuse_1return = MakeFuse_1.GetOutPort( 'return' ) - OMakeFuse_1Gate = MakeFuse_1.GetOutPort( 'Gate' ) - - # Creation of Links - LSetStudyIDGateMakeBoxGate = GeomGraph.Link( OSetStudyIDGate , IMakeBoxGate ) - - LMakeBoxreturnMakeCopytheOriginal = GeomGraph.Link( OMakeBoxreturn , IMakeCopytheOriginal ) - - LMakeBoxreturnMakeCopy_1theOriginal = GeomGraph.Link( OMakeBoxreturn , IMakeCopy_1theOriginal ) - - LMakeBoxGateMakeCopyGate = GeomGraph.Link( OMakeBoxGate , IMakeCopyGate ) - - LMakeCopyreturnTranslateDXDYDZtheObject = GeomGraph.Link( OMakeCopyreturn , ITranslateDXDYDZtheObject ) - - LMakeCopyGateMakeCopy_1Gate = GeomGraph.Link( OMakeCopyGate , IMakeCopy_1Gate ) - LMakeCopyGateMakeCopy_1Gate.AddCoord( 1 , 363 , 263 ) - LMakeCopyGateMakeCopy_1Gate.AddCoord( 2 , 564 , 141 ) - - LTranslateDXDYDZreturnMakeFusetheShape1 = GeomGraph.Link( OTranslateDXDYDZreturn , IMakeFusetheShape1 ) - - LTranslateDXDYDZGateMakeFuseGate = GeomGraph.Link( OTranslateDXDYDZGate , IMakeFuseGate ) - - LMakeCopy_1returnMakeFusetheShape2 = GeomGraph.Link( OMakeCopy_1return , IMakeFusetheShape2 ) - - LMakeCopy_1GateMakeSphere_1Gate = GeomGraph.Link( OMakeCopy_1Gate , IMakeSphere_1Gate ) - LMakeCopy_1GateMakeSphere_1Gate.AddCoord( 1 , 572 , 503 ) - LMakeCopy_1GateMakeSphere_1Gate.AddCoord( 2 , 572 , 263 ) - - LMakeSphere_1returnMakeFuse_1theShape2 = GeomGraph.Link( OMakeSphere_1return , IMakeFuse_1theShape2 ) - - LMakeSphere_1GateTranslateDXDYDZGate = GeomGraph.Link( OMakeSphere_1Gate , ITranslateDXDYDZGate ) - - LMakeFusereturnMakeFuse_1theShape1 = GeomGraph.Link( OMakeFusereturn , IMakeFuse_1theShape1 ) - - LMakeFuseGateMakeFuse_1Gate = GeomGraph.Link( OMakeFuseGate , IMakeFuse_1Gate ) - - # Input datas - ISetStudyIDtheStudyID.Input( 1 ) - IMakeBoxtheX1.Input( 0 ) - IMakeBoxtheY1.Input( 0 ) - IMakeBoxtheZ1.Input( 0 ) - IMakeBoxtheX2.Input( 50 ) - IMakeBoxtheY2.Input( 50 ) - IMakeBoxtheZ2.Input( 50 ) - ITranslateDXDYDZtheDX.Input( 10 ) - ITranslateDXDYDZtheDY.Input( 10 ) - ITranslateDXDYDZtheDZ.Input( 10 ) - IMakeSphere_1theX.Input( 0 ) - IMakeSphere_1theY.Input( 0 ) - IMakeSphere_1theZ.Input( 0 ) - IMakeSphere_1theRadius.Input( 12 ) - - # Output Ports of the graph - #OMakeFuse_1return = MakeFuse_1.GetOutPort( 'return' ) - return GeomGraph - - -GeomGraph = DefGeomGraph() diff --git a/Superv/Python/GeomGraphGates_py.py b/Superv/Python/GeomGraphGates_py.py deleted file mode 100644 index 829300d..0000000 --- a/Superv/Python/GeomGraphGates_py.py +++ /dev/null @@ -1,231 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph aNewDataFlow_1_4_2_1_1_2_2_1_1 -# -from SuperV import * - -# Graph creation of aNewDataFlow_1_4_2_1_1_2_2_1_1 -def DefaNewDataFlow_1_4_2_1_1_2_2_1_1() : - aNewDataFlow_1_4_2_1_1_2_2_1_1 = Graph( 'aNewDataFlow_1_4_2_1_1_2_2_1_1' ) - aNewDataFlow_1_4_2_1_1_2_2_1_1.SetName( 'aNewDataFlow_1_4_2_1_1_2_2_1_1' ) - aNewDataFlow_1_4_2_1_1_2_2_1_1.SetAuthor( '' ) - aNewDataFlow_1_4_2_1_1_2_2_1_1.SetComment( '' ) - aNewDataFlow_1_4_2_1_1_2_2_1_1.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - # Creation of InLine Nodes - Pygag = [] - Pygag.append( 'from batchmode_geompy import * ' ) - Pygag.append( 'def gag(): ' ) - Pygag.append( ' # This is a gag ' ) - Pygag.append( ' return 1 ' ) - gag = aNewDataFlow_1_4_2_1_1_2_2_1_1.INode( 'gag' , Pygag ) - gag.SetName( 'gag' ) - gag.SetAuthor( '' ) - gag.SetComment( 'Compute Node' ) - gag.Coords( 0 , 123 ) - IgagGate = gag.GetInPort( 'Gate' ) - OgagGate = gag.GetOutPort( 'Gate' ) - - PyMakeBox1 = [] - PyMakeBox1.append( 'def MakeBox1(x1,y1,z1,x2,y2,z2): ' ) - PyMakeBox1.append( ' aBox = MakeBox(x1,y1,z1,x2,y2,z2) ' ) - PyMakeBox1.append( ' return aBox ' ) - MakeBox1 = aNewDataFlow_1_4_2_1_1_2_2_1_1.INode( 'MakeBox1' , PyMakeBox1 ) - MakeBox1.SetName( 'MakeBox1' ) - MakeBox1.SetAuthor( '' ) - MakeBox1.SetComment( 'Compute Node' ) - MakeBox1.Coords( 194 , 3 ) - IMakeBox1x1 = MakeBox1.InPort( 'x1' , 'double' ) - IMakeBox1y1 = MakeBox1.InPort( 'y1' , 'double' ) - IMakeBox1z1 = MakeBox1.InPort( 'z1' , 'double' ) - IMakeBox1x2 = MakeBox1.InPort( 'x2' , 'double' ) - IMakeBox1y2 = MakeBox1.InPort( 'y2' , 'double' ) - IMakeBox1z2 = MakeBox1.InPort( 'z2' , 'double' ) - IMakeBox1Gate = MakeBox1.GetInPort( 'Gate' ) - OMakeBox1shape = MakeBox1.OutPort( 'shape' , 'objref' ) - OMakeBox1Gate = MakeBox1.GetOutPort( 'Gate' ) - - PyMakeCopy_1 = [] - PyMakeCopy_1.append( 'def MakeCopy_1(shape1): ' ) - PyMakeCopy_1.append( ' shape=MakeCopy(shape1) ' ) - PyMakeCopy_1.append( ' return shape ' ) - MakeCopy_1 = aNewDataFlow_1_4_2_1_1_2_2_1_1.INode( 'MakeCopy_1' , PyMakeCopy_1 ) - MakeCopy_1.SetName( 'MakeCopy_1' ) - MakeCopy_1.SetAuthor( '' ) - MakeCopy_1.SetComment( 'Compute Node' ) - MakeCopy_1.Coords( 389 , 3 ) - IMakeCopy_1shape1 = MakeCopy_1.InPort( 'shape1' , 'objref' ) - IMakeCopy_1Gate = MakeCopy_1.GetInPort( 'Gate' ) - OMakeCopy_1shape = MakeCopy_1.OutPort( 'shape' , 'objref' ) - OMakeCopy_1Gate = MakeCopy_1.GetOutPort( 'Gate' ) - - PyMakeCopy_2 = [] - PyMakeCopy_2.append( 'def MakeCopy_2(shape1): ' ) - PyMakeCopy_2.append( ' shape=MakeCopy(shape1) ' ) - PyMakeCopy_2.append( ' return shape ' ) - MakeCopy_2 = aNewDataFlow_1_4_2_1_1_2_2_1_1.INode( 'MakeCopy_2' , PyMakeCopy_2 ) - MakeCopy_2.SetName( 'MakeCopy_2' ) - MakeCopy_2.SetAuthor( '' ) - MakeCopy_2.SetComment( 'Compute Node' ) - MakeCopy_2.Coords( 389 , 136 ) - IMakeCopy_2shape1 = MakeCopy_2.InPort( 'shape1' , 'objref' ) - IMakeCopy_2Gate = MakeCopy_2.GetInPort( 'Gate' ) - OMakeCopy_2shape = MakeCopy_2.OutPort( 'shape' , 'objref' ) - OMakeCopy_2Gate = MakeCopy_2.GetOutPort( 'Gate' ) - - PyMakeSphere_1 = [] - PyMakeSphere_1.append( 'def MakeSphere_1(x1,y1,z1,radius): ' ) - PyMakeSphere_1.append( ' apoint=MakeVertex(x1,y1,z1) ' ) - PyMakeSphere_1.append( ' shape=MakeSpherePntR(apoint,radius) ' ) - PyMakeSphere_1.append( ' return shape ' ) - MakeSphere_1 = aNewDataFlow_1_4_2_1_1_2_2_1_1.INode( 'MakeSphere_1' , PyMakeSphere_1 ) - MakeSphere_1.SetName( 'MakeSphere_1' ) - MakeSphere_1.SetAuthor( '' ) - MakeSphere_1.SetComment( 'Compute Node' ) - MakeSphere_1.Coords( 609 , 313 ) - IMakeSphere_1x1 = MakeSphere_1.InPort( 'x1' , 'double' ) - IMakeSphere_1y1 = MakeSphere_1.InPort( 'y1' , 'double' ) - IMakeSphere_1z1 = MakeSphere_1.InPort( 'z1' , 'double' ) - IMakeSphere_1radius = MakeSphere_1.InPort( 'radius' , 'double' ) - IMakeSphere_1Gate = MakeSphere_1.GetInPort( 'Gate' ) - OMakeSphere_1shape = MakeSphere_1.OutPort( 'shape' , 'objref' ) - OMakeSphere_1Gate = MakeSphere_1.GetOutPort( 'Gate' ) - - PyMakeTranslation_1 = [] - PyMakeTranslation_1.append( 'def MakeTranslation_1(shape1,x1,y1,z1): ' ) - PyMakeTranslation_1.append( ' shape = MakeTranslation(shape1,x1,y1,z1) ' ) - PyMakeTranslation_1.append( ' return shape ' ) - MakeTranslation_1 = aNewDataFlow_1_4_2_1_1_2_2_1_1.INode( 'MakeTranslation_1' , PyMakeTranslation_1 ) - MakeTranslation_1.SetName( 'MakeTranslation_1' ) - MakeTranslation_1.SetAuthor( '' ) - MakeTranslation_1.SetComment( 'Compute Node' ) - MakeTranslation_1.Coords( 596 , 3 ) - IMakeTranslation_1shape1 = MakeTranslation_1.InPort( 'shape1' , 'objref' ) - IMakeTranslation_1x1 = MakeTranslation_1.InPort( 'x1' , 'double' ) - IMakeTranslation_1y1 = MakeTranslation_1.InPort( 'y1' , 'double' ) - IMakeTranslation_1z1 = MakeTranslation_1.InPort( 'z1' , 'double' ) - IMakeTranslation_1Gate = MakeTranslation_1.GetInPort( 'Gate' ) - OMakeTranslation_1shape = MakeTranslation_1.OutPort( 'shape' , 'objref' ) - OMakeTranslation_1Gate = MakeTranslation_1.GetOutPort( 'Gate' ) - - PyMakeFuse_1 = [] - PyMakeFuse_1.append( 'def MakeFuse_1(shape1,shape2): ' ) - PyMakeFuse_1.append( ' # fuse operation 3 ' ) - PyMakeFuse_1.append( ' shape = MakeBoolean(shape1,shape2,3) ' ) - PyMakeFuse_1.append( ' return shape ' ) - MakeFuse_1 = aNewDataFlow_1_4_2_1_1_2_2_1_1.INode( 'MakeFuse_1' , PyMakeFuse_1 ) - MakeFuse_1.SetName( 'MakeFuse_1' ) - MakeFuse_1.SetAuthor( '' ) - MakeFuse_1.SetComment( 'Compute Node' ) - MakeFuse_1.Coords( 823 , 116 ) - IMakeFuse_1shape1 = MakeFuse_1.InPort( 'shape1' , 'objref' ) - IMakeFuse_1shape2 = MakeFuse_1.InPort( 'shape2' , 'objref' ) - IMakeFuse_1Gate = MakeFuse_1.GetInPort( 'Gate' ) - OMakeFuse_1shape = MakeFuse_1.OutPort( 'shape' , 'objref' ) - OMakeFuse_1Gate = MakeFuse_1.GetOutPort( 'Gate' ) - - PyMakeFuse_2 = [] - PyMakeFuse_2.append( 'def MakeFuse_2(shape1,shape2): ' ) - PyMakeFuse_2.append( ' # fuse operation 3 ' ) - PyMakeFuse_2.append( ' shape = MakeBoolean(shape1,shape2,3) ' ) - PyMakeFuse_2.append( ' from SALOME_NamingServicePy import SALOME_NamingServicePy_i ' ) - PyMakeFuse_2.append( ' myNamingService = SALOME_NamingServicePy_i(orb) ' ) - PyMakeFuse_2.append( ' aSession = myNamingService.Resolve('/Kernel/Session') ' ) - PyMakeFuse_2.append( ' aStudyId = aSession.GetActiveStudyId() ' ) - PyMakeFuse_2.append( ' myStudyManager = myNamingService.Resolve('/myStudyManager') ' ) - PyMakeFuse_2.append( ' aStudy = myStudyManager.GetStudyByID(aStudyId) ' ) - PyMakeFuse_2.append( ' aSObject = geom.AddInStudy(aStudy, shape, "shape", None) ' ) - PyMakeFuse_2.append( ' return shape ' ) - MakeFuse_2 = aNewDataFlow_1_4_2_1_1_2_2_1_1.INode( 'MakeFuse_2' , PyMakeFuse_2 ) - MakeFuse_2.SetName( 'MakeFuse_2' ) - MakeFuse_2.SetAuthor( '' ) - MakeFuse_2.SetComment( 'Compute Node' ) - MakeFuse_2.Coords( 1049 , 295 ) - IMakeFuse_2shape1 = MakeFuse_2.InPort( 'shape1' , 'objref' ) - IMakeFuse_2shape2 = MakeFuse_2.InPort( 'shape2' , 'objref' ) - IMakeFuse_2Gate = MakeFuse_2.GetInPort( 'Gate' ) - OMakeFuse_2shape = MakeFuse_2.OutPort( 'shape' , 'objref' ) - OMakeFuse_2Gate = MakeFuse_2.GetOutPort( 'Gate' ) - - # Creation of Links - LgagGateMakeBox1Gate = aNewDataFlow_1_4_2_1_1_2_2_1_1.Link( OgagGate , IMakeBox1Gate ) - - LMakeBox1shapeMakeCopy_1shape1 = aNewDataFlow_1_4_2_1_1_2_2_1_1.Link( OMakeBox1shape , IMakeCopy_1shape1 ) - - LMakeBox1shapeMakeCopy_2shape1 = aNewDataFlow_1_4_2_1_1_2_2_1_1.Link( OMakeBox1shape , IMakeCopy_2shape1 ) - LMakeBox1shapeMakeCopy_2shape1.AddCoord( 1 , 384 , 207 ) - - LMakeBox1GateMakeCopy_1Gate = aNewDataFlow_1_4_2_1_1_2_2_1_1.Link( OMakeBox1Gate , IMakeCopy_1Gate ) - - LMakeCopy_1shapeMakeTranslation_1shape1 = aNewDataFlow_1_4_2_1_1_2_2_1_1.Link( OMakeCopy_1shape , IMakeTranslation_1shape1 ) - - LMakeCopy_1GateMakeCopy_2Gate = aNewDataFlow_1_4_2_1_1_2_2_1_1.Link( OMakeCopy_1Gate , IMakeCopy_2Gate ) - LMakeCopy_1GateMakeCopy_2Gate.AddCoord( 1 , 366 , 231 ) - LMakeCopy_1GateMakeCopy_2Gate.AddCoord( 2 , 570 , 98 ) - - LMakeCopy_2shapeMakeFuse_1shape2 = aNewDataFlow_1_4_2_1_1_2_2_1_1.Link( OMakeCopy_2shape , IMakeFuse_1shape2 ) - LMakeCopy_2shapeMakeFuse_1shape2.AddCoord( 1 , 674 , 207 ) - - LMakeCopy_2GateMakeSphere_1Gate = aNewDataFlow_1_4_2_1_1_2_2_1_1.Link( OMakeCopy_2Gate , IMakeSphere_1Gate ) - LMakeCopy_2GateMakeSphere_1Gate.AddCoord( 1 , 554 , 468 ) - - LMakeSphere_1shapeMakeFuse_2shape2 = aNewDataFlow_1_4_2_1_1_2_2_1_1.Link( OMakeSphere_1shape , IMakeFuse_2shape2 ) - - LMakeSphere_1GateMakeTranslation_1Gate = aNewDataFlow_1_4_2_1_1_2_2_1_1.Link( OMakeSphere_1Gate , IMakeTranslation_1Gate ) - LMakeSphere_1GateMakeTranslation_1Gate.AddCoord( 1 , 573 , 158 ) - LMakeSphere_1GateMakeTranslation_1Gate.AddCoord( 2 , 796 , 468 ) - - LMakeTranslation_1shapeMakeFuse_1shape1 = aNewDataFlow_1_4_2_1_1_2_2_1_1.Link( OMakeTranslation_1shape , IMakeFuse_1shape1 ) - - LMakeTranslation_1GateMakeFuse_1Gate = aNewDataFlow_1_4_2_1_1_2_2_1_1.Link( OMakeTranslation_1Gate , IMakeFuse_1Gate ) - - LMakeFuse_1shapeMakeFuse_2shape1 = aNewDataFlow_1_4_2_1_1_2_2_1_1.Link( OMakeFuse_1shape , IMakeFuse_2shape1 ) - LMakeFuse_1shapeMakeFuse_2shape1.AddCoord( 1 , 1017 , 366 ) - LMakeFuse_1shapeMakeFuse_2shape1.AddCoord( 2 , 1017 , 187 ) - - LMakeFuse_1GateMakeFuse_2Gate = aNewDataFlow_1_4_2_1_1_2_2_1_1.Link( OMakeFuse_1Gate , IMakeFuse_2Gate ) - LMakeFuse_1GateMakeFuse_2Gate.AddCoord( 1 , 987 , 410 ) - - # Input datas - IMakeBox1x1.Input( 0 ) - IMakeBox1y1.Input( 0 ) - IMakeBox1z1.Input( 0 ) - IMakeBox1x2.Input( 50 ) - IMakeBox1y2.Input( 50 ) - IMakeBox1z2.Input( 50 ) - IMakeSphere_1x1.Input( 0 ) - IMakeSphere_1y1.Input( 0 ) - IMakeSphere_1z1.Input( 0 ) - IMakeSphere_1radius.Input( 12 ) - IMakeTranslation_1x1.Input( 25 ) - IMakeTranslation_1y1.Input( 25 ) - IMakeTranslation_1z1.Input( 25 ) - - # Output Ports of the graph - #OMakeFuse_2shape = MakeFuse_2.GetOutPort( 'shape' ) - return aNewDataFlow_1_4_2_1_1_2_2_1_1 - - -aNewDataFlow_1_4_2_1_1_2_2_1_1 = DefaNewDataFlow_1_4_2_1_1_2_2_1_1() diff --git a/Superv/Python/GeomGraph_py.py b/Superv/Python/GeomGraph_py.py deleted file mode 100644 index 8df7a7d..0000000 --- a/Superv/Python/GeomGraph_py.py +++ /dev/null @@ -1,217 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph aNewDataFlow_1_4_2_1_1_2_2_1_1 -# -from SuperV import * - -# Graph creation of aNewDataFlow_1_4_2_1_1_2_2_1_1 -def DefaNewDataFlow_1_4_2_1_1_2_2_1_1() : - aNewDataFlow_1_4_2_1_1_2_2_1_1 = Graph( 'aNewDataFlow_1_4_2_1_1_2_2_1_1' ) - aNewDataFlow_1_4_2_1_1_2_2_1_1.SetName( 'aNewDataFlow_1_4_2_1_1_2_2_1_1' ) - aNewDataFlow_1_4_2_1_1_2_2_1_1.SetAuthor( '' ) - aNewDataFlow_1_4_2_1_1_2_2_1_1.SetComment( '' ) - aNewDataFlow_1_4_2_1_1_2_2_1_1.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - # Creation of InLine Nodes - Pygag = [] - Pygag.append( 'from batchmode_geompy import * ' ) - Pygag.append( 'def gag(): ' ) - Pygag.append( ' # This is a gag ' ) - Pygag.append( ' return 1 ' ) - gag = aNewDataFlow_1_4_2_1_1_2_2_1_1.INode( 'gag' , Pygag ) - gag.SetName( 'gag' ) - gag.SetAuthor( '' ) - gag.SetComment( 'Compute Node' ) - gag.Coords( 0 , 123 ) - IgagGate = gag.GetInPort( 'Gate' ) - OgagGate = gag.GetOutPort( 'Gate' ) - - PyMakeBox1 = [] - PyMakeBox1.append( 'def MakeBox1(x1,y1,z1,x2,y2,z2): ' ) - PyMakeBox1.append( ' aBox = MakeBox(x1,y1,z1,x2,y2,z2) ' ) - PyMakeBox1.append( ' return aBox ' ) - MakeBox1 = aNewDataFlow_1_4_2_1_1_2_2_1_1.INode( 'MakeBox1' , PyMakeBox1 ) - MakeBox1.SetName( 'MakeBox1' ) - MakeBox1.SetAuthor( '' ) - MakeBox1.SetComment( 'Compute Node' ) - MakeBox1.Coords( 194 , 3 ) - IMakeBox1x1 = MakeBox1.InPort( 'x1' , 'double' ) - IMakeBox1y1 = MakeBox1.InPort( 'y1' , 'double' ) - IMakeBox1z1 = MakeBox1.InPort( 'z1' , 'double' ) - IMakeBox1x2 = MakeBox1.InPort( 'x2' , 'double' ) - IMakeBox1y2 = MakeBox1.InPort( 'y2' , 'double' ) - IMakeBox1z2 = MakeBox1.InPort( 'z2' , 'double' ) - IMakeBox1Gate = MakeBox1.GetInPort( 'Gate' ) - OMakeBox1shape = MakeBox1.OutPort( 'shape' , 'objref' ) - OMakeBox1Gate = MakeBox1.GetOutPort( 'Gate' ) - - PyMakeCopy_1 = [] - PyMakeCopy_1.append( 'def MakeCopy_1(shape1): ' ) - PyMakeCopy_1.append( ' shape=MakeCopy(shape1) ' ) - PyMakeCopy_1.append( ' return shape ' ) - MakeCopy_1 = aNewDataFlow_1_4_2_1_1_2_2_1_1.INode( 'MakeCopy_1' , PyMakeCopy_1 ) - MakeCopy_1.SetName( 'MakeCopy_1' ) - MakeCopy_1.SetAuthor( '' ) - MakeCopy_1.SetComment( 'Compute Node' ) - MakeCopy_1.Coords( 389 , 3 ) - IMakeCopy_1shape1 = MakeCopy_1.InPort( 'shape1' , 'objref' ) - IMakeCopy_1Gate = MakeCopy_1.GetInPort( 'Gate' ) - OMakeCopy_1shape = MakeCopy_1.OutPort( 'shape' , 'objref' ) - OMakeCopy_1Gate = MakeCopy_1.GetOutPort( 'Gate' ) - - PyMakeCopy_2 = [] - PyMakeCopy_2.append( 'def MakeCopy_2(shape1): ' ) - PyMakeCopy_2.append( ' shape=MakeCopy(shape1) ' ) - PyMakeCopy_2.append( ' return shape ' ) - MakeCopy_2 = aNewDataFlow_1_4_2_1_1_2_2_1_1.INode( 'MakeCopy_2' , PyMakeCopy_2 ) - MakeCopy_2.SetName( 'MakeCopy_2' ) - MakeCopy_2.SetAuthor( '' ) - MakeCopy_2.SetComment( 'Compute Node' ) - MakeCopy_2.Coords( 389 , 136 ) - IMakeCopy_2shape1 = MakeCopy_2.InPort( 'shape1' , 'objref' ) - IMakeCopy_2Gate = MakeCopy_2.GetInPort( 'Gate' ) - OMakeCopy_2shape = MakeCopy_2.OutPort( 'shape' , 'objref' ) - OMakeCopy_2Gate = MakeCopy_2.GetOutPort( 'Gate' ) - - PyMakeSphere_1 = [] - PyMakeSphere_1.append( 'def MakeSphere_1(x1,y1,z1,radius): ' ) - PyMakeSphere_1.append( ' apoint=MakeVertex(x1,y1,z1) ' ) - PyMakeSphere_1.append( ' shape=MakeSpherePntR(apoint,radius) ' ) - PyMakeSphere_1.append( ' return shape ' ) - MakeSphere_1 = aNewDataFlow_1_4_2_1_1_2_2_1_1.INode( 'MakeSphere_1' , PyMakeSphere_1 ) - MakeSphere_1.SetName( 'MakeSphere_1' ) - MakeSphere_1.SetAuthor( '' ) - MakeSphere_1.SetComment( 'Compute Node' ) - MakeSphere_1.Coords( 203 , 315 ) - IMakeSphere_1x1 = MakeSphere_1.InPort( 'x1' , 'double' ) - IMakeSphere_1y1 = MakeSphere_1.InPort( 'y1' , 'double' ) - IMakeSphere_1z1 = MakeSphere_1.InPort( 'z1' , 'double' ) - IMakeSphere_1radius = MakeSphere_1.InPort( 'radius' , 'double' ) - IMakeSphere_1Gate = MakeSphere_1.GetInPort( 'Gate' ) - OMakeSphere_1shape = MakeSphere_1.OutPort( 'shape' , 'objref' ) - OMakeSphere_1Gate = MakeSphere_1.GetOutPort( 'Gate' ) - - PyMakeTranslation_1 = [] - PyMakeTranslation_1.append( 'def MakeTranslation_1(shape1,x1,y1,z1): ' ) - PyMakeTranslation_1.append( ' shape = MakeTranslation(shape1,x1,y1,z1) ' ) - PyMakeTranslation_1.append( ' return shape ' ) - MakeTranslation_1 = aNewDataFlow_1_4_2_1_1_2_2_1_1.INode( 'MakeTranslation_1' , PyMakeTranslation_1 ) - MakeTranslation_1.SetName( 'MakeTranslation_1' ) - MakeTranslation_1.SetAuthor( '' ) - MakeTranslation_1.SetComment( 'Compute Node' ) - MakeTranslation_1.Coords( 596 , 3 ) - IMakeTranslation_1shape1 = MakeTranslation_1.InPort( 'shape1' , 'objref' ) - IMakeTranslation_1x1 = MakeTranslation_1.InPort( 'x1' , 'double' ) - IMakeTranslation_1y1 = MakeTranslation_1.InPort( 'y1' , 'double' ) - IMakeTranslation_1z1 = MakeTranslation_1.InPort( 'z1' , 'double' ) - IMakeTranslation_1Gate = MakeTranslation_1.GetInPort( 'Gate' ) - OMakeTranslation_1shape = MakeTranslation_1.OutPort( 'shape' , 'objref' ) - OMakeTranslation_1Gate = MakeTranslation_1.GetOutPort( 'Gate' ) - - PyMakeFuse_1 = [] - PyMakeFuse_1.append( 'def MakeFuse_1(shape1,shape2): ' ) - PyMakeFuse_1.append( ' # fuse operation 3 ' ) - PyMakeFuse_1.append( ' shape = MakeBoolean(shape1,shape2,3) ' ) - PyMakeFuse_1.append( ' return shape ' ) - MakeFuse_1 = aNewDataFlow_1_4_2_1_1_2_2_1_1.INode( 'MakeFuse_1' , PyMakeFuse_1 ) - MakeFuse_1.SetName( 'MakeFuse_1' ) - MakeFuse_1.SetAuthor( '' ) - MakeFuse_1.SetComment( 'Compute Node' ) - MakeFuse_1.Coords( 823 , 116 ) - IMakeFuse_1shape1 = MakeFuse_1.InPort( 'shape1' , 'objref' ) - IMakeFuse_1shape2 = MakeFuse_1.InPort( 'shape2' , 'objref' ) - IMakeFuse_1Gate = MakeFuse_1.GetInPort( 'Gate' ) - OMakeFuse_1shape = MakeFuse_1.OutPort( 'shape' , 'objref' ) - OMakeFuse_1Gate = MakeFuse_1.GetOutPort( 'Gate' ) - - PyMakeFuse_2 = [] - PyMakeFuse_2.append( 'def MakeFuse_2(shape1,shape2): ' ) - PyMakeFuse_2.append( ' # fuse operation 3 ' ) - PyMakeFuse_2.append( ' shape = MakeBoolean(shape1,shape2,3) ' ) - PyMakeFuse_2.append( ' from SALOME_NamingServicePy import SALOME_NamingServicePy_i ' ) - PyMakeFuse_2.append( ' myNamingService = SALOME_NamingServicePy_i(orb) ' ) - PyMakeFuse_2.append( ' aSession = myNamingService.Resolve('/Kernel/Session') ' ) - PyMakeFuse_2.append( ' aStudyId = aSession.GetActiveStudyId() ' ) - PyMakeFuse_2.append( ' myStudyManager = myNamingService.Resolve('/myStudyManager') ' ) - PyMakeFuse_2.append( ' aStudy = myStudyManager.GetStudyByID(aStudyId) ' ) - PyMakeFuse_2.append( ' aSObject = geom.AddInStudy(aStudy, shape, "shape", None) ' ) - PyMakeFuse_2.append( ' return shape ' ) - MakeFuse_2 = aNewDataFlow_1_4_2_1_1_2_2_1_1.INode( 'MakeFuse_2' , PyMakeFuse_2 ) - MakeFuse_2.SetName( 'MakeFuse_2' ) - MakeFuse_2.SetAuthor( '' ) - MakeFuse_2.SetComment( 'Compute Node' ) - MakeFuse_2.Coords( 1049 , 295 ) - IMakeFuse_2shape1 = MakeFuse_2.InPort( 'shape1' , 'objref' ) - IMakeFuse_2shape2 = MakeFuse_2.InPort( 'shape2' , 'objref' ) - IMakeFuse_2Gate = MakeFuse_2.GetInPort( 'Gate' ) - OMakeFuse_2shape = MakeFuse_2.OutPort( 'shape' , 'objref' ) - OMakeFuse_2Gate = MakeFuse_2.GetOutPort( 'Gate' ) - - # Creation of Links - LgagGateMakeBox1Gate = aNewDataFlow_1_4_2_1_1_2_2_1_1.Link( OgagGate , IMakeBox1Gate ) - - LgagGateMakeSphere_1Gate = aNewDataFlow_1_4_2_1_1_2_2_1_1.Link( OgagGate , IMakeSphere_1Gate ) - LgagGateMakeSphere_1Gate.AddCoord( 1 , 164 , 470 ) - LgagGateMakeSphere_1Gate.AddCoord( 2 , 164 , 265 ) - - LMakeBox1shapeMakeCopy_1shape1 = aNewDataFlow_1_4_2_1_1_2_2_1_1.Link( OMakeBox1shape , IMakeCopy_1shape1 ) - - LMakeBox1shapeMakeCopy_2shape1 = aNewDataFlow_1_4_2_1_1_2_2_1_1.Link( OMakeBox1shape , IMakeCopy_2shape1 ) - LMakeBox1shapeMakeCopy_2shape1.AddCoord( 1 , 384 , 207 ) - - LMakeCopy_1shapeMakeTranslation_1shape1 = aNewDataFlow_1_4_2_1_1_2_2_1_1.Link( OMakeCopy_1shape , IMakeTranslation_1shape1 ) - - LMakeCopy_2shapeMakeFuse_1shape2 = aNewDataFlow_1_4_2_1_1_2_2_1_1.Link( OMakeCopy_2shape , IMakeFuse_1shape2 ) - LMakeCopy_2shapeMakeFuse_1shape2.AddCoord( 1 , 674 , 207 ) - - LMakeSphere_1shapeMakeFuse_2shape2 = aNewDataFlow_1_4_2_1_1_2_2_1_1.Link( OMakeSphere_1shape , IMakeFuse_2shape2 ) - - LMakeTranslation_1shapeMakeFuse_1shape1 = aNewDataFlow_1_4_2_1_1_2_2_1_1.Link( OMakeTranslation_1shape , IMakeFuse_1shape1 ) - - LMakeFuse_1shapeMakeFuse_2shape1 = aNewDataFlow_1_4_2_1_1_2_2_1_1.Link( OMakeFuse_1shape , IMakeFuse_2shape1 ) - LMakeFuse_1shapeMakeFuse_2shape1.AddCoord( 1 , 1017 , 366 ) - LMakeFuse_1shapeMakeFuse_2shape1.AddCoord( 2 , 1017 , 187 ) - - # Input datas - IMakeBox1x1.Input( 0 ) - IMakeBox1y1.Input( 0 ) - IMakeBox1z1.Input( 0 ) - IMakeBox1x2.Input( 50 ) - IMakeBox1y2.Input( 50 ) - IMakeBox1z2.Input( 50 ) - IMakeSphere_1x1.Input( 0 ) - IMakeSphere_1y1.Input( 0 ) - IMakeSphere_1z1.Input( 0 ) - IMakeSphere_1radius.Input( 12 ) - IMakeTranslation_1x1.Input( 25 ) - IMakeTranslation_1y1.Input( 25 ) - IMakeTranslation_1z1.Input( 25 ) - - # Output Ports of the graph - #OMakeFuse_2shape = MakeFuse_2.GetOutPort( 'shape' ) - return aNewDataFlow_1_4_2_1_1_2_2_1_1 - - -aNewDataFlow_1_4_2_1_1_2_2_1_1 = DefaNewDataFlow_1_4_2_1_1_2_2_1_1() diff --git a/Superv/Python/GraphAdd.py b/Superv/Python/GraphAdd.py deleted file mode 100644 index 10c802e..0000000 --- a/Superv/Python/GraphAdd.py +++ /dev/null @@ -1,60 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphAdd -# -from SuperV import * - -# Graph creation of GraphAdd -def DefGraphAdd() : - GraphAdd = Graph( 'GraphAdd' ) - GraphAdd.SetName( 'GraphAdd' ) - GraphAdd.SetAuthor( '' ) - GraphAdd.SetComment( '' ) - GraphAdd.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - Add = GraphAdd.FNode( 'AddComponent' , 'AddComponent' , 'Add' ) - Add.SetName( 'Add' ) - Add.SetAuthor( '' ) - Add.SetContainer( 'localhost/FactoryServer' ) - Add.SetComment( 'Add from AddComponent' ) - Add.Coords( 55 , 61 ) - IAddx = Add.GetInPort( 'x' ) - IAddy = Add.GetInPort( 'y' ) - IAddGate = Add.GetInPort( 'Gate' ) - OAddFuncValue = Add.GetOutPort( 'FuncValue' ) - OAddz = Add.GetOutPort( 'z' ) - OAddGate = Add.GetOutPort( 'Gate' ) - - # Input Ports of the graph - #IAddx = Add.GetInPort( 'x' ) - #IAddy = Add.GetInPort( 'y' ) - - # Output Ports of the graph - #OAddFuncValue = Add.GetOutPort( 'FuncValue' ) - #OAddz = Add.GetOutPort( 'z' ) - return GraphAdd - - -GraphAdd = DefGraphAdd() diff --git a/Superv/Python/GraphBadInputInLoop.py b/Superv/Python/GraphBadInputInLoop.py deleted file mode 100755 index 744ad8f..0000000 --- a/Superv/Python/GraphBadInputInLoop.py +++ /dev/null @@ -1,173 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphBadInputInLoop_1 -# -from SuperV import * - -# Graph creation of GraphBadInputInLoop_1 -def DefGraphBadInputInLoop_1() : - GraphBadInputInLoop_1 = Graph( 'GraphBadInputInLoop_1' ) - GraphBadInputInLoop_1.SetName( 'GraphBadInputInLoop_1' ) - GraphBadInputInLoop_1.SetAuthor( '' ) - GraphBadInputInLoop_1.SetComment( '' ) - GraphBadInputInLoop_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 (GraphLoopSwitch1)" ' ) - PyIsOdd.append( ' sleep( 1 ) ' ) - PyIsOdd.append( ' return a ' ) - IsOdd = GraphBadInputInLoop_1.INode( 'IsOdd' , PyIsOdd ) - IsOdd.SetName( 'IsOdd' ) - IsOdd.SetAuthor( '' ) - IsOdd.SetComment( 'Python function' ) - IsOdd.Coords( 397 , 1 ) - IIsOdda = IsOdd.InPort( 'a' , 'long' ) - IIsOddGate = IsOdd.GetInPort( 'Gate' ) - OIsOdda = IsOdd.OutPort( 'a' , 'long' ) - OIsOddGate = IsOdd.GetOutPort( 'Gate' ) - - PyBadInputOfLoop = [] - PyBadInputOfLoop.append( 'def BadInputOfLoop() : ' ) - PyBadInputOfLoop.append( ' return 1 ' ) - PyBadInputOfLoop.append( '' ) - BadInputOfLoop = GraphBadInputInLoop_1.INode( 'BadInputOfLoop' , PyBadInputOfLoop ) - BadInputOfLoop.SetName( 'BadInputOfLoop' ) - BadInputOfLoop.SetAuthor( '' ) - BadInputOfLoop.SetComment( 'Compute Node' ) - BadInputOfLoop.Coords( 15 , 307 ) - IBadInputOfLoopGate = BadInputOfLoop.GetInPort( 'Gate' ) - OBadInputOfLoopInputInLoop = BadInputOfLoop.OutPort( 'InputInLoop' , 'long' ) - OBadInputOfLoopGate = BadInputOfLoop.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyInitLoop = [] - PyMoreInitLoop = [] - PyMoreInitLoop.append( '' ) - PyNextInitLoop = [] - PyNextInitLoop.append( '' ) - InitLoop,EndOfInitLoop = GraphBadInputInLoop_1.LNode( '' , PyInitLoop , '' , PyMoreInitLoop , '' , PyNextInitLoop ) - EndOfInitLoop.SetName( 'EndOfInitLoop' ) - EndOfInitLoop.SetAuthor( '' ) - EndOfInitLoop.SetComment( 'Compute Node' ) - EndOfInitLoop.Coords( 767 , 102 ) - PyEndOfInitLoop = [] - PyEndOfInitLoop.append( 'def EndOfInitLoop( DoLoop , Index , Min , Max ) :' ) - PyEndOfInitLoop.append( ' Index = Index + 1 ' ) - PyEndOfInitLoop.append( ' if Index <= Max : ' ) - PyEndOfInitLoop.append( ' DoLoop = 1 ' ) - PyEndOfInitLoop.append( ' else : ' ) - PyEndOfInitLoop.append( ' DoLoop = 0 ' ) - PyEndOfInitLoop.append( ' return DoLoop,Index,Min,Max ' ) - EndOfInitLoop.SetPyFunction( 'EndOfInitLoop' , PyEndOfInitLoop ) - IInitLoopDoLoop = InitLoop.GetInPort( 'DoLoop' ) - IInitLoopIndex = InitLoop.InPort( 'Index' , 'long' ) - IInitLoopMin = InitLoop.InPort( 'Min' , 'long' ) - IInitLoopMax = InitLoop.InPort( 'Max' , 'long' ) - IInitLoopGate = InitLoop.GetInPort( 'Gate' ) - OInitLoopDoLoop = InitLoop.GetOutPort( 'DoLoop' ) - OInitLoopIndex = InitLoop.GetOutPort( 'Index' ) - OInitLoopMin = InitLoop.GetOutPort( 'Min' ) - OInitLoopMax = InitLoop.GetOutPort( 'Max' ) - IEndOfInitLoopDoLoop = EndOfInitLoop.GetInPort( 'DoLoop' ) - IEndOfInitLoopIndex = EndOfInitLoop.GetInPort( 'Index' ) - IEndOfInitLoopMin = EndOfInitLoop.GetInPort( 'Min' ) - IEndOfInitLoopMax = EndOfInitLoop.GetInPort( 'Max' ) - IEndOfInitLoopGate = EndOfInitLoop.GetInPort( 'Gate' ) - OEndOfInitLoopDoLoop = EndOfInitLoop.GetOutPort( 'DoLoop' ) - OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) - OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) - OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) - OEndOfInitLoopGate = EndOfInitLoop.GetOutPort( 'Gate' ) - InitLoop.SetName( 'InitLoop' ) - InitLoop.SetAuthor( '' ) - InitLoop.SetComment( 'Compute Node' ) - InitLoop.Coords( 10 , 108 ) - - # Creation of Switch Nodes - PySwitch = [] - PySwitch.append( 'from time import * ' ) - PySwitch.append( 'def Switch(a) : ' ) - PySwitch.append( ' if ( a & 1 ) == 0 : ' ) - PySwitch.append( ' sleep(1) ' ) - PySwitch.append( ' return a & 1,1-(a&1),a ' ) - Switch,EndSwitch = GraphBadInputInLoop_1.SNode( 'Switch' , PySwitch ) - EndSwitch.SetName( 'EndSwitch' ) - EndSwitch.SetAuthor( '' ) - EndSwitch.SetComment( 'Compute Node' ) - EndSwitch.Coords( 587 , 103 ) - PyEndSwitch = [] - PyEndSwitch.append( 'def EndSwitch(a) : ' ) - PyEndSwitch.append( ' if ( a & 1 ) == 0 : ' ) - PyEndSwitch.append( ' sleep(1) ' ) - PyEndSwitch.append( ' return a ' ) - EndSwitch.SetPyFunction( 'EndSwitch' , PyEndSwitch ) - IEndSwitcha = EndSwitch.InPort( 'a' , 'long' ) - IEndSwitchDefault = EndSwitch.GetInPort( 'Default' ) - OEndSwitcha = EndSwitch.OutPort( 'a' , 'long' ) - OEndSwitchGate = EndSwitch.GetOutPort( 'Gate' ) - Switch.SetName( 'Switch' ) - Switch.SetAuthor( '' ) - Switch.SetComment( 'Compute Node' ) - Switch.Coords( 194 , 109 ) - ISwitcha = Switch.InPort( 'a' , 'long' ) - ISwitchInputInLoop = Switch.InPort( 'InputInLoop' , 'long' ) - ISwitchGate = Switch.GetInPort( 'Gate' ) - OSwitchOdd = Switch.OutPort( 'Odd' , 'long' ) - OSwitchEven = Switch.OutPort( 'Even' , 'int' ) - OSwitcha = Switch.OutPort( 'a' , 'int' ) - OSwitchDefault = Switch.GetOutPort( 'Default' ) - - # Creation of Links - LIsOddaEndSwitcha = GraphBadInputInLoop_1.Link( OIsOdda , IEndSwitcha ) - - LInitLoopIndexSwitcha = GraphBadInputInLoop_1.Link( OInitLoopIndex , ISwitcha ) - - LInitLoopMinEndOfInitLoopMin = GraphBadInputInLoop_1.Link( OInitLoopMin , IEndOfInitLoopMin ) - - LSwitchOddIsOddGate = GraphBadInputInLoop_1.Link( OSwitchOdd , IIsOddGate ) - - LSwitchaIsOdda = GraphBadInputInLoop_1.Link( OSwitcha , IIsOdda ) - - LEndSwitchaEndOfInitLoopIndex = GraphBadInputInLoop_1.Link( OEndSwitcha , IEndOfInitLoopIndex ) - - LBadInputOfLoopInputInLoopSwitchInputInLoop = GraphBadInputInLoop_1.Link( OBadInputOfLoopInputInLoop , ISwitchInputInLoop ) - - # Input datas - IInitLoopIndex.Input( 0 ) - IInitLoopMin.Input( 0 ) - IInitLoopMax.Input( 100 ) - - # Output Ports of the graph - #OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) - #OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) - #OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) - #OSwitchEven = Switch.GetOutPort( 'Even' ) - return GraphBadInputInLoop_1 - - -GraphBadInputInLoop_1 = DefGraphBadInputInLoop_1() diff --git a/Superv/Python/GraphBadInputInLoop1.py b/Superv/Python/GraphBadInputInLoop1.py deleted file mode 100755 index a66c54d..0000000 --- a/Superv/Python/GraphBadInputInLoop1.py +++ /dev/null @@ -1,173 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphBadInputInLoop1_1 -# -from SuperV import * - -# Graph creation of GraphBadInputInLoop1_1 -def DefGraphBadInputInLoop1_1() : - GraphBadInputInLoop1_1 = Graph( 'GraphBadInputInLoop1_1' ) - GraphBadInputInLoop1_1.SetName( 'GraphBadInputInLoop1_1' ) - GraphBadInputInLoop1_1.SetAuthor( '' ) - GraphBadInputInLoop1_1.SetComment( '' ) - GraphBadInputInLoop1_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 (GraphLoopSwitch1)" ' ) - PyIsOdd.append( ' sleep( 1 ) ' ) - PyIsOdd.append( ' return a ' ) - IsOdd = GraphBadInputInLoop1_1.INode( 'IsOdd' , PyIsOdd ) - IsOdd.SetName( 'IsOdd' ) - IsOdd.SetAuthor( '' ) - IsOdd.SetComment( 'Python function' ) - IsOdd.Coords( 397 , 1 ) - IIsOdda = IsOdd.InPort( 'a' , 'long' ) - IIsOddGate = IsOdd.GetInPort( 'Gate' ) - OIsOdda = IsOdd.OutPort( 'a' , 'long' ) - OIsOddGate = IsOdd.GetOutPort( 'Gate' ) - - PyBadInputOfLoop = [] - PyBadInputOfLoop.append( 'def BadInputOfLoop() : ' ) - PyBadInputOfLoop.append( ' return 1 ' ) - PyBadInputOfLoop.append( '' ) - BadInputOfLoop = GraphBadInputInLoop1_1.INode( 'BadInputOfLoop' , PyBadInputOfLoop ) - BadInputOfLoop.SetName( 'BadInputOfLoop' ) - BadInputOfLoop.SetAuthor( '' ) - BadInputOfLoop.SetComment( 'Compute Node' ) - BadInputOfLoop.Coords( 15 , 307 ) - IBadInputOfLoopGate = BadInputOfLoop.GetInPort( 'Gate' ) - OBadInputOfLoopInputInLoop = BadInputOfLoop.OutPort( 'InputInLoop' , 'boolean' ) - OBadInputOfLoopGate = BadInputOfLoop.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyInitLoop = [] - PyMoreInitLoop = [] - PyMoreInitLoop.append( '' ) - PyNextInitLoop = [] - PyNextInitLoop.append( '' ) - InitLoop,EndOfInitLoop = GraphBadInputInLoop1_1.LNode( '' , PyInitLoop , '' , PyMoreInitLoop , '' , PyNextInitLoop ) - EndOfInitLoop.SetName( 'EndOfInitLoop' ) - EndOfInitLoop.SetAuthor( '' ) - EndOfInitLoop.SetComment( 'Compute Node' ) - EndOfInitLoop.Coords( 767 , 102 ) - PyEndOfInitLoop = [] - PyEndOfInitLoop.append( 'def EndOfInitLoop( DoLoop , Index , Min , Max ) :' ) - PyEndOfInitLoop.append( ' Index = Index + 1 ' ) - PyEndOfInitLoop.append( ' if Index <= Max : ' ) - PyEndOfInitLoop.append( ' DoLoop = 1 ' ) - PyEndOfInitLoop.append( ' else : ' ) - PyEndOfInitLoop.append( ' DoLoop = 0 ' ) - PyEndOfInitLoop.append( ' return DoLoop,Index,Min,Max ' ) - EndOfInitLoop.SetPyFunction( 'EndOfInitLoop' , PyEndOfInitLoop ) - IInitLoopDoLoop = InitLoop.GetInPort( 'DoLoop' ) - IInitLoopIndex = InitLoop.InPort( 'Index' , 'long' ) - IInitLoopMin = InitLoop.InPort( 'Min' , 'long' ) - IInitLoopMax = InitLoop.InPort( 'Max' , 'long' ) - IInitLoopGate = InitLoop.GetInPort( 'Gate' ) - OInitLoopDoLoop = InitLoop.GetOutPort( 'DoLoop' ) - OInitLoopIndex = InitLoop.GetOutPort( 'Index' ) - OInitLoopMin = InitLoop.GetOutPort( 'Min' ) - OInitLoopMax = InitLoop.GetOutPort( 'Max' ) - IEndOfInitLoopDoLoop = EndOfInitLoop.GetInPort( 'DoLoop' ) - IEndOfInitLoopIndex = EndOfInitLoop.GetInPort( 'Index' ) - IEndOfInitLoopMin = EndOfInitLoop.GetInPort( 'Min' ) - IEndOfInitLoopMax = EndOfInitLoop.GetInPort( 'Max' ) - IEndOfInitLoopGate = EndOfInitLoop.GetInPort( 'Gate' ) - OEndOfInitLoopDoLoop = EndOfInitLoop.GetOutPort( 'DoLoop' ) - OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) - OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) - OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) - OEndOfInitLoopGate = EndOfInitLoop.GetOutPort( 'Gate' ) - InitLoop.SetName( 'InitLoop' ) - InitLoop.SetAuthor( '' ) - InitLoop.SetComment( 'Compute Node' ) - InitLoop.Coords( 10 , 108 ) - - # Creation of Switch Nodes - PySwitch = [] - PySwitch.append( 'from time import * ' ) - PySwitch.append( 'def Switch(a) : ' ) - PySwitch.append( ' if ( a & 1 ) == 0 : ' ) - PySwitch.append( ' sleep(1) ' ) - PySwitch.append( ' return a & 1,1-(a&1),a ' ) - Switch,EndSwitch = GraphBadInputInLoop1_1.SNode( 'Switch' , PySwitch ) - EndSwitch.SetName( 'EndSwitch' ) - EndSwitch.SetAuthor( '' ) - EndSwitch.SetComment( 'Compute Node' ) - EndSwitch.Coords( 587 , 103 ) - PyEndSwitch = [] - PyEndSwitch.append( 'def EndSwitch(a) : ' ) - PyEndSwitch.append( ' if ( a & 1 ) == 0 : ' ) - PyEndSwitch.append( ' sleep(1) ' ) - PyEndSwitch.append( ' return a ' ) - EndSwitch.SetPyFunction( 'EndSwitch' , PyEndSwitch ) - IEndSwitcha = EndSwitch.InPort( 'a' , 'long' ) - IEndSwitchDefault = EndSwitch.GetInPort( 'Default' ) - OEndSwitcha = EndSwitch.OutPort( 'a' , 'long' ) - OEndSwitchGate = EndSwitch.GetOutPort( 'Gate' ) - Switch.SetName( 'Switch' ) - Switch.SetAuthor( '' ) - Switch.SetComment( 'Compute Node' ) - Switch.Coords( 194 , 109 ) - ISwitcha = Switch.InPort( 'a' , 'long' ) - ISwitchGate = Switch.GetInPort( 'Gate' ) - OSwitchOdd = Switch.OutPort( 'Odd' , 'long' ) - OSwitchEven = Switch.OutPort( 'Even' , 'int' ) - OSwitcha = Switch.OutPort( 'a' , 'int' ) - OSwitchDefault = Switch.GetOutPort( 'Default' ) - - # Creation of Links - LIsOddaEndSwitcha = GraphBadInputInLoop1_1.Link( OIsOdda , IEndSwitcha ) - - LInitLoopIndexSwitcha = GraphBadInputInLoop1_1.Link( OInitLoopIndex , ISwitcha ) - - LInitLoopMinEndOfInitLoopMin = GraphBadInputInLoop1_1.Link( OInitLoopMin , IEndOfInitLoopMin ) - - LSwitchOddIsOddGate = GraphBadInputInLoop1_1.Link( OSwitchOdd , IIsOddGate ) - - LSwitchEvenEndSwitchDefault = GraphBadInputInLoop1_1.Link( OSwitchEven , IEndSwitchDefault ) - - LSwitchaIsOdda = GraphBadInputInLoop1_1.Link( OSwitcha , IIsOdda ) - - LEndSwitchaEndOfInitLoopIndex = GraphBadInputInLoop1_1.Link( OEndSwitcha , IEndOfInitLoopIndex ) - - LBadInputOfLoopInputInLoopEndOfInitLoopMax = GraphBadInputInLoop1_1.Link( OBadInputOfLoopInputInLoop , IEndOfInitLoopMax ) - - # Input datas - IInitLoopIndex.Input( 0 ) - IInitLoopMin.Input( 0 ) - IInitLoopMax.Input( 100 ) - - # Output Ports of the graph - #OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) - #OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) - #OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) - return GraphBadInputInLoop1_1 - - -GraphBadInputInLoop1_1 = DefGraphBadInputInLoop1_1() diff --git a/Superv/Python/GraphBadInputInLoop2.py b/Superv/Python/GraphBadInputInLoop2.py deleted file mode 100755 index bf3b133..0000000 --- a/Superv/Python/GraphBadInputInLoop2.py +++ /dev/null @@ -1,174 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphBadInputInLoop2 -# -from SuperV import * - -# Graph creation of GraphBadInputInLoop2 -def DefGraphBadInputInLoop2() : - GraphBadInputInLoop2 = Graph( 'GraphBadInputInLoop2' ) - GraphBadInputInLoop2.SetName( 'GraphBadInputInLoop2' ) - GraphBadInputInLoop2.SetAuthor( '' ) - GraphBadInputInLoop2.SetComment( '' ) - GraphBadInputInLoop2.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - # Creation of InLine Nodes - PyIsOdd = [] - PyIsOdd.append( 'from time import * ' ) - PyIsOdd.append( 'def IsOdd(a,InputInLoop) : ' ) - PyIsOdd.append( ' print a,"IsOdd (GraphLoopSwitch1)" ' ) - PyIsOdd.append( ' sleep( 1 ) ' ) - PyIsOdd.append( ' return a ' ) - IsOdd = GraphBadInputInLoop2.INode( 'IsOdd' , PyIsOdd ) - IsOdd.SetName( 'IsOdd' ) - IsOdd.SetAuthor( '' ) - IsOdd.SetComment( 'Python function' ) - IsOdd.Coords( 397 , 1 ) - IIsOdda = IsOdd.InPort( 'a' , 'long' ) - IIsOddInputInLoop = IsOdd.InPort( 'InputInLoop' , 'boolean' ) - IIsOddGate = IsOdd.GetInPort( 'Gate' ) - OIsOdda = IsOdd.OutPort( 'a' , 'long' ) - OIsOddGate = IsOdd.GetOutPort( 'Gate' ) - - PyBadInputOfLoop = [] - PyBadInputOfLoop.append( 'def BadInputOfLoop() : ' ) - PyBadInputOfLoop.append( ' return 1 ' ) - PyBadInputOfLoop.append( '' ) - BadInputOfLoop = GraphBadInputInLoop2.INode( 'BadInputOfLoop' , PyBadInputOfLoop ) - BadInputOfLoop.SetName( 'BadInputOfLoop' ) - BadInputOfLoop.SetAuthor( '' ) - BadInputOfLoop.SetComment( 'Compute Node' ) - BadInputOfLoop.Coords( 15 , 307 ) - IBadInputOfLoopGate = BadInputOfLoop.GetInPort( 'Gate' ) - OBadInputOfLoopInputInLoop = BadInputOfLoop.OutPort( 'InputInLoop' , 'boolean' ) - OBadInputOfLoopGate = BadInputOfLoop.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyInitLoop = [] - PyMoreInitLoop = [] - PyMoreInitLoop.append( '' ) - PyNextInitLoop = [] - PyNextInitLoop.append( '' ) - InitLoop,EndOfInitLoop = GraphBadInputInLoop2.LNode( '' , PyInitLoop , '' , PyMoreInitLoop , '' , PyNextInitLoop ) - EndOfInitLoop.SetName( 'EndOfInitLoop' ) - EndOfInitLoop.SetAuthor( '' ) - EndOfInitLoop.SetComment( 'Compute Node' ) - EndOfInitLoop.Coords( 767 , 102 ) - PyEndOfInitLoop = [] - PyEndOfInitLoop.append( 'def EndOfInitLoop( DoLoop , Index , Min , Max ) :' ) - PyEndOfInitLoop.append( ' Index = Index + 1 ' ) - PyEndOfInitLoop.append( ' if Index <= Max : ' ) - PyEndOfInitLoop.append( ' DoLoop = 1 ' ) - PyEndOfInitLoop.append( ' else : ' ) - PyEndOfInitLoop.append( ' DoLoop = 0 ' ) - PyEndOfInitLoop.append( ' return DoLoop,Index,Min,Max ' ) - EndOfInitLoop.SetPyFunction( 'EndOfInitLoop' , PyEndOfInitLoop ) - IInitLoopDoLoop = InitLoop.GetInPort( 'DoLoop' ) - IInitLoopIndex = InitLoop.InPort( 'Index' , 'long' ) - IInitLoopMin = InitLoop.InPort( 'Min' , 'long' ) - IInitLoopMax = InitLoop.InPort( 'Max' , 'long' ) - IInitLoopGate = InitLoop.GetInPort( 'Gate' ) - OInitLoopDoLoop = InitLoop.GetOutPort( 'DoLoop' ) - OInitLoopIndex = InitLoop.GetOutPort( 'Index' ) - OInitLoopMin = InitLoop.GetOutPort( 'Min' ) - OInitLoopMax = InitLoop.GetOutPort( 'Max' ) - IEndOfInitLoopDoLoop = EndOfInitLoop.GetInPort( 'DoLoop' ) - IEndOfInitLoopIndex = EndOfInitLoop.GetInPort( 'Index' ) - IEndOfInitLoopMin = EndOfInitLoop.GetInPort( 'Min' ) - IEndOfInitLoopMax = EndOfInitLoop.GetInPort( 'Max' ) - IEndOfInitLoopGate = EndOfInitLoop.GetInPort( 'Gate' ) - OEndOfInitLoopDoLoop = EndOfInitLoop.GetOutPort( 'DoLoop' ) - OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) - OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) - OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) - OEndOfInitLoopGate = EndOfInitLoop.GetOutPort( 'Gate' ) - InitLoop.SetName( 'InitLoop' ) - InitLoop.SetAuthor( '' ) - InitLoop.SetComment( 'Compute Node' ) - InitLoop.Coords( 10 , 108 ) - - # Creation of Switch Nodes - PySwitch = [] - PySwitch.append( 'from time import * ' ) - PySwitch.append( 'def Switch(a) : ' ) - PySwitch.append( ' if ( a & 1 ) == 0 : ' ) - PySwitch.append( ' sleep(1) ' ) - PySwitch.append( ' return a & 1,1-(a&1),a ' ) - Switch,EndSwitch = GraphBadInputInLoop2.SNode( 'Switch' , PySwitch ) - EndSwitch.SetName( 'EndSwitch' ) - EndSwitch.SetAuthor( '' ) - EndSwitch.SetComment( 'Compute Node' ) - EndSwitch.Coords( 587 , 103 ) - PyEndSwitch = [] - PyEndSwitch.append( 'def EndSwitch(a) : ' ) - PyEndSwitch.append( ' if ( a & 1 ) == 0 : ' ) - PyEndSwitch.append( ' sleep(1) ' ) - PyEndSwitch.append( ' return a ' ) - EndSwitch.SetPyFunction( 'EndSwitch' , PyEndSwitch ) - IEndSwitcha = EndSwitch.InPort( 'a' , 'long' ) - IEndSwitchDefault = EndSwitch.GetInPort( 'Default' ) - OEndSwitcha = EndSwitch.OutPort( 'a' , 'long' ) - OEndSwitchGate = EndSwitch.GetOutPort( 'Gate' ) - Switch.SetName( 'Switch' ) - Switch.SetAuthor( '' ) - Switch.SetComment( 'Compute Node' ) - Switch.Coords( 194 , 109 ) - ISwitcha = Switch.InPort( 'a' , 'long' ) - ISwitchGate = Switch.GetInPort( 'Gate' ) - OSwitchOdd = Switch.OutPort( 'Odd' , 'long' ) - OSwitchEven = Switch.OutPort( 'Even' , 'int' ) - OSwitcha = Switch.OutPort( 'a' , 'int' ) - OSwitchDefault = Switch.GetOutPort( 'Default' ) - - # Creation of Links - LIsOddaEndSwitcha = GraphBadInputInLoop2.Link( OIsOdda , IEndSwitcha ) - - LInitLoopIndexSwitcha = GraphBadInputInLoop2.Link( OInitLoopIndex , ISwitcha ) - - LInitLoopMinEndOfInitLoopMin = GraphBadInputInLoop2.Link( OInitLoopMin , IEndOfInitLoopMin ) - - LSwitchOddIsOddGate = GraphBadInputInLoop2.Link( OSwitchOdd , IIsOddGate ) - - LSwitchEvenEndSwitchDefault = GraphBadInputInLoop2.Link( OSwitchEven , IEndSwitchDefault ) - - LSwitchaIsOdda = GraphBadInputInLoop2.Link( OSwitcha , IIsOdda ) - - LEndSwitchaEndOfInitLoopIndex = GraphBadInputInLoop2.Link( OEndSwitcha , IEndOfInitLoopIndex ) - - LBadInputOfLoopInputInLoopIsOddInputInLoop = GraphBadInputInLoop2.Link( OBadInputOfLoopInputInLoop , IIsOddInputInLoop ) - - # Input datas - IInitLoopIndex.Input( 0 ) - IInitLoopMin.Input( 0 ) - IInitLoopMax.Input( 100 ) - - # Output Ports of the graph - #OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) - #OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) - #OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) - return GraphBadInputInLoop2 - - -GraphBadInputInLoop2 = DefGraphBadInputInLoop2() diff --git a/Superv/Python/GraphBadInputInLoop3.py b/Superv/Python/GraphBadInputInLoop3.py deleted file mode 100755 index 1ca3df6..0000000 --- a/Superv/Python/GraphBadInputInLoop3.py +++ /dev/null @@ -1,178 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphBadInputInLoop3 -# -from SuperV import * - -# Graph creation of GraphBadInputInLoop3 -def DefGraphBadInputInLoop3() : - GraphBadInputInLoop3 = Graph( 'GraphBadInputInLoop3' ) - GraphBadInputInLoop3.SetName( 'GraphBadInputInLoop3' ) - GraphBadInputInLoop3.SetAuthor( '' ) - GraphBadInputInLoop3.SetComment( '' ) - GraphBadInputInLoop3.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - # Creation of InLine Nodes - PyIsOdd = [] - PyIsOdd.append( 'from time import * ' ) - PyIsOdd.append( 'def IsOdd(a,InputInLoop) : ' ) - PyIsOdd.append( ' print a,"IsOdd (GraphLoopSwitch1)" ' ) - PyIsOdd.append( ' sleep( 1 ) ' ) - PyIsOdd.append( ' return a ' ) - IsOdd = GraphBadInputInLoop3.INode( 'IsOdd' , PyIsOdd ) - IsOdd.SetName( 'IsOdd' ) - IsOdd.SetAuthor( '' ) - IsOdd.SetComment( 'Python function' ) - IsOdd.Coords( 397 , 1 ) - IIsOdda = IsOdd.InPort( 'a' , 'long' ) - IIsOddInputInLoop = IsOdd.InPort( 'InputInLoop' , 'boolean' ) - IIsOddGate = IsOdd.GetInPort( 'Gate' ) - OIsOdda = IsOdd.OutPort( 'a' , 'long' ) - OIsOddGate = IsOdd.GetOutPort( 'Gate' ) - - PyBadInputOfLoop = [] - PyBadInputOfLoop.append( 'def BadInputOfLoop() : ' ) - PyBadInputOfLoop.append( ' return 1 ' ) - PyBadInputOfLoop.append( '' ) - BadInputOfLoop = GraphBadInputInLoop3.INode( 'BadInputOfLoop' , PyBadInputOfLoop ) - BadInputOfLoop.SetName( 'BadInputOfLoop' ) - BadInputOfLoop.SetAuthor( '' ) - BadInputOfLoop.SetComment( 'Compute Node' ) - BadInputOfLoop.Coords( 359 , 318 ) - IBadInputOfLoopGate = BadInputOfLoop.GetInPort( 'Gate' ) - OBadInputOfLoopInputInLoop = BadInputOfLoop.OutPort( 'InputInLoop' , 'boolean' ) - OBadInputOfLoopGate = BadInputOfLoop.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyInitLoop = [] - PyMoreInitLoop = [] - PyMoreInitLoop.append( '' ) - PyNextInitLoop = [] - PyNextInitLoop.append( '' ) - InitLoop,EndOfInitLoop = GraphBadInputInLoop3.LNode( '' , PyInitLoop , '' , PyMoreInitLoop , '' , PyNextInitLoop ) - EndOfInitLoop.SetName( 'EndOfInitLoop' ) - EndOfInitLoop.SetAuthor( '' ) - EndOfInitLoop.SetComment( 'Compute Node' ) - EndOfInitLoop.Coords( 767 , 102 ) - PyEndOfInitLoop = [] - PyEndOfInitLoop.append( 'def EndOfInitLoop( DoLoop , Index , Min , Max ) :' ) - PyEndOfInitLoop.append( ' Index = Index + 1 ' ) - PyEndOfInitLoop.append( ' if Index <= Max : ' ) - PyEndOfInitLoop.append( ' DoLoop = 1 ' ) - PyEndOfInitLoop.append( ' else : ' ) - PyEndOfInitLoop.append( ' DoLoop = 0 ' ) - PyEndOfInitLoop.append( ' return DoLoop,Index,Min,Max ' ) - EndOfInitLoop.SetPyFunction( 'EndOfInitLoop' , PyEndOfInitLoop ) - IInitLoopDoLoop = InitLoop.GetInPort( 'DoLoop' ) - IInitLoopIndex = InitLoop.InPort( 'Index' , 'long' ) - IInitLoopMin = InitLoop.InPort( 'Min' , 'long' ) - IInitLoopMax = InitLoop.InPort( 'Max' , 'long' ) - IInitLoopGate = InitLoop.GetInPort( 'Gate' ) - OInitLoopDoLoop = InitLoop.GetOutPort( 'DoLoop' ) - OInitLoopIndex = InitLoop.GetOutPort( 'Index' ) - OInitLoopMin = InitLoop.GetOutPort( 'Min' ) - OInitLoopMax = InitLoop.GetOutPort( 'Max' ) - IEndOfInitLoopDoLoop = EndOfInitLoop.GetInPort( 'DoLoop' ) - IEndOfInitLoopIndex = EndOfInitLoop.GetInPort( 'Index' ) - IEndOfInitLoopMin = EndOfInitLoop.GetInPort( 'Min' ) - IEndOfInitLoopMax = EndOfInitLoop.GetInPort( 'Max' ) - IEndOfInitLoopGate = EndOfInitLoop.GetInPort( 'Gate' ) - OEndOfInitLoopDoLoop = EndOfInitLoop.GetOutPort( 'DoLoop' ) - OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) - OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) - OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) - OEndOfInitLoopGate = EndOfInitLoop.GetOutPort( 'Gate' ) - InitLoop.SetName( 'InitLoop' ) - InitLoop.SetAuthor( '' ) - InitLoop.SetComment( 'Compute Node' ) - InitLoop.Coords( 10 , 108 ) - - # Creation of Switch Nodes - PySwitch = [] - PySwitch.append( 'from time import * ' ) - PySwitch.append( 'def Switch(a) : ' ) - PySwitch.append( ' if ( a & 1 ) == 0 : ' ) - PySwitch.append( ' sleep(1) ' ) - PySwitch.append( ' return a & 1,1-(a&1),a ' ) - Switch,EndSwitch = GraphBadInputInLoop3.SNode( 'Switch' , PySwitch ) - EndSwitch.SetName( 'EndSwitch' ) - EndSwitch.SetAuthor( '' ) - EndSwitch.SetComment( 'Compute Node' ) - EndSwitch.Coords( 587 , 103 ) - PyEndSwitch = [] - PyEndSwitch.append( 'def EndSwitch(a) : ' ) - PyEndSwitch.append( ' if ( a & 1 ) == 0 : ' ) - PyEndSwitch.append( ' sleep(1) ' ) - PyEndSwitch.append( ' return a ' ) - EndSwitch.SetPyFunction( 'EndSwitch' , PyEndSwitch ) - IEndSwitcha = EndSwitch.InPort( 'a' , 'long' ) - IEndSwitchDefault = EndSwitch.GetInPort( 'Default' ) - OEndSwitcha = EndSwitch.OutPort( 'a' , 'long' ) - OEndSwitchGate = EndSwitch.GetOutPort( 'Gate' ) - Switch.SetName( 'Switch' ) - Switch.SetAuthor( '' ) - Switch.SetComment( 'Compute Node' ) - Switch.Coords( 194 , 109 ) - ISwitcha = Switch.InPort( 'a' , 'long' ) - ISwitchGate = Switch.GetInPort( 'Gate' ) - OSwitchOdd = Switch.OutPort( 'Odd' , 'long' ) - OSwitchEven = Switch.OutPort( 'Even' , 'int' ) - OSwitcha = Switch.OutPort( 'a' , 'int' ) - OSwitchDefault = Switch.GetOutPort( 'Default' ) - - # Creation of Links - LIsOddaEndSwitcha = GraphBadInputInLoop3.Link( OIsOdda , IEndSwitcha ) - - LInitLoopIndexSwitcha = GraphBadInputInLoop3.Link( OInitLoopIndex , ISwitcha ) - - LInitLoopMinEndOfInitLoopMin = GraphBadInputInLoop3.Link( OInitLoopMin , IEndOfInitLoopMin ) - - LSwitchOddIsOddGate = GraphBadInputInLoop3.Link( OSwitchOdd , IIsOddGate ) - - LSwitchEvenEndSwitchDefault = GraphBadInputInLoop3.Link( OSwitchEven , IEndSwitchDefault ) - - LSwitchaIsOdda = GraphBadInputInLoop3.Link( OSwitcha , IIsOdda ) - - LEndSwitchaEndOfInitLoopIndex = GraphBadInputInLoop3.Link( OEndSwitcha , IEndOfInitLoopIndex ) - - LBadInputOfLoopGateEndOfInitLoopGate = GraphBadInputInLoop3.Link( OBadInputOfLoopGate , IEndOfInitLoopGate ) - - # Input datas - IInitLoopIndex.Input( 0 ) - IInitLoopMin.Input( 0 ) - IInitLoopMax.Input( 100 ) - - # Input Ports of the graph - #IIsOddInputInLoop = IsOdd.GetInPort( 'InputInLoop' ) - - # Output Ports of the graph - #OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) - #OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) - #OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) - #OBadInputOfLoopInputInLoop = BadInputOfLoop.GetOutPort( 'InputInLoop' ) - return GraphBadInputInLoop3 - - -GraphBadInputInLoop3 = DefGraphBadInputInLoop3() diff --git a/Superv/Python/GraphBadOutputOfLoop.py b/Superv/Python/GraphBadOutputOfLoop.py deleted file mode 100755 index ede6365..0000000 --- a/Superv/Python/GraphBadOutputOfLoop.py +++ /dev/null @@ -1,177 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphBadOutputOfLoop -# -from SuperV import * - -# Graph creation of GraphBadOutputOfLoop -def DefGraphBadOutputOfLoop() : - GraphBadOutputOfLoop = Graph( 'GraphBadOutputOfLoop' ) - GraphBadOutputOfLoop.SetName( 'GraphBadOutputOfLoop' ) - GraphBadOutputOfLoop.SetAuthor( '' ) - GraphBadOutputOfLoop.SetComment( '' ) - GraphBadOutputOfLoop.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - # Creation of InLine Nodes - PyIsOdd = [] - PyIsOdd.append( 'from time import * ' ) - PyIsOdd.append( 'def IsOdd(a,InputInLoop) : ' ) - PyIsOdd.append( ' print a,"IsOdd (GraphLoopSwitch1)" ' ) - PyIsOdd.append( ' sleep( 1 ) ' ) - PyIsOdd.append( ' return a ' ) - IsOdd = GraphBadOutputOfLoop.INode( 'IsOdd' , PyIsOdd ) - IsOdd.SetName( 'IsOdd' ) - IsOdd.SetAuthor( '' ) - IsOdd.SetComment( 'Python function' ) - IsOdd.Coords( 397 , 1 ) - IIsOdda = IsOdd.InPort( 'a' , 'long' ) - IIsOddInputInLoop = IsOdd.InPort( 'InputInLoop' , 'boolean' ) - IIsOddGate = IsOdd.GetInPort( 'Gate' ) - OIsOdda = IsOdd.OutPort( 'a' , 'long' ) - OIsOddGate = IsOdd.GetOutPort( 'Gate' ) - - PyBadOutputOfLoop = [] - PyBadOutputOfLoop.append( 'def BadOutputOfLoop() : ' ) - PyBadOutputOfLoop.append( ' return 1 ' ) - PyBadOutputOfLoop.append( '' ) - BadOutputOfLoop = GraphBadOutputOfLoop.INode( 'BadOutputOfLoop' , PyBadOutputOfLoop ) - BadOutputOfLoop.SetName( 'BadOutputOfLoop' ) - BadOutputOfLoop.SetAuthor( '' ) - BadOutputOfLoop.SetComment( 'Compute Node' ) - BadOutputOfLoop.Coords( 768 , 323 ) - IBadOutputOfLoopOutputOfLoop = BadOutputOfLoop.InPort( 'OutputOfLoop' , 'long' ) - IBadOutputOfLoopGate = BadOutputOfLoop.GetInPort( 'Gate' ) - OBadOutputOfLoopGate = BadOutputOfLoop.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyInitLoop = [] - PyMoreInitLoop = [] - PyMoreInitLoop.append( '' ) - PyNextInitLoop = [] - PyNextInitLoop.append( '' ) - InitLoop,EndOfInitLoop = GraphBadOutputOfLoop.LNode( '' , PyInitLoop , '' , PyMoreInitLoop , '' , PyNextInitLoop ) - EndOfInitLoop.SetName( 'EndOfInitLoop' ) - EndOfInitLoop.SetAuthor( '' ) - EndOfInitLoop.SetComment( 'Compute Node' ) - EndOfInitLoop.Coords( 767 , 102 ) - PyEndOfInitLoop = [] - PyEndOfInitLoop.append( 'def EndOfInitLoop( DoLoop , Index , Min , Max ) :' ) - PyEndOfInitLoop.append( ' Index = Index + 1 ' ) - PyEndOfInitLoop.append( ' if Index <= Max : ' ) - PyEndOfInitLoop.append( ' DoLoop = 1 ' ) - PyEndOfInitLoop.append( ' else : ' ) - PyEndOfInitLoop.append( ' DoLoop = 0 ' ) - PyEndOfInitLoop.append( ' return DoLoop,Index,Min,Max ' ) - EndOfInitLoop.SetPyFunction( 'EndOfInitLoop' , PyEndOfInitLoop ) - IInitLoopDoLoop = InitLoop.GetInPort( 'DoLoop' ) - IInitLoopIndex = InitLoop.InPort( 'Index' , 'long' ) - IInitLoopMin = InitLoop.InPort( 'Min' , 'long' ) - IInitLoopMax = InitLoop.InPort( 'Max' , 'long' ) - IInitLoopGate = InitLoop.GetInPort( 'Gate' ) - OInitLoopDoLoop = InitLoop.GetOutPort( 'DoLoop' ) - OInitLoopIndex = InitLoop.GetOutPort( 'Index' ) - OInitLoopMin = InitLoop.GetOutPort( 'Min' ) - OInitLoopMax = InitLoop.GetOutPort( 'Max' ) - IEndOfInitLoopDoLoop = EndOfInitLoop.GetInPort( 'DoLoop' ) - IEndOfInitLoopIndex = EndOfInitLoop.GetInPort( 'Index' ) - IEndOfInitLoopMin = EndOfInitLoop.GetInPort( 'Min' ) - IEndOfInitLoopMax = EndOfInitLoop.GetInPort( 'Max' ) - IEndOfInitLoopGate = EndOfInitLoop.GetInPort( 'Gate' ) - OEndOfInitLoopDoLoop = EndOfInitLoop.GetOutPort( 'DoLoop' ) - OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) - OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) - OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) - OEndOfInitLoopGate = EndOfInitLoop.GetOutPort( 'Gate' ) - InitLoop.SetName( 'InitLoop' ) - InitLoop.SetAuthor( '' ) - InitLoop.SetComment( 'Compute Node' ) - InitLoop.Coords( 10 , 108 ) - - # Creation of Switch Nodes - PySwitch = [] - PySwitch.append( 'from time import * ' ) - PySwitch.append( 'def Switch(a) : ' ) - PySwitch.append( ' if ( a & 1 ) == 0 : ' ) - PySwitch.append( ' sleep(1) ' ) - PySwitch.append( ' return a & 1,1-(a&1),a ' ) - Switch,EndSwitch = GraphBadOutputOfLoop.SNode( 'Switch' , PySwitch ) - EndSwitch.SetName( 'EndSwitch' ) - EndSwitch.SetAuthor( '' ) - EndSwitch.SetComment( 'Compute Node' ) - EndSwitch.Coords( 587 , 103 ) - PyEndSwitch = [] - PyEndSwitch.append( 'def EndSwitch(a) : ' ) - PyEndSwitch.append( ' if ( a & 1 ) == 0 : ' ) - PyEndSwitch.append( ' sleep(1) ' ) - PyEndSwitch.append( ' return a ' ) - EndSwitch.SetPyFunction( 'EndSwitch' , PyEndSwitch ) - IEndSwitcha = EndSwitch.InPort( 'a' , 'long' ) - IEndSwitchDefault = EndSwitch.GetInPort( 'Default' ) - OEndSwitcha = EndSwitch.OutPort( 'a' , 'long' ) - OEndSwitchGate = EndSwitch.GetOutPort( 'Gate' ) - Switch.SetName( 'Switch' ) - Switch.SetAuthor( '' ) - Switch.SetComment( 'Compute Node' ) - Switch.Coords( 194 , 109 ) - ISwitcha = Switch.InPort( 'a' , 'long' ) - ISwitchGate = Switch.GetInPort( 'Gate' ) - OSwitchOdd = Switch.OutPort( 'Odd' , 'long' ) - OSwitchEven = Switch.OutPort( 'Even' , 'int' ) - OSwitcha = Switch.OutPort( 'a' , 'int' ) - OSwitchDefault = Switch.GetOutPort( 'Default' ) - - # Creation of Links - LIsOddaEndSwitcha = GraphBadOutputOfLoop.Link( OIsOdda , IEndSwitcha ) - - LInitLoopIndexSwitcha = GraphBadOutputOfLoop.Link( OInitLoopIndex , ISwitcha ) - - LInitLoopMinEndOfInitLoopMin = GraphBadOutputOfLoop.Link( OInitLoopMin , IEndOfInitLoopMin ) - - LSwitchOddIsOddGate = GraphBadOutputOfLoop.Link( OSwitchOdd , IIsOddGate ) - - LSwitchEvenEndSwitchDefault = GraphBadOutputOfLoop.Link( OSwitchEven , IEndSwitchDefault ) - - LSwitchaIsOdda = GraphBadOutputOfLoop.Link( OSwitcha , IIsOdda ) - - LEndSwitchaEndOfInitLoopIndex = GraphBadOutputOfLoop.Link( OEndSwitcha , IEndOfInitLoopIndex ) - - LEndSwitchaBadOutputOfLoopOutputOfLoop = GraphBadOutputOfLoop.Link( OEndSwitcha , IBadOutputOfLoopOutputOfLoop ) - - # Input datas - IInitLoopIndex.Input( 0 ) - IInitLoopMin.Input( 0 ) - IInitLoopMax.Input( 100 ) - - # Input Ports of the graph - #IIsOddInputInLoop = IsOdd.GetInPort( 'InputInLoop' ) - - # Output Ports of the graph - #OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) - #OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) - #OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) - return GraphBadOutputOfLoop - - -GraphBadOutputOfLoop = DefGraphBadOutputOfLoop() diff --git a/Superv/Python/GraphBadOutputOfLoop1.py b/Superv/Python/GraphBadOutputOfLoop1.py deleted file mode 100755 index d0240cb..0000000 --- a/Superv/Python/GraphBadOutputOfLoop1.py +++ /dev/null @@ -1,173 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphBadOutputOfLoop1 -# -from SuperV import * - -# Graph creation of GraphBadOutputOfLoop1 -def DefGraphBadOutputOfLoop1() : - GraphBadOutputOfLoop1 = Graph( 'GraphBadOutputOfLoop1' ) - GraphBadOutputOfLoop1.SetName( 'GraphBadOutputOfLoop1' ) - GraphBadOutputOfLoop1.SetAuthor( '' ) - GraphBadOutputOfLoop1.SetComment( '' ) - GraphBadOutputOfLoop1.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 (GraphLoopSwitch1)" ' ) - PyIsOdd.append( ' sleep( 1 ) ' ) - PyIsOdd.append( ' return a ' ) - IsOdd = GraphBadOutputOfLoop1.INode( 'IsOdd' , PyIsOdd ) - IsOdd.SetName( 'IsOdd' ) - IsOdd.SetAuthor( '' ) - IsOdd.SetComment( 'Python function' ) - IsOdd.Coords( 397 , 1 ) - IIsOdda = IsOdd.InPort( 'a' , 'long' ) - IIsOddGate = IsOdd.GetInPort( 'Gate' ) - OIsOdda = IsOdd.OutPort( 'a' , 'long' ) - OIsOddGate = IsOdd.GetOutPort( 'Gate' ) - - PyBadOutputOfLoop = [] - PyBadOutputOfLoop.append( 'def BadOutputOfLoop() : ' ) - PyBadOutputOfLoop.append( ' return 1 ' ) - PyBadOutputOfLoop.append( '' ) - BadOutputOfLoop = GraphBadOutputOfLoop1.INode( 'BadOutputOfLoop' , PyBadOutputOfLoop ) - BadOutputOfLoop.SetName( 'BadOutputOfLoop' ) - BadOutputOfLoop.SetAuthor( '' ) - BadOutputOfLoop.SetComment( 'Compute Node' ) - BadOutputOfLoop.Coords( 287 , 349 ) - IBadOutputOfLoopOutputOfLoop = BadOutputOfLoop.InPort( 'OutputOfLoop' , 'long' ) - IBadOutputOfLoopGate = BadOutputOfLoop.GetInPort( 'Gate' ) - OBadOutputOfLoopGate = BadOutputOfLoop.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyInitLoop = [] - PyMoreInitLoop = [] - PyMoreInitLoop.append( '' ) - PyNextInitLoop = [] - PyNextInitLoop.append( '' ) - InitLoop,EndOfInitLoop = GraphBadOutputOfLoop1.LNode( '' , PyInitLoop , '' , PyMoreInitLoop , '' , PyNextInitLoop ) - EndOfInitLoop.SetName( 'EndOfInitLoop' ) - EndOfInitLoop.SetAuthor( '' ) - EndOfInitLoop.SetComment( 'Compute Node' ) - EndOfInitLoop.Coords( 767 , 102 ) - PyEndOfInitLoop = [] - PyEndOfInitLoop.append( 'def EndOfInitLoop( DoLoop , Index , Min , Max ) :' ) - PyEndOfInitLoop.append( ' Index = Index + 1 ' ) - PyEndOfInitLoop.append( ' if Index <= Max : ' ) - PyEndOfInitLoop.append( ' DoLoop = 1 ' ) - PyEndOfInitLoop.append( ' else : ' ) - PyEndOfInitLoop.append( ' DoLoop = 0 ' ) - PyEndOfInitLoop.append( ' return DoLoop,Index,Min,Max ' ) - EndOfInitLoop.SetPyFunction( 'EndOfInitLoop' , PyEndOfInitLoop ) - IInitLoopDoLoop = InitLoop.GetInPort( 'DoLoop' ) - IInitLoopIndex = InitLoop.InPort( 'Index' , 'long' ) - IInitLoopMin = InitLoop.InPort( 'Min' , 'long' ) - IInitLoopMax = InitLoop.InPort( 'Max' , 'long' ) - IInitLoopGate = InitLoop.GetInPort( 'Gate' ) - OInitLoopDoLoop = InitLoop.GetOutPort( 'DoLoop' ) - OInitLoopIndex = InitLoop.GetOutPort( 'Index' ) - OInitLoopMin = InitLoop.GetOutPort( 'Min' ) - OInitLoopMax = InitLoop.GetOutPort( 'Max' ) - IEndOfInitLoopDoLoop = EndOfInitLoop.GetInPort( 'DoLoop' ) - IEndOfInitLoopIndex = EndOfInitLoop.GetInPort( 'Index' ) - IEndOfInitLoopMin = EndOfInitLoop.GetInPort( 'Min' ) - IEndOfInitLoopMax = EndOfInitLoop.GetInPort( 'Max' ) - IEndOfInitLoopGate = EndOfInitLoop.GetInPort( 'Gate' ) - OEndOfInitLoopDoLoop = EndOfInitLoop.GetOutPort( 'DoLoop' ) - OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) - OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) - OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) - OEndOfInitLoopGate = EndOfInitLoop.GetOutPort( 'Gate' ) - InitLoop.SetName( 'InitLoop' ) - InitLoop.SetAuthor( '' ) - InitLoop.SetComment( 'Compute Node' ) - InitLoop.Coords( 10 , 108 ) - - # Creation of Switch Nodes - PySwitch = [] - PySwitch.append( 'from time import * ' ) - PySwitch.append( 'def Switch(a) : ' ) - PySwitch.append( ' if ( a & 1 ) == 0 : ' ) - PySwitch.append( ' sleep(1) ' ) - PySwitch.append( ' return a & 1,1-(a&1),a ' ) - Switch,EndSwitch = GraphBadOutputOfLoop1.SNode( 'Switch' , PySwitch ) - EndSwitch.SetName( 'EndSwitch' ) - EndSwitch.SetAuthor( '' ) - EndSwitch.SetComment( 'Compute Node' ) - EndSwitch.Coords( 587 , 103 ) - PyEndSwitch = [] - PyEndSwitch.append( 'def EndSwitch(a) : ' ) - PyEndSwitch.append( ' if ( a & 1 ) == 0 : ' ) - PyEndSwitch.append( ' sleep(1) ' ) - PyEndSwitch.append( ' return a ' ) - EndSwitch.SetPyFunction( 'EndSwitch' , PyEndSwitch ) - IEndSwitcha = EndSwitch.InPort( 'a' , 'long' ) - IEndSwitchDefault = EndSwitch.GetInPort( 'Default' ) - OEndSwitcha = EndSwitch.OutPort( 'a' , 'long' ) - OEndSwitchGate = EndSwitch.GetOutPort( 'Gate' ) - Switch.SetName( 'Switch' ) - Switch.SetAuthor( '' ) - Switch.SetComment( 'Compute Node' ) - Switch.Coords( 194 , 109 ) - ISwitcha = Switch.InPort( 'a' , 'long' ) - ISwitchGate = Switch.GetInPort( 'Gate' ) - OSwitchOdd = Switch.OutPort( 'Odd' , 'long' ) - OSwitchEven = Switch.OutPort( 'Even' , 'int' ) - OSwitcha = Switch.OutPort( 'a' , 'int' ) - OSwitchDefault = Switch.GetOutPort( 'Default' ) - - # Creation of Links - LIsOddaEndSwitcha = GraphBadOutputOfLoop1.Link( OIsOdda , IEndSwitcha ) - - LInitLoopIndexSwitcha = GraphBadOutputOfLoop1.Link( OInitLoopIndex , ISwitcha ) - - LInitLoopMinEndOfInitLoopMin = GraphBadOutputOfLoop1.Link( OInitLoopMin , IEndOfInitLoopMin ) - - LInitLoopMaxBadOutputOfLoopOutputOfLoop = GraphBadOutputOfLoop1.Link( OInitLoopMax , IBadOutputOfLoopOutputOfLoop ) - - LSwitchOddIsOddGate = GraphBadOutputOfLoop1.Link( OSwitchOdd , IIsOddGate ) - - LSwitchEvenEndSwitchDefault = GraphBadOutputOfLoop1.Link( OSwitchEven , IEndSwitchDefault ) - - LSwitchaIsOdda = GraphBadOutputOfLoop1.Link( OSwitcha , IIsOdda ) - - LEndSwitchaEndOfInitLoopIndex = GraphBadOutputOfLoop1.Link( OEndSwitcha , IEndOfInitLoopIndex ) - - # Input datas - IInitLoopIndex.Input( 0 ) - IInitLoopMin.Input( 0 ) - IInitLoopMax.Input( 100 ) - - # Output Ports of the graph - #OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) - #OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) - #OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) - return GraphBadOutputOfLoop1 - - -GraphBadOutputOfLoop1 = DefGraphBadOutputOfLoop1() diff --git a/Superv/Python/GraphBadOutputOfLoop2.py b/Superv/Python/GraphBadOutputOfLoop2.py deleted file mode 100755 index f73bbdb..0000000 --- a/Superv/Python/GraphBadOutputOfLoop2.py +++ /dev/null @@ -1,173 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphBadOutputOfLoop2 -# -from SuperV import * - -# Graph creation of GraphBadOutputOfLoop2 -def DefGraphBadOutputOfLoop2() : - GraphBadOutputOfLoop2 = Graph( 'GraphBadOutputOfLoop2' ) - GraphBadOutputOfLoop2.SetName( 'GraphBadOutputOfLoop2' ) - GraphBadOutputOfLoop2.SetAuthor( '' ) - GraphBadOutputOfLoop2.SetComment( '' ) - GraphBadOutputOfLoop2.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 (GraphLoopSwitch1)" ' ) - PyIsOdd.append( ' sleep( 1 ) ' ) - PyIsOdd.append( ' return a ' ) - IsOdd = GraphBadOutputOfLoop2.INode( 'IsOdd' , PyIsOdd ) - IsOdd.SetName( 'IsOdd' ) - IsOdd.SetAuthor( '' ) - IsOdd.SetComment( 'Python function' ) - IsOdd.Coords( 397 , 1 ) - IIsOdda = IsOdd.InPort( 'a' , 'long' ) - IIsOddGate = IsOdd.GetInPort( 'Gate' ) - OIsOdda = IsOdd.OutPort( 'a' , 'long' ) - OIsOddGate = IsOdd.GetOutPort( 'Gate' ) - - PyBadOutputOfLoop = [] - PyBadOutputOfLoop.append( 'def BadOutputOfLoop() : ' ) - PyBadOutputOfLoop.append( ' return 1 ' ) - PyBadOutputOfLoop.append( '' ) - BadOutputOfLoop = GraphBadOutputOfLoop2.INode( 'BadOutputOfLoop' , PyBadOutputOfLoop ) - BadOutputOfLoop.SetName( 'BadOutputOfLoop' ) - BadOutputOfLoop.SetAuthor( '' ) - BadOutputOfLoop.SetComment( 'Compute Node' ) - BadOutputOfLoop.Coords( 503 , 338 ) - IBadOutputOfLoopOutputOfLoop = BadOutputOfLoop.InPort( 'OutputOfLoop' , 'long' ) - IBadOutputOfLoopGate = BadOutputOfLoop.GetInPort( 'Gate' ) - OBadOutputOfLoopGate = BadOutputOfLoop.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyInitLoop = [] - PyMoreInitLoop = [] - PyMoreInitLoop.append( '' ) - PyNextInitLoop = [] - PyNextInitLoop.append( '' ) - InitLoop,EndOfInitLoop = GraphBadOutputOfLoop2.LNode( '' , PyInitLoop , '' , PyMoreInitLoop , '' , PyNextInitLoop ) - EndOfInitLoop.SetName( 'EndOfInitLoop' ) - EndOfInitLoop.SetAuthor( '' ) - EndOfInitLoop.SetComment( 'Compute Node' ) - EndOfInitLoop.Coords( 767 , 102 ) - PyEndOfInitLoop = [] - PyEndOfInitLoop.append( 'def EndOfInitLoop( DoLoop , Index , Min , Max ) :' ) - PyEndOfInitLoop.append( ' Index = Index + 1 ' ) - PyEndOfInitLoop.append( ' if Index <= Max : ' ) - PyEndOfInitLoop.append( ' DoLoop = 1 ' ) - PyEndOfInitLoop.append( ' else : ' ) - PyEndOfInitLoop.append( ' DoLoop = 0 ' ) - PyEndOfInitLoop.append( ' return DoLoop,Index,Min,Max ' ) - EndOfInitLoop.SetPyFunction( 'EndOfInitLoop' , PyEndOfInitLoop ) - IInitLoopDoLoop = InitLoop.GetInPort( 'DoLoop' ) - IInitLoopIndex = InitLoop.InPort( 'Index' , 'long' ) - IInitLoopMin = InitLoop.InPort( 'Min' , 'long' ) - IInitLoopMax = InitLoop.InPort( 'Max' , 'long' ) - IInitLoopGate = InitLoop.GetInPort( 'Gate' ) - OInitLoopDoLoop = InitLoop.GetOutPort( 'DoLoop' ) - OInitLoopIndex = InitLoop.GetOutPort( 'Index' ) - OInitLoopMin = InitLoop.GetOutPort( 'Min' ) - OInitLoopMax = InitLoop.GetOutPort( 'Max' ) - IEndOfInitLoopDoLoop = EndOfInitLoop.GetInPort( 'DoLoop' ) - IEndOfInitLoopIndex = EndOfInitLoop.GetInPort( 'Index' ) - IEndOfInitLoopMin = EndOfInitLoop.GetInPort( 'Min' ) - IEndOfInitLoopMax = EndOfInitLoop.GetInPort( 'Max' ) - IEndOfInitLoopGate = EndOfInitLoop.GetInPort( 'Gate' ) - OEndOfInitLoopDoLoop = EndOfInitLoop.GetOutPort( 'DoLoop' ) - OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) - OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) - OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) - OEndOfInitLoopGate = EndOfInitLoop.GetOutPort( 'Gate' ) - InitLoop.SetName( 'InitLoop' ) - InitLoop.SetAuthor( '' ) - InitLoop.SetComment( 'Compute Node' ) - InitLoop.Coords( 10 , 108 ) - - # Creation of Switch Nodes - PySwitch = [] - PySwitch.append( 'from time import * ' ) - PySwitch.append( 'def Switch(a) : ' ) - PySwitch.append( ' if ( a & 1 ) == 0 : ' ) - PySwitch.append( ' sleep(1) ' ) - PySwitch.append( ' return a & 1,1-(a&1),a ' ) - Switch,EndSwitch = GraphBadOutputOfLoop2.SNode( 'Switch' , PySwitch ) - EndSwitch.SetName( 'EndSwitch' ) - EndSwitch.SetAuthor( '' ) - EndSwitch.SetComment( 'Compute Node' ) - EndSwitch.Coords( 587 , 103 ) - PyEndSwitch = [] - PyEndSwitch.append( 'def EndSwitch(a) : ' ) - PyEndSwitch.append( ' if ( a & 1 ) == 0 : ' ) - PyEndSwitch.append( ' sleep(1) ' ) - PyEndSwitch.append( ' return a ' ) - EndSwitch.SetPyFunction( 'EndSwitch' , PyEndSwitch ) - IEndSwitcha = EndSwitch.InPort( 'a' , 'long' ) - IEndSwitchDefault = EndSwitch.GetInPort( 'Default' ) - OEndSwitcha = EndSwitch.OutPort( 'a' , 'long' ) - OEndSwitchGate = EndSwitch.GetOutPort( 'Gate' ) - Switch.SetName( 'Switch' ) - Switch.SetAuthor( '' ) - Switch.SetComment( 'Compute Node' ) - Switch.Coords( 194 , 109 ) - ISwitcha = Switch.InPort( 'a' , 'long' ) - ISwitchGate = Switch.GetInPort( 'Gate' ) - OSwitchOdd = Switch.OutPort( 'Odd' , 'long' ) - OSwitchEven = Switch.OutPort( 'Even' , 'int' ) - OSwitcha = Switch.OutPort( 'a' , 'int' ) - OSwitchDefault = Switch.GetOutPort( 'Default' ) - - # Creation of Links - LIsOddaEndSwitcha = GraphBadOutputOfLoop2.Link( OIsOdda , IEndSwitcha ) - - LInitLoopIndexSwitcha = GraphBadOutputOfLoop2.Link( OInitLoopIndex , ISwitcha ) - - LInitLoopMinEndOfInitLoopMin = GraphBadOutputOfLoop2.Link( OInitLoopMin , IEndOfInitLoopMin ) - - LSwitchOddIsOddGate = GraphBadOutputOfLoop2.Link( OSwitchOdd , IIsOddGate ) - - LSwitchEvenEndSwitchDefault = GraphBadOutputOfLoop2.Link( OSwitchEven , IEndSwitchDefault ) - - LSwitchaBadOutputOfLoopOutputOfLoop = GraphBadOutputOfLoop2.Link( OSwitcha , IBadOutputOfLoopOutputOfLoop ) - - LSwitchaIsOdda = GraphBadOutputOfLoop2.Link( OSwitcha , IIsOdda ) - - LEndSwitchaEndOfInitLoopIndex = GraphBadOutputOfLoop2.Link( OEndSwitcha , IEndOfInitLoopIndex ) - - # Input datas - IInitLoopIndex.Input( 0 ) - IInitLoopMin.Input( 0 ) - IInitLoopMax.Input( 100 ) - - # Output Ports of the graph - #OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) - #OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) - #OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) - return GraphBadOutputOfLoop2 - - -GraphBadOutputOfLoop2 = DefGraphBadOutputOfLoop2() diff --git a/Superv/Python/GraphBugEditor.py b/Superv/Python/GraphBugEditor.py deleted file mode 100644 index d31865c..0000000 --- a/Superv/Python/GraphBugEditor.py +++ /dev/null @@ -1,118 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphBugEditor -# -from SuperV import * - -# Graph creation of GraphBugEditor -def DefGraphBugEditor() : - GraphBugEditor = Graph( 'GraphBugEditor' ) - GraphBugEditor.SetName( 'GraphBugEditor' ) - GraphBugEditor.SetAuthor( 'Nicolas Crouzet & JR' ) - GraphBugEditor.SetComment( '' ) - GraphBugEditor.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - # Creation of InLine Nodes - Pycompute_power_1 = [] - Pycompute_power_1.append( 'def compute_power(nitermax,eosflux,espeigenval) : ' ) - Pycompute_power_1.append( ' return 1 ' ) - compute_power_1 = GraphBugEditor.INode( 'compute_power' , Pycompute_power_1 ) - compute_power_1.SetName( 'compute_power_1' ) - compute_power_1.SetAuthor( '' ) - compute_power_1.SetComment( 'Compute Node' ) - compute_power_1.Coords( 226 , 103 ) - Icompute_power_1nitermax = compute_power_1.InPort( 'nitermax' , 'long' ) - Icompute_power_1epsflux = compute_power_1.InPort( 'epsflux' , 'long' ) - Icompute_power_1espeigenval = compute_power_1.InPort( 'espeigenval' , 'long' ) - Icompute_power_1Gate = compute_power_1.GetInPort( 'Gate' ) - Ocompute_power_1return = compute_power_1.OutPort( 'return' , 'long' ) - Ocompute_power_1Gate = compute_power_1.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyLoop = [] - PyLoop.append( 'def Loop(it,itMax): ' ) - PyLoop.append( ' return it,itMax ' ) - PyMoreLoop = [] - PyMoreLoop.append( 'def More(it,itMax): ' ) - PyMoreLoop.append( ' if it<=itMax : ' ) - PyMoreLoop.append( ' DoLoop=1 ' ) - PyMoreLoop.append( ' else: ' ) - PyMoreLoop.append( ' DoLoop=0 ' ) - PyMoreLoop.append( ' return DoLoop,it,itMax ' ) - PyNextLoop = [] - PyNextLoop.append( 'def Next(it,itMax): ' ) - PyNextLoop.append( ' it+=1 ' ) - PyNextLoop.append( ' return it,itMax ' ) - Loop,EndLoop = GraphBugEditor.LNode( 'Loop' , PyLoop , 'More' , PyMoreLoop , 'Next' , PyNextLoop ) - EndLoop.SetName( 'EndLoop' ) - EndLoop.SetAuthor( '' ) - EndLoop.SetComment( 'Compute Node' ) - EndLoop.Coords( 426 , 161 ) - PyEndLoop = [] - EndLoop.SetPyFunction( 'EndLoop' , PyEndLoop ) - ILoopDoLoop = Loop.GetInPort( 'DoLoop' ) - ILoopit = Loop.InPort( 'it' , 'int' ) - ILoopitMax = Loop.InPort( 'itMax' , 'int' ) - ILoopGate = Loop.GetInPort( 'Gate' ) - OLoopDoLoop = Loop.GetOutPort( 'DoLoop' ) - OLoopit = Loop.GetOutPort( 'it' ) - OLoopitMax = Loop.GetOutPort( 'itMax' ) - IEndLoopDoLoop = EndLoop.GetInPort( 'DoLoop' ) - IEndLoopit = EndLoop.GetInPort( 'it' ) - IEndLoopitMax = EndLoop.GetInPort( 'itMax' ) - IEndLoopGate = EndLoop.GetInPort( 'Gate' ) - OEndLoopDoLoop = EndLoop.GetOutPort( 'DoLoop' ) - OEndLoopit = EndLoop.GetOutPort( 'it' ) - OEndLoopitMax = EndLoop.GetOutPort( 'itMax' ) - OEndLoopGate = EndLoop.GetOutPort( 'Gate' ) - Loop.SetName( 'Loop' ) - Loop.SetAuthor( '' ) - Loop.SetComment( 'Compute Node' ) - Loop.Coords( 21 , 161 ) - - # Creation of Links - LLoopitEndLoopit = GraphBugEditor.Link( OLoopit , IEndLoopit ) - - LLoopitMaxEndLoopitMax = GraphBugEditor.Link( OLoopitMax , IEndLoopitMax ) - - LLoopGatecompute_power_1Gate = GraphBugEditor.Link( OLoopGate , Icompute_power_1Gate ) - - # Input datas - ILoopit.Input( 1 ) - ILoopitMax.Input( 5 ) - - # Input Ports of the graph - #Icompute_power_1nitermax = compute_power_1.GetInPort( 'nitermax' ) - #Icompute_power_1epsflux = compute_power_1.GetInPort( 'epsflux' ) - #Icompute_power_1espeigenval = compute_power_1.GetInPort( 'espeigenval' ) - - # Output Ports of the graph - #OEndLoopit = EndLoop.GetOutPort( 'it' ) - #OEndLoopitMax = EndLoop.GetOutPort( 'itMax' ) - #Ocompute_power_1return = compute_power_1.GetOutPort( 'return' ) - return GraphBugEditor - - -GraphBugEditor = DefGraphBugEditor() diff --git a/Superv/Python/GraphContainer.py b/Superv/Python/GraphContainer.py deleted file mode 100755 index 5c6d4e5..0000000 --- a/Superv/Python/GraphContainer.py +++ /dev/null @@ -1,112 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphEssai -# -from SuperV import * -# Graph creation -GraphEssai = Graph( 'GraphEssai' ) -GraphEssai.SetName( 'GraphEssai' ) -GraphEssai.SetAuthor( '' ) -GraphEssai.SetComment( '' ) -GraphEssai.Coords( 0 , 0 ) - -# Creation of Factory Nodes - -Add = GraphEssai.FNode( 'AddComponent' , 'AddComponent' , 'Add' ) -Add.SetName( 'Add' ) -Add.SetAuthor( '' ) -Add.SetContainer( 'FactoryServer' ) -Add.SetComment( 'Add from AddComponent' ) -Add.Coords( 15 , 241 ) - -Sub = GraphEssai.FNode( 'SubComponent' , 'SubComponent' , 'Sub' ) -Sub.SetName( 'Sub' ) -Sub.SetAuthor( '' ) -Sub.SetContainer( 'FactoryServer' ) -Sub.SetComment( 'Sub from SubComponent' ) -Sub.Coords( 227 , 96 ) - -Mul = GraphEssai.FNode( 'MulComponent' , 'MulComponent' , 'Mul' ) -Mul.SetName( 'Mul' ) -Mul.SetAuthor( '' ) -Mul.SetContainer( 'FactoryServer' ) -Mul.SetComment( 'Mul from MulComponent' ) -Mul.Coords( 435 , 242 ) - -Div = GraphEssai.FNode( 'DivComponent' , 'DivComponent' , 'Div' ) -Div.SetName( 'Div' ) -Div.SetAuthor( '' ) -Div.SetContainer( 'FactoryServer' ) -Div.SetComment( 'Div from DivComponent' ) -Div.Coords( 634 , 97 ) - -# Creation of Links -Addz = Add.Port( 'z' ) -Muly = GraphEssai.Link( Addz , Mul.Port( 'y' ) ) - -Suby = GraphEssai.Link( Addz , Sub.Port( 'y' ) ) -Suby.AddCoord( 1 , 197 , 204 ) -Suby.AddCoord( 2 , 198 , 351 ) - -Subz = Sub.Port( 'z' ) -Divx = GraphEssai.Link( Subz , Div.Port( 'x' ) ) - -Mulx = GraphEssai.Link( Subz , Mul.Port( 'x' ) ) -Mulx.AddCoord( 1 , 411 , 323 ) -Mulx.AddCoord( 2 , 411 , 177 ) - -Mulz = Mul.Port( 'z' ) -Divy = GraphEssai.Link( Mulz , Div.Port( 'y' ) ) -Divy.AddCoord( 1 , 612 , 207 ) -Divy.AddCoord( 2 , 612 , 322 ) - -# Creation of Input datas -Addx = Add.Input( 'x' , 3) -Addy = Add.Input( 'y' , 4.5) -Subx = Sub.Input( 'x' , 1.5) - -# Creation of Output variables -AddFuncValue = Add.Port( 'FuncValue' ) -Divz = Div.Port( 'z' ) - -Add.Print() -Sub.Print() -Mul.Print() -Div.Print() - -GraphEssai.PrintPorts() - -nodes = GraphEssai.LevelNodes( 0 ) -i = 0 -while i < len( nodes ) : - print 'Nodes of level 0',nodes[i].Name() - i = i + 1 - -GraphEssai.Run() - -GraphEssai.DoneW() - -GraphEssai.State() - -GraphEssai.PrintPorts() - diff --git a/Superv/Python/GraphConvertBoolCheck.py b/Superv/Python/GraphConvertBoolCheck.py deleted file mode 100755 index 8e97584..0000000 --- a/Superv/Python/GraphConvertBoolCheck.py +++ /dev/null @@ -1,85 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphConvertBoolCheck -# -from SuperV import * -# Graph creation -GraphConvertBoolCheck = Graph( 'GraphConvertBoolCheck' ) -GraphConvertBoolCheck.SetName( 'GraphConvertBoolCheck' ) -GraphConvertBoolCheck.SetAuthor( 'JR' ) -GraphConvertBoolCheck.SetComment( 'Check conversions of Bool' ) -GraphConvertBoolCheck.Coords( 0 , 0 ) - -# Creation of Factory Nodes - -MiscTypes = GraphConvertBoolCheck.FNode( 'TypesCheck' , 'TypesCheck' , 'MiscTypes' ) -MiscTypes.SetName( 'MiscTypes' ) -MiscTypes.SetAuthor( '' ) -MiscTypes.SetContainer( 'localhost/FactoryServer' ) -MiscTypes.SetComment( 'MiscTypes from TypesCheck' ) -MiscTypes.Coords( 284 , 28 ) - -# Creation of InLine Nodes -PyBool = [] -PyBool.append( 'def Bool() : ' ) -PyBool.append( ' aBool = 1 ' ) -PyBool.append( ' return aBool ' ) -PyBool.append( ' ' ) -Bool = GraphConvertBoolCheck.INode( 'Bool' , PyBool ) -Bool.OutPort( 'OutBool' , 'boolean' ) -Bool.SetName( 'Bool' ) -Bool.SetAuthor( 'JR' ) -Bool.SetComment( 'InLine Node' ) -Bool.Coords( 14 , 114 ) - -# Creation of Links -BoolOutBool = Bool.Port( 'OutBool' ) -MiscTypesInString = GraphConvertBoolCheck.Link( BoolOutBool , MiscTypes.Port( 'InString' ) ) - -MiscTypesInBool = GraphConvertBoolCheck.Link( BoolOutBool , MiscTypes.Port( 'InBool' ) ) - -MiscTypesInChar = GraphConvertBoolCheck.Link( BoolOutBool , MiscTypes.Port( 'InChar' ) ) - -MiscTypesInShort = GraphConvertBoolCheck.Link( BoolOutBool , MiscTypes.Port( 'InShort' ) ) - -MiscTypesInLong = GraphConvertBoolCheck.Link( BoolOutBool , MiscTypes.Port( 'InLong' ) ) - -MiscTypesInFloat = GraphConvertBoolCheck.Link( BoolOutBool , MiscTypes.Port( 'InFloat' ) ) - -MiscTypesInDouble = GraphConvertBoolCheck.Link( BoolOutBool , MiscTypes.Port( 'InDouble' ) ) - -MiscTypesInObjRef = GraphConvertBoolCheck.Link( BoolOutBool , MiscTypes.Port( 'InObjRef' ) ) - -# Creation of Output variables -MiscTypesOutString = MiscTypes.Port( 'OutString' ) -MiscTypesOutBool = MiscTypes.Port( 'OutBool' ) -MiscTypesOutChar = MiscTypes.Port( 'OutChar' ) -MiscTypesOutShort = MiscTypes.Port( 'OutShort' ) -MiscTypesOutLong = MiscTypes.Port( 'OutLong' ) -MiscTypesOutFloat = MiscTypes.Port( 'OutFloat' ) -MiscTypesOutDouble = MiscTypes.Port( 'OutDouble' ) -MiscTypesOutObjRef = MiscTypes.Port( 'OutObjRef' ) - -GraphConvertBoolCheck.Run() -GraphConvertBoolCheck.DoneW() -GraphConvertBoolCheck.PrintPorts() diff --git a/Superv/Python/GraphConvertBoolStringCheck.py b/Superv/Python/GraphConvertBoolStringCheck.py deleted file mode 100755 index 32ee70a..0000000 --- a/Superv/Python/GraphConvertBoolStringCheck.py +++ /dev/null @@ -1,85 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphConvertBoolStringCheck -# -from SuperV import * -# Graph creation -GraphConvertBoolStringCheck = Graph( 'GraphConvertBoolStringCheck' ) -GraphConvertBoolStringCheck.SetName( 'GraphConvertBoolStringCheck' ) -GraphConvertBoolStringCheck.SetAuthor( 'JR' ) -GraphConvertBoolStringCheck.SetComment( 'Check conversions of String' ) -GraphConvertBoolStringCheck.Coords( 0 , 0 ) - -# Creation of Factory Nodes - -MiscTypes = GraphConvertBoolStringCheck.FNode( 'TypesCheck' , 'TypesCheck' , 'MiscTypes' ) -MiscTypes.SetName( 'MiscTypes' ) -MiscTypes.SetAuthor( '' ) -MiscTypes.SetContainer( 'localhost/FactoryServer' ) -MiscTypes.SetComment( 'MiscTypes from TypesCheck' ) -MiscTypes.Coords( 284 , 28 ) - -# Creation of InLine Nodes -PyBoolString = [] -PyBoolString.append( 'def StringString() : ' ) -PyBoolString.append( ' string = "1" ' ) -PyBoolString.append( ' return string ' ) -PyBoolString.append( ' ' ) -BoolString = GraphConvertBoolStringCheck.INode( 'StringString' , PyBoolString ) -BoolString.OutPort( 'OutString' , 'string' ) -BoolString.SetName( 'BoolString' ) -BoolString.SetAuthor( 'JR' ) -BoolString.SetComment( 'InLine Node' ) -BoolString.Coords( 14 , 114 ) - -# Creation of Links -BoolStringOutString = BoolString.Port( 'OutString' ) -MiscTypesInString = GraphConvertBoolStringCheck.Link( BoolStringOutString , MiscTypes.Port( 'InString' ) ) - -MiscTypesInBool = GraphConvertBoolStringCheck.Link( BoolStringOutString , MiscTypes.Port( 'InBool' ) ) - -MiscTypesInChar = GraphConvertBoolStringCheck.Link( BoolStringOutString , MiscTypes.Port( 'InChar' ) ) - -MiscTypesInShort = GraphConvertBoolStringCheck.Link( BoolStringOutString , MiscTypes.Port( 'InShort' ) ) - -MiscTypesInLong = GraphConvertBoolStringCheck.Link( BoolStringOutString , MiscTypes.Port( 'InLong' ) ) - -MiscTypesInFloat = GraphConvertBoolStringCheck.Link( BoolStringOutString , MiscTypes.Port( 'InFloat' ) ) - -MiscTypesInDouble = GraphConvertBoolStringCheck.Link( BoolStringOutString , MiscTypes.Port( 'InDouble' ) ) - -MiscTypesInObjRef = GraphConvertBoolStringCheck.Link( BoolStringOutString , MiscTypes.Port( 'InObjRef' ) ) - -# Creation of Output variables -MiscTypesOutString = MiscTypes.Port( 'OutString' ) -MiscTypesOutBool = MiscTypes.Port( 'OutBool' ) -MiscTypesOutChar = MiscTypes.Port( 'OutChar' ) -MiscTypesOutShort = MiscTypes.Port( 'OutShort' ) -MiscTypesOutLong = MiscTypes.Port( 'OutLong' ) -MiscTypesOutFloat = MiscTypes.Port( 'OutFloat' ) -MiscTypesOutDouble = MiscTypes.Port( 'OutDouble' ) -MiscTypesOutObjRef = MiscTypes.Port( 'OutObjRef' ) - -GraphConvertBoolStringCheck.Run() -GraphConvertBoolStringCheck.DoneW() -GraphConvertBoolStringCheck.PrintPorts() diff --git a/Superv/Python/GraphConvertCharCheck.py b/Superv/Python/GraphConvertCharCheck.py deleted file mode 100755 index dd0140d..0000000 --- a/Superv/Python/GraphConvertCharCheck.py +++ /dev/null @@ -1,85 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphConvertCharCheck -# -from SuperV import * -# Graph creation -GraphConvertCharCheck = Graph( 'GraphConvertCharCheck' ) -GraphConvertCharCheck.SetName( 'GraphConvertCharCheck' ) -GraphConvertCharCheck.SetAuthor( 'JR' ) -GraphConvertCharCheck.SetComment( 'Check conversions of Char' ) -GraphConvertCharCheck.Coords( 0 , 0 ) - -# Creation of Factory Nodes - -MiscTypes = GraphConvertCharCheck.FNode( 'TypesCheck' , 'TypesCheck' , 'MiscTypes' ) -MiscTypes.SetName( 'MiscTypes' ) -MiscTypes.SetAuthor( '' ) -MiscTypes.SetContainer( 'localhost/FactoryServer' ) -MiscTypes.SetComment( 'MiscTypes from TypesCheck' ) -MiscTypes.Coords( 284 , 28 ) - -# Creation of InLine Nodes -PyChar = [] -PyChar.append( 'def Char() : ' ) -PyChar.append( ' aChar = 255 ' ) -PyChar.append( ' return aChar ' ) -PyChar.append( ' ' ) -Char = GraphConvertCharCheck.INode( 'Char' , PyChar ) -Char.OutPort( 'OutChar' , 'char' ) -Char.SetName( 'Char' ) -Char.SetAuthor( 'JR' ) -Char.SetComment( 'InLine Node' ) -Char.Coords( 14 , 114 ) - -# Creation of Links -CharOutChar = Char.Port( 'OutChar' ) -MiscTypesInString = GraphConvertCharCheck.Link( CharOutChar , MiscTypes.Port( 'InString' ) ) - -MiscTypesInBool = GraphConvertCharCheck.Link( CharOutChar , MiscTypes.Port( 'InBool' ) ) - -MiscTypesInChar = GraphConvertCharCheck.Link( CharOutChar , MiscTypes.Port( 'InChar' ) ) - -MiscTypesInShort = GraphConvertCharCheck.Link( CharOutChar , MiscTypes.Port( 'InShort' ) ) - -MiscTypesInLong = GraphConvertCharCheck.Link( CharOutChar , MiscTypes.Port( 'InLong' ) ) - -MiscTypesInFloat = GraphConvertCharCheck.Link( CharOutChar , MiscTypes.Port( 'InFloat' ) ) - -MiscTypesInDouble = GraphConvertCharCheck.Link( CharOutChar , MiscTypes.Port( 'InDouble' ) ) - -MiscTypesInObjRef = GraphConvertCharCheck.Link( CharOutChar , MiscTypes.Port( 'InObjRef' ) ) - -# Creation of Output variables -MiscTypesOutString = MiscTypes.Port( 'OutString' ) -MiscTypesOutBool = MiscTypes.Port( 'OutBool' ) -MiscTypesOutChar = MiscTypes.Port( 'OutChar' ) -MiscTypesOutShort = MiscTypes.Port( 'OutShort' ) -MiscTypesOutLong = MiscTypes.Port( 'OutLong' ) -MiscTypesOutFloat = MiscTypes.Port( 'OutFloat' ) -MiscTypesOutDouble = MiscTypes.Port( 'OutDouble' ) -MiscTypesOutObjRef = MiscTypes.Port( 'OutObjRef' ) - -GraphConvertCharCheck.Run() -GraphConvertCharCheck.DoneW() -GraphConvertCharCheck.PrintPorts() diff --git a/Superv/Python/GraphConvertCharStringCheck.py b/Superv/Python/GraphConvertCharStringCheck.py deleted file mode 100755 index a3ebb77..0000000 --- a/Superv/Python/GraphConvertCharStringCheck.py +++ /dev/null @@ -1,85 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphConvertCharStringCheck -# -from SuperV import * -# Graph creation -GraphConvertCharStringCheck = Graph( 'GraphConvertCharStringCheck' ) -GraphConvertCharStringCheck.SetName( 'GraphConvertCharStringCheck' ) -GraphConvertCharStringCheck.SetAuthor( 'JR' ) -GraphConvertCharStringCheck.SetComment( 'Check conversions of String' ) -GraphConvertCharStringCheck.Coords( 0 , 0 ) - -# Creation of Factory Nodes - -MiscTypes = GraphConvertCharStringCheck.FNode( 'TypesCheck' , 'TypesCheck' , 'MiscTypes' ) -MiscTypes.SetName( 'MiscTypes' ) -MiscTypes.SetAuthor( '' ) -MiscTypes.SetContainer( 'localhost/FactoryServer' ) -MiscTypes.SetComment( 'MiscTypes from TypesCheck' ) -MiscTypes.Coords( 284 , 28 ) - -# Creation of InLine Nodes -PyCharString = [] -PyCharString.append( 'def StringString() : ' ) -PyCharString.append( ' string = "255" ' ) -PyCharString.append( ' return string ' ) -PyCharString.append( ' ' ) -CharString = GraphConvertCharStringCheck.INode( 'StringString' , PyCharString ) -CharString.OutPort( 'OutString' , 'string' ) -CharString.SetName( 'CharString' ) -CharString.SetAuthor( 'JR' ) -CharString.SetComment( 'InLine Node' ) -CharString.Coords( 14 , 114 ) - -# Creation of Links -CharStringOutString = CharString.Port( 'OutString' ) -MiscTypesInString = GraphConvertCharStringCheck.Link( CharStringOutString , MiscTypes.Port( 'InString' ) ) - -MiscTypesInBool = GraphConvertCharStringCheck.Link( CharStringOutString , MiscTypes.Port( 'InBool' ) ) - -MiscTypesInChar = GraphConvertCharStringCheck.Link( CharStringOutString , MiscTypes.Port( 'InChar' ) ) - -MiscTypesInShort = GraphConvertCharStringCheck.Link( CharStringOutString , MiscTypes.Port( 'InShort' ) ) - -MiscTypesInLong = GraphConvertCharStringCheck.Link( CharStringOutString , MiscTypes.Port( 'InLong' ) ) - -MiscTypesInFloat = GraphConvertCharStringCheck.Link( CharStringOutString , MiscTypes.Port( 'InFloat' ) ) - -MiscTypesInDouble = GraphConvertCharStringCheck.Link( CharStringOutString , MiscTypes.Port( 'InDouble' ) ) - -MiscTypesInObjRef = GraphConvertCharStringCheck.Link( CharStringOutString , MiscTypes.Port( 'InObjRef' ) ) - -# Creation of Output variables -MiscTypesOutString = MiscTypes.Port( 'OutString' ) -MiscTypesOutBool = MiscTypes.Port( 'OutBool' ) -MiscTypesOutChar = MiscTypes.Port( 'OutChar' ) -MiscTypesOutShort = MiscTypes.Port( 'OutShort' ) -MiscTypesOutLong = MiscTypes.Port( 'OutLong' ) -MiscTypesOutFloat = MiscTypes.Port( 'OutFloat' ) -MiscTypesOutDouble = MiscTypes.Port( 'OutDouble' ) -MiscTypesOutObjRef = MiscTypes.Port( 'OutObjRef' ) - -GraphConvertCharStringCheck.Run() -GraphConvertCharStringCheck.DoneW() -GraphConvertCharStringCheck.PrintPorts() diff --git a/Superv/Python/GraphConvertDoubleCheck.py b/Superv/Python/GraphConvertDoubleCheck.py deleted file mode 100755 index 3da4174..0000000 --- a/Superv/Python/GraphConvertDoubleCheck.py +++ /dev/null @@ -1,133 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphConvertDoubleCheck -# -from SuperV import * -# Graph creation -GraphConvertDoubleCheck = Graph( 'GraphConvertDoubleCheck' ) -GraphConvertDoubleCheck.SetName( 'GraphConvertDoubleCheck' ) -GraphConvertDoubleCheck.SetAuthor( 'JR' ) -GraphConvertDoubleCheck.SetComment( 'Check conversions of Double' ) -GraphConvertDoubleCheck.Coords( 0 , 0 ) - -# Creation of Factory Nodes - -MiscTypes = GraphConvertDoubleCheck.FNode( 'TypesCheck' , 'TypesCheck' , 'MiscTypes' ) -MiscTypes.SetName( 'MiscTypes' ) -MiscTypes.SetAuthor( '' ) -MiscTypes.SetContainer( 'localhost/FactoryServer' ) -MiscTypes.SetComment( 'MiscTypes from TypesCheck' ) -MiscTypes.Coords( 217 , 0 ) - -MiscTypes_1 = GraphConvertDoubleCheck.FNode( 'TypesCheck' , 'TypesCheck' , 'MiscTypes' ) -MiscTypes_1.SetName( 'MiscTypes_1' ) -MiscTypes_1.SetAuthor( '' ) -MiscTypes_1.SetContainer( 'localhost/FactoryServer' ) -MiscTypes_1.SetComment( 'MiscTypes from TypesCheck' ) -MiscTypes_1.Coords( 433 , 131 ) - -# Creation of InLine Nodes -PyDouble = [] -PyDouble.append( 'def Double() : ' ) -PyDouble.append( ' aDouble = 3.1415926535 ' ) -PyDouble.append( ' print type(aDouble),"aDouble",aDouble,"NO double in python !!! Use Strings ?" ' ) -PyDouble.append( ' return aDouble ' ) -PyDouble.append( '' ) -Double = GraphConvertDoubleCheck.INode( 'Double' , PyDouble ) -Double.OutPort( 'OutDouble' , 'double' ) -Double.SetName( 'Double' ) -Double.SetAuthor( 'JR' ) -Double.SetComment( 'InLine Node' ) -Double.Coords( 9 , 87 ) - -PyDoubleString = [] -PyDoubleString.append( 'def DoubleString() : ' ) -PyDoubleString.append( ' aDouble = 3.1415926535 ' ) -PyDoubleString.append( ' print type(aDouble),"aDouble",aDouble,"NO double in python !!! Use Strings ?" ' ) -PyDoubleString.append( ' aDoubleString = str( aDouble ) ' ) -PyDoubleString.append( ' print type(aDoubleString),"aDoubleString",aDoubleString ' ) -PyDoubleString.append( ' return aDoubleString ' ) -PyDoubleString.append( ' ' ) -DoubleString = GraphConvertDoubleCheck.INode( 'DoubleString' , PyDoubleString ) -DoubleString.OutPort( 'OutDoubleString' , 'string' ) -DoubleString.SetName( 'DoubleString' ) -DoubleString.SetAuthor( 'JR' ) -DoubleString.SetComment( 'InLine Node' ) -DoubleString.Coords( 217 , 334 ) - -# Creation of Links -DoubleOutDouble = Double.Port( 'OutDouble' ) -MiscTypesInString = GraphConvertDoubleCheck.Link( DoubleOutDouble , MiscTypes.Port( 'InString' ) ) - -MiscTypesInBool = GraphConvertDoubleCheck.Link( DoubleOutDouble , MiscTypes.Port( 'InBool' ) ) - -MiscTypesInChar = GraphConvertDoubleCheck.Link( DoubleOutDouble , MiscTypes.Port( 'InChar' ) ) - -MiscTypesInShort = GraphConvertDoubleCheck.Link( DoubleOutDouble , MiscTypes.Port( 'InShort' ) ) - -MiscTypesInLong = GraphConvertDoubleCheck.Link( DoubleOutDouble , MiscTypes.Port( 'InLong' ) ) - -MiscTypesInFloat = GraphConvertDoubleCheck.Link( DoubleOutDouble , MiscTypes.Port( 'InFloat' ) ) - -MiscTypesInDouble = GraphConvertDoubleCheck.Link( DoubleOutDouble , MiscTypes.Port( 'InDouble' ) ) - -MiscTypesInObjRef = GraphConvertDoubleCheck.Link( DoubleOutDouble , MiscTypes.Port( 'InObjRef' ) ) - -DoubleStringOutDoubleString = DoubleString.Port( 'OutDoubleString' ) -MiscTypes_1InString = GraphConvertDoubleCheck.Link( DoubleStringOutDoubleString , MiscTypes_1.Port( 'InString' ) ) - -MiscTypes_1InBool = GraphConvertDoubleCheck.Link( DoubleStringOutDoubleString , MiscTypes_1.Port( 'InBool' ) ) - -MiscTypes_1InChar = GraphConvertDoubleCheck.Link( DoubleStringOutDoubleString , MiscTypes_1.Port( 'InChar' ) ) - -MiscTypes_1InShort = GraphConvertDoubleCheck.Link( DoubleStringOutDoubleString , MiscTypes_1.Port( 'InShort' ) ) - -MiscTypes_1InLong = GraphConvertDoubleCheck.Link( DoubleStringOutDoubleString , MiscTypes_1.Port( 'InLong' ) ) - -MiscTypes_1InFloat = GraphConvertDoubleCheck.Link( DoubleStringOutDoubleString , MiscTypes_1.Port( 'InFloat' ) ) - -MiscTypes_1InDouble = GraphConvertDoubleCheck.Link( DoubleStringOutDoubleString , MiscTypes_1.Port( 'InDouble' ) ) - -MiscTypes_1InObjRef = GraphConvertDoubleCheck.Link( DoubleStringOutDoubleString , MiscTypes_1.Port( 'InObjRef' ) ) - -# Creation of Output variables -MiscTypesOutString = MiscTypes.Port( 'OutString' ) -MiscTypesOutBool = MiscTypes.Port( 'OutBool' ) -MiscTypesOutChar = MiscTypes.Port( 'OutChar' ) -MiscTypesOutShort = MiscTypes.Port( 'OutShort' ) -MiscTypesOutLong = MiscTypes.Port( 'OutLong' ) -MiscTypesOutFloat = MiscTypes.Port( 'OutFloat' ) -MiscTypesOutDouble = MiscTypes.Port( 'OutDouble' ) -MiscTypesOutObjRef = MiscTypes.Port( 'OutObjRef' ) -MiscTypes_1OutString = MiscTypes_1.Port( 'OutString' ) -MiscTypes_1OutBool = MiscTypes_1.Port( 'OutBool' ) -MiscTypes_1OutChar = MiscTypes_1.Port( 'OutChar' ) -MiscTypes_1OutShort = MiscTypes_1.Port( 'OutShort' ) -MiscTypes_1OutLong = MiscTypes_1.Port( 'OutLong' ) -MiscTypes_1OutFloat = MiscTypes_1.Port( 'OutFloat' ) -MiscTypes_1OutDouble = MiscTypes_1.Port( 'OutDouble' ) -MiscTypes_1OutObjRef = MiscTypes_1.Port( 'OutObjRef' ) - -GraphConvertDoubleCheck.Run() -GraphConvertDoubleCheck.DoneW() -GraphConvertDoubleCheck.PrintPorts() diff --git a/Superv/Python/GraphConvertDoubleStringCheck.py b/Superv/Python/GraphConvertDoubleStringCheck.py deleted file mode 100755 index a07550d..0000000 --- a/Superv/Python/GraphConvertDoubleStringCheck.py +++ /dev/null @@ -1,85 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphConvertDoubleStringCheck -# -from SuperV import * -# Graph creation -GraphConvertDoubleStringCheck = Graph( 'GraphConvertDoubleStringCheck' ) -GraphConvertDoubleStringCheck.SetName( 'GraphConvertDoubleStringCheck' ) -GraphConvertDoubleStringCheck.SetAuthor( 'JR' ) -GraphConvertDoubleStringCheck.SetComment( 'Check conversions of String' ) -GraphConvertDoubleStringCheck.Coords( 0 , 0 ) - -# Creation of Factory Nodes - -MiscTypes = GraphConvertDoubleStringCheck.FNode( 'TypesCheck' , 'TypesCheck' , 'MiscTypes' ) -MiscTypes.SetName( 'MiscTypes' ) -MiscTypes.SetAuthor( '' ) -MiscTypes.SetContainer( 'localhost/FactoryServer' ) -MiscTypes.SetComment( 'MiscTypes from TypesCheck' ) -MiscTypes.Coords( 284 , 28 ) - -# Creation of InLine Nodes -PyDoubleString = [] -PyDoubleString.append( 'def DoubleString() : ' ) -PyDoubleString.append( ' string = "3.1415926535" ' ) -PyDoubleString.append( ' return string ' ) -PyDoubleString.append( ' ' ) -DoubleString = GraphConvertDoubleStringCheck.INode( 'DoubleString' , PyDoubleString ) -DoubleString.OutPort( 'OutString' , 'string' ) -DoubleString.SetName( 'DoubleString' ) -DoubleString.SetAuthor( 'JR' ) -DoubleString.SetComment( 'InLine Node' ) -DoubleString.Coords( 14 , 114 ) - -# Creation of Links -DoubleStringOutString = DoubleString.Port( 'OutString' ) -MiscTypesInString = GraphConvertDoubleStringCheck.Link( DoubleStringOutString , MiscTypes.Port( 'InString' ) ) - -MiscTypesInBool = GraphConvertDoubleStringCheck.Link( DoubleStringOutString , MiscTypes.Port( 'InBool' ) ) - -MiscTypesInChar = GraphConvertDoubleStringCheck.Link( DoubleStringOutString , MiscTypes.Port( 'InChar' ) ) - -MiscTypesInShort = GraphConvertDoubleStringCheck.Link( DoubleStringOutString , MiscTypes.Port( 'InShort' ) ) - -MiscTypesInLong = GraphConvertDoubleStringCheck.Link( DoubleStringOutString , MiscTypes.Port( 'InLong' ) ) - -MiscTypesInFloat = GraphConvertDoubleStringCheck.Link( DoubleStringOutString , MiscTypes.Port( 'InFloat' ) ) - -MiscTypesInDouble = GraphConvertDoubleStringCheck.Link( DoubleStringOutString , MiscTypes.Port( 'InDouble' ) ) - -MiscTypesInObjRef = GraphConvertDoubleStringCheck.Link( DoubleStringOutString , MiscTypes.Port( 'InObjRef' ) ) - -# Creation of Output variables -MiscTypesOutString = MiscTypes.Port( 'OutString' ) -MiscTypesOutBool = MiscTypes.Port( 'OutBool' ) -MiscTypesOutChar = MiscTypes.Port( 'OutChar' ) -MiscTypesOutShort = MiscTypes.Port( 'OutShort' ) -MiscTypesOutLong = MiscTypes.Port( 'OutLong' ) -MiscTypesOutFloat = MiscTypes.Port( 'OutFloat' ) -MiscTypesOutDouble = MiscTypes.Port( 'OutDouble' ) -MiscTypesOutObjRef = MiscTypes.Port( 'OutObjRef' ) - -GraphConvertDoubleStringCheck.Run() -GraphConvertDoubleStringCheck.DoneW() -GraphConvertDoubleStringCheck.PrintPorts() diff --git a/Superv/Python/GraphConvertFloatCheck.py b/Superv/Python/GraphConvertFloatCheck.py deleted file mode 100755 index 38504e2..0000000 --- a/Superv/Python/GraphConvertFloatCheck.py +++ /dev/null @@ -1,86 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphConvertFloatCheck -# -from SuperV import * -# Graph creation -GraphConvertFloatCheck = Graph( 'GraphConvertFloatCheck' ) -GraphConvertFloatCheck.SetName( 'GraphConvertFloatCheck' ) -GraphConvertFloatCheck.SetAuthor( 'JR' ) -GraphConvertFloatCheck.SetComment( 'Check conversions of Float' ) -GraphConvertFloatCheck.Coords( 0 , 0 ) - -# Creation of Factory Nodes - -MiscTypes = GraphConvertFloatCheck.FNode( 'TypesCheck' , 'TypesCheck' , 'MiscTypes' ) -MiscTypes.SetName( 'MiscTypes' ) -MiscTypes.SetAuthor( '' ) -MiscTypes.SetContainer( 'localhost/FactoryServer' ) -MiscTypes.SetComment( 'MiscTypes from TypesCheck' ) -MiscTypes.Coords( 284 , 28 ) - -# Creation of InLine Nodes -PyFloat = [] -PyFloat.append( 'def Float() : ' ) -PyFloat.append( ' aFloat = 3.1415926535 ' ) -PyFloat.append( ' print type(aFloat),"aFloat",aFloat ' ) -PyFloat.append( ' return aFloat ' ) -PyFloat.append( ' ' ) -Float = GraphConvertFloatCheck.INode( 'Float' , PyFloat ) -Float.OutPort( 'OutFloat' , 'float' ) -Float.SetName( 'Float' ) -Float.SetAuthor( 'JR' ) -Float.SetComment( 'InLine Node' ) -Float.Coords( 14 , 114 ) - -# Creation of Links -FloatOutFloat = Float.Port( 'OutFloat' ) -MiscTypesInString = GraphConvertFloatCheck.Link( FloatOutFloat , MiscTypes.Port( 'InString' ) ) - -MiscTypesInBool = GraphConvertFloatCheck.Link( FloatOutFloat , MiscTypes.Port( 'InBool' ) ) - -MiscTypesInChar = GraphConvertFloatCheck.Link( FloatOutFloat , MiscTypes.Port( 'InChar' ) ) - -MiscTypesInShort = GraphConvertFloatCheck.Link( FloatOutFloat , MiscTypes.Port( 'InShort' ) ) - -MiscTypesInLong = GraphConvertFloatCheck.Link( FloatOutFloat , MiscTypes.Port( 'InLong' ) ) - -MiscTypesInFloat = GraphConvertFloatCheck.Link( FloatOutFloat , MiscTypes.Port( 'InFloat' ) ) - -MiscTypesInDouble = GraphConvertFloatCheck.Link( FloatOutFloat , MiscTypes.Port( 'InDouble' ) ) - -MiscTypesInObjRef = GraphConvertFloatCheck.Link( FloatOutFloat , MiscTypes.Port( 'InObjRef' ) ) - -# Creation of Output variables -MiscTypesOutString = MiscTypes.Port( 'OutString' ) -MiscTypesOutBool = MiscTypes.Port( 'OutBool' ) -MiscTypesOutChar = MiscTypes.Port( 'OutChar' ) -MiscTypesOutShort = MiscTypes.Port( 'OutShort' ) -MiscTypesOutLong = MiscTypes.Port( 'OutLong' ) -MiscTypesOutFloat = MiscTypes.Port( 'OutFloat' ) -MiscTypesOutDouble = MiscTypes.Port( 'OutDouble' ) -MiscTypesOutObjRef = MiscTypes.Port( 'OutObjRef' ) - -GraphConvertFloatCheck.Run() -GraphConvertFloatCheck.DoneW() -GraphConvertFloatCheck.PrintPorts() diff --git a/Superv/Python/GraphConvertFloatStringCheck.py b/Superv/Python/GraphConvertFloatStringCheck.py deleted file mode 100755 index 3974119..0000000 --- a/Superv/Python/GraphConvertFloatStringCheck.py +++ /dev/null @@ -1,85 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphConvertFloatStringCheck -# -from SuperV import * -# Graph creation -GraphConvertFloatStringCheck = Graph( 'GraphConvertFloatStringCheck' ) -GraphConvertFloatStringCheck.SetName( 'GraphConvertFloatStringCheck' ) -GraphConvertFloatStringCheck.SetAuthor( 'JR' ) -GraphConvertFloatStringCheck.SetComment( 'Check conversions of String' ) -GraphConvertFloatStringCheck.Coords( 0 , 0 ) - -# Creation of Factory Nodes - -MiscTypes = GraphConvertFloatStringCheck.FNode( 'TypesCheck' , 'TypesCheck' , 'MiscTypes' ) -MiscTypes.SetName( 'MiscTypes' ) -MiscTypes.SetAuthor( '' ) -MiscTypes.SetContainer( 'localhost/FactoryServer' ) -MiscTypes.SetComment( 'MiscTypes from TypesCheck' ) -MiscTypes.Coords( 284 , 28 ) - -# Creation of InLine Nodes -PyFloatString = [] -PyFloatString.append( 'def FloatString() : ' ) -PyFloatString.append( ' string = "3.1415926535" ' ) -PyFloatString.append( ' return string ' ) -PyFloatString.append( ' ' ) -FloatString = GraphConvertFloatStringCheck.INode( 'FloatString' , PyFloatString ) -FloatString.OutPort( 'OutString' , 'string' ) -FloatString.SetName( 'FloatString' ) -FloatString.SetAuthor( 'JR' ) -FloatString.SetComment( 'InLine Node' ) -FloatString.Coords( 14 , 114 ) - -# Creation of Links -FloatStringOutString = FloatString.Port( 'OutString' ) -MiscTypesInString = GraphConvertFloatStringCheck.Link( FloatStringOutString , MiscTypes.Port( 'InString' ) ) - -MiscTypesInBool = GraphConvertFloatStringCheck.Link( FloatStringOutString , MiscTypes.Port( 'InBool' ) ) - -MiscTypesInChar = GraphConvertFloatStringCheck.Link( FloatStringOutString , MiscTypes.Port( 'InChar' ) ) - -MiscTypesInShort = GraphConvertFloatStringCheck.Link( FloatStringOutString , MiscTypes.Port( 'InShort' ) ) - -MiscTypesInLong = GraphConvertFloatStringCheck.Link( FloatStringOutString , MiscTypes.Port( 'InLong' ) ) - -MiscTypesInFloat = GraphConvertFloatStringCheck.Link( FloatStringOutString , MiscTypes.Port( 'InFloat' ) ) - -MiscTypesInDouble = GraphConvertFloatStringCheck.Link( FloatStringOutString , MiscTypes.Port( 'InDouble' ) ) - -MiscTypesInObjRef = GraphConvertFloatStringCheck.Link( FloatStringOutString , MiscTypes.Port( 'InObjRef' ) ) - -# Creation of Output variables -MiscTypesOutString = MiscTypes.Port( 'OutString' ) -MiscTypesOutBool = MiscTypes.Port( 'OutBool' ) -MiscTypesOutChar = MiscTypes.Port( 'OutChar' ) -MiscTypesOutShort = MiscTypes.Port( 'OutShort' ) -MiscTypesOutLong = MiscTypes.Port( 'OutLong' ) -MiscTypesOutFloat = MiscTypes.Port( 'OutFloat' ) -MiscTypesOutDouble = MiscTypes.Port( 'OutDouble' ) -MiscTypesOutObjRef = MiscTypes.Port( 'OutObjRef' ) - -GraphConvertFloatStringCheck.Run() -GraphConvertFloatStringCheck.DoneW() -GraphConvertFloatStringCheck.PrintPorts() diff --git a/Superv/Python/GraphConvertIORCheck.py b/Superv/Python/GraphConvertIORCheck.py deleted file mode 100755 index 5146d7d..0000000 --- a/Superv/Python/GraphConvertIORCheck.py +++ /dev/null @@ -1,100 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphConvertIORCheck -# -from SuperV import * -# Graph creation -GraphConvertIORCheck = Graph( 'GraphConvertIORCheck' ) -GraphConvertIORCheck.SetName( 'GraphConvertIORCheck' ) -GraphConvertIORCheck.SetAuthor( 'JR' ) -GraphConvertIORCheck.SetComment( 'Check conversions of IOR' ) -GraphConvertIORCheck.Coords( 0 , 0 ) - -# Creation of Factory Nodes - -MiscTypes = GraphConvertIORCheck.FNode( 'TypesCheck' , 'TypesCheck' , 'MiscTypes' ) -MiscTypes.SetName( 'MiscTypes' ) -MiscTypes.SetAuthor( '' ) -MiscTypes.SetContainer( 'localhost/FactoryServer' ) -MiscTypes.SetComment( 'MiscTypes from TypesCheck' ) -MiscTypes.Coords( 284 , 28 ) - -# Creation of InLine Nodes -PySyrComponent = [] -PySyrComponent.append( 'from LifeCycleCORBA import * ' ) -PySyrComponent.append( 'def SyrComponent( aContainer , aComponent ) : ' ) -PySyrComponent.append( ' print "SyrComponent(",aContainer,",",aComponent,")" ' ) -PySyrComponent.append( ' orb = CORBA.ORB_init([], CORBA.ORB_ID) ' ) -PySyrComponent.append( ' print "SyrComponent orb",orb ' ) -PySyrComponent.append( ' lcc = LifeCycleCORBA(orb) ' ) -PySyrComponent.append( ' print "SyrComponent lcc",lcc ' ) -PySyrComponent.append( ' print "SyrComponent(",aContainer,",",aComponent,")" ' ) -PySyrComponent.append( ' ComponentRef = lcc.FindOrLoadComponent( aContainer , aComponent ) ' ) -PySyrComponent.append( ' print "SyrComponent(",aContainer,",",aComponent,") --> ",ComponentRef ' ) -PySyrComponent.append( ' IOR = orb.object_to_string( ComponentRef ) ' ) -PySyrComponent.append( ' return IOR ' ) -PySyrComponent.append( ' ' ) -SyrComponent = GraphConvertIORCheck.INode( 'SyrComponent' , PySyrComponent ) -SyrComponent.InPort( 'aContainer' , 'string' ) -SyrComponent.InPort( 'aComponent' , 'string' ) -SyrComponent.OutPort( 'anIOR' , 'string' ) -SyrComponent.SetName( 'SyrComponent' ) -SyrComponent.SetAuthor( 'JR' ) -SyrComponent.SetComment( 'InLine Node' ) -SyrComponent.Coords( 14 , 114 ) - -# Creation of Links -SyrComponentanIOR = SyrComponent.Port( 'anIOR' ) -MiscTypesInShort = GraphConvertIORCheck.Link( SyrComponentanIOR , MiscTypes.Port( 'InShort' ) ) - -MiscTypesInString = GraphConvertIORCheck.Link( SyrComponentanIOR , MiscTypes.Port( 'InString' ) ) - -MiscTypesInBool = GraphConvertIORCheck.Link( SyrComponentanIOR , MiscTypes.Port( 'InBool' ) ) - -MiscTypesInChar = GraphConvertIORCheck.Link( SyrComponentanIOR , MiscTypes.Port( 'InChar' ) ) - -MiscTypesInLong = GraphConvertIORCheck.Link( SyrComponentanIOR , MiscTypes.Port( 'InLong' ) ) - -MiscTypesInFloat = GraphConvertIORCheck.Link( SyrComponentanIOR , MiscTypes.Port( 'InFloat' ) ) - -MiscTypesInDouble = GraphConvertIORCheck.Link( SyrComponentanIOR , MiscTypes.Port( 'InDouble' ) ) - -MiscTypesInObjRef = GraphConvertIORCheck.Link( SyrComponentanIOR , MiscTypes.Port( 'InObjRef' ) ) - -# Creation of Input datas -SyrComponentaContainer = SyrComponent.Input( 'aContainer' , 'FactoryServerPy') -SyrComponentaComponent = SyrComponent.Input( 'aComponent' , 'SyrControlComponent') - -# Creation of Output variables -MiscTypesOutString = MiscTypes.Port( 'OutString' ) -MiscTypesOutBool = MiscTypes.Port( 'OutBool' ) -MiscTypesOutChar = MiscTypes.Port( 'OutChar' ) -MiscTypesOutShort = MiscTypes.Port( 'OutShort' ) -MiscTypesOutLong = MiscTypes.Port( 'OutLong' ) -MiscTypesOutFloat = MiscTypes.Port( 'OutFloat' ) -MiscTypesOutDouble = MiscTypes.Port( 'OutDouble' ) -MiscTypesOutObjRef = MiscTypes.Port( 'OutObjRef' ) - -GraphConvertIORCheck.Run() -GraphConvertIORCheck.DoneW() -GraphConvertIORCheck.PrintPorts() diff --git a/Superv/Python/GraphConvertLongCheck.py b/Superv/Python/GraphConvertLongCheck.py deleted file mode 100755 index 176a9f0..0000000 --- a/Superv/Python/GraphConvertLongCheck.py +++ /dev/null @@ -1,86 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphConvertLongCheck -# -from SuperV import * -# Graph creation -GraphConvertLongCheck = Graph( 'GraphConvertLongCheck' ) -GraphConvertLongCheck.SetName( 'GraphConvertLongCheck' ) -GraphConvertLongCheck.SetAuthor( 'JR' ) -GraphConvertLongCheck.SetComment( 'Check conversions of Long' ) -GraphConvertLongCheck.Coords( 0 , 0 ) - -# Creation of Factory Nodes - -MiscTypes = GraphConvertLongCheck.FNode( 'TypesCheck' , 'TypesCheck' , 'MiscTypes' ) -MiscTypes.SetName( 'MiscTypes' ) -MiscTypes.SetAuthor( '' ) -MiscTypes.SetContainer( 'localhost/FactoryServer' ) -MiscTypes.SetComment( 'MiscTypes from TypesCheck' ) -MiscTypes.Coords( 284 , 28 ) - -# Creation of InLine Nodes -PyLong = [] -PyLong.append( 'def Long() : ' ) -PyLong.append( ' aLong = 2147483647 ' ) -PyLong.append( ' print type( aLong ),"aLong",aLong ' ) -PyLong.append( ' return aLong ' ) -PyLong.append( ' ' ) -Long = GraphConvertLongCheck.INode( 'Long' , PyLong ) -Long.OutPort( 'OutLong' , 'long' ) -Long.SetName( 'Long' ) -Long.SetAuthor( 'JR' ) -Long.SetComment( 'InLine Node' ) -Long.Coords( 14 , 114 ) - -# Creation of Links -LongOutLong = Long.Port( 'OutLong' ) -MiscTypesInString = GraphConvertLongCheck.Link( LongOutLong , MiscTypes.Port( 'InString' ) ) - -MiscTypesInBool = GraphConvertLongCheck.Link( LongOutLong , MiscTypes.Port( 'InBool' ) ) - -MiscTypesInChar = GraphConvertLongCheck.Link( LongOutLong , MiscTypes.Port( 'InChar' ) ) - -MiscTypesInShort = GraphConvertLongCheck.Link( LongOutLong , MiscTypes.Port( 'InShort' ) ) - -MiscTypesInLong = GraphConvertLongCheck.Link( LongOutLong , MiscTypes.Port( 'InLong' ) ) - -MiscTypesInFloat = GraphConvertLongCheck.Link( LongOutLong , MiscTypes.Port( 'InFloat' ) ) - -MiscTypesInDouble = GraphConvertLongCheck.Link( LongOutLong , MiscTypes.Port( 'InDouble' ) ) - -MiscTypesInObjRef = GraphConvertLongCheck.Link( LongOutLong , MiscTypes.Port( 'InObjRef' ) ) - -# Creation of Output variables -MiscTypesOutString = MiscTypes.Port( 'OutString' ) -MiscTypesOutBool = MiscTypes.Port( 'OutBool' ) -MiscTypesOutChar = MiscTypes.Port( 'OutChar' ) -MiscTypesOutShort = MiscTypes.Port( 'OutShort' ) -MiscTypesOutLong = MiscTypes.Port( 'OutLong' ) -MiscTypesOutFloat = MiscTypes.Port( 'OutFloat' ) -MiscTypesOutDouble = MiscTypes.Port( 'OutDouble' ) -MiscTypesOutObjRef = MiscTypes.Port( 'OutObjRef' ) - -GraphConvertLongCheck.Run() -GraphConvertLongCheck.DoneW() -GraphConvertLongCheck.PrintPorts() diff --git a/Superv/Python/GraphConvertLongStringCheck.py b/Superv/Python/GraphConvertLongStringCheck.py deleted file mode 100755 index 6aab1d3..0000000 --- a/Superv/Python/GraphConvertLongStringCheck.py +++ /dev/null @@ -1,85 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphConvertLongStringCheck -# -from SuperV import * -# Graph creation -GraphConvertLongStringCheck = Graph( 'GraphConvertLongStringCheck' ) -GraphConvertLongStringCheck.SetName( 'GraphConvertLongStringCheck' ) -GraphConvertLongStringCheck.SetAuthor( 'JR' ) -GraphConvertLongStringCheck.SetComment( 'Check conversions of String' ) -GraphConvertLongStringCheck.Coords( 0 , 0 ) - -# Creation of Factory Nodes - -MiscTypes = GraphConvertLongStringCheck.FNode( 'TypesCheck' , 'TypesCheck' , 'MiscTypes' ) -MiscTypes.SetName( 'MiscTypes' ) -MiscTypes.SetAuthor( '' ) -MiscTypes.SetContainer( 'localhost/FactoryServer' ) -MiscTypes.SetComment( 'MiscTypes from TypesCheck' ) -MiscTypes.Coords( 284 , 28 ) - -# Creation of InLine Nodes -PyLongString = [] -PyLongString.append( 'def LongString() : ' ) -PyLongString.append( ' string = "9223372036854775807" ' ) -PyLongString.append( ' return string ' ) -PyLongString.append( ' ' ) -LongString = GraphConvertLongStringCheck.INode( 'LongString' , PyLongString ) -LongString.OutPort( 'OutString' , 'string' ) -LongString.SetName( 'LongString' ) -LongString.SetAuthor( 'JR' ) -LongString.SetComment( 'InLine Node' ) -LongString.Coords( 14 , 114 ) - -# Creation of Links -LongStringOutString = LongString.Port( 'OutString' ) -MiscTypesInString = GraphConvertLongStringCheck.Link( LongStringOutString , MiscTypes.Port( 'InString' ) ) - -MiscTypesInBool = GraphConvertLongStringCheck.Link( LongStringOutString , MiscTypes.Port( 'InBool' ) ) - -MiscTypesInChar = GraphConvertLongStringCheck.Link( LongStringOutString , MiscTypes.Port( 'InChar' ) ) - -MiscTypesInShort = GraphConvertLongStringCheck.Link( LongStringOutString , MiscTypes.Port( 'InShort' ) ) - -MiscTypesInLong = GraphConvertLongStringCheck.Link( LongStringOutString , MiscTypes.Port( 'InLong' ) ) - -MiscTypesInFloat = GraphConvertLongStringCheck.Link( LongStringOutString , MiscTypes.Port( 'InFloat' ) ) - -MiscTypesInDouble = GraphConvertLongStringCheck.Link( LongStringOutString , MiscTypes.Port( 'InDouble' ) ) - -MiscTypesInObjRef = GraphConvertLongStringCheck.Link( LongStringOutString , MiscTypes.Port( 'InObjRef' ) ) - -# Creation of Output variables -MiscTypesOutString = MiscTypes.Port( 'OutString' ) -MiscTypesOutBool = MiscTypes.Port( 'OutBool' ) -MiscTypesOutChar = MiscTypes.Port( 'OutChar' ) -MiscTypesOutShort = MiscTypes.Port( 'OutShort' ) -MiscTypesOutLong = MiscTypes.Port( 'OutLong' ) -MiscTypesOutFloat = MiscTypes.Port( 'OutFloat' ) -MiscTypesOutDouble = MiscTypes.Port( 'OutDouble' ) -MiscTypesOutObjRef = MiscTypes.Port( 'OutObjRef' ) - -GraphConvertLongStringCheck.Run() -GraphConvertLongStringCheck.DoneW() -GraphConvertLongStringCheck.PrintPorts() diff --git a/Superv/Python/GraphConvertObjRefCheck.py b/Superv/Python/GraphConvertObjRefCheck.py deleted file mode 100755 index 24fd18f..0000000 --- a/Superv/Python/GraphConvertObjRefCheck.py +++ /dev/null @@ -1,131 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphConvertObjRefCheck -# -from SuperV import * - -# Graph creation of GraphConvertObjRefCheck -def DefGraphConvertObjRefCheck() : - GraphConvertObjRefCheck = Graph( 'GraphConvertObjRefCheck' ) - GraphConvertObjRefCheck.SetName( 'GraphConvertObjRefCheck' ) - GraphConvertObjRefCheck.SetAuthor( 'JR' ) - GraphConvertObjRefCheck.SetComment( 'Check conversions of ObjRef' ) - GraphConvertObjRefCheck.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - MiscTypes = GraphConvertObjRefCheck.FNode( 'TypesCheck' , 'TypesCheck' , 'MiscTypes' ) - MiscTypes.SetName( 'MiscTypes' ) - MiscTypes.SetAuthor( '' ) - MiscTypes.SetContainer( 'localhost/FactoryServer' ) - MiscTypes.SetComment( 'MiscTypes from TypesCheck' ) - MiscTypes.Coords( 284 , 28 ) - IMiscTypesInString = MiscTypes.GetInPort( 'InString' ) - IMiscTypesInBool = MiscTypes.GetInPort( 'InBool' ) - IMiscTypesInChar = MiscTypes.GetInPort( 'InChar' ) - IMiscTypesInShort = MiscTypes.GetInPort( 'InShort' ) - IMiscTypesInLong = MiscTypes.GetInPort( 'InLong' ) - IMiscTypesInFloat = MiscTypes.GetInPort( 'InFloat' ) - IMiscTypesInDouble = MiscTypes.GetInPort( 'InDouble' ) - IMiscTypesInObjRef = MiscTypes.GetInPort( 'InObjRef' ) - IMiscTypesGate = MiscTypes.GetInPort( 'Gate' ) - OMiscTypesOutString = MiscTypes.GetOutPort( 'OutString' ) - OMiscTypesOutBool = MiscTypes.GetOutPort( 'OutBool' ) - OMiscTypesOutChar = MiscTypes.GetOutPort( 'OutChar' ) - OMiscTypesOutShort = MiscTypes.GetOutPort( 'OutShort' ) - OMiscTypesOutLong = MiscTypes.GetOutPort( 'OutLong' ) - OMiscTypesOutFloat = MiscTypes.GetOutPort( 'OutFloat' ) - OMiscTypesOutDouble = MiscTypes.GetOutPort( 'OutDouble' ) - OMiscTypesOutObjRef = MiscTypes.GetOutPort( 'OutObjRef' ) - OMiscTypesGate = MiscTypes.GetOutPort( 'Gate' ) - - # Creation of InLine Nodes - PySyrComponent = [] - PySyrComponent.append( 'from LifeCycleCORBA import * ' ) - PySyrComponent.append( 'def SyrComponent( aContainer , aComponent ) : ' ) - PySyrComponent.append( ' print "SyrComponent(",aContainer,",",aComponent,")" ' ) - PySyrComponent.append( ' orb = CORBA.ORB_init([], CORBA.ORB_ID) ' ) - PySyrComponent.append( ' print "SyrComponent orb",orb ' ) - PySyrComponent.append( ' lcc = LifeCycleCORBA(orb) ' ) - PySyrComponent.append( ' print "SyrComponent lcc",lcc ' ) - PySyrComponent.append( ' print "SyrComponent(",aContainer,",",aComponent,")" ' ) - PySyrComponent.append( ' ComponentRef = lcc.FindOrLoadComponent( aContainer , aComponent ) ' ) - PySyrComponent.append( ' print "SyrComponent(",aContainer,",",aComponent,") --> ",ComponentRef ' ) - PySyrComponent.append( ' return ComponentRef ' ) - PySyrComponent.append( '' ) - SyrComponent = GraphConvertObjRefCheck.INode( 'SyrComponent' , PySyrComponent ) - SyrComponent.SetName( 'SyrComponent' ) - SyrComponent.SetAuthor( 'JR' ) - SyrComponent.SetComment( 'InLine Node' ) - SyrComponent.Coords( 14 , 114 ) - ISyrComponentaContainer = SyrComponent.InPort( 'aContainer' , 'string' ) - ISyrComponentaComponent = SyrComponent.InPort( 'aComponent' , 'string' ) - ISyrComponentGate = SyrComponent.GetInPort( 'Gate' ) - OSyrComponentanObjRef = SyrComponent.OutPort( 'anObjRef' , 'objref' ) - OSyrComponentGate = SyrComponent.GetOutPort( 'Gate' ) - - PyObjRefToInline = [] - PyObjRefToInline.append( 'def ObjRefToInline(objRef): ' ) - PyObjRefToInline.append( ' return objRef ' ) - ObjRefToInline = GraphConvertObjRefCheck.INode( 'ObjRefToInline' , PyObjRefToInline ) - ObjRefToInline.SetName( 'ObjRefToInline' ) - ObjRefToInline.SetAuthor( '' ) - ObjRefToInline.SetComment( 'Compute Node' ) - ObjRefToInline.Coords( 496 , 168 ) - IObjRefToInlinetoInLine = ObjRefToInline.InPort( 'toInLine' , 'int' ) - IObjRefToInlineGate = ObjRefToInline.GetInPort( 'Gate' ) - OObjRefToInlineGate = ObjRefToInline.GetOutPort( 'Gate' ) - - # Creation of Links - LSyrComponentanObjRefMiscTypesInObjRef = GraphConvertObjRefCheck.Link( OSyrComponentanObjRef , IMiscTypesInObjRef ) - - LSyrComponentanObjRefMiscTypesInString = GraphConvertObjRefCheck.Link( OSyrComponentanObjRef , IMiscTypesInString ) - - LMiscTypesOutObjRefObjRefToInlinetoInLine = GraphConvertObjRefCheck.Link( OMiscTypesOutObjRef , IObjRefToInlinetoInLine ) - - # Input datas - ISyrComponentaContainer.Input( 'FactoryServerPy' ) - ISyrComponentaComponent.Input( 'SyrControlComponent' ) - IMiscTypesInBool.Input( 138492744 ) - IMiscTypesInChar.Input( 135402800 ) - IMiscTypesInShort.Input( 135448464 ) - IMiscTypesInLong.Input( 135469224 ) - IMiscTypesInFloat.Input( 65.6954 ) - IMiscTypesInDouble.Input( 65.6954 ) - - # Output Ports of the graph - #OMiscTypesOutString = MiscTypes.GetOutPort( 'OutString' ) - #OMiscTypesOutBool = MiscTypes.GetOutPort( 'OutBool' ) - #OMiscTypesOutChar = MiscTypes.GetOutPort( 'OutChar' ) - #OMiscTypesOutShort = MiscTypes.GetOutPort( 'OutShort' ) - #OMiscTypesOutLong = MiscTypes.GetOutPort( 'OutLong' ) - #OMiscTypesOutFloat = MiscTypes.GetOutPort( 'OutFloat' ) - #OMiscTypesOutDouble = MiscTypes.GetOutPort( 'OutDouble' ) - return GraphConvertObjRefCheck - - -GraphConvertObjRefCheck = DefGraphConvertObjRefCheck() - -GraphConvertObjRefCheck.Run() -GraphConvertObjRefCheck.DoneW() -GraphConvertObjRefCheck.PrintPorts() diff --git a/Superv/Python/GraphConvertObjRefCheckNotCompatible.py b/Superv/Python/GraphConvertObjRefCheckNotCompatible.py deleted file mode 100644 index 3ba6d68..0000000 --- a/Superv/Python/GraphConvertObjRefCheckNotCompatible.py +++ /dev/null @@ -1,133 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphConvertObjRefCheckNotCompatible -# -from SuperV import * - -# Graph creation of GraphConvertObjRefCheckNotCompatible -def DefGraphConvertObjRefCheckNotCompatible() : - GraphConvertObjRefCheckNotCompatible = Graph( 'GraphConvertObjRefCheckNotCompatible' ) - GraphConvertObjRefCheckNotCompatible.SetName( 'GraphConvertObjRefCheckNotCompatible' ) - GraphConvertObjRefCheckNotCompatible.SetAuthor( 'JR' ) - GraphConvertObjRefCheckNotCompatible.SetComment( 'Check conversions of ObjRef' ) - GraphConvertObjRefCheckNotCompatible.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - MiscTypes = GraphConvertObjRefCheckNotCompatible.FNode( 'TypesCheck' , 'TypesCheck' , 'MiscTypes' ) - MiscTypes.SetName( 'MiscTypes' ) - MiscTypes.SetAuthor( '' ) - MiscTypes.SetContainer( 'localhost/FactoryServer' ) - MiscTypes.SetComment( 'MiscTypes from TypesCheck' ) - MiscTypes.Coords( 284 , 28 ) - IMiscTypesInString = MiscTypes.GetInPort( 'InString' ) - IMiscTypesInBool = MiscTypes.GetInPort( 'InBool' ) - IMiscTypesInChar = MiscTypes.GetInPort( 'InChar' ) - IMiscTypesInShort = MiscTypes.GetInPort( 'InShort' ) - IMiscTypesInLong = MiscTypes.GetInPort( 'InLong' ) - IMiscTypesInFloat = MiscTypes.GetInPort( 'InFloat' ) - IMiscTypesInDouble = MiscTypes.GetInPort( 'InDouble' ) - IMiscTypesInObjRef = MiscTypes.GetInPort( 'InObjRef' ) - IMiscTypesGate = MiscTypes.GetInPort( 'Gate' ) - OMiscTypesOutString = MiscTypes.GetOutPort( 'OutString' ) - OMiscTypesOutBool = MiscTypes.GetOutPort( 'OutBool' ) - OMiscTypesOutChar = MiscTypes.GetOutPort( 'OutChar' ) - OMiscTypesOutShort = MiscTypes.GetOutPort( 'OutShort' ) - OMiscTypesOutLong = MiscTypes.GetOutPort( 'OutLong' ) - OMiscTypesOutFloat = MiscTypes.GetOutPort( 'OutFloat' ) - OMiscTypesOutDouble = MiscTypes.GetOutPort( 'OutDouble' ) - OMiscTypesOutObjRef = MiscTypes.GetOutPort( 'OutObjRef' ) - OMiscTypesGate = MiscTypes.GetOutPort( 'Gate' ) - - # Creation of InLine Nodes - PySyrComponent = [] - PySyrComponent.append( 'from LifeCycleCORBA import * ' ) - PySyrComponent.append( 'def SyrComponent( aContainer , aComponent ) : ' ) - PySyrComponent.append( ' print "SyrComponent(",aContainer,",",aComponent,")" ' ) - PySyrComponent.append( ' orb = CORBA.ORB_init([], CORBA.ORB_ID) ' ) - PySyrComponent.append( ' print "SyrComponent orb",orb ' ) - PySyrComponent.append( ' lcc = LifeCycleCORBA(orb) ' ) - PySyrComponent.append( ' print "SyrComponent lcc",lcc ' ) - PySyrComponent.append( ' print "SyrComponent(",aContainer,",",aComponent,")" ' ) - PySyrComponent.append( ' ComponentRef = lcc.FindOrLoadComponent( aContainer , aComponent ) ' ) - PySyrComponent.append( ' print "SyrComponent(",aContainer,",",aComponent,") --> ",ComponentRef ' ) - PySyrComponent.append( ' return ComponentRef ' ) - PySyrComponent.append( '' ) - SyrComponent = GraphConvertObjRefCheckNotCompatible.INode( 'SyrComponent' , PySyrComponent ) - SyrComponent.SetName( 'SyrComponent' ) - SyrComponent.SetAuthor( 'JR' ) - SyrComponent.SetComment( 'InLine Node' ) - SyrComponent.Coords( 14 , 114 ) - ISyrComponentaContainer = SyrComponent.InPort( 'aContainer' , 'string' ) - ISyrComponentaComponent = SyrComponent.InPort( 'aComponent' , 'string' ) - ISyrComponentGate = SyrComponent.GetInPort( 'Gate' ) - OSyrComponentanObjRef = SyrComponent.OutPort( 'anObjRef' , 'objref' ) - OSyrComponentGate = SyrComponent.GetOutPort( 'Gate' ) - - PyObjRefToInline = [] - PyObjRefToInline.append( 'def ObjRefToInline(objRef): ' ) - PyObjRefToInline.append( ' return objRef ' ) - ObjRefToInline = GraphConvertObjRefCheckNotCompatible.INode( 'ObjRefToInline' , PyObjRefToInline ) - ObjRefToInline.SetName( 'ObjRefToInline' ) - ObjRefToInline.SetAuthor( '' ) - ObjRefToInline.SetComment( 'Compute Node' ) - ObjRefToInline.Coords( 496 , 168 ) - IObjRefToInlinetoInLine = ObjRefToInline.InPort( 'toInLine' , 'int' ) - IObjRefToInlineGate = ObjRefToInline.GetInPort( 'Gate' ) - OObjRefToInlineGate = ObjRefToInline.GetOutPort( 'Gate' ) - - # Creation of Links - LSyrComponentanObjRefMiscTypesInObjRef = GraphConvertObjRefCheckNotCompatible.Link( OSyrComponentanObjRef , IMiscTypesInObjRef ) - - LSyrComponentanObjRefMiscTypesInString = GraphConvertObjRefCheckNotCompatible.Link( OSyrComponentanObjRef , IMiscTypesInString ) - - LSyrComponentanObjRefMiscTypesInBool = GraphConvertObjRefCheckNotCompatible.Link( OSyrComponentanObjRef , IMiscTypesInBool ) - - LSyrComponentanObjRefMiscTypesInChar = GraphConvertObjRefCheckNotCompatible.Link( OSyrComponentanObjRef , IMiscTypesInChar ) - - LSyrComponentanObjRefMiscTypesInShort = GraphConvertObjRefCheckNotCompatible.Link( OSyrComponentanObjRef , IMiscTypesInShort ) - - LSyrComponentanObjRefMiscTypesInLong = GraphConvertObjRefCheckNotCompatible.Link( OSyrComponentanObjRef , IMiscTypesInLong ) - - LSyrComponentanObjRefMiscTypesInFloat = GraphConvertObjRefCheckNotCompatible.Link( OSyrComponentanObjRef , IMiscTypesInFloat ) - - LSyrComponentanObjRefMiscTypesInDouble = GraphConvertObjRefCheckNotCompatible.Link( OSyrComponentanObjRef , IMiscTypesInDouble ) - - LMiscTypesOutObjRefObjRefToInlinetoInLine = GraphConvertObjRefCheckNotCompatible.Link( OMiscTypesOutObjRef , IObjRefToInlinetoInLine ) - - # Input datas - ISyrComponentaContainer.Input( 'FactoryServerPy' ) - ISyrComponentaComponent.Input( 'SyrControlComponent' ) - - # Output Ports of the graph - #OMiscTypesOutString = MiscTypes.GetOutPort( 'OutString' ) - #OMiscTypesOutBool = MiscTypes.GetOutPort( 'OutBool' ) - #OMiscTypesOutChar = MiscTypes.GetOutPort( 'OutChar' ) - #OMiscTypesOutShort = MiscTypes.GetOutPort( 'OutShort' ) - #OMiscTypesOutLong = MiscTypes.GetOutPort( 'OutLong' ) - #OMiscTypesOutFloat = MiscTypes.GetOutPort( 'OutFloat' ) - #OMiscTypesOutDouble = MiscTypes.GetOutPort( 'OutDouble' ) - return GraphConvertObjRefCheckNotCompatible - - -GraphConvertObjRefCheckNotCompatible = DefGraphConvertObjRefCheckNotCompatible() diff --git a/Superv/Python/GraphConvertShortCheck.py b/Superv/Python/GraphConvertShortCheck.py deleted file mode 100755 index 5b60fc7..0000000 --- a/Superv/Python/GraphConvertShortCheck.py +++ /dev/null @@ -1,86 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphConvertShortCheck -# -from SuperV import * -# Graph creation -GraphConvertShortCheck = Graph( 'GraphConvertShortCheck' ) -GraphConvertShortCheck.SetName( 'GraphConvertShortCheck' ) -GraphConvertShortCheck.SetAuthor( 'JR' ) -GraphConvertShortCheck.SetComment( 'Check conversions of Short' ) -GraphConvertShortCheck.Coords( 0 , 0 ) - -# Creation of Factory Nodes - -MiscTypes = GraphConvertShortCheck.FNode( 'TypesCheck' , 'TypesCheck' , 'MiscTypes' ) -MiscTypes.SetName( 'MiscTypes' ) -MiscTypes.SetAuthor( '' ) -MiscTypes.SetContainer( 'localhost/FactoryServer' ) -MiscTypes.SetComment( 'MiscTypes from TypesCheck' ) -MiscTypes.Coords( 284 , 28 ) - -# Creation of InLine Nodes -PyShort = [] -PyShort.append( 'def Short() : ' ) -PyShort.append( ' aShort = 32767 ' ) -PyShort.append( ' print type( aShort ),"aShort",aShort ' ) -PyShort.append( ' return aShort ' ) -PyShort.append( ' ' ) -Short = GraphConvertShortCheck.INode( 'Short' , PyShort ) -Short.OutPort( 'OutShort' , 'short' ) -Short.SetName( 'Short' ) -Short.SetAuthor( 'JR' ) -Short.SetComment( 'InLine Node' ) -Short.Coords( 14 , 114 ) - -# Creation of Links -ShortOutShort = Short.Port( 'OutShort' ) -MiscTypesInString = GraphConvertShortCheck.Link( ShortOutShort , MiscTypes.Port( 'InString' ) ) - -MiscTypesInBool = GraphConvertShortCheck.Link( ShortOutShort , MiscTypes.Port( 'InBool' ) ) - -MiscTypesInChar = GraphConvertShortCheck.Link( ShortOutShort , MiscTypes.Port( 'InChar' ) ) - -MiscTypesInShort = GraphConvertShortCheck.Link( ShortOutShort , MiscTypes.Port( 'InShort' ) ) - -MiscTypesInLong = GraphConvertShortCheck.Link( ShortOutShort , MiscTypes.Port( 'InLong' ) ) - -MiscTypesInFloat = GraphConvertShortCheck.Link( ShortOutShort , MiscTypes.Port( 'InFloat' ) ) - -MiscTypesInDouble = GraphConvertShortCheck.Link( ShortOutShort , MiscTypes.Port( 'InDouble' ) ) - -MiscTypesInObjRef = GraphConvertShortCheck.Link( ShortOutShort , MiscTypes.Port( 'InObjRef' ) ) - -# Creation of Output variables -MiscTypesOutString = MiscTypes.Port( 'OutString' ) -MiscTypesOutBool = MiscTypes.Port( 'OutBool' ) -MiscTypesOutChar = MiscTypes.Port( 'OutChar' ) -MiscTypesOutShort = MiscTypes.Port( 'OutShort' ) -MiscTypesOutLong = MiscTypes.Port( 'OutLong' ) -MiscTypesOutFloat = MiscTypes.Port( 'OutFloat' ) -MiscTypesOutDouble = MiscTypes.Port( 'OutDouble' ) -MiscTypesOutObjRef = MiscTypes.Port( 'OutObjRef' ) - -GraphConvertShortCheck.Run() -GraphConvertShortCheck.DoneW() -GraphConvertShortCheck.PrintPorts() diff --git a/Superv/Python/GraphConvertShortStringCheck.py b/Superv/Python/GraphConvertShortStringCheck.py deleted file mode 100755 index 8d5ec3c..0000000 --- a/Superv/Python/GraphConvertShortStringCheck.py +++ /dev/null @@ -1,85 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphConvertShortStringCheck -# -from SuperV import * -# Graph creation -GraphConvertShortStringCheck = Graph( 'GraphConvertShortStringCheck' ) -GraphConvertShortStringCheck.SetName( 'GraphConvertShortStringCheck' ) -GraphConvertShortStringCheck.SetAuthor( 'JR' ) -GraphConvertShortStringCheck.SetComment( 'Check conversions of String' ) -GraphConvertShortStringCheck.Coords( 0 , 0 ) - -# Creation of Factory Nodes - -MiscTypes = GraphConvertShortStringCheck.FNode( 'TypesCheck' , 'TypesCheck' , 'MiscTypes' ) -MiscTypes.SetName( 'MiscTypes' ) -MiscTypes.SetAuthor( '' ) -MiscTypes.SetContainer( 'localhost/FactoryServer' ) -MiscTypes.SetComment( 'MiscTypes from TypesCheck' ) -MiscTypes.Coords( 284 , 28 ) - -# Creation of InLine Nodes -PyShortString = [] -PyShortString.append( 'def ShortString() : ' ) -PyShortString.append( ' string = "32767" ' ) -PyShortString.append( ' return string ' ) -PyShortString.append( ' ' ) -ShortString = GraphConvertShortStringCheck.INode( 'ShortString' , PyShortString ) -ShortString.OutPort( 'OutString' , 'string' ) -ShortString.SetName( 'ShortString' ) -ShortString.SetAuthor( 'JR' ) -ShortString.SetComment( 'InLine Node' ) -ShortString.Coords( 14 , 114 ) - -# Creation of Links -ShortStringOutString = ShortString.Port( 'OutString' ) -MiscTypesInString = GraphConvertShortStringCheck.Link( ShortStringOutString , MiscTypes.Port( 'InString' ) ) - -MiscTypesInBool = GraphConvertShortStringCheck.Link( ShortStringOutString , MiscTypes.Port( 'InBool' ) ) - -MiscTypesInChar = GraphConvertShortStringCheck.Link( ShortStringOutString , MiscTypes.Port( 'InChar' ) ) - -MiscTypesInShort = GraphConvertShortStringCheck.Link( ShortStringOutString , MiscTypes.Port( 'InShort' ) ) - -MiscTypesInLong = GraphConvertShortStringCheck.Link( ShortStringOutString , MiscTypes.Port( 'InLong' ) ) - -MiscTypesInFloat = GraphConvertShortStringCheck.Link( ShortStringOutString , MiscTypes.Port( 'InFloat' ) ) - -MiscTypesInDouble = GraphConvertShortStringCheck.Link( ShortStringOutString , MiscTypes.Port( 'InDouble' ) ) - -MiscTypesInObjRef = GraphConvertShortStringCheck.Link( ShortStringOutString , MiscTypes.Port( 'InObjRef' ) ) - -# Creation of Output variables -MiscTypesOutString = MiscTypes.Port( 'OutString' ) -MiscTypesOutBool = MiscTypes.Port( 'OutBool' ) -MiscTypesOutChar = MiscTypes.Port( 'OutChar' ) -MiscTypesOutShort = MiscTypes.Port( 'OutShort' ) -MiscTypesOutLong = MiscTypes.Port( 'OutLong' ) -MiscTypesOutFloat = MiscTypes.Port( 'OutFloat' ) -MiscTypesOutDouble = MiscTypes.Port( 'OutDouble' ) -MiscTypesOutObjRef = MiscTypes.Port( 'OutObjRef' ) - -GraphConvertShortStringCheck.Run() -GraphConvertShortStringCheck.DoneW() -GraphConvertShortStringCheck.PrintPorts() diff --git a/Superv/Python/GraphConvertStringStringCheck.py b/Superv/Python/GraphConvertStringStringCheck.py deleted file mode 100755 index ee278dc..0000000 --- a/Superv/Python/GraphConvertStringStringCheck.py +++ /dev/null @@ -1,85 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphConvertStringStringCheck -# -from SuperV import * -# Graph creation -GraphConvertStringStringCheck = Graph( 'GraphConvertStringStringCheck' ) -GraphConvertStringStringCheck.SetName( 'GraphConvertStringStringCheck' ) -GraphConvertStringStringCheck.SetAuthor( 'JR' ) -GraphConvertStringStringCheck.SetComment( 'Check conversions of String' ) -GraphConvertStringStringCheck.Coords( 0 , 0 ) - -# Creation of Factory Nodes - -MiscTypes = GraphConvertStringStringCheck.FNode( 'TypesCheck' , 'TypesCheck' , 'MiscTypes' ) -MiscTypes.SetName( 'MiscTypes' ) -MiscTypes.SetAuthor( '' ) -MiscTypes.SetContainer( 'localhost/FactoryServer' ) -MiscTypes.SetComment( 'MiscTypes from TypesCheck' ) -MiscTypes.Coords( 284 , 28 ) - -# Creation of InLine Nodes -PyStringString = [] -PyStringString.append( 'def StringString() : ' ) -PyStringString.append( ' string = "The sentence that you are reading cannot be demonstrated" ' ) -PyStringString.append( ' return string ' ) -PyStringString.append( '' ) -StringString = GraphConvertStringStringCheck.INode( 'StringString' , PyStringString ) -StringString.OutPort( 'OutString' , 'string' ) -StringString.SetName( 'StringString' ) -StringString.SetAuthor( 'JR' ) -StringString.SetComment( 'InLine Node' ) -StringString.Coords( 14 , 114 ) - -# Creation of Links -StringStringOutString = StringString.Port( 'OutString' ) -MiscTypesInString = GraphConvertStringStringCheck.Link( StringStringOutString , MiscTypes.Port( 'InString' ) ) - -MiscTypesInBool = GraphConvertStringStringCheck.Link( StringStringOutString , MiscTypes.Port( 'InBool' ) ) - -MiscTypesInChar = GraphConvertStringStringCheck.Link( StringStringOutString , MiscTypes.Port( 'InChar' ) ) - -MiscTypesInShort = GraphConvertStringStringCheck.Link( StringStringOutString , MiscTypes.Port( 'InShort' ) ) - -MiscTypesInLong = GraphConvertStringStringCheck.Link( StringStringOutString , MiscTypes.Port( 'InLong' ) ) - -MiscTypesInFloat = GraphConvertStringStringCheck.Link( StringStringOutString , MiscTypes.Port( 'InFloat' ) ) - -MiscTypesInDouble = GraphConvertStringStringCheck.Link( StringStringOutString , MiscTypes.Port( 'InDouble' ) ) - -MiscTypesInObjRef = GraphConvertStringStringCheck.Link( StringStringOutString , MiscTypes.Port( 'InObjRef' ) ) - -# Creation of Output variables -MiscTypesOutString = MiscTypes.Port( 'OutString' ) -MiscTypesOutBool = MiscTypes.Port( 'OutBool' ) -MiscTypesOutChar = MiscTypes.Port( 'OutChar' ) -MiscTypesOutShort = MiscTypes.Port( 'OutShort' ) -MiscTypesOutLong = MiscTypes.Port( 'OutLong' ) -MiscTypesOutFloat = MiscTypes.Port( 'OutFloat' ) -MiscTypesOutDouble = MiscTypes.Port( 'OutDouble' ) -MiscTypesOutObjRef = MiscTypes.Port( 'OutObjRef' ) - -GraphConvertStringStringCheck.Run() -GraphConvertStringStringCheck.DoneW() -GraphConvertStringStringCheck.PrintPorts() diff --git a/Superv/Python/GraphCpuUsed.py b/Superv/Python/GraphCpuUsed.py deleted file mode 100755 index 13d8f5a..0000000 --- a/Superv/Python/GraphCpuUsed.py +++ /dev/null @@ -1,172 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphCpuUsed -# -from SuperV import * -import time -# Graph creation -GraphCpuUsed = Graph( 'GraphCpuUsed' ) -GraphCpuUsed.SetName( 'GraphCpuUsed' ) -GraphCpuUsed.SetAuthor( '' ) -GraphCpuUsed.SetComment( '' ) -GraphCpuUsed.Coords( 0 , 0 ) - -# Creation of Factory Nodes - -sigma = GraphCpuUsed.FNode( 'FactorialComponent' , 'FactorialComponent' , 'sigma' ) -sigma.SetName( 'sigma' ) -sigma.SetAuthor( 'JR' ) -sigma.SetContainer( 'localhost/FactoryServerPy' ) -sigma.SetComment( 'sigma from FactorialComponent' ) -sigma.Coords( 214 , 172 ) - -Sigma = GraphCpuUsed.FNode( 'AddComponent' , 'AddComponent' , 'Sigma' ) -Sigma.SetName( 'Sigma' ) -Sigma.SetAuthor( '' ) -Sigma.SetContainer( 'localhost/FactoryServer' ) -Sigma.SetComment( 'Sigma from AddComponent' ) -Sigma.Coords( 418 , 21 ) - -# Creation of InLine Nodes -PyAdd = [] -PyAdd.append( 'from time import * ' ) -PyAdd.append( 'def Add(a,b) : ' ) -PyAdd.append( ' print "Add will wait 5 seconds" ' ) -PyAdd.append( ' d = dir() ' ) -PyAdd.append( ' print "Add",d ' ) -PyAdd.append( ' d = dir(sleep) ' ) -PyAdd.append( ' print "Add",d ' ) -PyAdd.append( ' sleep(5) ' ) -PyAdd.append( ' print "Add waited" ' ) -PyAdd.append( ' n = 0 ' ) -PyAdd.append( ' while n < 10000 : ' ) -PyAdd.append( ' i = 0 ' ) -PyAdd.append( ' s = 0 ' ) -PyAdd.append( ' while i <= b : ' ) -PyAdd.append( ' s = s + i ' ) -PyAdd.append( ' i = i + 1 ' ) -PyAdd.append( ' n = n + 1 ' ) -PyAdd.append( ' return s ' ) -PyAdd.append( '' ) -Add = GraphCpuUsed.INode( 'Add' , PyAdd ) -Add.InPort( 'a' , 'long' ) -Add.InPort( 'b' , 'long' ) -Add.OutPort( 'f' , 'long' ) -Add.SetName( 'Add' ) -Add.SetAuthor( '' ) -Add.SetComment( 'Python function' ) -Add.Coords( 214 , 0 ) - -PySub = [] -PySub.append( 'def Sub(a,b) : ' ) -PySub.append( ' return a-b ' ) -PySub.append( '' ) -Sub = GraphCpuUsed.INode( 'Sub' , PySub ) -Sub.InPort( 'a' , 'long' ) -Sub.InPort( 'b' , 'long' ) -Sub.OutPort( 'f' , 'long' ) -Sub.SetName( 'Sub' ) -Sub.SetAuthor( '' ) -Sub.SetComment( 'Python function' ) -Sub.Coords( 0 , 139 ) - -PyCompare = [] -PyCompare.append( 'def Compare( Add , sigma , Sigma ) : ' ) -PyCompare.append( ' Result = "Good" ' ) -PyCompare.append( ' if Add != sigma : ' ) -PyCompare.append( ' Result = "Bad" ' ) -PyCompare.append( ' if Add != Sigma : ' ) -PyCompare.append( ' Result = "Bad" ' ) -PyCompare.append( ' return Result ' ) -PyCompare.append( '' ) -Compare = GraphCpuUsed.INode( 'Compare' , PyCompare ) -Compare.InPort( 'Add' , 'long' ) -Compare.InPort( 'Sigma' , 'long' ) -Compare.InPort( 'sigma' , 'long' ) -Compare.OutPort( 'Result' , 'string' ) -Compare.SetName( 'Compare' ) -Compare.SetAuthor( '' ) -Compare.SetComment( 'Compute Node' ) -Compare.Coords( 419 , 184 ) - -# Creation of Links -Addf = Add.Port( 'f' ) -CompareAdd = GraphCpuUsed.Link( Addf , Compare.Port( 'Add' ) ) -CompareAdd.AddCoord( 1 , 411 , 265 ) -CompareAdd.AddCoord( 2 , 411 , 169 ) -CompareAdd.AddCoord( 3 , 617 , 169 ) -CompareAdd.AddCoord( 4 , 618 , 8 ) -CompareAdd.AddCoord( 5 , 401 , 8 ) -CompareAdd.AddCoord( 6 , 400 , 80 ) - -Subf = Sub.Port( 'f' ) -Addb = GraphCpuUsed.Link( Subf , Add.Port( 'b' ) ) -Addb.AddCoord( 1 , 189 , 108 ) -Addb.AddCoord( 2 , 191 , 220 ) - -sigman = GraphCpuUsed.Link( Subf , sigma.Port( 'n' ) ) -sigman.AddCoord( 1 , 206 , 254 ) -sigman.AddCoord( 2 , 206 , 220 ) - -Sigman = GraphCpuUsed.Link( Subf , Sigma.Port( 'n' ) ) -Sigman.AddCoord( 1 , 389 , 101 ) -Sigman.AddCoord( 2 , 390 , 160 ) -Sigman.AddCoord( 3 , 190 , 161 ) -Sigman.AddCoord( 4 , 190 , 220 ) - -sigmaf = sigma.Port( 'f' ) -Comparesigma = GraphCpuUsed.Link( sigmaf , Compare.Port( 'sigma' ) ) -Comparesigma.AddCoord( 1 , 386 , 323 ) -Comparesigma.AddCoord( 2 , 385 , 253 ) - -Sigmaf = Sigma.Port( 'f' ) -CompareSigma = GraphCpuUsed.Link( Sigmaf , Compare.Port( 'Sigma' ) ) -CompareSigma.AddCoord( 1 , 400 , 295 ) -CompareSigma.AddCoord( 2 , 400 , 153 ) -CompareSigma.AddCoord( 3 , 595 , 153 ) -CompareSigma.AddCoord( 4 , 595 , 102 ) - -# Creation of Input datas -Adda = Add.Input( 'a' , 1) -Suba = Sub.Input( 'a' , 1000) -Subb = Sub.Input( 'b' , 1) - -# Creation of Output variables -CompareResult = Compare.Port( 'Result' ) - -GraphCpuUsed.Run() -while GraphCpuUsed.IsDone() == 0 : - time.sleep(1) - print "sigma",sigma.CpuUsed(),"seconds" - print "Sigma",Sigma.CpuUsed(),"seconds" - print "Add",Add.CpuUsed(),"seconds" - print "Sub",Sub.CpuUsed(),"seconds" - print "Compare",Compare.CpuUsed(),"seconds" - -print GraphCpuUsed.State() -GraphCpuUsed.PrintPorts() -print "sigma",sigma.CpuUsed(),"seconds" -print "Sigma",Sigma.CpuUsed(),"seconds" -print "Add",Add.CpuUsed(),"seconds" -print "Sub",Sub.CpuUsed(),"seconds" -print "Compare",Compare.CpuUsed(),"seconds" diff --git a/Superv/Python/GraphEditGraphSwitchs.py b/Superv/Python/GraphEditGraphSwitchs.py deleted file mode 100644 index de1054d..0000000 --- a/Superv/Python/GraphEditGraphSwitchs.py +++ /dev/null @@ -1,92 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# -from GraphSwitchs import * - -GraphSwitchs.SetName('GraphEditSwitchs') -GraphEditSwitchs = GraphSwitchs - -exec GraphEditSwitchs.ListNodes() -InitLoopSwitch.destroy() - -aPyFile = os.getenv('DATA_DIR') + '/Superv/Python/GraphEditGraphSwitchs_1.py' -GraphEditSwitchs.Export( aPyFile ) - -InitLoop.SetName('InitLoopSwitch') -InitLoopSwitch = InitLoop -EndOfInitLoop.SetName('EndOfInitLoopSwitch') -EndOfInitLoopSwitch = EndOfInitLoop - -exec InitLoopSwitch.ListPorts() -exec Switch.ListPorts() - -GraphEditSwitchs.Link( OInitLoopSwitchIndex , ISwitcha ) - -exec EndOfInitLoopSwitch.ListPorts() -IEndOfInitLoopSwitchIndex.Link().destroy() - -aPyFile = os.getenv('DATA_DIR') + '/Superv/Python/GraphEditGraphSwitchs_2.py' -GraphEditSwitchs.Export( aPyFile ) - -exec EndOfSwitch.ListPorts() -GraphEditSwitchs.Link(OEndOfSwitcha,IEndOfInitLoopSwitchIndex) - -exec EndSwitch.ListPorts() -GraphEditSwitchs.Link(OEndSwitchGate,IEndOfInitLoopSwitchGate) - -aPyFile = os.getenv('DATA_DIR') + '/Superv/Python/GraphEditGraphSwitchs_3.py' -GraphEditSwitchs.Export( aPyFile ) - -IsOdd_1.SetName('IsEven') -IsEven = IsOdd_1 - -exec IsEven.ListPorts() -IIsEvena.Link().destroy() - -IIsEvenGate.Link().destroy() - -exec Switch_1.ListPorts() -GraphEditSwitchs.Link(OSwitch_1Even,IIsEvenGate) - -aPyFile = os.getenv('DATA_DIR') + '/Superv/Python/GraphEditGraphSwitchs_4.py' -GraphEditSwitchs.Export( aPyFile ) - -GraphEditSwitchs.PrintLinks() - -L = GraphEditSwitchs.Link(OSwitch_1Even,IEndSwitchDefault) -L.destroy() - -aPyFile = os.getenv('DATA_DIR') + '/Superv/Python/GraphEditGraphSwitchs_5.py' -GraphEditSwitchs.Export( aPyFile ) - -GraphEditSwitchs.Link(OSwitch_1Default,IEndSwitchDefault) - -GraphEditSwitchs.Link(OSwitch_1a,IIsEvena) - -GraphEditSwitchs.Export( aPyFile) - -Switch_1.SetName('') - -from SuperV import * - -aPyFile = os.getenv('DATA_DIR') + '/Superv/Python/GraphEditGraphSwitchs_3.py' -GraphEditSwitchs = Graph( aPyFile ) - diff --git a/Superv/Python/GraphEditGraphSwitchs_1.py b/Superv/Python/GraphEditGraphSwitchs_1.py deleted file mode 100644 index 266b5a5..0000000 --- a/Superv/Python/GraphEditGraphSwitchs_1.py +++ /dev/null @@ -1,225 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphEditSwitchs -# -from SuperV import * - -# Graph creation of GraphEditSwitchs -def DefGraphEditSwitchs() : - GraphEditSwitchs = Graph( 'GraphEditSwitchs' ) - GraphEditSwitchs.SetName( 'GraphEditSwitchs' ) - GraphEditSwitchs.SetAuthor( '' ) - GraphEditSwitchs.SetComment( '' ) - GraphEditSwitchs.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 (GraphSwitchs)" ' ) - PyIsOdd.append( ' sleep( 1 ) ' ) - PyIsOdd.append( ' return a ' ) - IsOdd = GraphEditSwitchs.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' ) - - PyIsOdd_1 = [] - PyIsOdd_1.append( 'from time import * ' ) - PyIsOdd_1.append( 'def IsOdd(a) : ' ) - PyIsOdd_1.append( ' print a,"IsOdd_1 (GraphSwitchs)" ' ) - PyIsOdd_1.append( ' sleep( 1 ) ' ) - PyIsOdd_1.append( ' return a ' ) - IsOdd_1 = GraphEditSwitchs.INode( 'IsOdd' , PyIsOdd_1 ) - IsOdd_1.SetName( 'IsOdd_1' ) - IsOdd_1.SetAuthor( '' ) - IsOdd_1.SetComment( 'Python function' ) - IsOdd_1.Coords( 419 , 308 ) - IIsOdd_1a = IsOdd_1.InPort( 'a' , 'long' ) - IIsOdd_1Gate = IsOdd_1.GetInPort( 'Gate' ) - OIsOdd_1a = IsOdd_1.OutPort( 'a' , 'long' ) - OIsOdd_1Gate = IsOdd_1.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyInitLoop = [] - PyInitLoop.append( 'def InitLoop(Index,Min,Max) : ' ) - PyInitLoop.append( ' return Index,Min,Max ' ) - PyMoreInitLoop = [] - PyMoreInitLoop.append( 'def MoreLoop(Index,Min,Max) : ' ) - PyMoreInitLoop.append( ' if Index <= Max : ' ) - PyMoreInitLoop.append( ' DoLoop = 1 ' ) - PyMoreInitLoop.append( ' else : ' ) - PyMoreInitLoop.append( ' DoLoop = 0 ' ) - PyMoreInitLoop.append( ' return DoLoop,Index,Min,Max ' ) - PyNextInitLoop = [] - PyNextInitLoop.append( 'def NextLoop(Index,Min,Max) : ' ) - PyNextInitLoop.append( ' Index = Index + 1 ' ) - PyNextInitLoop.append( ' return Index,Min,Max ' ) - InitLoop,EndOfInitLoop = GraphEditSwitchs.LNode( 'InitLoop' , PyInitLoop , 'MoreLoop' , PyMoreInitLoop , 'NextLoop' , PyNextInitLoop ) - EndOfInitLoop.SetName( 'EndOfInitLoop' ) - EndOfInitLoop.SetAuthor( '' ) - EndOfInitLoop.SetComment( 'Compute Node' ) - EndOfInitLoop.Coords( 783 , 381 ) - PyEndOfInitLoop = [] - EndOfInitLoop.SetPyFunction( '' , PyEndOfInitLoop ) - IInitLoopDoLoop = InitLoop.GetInPort( 'DoLoop' ) - IInitLoopIndex = InitLoop.InPort( 'Index' , 'long' ) - IInitLoopMin = InitLoop.InPort( 'Min' , 'long' ) - IInitLoopMax = InitLoop.InPort( 'Max' , 'long' ) - IInitLoopGate = InitLoop.GetInPort( 'Gate' ) - OInitLoopDoLoop = InitLoop.GetOutPort( 'DoLoop' ) - OInitLoopIndex = InitLoop.GetOutPort( 'Index' ) - OInitLoopMin = InitLoop.GetOutPort( 'Min' ) - OInitLoopMax = InitLoop.GetOutPort( 'Max' ) - IEndOfInitLoopDoLoop = EndOfInitLoop.GetInPort( 'DoLoop' ) - IEndOfInitLoopIndex = EndOfInitLoop.GetInPort( 'Index' ) - IEndOfInitLoopMin = EndOfInitLoop.GetInPort( 'Min' ) - IEndOfInitLoopMax = EndOfInitLoop.GetInPort( 'Max' ) - IEndOfInitLoopGate = EndOfInitLoop.GetInPort( 'Gate' ) - OEndOfInitLoopDoLoop = EndOfInitLoop.GetOutPort( 'DoLoop' ) - OEndOfInitLoopGate = EndOfInitLoop.GetOutPort( 'Gate' ) - OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) - OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) - OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) - InitLoop.SetName( 'InitLoop' ) - InitLoop.SetAuthor( '' ) - InitLoop.SetComment( 'Compute Node' ) - InitLoop.Coords( 10 , 388 ) - - # Creation of Switch Nodes - PySwitch = [] - PySwitch.append( 'from time import * ' ) - PySwitch.append( 'def Switch(a) : ' ) - PySwitch.append( ' if ( a & 1 ) == 0 : ' ) - PySwitch.append( ' sleep(1) ' ) - PySwitch.append( ' return a & 1,1-(a&1),a ' ) - Switch,EndOfSwitch = GraphEditSwitchs.SNode( 'Switch' , PySwitch ) - EndOfSwitch.SetName( 'EndOfSwitch' ) - EndOfSwitch.SetAuthor( '' ) - EndOfSwitch.SetComment( 'Compute Node' ) - EndOfSwitch.Coords( 587 , 126 ) - PyEndOfSwitch = [] - EndOfSwitch.SetPyFunction( '' , 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( 186 , 130 ) - ISwitcha = Switch.InPort( 'a' , 'long' ) - ISwitchGate = Switch.GetInPort( 'Gate' ) - OSwitchOdd = Switch.OutPort( 'Odd' , 'long' ) - OSwitchEven = Switch.OutPort( 'Even' , 'int' ) - OSwitcha = Switch.OutPort( 'a' , 'int' ) - OSwitchDefault = Switch.GetOutPort( 'Default' ) - - PySwitch_1 = [] - PySwitch_1.append( 'from time import * ' ) - PySwitch_1.append( 'def Switch(a) : ' ) - PySwitch_1.append( ' if ( a & 1 ) == 0 : ' ) - PySwitch_1.append( ' sleep(1) ' ) - PySwitch_1.append( ' return a & 1,1-(a&1),a ' ) - Switch_1,EndSwitch = GraphEditSwitchs.SNode( 'Switch' , PySwitch_1 ) - EndSwitch.SetName( 'EndSwitch' ) - EndSwitch.SetAuthor( '' ) - EndSwitch.SetComment( 'Compute Node' ) - EndSwitch.Coords( 605 , 382 ) - PyEndSwitch = [] - EndSwitch.SetPyFunction( '' , PyEndSwitch ) - IEndSwitcha = EndSwitch.InPort( 'a' , 'long' ) - IEndSwitchDefault = EndSwitch.GetInPort( 'Default' ) - OEndSwitcha = EndSwitch.OutPort( 'a' , 'long' ) - OEndSwitchGate = EndSwitch.GetOutPort( 'Gate' ) - Switch_1.SetName( 'Switch_1' ) - Switch_1.SetAuthor( '' ) - Switch_1.SetComment( 'Compute Node' ) - Switch_1.Coords( 193 , 388 ) - ISwitch_1a = Switch_1.InPort( 'a' , 'long' ) - ISwitch_1Gate = Switch_1.GetInPort( 'Gate' ) - OSwitch_1Odd = Switch_1.OutPort( 'Odd' , 'long' ) - OSwitch_1Even = Switch_1.OutPort( 'Even' , 'int' ) - OSwitch_1a = Switch_1.OutPort( 'a' , 'int' ) - OSwitch_1Default = Switch_1.GetOutPort( 'Default' ) - - # Creation of Links - LIsOddaEndOfSwitcha = GraphEditSwitchs.Link( OIsOdda , IEndOfSwitcha ) - LIsOddaEndOfSwitcha.AddCoord( 1 , 573 , 160 ) - LIsOddaEndOfSwitcha.AddCoord( 2 , 572 , 130 ) - - LIsOdd_1aEndSwitcha = GraphEditSwitchs.Link( OIsOdd_1a , IEndSwitcha ) - LIsOdd_1aEndSwitcha.AddCoord( 1 , 599 , 416 ) - LIsOdd_1aEndSwitcha.AddCoord( 2 , 598 , 389 ) - - LInitLoopIndexSwitch_1a = GraphEditSwitchs.Link( OInitLoopIndex , ISwitch_1a ) - - LInitLoopMinEndOfInitLoopMin = GraphEditSwitchs.Link( OInitLoopMin , IEndOfInitLoopMin ) - - LInitLoopMaxEndOfInitLoopMax = GraphEditSwitchs.Link( OInitLoopMax , IEndOfInitLoopMax ) - - LSwitchOddIsOddGate = GraphEditSwitchs.Link( OSwitchOdd , IIsOddGate ) - - LSwitchaIsOdda = GraphEditSwitchs.Link( OSwitcha , IIsOdda ) - LSwitchaIsOdda.AddCoord( 1 , 365 , 129 ) - LSwitchaIsOdda.AddCoord( 2 , 365 , 222 ) - - LSwitchDefaultEndOfSwitchDefault = GraphEditSwitchs.Link( OSwitchDefault , IEndOfSwitchDefault ) - LSwitchDefaultEndOfSwitchDefault.AddCoord( 1 , 572 , 194 ) - LSwitchDefaultEndOfSwitchDefault.AddCoord( 2 , 571 , 257 ) - - LSwitch_1OddIsOdd_1Gate = GraphEditSwitchs.Link( OSwitch_1Odd , IIsOdd_1Gate ) - - LSwitch_1EvenEndSwitchDefault = GraphEditSwitchs.Link( OSwitch_1Even , IEndSwitchDefault ) - - LSwitch_1aIsOdd_1a = GraphEditSwitchs.Link( OSwitch_1a , IIsOdd_1a ) - LSwitch_1aIsOdd_1a.AddCoord( 1 , 379 , 387 ) - LSwitch_1aIsOdd_1a.AddCoord( 2 , 378 , 481 ) - - LEndSwitchaEndOfInitLoopIndex = GraphEditSwitchs.Link( OEndSwitcha , IEndOfInitLoopIndex ) - - # Input datas - IInitLoopIndex.Input( 0 ) - IInitLoopMin.Input( 0 ) - IInitLoopMax.Input( 20 ) - - # Input Ports of the graph - #ISwitcha = Switch.GetInPort( 'a' ) - - # Output Ports of the graph - #OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) - #OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) - #OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) - #OSwitchEven = Switch.GetOutPort( 'Even' ) - #OEndOfSwitcha = EndOfSwitch.GetOutPort( 'a' ) - return GraphEditSwitchs - - -GraphEditSwitchs = DefGraphEditSwitchs() diff --git a/Superv/Python/GraphEditGraphSwitchs_2.py b/Superv/Python/GraphEditGraphSwitchs_2.py deleted file mode 100644 index 4e45ec1..0000000 --- a/Superv/Python/GraphEditGraphSwitchs_2.py +++ /dev/null @@ -1,226 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphEditSwitchs -# -from SuperV import * - -# Graph creation of GraphEditSwitchs -def DefGraphEditSwitchs() : - GraphEditSwitchs = Graph( 'GraphEditSwitchs' ) - GraphEditSwitchs.SetName( 'GraphEditSwitchs' ) - GraphEditSwitchs.SetAuthor( '' ) - GraphEditSwitchs.SetComment( '' ) - GraphEditSwitchs.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 (GraphSwitchs)" ' ) - PyIsOdd.append( ' sleep( 1 ) ' ) - PyIsOdd.append( ' return a ' ) - IsOdd = GraphEditSwitchs.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' ) - - PyIsOdd_1 = [] - PyIsOdd_1.append( 'from time import * ' ) - PyIsOdd_1.append( 'def IsOdd(a) : ' ) - PyIsOdd_1.append( ' print a,"IsOdd_1 (GraphSwitchs)" ' ) - PyIsOdd_1.append( ' sleep( 1 ) ' ) - PyIsOdd_1.append( ' return a ' ) - IsOdd_1 = GraphEditSwitchs.INode( 'IsOdd' , PyIsOdd_1 ) - IsOdd_1.SetName( 'IsOdd_1' ) - IsOdd_1.SetAuthor( '' ) - IsOdd_1.SetComment( 'Python function' ) - IsOdd_1.Coords( 419 , 308 ) - IIsOdd_1a = IsOdd_1.InPort( 'a' , 'long' ) - IIsOdd_1Gate = IsOdd_1.GetInPort( 'Gate' ) - OIsOdd_1a = IsOdd_1.OutPort( 'a' , 'long' ) - OIsOdd_1Gate = IsOdd_1.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyInitLoop = [] - PyInitLoop.append( 'def InitLoop(Index,Min,Max) : ' ) - PyInitLoop.append( ' return Index,Min,Max ' ) - PyMoreInitLoop = [] - PyMoreInitLoop.append( 'def MoreLoop(Index,Min,Max) : ' ) - PyMoreInitLoop.append( ' if Index <= Max : ' ) - PyMoreInitLoop.append( ' DoLoop = 1 ' ) - PyMoreInitLoop.append( ' else : ' ) - PyMoreInitLoop.append( ' DoLoop = 0 ' ) - PyMoreInitLoop.append( ' return DoLoop,Index,Min,Max ' ) - PyNextInitLoop = [] - PyNextInitLoop.append( 'def NextLoop(Index,Min,Max) : ' ) - PyNextInitLoop.append( ' Index = Index + 1 ' ) - PyNextInitLoop.append( ' return Index,Min,Max ' ) - InitLoop,EndOfInitLoop = GraphEditSwitchs.LNode( 'InitLoop' , PyInitLoop , 'MoreLoop' , PyMoreInitLoop , 'NextLoop' , PyNextInitLoop ) - EndOfInitLoop.SetName( 'EndOfInitLoop' ) - EndOfInitLoop.SetAuthor( '' ) - EndOfInitLoop.SetComment( 'Compute Node' ) - EndOfInitLoop.Coords( 783 , 381 ) - PyEndOfInitLoop = [] - EndOfInitLoop.SetPyFunction( '' , PyEndOfInitLoop ) - IInitLoopDoLoop = InitLoop.GetInPort( 'DoLoop' ) - IInitLoopIndex = InitLoop.InPort( 'Index' , 'long' ) - IInitLoopMin = InitLoop.InPort( 'Min' , 'long' ) - IInitLoopMax = InitLoop.InPort( 'Max' , 'long' ) - IInitLoopGate = InitLoop.GetInPort( 'Gate' ) - OInitLoopDoLoop = InitLoop.GetOutPort( 'DoLoop' ) - OInitLoopIndex = InitLoop.GetOutPort( 'Index' ) - OInitLoopMin = InitLoop.GetOutPort( 'Min' ) - OInitLoopMax = InitLoop.GetOutPort( 'Max' ) - IEndOfInitLoopDoLoop = EndOfInitLoop.GetInPort( 'DoLoop' ) - IEndOfInitLoopIndex = EndOfInitLoop.GetInPort( 'Index' ) - IEndOfInitLoopMin = EndOfInitLoop.GetInPort( 'Min' ) - IEndOfInitLoopMax = EndOfInitLoop.GetInPort( 'Max' ) - IEndOfInitLoopGate = EndOfInitLoop.GetInPort( 'Gate' ) - OEndOfInitLoopDoLoop = EndOfInitLoop.GetOutPort( 'DoLoop' ) - OEndOfInitLoopGate = EndOfInitLoop.GetOutPort( 'Gate' ) - OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) - OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) - OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) - InitLoop.SetName( 'InitLoop' ) - InitLoop.SetAuthor( '' ) - InitLoop.SetComment( 'Compute Node' ) - InitLoop.Coords( 10 , 388 ) - - # Creation of Switch Nodes - PySwitch = [] - PySwitch.append( 'from time import * ' ) - PySwitch.append( 'def Switch(a) : ' ) - PySwitch.append( ' if ( a & 1 ) == 0 : ' ) - PySwitch.append( ' sleep(1) ' ) - PySwitch.append( ' return a & 1,1-(a&1),a ' ) - Switch,EndOfSwitch = GraphEditSwitchs.SNode( 'Switch' , PySwitch ) - EndOfSwitch.SetName( 'EndOfSwitch' ) - EndOfSwitch.SetAuthor( '' ) - EndOfSwitch.SetComment( 'Compute Node' ) - EndOfSwitch.Coords( 587 , 126 ) - PyEndOfSwitch = [] - EndOfSwitch.SetPyFunction( '' , 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( 186 , 130 ) - ISwitcha = Switch.InPort( 'a' , 'long' ) - ISwitchGate = Switch.GetInPort( 'Gate' ) - OSwitchOdd = Switch.OutPort( 'Odd' , 'long' ) - OSwitchEven = Switch.OutPort( 'Even' , 'int' ) - OSwitcha = Switch.OutPort( 'a' , 'int' ) - OSwitchDefault = Switch.GetOutPort( 'Default' ) - - PySwitch_1 = [] - PySwitch_1.append( 'from time import * ' ) - PySwitch_1.append( 'def Switch(a) : ' ) - PySwitch_1.append( ' if ( a & 1 ) == 0 : ' ) - PySwitch_1.append( ' sleep(1) ' ) - PySwitch_1.append( ' return a & 1,1-(a&1),a ' ) - Switch_1,EndSwitch = GraphEditSwitchs.SNode( 'Switch' , PySwitch_1 ) - EndSwitch.SetName( 'EndSwitch' ) - EndSwitch.SetAuthor( '' ) - EndSwitch.SetComment( 'Compute Node' ) - EndSwitch.Coords( 605 , 382 ) - PyEndSwitch = [] - EndSwitch.SetPyFunction( '' , PyEndSwitch ) - IEndSwitcha = EndSwitch.InPort( 'a' , 'long' ) - IEndSwitchDefault = EndSwitch.GetInPort( 'Default' ) - OEndSwitcha = EndSwitch.OutPort( 'a' , 'long' ) - OEndSwitchGate = EndSwitch.GetOutPort( 'Gate' ) - Switch_1.SetName( 'Switch_1' ) - Switch_1.SetAuthor( '' ) - Switch_1.SetComment( 'Compute Node' ) - Switch_1.Coords( 193 , 388 ) - ISwitch_1a = Switch_1.InPort( 'a' , 'long' ) - ISwitch_1Gate = Switch_1.GetInPort( 'Gate' ) - OSwitch_1Odd = Switch_1.OutPort( 'Odd' , 'long' ) - OSwitch_1Even = Switch_1.OutPort( 'Even' , 'int' ) - OSwitch_1a = Switch_1.OutPort( 'a' , 'int' ) - OSwitch_1Default = Switch_1.GetOutPort( 'Default' ) - - # Creation of Links - LIsOddaEndOfSwitcha = GraphEditSwitchs.Link( OIsOdda , IEndOfSwitcha ) - LIsOddaEndOfSwitcha.AddCoord( 1 , 573 , 160 ) - LIsOddaEndOfSwitcha.AddCoord( 2 , 572 , 130 ) - - LIsOdd_1aEndSwitcha = GraphEditSwitchs.Link( OIsOdd_1a , IEndSwitcha ) - LIsOdd_1aEndSwitcha.AddCoord( 1 , 599 , 416 ) - LIsOdd_1aEndSwitcha.AddCoord( 2 , 598 , 389 ) - - LInitLoopIndexSwitch_1a = GraphEditSwitchs.Link( OInitLoopIndex , ISwitch_1a ) - - LInitLoopIndexSwitcha = GraphEditSwitchs.Link( OInitLoopIndex , ISwitcha ) - - LInitLoopMinEndOfInitLoopMin = GraphEditSwitchs.Link( OInitLoopMin , IEndOfInitLoopMin ) - - LInitLoopMaxEndOfInitLoopMax = GraphEditSwitchs.Link( OInitLoopMax , IEndOfInitLoopMax ) - - LSwitchOddIsOddGate = GraphEditSwitchs.Link( OSwitchOdd , IIsOddGate ) - - LSwitchaIsOdda = GraphEditSwitchs.Link( OSwitcha , IIsOdda ) - LSwitchaIsOdda.AddCoord( 1 , 365 , 129 ) - LSwitchaIsOdda.AddCoord( 2 , 365 , 222 ) - - LSwitchDefaultEndOfSwitchDefault = GraphEditSwitchs.Link( OSwitchDefault , IEndOfSwitchDefault ) - LSwitchDefaultEndOfSwitchDefault.AddCoord( 1 , 572 , 194 ) - LSwitchDefaultEndOfSwitchDefault.AddCoord( 2 , 571 , 257 ) - - LSwitch_1OddIsOdd_1Gate = GraphEditSwitchs.Link( OSwitch_1Odd , IIsOdd_1Gate ) - - LSwitch_1EvenEndSwitchDefault = GraphEditSwitchs.Link( OSwitch_1Even , IEndSwitchDefault ) - - LSwitch_1aIsOdd_1a = GraphEditSwitchs.Link( OSwitch_1a , IIsOdd_1a ) - LSwitch_1aIsOdd_1a.AddCoord( 1 , 379 , 387 ) - LSwitch_1aIsOdd_1a.AddCoord( 2 , 378 , 481 ) - - # Input datas - IInitLoopIndex.Input( 0 ) - IInitLoopMin.Input( 0 ) - IInitLoopMax.Input( 20 ) - - # Input Ports of the graph - #IEndOfInitLoopIndex = EndOfInitLoop.GetInPort( 'Index' ) - - # Output Ports of the graph - #OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) - #OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) - #OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) - #OSwitchEven = Switch.GetOutPort( 'Even' ) - #OEndOfSwitcha = EndOfSwitch.GetOutPort( 'a' ) - #OEndSwitcha = EndSwitch.GetOutPort( 'a' ) - return GraphEditSwitchs - - -GraphEditSwitchs = DefGraphEditSwitchs() diff --git a/Superv/Python/GraphEditGraphSwitchs_3.py b/Superv/Python/GraphEditGraphSwitchs_3.py deleted file mode 100644 index da5b188..0000000 --- a/Superv/Python/GraphEditGraphSwitchs_3.py +++ /dev/null @@ -1,226 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphEditSwitchs -# -from SuperV import * - -# Graph creation of GraphEditSwitchs -def DefGraphEditSwitchs() : - GraphEditSwitchs = Graph( 'GraphEditSwitchs' ) - GraphEditSwitchs.SetName( 'GraphEditSwitchs' ) - GraphEditSwitchs.SetAuthor( '' ) - GraphEditSwitchs.SetComment( '' ) - GraphEditSwitchs.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 (GraphSwitchs)" ' ) - PyIsOdd.append( ' sleep( 1 ) ' ) - PyIsOdd.append( ' return a ' ) - IsOdd = GraphEditSwitchs.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' ) - - PyIsOdd_1 = [] - PyIsOdd_1.append( 'from time import * ' ) - PyIsOdd_1.append( 'def IsOdd(a) : ' ) - PyIsOdd_1.append( ' print a,"IsOdd_1 (GraphSwitchs)" ' ) - PyIsOdd_1.append( ' sleep( 1 ) ' ) - PyIsOdd_1.append( ' return a ' ) - IsOdd_1 = GraphEditSwitchs.INode( 'IsOdd' , PyIsOdd_1 ) - IsOdd_1.SetName( 'IsOdd_1' ) - IsOdd_1.SetAuthor( '' ) - IsOdd_1.SetComment( 'Python function' ) - IsOdd_1.Coords( 419 , 308 ) - IIsOdd_1a = IsOdd_1.InPort( 'a' , 'long' ) - IIsOdd_1Gate = IsOdd_1.GetInPort( 'Gate' ) - OIsOdd_1a = IsOdd_1.OutPort( 'a' , 'long' ) - OIsOdd_1Gate = IsOdd_1.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyInitLoop = [] - PyInitLoop.append( 'def InitLoop(Index,Min,Max) : ' ) - PyInitLoop.append( ' return Index,Min,Max ' ) - PyMoreInitLoop = [] - PyMoreInitLoop.append( 'def MoreLoop(Index,Min,Max) : ' ) - PyMoreInitLoop.append( ' if Index <= Max : ' ) - PyMoreInitLoop.append( ' DoLoop = 1 ' ) - PyMoreInitLoop.append( ' else : ' ) - PyMoreInitLoop.append( ' DoLoop = 0 ' ) - PyMoreInitLoop.append( ' return DoLoop,Index,Min,Max ' ) - PyNextInitLoop = [] - PyNextInitLoop.append( 'def NextLoop(Index,Min,Max) : ' ) - PyNextInitLoop.append( ' Index = Index + 1 ' ) - PyNextInitLoop.append( ' return Index,Min,Max ' ) - InitLoop,EndOfInitLoop = GraphEditSwitchs.LNode( 'InitLoop' , PyInitLoop , 'MoreLoop' , PyMoreInitLoop , 'NextLoop' , PyNextInitLoop ) - EndOfInitLoop.SetName( 'EndOfInitLoop' ) - EndOfInitLoop.SetAuthor( '' ) - EndOfInitLoop.SetComment( 'Compute Node' ) - EndOfInitLoop.Coords( 783 , 381 ) - PyEndOfInitLoop = [] - EndOfInitLoop.SetPyFunction( '' , PyEndOfInitLoop ) - IInitLoopDoLoop = InitLoop.GetInPort( 'DoLoop' ) - IInitLoopIndex = InitLoop.InPort( 'Index' , 'long' ) - IInitLoopMin = InitLoop.InPort( 'Min' , 'long' ) - IInitLoopMax = InitLoop.InPort( 'Max' , 'long' ) - IInitLoopGate = InitLoop.GetInPort( 'Gate' ) - OInitLoopDoLoop = InitLoop.GetOutPort( 'DoLoop' ) - OInitLoopIndex = InitLoop.GetOutPort( 'Index' ) - OInitLoopMin = InitLoop.GetOutPort( 'Min' ) - OInitLoopMax = InitLoop.GetOutPort( 'Max' ) - IEndOfInitLoopDoLoop = EndOfInitLoop.GetInPort( 'DoLoop' ) - IEndOfInitLoopIndex = EndOfInitLoop.GetInPort( 'Index' ) - IEndOfInitLoopMin = EndOfInitLoop.GetInPort( 'Min' ) - IEndOfInitLoopMax = EndOfInitLoop.GetInPort( 'Max' ) - IEndOfInitLoopGate = EndOfInitLoop.GetInPort( 'Gate' ) - OEndOfInitLoopDoLoop = EndOfInitLoop.GetOutPort( 'DoLoop' ) - OEndOfInitLoopGate = EndOfInitLoop.GetOutPort( 'Gate' ) - OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) - OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) - OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) - InitLoop.SetName( 'InitLoop' ) - InitLoop.SetAuthor( '' ) - InitLoop.SetComment( 'Compute Node' ) - InitLoop.Coords( 10 , 388 ) - - # Creation of Switch Nodes - PySwitch = [] - PySwitch.append( 'from time import * ' ) - PySwitch.append( 'def Switch(a) : ' ) - PySwitch.append( ' if ( a & 1 ) == 0 : ' ) - PySwitch.append( ' sleep(1) ' ) - PySwitch.append( ' return a & 1,1-(a&1),a ' ) - Switch,EndOfSwitch = GraphEditSwitchs.SNode( 'Switch' , PySwitch ) - EndOfSwitch.SetName( 'EndOfSwitch' ) - EndOfSwitch.SetAuthor( '' ) - EndOfSwitch.SetComment( 'Compute Node' ) - EndOfSwitch.Coords( 587 , 126 ) - PyEndOfSwitch = [] - EndOfSwitch.SetPyFunction( '' , 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( 186 , 130 ) - ISwitcha = Switch.InPort( 'a' , 'long' ) - ISwitchGate = Switch.GetInPort( 'Gate' ) - OSwitchOdd = Switch.OutPort( 'Odd' , 'long' ) - OSwitchEven = Switch.OutPort( 'Even' , 'int' ) - OSwitcha = Switch.OutPort( 'a' , 'int' ) - OSwitchDefault = Switch.GetOutPort( 'Default' ) - - PySwitch_1 = [] - PySwitch_1.append( 'from time import * ' ) - PySwitch_1.append( 'def Switch(a) : ' ) - PySwitch_1.append( ' if ( a & 1 ) == 0 : ' ) - PySwitch_1.append( ' sleep(1) ' ) - PySwitch_1.append( ' return a & 1,1-(a&1),a ' ) - Switch_1,EndSwitch = GraphEditSwitchs.SNode( 'Switch' , PySwitch_1 ) - EndSwitch.SetName( 'EndSwitch' ) - EndSwitch.SetAuthor( '' ) - EndSwitch.SetComment( 'Compute Node' ) - EndSwitch.Coords( 605 , 382 ) - PyEndSwitch = [] - EndSwitch.SetPyFunction( '' , PyEndSwitch ) - IEndSwitcha = EndSwitch.InPort( 'a' , 'long' ) - IEndSwitchDefault = EndSwitch.GetInPort( 'Default' ) - OEndSwitcha = EndSwitch.OutPort( 'a' , 'long' ) - OEndSwitchGate = EndSwitch.GetOutPort( 'Gate' ) - Switch_1.SetName( 'Switch_1' ) - Switch_1.SetAuthor( '' ) - Switch_1.SetComment( 'Compute Node' ) - Switch_1.Coords( 193 , 388 ) - ISwitch_1a = Switch_1.InPort( 'a' , 'long' ) - ISwitch_1Gate = Switch_1.GetInPort( 'Gate' ) - OSwitch_1Odd = Switch_1.OutPort( 'Odd' , 'long' ) - OSwitch_1Even = Switch_1.OutPort( 'Even' , 'int' ) - OSwitch_1a = Switch_1.OutPort( 'a' , 'int' ) - OSwitch_1Default = Switch_1.GetOutPort( 'Default' ) - - # Creation of Links - LIsOddaEndOfSwitcha = GraphEditSwitchs.Link( OIsOdda , IEndOfSwitcha ) - LIsOddaEndOfSwitcha.AddCoord( 1 , 573 , 160 ) - LIsOddaEndOfSwitcha.AddCoord( 2 , 572 , 130 ) - - LIsOdd_1aEndSwitcha = GraphEditSwitchs.Link( OIsOdd_1a , IEndSwitcha ) - LIsOdd_1aEndSwitcha.AddCoord( 1 , 599 , 416 ) - LIsOdd_1aEndSwitcha.AddCoord( 2 , 598 , 389 ) - - LInitLoopIndexSwitch_1a = GraphEditSwitchs.Link( OInitLoopIndex , ISwitch_1a ) - - LInitLoopIndexSwitcha = GraphEditSwitchs.Link( OInitLoopIndex , ISwitcha ) - - LInitLoopMinEndOfInitLoopMin = GraphEditSwitchs.Link( OInitLoopMin , IEndOfInitLoopMin ) - - LInitLoopMaxEndOfInitLoopMax = GraphEditSwitchs.Link( OInitLoopMax , IEndOfInitLoopMax ) - - LSwitchOddIsOddGate = GraphEditSwitchs.Link( OSwitchOdd , IIsOddGate ) - - LSwitchaIsOdda = GraphEditSwitchs.Link( OSwitcha , IIsOdda ) - LSwitchaIsOdda.AddCoord( 1 , 365 , 129 ) - LSwitchaIsOdda.AddCoord( 2 , 365 , 222 ) - - LSwitchDefaultEndOfSwitchDefault = GraphEditSwitchs.Link( OSwitchDefault , IEndOfSwitchDefault ) - LSwitchDefaultEndOfSwitchDefault.AddCoord( 1 , 572 , 194 ) - LSwitchDefaultEndOfSwitchDefault.AddCoord( 2 , 571 , 257 ) - - LEndOfSwitchaEndOfInitLoopIndex = GraphEditSwitchs.Link( OEndOfSwitcha , IEndOfInitLoopIndex ) - - LSwitch_1OddIsOdd_1Gate = GraphEditSwitchs.Link( OSwitch_1Odd , IIsOdd_1Gate ) - - LSwitch_1EvenEndSwitchDefault = GraphEditSwitchs.Link( OSwitch_1Even , IEndSwitchDefault ) - - LSwitch_1aIsOdd_1a = GraphEditSwitchs.Link( OSwitch_1a , IIsOdd_1a ) - LSwitch_1aIsOdd_1a.AddCoord( 1 , 379 , 387 ) - LSwitch_1aIsOdd_1a.AddCoord( 2 , 378 , 481 ) - - LEndSwitchGateEndOfInitLoopGate = GraphEditSwitchs.Link( OEndSwitchGate , IEndOfInitLoopGate ) - - # Input datas - IInitLoopIndex.Input( 0 ) - IInitLoopMin.Input( 0 ) - IInitLoopMax.Input( 20 ) - - # Output Ports of the graph - #OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) - #OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) - #OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) - #OSwitchEven = Switch.GetOutPort( 'Even' ) - #OEndSwitcha = EndSwitch.GetOutPort( 'a' ) - return GraphEditSwitchs - - -GraphEditSwitchs = DefGraphEditSwitchs() diff --git a/Superv/Python/GraphEditGraphSwitchs_4.py b/Superv/Python/GraphEditGraphSwitchs_4.py deleted file mode 100644 index 082670b..0000000 --- a/Superv/Python/GraphEditGraphSwitchs_4.py +++ /dev/null @@ -1,227 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphEditSwitchs -# -from SuperV import * - -# Graph creation of GraphEditSwitchs -def DefGraphEditSwitchs() : - GraphEditSwitchs = Graph( 'GraphEditSwitchs' ) - GraphEditSwitchs.SetName( 'GraphEditSwitchs' ) - GraphEditSwitchs.SetAuthor( '' ) - GraphEditSwitchs.SetComment( '' ) - GraphEditSwitchs.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 (GraphSwitchs)" ' ) - PyIsOdd.append( ' sleep( 1 ) ' ) - PyIsOdd.append( ' return a ' ) - IsOdd = GraphEditSwitchs.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 IsOdd(a) : ' ) - PyIsEven.append( ' print a,"IsOdd_1 (GraphSwitchs)" ' ) - PyIsEven.append( ' sleep( 1 ) ' ) - PyIsEven.append( ' return a ' ) - IsEven = GraphEditSwitchs.INode( 'IsOdd' , PyIsEven ) - IsEven.SetName( 'IsEven' ) - IsEven.SetAuthor( '' ) - IsEven.SetComment( 'Python function' ) - IsEven.Coords( 419 , 308 ) - IIsEvena = IsEven.InPort( 'a' , 'long' ) - IIsEvenGate = IsEven.GetInPort( 'Gate' ) - OIsEvena = IsEven.OutPort( 'a' , 'long' ) - OIsEvenGate = IsEven.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyInitLoop = [] - PyInitLoop.append( 'def InitLoop(Index,Min,Max) : ' ) - PyInitLoop.append( ' return Index,Min,Max ' ) - PyMoreInitLoop = [] - PyMoreInitLoop.append( 'def MoreLoop(Index,Min,Max) : ' ) - PyMoreInitLoop.append( ' if Index <= Max : ' ) - PyMoreInitLoop.append( ' DoLoop = 1 ' ) - PyMoreInitLoop.append( ' else : ' ) - PyMoreInitLoop.append( ' DoLoop = 0 ' ) - PyMoreInitLoop.append( ' return DoLoop,Index,Min,Max ' ) - PyNextInitLoop = [] - PyNextInitLoop.append( 'def NextLoop(Index,Min,Max) : ' ) - PyNextInitLoop.append( ' Index = Index + 1 ' ) - PyNextInitLoop.append( ' return Index,Min,Max ' ) - InitLoop,EndOfInitLoop = GraphEditSwitchs.LNode( 'InitLoop' , PyInitLoop , 'MoreLoop' , PyMoreInitLoop , 'NextLoop' , PyNextInitLoop ) - EndOfInitLoop.SetName( 'EndOfInitLoop' ) - EndOfInitLoop.SetAuthor( '' ) - EndOfInitLoop.SetComment( 'Compute Node' ) - EndOfInitLoop.Coords( 783 , 381 ) - PyEndOfInitLoop = [] - EndOfInitLoop.SetPyFunction( '' , PyEndOfInitLoop ) - IInitLoopDoLoop = InitLoop.GetInPort( 'DoLoop' ) - IInitLoopIndex = InitLoop.InPort( 'Index' , 'long' ) - IInitLoopMin = InitLoop.InPort( 'Min' , 'long' ) - IInitLoopMax = InitLoop.InPort( 'Max' , 'long' ) - IInitLoopGate = InitLoop.GetInPort( 'Gate' ) - OInitLoopDoLoop = InitLoop.GetOutPort( 'DoLoop' ) - OInitLoopIndex = InitLoop.GetOutPort( 'Index' ) - OInitLoopMin = InitLoop.GetOutPort( 'Min' ) - OInitLoopMax = InitLoop.GetOutPort( 'Max' ) - IEndOfInitLoopDoLoop = EndOfInitLoop.GetInPort( 'DoLoop' ) - IEndOfInitLoopIndex = EndOfInitLoop.GetInPort( 'Index' ) - IEndOfInitLoopMin = EndOfInitLoop.GetInPort( 'Min' ) - IEndOfInitLoopMax = EndOfInitLoop.GetInPort( 'Max' ) - IEndOfInitLoopGate = EndOfInitLoop.GetInPort( 'Gate' ) - OEndOfInitLoopDoLoop = EndOfInitLoop.GetOutPort( 'DoLoop' ) - OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) - OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) - OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) - OEndOfInitLoopGate = EndOfInitLoop.GetOutPort( 'Gate' ) - InitLoop.SetName( 'InitLoop' ) - InitLoop.SetAuthor( '' ) - InitLoop.SetComment( 'Compute Node' ) - InitLoop.Coords( 10 , 388 ) - - # Creation of Switch Nodes - PySwitch = [] - PySwitch.append( 'from time import * ' ) - PySwitch.append( 'def Switch(a) : ' ) - PySwitch.append( ' if ( a & 1 ) == 0 : ' ) - PySwitch.append( ' sleep(1) ' ) - PySwitch.append( ' return a & 1,1-(a&1),a ' ) - Switch,EndOfSwitch = GraphEditSwitchs.SNode( 'Switch' , PySwitch ) - EndOfSwitch.SetName( 'EndOfSwitch' ) - EndOfSwitch.SetAuthor( '' ) - EndOfSwitch.SetComment( 'Compute Node' ) - EndOfSwitch.Coords( 587 , 126 ) - PyEndOfSwitch = [] - EndOfSwitch.SetPyFunction( '' , 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( 186 , 130 ) - ISwitcha = Switch.InPort( 'a' , 'long' ) - ISwitchGate = Switch.GetInPort( 'Gate' ) - OSwitchOdd = Switch.OutPort( 'Odd' , 'long' ) - OSwitchEven = Switch.OutPort( 'Even' , 'int' ) - OSwitcha = Switch.OutPort( 'a' , 'int' ) - OSwitchDefault = Switch.GetOutPort( 'Default' ) - - PySwitch_1 = [] - PySwitch_1.append( 'from time import * ' ) - PySwitch_1.append( 'def Switch(a) : ' ) - PySwitch_1.append( ' if ( a & 1 ) == 0 : ' ) - PySwitch_1.append( ' sleep(1) ' ) - PySwitch_1.append( ' return a & 1,1-(a&1),a ' ) - Switch_1,EndSwitch = GraphEditSwitchs.SNode( 'Switch' , PySwitch_1 ) - EndSwitch.SetName( 'EndSwitch' ) - EndSwitch.SetAuthor( '' ) - EndSwitch.SetComment( 'Compute Node' ) - EndSwitch.Coords( 605 , 382 ) - PyEndSwitch = [] - EndSwitch.SetPyFunction( '' , PyEndSwitch ) - IEndSwitcha = EndSwitch.InPort( 'a' , 'long' ) - IEndSwitchDefault = EndSwitch.GetInPort( 'Default' ) - OEndSwitcha = EndSwitch.OutPort( 'a' , 'long' ) - OEndSwitchGate = EndSwitch.GetOutPort( 'Gate' ) - Switch_1.SetName( 'Switch_1' ) - Switch_1.SetAuthor( '' ) - Switch_1.SetComment( 'Compute Node' ) - Switch_1.Coords( 193 , 388 ) - ISwitch_1a = Switch_1.InPort( 'a' , 'long' ) - ISwitch_1Gate = Switch_1.GetInPort( 'Gate' ) - OSwitch_1Odd = Switch_1.OutPort( 'Odd' , 'long' ) - OSwitch_1Even = Switch_1.OutPort( 'Even' , 'int' ) - OSwitch_1a = Switch_1.OutPort( 'a' , 'int' ) - OSwitch_1Default = Switch_1.GetOutPort( 'Default' ) - - # Creation of Links - LIsOddaEndOfSwitcha = GraphEditSwitchs.Link( OIsOdda , IEndOfSwitcha ) - LIsOddaEndOfSwitcha.AddCoord( 1 , 573 , 160 ) - LIsOddaEndOfSwitcha.AddCoord( 2 , 572 , 130 ) - - LIsEvenaEndSwitcha = GraphEditSwitchs.Link( OIsEvena , IEndSwitcha ) - LIsEvenaEndSwitcha.AddCoord( 1 , 599 , 416 ) - LIsEvenaEndSwitcha.AddCoord( 2 , 598 , 389 ) - - LInitLoopIndexSwitch_1a = GraphEditSwitchs.Link( OInitLoopIndex , ISwitch_1a ) - - LInitLoopIndexSwitcha = GraphEditSwitchs.Link( OInitLoopIndex , ISwitcha ) - - LInitLoopMinEndOfInitLoopMin = GraphEditSwitchs.Link( OInitLoopMin , IEndOfInitLoopMin ) - - LInitLoopMaxEndOfInitLoopMax = GraphEditSwitchs.Link( OInitLoopMax , IEndOfInitLoopMax ) - - LSwitchOddIsOddGate = GraphEditSwitchs.Link( OSwitchOdd , IIsOddGate ) - - LSwitchaIsOdda = GraphEditSwitchs.Link( OSwitcha , IIsOdda ) - LSwitchaIsOdda.AddCoord( 1 , 365 , 129 ) - LSwitchaIsOdda.AddCoord( 2 , 365 , 222 ) - - LSwitchDefaultEndOfSwitchDefault = GraphEditSwitchs.Link( OSwitchDefault , IEndOfSwitchDefault ) - LSwitchDefaultEndOfSwitchDefault.AddCoord( 1 , 572 , 194 ) - LSwitchDefaultEndOfSwitchDefault.AddCoord( 2 , 571 , 257 ) - - LEndOfSwitchaEndOfInitLoopIndex = GraphEditSwitchs.Link( OEndOfSwitcha , IEndOfInitLoopIndex ) - - LSwitch_1EvenEndSwitchDefault = GraphEditSwitchs.Link( OSwitch_1Even , IEndSwitchDefault ) - - LSwitch_1EvenIsEvenGate = GraphEditSwitchs.Link( OSwitch_1Even , IIsEvenGate ) - - LEndSwitchGateEndOfInitLoopGate = GraphEditSwitchs.Link( OEndSwitchGate , IEndOfInitLoopGate ) - - # Input datas - IInitLoopIndex.Input( 0 ) - IInitLoopMin.Input( 0 ) - IInitLoopMax.Input( 20 ) - - # Input Ports of the graph - #IIsEvena = IsEven.GetInPort( 'a' ) - - # Output Ports of the graph - #OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) - #OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) - #OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) - #OSwitchEven = Switch.GetOutPort( 'Even' ) - #OSwitch_1Odd = Switch_1.GetOutPort( 'Odd' ) - #OSwitch_1a = Switch_1.GetOutPort( 'a' ) - #OEndSwitcha = EndSwitch.GetOutPort( 'a' ) - return GraphEditSwitchs - - -GraphEditSwitchs = DefGraphEditSwitchs() diff --git a/Superv/Python/GraphEditGraphSwitchs_5.py b/Superv/Python/GraphEditGraphSwitchs_5.py deleted file mode 100644 index 47b267e..0000000 --- a/Superv/Python/GraphEditGraphSwitchs_5.py +++ /dev/null @@ -1,217 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphEditSwitchs_5 -# -from SuperV import * - -# Graph creation of GraphEditSwitchs_5 -def DefGraphEditSwitchs_5() : - GraphEditSwitchs_5 = Graph( 'GraphEditSwitchs_5' ) - GraphEditSwitchs_5.SetName( 'GraphEditSwitchs_5' ) - GraphEditSwitchs_5.SetAuthor( '' ) - GraphEditSwitchs_5.SetComment( '' ) - GraphEditSwitchs_5.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 (GraphSwitchs)" ' ) - PyIsOdd.append( ' sleep( 1 ) ' ) - PyIsOdd.append( ' return a ' ) - IsOdd = GraphEditSwitchs_5.INode( 'IsOdd' , PyIsOdd ) - IsOdd.SetName( 'IsOdd' ) - IsOdd.SetAuthor( '' ) - IsOdd.SetComment( 'Python function' ) - IsOdd.Coords( 393 , 67 ) - 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 = GraphEditSwitchs_5.INode( 'IsEven' , PyIsEven ) - IsEven.SetName( 'IsEven' ) - IsEven.SetAuthor( '' ) - IsEven.SetComment( 'Python function' ) - IsEven.Coords( 408 , 343 ) - IIsEvena = IsEven.InPort( 'a' , 'long' ) - IIsEvenGate = IsEven.GetInPort( 'Gate' ) - OIsEvena = IsEven.OutPort( 'a' , 'long' ) - OIsEvenGate = IsEven.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyInitLoop = [] - PyInitLoop.append( 'def InitLoop(Index,Min,Max) : ' ) - PyInitLoop.append( ' return Index,Min,Max ' ) - PyMoreInitLoop = [] - PyMoreInitLoop.append( 'def MoreLoop(Index,Min,Max) : ' ) - PyMoreInitLoop.append( ' if Index <= Max : ' ) - PyMoreInitLoop.append( ' DoLoop = 1 ' ) - PyMoreInitLoop.append( ' else : ' ) - PyMoreInitLoop.append( ' DoLoop = 0 ' ) - PyMoreInitLoop.append( ' return DoLoop,Index,Min,Max ' ) - PyNextInitLoop = [] - PyNextInitLoop.append( 'def NextLoop(Index,Min,Max) : ' ) - PyNextInitLoop.append( ' Index = Index + 1 ' ) - PyNextInitLoop.append( ' return Index,Min,Max ' ) - InitLoop,EndOfInitLoop = GraphEditSwitchs_5.LNode( 'InitLoop' , PyInitLoop , 'MoreLoop' , PyMoreInitLoop , 'NextLoop' , PyNextInitLoop ) - EndOfInitLoop.SetName( 'EndOfInitLoop' ) - EndOfInitLoop.SetAuthor( '' ) - EndOfInitLoop.SetComment( 'Compute Node' ) - EndOfInitLoop.Coords( 823 , 259 ) - PyEndOfInitLoop = [] - EndOfInitLoop.SetPyFunction( '' , PyEndOfInitLoop ) - IInitLoopDoLoop = InitLoop.GetInPort( 'DoLoop' ) - IInitLoopIndex = InitLoop.InPort( 'Index' , 'long' ) - IInitLoopMin = InitLoop.InPort( 'Min' , 'long' ) - IInitLoopMax = InitLoop.InPort( 'Max' , 'long' ) - IInitLoopGate = InitLoop.GetInPort( 'Gate' ) - OInitLoopDoLoop = InitLoop.GetOutPort( 'DoLoop' ) - OInitLoopIndex = InitLoop.GetOutPort( 'Index' ) - OInitLoopMin = InitLoop.GetOutPort( 'Min' ) - OInitLoopMax = InitLoop.GetOutPort( 'Max' ) - IEndOfInitLoopDoLoop = EndOfInitLoop.GetInPort( 'DoLoop' ) - IEndOfInitLoopIndex = EndOfInitLoop.GetInPort( 'Index' ) - IEndOfInitLoopMin = EndOfInitLoop.GetInPort( 'Min' ) - IEndOfInitLoopMax = EndOfInitLoop.GetInPort( 'Max' ) - IEndOfInitLoopGate = EndOfInitLoop.GetInPort( 'Gate' ) - OEndOfInitLoopDoLoop = EndOfInitLoop.GetOutPort( 'DoLoop' ) - OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) - OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) - OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) - OEndOfInitLoopGate = EndOfInitLoop.GetOutPort( 'Gate' ) - InitLoop.SetName( 'InitLoop' ) - InitLoop.SetAuthor( '' ) - InitLoop.SetComment( 'Compute Node' ) - InitLoop.Coords( 10 , 248 ) - - # Creation of Switch Nodes - PySwitch = [] - PySwitch.append( 'from time import * ' ) - PySwitch.append( 'def Switch(a) : ' ) - PySwitch.append( ' if ( a & 1 ) == 0 : ' ) - PySwitch.append( ' sleep(1) ' ) - PySwitch.append( ' return a & 1,1-(a&1),a ' ) - Switch,EndOfSwitch = GraphEditSwitchs_5.SNode( 'Switch' , PySwitch ) - EndOfSwitch.SetName( 'EndOfSwitch' ) - EndOfSwitch.SetAuthor( '' ) - EndOfSwitch.SetComment( 'Compute Node' ) - EndOfSwitch.Coords( 584 , 172 ) - PyEndOfSwitch = [] - EndOfSwitch.SetPyFunction( '' , 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( 199 , 132 ) - ISwitcha = Switch.InPort( 'a' , 'long' ) - ISwitchGate = Switch.GetInPort( 'Gate' ) - OSwitchOdd = Switch.OutPort( 'Odd' , 'long' ) - OSwitchEven = Switch.OutPort( 'Even' , 'int' ) - OSwitcha = Switch.OutPort( 'a' , 'int' ) - OSwitchDefault = Switch.GetOutPort( 'Default' ) - - PySwitch_1 = [] - PySwitch_1.append( 'from time import * ' ) - PySwitch_1.append( 'def Switch(a) : ' ) - PySwitch_1.append( ' if ( a & 1 ) == 0 : ' ) - PySwitch_1.append( ' sleep(1) ' ) - PySwitch_1.append( ' return a & 1,1-(a&1),a ' ) - Switch_1,EndSwitch = GraphEditSwitchs_5.SNode( 'Switch' , PySwitch_1 ) - EndSwitch.SetName( 'EndSwitch' ) - EndSwitch.SetAuthor( '' ) - EndSwitch.SetComment( 'Compute Node' ) - EndSwitch.Coords( 608 , 430 ) - PyEndSwitch = [] - EndSwitch.SetPyFunction( '' , PyEndSwitch ) - IEndSwitcha = EndSwitch.InPort( 'a' , 'long' ) - IEndSwitchDefault = EndSwitch.GetInPort( 'Default' ) - OEndSwitcha = EndSwitch.OutPort( 'a' , 'long' ) - OEndSwitchGate = EndSwitch.GetOutPort( 'Gate' ) - Switch_1.SetName( 'Switch_1' ) - Switch_1.SetAuthor( '' ) - Switch_1.SetComment( 'Compute Node' ) - Switch_1.Coords( 201 , 388 ) - ISwitch_1a = Switch_1.InPort( 'a' , 'long' ) - ISwitch_1Gate = Switch_1.GetInPort( 'Gate' ) - OSwitch_1Odd = Switch_1.OutPort( 'Odd' , 'long' ) - OSwitch_1Even = Switch_1.OutPort( 'Even' , 'int' ) - OSwitch_1a = Switch_1.OutPort( 'a' , 'int' ) - OSwitch_1Default = Switch_1.GetOutPort( 'Default' ) - - # Creation of Links - LIsOddaEndOfSwitcha = GraphEditSwitchs_5.Link( OIsOdda , IEndOfSwitcha ) - - LIsEvenaEndSwitcha = GraphEditSwitchs_5.Link( OIsEvena , IEndSwitcha ) - - LInitLoopIndexSwitch_1a = GraphEditSwitchs_5.Link( OInitLoopIndex , ISwitch_1a ) - - LInitLoopIndexSwitcha = GraphEditSwitchs_5.Link( OInitLoopIndex , ISwitcha ) - - LInitLoopMinEndOfInitLoopMin = GraphEditSwitchs_5.Link( OInitLoopMin , IEndOfInitLoopMin ) - - LInitLoopMaxEndOfInitLoopMax = GraphEditSwitchs_5.Link( OInitLoopMax , IEndOfInitLoopMax ) - - LSwitchOddIsOddGate = GraphEditSwitchs_5.Link( OSwitchOdd , IIsOddGate ) - - LSwitchaIsOdda = GraphEditSwitchs_5.Link( OSwitcha , IIsOdda ) - - LSwitchDefaultEndOfSwitchDefault = GraphEditSwitchs_5.Link( OSwitchDefault , IEndOfSwitchDefault ) - - LEndOfSwitchaEndOfInitLoopIndex = GraphEditSwitchs_5.Link( OEndOfSwitcha , IEndOfInitLoopIndex ) - - LSwitch_1EvenIsEvenGate = GraphEditSwitchs_5.Link( OSwitch_1Even , IIsEvenGate ) - - LSwitch_1aIsEvena = GraphEditSwitchs_5.Link( OSwitch_1a , IIsEvena ) - - LSwitch_1DefaultEndSwitchDefault = GraphEditSwitchs_5.Link( OSwitch_1Default , IEndSwitchDefault ) - - LEndSwitchGateEndOfInitLoopGate = GraphEditSwitchs_5.Link( OEndSwitchGate , IEndOfInitLoopGate ) - - # Input datas - IInitLoopIndex.Input( 0 ) - IInitLoopMin.Input( 0 ) - IInitLoopMax.Input( 20 ) - - # Output Ports of the graph - #OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) - #OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) - #OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) - #OSwitchEven = Switch.GetOutPort( 'Even' ) - #OSwitch_1Odd = Switch_1.GetOutPort( 'Odd' ) - #OEndSwitcha = EndSwitch.GetOutPort( 'a' ) - return GraphEditSwitchs_5 - - -GraphEditSwitchs_5 = DefGraphEditSwitchs_5() diff --git a/Superv/Python/GraphEmbeddedComponents.py b/Superv/Python/GraphEmbeddedComponents.py deleted file mode 100644 index 65ced83..0000000 --- a/Superv/Python/GraphEmbeddedComponents.py +++ /dev/null @@ -1,177 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphEmbeddedComponents -# -from SuperV import * - -# Graph creation of GraphEmbeddedComponents -def DefGraphEmbeddedComponents() : - GraphEmbeddedComponents = Graph( 'GraphEmbeddedComponents' ) - GraphEmbeddedComponents.SetName( 'GraphEmbeddedComponents' ) - GraphEmbeddedComponents.SetAuthor( '' ) - GraphEmbeddedComponents.SetComment( '' ) - GraphEmbeddedComponents.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - Add = GraphEmbeddedComponents.FNode( 'AddComponent' , 'AddComponent' , 'Add' ) - Add.SetName( 'Add' ) - Add.SetAuthor( '' ) - Add.SetContainer( 'localhost/SuperVisionContainer' ) - Add.SetComment( 'Add from AddComponent' ) - Add.Coords( 1 , 152 ) - IAddx = Add.GetInPort( 'x' ) - IAddy = Add.GetInPort( 'y' ) - IAddGate = Add.GetInPort( 'Gate' ) - OAddFuncValue = Add.GetOutPort( 'FuncValue' ) - OAddz = Add.GetOutPort( 'z' ) - OAddGate = Add.GetOutPort( 'Gate' ) - - Sub = GraphEmbeddedComponents.FNode( 'SubComponent' , 'SubComponent' , 'Sub' ) - Sub.SetName( 'Sub' ) - Sub.SetAuthor( '' ) - Sub.SetContainer( 'localhost/SuperVisionContainer' ) - Sub.SetComment( 'Sub from SubComponent' ) - Sub.Coords( 412 , 377 ) - ISubx = Sub.GetInPort( 'x' ) - ISuby = Sub.GetInPort( 'y' ) - ISubGate = Sub.GetInPort( 'Gate' ) - OSubz = Sub.GetOutPort( 'z' ) - OSubGate = Sub.GetOutPort( 'Gate' ) - - Mul = GraphEmbeddedComponents.FNode( 'MulComponent' , 'MulComponent' , 'Mul' ) - Mul.SetName( 'Mul' ) - Mul.SetAuthor( '' ) - Mul.SetContainer( 'localhost/SuperVisionContainer' ) - Mul.SetComment( 'Mul from MulComponent' ) - Mul.Coords( 412 , 152 ) - IMulx = Mul.GetInPort( 'x' ) - IMuly = Mul.GetInPort( 'y' ) - IMulGate = Mul.GetInPort( 'Gate' ) - OMulz = Mul.GetOutPort( 'z' ) - OMulGate = Mul.GetOutPort( 'Gate' ) - - Div = GraphEmbeddedComponents.FNode( 'DivComponent' , 'DivComponent' , 'Div' ) - Div.SetName( 'Div' ) - Div.SetAuthor( '' ) - Div.SetContainer( 'localhost/SuperVisionContainer' ) - Div.SetComment( 'Div from DivComponent' ) - Div.Coords( 622 , 124 ) - IDivx = Div.GetInPort( 'x' ) - IDivy = Div.GetInPort( 'y' ) - IDivGate = Div.GetInPort( 'Gate' ) - ODivz = Div.GetOutPort( 'z' ) - ODivGate = Div.GetOutPort( 'Gate' ) - - Addition = GraphEmbeddedComponents.FNode( 'AddComponent' , 'AddComponent' , 'Addition' ) - Addition.SetName( 'Addition' ) - Addition.SetAuthor( '' ) - Addition.SetContainer( 'localhost/AdditionServer' ) - Addition.SetComment( 'Addition from AddComponent' ) - Addition.Coords( 0 , 0 ) - IAdditionGate = Addition.GetInPort( 'Gate' ) - OAdditionAdder = Addition.GetOutPort( 'Adder' ) - OAdditionGate = Addition.GetOutPort( 'Gate' ) - - Addition_1 = GraphEmbeddedComponents.FNode( 'AddComponent' , 'AddComponent' , 'Addition' ) - Addition_1.SetName( 'Addition_1' ) - Addition_1.SetAuthor( '' ) - Addition_1.SetContainer( 'localhost/Addition_1Server' ) - Addition_1.SetComment( 'Addition from AddComponent' ) - Addition_1.Coords( 4 , 327 ) - IAddition_1Gate = Addition_1.GetInPort( 'Gate' ) - OAddition_1Adder = Addition_1.GetOutPort( 'Adder' ) - OAddition_1Gate = Addition_1.GetOutPort( 'Gate' ) - - # Creation of Computing Nodes - AddAndCompare_ServiceinParameter = [] - AddAndCompare_ServiceinParameter.append( SALOME_ModuleCatalog.ServicesParameter( 'Adder' , 'Adder' ) ) - AddAndCompare_ServiceinParameter.append( SALOME_ModuleCatalog.ServicesParameter( 'double' , 'x' ) ) - AddAndCompare_ServiceinParameter.append( SALOME_ModuleCatalog.ServicesParameter( 'double' , 'y' ) ) - AddAndCompare_ServiceinParameter.append( SALOME_ModuleCatalog.ServicesParameter( 'Adder' , 'anOtherAdder' ) ) - AddAndCompare_ServiceoutParameter = [] - AddAndCompare_ServiceoutParameter.append( SALOME_ModuleCatalog.ServicesParameter( 'double' , 'FuncValue' ) ) - AddAndCompare_ServiceoutParameter.append( SALOME_ModuleCatalog.ServicesParameter( 'double' , 'z' ) ) - AddAndCompare_ServiceinStreamParameter = [] - AddAndCompare_ServiceoutStreamParameter = [] - AddAndCompare_Service = SALOME_ModuleCatalog.Service( 'AddAndCompare' , AddAndCompare_ServiceinParameter , AddAndCompare_ServiceoutParameter , AddAndCompare_ServiceinStreamParameter , AddAndCompare_ServiceoutStreamParameter , 0 , 0 ) - AddAndCompare = GraphEmbeddedComponents.CNode( AddAndCompare_Service ) - AddAndCompare.SetName( 'AddAndCompare' ) - AddAndCompare.SetAuthor( '' ) - AddAndCompare.SetComment( 'Python function' ) - AddAndCompare.Coords( 233 , 0 ) - IAddAndCompareAdder = AddAndCompare.GetInPort( 'Adder' ) - IAddAndComparex = AddAndCompare.GetInPort( 'x' ) - IAddAndComparey = AddAndCompare.GetInPort( 'y' ) - IAddAndCompareanOtherAdder = AddAndCompare.GetInPort( 'anOtherAdder' ) - IAddAndCompareGate = AddAndCompare.GetInPort( 'Gate' ) - OAddAndCompareFuncValue = AddAndCompare.GetOutPort( 'FuncValue' ) - OAddAndComparez = AddAndCompare.GetOutPort( 'z' ) - OAddAndCompareGate = AddAndCompare.GetOutPort( 'Gate' ) - - # Creation of Links - LAddFuncValueMulx = GraphEmbeddedComponents.Link( OAddFuncValue , IMulx ) - - LAddFuncValueAddAndComparex = GraphEmbeddedComponents.Link( OAddFuncValue , IAddAndComparex ) - LAddFuncValueAddAndComparex.AddCoord( 1 , 195 , 108 ) - LAddFuncValueAddAndComparex.AddCoord( 2 , 195 , 233 ) - - LAddzSubx = GraphEmbeddedComponents.Link( OAddz , ISubx ) - LAddzSubx.AddCoord( 1 , 187 , 459 ) - LAddzSubx.AddCoord( 2 , 186 , 262 ) - - LAddzAddAndComparey = GraphEmbeddedComponents.Link( OAddz , IAddAndComparey ) - LAddzAddAndComparey.AddCoord( 1 , 187 , 139 ) - LAddzAddAndComparey.AddCoord( 2 , 186 , 261 ) - - LSubzDivx = GraphEmbeddedComponents.Link( OSubz , IDivx ) - LSubzDivx.AddCoord( 1 , 598 , 203 ) - LSubzDivx.AddCoord( 2 , 598 , 457 ) - - LMulzDivy = GraphEmbeddedComponents.Link( OMulz , IDivy ) - - LAdditionAdderAddAndCompareAdder = GraphEmbeddedComponents.Link( OAdditionAdder , IAddAndCompareAdder ) - - LAddition_1AdderAddAndCompareanOtherAdder = GraphEmbeddedComponents.Link( OAddition_1Adder , IAddAndCompareanOtherAdder ) - LAddition_1AdderAddAndCompareanOtherAdder.AddCoord( 1 , 215 , 168 ) - LAddition_1AdderAddAndCompareanOtherAdder.AddCoord( 2 , 214 , 407 ) - - # Input datas - IAddx.Input( 1 ) - IAddy.Input( 2 ) - ISuby.Input( 3 ) - IMuly.Input( 4 ) - - # Output Ports of the graph - #ODivz = Div.GetOutPort( 'z' ) - #OAddAndCompareFuncValue = AddAndCompare.GetOutPort( 'FuncValue' ) - #OAddAndComparez = AddAndCompare.GetOutPort( 'z' ) - return GraphEmbeddedComponents - - -GraphEmbeddedComponents = DefGraphEmbeddedComponents() - -GraphEmbeddedComponents.Run() -GraphEmbeddedComponents.DoneW() -GraphEmbeddedComponents.PrintPorts() - diff --git a/Superv/Python/GraphEmbeddedComponentsCrash.py b/Superv/Python/GraphEmbeddedComponentsCrash.py deleted file mode 100644 index a3dfb0e..0000000 --- a/Superv/Python/GraphEmbeddedComponentsCrash.py +++ /dev/null @@ -1,181 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphEmbeddedComponentsCrash -# -from SuperV import * - -# Graph creation of GraphEmbeddedComponentsCrash -def DefGraphEmbeddedComponentsCrash() : - GraphEmbeddedComponentsCrash = Graph( 'GraphEmbeddedComponentsCrash' ) - GraphEmbeddedComponentsCrash.SetName( 'GraphEmbeddedComponentsCrash' ) - GraphEmbeddedComponentsCrash.SetAuthor( '' ) - GraphEmbeddedComponentsCrash.SetComment( '' ) - GraphEmbeddedComponentsCrash.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - Add = GraphEmbeddedComponentsCrash.FNode( 'AddComponent' , 'AddComponent' , 'Add' ) - Add.SetName( 'Add' ) - Add.SetAuthor( '' ) - Add.SetContainer( 'localhost/FactoryServer' ) - Add.SetComment( 'Add from AddComponent' ) - Add.Coords( 1 , 152 ) - IAddx = Add.GetInPort( 'x' ) - IAddy = Add.GetInPort( 'y' ) - IAddGate = Add.GetInPort( 'Gate' ) - OAddFuncValue = Add.GetOutPort( 'FuncValue' ) - OAddz = Add.GetOutPort( 'z' ) - OAddGate = Add.GetOutPort( 'Gate' ) - - Sub = GraphEmbeddedComponentsCrash.FNode( 'SubComponent' , 'SubComponent' , 'Sub' ) - Sub.SetName( 'Sub' ) - Sub.SetAuthor( '' ) - Sub.SetContainer( 'localhost/FactoryServer' ) - Sub.SetComment( 'Sub from SubComponent' ) - Sub.Coords( 477 , 381 ) - ISubx = Sub.GetInPort( 'x' ) - ISuby = Sub.GetInPort( 'y' ) - ISubGate = Sub.GetInPort( 'Gate' ) - OSubz = Sub.GetOutPort( 'z' ) - OSubGate = Sub.GetOutPort( 'Gate' ) - - Mul = GraphEmbeddedComponentsCrash.FNode( 'MulComponent' , 'MulComponent' , 'Mul' ) - Mul.SetName( 'Mul' ) - Mul.SetAuthor( '' ) - Mul.SetContainer( 'localhost/FactoryServer' ) - Mul.SetComment( 'Mul from MulComponent' ) - Mul.Coords( 480 , 152 ) - IMulx = Mul.GetInPort( 'x' ) - IMuly = Mul.GetInPort( 'y' ) - IMulGate = Mul.GetInPort( 'Gate' ) - OMulz = Mul.GetOutPort( 'z' ) - OMulGate = Mul.GetOutPort( 'Gate' ) - - Div = GraphEmbeddedComponentsCrash.FNode( 'DivComponent' , 'DivComponent' , 'Div' ) - Div.SetName( 'Div' ) - Div.SetAuthor( '' ) - Div.SetContainer( 'localhost/FactoryServer' ) - Div.SetComment( 'Div from DivComponent' ) - Div.Coords( 714 , 136 ) - IDivx = Div.GetInPort( 'x' ) - IDivy = Div.GetInPort( 'y' ) - IDivGate = Div.GetInPort( 'Gate' ) - ODivz = Div.GetOutPort( 'z' ) - ODivGate = Div.GetOutPort( 'Gate' ) - - Addition = GraphEmbeddedComponentsCrash.FNode( 'AddComponent' , 'AddComponent' , 'Addition' ) - Addition.SetName( 'Addition' ) - Addition.SetAuthor( '' ) - Addition.SetContainer( 'localhost/AdditionServer' ) - Addition.SetComment( 'Addition from AddComponent' ) - Addition.Coords( 0 , 0 ) - IAdditionGate = Addition.GetInPort( 'Gate' ) - OAdditionAdder = Addition.GetOutPort( 'Adder' ) - OAdditionGate = Addition.GetOutPort( 'Gate' ) - - Addition_1 = GraphEmbeddedComponentsCrash.FNode( 'AddComponent' , 'AddComponent' , 'Addition' ) - Addition_1.SetName( 'Addition_1' ) - Addition_1.SetAuthor( '' ) - Addition_1.SetContainer( 'localhost/Addition_1Server' ) - Addition_1.SetComment( 'Addition from AddComponent' ) - Addition_1.Coords( 4 , 327 ) - IAddition_1Gate = Addition_1.GetInPort( 'Gate' ) - OAddition_1Adder = Addition_1.GetOutPort( 'Adder' ) - OAddition_1Gate = Addition_1.GetOutPort( 'Gate' ) - - # Creation of Computing Nodes - AddAndCompare_ServiceinParameter = [] - AddAndCompare_ServiceinParameter.append( SALOME_ModuleCatalog.ServicesParameter( 'Adder' , 'Adder' ) ) - AddAndCompare_ServiceinParameter.append( SALOME_ModuleCatalog.ServicesParameter( 'double' , 'x' ) ) - AddAndCompare_ServiceinParameter.append( SALOME_ModuleCatalog.ServicesParameter( 'double' , 'y' ) ) - AddAndCompare_ServiceinParameter.append( SALOME_ModuleCatalog.ServicesParameter( 'Adder' , 'anOtherAdder' ) ) - AddAndCompare_ServiceoutParameter = [] - AddAndCompare_ServiceoutParameter.append( SALOME_ModuleCatalog.ServicesParameter( 'double' , 'FuncValue' ) ) - AddAndCompare_ServiceoutParameter.append( SALOME_ModuleCatalog.ServicesParameter( 'double' , 'z' ) ) - AddAndCompare_ServiceinStreamParameter = [] - AddAndCompare_ServiceoutStreamParameter = [] - AddAndCompare_Service = SALOME_ModuleCatalog.Service( 'AddAndCompare' , AddAndCompare_ServiceinParameter , AddAndCompare_ServiceoutParameter , AddAndCompare_ServiceinStreamParameter , AddAndCompare_ServiceoutStreamParameter , 0 , 0 ) - AddAndCompare = GraphEmbeddedComponentsCrash.CNode( AddAndCompare_Service ) - AddAndCompare.SetName( 'AddAndCompare' ) - AddAndCompare.SetAuthor( '' ) - AddAndCompare.SetComment( 'Python function' ) - AddAndCompare.Coords( 233 , 0 ) - IAddAndCompareAdder = AddAndCompare.GetInPort( 'Adder' ) - IAddAndComparex = AddAndCompare.GetInPort( 'x' ) - IAddAndComparey = AddAndCompare.GetInPort( 'y' ) - IAddAndCompareanOtherAdder = AddAndCompare.GetInPort( 'anOtherAdder' ) - IAddAndCompareGate = AddAndCompare.GetInPort( 'Gate' ) - OAddAndCompareFuncValue = AddAndCompare.GetOutPort( 'FuncValue' ) - OAddAndComparez = AddAndCompare.GetOutPort( 'z' ) - OAddAndCompareGate = AddAndCompare.GetOutPort( 'Gate' ) - - # Creation of Links - LAddFuncValueMulx = GraphEmbeddedComponentsCrash.Link( OAddFuncValue , IMulx ) - - LAddFuncValueAddAndComparex = GraphEmbeddedComponentsCrash.Link( OAddFuncValue , IAddAndComparex ) - LAddFuncValueAddAndComparex.AddCoord( 1 , 195 , 108 ) - LAddFuncValueAddAndComparex.AddCoord( 2 , 195 , 233 ) - - LAddzSubx = GraphEmbeddedComponentsCrash.Link( OAddz , ISubx ) - LAddzSubx.AddCoord( 1 , 187 , 459 ) - LAddzSubx.AddCoord( 2 , 186 , 262 ) - - LAddzAddAndComparey = GraphEmbeddedComponentsCrash.Link( OAddz , IAddAndComparey ) - LAddzAddAndComparey.AddCoord( 1 , 187 , 139 ) - LAddzAddAndComparey.AddCoord( 2 , 186 , 261 ) - - LSubzDivx = GraphEmbeddedComponentsCrash.Link( OSubz , IDivx ) - LSubzDivx.AddCoord( 1 , 670 , 206 ) - LSubzDivx.AddCoord( 2 , 680 , 447 ) - - LMulzDivy = GraphEmbeddedComponentsCrash.Link( OMulz , IDivy ) - - LAdditionAdderAddAndCompareAdder = GraphEmbeddedComponentsCrash.Link( OAdditionAdder , IAddAndCompareAdder ) - - LAddition_1AdderAddAndCompareanOtherAdder = GraphEmbeddedComponentsCrash.Link( OAddition_1Adder , IAddAndCompareanOtherAdder ) - LAddition_1AdderAddAndCompareanOtherAdder.AddCoord( 1 , 215 , 168 ) - LAddition_1AdderAddAndCompareanOtherAdder.AddCoord( 2 , 214 , 407 ) - - LAddAndCompareGateMulGate = GraphEmbeddedComponentsCrash.Link( OAddAndCompareGate , IMulGate ) - - LAddAndCompareGateSubGate = GraphEmbeddedComponentsCrash.Link( OAddAndCompareGate , ISubGate ) - - # Input datas - IAddx.Input( 1 ) - IAddy.Input( 2 ) - ISuby.Input( 3 ) - IMuly.Input( 4 ) - - # Output Ports of the graph - #ODivz = Div.GetOutPort( 'z' ) - #OAddAndCompareFuncValue = AddAndCompare.GetOutPort( 'FuncValue' ) - #OAddAndComparez = AddAndCompare.GetOutPort( 'z' ) - return GraphEmbeddedComponentsCrash - - -GraphEmbeddedComponentsCrash = DefGraphEmbeddedComponentsCrash() - -GraphEmbeddedComponentsCrash.Run() -GraphEmbeddedComponentsCrash.DoneW() -GraphEmbeddedComponentsCrash.PrintPorts() - diff --git a/Superv/Python/GraphEmbeddedComponentsCrash1.py b/Superv/Python/GraphEmbeddedComponentsCrash1.py deleted file mode 100644 index 420f2e2..0000000 --- a/Superv/Python/GraphEmbeddedComponentsCrash1.py +++ /dev/null @@ -1,177 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphEmbeddedComponentsCrash1 -# -from SuperV import * - -# Graph creation of GraphEmbeddedComponentsCrash1 -def DefGraphEmbeddedComponentsCrash1() : - GraphEmbeddedComponentsCrash1 = Graph( 'GraphEmbeddedComponentsCrash1' ) - GraphEmbeddedComponentsCrash1.SetName( 'GraphEmbeddedComponentsCrash1' ) - GraphEmbeddedComponentsCrash1.SetAuthor( '' ) - GraphEmbeddedComponentsCrash1.SetComment( '' ) - GraphEmbeddedComponentsCrash1.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - Add = GraphEmbeddedComponentsCrash1.FNode( 'AddComponent' , 'AddComponent' , 'Add' ) - Add.SetName( 'Add' ) - Add.SetAuthor( '' ) - Add.SetContainer( 'localhost/SuperVisionContainer' ) - Add.SetComment( 'Add from AddComponent' ) - Add.Coords( 1 , 152 ) - IAddx = Add.GetInPort( 'x' ) - IAddy = Add.GetInPort( 'y' ) - IAddGate = Add.GetInPort( 'Gate' ) - OAddFuncValue = Add.GetOutPort( 'FuncValue' ) - OAddz = Add.GetOutPort( 'z' ) - OAddGate = Add.GetOutPort( 'Gate' ) - - Sub = GraphEmbeddedComponentsCrash1.FNode( 'SubComponent' , 'SubComponent' , 'Sub' ) - Sub.SetName( 'Sub' ) - Sub.SetAuthor( '' ) - Sub.SetContainer( 'localhost/SuperVisionContainer' ) - Sub.SetComment( 'Sub from SubComponent' ) - Sub.Coords( 477 , 381 ) - ISubx = Sub.GetInPort( 'x' ) - ISuby = Sub.GetInPort( 'y' ) - ISubGate = Sub.GetInPort( 'Gate' ) - OSubz = Sub.GetOutPort( 'z' ) - OSubGate = Sub.GetOutPort( 'Gate' ) - - Mul = GraphEmbeddedComponentsCrash1.FNode( 'MulComponent' , 'MulComponent' , 'Mul' ) - Mul.SetName( 'Mul' ) - Mul.SetAuthor( '' ) - Mul.SetContainer( 'localhost/SuperVisionContainer' ) - Mul.SetComment( 'Mul from MulComponent' ) - Mul.Coords( 480 , 152 ) - IMulx = Mul.GetInPort( 'x' ) - IMuly = Mul.GetInPort( 'y' ) - IMulGate = Mul.GetInPort( 'Gate' ) - OMulz = Mul.GetOutPort( 'z' ) - OMulGate = Mul.GetOutPort( 'Gate' ) - - Div = GraphEmbeddedComponentsCrash1.FNode( 'DivComponent' , 'DivComponent' , 'Div' ) - Div.SetName( 'Div' ) - Div.SetAuthor( '' ) - Div.SetContainer( 'localhost/SuperVisionContainer' ) - Div.SetComment( 'Div from DivComponent' ) - Div.Coords( 714 , 136 ) - IDivx = Div.GetInPort( 'x' ) - IDivy = Div.GetInPort( 'y' ) - IDivGate = Div.GetInPort( 'Gate' ) - ODivz = Div.GetOutPort( 'z' ) - ODivGate = Div.GetOutPort( 'Gate' ) - - Addition = GraphEmbeddedComponentsCrash1.FNode( 'AddComponent' , 'AddComponent' , 'Addition' ) - Addition.SetName( 'Addition' ) - Addition.SetAuthor( '' ) - Addition.SetContainer( 'localhost/SuperVisionContainer' ) - Addition.SetComment( 'Addition from AddComponent' ) - Addition.Coords( 0 , 0 ) - IAdditionGate = Addition.GetInPort( 'Gate' ) - OAdditionAdder = Addition.GetOutPort( 'Adder' ) - OAdditionGate = Addition.GetOutPort( 'Gate' ) - - Addition_1 = GraphEmbeddedComponentsCrash1.FNode( 'AddComponent' , 'AddComponent' , 'Addition' ) - Addition_1.SetName( 'Addition_1' ) - Addition_1.SetAuthor( '' ) - Addition_1.SetContainer( 'localhost/SuperVisionContainer' ) - Addition_1.SetComment( 'Addition from AddComponent' ) - Addition_1.Coords( 4 , 327 ) - IAddition_1Gate = Addition_1.GetInPort( 'Gate' ) - OAddition_1Adder = Addition_1.GetOutPort( 'Adder' ) - OAddition_1Gate = Addition_1.GetOutPort( 'Gate' ) - - # Creation of Computing Nodes - AddAndCompare_ServiceinParameter = [] - AddAndCompare_ServiceinParameter.append( SALOME_ModuleCatalog.ServicesParameter( 'Adder' , 'Adder' ) ) - AddAndCompare_ServiceinParameter.append( SALOME_ModuleCatalog.ServicesParameter( 'double' , 'x' ) ) - AddAndCompare_ServiceinParameter.append( SALOME_ModuleCatalog.ServicesParameter( 'double' , 'y' ) ) - AddAndCompare_ServiceinParameter.append( SALOME_ModuleCatalog.ServicesParameter( 'Adder' , 'anOtherAdder' ) ) - AddAndCompare_ServiceoutParameter = [] - AddAndCompare_ServiceoutParameter.append( SALOME_ModuleCatalog.ServicesParameter( 'double' , 'FuncValue' ) ) - AddAndCompare_ServiceoutParameter.append( SALOME_ModuleCatalog.ServicesParameter( 'double' , 'z' ) ) - AddAndCompare_ServiceinStreamParameter = [] - AddAndCompare_ServiceoutStreamParameter = [] - AddAndCompare_Service = SALOME_ModuleCatalog.Service( 'AddAndCompare' , AddAndCompare_ServiceinParameter , AddAndCompare_ServiceoutParameter , AddAndCompare_ServiceinStreamParameter , AddAndCompare_ServiceoutStreamParameter , 0 , 0 ) - AddAndCompare = GraphEmbeddedComponentsCrash1.CNode( AddAndCompare_Service ) - AddAndCompare.SetName( 'AddAndCompare' ) - AddAndCompare.SetAuthor( '' ) - AddAndCompare.SetComment( 'Python function' ) - AddAndCompare.Coords( 233 , 0 ) - IAddAndCompareAdder = AddAndCompare.GetInPort( 'Adder' ) - IAddAndComparex = AddAndCompare.GetInPort( 'x' ) - IAddAndComparey = AddAndCompare.GetInPort( 'y' ) - IAddAndCompareanOtherAdder = AddAndCompare.GetInPort( 'anOtherAdder' ) - IAddAndCompareGate = AddAndCompare.GetInPort( 'Gate' ) - OAddAndCompareFuncValue = AddAndCompare.GetOutPort( 'FuncValue' ) - OAddAndComparez = AddAndCompare.GetOutPort( 'z' ) - OAddAndCompareGate = AddAndCompare.GetOutPort( 'Gate' ) - - # Creation of Links - LAddFuncValueMulx = GraphEmbeddedComponentsCrash1.Link( OAddFuncValue , IMulx ) - - LAddFuncValueAddAndComparex = GraphEmbeddedComponentsCrash1.Link( OAddFuncValue , IAddAndComparex ) - LAddFuncValueAddAndComparex.AddCoord( 1 , 195 , 108 ) - LAddFuncValueAddAndComparex.AddCoord( 2 , 195 , 233 ) - - LAddzSubx = GraphEmbeddedComponentsCrash1.Link( OAddz , ISubx ) - LAddzSubx.AddCoord( 1 , 187 , 459 ) - LAddzSubx.AddCoord( 2 , 186 , 262 ) - - LAddzAddAndComparey = GraphEmbeddedComponentsCrash1.Link( OAddz , IAddAndComparey ) - LAddzAddAndComparey.AddCoord( 1 , 187 , 139 ) - LAddzAddAndComparey.AddCoord( 2 , 186 , 261 ) - - LSubzDivx = GraphEmbeddedComponentsCrash1.Link( OSubz , IDivx ) - LSubzDivx.AddCoord( 1 , 670 , 206 ) - LSubzDivx.AddCoord( 2 , 680 , 447 ) - - LMulzDivy = GraphEmbeddedComponentsCrash1.Link( OMulz , IDivy ) - - LAdditionAdderAddAndCompareAdder = GraphEmbeddedComponentsCrash1.Link( OAdditionAdder , IAddAndCompareAdder ) - - LAddition_1AdderAddAndCompareanOtherAdder = GraphEmbeddedComponentsCrash1.Link( OAddition_1Adder , IAddAndCompareanOtherAdder ) - LAddition_1AdderAddAndCompareanOtherAdder.AddCoord( 1 , 215 , 168 ) - LAddition_1AdderAddAndCompareanOtherAdder.AddCoord( 2 , 214 , 407 ) - - # Input datas - IAddx.Input( 1 ) - IAddy.Input( 2 ) - ISuby.Input( 3 ) - IMuly.Input( 4 ) - - # Output Ports of the graph - #ODivz = Div.GetOutPort( 'z' ) - #OAddAndCompareFuncValue = AddAndCompare.GetOutPort( 'FuncValue' ) - #OAddAndComparez = AddAndCompare.GetOutPort( 'z' ) - return GraphEmbeddedComponentsCrash1 - - -GraphEmbeddedComponentsCrash1 = DefGraphEmbeddedComponentsCrash1() - -GraphEmbeddedComponentsCrash1.Run() -GraphEmbeddedComponentsCrash1.DoneW() -GraphEmbeddedComponentsCrash1.PrintPorts() - diff --git a/Superv/Python/GraphEmptyInLinesTypesCheck.py b/Superv/Python/GraphEmptyInLinesTypesCheck.py deleted file mode 100755 index ce3a2c8..0000000 --- a/Superv/Python/GraphEmptyInLinesTypesCheck.py +++ /dev/null @@ -1,197 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphEmptyInLinesConvertCheck -# -from SuperV import * -# Graph creation -GraphEmptyInLinesConvertCheck = Graph( 'GraphEmptyInLinesConvertCheck' ) -GraphEmptyInLinesConvertCheck.SetName( 'GraphEmptyInLinesConvertCheck' ) -GraphEmptyInLinesConvertCheck.SetAuthor( 'JR' ) -GraphEmptyInLinesConvertCheck.SetComment( '' ) -GraphEmptyInLinesConvertCheck.Coords( 0 , 0 ) - -# Creation of Factory Nodes - -Addition = GraphEmptyInLinesConvertCheck.FNode( 'AddComponent' , 'AddComponent' , 'Addition' ) -Addition.SetName( 'Addition' ) -Addition.SetAuthor( '' ) -Addition.SetContainer( 'localhost/FactoryServer' ) -Addition.SetComment( 'Addition from AddComponent' ) -Addition.Coords( 232 , 514 ) - -# Creation of InLine Nodes -PyBoolCheck = [] -PyBoolCheck.append( ' ' ) -BoolCheck = GraphEmptyInLinesConvertCheck.INode( '' , PyBoolCheck ) -BoolCheck.InPort( 'InBool' , 'boolean' ) -BoolCheck.OutPort( 'OutBool' , 'boolean' ) -BoolCheck.SetName( 'BoolCheck' ) -BoolCheck.SetAuthor( '' ) -BoolCheck.SetComment( 'Empty InLine Node' ) -BoolCheck.Coords( 234 , 92 ) - -PyCharCheck = [] -PyCharCheck.append( ' ' ) -CharCheck = GraphEmptyInLinesConvertCheck.INode( '' , PyCharCheck ) -CharCheck.InPort( 'InChar' , 'char' ) -CharCheck.OutPort( 'OutChar' , 'char' ) -CharCheck.SetName( 'CharCheck' ) -CharCheck.SetAuthor( '' ) -CharCheck.SetComment( 'Empty InLine Node' ) -CharCheck.Coords( 30 , 142 ) - -PyShortCheck = [] -PyShortCheck.append( ' ' ) -ShortCheck = GraphEmptyInLinesConvertCheck.INode( '' , PyShortCheck ) -ShortCheck.InPort( 'InShort' , 'short' ) -ShortCheck.OutPort( 'OutShort' , 'short' ) -ShortCheck.SetName( 'ShortCheck' ) -ShortCheck.SetAuthor( '' ) -ShortCheck.SetComment( 'Empty InLine Node' ) -ShortCheck.Coords( 234 , 230 ) - -PyFloatCheck = [] -PyFloatCheck.append( ' ' ) -FloatCheck = GraphEmptyInLinesConvertCheck.INode( '' , PyFloatCheck ) -FloatCheck.InPort( 'InFloat' , 'float' ) -FloatCheck.OutPort( 'OutFloat' , 'float' ) -FloatCheck.SetName( 'FloatCheck' ) -FloatCheck.SetAuthor( '' ) -FloatCheck.SetComment( 'Empty InLine Node' ) -FloatCheck.Coords( 230 , 375 ) - -PyLongCheck = [] -PyLongCheck.append( ' ' ) -LongCheck = GraphEmptyInLinesConvertCheck.INode( '' , PyLongCheck ) -LongCheck.InPort( 'InLong' , 'long' ) -LongCheck.OutPort( 'OutLong' , 'long' ) -LongCheck.SetName( 'LongCheck' ) -LongCheck.SetAuthor( '' ) -LongCheck.SetComment( 'Empty InLine Node' ) -LongCheck.Coords( 30 , 282 ) - -PyStringCheck = [] -PyStringCheck.append( ' ' ) -StringCheck = GraphEmptyInLinesConvertCheck.INode( '' , PyStringCheck ) -StringCheck.InPort( 'InString' , 'string' ) -StringCheck.OutPort( 'OutString' , 'string' ) -StringCheck.SetName( 'StringCheck' ) -StringCheck.SetAuthor( '' ) -StringCheck.SetComment( 'Empty InLine Node' ) -StringCheck.Coords( 30 , 6 ) - -PyDoubleCheck = [] -PyDoubleCheck.append( ' ' ) -DoubleCheck = GraphEmptyInLinesConvertCheck.INode( '' , PyDoubleCheck ) -DoubleCheck.InPort( 'InDouble' , 'double' ) -DoubleCheck.OutPort( 'OutDouble' , 'double' ) -DoubleCheck.SetName( 'DoubleCheck' ) -DoubleCheck.SetAuthor( '' ) -DoubleCheck.SetComment( 'Empty InLine Node' ) -DoubleCheck.Coords( 29 , 428 ) - -PyMiscTypes = [] -PyMiscTypes.append( ' ' ) -MiscTypes = GraphEmptyInLinesConvertCheck.INode( '' , PyMiscTypes ) -MiscTypes.InPort( 'InString' , 'string' ) -MiscTypes.InPort( 'InBool' , 'boolean' ) -MiscTypes.InPort( 'InChar' , 'char' ) -MiscTypes.InPort( 'InShort' , 'short' ) -MiscTypes.InPort( 'InLong' , 'long' ) -MiscTypes.InPort( 'InFloat' , 'float' ) -MiscTypes.InPort( 'InDouble' , 'double' ) -MiscTypes.InPort( 'InObjRef' , 'SuperVision::Adder' ) -MiscTypes.OutPort( 'OutString' , 'string' ) -MiscTypes.OutPort( 'OutBool' , 'boolean' ) -MiscTypes.OutPort( 'OutChar' , 'char' ) -MiscTypes.OutPort( 'OutShort' , 'short' ) -MiscTypes.OutPort( 'OutLong' , 'long' ) -MiscTypes.OutPort( 'OutFloat' , 'float' ) -MiscTypes.OutPort( 'OutDouble' , 'double' ) -MiscTypes.OutPort( 'OutObjRef' , 'SuperVisionTest::Addre' ) -MiscTypes.SetName( 'MiscTypes' ) -MiscTypes.SetAuthor( '' ) -MiscTypes.SetComment( 'Empty InLine Node' ) -MiscTypes.Coords( 477 , 231 ) - -# Creation of Links -BoolCheckOutBool = BoolCheck.Port( 'OutBool' ) -MiscTypesInBool = GraphEmptyInLinesConvertCheck.Link( BoolCheckOutBool , MiscTypes.Port( 'InBool' ) ) -MiscTypesInBool.AddCoord( 1 , 446 , 341 ) -MiscTypesInBool.AddCoord( 2 , 446 , 172 ) - -CharCheckOutChar = CharCheck.Port( 'OutChar' ) -MiscTypesInChar = GraphEmptyInLinesConvertCheck.Link( CharCheckOutChar , MiscTypes.Port( 'InChar' ) ) -MiscTypesInChar.AddCoord( 1 , 431 , 368 ) -MiscTypesInChar.AddCoord( 2 , 431 , 223 ) - -ShortCheckOutShort = ShortCheck.Port( 'OutShort' ) -MiscTypesInShort = GraphEmptyInLinesConvertCheck.Link( ShortCheckOutShort , MiscTypes.Port( 'InShort' ) ) -MiscTypesInShort.AddCoord( 1 , 415 , 397 ) -MiscTypesInShort.AddCoord( 2 , 414 , 310 ) - -FloatCheckOutFloat = FloatCheck.Port( 'OutFloat' ) -MiscTypesInFloat = GraphEmptyInLinesConvertCheck.Link( FloatCheckOutFloat , MiscTypes.Port( 'InFloat' ) ) - -AdditionAdder = Addition.Port( 'Adder' ) -MiscTypesInObjRef = GraphEmptyInLinesConvertCheck.Link( AdditionAdder , MiscTypes.Port( 'InObjRef' ) ) -MiscTypesInObjRef.AddCoord( 1 , 462 , 514 ) -MiscTypesInObjRef.AddCoord( 2 , 461 , 593 ) - -LongCheckOutLong = LongCheck.Port( 'OutLong' ) -MiscTypesInLong = GraphEmptyInLinesConvertCheck.Link( LongCheckOutLong , MiscTypes.Port( 'InLong' ) ) -MiscTypesInLong.AddCoord( 1 , 406 , 426 ) -MiscTypesInLong.AddCoord( 2 , 405 , 363 ) - -StringCheckOutString = StringCheck.Port( 'OutString' ) -MiscTypesInString = GraphEmptyInLinesConvertCheck.Link( StringCheckOutString , MiscTypes.Port( 'InString' ) ) -MiscTypesInString.AddCoord( 1 , 462 , 312 ) -MiscTypesInString.AddCoord( 2 , 461 , 87 ) - -DoubleCheckOutDouble = DoubleCheck.Port( 'OutDouble' ) -MiscTypesInDouble = GraphEmptyInLinesConvertCheck.Link( DoubleCheckOutDouble , MiscTypes.Port( 'InDouble' ) ) -MiscTypesInDouble.AddCoord( 1 , 445 , 485 ) -MiscTypesInDouble.AddCoord( 2 , 445 , 508 ) - -# Creation of Input datas -BoolCheckInBool = BoolCheck.Input( 'InBool' , 1) -CharCheckInChar = CharCheck.Input( 'InChar' , 255) -ShortCheckInShort = ShortCheck.Input( 'InShort' , 16383) -FloatCheckInFloat = FloatCheck.Input( 'InFloat' , 3.14159) -LongCheckInLong = LongCheck.Input( 'InLong' , 1234567890) -StringCheckInString = StringCheck.Input( 'InString' , 'aString') -DoubleCheckInDouble = DoubleCheck.Input( 'InDouble' , 1.23457) - -# Creation of Output variables -MiscTypesOutString = MiscTypes.Port( 'OutString' ) -MiscTypesOutBool = MiscTypes.Port( 'OutBool' ) -MiscTypesOutChar = MiscTypes.Port( 'OutChar' ) -MiscTypesOutShort = MiscTypes.Port( 'OutShort' ) -MiscTypesOutLong = MiscTypes.Port( 'OutLong' ) -MiscTypesOutFloat = MiscTypes.Port( 'OutFloat' ) -MiscTypesOutDouble = MiscTypes.Port( 'OutDouble' ) -MiscTypesOutObjRef = MiscTypes.Port( 'OutObjRef' ) - -GraphEmptyInLinesConvertCheck.Run() -GraphEmptyInLinesConvertCheck.DoneW() -GraphEmptyInLinesConvertCheck.PrintPorts() diff --git a/Superv/Python/GraphErrMsgs.py b/Superv/Python/GraphErrMsgs.py deleted file mode 100644 index 09b5925..0000000 --- a/Superv/Python/GraphErrMsgs.py +++ /dev/null @@ -1,1254 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# -from SuperV import * - -import sys - -GraphErrMsgs = Graph( "GraphErrMsgs" ) - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/SyrStruct.xml' - -GraphErrMsgs.Import( anXmlFile ) - -exec GraphErrMsgs.ListNodes( 'GraphErrMsgs' ) -# ==> m3,m3incr,incra,div2,incrb,SyrComponent,forN,whileNotOne,fori,whileEven,EndOfforN,EndOfwhileNotOne,EndOffori,EndOfwhileEven,ifNotEven,EndOfifNotEven - -exec ifNotEven.ListPorts() -# ==> IifNotEvenSyrComponent,IifNotEvenN,IifNotEvenK,IifNotEvenGate,OifNotEvenOdd,OifNotEvenEven,OifNotEvenSyrComponent,OifNotEvenN,OifNotEvenK,OifNotEvenDefault - -exec EndOfifNotEven.ListPorts() -# ==> IEndOfifNotEvenN,IEndOfifNotEvenK,IEndOfifNotEvenDefault,OEndOfifNotEvenN,OEndOfifNotEvenK,OEndOfifNotEvenGate - -aLink = GraphErrMsgs.Link( OifNotEvenEven , IEndOfifNotEvenN ) -if aLink != None : - print "Error link from OifNotEvenEven to IEndOfifNotEvenN was created" - print "GraphErrMsgs test failed" - sys.exit(1) - -exec EndOfwhileEven.ListPorts() -# ==> IEndOfwhileEvenSyrComponent,IEndOfwhileEvenN,IEndOfwhileEvenK,IEndOfwhileEvenGate,OEndOfwhileEvenSyrComponent,OEndOfwhileEvenN,OEndOfwhileEvenK,OEndOfwhileEvenGate - -exec EndOffori.ListPorts() -# ==> IEndOfforii,IEndOfforiK,IEndOfforiGate,OEndOfforii,OEndOfforiK,OEndOfforiGate - -aLink = GraphErrMsgs.Link( OEndOfwhileEvenK , IEndOfifNotEvenK ) -aLink.destroy() - -aLink = GraphErrMsgs.Link( OEndOfforiK , IEndOfifNotEvenK ) -aLink.destroy() - -aLink = GraphErrMsgs.Link( OifNotEvenN , IEndOfifNotEvenK ) -if aLink == None : - print "Error link from OifNotEvenN to IEndOfifNotEvenK was not created" - print "GraphErrMsgs test failed" - sys.exit(1) - -exec whileEven.ListPorts() -# ==>IwhileEvenSyrComponent,IwhileEvenN,IwhileEvenK,IwhileEvenGate,OwhileEvenSyrComponent,OwhileEvenN,OwhileEvenK,OwhileEvenGate - -aLink = GraphErrMsgs.Link( OifNotEvenK , IwhileEvenK ) -aLink.destroy() - -aLink = GraphErrMsgs.Link( OifNotEvenOdd , IwhileEvenK ) -if aLink != None : - print "Error link from OifNotEvenOdd to IwhileEvenK was created" - print "GraphErrMsgs test failed" - sys.exit(1) - -aLink = GraphErrMsgs.Link( OifNotEvenDefault , IwhileEvenK ) -if aLink != None : - print "Error link from OifNotEvenDefault to IwhileEvenK was created" - print "GraphErrMsgs test failed" - sys.exit(1) - -exec div2.ListPorts() -# ==> Idiv2anEvenInteger,Idiv2Gate,Odiv2anInteger,Odiv2Gate - -aLink = GraphErrMsgs.Link( OwhileEvenN , Idiv2Gate ) -if aLink != None : - print "Error link from OwhileEvenN to Idiv2Gate was created" - print "GraphErrMsgs test failed" - sys.exit(1) - -print "GraphErrMsgs Errors Messages :" -print GraphErrMsgs.Messages() - -RunOk = GraphErrMsgs.Run() -if RunOk != 0 : - print "Error : Success call to Run" - print "GraphErrMsgs test failed" - sys.exit(1) - -GraphErrMsgs.DoneW() - -print "GraphErrMsgs Errors Messages :" -print GraphErrMsgs.Messages() - - -from SuperV import * - -# GraphBadInputInLoop -GraphBadInputInLoop = Graph( "GraphBadInputInLoop" ) - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphBadInputInLoop.xml' - -GraphBadInputInLoop.Import( anXmlFile ) - -RunOk = GraphBadInputInLoop.Run() -if RunOk != 0 : - print "Error : Success call to Run" - print "GraphBadInputInLoop test failed" - sys.exit(1) - -GraphBadInputInLoop.DoneW() - -print "GraphBadInputInLoop Errors Messages :" -print GraphBadInputInLoop.Messages() - - - -from SuperV import * - -# GraphBadInputInLoop1 -GraphBadInputInLoop1 = Graph( "GraphBadInputInLoop1" ) - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphBadInputInLoop1.xml' - -GraphBadInputInLoop1.Import( anXmlFile ) - -RunOk = GraphBadInputInLoop1.Run() -if RunOk != 0 : - print "Error : Success call to Run" - print "GraphBadInputInLoop1 test failed" - sys.exit(1) - -GraphBadInputInLoop1.DoneW() - -print "GraphBadInputInLoop1 Errors Messages :" -print GraphBadInputInLoop1.Messages() - - - -from SuperV import * - -# GraphBadInputInLoop2 -GraphBadInputInLoop2 = Graph( "GraphBadInputInLoop2" ) - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphBadInputInLoop2.xml' - -GraphBadInputInLoop2.Import( anXmlFile ) - -RunOk = GraphBadInputInLoop2.Run() -if RunOk != 0 : - print "Error : Success call to Run" - print "GraphBadInputInLoop2 test failed" - sys.exit(1) - -GraphBadInputInLoop2.DoneW() - -print "GraphBadInputInLoop2 Errors Messages :" -print GraphBadInputInLoop2.Messages() - - - -from SuperV import * - -# GraphBadInputInLoop3 -GraphBadInputInLoop3 = Graph( "GraphBadInputInLoop3" ) - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphBadInputInLoop3.xml' - -GraphBadInputInLoop3.Import( anXmlFile ) - -RunOk = GraphBadInputInLoop3.Run() -if RunOk != 0 : - print "Error : Success call to Run" - print "GraphBadInputInLoop3 test failed" - sys.exit(1) - -GraphBadInputInLoop3.DoneW() - -print "GraphBadInputInLoop3 Errors Messages :" -print GraphBadInputInLoop3.Messages() - - - -from SuperV import * - -# GraphBadOutputOfLoop -GraphBadOutputOfLoop = Graph( "GraphBadOutputOfLoop" ) - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphBadOutputOfLoop.xml' - -GraphBadOutputOfLoop.Import( anXmlFile ) - -RunOk = GraphBadOutputOfLoop.Run() -if RunOk != 0 : - print "Error : Success call to Run" - print "GraphBadOutputOfLoop test failed" - sys.exit(1) - -GraphBadOutputOfLoop.DoneW() - -print "GraphBadOutputOfLoop Errors Messages :" -print GraphBadOutputOfLoop.Messages() - - - -from SuperV import * - -# GraphBadOutputOfLoop1 -GraphBadOutputOfLoop1 = Graph( "GraphBadOutputOfLoop1" ) - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphBadOutputOfLoop1.xml' - -GraphBadOutputOfLoop1.Import( anXmlFile ) - -RunOk = GraphBadOutputOfLoop1.Run() -if RunOk != 0 : - print "Error : Success call to Run" - print "GraphBadOutputOfLoop1 test failed" - sys.exit(1) - -GraphBadOutputOfLoop1.DoneW() - -print "GraphBadOutputOfLoop1 Errors Messages :" -print GraphBadOutputOfLoop1.Messages() - - - -from SuperV import * - -# GraphBadOutputOfLoop2 -GraphBadOutputOfLoop2 = Graph( "GraphBadOutputOfLoop2" ) - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphBadOutputOfLoop2.xml' - -GraphBadOutputOfLoop2.Import( anXmlFile ) - -RunOk = GraphBadOutputOfLoop2.Run() -if RunOk != 0 : - print "Error : Success call to Run" - print "GraphBadOutputOfLoop2 test failed" - sys.exit(1) - -GraphBadOutputOfLoop2.DoneW() - -print "GraphBadOutputOfLoop2 Errors Messages :" -print GraphBadOutputOfLoop2.Messages() - - - -from SuperV import * - -# GraphConvertObjRefCheckNotCompatible -GraphConvertObjRefCheckNotCompatible = Graph( "GraphConvertObjRefCheckNotCompatible" ) - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphConvertObjRefCheckNotCompatible.xml' - -GraphConvertObjRefCheckNotCompatible.Import( anXmlFile ) - -RunOk = GraphConvertObjRefCheckNotCompatible.Run() -if RunOk != 0 : - print "Error : Success call to Run" - print "GraphConvertObjRefCheckNotCompatible test failed" - sys.exit(1) - -GraphConvertObjRefCheckNotCompatible.DoneW() - -print "GraphConvertObjRefCheckNotCompatible Errors Messages :" -print GraphConvertObjRefCheckNotCompatible.Messages() - - - - -from SuperV import * - -# GraphWrongPythonFunctions -GraphWrongPythonFunctions = Graph( "GraphWrongPythonFunctions" ) - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphWrongPythonFunctions.xml' - -GraphWrongPythonFunctions.Import( anXmlFile ) - -RunOk = GraphWrongPythonFunctions.Run() -if RunOk != 0 : - print "Error : Success call to Run" - print "GraphWrongPythonFunctions test failed" - sys.exit(1) - -GraphWrongPythonFunctions.DoneW() - -print "GraphWrongPythonFunctions Errors Messages :" -print GraphWrongPythonFunctions.Messages() - - - -from SuperV import * - -# GraphWrongContainerOrComponent -GraphWrongContainerOrComponent = Graph( "GraphWrongContainerOrComponent" ) - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphWrongContainerOrComponent.xml' - -GraphWrongContainerOrComponent.Import( anXmlFile ) - -RunOk = GraphWrongContainerOrComponent.Run() -if RunOk == 0 : - print "Error : UnSuccess call to Run" - print "GraphWrongContainerOrComponent test failed" - sys.exit(1) - -GraphWrongContainerOrComponent.DoneW() - -print "GraphWrongContainerOrComponent Errors Messages :" -print GraphWrongContainerOrComponent.Messages() - - - -from SuperV import * - -# GraphLoopSwitchDefaultAborted -GraphLoopSwitchDefaultAborted = Graph( "GraphLoopSwitchDefaultAborted" ) - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphLoopSwitchDefaultAborted.xml' - -GraphLoopSwitchDefaultAborted.Import( anXmlFile ) - -RunOk = GraphLoopSwitchDefaultAborted.Run() -if RunOk == 0 : - print "Error : UnSuccess call to Run" - print "GraphLoopSwitchDefaultAborted test failed" - sys.exit(1) - -GraphLoopSwitchDefaultAborted.DoneW() - -print "GraphLoopSwitchDefaultAborted Errors Messages :" -print GraphLoopSwitchDefaultAborted.Messages() - - - -from SuperV import * - -# GraphLoopSwitchOfSwitchAborted -GraphLoopSwitchOfSwitchAborted = Graph( "GraphLoopSwitchOfSwitchAborted" ) - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphLoopSwitchOfSwitchAborted.xml' - -GraphLoopSwitchOfSwitchAborted.Import( anXmlFile ) - -RunOk = GraphLoopSwitchOfSwitchAborted.Run() -if RunOk == 0 : - print "Error : UnSuccess call to Run" - print "GraphLoopSwitchOfSwitchAborted test failed" - sys.exit(1) - -GraphLoopSwitchOfSwitchAborted.DoneW() - -print "GraphLoopSwitchOfSwitchAborted Errors Messages :" -print GraphLoopSwitchOfSwitchAborted.Messages() - - - -from SuperV import * - -# GraphLoopSwitchOfSwitchNOTValid -GraphLoopSwitchOfSwitchNOTValid = Graph( "GraphLoopSwitchOfSwitchNOTValid" ) - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphLoopSwitchOfSwitchNOTValid.xml' - -GraphLoopSwitchOfSwitchNOTValid.Import( anXmlFile ) - -RunOk = GraphLoopSwitchOfSwitchNOTValid.Run() -if RunOk != 0 : - print "Error : Success call to Run" - print "GraphLoopSwitchOfSwitchNOTValid test failed" - sys.exit(1) - -GraphLoopSwitchOfSwitchNOTValid.DoneW() - -print "GraphLoopSwitchOfSwitchNOTValid Errors Messages :" -print GraphLoopSwitchOfSwitchNOTValid.Messages() - - -from SuperV import * - -# GraphLoopSwitchsAborted -GraphLoopSwitchsAborted = Graph( "GraphLoopSwitchsAborted" ) - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphLoopSwitchsAborted.xml' - -GraphLoopSwitchsAborted.Import( anXmlFile ) - -RunOk = GraphLoopSwitchsAborted.Run() -if RunOk == 0 : - print "Error : UnSuccess call to Run" - print "GraphLoopSwitchsAborted test failed" - sys.exit(1) - -GraphLoopSwitchsAborted.DoneW() - -print "GraphLoopSwitchsAborted Errors Messages :" -print GraphLoopSwitchsAborted.Messages() - - - -from SuperV import * - -# GraphLoopSwitchsBranchesDefaultAborted -GraphLoopSwitchsBranchesDefaultAborted = Graph( "GraphLoopSwitchsBranchesDefaultAborted" ) - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphLoopSwitchsBranchesDefaultAborted.xml' - -GraphLoopSwitchsBranchesDefaultAborted.Import( anXmlFile ) - -RunOk = GraphLoopSwitchsBranchesDefaultAborted.Run() -if RunOk == 0 : - print "Error : UnSuccess call to Run" - print "GraphLoopSwitchsBranchesDefaultAborted test failed" - sys.exit(1) - -GraphLoopSwitchsBranchesDefaultAborted.DoneW() - -print "GraphLoopSwitchsBranchesDefaultAborted Errors Messages :" -print GraphLoopSwitchsBranchesDefaultAborted.Messages() - - - -from SuperV import * - -# GraphLoopSwitchsNOTValid -GraphLoopSwitchsNOTValid = Graph( "GraphLoopSwitchsNOTValid" ) - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphLoopSwitchsNOTValid.xml' - -GraphLoopSwitchsNOTValid.Import( anXmlFile ) - -RunOk = GraphLoopSwitchsNOTValid.Run() -if RunOk != 0 : - print "Error : Success call to Run" - print "GraphLoopSwitchsNOTValid test failed" - sys.exit(1) - -GraphLoopSwitchsNOTValid.DoneW() - -print "GraphLoopSwitchsNOTValid Errors Messages :" -print GraphLoopSwitchsNOTValid.Messages() - - -from SuperV import * - -# GraphSwitchCheckBranch2NOTValid -GraphSwitchCheckBranch2NOTValid = Graph( "GraphSwitchCheckBranch2NOTValid" ) - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphSwitchCheckBranch2NOTValid.xml' - -GraphSwitchCheckBranch2NOTValid.Import( anXmlFile ) - -RunOk = GraphSwitchCheckBranch2NOTValid.Run() -if RunOk != 0 : - print "Error : Success call to Run" - print "GraphSwitchCheckBranch2NOTValid test failed" - sys.exit(1) - -GraphSwitchCheckBranch2NOTValid.DoneW() - -print "GraphSwitchCheckBranch2NOTValid Errors Messages :" -print GraphSwitchCheckBranch2NOTValid.Messages() - - -from SuperV import * - -# GraphSwitchCheckDefault1NOTValid -GraphSwitchCheckDefault1NOTValid = Graph( "GraphSwitchCheckDefault1NOTValid" ) - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphSwitchCheckDefault1NOTValid.xml' - -GraphSwitchCheckDefault1NOTValid.Import( anXmlFile ) - -RunOk = GraphSwitchCheckDefault1NOTValid.Run() -if RunOk != 0 : - print "Error : Success call to Run" - print "GraphSwitchCheckDefault1NOTValid test failed" - sys.exit(1) - -GraphSwitchCheckDefault1NOTValid.DoneW() - -print "GraphSwitchCheckDefault1NOTValid Errors Messages :" -print GraphSwitchCheckDefault1NOTValid.Messages() - - -from SuperV import * - -# GraphSwitchCheckDefault2NOTValid -GraphSwitchCheckDefault2NOTValid = Graph( "GraphSwitchCheckDefault2NOTValid" ) - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphSwitchCheckDefault2NOTValid.xml' - -GraphSwitchCheckDefault2NOTValid.Import( anXmlFile ) - -RunOk = GraphSwitchCheckDefault2NOTValid.Run() -if RunOk != 0 : - print "Error : Success call to Run" - print "GraphSwitchCheckDefault2NOTValid test failed" - sys.exit(1) - -GraphSwitchCheckDefault2NOTValid.DoneW() - -print "GraphSwitchCheckDefault2NOTValid Errors Messages :" -print GraphSwitchCheckDefault2NOTValid.Messages() - - -from SuperV import * - -# GraphSwitchCheckDefault2NOTValid1 -GraphSwitchCheckDefault2NOTValid1 = Graph( "GraphSwitchCheckDefault2NOTValid1" ) - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphSwitchCheckDefault2NOTValid1.xml' - -GraphSwitchCheckDefault2NOTValid1.Import( anXmlFile ) - -RunOk = GraphSwitchCheckDefault2NOTValid1.Run() -if RunOk != 0 : - print "Error : Success call to Run" - print "GraphSwitchCheckDefault2NOTValid1 test failed" - sys.exit(1) - -GraphSwitchCheckDefault2NOTValid1.DoneW() - -print "GraphSwitchCheckDefault2NOTValid1 Errors Messages :" -print GraphSwitchCheckDefault2NOTValid1.Messages() - - -from SuperV import * - -# GraphSwitchCheckDefault2NOTValid2 -GraphSwitchCheckDefault2NOTValid2 = Graph( "GraphSwitchCheckDefault2NOTValid2" ) - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphSwitchCheckDefault2NOTValid2.xml' - -GraphSwitchCheckDefault2NOTValid2.Import( anXmlFile ) - -RunOk = GraphSwitchCheckDefault2NOTValid2.Run() -if RunOk != 0 : - print "Error : Success call to Run" - print "GraphSwitchCheckDefault2NOTValid2 test failed" - sys.exit(1) - -GraphSwitchCheckDefault2NOTValid2.DoneW() - -print "GraphSwitchCheckDefault2NOTValid2 Errors Messages :" -print GraphSwitchCheckDefault2NOTValid2.Messages() - - -from SuperV import * - -# GraphSwitchCrash -GraphSwitchCrash = Graph( "GraphSwitchCrash" ) - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphSwitchCrash.xml' - -GraphSwitchCrash.Import( anXmlFile ) - -RunOk = GraphSwitchCrash.Run() -if RunOk == 0 : - print "Error : UnSuccess call to Run" - print "GraphSwitchCrash test failed" - sys.exit(1) - -GraphSwitchCrash.DoneW() - -print "GraphSwitchCrash Errors Messages :" -print GraphSwitchCrash.Messages() - - -from SuperV import * - -# GraphSwitchErrExec -GraphSwitchErrExec = Graph( "GraphSwitchErrExec" ) - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphSwitchErrExec.xml' - -GraphSwitchErrExec.Import( anXmlFile ) - -RunOk = GraphSwitchErrExec.Run() -if RunOk == 0 : - print "Error : UnSuccess call to Run" - print "GraphSwitchErrExec test failed" - sys.exit(1) - -GraphSwitchErrExec.DoneW() - -print "GraphSwitchErrExec Errors Messages :" -print GraphSwitchErrExec.Messages() - - -from SuperV import * - -# GraphSwitchGatesNoDefaultAborted -GraphSwitchGatesNoDefaultAborted = Graph( "GraphSwitchGatesNoDefaultAborted" ) - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphSwitchGatesNoDefaultAborted.xml' - -GraphSwitchGatesNoDefaultAborted.Import( anXmlFile ) - -RunOk = GraphSwitchGatesNoDefaultAborted.Run() -if RunOk == 0 : - print "Error : UnSuccess call to Run" - print "GraphSwitchGatesNoDefaultAborted test failed" - sys.exit(1) - -GraphSwitchGatesNoDefaultAborted.DoneW() - -print "GraphSwitchGatesNoDefaultAborted Errors Messages :" -print GraphSwitchGatesNoDefaultAborted.Messages() - - -from SuperV import * - -# GraphSwitchOutputNOTValid -GraphSwitchOutputNOTValid = Graph( "GraphSwitchOutputNOTValid" ) - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphSwitchOutputNOTValid.xml' - -GraphSwitchOutputNOTValid.Import( anXmlFile ) - -RunOk = GraphSwitchOutputNOTValid.Run() -if RunOk != 0 : - print "Error : Success call to Run" - print "GraphSwitchOutputNOTValid test failed" - sys.exit(1) - -GraphSwitchOutputNOTValid.DoneW() - -print "GraphSwitchOutputNOTValid Errors Messages :" -print GraphSwitchOutputNOTValid.Messages() - - -from SuperV import * - -# GraphSyrControlAborted -GraphSyrControlAborted = Graph( "GraphSyrControlAborted" ) - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphSyrControlAborted.xml' - -GraphSyrControlAborted.Import( anXmlFile ) - -RunOk = GraphSyrControlAborted.Run() -if RunOk == 0 : - print "Error : UnSuccess call to Run" - print "GraphSyrControlAborted test failed" - sys.exit(1) - -GraphSyrControlAborted.DoneW() - -print "GraphSyrControlAborted Errors Messages :" -print GraphSyrControlAborted.Messages() - - -from SuperV import * - -# GraphSyrControlAve -GraphSyrControlAve = Graph( "GraphSyrControlAve" ) - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphSyrControlAve.xml' - -GraphSyrControlAve.Import( anXmlFile ) - -RunOk = GraphSyrControlAve.Run() -if RunOk == 0 : - print "Error : Success call to Run" - print "GraphSyrControlAve test failed" - sys.exit(1) - -GraphSyrControlAve.DoneW() - -State = GraphSyrControlAve.State() -if State != SUPERV.DoneState: - Messages = GraphSyrControlAve.Messages() - print "Error GraphSyrControlAve has Messages :" - print Messages - sys.exit(1) - - -from SuperV import * - -# GraphSyrControlAveValid -GraphSyrControlAveValid = Graph( "GraphSyrControlAveValid" ) - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphSyrControlAveValid.xml' - -GraphSyrControlAveValid.Import( anXmlFile ) - -RunOk = GraphSyrControlAveValid.Run() -if RunOk == 0 : - print "Error : Success call to Run" - print "GraphSyrControlAveValid test failed" - sys.exit(1) - -GraphSyrControlAveValid.DoneW() - -Messages = GraphSyrControlAveValid.Messages() -State = GraphSyrControlAveValid.State() -if State != SUPERV.DoneState: - print "Error GraphSyrControlAveValid has Messages :" - print Messages - sys.exit(1) - - -from SuperV import * - -# GraphSyrControlAveExecutable -GraphSyrControlAveExecutable = Graph( "GraphSyrControlAveExecutable" ) - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphSyrControlAveExecutable.xml' - -GraphSyrControlAveExecutable.Import( anXmlFile ) - -RunOk = GraphSyrControlAveExecutable.Run() -if RunOk == 0 : - print "Error : UnSuccess call to Run" - print "GraphSyrControlAveExecutable test failed" - sys.exit(1) - -GraphSyrControlAveExecutable.DoneW() - -State = GraphSyrControlAveExecutable.State() -if State != SUPERV.DoneState: - Messages = GraphSyrControlAveExecutable.Messages() - print "Error GraphSyrControlAveExecutable has Messages :" - print Messages - sys.exit(1) - - -from SuperV import * - -# GraphSyrControlAveNOTValid -GraphSyrControlAveNOTValid = Graph( "GraphSyrControlAveNOTValid" ) - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphSyrControlAveNOTValid.xml' - -GraphSyrControlAveNOTValid.Import( anXmlFile ) - -RunOk = GraphSyrControlAveNOTValid.Run() -if RunOk != 0 : - print "Error : Success call to Run" - print "GraphSyrControlAveNOTValid test failed" - sys.exit(1) - -GraphSyrControlAveNOTValid.DoneW() - -print "GraphSyrControlAveNOTValid Errors Messages :" -print GraphSyrControlAveNOTValid.Messages() - - -from SuperV import * - -# GraphSyrControlAveNOTValid1 -GraphSyrControlAveNOTValid1 = Graph( "GraphSyrControlAveNOTValid1" ) - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphSyrControlAveNOTValid1.xml' - -GraphSyrControlAveNOTValid1.Import( anXmlFile ) - -RunOk = GraphSyrControlAveNOTValid1.Run() -if RunOk != 0 : - print "Error : UnSuccess call to Run" - print "GraphSyrControlAveNOTValid1 test failed" - sys.exit(1) - -GraphSyrControlAveNOTValid1.DoneW() - -print "GraphSyrControlAveNOTValid1 Errors Messages :" -print GraphSyrControlAveNOTValid1.Messages() - - - -from SuperV import * - -# GraphSwitch -GraphSwitch = Graph( "GraphSwitch" ) - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphSwitch.xml' - -GraphSwitch.Import( anXmlFile ) - -RunOk = GraphSwitch.Run() -if RunOk == 0 : - print "Error : UnSuccess call to Run" - print "GraphSwitch test failed" - sys.exit(1) - -GraphSwitch.DoneW() - -Messages = GraphSwitch.Messages() -if Messages != "" : - print "Error GraphSwitch has Messages :" - print Messages - sys.exit(1) - - -from SuperV import * - -# GraphSwitchExecutable -GraphSwitchExecutable = Graph( "GraphSwitchExecutable" ) - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphSwitchExecutable.xml' - -GraphSwitchExecutable.Import( anXmlFile ) - -RunOk = GraphSwitchExecutable.Run() -if RunOk == 0 : - print "Error : UnSuccess call to Run" - print "GraphSwitchExecutable test failed" - sys.exit(1) - -GraphSwitchExecutable.DoneW() - -Messages = GraphSwitchExecutable.Messages() -if Messages != "" : - print "Error GraphSwitchExecutable has Messages :" - print Messages - sys.exit(1) - - -from SuperV import * - -# GraphSwitchNOTExecutable -GraphSwitchNOTExecutable = Graph( "GraphSwitchNOTExecutable" ) - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphSwitchNOTExecutable.xml' - -GraphSwitchNOTExecutable.Import( anXmlFile ) - -RunOk = GraphSwitchNOTExecutable.Run() -if RunOk != 0 : - print "Error : Success call to Run" - print "GraphSwitchNOTExecutable test failed" - sys.exit(1) - -GraphSwitchNOTExecutable.DoneW() - -print "GraphSwitchNOTExecutable Errors Messages :" -print GraphSwitchNOTExecutable.Messages() - - -from SuperV import * - -# GraphSwitchNOTExecutable1 -GraphSwitchNOTExecutable1 = Graph( "GraphSwitchNOTExecutable1" ) - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphSwitchNOTExecutable1.xml' - -GraphSwitchNOTExecutable1.Import( anXmlFile ) - -RunOk = GraphSwitchNOTExecutable1.Run() -if RunOk != 0 : - print "Error : Success call to Run" - print "GraphSwitchNOTExecutable1 test failed" - sys.exit(1) - -GraphSwitchNOTExecutable1.DoneW() - -print "GraphSwitchNOTExecutable1 Errors Messages :" -print GraphSwitchNOTExecutable1.Messages() - - - -from SuperV import * - -# GraphSwitchNOTExecutable2 -GraphSwitchNOTExecutable2 = Graph( "GraphSwitchNOTExecutable2" ) - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphSwitchNOTExecutable2.xml' - -GraphSwitchNOTExecutable2.Import( anXmlFile ) - -RunOk = GraphSwitchNOTExecutable2.Run() -if RunOk != 0 : - print "Error : Success call to Run" - print "GraphSwitchNOTExecutable2 test failed" - sys.exit(1) - -GraphSwitchNOTExecutable2.DoneW() - -print "GraphSwitchNOTExecutable2 Errors Messages :" -print GraphSwitchNOTExecutable2.Messages() - - - -from SuperV import * - -# GraphSwitchBranchGates -GraphSwitchBranchGates = Graph( "GraphSwitchBranchGates" ) - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphSwitchBranchGates.xml' - -GraphSwitchBranchGates.Import( anXmlFile ) - -RunOk = GraphSwitchBranchGates.Run() -if RunOk == 0 : - print "Error : UnSuccess call to Run" - print "GraphSwitchBranchGates test failed" - sys.exit(1) - -GraphSwitchBranchGates.DoneW() - -Messages = GraphSwitchBranchGates.Messages() -if Messages != "" : - print "Error GraphSwitchBranchGates has Messages :" - print Messages - sys.exit(1) - - -from SuperV import * - -# GraphInLinesUnValid -GraphInLinesUnValid = Graph( "GraphInLinesUnValid" ) - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphInLinesUnValid.xml' - -GraphInLinesUnValid.Import( anXmlFile ) - -RunOk = GraphInLinesUnValid.Run() -if RunOk != 0 : - print "Error : Success call to Run" - print "GraphInLinesUnValid test failed" - sys.exit(1) - -GraphInLinesUnValid.DoneW() - -print "GraphInLinesUnValid Errors Messages :" -print GraphInLinesUnValid.Messages() - - - -from SuperV import * - -# GraphSwitchCheckBranch2NOTValid -GraphSwitchCheckBranch2NOTValid = Graph( "GraphSwitchCheckBranch2NOTValid" ) - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphSwitchCheckBranch2NOTValid.xml' - -GraphSwitchCheckBranch2NOTValid.Import( anXmlFile ) - -RunOk = GraphSwitchCheckBranch2NOTValid.Run() -if RunOk != 0 : - print "Error : Success call to Run" - print "GraphSwitchCheckBranch2NOTValid test failed" - sys.exit(1) - -GraphSwitchCheckBranch2NOTValid.DoneW() - -print "GraphSwitchCheckBranch2NOTValid Errors Messages :" -print GraphSwitchCheckBranch2NOTValid.Messages() - - - -from SuperV import * - -# GraphSwitchCheckDefault1NOTValid -GraphSwitchCheckDefault1NOTValid = Graph( "GraphSwitchCheckDefault1NOTValid" ) - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphSwitchCheckDefault1NOTValid.xml' - -GraphSwitchCheckDefault1NOTValid.Import( anXmlFile ) - -RunOk = GraphSwitchCheckDefault1NOTValid.Run() -if RunOk != 0 : - print "Error : Success call to Run" - print "GraphSwitchCheckDefault1NOTValid test failed" - sys.exit(1) - -GraphSwitchCheckDefault1NOTValid.DoneW() - -print "GraphSwitchCheckDefault1NOTValid Errors Messages :" -print GraphSwitchCheckDefault1NOTValid.Messages() - - -from SuperV import * - -# GraphSwitchCheckDefault2NOTValid -GraphSwitchCheckDefault2NOTValid = Graph( "GraphSwitchCheckDefault2NOTValid" ) - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphSwitchCheckDefault2NOTValid.xml' - -GraphSwitchCheckDefault2NOTValid.Import( anXmlFile ) - -RunOk = GraphSwitchCheckDefault2NOTValid.Run() -if RunOk != 0 : - print "Error : Success call to Run" - print "GraphSwitchCheckDefault2NOTValid test failed" - sys.exit(1) - -GraphSwitchCheckDefault2NOTValid.DoneW() - -print "GraphSwitchCheckDefault2NOTValid Errors Messages :" -print GraphSwitchCheckDefault2NOTValid.Messages() - - - - -from SuperV import * - -# GraphSwitchCheckDefault2NOTValid1 -GraphSwitchCheckDefault2NOTValid1 = Graph( "GraphSwitchCheckDefault2NOTValid1" ) - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphSwitchCheckDefault2NOTValid1.xml' - -GraphSwitchCheckDefault2NOTValid1.Import( anXmlFile ) - -RunOk = GraphSwitchCheckDefault2NOTValid1.Run() -if RunOk != 0 : - print "Error : Success call to Run" - print "GraphSwitchCheckDefault2NOTValid1 test failed" - sys.exit(1) - -GraphSwitchCheckDefault2NOTValid1.DoneW() - -print "GraphSwitchCheckDefault2NOTValid1 Errors Messages :" -print GraphSwitchCheckDefault2NOTValid1.Messages() - - - -from SuperV import * - -# GraphSwitchCheckDefault2NOTValid2 -GraphSwitchCheckDefault2NOTValid2 = Graph( "GraphSwitchCheckDefault2NOTValid2" ) - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphSwitchCheckDefault2NOTValid2.xml' - -GraphSwitchCheckDefault2NOTValid2.Import( anXmlFile ) - -RunOk = GraphSwitchCheckDefault2NOTValid2.Run() -if RunOk != 0 : - print "Error : Success call to Run" - print "GraphSwitchCheckDefault2NOTValid2 test failed" - sys.exit(1) - -GraphSwitchCheckDefault2NOTValid2.DoneW() - -print "GraphSwitchCheckDefault2NOTValid2 Errors Messages :" -print GraphSwitchCheckDefault2NOTValid2.Messages() - - -from SuperV import * - -# GraphLoopsCoupled -GraphLoopsCoupled = Graph( "GraphLoopsCoupled" ) - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphLoopsCoupled.xml' - -GraphLoopsCoupled.Import( anXmlFile ) - -RunOk = GraphLoopsCoupled.Run() -if RunOk != 0 : - print "Error : Success call to Run" - print "GraphLoopsCoupled test failed" - sys.exit(1) - -GraphLoopsCoupled.DoneW() - -print "GraphLoopsCoupled Errors Messages :" -print GraphLoopsCoupled.Messages() - - -from SuperV import * - -# GraphLoopGates -GraphLoopGates = Graph( "GraphLoopGates" ) - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphLoopGates.xml' - -GraphLoopGates.Import( anXmlFile ) - -RunOk = GraphLoopGates.Run() -if RunOk == 0 : - print "Error : UnSuccess call to Run" - print "GraphLoopGates test failed" - sys.exit(1) - -GraphLoopGates.DoneW() - -Messages = GraphSwitchBranchGates.Messages() -if Messages != "" : - print "Error GraphSwitchBranchGates has Messages :" - print Messages - sys.exit(1) - - - -from SuperV import * - -# GraphLoopGatesNOTValid -GraphLoopGatesNOTValid = Graph( "GraphLoopGatesNOTValid" ) - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphLoopGatesNOTValid.xml' - -GraphLoopGatesNOTValid.Import( anXmlFile ) - -RunOk = GraphLoopGatesNOTValid.Run() -if RunOk != 0 : - print "Error : Success call to Run" - print "GraphLoopGatesNOTValid test failed" - sys.exit(1) - -GraphLoopGatesNOTValid.DoneW() - -print "GraphLoopGatesNOTValid Errors Messages :" -print GraphLoopGatesNOTValid.Messages() - - -from SuperV import * - -# GraphSwitchManyCases -GraphSwitchManyCases = Graph( "GraphSwitchManyCases" ) - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphSwitchManyCases.xml' - -GraphSwitchManyCases.Import( anXmlFile ) - -RunOk = GraphSwitchManyCases.Run() -if RunOk == 0: - print "Error : UnSuccess call to Run" - print "GraphSwitchManyCases test failed" - sys.exit(1) - -GraphSwitchManyCases.DoneW() - -print "GraphSwitchManyCases Errors Messages :" -print GraphSwitchManyCases.Messages() - - - -from SuperV import * - -# GraphLoopTwoBranches -GraphLoopTwoBranches = Graph( "GraphLoopTwoBranches" ) - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphLoopTwoBranches.xml' - -GraphLoopTwoBranches.Import( anXmlFile ) - -RunOk = GraphLoopTwoBranches.Run() -if RunOk == 0 : - print "Error : UnSuccess call to Run" - print "GraphLoopTwoBranches test failed" - sys.exit(1) - -GraphLoopTwoBranches.DoneW() - -print "GraphLoopTwoBranches Errors Messages :" -print GraphLoopTwoBranches.Messages() - - - -from SuperV import * - -# GraphSwitchOutputNOTValid -GraphSwitchOutputNOTValid = Graph( "GraphSwitchOutputNOTValid" ) - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphSwitchOutputNOTValid.xml' - -GraphSwitchOutputNOTValid.Import( anXmlFile ) - -RunOk = GraphSwitchOutputNOTValid.Run() -if RunOk != 0 : - print "Error : Success call to Run" - print "GraphSwitchOutputNOTValid test failed" - sys.exit(1) - -GraphSwitchOutputNOTValid.DoneW() - -print "GraphSwitchOutputNOTValid Errors Messages :" -print GraphSwitchOutputNOTValid.Messages() - - - -from SuperV import * - -# GraphLoopSwitch -GraphLoopSwitch = Graph( "GraphLoopSwitch" ) - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphLoopSwitch.xml' - -GraphLoopSwitch.Import( anXmlFile ) - -RunOk = GraphLoopSwitch.Run() -if RunOk == 0 : - print "Error : UnSuccess call to Run" - print "GraphLoopSwitch test failed" - sys.exit(1) - -GraphLoopSwitch.DoneW() - -Messages = GraphLoopSwitch.Messages() -if Messages != "" : - print "Error GraphLoopSwitch has Messages :" - print Messages - sys.exit(1) - - - -from SuperV import * - -# GraphLoopSwitchGateDefault -GraphLoopSwitchGateDefault = Graph( "GraphLoopSwitchGateDefault" ) - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphLoopSwitchGateDefault.xml' - -GraphLoopSwitchGateDefault.Import( anXmlFile ) - -RunOk = GraphLoopSwitchGateDefault.Run() -if RunOk == 0 : - print "Error : UnSuccess call to Run" - print "GraphLoopSwitchGateDefault test failed" - sys.exit(1) - -GraphLoopSwitchGateDefault.DoneW() - -Messages = GraphLoopSwitchGateDefault.Messages() -if Messages != "" : - print "Error GraphLoopSwitchGateDefault has Messages :" - print Messages - sys.exit(1) - - -from SuperV import * - -# GraphLoopSwitchGatesDefault -GraphLoopSwitchGatesDefault = Graph( "GraphLoopSwitchGatesDefault" ) - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphLoopSwitchGatesDefault.xml' - -GraphLoopSwitchGatesDefault.Import( anXmlFile ) - -RunOk = GraphLoopSwitchGatesDefault.Run() -if RunOk == 1 : - print "Error : Success call to Run" - print "GraphLoopSwitchGatesDefault test failed" - sys.exit(1) - -GraphLoopSwitchGatesDefault.DoneW() - -print "GraphLoopSwitchGatesDefault Errors Messages :" -print GraphLoopSwitchGatesDefault.Messages() diff --git a/Superv/Python/GraphEssai.py b/Superv/Python/GraphEssai.py deleted file mode 100644 index 5c6d4e5..0000000 --- a/Superv/Python/GraphEssai.py +++ /dev/null @@ -1,112 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphEssai -# -from SuperV import * -# Graph creation -GraphEssai = Graph( 'GraphEssai' ) -GraphEssai.SetName( 'GraphEssai' ) -GraphEssai.SetAuthor( '' ) -GraphEssai.SetComment( '' ) -GraphEssai.Coords( 0 , 0 ) - -# Creation of Factory Nodes - -Add = GraphEssai.FNode( 'AddComponent' , 'AddComponent' , 'Add' ) -Add.SetName( 'Add' ) -Add.SetAuthor( '' ) -Add.SetContainer( 'FactoryServer' ) -Add.SetComment( 'Add from AddComponent' ) -Add.Coords( 15 , 241 ) - -Sub = GraphEssai.FNode( 'SubComponent' , 'SubComponent' , 'Sub' ) -Sub.SetName( 'Sub' ) -Sub.SetAuthor( '' ) -Sub.SetContainer( 'FactoryServer' ) -Sub.SetComment( 'Sub from SubComponent' ) -Sub.Coords( 227 , 96 ) - -Mul = GraphEssai.FNode( 'MulComponent' , 'MulComponent' , 'Mul' ) -Mul.SetName( 'Mul' ) -Mul.SetAuthor( '' ) -Mul.SetContainer( 'FactoryServer' ) -Mul.SetComment( 'Mul from MulComponent' ) -Mul.Coords( 435 , 242 ) - -Div = GraphEssai.FNode( 'DivComponent' , 'DivComponent' , 'Div' ) -Div.SetName( 'Div' ) -Div.SetAuthor( '' ) -Div.SetContainer( 'FactoryServer' ) -Div.SetComment( 'Div from DivComponent' ) -Div.Coords( 634 , 97 ) - -# Creation of Links -Addz = Add.Port( 'z' ) -Muly = GraphEssai.Link( Addz , Mul.Port( 'y' ) ) - -Suby = GraphEssai.Link( Addz , Sub.Port( 'y' ) ) -Suby.AddCoord( 1 , 197 , 204 ) -Suby.AddCoord( 2 , 198 , 351 ) - -Subz = Sub.Port( 'z' ) -Divx = GraphEssai.Link( Subz , Div.Port( 'x' ) ) - -Mulx = GraphEssai.Link( Subz , Mul.Port( 'x' ) ) -Mulx.AddCoord( 1 , 411 , 323 ) -Mulx.AddCoord( 2 , 411 , 177 ) - -Mulz = Mul.Port( 'z' ) -Divy = GraphEssai.Link( Mulz , Div.Port( 'y' ) ) -Divy.AddCoord( 1 , 612 , 207 ) -Divy.AddCoord( 2 , 612 , 322 ) - -# Creation of Input datas -Addx = Add.Input( 'x' , 3) -Addy = Add.Input( 'y' , 4.5) -Subx = Sub.Input( 'x' , 1.5) - -# Creation of Output variables -AddFuncValue = Add.Port( 'FuncValue' ) -Divz = Div.Port( 'z' ) - -Add.Print() -Sub.Print() -Mul.Print() -Div.Print() - -GraphEssai.PrintPorts() - -nodes = GraphEssai.LevelNodes( 0 ) -i = 0 -while i < len( nodes ) : - print 'Nodes of level 0',nodes[i].Name() - i = i + 1 - -GraphEssai.Run() - -GraphEssai.DoneW() - -GraphEssai.State() - -GraphEssai.PrintPorts() - diff --git a/Superv/Python/GraphEssai1.py b/Superv/Python/GraphEssai1.py deleted file mode 100755 index 760422d..0000000 --- a/Superv/Python/GraphEssai1.py +++ /dev/null @@ -1,98 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphEssai1 -# -from SuperV import * -# Graph creation -GraphEssai1 = Graph( 'GraphEssai1' ) -GraphEssai1.SetName( 'GraphEssai1' ) -GraphEssai1.SetAuthor( '' ) -GraphEssai1.SetComment( '' ) -GraphEssai1.Coords( 0 , 0 ) - -# Creation of Factory Nodes - -Add = GraphEssai1.FNode( 'AddComponent' , 'AddComponent' , 'Add' ) -Add.SetName( 'Add' ) -Add.SetAuthor( '' ) -Add.SetContainer( 'localhost/FactoryServer' ) -Add.SetComment( 'Add from AddComponent' ) -Add.Coords( 16 , 262 ) - -Sub = GraphEssai1.FNode( 'SubComponent' , 'SubComponent' , 'Sub' ) -Sub.SetName( 'Sub' ) -Sub.SetAuthor( '' ) -Sub.SetContainer( 'localhost/FactoryServer' ) -Sub.SetComment( 'Sub from SubComponent' ) -Sub.Coords( 219 , 54 ) - -Mul = GraphEssai1.FNode( 'MulComponent' , 'MulComponent' , 'Mul' ) -Mul.SetName( 'Mul' ) -Mul.SetAuthor( '' ) -Mul.SetContainer( 'localhost/FactoryServer' ) -Mul.SetComment( 'Mul from MulComponent' ) -Mul.Coords( 419 , 262 ) - -Div = GraphEssai1.FNode( 'DivComponent' , 'DivComponent' , 'Div' ) -Div.SetName( 'Div' ) -Div.SetAuthor( '' ) -Div.SetContainer( 'localhost/FactoryServer' ) -Div.SetComment( 'Div from DivComponent' ) -Div.Coords( 623 , 55 ) - -# Creation of Links -Addz = Add.Port( 'z' ) -Subx = GraphEssai1.Link( Addz , Sub.Port( 'x' ) ) -Subx.AddCoord( 1 , 193 , 135 ) -Subx.AddCoord( 2 , 193 , 372 ) - -Subz = Sub.Port( 'z' ) -Divx = GraphEssai1.Link( Subz , Div.Port( 'x' ) ) - -Mulx = GraphEssai1.Link( Subz , Mul.Port( 'x' ) ) -Mulx.AddCoord( 1 , 396 , 343 ) -Mulx.AddCoord( 2 , 397 , 136 ) - -Mulz = Mul.Port( 'z' ) -Divy = GraphEssai1.Link( Mulz , Div.Port( 'y' ) ) -Divy.AddCoord( 1 , 598 , 163 ) -Divy.AddCoord( 2 , 598 , 343 ) - -# Creation of Input datas -Addx = Add.Input( 'x' , 3) -Addy = Add.Input( 'y' , 5) -Suby = Sub.Input( 'y' , 7) -Muly = Mul.Input( 'y' , 11) - -# Creation of Output variables -AddFuncValue = Add.Port( 'FuncValue' ) -Divz = Div.Port( 'z' ) - -GraphEssai1.Run() - -GraphEssai1.DoneW() - -GraphEssai1.State() - -GraphEssai1.PrintPorts() - diff --git a/Superv/Python/GraphEssai2.py b/Superv/Python/GraphEssai2.py deleted file mode 100755 index 993ddc8..0000000 --- a/Superv/Python/GraphEssai2.py +++ /dev/null @@ -1,101 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphEssai2 -# -from SuperV import * -# Graph creation -GraphEssai2 = Graph( 'GraphEssai2' ) -GraphEssai2.SetName( 'GraphEssai2' ) -GraphEssai2.SetAuthor( '' ) -GraphEssai2.SetComment( '' ) -GraphEssai2.Coords( 0 , 0 ) - -# Creation of Factory Nodes - -Add = GraphEssai2.FNode( 'AddComponent' , 'AddComponent' , 'Add' ) -Add.SetName( 'Add' ) -Add.SetAuthor( '' ) -Add.SetContainer( 'localhost/FactoryServer' ) -Add.SetComment( 'Add from AddComponent' ) -Add.Coords( 18 , 239 ) - -Sub = GraphEssai2.FNode( 'SubComponent' , 'SubComponent' , 'Sub' ) -Sub.SetName( 'Sub' ) -Sub.SetAuthor( '' ) -Sub.SetContainer( 'localhost/FactoryServer' ) -Sub.SetComment( 'Sub from SubComponent' ) -Sub.Coords( 232 , 269 ) - -Mul = GraphEssai2.FNode( 'MulComponent' , 'MulComponent' , 'Mul' ) -Mul.SetName( 'Mul' ) -Mul.SetAuthor( '' ) -Mul.SetContainer( 'localhost/FactoryServer' ) -Mul.SetComment( 'Mul from MulComponent' ) -Mul.Coords( 431 , 22 ) - -Div = GraphEssai2.FNode( 'DivComponent' , 'DivComponent' , 'Div' ) -Div.SetName( 'Div' ) -Div.SetAuthor( '' ) -Div.SetContainer( 'localhost/FactoryServer' ) -Div.SetComment( 'Div from DivComponent' ) -Div.Coords( 645 , 268 ) - -# Creation of Links -AddFuncValue = Add.Port( 'FuncValue' ) -Mulx = GraphEssai2.Link( AddFuncValue , Mul.Port( 'x' ) ) -Mulx.AddCoord( 1 , 199 , 102 ) -Mulx.AddCoord( 2 , 198 , 319 ) - -Addz = Add.Port( 'z' ) -Subx = GraphEssai2.Link( Addz , Sub.Port( 'x' ) ) - -Subz = Sub.Port( 'z' ) -Divx = GraphEssai2.Link( Subz , Div.Port( 'x' ) ) - -SubOutGate = Sub.Port( 'OutGate' ) -MulInGate = GraphEssai2.Link( SubOutGate , Mul.Port( 'InGate' ) ) -MulInGate.AddCoord( 1 , 405 , 165 ) -MulInGate.AddCoord( 2 , 405 , 412 ) - -Mulz = Mul.Port( 'z' ) -Divy = GraphEssai2.Link( Mulz , Div.Port( 'y' ) ) -Divy.AddCoord( 1 , 612 , 377 ) -Divy.AddCoord( 2 , 612 , 103 ) - -# Creation of Input datas -Addx = Add.Input( 'x' , 1) -Addy = Add.Input( 'y' , 2) -Suby = Sub.Input( 'y' , 3) -Muly = Mul.Input( 'y' , 4) - -# Creation of Output variables -Divz = Div.Port( 'z' ) - -GraphEssai2.Run() - -GraphEssai2.DoneW() - -GraphEssai2.State() - -GraphEssai2.PrintPorts() - diff --git a/Superv/Python/GraphEssai3.py b/Superv/Python/GraphEssai3.py deleted file mode 100644 index c1c1944..0000000 --- a/Superv/Python/GraphEssai3.py +++ /dev/null @@ -1,146 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphEssai3 -# -from SuperV import * -# Graph creation -GraphEssai3 = Graph( 'GraphEssai3' ) -GraphEssai3.SetName( 'GraphEssai3' ) -GraphEssai3.SetAuthor( '' ) -GraphEssai3.SetComment( '' ) -GraphEssai3.Coords( 0 , 0 ) - -# Creation of Factory Nodes - -Add = GraphEssai3.FNode( 'AddComponent' , 'AddComponent' , 'Add' ) -Add.SetName( 'Add' ) -Add.SetAuthor( '' ) -Add.SetContainer( 'localhost/FactoryServer' ) -Add.SetComment( 'Add from AddComponent' ) -Add.Coords( 1 , 152 ) - -Sub = GraphEssai3.FNode( 'SubComponent' , 'SubComponent' , 'Sub' ) -Sub.SetName( 'Sub' ) -Sub.SetAuthor( '' ) -Sub.SetContainer( 'localhost/FactoryServer' ) -Sub.SetComment( 'Sub from SubComponent' ) -Sub.Coords( 412 , 377 ) - -Mul = GraphEssai3.FNode( 'MulComponent' , 'MulComponent' , 'Mul' ) -Mul.SetName( 'Mul' ) -Mul.SetAuthor( '' ) -Mul.SetContainer( 'localhost/FactoryServer' ) -Mul.SetComment( 'Mul from MulComponent' ) -Mul.Coords( 412 , 152 ) - -Div = GraphEssai3.FNode( 'DivComponent' , 'DivComponent' , 'Div' ) -Div.SetName( 'Div' ) -Div.SetAuthor( '' ) -Div.SetContainer( 'localhost/FactoryServer' ) -Div.SetComment( 'Div from DivComponent' ) -Div.Coords( 622 , 124 ) - -Addition = GraphEssai3.FNode( 'AddComponent' , 'AddComponent' , 'Addition' ) -Addition.SetName( 'Addition' ) -Addition.SetAuthor( '' ) -Addition.SetContainer( 'localhost/AdditionServer' ) -Addition.SetComment( 'Addition from AddComponent' ) -Addition.Coords( 0 , 0 ) - -Addition_1 = GraphEssai3.FNode( 'AddComponent' , 'AddComponent' , 'Addition' ) -Addition_1.SetName( 'Addition_1' ) -Addition_1.SetAuthor( '' ) -Addition_1.SetContainer( 'localhost/Addition_1Server' ) -Addition_1.SetComment( 'Addition from AddComponent' ) -Addition_1.Coords( 4 , 327 ) - -# Creation of Computing Nodes -AddAndCompare_ServiceinParameter = [] -AddAndCompare_ServiceinParameter.append( SALOME_ModuleCatalog.ServicesParameter( 'Adder' , 'Adder' ) ) -AddAndCompare_ServiceinParameter.append( SALOME_ModuleCatalog.ServicesParameter( 'double' , 'x' ) ) -AddAndCompare_ServiceinParameter.append( SALOME_ModuleCatalog.ServicesParameter( 'double' , 'y' ) ) -AddAndCompare_ServiceinParameter.append( SALOME_ModuleCatalog.ServicesParameter( 'Adder' , 'anOtherAdder' ) ) -AddAndCompare_ServiceoutParameter = [] -AddAndCompare_ServiceoutParameter.append( SALOME_ModuleCatalog.ServicesParameter( 'double' , 'FuncValue' ) ) -AddAndCompare_ServiceoutParameter.append( SALOME_ModuleCatalog.ServicesParameter( 'double' , 'z' ) ) -AddAndCompare_ServiceinStreamParameter = [] -AddAndCompare_ServiceoutStreamParameter = [] -AddAndCompare_Service = SALOME_ModuleCatalog.Service( 'AddAndCompare' , AddAndCompare_ServiceinParameter , AddAndCompare_ServiceoutParameter , AddAndCompare_ServiceinStreamParameter , AddAndCompare_ServiceoutStreamParameter , 0 , 0 ) -AddAndCompare = GraphEssai3.CNode( AddAndCompare_Service ) -AddAndCompare.SetName( 'AddAndCompare' ) -AddAndCompare.SetAuthor( '' ) -AddAndCompare.SetComment( 'Python function' ) -AddAndCompare.Coords( 233 , 0 ) - -# Creation of Links -AddFuncValue = Add.Port( 'FuncValue' ) -Mulx = GraphEssai3.Link( AddFuncValue , Mul.Port( 'x' ) ) - -AddAndComparex = GraphEssai3.Link( AddFuncValue , AddAndCompare.Port( 'x' ) ) -AddAndComparex.AddCoord( 1 , 195 , 108 ) -AddAndComparex.AddCoord( 2 , 195 , 233 ) - -Addz = Add.Port( 'z' ) -Subx = GraphEssai3.Link( Addz , Sub.Port( 'x' ) ) -Subx.AddCoord( 1 , 187 , 459 ) -Subx.AddCoord( 2 , 186 , 262 ) - -AddAndComparey = GraphEssai3.Link( Addz , AddAndCompare.Port( 'y' ) ) -AddAndComparey.AddCoord( 1 , 187 , 139 ) -AddAndComparey.AddCoord( 2 , 186 , 261 ) - -Subz = Sub.Port( 'z' ) -Divx = GraphEssai3.Link( Subz , Div.Port( 'x' ) ) -Divx.AddCoord( 1 , 598 , 203 ) -Divx.AddCoord( 2 , 598 , 457 ) - -Mulz = Mul.Port( 'z' ) -Divy = GraphEssai3.Link( Mulz , Div.Port( 'y' ) ) - -AdditionAdder = Addition.Port( 'Adder' ) -AddAndCompareAdder = GraphEssai3.Link( AdditionAdder , AddAndCompare.Port( 'Adder' ) ) - -Addition_1Adder = Addition_1.Port( 'Adder' ) -AddAndCompareanOtherAdder = GraphEssai3.Link( Addition_1Adder , AddAndCompare.Port( 'anOtherAdder' ) ) -AddAndCompareanOtherAdder.AddCoord( 1 , 215 , 168 ) -AddAndCompareanOtherAdder.AddCoord( 2 , 214 , 407 ) - -# Creation of Input datas -Addx = Add.Input( 'x' , 1) -Addy = Add.Input( 'y' , 2) -Suby = Sub.Input( 'y' , 3) -Muly = Mul.Input( 'y' , 4) - -# Creation of Output variables -Divz = Div.Port( 'z' ) -AddAndCompareFuncValue = AddAndCompare.Port( 'FuncValue' ) -AddAndComparez = AddAndCompare.Port( 'z' ) - -GraphEssai3.Run() - -GraphEssai3.DoneW() - -print GraphEssai3.State() - -GraphEssai3.PrintPorts() - diff --git a/Superv/Python/GraphExample.py b/Superv/Python/GraphExample.py deleted file mode 100644 index c8ca106..0000000 --- a/Superv/Python/GraphExample.py +++ /dev/null @@ -1,94 +0,0 @@ -#! /usr/bin/env python -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -#============================================================================== -# File : GraphExample.py -# Created : 18 d?c 2001 -# Author : Jean Rahuel -# Project : SALOME -#============================================================================== -#from GraphExample import * -# -from SuperV import * - -myGraph = Graph( "myDataFlow" ) - -Add = myGraph.Node( "AddComponent" , "AddInterface" , "Add" ) -print Add.SetContainer('dm2s0017') -Sub = myGraph.Node( "SubComponent" , "SubInterface" , "Sub" ) -print Sub.SetContainer('dm2s0018') -Mul = myGraph.Node( "MulComponent" , "MulInterface" , "Mul" ) -print Mul.SetContainer('dm2s0019') -Div = myGraph.Node( "DivComponent" , "DivInterface" , "Div" ) -print Div.SetContainer('dm2s0020') - -PAddz = Add.Port("z") -PSuby = Sub.Port("y") -Suby = myGraph.Link( PAddz , PSuby ) -Muly = myGraph.Link( Add.Port("z") , Mul.Port("y") ) -Mulx = myGraph.Link( Sub.Port( "z" ) , Mul.Port("x") ) -Divx = myGraph.Link( Sub.Port( "z" ) , Div.Port("x") ) -Divy = myGraph.Link( Mul.Port( "z" ) , Div.Port("y") ) - -Addx = Add.Input( "x" , 3 ) -Addy = Add.Input( "y" , 4.5 ) -Subx = Sub.Input( "x" , "1.5" ) - -print "Add(x) input value : ",Addx.ToString() -print "Add(y) input value : ",Addy.ToString() -print "Sub(x) input value : ",Subx.ToString() - -Divz = Div.Port("z") - -print Divz.ToString() - -print myGraph.IsValid() -print myGraph.IsExecutable() - -print myGraph.Run() - -Addz = Add.Port( "z" ) -AddFuncValue = Add.Port( "FuncValue" ) -Subz = Sub.Port( "z" ) -Mulz = Mul.Port( "z" ) -Divz = Div.Port( "z" ) - -print AddFuncValue.Done() -print Addz.Done() -print Subz.Done() -print Mulz.Done() -print Divz.Done() -print Add.Done() -print Sub.Done() -print Mul.Done() -print Div.Done() -print myGraph.Done() -print myGraph.State() - -print AddFuncValue.ToString() -print Addz.ToString() -print Subz.ToString() -print Mulz.ToString() -print Divz.ToString() -print Divz.ToAny() - diff --git a/Superv/Python/GraphFactorial.py b/Superv/Python/GraphFactorial.py deleted file mode 100644 index afafb4b..0000000 --- a/Superv/Python/GraphFactorial.py +++ /dev/null @@ -1,58 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# -# File : GraphFactorial.py -# Module : SuperVisionTest -# -from SuperV import * - -GraphFactorial = Graph('GraphFactorial') - -eval = GraphFactorial.Node('FactorialComponent','FactorialComponent','eval') -eval.SetContainer('Server3Py') - -GraphFactorial.IsValid() - -GraphFactorial.Run( 3 ) -GraphFactorial.DoneW() -GraphFactorial.State() -eval.GetComponentName() -eval.GetContainer() -GraphFactorial.PrintPorts() -eval.CpuUsed() - -eval.SetContainer('Server4Py') -GraphFactorial.Run( 4 ) -GraphFactorial.DoneW() -GraphFactorial.State() -eval.GetComponentName() -eval.GetContainer() -GraphFactorial.PrintPorts() -eval.CpuUsed() - -eval.SetContainer('Server5Py') -GraphFactorial.Run( 5 ) -GraphFactorial.DoneW() -GraphFactorial.State() -eval.GetComponentName() -eval.GetContainer() -GraphFactorial.PrintPorts() -eval.CpuUsed() diff --git a/Superv/Python/GraphFactorialLcc.py b/Superv/Python/GraphFactorialLcc.py deleted file mode 100755 index 534f1e3..0000000 --- a/Superv/Python/GraphFactorialLcc.py +++ /dev/null @@ -1,40 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# -# File : GraphFactorialLcc.py -# Module : SuperVisionTest -# That test runs only with python but NOT in the TUI ... -# -from SuperV import * - -from FactorialComponent import * - -Factorial = lcc.FindOrLoadComponent('ServerPy','FactorialComponent') - -dir (Factorial) - -fact3 = Factorial.eval(3) - -if fact3 != 6 : - print "Error",fact3,"!= 6 !" - -print Factorial.CpuUsed_impl() - diff --git a/Superv/Python/GraphGOTO.py b/Superv/Python/GraphGOTO.py deleted file mode 100644 index cd4bcf7..0000000 --- a/Superv/Python/GraphGOTO.py +++ /dev/null @@ -1,320 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphGOTO_2 -# -from SuperV import * - -# Graph creation of GraphGOTO -def DefGraphGOTO() : - GraphGOTO = Graph( 'GraphGOTO' ) - GraphGOTO.SetName( 'GraphGOTO' ) - GraphGOTO.SetAuthor( 'JR' ) - GraphGOTO.SetComment( 'Syracuse algorithm' ) - GraphGOTO.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - test_ISEVEN = GraphGOTO.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( 204 , 420 ) - 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.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( 208 , 155 ) - 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.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.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.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' ) - - incr_1 = GraphGOTO.FNode( 'SyrComponent' , 'SyrComponent' , 'C_INCR' ) - incr_1.SetName( 'incr_1' ) - incr_1.SetAuthor( '' ) - incr_1.SetContainer( 'localhost/FactoryServer' ) - incr_1.SetComment( 'C_INCR from SyrComponent' ) - incr_1.Coords( 859 , 338 ) - Iincr_1aCount = incr_1.GetInPort( 'aCount' ) - Iincr_1Gate = incr_1.GetInPort( 'Gate' ) - Oincr_1aNewCount = incr_1.GetOutPort( 'aNewCount' ) - Oincr_1Gate = incr_1.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.INode( 'label_begin' , Pylabel_begin ) - label_begin.SetName( 'label_begin' ) - label_begin.SetAuthor( '' ) - label_begin.SetComment( 'Python function' ) - label_begin.Coords( 10 , 260 ) - 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.INode( 'label_test' , Pylabel_test ) - label_test.SetName( 'label_test' ) - label_test.SetAuthor( '' ) - label_test.SetComment( 'Python function' ) - label_test.Coords( 400 , 220 ) - 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.SNode( 'Switch_OneEven' , Pytest ) - EndSwitch_OneEven.SetName( 'EndSwitch_OneEven' ) - EndSwitch_OneEven.SetAuthor( '' ) - EndSwitch_OneEven.SetComment( 'Compute Node' ) - EndSwitch_OneEven.Coords( 1331 , 310 ) - 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( 596 , 260 ) - 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.GNode( 'control_m3p1' , Pycontrol_m3p1 , 'label_test' ) - control_m3p1.SetName( 'control_m3p1' ) - control_m3p1.SetAuthor( '' ) - control_m3p1.SetComment( 'Compute Node' ) - control_m3p1.Coords( 1073 , 86 ) - 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.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.Link( Otest_ISEVENBoolEven , Ilabel_testValEven ) - Ltest_ISEVENBoolEvenlabel_testValEven.AddCoord( 1 , 374 , 290 ) - Ltest_ISEVENBoolEvenlabel_testValEven.AddCoord( 2 , 374 , 491 ) - - Ltest_ISONEBoolOnelabel_testValOne = GraphGOTO.Link( Otest_ISONEBoolOne , Ilabel_testValOne ) - Ltest_ISONEBoolOnelabel_testValOne.AddCoord( 1 , 385 , 311 ) - Ltest_ISONEBoolOnelabel_testValOne.AddCoord( 2 , 385 , 226 ) - - Lm3p1anEvenIntegercontrol_m3p1N = GraphGOTO.Link( Om3p1anEvenInteger , Icontrol_m3p1N ) - - Ldiv2anIntegercontrol_div2N = GraphGOTO.Link( Odiv2anInteger , Icontrol_div2N ) - - LincraNewCountcontrol_m3p1K = GraphGOTO.Link( OincraNewCount , Icontrol_m3p1K ) - LincraNewCountcontrol_m3p1K.AddCoord( 1 , 1048 , 135 ) - LincraNewCountcontrol_m3p1K.AddCoord( 2 , 1048 , 241 ) - - Lincr_1aNewCountcontrol_div2K = GraphGOTO.Link( Oincr_1aNewCount , Icontrol_div2K ) - - Llabel_beginNTlabel_testNT = GraphGOTO.Link( Olabel_beginNT , Ilabel_testNT ) - - Llabel_beginNTtest_ISONEanInteger = GraphGOTO.Link( Olabel_beginNT , Itest_ISONEanInteger ) - Llabel_beginNTtest_ISONEanInteger.AddCoord( 1 , 191 , 225 ) - Llabel_beginNTtest_ISONEanInteger.AddCoord( 2 , 191 , 331 ) - - Llabel_beginNTtest_ISEVENanInteger = GraphGOTO.Link( Olabel_beginNT , Itest_ISEVENanInteger ) - Llabel_beginNTtest_ISEVENanInteger.AddCoord( 1 , 190 , 491 ) - Llabel_beginNTtest_ISEVENanInteger.AddCoord( 2 , 190 , 331 ) - - Llabel_beginKTlabel_testKT = GraphGOTO.Link( Olabel_beginKT , Ilabel_testKT ) - - Llabel_testValEventestValEven = GraphGOTO.Link( Olabel_testValEven , ItestValEven ) - - Llabel_testValOnetestValOne = GraphGOTO.Link( Olabel_testValOne , ItestValOne ) - - Llabel_testNTtestNT = GraphGOTO.Link( Olabel_testNT , ItestNT ) - - Llabel_testKTtestKT = GraphGOTO.Link( Olabel_testKT , ItestKT ) - - LtestFinishedEndSwitch_OneEvenFinished = GraphGOTO.Link( OtestFinished , IEndSwitch_OneEvenFinished ) - - LtestEvenincr_1Gate = GraphGOTO.Link( OtestEven , Iincr_1Gate ) - - LtestEvendiv2Gate = GraphGOTO.Link( OtestEven , Idiv2Gate ) - - LtestOddincrGate = GraphGOTO.Link( OtestOdd , IincrGate ) - - LtestOddm3p1Gate = GraphGOTO.Link( OtestOdd , Im3p1Gate ) - - LtestNm3p1anOddInteger = GraphGOTO.Link( OtestN , Im3p1anOddInteger ) - LtestNm3p1anOddInteger.AddCoord( 1 , 808 , 116 ) - LtestNm3p1anOddInteger.AddCoord( 2 , 806 , 372 ) - - LtestNdiv2anEvenInteger = GraphGOTO.Link( OtestN , Idiv2anEvenInteger ) - LtestNdiv2anEvenInteger.AddCoord( 1 , 806 , 537 ) - LtestNdiv2anEvenInteger.AddCoord( 2 , 806 , 373 ) - - LtestKEndSwitch_OneEvenK = GraphGOTO.Link( OtestK , IEndSwitch_OneEvenK ) - - LtestKincraCount = GraphGOTO.Link( OtestK , IincraCount ) - - LtestKincr_1aCount = GraphGOTO.Link( OtestK , Iincr_1aCount ) - - LtestDefaultEndSwitch_OneEvenDefault = GraphGOTO.Link( OtestDefault , IEndSwitch_OneEvenDefault ) - LtestDefaultEndSwitch_OneEvenDefault.AddCoord( 1 , 1319 , 385 ) - LtestDefaultEndSwitch_OneEvenDefault.AddCoord( 2 , 1319 , 577 ) - LtestDefaultEndSwitch_OneEvenDefault.AddCoord( 3 , 779 , 577 ) - LtestDefaultEndSwitch_OneEvenDefault.AddCoord( 4 , 778 , 415 ) - - Lcontrol_m3p1Gatelabel_testGate = GraphGOTO.Link( Ocontrol_m3p1Gate , Ilabel_testGate ) - Lcontrol_m3p1Gatelabel_testGate.AddCoord( 1 , 389 , 375 ) - Lcontrol_m3p1Gatelabel_testGate.AddCoord( 2 , 389 , 597 ) - Lcontrol_m3p1Gatelabel_testGate.AddCoord( 3 , 1519 , 602 ) - Lcontrol_m3p1Gatelabel_testGate.AddCoord( 4 , 1508 , 201 ) - - Lcontrol_div2Gatelabel_beginGate = GraphGOTO.Link( Ocontrol_div2Gate , Ilabel_beginGate ) - Lcontrol_div2Gatelabel_beginGate.AddCoord( 1 , 3 , 373 ) - 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 - - -GraphGOTO = DefGraphGOTO() - -GraphGOTO.Run() -GraphGOTO.DoneW() -GraphGOTO.State() -GraphGOTO.PrintPorts() diff --git a/Superv/Python/GraphGOTO1.py b/Superv/Python/GraphGOTO1.py deleted file mode 100755 index 76c03b2..0000000 --- a/Superv/Python/GraphGOTO1.py +++ /dev/null @@ -1,309 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphGOTO1 -# -from SuperV import * - -# Graph creation of GraphGOTO1 -def DefGraphGOTO1() : - GraphGOTO1 = Graph( 'GraphGOTO1' ) - GraphGOTO1.SetName( 'GraphGOTO1' ) - GraphGOTO1.SetAuthor( 'JR' ) - GraphGOTO1.SetComment( 'Syracuse algorithm' ) - GraphGOTO1.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - test_ISEVEN = GraphGOTO1.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 = GraphGOTO1.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 = GraphGOTO1.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 = GraphGOTO1.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 = GraphGOTO1.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 = GraphGOTO1.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 = GraphGOTO1.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 = GraphGOTO1.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 = GraphGOTO1.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 = GraphGOTO1.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 = GraphGOTO1.Link( Otest_ISEVENBoolEven , Ilabel_testValEven ) - Ltest_ISEVENBoolEvenlabel_testValEven.AddCoord( 1 , 369 , 273 ) - Ltest_ISEVENBoolEvenlabel_testValEven.AddCoord( 2 , 370 , 498 ) - - Ltest_ISONEBoolOnelabel_testValOne = GraphGOTO1.Link( Otest_ISONEBoolOne , Ilabel_testValOne ) - Ltest_ISONEBoolOnelabel_testValOne.AddCoord( 1 , 384 , 281 ) - Ltest_ISONEBoolOnelabel_testValOne.AddCoord( 2 , 384 , 225 ) - - Lm3p1anEvenIntegercontrol_m3p1N = GraphGOTO1.Link( Om3p1anEvenInteger , Icontrol_m3p1N ) - - Ldiv2anIntegercontrol_div2N = GraphGOTO1.Link( Odiv2anInteger , Icontrol_div2N ) - - LincraNewCountcontrol_m3p1K = GraphGOTO1.Link( OincraNewCount , Icontrol_m3p1K ) - LincraNewCountcontrol_m3p1K.AddCoord( 1 , 1048 , 139 ) - LincraNewCountcontrol_m3p1K.AddCoord( 2 , 1048 , 241 ) - - LincraNewCountcontrol_div2K = GraphGOTO1.Link( OincraNewCount , Icontrol_div2K ) - LincraNewCountcontrol_div2K.AddCoord( 1 , 1052 , 504 ) - LincraNewCountcontrol_div2K.AddCoord( 2 , 1049 , 239 ) - - Llabel_beginNTlabel_testNT = GraphGOTO1.Link( Olabel_beginNT , Ilabel_testNT ) - - Llabel_beginNTtest_ISONEanInteger = GraphGOTO1.Link( Olabel_beginNT , Itest_ISONEanInteger ) - Llabel_beginNTtest_ISONEanInteger.AddCoord( 1 , 192 , 226 ) - Llabel_beginNTtest_ISONEanInteger.AddCoord( 2 , 191 , 331 ) - - Llabel_beginNTtest_ISEVENanInteger = GraphGOTO1.Link( Olabel_beginNT , Itest_ISEVENanInteger ) - Llabel_beginNTtest_ISEVENanInteger.AddCoord( 1 , 191 , 494 ) - Llabel_beginNTtest_ISEVENanInteger.AddCoord( 2 , 192 , 331 ) - - Llabel_beginKTlabel_testKT = GraphGOTO1.Link( Olabel_beginKT , Ilabel_testKT ) - - Llabel_testValEventestValEven = GraphGOTO1.Link( Olabel_testValEven , ItestValEven ) - - Llabel_testValOnetestValOne = GraphGOTO1.Link( Olabel_testValOne , ItestValOne ) - - Llabel_testNTtestNT = GraphGOTO1.Link( Olabel_testNT , ItestNT ) - - Llabel_testKTtestKT = GraphGOTO1.Link( Olabel_testKT , ItestKT ) - - LtestFinishedEndSwitch_OneEvenFinished = GraphGOTO1.Link( OtestFinished , IEndSwitch_OneEvenFinished ) - - LtestEvendiv2Gate = GraphGOTO1.Link( OtestEven , Idiv2Gate ) - LtestEvendiv2Gate.AddCoord( 1 , 793 , 561 ) - LtestEvendiv2Gate.AddCoord( 2 , 794 , 310 ) - - LtestOddm3p1Gate = GraphGOTO1.Link( OtestOdd , Im3p1Gate ) - LtestOddm3p1Gate.AddCoord( 1 , 778 , 138 ) - LtestOddm3p1Gate.AddCoord( 2 , 780 , 328 ) - - LtestNm3p1anOddInteger = GraphGOTO1.Link( OtestN , Im3p1anOddInteger ) - LtestNm3p1anOddInteger.AddCoord( 1 , 808 , 113 ) - LtestNm3p1anOddInteger.AddCoord( 2 , 807 , 352 ) - - LtestNdiv2anEvenInteger = GraphGOTO1.Link( OtestN , Idiv2anEvenInteger ) - LtestNdiv2anEvenInteger.AddCoord( 1 , 806 , 537 ) - LtestNdiv2anEvenInteger.AddCoord( 2 , 807 , 351 ) - - LtestKEndSwitch_OneEvenK = GraphGOTO1.Link( OtestK , IEndSwitch_OneEvenK ) - - LtestKincraCount = GraphGOTO1.Link( OtestK , IincraCount ) - LtestKincraCount.AddCoord( 1 , 773 , 236 ) - LtestKincraCount.AddCoord( 2 , 773 , 370 ) - - LtestDefaultEndSwitch_OneEvenDefault = GraphGOTO1.Link( OtestDefault , IEndSwitch_OneEvenDefault ) - LtestDefaultEndSwitch_OneEvenDefault.AddCoord( 1 , 840 , 381 ) - LtestDefaultEndSwitch_OneEvenDefault.AddCoord( 2 , 839 , 394 ) - - Lcontrol_m3p1Gatelabel_testGate = GraphGOTO1.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 = GraphGOTO1.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 GraphGOTO1 - - -GraphGOTO1 = DefGraphGOTO1() - -GraphGOTO1.Run() -GraphGOTO1.DoneW() -GraphGOTO1.State() -GraphGOTO1.PrintPorts() diff --git a/Superv/Python/GraphGOTOAborted.py b/Superv/Python/GraphGOTOAborted.py deleted file mode 100644 index 117b299..0000000 --- a/Superv/Python/GraphGOTOAborted.py +++ /dev/null @@ -1,310 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphGOTOAborted -# -from SuperV import * - -# Graph creation of GraphGOTOAborted -def DefGraphGOTOAborted() : - GraphGOTOAborted = Graph( 'GraphGOTOAborted' ) - GraphGOTOAborted.SetName( 'GraphGOTOAborted' ) - GraphGOTOAborted.SetAuthor( 'JR' ) - GraphGOTOAborted.SetComment( 'Syracuse algorithm' ) - GraphGOTOAborted.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - test_ISEVEN = GraphGOTOAborted.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 = GraphGOTOAborted.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 = GraphGOTOAborted.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 = GraphGOTOAborted.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 = GraphGOTOAborted.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 = GraphGOTOAborted.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 = GraphGOTOAborted.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 = GraphGOTOAborted.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 = GraphGOTOAborted.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 = GraphGOTOAborted.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 = GraphGOTOAborted.Link( Otest_ISEVENBoolEven , Ilabel_testValEven ) - Ltest_ISEVENBoolEvenlabel_testValEven.AddCoord( 1 , 369 , 273 ) - Ltest_ISEVENBoolEvenlabel_testValEven.AddCoord( 2 , 370 , 498 ) - - Ltest_ISONEBoolOnelabel_testValOne = GraphGOTOAborted.Link( Otest_ISONEBoolOne , Ilabel_testValOne ) - Ltest_ISONEBoolOnelabel_testValOne.AddCoord( 1 , 384 , 281 ) - Ltest_ISONEBoolOnelabel_testValOne.AddCoord( 2 , 384 , 225 ) - - Lm3p1anEvenIntegercontrol_m3p1N = GraphGOTOAborted.Link( Om3p1anEvenInteger , Icontrol_m3p1N ) - - Ldiv2anIntegercontrol_div2N = GraphGOTOAborted.Link( Odiv2anInteger , Icontrol_div2N ) - - LincraNewCountcontrol_m3p1K = GraphGOTOAborted.Link( OincraNewCount , Icontrol_m3p1K ) - LincraNewCountcontrol_m3p1K.AddCoord( 1 , 1048 , 139 ) - LincraNewCountcontrol_m3p1K.AddCoord( 2 , 1048 , 241 ) - - LincraNewCountcontrol_div2K = GraphGOTOAborted.Link( OincraNewCount , Icontrol_div2K ) - LincraNewCountcontrol_div2K.AddCoord( 1 , 1052 , 504 ) - LincraNewCountcontrol_div2K.AddCoord( 2 , 1049 , 239 ) - - Llabel_beginNTlabel_testNT = GraphGOTOAborted.Link( Olabel_beginNT , Ilabel_testNT ) - - Llabel_beginNTtest_ISONEanInteger = GraphGOTOAborted.Link( Olabel_beginNT , Itest_ISONEanInteger ) - Llabel_beginNTtest_ISONEanInteger.AddCoord( 1 , 192 , 226 ) - Llabel_beginNTtest_ISONEanInteger.AddCoord( 2 , 191 , 331 ) - - Llabel_beginNTtest_ISEVENanInteger = GraphGOTOAborted.Link( Olabel_beginNT , Itest_ISEVENanInteger ) - Llabel_beginNTtest_ISEVENanInteger.AddCoord( 1 , 191 , 494 ) - Llabel_beginNTtest_ISEVENanInteger.AddCoord( 2 , 192 , 331 ) - - Llabel_beginKTlabel_testKT = GraphGOTOAborted.Link( Olabel_beginKT , Ilabel_testKT ) - - Llabel_testValEventestValEven = GraphGOTOAborted.Link( Olabel_testValEven , ItestValEven ) - - Llabel_testValOnetestValOne = GraphGOTOAborted.Link( Olabel_testValOne , ItestValOne ) - - Llabel_testNTtestNT = GraphGOTOAborted.Link( Olabel_testNT , ItestNT ) - - Llabel_testKTtestKT = GraphGOTOAborted.Link( Olabel_testKT , ItestKT ) - - LtestFinishedEndSwitch_OneEvenFinished = GraphGOTOAborted.Link( OtestFinished , IEndSwitch_OneEvenFinished ) - - LtestIncrincrGate = GraphGOTOAborted.Link( OtestIncr , IincrGate ) - - LtestEvendiv2Gate = GraphGOTOAborted.Link( OtestEven , Idiv2Gate ) - LtestEvendiv2Gate.AddCoord( 1 , 793 , 561 ) - LtestEvendiv2Gate.AddCoord( 2 , 794 , 310 ) - - LtestOddm3p1Gate = GraphGOTOAborted.Link( OtestOdd , Im3p1Gate ) - LtestOddm3p1Gate.AddCoord( 1 , 778 , 138 ) - LtestOddm3p1Gate.AddCoord( 2 , 780 , 328 ) - - LtestNm3p1anOddInteger = GraphGOTOAborted.Link( OtestN , Im3p1anOddInteger ) - LtestNm3p1anOddInteger.AddCoord( 1 , 808 , 113 ) - LtestNm3p1anOddInteger.AddCoord( 2 , 807 , 352 ) - - LtestNdiv2anEvenInteger = GraphGOTOAborted.Link( OtestN , Idiv2anEvenInteger ) - LtestNdiv2anEvenInteger.AddCoord( 1 , 806 , 537 ) - LtestNdiv2anEvenInteger.AddCoord( 2 , 807 , 351 ) - - LtestKEndSwitch_OneEvenK = GraphGOTOAborted.Link( OtestK , IEndSwitch_OneEvenK ) - - LtestKincraCount = GraphGOTOAborted.Link( OtestK , IincraCount ) - LtestKincraCount.AddCoord( 1 , 773 , 236 ) - LtestKincraCount.AddCoord( 2 , 773 , 370 ) - - LtestDefaultEndSwitch_OneEvenDefault = GraphGOTOAborted.Link( OtestDefault , IEndSwitch_OneEvenDefault ) - LtestDefaultEndSwitch_OneEvenDefault.AddCoord( 1 , 840 , 381 ) - LtestDefaultEndSwitch_OneEvenDefault.AddCoord( 2 , 839 , 394 ) - - Lcontrol_m3p1Gatelabel_testGate = GraphGOTOAborted.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 = GraphGOTOAborted.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 GraphGOTOAborted - - -GraphGOTOAborted = DefGraphGOTOAborted() - -GraphGOTOAborted.Run() -GraphGOTOAborted.DoneW() -GraphGOTOAborted.State() -GraphGOTOAborted.PrintPorts() diff --git a/Superv/Python/GraphGOTOAddMemory.py b/Superv/Python/GraphGOTOAddMemory.py deleted file mode 100644 index 5e9361b..0000000 --- a/Superv/Python/GraphGOTOAddMemory.py +++ /dev/null @@ -1,94 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphGOTOAddMemory -# -from SuperV import * - -# Graph creation of GraphGOTOAddMemory -def DefGraphGOTOAddMemory() : - GraphGOTOAddMemory = Graph( 'GraphGOTOAddMemory' ) - GraphGOTOAddMemory.SetName( 'GraphGOTOAddMemory' ) - GraphGOTOAddMemory.SetAuthor( 'JR' ) - GraphGOTOAddMemory.SetComment( 'To study memory leaks' ) - GraphGOTOAddMemory.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - AddWithoutSleep = GraphGOTOAddMemory.FNode( 'AddComponent' , 'AddComponent' , 'AddWithoutSleep' ) - AddWithoutSleep.SetName( 'AddWithoutSleep' ) - AddWithoutSleep.SetAuthor( '' ) - AddWithoutSleep.SetContainer( 'localhost/FactoryServer' ) - AddWithoutSleep.SetComment( 'AddWithoutSleep from AddComponent' ) - AddWithoutSleep.Coords( 297 , 138 ) - IAddWithoutSleepx = AddWithoutSleep.GetInPort( 'x' ) - IAddWithoutSleepy = AddWithoutSleep.GetInPort( 'y' ) - IAddWithoutSleepGate = AddWithoutSleep.GetInPort( 'Gate' ) - OAddWithoutSleepFuncValue = AddWithoutSleep.GetOutPort( 'FuncValue' ) - OAddWithoutSleepz = AddWithoutSleep.GetOutPort( 'z' ) - OAddWithoutSleepGate = AddWithoutSleep.GetOutPort( 'Gate' ) - - # Creation of InLine Nodes - PyInLine = [] - InLine = GraphGOTOAddMemory.INode( '' , PyInLine ) - InLine.SetName( 'InLine' ) - InLine.SetAuthor( '' ) - InLine.SetComment( 'Compute Node' ) - InLine.Coords( 74 , 178 ) - IInLineGate = InLine.GetInPort( 'Gate' ) - OInLineGate = InLine.GetOutPort( 'Gate' ) - - # Creation of GOTO Nodes - PyGoTo = [] - GoTo = GraphGOTOAddMemory.GNode( '' , PyGoTo , 'InLine' ) - GoTo.SetName( 'GoTo' ) - GoTo.SetAuthor( '' ) - GoTo.SetComment( 'Compute Node' ) - GoTo.Coords( 533 , 218 ) - IGoToGate = GoTo.GetInPort( 'Gate' ) - OGoToGate = GoTo.GetOutPort( 'Gate' ) - - # Creation of Links - LInLineGateAddWithoutSleepGate = GraphGOTOAddMemory.Link( OInLineGate , IAddWithoutSleepGate ) - - LGoToGateInLineGate = GraphGOTOAddMemory.Link( OGoToGate , IInLineGate ) - LGoToGateInLineGate.AddCoord( 1 , 69 , 420 ) - LGoToGateInLineGate.AddCoord( 2 , 700 , 420 ) - - LAddWithoutSleepGateGoToGate = GraphGOTOAddMemory.Link( OAddWithoutSleepGate , IGoToGate ) - - # Input datas - IAddWithoutSleepx.Input( 1 ) - IAddWithoutSleepy.Input( 2 ) - - # Output Ports of the graph - #OAddWithoutSleepFuncValue = AddWithoutSleep.GetOutPort( 'FuncValue' ) - #OAddWithoutSleepz = AddWithoutSleep.GetOutPort( 'z' ) - return GraphGOTOAddMemory - - -GraphGOTOAddMemory = DefGraphGOTOAddMemory() - -GraphGOTOAddMemory.Run() -GraphGOTOAddMemory.DoneW() -GraphGOTOAddMemory.State() -GraphGOTOAddMemory.PrintPorts() diff --git a/Superv/Python/GraphGOTOMemory.py b/Superv/Python/GraphGOTOMemory.py deleted file mode 100644 index 613866c..0000000 --- a/Superv/Python/GraphGOTOMemory.py +++ /dev/null @@ -1,73 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphGOTOMemory -# -from SuperV import * - -# Graph creation of GraphGOTOMemory -def DefGraphGOTOMemory() : - GraphGOTOMemory = Graph( 'GraphGOTOMemory' ) - GraphGOTOMemory.SetName( 'GraphGOTOMemory' ) - GraphGOTOMemory.SetAuthor( 'JR' ) - GraphGOTOMemory.SetComment( 'To study memory leaks' ) - GraphGOTOMemory.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - # Creation of InLine Nodes - PyInLine = [] - InLine = GraphGOTOMemory.INode( '' , PyInLine ) - InLine.SetName( 'InLine' ) - InLine.SetAuthor( '' ) - InLine.SetComment( 'Compute Node' ) - InLine.Coords( 74 , 178 ) - IInLineGate = InLine.GetInPort( 'Gate' ) - OInLineGate = InLine.GetOutPort( 'Gate' ) - - # Creation of GOTO Nodes - PyGoTo = [] - GoTo = GraphGOTOMemory.GNode( '' , PyGoTo , 'InLine' ) - GoTo.SetName( 'GoTo' ) - GoTo.SetAuthor( '' ) - GoTo.SetComment( 'Compute Node' ) - GoTo.Coords( 533 , 218 ) - IGoToGate = GoTo.GetInPort( 'Gate' ) - OGoToGate = GoTo.GetOutPort( 'Gate' ) - - # Creation of Links - LInLineGateGoToGate = GraphGOTOMemory.Link( OInLineGate , IGoToGate ) - - LGoToGateInLineGate = GraphGOTOMemory.Link( OGoToGate , IInLineGate ) - LGoToGateInLineGate.AddCoord( 1 , 69 , 420 ) - LGoToGateInLineGate.AddCoord( 2 , 700 , 420 ) - - # Output Ports of the graph - return GraphGOTOMemory - - -GraphGOTOMemory = DefGraphGOTOMemory() - -GraphGOTOMemory.Run() -GraphGOTOMemory.DoneW() -GraphGOTOMemory.State() -GraphGOTOMemory.PrintPorts() diff --git a/Superv/Python/GraphGeomEssai.py b/Superv/Python/GraphGeomEssai.py deleted file mode 100644 index ce99361..0000000 --- a/Superv/Python/GraphGeomEssai.py +++ /dev/null @@ -1,137 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph aNewDataFlow -# -from SuperV import * - -# Graph creation of aNewDataFlow -def DefaNewDataFlow() : - aNewDataFlow = Graph( 'aNewDataFlow' ) - aNewDataFlow.SetName( 'aNewDataFlow' ) - aNewDataFlow.SetAuthor( '' ) - aNewDataFlow.SetComment( '' ) - aNewDataFlow.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - SetStudyID = aNewDataFlow.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'SetStudyID' ) - SetStudyID.SetName( 'SetStudyID' ) - SetStudyID.SetAuthor( '' ) - SetStudyID.SetContainer( 'localhost/FactoryServer' ) - SetStudyID.SetComment( 'SetStudyID from GEOM_Superv' ) - SetStudyID.Coords( 13 , 109 ) - ISetStudyIDtheStudyID = SetStudyID.GetInPort( 'theStudyID' ) - ISetStudyIDGate = SetStudyID.GetInPort( 'Gate' ) - OSetStudyIDGate = SetStudyID.GetOutPort( 'Gate' ) - - MakeSphere = aNewDataFlow.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeSphere' ) - MakeSphere.SetName( 'MakeSphere' ) - MakeSphere.SetAuthor( '' ) - MakeSphere.SetContainer( 'localhost/FactoryServer' ) - MakeSphere.SetComment( 'MakeSphere from GEOM_Superv' ) - MakeSphere.Coords( 210 , 49 ) - IMakeSpheretheX = MakeSphere.GetInPort( 'theX' ) - IMakeSpheretheY = MakeSphere.GetInPort( 'theY' ) - IMakeSpheretheZ = MakeSphere.GetInPort( 'theZ' ) - IMakeSpheretheRadius = MakeSphere.GetInPort( 'theRadius' ) - IMakeSphereGate = MakeSphere.GetInPort( 'Gate' ) - OMakeSpherereturn = MakeSphere.GetOutPort( 'return' ) - OMakeSphereGate = MakeSphere.GetOutPort( 'Gate' ) - - MakeCopy = aNewDataFlow.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeCopy' ) - MakeCopy.SetName( 'MakeCopy' ) - MakeCopy.SetAuthor( '' ) - MakeCopy.SetContainer( 'localhost/FactoryServer' ) - MakeCopy.SetComment( 'MakeCopy from GEOM_Superv' ) - MakeCopy.Coords( 412 , 12 ) - IMakeCopytheOriginal = MakeCopy.GetInPort( 'theOriginal' ) - IMakeCopyGate = MakeCopy.GetInPort( 'Gate' ) - OMakeCopyreturn = MakeCopy.GetOutPort( 'return' ) - OMakeCopyGate = MakeCopy.GetOutPort( 'Gate' ) - - MakeCopy_1 = aNewDataFlow.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeCopy' ) - MakeCopy_1.SetName( 'MakeCopy_1' ) - MakeCopy_1.SetAuthor( '' ) - MakeCopy_1.SetContainer( 'localhost/FactoryServer' ) - MakeCopy_1.SetComment( 'MakeCopy from GEOM_Superv' ) - MakeCopy_1.Coords( 414 , 183 ) - IMakeCopy_1theOriginal = MakeCopy_1.GetInPort( 'theOriginal' ) - IMakeCopy_1Gate = MakeCopy_1.GetInPort( 'Gate' ) - OMakeCopy_1return = MakeCopy_1.GetOutPort( 'return' ) - OMakeCopy_1Gate = MakeCopy_1.GetOutPort( 'Gate' ) - - TranslateDXDYDZ = aNewDataFlow.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'TranslateDXDYDZ' ) - TranslateDXDYDZ.SetName( 'TranslateDXDYDZ' ) - TranslateDXDYDZ.SetAuthor( '' ) - TranslateDXDYDZ.SetContainer( 'localhost/FactoryServer' ) - TranslateDXDYDZ.SetComment( 'TranslateDXDYDZ from GEOM_Superv' ) - TranslateDXDYDZ.Coords( 606 , 12 ) - ITranslateDXDYDZtheObject = TranslateDXDYDZ.GetInPort( 'theObject' ) - ITranslateDXDYDZtheDX = TranslateDXDYDZ.GetInPort( 'theDX' ) - ITranslateDXDYDZtheDY = TranslateDXDYDZ.GetInPort( 'theDY' ) - ITranslateDXDYDZtheDZ = TranslateDXDYDZ.GetInPort( 'theDZ' ) - ITranslateDXDYDZGate = TranslateDXDYDZ.GetInPort( 'Gate' ) - OTranslateDXDYDZreturn = TranslateDXDYDZ.GetOutPort( 'return' ) - OTranslateDXDYDZGate = TranslateDXDYDZ.GetOutPort( 'Gate' ) - - MakeFuse = aNewDataFlow.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeFuse' ) - MakeFuse.SetName( 'MakeFuse' ) - MakeFuse.SetAuthor( '' ) - MakeFuse.SetContainer( 'localhost/FactoryServer' ) - MakeFuse.SetComment( 'MakeFuse from GEOM_Superv' ) - MakeFuse.Coords( 801 , 163 ) - IMakeFusetheShape1 = MakeFuse.GetInPort( 'theShape1' ) - IMakeFusetheShape2 = MakeFuse.GetInPort( 'theShape2' ) - IMakeFuseGate = MakeFuse.GetInPort( 'Gate' ) - OMakeFusereturn = MakeFuse.GetOutPort( 'return' ) - OMakeFuseGate = MakeFuse.GetOutPort( 'Gate' ) - - # Creation of Links - LSetStudyIDGateMakeSphereGate = aNewDataFlow.Link( OSetStudyIDGate , IMakeSphereGate ) - - LMakeSpherereturnMakeCopytheOriginal = aNewDataFlow.Link( OMakeSpherereturn , IMakeCopytheOriginal ) - - LMakeSpherereturnMakeCopy_1theOriginal = aNewDataFlow.Link( OMakeSpherereturn , IMakeCopy_1theOriginal ) - - LMakeCopyreturnTranslateDXDYDZtheObject = aNewDataFlow.Link( OMakeCopyreturn , ITranslateDXDYDZtheObject ) - - LMakeCopy_1returnMakeFusetheShape2 = aNewDataFlow.Link( OMakeCopy_1return , IMakeFusetheShape2 ) - - LTranslateDXDYDZreturnMakeFusetheShape1 = aNewDataFlow.Link( OTranslateDXDYDZreturn , IMakeFusetheShape1 ) - - # Input datas - ISetStudyIDtheStudyID.Input( 1 ) - IMakeSpheretheX.Input( 0 ) - IMakeSpheretheY.Input( 0 ) - IMakeSpheretheZ.Input( 0 ) - IMakeSpheretheRadius.Input( 20 ) - ITranslateDXDYDZtheDX.Input( 10 ) - ITranslateDXDYDZtheDY.Input( 10 ) - ITranslateDXDYDZtheDZ.Input( 10 ) - - # Output Ports of the graph - #OMakeFusereturn = MakeFuse.GetOutPort( 'return' ) - return aNewDataFlow - - -aNewDataFlow = DefaNewDataFlow() diff --git a/Superv/Python/GraphGeomEssaiGates.py b/Superv/Python/GraphGeomEssaiGates.py deleted file mode 100644 index 11bd6f8..0000000 --- a/Superv/Python/GraphGeomEssaiGates.py +++ /dev/null @@ -1,146 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph aNewDataFlow -# -from SuperV import * - -# Graph creation of aNewDataFlow -def DefaNewDataFlow() : - aNewDataFlow = Graph( 'aNewDataFlow' ) - aNewDataFlow.SetName( 'aNewDataFlow' ) - aNewDataFlow.SetAuthor( '' ) - aNewDataFlow.SetComment( '' ) - aNewDataFlow.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - SetStudyID = aNewDataFlow.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'SetStudyID' ) - SetStudyID.SetName( 'SetStudyID' ) - SetStudyID.SetAuthor( '' ) - SetStudyID.SetContainer( 'localhost/FactoryServer' ) - SetStudyID.SetComment( 'SetStudyID from GEOM_Superv' ) - SetStudyID.Coords( 14 , 104 ) - ISetStudyIDtheStudyID = SetStudyID.GetInPort( 'theStudyID' ) - ISetStudyIDGate = SetStudyID.GetInPort( 'Gate' ) - OSetStudyIDGate = SetStudyID.GetOutPort( 'Gate' ) - - MakeSphere = aNewDataFlow.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeSphere' ) - MakeSphere.SetName( 'MakeSphere' ) - MakeSphere.SetAuthor( '' ) - MakeSphere.SetContainer( 'localhost/FactoryServer' ) - MakeSphere.SetComment( 'MakeSphere from GEOM_Superv' ) - MakeSphere.Coords( 198 , 32 ) - IMakeSpheretheX = MakeSphere.GetInPort( 'theX' ) - IMakeSpheretheY = MakeSphere.GetInPort( 'theY' ) - IMakeSpheretheZ = MakeSphere.GetInPort( 'theZ' ) - IMakeSpheretheRadius = MakeSphere.GetInPort( 'theRadius' ) - IMakeSphereGate = MakeSphere.GetInPort( 'Gate' ) - OMakeSpherereturn = MakeSphere.GetOutPort( 'return' ) - OMakeSphereGate = MakeSphere.GetOutPort( 'Gate' ) - - MakeCopy = aNewDataFlow.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeCopy' ) - MakeCopy.SetName( 'MakeCopy' ) - MakeCopy.SetAuthor( '' ) - MakeCopy.SetContainer( 'localhost/FactoryServer' ) - MakeCopy.SetComment( 'MakeCopy from GEOM_Superv' ) - MakeCopy.Coords( 390 , 11 ) - IMakeCopytheOriginal = MakeCopy.GetInPort( 'theOriginal' ) - IMakeCopyGate = MakeCopy.GetInPort( 'Gate' ) - OMakeCopyreturn = MakeCopy.GetOutPort( 'return' ) - OMakeCopyGate = MakeCopy.GetOutPort( 'Gate' ) - - MakeCopy_1 = aNewDataFlow.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeCopy' ) - MakeCopy_1.SetName( 'MakeCopy_1' ) - MakeCopy_1.SetAuthor( '' ) - MakeCopy_1.SetContainer( 'localhost/FactoryServer' ) - MakeCopy_1.SetComment( 'MakeCopy from GEOM_Superv' ) - MakeCopy_1.Coords( 429 , 177 ) - IMakeCopy_1theOriginal = MakeCopy_1.GetInPort( 'theOriginal' ) - IMakeCopy_1Gate = MakeCopy_1.GetInPort( 'Gate' ) - OMakeCopy_1return = MakeCopy_1.GetOutPort( 'return' ) - OMakeCopy_1Gate = MakeCopy_1.GetOutPort( 'Gate' ) - - TranslateDXDYDZ = aNewDataFlow.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'TranslateDXDYDZ' ) - TranslateDXDYDZ.SetName( 'TranslateDXDYDZ' ) - TranslateDXDYDZ.SetAuthor( '' ) - TranslateDXDYDZ.SetContainer( 'localhost/FactoryServer' ) - TranslateDXDYDZ.SetComment( 'TranslateDXDYDZ from GEOM_Superv' ) - TranslateDXDYDZ.Coords( 615 , 11 ) - ITranslateDXDYDZtheObject = TranslateDXDYDZ.GetInPort( 'theObject' ) - ITranslateDXDYDZtheDX = TranslateDXDYDZ.GetInPort( 'theDX' ) - ITranslateDXDYDZtheDY = TranslateDXDYDZ.GetInPort( 'theDY' ) - ITranslateDXDYDZtheDZ = TranslateDXDYDZ.GetInPort( 'theDZ' ) - ITranslateDXDYDZGate = TranslateDXDYDZ.GetInPort( 'Gate' ) - OTranslateDXDYDZreturn = TranslateDXDYDZ.GetOutPort( 'return' ) - OTranslateDXDYDZGate = TranslateDXDYDZ.GetOutPort( 'Gate' ) - - MakeFuse = aNewDataFlow.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeFuse' ) - MakeFuse.SetName( 'MakeFuse' ) - MakeFuse.SetAuthor( '' ) - MakeFuse.SetContainer( 'localhost/FactoryServer' ) - MakeFuse.SetComment( 'MakeFuse from GEOM_Superv' ) - MakeFuse.Coords( 806 , 33 ) - IMakeFusetheShape1 = MakeFuse.GetInPort( 'theShape1' ) - IMakeFusetheShape2 = MakeFuse.GetInPort( 'theShape2' ) - IMakeFuseGate = MakeFuse.GetInPort( 'Gate' ) - OMakeFusereturn = MakeFuse.GetOutPort( 'return' ) - OMakeFuseGate = MakeFuse.GetOutPort( 'Gate' ) - - # Creation of Links - LSetStudyIDGateMakeSphereGate = aNewDataFlow.Link( OSetStudyIDGate , IMakeSphereGate ) - - LMakeSpherereturnMakeCopytheOriginal = aNewDataFlow.Link( OMakeSpherereturn , IMakeCopytheOriginal ) - - LMakeSpherereturnMakeCopy_1theOriginal = aNewDataFlow.Link( OMakeSpherereturn , IMakeCopy_1theOriginal ) - - LMakeCopyreturnTranslateDXDYDZtheObject = aNewDataFlow.Link( OMakeCopyreturn , ITranslateDXDYDZtheObject ) - - LMakeCopyGateMakeCopy_1Gate = aNewDataFlow.Link( OMakeCopyGate , IMakeCopy_1Gate ) - LMakeCopyGateMakeCopy_1Gate.AddCoord( 1 , 382 , 174 ) - LMakeCopyGateMakeCopy_1Gate.AddCoord( 2 , 552 , 147 ) - - LMakeCopy_1returnMakeFusetheShape2 = aNewDataFlow.Link( OMakeCopy_1return , IMakeFusetheShape2 ) - LMakeCopy_1returnMakeFusetheShape2.AddCoord( 1 , 784 , 199 ) - - LMakeCopy_1GateTranslateDXDYDZGate = aNewDataFlow.Link( OMakeCopy_1Gate , ITranslateDXDYDZGate ) - - LTranslateDXDYDZreturnMakeFusetheShape1 = aNewDataFlow.Link( OTranslateDXDYDZreturn , IMakeFusetheShape1 ) - - LTranslateDXDYDZGateMakeFuseGate = aNewDataFlow.Link( OTranslateDXDYDZGate , IMakeFuseGate ) - - # Input datas - ISetStudyIDtheStudyID.Input( 1 ) - IMakeSpheretheX.Input( 0 ) - IMakeSpheretheY.Input( 0 ) - IMakeSpheretheZ.Input( 0 ) - IMakeSpheretheRadius.Input( 20 ) - ITranslateDXDYDZtheDX.Input( 10 ) - ITranslateDXDYDZtheDY.Input( 10 ) - ITranslateDXDYDZtheDZ.Input( 10 ) - - # Output Ports of the graph - #OMakeFusereturn = MakeFuse.GetOutPort( 'return' ) - return aNewDataFlow - - -aNewDataFlow = DefaNewDataFlow() diff --git a/Superv/Python/GraphGeomEssaiGates_py.py b/Superv/Python/GraphGeomEssaiGates_py.py deleted file mode 100644 index 502fd8f..0000000 --- a/Superv/Python/GraphGeomEssaiGates_py.py +++ /dev/null @@ -1,174 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphGeomEssai_1_1_1_1 -# -from SuperV import * - -# Graph creation of GraphGeomEssai_1_1_1_1 -def DefGraphGeomEssai_1_1_1_1() : - GraphGeomEssai_1_1_1_1 = Graph( 'GraphGeomEssai_1_1_1_1' ) - GraphGeomEssai_1_1_1_1.SetName( 'GraphGeomEssai_1_1_1_1' ) - GraphGeomEssai_1_1_1_1.SetAuthor( '' ) - GraphGeomEssai_1_1_1_1.SetComment( '' ) - GraphGeomEssai_1_1_1_1.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - # Creation of InLine Nodes - Pygag = [] - Pygag.append( 'from batchmode_geompy import * ' ) - Pygag.append( 'def gag(): ' ) - Pygag.append( ' # This is a gag ' ) - Pygag.append( ' return 1 ' ) - gag = GraphGeomEssai_1_1_1_1.INode( 'gag' , Pygag ) - gag.SetName( 'gag' ) - gag.SetAuthor( '' ) - gag.SetComment( 'Compute Node' ) - gag.Coords( 0 , 166 ) - IgagGate = gag.GetInPort( 'Gate' ) - OgagGate = gag.GetOutPort( 'Gate' ) - - PyMakeSphere_1 = [] - PyMakeSphere_1.append( 'def MakeSphere_1(x1,y1,z1,radius): ' ) - PyMakeSphere_1.append( ' apoint=MakeVertex(x1,y1,z1) ' ) - PyMakeSphere_1.append( ' shape=MakeSpherePntR(apoint,radius) ' ) - PyMakeSphere_1.append( ' return shape ' ) - MakeSphere_1 = GraphGeomEssai_1_1_1_1.INode( 'MakeSphere_1' , PyMakeSphere_1 ) - MakeSphere_1.SetName( 'MakeSphere_1' ) - MakeSphere_1.SetAuthor( '' ) - MakeSphere_1.SetComment( 'Compute Node' ) - MakeSphere_1.Coords( 181 , 86 ) - IMakeSphere_1x1 = MakeSphere_1.InPort( 'x1' , 'double' ) - IMakeSphere_1y1 = MakeSphere_1.InPort( 'y1' , 'double' ) - IMakeSphere_1z1 = MakeSphere_1.InPort( 'z1' , 'double' ) - IMakeSphere_1radius = MakeSphere_1.InPort( 'radius' , 'double' ) - IMakeSphere_1Gate = MakeSphere_1.GetInPort( 'Gate' ) - OMakeSphere_1shape = MakeSphere_1.OutPort( 'shape' , 'objref' ) - OMakeSphere_1Gate = MakeSphere_1.GetOutPort( 'Gate' ) - - PyMakeCopy_1 = [] - PyMakeCopy_1.append( 'def MakeCopy_1(shape1): ' ) - PyMakeCopy_1.append( ' shape=MakeCopy(shape1) ' ) - PyMakeCopy_1.append( ' return shape ' ) - MakeCopy_1 = GraphGeomEssai_1_1_1_1.INode( 'MakeCopy_1' , PyMakeCopy_1 ) - MakeCopy_1.SetName( 'MakeCopy_1' ) - MakeCopy_1.SetAuthor( '' ) - MakeCopy_1.SetComment( 'Compute Node' ) - MakeCopy_1.Coords( 386 , 2 ) - IMakeCopy_1shape1 = MakeCopy_1.InPort( 'shape1' , 'objref' ) - IMakeCopy_1Gate = MakeCopy_1.GetInPort( 'Gate' ) - OMakeCopy_1shape = MakeCopy_1.OutPort( 'shape' , 'objref' ) - OMakeCopy_1Gate = MakeCopy_1.GetOutPort( 'Gate' ) - - PyMakeCopy_2 = [] - PyMakeCopy_2.append( 'def MakeCopy_2(shape1): ' ) - PyMakeCopy_2.append( ' shape=MakeCopy(shape1) ' ) - PyMakeCopy_2.append( ' return shape ' ) - MakeCopy_2 = GraphGeomEssai_1_1_1_1.INode( 'MakeCopy_2' , PyMakeCopy_2 ) - MakeCopy_2.SetName( 'MakeCopy_2' ) - MakeCopy_2.SetAuthor( '' ) - MakeCopy_2.SetComment( 'Compute Node' ) - MakeCopy_2.Coords( 388 , 181 ) - IMakeCopy_2shape1 = MakeCopy_2.InPort( 'shape1' , 'objref' ) - IMakeCopy_2Gate = MakeCopy_2.GetInPort( 'Gate' ) - OMakeCopy_2shape = MakeCopy_2.OutPort( 'shape' , 'objref' ) - OMakeCopy_2Gate = MakeCopy_2.GetOutPort( 'Gate' ) - - PyMakeFuse_1 = [] - PyMakeFuse_1.append( 'def MakeFuse_1(shape1,shape2): ' ) - PyMakeFuse_1.append( ' # fuse operation 3 ' ) - PyMakeFuse_1.append( ' shape = MakeBoolean(shape1,shape2,3) ' ) - PyMakeFuse_1.append( ' from SALOME_NamingServicePy import SALOME_NamingServicePy_i ' ) - PyMakeFuse_1.append( ' myNamingService = SALOME_NamingServicePy_i(orb) ' ) - PyMakeFuse_1.append( ' aSession = myNamingService.Resolve('/Kernel/Session') ' ) - PyMakeFuse_1.append( ' aStudyId = aSession.GetActiveStudyId() ' ) - PyMakeFuse_1.append( ' myStudyManager = myNamingService.Resolve('/myStudyManager') ' ) - PyMakeFuse_1.append( ' aStudy = myStudyManager.GetStudyByID(aStudyId) ' ) - PyMakeFuse_1.append( ' aSObject = geom.AddInStudy(aStudy, shape, "shape", None) ' ) - PyMakeFuse_1.append( ' return shape ' ) - MakeFuse_1 = GraphGeomEssai_1_1_1_1.INode( 'MakeFuse_1' , PyMakeFuse_1 ) - MakeFuse_1.SetName( 'MakeFuse_1' ) - MakeFuse_1.SetAuthor( '' ) - MakeFuse_1.SetComment( 'Compute Node' ) - MakeFuse_1.Coords( 779 , 161 ) - IMakeFuse_1shape1 = MakeFuse_1.InPort( 'shape1' , 'objref' ) - IMakeFuse_1shape2 = MakeFuse_1.InPort( 'shape2' , 'objref' ) - IMakeFuse_1Gate = MakeFuse_1.GetInPort( 'Gate' ) - OMakeFuse_1shape = MakeFuse_1.OutPort( 'shape' , 'objref' ) - OMakeFuse_1Gate = MakeFuse_1.GetOutPort( 'Gate' ) - - PyMakeTranslation_1 = [] - PyMakeTranslation_1.append( 'def MakeTranslation_1(shape1,x1,y1,z1): ' ) - PyMakeTranslation_1.append( ' shape = MakeTranslation(shape1,x1,y1,z1) ' ) - PyMakeTranslation_1.append( ' return shape' ) - MakeTranslation_1 = GraphGeomEssai_1_1_1_1.INode( 'MakeTranslation_1' , PyMakeTranslation_1 ) - MakeTranslation_1.SetName( 'MakeTranslation_1' ) - MakeTranslation_1.SetAuthor( '' ) - MakeTranslation_1.SetComment( 'Compute Node' ) - MakeTranslation_1.Coords( 580 , 2 ) - IMakeTranslation_1shape1 = MakeTranslation_1.InPort( 'shape1' , 'objref' ) - IMakeTranslation_1x1 = MakeTranslation_1.InPort( 'x1' , 'double' ) - IMakeTranslation_1y1 = MakeTranslation_1.InPort( 'y1' , 'double' ) - IMakeTranslation_1z1 = MakeTranslation_1.InPort( 'z1' , 'double' ) - IMakeTranslation_1Gate = MakeTranslation_1.GetInPort( 'Gate' ) - OMakeTranslation_1shape = MakeTranslation_1.OutPort( 'shape' , 'objref' ) - OMakeTranslation_1Gate = MakeTranslation_1.GetOutPort( 'Gate' ) - - # Creation of Links - LgagGateMakeSphere_1Gate = GraphGeomEssai_1_1_1_1.Link( OgagGate , IMakeSphere_1Gate ) - - LMakeSphere_1shapeMakeCopy_1shape1 = GraphGeomEssai_1_1_1_1.Link( OMakeSphere_1shape , IMakeCopy_1shape1 ) - - LMakeSphere_1shapeMakeCopy_2shape1 = GraphGeomEssai_1_1_1_1.Link( OMakeSphere_1shape , IMakeCopy_2shape1 ) - - LMakeSphere_1GateMakeCopy_1Gate = GraphGeomEssai_1_1_1_1.Link( OMakeSphere_1Gate , IMakeCopy_1Gate ) - - LMakeCopy_1shapeMakeTranslation_1shape1 = GraphGeomEssai_1_1_1_1.Link( OMakeCopy_1shape , IMakeTranslation_1shape1 ) - - LMakeCopy_1GateMakeCopy_2Gate = GraphGeomEssai_1_1_1_1.Link( OMakeCopy_1Gate , IMakeCopy_2Gate ) - LMakeCopy_1GateMakeCopy_2Gate.AddCoord( 1 , 369 , 276 ) - LMakeCopy_1GateMakeCopy_2Gate.AddCoord( 2 , 560 , 97 ) - - LMakeCopy_2shapeMakeFuse_1shape2 = GraphGeomEssai_1_1_1_1.Link( OMakeCopy_2shape , IMakeFuse_1shape2 ) - - LMakeCopy_2GateMakeTranslation_1Gate = GraphGeomEssai_1_1_1_1.Link( OMakeCopy_2Gate , IMakeTranslation_1Gate ) - - LMakeTranslation_1shapeMakeFuse_1shape1 = GraphGeomEssai_1_1_1_1.Link( OMakeTranslation_1shape , IMakeFuse_1shape1 ) - - LMakeTranslation_1GateMakeFuse_1Gate = GraphGeomEssai_1_1_1_1.Link( OMakeTranslation_1Gate , IMakeFuse_1Gate ) - - # Input datas - IMakeSphere_1x1.Input( 0 ) - IMakeSphere_1y1.Input( 0 ) - IMakeSphere_1z1.Input( 0 ) - IMakeSphere_1radius.Input( 20 ) - IMakeTranslation_1x1.Input( 10 ) - IMakeTranslation_1y1.Input( 10 ) - IMakeTranslation_1z1.Input( 10 ) - - # Output Ports of the graph - #OMakeFuse_1shape = MakeFuse_1.GetOutPort( 'shape' ) - return GraphGeomEssai_1_1_1_1 - - -GraphGeomEssai_1_1_1_1 = DefGraphGeomEssai_1_1_1_1() diff --git a/Superv/Python/GraphGeomEssai_py.py b/Superv/Python/GraphGeomEssai_py.py deleted file mode 100644 index 8e99d16..0000000 --- a/Superv/Python/GraphGeomEssai_py.py +++ /dev/null @@ -1,164 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphGeomEssai_1_1_1_1 -# -from SuperV import * - -# Graph creation of GraphGeomEssai_1_1_1_1 -def DefGraphGeomEssai_1_1_1_1() : - GraphGeomEssai_1_1_1_1 = Graph( 'GraphGeomEssai_1_1_1_1' ) - GraphGeomEssai_1_1_1_1.SetName( 'GraphGeomEssai_1_1_1_1' ) - GraphGeomEssai_1_1_1_1.SetAuthor( '' ) - GraphGeomEssai_1_1_1_1.SetComment( '' ) - GraphGeomEssai_1_1_1_1.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - # Creation of InLine Nodes - Pygag = [] - Pygag.append( 'from batchmode_geompy import * ' ) - Pygag.append( 'def gag(): ' ) - Pygag.append( ' # This is a gag ' ) - Pygag.append( ' return 1 ' ) - gag = GraphGeomEssai_1_1_1_1.INode( 'gag' , Pygag ) - gag.SetName( 'gag' ) - gag.SetAuthor( '' ) - gag.SetComment( 'Compute Node' ) - gag.Coords( 0 , 166 ) - IgagGate = gag.GetInPort( 'Gate' ) - OgagGate = gag.GetOutPort( 'Gate' ) - - PyMakeSphere_1 = [] - PyMakeSphere_1.append( 'def MakeSphere_1(x1,y1,z1,radius): ' ) - PyMakeSphere_1.append( ' apoint=MakeVertex(x1,y1,z1) ' ) - PyMakeSphere_1.append( ' shape=MakeSpherePntR(apoint,radius) ' ) - PyMakeSphere_1.append( ' return shape ' ) - MakeSphere_1 = GraphGeomEssai_1_1_1_1.INode( 'MakeSphere_1' , PyMakeSphere_1 ) - MakeSphere_1.SetName( 'MakeSphere_1' ) - MakeSphere_1.SetAuthor( '' ) - MakeSphere_1.SetComment( 'Compute Node' ) - MakeSphere_1.Coords( 181 , 86 ) - IMakeSphere_1x1 = MakeSphere_1.InPort( 'x1' , 'double' ) - IMakeSphere_1y1 = MakeSphere_1.InPort( 'y1' , 'double' ) - IMakeSphere_1z1 = MakeSphere_1.InPort( 'z1' , 'double' ) - IMakeSphere_1radius = MakeSphere_1.InPort( 'radius' , 'double' ) - IMakeSphere_1Gate = MakeSphere_1.GetInPort( 'Gate' ) - OMakeSphere_1shape = MakeSphere_1.OutPort( 'shape' , 'objref' ) - OMakeSphere_1Gate = MakeSphere_1.GetOutPort( 'Gate' ) - - PyMakeCopy_1 = [] - PyMakeCopy_1.append( 'def MakeCopy_1(shape1): ' ) - PyMakeCopy_1.append( ' shape=MakeCopy(shape1) ' ) - PyMakeCopy_1.append( ' return shape ' ) - MakeCopy_1 = GraphGeomEssai_1_1_1_1.INode( 'MakeCopy_1' , PyMakeCopy_1 ) - MakeCopy_1.SetName( 'MakeCopy_1' ) - MakeCopy_1.SetAuthor( '' ) - MakeCopy_1.SetComment( 'Compute Node' ) - MakeCopy_1.Coords( 386 , 2 ) - IMakeCopy_1shape1 = MakeCopy_1.InPort( 'shape1' , 'objref' ) - IMakeCopy_1Gate = MakeCopy_1.GetInPort( 'Gate' ) - OMakeCopy_1shape = MakeCopy_1.OutPort( 'shape' , 'objref' ) - OMakeCopy_1Gate = MakeCopy_1.GetOutPort( 'Gate' ) - - PyMakeCopy_2 = [] - PyMakeCopy_2.append( 'def MakeCopy_2(shape1): ' ) - PyMakeCopy_2.append( ' shape=MakeCopy(shape1) ' ) - PyMakeCopy_2.append( ' return shape ' ) - MakeCopy_2 = GraphGeomEssai_1_1_1_1.INode( 'MakeCopy_2' , PyMakeCopy_2 ) - MakeCopy_2.SetName( 'MakeCopy_2' ) - MakeCopy_2.SetAuthor( '' ) - MakeCopy_2.SetComment( 'Compute Node' ) - MakeCopy_2.Coords( 388 , 181 ) - IMakeCopy_2shape1 = MakeCopy_2.InPort( 'shape1' , 'objref' ) - IMakeCopy_2Gate = MakeCopy_2.GetInPort( 'Gate' ) - OMakeCopy_2shape = MakeCopy_2.OutPort( 'shape' , 'objref' ) - OMakeCopy_2Gate = MakeCopy_2.GetOutPort( 'Gate' ) - - PyMakeFuse_1 = [] - PyMakeFuse_1.append( 'def MakeFuse_1(shape1,shape2): ' ) - PyMakeFuse_1.append( ' # fuse operation 3 ' ) - PyMakeFuse_1.append( ' shape = MakeBoolean(shape1,shape2,3) ' ) - PyMakeFuse_1.append( ' from SALOME_NamingServicePy import SALOME_NamingServicePy_i ' ) - PyMakeFuse_1.append( ' myNamingService = SALOME_NamingServicePy_i(orb) ' ) - PyMakeFuse_1.append( ' aSession = myNamingService.Resolve('/Kernel/Session') ' ) - PyMakeFuse_1.append( ' aStudyId = aSession.GetActiveStudyId() ' ) - PyMakeFuse_1.append( ' myStudyManager = myNamingService.Resolve('/myStudyManager') ' ) - PyMakeFuse_1.append( ' aStudy = myStudyManager.GetStudyByID(aStudyId) ' ) - PyMakeFuse_1.append( ' aSObject = geom.AddInStudy(aStudy, shape, "shape", None) ' ) - PyMakeFuse_1.append( ' return shape ' ) - MakeFuse_1 = GraphGeomEssai_1_1_1_1.INode( 'MakeFuse_1' , PyMakeFuse_1 ) - MakeFuse_1.SetName( 'MakeFuse_1' ) - MakeFuse_1.SetAuthor( '' ) - MakeFuse_1.SetComment( 'Compute Node' ) - MakeFuse_1.Coords( 779 , 161 ) - IMakeFuse_1shape1 = MakeFuse_1.InPort( 'shape1' , 'objref' ) - IMakeFuse_1shape2 = MakeFuse_1.InPort( 'shape2' , 'objref' ) - IMakeFuse_1Gate = MakeFuse_1.GetInPort( 'Gate' ) - OMakeFuse_1shape = MakeFuse_1.OutPort( 'shape' , 'objref' ) - OMakeFuse_1Gate = MakeFuse_1.GetOutPort( 'Gate' ) - - PyMakeTranslation_1 = [] - PyMakeTranslation_1.append( 'def MakeTranslation_1(shape1,x1,y1,z1): ' ) - PyMakeTranslation_1.append( ' shape = MakeTranslation(shape1,x1,y1,z1) ' ) - PyMakeTranslation_1.append( ' return shape' ) - MakeTranslation_1 = GraphGeomEssai_1_1_1_1.INode( 'MakeTranslation_1' , PyMakeTranslation_1 ) - MakeTranslation_1.SetName( 'MakeTranslation_1' ) - MakeTranslation_1.SetAuthor( '' ) - MakeTranslation_1.SetComment( 'Compute Node' ) - MakeTranslation_1.Coords( 580 , 2 ) - IMakeTranslation_1shape1 = MakeTranslation_1.InPort( 'shape1' , 'objref' ) - IMakeTranslation_1x1 = MakeTranslation_1.InPort( 'x1' , 'double' ) - IMakeTranslation_1y1 = MakeTranslation_1.InPort( 'y1' , 'double' ) - IMakeTranslation_1z1 = MakeTranslation_1.InPort( 'z1' , 'double' ) - IMakeTranslation_1Gate = MakeTranslation_1.GetInPort( 'Gate' ) - OMakeTranslation_1shape = MakeTranslation_1.OutPort( 'shape' , 'objref' ) - OMakeTranslation_1Gate = MakeTranslation_1.GetOutPort( 'Gate' ) - - # Creation of Links - LgagGateMakeSphere_1Gate = GraphGeomEssai_1_1_1_1.Link( OgagGate , IMakeSphere_1Gate ) - - LMakeSphere_1shapeMakeCopy_1shape1 = GraphGeomEssai_1_1_1_1.Link( OMakeSphere_1shape , IMakeCopy_1shape1 ) - - LMakeSphere_1shapeMakeCopy_2shape1 = GraphGeomEssai_1_1_1_1.Link( OMakeSphere_1shape , IMakeCopy_2shape1 ) - - LMakeCopy_1shapeMakeTranslation_1shape1 = GraphGeomEssai_1_1_1_1.Link( OMakeCopy_1shape , IMakeTranslation_1shape1 ) - - LMakeCopy_2shapeMakeFuse_1shape2 = GraphGeomEssai_1_1_1_1.Link( OMakeCopy_2shape , IMakeFuse_1shape2 ) - - LMakeTranslation_1shapeMakeFuse_1shape1 = GraphGeomEssai_1_1_1_1.Link( OMakeTranslation_1shape , IMakeFuse_1shape1 ) - - # Input datas - IMakeSphere_1x1.Input( 0 ) - IMakeSphere_1y1.Input( 0 ) - IMakeSphere_1z1.Input( 0 ) - IMakeSphere_1radius.Input( 20 ) - IMakeTranslation_1x1.Input( 10 ) - IMakeTranslation_1y1.Input( 10 ) - IMakeTranslation_1z1.Input( 10 ) - - # Output Ports of the graph - #OMakeFuse_1shape = MakeFuse_1.GetOutPort( 'shape' ) - return GraphGeomEssai_1_1_1_1 - - -GraphGeomEssai_1_1_1_1 = DefGraphGeomEssai_1_1_1_1() diff --git a/Superv/Python/GraphImportSalome.py b/Superv/Python/GraphImportSalome.py deleted file mode 100644 index ba6d476..0000000 --- a/Superv/Python/GraphImportSalome.py +++ /dev/null @@ -1,58 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph aNewDataFlow -# -from SuperV import * - -# Graph creation of aNewDataFlow -def DefaNewDataFlow() : - aNewDataFlow = Graph( 'aNewDataFlow' ) - aNewDataFlow.SetName( 'aNewDataFlow' ) - aNewDataFlow.SetAuthor( '' ) - aNewDataFlow.SetComment( '' ) - aNewDataFlow.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - # Creation of InLine Nodes - PyVoidFunction = [] - PyVoidFunction.append( 'import salome ' ) - PyVoidFunction.append( 'def VoidFunction() : ' ) - PyVoidFunction.append( ' print 'VoidFunction()' ' ) - PyVoidFunction.append( ' return 'Done' ' ) - PyVoidFunction.append( '' ) - VoidFunction = aNewDataFlow.INode( 'VoidFunction' , PyVoidFunction ) - VoidFunction.SetName( 'VoidFunction' ) - VoidFunction.SetAuthor( '' ) - VoidFunction.SetComment( 'Compute Node' ) - VoidFunction.Coords( 60 , 58 ) - IVoidFunctionGate = VoidFunction.GetInPort( 'Gate' ) - OVoidFunctionDone = VoidFunction.OutPort( 'Done' , 'string' ) - OVoidFunctionGate = VoidFunction.GetOutPort( 'Gate' ) - - # Output Ports of the graph - #OVoidFunctionDone = VoidFunction.GetOutPort( 'Done' ) - return aNewDataFlow - - -aNewDataFlow = DefaNewDataFlow() diff --git a/Superv/Python/GraphInLines.py b/Superv/Python/GraphInLines.py deleted file mode 100644 index 27c8fa6..0000000 --- a/Superv/Python/GraphInLines.py +++ /dev/null @@ -1,103 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphInLines -# -from SuperV import * -# Graph creation -GraphInLines = Graph( 'GraphInLines' ) -GraphInLines.SetName( 'GraphInLines' ) -GraphInLines.SetAuthor( '' ) -GraphInLines.SetComment( '' ) -GraphInLines.Coords( 0 , 0 ) - -# Creation of Factory Nodes - -# Creation of InLine Nodes -PyAdd = [] -PyAdd.append( 'def Add(a,b) : ' ) -PyAdd.append( ' return a+b ' ) -PyAdd.append( '' ) -Add = GraphInLines.INode( 'Add' , PyAdd ) -Add.InPort( 'a' , 'long' ) -Add.InPort( 'b' , 'long' ) -Add.OutPort( 'f' , 'long' ) -Add.SetName( 'Add' ) -Add.SetAuthor( '' ) -Add.SetComment( 'Python function' ) -Add.Coords( 351 , 77 ) - -PySub = [] -PySub.append( 'def Sub(a,b) : ' ) -PySub.append( ' return a-b ' ) -PySub.append( '' ) -Sub = GraphInLines.INode( 'Sub' , PySub ) -Sub.InPort( 'a' , 'long' ) -Sub.InPort( 'b' , 'long' ) -Sub.OutPort( 'f' , 'long' ) -Sub.SetName( 'Sub' ) -Sub.SetAuthor( '' ) -Sub.SetComment( 'Python function' ) -Sub.Coords( 86 , 333 ) - -PyMul = [] -PyMul.append( 'def Mul(a,b) : ' ) -PyMul.append( ' return a*b ' ) -Mul = GraphInLines.INode( 'Mul' , PyMul ) -Mul.InPort( 'a' , 'long' ) -Mul.InPort( 'b' , 'long' ) -Mul.OutPort( 'Result' , 'long' ) -Mul.SetName( 'Mul' ) -Mul.SetAuthor( '' ) -Mul.SetComment( 'Python function' ) -Mul.Coords( 616 , 247 ) - -# Creation of Links -Addf = Add.Port( 'f' ) -Mula = GraphInLines.Link( Addf , Mul.Port( 'a' ) ) -Mula.AddCoord( 1 , 569 , 326 ) -Mula.AddCoord( 2 , 569 , 158 ) - -Subf = Sub.Port( 'f' ) -Mulb = GraphInLines.Link( Subf , Mul.Port( 'b' ) ) -Mulb.AddCoord( 1 , 283 , 358 ) -Mulb.AddCoord( 2 , 281 , 413 ) - -Addb = GraphInLines.Link( Subf , Add.Port( 'b' ) ) -Addb.AddCoord( 1 , 283 , 187 ) -Addb.AddCoord( 2 , 282 , 356 ) -Addb.AddCoord( 3 , 281 , 414 ) - -# Creation of Input datas -Adda = Add.Input( 'a' , 1) -Suba = Sub.Input( 'a' , 3) -Subb = Sub.Input( 'b' , 4) - -# Creation of Output variables -MulResult = Mul.Port( 'Result' ) - -GraphInLines.Run() - -GraphInLines.DoneW() - -GraphInLines.PrintPorts() - diff --git a/Superv/Python/GraphInLinesParall.py b/Superv/Python/GraphInLinesParall.py deleted file mode 100755 index 0ee4316..0000000 --- a/Superv/Python/GraphInLinesParall.py +++ /dev/null @@ -1,108 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphInLines -# -from SuperV import * -# Graph creation -GraphInLinesParall = Graph( 'GraphInLinesParall' ) -GraphInLinesParall.SetName( 'GraphInLinesParall' ) -GraphInLinesParall.SetAuthor( '' ) -GraphInLinesParall.SetComment( '' ) -GraphInLinesParall.Coords( 0 , 0 ) - -# Creation of Factory Nodes - -# Creation of InLine Nodes -PyAdd = [] -PyAdd.append( 'import time ' ) -PyAdd.append( 'def Add(a,b) : ' ) -PyAdd.append( ' print "Add will wait 5 seconds" ' ) -PyAdd.append( ' time.sleep(5) ' ) -PyAdd.append( ' print "Add waited" ' ) -PyAdd.append( ' return a+b ' ) -PyAdd.append( '' ) -Add = GraphInLinesParall.INode( 'Add' , PyAdd ) -Add.InPort( 'a' , 'long' ) -Add.InPort( 'b' , 'long' ) -Add.OutPort( 'f' , 'long' ) -Add.SetName( 'Add' ) -Add.SetAuthor( '' ) -Add.SetComment( 'Python function' ) -Add.Coords( 351 , 77 ) - -PySub = [] -PySub.append( 'def Sub(a,b) : ' ) -PySub.append( ' return a-b ' ) -PySub.append( '' ) -Sub = GraphInLinesParall.INode( 'Sub' , PySub ) -Sub.InPort( 'a' , 'long' ) -Sub.InPort( 'b' , 'long' ) -Sub.OutPort( 'f' , 'long' ) -Sub.SetName( 'Sub' ) -Sub.SetAuthor( '' ) -Sub.SetComment( 'Python function' ) -Sub.Coords( 86 , 333 ) - -PyMul = [] -PyMul.append( 'import time ' ) -PyMul.append( 'def Mul(a,b) : ' ) -PyMul.append( ' print "Mul will wait 5 seconds" ' ) -PyMul.append( ' time.sleep(5) ' ) -PyMul.append( ' print "Mul waited" ' ) -PyMul.append( ' return a*b ' ) -Mul = GraphInLinesParall.INode( 'Mul' , PyMul ) -Mul.InPort( 'a' , 'long' ) -Mul.InPort( 'b' , 'long' ) -Mul.OutPort( 'Result' , 'long' ) -Mul.SetName( 'Mul' ) -Mul.SetAuthor( '' ) -Mul.SetComment( 'Python function' ) -Mul.Coords( 616 , 247 ) - -# Creation of Links -Subf = Sub.Port( 'f' ) -Mulb = GraphInLinesParall.Link( Subf , Mul.Port( 'b' ) ) -Mulb.AddCoord( 1 , 583 , 357 ) -Mulb.AddCoord( 2 , 583 , 413 ) -Mulb.AddCoord( 3 , 282 , 413 ) - -Addb = GraphInLinesParall.Link( Subf , Add.Port( 'b' ) ) -Addb.AddCoord( 1 , 282 , 186 ) -Addb.AddCoord( 2 , 283 , 413 ) - -Mula = GraphInLinesParall.Link( Subf , Mul.Port( 'a' ) ) -Mula.AddCoord( 1 , 583 , 328 ) -Mula.AddCoord( 2 , 583 , 412 ) - -# Creation of Input datas -Adda = Add.Input( 'a' , 1) -Suba = Sub.Input( 'a' , 3) -Subb = Sub.Input( 'b' , 4) - -# Creation of Output variables -Addf = Add.Port( 'f' ) -MulResult = Mul.Port( 'Result' ) - -GraphInLinesParall.Run() -GraphInLinesParall.DoneW() -GraphInLinesParall.PrintPorts() diff --git a/Superv/Python/GraphInLinesTypesCheck.py b/Superv/Python/GraphInLinesTypesCheck.py deleted file mode 100755 index dcb4d6c..0000000 --- a/Superv/Python/GraphInLinesTypesCheck.py +++ /dev/null @@ -1,212 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphInLinesConvertCheck -# -from SuperV import * -# Graph creation -GraphInLinesConvertCheck = Graph( 'GraphInLinesConvertCheck' ) -GraphInLinesConvertCheck.SetName( 'GraphInLinesConvertCheck' ) -GraphInLinesConvertCheck.SetAuthor( 'JR' ) -GraphInLinesConvertCheck.SetComment( '' ) -GraphInLinesConvertCheck.Coords( 0 , 0 ) - -# Creation of Factory Nodes - -Addition = GraphInLinesConvertCheck.FNode( 'AddComponent' , 'AddComponent' , 'Addition' ) -Addition.SetName( 'Addition' ) -Addition.SetAuthor( '' ) -Addition.SetContainer( 'localhost/FactoryServer' ) -Addition.SetComment( 'Addition from AddComponent' ) -Addition.Coords( 232 , 514 ) - -# Creation of InLine Nodes -PyBoolCheck = [] -PyBoolCheck.append( 'def BoolCheck( InBool ) : ' ) -PyBoolCheck.append( ' return InBool ' ) -PyBoolCheck.append( '' ) -BoolCheck = GraphInLinesConvertCheck.INode( 'BoolCheck' , PyBoolCheck ) -BoolCheck.InPort( 'InBool' , 'boolean' ) -BoolCheck.OutPort( 'OutBool' , 'boolean' ) -BoolCheck.SetName( 'BoolCheck' ) -BoolCheck.SetAuthor( '' ) -BoolCheck.SetComment( 'InLine Node' ) -BoolCheck.Coords( 234 , 92 ) - -PyCharCheck = [] -PyCharCheck.append( 'def CharCheck( InChar ) : ' ) -PyCharCheck.append( ' return InChar ' ) -PyCharCheck.append( '' ) -CharCheck = GraphInLinesConvertCheck.INode( 'CharCheck' , PyCharCheck ) -CharCheck.InPort( 'InChar' , 'char' ) -CharCheck.OutPort( 'OutChar' , 'char' ) -CharCheck.SetName( 'CharCheck' ) -CharCheck.SetAuthor( '' ) -CharCheck.SetComment( 'InLine Node' ) -CharCheck.Coords( 30 , 142 ) - -PyShortCheck = [] -PyShortCheck.append( 'def ShortCheck( InShort ) : ' ) -PyShortCheck.append( ' return InShort ' ) -PyShortCheck.append( '' ) -ShortCheck = GraphInLinesConvertCheck.INode( 'ShortCheck' , PyShortCheck ) -ShortCheck.InPort( 'InShort' , 'short' ) -ShortCheck.OutPort( 'OutShort' , 'short' ) -ShortCheck.SetName( 'ShortCheck' ) -ShortCheck.SetAuthor( '' ) -ShortCheck.SetComment( 'InLine Node' ) -ShortCheck.Coords( 234 , 230 ) - -PyFloatCheck = [] -PyFloatCheck.append( 'def FloatCheck( InFloat ) : ' ) -PyFloatCheck.append( ' return InFloat ' ) -PyFloatCheck.append( '' ) -FloatCheck = GraphInLinesConvertCheck.INode( 'FloatCheck' , PyFloatCheck ) -FloatCheck.InPort( 'InFloat' , 'float' ) -FloatCheck.OutPort( 'OutFloat' , 'float' ) -FloatCheck.SetName( 'FloatCheck' ) -FloatCheck.SetAuthor( '' ) -FloatCheck.SetComment( 'InLine Node' ) -FloatCheck.Coords( 230 , 375 ) - -PyLongCheck = [] -PyLongCheck.append( 'def LongCheck( InLong ) : ' ) -PyLongCheck.append( ' return InLong ' ) -PyLongCheck.append( '' ) -LongCheck = GraphInLinesConvertCheck.INode( 'LongCheck' , PyLongCheck ) -LongCheck.InPort( 'InLong' , 'long' ) -LongCheck.OutPort( 'OutLong' , 'long' ) -LongCheck.SetName( 'LongCheck' ) -LongCheck.SetAuthor( '' ) -LongCheck.SetComment( 'InLine Node' ) -LongCheck.Coords( 30 , 282 ) - -PyStringCheck = [] -PyStringCheck.append( 'def StringCheck( aString ) : ' ) -PyStringCheck.append( ' return aString ' ) -PyStringCheck.append( '' ) -StringCheck = GraphInLinesConvertCheck.INode( 'StringCheck' , PyStringCheck ) -StringCheck.InPort( 'InString' , 'string' ) -StringCheck.OutPort( 'OutString' , 'string' ) -StringCheck.SetName( 'StringCheck' ) -StringCheck.SetAuthor( '' ) -StringCheck.SetComment( 'InLine Node' ) -StringCheck.Coords( 30 , 6 ) - -PyDoubleCheck = [] -PyDoubleCheck.append( 'def DoubleCheck( InDouble ) : ' ) -PyDoubleCheck.append( ' return InDouble ' ) -PyDoubleCheck.append( '' ) -DoubleCheck = GraphInLinesConvertCheck.INode( 'DoubleCheck' , PyDoubleCheck ) -DoubleCheck.InPort( 'InDouble' , 'double' ) -DoubleCheck.OutPort( 'OutDouble' , 'double' ) -DoubleCheck.SetName( 'DoubleCheck' ) -DoubleCheck.SetAuthor( '' ) -DoubleCheck.SetComment( 'Compute Node' ) -DoubleCheck.Coords( 23 , 427 ) - -PyMiscTypes = [] -PyMiscTypes.append( 'def MiscTypes( InString , InBool , InChar , InShort , InLong , InFloat , InDouble , InObjRef ) : ' ) -PyMiscTypes.append( ' return InString,InBool,InChar,InShort,InLong,InFloat,InDouble,InObjRef ' ) -MiscTypes = GraphInLinesConvertCheck.INode( 'MiscTypes' , PyMiscTypes ) -MiscTypes.InPort( 'InString' , 'string' ) -MiscTypes.InPort( 'InBool' , 'boolean' ) -MiscTypes.InPort( 'InChar' , 'char' ) -MiscTypes.InPort( 'InShort' , 'short' ) -MiscTypes.InPort( 'InLong' , 'long' ) -MiscTypes.InPort( 'InFloat' , 'float' ) -MiscTypes.InPort( 'InDouble' , 'double' ) -MiscTypes.InPort( 'InObjRef' , 'SuperVision::Adder' ) -MiscTypes.OutPort( 'OutString' , 'string' ) -MiscTypes.OutPort( 'OutBool' , 'boolean' ) -MiscTypes.OutPort( 'OutChar' , 'char' ) -MiscTypes.OutPort( 'OutShort' , 'short' ) -MiscTypes.OutPort( 'OutLong' , 'long' ) -MiscTypes.OutPort( 'OutFloat' , 'float' ) -MiscTypes.OutPort( 'OutDouble' , 'double' ) -MiscTypes.OutPort( 'OutObjRef' , 'SuperVisionTest::Addre' ) -MiscTypes.SetName( 'MiscTypes' ) -MiscTypes.SetAuthor( '' ) -MiscTypes.SetComment( 'InLine Node' ) -MiscTypes.Coords( 477 , 231 ) - -# Creation of Links -BoolCheckOutBool = BoolCheck.Port( 'OutBool' ) -MiscTypesInBool = GraphInLinesConvertCheck.Link( BoolCheckOutBool , MiscTypes.Port( 'InBool' ) ) -MiscTypesInBool.AddCoord( 1 , 446 , 341 ) -MiscTypesInBool.AddCoord( 2 , 446 , 172 ) - -CharCheckOutChar = CharCheck.Port( 'OutChar' ) -MiscTypesInChar = GraphInLinesConvertCheck.Link( CharCheckOutChar , MiscTypes.Port( 'InChar' ) ) -MiscTypesInChar.AddCoord( 1 , 431 , 368 ) -MiscTypesInChar.AddCoord( 2 , 431 , 223 ) - -ShortCheckOutShort = ShortCheck.Port( 'OutShort' ) -MiscTypesInShort = GraphInLinesConvertCheck.Link( ShortCheckOutShort , MiscTypes.Port( 'InShort' ) ) -MiscTypesInShort.AddCoord( 1 , 415 , 397 ) -MiscTypesInShort.AddCoord( 2 , 414 , 310 ) - -FloatCheckOutFloat = FloatCheck.Port( 'OutFloat' ) -MiscTypesInFloat = GraphInLinesConvertCheck.Link( FloatCheckOutFloat , MiscTypes.Port( 'InFloat' ) ) - -AdditionAdder = Addition.Port( 'Adder' ) -MiscTypesInObjRef = GraphInLinesConvertCheck.Link( AdditionAdder , MiscTypes.Port( 'InObjRef' ) ) -MiscTypesInObjRef.AddCoord( 1 , 462 , 514 ) -MiscTypesInObjRef.AddCoord( 2 , 461 , 593 ) - -LongCheckOutLong = LongCheck.Port( 'OutLong' ) -MiscTypesInLong = GraphInLinesConvertCheck.Link( LongCheckOutLong , MiscTypes.Port( 'InLong' ) ) -MiscTypesInLong.AddCoord( 1 , 406 , 426 ) -MiscTypesInLong.AddCoord( 2 , 405 , 363 ) - -StringCheckOutString = StringCheck.Port( 'OutString' ) -MiscTypesInString = GraphInLinesConvertCheck.Link( StringCheckOutString , MiscTypes.Port( 'InString' ) ) -MiscTypesInString.AddCoord( 1 , 462 , 312 ) -MiscTypesInString.AddCoord( 2 , 461 , 87 ) - -DoubleCheckOutDouble = DoubleCheck.Port( 'OutDouble' ) -MiscTypesInDouble = GraphInLinesConvertCheck.Link( DoubleCheckOutDouble , MiscTypes.Port( 'InDouble' ) ) -MiscTypesInDouble.AddCoord( 1 , 445 , 485 ) -MiscTypesInDouble.AddCoord( 2 , 445 , 508 ) - -# Creation of Input datas -BoolCheckInBool = BoolCheck.Input( 'InBool' , 1) -CharCheckInChar = CharCheck.Input( 'InChar' , 255) -ShortCheckInShort = ShortCheck.Input( 'InShort' , 16383) -FloatCheckInFloat = FloatCheck.Input( 'InFloat' , 3.14159) -LongCheckInLong = LongCheck.Input( 'InLong' , 1234567890) -StringCheckInString = StringCheck.Input( 'InString' , 'aString') -DoubleCheckInDouble = DoubleCheck.Input( 'InDouble' , 1.23457) - -# Creation of Output variables -MiscTypesOutString = MiscTypes.Port( 'OutString' ) -MiscTypesOutBool = MiscTypes.Port( 'OutBool' ) -MiscTypesOutChar = MiscTypes.Port( 'OutChar' ) -MiscTypesOutShort = MiscTypes.Port( 'OutShort' ) -MiscTypesOutLong = MiscTypes.Port( 'OutLong' ) -MiscTypesOutFloat = MiscTypes.Port( 'OutFloat' ) -MiscTypesOutDouble = MiscTypes.Port( 'OutDouble' ) -MiscTypesOutObjRef = MiscTypes.Port( 'OutObjRef' ) - -GraphInLinesConvertCheck.Run() -GraphInLinesConvertCheck.DoneW() -GraphInLinesConvertCheck.PrintPorts() diff --git a/Superv/Python/GraphInLinesUnValid.py b/Superv/Python/GraphInLinesUnValid.py deleted file mode 100755 index 4e20bf6..0000000 --- a/Superv/Python/GraphInLinesUnValid.py +++ /dev/null @@ -1,108 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphInLinesUnValid -# -from SuperV import * -# Graph creation -GraphInLinesUnValid = Graph( 'GraphInLinesUnValid' ) -GraphInLinesUnValid.SetName( 'GraphInLinesUnValid' ) -GraphInLinesUnValid.SetAuthor( '' ) -GraphInLinesUnValid.SetComment( '' ) -GraphInLinesUnValid.Coords( 0 , 0 ) - -# Creation of Factory Nodes - -# Creation of InLine Nodes -PyAdd = [] -PyAdd.append( 'def Add(a,b) : ' ) -PyAdd.append( ' return a+b ' ) -PyAdd.append( '' ) -Add = GraphInLinesUnValid.INode( 'Add' , PyAdd ) -Add.InPort( 'a' , 'long' ) -Add.InPort( 'b' , 'long' ) -Add.OutPort( 'f' , 'long' ) -Add.SetName( 'Add' ) -Add.SetAuthor( '' ) -Add.SetComment( 'Python function' ) -Add.Coords( 257 , 13 ) - -PySub = [] -PySub.append( 'def Sub(a,b) : ' ) -PySub.append( ' return a-b ' ) -PySub.append( '' ) -Sub = GraphInLinesUnValid.INode( 'Sub' , PySub ) -Sub.InPort( 'a' , 'long' ) -Sub.InPort( 'b' , 'long' ) -Sub.OutPort( 'f' , 'long' ) -Sub.SetName( 'Sub' ) -Sub.SetAuthor( '' ) -Sub.SetComment( 'Python function' ) -Sub.Coords( 20 , 152 ) - -PyMul = [] -PyMul.append( 'def Mul(a,b) : ' ) -PyMul.append( ' return a*b ' ) -Mul = GraphInLinesUnValid.INode( 'Mul' , PyMul ) -Mul.InPort( 'a' , 'long' ) -Mul.InPort( 'b' , 'long' ) -Mul.OutPort( 'Result' , 'long' ) -Mul.SetName( 'Mul' ) -Mul.SetAuthor( '' ) -Mul.SetComment( 'Python function' ) -Mul.Coords( 469 , 125 ) - -# Creation of Links -Addf = Add.Port( 'f' ) -Mula = GraphInLinesUnValid.Link( Addf , Mul.Port( 'a' ) ) -Mula.AddCoord( 1 , 451 , 205 ) -Mula.AddCoord( 2 , 450 , 93 ) - -Subf = Sub.Port( 'f' ) -Mulb = GraphInLinesUnValid.Link( Subf , Mul.Port( 'b' ) ) - -Addb = GraphInLinesUnValid.Link( Subf , Add.Port( 'b' ) ) -Addb.AddCoord( 1 , 235 , 122 ) -Addb.AddCoord( 2 , 236 , 232 ) - -MulResult = Mul.Port( 'Result' ) -Adda = GraphInLinesUnValid.Link( MulResult , Add.Port( 'a' ) ) -Adda.AddCoord( 1 , 8 , 92 ) -Adda.AddCoord( 2 , 7 , 332 ) -Adda.AddCoord( 3 , 645 , 334 ) -Adda.AddCoord( 4 , 645 , 204 ) - -statexec = GraphInLinesUnValid.IsExecutable() -if statexec != 0 : - print "ERROR : GraphInLinesUnValid should not be executable" -else : - print "Ok : GraphInLinesUnValid is not executable" - -# Creation of Output variables -statrun = GraphInLinesUnValid.Run() -if statrun != 0 : - print "ERROR : GraphInLinesUnValid should not run" -else : - print "Ok : GraphInLinesUnValid does not run" - - - diff --git a/Superv/Python/GraphInconsistencyTypes.py b/Superv/Python/GraphInconsistencyTypes.py deleted file mode 100644 index 40282ed..0000000 --- a/Superv/Python/GraphInconsistencyTypes.py +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph aNewDataFlow_4 -# -from SuperV import * - -# Graph creation of aNewDataFlow_4 -def DefaNewDataFlow_4() : - aNewDataFlow_4 = Graph( 'aNewDataFlow_4' ) - aNewDataFlow_4.SetName( 'aNewDataFlow_4' ) - aNewDataFlow_4.SetAuthor( '' ) - aNewDataFlow_4.SetComment( '' ) - aNewDataFlow_4.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - # Creation of InLine Nodes - PyMulNode = [] - PyMulNode.append( 'def MulNode(a,b): ' ) - PyMulNode.append( ' c = a*b ' ) - PyMulNode.append( ' return c ' ) - MulNode = aNewDataFlow_4.INode( 'MulNode' , PyMulNode ) - MulNode.SetName( 'MulNode' ) - MulNode.SetAuthor( '' ) - MulNode.SetComment( 'Compute Node' ) - MulNode.Coords( 0 , 0 ) - IMulNodea = MulNode.InPort( 'a' , 'double' ) - IMulNodeb = MulNode.InPort( 'b' , 'double' ) - IMulNodeGate = MulNode.GetInPort( 'Gate' ) - OMulNodec = MulNode.OutPort( 'c' , 'string' ) - OMulNodeGate = MulNode.GetOutPort( 'Gate' ) - - # Input datas - IMulNodea.Input( 10.5 ) - IMulNodeb.Input( 2 ) - - # Output Ports of the graph - #OMulNodec = MulNode.GetOutPort( 'c' ) - return aNewDataFlow_4 - - -aNewDataFlow_4 = DefaNewDataFlow_4() diff --git a/Superv/Python/GraphInputInLoop.py b/Superv/Python/GraphInputInLoop.py deleted file mode 100644 index 31c4c4d..0000000 --- a/Superv/Python/GraphInputInLoop.py +++ /dev/null @@ -1,171 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphInputInLoop_2_1 -# -from SuperV import * - -# Graph creation of GraphInputInLoop_2_1 -def DefGraphInputInLoop_2_1() : - GraphInputInLoop_2_1 = Graph( 'GraphInputInLoop_2_1' ) - GraphInputInLoop_2_1.SetName( 'GraphInputInLoop_2_1' ) - GraphInputInLoop_2_1.SetAuthor( '' ) - GraphInputInLoop_2_1.SetComment( '' ) - GraphInputInLoop_2_1.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - # Creation of InLine Nodes - PyIsOdd = [] - PyIsOdd.append( 'from time import * ' ) - PyIsOdd.append( 'def IsOdd(a,Even,Const) : ' ) - PyIsOdd.append( ' print 'IsOdd',a,Even,Const ' ) - PyIsOdd.append( ' sleep( 1 ) ' ) - PyIsOdd.append( ' return a,Const ' ) - IsOdd = GraphInputInLoop_2_1.INode( 'IsOdd' , PyIsOdd ) - IsOdd.SetName( 'IsOdd' ) - IsOdd.SetAuthor( '' ) - IsOdd.SetComment( 'Python function' ) - IsOdd.Coords( 397 , 5 ) - IIsOdda = IsOdd.InPort( 'a' , 'long' ) - IIsOddEven = IsOdd.InPort( 'Even' , 'boolean' ) - IIsOddConst = IsOdd.InPort( 'Const' , 'string' ) - IIsOddGate = IsOdd.GetInPort( 'Gate' ) - OIsOdda = IsOdd.OutPort( 'a' , 'long' ) - OIsOddConst = IsOdd.OutPort( 'Const' , 'string' ) - OIsOddGate = IsOdd.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyInitLoop = [] - PyMoreInitLoop = [] - PyMoreInitLoop.append( '' ) - PyNextInitLoop = [] - PyNextInitLoop.append( '' ) - InitLoop,EndOfInitLoop = GraphInputInLoop_2_1.LNode( '' , PyInitLoop , '' , PyMoreInitLoop , '' , PyNextInitLoop ) - EndOfInitLoop.SetName( 'EndOfInitLoop' ) - EndOfInitLoop.SetAuthor( '' ) - EndOfInitLoop.SetComment( 'Compute Node' ) - EndOfInitLoop.Coords( 770 , 147 ) - PyEndOfInitLoop = [] - PyEndOfInitLoop.append( 'def EndOfInitLoop( DoLoop , Index , Min , Max ) :' ) - PyEndOfInitLoop.append( ' Index = Index + 1 ' ) - PyEndOfInitLoop.append( ' if Index <= Max : ' ) - PyEndOfInitLoop.append( ' DoLoop = 1 ' ) - PyEndOfInitLoop.append( ' else : ' ) - PyEndOfInitLoop.append( ' DoLoop = 0 ' ) - PyEndOfInitLoop.append( ' return DoLoop,Index,Min,Max ' ) - EndOfInitLoop.SetPyFunction( 'EndOfInitLoop' , PyEndOfInitLoop ) - IInitLoopDoLoop = InitLoop.GetInPort( 'DoLoop' ) - IInitLoopIndex = InitLoop.InPort( 'Index' , 'long' ) - IInitLoopMin = InitLoop.InPort( 'Min' , 'long' ) - IInitLoopMax = InitLoop.InPort( 'Max' , 'long' ) - IInitLoopGate = InitLoop.GetInPort( 'Gate' ) - OInitLoopDoLoop = InitLoop.GetOutPort( 'DoLoop' ) - OInitLoopIndex = InitLoop.GetOutPort( 'Index' ) - OInitLoopMin = InitLoop.GetOutPort( 'Min' ) - OInitLoopMax = InitLoop.GetOutPort( 'Max' ) - IEndOfInitLoopDoLoop = EndOfInitLoop.GetInPort( 'DoLoop' ) - IEndOfInitLoopIndex = EndOfInitLoop.GetInPort( 'Index' ) - IEndOfInitLoopMin = EndOfInitLoop.GetInPort( 'Min' ) - IEndOfInitLoopMax = EndOfInitLoop.GetInPort( 'Max' ) - IEndOfInitLoopGate = EndOfInitLoop.GetInPort( 'Gate' ) - OEndOfInitLoopDoLoop = EndOfInitLoop.GetOutPort( 'DoLoop' ) - OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) - OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) - OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) - OEndOfInitLoopGate = EndOfInitLoop.GetOutPort( 'Gate' ) - InitLoop.SetName( 'InitLoop' ) - InitLoop.SetAuthor( '' ) - InitLoop.SetComment( 'Compute Node' ) - InitLoop.Coords( 10 , 108 ) - - # Creation of Switch Nodes - PySwitch = [] - PySwitch.append( 'from time import * ' ) - PySwitch.append( 'def Switch(a) : ' ) - PySwitch.append( ' if ( a & 1 ) == 0 : ' ) - PySwitch.append( ' sleep(1) ' ) - PySwitch.append( ' return a & 1,1-(a&1),a ' ) - Switch,EndSwitch = GraphInputInLoop_2_1.SNode( 'Switch' , PySwitch ) - EndSwitch.SetName( 'EndSwitch' ) - EndSwitch.SetAuthor( '' ) - EndSwitch.SetComment( 'Compute Node' ) - EndSwitch.Coords( 588 , 147 ) - PyEndSwitch = [] - PyEndSwitch.append( 'def EndSwitch(a) : ' ) - PyEndSwitch.append( ' if ( a & 1 ) == 0 : ' ) - PyEndSwitch.append( ' sleep(1) ' ) - PyEndSwitch.append( ' return a ' ) - EndSwitch.SetPyFunction( 'EndSwitch' , PyEndSwitch ) - IEndSwitcha = EndSwitch.InPort( 'a' , 'long' ) - IEndSwitchDefault = EndSwitch.GetInPort( 'Default' ) - OEndSwitcha = EndSwitch.OutPort( 'a' , 'long' ) - OEndSwitchGate = EndSwitch.GetOutPort( 'Gate' ) - Switch.SetName( 'Switch' ) - Switch.SetAuthor( '' ) - Switch.SetComment( 'Compute Node' ) - Switch.Coords( 194 , 109 ) - ISwitcha = Switch.InPort( 'a' , 'long' ) - ISwitchGate = Switch.GetInPort( 'Gate' ) - OSwitchOdd = Switch.OutPort( 'Odd' , 'long' ) - OSwitchEven = Switch.OutPort( 'Even' , 'int' ) - OSwitcha = Switch.OutPort( 'a' , 'int' ) - OSwitchDefault = Switch.GetOutPort( 'Default' ) - - # Creation of Links - LIsOddaEndSwitcha = GraphInputInLoop_2_1.Link( OIsOdda , IEndSwitcha ) - LIsOddaEndSwitcha.AddCoord( 1 , 573 , 178 ) - LIsOddaEndSwitcha.AddCoord( 2 , 573 , 76 ) - - LInitLoopIndexSwitcha = GraphInputInLoop_2_1.Link( OInitLoopIndex , ISwitcha ) - - LInitLoopMinEndOfInitLoopMin = GraphInputInLoop_2_1.Link( OInitLoopMin , IEndOfInitLoopMin ) - - LInitLoopMaxEndOfInitLoopMax = GraphInputInLoop_2_1.Link( OInitLoopMax , IEndOfInitLoopMax ) - - LSwitchOddIsOddGate = GraphInputInLoop_2_1.Link( OSwitchOdd , IIsOddGate ) - - LSwitchEvenIsOddEven = GraphInputInLoop_2_1.Link( OSwitchEven , IIsOddEven ) - - LSwitchaIsOdda = GraphInputInLoop_2_1.Link( OSwitcha , IIsOdda ) - LSwitchaIsOdda.AddCoord( 1 , 366 , 71 ) - LSwitchaIsOdda.AddCoord( 2 , 366 , 182 ) - - LSwitchDefaultEndSwitchDefault = GraphInputInLoop_2_1.Link( OSwitchDefault , IEndSwitchDefault ) - - LEndSwitchaEndOfInitLoopIndex = GraphInputInLoop_2_1.Link( OEndSwitcha , IEndOfInitLoopIndex ) - - # Input datas - IIsOddConst.Input( 'Const Input Value' ) - IInitLoopIndex.Input( 0 ) - IInitLoopMin.Input( 0 ) - IInitLoopMax.Input( 23 ) - - # Output Ports of the graph - #OIsOddConst = IsOdd.GetOutPort( 'Const' ) - #OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) - #OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) - #OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) - return GraphInputInLoop_2_1 - - -GraphInputInLoop_2_1 = DefGraphInputInLoop_2_1() diff --git a/Superv/Python/GraphKillSuspend.py b/Superv/Python/GraphKillSuspend.py deleted file mode 100644 index 2494bae..0000000 --- a/Superv/Python/GraphKillSuspend.py +++ /dev/null @@ -1,61 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# -from GraphEssai import * -import time - -exec GraphEssai.ListNodes('GraphEssai') - -GraphEssai.Run() -time.sleep(10) -GraphEssai.Kill() -print 'Add :',Add.State() -print 'Sub :',Sub.State() -print 'Mul :',Mul.State() -print 'Div :',Div.State() -print 'GraphEssai :',GraphEssai.State() - - -GraphEssai.Run() -time.sleep(5) -GraphEssai.Suspend() -print 'Add :',Add.State() -print 'Sub :',Sub.State() -print 'Mul :',Mul.State() -print 'Div :',Div.State() -print 'GraphEssai :',GraphEssai.State() -GraphEssai.Resume() -time.sleep(5) -print 'Add :',Add.State() -print 'Sub :',Sub.State() -print 'Mul :',Mul.State() -print 'Div :',Div.State() -print 'GraphEssai :',GraphEssai.State() - -GraphEssai.DoneW() -GraphEssai.PrintPorts() -time.sleep(1) -print 'Add :',Add.State() -print 'Sub :',Sub.State() -print 'Mul :',Mul.State() -print 'Div :',Div.State() -print 'GraphEssai :',GraphEssai.State() - diff --git a/Superv/Python/GraphLoop.py b/Superv/Python/GraphLoop.py deleted file mode 100644 index 33bf044..0000000 --- a/Superv/Python/GraphLoop.py +++ /dev/null @@ -1,115 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphLoop -# -from SuperV import * - -# Graph creation of GraphLoop -def DefGraphLoop() : - GraphLoop = Graph( 'GraphLoop' ) - GraphLoop.SetName( 'GraphLoop' ) - GraphLoop.SetAuthor( '' ) - GraphLoop.SetComment( '' ) - GraphLoop.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - # Creation of Loop Nodes - PyInit = [] - PyInit.append( 'def Init(Index,Min,Max,Incr) : ' ) - PyInit.append( ' if Min <= Max : ' ) - PyInit.append( ' Index = Min ' ) - PyInit.append( ' else : ' ) - PyInit.append( ' Index = Max ' ) - PyInit.append( ' return Index,Min,Max,Incr ' ) - PyMoreInit = [] - PyMoreInit.append( 'import time ' ) - PyMoreInit.append( 'def More(Index,Min,Max,Incr) : ' ) - PyMoreInit.append( ' time.sleep(2) ' ) - PyMoreInit.append( ' if Index < Max : ' ) - PyMoreInit.append( ' DoLoop = 1 ' ) - PyMoreInit.append( ' else : ' ) - PyMoreInit.append( ' DoLoop = 0 ' ) - PyMoreInit.append( ' return DoLoop,Index,Min,Max,Incr ' ) - PyNextInit = [] - PyNextInit.append( 'def Next(Index,Min,Max,Incr) : ' ) - PyNextInit.append( ' Index = Index + Incr ' ) - PyNextInit.append( ' return Index,Min,Max,Incr ' ) - Init,EndInit = GraphLoop.LNode( 'Init' , PyInit , 'More' , PyMoreInit , 'Next' , PyNextInit ) - EndInit.SetName( 'EndInit' ) - EndInit.SetAuthor( '' ) - EndInit.SetComment( 'Compute Node' ) - EndInit.Coords( 366 , 262 ) - PyEndInit = [] - EndInit.SetPyFunction( '' , PyEndInit ) - IInitInitLoop = Init.GetInPort( 'DoLoop' ) - IInitIndex = Init.InPort( 'Index' , 'long' ) - IInitMin = Init.InPort( 'Min' , 'long' ) - IInitMax = Init.InPort( 'Max' , 'long' ) - IInitIncr = Init.InPort( 'Incr' , 'long' ) - IInitGate = Init.GetInPort( 'Gate' ) - OInitDoLoop = Init.GetOutPort( 'DoLoop' ) - OInitIndex = Init.GetOutPort( 'Index' ) - OInitMin = Init.GetOutPort( 'Min' ) - OInitMax = Init.GetOutPort( 'Max' ) - OInitIncr = Init.GetOutPort( 'Incr' ) - IEndInitDoLoop = EndInit.GetInPort( 'DoLoop' ) - IEndInitIndex = EndInit.GetInPort( 'Index' ) - IEndInitMin = EndInit.GetInPort( 'Min' ) - IEndInitMax = EndInit.GetInPort( 'Max' ) - IEndInitIncr = EndInit.GetInPort( 'Incr' ) - IEndInitGate = EndInit.GetInPort( 'Gate' ) - OEndInitDoLoop = EndInit.GetOutPort( 'DoLoop' ) - OEndInitIndex = EndInit.GetOutPort( 'Index' ) - OEndInitMin = EndInit.GetOutPort( 'Min' ) - OEndInitMax = EndInit.GetOutPort( 'Max' ) - OEndInitIncr = EndInit.GetOutPort( 'Incr' ) - Init.SetName( 'Init' ) - Init.SetAuthor( '' ) - Init.SetComment( 'Compute Node' ) - Init.Coords( 17 , 257 ) - - # Creation of Links - LInitIndexEndInitIndex = GraphLoop.Link( OInitIndex , IEndInitIndex ) - - LInitMinEndInitMin = GraphLoop.Link( OInitMin , IEndInitMin ) - - LInitMaxEndInitMax = GraphLoop.Link( OInitMax , IEndInitMax ) - - LInitIncrEndInitIncr = GraphLoop.Link( OInitIncr , IEndInitIncr ) - - # Input datas - IInitIndex.Input( 0 ) - IInitMin.Input( 5 ) - IInitMax.Input( 10 ) - IInitIncr.Input( 1 ) - - # Output Ports of the graph - #OEndInitIndex = EndInit.GetOutPort( 'Index' ) - #OEndInitMin = EndInit.GetOutPort( 'Min' ) - #OEndInitMax = EndInit.GetOutPort( 'Max' ) - #OEndInitIncr = EndInit.GetOutPort( 'Incr' ) - return GraphLoop - - -GraphLoop = DefGraphLoop() diff --git a/Superv/Python/GraphLoop1.py b/Superv/Python/GraphLoop1.py deleted file mode 100644 index 1428252..0000000 --- a/Superv/Python/GraphLoop1.py +++ /dev/null @@ -1,143 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphLoop1 -# -from SuperV import * - -# Graph creation of GraphLoop1 -def DefGraphLoop1() : - GraphLoop1 = Graph( 'GraphLoop1' ) - GraphLoop1.SetName( 'GraphLoop1' ) - GraphLoop1.SetAuthor( '' ) - GraphLoop1.SetComment( '' ) - GraphLoop1.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - # Creation of InLine Nodes - PyNodeIndex = [] - NodeIndex = GraphLoop1.INode( '' , PyNodeIndex ) - NodeIndex.SetName( 'NodeIndex' ) - NodeIndex.SetAuthor( '' ) - NodeIndex.SetComment( 'Compute Node' ) - NodeIndex.Coords( 281 , 215 ) - INodeIndexIndex = NodeIndex.InPort( 'Index' , 'long' ) - INodeIndexGate = NodeIndex.GetInPort( 'Gate' ) - ONodeIndexIndex = NodeIndex.OutPort( 'Index' , 'long' ) - ONodeIndexGate = NodeIndex.GetOutPort( 'Gate' ) - - PyNodeIncr = [] - NodeIncr = GraphLoop1.INode( '' , PyNodeIncr ) - NodeIncr.SetName( 'NodeIncr' ) - NodeIncr.SetAuthor( '' ) - NodeIncr.SetComment( 'Compute Node' ) - NodeIncr.Coords( 278 , 372 ) - INodeIncrIncr = NodeIncr.InPort( 'Incr' , 'long' ) - INodeIncrGate = NodeIncr.GetInPort( 'Gate' ) - ONodeIncrIncr = NodeIncr.OutPort( 'Incr' , 'long' ) - ONodeIncrGate = NodeIncr.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyInit = [] - PyInit.append( 'def Init(Index,Min,Max,Incr) : ' ) - PyInit.append( ' if Min <= Max : ' ) - PyInit.append( ' Index = Min ' ) - PyInit.append( ' else : ' ) - PyInit.append( ' Index = Max ' ) - PyInit.append( ' return Index,Min,Max,Incr ' ) - PyMoreInit = [] - PyMoreInit.append( 'import time ' ) - PyMoreInit.append( 'def More(Index,Min,Max,Incr) : ' ) - PyMoreInit.append( ' time.sleep(2) ' ) - PyMoreInit.append( ' if Index < Max : ' ) - PyMoreInit.append( ' DoLoop = 1 ' ) - PyMoreInit.append( ' else : ' ) - PyMoreInit.append( ' DoLoop = 0 ' ) - PyMoreInit.append( ' return DoLoop,Index,Min,Max,Incr ' ) - PyNextInit = [] - PyNextInit.append( 'def Next(Index,Min,Max,Incr) : ' ) - PyNextInit.append( ' Index = Index + Incr ' ) - PyNextInit.append( ' return Index,Min,Max,Incr ' ) - Init,EndInit = GraphLoop1.LNode( 'Init' , PyInit , 'More' , PyMoreInit , 'Next' , PyNextInit ) - EndInit.SetName( 'EndInit' ) - EndInit.SetAuthor( '' ) - EndInit.SetComment( 'Compute Node' ) - EndInit.Coords( 555 , 255 ) - PyEndInit = [] - EndInit.SetPyFunction( '' , PyEndInit ) - IInitDoLoop = Init.GetInPort( 'DoLoop' ) - IInitIndex = Init.InPort( 'Index' , 'long' ) - IInitMin = Init.InPort( 'Min' , 'long' ) - IInitMax = Init.InPort( 'Max' , 'long' ) - IInitIncr = Init.InPort( 'Incr' , 'long' ) - IInitGate = Init.GetInPort( 'Gate' ) - OInitDoLoop = Init.GetOutPort( 'DoLoop' ) - OInitIndex = Init.GetOutPort( 'Index' ) - OInitMin = Init.GetOutPort( 'Min' ) - OInitMax = Init.GetOutPort( 'Max' ) - OInitIncr = Init.GetOutPort( 'Incr' ) - IEndInitDoLoop = EndInit.GetInPort( 'DoLoop' ) - IEndInitIndex = EndInit.GetInPort( 'Index' ) - IEndInitMin = EndInit.GetInPort( 'Min' ) - IEndInitMax = EndInit.GetInPort( 'Max' ) - IEndInitIncr = EndInit.GetInPort( 'Incr' ) - IEndInitGate = EndInit.GetInPort( 'Gate' ) - OEndInitDoLoop = EndInit.GetOutPort( 'DoLoop' ) - OEndInitIndex = EndInit.GetOutPort( 'Index' ) - OEndInitMin = EndInit.GetOutPort( 'Min' ) - OEndInitMax = EndInit.GetOutPort( 'Max' ) - OEndInitIncr = EndInit.GetOutPort( 'Incr' ) - OEndInitGate = EndInit.GetOutPort( 'Gate' ) - Init.SetName( 'Init' ) - Init.SetAuthor( '' ) - Init.SetComment( 'Compute Node' ) - Init.Coords( 17 , 257 ) - - # Creation of Links - LInitIndexNodeIndexIndex = GraphLoop1.Link( OInitIndex , INodeIndexIndex ) - - LInitMinEndInitMin = GraphLoop1.Link( OInitMin , IEndInitMin ) - - LInitMaxEndInitMax = GraphLoop1.Link( OInitMax , IEndInitMax ) - - LInitIncrNodeIncrIncr = GraphLoop1.Link( OInitIncr , INodeIncrIncr ) - - LNodeIndexIndexEndInitIndex = GraphLoop1.Link( ONodeIndexIndex , IEndInitIndex ) - - LNodeIncrIncrEndInitIncr = GraphLoop1.Link( ONodeIncrIncr , IEndInitIncr ) - - # Input datas - IInitIndex.Input( 0 ) - IInitMin.Input( 5 ) - IInitMax.Input( 10 ) - IInitIncr.Input( 1 ) - - # Output Ports of the graph - #OEndInitIndex = EndInit.GetOutPort( 'Index' ) - #OEndInitMin = EndInit.GetOutPort( 'Min' ) - #OEndInitMax = EndInit.GetOutPort( 'Max' ) - #OEndInitIncr = EndInit.GetOutPort( 'Incr' ) - return GraphLoop1 - - -GraphLoop1 = DefGraphLoop1() diff --git a/Superv/Python/GraphLoop2.py b/Superv/Python/GraphLoop2.py deleted file mode 100644 index ab6e2a3..0000000 --- a/Superv/Python/GraphLoop2.py +++ /dev/null @@ -1,147 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphLoop2 -# -from SuperV import * - -# Graph creation of GraphLoop2 -def DefGraphLoop2() : - GraphLoop2 = Graph( 'GraphLoop2' ) - GraphLoop2.SetName( 'GraphLoop2' ) - GraphLoop2.SetAuthor( '' ) - GraphLoop2.SetComment( '' ) - GraphLoop2.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - # Creation of InLine Nodes - PyNodeIndex = [] - NodeIndex = GraphLoop2.INode( '' , PyNodeIndex ) - NodeIndex.SetName( 'NodeIndex' ) - NodeIndex.SetAuthor( '' ) - NodeIndex.SetComment( 'Compute Node' ) - NodeIndex.Coords( 281 , 215 ) - INodeIndexIndex = NodeIndex.InPort( 'Index' , 'long' ) - INodeIndexGate = NodeIndex.GetInPort( 'Gate' ) - ONodeIndexIndex = NodeIndex.OutPort( 'Index' , 'long' ) - ONodeIndexGate = NodeIndex.GetOutPort( 'Gate' ) - - PyNodeIncr = [] - NodeIncr = GraphLoop2.INode( '' , PyNodeIncr ) - NodeIncr.SetName( 'NodeIncr' ) - NodeIncr.SetAuthor( '' ) - NodeIncr.SetComment( 'Compute Node' ) - NodeIncr.Coords( 278 , 372 ) - INodeIncrIncr = NodeIncr.InPort( 'Incr' , 'long' ) - INodeIncraString = NodeIncr.InPort( 'aString' , 'string' ) - INodeIncrGate = NodeIncr.GetInPort( 'Gate' ) - ONodeIncrIncr = NodeIncr.OutPort( 'Incr' , 'long' ) - ONodeIncraString = NodeIncr.OutPort( 'aString' , 'string' ) - ONodeIncrGate = NodeIncr.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyInit = [] - PyInit.append( 'def Init(Index,Min,Max,Incr) : ' ) - PyInit.append( ' if Min <= Max : ' ) - PyInit.append( ' Index = Min ' ) - PyInit.append( ' else : ' ) - PyInit.append( ' Index = Max ' ) - PyInit.append( ' return Index,Min,Max,Incr ' ) - PyMoreInit = [] - PyMoreInit.append( 'import time ' ) - PyMoreInit.append( 'def More(Index,Min,Max,Incr) : ' ) - PyMoreInit.append( ' time.sleep(2) ' ) - PyMoreInit.append( ' if Index < Max : ' ) - PyMoreInit.append( ' DoLoop = 1 ' ) - PyMoreInit.append( ' else : ' ) - PyMoreInit.append( ' DoLoop = 0 ' ) - PyMoreInit.append( ' return DoLoop,Index,Min,Max,Incr ' ) - PyNextInit = [] - PyNextInit.append( 'def Next(Index,Min,Max,Incr) : ' ) - PyNextInit.append( ' Index = Index + Incr ' ) - PyNextInit.append( ' return Index,Min,Max,Incr ' ) - Init,EndInit = GraphLoop2.LNode( 'Init' , PyInit , 'More' , PyMoreInit , 'Next' , PyNextInit ) - EndInit.SetName( 'EndInit' ) - EndInit.SetAuthor( '' ) - EndInit.SetComment( 'Compute Node' ) - EndInit.Coords( 555 , 255 ) - PyEndInit = [] - EndInit.SetPyFunction( '' , PyEndInit ) - IInitDoLoop = Init.GetInPort( 'DoLoop' ) - IInitIndex = Init.InPort( 'Index' , 'long' ) - IInitMin = Init.InPort( 'Min' , 'long' ) - IInitMax = Init.InPort( 'Max' , 'long' ) - IInitIncr = Init.InPort( 'Incr' , 'long' ) - IInitGate = Init.GetInPort( 'Gate' ) - OInitDoLoop = Init.GetOutPort( 'DoLoop' ) - OInitIndex = Init.GetOutPort( 'Index' ) - OInitMin = Init.GetOutPort( 'Min' ) - OInitMax = Init.GetOutPort( 'Max' ) - OInitIncr = Init.GetOutPort( 'Incr' ) - IEndInitDoLoop = EndInit.GetInPort( 'DoLoop' ) - IEndInitIndex = EndInit.GetInPort( 'Index' ) - IEndInitMin = EndInit.GetInPort( 'Min' ) - IEndInitMax = EndInit.GetInPort( 'Max' ) - IEndInitIncr = EndInit.GetInPort( 'Incr' ) - IEndInitGate = EndInit.GetInPort( 'Gate' ) - OEndInitDoLoop = EndInit.GetOutPort( 'DoLoop' ) - OEndInitIndex = EndInit.GetOutPort( 'Index' ) - OEndInitMin = EndInit.GetOutPort( 'Min' ) - OEndInitMax = EndInit.GetOutPort( 'Max' ) - OEndInitIncr = EndInit.GetOutPort( 'Incr' ) - OEndInitGate = EndInit.GetOutPort( 'Gate' ) - Init.SetName( 'Init' ) - Init.SetAuthor( '' ) - Init.SetComment( 'Compute Node' ) - Init.Coords( 17 , 257 ) - - # Creation of Links - LInitIndexNodeIndexIndex = GraphLoop2.Link( OInitIndex , INodeIndexIndex ) - - LInitMinEndInitMin = GraphLoop2.Link( OInitMin , IEndInitMin ) - - LInitMaxEndInitMax = GraphLoop2.Link( OInitMax , IEndInitMax ) - - LInitIncrNodeIncrIncr = GraphLoop2.Link( OInitIncr , INodeIncrIncr ) - - LNodeIndexIndexEndInitIndex = GraphLoop2.Link( ONodeIndexIndex , IEndInitIndex ) - - LNodeIncrIncrEndInitIncr = GraphLoop2.Link( ONodeIncrIncr , IEndInitIncr ) - - # Input datas - IInitIndex.Input( 0 ) - IInitMin.Input( 5 ) - IInitMax.Input( 10 ) - IInitIncr.Input( 1 ) - INodeIncraString.Input( 'NodeToDelete' ) - - # Output Ports of the graph - #OEndInitIndex = EndInit.GetOutPort( 'Index' ) - #OEndInitMin = EndInit.GetOutPort( 'Min' ) - #OEndInitMax = EndInit.GetOutPort( 'Max' ) - #OEndInitIncr = EndInit.GetOutPort( 'Incr' ) - #ONodeIncraString = NodeIncr.GetOutPort( 'aString' ) - return GraphLoop2 - - -GraphLoop2 = DefGraphLoop2() diff --git a/Superv/Python/GraphLoopAddMemory.py b/Superv/Python/GraphLoopAddMemory.py deleted file mode 100644 index adbb647..0000000 --- a/Superv/Python/GraphLoopAddMemory.py +++ /dev/null @@ -1,135 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphLoopAddMemory -# -from SuperV import * - -# Graph creation of GraphLoopAddMemory -def DefGraphLoopAddMemory() : - GraphLoopAddMemory = Graph( 'GraphLoopAddMemory' ) - GraphLoopAddMemory.SetName( 'GraphLoopAddMemory' ) - GraphLoopAddMemory.SetAuthor( 'JR' ) - GraphLoopAddMemory.SetComment( 'For solving of memory leaks' ) - GraphLoopAddMemory.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - AddWithoutSleep = GraphLoopAddMemory.FNode( 'AddComponent' , 'AddComponent' , 'AddWithoutSleep' ) - AddWithoutSleep.SetName( 'AddWithoutSleep' ) - AddWithoutSleep.SetAuthor( '' ) - AddWithoutSleep.SetContainer( 'localhost/FactoryServer' ) - AddWithoutSleep.SetComment( 'AddWithoutSleep from AddComponent' ) - AddWithoutSleep.Coords( 246 , 262 ) - IAddWithoutSleepx = AddWithoutSleep.GetInPort( 'x' ) - IAddWithoutSleepy = AddWithoutSleep.GetInPort( 'y' ) - IAddWithoutSleepGate = AddWithoutSleep.GetInPort( 'Gate' ) - OAddWithoutSleepFuncValue = AddWithoutSleep.GetOutPort( 'FuncValue' ) - OAddWithoutSleepz = AddWithoutSleep.GetOutPort( 'z' ) - OAddWithoutSleepGate = AddWithoutSleep.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyInit = [] - PyInit.append( 'def Init(Index,Min,Max,Incr) : ' ) - PyInit.append( ' if Min <= Max : ' ) - PyInit.append( ' Index = Min ' ) - PyInit.append( ' else : ' ) - PyInit.append( ' Index = Max ' ) - PyInit.append( ' return Index,Min,Max,Incr ' ) - PyMoreInit = [] - PyMoreInit.append( 'def More(Index,Min,Max,Incr) : ' ) - PyMoreInit.append( ' if Index < Max : ' ) - PyMoreInit.append( ' DoLoop = 1 ' ) - PyMoreInit.append( ' else : ' ) - PyMoreInit.append( ' DoLoop = 0 ' ) - PyMoreInit.append( ' return DoLoop,Index,Min,Max,Incr ' ) - PyNextInit = [] - PyNextInit.append( 'def Next(Index,Min,Max,Incr) : ' ) - PyNextInit.append( ' Index = Index + Incr ' ) - PyNextInit.append( ' return Index,Min,Max,Incr ' ) - Init,EndInit = GraphLoopAddMemory.LNode( 'Init' , PyInit , 'More' , PyMoreInit , 'Next' , PyNextInit ) - EndInit.SetName( 'EndInit' ) - EndInit.SetAuthor( '' ) - EndInit.SetComment( 'Compute Node' ) - EndInit.Coords( 495 , 262 ) - PyEndInit = [] - EndInit.SetPyFunction( '' , PyEndInit ) - IInitDoLoop = Init.GetInPort( 'DoLoop' ) - IInitIndex = Init.InPort( 'Index' , 'long' ) - IInitMin = Init.InPort( 'Min' , 'long' ) - IInitMax = Init.InPort( 'Max' , 'long' ) - IInitIncr = Init.InPort( 'Incr' , 'long' ) - IInitGate = Init.GetInPort( 'Gate' ) - OInitDoLoop = Init.GetOutPort( 'DoLoop' ) - OInitIndex = Init.GetOutPort( 'Index' ) - OInitMin = Init.GetOutPort( 'Min' ) - OInitMax = Init.GetOutPort( 'Max' ) - OInitIncr = Init.GetOutPort( 'Incr' ) - IEndInitDoLoop = EndInit.GetInPort( 'DoLoop' ) - IEndInitIndex = EndInit.GetInPort( 'Index' ) - IEndInitMin = EndInit.GetInPort( 'Min' ) - IEndInitMax = EndInit.GetInPort( 'Max' ) - IEndInitIncr = EndInit.GetInPort( 'Incr' ) - IEndInitGate = EndInit.GetInPort( 'Gate' ) - OEndInitDoLoop = EndInit.GetOutPort( 'DoLoop' ) - OEndInitIndex = EndInit.GetOutPort( 'Index' ) - OEndInitMin = EndInit.GetOutPort( 'Min' ) - OEndInitMax = EndInit.GetOutPort( 'Max' ) - OEndInitIncr = EndInit.GetOutPort( 'Incr' ) - OEndInitGate = EndInit.GetOutPort( 'Gate' ) - Init.SetName( 'Init' ) - Init.SetAuthor( '' ) - Init.SetComment( 'Compute Node' ) - Init.Coords( 17 , 257 ) - - # Creation of Links - LInitIndexEndInitIndex = GraphLoopAddMemory.Link( OInitIndex , IEndInitIndex ) - - LInitIndexAddWithoutSleepx = GraphLoopAddMemory.Link( OInitIndex , IAddWithoutSleepx ) - - LInitMinEndInitMin = GraphLoopAddMemory.Link( OInitMin , IEndInitMin ) - - LInitMaxEndInitMax = GraphLoopAddMemory.Link( OInitMax , IEndInitMax ) - - LInitMaxAddWithoutSleepy = GraphLoopAddMemory.Link( OInitMax , IAddWithoutSleepy ) - - LInitIncrEndInitIncr = GraphLoopAddMemory.Link( OInitIncr , IEndInitIncr ) - - LAddWithoutSleepGateEndInitGate = GraphLoopAddMemory.Link( OAddWithoutSleepGate , IEndInitGate ) - - # Input datas - IInitIndex.Input( 0 ) - IInitMin.Input( 5 ) - IInitMax.Input( 100000 ) - IInitIncr.Input( 1 ) - - # Output Ports of the graph - #OEndInitIndex = EndInit.GetOutPort( 'Index' ) - #OEndInitMin = EndInit.GetOutPort( 'Min' ) - #OEndInitMax = EndInit.GetOutPort( 'Max' ) - #OEndInitIncr = EndInit.GetOutPort( 'Incr' ) - #OAddWithoutSleepFuncValue = AddWithoutSleep.GetOutPort( 'FuncValue' ) - #OAddWithoutSleepz = AddWithoutSleep.GetOutPort( 'z' ) - return GraphLoopAddMemory - - -GraphLoopAddMemory = DefGraphLoopAddMemory() diff --git a/Superv/Python/GraphLoopDoWhile.py b/Superv/Python/GraphLoopDoWhile.py deleted file mode 100644 index 707bea5..0000000 --- a/Superv/Python/GraphLoopDoWhile.py +++ /dev/null @@ -1,97 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphLoopDoWhile -# -from SuperV import * - -# Graph creation of GraphLoopDoWhile -def DefGraphLoopDoWhile() : - GraphLoopDoWhile = Graph( 'GraphLoopDoWhile' ) - GraphLoopDoWhile.SetName( 'GraphLoopDoWhile' ) - GraphLoopDoWhile.SetAuthor( 'JR' ) - GraphLoopDoWhile.SetComment( '' ) - GraphLoopDoWhile.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - # Creation of Loop Nodes - PyLoop = [] - PyMoreLoop = [] - PyMoreLoop.append( '' ) - PyNextLoop = [] - PyNextLoop.append( 'def LoopWhileNext(Index,Max) : ' ) - PyNextLoop.append( ' Index = Index + 1 ' ) - PyNextLoop.append( ' return Index,Max ' ) - PyNextLoop.append( '' ) - Loop,EndLoop = GraphLoopDoWhile.LNode( '' , PyLoop , '' , PyMoreLoop , 'LoopWhileNext' , PyNextLoop ) - EndLoop.SetName( 'EndLoop' ) - EndLoop.SetAuthor( '' ) - EndLoop.SetComment( 'Compute Node' ) - EndLoop.Coords( 414 , 232 ) - PyEndLoop = [] - PyEndLoop.append( 'import time ' ) - PyEndLoop.append( 'def DoWhile(DoLoop,Index,Max) : ' ) - PyEndLoop.append( ' print 'DoWhile',DoLoop,Index,Max ' ) - PyEndLoop.append( ' time.sleep(2) ' ) - PyEndLoop.append( ' if Index == Max : ' ) - PyEndLoop.append( ' DoLoop = 0 ' ) - PyEndLoop.append( ' else : ' ) - PyEndLoop.append( ' DoLoop = 1 ' ) - PyEndLoop.append( ' print 'DoWhile',DoLoop,Index,Max ' ) - PyEndLoop.append( ' return DoLoop,Index,Max ' ) - EndLoop.SetPyFunction( 'DoWhile' , PyEndLoop ) - ILoopDoLoop = Loop.GetInPort( 'DoLoop' ) - ILoopIndex = Loop.InPort( 'Index' , 'long' ) - ILoopMax = Loop.InPort( 'Max' , 'long' ) - ILoopGate = Loop.GetInPort( 'Gate' ) - OLoopDoLoop = Loop.GetOutPort( 'DoLoop' ) - OLoopIndex = Loop.GetOutPort( 'Index' ) - OLoopMax = Loop.GetOutPort( 'Max' ) - IEndLoopDoLoop = EndLoop.GetInPort( 'DoLoop' ) - IEndLoopIndex = EndLoop.GetInPort( 'Index' ) - IEndLoopMax = EndLoop.GetInPort( 'Max' ) - IEndLoopGate = EndLoop.GetInPort( 'Gate' ) - OEndLoopDoLoop = EndLoop.GetOutPort( 'DoLoop' ) - OEndLoopIndex = EndLoop.GetOutPort( 'Index' ) - OEndLoopMax = EndLoop.GetOutPort( 'Max' ) - Loop.SetName( 'Loop' ) - Loop.SetAuthor( '' ) - Loop.SetComment( 'Compute Node' ) - Loop.Coords( 105 , 226 ) - - # Creation of Links - LLoopIndexEndLoopIndex = GraphLoopDoWhile.Link( OLoopIndex , IEndLoopIndex ) - - LLoopMaxEndLoopMax = GraphLoopDoWhile.Link( OLoopMax , IEndLoopMax ) - - # Input datas - ILoopIndex.Input( 5 ) - ILoopMax.Input( 10 ) - - # Output Ports of the graph - #OEndLoopIndex = EndLoop.GetOutPort( 'Index' ) - #OEndLoopMax = EndLoop.GetOutPort( 'Max' ) - return GraphLoopDoWhile - - -GraphLoopDoWhile = DefGraphLoopDoWhile() diff --git a/Superv/Python/GraphLoopGates.py b/Superv/Python/GraphLoopGates.py deleted file mode 100644 index d72d30f..0000000 --- a/Superv/Python/GraphLoopGates.py +++ /dev/null @@ -1,202 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphLoopGates -# -from SuperV import * - -# Graph creation of GraphLoopGates -def DefGraphLoopGates() : - GraphLoopGates = Graph( 'GraphLoopGates' ) - GraphLoopGates.SetName( 'GraphLoopGates' ) - GraphLoopGates.SetAuthor( 'JR' ) - GraphLoopGates.SetComment( '' ) - GraphLoopGates.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - Add = GraphLoopGates.FNode( 'AddComponent' , 'AddComponent' , 'Add' ) - Add.SetName( 'Add' ) - Add.SetAuthor( '' ) - Add.SetContainer( 'localhost/FactoryServer' ) - Add.SetComment( 'Add from AddComponent' ) - Add.Coords( 248 , 70 ) - IAddx = Add.GetInPort( 'x' ) - IAddy = Add.GetInPort( 'y' ) - IAddGate = Add.GetInPort( 'Gate' ) - OAddFuncValue = Add.GetOutPort( 'FuncValue' ) - OAddz = Add.GetOutPort( 'z' ) - OAddGate = Add.GetOutPort( 'Gate' ) - - Add_1 = GraphLoopGates.FNode( 'AddComponent' , 'AddComponent' , 'Add' ) - Add_1.SetName( 'Add_1' ) - Add_1.SetAuthor( '' ) - Add_1.SetContainer( 'localhost/FactoryServer' ) - Add_1.SetComment( 'Add from AddComponent' ) - Add_1.Coords( 249 , 305 ) - IAdd_1x = Add_1.GetInPort( 'x' ) - IAdd_1y = Add_1.GetInPort( 'y' ) - IAdd_1Gate = Add_1.GetInPort( 'Gate' ) - OAdd_1FuncValue = Add_1.GetOutPort( 'FuncValue' ) - OAdd_1z = Add_1.GetOutPort( 'z' ) - OAdd_1Gate = Add_1.GetOutPort( 'Gate' ) - - Sub = GraphLoopGates.FNode( 'SubComponent' , 'SubComponent' , 'Sub' ) - Sub.SetName( 'Sub' ) - Sub.SetAuthor( '' ) - Sub.SetContainer( 'localhost/FactoryServer' ) - Sub.SetComment( 'Sub from SubComponent' ) - Sub.Coords( 453 , 72 ) - ISubx = Sub.GetInPort( 'x' ) - ISuby = Sub.GetInPort( 'y' ) - ISubGate = Sub.GetInPort( 'Gate' ) - OSubz = Sub.GetOutPort( 'z' ) - OSubGate = Sub.GetOutPort( 'Gate' ) - - Sub_1 = GraphLoopGates.FNode( 'SubComponent' , 'SubComponent' , 'Sub' ) - Sub_1.SetName( 'Sub_1' ) - Sub_1.SetAuthor( '' ) - Sub_1.SetContainer( 'localhost/FactoryServer' ) - Sub_1.SetComment( 'Sub from SubComponent' ) - Sub_1.Coords( 455 , 304 ) - ISub_1x = Sub_1.GetInPort( 'x' ) - ISub_1y = Sub_1.GetInPort( 'y' ) - ISub_1Gate = Sub_1.GetInPort( 'Gate' ) - OSub_1z = Sub_1.GetOutPort( 'z' ) - OSub_1Gate = Sub_1.GetOutPort( 'Gate' ) - - # Creation of InLine Nodes - PyGate = [] - PyGate.append( 'from time import * ' ) - PyGate.append( 'def Gate(G1,G2) : ' ) - PyGate.append( ' sleep(1) ' ) - PyGate.append( ' return G1&G2 ' ) - Gate = GraphLoopGates.INode( 'Gate' , PyGate ) - Gate.SetName( 'Gate' ) - Gate.SetAuthor( '' ) - Gate.SetComment( 'Compute Node' ) - Gate.Coords( 650 , 227 ) - IGateG1 = Gate.InPort( 'G1' , 'long' ) - IGateG2 = Gate.InPort( 'G2' , 'long' ) - IGateGate = Gate.GetInPort( 'Gate' ) - OGateG = Gate.OutPort( 'G' , 'long' ) - OGateGate = Gate.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyInit = [] - PyInit.append( 'from time import * ' ) - PyInit.append( 'def Init(Index,Min,Max) : ' ) - PyInit.append( ' Index = Min ' ) - PyInit.append( ' sleep(1) ' ) - PyInit.append( ' return Index,Min,Max ' ) - PyMoreInit = [] - PyMoreInit.append( 'def More(Index,Min,Max) : ' ) - PyMoreInit.append( ' if Index < Max : ' ) - PyMoreInit.append( ' DoLoop = 1 ' ) - PyMoreInit.append( ' else : ' ) - PyMoreInit.append( ' DoLoop = 0 ' ) - PyMoreInit.append( ' return DoLoop,Index,Min,Max ' ) - PyNextInit = [] - PyNextInit.append( 'def Next(Index,Min,Max) : ' ) - PyNextInit.append( ' Index = Index + 1 ' ) - PyNextInit.append( ' return Index,Min,Max ' ) - Init,EndInit = GraphLoopGates.LNode( 'Init' , PyInit , 'More' , PyMoreInit , 'Next' , PyNextInit ) - EndInit.SetName( 'EndInit' ) - EndInit.SetAuthor( '' ) - EndInit.SetComment( 'Compute Node' ) - EndInit.Coords( 847 , 247 ) - PyEndInit = [] - EndInit.SetPyFunction( 'EndInit' , PyEndInit ) - IInitDoLoop = Init.GetInPort( 'DoLoop' ) - IInitIndex = Init.InPort( 'Index' , 'long' ) - IInitMin = Init.InPort( 'Min' , 'long' ) - IInitMax = Init.InPort( 'Max' , 'long' ) - IInitGate = Init.GetInPort( 'Gate' ) - OInitDoLoop = Init.GetOutPort( 'DoLoop' ) - OInitIndex = Init.GetOutPort( 'Index' ) - OInitMin = Init.GetOutPort( 'Min' ) - OInitMax = Init.GetOutPort( 'Max' ) - IEndInitDoLoop = EndInit.GetInPort( 'DoLoop' ) - IEndInitIndex = EndInit.GetInPort( 'Index' ) - IEndInitMin = EndInit.GetInPort( 'Min' ) - IEndInitMax = EndInit.GetInPort( 'Max' ) - IEndInitGate = EndInit.GetInPort( 'Gate' ) - OEndInitDoLoop = EndInit.GetOutPort( 'DoLoop' ) - OEndInitIndex = EndInit.GetOutPort( 'Index' ) - OEndInitMin = EndInit.GetOutPort( 'Min' ) - OEndInitMax = EndInit.GetOutPort( 'Max' ) - OEndInitGate = EndInit.GetOutPort( 'Gate' ) - Init.SetName( 'Init' ) - Init.SetAuthor( '' ) - Init.SetComment( 'Compute Node' ) - Init.Coords( 10 , 181 ) - - # Creation of Links - LInitIndexEndInitIndex = GraphLoopGates.Link( OInitIndex , IEndInitIndex ) - - LInitMinEndInitMin = GraphLoopGates.Link( OInitMin , IEndInitMin ) - - LInitMaxEndInitMax = GraphLoopGates.Link( OInitMax , IEndInitMax ) - - LInitGateAdd_1Gate = GraphLoopGates.Link( OInitGate , IAdd_1Gate ) - - LInitGateAddGate = GraphLoopGates.Link( OInitGate , IAddGate ) - - LAddGateSubGate = GraphLoopGates.Link( OAddGate , ISubGate ) - - LAdd_1GateSub_1Gate = GraphLoopGates.Link( OAdd_1Gate , ISub_1Gate ) - - LSubGateGateG1 = GraphLoopGates.Link( OSubGate , IGateG1 ) - - LSub_1zGateG2 = GraphLoopGates.Link( OSub_1z , IGateG2 ) - - LSub_1GateGateGate = GraphLoopGates.Link( OSub_1Gate , IGateGate ) - - LGateGateEndInitGate = GraphLoopGates.Link( OGateGate , IEndInitGate ) - - # Input datas - IInitIndex.Input( 0 ) - IInitMin.Input( 5 ) - IInitMax.Input( 13 ) - IAddx.Input( 1 ) - IAddy.Input( 2 ) - IAdd_1x.Input( 3 ) - IAdd_1y.Input( 4 ) - ISubx.Input( 5 ) - ISuby.Input( 6 ) - ISub_1x.Input( 7 ) - ISub_1y.Input( 8 ) - - # Output Ports of the graph - #OEndInitIndex = EndInit.GetOutPort( 'Index' ) - #OEndInitMin = EndInit.GetOutPort( 'Min' ) - #OEndInitMax = EndInit.GetOutPort( 'Max' ) - #OAddFuncValue = Add.GetOutPort( 'FuncValue' ) - #OAddz = Add.GetOutPort( 'z' ) - #OAdd_1FuncValue = Add_1.GetOutPort( 'FuncValue' ) - #OAdd_1z = Add_1.GetOutPort( 'z' ) - #OSubz = Sub.GetOutPort( 'z' ) - #OGateG = Gate.GetOutPort( 'G' ) - return GraphLoopGates - - -GraphLoopGates = DefGraphLoopGates() diff --git a/Superv/Python/GraphLoopGatesNOTValid.py b/Superv/Python/GraphLoopGatesNOTValid.py deleted file mode 100644 index 210f6ff..0000000 --- a/Superv/Python/GraphLoopGatesNOTValid.py +++ /dev/null @@ -1,200 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphLoopGatesNOTValid -# -from SuperV import * - -# Graph creation of GraphLoopGatesNOTValid -def DefGraphLoopGatesNOTValid() : - GraphLoopGatesNOTValid = Graph( 'GraphLoopGatesNOTValid' ) - GraphLoopGatesNOTValid.SetName( 'GraphLoopGatesNOTValid' ) - GraphLoopGatesNOTValid.SetAuthor( 'JR' ) - GraphLoopGatesNOTValid.SetComment( '' ) - GraphLoopGatesNOTValid.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - Add = GraphLoopGatesNOTValid.FNode( 'AddComponent' , 'AddComponent' , 'Add' ) - Add.SetName( 'Add' ) - Add.SetAuthor( '' ) - Add.SetContainer( 'localhost/FactoryServer' ) - Add.SetComment( 'Add from AddComponent' ) - Add.Coords( 248 , 70 ) - IAddx = Add.GetInPort( 'x' ) - IAddy = Add.GetInPort( 'y' ) - IAddGate = Add.GetInPort( 'Gate' ) - OAddFuncValue = Add.GetOutPort( 'FuncValue' ) - OAddz = Add.GetOutPort( 'z' ) - OAddGate = Add.GetOutPort( 'Gate' ) - - Add_1 = GraphLoopGatesNOTValid.FNode( 'AddComponent' , 'AddComponent' , 'Add' ) - Add_1.SetName( 'Add_1' ) - Add_1.SetAuthor( '' ) - Add_1.SetContainer( 'localhost/FactoryServer' ) - Add_1.SetComment( 'Add from AddComponent' ) - Add_1.Coords( 249 , 305 ) - IAdd_1x = Add_1.GetInPort( 'x' ) - IAdd_1y = Add_1.GetInPort( 'y' ) - IAdd_1Gate = Add_1.GetInPort( 'Gate' ) - OAdd_1FuncValue = Add_1.GetOutPort( 'FuncValue' ) - OAdd_1z = Add_1.GetOutPort( 'z' ) - OAdd_1Gate = Add_1.GetOutPort( 'Gate' ) - - Sub = GraphLoopGatesNOTValid.FNode( 'SubComponent' , 'SubComponent' , 'Sub' ) - Sub.SetName( 'Sub' ) - Sub.SetAuthor( '' ) - Sub.SetContainer( 'localhost/FactoryServer' ) - Sub.SetComment( 'Sub from SubComponent' ) - Sub.Coords( 453 , 72 ) - ISubx = Sub.GetInPort( 'x' ) - ISuby = Sub.GetInPort( 'y' ) - ISubGate = Sub.GetInPort( 'Gate' ) - OSubz = Sub.GetOutPort( 'z' ) - OSubGate = Sub.GetOutPort( 'Gate' ) - - Sub_1 = GraphLoopGatesNOTValid.FNode( 'SubComponent' , 'SubComponent' , 'Sub' ) - Sub_1.SetName( 'Sub_1' ) - Sub_1.SetAuthor( '' ) - Sub_1.SetContainer( 'localhost/FactoryServer' ) - Sub_1.SetComment( 'Sub from SubComponent' ) - Sub_1.Coords( 455 , 304 ) - ISub_1x = Sub_1.GetInPort( 'x' ) - ISub_1y = Sub_1.GetInPort( 'y' ) - ISub_1Gate = Sub_1.GetInPort( 'Gate' ) - OSub_1z = Sub_1.GetOutPort( 'z' ) - OSub_1Gate = Sub_1.GetOutPort( 'Gate' ) - - # Creation of InLine Nodes - PyGate = [] - PyGate.append( 'from time import * ' ) - PyGate.append( 'def Gate(G1,G2) : ' ) - PyGate.append( ' sleep(1) ' ) - PyGate.append( ' return G1&G2 ' ) - Gate = GraphLoopGatesNOTValid.INode( 'Gate' , PyGate ) - Gate.SetName( 'Gate' ) - Gate.SetAuthor( '' ) - Gate.SetComment( 'Compute Node' ) - Gate.Coords( 650 , 227 ) - IGateG1 = Gate.InPort( 'G1' , 'long' ) - IGateG2 = Gate.InPort( 'G2' , 'long' ) - IGateGate = Gate.GetInPort( 'Gate' ) - OGateG = Gate.OutPort( 'G' , 'long' ) - OGateGate = Gate.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyInit = [] - PyInit.append( 'from time import * ' ) - PyInit.append( 'def Init(Index,Min,Max) : ' ) - PyInit.append( ' Index = Min ' ) - PyInit.append( ' sleep(1) ' ) - PyInit.append( ' return Index,Min,Max ' ) - PyMoreInit = [] - PyMoreInit.append( 'def More(Index,Min,Max) : ' ) - PyMoreInit.append( ' if Index < Max : ' ) - PyMoreInit.append( ' DoLoop = 1 ' ) - PyMoreInit.append( ' else : ' ) - PyMoreInit.append( ' DoLoop = 0 ' ) - PyMoreInit.append( ' return DoLoop,Index,Min,Max ' ) - PyNextInit = [] - PyNextInit.append( 'def Next(Index,Min,Max) : ' ) - PyNextInit.append( ' Index = Index + 1 ' ) - PyNextInit.append( ' return Index,Min,Max ' ) - Init,EndInit = GraphLoopGatesNOTValid.LNode( 'Init' , PyInit , 'More' , PyMoreInit , 'Next' , PyNextInit ) - EndInit.SetName( 'EndInit' ) - EndInit.SetAuthor( '' ) - EndInit.SetComment( 'Compute Node' ) - EndInit.Coords( 840 , 204 ) - PyEndInit = [] - EndInit.SetPyFunction( 'EndInit' , PyEndInit ) - IInitDoLoop = Init.GetInPort( 'DoLoop' ) - IInitIndex = Init.InPort( 'Index' , 'long' ) - IInitMin = Init.InPort( 'Min' , 'long' ) - IInitMax = Init.InPort( 'Max' , 'long' ) - IInitGate = Init.GetInPort( 'Gate' ) - OInitDoLoop = Init.GetOutPort( 'DoLoop' ) - OInitIndex = Init.GetOutPort( 'Index' ) - OInitMin = Init.GetOutPort( 'Min' ) - OInitMax = Init.GetOutPort( 'Max' ) - IEndInitDoLoop = EndInit.GetInPort( 'DoLoop' ) - IEndInitIndex = EndInit.GetInPort( 'Index' ) - IEndInitMin = EndInit.GetInPort( 'Min' ) - IEndInitMax = EndInit.GetInPort( 'Max' ) - IEndInitGate = EndInit.GetInPort( 'Gate' ) - OEndInitDoLoop = EndInit.GetOutPort( 'DoLoop' ) - OEndInitGate = EndInit.GetOutPort( 'Gate' ) - OEndInitIndex = EndInit.GetOutPort( 'Index' ) - OEndInitMin = EndInit.GetOutPort( 'Min' ) - OEndInitMax = EndInit.GetOutPort( 'Max' ) - Init.SetName( 'Init' ) - Init.SetAuthor( '' ) - Init.SetComment( 'Compute Node' ) - Init.Coords( 10 , 181 ) - - # Creation of Links - LInitGateAdd_1Gate = GraphLoopGatesNOTValid.Link( OInitGate , IAdd_1Gate ) - - LInitGateAddGate = GraphLoopGatesNOTValid.Link( OInitGate , IAddGate ) - - LInitIndexEndInitIndex = GraphLoopGatesNOTValid.Link( OInitIndex , IEndInitIndex ) - - LInitMinEndInitMin = GraphLoopGatesNOTValid.Link( OInitMin , IEndInitMin ) - - LInitMaxEndInitMax = GraphLoopGatesNOTValid.Link( OInitMax , IEndInitMax ) - - LAddGateSubGate = GraphLoopGatesNOTValid.Link( OAddGate , ISubGate ) - - LAdd_1GateSub_1Gate = GraphLoopGatesNOTValid.Link( OAdd_1Gate , ISub_1Gate ) - - LSubGateGateG1 = GraphLoopGatesNOTValid.Link( OSubGate , IGateG1 ) - - LSub_1GateGateG2 = GraphLoopGatesNOTValid.Link( OSub_1Gate , IGateG2 ) - - LGateGEndInitGate = GraphLoopGatesNOTValid.Link( OGateG , IEndInitGate ) - - # Input datas - IInitIndex.Input( 0 ) - IInitMin.Input( 5 ) - IInitMax.Input( 13 ) - IAddx.Input( 1 ) - IAddy.Input( 2 ) - IAdd_1x.Input( 3 ) - IAdd_1y.Input( 4 ) - ISubx.Input( 5 ) - ISuby.Input( 6 ) - ISub_1x.Input( 7 ) - ISub_1y.Input( 8 ) - - # Output Ports of the graph - #OEndInitIndex = EndInit.GetOutPort( 'Index' ) - #OEndInitMin = EndInit.GetOutPort( 'Min' ) - #OEndInitMax = EndInit.GetOutPort( 'Max' ) - #OAddFuncValue = Add.GetOutPort( 'FuncValue' ) - #OAddz = Add.GetOutPort( 'z' ) - #OAdd_1FuncValue = Add_1.GetOutPort( 'FuncValue' ) - #OAdd_1z = Add_1.GetOutPort( 'z' ) - #OSubz = Sub.GetOutPort( 'z' ) - #OSub_1z = Sub_1.GetOutPort( 'z' ) - return GraphLoopGatesNOTValid - - -GraphLoopGatesNOTValid = DefGraphLoopGatesNOTValid() diff --git a/Superv/Python/GraphLoopMacroNodes.py b/Superv/Python/GraphLoopMacroNodes.py deleted file mode 100644 index 8e88dce..0000000 --- a/Superv/Python/GraphLoopMacroNodes.py +++ /dev/null @@ -1,362 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphLoopMacroNodes -# -from SuperV import * - -# Graph creation of GraphLoopMacroNodes -def DefGraphLoopMacroNodes() : - GraphLoopMacroNodes = Graph( 'GraphLoopMacroNodes' ) - GraphLoopMacroNodes.SetName( 'GraphLoopMacroNodes' ) - GraphLoopMacroNodes.SetAuthor( 'JR' ) - GraphLoopMacroNodes.SetComment( '' ) - GraphLoopMacroNodes.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - Add = GraphLoopMacroNodes.FNode( 'AddComponent' , 'AddComponent' , 'Add' ) - Add.SetName( 'Add' ) - Add.SetAuthor( '' ) - Add.SetContainer( 'FactoryServer' ) - Add.SetComment( 'Add from AddComponent' ) - Add.Coords( 205 , 238 ) - IAddx = Add.GetInPort( 'x' ) - IAddy = Add.GetInPort( 'y' ) - IAddGate = Add.GetInPort( 'Gate' ) - OAddFuncValue = Add.GetOutPort( 'FuncValue' ) - OAddz = Add.GetOutPort( 'z' ) - OAddGate = Add.GetOutPort( 'Gate' ) - - Sub = GraphLoopMacroNodes.FNode( 'SubComponent' , 'SubComponent' , 'Sub' ) - Sub.SetName( 'Sub' ) - Sub.SetAuthor( '' ) - Sub.SetContainer( 'FactoryServer' ) - Sub.SetComment( 'Sub from SubComponent' ) - Sub.Coords( 394 , 146 ) - ISubx = Sub.GetInPort( 'x' ) - ISuby = Sub.GetInPort( 'y' ) - ISubGate = Sub.GetInPort( 'Gate' ) - OSubz = Sub.GetOutPort( 'z' ) - OSubGate = Sub.GetOutPort( 'Gate' ) - - Mul = GraphLoopMacroNodes.FNode( 'MulComponent' , 'MulComponent' , 'Mul' ) - Mul.SetName( 'Mul' ) - Mul.SetAuthor( '' ) - Mul.SetContainer( 'FactoryServer' ) - Mul.SetComment( 'Mul from MulComponent' ) - Mul.Coords( 821 , 319 ) - IMulx = Mul.GetInPort( 'x' ) - IMuly = Mul.GetInPort( 'y' ) - IMulGate = Mul.GetInPort( 'Gate' ) - OMulz = Mul.GetOutPort( 'z' ) - OMulGate = Mul.GetOutPort( 'Gate' ) - - Div = GraphLoopMacroNodes.FNode( 'DivComponent' , 'DivComponent' , 'Div' ) - Div.SetName( 'Div' ) - Div.SetAuthor( '' ) - Div.SetContainer( 'FactoryServer' ) - Div.SetComment( 'Div from DivComponent' ) - Div.Coords( 825 , 133 ) - IDivx = Div.GetInPort( 'x' ) - IDivy = Div.GetInPort( 'y' ) - IDivGate = Div.GetInPort( 'Gate' ) - ODivz = Div.GetOutPort( 'z' ) - ODivGate = Div.GetOutPort( 'Gate' ) - - # Creation of InLine Nodes - PyResultsControl = [] - PyResultsControl.append( 'def ResultsControl(x,y,zDiv,zMul) :' ) - PyResultsControl.append( ' Add_FuncValue = x - y' ) - PyResultsControl.append( ' Add_z = x + y' ) - PyResultsControl.append( ' Sub_z = 1.5 - Add_z' ) - PyResultsControl.append( ' Macro_GraphAdd_Add_FuncValue = Sub_z - Add_FuncValue' ) - PyResultsControl.append( ' Macro_GraphAdd_Add_z = Sub_z + Add_FuncValue' ) - PyResultsControl.append( ' Macro_GraphSub_z = Add_FuncValue - Add_z' ) - PyResultsControl.append( ' Div_z = Macro_GraphAdd_Add_FuncValue/Macro_GraphAdd_Add_z' ) - PyResultsControl.append( ' Mul_z = Sub_z * Macro_GraphSub_z' ) - PyResultsControl.append( ' OK = \'Okay\'' ) - PyResultsControl.append( ' if Div_z != zDiv or Mul_z != zMul :' ) - PyResultsControl.append( ' OK = \'KO\'' ) - PyResultsControl.append( ' return zDiv,zMul,Div_z,Mul_z,OK' ) - PyResultsControl.append( '' ) - ResultsControl = GraphLoopMacroNodes.INode( 'ResultsControl' , PyResultsControl ) - ResultsControl.SetName( 'ResultsControl' ) - ResultsControl.SetAuthor( '' ) - ResultsControl.SetComment( 'Compute Node' ) - ResultsControl.Coords( 1102 , 196 ) - IResultsControlx = ResultsControl.InPort( 'x' , 'double' ) - IResultsControly = ResultsControl.InPort( 'y' , 'double' ) - IResultsControlzDiv = ResultsControl.InPort( 'zDiv' , 'double' ) - IResultsControlzMul = ResultsControl.InPort( 'zMul' , 'double' ) - IResultsControlGate = ResultsControl.GetInPort( 'Gate' ) - OResultsControlzDiv = ResultsControl.OutPort( 'zDiv' , 'double' ) - OResultsControlzMul = ResultsControl.OutPort( 'zMul' , 'double' ) - OResultsControlDiv_z = ResultsControl.OutPort( 'Div_z' , 'double' ) - OResultsControlMul_z = ResultsControl.OutPort( 'Mul_z' , 'double' ) - OResultsControlOK = ResultsControl.OutPort( 'OK' , 'string' ) - OResultsControlGate = ResultsControl.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyLoop = [] - PyLoop.append( 'def Init(Index,Min,Max,Incr,zDiv,zMul,OK) :' ) - PyLoop.append( ' if Min <= Max :' ) - PyLoop.append( ' Index = Min' ) - PyLoop.append( ' else :' ) - PyLoop.append( ' Index = Max' ) - PyLoop.append( ' return Index,Min,Max,Incr,zDiv,zMul,OK' ) - PyLoop.append( '' ) - PyMoreLoop = [] - PyMoreLoop.append( 'def More(Index,Min,Max,Incr,zDiv,zMul,OK) :' ) - PyMoreLoop.append( ' if Index < Max :' ) - PyMoreLoop.append( ' DoLoop = 1' ) - PyMoreLoop.append( ' else :' ) - PyMoreLoop.append( ' DoLoop = 0' ) - PyMoreLoop.append( ' return DoLoop,Index,Min,Max,Incr,zDiv,zMul,OK' ) - PyMoreLoop.append( '' ) - PyNextLoop = [] - PyNextLoop.append( 'def Next(Index,Min,Max,Incr,zDiv,zMul,OK) :' ) - PyNextLoop.append( ' Index = Index + Incr' ) - PyNextLoop.append( ' return Index,Min,Max,Incr,zDiv,zMul,OK' ) - PyNextLoop.append( '' ) - Loop,EndLoop = GraphLoopMacroNodes.LNode( 'Init' , PyLoop , 'More' , PyMoreLoop , 'Next' , PyNextLoop ) - EndLoop.SetName( 'EndLoop' ) - EndLoop.SetAuthor( '' ) - EndLoop.SetComment( 'Compute Node' ) - EndLoop.Coords( 1354 , 156 ) - PyEndLoop = [] - PyEndLoop.append( 'def EndLoop(DoLoop,Index,Min,Max,Incr,zDiv,zMul,OK) :' ) - PyEndLoop.append( ' print \'EndLoop\',DoLoop,Index,Min,Max,Incr,zDiv,zMul,OK' ) - PyEndLoop.append( ' if OK != \'Okay\' :' ) - PyEndLoop.append( ' DoLoop = 0' ) - PyEndLoop.append( ' return DoLoop,Index,Min,Max,Incr ,zDiv,zMul,OK' ) - PyEndLoop.append( '' ) - EndLoop.SetPyFunction( 'EndLoop' , PyEndLoop ) - ILoopDoLoop = Loop.GetInPort( 'DoLoop' ) - ILoopIndex = Loop.InPort( 'Index' , 'long' ) - ILoopMin = Loop.InPort( 'Min' , 'long' ) - ILoopMax = Loop.InPort( 'Max' , 'long' ) - ILoopIncr = Loop.InPort( 'Incr' , 'long' ) - ILoopzDiv = Loop.InPort( 'zDiv' , 'double' ) - ILoopzMul = Loop.InPort( 'zMul' , 'double' ) - ILoopOK = Loop.InPort( 'OK' , 'string' ) - ILoopGate = Loop.GetInPort( 'Gate' ) - OLoopDoLoop = Loop.GetOutPort( 'DoLoop' ) - OLoopIndex = Loop.GetOutPort( 'Index' ) - OLoopMin = Loop.GetOutPort( 'Min' ) - OLoopMax = Loop.GetOutPort( 'Max' ) - OLoopIncr = Loop.GetOutPort( 'Incr' ) - OLoopzDiv = Loop.GetOutPort( 'zDiv' ) - OLoopzMul = Loop.GetOutPort( 'zMul' ) - OLoopOK = Loop.GetOutPort( 'OK' ) - OLoopGate = Loop.GetOutPort( 'Gate' ) - IEndLoopDoLoop = EndLoop.GetInPort( 'DoLoop' ) - IEndLoopIndex = EndLoop.GetInPort( 'Index' ) - IEndLoopMin = EndLoop.GetInPort( 'Min' ) - IEndLoopMax = EndLoop.GetInPort( 'Max' ) - IEndLoopIncr = EndLoop.GetInPort( 'Incr' ) - IEndLoopzDiv = EndLoop.GetInPort( 'zDiv' ) - IEndLoopzMul = EndLoop.GetInPort( 'zMul' ) - IEndLoopOK = EndLoop.GetInPort( 'OK' ) - IEndLoopGate = EndLoop.GetInPort( 'Gate' ) - OEndLoopDoLoop = EndLoop.GetOutPort( 'DoLoop' ) - OEndLoopIndex = EndLoop.GetOutPort( 'Index' ) - OEndLoopMin = EndLoop.GetOutPort( 'Min' ) - OEndLoopMax = EndLoop.GetOutPort( 'Max' ) - OEndLoopIncr = EndLoop.GetOutPort( 'Incr' ) - OEndLoopzDiv = EndLoop.GetOutPort( 'zDiv' ) - OEndLoopzMul = EndLoop.GetOutPort( 'zMul' ) - OEndLoopOK = EndLoop.GetOutPort( 'OK' ) - OEndLoopGate = EndLoop.GetOutPort( 'Gate' ) - Loop.SetName( 'Loop' ) - Loop.SetAuthor( '' ) - Loop.SetComment( 'Compute Node' ) - Loop.Coords( 5 , 265 ) - - # Creation of Macro Nodes - GraphAdd_1 = DefGraphAdd_1() - Macro_GraphAdd = GraphLoopMacroNodes.GraphMNode( GraphAdd_1 ) - Macro_GraphAdd.SetCoupled( 'GraphAdd_1' ) - Macro_GraphAdd.SetName( 'Macro_GraphAdd' ) - Macro_GraphAdd.SetAuthor( '' ) - Macro_GraphAdd.SetComment( 'Macro Node' ) - Macro_GraphAdd.Coords( 625 , 133 ) - IMacro_GraphAddAdd__x = Macro_GraphAdd.GetInPort( 'Add__x' ) - IMacro_GraphAddAdd__y = Macro_GraphAdd.GetInPort( 'Add__y' ) - IMacro_GraphAddGate = Macro_GraphAdd.GetInPort( 'Gate' ) - OMacro_GraphAddAdd__FuncValue = Macro_GraphAdd.GetOutPort( 'Add__FuncValue' ) - OMacro_GraphAddAdd__z = Macro_GraphAdd.GetOutPort( 'Add__z' ) - OMacro_GraphAddGate = Macro_GraphAdd.GetOutPort( 'Gate' ) - - GraphSub_1 = DefGraphSub_1() - Macro_GraphSub = GraphLoopMacroNodes.GraphMNode( GraphSub_1 ) - Macro_GraphSub.SetCoupled( 'GraphSub_1' ) - Macro_GraphSub.SetName( 'Macro_GraphSub' ) - Macro_GraphSub.SetAuthor( '' ) - Macro_GraphSub.SetComment( 'Macro Node' ) - Macro_GraphSub.Coords( 512 , 319 ) - IMacro_GraphSubSub__x = Macro_GraphSub.GetInPort( 'Sub__x' ) - IMacro_GraphSubSub__y = Macro_GraphSub.GetInPort( 'Sub__y' ) - IMacro_GraphSubGate = Macro_GraphSub.GetInPort( 'Gate' ) - OMacro_GraphSubSub__z = Macro_GraphSub.GetOutPort( 'Sub__z' ) - OMacro_GraphSubGate = Macro_GraphSub.GetOutPort( 'Gate' ) - - # Creation of Links - LAddFuncValueMacro_GraphSubSub__x = GraphLoopMacroNodes.Link( OAddFuncValue , IMacro_GraphSubSub__x ) - - LAddFuncValueMacro_GraphAddAdd__y = GraphLoopMacroNodes.Link( OAddFuncValue , IMacro_GraphAddAdd__y ) - LAddFuncValueMacro_GraphAddAdd__y.AddCoord( 1 , 512 , 309 ) - - LAddzSuby = GraphLoopMacroNodes.Link( OAddz , ISuby ) - - LAddzMacro_GraphSubSub__y = GraphLoopMacroNodes.Link( OAddz , IMacro_GraphSubSub__y ) - - LSubzMacro_GraphAddAdd__x = GraphLoopMacroNodes.Link( OSubz , IMacro_GraphAddAdd__x ) - - LSubzMulx = GraphLoopMacroNodes.Link( OSubz , IMulx ) - LSubzMulx.AddCoord( 1 , 767 , 389 ) - LSubzMulx.AddCoord( 2 , 767 , 297 ) - LSubzMulx.AddCoord( 3 , 592 , 297 ) - LSubzMulx.AddCoord( 4 , 592 , 217 ) - - LMulzResultsControlzMul = GraphLoopMacroNodes.Link( OMulz , IResultsControlzMul ) - - LDivzResultsControlzDiv = GraphLoopMacroNodes.Link( ODivz , IResultsControlzDiv ) - - LMacro_GraphAddAdd__FuncValueDivx = GraphLoopMacroNodes.Link( OMacro_GraphAddAdd__FuncValue , IDivx ) - - LMacro_GraphAddAdd__zDivy = GraphLoopMacroNodes.Link( OMacro_GraphAddAdd__z , IDivy ) - - LMacro_GraphSubSub__zMuly = GraphLoopMacroNodes.Link( OMacro_GraphSubSub__z , IMuly ) - - LMacro_GraphSubGateMulGate = GraphLoopMacroNodes.Link( OMacro_GraphSubGate , IMulGate ) - - LLoopIndexEndLoopIndex = GraphLoopMacroNodes.Link( OLoopIndex , IEndLoopIndex ) - - LLoopIndexAddx = GraphLoopMacroNodes.Link( OLoopIndex , IAddx ) - - LLoopIndexResultsControlx = GraphLoopMacroNodes.Link( OLoopIndex , IResultsControlx ) - - LLoopMinEndLoopMin = GraphLoopMacroNodes.Link( OLoopMin , IEndLoopMin ) - - LLoopMaxEndLoopMax = GraphLoopMacroNodes.Link( OLoopMax , IEndLoopMax ) - - LLoopMaxAddy = GraphLoopMacroNodes.Link( OLoopMax , IAddy ) - - LLoopMaxResultsControly = GraphLoopMacroNodes.Link( OLoopMax , IResultsControly ) - - LLoopIncrEndLoopIncr = GraphLoopMacroNodes.Link( OLoopIncr , IEndLoopIncr ) - - LResultsControlzDivEndLoopzDiv = GraphLoopMacroNodes.Link( OResultsControlzDiv , IEndLoopzDiv ) - - LResultsControlzMulEndLoopzMul = GraphLoopMacroNodes.Link( OResultsControlzMul , IEndLoopzMul ) - - LResultsControlOKEndLoopOK = GraphLoopMacroNodes.Link( OResultsControlOK , IEndLoopOK ) - - # Input datas - ISubx.Input( 1.5 ) - ILoopIndex.Input( 0 ) - ILoopMin.Input( 7 ) - ILoopMax.Input( 17 ) - ILoopIncr.Input( 1 ) - ILoopzDiv.Input( 0 ) - ILoopzMul.Input( 0 ) - ILoopOK.Input( 'Okay' ) - - # Output Ports of the graph - #OEndLoopIndex = EndLoop.GetOutPort( 'Index' ) - #OEndLoopMin = EndLoop.GetOutPort( 'Min' ) - #OEndLoopMax = EndLoop.GetOutPort( 'Max' ) - #OEndLoopIncr = EndLoop.GetOutPort( 'Incr' ) - #OEndLoopzDiv = EndLoop.GetOutPort( 'zDiv' ) - #OEndLoopzMul = EndLoop.GetOutPort( 'zMul' ) - #OEndLoopOK = EndLoop.GetOutPort( 'OK' ) - #OResultsControlDiv_z = ResultsControl.GetOutPort( 'Div_z' ) - #OResultsControlMul_z = ResultsControl.GetOutPort( 'Mul_z' ) - return GraphLoopMacroNodes - -# Graph creation of GraphAdd_1 -def DefGraphAdd_1() : - GraphAdd_1 = Graph( 'GraphAdd_1' ) - GraphAdd_1.SetCoupled( 'Macro_GraphAdd' ) - GraphAdd_1.SetName( 'GraphAdd_1' ) - GraphAdd_1.SetAuthor( '' ) - GraphAdd_1.SetComment( '' ) - GraphAdd_1.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - Add = GraphAdd_1.FNode( 'AddComponent' , 'AddComponent' , 'Add' ) - Add.SetName( 'Add' ) - Add.SetAuthor( '' ) - Add.SetContainer( 'localhost/FactoryServer' ) - Add.SetComment( 'Add from AddComponent' ) - Add.Coords( 55 , 61 ) - IAddx = Add.GetInPort( 'x' ) - IAddy = Add.GetInPort( 'y' ) - IAddGate = Add.GetInPort( 'Gate' ) - OAddFuncValue = Add.GetOutPort( 'FuncValue' ) - OAddz = Add.GetOutPort( 'z' ) - OAddGate = Add.GetOutPort( 'Gate' ) - - # Input Ports of the graph - #IAddx = Add.GetInPort( 'x' ) - #IAddy = Add.GetInPort( 'y' ) - - # Output Ports of the graph - #OAddFuncValue = Add.GetOutPort( 'FuncValue' ) - #OAddz = Add.GetOutPort( 'z' ) - return GraphAdd_1 - -# Graph creation of GraphSub_1 -def DefGraphSub_1() : - GraphSub_1 = Graph( 'GraphSub_1' ) - GraphSub_1.SetCoupled( 'Macro_GraphSub' ) - GraphSub_1.SetName( 'GraphSub_1' ) - GraphSub_1.SetAuthor( '' ) - GraphSub_1.SetComment( '' ) - GraphSub_1.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - Sub = GraphSub_1.FNode( 'SubComponent' , 'SubComponent' , 'Sub' ) - Sub.SetName( 'Sub' ) - Sub.SetAuthor( '' ) - Sub.SetContainer( 'localhost/FactoryServer' ) - Sub.SetComment( 'Sub from SubComponent' ) - Sub.Coords( 55 , 71 ) - ISubx = Sub.GetInPort( 'x' ) - ISuby = Sub.GetInPort( 'y' ) - ISubGate = Sub.GetInPort( 'Gate' ) - OSubz = Sub.GetOutPort( 'z' ) - OSubGate = Sub.GetOutPort( 'Gate' ) - - # Input Ports of the graph - #ISubx = Sub.GetInPort( 'x' ) - #ISuby = Sub.GetInPort( 'y' ) - - # Output Ports of the graph - #OSubz = Sub.GetOutPort( 'z' ) - return GraphSub_1 - - -GraphLoopMacroNodes = DefGraphLoopMacroNodes() diff --git a/Superv/Python/GraphLoopMacroNodesOutput.py b/Superv/Python/GraphLoopMacroNodesOutput.py deleted file mode 100644 index a420f9f..0000000 --- a/Superv/Python/GraphLoopMacroNodesOutput.py +++ /dev/null @@ -1,515 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphLoopMacroNodesOutput -# -from SuperV import * - -# Graph creation of GraphLoopMacroNodesOutput -def DefGraphLoopMacroNodesOutput() : - GraphLoopMacroNodesOutput = Graph( 'GraphLoopMacroNodesOutput' ) - GraphLoopMacroNodesOutput.SetName( 'GraphLoopMacroNodesOutput' ) - GraphLoopMacroNodesOutput.SetAuthor( 'JR' ) - GraphLoopMacroNodesOutput.SetComment( '' ) - GraphLoopMacroNodesOutput.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - Add = GraphLoopMacroNodesOutput.FNode( 'AddComponent' , 'AddComponent' , 'Add' ) - Add.SetName( 'Add' ) - Add.SetAuthor( '' ) - Add.SetContainer( 'FactoryServer' ) - Add.SetComment( 'Add from AddComponent' ) - Add.Coords( 205 , 238 ) - IAddx = Add.GetInPort( 'x' ) - IAddy = Add.GetInPort( 'y' ) - IAddGate = Add.GetInPort( 'Gate' ) - OAddFuncValue = Add.GetOutPort( 'FuncValue' ) - OAddz = Add.GetOutPort( 'z' ) - OAddGate = Add.GetOutPort( 'Gate' ) - - Sub = GraphLoopMacroNodesOutput.FNode( 'SubComponent' , 'SubComponent' , 'Sub' ) - Sub.SetName( 'Sub' ) - Sub.SetAuthor( '' ) - Sub.SetContainer( 'FactoryServer' ) - Sub.SetComment( 'Sub from SubComponent' ) - Sub.Coords( 394 , 146 ) - ISubx = Sub.GetInPort( 'x' ) - ISuby = Sub.GetInPort( 'y' ) - ISubGate = Sub.GetInPort( 'Gate' ) - OSubz = Sub.GetOutPort( 'z' ) - OSubGate = Sub.GetOutPort( 'Gate' ) - - Mul = GraphLoopMacroNodesOutput.FNode( 'MulComponent' , 'MulComponent' , 'Mul' ) - Mul.SetName( 'Mul' ) - Mul.SetAuthor( '' ) - Mul.SetContainer( 'FactoryServer' ) - Mul.SetComment( 'Mul from MulComponent' ) - Mul.Coords( 821 , 319 ) - IMulx = Mul.GetInPort( 'x' ) - IMuly = Mul.GetInPort( 'y' ) - IMulGate = Mul.GetInPort( 'Gate' ) - OMulz = Mul.GetOutPort( 'z' ) - OMulGate = Mul.GetOutPort( 'Gate' ) - - Div = GraphLoopMacroNodesOutput.FNode( 'DivComponent' , 'DivComponent' , 'Div' ) - Div.SetName( 'Div' ) - Div.SetAuthor( '' ) - Div.SetContainer( 'FactoryServer' ) - Div.SetComment( 'Div from DivComponent' ) - Div.Coords( 825 , 133 ) - IDivx = Div.GetInPort( 'x' ) - IDivy = Div.GetInPort( 'y' ) - IDivGate = Div.GetInPort( 'Gate' ) - ODivz = Div.GetOutPort( 'z' ) - ODivGate = Div.GetOutPort( 'Gate' ) - - # Creation of InLine Nodes - PyResultsControl = [] - PyResultsControl.append( 'def ResultsControl(x,y,zDiv,zMul) :' ) - PyResultsControl.append( ' Add_FuncValue = x - y' ) - PyResultsControl.append( ' Add_z = x + y' ) - PyResultsControl.append( ' Sub_z = 1.5 - Add_z' ) - PyResultsControl.append( ' Macro_GraphAdd_Add_FuncValue = Sub_z - Add_FuncValue' ) - PyResultsControl.append( ' Macro_GraphAdd_Add_z = Sub_z + Add_FuncValue' ) - PyResultsControl.append( ' Macro_GraphSub_z = Add_FuncValue - Add_z' ) - PyResultsControl.append( ' Div_z = Macro_GraphAdd_Add_FuncValue/Macro_GraphAdd_Add_z' ) - PyResultsControl.append( ' Mul_z = Sub_z * Macro_GraphSub_z' ) - PyResultsControl.append( ' OK = \'Okay\'' ) - PyResultsControl.append( ' if Div_z != zDiv or Mul_z != zMul :' ) - PyResultsControl.append( ' OK = \'KO\'' ) - PyResultsControl.append( ' return zDiv,zMul,Div_z,Mul_z,OK' ) - PyResultsControl.append( '' ) - ResultsControl = GraphLoopMacroNodesOutput.INode( 'ResultsControl' , PyResultsControl ) - ResultsControl.SetName( 'ResultsControl' ) - ResultsControl.SetAuthor( '' ) - ResultsControl.SetComment( 'Compute Node' ) - ResultsControl.Coords( 1102 , 196 ) - IResultsControlx = ResultsControl.InPort( 'x' , 'double' ) - IResultsControly = ResultsControl.InPort( 'y' , 'double' ) - IResultsControlzDiv = ResultsControl.InPort( 'zDiv' , 'double' ) - IResultsControlzMul = ResultsControl.InPort( 'zMul' , 'double' ) - IResultsControlGate = ResultsControl.GetInPort( 'Gate' ) - OResultsControlzDiv = ResultsControl.OutPort( 'zDiv' , 'double' ) - OResultsControlzMul = ResultsControl.OutPort( 'zMul' , 'double' ) - OResultsControlDiv_z = ResultsControl.OutPort( 'Div_z' , 'double' ) - OResultsControlMul_z = ResultsControl.OutPort( 'Mul_z' , 'double' ) - OResultsControlOK = ResultsControl.OutPort( 'OK' , 'string' ) - OResultsControlGate = ResultsControl.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyLoop = [] - PyLoop.append( 'def Init(Index,Min,Max,Incr,zDiv,zMul,OK) :' ) - PyLoop.append( ' if Min <= Max :' ) - PyLoop.append( ' Index = Min' ) - PyLoop.append( ' else :' ) - PyLoop.append( ' Index = Max' ) - PyLoop.append( ' return Index,Min,Max,Incr,zDiv,zMul,OK' ) - PyLoop.append( '' ) - PyMoreLoop = [] - PyMoreLoop.append( 'def More(Index,Min,Max,Incr,zDiv,zMul,OK) :' ) - PyMoreLoop.append( ' if Index < Max :' ) - PyMoreLoop.append( ' DoLoop = 1' ) - PyMoreLoop.append( ' else :' ) - PyMoreLoop.append( ' DoLoop = 0' ) - PyMoreLoop.append( ' return DoLoop,Index,Min,Max,Incr,zDiv,zMul,OK' ) - PyMoreLoop.append( '' ) - PyNextLoop = [] - PyNextLoop.append( 'def Next(Index,Min,Max,Incr,zDiv,zMul,OK) :' ) - PyNextLoop.append( ' Index = Index + Incr' ) - PyNextLoop.append( ' return Index,Min,Max,Incr,zDiv,zMul,OK' ) - PyNextLoop.append( '' ) - Loop,EndLoop = GraphLoopMacroNodesOutput.LNode( 'Init' , PyLoop , 'More' , PyMoreLoop , 'Next' , PyNextLoop ) - EndLoop.SetName( 'EndLoop' ) - EndLoop.SetAuthor( '' ) - EndLoop.SetComment( 'Compute Node' ) - EndLoop.Coords( 1354 , 156 ) - PyEndLoop = [] - PyEndLoop.append( 'def EndLoop(DoLoop,Index,Min,Max,Incr,zDiv,zMul,OK) :' ) - PyEndLoop.append( ' print \'EndLoop\',DoLoop,Index,Min,Max,Incr,zDiv,zMul,OK' ) - PyEndLoop.append( ' if OK != \'Okay\' :' ) - PyEndLoop.append( ' DoLoop = 0' ) - PyEndLoop.append( ' return DoLoop,Index,Min,Max,Incr ,zDiv,zMul,OK' ) - PyEndLoop.append( '' ) - EndLoop.SetPyFunction( 'EndLoop' , PyEndLoop ) - ILoopDoLoop = Loop.GetInPort( 'DoLoop' ) - ILoopIndex = Loop.InPort( 'Index' , 'long' ) - ILoopMin = Loop.InPort( 'Min' , 'long' ) - ILoopMax = Loop.InPort( 'Max' , 'long' ) - ILoopIncr = Loop.InPort( 'Incr' , 'long' ) - ILoopzDiv = Loop.InPort( 'zDiv' , 'double' ) - ILoopzMul = Loop.InPort( 'zMul' , 'double' ) - ILoopOK = Loop.InPort( 'OK' , 'string' ) - ILoopGate = Loop.GetInPort( 'Gate' ) - OLoopDoLoop = Loop.GetOutPort( 'DoLoop' ) - OLoopIndex = Loop.GetOutPort( 'Index' ) - OLoopMin = Loop.GetOutPort( 'Min' ) - OLoopMax = Loop.GetOutPort( 'Max' ) - OLoopIncr = Loop.GetOutPort( 'Incr' ) - OLoopzDiv = Loop.GetOutPort( 'zDiv' ) - OLoopzMul = Loop.GetOutPort( 'zMul' ) - OLoopOK = Loop.GetOutPort( 'OK' ) - OLoopGate = Loop.GetOutPort( 'Gate' ) - IEndLoopDoLoop = EndLoop.GetInPort( 'DoLoop' ) - IEndLoopIndex = EndLoop.GetInPort( 'Index' ) - IEndLoopMin = EndLoop.GetInPort( 'Min' ) - IEndLoopMax = EndLoop.GetInPort( 'Max' ) - IEndLoopIncr = EndLoop.GetInPort( 'Incr' ) - IEndLoopzDiv = EndLoop.GetInPort( 'zDiv' ) - IEndLoopzMul = EndLoop.GetInPort( 'zMul' ) - IEndLoopOK = EndLoop.GetInPort( 'OK' ) - IEndLoopGate = EndLoop.GetInPort( 'Gate' ) - OEndLoopDoLoop = EndLoop.GetOutPort( 'DoLoop' ) - OEndLoopIndex = EndLoop.GetOutPort( 'Index' ) - OEndLoopMin = EndLoop.GetOutPort( 'Min' ) - OEndLoopMax = EndLoop.GetOutPort( 'Max' ) - OEndLoopIncr = EndLoop.GetOutPort( 'Incr' ) - OEndLoopzDiv = EndLoop.GetOutPort( 'zDiv' ) - OEndLoopzMul = EndLoop.GetOutPort( 'zMul' ) - OEndLoopOK = EndLoop.GetOutPort( 'OK' ) - OEndLoopGate = EndLoop.GetOutPort( 'Gate' ) - Loop.SetName( 'Loop' ) - Loop.SetAuthor( '' ) - Loop.SetComment( 'Compute Node' ) - Loop.Coords( 5 , 265 ) - - # Creation of Macro Nodes - GraphSub_1 = DefGraphSub_1() - Macro_GraphSub = GraphLoopMacroNodesOutput.GraphMNode( GraphSub_1 ) - Macro_GraphSub.SetCoupled( 'GraphSub_1' ) - Macro_GraphSub.SetName( 'Macro_GraphSub' ) - Macro_GraphSub.SetAuthor( '' ) - Macro_GraphSub.SetComment( 'Macro Node' ) - Macro_GraphSub.Coords( 512 , 319 ) - IMacro_GraphSubSub__x = Macro_GraphSub.GetInPort( 'Sub__x' ) - IMacro_GraphSubSub__y = Macro_GraphSub.GetInPort( 'Sub__y' ) - IMacro_GraphSubGate = Macro_GraphSub.GetInPort( 'Gate' ) - OMacro_GraphSubSub__z = Macro_GraphSub.GetOutPort( 'Sub__z' ) - OMacro_GraphSubGate = Macro_GraphSub.GetOutPort( 'Gate' ) - - GraphAddLoop = DefGraphAddLoop() - Macro_GraphAddLoop = GraphLoopMacroNodesOutput.GraphMNode( GraphAddLoop ) - Macro_GraphAddLoop.SetCoupled( 'GraphAddLoop' ) - Macro_GraphAddLoop.SetName( 'Macro_GraphAddLoop' ) - Macro_GraphAddLoop.SetAuthor( '' ) - Macro_GraphAddLoop.SetComment( 'Macro Node' ) - Macro_GraphAddLoop.Coords( 628 , 14 ) - IMacro_GraphAddLoopInit_1__Index = Macro_GraphAddLoop.GetInPort( 'Init_1__Index' ) - IMacro_GraphAddLoopInit_1__Min = Macro_GraphAddLoop.GetInPort( 'Init_1__Min' ) - IMacro_GraphAddLoopInit_1__Max = Macro_GraphAddLoop.GetInPort( 'Init_1__Max' ) - IMacro_GraphAddLoopInit_1__Incr = Macro_GraphAddLoop.GetInPort( 'Init_1__Incr' ) - IMacro_GraphAddLoopInit_1__zDiv = Macro_GraphAddLoop.GetInPort( 'Init_1__zDiv' ) - IMacro_GraphAddLoopInit_1__zMul = Macro_GraphAddLoop.GetInPort( 'Init_1__zMul' ) - IMacro_GraphAddLoopInit_1__OK = Macro_GraphAddLoop.GetInPort( 'Init_1__OK' ) - IMacro_GraphAddLoopInit_1__x = Macro_GraphAddLoop.GetInPort( 'Init_1__x' ) - IMacro_GraphAddLoopInit_1__y = Macro_GraphAddLoop.GetInPort( 'Init_1__y' ) - IMacro_GraphAddLoopGate = Macro_GraphAddLoop.GetInPort( 'Gate' ) - OMacro_GraphAddLoopAdd__FuncValue = Macro_GraphAddLoop.GetOutPort( 'Add__FuncValue' ) - OMacro_GraphAddLoopAdd__z = Macro_GraphAddLoop.GetOutPort( 'Add__z' ) - OMacro_GraphAddLoopEndInit_1__Index = Macro_GraphAddLoop.GetOutPort( 'EndInit_1__Index' ) - OMacro_GraphAddLoopEndInit_1__Min = Macro_GraphAddLoop.GetOutPort( 'EndInit_1__Min' ) - OMacro_GraphAddLoopEndInit_1__Max = Macro_GraphAddLoop.GetOutPort( 'EndInit_1__Max' ) - OMacro_GraphAddLoopEndInit_1__Incr = Macro_GraphAddLoop.GetOutPort( 'EndInit_1__Incr' ) - OMacro_GraphAddLoopEndInit_1__zDiv = Macro_GraphAddLoop.GetOutPort( 'EndInit_1__zDiv' ) - OMacro_GraphAddLoopEndInit_1__zMul = Macro_GraphAddLoop.GetOutPort( 'EndInit_1__zMul' ) - OMacro_GraphAddLoopEndInit_1__OK = Macro_GraphAddLoop.GetOutPort( 'EndInit_1__OK' ) - OMacro_GraphAddLoopEndInit_1__x = Macro_GraphAddLoop.GetOutPort( 'EndInit_1__x' ) - OMacro_GraphAddLoopEndInit_1__y = Macro_GraphAddLoop.GetOutPort( 'EndInit_1__y' ) - OMacro_GraphAddLoopGate = Macro_GraphAddLoop.GetOutPort( 'Gate' ) - - # Creation of Links - LAddFuncValueMacro_GraphSubSub__x = GraphLoopMacroNodesOutput.Link( OAddFuncValue , IMacro_GraphSubSub__x ) - - LAddFuncValueMacro_GraphAddLoopInit_1__y = GraphLoopMacroNodesOutput.Link( OAddFuncValue , IMacro_GraphAddLoopInit_1__y ) - - LAddzSuby = GraphLoopMacroNodesOutput.Link( OAddz , ISuby ) - - LAddzMacro_GraphSubSub__y = GraphLoopMacroNodesOutput.Link( OAddz , IMacro_GraphSubSub__y ) - - LSubzMulx = GraphLoopMacroNodesOutput.Link( OSubz , IMulx ) - LSubzMulx.AddCoord( 1 , 767 , 389 ) - LSubzMulx.AddCoord( 2 , 767 , 297 ) - LSubzMulx.AddCoord( 3 , 592 , 297 ) - LSubzMulx.AddCoord( 4 , 592 , 217 ) - - LSubzMacro_GraphAddLoopInit_1__x = GraphLoopMacroNodesOutput.Link( OSubz , IMacro_GraphAddLoopInit_1__x ) - - LSubzMacro_GraphAddLoopInit_1__zDiv = GraphLoopMacroNodesOutput.Link( OSubz , IMacro_GraphAddLoopInit_1__zDiv ) - - LSubzMacro_GraphAddLoopInit_1__zMul = GraphLoopMacroNodesOutput.Link( OSubz , IMacro_GraphAddLoopInit_1__zMul ) - - LSubzMacro_GraphAddLoopInit_1__OK = GraphLoopMacroNodesOutput.Link( OSubz , IMacro_GraphAddLoopInit_1__OK ) - - LMulzResultsControlzMul = GraphLoopMacroNodesOutput.Link( OMulz , IResultsControlzMul ) - - LDivzResultsControlzDiv = GraphLoopMacroNodesOutput.Link( ODivz , IResultsControlzDiv ) - - LMacro_GraphSubSub__zMuly = GraphLoopMacroNodesOutput.Link( OMacro_GraphSubSub__z , IMuly ) - - LMacro_GraphSubGateMulGate = GraphLoopMacroNodesOutput.Link( OMacro_GraphSubGate , IMulGate ) - - LLoopIndexEndLoopIndex = GraphLoopMacroNodesOutput.Link( OLoopIndex , IEndLoopIndex ) - - LLoopIndexAddx = GraphLoopMacroNodesOutput.Link( OLoopIndex , IAddx ) - - LLoopIndexResultsControlx = GraphLoopMacroNodesOutput.Link( OLoopIndex , IResultsControlx ) - - LLoopMinEndLoopMin = GraphLoopMacroNodesOutput.Link( OLoopMin , IEndLoopMin ) - - LLoopMaxEndLoopMax = GraphLoopMacroNodesOutput.Link( OLoopMax , IEndLoopMax ) - - LLoopMaxAddy = GraphLoopMacroNodesOutput.Link( OLoopMax , IAddy ) - - LLoopMaxResultsControly = GraphLoopMacroNodesOutput.Link( OLoopMax , IResultsControly ) - - LLoopIncrEndLoopIncr = GraphLoopMacroNodesOutput.Link( OLoopIncr , IEndLoopIncr ) - - LResultsControlzDivEndLoopzDiv = GraphLoopMacroNodesOutput.Link( OResultsControlzDiv , IEndLoopzDiv ) - - LResultsControlzMulEndLoopzMul = GraphLoopMacroNodesOutput.Link( OResultsControlzMul , IEndLoopzMul ) - - LResultsControlOKEndLoopOK = GraphLoopMacroNodesOutput.Link( OResultsControlOK , IEndLoopOK ) - - LMacro_GraphAddLoopAdd__FuncValueDivx = GraphLoopMacroNodesOutput.Link( OMacro_GraphAddLoopAdd__FuncValue , IDivx ) - - LMacro_GraphAddLoopAdd__zDivy = GraphLoopMacroNodesOutput.Link( OMacro_GraphAddLoopAdd__z , IDivy ) - - # Input datas - ISubx.Input( 1.5 ) - ILoopIndex.Input( 0 ) - ILoopMin.Input( 7 ) - ILoopMax.Input( 17 ) - ILoopIncr.Input( 1 ) - ILoopzDiv.Input( 0 ) - ILoopzMul.Input( 0 ) - ILoopOK.Input( 'Okay' ) - IMacro_GraphAddLoopInit_1__Index.Input( 0 ) - IMacro_GraphAddLoopInit_1__Min.Input( 5 ) - IMacro_GraphAddLoopInit_1__Max.Input( 11 ) - IMacro_GraphAddLoopInit_1__Incr.Input( 1 ) - - # Output Ports of the graph - #OEndLoopIndex = EndLoop.GetOutPort( 'Index' ) - #OEndLoopMin = EndLoop.GetOutPort( 'Min' ) - #OEndLoopMax = EndLoop.GetOutPort( 'Max' ) - #OEndLoopIncr = EndLoop.GetOutPort( 'Incr' ) - #OEndLoopzDiv = EndLoop.GetOutPort( 'zDiv' ) - #OEndLoopzMul = EndLoop.GetOutPort( 'zMul' ) - #OEndLoopOK = EndLoop.GetOutPort( 'OK' ) - #OResultsControlDiv_z = ResultsControl.GetOutPort( 'Div_z' ) - #OResultsControlMul_z = ResultsControl.GetOutPort( 'Mul_z' ) - #OMacro_GraphAddLoopEndInit_1__Index = Macro_GraphAddLoop.GetOutPort( 'EndInit_1__Index' ) - #OMacro_GraphAddLoopEndInit_1__Min = Macro_GraphAddLoop.GetOutPort( 'EndInit_1__Min' ) - #OMacro_GraphAddLoopEndInit_1__Max = Macro_GraphAddLoop.GetOutPort( 'EndInit_1__Max' ) - #OMacro_GraphAddLoopEndInit_1__Incr = Macro_GraphAddLoop.GetOutPort( 'EndInit_1__Incr' ) - #OMacro_GraphAddLoopEndInit_1__zDiv = Macro_GraphAddLoop.GetOutPort( 'EndInit_1__zDiv' ) - #OMacro_GraphAddLoopEndInit_1__zMul = Macro_GraphAddLoop.GetOutPort( 'EndInit_1__zMul' ) - #OMacro_GraphAddLoopEndInit_1__OK = Macro_GraphAddLoop.GetOutPort( 'EndInit_1__OK' ) - #OMacro_GraphAddLoopEndInit_1__x = Macro_GraphAddLoop.GetOutPort( 'EndInit_1__x' ) - #OMacro_GraphAddLoopEndInit_1__y = Macro_GraphAddLoop.GetOutPort( 'EndInit_1__y' ) - return GraphLoopMacroNodesOutput - -# Graph creation of GraphSub_1 -def DefGraphSub_1() : - GraphSub_1 = Graph( 'GraphSub_1' ) - GraphSub_1.SetCoupled( 'Macro_GraphSub' ) - GraphSub_1.SetName( 'GraphSub_1' ) - GraphSub_1.SetAuthor( '' ) - GraphSub_1.SetComment( '' ) - GraphSub_1.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - Sub = GraphSub_1.FNode( 'SubComponent' , 'SubComponent' , 'Sub' ) - Sub.SetName( 'Sub' ) - Sub.SetAuthor( '' ) - Sub.SetContainer( 'localhost/FactoryServer' ) - Sub.SetComment( 'Sub from SubComponent' ) - Sub.Coords( 55 , 71 ) - ISubx = Sub.GetInPort( 'x' ) - ISuby = Sub.GetInPort( 'y' ) - ISubGate = Sub.GetInPort( 'Gate' ) - OSubz = Sub.GetOutPort( 'z' ) - OSubGate = Sub.GetOutPort( 'Gate' ) - - # Input Ports of the graph - #ISubx = Sub.GetInPort( 'x' ) - #ISuby = Sub.GetInPort( 'y' ) - - # Output Ports of the graph - #OSubz = Sub.GetOutPort( 'z' ) - return GraphSub_1 - -# Graph creation of GraphAddLoop -def DefGraphAddLoop() : - GraphAddLoop = Graph( 'GraphAddLoop' ) - GraphAddLoop.SetCoupled( 'Macro_GraphAddLoop' ) - GraphAddLoop.SetName( 'GraphAddLoop' ) - GraphAddLoop.SetAuthor( '' ) - GraphAddLoop.SetComment( '' ) - GraphAddLoop.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - Add = GraphAddLoop.FNode( 'AddComponent' , 'AddComponent' , 'Add' ) - Add.SetName( 'Add' ) - Add.SetAuthor( '' ) - Add.SetContainer( 'localhost/FactoryServer' ) - Add.SetComment( 'Add from AddComponent' ) - Add.Coords( 248 , 247 ) - IAddx = Add.GetInPort( 'x' ) - IAddy = Add.GetInPort( 'y' ) - IAddGate = Add.GetInPort( 'Gate' ) - OAddFuncValue = Add.GetOutPort( 'FuncValue' ) - OAddz = Add.GetOutPort( 'z' ) - OAddGate = Add.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyInit_1 = [] - PyInit_1.append( 'def Init_1(Index,Min,Max,Incr,zDiv,zMul,OK,x,y) :' ) - PyInit_1.append( ' if Min <= Max :' ) - PyInit_1.append( ' Index = Min' ) - PyInit_1.append( ' else :' ) - PyInit_1.append( ' Index = Max' ) - PyInit_1.append( ' return Index,Min,Max,Incr,zDiv,zMul,OK,x,y' ) - PyInit_1.append( '' ) - PyMoreInit_1 = [] - PyMoreInit_1.append( 'def More_1(Index,Min,Max,Incr,zDiv,zMul,OK,x,y) :' ) - PyMoreInit_1.append( ' if Index < Max :' ) - PyMoreInit_1.append( ' DoLoop = 1' ) - PyMoreInit_1.append( ' else :' ) - PyMoreInit_1.append( ' DoLoop = 0' ) - PyMoreInit_1.append( ' return DoLoop,Index,Min,Max,Incr,zDiv,zMul,OK,x,y' ) - PyMoreInit_1.append( '' ) - PyNextInit_1 = [] - PyNextInit_1.append( 'def Next_1(Index,Min,Max,Incr,zDiv,zMul,OK,x,y) :' ) - PyNextInit_1.append( ' Index = Index + Incr' ) - PyNextInit_1.append( ' return Index,Min,Max,Incr,zDiv,zMul,OK,x,y' ) - PyNextInit_1.append( '' ) - Init_1,EndInit_1 = GraphAddLoop.LNode( 'Init_1' , PyInit_1 , 'More_1' , PyMoreInit_1 , 'Next_1' , PyNextInit_1 ) - EndInit_1.SetName( 'EndInit_1' ) - EndInit_1.SetAuthor( '' ) - EndInit_1.SetComment( 'Compute Node' ) - EndInit_1.Coords( 460 , 146 ) - PyEndInit_1 = [] - EndInit_1.SetPyFunction( 'EndInit_1' , PyEndInit_1 ) - IInit_1DoLoop = Init_1.GetInPort( 'DoLoop' ) - IInit_1Index = Init_1.InPort( 'Index' , 'long' ) - IInit_1Min = Init_1.InPort( 'Min' , 'long' ) - IInit_1Max = Init_1.InPort( 'Max' , 'long' ) - IInit_1Incr = Init_1.InPort( 'Incr' , 'long' ) - IInit_1zDiv = Init_1.InPort( 'zDiv' , 'double' ) - IInit_1zMul = Init_1.InPort( 'zMul' , 'double' ) - IInit_1OK = Init_1.InPort( 'OK' , 'string' ) - IInit_1x = Init_1.InPort( 'x' , 'double' ) - IInit_1y = Init_1.InPort( 'y' , 'double' ) - IInit_1Gate = Init_1.GetInPort( 'Gate' ) - OInit_1DoLoop = Init_1.GetOutPort( 'DoLoop' ) - OInit_1Index = Init_1.GetOutPort( 'Index' ) - OInit_1Min = Init_1.GetOutPort( 'Min' ) - OInit_1Max = Init_1.GetOutPort( 'Max' ) - OInit_1Incr = Init_1.GetOutPort( 'Incr' ) - OInit_1zDiv = Init_1.GetOutPort( 'zDiv' ) - OInit_1zMul = Init_1.GetOutPort( 'zMul' ) - OInit_1OK = Init_1.GetOutPort( 'OK' ) - OInit_1x = Init_1.GetOutPort( 'x' ) - OInit_1y = Init_1.GetOutPort( 'y' ) - OInit_1Gate = Init_1.GetOutPort( 'Gate' ) - IEndInit_1DoLoop = EndInit_1.GetInPort( 'DoLoop' ) - IEndInit_1Index = EndInit_1.GetInPort( 'Index' ) - IEndInit_1Min = EndInit_1.GetInPort( 'Min' ) - IEndInit_1Max = EndInit_1.GetInPort( 'Max' ) - IEndInit_1Incr = EndInit_1.GetInPort( 'Incr' ) - IEndInit_1zDiv = EndInit_1.GetInPort( 'zDiv' ) - IEndInit_1zMul = EndInit_1.GetInPort( 'zMul' ) - IEndInit_1OK = EndInit_1.GetInPort( 'OK' ) - IEndInit_1x = EndInit_1.GetInPort( 'x' ) - IEndInit_1y = EndInit_1.GetInPort( 'y' ) - IEndInit_1Gate = EndInit_1.GetInPort( 'Gate' ) - OEndInit_1DoLoop = EndInit_1.GetOutPort( 'DoLoop' ) - OEndInit_1Index = EndInit_1.GetOutPort( 'Index' ) - OEndInit_1Min = EndInit_1.GetOutPort( 'Min' ) - OEndInit_1Max = EndInit_1.GetOutPort( 'Max' ) - OEndInit_1Incr = EndInit_1.GetOutPort( 'Incr' ) - OEndInit_1zDiv = EndInit_1.GetOutPort( 'zDiv' ) - OEndInit_1zMul = EndInit_1.GetOutPort( 'zMul' ) - OEndInit_1OK = EndInit_1.GetOutPort( 'OK' ) - OEndInit_1x = EndInit_1.GetOutPort( 'x' ) - OEndInit_1y = EndInit_1.GetOutPort( 'y' ) - OEndInit_1Gate = EndInit_1.GetOutPort( 'Gate' ) - Init_1.SetName( 'Init_1' ) - Init_1.SetAuthor( '' ) - Init_1.SetComment( 'Compute Node' ) - Init_1.Coords( 37 , 147 ) - - # Creation of Links - LAddGateEndInit_1Gate = GraphAddLoop.Link( OAddGate , IEndInit_1Gate ) - - LInit_1IndexEndInit_1Index = GraphAddLoop.Link( OInit_1Index , IEndInit_1Index ) - - LInit_1MinEndInit_1Min = GraphAddLoop.Link( OInit_1Min , IEndInit_1Min ) - - LInit_1MaxEndInit_1Max = GraphAddLoop.Link( OInit_1Max , IEndInit_1Max ) - - LInit_1IncrEndInit_1Incr = GraphAddLoop.Link( OInit_1Incr , IEndInit_1Incr ) - - LInit_1zDivEndInit_1zDiv = GraphAddLoop.Link( OInit_1zDiv , IEndInit_1zDiv ) - - LInit_1zMulEndInit_1zMul = GraphAddLoop.Link( OInit_1zMul , IEndInit_1zMul ) - - LInit_1OKEndInit_1OK = GraphAddLoop.Link( OInit_1OK , IEndInit_1OK ) - - LInit_1xEndInit_1x = GraphAddLoop.Link( OInit_1x , IEndInit_1x ) - - LInit_1xAddx = GraphAddLoop.Link( OInit_1x , IAddx ) - - LInit_1yEndInit_1y = GraphAddLoop.Link( OInit_1y , IEndInit_1y ) - - LInit_1yAddy = GraphAddLoop.Link( OInit_1y , IAddy ) - - # Input Ports of the graph - #IInit_1Index = Init_1.GetInPort( 'Index' ) - #IInit_1Min = Init_1.GetInPort( 'Min' ) - #IInit_1Max = Init_1.GetInPort( 'Max' ) - #IInit_1Incr = Init_1.GetInPort( 'Incr' ) - #IInit_1zDiv = Init_1.GetInPort( 'zDiv' ) - #IInit_1zMul = Init_1.GetInPort( 'zMul' ) - #IInit_1OK = Init_1.GetInPort( 'OK' ) - #IInit_1x = Init_1.GetInPort( 'x' ) - #IInit_1y = Init_1.GetInPort( 'y' ) - - # Output Ports of the graph - #OAddFuncValue = Add.GetOutPort( 'FuncValue' ) - #OAddz = Add.GetOutPort( 'z' ) - #OEndInit_1Index = EndInit_1.GetOutPort( 'Index' ) - #OEndInit_1Min = EndInit_1.GetOutPort( 'Min' ) - #OEndInit_1Max = EndInit_1.GetOutPort( 'Max' ) - #OEndInit_1Incr = EndInit_1.GetOutPort( 'Incr' ) - #OEndInit_1zDiv = EndInit_1.GetOutPort( 'zDiv' ) - #OEndInit_1zMul = EndInit_1.GetOutPort( 'zMul' ) - #OEndInit_1OK = EndInit_1.GetOutPort( 'OK' ) - #OEndInit_1x = EndInit_1.GetOutPort( 'x' ) - #OEndInit_1y = EndInit_1.GetOutPort( 'y' ) - return GraphAddLoop - - -GraphLoopMacroNodesOutput = DefGraphLoopMacroNodesOutput() diff --git a/Superv/Python/GraphLoopMemory.py b/Superv/Python/GraphLoopMemory.py deleted file mode 100644 index 1551668..0000000 --- a/Superv/Python/GraphLoopMemory.py +++ /dev/null @@ -1,114 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphLoopMemory_1 -# -from SuperV import * - -# Graph creation of GraphLoopMemory_1 -def DefGraphLoopMemory_1() : - GraphLoopMemory_1 = Graph( 'GraphLoopMemory_1' ) - GraphLoopMemory_1.SetName( 'GraphLoopMemory_1' ) - GraphLoopMemory_1.SetAuthor( 'JR' ) - GraphLoopMemory_1.SetComment( 'For solving of memory leaks' ) - GraphLoopMemory_1.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - # Creation of Loop Nodes - PyInit = [] - PyInit.append( 'def Init(Index,Min,Max,Incr) : ' ) - PyInit.append( ' if Min <= Max : ' ) - PyInit.append( ' Index = Min ' ) - PyInit.append( ' else : ' ) - PyInit.append( ' Index = Max ' ) - PyInit.append( ' return Index,Min,Max,Incr ' ) - PyMoreInit = [] - PyMoreInit.append( 'def More(Index,Min,Max,Incr) : ' ) - PyMoreInit.append( ' if Index < Max : ' ) - PyMoreInit.append( ' DoLoop = 1 ' ) - PyMoreInit.append( ' else : ' ) - PyMoreInit.append( ' DoLoop = 0 ' ) - PyMoreInit.append( ' return DoLoop,Index,Min,Max,Incr ' ) - PyNextInit = [] - PyNextInit.append( 'def Next(Index,Min,Max,Incr) : ' ) - PyNextInit.append( ' Index = Index + Incr ' ) - PyNextInit.append( ' return Index,Min,Max,Incr ' ) - Init,EndInit = GraphLoopMemory_1.LNode( 'Init' , PyInit , 'More' , PyMoreInit , 'Next' , PyNextInit ) - EndInit.SetName( 'EndInit' ) - EndInit.SetAuthor( '' ) - EndInit.SetComment( 'Compute Node' ) - EndInit.Coords( 366 , 262 ) - PyEndInit = [] - EndInit.SetPyFunction( '' , PyEndInit ) - IInitDoLoop = Init.GetInPort( 'DoLoop' ) - IInitIndex = Init.InPort( 'Index' , 'long' ) - IInitMin = Init.InPort( 'Min' , 'long' ) - IInitMax = Init.InPort( 'Max' , 'long' ) - IInitIncr = Init.InPort( 'Incr' , 'long' ) - IInitGate = Init.GetInPort( 'Gate' ) - OInitDoLoop = Init.GetOutPort( 'DoLoop' ) - OInitIndex = Init.GetOutPort( 'Index' ) - OInitMin = Init.GetOutPort( 'Min' ) - OInitMax = Init.GetOutPort( 'Max' ) - OInitIncr = Init.GetOutPort( 'Incr' ) - IEndInitDoLoop = EndInit.GetInPort( 'DoLoop' ) - IEndInitIndex = EndInit.GetInPort( 'Index' ) - IEndInitMin = EndInit.GetInPort( 'Min' ) - IEndInitMax = EndInit.GetInPort( 'Max' ) - IEndInitIncr = EndInit.GetInPort( 'Incr' ) - IEndInitGate = EndInit.GetInPort( 'Gate' ) - OEndInitDoLoop = EndInit.GetOutPort( 'DoLoop' ) - OEndInitIndex = EndInit.GetOutPort( 'Index' ) - OEndInitMin = EndInit.GetOutPort( 'Min' ) - OEndInitMax = EndInit.GetOutPort( 'Max' ) - OEndInitIncr = EndInit.GetOutPort( 'Incr' ) - OEndInitGate = EndInit.GetOutPort( 'Gate' ) - Init.SetName( 'Init' ) - Init.SetAuthor( '' ) - Init.SetComment( 'Compute Node' ) - Init.Coords( 17 , 257 ) - - # Creation of Links - LInitIndexEndInitIndex = GraphLoopMemory_1.Link( OInitIndex , IEndInitIndex ) - - LInitMinEndInitMin = GraphLoopMemory_1.Link( OInitMin , IEndInitMin ) - - LInitMaxEndInitMax = GraphLoopMemory_1.Link( OInitMax , IEndInitMax ) - - LInitIncrEndInitIncr = GraphLoopMemory_1.Link( OInitIncr , IEndInitIncr ) - - # Input datas - IInitIndex.Input( 0 ) - IInitMin.Input( 5 ) - IInitMax.Input( 100000 ) - IInitIncr.Input( 1 ) - - # Output Ports of the graph - #OEndInitIndex = EndInit.GetOutPort( 'Index' ) - #OEndInitMin = EndInit.GetOutPort( 'Min' ) - #OEndInitMax = EndInit.GetOutPort( 'Max' ) - #OEndInitIncr = EndInit.GetOutPort( 'Incr' ) - return GraphLoopMemory_1 - - -GraphLoopMemory_1 = DefGraphLoopMemory_1() diff --git a/Superv/Python/GraphLoopPyAddAddMemory.py b/Superv/Python/GraphLoopPyAddAddMemory.py deleted file mode 100644 index 7cbc7d7..0000000 --- a/Superv/Python/GraphLoopPyAddAddMemory.py +++ /dev/null @@ -1,156 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphLoopPyAddAddMemory -# -from SuperV import * - -# Graph creation of GraphLoopPyAddAddMemory -def DefGraphLoopPyAddAddMemory() : - GraphLoopPyAddAddMemory = Graph( 'GraphLoopPyAddAddMemory' ) - GraphLoopPyAddAddMemory.SetName( 'GraphLoopPyAddAddMemory' ) - GraphLoopPyAddAddMemory.SetAuthor( 'JR' ) - GraphLoopPyAddAddMemory.SetComment( 'For solving of memory leaks' ) - GraphLoopPyAddAddMemory.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - AddWithoutSleep = GraphLoopPyAddAddMemory.FNode( 'AddComponent' , 'AddComponent' , 'AddWithoutSleep' ) - AddWithoutSleep.SetName( 'AddWithoutSleep' ) - AddWithoutSleep.SetAuthor( '' ) - AddWithoutSleep.SetContainer( 'localhost/FactoryServer' ) - AddWithoutSleep.SetComment( 'AddWithoutSleep from AddComponent' ) - AddWithoutSleep.Coords( 255 , 352 ) - IAddWithoutSleepx = AddWithoutSleep.GetInPort( 'x' ) - IAddWithoutSleepy = AddWithoutSleep.GetInPort( 'y' ) - IAddWithoutSleepGate = AddWithoutSleep.GetInPort( 'Gate' ) - OAddWithoutSleepFuncValue = AddWithoutSleep.GetOutPort( 'FuncValue' ) - OAddWithoutSleepz = AddWithoutSleep.GetOutPort( 'z' ) - OAddWithoutSleepGate = AddWithoutSleep.GetOutPort( 'Gate' ) - - # Creation of InLine Nodes - PyPyAdd = [] - PyPyAdd.append( 'def PyAdd(a,b) : ' ) - PyPyAdd.append( ' return a,a+b ' ) - PyAdd = GraphLoopPyAddAddMemory.INode( 'PyAdd' , PyPyAdd ) - PyAdd.SetName( 'PyAdd' ) - PyAdd.SetAuthor( '' ) - PyAdd.SetComment( 'Compute Node' ) - PyAdd.Coords( 266 , 188 ) - IPyAdda = PyAdd.InPort( 'a' , 'long' ) - IPyAddb = PyAdd.InPort( 'b' , 'long' ) - IPyAddGate = PyAdd.GetInPort( 'Gate' ) - OPyAdda = PyAdd.OutPort( 'a' , 'long' ) - OPyAddc = PyAdd.OutPort( 'c' , 'long' ) - OPyAddGate = PyAdd.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyInit = [] - PyInit.append( 'def Init(Index,Min,Max,Incr) : ' ) - PyInit.append( ' if Min <= Max : ' ) - PyInit.append( ' Index = Min ' ) - PyInit.append( ' else : ' ) - PyInit.append( ' Index = Max ' ) - PyInit.append( ' return Index,Min,Max,Incr ' ) - PyMoreInit = [] - PyMoreInit.append( 'def More(Index,Min,Max,Incr) : ' ) - PyMoreInit.append( ' if Index < Max : ' ) - PyMoreInit.append( ' DoLoop = 1 ' ) - PyMoreInit.append( ' else : ' ) - PyMoreInit.append( ' DoLoop = 0 ' ) - PyMoreInit.append( ' return DoLoop,Index,Min,Max,Incr ' ) - PyNextInit = [] - PyNextInit.append( 'def Next(Index,Min,Max,Incr) : ' ) - PyNextInit.append( ' Index = Index + Incr ' ) - PyNextInit.append( ' return Index,Min,Max,Incr ' ) - Init,EndInit = GraphLoopPyAddAddMemory.LNode( 'Init' , PyInit , 'More' , PyMoreInit , 'Next' , PyNextInit ) - EndInit.SetName( 'EndInit' ) - EndInit.SetAuthor( '' ) - EndInit.SetComment( 'Compute Node' ) - EndInit.Coords( 495 , 262 ) - PyEndInit = [] - EndInit.SetPyFunction( '' , PyEndInit ) - IInitDoLoop = Init.GetInPort( 'DoLoop' ) - IInitIndex = Init.InPort( 'Index' , 'long' ) - IInitMin = Init.InPort( 'Min' , 'long' ) - IInitMax = Init.InPort( 'Max' , 'long' ) - IInitIncr = Init.InPort( 'Incr' , 'long' ) - IInitGate = Init.GetInPort( 'Gate' ) - OInitDoLoop = Init.GetOutPort( 'DoLoop' ) - OInitIndex = Init.GetOutPort( 'Index' ) - OInitMin = Init.GetOutPort( 'Min' ) - OInitMax = Init.GetOutPort( 'Max' ) - OInitIncr = Init.GetOutPort( 'Incr' ) - IEndInitDoLoop = EndInit.GetInPort( 'DoLoop' ) - IEndInitIndex = EndInit.GetInPort( 'Index' ) - IEndInitMin = EndInit.GetInPort( 'Min' ) - IEndInitMax = EndInit.GetInPort( 'Max' ) - IEndInitIncr = EndInit.GetInPort( 'Incr' ) - IEndInitGate = EndInit.GetInPort( 'Gate' ) - OEndInitDoLoop = EndInit.GetOutPort( 'DoLoop' ) - OEndInitIndex = EndInit.GetOutPort( 'Index' ) - OEndInitMin = EndInit.GetOutPort( 'Min' ) - OEndInitMax = EndInit.GetOutPort( 'Max' ) - OEndInitIncr = EndInit.GetOutPort( 'Incr' ) - OEndInitGate = EndInit.GetOutPort( 'Gate' ) - Init.SetName( 'Init' ) - Init.SetAuthor( '' ) - Init.SetComment( 'Compute Node' ) - Init.Coords( 17 , 257 ) - - # Creation of Links - LInitIndexAddWithoutSleepx = GraphLoopPyAddAddMemory.Link( OInitIndex , IAddWithoutSleepx ) - - LInitIndexPyAdda = GraphLoopPyAddAddMemory.Link( OInitIndex , IPyAdda ) - - LInitMinEndInitMin = GraphLoopPyAddAddMemory.Link( OInitMin , IEndInitMin ) - - LInitMaxEndInitMax = GraphLoopPyAddAddMemory.Link( OInitMax , IEndInitMax ) - - LInitMaxAddWithoutSleepy = GraphLoopPyAddAddMemory.Link( OInitMax , IAddWithoutSleepy ) - - LInitMaxPyAddb = GraphLoopPyAddAddMemory.Link( OInitMax , IPyAddb ) - - LInitIncrEndInitIncr = GraphLoopPyAddAddMemory.Link( OInitIncr , IEndInitIncr ) - - LAddWithoutSleepGateEndInitGate = GraphLoopPyAddAddMemory.Link( OAddWithoutSleepGate , IEndInitGate ) - - LPyAddaEndInitIndex = GraphLoopPyAddAddMemory.Link( OPyAdda , IEndInitIndex ) - - # Input datas - IInitIndex.Input( 0 ) - IInitMin.Input( 5 ) - IInitMax.Input( 100000 ) - IInitIncr.Input( 1 ) - - # Output Ports of the graph - #OEndInitIndex = EndInit.GetOutPort( 'Index' ) - #OEndInitMin = EndInit.GetOutPort( 'Min' ) - #OEndInitMax = EndInit.GetOutPort( 'Max' ) - #OEndInitIncr = EndInit.GetOutPort( 'Incr' ) - #OAddWithoutSleepFuncValue = AddWithoutSleep.GetOutPort( 'FuncValue' ) - #OAddWithoutSleepz = AddWithoutSleep.GetOutPort( 'z' ) - #OPyAddc = PyAdd.GetOutPort( 'c' ) - return GraphLoopPyAddAddMemory - - -GraphLoopPyAddAddMemory = DefGraphLoopPyAddAddMemory() diff --git a/Superv/Python/GraphLoopSwitch.py b/Superv/Python/GraphLoopSwitch.py deleted file mode 100755 index 369f5c2..0000000 --- a/Superv/Python/GraphLoopSwitch.py +++ /dev/null @@ -1,184 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphLoopSwitch -# -from SuperV import * - -# Graph creation of GraphLoopSwitch -def DefGraphLoopSwitch() : - GraphLoopSwitch = Graph( 'GraphLoopSwitch' ) - GraphLoopSwitch.SetName( 'GraphLoopSwitch' ) - GraphLoopSwitch.SetAuthor( 'JR' ) - GraphLoopSwitch.SetComment( '' ) - GraphLoopSwitch.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 (GraphLoopSwitch1)" ' ) - PyIsOdd.append( ' sleep( 1 ) ' ) - PyIsOdd.append( ' return a ' ) - IsOdd = GraphLoopSwitch.INode( 'IsOdd' , PyIsOdd ) - IsOdd.SetName( 'IsOdd' ) - IsOdd.SetAuthor( '' ) - IsOdd.SetComment( 'Python function' ) - IsOdd.Coords( 397 , 1 ) - IIsOdda = IsOdd.InPort( 'a' , 'long' ) - IIsOddGate = IsOdd.GetInPort( 'Gate' ) - OIsOdda = IsOdd.OutPort( 'a' , 'long' ) - OIsOddGate = IsOdd.GetOutPort( 'Gate' ) - - PyValEven = [] - PyValEven.append( 'from time import * ' ) - PyValEven.append( 'def ValEven(Even) : ' ) - PyValEven.append( ' sleep(1) ' ) - PyValEven.append( ' return Even ' ) - PyValEven.append( '' ) - ValEven = GraphLoopSwitch.INode( 'ValEven' , PyValEven ) - ValEven.SetName( 'ValEven' ) - ValEven.SetAuthor( '' ) - ValEven.SetComment( 'Compute Node' ) - ValEven.Coords( 396 , 222 ) - IValEvenEven = ValEven.InPort( 'Even' , 'long' ) - IValEvenGate = ValEven.GetInPort( 'Gate' ) - OValEvenEven = ValEven.OutPort( 'Even' , 'long' ) - OValEvenGate = ValEven.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyInitLoop = [] - PyInitLoop.append( 'def InitLoop(Index,Min,Max) : ' ) - PyInitLoop.append( ' Index = Min ' ) - PyInitLoop.append( ' return Index,Min,Max ' ) - PyInitLoop.append( '' ) - PyMoreInitLoop = [] - PyMoreInitLoop.append( '' ) - PyNextInitLoop = [] - PyNextInitLoop.append( '' ) - InitLoop,EndOfInitLoop = GraphLoopSwitch.LNode( 'InitLoop' , PyInitLoop , '' , PyMoreInitLoop , '' , PyNextInitLoop ) - EndOfInitLoop.SetName( 'EndOfInitLoop' ) - EndOfInitLoop.SetAuthor( '' ) - EndOfInitLoop.SetComment( 'Compute Node' ) - EndOfInitLoop.Coords( 767 , 102 ) - PyEndOfInitLoop = [] - PyEndOfInitLoop.append( 'def EndOfInitLoop( DoLoop , Index , Min , Max ) :' ) - PyEndOfInitLoop.append( ' Index = Index + 1 ' ) - PyEndOfInitLoop.append( ' if Index <= Max : ' ) - PyEndOfInitLoop.append( ' DoLoop = 1 ' ) - PyEndOfInitLoop.append( ' else : ' ) - PyEndOfInitLoop.append( ' DoLoop = 0 ' ) - PyEndOfInitLoop.append( ' return DoLoop,Index,Min,Max ' ) - EndOfInitLoop.SetPyFunction( 'EndOfInitLoop' , PyEndOfInitLoop ) - IInitLoopDoLoop = InitLoop.GetInPort( 'DoLoop' ) - IInitLoopIndex = InitLoop.InPort( 'Index' , 'long' ) - IInitLoopMin = InitLoop.InPort( 'Min' , 'long' ) - IInitLoopMax = InitLoop.InPort( 'Max' , 'long' ) - IInitLoopGate = InitLoop.GetInPort( 'Gate' ) - OInitLoopDoLoop = InitLoop.GetOutPort( 'DoLoop' ) - OInitLoopIndex = InitLoop.GetOutPort( 'Index' ) - OInitLoopMin = InitLoop.GetOutPort( 'Min' ) - OInitLoopMax = InitLoop.GetOutPort( 'Max' ) - IEndOfInitLoopDoLoop = EndOfInitLoop.GetInPort( 'DoLoop' ) - IEndOfInitLoopIndex = EndOfInitLoop.GetInPort( 'Index' ) - IEndOfInitLoopMin = EndOfInitLoop.GetInPort( 'Min' ) - IEndOfInitLoopMax = EndOfInitLoop.GetInPort( 'Max' ) - IEndOfInitLoopGate = EndOfInitLoop.GetInPort( 'Gate' ) - OEndOfInitLoopDoLoop = EndOfInitLoop.GetOutPort( 'DoLoop' ) - OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) - OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) - OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) - OEndOfInitLoopGate = EndOfInitLoop.GetOutPort( 'Gate' ) - InitLoop.SetName( 'InitLoop' ) - InitLoop.SetAuthor( '' ) - InitLoop.SetComment( 'Compute Node' ) - InitLoop.Coords( 10 , 108 ) - - # Creation of Switch Nodes - PySwitch = [] - PySwitch.append( 'from time import * ' ) - PySwitch.append( 'def Switch(a) : ' ) - PySwitch.append( ' if ( a & 1 ) == 0 : ' ) - PySwitch.append( ' sleep(1) ' ) - PySwitch.append( ' return a & 1,1-(a&1),a ' ) - Switch,EndSwitch = GraphLoopSwitch.SNode( 'Switch' , PySwitch ) - EndSwitch.SetName( 'EndSwitch' ) - EndSwitch.SetAuthor( '' ) - EndSwitch.SetComment( 'Compute Node' ) - EndSwitch.Coords( 587 , 103 ) - PyEndSwitch = [] - PyEndSwitch.append( 'def EndSwitch(a,Even) : ' ) - PyEndSwitch.append( ' sleep(1) ' ) - PyEndSwitch.append( ' return a ' ) - EndSwitch.SetPyFunction( 'EndSwitch' , PyEndSwitch ) - IEndSwitcha = EndSwitch.InPort( 'a' , 'long' ) - IEndSwitchEven = EndSwitch.InPort( 'Even' , 'long' ) - IEndSwitchDefault = EndSwitch.GetInPort( 'Default' ) - OEndSwitcha = EndSwitch.OutPort( 'a' , 'long' ) - OEndSwitchGate = EndSwitch.GetOutPort( 'Gate' ) - Switch.SetName( 'Switch' ) - Switch.SetAuthor( '' ) - Switch.SetComment( 'Compute Node' ) - Switch.Coords( 194 , 109 ) - ISwitcha = Switch.InPort( 'a' , 'long' ) - ISwitchGate = Switch.GetInPort( 'Gate' ) - OSwitchOdd = Switch.OutPort( 'Odd' , 'long' ) - OSwitchEven = Switch.OutPort( 'Even' , 'int' ) - OSwitcha = Switch.OutPort( 'a' , 'int' ) - OSwitchDefault = Switch.GetOutPort( 'Default' ) - - # Creation of Links - LIsOddaEndSwitcha = GraphLoopSwitch.Link( OIsOdda , IEndSwitcha ) - - LInitLoopIndexSwitcha = GraphLoopSwitch.Link( OInitLoopIndex , ISwitcha ) - - LInitLoopMinEndOfInitLoopMin = GraphLoopSwitch.Link( OInitLoopMin , IEndOfInitLoopMin ) - - LInitLoopMaxEndOfInitLoopMax = GraphLoopSwitch.Link( OInitLoopMax , IEndOfInitLoopMax ) - - LSwitchOddIsOddGate = GraphLoopSwitch.Link( OSwitchOdd , IIsOddGate ) - - LSwitchEvenValEvenEven = GraphLoopSwitch.Link( OSwitchEven , IValEvenEven ) - - LSwitchaIsOdda = GraphLoopSwitch.Link( OSwitcha , IIsOdda ) - - LSwitchDefaultEndSwitchDefault = GraphLoopSwitch.Link( OSwitchDefault , IEndSwitchDefault ) - - LEndSwitchaEndOfInitLoopIndex = GraphLoopSwitch.Link( OEndSwitcha , IEndOfInitLoopIndex ) - - LValEvenEvenEndSwitchEven = GraphLoopSwitch.Link( OValEvenEven , IEndSwitchEven ) - - # Input datas - IInitLoopIndex.Input( 0 ) - IInitLoopMin.Input( 5 ) - IInitLoopMax.Input( 23 ) - - # Output Ports of the graph - #OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) - #OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) - #OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) - return GraphLoopSwitch - - -GraphLoopSwitch = DefGraphLoopSwitch() diff --git a/Superv/Python/GraphLoopSwitchDefault.py b/Superv/Python/GraphLoopSwitchDefault.py deleted file mode 100644 index 3b629c4..0000000 --- a/Superv/Python/GraphLoopSwitchDefault.py +++ /dev/null @@ -1,165 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphLoopSwitchDefault -# -from SuperV import * - -# Graph creation of GraphLoopSwitchDefault -def DefGraphLoopSwitchDefault() : - GraphLoopSwitchDefault = Graph( 'GraphLoopSwitchDefault' ) - GraphLoopSwitchDefault.SetName( 'GraphLoopSwitchDefault' ) - GraphLoopSwitchDefault.SetAuthor( 'JR' ) - GraphLoopSwitchDefault.SetComment( '' ) - GraphLoopSwitchDefault.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 (GraphLoopSwitch1)" ' ) - PyIsOdd.append( ' sleep( 1 ) ' ) - PyIsOdd.append( ' return a ' ) - IsOdd = GraphLoopSwitchDefault.INode( 'IsOdd' , PyIsOdd ) - IsOdd.SetName( 'IsOdd' ) - IsOdd.SetAuthor( '' ) - IsOdd.SetComment( 'Python function' ) - IsOdd.Coords( 397 , 1 ) - IIsOdda = IsOdd.InPort( 'a' , 'long' ) - IIsOddGate = IsOdd.GetInPort( 'Gate' ) - OIsOdda = IsOdd.OutPort( 'a' , 'long' ) - OIsOddGate = IsOdd.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyInitLoop = [] - PyInitLoop.append( 'def InitLoop(Index,Min,Max) : ' ) - PyInitLoop.append( ' Index = Min ' ) - PyInitLoop.append( ' return Index,Min,Max ' ) - PyInitLoop.append( '' ) - PyMoreInitLoop = [] - PyMoreInitLoop.append( '' ) - PyNextInitLoop = [] - PyNextInitLoop.append( '' ) - InitLoop,EndOfInitLoop = GraphLoopSwitchDefault.LNode( 'InitLoop' , PyInitLoop , '' , PyMoreInitLoop , '' , PyNextInitLoop ) - EndOfInitLoop.SetName( 'EndOfInitLoop' ) - EndOfInitLoop.SetAuthor( '' ) - EndOfInitLoop.SetComment( 'Compute Node' ) - EndOfInitLoop.Coords( 767 , 102 ) - PyEndOfInitLoop = [] - PyEndOfInitLoop.append( 'def EndOfInitLoop( DoLoop , Index , Min , Max ) :' ) - PyEndOfInitLoop.append( ' Index = Index + 1 ' ) - PyEndOfInitLoop.append( ' if Index <= Max : ' ) - PyEndOfInitLoop.append( ' DoLoop = 1 ' ) - PyEndOfInitLoop.append( ' else : ' ) - PyEndOfInitLoop.append( ' DoLoop = 0 ' ) - PyEndOfInitLoop.append( ' return DoLoop,Index,Min,Max ' ) - EndOfInitLoop.SetPyFunction( 'EndOfInitLoop' , PyEndOfInitLoop ) - IInitLoopDoLoop = InitLoop.GetInPort( 'DoLoop' ) - IInitLoopIndex = InitLoop.InPort( 'Index' , 'long' ) - IInitLoopMin = InitLoop.InPort( 'Min' , 'long' ) - IInitLoopMax = InitLoop.InPort( 'Max' , 'long' ) - IInitLoopGate = InitLoop.GetInPort( 'Gate' ) - OInitLoopDoLoop = InitLoop.GetOutPort( 'DoLoop' ) - OInitLoopIndex = InitLoop.GetOutPort( 'Index' ) - OInitLoopMin = InitLoop.GetOutPort( 'Min' ) - OInitLoopMax = InitLoop.GetOutPort( 'Max' ) - IEndOfInitLoopDoLoop = EndOfInitLoop.GetInPort( 'DoLoop' ) - IEndOfInitLoopIndex = EndOfInitLoop.GetInPort( 'Index' ) - IEndOfInitLoopMin = EndOfInitLoop.GetInPort( 'Min' ) - IEndOfInitLoopMax = EndOfInitLoop.GetInPort( 'Max' ) - IEndOfInitLoopGate = EndOfInitLoop.GetInPort( 'Gate' ) - OEndOfInitLoopDoLoop = EndOfInitLoop.GetOutPort( 'DoLoop' ) - OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) - OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) - OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) - OEndOfInitLoopGate = EndOfInitLoop.GetOutPort( 'Gate' ) - InitLoop.SetName( 'InitLoop' ) - InitLoop.SetAuthor( '' ) - InitLoop.SetComment( 'Compute Node' ) - InitLoop.Coords( 10 , 108 ) - - # Creation of Switch Nodes - PySwitch = [] - PySwitch.append( 'from time import * ' ) - PySwitch.append( 'def Switch(a) : ' ) - PySwitch.append( ' if ( a & 1 ) == 0 : ' ) - PySwitch.append( ' sleep(1) ' ) - PySwitch.append( ' return a & 1,1-(a&1),a ' ) - Switch,EndSwitch = GraphLoopSwitchDefault.SNode( 'Switch' , PySwitch ) - EndSwitch.SetName( 'EndSwitch' ) - EndSwitch.SetAuthor( '' ) - EndSwitch.SetComment( 'Compute Node' ) - EndSwitch.Coords( 587 , 103 ) - PyEndSwitch = [] - PyEndSwitch.append( 'def EndSwitch(a) : ' ) - PyEndSwitch.append( ' if ( a & 1 ) == 0 : ' ) - PyEndSwitch.append( ' sleep(1) ' ) - PyEndSwitch.append( ' return a ' ) - EndSwitch.SetPyFunction( 'EndSwitch' , PyEndSwitch ) - IEndSwitcha = EndSwitch.InPort( 'a' , 'long' ) - IEndSwitchDefault = EndSwitch.GetInPort( 'Default' ) - OEndSwitcha = EndSwitch.OutPort( 'a' , 'long' ) - OEndSwitchGate = EndSwitch.GetOutPort( 'Gate' ) - Switch.SetName( 'Switch' ) - Switch.SetAuthor( '' ) - Switch.SetComment( 'Compute Node' ) - Switch.Coords( 194 , 109 ) - ISwitcha = Switch.InPort( 'a' , 'long' ) - ISwitchGate = Switch.GetInPort( 'Gate' ) - OSwitchOdd = Switch.OutPort( 'Odd' , 'long' ) - OSwitchEven = Switch.OutPort( 'Even' , 'int' ) - OSwitcha = Switch.OutPort( 'a' , 'int' ) - OSwitchDefault = Switch.GetOutPort( 'Default' ) - - # Creation of Links - LIsOddaEndSwitcha = GraphLoopSwitchDefault.Link( OIsOdda , IEndSwitcha ) - - LInitLoopIndexSwitcha = GraphLoopSwitchDefault.Link( OInitLoopIndex , ISwitcha ) - - LInitLoopMinEndOfInitLoopMin = GraphLoopSwitchDefault.Link( OInitLoopMin , IEndOfInitLoopMin ) - - LInitLoopMaxEndOfInitLoopMax = GraphLoopSwitchDefault.Link( OInitLoopMax , IEndOfInitLoopMax ) - - LSwitchOddIsOddGate = GraphLoopSwitchDefault.Link( OSwitchOdd , IIsOddGate ) - - LSwitchaIsOdda = GraphLoopSwitchDefault.Link( OSwitcha , IIsOdda ) - - LSwitchDefaultEndSwitchDefault = GraphLoopSwitchDefault.Link( OSwitchDefault , IEndSwitchDefault ) - - LEndSwitchaEndOfInitLoopIndex = GraphLoopSwitchDefault.Link( OEndSwitcha , IEndOfInitLoopIndex ) - - # Input datas - IInitLoopIndex.Input( 0 ) - IInitLoopMin.Input( 5 ) - IInitLoopMax.Input( 23 ) - - # Output Ports of the graph - #OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) - #OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) - #OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) - #OSwitchEven = Switch.GetOutPort( 'Even' ) - return GraphLoopSwitchDefault - - -GraphLoopSwitchDefault = DefGraphLoopSwitchDefault() diff --git a/Superv/Python/GraphLoopSwitchDefaultAborted.py b/Superv/Python/GraphLoopSwitchDefaultAborted.py deleted file mode 100644 index dd35374..0000000 --- a/Superv/Python/GraphLoopSwitchDefaultAborted.py +++ /dev/null @@ -1,182 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphLoopSwitchDefaultAborted -# -from SuperV import * - -# Graph creation of GraphLoopSwitchDefaultAborted -def DefGraphLoopSwitchDefaultAborted() : - GraphLoopSwitchDefaultAborted = Graph( 'GraphLoopSwitchDefaultAborted' ) - GraphLoopSwitchDefaultAborted.SetName( 'GraphLoopSwitchDefaultAborted' ) - GraphLoopSwitchDefaultAborted.SetAuthor( 'JR' ) - GraphLoopSwitchDefaultAborted.SetComment( 'Default Ports are not connected and the Executor will detect a Default condition ==> ABORT' ) - GraphLoopSwitchDefaultAborted.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 (GraphLoopSwitch1)" ' ) - PyIsOdd.append( ' sleep( 1 ) ' ) - PyIsOdd.append( ' return a ' ) - IsOdd = GraphLoopSwitchDefaultAborted.INode( 'IsOdd' , PyIsOdd ) - IsOdd.SetName( 'IsOdd' ) - IsOdd.SetAuthor( '' ) - IsOdd.SetComment( 'Python function' ) - IsOdd.Coords( 397 , 1 ) - IIsOdda = IsOdd.InPort( 'a' , 'long' ) - IIsOddGate = IsOdd.GetInPort( 'Gate' ) - OIsOdda = IsOdd.OutPort( 'a' , 'long' ) - OIsOddGate = IsOdd.GetOutPort( 'Gate' ) - - PyVala = [] - PyVala.append( 'from time import * ' ) - PyVala.append( 'def ValEven(Even) : ' ) - PyVala.append( ' sleep(1) ' ) - PyVala.append( ' return Even ' ) - PyVala.append( '' ) - Vala = GraphLoopSwitchDefaultAborted.INode( 'ValEven' , PyVala ) - Vala.SetName( 'Vala' ) - Vala.SetAuthor( '' ) - Vala.SetComment( 'Compute Node' ) - Vala.Coords( 394 , 137 ) - IValaEven = Vala.InPort( 'Even' , 'long' ) - IValaGate = Vala.GetInPort( 'Gate' ) - OValaEven = Vala.OutPort( 'Even' , 'long' ) - OValaGate = Vala.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyInitLoop = [] - PyInitLoop.append( 'def InitLoop(Index,Min,Max) : ' ) - PyInitLoop.append( ' Index = Min ' ) - PyInitLoop.append( ' return Index,Min,Max ' ) - PyInitLoop.append( '' ) - PyMoreInitLoop = [] - PyMoreInitLoop.append( '' ) - PyNextInitLoop = [] - PyNextInitLoop.append( '' ) - InitLoop,EndOfInitLoop = GraphLoopSwitchDefaultAborted.LNode( 'InitLoop' , PyInitLoop , '' , PyMoreInitLoop , '' , PyNextInitLoop ) - EndOfInitLoop.SetName( 'EndOfInitLoop' ) - EndOfInitLoop.SetAuthor( '' ) - EndOfInitLoop.SetComment( 'Compute Node' ) - EndOfInitLoop.Coords( 767 , 102 ) - PyEndOfInitLoop = [] - PyEndOfInitLoop.append( 'def EndOfInitLoop( DoLoop , Index , Min , Max ) :' ) - PyEndOfInitLoop.append( ' Index = Index + 1 ' ) - PyEndOfInitLoop.append( ' if Index <= Max : ' ) - PyEndOfInitLoop.append( ' DoLoop = 1 ' ) - PyEndOfInitLoop.append( ' else : ' ) - PyEndOfInitLoop.append( ' DoLoop = 0 ' ) - PyEndOfInitLoop.append( ' return DoLoop,Index,Min,Max ' ) - EndOfInitLoop.SetPyFunction( 'EndOfInitLoop' , PyEndOfInitLoop ) - IInitLoopDoLoop = InitLoop.GetInPort( 'DoLoop' ) - IInitLoopIndex = InitLoop.InPort( 'Index' , 'long' ) - IInitLoopMin = InitLoop.InPort( 'Min' , 'long' ) - IInitLoopMax = InitLoop.InPort( 'Max' , 'long' ) - IInitLoopGate = InitLoop.GetInPort( 'Gate' ) - OInitLoopDoLoop = InitLoop.GetOutPort( 'DoLoop' ) - OInitLoopIndex = InitLoop.GetOutPort( 'Index' ) - OInitLoopMin = InitLoop.GetOutPort( 'Min' ) - OInitLoopMax = InitLoop.GetOutPort( 'Max' ) - IEndOfInitLoopDoLoop = EndOfInitLoop.GetInPort( 'DoLoop' ) - IEndOfInitLoopIndex = EndOfInitLoop.GetInPort( 'Index' ) - IEndOfInitLoopMin = EndOfInitLoop.GetInPort( 'Min' ) - IEndOfInitLoopMax = EndOfInitLoop.GetInPort( 'Max' ) - IEndOfInitLoopGate = EndOfInitLoop.GetInPort( 'Gate' ) - OEndOfInitLoopDoLoop = EndOfInitLoop.GetOutPort( 'DoLoop' ) - OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) - OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) - OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) - OEndOfInitLoopGate = EndOfInitLoop.GetOutPort( 'Gate' ) - InitLoop.SetName( 'InitLoop' ) - InitLoop.SetAuthor( '' ) - InitLoop.SetComment( 'Compute Node' ) - InitLoop.Coords( 10 , 108 ) - - # Creation of Switch Nodes - PySwitch = [] - PySwitch.append( 'from time import * ' ) - PySwitch.append( 'def Switch(a) : ' ) - PySwitch.append( ' if ( a & 1 ) == 0 : ' ) - PySwitch.append( ' sleep(1) ' ) - PySwitch.append( ' return a & 1,1-(a&1),a ' ) - Switch,EndSwitch = GraphLoopSwitchDefaultAborted.SNode( 'Switch' , PySwitch ) - EndSwitch.SetName( 'EndSwitch' ) - EndSwitch.SetAuthor( '' ) - EndSwitch.SetComment( 'Compute Node' ) - EndSwitch.Coords( 587 , 103 ) - PyEndSwitch = [] - PyEndSwitch.append( 'def EndSwitch(a,Even) : ' ) - PyEndSwitch.append( ' sleep(1) ' ) - PyEndSwitch.append( ' return a ' ) - EndSwitch.SetPyFunction( 'EndSwitch' , PyEndSwitch ) - IEndSwitcha = EndSwitch.InPort( 'a' , 'long' ) - IEndSwitchEven = EndSwitch.InPort( 'Even' , 'long' ) - IEndSwitchDefault = EndSwitch.GetInPort( 'Default' ) - OEndSwitcha = EndSwitch.OutPort( 'a' , 'long' ) - OEndSwitchGate = EndSwitch.GetOutPort( 'Gate' ) - Switch.SetName( 'Switch' ) - Switch.SetAuthor( '' ) - Switch.SetComment( 'Compute Node' ) - Switch.Coords( 194 , 109 ) - ISwitcha = Switch.InPort( 'a' , 'long' ) - ISwitchGate = Switch.GetInPort( 'Gate' ) - OSwitchOdd = Switch.OutPort( 'Odd' , 'long' ) - OSwitchEven = Switch.OutPort( 'Even' , 'int' ) - OSwitcha = Switch.OutPort( 'a' , 'int' ) - OSwitchDefault = Switch.GetOutPort( 'Default' ) - - # Creation of Links - LIsOddaEndSwitcha = GraphLoopSwitchDefaultAborted.Link( OIsOdda , IEndSwitcha ) - - LInitLoopIndexSwitcha = GraphLoopSwitchDefaultAborted.Link( OInitLoopIndex , ISwitcha ) - - LInitLoopMinEndOfInitLoopMin = GraphLoopSwitchDefaultAborted.Link( OInitLoopMin , IEndOfInitLoopMin ) - - LInitLoopMaxEndOfInitLoopMax = GraphLoopSwitchDefaultAborted.Link( OInitLoopMax , IEndOfInitLoopMax ) - - LSwitchOddIsOddGate = GraphLoopSwitchDefaultAborted.Link( OSwitchOdd , IIsOddGate ) - - LSwitchEvenValaEven = GraphLoopSwitchDefaultAborted.Link( OSwitchEven , IValaEven ) - - LSwitchaIsOdda = GraphLoopSwitchDefaultAborted.Link( OSwitcha , IIsOdda ) - - LEndSwitchaEndOfInitLoopIndex = GraphLoopSwitchDefaultAborted.Link( OEndSwitcha , IEndOfInitLoopIndex ) - - LValaEvenEndSwitchEven = GraphLoopSwitchDefaultAborted.Link( OValaEven , IEndSwitchEven ) - - # Input datas - IInitLoopIndex.Input( 0 ) - IInitLoopMin.Input( 5 ) - IInitLoopMax.Input( 23 ) - - # Output Ports of the graph - #OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) - #OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) - #OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) - return GraphLoopSwitchDefaultAborted - - -GraphLoopSwitchDefaultAborted = DefGraphLoopSwitchDefaultAborted() diff --git a/Superv/Python/GraphLoopSwitchGateDefault.py b/Superv/Python/GraphLoopSwitchGateDefault.py deleted file mode 100644 index aa62014..0000000 --- a/Superv/Python/GraphLoopSwitchGateDefault.py +++ /dev/null @@ -1,186 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphLoopSwitchGateDefault -# -from SuperV import * - -# Graph creation of GraphLoopSwitchGateDefault -def DefGraphLoopSwitchGateDefault() : - GraphLoopSwitchGateDefault = Graph( 'GraphLoopSwitchGateDefault' ) - GraphLoopSwitchGateDefault.SetName( 'GraphLoopSwitchGateDefault' ) - GraphLoopSwitchGateDefault.SetAuthor( 'JR' ) - GraphLoopSwitchGateDefault.SetComment( '' ) - GraphLoopSwitchGateDefault.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 (GraphLoopSwitch1)" ' ) - PyIsOdd.append( ' sleep( 1 ) ' ) - PyIsOdd.append( ' return a ' ) - IsOdd = GraphLoopSwitchGateDefault.INode( 'IsOdd' , PyIsOdd ) - IsOdd.SetName( 'IsOdd' ) - IsOdd.SetAuthor( '' ) - IsOdd.SetComment( 'Python function' ) - IsOdd.Coords( 397 , 1 ) - IIsOdda = IsOdd.InPort( 'a' , 'long' ) - IIsOddGate = IsOdd.GetInPort( 'Gate' ) - OIsOdda = IsOdd.OutPort( 'a' , 'long' ) - OIsOddGate = IsOdd.GetOutPort( 'Gate' ) - - PyValEven = [] - PyValEven.append( 'from time import * ' ) - PyValEven.append( 'def ValEven(Even) : ' ) - PyValEven.append( ' sleep(1) ' ) - PyValEven.append( ' return Even ' ) - PyValEven.append( '' ) - ValEven = GraphLoopSwitchGateDefault.INode( 'ValEven' , PyValEven ) - ValEven.SetName( 'ValEven' ) - ValEven.SetAuthor( '' ) - ValEven.SetComment( 'Compute Node' ) - ValEven.Coords( 396 , 222 ) - IValEvenEven = ValEven.InPort( 'Even' , 'long' ) - IValEvenGate = ValEven.GetInPort( 'Gate' ) - OValEvenEven = ValEven.OutPort( 'Even' , 'long' ) - OValEvenGate = ValEven.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyInitLoop = [] - PyInitLoop.append( 'def InitLoop(Index,Min,Max) : ' ) - PyInitLoop.append( ' Index = Min ' ) - PyInitLoop.append( ' return Index,Min,Max ' ) - PyInitLoop.append( '' ) - PyMoreInitLoop = [] - PyMoreInitLoop.append( '' ) - PyNextInitLoop = [] - PyNextInitLoop.append( '' ) - InitLoop,EndOfInitLoop = GraphLoopSwitchGateDefault.LNode( 'InitLoop' , PyInitLoop , '' , PyMoreInitLoop , '' , PyNextInitLoop ) - EndOfInitLoop.SetName( 'EndOfInitLoop' ) - EndOfInitLoop.SetAuthor( '' ) - EndOfInitLoop.SetComment( 'Compute Node' ) - EndOfInitLoop.Coords( 767 , 102 ) - PyEndOfInitLoop = [] - PyEndOfInitLoop.append( 'def EndOfInitLoop( DoLoop , Index , Min , Max ) :' ) - PyEndOfInitLoop.append( ' Index = Index + 1 ' ) - PyEndOfInitLoop.append( ' if Index <= Max : ' ) - PyEndOfInitLoop.append( ' DoLoop = 1 ' ) - PyEndOfInitLoop.append( ' else : ' ) - PyEndOfInitLoop.append( ' DoLoop = 0 ' ) - PyEndOfInitLoop.append( ' return DoLoop,Index,Min,Max ' ) - EndOfInitLoop.SetPyFunction( 'EndOfInitLoop' , PyEndOfInitLoop ) - IInitLoopDoLoop = InitLoop.GetInPort( 'DoLoop' ) - IInitLoopIndex = InitLoop.InPort( 'Index' , 'long' ) - IInitLoopMin = InitLoop.InPort( 'Min' , 'long' ) - IInitLoopMax = InitLoop.InPort( 'Max' , 'long' ) - IInitLoopGate = InitLoop.GetInPort( 'Gate' ) - OInitLoopDoLoop = InitLoop.GetOutPort( 'DoLoop' ) - OInitLoopIndex = InitLoop.GetOutPort( 'Index' ) - OInitLoopMin = InitLoop.GetOutPort( 'Min' ) - OInitLoopMax = InitLoop.GetOutPort( 'Max' ) - IEndOfInitLoopDoLoop = EndOfInitLoop.GetInPort( 'DoLoop' ) - IEndOfInitLoopIndex = EndOfInitLoop.GetInPort( 'Index' ) - IEndOfInitLoopMin = EndOfInitLoop.GetInPort( 'Min' ) - IEndOfInitLoopMax = EndOfInitLoop.GetInPort( 'Max' ) - IEndOfInitLoopGate = EndOfInitLoop.GetInPort( 'Gate' ) - OEndOfInitLoopDoLoop = EndOfInitLoop.GetOutPort( 'DoLoop' ) - OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) - OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) - OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) - OEndOfInitLoopGate = EndOfInitLoop.GetOutPort( 'Gate' ) - InitLoop.SetName( 'InitLoop' ) - InitLoop.SetAuthor( '' ) - InitLoop.SetComment( 'Compute Node' ) - InitLoop.Coords( 10 , 108 ) - - # Creation of Switch Nodes - PySwitch = [] - PySwitch.append( 'from time import * ' ) - PySwitch.append( 'def Switch(a) : ' ) - PySwitch.append( ' if ( a & 1 ) == 0 : ' ) - PySwitch.append( ' sleep(1) ' ) - PySwitch.append( ' return a & 1,1-(a&1),a ' ) - Switch,EndSwitch = GraphLoopSwitchGateDefault.SNode( 'Switch' , PySwitch ) - EndSwitch.SetName( 'EndSwitch' ) - EndSwitch.SetAuthor( '' ) - EndSwitch.SetComment( 'Compute Node' ) - EndSwitch.Coords( 587 , 103 ) - PyEndSwitch = [] - PyEndSwitch.append( 'def EndSwitch(a,Even) : ' ) - PyEndSwitch.append( ' sleep(1) ' ) - PyEndSwitch.append( ' return a ' ) - EndSwitch.SetPyFunction( 'EndSwitch' , PyEndSwitch ) - IEndSwitcha = EndSwitch.InPort( 'a' , 'long' ) - IEndSwitchEven = EndSwitch.InPort( 'Even' , 'long' ) - IEndSwitchDefault = EndSwitch.GetInPort( 'Default' ) - OEndSwitcha = EndSwitch.OutPort( 'a' , 'long' ) - OEndSwitchGate = EndSwitch.GetOutPort( 'Gate' ) - Switch.SetName( 'Switch' ) - Switch.SetAuthor( '' ) - Switch.SetComment( 'Compute Node' ) - Switch.Coords( 194 , 109 ) - ISwitcha = Switch.InPort( 'a' , 'long' ) - ISwitchGate = Switch.GetInPort( 'Gate' ) - OSwitchOdd = Switch.OutPort( 'Odd' , 'long' ) - OSwitchEven = Switch.OutPort( 'Even' , 'int' ) - OSwitcha = Switch.OutPort( 'a' , 'int' ) - OSwitchDefault = Switch.GetOutPort( 'Default' ) - - # Creation of Links - LIsOddaEndSwitcha = GraphLoopSwitchGateDefault.Link( OIsOdda , IEndSwitcha ) - - LIsOddGateEndSwitchDefault = GraphLoopSwitchGateDefault.Link( OIsOddGate , IEndSwitchDefault ) - - LInitLoopIndexSwitcha = GraphLoopSwitchGateDefault.Link( OInitLoopIndex , ISwitcha ) - - LInitLoopMinEndOfInitLoopMin = GraphLoopSwitchGateDefault.Link( OInitLoopMin , IEndOfInitLoopMin ) - - LInitLoopMaxEndOfInitLoopMax = GraphLoopSwitchGateDefault.Link( OInitLoopMax , IEndOfInitLoopMax ) - - LSwitchOddIsOddGate = GraphLoopSwitchGateDefault.Link( OSwitchOdd , IIsOddGate ) - - LSwitchEvenValEvenEven = GraphLoopSwitchGateDefault.Link( OSwitchEven , IValEvenEven ) - - LSwitchaIsOdda = GraphLoopSwitchGateDefault.Link( OSwitcha , IIsOdda ) - - LSwitchDefaultEndSwitchDefault = GraphLoopSwitchGateDefault.Link( OSwitchDefault , IEndSwitchDefault ) - - LEndSwitchaEndOfInitLoopIndex = GraphLoopSwitchGateDefault.Link( OEndSwitcha , IEndOfInitLoopIndex ) - - LValEvenEvenEndSwitchEven = GraphLoopSwitchGateDefault.Link( OValEvenEven , IEndSwitchEven ) - - # Input datas - IInitLoopIndex.Input( 0 ) - IInitLoopMin.Input( 5 ) - IInitLoopMax.Input( 23 ) - - # Output Ports of the graph - #OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) - #OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) - #OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) - return GraphLoopSwitchGateDefault - - -GraphLoopSwitchGateDefault = DefGraphLoopSwitchGateDefault() diff --git a/Superv/Python/GraphLoopSwitchGatesDefaultNOTValid.py b/Superv/Python/GraphLoopSwitchGatesDefaultNOTValid.py deleted file mode 100644 index f0bd63f..0000000 --- a/Superv/Python/GraphLoopSwitchGatesDefaultNOTValid.py +++ /dev/null @@ -1,188 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphLoopSwitchGatesDefaultNOTValid -# -from SuperV import * - -# Graph creation of GraphLoopSwitchGatesDefaultNOTValid -def DefGraphLoopSwitchGatesDefaultNOTValid() : - GraphLoopSwitchGatesDefaultNOTValid = Graph( 'GraphLoopSwitchGatesDefaultNOTValid' ) - GraphLoopSwitchGatesDefaultNOTValid.SetName( 'GraphLoopSwitchGatesDefaultNOTValid' ) - GraphLoopSwitchGatesDefaultNOTValid.SetAuthor( 'JR' ) - GraphLoopSwitchGatesDefaultNOTValid.SetComment( '' ) - GraphLoopSwitchGatesDefaultNOTValid.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 (GraphLoopSwitch1)" ' ) - PyIsOdd.append( ' sleep( 1 ) ' ) - PyIsOdd.append( ' return a ' ) - IsOdd = GraphLoopSwitchGatesDefaultNOTValid.INode( 'IsOdd' , PyIsOdd ) - IsOdd.SetName( 'IsOdd' ) - IsOdd.SetAuthor( '' ) - IsOdd.SetComment( 'Python function' ) - IsOdd.Coords( 397 , 1 ) - IIsOdda = IsOdd.InPort( 'a' , 'long' ) - IIsOddGate = IsOdd.GetInPort( 'Gate' ) - OIsOdda = IsOdd.OutPort( 'a' , 'long' ) - OIsOddGate = IsOdd.GetOutPort( 'Gate' ) - - PyValEven = [] - PyValEven.append( 'from time import * ' ) - PyValEven.append( 'def ValEven(Even) : ' ) - PyValEven.append( ' sleep(1) ' ) - PyValEven.append( ' return Even ' ) - PyValEven.append( '' ) - ValEven = GraphLoopSwitchGatesDefaultNOTValid.INode( 'ValEven' , PyValEven ) - ValEven.SetName( 'ValEven' ) - ValEven.SetAuthor( '' ) - ValEven.SetComment( 'Compute Node' ) - ValEven.Coords( 396 , 222 ) - IValEvenEven = ValEven.InPort( 'Even' , 'long' ) - IValEvenGate = ValEven.GetInPort( 'Gate' ) - OValEvenEven = ValEven.OutPort( 'Even' , 'long' ) - OValEvenGate = ValEven.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyInitLoop = [] - PyInitLoop.append( 'def InitLoop(Index,Min,Max) : ' ) - PyInitLoop.append( ' Index = Min ' ) - PyInitLoop.append( ' return Index,Min,Max ' ) - PyInitLoop.append( '' ) - PyMoreInitLoop = [] - PyMoreInitLoop.append( '' ) - PyNextInitLoop = [] - PyNextInitLoop.append( '' ) - InitLoop,EndOfInitLoop = GraphLoopSwitchGatesDefaultNOTValid.LNode( 'InitLoop' , PyInitLoop , '' , PyMoreInitLoop , '' , PyNextInitLoop ) - EndOfInitLoop.SetName( 'EndOfInitLoop' ) - EndOfInitLoop.SetAuthor( '' ) - EndOfInitLoop.SetComment( 'Compute Node' ) - EndOfInitLoop.Coords( 767 , 102 ) - PyEndOfInitLoop = [] - PyEndOfInitLoop.append( 'def EndOfInitLoop( DoLoop , Index , Min , Max ) :' ) - PyEndOfInitLoop.append( ' Index = Index + 1 ' ) - PyEndOfInitLoop.append( ' if Index <= Max : ' ) - PyEndOfInitLoop.append( ' DoLoop = 1 ' ) - PyEndOfInitLoop.append( ' else : ' ) - PyEndOfInitLoop.append( ' DoLoop = 0 ' ) - PyEndOfInitLoop.append( ' return DoLoop,Index,Min,Max ' ) - EndOfInitLoop.SetPyFunction( 'EndOfInitLoop' , PyEndOfInitLoop ) - IInitLoopDoLoop = InitLoop.GetInPort( 'DoLoop' ) - IInitLoopIndex = InitLoop.InPort( 'Index' , 'long' ) - IInitLoopMin = InitLoop.InPort( 'Min' , 'long' ) - IInitLoopMax = InitLoop.InPort( 'Max' , 'long' ) - IInitLoopGate = InitLoop.GetInPort( 'Gate' ) - OInitLoopDoLoop = InitLoop.GetOutPort( 'DoLoop' ) - OInitLoopIndex = InitLoop.GetOutPort( 'Index' ) - OInitLoopMin = InitLoop.GetOutPort( 'Min' ) - OInitLoopMax = InitLoop.GetOutPort( 'Max' ) - IEndOfInitLoopDoLoop = EndOfInitLoop.GetInPort( 'DoLoop' ) - IEndOfInitLoopIndex = EndOfInitLoop.GetInPort( 'Index' ) - IEndOfInitLoopMin = EndOfInitLoop.GetInPort( 'Min' ) - IEndOfInitLoopMax = EndOfInitLoop.GetInPort( 'Max' ) - IEndOfInitLoopGate = EndOfInitLoop.GetInPort( 'Gate' ) - OEndOfInitLoopDoLoop = EndOfInitLoop.GetOutPort( 'DoLoop' ) - OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) - OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) - OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) - OEndOfInitLoopGate = EndOfInitLoop.GetOutPort( 'Gate' ) - InitLoop.SetName( 'InitLoop' ) - InitLoop.SetAuthor( '' ) - InitLoop.SetComment( 'Compute Node' ) - InitLoop.Coords( 10 , 108 ) - - # Creation of Switch Nodes - PySwitch = [] - PySwitch.append( 'from time import * ' ) - PySwitch.append( 'def Switch(a) : ' ) - PySwitch.append( ' if ( a & 1 ) == 0 : ' ) - PySwitch.append( ' sleep(1) ' ) - PySwitch.append( ' return a & 1,1-(a&1),a ' ) - Switch,EndSwitch = GraphLoopSwitchGatesDefaultNOTValid.SNode( 'Switch' , PySwitch ) - EndSwitch.SetName( 'EndSwitch' ) - EndSwitch.SetAuthor( '' ) - EndSwitch.SetComment( 'Compute Node' ) - EndSwitch.Coords( 587 , 103 ) - PyEndSwitch = [] - PyEndSwitch.append( 'def EndSwitch(a,Even) : ' ) - PyEndSwitch.append( ' sleep(1) ' ) - PyEndSwitch.append( ' return a ' ) - EndSwitch.SetPyFunction( 'EndSwitch' , PyEndSwitch ) - IEndSwitcha = EndSwitch.InPort( 'a' , 'long' ) - IEndSwitchEven = EndSwitch.InPort( 'Even' , 'long' ) - IEndSwitchDefault = EndSwitch.GetInPort( 'Default' ) - OEndSwitcha = EndSwitch.OutPort( 'a' , 'long' ) - OEndSwitchGate = EndSwitch.GetOutPort( 'Gate' ) - Switch.SetName( 'Switch' ) - Switch.SetAuthor( '' ) - Switch.SetComment( 'Compute Node' ) - Switch.Coords( 194 , 109 ) - ISwitcha = Switch.InPort( 'a' , 'long' ) - ISwitchGate = Switch.GetInPort( 'Gate' ) - OSwitchOdd = Switch.OutPort( 'Odd' , 'long' ) - OSwitchEven = Switch.OutPort( 'Even' , 'int' ) - OSwitcha = Switch.OutPort( 'a' , 'int' ) - OSwitchDefault = Switch.GetOutPort( 'Default' ) - - # Creation of Links - LIsOddaEndSwitcha = GraphLoopSwitchGatesDefaultNOTValid.Link( OIsOdda , IEndSwitcha ) - - LIsOddGateEndSwitchDefault = GraphLoopSwitchGatesDefaultNOTValid.Link( OIsOddGate , IEndSwitchDefault ) - - LInitLoopIndexSwitcha = GraphLoopSwitchGatesDefaultNOTValid.Link( OInitLoopIndex , ISwitcha ) - - LInitLoopMinEndOfInitLoopMin = GraphLoopSwitchGatesDefaultNOTValid.Link( OInitLoopMin , IEndOfInitLoopMin ) - - LInitLoopMaxEndOfInitLoopMax = GraphLoopSwitchGatesDefaultNOTValid.Link( OInitLoopMax , IEndOfInitLoopMax ) - - LSwitchOddIsOddGate = GraphLoopSwitchGatesDefaultNOTValid.Link( OSwitchOdd , IIsOddGate ) - - LSwitchEvenValEvenEven = GraphLoopSwitchGatesDefaultNOTValid.Link( OSwitchEven , IValEvenEven ) - - LSwitchaIsOdda = GraphLoopSwitchGatesDefaultNOTValid.Link( OSwitcha , IIsOdda ) - - LSwitchDefaultEndSwitchDefault = GraphLoopSwitchGatesDefaultNOTValid.Link( OSwitchDefault , IEndSwitchDefault ) - - LEndSwitchaEndOfInitLoopIndex = GraphLoopSwitchGatesDefaultNOTValid.Link( OEndSwitcha , IEndOfInitLoopIndex ) - - LValEvenEvenEndSwitchEven = GraphLoopSwitchGatesDefaultNOTValid.Link( OValEvenEven , IEndSwitchEven ) - - LValEvenGateEndSwitchDefault = GraphLoopSwitchGatesDefaultNOTValid.Link( OValEvenGate , IEndSwitchDefault ) - - # Input datas - IInitLoopIndex.Input( 0 ) - IInitLoopMin.Input( 5 ) - IInitLoopMax.Input( 23 ) - - # Output Ports of the graph - #OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) - #OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) - #OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) - return GraphLoopSwitchGatesDefaultNOTValid - - -GraphLoopSwitchGatesDefaultNOTValid = DefGraphLoopSwitchGatesDefaultNOTValid() diff --git a/Superv/Python/GraphLoopSwitchOddEven.py b/Superv/Python/GraphLoopSwitchOddEven.py deleted file mode 100644 index c30b0eb..0000000 --- a/Superv/Python/GraphLoopSwitchOddEven.py +++ /dev/null @@ -1,183 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphLoopSwitchOddEven -# -from SuperV import * - -# Graph creation of GraphLoopSwitchOddEven -def DefGraphLoopSwitchOddEven() : - GraphLoopSwitchOddEven = Graph( 'GraphLoopSwitchOddEven' ) - GraphLoopSwitchOddEven.SetName( 'GraphLoopSwitchOddEven' ) - GraphLoopSwitchOddEven.SetAuthor( 'JR' ) - GraphLoopSwitchOddEven.SetComment( '' ) - GraphLoopSwitchOddEven.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 (GraphLoopSwitch1)" ' ) - PyIsOdd.append( ' sleep( 1 ) ' ) - PyIsOdd.append( ' return a ' ) - IsOdd = GraphLoopSwitchOddEven.INode( 'IsOdd' , PyIsOdd ) - IsOdd.SetName( 'IsOdd' ) - IsOdd.SetAuthor( '' ) - IsOdd.SetComment( 'Python function' ) - IsOdd.Coords( 397 , 1 ) - 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( ' sleep(1) ' ) - PyIsEven.append( ' return a ' ) - PyIsEven.append( ' ' ) - IsEven = GraphLoopSwitchOddEven.INode( 'IsEven' , PyIsEven ) - IsEven.SetName( 'IsEven' ) - IsEven.SetAuthor( '' ) - IsEven.SetComment( 'Compute Node' ) - IsEven.Coords( 400 , 160 ) - IIsEvena = IsEven.InPort( 'a' , 'long' ) - IIsEvenGate = IsEven.GetInPort( 'Gate' ) - OIsEvena = IsEven.OutPort( 'a' , 'long' ) - OIsEvenGate = IsEven.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyInitLoop = [] - PyInitLoop.append( 'def InitLoop(Index,Min,Max) : ' ) - PyInitLoop.append( ' Index = Min ' ) - PyInitLoop.append( ' return Index,Min,Max ' ) - PyInitLoop.append( '' ) - PyMoreInitLoop = [] - PyMoreInitLoop.append( '' ) - PyNextInitLoop = [] - PyNextInitLoop.append( '' ) - InitLoop,EndOfInitLoop = GraphLoopSwitchOddEven.LNode( 'InitLoop' , PyInitLoop , '' , PyMoreInitLoop , '' , PyNextInitLoop ) - EndOfInitLoop.SetName( 'EndOfInitLoop' ) - EndOfInitLoop.SetAuthor( '' ) - EndOfInitLoop.SetComment( 'Compute Node' ) - EndOfInitLoop.Coords( 767 , 102 ) - PyEndOfInitLoop = [] - PyEndOfInitLoop.append( 'def EndOfInitLoop( DoLoop , Index , Min , Max ) :' ) - PyEndOfInitLoop.append( ' Index = Index + 1 ' ) - PyEndOfInitLoop.append( ' if Index <= Max : ' ) - PyEndOfInitLoop.append( ' DoLoop = 1 ' ) - PyEndOfInitLoop.append( ' else : ' ) - PyEndOfInitLoop.append( ' DoLoop = 0 ' ) - PyEndOfInitLoop.append( ' return DoLoop,Index,Min,Max ' ) - EndOfInitLoop.SetPyFunction( 'EndOfInitLoop' , PyEndOfInitLoop ) - IInitLoopDoLoop = InitLoop.GetInPort( 'DoLoop' ) - IInitLoopIndex = InitLoop.InPort( 'Index' , 'long' ) - IInitLoopMin = InitLoop.InPort( 'Min' , 'long' ) - IInitLoopMax = InitLoop.InPort( 'Max' , 'long' ) - IInitLoopGate = InitLoop.GetInPort( 'Gate' ) - OInitLoopDoLoop = InitLoop.GetOutPort( 'DoLoop' ) - OInitLoopIndex = InitLoop.GetOutPort( 'Index' ) - OInitLoopMin = InitLoop.GetOutPort( 'Min' ) - OInitLoopMax = InitLoop.GetOutPort( 'Max' ) - IEndOfInitLoopDoLoop = EndOfInitLoop.GetInPort( 'DoLoop' ) - IEndOfInitLoopIndex = EndOfInitLoop.GetInPort( 'Index' ) - IEndOfInitLoopMin = EndOfInitLoop.GetInPort( 'Min' ) - IEndOfInitLoopMax = EndOfInitLoop.GetInPort( 'Max' ) - IEndOfInitLoopGate = EndOfInitLoop.GetInPort( 'Gate' ) - OEndOfInitLoopDoLoop = EndOfInitLoop.GetOutPort( 'DoLoop' ) - OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) - OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) - OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) - OEndOfInitLoopGate = EndOfInitLoop.GetOutPort( 'Gate' ) - InitLoop.SetName( 'InitLoop' ) - InitLoop.SetAuthor( '' ) - InitLoop.SetComment( 'Compute Node' ) - InitLoop.Coords( 10 , 108 ) - - # Creation of Switch Nodes - PySwitch = [] - PySwitch.append( 'from time import * ' ) - PySwitch.append( 'def Switch(a) : ' ) - PySwitch.append( ' if ( a & 1 ) == 0 : ' ) - PySwitch.append( ' sleep(1) ' ) - PySwitch.append( ' return a & 1,1-(a&1),a ' ) - Switch,EndSwitch = GraphLoopSwitchOddEven.SNode( 'Switch' , PySwitch ) - EndSwitch.SetName( 'EndSwitch' ) - EndSwitch.SetAuthor( '' ) - EndSwitch.SetComment( 'Compute Node' ) - EndSwitch.Coords( 587 , 103 ) - PyEndSwitch = [] - PyEndSwitch.append( 'def EndSwitch(a) : ' ) - PyEndSwitch.append( ' sleep(1) ' ) - PyEndSwitch.append( ' return a ' ) - EndSwitch.SetPyFunction( 'EndSwitch' , PyEndSwitch ) - IEndSwitcha = EndSwitch.InPort( 'a' , 'long' ) - IEndSwitchDefault = EndSwitch.GetInPort( 'Default' ) - OEndSwitcha = EndSwitch.OutPort( 'a' , 'long' ) - OEndSwitchGate = EndSwitch.GetOutPort( 'Gate' ) - Switch.SetName( 'Switch' ) - Switch.SetAuthor( '' ) - Switch.SetComment( 'Compute Node' ) - Switch.Coords( 194 , 109 ) - ISwitcha = Switch.InPort( 'a' , 'long' ) - ISwitchGate = Switch.GetInPort( 'Gate' ) - OSwitchOdd = Switch.OutPort( 'Odd' , 'long' ) - OSwitchEven = Switch.OutPort( 'Even' , 'int' ) - OSwitcha = Switch.OutPort( 'a' , 'int' ) - OSwitchDefault = Switch.GetOutPort( 'Default' ) - - # Creation of Links - LIsOddaEndSwitcha = GraphLoopSwitchOddEven.Link( OIsOdda , IEndSwitcha ) - - LInitLoopIndexSwitcha = GraphLoopSwitchOddEven.Link( OInitLoopIndex , ISwitcha ) - - LInitLoopMinEndOfInitLoopMin = GraphLoopSwitchOddEven.Link( OInitLoopMin , IEndOfInitLoopMin ) - - LInitLoopMaxEndOfInitLoopMax = GraphLoopSwitchOddEven.Link( OInitLoopMax , IEndOfInitLoopMax ) - - LSwitchOddIsOddGate = GraphLoopSwitchOddEven.Link( OSwitchOdd , IIsOddGate ) - - LSwitchEvenIsEvenGate = GraphLoopSwitchOddEven.Link( OSwitchEven , IIsEvenGate ) - - LSwitchaIsOdda = GraphLoopSwitchOddEven.Link( OSwitcha , IIsOdda ) - - LSwitchaIsEvena = GraphLoopSwitchOddEven.Link( OSwitcha , IIsEvena ) - - LEndSwitchaEndOfInitLoopIndex = GraphLoopSwitchOddEven.Link( OEndSwitcha , IEndOfInitLoopIndex ) - - LIsEvenaEndSwitcha = GraphLoopSwitchOddEven.Link( OIsEvena , IEndSwitcha ) - - # Input datas - IInitLoopIndex.Input( 0 ) - IInitLoopMin.Input( 5 ) - IInitLoopMax.Input( 23 ) - - # Output Ports of the graph - #OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) - #OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) - #OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) - return GraphLoopSwitchOddEven - - -GraphLoopSwitchOddEven = DefGraphLoopSwitchOddEven() diff --git a/Superv/Python/GraphLoopSwitchOfSwitch.py b/Superv/Python/GraphLoopSwitchOfSwitch.py deleted file mode 100644 index 0b8de5a..0000000 --- a/Superv/Python/GraphLoopSwitchOfSwitch.py +++ /dev/null @@ -1,272 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# 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( 17 ) - - # Output Ports of the graph - #OEndOfLoopSwitchIndex = EndOfLoopSwitch.GetOutPort( 'Index' ) - #OEndOfLoopSwitchMin = EndOfLoopSwitch.GetOutPort( 'Min' ) - #OEndOfLoopSwitchMax = EndOfLoopSwitch.GetOutPort( 'Max' ) - return GraphLoopSwitchOfSwitch - - -GraphLoopSwitchOfSwitch = DefGraphLoopSwitchOfSwitch() diff --git a/Superv/Python/GraphLoopSwitchOfSwitch1.py b/Superv/Python/GraphLoopSwitchOfSwitch1.py deleted file mode 100644 index cca8d69..0000000 --- a/Superv/Python/GraphLoopSwitchOfSwitch1.py +++ /dev/null @@ -1,270 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphLoopSwitchOfSwitch1 -# -from SuperV import * - -# Graph creation of GraphLoopSwitchOfSwitch1 -def DefGraphLoopSwitchOfSwitch1() : - GraphLoopSwitchOfSwitch1 = Graph( 'GraphLoopSwitchOfSwitch1' ) - GraphLoopSwitchOfSwitch1.SetName( 'GraphLoopSwitchOfSwitch1' ) - GraphLoopSwitchOfSwitch1.SetAuthor( 'JR' ) - GraphLoopSwitchOfSwitch1.SetComment( 'DefaultPorts of SwitchOdd and EndSwitchOdd are not connected but that link was not used' ) - GraphLoopSwitchOfSwitch1.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 = GraphLoopSwitchOfSwitch1.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 = GraphLoopSwitchOfSwitch1.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 = GraphLoopSwitchOfSwitch1.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 = GraphLoopSwitchOfSwitch1.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 = GraphLoopSwitchOfSwitch1.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 = GraphLoopSwitchOfSwitch1.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 = GraphLoopSwitchOfSwitch1.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 = GraphLoopSwitchOfSwitch1.Link( OLoopSwitchIndex , ISwitcha ) - - LLoopSwitchMinEndOfLoopSwitchMin = GraphLoopSwitchOfSwitch1.Link( OLoopSwitchMin , IEndOfLoopSwitchMin ) - - LLoopSwitchMaxEndOfLoopSwitchMax = GraphLoopSwitchOfSwitch1.Link( OLoopSwitchMax , IEndOfLoopSwitchMax ) - - LIsEvenaEndOfSwitcha = GraphLoopSwitchOfSwitch1.Link( OIsEvena , IEndOfSwitcha ) - LIsEvenaEndOfSwitcha.AddCoord( 1 , 719 , 591 ) - - LSwitchOddSwitchOddGate = GraphLoopSwitchOfSwitch1.Link( OSwitchOdd , ISwitchOddGate ) - - LSwitchaIsEvena = GraphLoopSwitchOfSwitch1.Link( OSwitcha , IIsEvena ) - - LSwitchaSwitchOdda = GraphLoopSwitchOfSwitch1.Link( OSwitcha , ISwitchOdda ) - - LSwitchEvenIsEvenGate = GraphLoopSwitchOfSwitch1.Link( OSwitchEven , IIsEvenGate ) - - LSwitchDefaultEndOfSwitchDefault = GraphLoopSwitchOfSwitch1.Link( OSwitchDefault , IEndOfSwitchDefault ) - LSwitchDefaultEndOfSwitchDefault.AddCoord( 1 , 1057 , 267 ) - LSwitchDefaultEndOfSwitchDefault.AddCoord( 2 , 1079 , 669 ) - LSwitchDefaultEndOfSwitchDefault.AddCoord( 3 , 383 , 666 ) - - LEndOfSwitchaEndOfLoopSwitchIndex = GraphLoopSwitchOfSwitch1.Link( OEndOfSwitcha , IEndOfLoopSwitchIndex ) - - LSwitchOddPOnePseudoPOneGate = GraphLoopSwitchOfSwitch1.Link( OSwitchOddPOne , IPseudoPOneGate ) - - LSwitchOddPThreePseudoPThreeGate = GraphLoopSwitchOfSwitch1.Link( OSwitchOddPThree , IPseudoPThreeGate ) - - LSwitchOddPFivePseudoPFiveGate = GraphLoopSwitchOfSwitch1.Link( OSwitchOddPFive , IPseudoPFiveGate ) - - LSwitchOddnPseudoPOnePOne = GraphLoopSwitchOfSwitch1.Link( OSwitchOddn , IPseudoPOnePOne ) - - LSwitchOddnPseudoPThreePThree = GraphLoopSwitchOfSwitch1.Link( OSwitchOddn , IPseudoPThreePThree ) - - LSwitchOddnPseudoPFivePFive = GraphLoopSwitchOfSwitch1.Link( OSwitchOddn , IPseudoPFivePFive ) - - LEndOfSwitchOddnEndOfSwitcha = GraphLoopSwitchOfSwitch1.Link( OEndOfSwitchOddn , IEndOfSwitcha ) - - LPseudoPOneaEndOfSwitchOddn = GraphLoopSwitchOfSwitch1.Link( OPseudoPOnea , IEndOfSwitchOddn ) - - LPseudoPThreeaEndOfSwitchOddn = GraphLoopSwitchOfSwitch1.Link( OPseudoPThreea , IEndOfSwitchOddn ) - - LPseudoPFiveaEndOfSwitchOddn = GraphLoopSwitchOfSwitch1.Link( OPseudoPFivea , IEndOfSwitchOddn ) - - # Input datas - ILoopSwitchIndex.Input( 0 ) - ILoopSwitchMin.Input( -5 ) - ILoopSwitchMax.Input( 17 ) - - # Output Ports of the graph - #OEndOfLoopSwitchIndex = EndOfLoopSwitch.GetOutPort( 'Index' ) - #OEndOfLoopSwitchMin = EndOfLoopSwitch.GetOutPort( 'Min' ) - #OEndOfLoopSwitchMax = EndOfLoopSwitch.GetOutPort( 'Max' ) - return GraphLoopSwitchOfSwitch1 - - -GraphLoopSwitchOfSwitch1 = DefGraphLoopSwitchOfSwitch1() diff --git a/Superv/Python/GraphLoopSwitchOfSwitchAborted.py b/Superv/Python/GraphLoopSwitchOfSwitchAborted.py deleted file mode 100644 index 807bf90..0000000 --- a/Superv/Python/GraphLoopSwitchOfSwitchAborted.py +++ /dev/null @@ -1,265 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphLoopSwitchOfSwitchAborted -# -from SuperV import * - -# Graph creation of GraphLoopSwitchOfSwitchAborted -def DefGraphLoopSwitchOfSwitchAborted() : - GraphLoopSwitchOfSwitchAborted = Graph( 'GraphLoopSwitchOfSwitchAborted' ) - GraphLoopSwitchOfSwitchAborted.SetName( 'GraphLoopSwitchOfSwitchAborted' ) - GraphLoopSwitchOfSwitchAborted.SetAuthor( 'JR' ) - GraphLoopSwitchOfSwitchAborted.SetComment( 'DefaultPorts of SwitchOdd and EndSwitchOdd are not connected but that link was not used. DefaultPorts of Switch and EndSwitch are not linked ==> ABORT' ) - GraphLoopSwitchOfSwitchAborted.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 = GraphLoopSwitchOfSwitchAborted.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 = GraphLoopSwitchOfSwitchAborted.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 = GraphLoopSwitchOfSwitchAborted.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 = GraphLoopSwitchOfSwitchAborted.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 = GraphLoopSwitchOfSwitchAborted.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 = GraphLoopSwitchOfSwitchAborted.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 = GraphLoopSwitchOfSwitchAborted.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 = GraphLoopSwitchOfSwitchAborted.Link( OLoopSwitchIndex , ISwitcha ) - - LLoopSwitchMinEndOfLoopSwitchMin = GraphLoopSwitchOfSwitchAborted.Link( OLoopSwitchMin , IEndOfLoopSwitchMin ) - - LLoopSwitchMaxEndOfLoopSwitchMax = GraphLoopSwitchOfSwitchAborted.Link( OLoopSwitchMax , IEndOfLoopSwitchMax ) - - LIsEvenaEndOfSwitcha = GraphLoopSwitchOfSwitchAborted.Link( OIsEvena , IEndOfSwitcha ) - LIsEvenaEndOfSwitcha.AddCoord( 1 , 719 , 591 ) - - LSwitchOddSwitchOddGate = GraphLoopSwitchOfSwitchAborted.Link( OSwitchOdd , ISwitchOddGate ) - - LSwitchaIsEvena = GraphLoopSwitchOfSwitchAborted.Link( OSwitcha , IIsEvena ) - - LSwitchaSwitchOdda = GraphLoopSwitchOfSwitchAborted.Link( OSwitcha , ISwitchOdda ) - - LSwitchEvenIsEvenGate = GraphLoopSwitchOfSwitchAborted.Link( OSwitchEven , IIsEvenGate ) - - LEndOfSwitchaEndOfLoopSwitchIndex = GraphLoopSwitchOfSwitchAborted.Link( OEndOfSwitcha , IEndOfLoopSwitchIndex ) - - LSwitchOddPOnePseudoPOneGate = GraphLoopSwitchOfSwitchAborted.Link( OSwitchOddPOne , IPseudoPOneGate ) - - LSwitchOddPThreePseudoPThreeGate = GraphLoopSwitchOfSwitchAborted.Link( OSwitchOddPThree , IPseudoPThreeGate ) - - LSwitchOddPFivePseudoPFiveGate = GraphLoopSwitchOfSwitchAborted.Link( OSwitchOddPFive , IPseudoPFiveGate ) - - LSwitchOddnPseudoPOnePOne = GraphLoopSwitchOfSwitchAborted.Link( OSwitchOddn , IPseudoPOnePOne ) - - LSwitchOddnPseudoPThreePThree = GraphLoopSwitchOfSwitchAborted.Link( OSwitchOddn , IPseudoPThreePThree ) - - LSwitchOddnPseudoPFivePFive = GraphLoopSwitchOfSwitchAborted.Link( OSwitchOddn , IPseudoPFivePFive ) - - LEndOfSwitchOddnEndOfSwitcha = GraphLoopSwitchOfSwitchAborted.Link( OEndOfSwitchOddn , IEndOfSwitcha ) - - LPseudoPOneaEndOfSwitchOddn = GraphLoopSwitchOfSwitchAborted.Link( OPseudoPOnea , IEndOfSwitchOddn ) - - LPseudoPThreeaEndOfSwitchOddn = GraphLoopSwitchOfSwitchAborted.Link( OPseudoPThreea , IEndOfSwitchOddn ) - - LPseudoPFiveaEndOfSwitchOddn = GraphLoopSwitchOfSwitchAborted.Link( OPseudoPFivea , IEndOfSwitchOddn ) - - # Input datas - ILoopSwitchIndex.Input( 0 ) - ILoopSwitchMin.Input( -5 ) - ILoopSwitchMax.Input( 17 ) - - # Output Ports of the graph - #OEndOfLoopSwitchIndex = EndOfLoopSwitch.GetOutPort( 'Index' ) - #OEndOfLoopSwitchMin = EndOfLoopSwitch.GetOutPort( 'Min' ) - #OEndOfLoopSwitchMax = EndOfLoopSwitch.GetOutPort( 'Max' ) - return GraphLoopSwitchOfSwitchAborted - - -GraphLoopSwitchOfSwitchAborted = DefGraphLoopSwitchOfSwitchAborted() diff --git a/Superv/Python/GraphLoopSwitchOfSwitchNOTValid.py b/Superv/Python/GraphLoopSwitchOfSwitchNOTValid.py deleted file mode 100644 index 2c87fe1..0000000 --- a/Superv/Python/GraphLoopSwitchOfSwitchNOTValid.py +++ /dev/null @@ -1,271 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# 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() diff --git a/Superv/Python/GraphLoopSwitchs.py b/Superv/Python/GraphLoopSwitchs.py deleted file mode 100644 index e0c9231..0000000 --- a/Superv/Python/GraphLoopSwitchs.py +++ /dev/null @@ -1,256 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphLoopSwitchs_1 -# -from SuperV import * - -# Graph creation of GraphLoopSwitchs_1 -def DefGraphLoopSwitchs_1() : - GraphLoopSwitchs_1 = Graph( 'GraphLoopSwitchs_1' ) - GraphLoopSwitchs_1.SetName( 'GraphLoopSwitchs_1' ) - GraphLoopSwitchs_1.SetAuthor( 'JR' ) - GraphLoopSwitchs_1.SetComment( '' ) - GraphLoopSwitchs_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" ' ) - PyIsOdd.append( ' sleep( 1 ) ' ) - PyIsOdd.append( ' return a,1 ' ) - IsOdd = GraphLoopSwitchs_1.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' ) - OIsOddOdd = IsOdd.OutPort( 'Odd' , '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,1 ' ) - IsEven = GraphLoopSwitchs_1.INode( 'IsEven' , PyIsEven ) - IsEven.SetName( 'IsEven' ) - IsEven.SetAuthor( '' ) - IsEven.SetComment( 'Python function' ) - IsEven.Coords( 482 , 292 ) - IIsEvena = IsEven.InPort( 'a' , 'long' ) - IIsEvenGate = IsEven.GetInPort( 'Gate' ) - OIsEvena = IsEven.OutPort( 'a' , 'long' ) - OIsEvenEven = IsEven.OutPort( 'Even' , 'long' ) - OIsEvenGate = IsEven.GetOutPort( 'Gate' ) - - PySwitchsCompare = [] - PySwitchsCompare.append( 'from time import * ' ) - PySwitchsCompare.append( 'def SwitchsCompare(aOdd,Odd,aEven,Even) : ' ) - PySwitchsCompare.append( ' sleep(1) ' ) - PySwitchsCompare.append( ' return aOdd ' ) - SwitchsCompare = GraphLoopSwitchs_1.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_1.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( ' sleep(1) ' ) - PySwitchOdd.append( ' return a & 1,1-(a&1),a ' ) - SwitchOdd,EndOfSwitchOdd = GraphLoopSwitchs_1.SNode( 'Switch' , PySwitchOdd ) - EndOfSwitchOdd.SetName( 'EndOfSwitchOdd' ) - EndOfSwitchOdd.SetAuthor( '' ) - EndOfSwitchOdd.SetComment( 'Compute Node' ) - EndOfSwitchOdd.Coords( 711 , 161 ) - PyEndOfSwitchOdd = [] - PyEndOfSwitchOdd.append( 'from time import * ' ) - PyEndOfSwitchOdd.append( 'def EndOfSwitchOdd(a,Odd) : ' ) - PyEndOfSwitchOdd.append( ' sleep(1) ' ) - PyEndOfSwitchOdd.append( ' return a,Odd ' ) - EndOfSwitchOdd.SetPyFunction( 'EndOfSwitchOdd' , 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( ' sleep(1) ' ) - PySwitchEven.append( ' return a & 1,1-(a&1),a ' ) - SwitchEven,EndOfSwitchEven = GraphLoopSwitchs_1.SNode( 'Switch' , PySwitchEven ) - EndOfSwitchEven.SetName( 'EndOfSwitchEven' ) - EndOfSwitchEven.SetAuthor( '' ) - EndOfSwitchEven.SetComment( 'Compute Node' ) - EndOfSwitchEven.Coords( 718 , 361 ) - PyEndOfSwitchEven = [] - PyEndOfSwitchEven.append( 'from time import * ' ) - PyEndOfSwitchEven.append( 'def EndOfSwitchEven(a,Even) : ' ) - PyEndOfSwitchEven.append( ' sleep(1) ' ) - PyEndOfSwitchEven.append( ' return a,Even ' ) - EndOfSwitchEven.SetPyFunction( 'EndOfSwitchEven' , 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_1.Link( OIsOdda , IEndOfSwitchOdda ) - - LIsOddOddEndOfSwitchOddOdd = GraphLoopSwitchs_1.Link( OIsOddOdd , IEndOfSwitchOddOdd ) - - LSwitchOddOddIsOddGate = GraphLoopSwitchs_1.Link( OSwitchOddOdd , IIsOddGate ) - - LSwitchOddaIsOdda = GraphLoopSwitchs_1.Link( OSwitchOdda , IIsOdda ) - - LSwitchOddDefaultEndOfSwitchOddDefault = GraphLoopSwitchs_1.Link( OSwitchOddDefault , IEndOfSwitchOddDefault ) - - LEndOfSwitchOddaSwitchsCompareaOdd = GraphLoopSwitchs_1.Link( OEndOfSwitchOdda , ISwitchsCompareaOdd ) - - LEndOfSwitchOddOddSwitchsCompareOdd = GraphLoopSwitchs_1.Link( OEndOfSwitchOddOdd , ISwitchsCompareOdd ) - - LIsEvenaEndOfSwitchEvena = GraphLoopSwitchs_1.Link( OIsEvena , IEndOfSwitchEvena ) - - LIsEvenEvenEndOfSwitchEvenEven = GraphLoopSwitchs_1.Link( OIsEvenEven , IEndOfSwitchEvenEven ) - - LLoopIndexSwitchEvena = GraphLoopSwitchs_1.Link( OLoopIndex , ISwitchEvena ) - - LLoopIndexSwitchOdda = GraphLoopSwitchs_1.Link( OLoopIndex , ISwitchOdda ) - - LLoopMinEndOfLoopMin = GraphLoopSwitchs_1.Link( OLoopMin , IEndOfLoopMin ) - - LLoopMaxEndOfLoopMax = GraphLoopSwitchs_1.Link( OLoopMax , IEndOfLoopMax ) - - LSwitchEvenEvenIsEvenGate = GraphLoopSwitchs_1.Link( OSwitchEvenEven , IIsEvenGate ) - - LSwitchEvenaIsEvena = GraphLoopSwitchs_1.Link( OSwitchEvena , IIsEvena ) - - LSwitchEvenDefaultEndOfSwitchEvenDefault = GraphLoopSwitchs_1.Link( OSwitchEvenDefault , IEndOfSwitchEvenDefault ) - - LEndOfSwitchEvenaSwitchsCompareaEven = GraphLoopSwitchs_1.Link( OEndOfSwitchEvena , ISwitchsCompareaEven ) - - LEndOfSwitchEvenEvenSwitchsCompareEven = GraphLoopSwitchs_1.Link( OEndOfSwitchEvenEven , ISwitchsCompareEven ) - - LSwitchsCompareaEndOfLoopIndex = GraphLoopSwitchs_1.Link( OSwitchsComparea , IEndOfLoopIndex ) - - # Input datas - ILoopIndex.Input( 0 ) - ILoopMin.Input( 0 ) - ILoopMax.Input( 23 ) - - # Output Ports of the graph - #OSwitchOddEven = SwitchOdd.GetOutPort( 'Even' ) - #OEndOfLoopIndex = EndOfLoop.GetOutPort( 'Index' ) - #OEndOfLoopMin = EndOfLoop.GetOutPort( 'Min' ) - #OEndOfLoopMax = EndOfLoop.GetOutPort( 'Max' ) - #OSwitchEvenOdd = SwitchEven.GetOutPort( 'Odd' ) - return GraphLoopSwitchs_1 - - -GraphLoopSwitchs_1 = DefGraphLoopSwitchs_1() diff --git a/Superv/Python/GraphLoopSwitchsAborted.py b/Superv/Python/GraphLoopSwitchsAborted.py deleted file mode 100644 index b25e499..0000000 --- a/Superv/Python/GraphLoopSwitchsAborted.py +++ /dev/null @@ -1,252 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphLoopSwitchsAborted -# -from SuperV import * - -# Graph creation of GraphLoopSwitchsAborted -def DefGraphLoopSwitchsAborted() : - GraphLoopSwitchsAborted = Graph( 'GraphLoopSwitchsAborted' ) - GraphLoopSwitchsAborted.SetName( 'GraphLoopSwitchsAborted' ) - GraphLoopSwitchsAborted.SetAuthor( 'JR' ) - GraphLoopSwitchsAborted.SetComment( 'Default links are missing' ) - GraphLoopSwitchsAborted.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,1 ' ) - IsOdd = GraphLoopSwitchsAborted.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' ) - OIsOddOdd = IsOdd.OutPort( 'Odd' , '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,1 ' ) - IsEven = GraphLoopSwitchsAborted.INode( 'IsEven' , PyIsEven ) - IsEven.SetName( 'IsEven' ) - IsEven.SetAuthor( '' ) - IsEven.SetComment( 'Python function' ) - IsEven.Coords( 482 , 292 ) - IIsEvena = IsEven.InPort( 'a' , 'long' ) - IIsEvenGate = IsEven.GetInPort( 'Gate' ) - OIsEvena = IsEven.OutPort( 'a' , 'long' ) - OIsEvenEven = IsEven.OutPort( 'Even' , 'long' ) - OIsEvenGate = IsEven.GetOutPort( 'Gate' ) - - PySwitchsCompare = [] - PySwitchsCompare.append( 'from time import * ' ) - PySwitchsCompare.append( 'def SwitchsCompare(aOdd,Odd,aEven,Even) : ' ) - PySwitchsCompare.append( ' sleep(1) ' ) - PySwitchsCompare.append( ' return aOdd ' ) - SwitchsCompare = GraphLoopSwitchsAborted.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 = GraphLoopSwitchsAborted.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( ' sleep(1) ' ) - PySwitchOdd.append( ' return a & 1,1-(a&1),a ' ) - SwitchOdd,EndOfSwitchOdd = GraphLoopSwitchsAborted.SNode( 'Switch' , PySwitchOdd ) - EndOfSwitchOdd.SetName( 'EndOfSwitchOdd' ) - EndOfSwitchOdd.SetAuthor( '' ) - EndOfSwitchOdd.SetComment( 'Compute Node' ) - EndOfSwitchOdd.Coords( 711 , 161 ) - PyEndOfSwitchOdd = [] - PyEndOfSwitchOdd.append( 'from time import * ' ) - PyEndOfSwitchOdd.append( 'def EndOfSwitchOdd(a,Odd) : ' ) - PyEndOfSwitchOdd.append( ' sleep(1) ' ) - PyEndOfSwitchOdd.append( ' return a,Odd ' ) - EndOfSwitchOdd.SetPyFunction( 'EndOfSwitchOdd' , 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( ' sleep(1) ' ) - PySwitchEven.append( ' return a & 1,1-(a&1),a ' ) - SwitchEven,EndOfSwitchEven = GraphLoopSwitchsAborted.SNode( 'Switch' , PySwitchEven ) - EndOfSwitchEven.SetName( 'EndOfSwitchEven' ) - EndOfSwitchEven.SetAuthor( '' ) - EndOfSwitchEven.SetComment( 'Compute Node' ) - EndOfSwitchEven.Coords( 718 , 361 ) - PyEndOfSwitchEven = [] - PyEndOfSwitchEven.append( 'from time import * ' ) - PyEndOfSwitchEven.append( 'def EndOfSwitchEven(a,Even) : ' ) - PyEndOfSwitchEven.append( ' sleep(1) ' ) - PyEndOfSwitchEven.append( ' return a,Even ' ) - EndOfSwitchEven.SetPyFunction( 'EndOfSwitchEven' , 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 = GraphLoopSwitchsAborted.Link( OIsOdda , IEndOfSwitchOdda ) - - LIsOddOddEndOfSwitchOddOdd = GraphLoopSwitchsAborted.Link( OIsOddOdd , IEndOfSwitchOddOdd ) - - LSwitchOddOddIsOddGate = GraphLoopSwitchsAborted.Link( OSwitchOddOdd , IIsOddGate ) - - LSwitchOddaIsOdda = GraphLoopSwitchsAborted.Link( OSwitchOdda , IIsOdda ) - - LEndOfSwitchOddaSwitchsCompareaOdd = GraphLoopSwitchsAborted.Link( OEndOfSwitchOdda , ISwitchsCompareaOdd ) - - LEndOfSwitchOddOddSwitchsCompareOdd = GraphLoopSwitchsAborted.Link( OEndOfSwitchOddOdd , ISwitchsCompareOdd ) - - LIsEvenaEndOfSwitchEvena = GraphLoopSwitchsAborted.Link( OIsEvena , IEndOfSwitchEvena ) - - LIsEvenEvenEndOfSwitchEvenEven = GraphLoopSwitchsAborted.Link( OIsEvenEven , IEndOfSwitchEvenEven ) - - LLoopIndexSwitchEvena = GraphLoopSwitchsAborted.Link( OLoopIndex , ISwitchEvena ) - - LLoopIndexSwitchOdda = GraphLoopSwitchsAborted.Link( OLoopIndex , ISwitchOdda ) - - LLoopMinEndOfLoopMin = GraphLoopSwitchsAborted.Link( OLoopMin , IEndOfLoopMin ) - - LLoopMaxEndOfLoopMax = GraphLoopSwitchsAborted.Link( OLoopMax , IEndOfLoopMax ) - - LSwitchEvenEvenIsEvenGate = GraphLoopSwitchsAborted.Link( OSwitchEvenEven , IIsEvenGate ) - - LSwitchEvenaIsEvena = GraphLoopSwitchsAborted.Link( OSwitchEvena , IIsEvena ) - - LEndOfSwitchEvenaSwitchsCompareaEven = GraphLoopSwitchsAborted.Link( OEndOfSwitchEvena , ISwitchsCompareaEven ) - - LEndOfSwitchEvenEvenSwitchsCompareEven = GraphLoopSwitchsAborted.Link( OEndOfSwitchEvenEven , ISwitchsCompareEven ) - - LSwitchsCompareaEndOfLoopIndex = GraphLoopSwitchsAborted.Link( OSwitchsComparea , IEndOfLoopIndex ) - - # Input datas - ILoopIndex.Input( 0 ) - ILoopMin.Input( 0 ) - ILoopMax.Input( 23 ) - - # Output Ports of the graph - #OSwitchOddEven = SwitchOdd.GetOutPort( 'Even' ) - #OEndOfLoopIndex = EndOfLoop.GetOutPort( 'Index' ) - #OEndOfLoopMin = EndOfLoop.GetOutPort( 'Min' ) - #OEndOfLoopMax = EndOfLoop.GetOutPort( 'Max' ) - #OSwitchEvenOdd = SwitchEven.GetOutPort( 'Odd' ) - return GraphLoopSwitchsAborted - - -GraphLoopSwitchsAborted = DefGraphLoopSwitchsAborted() diff --git a/Superv/Python/GraphLoopSwitchsBranches.py b/Superv/Python/GraphLoopSwitchsBranches.py deleted file mode 100644 index f6c07ce..0000000 --- a/Superv/Python/GraphLoopSwitchsBranches.py +++ /dev/null @@ -1,311 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphLoopSwitchsBranches_1 -# -from SuperV import * - -# Graph creation of GraphLoopSwitchsBranches_1 -def DefGraphLoopSwitchsBranches_1() : - GraphLoopSwitchsBranches_1 = Graph( 'GraphLoopSwitchsBranches_1' ) - GraphLoopSwitchsBranches_1.SetName( 'GraphLoopSwitchsBranches_1' ) - GraphLoopSwitchsBranches_1.SetAuthor( 'JR' ) - GraphLoopSwitchsBranches_1.SetComment( '' ) - GraphLoopSwitchsBranches_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" ' ) - PyIsOdd.append( ' sleep( 1 ) ' ) - PyIsOdd.append( ' return a,1 ' ) - IsOdd = GraphLoopSwitchsBranches_1.INode( 'IsOdd' , PyIsOdd ) - IsOdd.SetName( 'IsOdd' ) - IsOdd.SetAuthor( '' ) - IsOdd.SetComment( 'Python function' ) - IsOdd.Coords( 476 , 2 ) - IIsOdda = IsOdd.InPort( 'a' , 'long' ) - IIsOddGate = IsOdd.GetInPort( 'Gate' ) - OIsOdda = IsOdd.OutPort( 'a' , 'long' ) - OIsOddOdd = IsOdd.OutPort( 'Odd' , '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,1 ' ) - IsEven = GraphLoopSwitchsBranches_1.INode( 'IsEven' , PyIsEven ) - IsEven.SetName( 'IsEven' ) - IsEven.SetAuthor( '' ) - IsEven.SetComment( 'Python function' ) - IsEven.Coords( 472 , 724 ) - IIsEvena = IsEven.InPort( 'a' , 'long' ) - IIsEvenGate = IsEven.GetInPort( 'Gate' ) - OIsEvena = IsEven.OutPort( 'a' , 'long' ) - OIsEvenEven = IsEven.OutPort( 'Even' , 'long' ) - OIsEvenGate = IsEven.GetOutPort( 'Gate' ) - - PySwitchsCompare = [] - PySwitchsCompare.append( 'from time import * ' ) - PySwitchsCompare.append( 'def SwitchsCompare(aOdd,Odd,aEven,Even,Index) : ' ) - PySwitchsCompare.append( ' sleep(1) ' ) - PySwitchsCompare.append( ' return Index ' ) - SwitchsCompare = GraphLoopSwitchsBranches_1.INode( 'SwitchsCompare' , PySwitchsCompare ) - SwitchsCompare.SetName( 'SwitchsCompare' ) - SwitchsCompare.SetAuthor( '' ) - SwitchsCompare.SetComment( 'Compute Node' ) - SwitchsCompare.Coords( 918 , 221 ) - ISwitchsCompareaOdd = SwitchsCompare.InPort( 'aOdd' , 'long' ) - ISwitchsCompareOdd = SwitchsCompare.InPort( 'Odd' , 'boolean' ) - ISwitchsCompareaEven = SwitchsCompare.InPort( 'aEven' , 'long' ) - ISwitchsCompareEven = SwitchsCompare.InPort( 'Even' , 'boolean' ) - ISwitchsCompareIndex = SwitchsCompare.InPort( 'Index' , 'long' ) - ISwitchsCompareGate = SwitchsCompare.GetInPort( 'Gate' ) - OSwitchsCompareIndex = SwitchsCompare.OutPort( 'Index' , 'long' ) - OSwitchsCompareGate = SwitchsCompare.GetOutPort( 'Gate' ) - - PyIsNotOdd = [] - PyIsNotOdd.append( 'from time import * ' ) - PyIsNotOdd.append( 'def IsNotOdd(Even) : ' ) - PyIsNotOdd.append( ' sleep(1) ' ) - PyIsNotOdd.append( ' return Even ' ) - IsNotOdd = GraphLoopSwitchsBranches_1.INode( 'IsNotOdd' , PyIsNotOdd ) - IsNotOdd.SetName( 'IsNotOdd' ) - IsNotOdd.SetAuthor( '' ) - IsNotOdd.SetComment( 'Compute Node' ) - IsNotOdd.Coords( 477 , 145 ) - IIsNotOddEven = IsNotOdd.InPort( 'Even' , 'long' ) - IIsNotOddGate = IsNotOdd.GetInPort( 'Gate' ) - OIsNotOddEven = IsNotOdd.OutPort( 'Even' , 'long' ) - OIsNotOddGate = IsNotOdd.GetOutPort( 'Gate' ) - - PyIsNotEven = [] - PyIsNotEven.append( 'from time import * ' ) - PyIsNotEven.append( 'def IsNotEven(Odd) : ' ) - PyIsNotEven.append( ' sleep(1) ' ) - PyIsNotEven.append( ' return Odd ' ) - IsNotEven = GraphLoopSwitchsBranches_1.INode( 'IsNotEven' , PyIsNotEven ) - IsNotEven.SetName( 'IsNotEven' ) - IsNotEven.SetAuthor( '' ) - IsNotEven.SetComment( 'Compute Node' ) - IsNotEven.Coords( 477 , 570 ) - IIsNotEvenOdd = IsNotEven.InPort( 'Odd' , 'long' ) - IIsNotEvenGate = IsNotEven.GetInPort( 'Gate' ) - OIsNotEvenOdd = IsNotEven.OutPort( 'Odd' , 'long' ) - OIsNotEvenGate = IsNotEven.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 = GraphLoopSwitchsBranches_1.LNode( 'InitLoop' , PyLoop , 'MoreLoop' , PyMoreLoop , 'NextLoop' , PyNextLoop ) - EndOfLoop.SetName( 'EndOfLoop' ) - EndOfLoop.SetAuthor( '' ) - EndOfLoop.SetComment( 'Compute Node' ) - EndOfLoop.Coords( 1099 , 261 ) - 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( 19 , 341 ) - - # Creation of Switch Nodes - PySwitchOdd = [] - PySwitchOdd.append( 'from time import * ' ) - PySwitchOdd.append( 'def SwitchOdd(a) : ' ) - PySwitchOdd.append( ' sleep(1) ' ) - PySwitchOdd.append( ' OddEven = 'Odd' ' ) - PySwitchOdd.append( ' if (a&1) == 0 : ' ) - PySwitchOdd.append( ' OddEven = 'Even' ' ) - PySwitchOdd.append( ' return a & 1,1-(a&1),a,OddEven ' ) - SwitchOdd,EndOfSwitchOdd = GraphLoopSwitchsBranches_1.SNode( 'SwitchOdd' , PySwitchOdd ) - EndOfSwitchOdd.SetName( 'EndOfSwitchOdd' ) - EndOfSwitchOdd.SetAuthor( '' ) - EndOfSwitchOdd.SetComment( 'Compute Node' ) - EndOfSwitchOdd.Coords( 715 , 208 ) - PyEndOfSwitchOdd = [] - PyEndOfSwitchOdd.append( 'from time import * ' ) - PyEndOfSwitchOdd.append( 'def EndOfSwitchOdd(a,Odd,Even,OddEven) : ' ) - PyEndOfSwitchOdd.append( ' sleep(1) ' ) - PyEndOfSwitchOdd.append( ' return a,Odd ' ) - EndOfSwitchOdd.SetPyFunction( 'EndOfSwitchOdd' , PyEndOfSwitchOdd ) - IEndOfSwitchOdda = EndOfSwitchOdd.InPort( 'a' , 'long' ) - IEndOfSwitchOddOdd = EndOfSwitchOdd.InPort( 'Odd' , 'boolean' ) - IEndOfSwitchOddEven = EndOfSwitchOdd.InPort( 'Even' , 'long' ) - IEndOfSwitchOddOddEven = EndOfSwitchOdd.InPort( 'OddEven' , '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( 241 , 208 ) - ISwitchOdda = SwitchOdd.InPort( 'a' , 'long' ) - ISwitchOddGate = SwitchOdd.GetInPort( 'Gate' ) - OSwitchOddOdd = SwitchOdd.OutPort( 'Odd' , 'long' ) - OSwitchOddEven = SwitchOdd.OutPort( 'Even' , 'int' ) - OSwitchOdda = SwitchOdd.OutPort( 'a' , 'int' ) - OSwitchOddOddEven = SwitchOdd.OutPort( 'OddEven' , 'string' ) - OSwitchOddDefault = SwitchOdd.GetOutPort( 'Default' ) - - PySwitchEven = [] - PySwitchEven.append( 'from time import * ' ) - PySwitchEven.append( 'def SwitchEven(a) : ' ) - PySwitchEven.append( ' sleep(1) ' ) - PySwitchEven.append( ' OddEven = 'Even' ' ) - PySwitchEven.append( ' if (a&1) != 0 : ' ) - PySwitchEven.append( ' OddEven = 'Odd' ' ) - PySwitchEven.append( ' return a & 1,1-(a&1),a,OddEven ' ) - SwitchEven,EndOfSwitchEven = GraphLoopSwitchsBranches_1.SNode( 'SwitchEven' , PySwitchEven ) - EndOfSwitchEven.SetName( 'EndOfSwitchEven' ) - EndOfSwitchEven.SetAuthor( '' ) - EndOfSwitchEven.SetComment( 'Compute Node' ) - EndOfSwitchEven.Coords( 722 , 425 ) - PyEndOfSwitchEven = [] - PyEndOfSwitchEven.append( 'from time import * ' ) - PyEndOfSwitchEven.append( 'def EndOfSwitchEven(a,Even,Odd,OddEven) : ' ) - PyEndOfSwitchEven.append( ' sleep(1) ' ) - PyEndOfSwitchEven.append( ' return a,Even ' ) - EndOfSwitchEven.SetPyFunction( 'EndOfSwitchEven' , PyEndOfSwitchEven ) - IEndOfSwitchEvena = EndOfSwitchEven.InPort( 'a' , 'long' ) - IEndOfSwitchEvenEven = EndOfSwitchEven.InPort( 'Even' , 'boolean' ) - IEndOfSwitchEvenOdd = EndOfSwitchEven.InPort( 'Odd' , 'long' ) - IEndOfSwitchEvenOddEven = EndOfSwitchEven.InPort( 'OddEven' , 'string' ) - 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( 228 , 425 ) - ISwitchEvena = SwitchEven.InPort( 'a' , 'long' ) - ISwitchEvenGate = SwitchEven.GetInPort( 'Gate' ) - OSwitchEvenOdd = SwitchEven.OutPort( 'Odd' , 'long' ) - OSwitchEvenEven = SwitchEven.OutPort( 'Even' , 'int' ) - OSwitchEvena = SwitchEven.OutPort( 'a' , 'int' ) - OSwitchEvenOddEven = SwitchEven.OutPort( 'OddEven' , 'string' ) - OSwitchEvenDefault = SwitchEven.GetOutPort( 'Default' ) - - # Creation of Links - LIsOddaEndOfSwitchOdda = GraphLoopSwitchsBranches_1.Link( OIsOdda , IEndOfSwitchOdda ) - - LIsOddOddEndOfSwitchOddOdd = GraphLoopSwitchsBranches_1.Link( OIsOddOdd , IEndOfSwitchOddOdd ) - - LSwitchOddOddIsOddGate = GraphLoopSwitchsBranches_1.Link( OSwitchOddOdd , IIsOddGate ) - - LSwitchOddEvenIsNotOddEven = GraphLoopSwitchsBranches_1.Link( OSwitchOddEven , IIsNotOddEven ) - - LSwitchOddaIsOdda = GraphLoopSwitchsBranches_1.Link( OSwitchOdda , IIsOdda ) - - LSwitchOddOddEvenEndOfSwitchOddOddEven = GraphLoopSwitchsBranches_1.Link( OSwitchOddOddEven , IEndOfSwitchOddOddEven ) - - LSwitchOddDefaultEndOfSwitchOddDefault = GraphLoopSwitchsBranches_1.Link( OSwitchOddDefault , IEndOfSwitchOddDefault ) - - LEndOfSwitchOddaSwitchsCompareaOdd = GraphLoopSwitchsBranches_1.Link( OEndOfSwitchOdda , ISwitchsCompareaOdd ) - - LEndOfSwitchOddOddSwitchsCompareOdd = GraphLoopSwitchsBranches_1.Link( OEndOfSwitchOddOdd , ISwitchsCompareOdd ) - - LIsEvenaEndOfSwitchEvena = GraphLoopSwitchsBranches_1.Link( OIsEvena , IEndOfSwitchEvena ) - - LIsEvenEvenEndOfSwitchEvenEven = GraphLoopSwitchsBranches_1.Link( OIsEvenEven , IEndOfSwitchEvenEven ) - - LLoopIndexSwitchOdda = GraphLoopSwitchsBranches_1.Link( OLoopIndex , ISwitchOdda ) - - LLoopIndexSwitchEvena = GraphLoopSwitchsBranches_1.Link( OLoopIndex , ISwitchEvena ) - - LLoopIndexSwitchsCompareIndex = GraphLoopSwitchsBranches_1.Link( OLoopIndex , ISwitchsCompareIndex ) - - LLoopMinEndOfLoopMin = GraphLoopSwitchsBranches_1.Link( OLoopMin , IEndOfLoopMin ) - - LLoopMaxEndOfLoopMax = GraphLoopSwitchsBranches_1.Link( OLoopMax , IEndOfLoopMax ) - - LSwitchEvenOddIsNotEvenOdd = GraphLoopSwitchsBranches_1.Link( OSwitchEvenOdd , IIsNotEvenOdd ) - - LSwitchEvenEvenIsEvenGate = GraphLoopSwitchsBranches_1.Link( OSwitchEvenEven , IIsEvenGate ) - - LSwitchEvenaIsEvena = GraphLoopSwitchsBranches_1.Link( OSwitchEvena , IIsEvena ) - - LSwitchEvenOddEvenEndOfSwitchEvenOddEven = GraphLoopSwitchsBranches_1.Link( OSwitchEvenOddEven , IEndOfSwitchEvenOddEven ) - - LSwitchEvenDefaultEndOfSwitchEvenDefault = GraphLoopSwitchsBranches_1.Link( OSwitchEvenDefault , IEndOfSwitchEvenDefault ) - - LEndOfSwitchEvenaSwitchsCompareaEven = GraphLoopSwitchsBranches_1.Link( OEndOfSwitchEvena , ISwitchsCompareaEven ) - - LEndOfSwitchEvenEvenSwitchsCompareEven = GraphLoopSwitchsBranches_1.Link( OEndOfSwitchEvenEven , ISwitchsCompareEven ) - - LSwitchsCompareIndexEndOfLoopIndex = GraphLoopSwitchsBranches_1.Link( OSwitchsCompareIndex , IEndOfLoopIndex ) - - LIsNotOddEvenEndOfSwitchOddEven = GraphLoopSwitchsBranches_1.Link( OIsNotOddEven , IEndOfSwitchOddEven ) - - LIsNotEvenOddEndOfSwitchEvenOdd = GraphLoopSwitchsBranches_1.Link( OIsNotEvenOdd , IEndOfSwitchEvenOdd ) - - # Input datas - ILoopIndex.Input( 0 ) - ILoopMin.Input( 0 ) - ILoopMax.Input( 23 ) - - # Output Ports of the graph - #OEndOfLoopIndex = EndOfLoop.GetOutPort( 'Index' ) - #OEndOfLoopMin = EndOfLoop.GetOutPort( 'Min' ) - #OEndOfLoopMax = EndOfLoop.GetOutPort( 'Max' ) - return GraphLoopSwitchsBranches_1 - - -GraphLoopSwitchsBranches_1 = DefGraphLoopSwitchsBranches_1() diff --git a/Superv/Python/GraphLoopSwitchsBranchesDefaultAborted.py b/Superv/Python/GraphLoopSwitchsBranchesDefaultAborted.py deleted file mode 100644 index 8e3c1f9..0000000 --- a/Superv/Python/GraphLoopSwitchsBranchesDefaultAborted.py +++ /dev/null @@ -1,367 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphLoopSwitchsBranchesdefaultAborted -# -from SuperV import * - -# Graph creation of GraphLoopSwitchsBranchesdefaultAborted -def DefGraphLoopSwitchsBranchesdefaultAborted() : - GraphLoopSwitchsBranchesdefaultAborted = Graph( 'GraphLoopSwitchsBranchesdefaultAborted' ) - GraphLoopSwitchsBranchesdefaultAborted.SetName( 'GraphLoopSwitchsBranchesdefaultAborted' ) - GraphLoopSwitchsBranchesdefaultAborted.SetAuthor( 'JR' ) - GraphLoopSwitchsBranchesdefaultAborted.SetComment( '' ) - GraphLoopSwitchsBranchesdefaultAborted.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,1 ' ) - IsOdd = GraphLoopSwitchsBranchesdefaultAborted.INode( 'IsOdd' , PyIsOdd ) - IsOdd.SetName( 'IsOdd' ) - IsOdd.SetAuthor( '' ) - IsOdd.SetComment( 'Python function' ) - IsOdd.Coords( 476 , 2 ) - IIsOdda = IsOdd.InPort( 'a' , 'long' ) - IIsOddGate = IsOdd.GetInPort( 'Gate' ) - OIsOdda = IsOdd.OutPort( 'a' , 'long' ) - OIsOddOdd = IsOdd.OutPort( 'Odd' , '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,1 ' ) - IsEven = GraphLoopSwitchsBranchesdefaultAborted.INode( 'IsEven' , PyIsEven ) - IsEven.SetName( 'IsEven' ) - IsEven.SetAuthor( '' ) - IsEven.SetComment( 'Python function' ) - IsEven.Coords( 472 , 724 ) - IIsEvena = IsEven.InPort( 'a' , 'long' ) - IIsEvenGate = IsEven.GetInPort( 'Gate' ) - OIsEvena = IsEven.OutPort( 'a' , 'long' ) - OIsEvenEven = IsEven.OutPort( 'Even' , 'long' ) - OIsEvenGate = IsEven.GetOutPort( 'Gate' ) - - PySwitchsCompare = [] - PySwitchsCompare.append( 'from time import * ' ) - PySwitchsCompare.append( 'def SwitchsCompare(aOdd,Odd,aEven,Even,Index) : ' ) - PySwitchsCompare.append( ' sleep(1) ' ) - PySwitchsCompare.append( ' return Index ' ) - SwitchsCompare = GraphLoopSwitchsBranchesdefaultAborted.INode( 'SwitchsCompare' , PySwitchsCompare ) - SwitchsCompare.SetName( 'SwitchsCompare' ) - SwitchsCompare.SetAuthor( '' ) - SwitchsCompare.SetComment( 'Compute Node' ) - SwitchsCompare.Coords( 916 , 269 ) - ISwitchsCompareaOdd = SwitchsCompare.InPort( 'aOdd' , 'long' ) - ISwitchsCompareOdd = SwitchsCompare.InPort( 'Odd' , 'boolean' ) - ISwitchsCompareaEven = SwitchsCompare.InPort( 'aEven' , 'long' ) - ISwitchsCompareEven = SwitchsCompare.InPort( 'Even' , 'boolean' ) - ISwitchsCompareIndex = SwitchsCompare.InPort( 'Index' , 'long' ) - ISwitchsCompareGate = SwitchsCompare.GetInPort( 'Gate' ) - OSwitchsCompareIndex = SwitchsCompare.OutPort( 'Index' , 'long' ) - OSwitchsCompareGate = SwitchsCompare.GetOutPort( 'Gate' ) - - PyIsNotOdd = [] - PyIsNotOdd.append( 'from time import * ' ) - PyIsNotOdd.append( 'def IsNotOdd(Even) : ' ) - PyIsNotOdd.append( ' sleep(1) ' ) - PyIsNotOdd.append( ' return Even ' ) - IsNotOdd = GraphLoopSwitchsBranchesdefaultAborted.INode( 'IsNotOdd' , PyIsNotOdd ) - IsNotOdd.SetName( 'IsNotOdd' ) - IsNotOdd.SetAuthor( '' ) - IsNotOdd.SetComment( 'Compute Node' ) - IsNotOdd.Coords( 477 , 137 ) - IIsNotOddEven = IsNotOdd.InPort( 'Even' , 'long' ) - IIsNotOddGate = IsNotOdd.GetInPort( 'Gate' ) - OIsNotOddEven = IsNotOdd.OutPort( 'Even' , 'long' ) - OIsNotOddGate = IsNotOdd.GetOutPort( 'Gate' ) - - PyIsNotEven = [] - PyIsNotEven.append( 'from time import * ' ) - PyIsNotEven.append( 'def IsNotEven(Odd) : ' ) - PyIsNotEven.append( ' sleep(1) ' ) - PyIsNotEven.append( ' return Odd ' ) - IsNotEven = GraphLoopSwitchsBranchesdefaultAborted.INode( 'IsNotEven' , PyIsNotEven ) - IsNotEven.SetName( 'IsNotEven' ) - IsNotEven.SetAuthor( '' ) - IsNotEven.SetComment( 'Compute Node' ) - IsNotEven.Coords( 475 , 601 ) - IIsNotEvenOdd = IsNotEven.InPort( 'Odd' , 'long' ) - IIsNotEvenGate = IsNotEven.GetInPort( 'Gate' ) - OIsNotEvenOdd = IsNotEven.OutPort( 'Odd' , 'long' ) - OIsNotEvenGate = IsNotEven.GetOutPort( 'Gate' ) - - PyIsOdddefault = [] - PyIsOdddefault.append( 'from time import * ' ) - PyIsOdddefault.append( 'def IsOdddefault(a) : ' ) - PyIsOdddefault.append( ' sleep(1) ' ) - PyIsOdddefault.append( ' return a,0 ' ) - PyIsOdddefault.append( '' ) - IsOdddefault = GraphLoopSwitchsBranchesdefaultAborted.INode( 'IsOdddefault' , PyIsOdddefault ) - IsOdddefault.SetName( 'IsOdddefault' ) - IsOdddefault.SetAuthor( '' ) - IsOdddefault.SetComment( 'Compute Node' ) - IsOdddefault.Coords( 477 , 285 ) - IIsOdddefaulta = IsOdddefault.InPort( 'a' , 'long' ) - IIsOdddefaultGate = IsOdddefault.GetInPort( 'Gate' ) - OIsOdddefaulta = IsOdddefault.OutPort( 'a' , 'long' ) - OIsOdddefaultOdd = IsOdddefault.OutPort( 'Odd' , 'long' ) - OIsOdddefaultGate = IsOdddefault.GetOutPort( 'Gate' ) - - PyIsEvendefault = [] - PyIsEvendefault.append( 'from time import * ' ) - PyIsEvendefault.append( 'def IsEvendefault(a) : ' ) - PyIsEvendefault.append( ' sleep(1) ' ) - PyIsEvendefault.append( ' return a,0 ' ) - PyIsEvendefault.append( '' ) - IsEvendefault = GraphLoopSwitchsBranchesdefaultAborted.INode( 'IsEvendefault' , PyIsEvendefault ) - IsEvendefault.SetName( 'IsEvendefault' ) - IsEvendefault.SetAuthor( '' ) - IsEvendefault.SetComment( 'Compute Node' ) - IsEvendefault.Coords( 478 , 434 ) - IIsEvendefaulta = IsEvendefault.InPort( 'a' , 'long' ) - IIsEvendefaultGate = IsEvendefault.GetInPort( 'Gate' ) - OIsEvendefaulta = IsEvendefault.OutPort( 'a' , 'long' ) - OIsEvendefaultEven = IsEvendefault.OutPort( 'Even' , 'long' ) - OIsEvendefaultGate = IsEvendefault.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyLoop = [] - PyLoop.append( 'def InitLoop(Index,Min,Max) : ' ) - PyLoop.append( ' Index = Max ' ) - PyLoop.append( ' return Index,Min,Max ' ) - PyMoreLoop = [] - PyMoreLoop.append( 'def MoreLoop(Index,Min,Max) : ' ) - PyMoreLoop.append( ' if Index >= Min : ' ) - 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 = GraphLoopSwitchsBranchesdefaultAborted.LNode( 'InitLoop' , PyLoop , 'MoreLoop' , PyMoreLoop , 'NextLoop' , PyNextLoop ) - EndOfLoop.SetName( 'EndOfLoop' ) - EndOfLoop.SetAuthor( '' ) - EndOfLoop.SetComment( 'Compute Node' ) - EndOfLoop.Coords( 1097 , 309 ) - 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( 18 , 389 ) - - # Creation of Switch Nodes - PySwitchOdd = [] - PySwitchOdd.append( 'from time import * ' ) - PySwitchOdd.append( 'def SwitchOdd(a) : ' ) - PySwitchOdd.append( ' sleep(1) ' ) - PySwitchOdd.append( ' if a <= 0 : ' ) - PySwitchOdd.append( ' OddEven = '<=0' ' ) - PySwitchOdd.append( ' return 0,0,0,a,OddEven ' ) - PySwitchOdd.append( ' OddEven = 'Odd' ' ) - PySwitchOdd.append( ' if (a&1) == 0 : ' ) - PySwitchOdd.append( ' OddEven = 'Even' ' ) - PySwitchOdd.append( ' return a & 1,1-(a&1),1-(a&1),a,OddEven ' ) - SwitchOdd,EndOfSwitchOdd = GraphLoopSwitchsBranchesdefaultAborted.SNode( 'SwitchOdd' , PySwitchOdd ) - EndOfSwitchOdd.SetName( 'EndOfSwitchOdd' ) - EndOfSwitchOdd.SetAuthor( '' ) - EndOfSwitchOdd.SetComment( 'Compute Node' ) - EndOfSwitchOdd.Coords( 718 , 162 ) - PyEndOfSwitchOdd = [] - PyEndOfSwitchOdd.append( 'from time import * ' ) - PyEndOfSwitchOdd.append( 'def EndOfSwitchOdd(a,Odd,Even,OddEven) : ' ) - PyEndOfSwitchOdd.append( ' sleep(1) ' ) - PyEndOfSwitchOdd.append( ' return a,Odd ' ) - EndOfSwitchOdd.SetPyFunction( 'EndOfSwitchOdd' , PyEndOfSwitchOdd ) - IEndOfSwitchOdda = EndOfSwitchOdd.InPort( 'a' , 'long' ) - IEndOfSwitchOddOdd = EndOfSwitchOdd.InPort( 'Odd' , 'boolean' ) - IEndOfSwitchOddEven = EndOfSwitchOdd.InPort( 'Even' , 'long' ) - IEndOfSwitchOddOddEven = EndOfSwitchOdd.InPort( 'OddEven' , '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 , 142 ) - ISwitchOdda = SwitchOdd.InPort( 'a' , 'long' ) - ISwitchOddGate = SwitchOdd.GetInPort( 'Gate' ) - OSwitchOddOdd = SwitchOdd.OutPort( 'Odd' , 'long' ) - OSwitchOddEven = SwitchOdd.OutPort( 'Even' , 'int' ) - OSwitchOdddefault = SwitchOdd.OutPort( 'default' , 'long' ) - OSwitchOdda = SwitchOdd.OutPort( 'a' , 'long' ) - OSwitchOddOddEven = SwitchOdd.OutPort( 'OddEven' , 'string' ) - OSwitchOddDefault = SwitchOdd.GetOutPort( 'Default' ) - - PySwitchEven = [] - PySwitchEven.append( 'from time import * ' ) - PySwitchEven.append( 'def SwitchEven(a) : ' ) - PySwitchEven.append( ' sleep(1) ' ) - PySwitchEven.append( ' if a <= 0 : ' ) - PySwitchEven.append( ' OddEven = '<=0' ' ) - PySwitchEven.append( ' return 0,0,0,a,OddEven ' ) - PySwitchEven.append( ' OddEven = 'Even' ' ) - PySwitchEven.append( ' if (a&1) != 0 : ' ) - PySwitchEven.append( ' OddEven = 'Odd' ' ) - PySwitchEven.append( ' print (a&1),1-(a&1),(a&1),a,OddEven ' ) - PySwitchEven.append( ' return (a&1),1-(a&1),(a&1),a,OddEven ' ) - SwitchEven,EndOfSwitchEven = GraphLoopSwitchsBranchesdefaultAborted.SNode( 'SwitchEven' , PySwitchEven ) - EndOfSwitchEven.SetName( 'EndOfSwitchEven' ) - EndOfSwitchEven.SetAuthor( '' ) - EndOfSwitchEven.SetComment( 'Compute Node' ) - EndOfSwitchEven.Coords( 721 , 477 ) - PyEndOfSwitchEven = [] - PyEndOfSwitchEven.append( 'from time import * ' ) - PyEndOfSwitchEven.append( 'def EndOfSwitchEven(a,Even,Odd,OddEven) : ' ) - PyEndOfSwitchEven.append( ' sleep(1) ' ) - PyEndOfSwitchEven.append( ' return a,Even ' ) - EndOfSwitchEven.SetPyFunction( 'EndOfSwitchEven' , PyEndOfSwitchEven ) - IEndOfSwitchEvena = EndOfSwitchEven.InPort( 'a' , 'long' ) - IEndOfSwitchEvenEven = EndOfSwitchEven.InPort( 'Even' , 'boolean' ) - IEndOfSwitchEvenOdd = EndOfSwitchEven.InPort( 'Odd' , 'long' ) - IEndOfSwitchEvenOddEven = EndOfSwitchEven.InPort( 'OddEven' , 'string' ) - 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( 230 , 457 ) - ISwitchEvena = SwitchEven.InPort( 'a' , 'long' ) - ISwitchEvenGate = SwitchEven.GetInPort( 'Gate' ) - OSwitchEvenOdd = SwitchEven.OutPort( 'Odd' , 'long' ) - OSwitchEvenEven = SwitchEven.OutPort( 'Even' , 'int' ) - OSwitchEvendefault = SwitchEven.OutPort( 'default' , 'long' ) - OSwitchEvena = SwitchEven.OutPort( 'a' , 'int' ) - OSwitchEvenOddEven = SwitchEven.OutPort( 'OddEven' , 'string' ) - OSwitchEvenDefault = SwitchEven.GetOutPort( 'Default' ) - - # Creation of Links - LIsOddaEndOfSwitchOdda = GraphLoopSwitchsBranchesdefaultAborted.Link( OIsOdda , IEndOfSwitchOdda ) - - LIsOddOddEndOfSwitchOddOdd = GraphLoopSwitchsBranchesdefaultAborted.Link( OIsOddOdd , IEndOfSwitchOddOdd ) - - LSwitchOddOddIsOddGate = GraphLoopSwitchsBranchesdefaultAborted.Link( OSwitchOddOdd , IIsOddGate ) - - LSwitchOddEvenIsNotOddEven = GraphLoopSwitchsBranchesdefaultAborted.Link( OSwitchOddEven , IIsNotOddEven ) - - LSwitchOdddefaultIsOdddefaultGate = GraphLoopSwitchsBranchesdefaultAborted.Link( OSwitchOdddefault , IIsOdddefaultGate ) - - LSwitchOddaIsOdddefaulta = GraphLoopSwitchsBranchesdefaultAborted.Link( OSwitchOdda , IIsOdddefaulta ) - - LSwitchOddaIsOdda = GraphLoopSwitchsBranchesdefaultAborted.Link( OSwitchOdda , IIsOdda ) - - LSwitchOddOddEvenEndOfSwitchOddOddEven = GraphLoopSwitchsBranchesdefaultAborted.Link( OSwitchOddOddEven , IEndOfSwitchOddOddEven ) - - LEndOfSwitchOddaSwitchsCompareaOdd = GraphLoopSwitchsBranchesdefaultAborted.Link( OEndOfSwitchOdda , ISwitchsCompareaOdd ) - - LEndOfSwitchOddOddSwitchsCompareOdd = GraphLoopSwitchsBranchesdefaultAborted.Link( OEndOfSwitchOddOdd , ISwitchsCompareOdd ) - - LIsEvenaEndOfSwitchEvena = GraphLoopSwitchsBranchesdefaultAborted.Link( OIsEvena , IEndOfSwitchEvena ) - - LIsEvenEvenEndOfSwitchEvenEven = GraphLoopSwitchsBranchesdefaultAborted.Link( OIsEvenEven , IEndOfSwitchEvenEven ) - - LLoopIndexSwitchsCompareIndex = GraphLoopSwitchsBranchesdefaultAborted.Link( OLoopIndex , ISwitchsCompareIndex ) - - LLoopIndexSwitchOdda = GraphLoopSwitchsBranchesdefaultAborted.Link( OLoopIndex , ISwitchOdda ) - - LLoopIndexSwitchEvena = GraphLoopSwitchsBranchesdefaultAborted.Link( OLoopIndex , ISwitchEvena ) - - LLoopMinEndOfLoopMin = GraphLoopSwitchsBranchesdefaultAborted.Link( OLoopMin , IEndOfLoopMin ) - - LLoopMaxEndOfLoopMax = GraphLoopSwitchsBranchesdefaultAborted.Link( OLoopMax , IEndOfLoopMax ) - - LSwitchEvenOddIsNotEvenOdd = GraphLoopSwitchsBranchesdefaultAborted.Link( OSwitchEvenOdd , IIsNotEvenOdd ) - - LSwitchEvenEvenIsEvenGate = GraphLoopSwitchsBranchesdefaultAborted.Link( OSwitchEvenEven , IIsEvenGate ) - - LSwitchEvendefaultIsEvendefaultGate = GraphLoopSwitchsBranchesdefaultAborted.Link( OSwitchEvendefault , IIsEvendefaultGate ) - - LSwitchEvenaIsEvena = GraphLoopSwitchsBranchesdefaultAborted.Link( OSwitchEvena , IIsEvena ) - - LSwitchEvenaIsEvendefaulta = GraphLoopSwitchsBranchesdefaultAborted.Link( OSwitchEvena , IIsEvendefaulta ) - - LSwitchEvenOddEvenEndOfSwitchEvenOddEven = GraphLoopSwitchsBranchesdefaultAborted.Link( OSwitchEvenOddEven , IEndOfSwitchEvenOddEven ) - - LEndOfSwitchEvenaSwitchsCompareaEven = GraphLoopSwitchsBranchesdefaultAborted.Link( OEndOfSwitchEvena , ISwitchsCompareaEven ) - - LEndOfSwitchEvenEvenSwitchsCompareEven = GraphLoopSwitchsBranchesdefaultAborted.Link( OEndOfSwitchEvenEven , ISwitchsCompareEven ) - - LSwitchsCompareIndexEndOfLoopIndex = GraphLoopSwitchsBranchesdefaultAborted.Link( OSwitchsCompareIndex , IEndOfLoopIndex ) - - LIsNotOddEvenEndOfSwitchOddEven = GraphLoopSwitchsBranchesdefaultAborted.Link( OIsNotOddEven , IEndOfSwitchOddEven ) - - LIsNotEvenOddEndOfSwitchEvenOdd = GraphLoopSwitchsBranchesdefaultAborted.Link( OIsNotEvenOdd , IEndOfSwitchEvenOdd ) - - LIsOdddefaultaEndOfSwitchOdda = GraphLoopSwitchsBranchesdefaultAborted.Link( OIsOdddefaulta , IEndOfSwitchOdda ) - - LIsOdddefaultOddEndOfSwitchOddOdd = GraphLoopSwitchsBranchesdefaultAborted.Link( OIsOdddefaultOdd , IEndOfSwitchOddOdd ) - - LIsEvendefaultaEndOfSwitchEvena = GraphLoopSwitchsBranchesdefaultAborted.Link( OIsEvendefaulta , IEndOfSwitchEvena ) - - LIsEvendefaultEvenEndOfSwitchEvenEven = GraphLoopSwitchsBranchesdefaultAborted.Link( OIsEvendefaultEven , IEndOfSwitchEvenEven ) - - # Input datas - ILoopIndex.Input( 0 ) - ILoopMin.Input( -5 ) - ILoopMax.Input( 11 ) - - # Output Ports of the graph - #OEndOfLoopIndex = EndOfLoop.GetOutPort( 'Index' ) - #OEndOfLoopMin = EndOfLoop.GetOutPort( 'Min' ) - #OEndOfLoopMax = EndOfLoop.GetOutPort( 'Max' ) - return GraphLoopSwitchsBranchesdefaultAborted - - -GraphLoopSwitchsBranchesdefaultAborted = DefGraphLoopSwitchsBranchesdefaultAborted() diff --git a/Superv/Python/GraphLoopSwitchsBranchesdefault.py b/Superv/Python/GraphLoopSwitchsBranchesdefault.py deleted file mode 100644 index a8dd8ab..0000000 --- a/Superv/Python/GraphLoopSwitchsBranchesdefault.py +++ /dev/null @@ -1,371 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphLoopSwitchsBranchesdefault -# -from SuperV import * - -# Graph creation of GraphLoopSwitchsBranchesdefault -def DefGraphLoopSwitchsBranchesdefault() : - GraphLoopSwitchsBranchesdefault = Graph( 'GraphLoopSwitchsBranchesdefault' ) - GraphLoopSwitchsBranchesdefault.SetName( 'GraphLoopSwitchsBranchesdefault' ) - GraphLoopSwitchsBranchesdefault.SetAuthor( 'JR' ) - GraphLoopSwitchsBranchesdefault.SetComment( '' ) - GraphLoopSwitchsBranchesdefault.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,1 ' ) - IsOdd = GraphLoopSwitchsBranchesdefault.INode( 'IsOdd' , PyIsOdd ) - IsOdd.SetName( 'IsOdd' ) - IsOdd.SetAuthor( '' ) - IsOdd.SetComment( 'Python function' ) - IsOdd.Coords( 476 , 2 ) - IIsOdda = IsOdd.InPort( 'a' , 'long' ) - IIsOddGate = IsOdd.GetInPort( 'Gate' ) - OIsOdda = IsOdd.OutPort( 'a' , 'long' ) - OIsOddOdd = IsOdd.OutPort( 'Odd' , '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,1 ' ) - IsEven = GraphLoopSwitchsBranchesdefault.INode( 'IsEven' , PyIsEven ) - IsEven.SetName( 'IsEven' ) - IsEven.SetAuthor( '' ) - IsEven.SetComment( 'Python function' ) - IsEven.Coords( 472 , 724 ) - IIsEvena = IsEven.InPort( 'a' , 'long' ) - IIsEvenGate = IsEven.GetInPort( 'Gate' ) - OIsEvena = IsEven.OutPort( 'a' , 'long' ) - OIsEvenEven = IsEven.OutPort( 'Even' , 'long' ) - OIsEvenGate = IsEven.GetOutPort( 'Gate' ) - - PySwitchsCompare = [] - PySwitchsCompare.append( 'from time import * ' ) - PySwitchsCompare.append( 'def SwitchsCompare(aOdd,Odd,aEven,Even,Index) : ' ) - PySwitchsCompare.append( ' sleep(1) ' ) - PySwitchsCompare.append( ' return Index ' ) - SwitchsCompare = GraphLoopSwitchsBranchesdefault.INode( 'SwitchsCompare' , PySwitchsCompare ) - SwitchsCompare.SetName( 'SwitchsCompare' ) - SwitchsCompare.SetAuthor( '' ) - SwitchsCompare.SetComment( 'Compute Node' ) - SwitchsCompare.Coords( 916 , 269 ) - ISwitchsCompareaOdd = SwitchsCompare.InPort( 'aOdd' , 'long' ) - ISwitchsCompareOdd = SwitchsCompare.InPort( 'Odd' , 'boolean' ) - ISwitchsCompareaEven = SwitchsCompare.InPort( 'aEven' , 'long' ) - ISwitchsCompareEven = SwitchsCompare.InPort( 'Even' , 'boolean' ) - ISwitchsCompareIndex = SwitchsCompare.InPort( 'Index' , 'long' ) - ISwitchsCompareGate = SwitchsCompare.GetInPort( 'Gate' ) - OSwitchsCompareIndex = SwitchsCompare.OutPort( 'Index' , 'long' ) - OSwitchsCompareGate = SwitchsCompare.GetOutPort( 'Gate' ) - - PyIsNotOdd = [] - PyIsNotOdd.append( 'from time import * ' ) - PyIsNotOdd.append( 'def IsNotOdd(Even) : ' ) - PyIsNotOdd.append( ' sleep(1) ' ) - PyIsNotOdd.append( ' return Even ' ) - IsNotOdd = GraphLoopSwitchsBranchesdefault.INode( 'IsNotOdd' , PyIsNotOdd ) - IsNotOdd.SetName( 'IsNotOdd' ) - IsNotOdd.SetAuthor( '' ) - IsNotOdd.SetComment( 'Compute Node' ) - IsNotOdd.Coords( 477 , 137 ) - IIsNotOddEven = IsNotOdd.InPort( 'Even' , 'long' ) - IIsNotOddGate = IsNotOdd.GetInPort( 'Gate' ) - OIsNotOddEven = IsNotOdd.OutPort( 'Even' , 'long' ) - OIsNotOddGate = IsNotOdd.GetOutPort( 'Gate' ) - - PyIsNotEven = [] - PyIsNotEven.append( 'from time import * ' ) - PyIsNotEven.append( 'def IsNotEven(Odd) : ' ) - PyIsNotEven.append( ' sleep(1) ' ) - PyIsNotEven.append( ' return Odd ' ) - IsNotEven = GraphLoopSwitchsBranchesdefault.INode( 'IsNotEven' , PyIsNotEven ) - IsNotEven.SetName( 'IsNotEven' ) - IsNotEven.SetAuthor( '' ) - IsNotEven.SetComment( 'Compute Node' ) - IsNotEven.Coords( 475 , 601 ) - IIsNotEvenOdd = IsNotEven.InPort( 'Odd' , 'long' ) - IIsNotEvenGate = IsNotEven.GetInPort( 'Gate' ) - OIsNotEvenOdd = IsNotEven.OutPort( 'Odd' , 'long' ) - OIsNotEvenGate = IsNotEven.GetOutPort( 'Gate' ) - - PyIsOdddefault = [] - PyIsOdddefault.append( 'from time import * ' ) - PyIsOdddefault.append( 'def IsOdddefault(a) : ' ) - PyIsOdddefault.append( ' sleep(1) ' ) - PyIsOdddefault.append( ' return a,0 ' ) - PyIsOdddefault.append( ' ' ) - IsOdddefault = GraphLoopSwitchsBranchesdefault.INode( 'IsOdddefault' , PyIsOdddefault ) - IsOdddefault.SetName( 'IsOdddefault' ) - IsOdddefault.SetAuthor( '' ) - IsOdddefault.SetComment( 'Compute Node' ) - IsOdddefault.Coords( 477 , 285 ) - IIsOdddefaulta = IsOdddefault.InPort( 'a' , 'long' ) - IIsOdddefaultGate = IsOdddefault.GetInPort( 'Gate' ) - OIsOdddefaulta = IsOdddefault.OutPort( 'a' , 'long' ) - OIsOdddefaultOdd = IsOdddefault.OutPort( 'Odd' , 'long' ) - OIsOdddefaultGate = IsOdddefault.GetOutPort( 'Gate' ) - - PyIsEvendefault = [] - PyIsEvendefault.append( 'from time import * ' ) - PyIsEvendefault.append( 'def IsEvendefault(a) : ' ) - PyIsEvendefault.append( ' sleep(1) ' ) - PyIsEvendefault.append( ' return a,0 ' ) - PyIsEvendefault.append( ' ' ) - IsEvendefault = GraphLoopSwitchsBranchesdefault.INode( 'IsEvendefault' , PyIsEvendefault ) - IsEvendefault.SetName( 'IsEvendefault' ) - IsEvendefault.SetAuthor( '' ) - IsEvendefault.SetComment( 'Compute Node' ) - IsEvendefault.Coords( 478 , 434 ) - IIsEvendefaulta = IsEvendefault.InPort( 'a' , 'long' ) - IIsEvendefaultGate = IsEvendefault.GetInPort( 'Gate' ) - OIsEvendefaulta = IsEvendefault.OutPort( 'a' , 'long' ) - OIsEvendefaultEven = IsEvendefault.OutPort( 'Even' , 'long' ) - OIsEvendefaultGate = IsEvendefault.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyLoop = [] - PyLoop.append( 'def InitLoop(Index,Min,Max) : ' ) - PyLoop.append( ' Index = Max ' ) - PyLoop.append( ' return Index,Min,Max ' ) - PyMoreLoop = [] - PyMoreLoop.append( 'def MoreLoop(Index,Min,Max) : ' ) - PyMoreLoop.append( ' if Index >= Min : ' ) - 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 = GraphLoopSwitchsBranchesdefault.LNode( 'InitLoop' , PyLoop , 'MoreLoop' , PyMoreLoop , 'NextLoop' , PyNextLoop ) - EndOfLoop.SetName( 'EndOfLoop' ) - EndOfLoop.SetAuthor( '' ) - EndOfLoop.SetComment( 'Compute Node' ) - EndOfLoop.Coords( 1097 , 309 ) - 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( 18 , 389 ) - - # Creation of Switch Nodes - PySwitchOdd = [] - PySwitchOdd.append( 'from time import * ' ) - PySwitchOdd.append( 'def SwitchOdd(a) : ' ) - PySwitchOdd.append( ' sleep(1) ' ) - PySwitchOdd.append( ' if a <= 0 : ' ) - PySwitchOdd.append( ' OddEven = '<=0' ' ) - PySwitchOdd.append( ' return 0,0,0,a,OddEven ' ) - PySwitchOdd.append( ' OddEven = 'Odd' ' ) - PySwitchOdd.append( ' if (a&1) == 0 : ' ) - PySwitchOdd.append( ' OddEven = 'Even' ' ) - PySwitchOdd.append( ' return a & 1,1-(a&1),1-(a&1),a,OddEven ' ) - SwitchOdd,EndOfSwitchOdd = GraphLoopSwitchsBranchesdefault.SNode( 'SwitchOdd' , PySwitchOdd ) - EndOfSwitchOdd.SetName( 'EndOfSwitchOdd' ) - EndOfSwitchOdd.SetAuthor( '' ) - EndOfSwitchOdd.SetComment( 'Compute Node' ) - EndOfSwitchOdd.Coords( 718 , 162 ) - PyEndOfSwitchOdd = [] - PyEndOfSwitchOdd.append( 'from time import * ' ) - PyEndOfSwitchOdd.append( 'def EndOfSwitchOdd(a,Odd,Even,OddEven) : ' ) - PyEndOfSwitchOdd.append( ' sleep(1) ' ) - PyEndOfSwitchOdd.append( ' return a,Odd ' ) - EndOfSwitchOdd.SetPyFunction( 'EndOfSwitchOdd' , PyEndOfSwitchOdd ) - IEndOfSwitchOdda = EndOfSwitchOdd.InPort( 'a' , 'long' ) - IEndOfSwitchOddOdd = EndOfSwitchOdd.InPort( 'Odd' , 'boolean' ) - IEndOfSwitchOddEven = EndOfSwitchOdd.InPort( 'Even' , 'long' ) - IEndOfSwitchOddOddEven = EndOfSwitchOdd.InPort( 'OddEven' , '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 , 142 ) - ISwitchOdda = SwitchOdd.InPort( 'a' , 'long' ) - ISwitchOddGate = SwitchOdd.GetInPort( 'Gate' ) - OSwitchOddOdd = SwitchOdd.OutPort( 'Odd' , 'long' ) - OSwitchOddEven = SwitchOdd.OutPort( 'Even' , 'int' ) - OSwitchOdddefault = SwitchOdd.OutPort( 'default' , 'long' ) - OSwitchOdda = SwitchOdd.OutPort( 'a' , 'long' ) - OSwitchOddOddEven = SwitchOdd.OutPort( 'OddEven' , 'string' ) - OSwitchOddDefault = SwitchOdd.GetOutPort( 'Default' ) - - PySwitchEven = [] - PySwitchEven.append( 'from time import * ' ) - PySwitchEven.append( 'def SwitchEven(a) : ' ) - PySwitchEven.append( ' sleep(1) ' ) - PySwitchEven.append( ' if a <= 0 : ' ) - PySwitchEven.append( ' OddEven = '<=0' ' ) - PySwitchEven.append( ' return 0,0,0,a,OddEven ' ) - PySwitchEven.append( ' OddEven = 'Even' ' ) - PySwitchEven.append( ' if (a&1) != 0 : ' ) - PySwitchEven.append( ' OddEven = 'Odd' ' ) - PySwitchEven.append( ' print (a&1),1-(a&1),(a&1),a,OddEven ' ) - PySwitchEven.append( ' return (a&1),1-(a&1),(a&1),a,OddEven ' ) - SwitchEven,EndOfSwitchEven = GraphLoopSwitchsBranchesdefault.SNode( 'SwitchEven' , PySwitchEven ) - EndOfSwitchEven.SetName( 'EndOfSwitchEven' ) - EndOfSwitchEven.SetAuthor( '' ) - EndOfSwitchEven.SetComment( 'Compute Node' ) - EndOfSwitchEven.Coords( 721 , 477 ) - PyEndOfSwitchEven = [] - PyEndOfSwitchEven.append( 'from time import * ' ) - PyEndOfSwitchEven.append( 'def EndOfSwitchEven(a,Even,Odd,OddEven) : ' ) - PyEndOfSwitchEven.append( ' sleep(1) ' ) - PyEndOfSwitchEven.append( ' return a,Even ' ) - EndOfSwitchEven.SetPyFunction( 'EndOfSwitchEven' , PyEndOfSwitchEven ) - IEndOfSwitchEvena = EndOfSwitchEven.InPort( 'a' , 'long' ) - IEndOfSwitchEvenEven = EndOfSwitchEven.InPort( 'Even' , 'boolean' ) - IEndOfSwitchEvenOdd = EndOfSwitchEven.InPort( 'Odd' , 'long' ) - IEndOfSwitchEvenOddEven = EndOfSwitchEven.InPort( 'OddEven' , 'string' ) - 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( 230 , 457 ) - ISwitchEvena = SwitchEven.InPort( 'a' , 'long' ) - ISwitchEvenGate = SwitchEven.GetInPort( 'Gate' ) - OSwitchEvenOdd = SwitchEven.OutPort( 'Odd' , 'long' ) - OSwitchEvenEven = SwitchEven.OutPort( 'Even' , 'int' ) - OSwitchEvendefault = SwitchEven.OutPort( 'default' , 'long' ) - OSwitchEvena = SwitchEven.OutPort( 'a' , 'int' ) - OSwitchEvenOddEven = SwitchEven.OutPort( 'OddEven' , 'string' ) - OSwitchEvenDefault = SwitchEven.GetOutPort( 'Default' ) - - # Creation of Links - LIsOddaEndOfSwitchOdda = GraphLoopSwitchsBranchesdefault.Link( OIsOdda , IEndOfSwitchOdda ) - - LIsOddOddEndOfSwitchOddOdd = GraphLoopSwitchsBranchesdefault.Link( OIsOddOdd , IEndOfSwitchOddOdd ) - - LSwitchOddOddIsOddGate = GraphLoopSwitchsBranchesdefault.Link( OSwitchOddOdd , IIsOddGate ) - - LSwitchOddEvenIsNotOddEven = GraphLoopSwitchsBranchesdefault.Link( OSwitchOddEven , IIsNotOddEven ) - - LSwitchOdddefaultIsOdddefaultGate = GraphLoopSwitchsBranchesdefault.Link( OSwitchOdddefault , IIsOdddefaultGate ) - - LSwitchOddaIsOdddefaulta = GraphLoopSwitchsBranchesdefault.Link( OSwitchOdda , IIsOdddefaulta ) - - LSwitchOddaIsOdda = GraphLoopSwitchsBranchesdefault.Link( OSwitchOdda , IIsOdda ) - - LSwitchOddOddEvenEndOfSwitchOddOddEven = GraphLoopSwitchsBranchesdefault.Link( OSwitchOddOddEven , IEndOfSwitchOddOddEven ) - - LSwitchOddDefaultEndOfSwitchOddDefault = GraphLoopSwitchsBranchesdefault.Link( OSwitchOddDefault , IEndOfSwitchOddDefault ) - - LEndOfSwitchOddaSwitchsCompareaOdd = GraphLoopSwitchsBranchesdefault.Link( OEndOfSwitchOdda , ISwitchsCompareaOdd ) - - LEndOfSwitchOddOddSwitchsCompareOdd = GraphLoopSwitchsBranchesdefault.Link( OEndOfSwitchOddOdd , ISwitchsCompareOdd ) - - LIsEvenaEndOfSwitchEvena = GraphLoopSwitchsBranchesdefault.Link( OIsEvena , IEndOfSwitchEvena ) - - LIsEvenEvenEndOfSwitchEvenEven = GraphLoopSwitchsBranchesdefault.Link( OIsEvenEven , IEndOfSwitchEvenEven ) - - LLoopIndexSwitchsCompareIndex = GraphLoopSwitchsBranchesdefault.Link( OLoopIndex , ISwitchsCompareIndex ) - - LLoopIndexSwitchOdda = GraphLoopSwitchsBranchesdefault.Link( OLoopIndex , ISwitchOdda ) - - LLoopIndexSwitchEvena = GraphLoopSwitchsBranchesdefault.Link( OLoopIndex , ISwitchEvena ) - - LLoopMinEndOfLoopMin = GraphLoopSwitchsBranchesdefault.Link( OLoopMin , IEndOfLoopMin ) - - LLoopMaxEndOfLoopMax = GraphLoopSwitchsBranchesdefault.Link( OLoopMax , IEndOfLoopMax ) - - LSwitchEvenOddIsNotEvenOdd = GraphLoopSwitchsBranchesdefault.Link( OSwitchEvenOdd , IIsNotEvenOdd ) - - LSwitchEvenEvenIsEvenGate = GraphLoopSwitchsBranchesdefault.Link( OSwitchEvenEven , IIsEvenGate ) - - LSwitchEvendefaultIsEvendefaultGate = GraphLoopSwitchsBranchesdefault.Link( OSwitchEvendefault , IIsEvendefaultGate ) - - LSwitchEvenaIsEvena = GraphLoopSwitchsBranchesdefault.Link( OSwitchEvena , IIsEvena ) - - LSwitchEvenaIsEvendefaulta = GraphLoopSwitchsBranchesdefault.Link( OSwitchEvena , IIsEvendefaulta ) - - LSwitchEvenOddEvenEndOfSwitchEvenOddEven = GraphLoopSwitchsBranchesdefault.Link( OSwitchEvenOddEven , IEndOfSwitchEvenOddEven ) - - LSwitchEvenDefaultEndOfSwitchEvenDefault = GraphLoopSwitchsBranchesdefault.Link( OSwitchEvenDefault , IEndOfSwitchEvenDefault ) - - LEndOfSwitchEvenaSwitchsCompareaEven = GraphLoopSwitchsBranchesdefault.Link( OEndOfSwitchEvena , ISwitchsCompareaEven ) - - LEndOfSwitchEvenEvenSwitchsCompareEven = GraphLoopSwitchsBranchesdefault.Link( OEndOfSwitchEvenEven , ISwitchsCompareEven ) - - LSwitchsCompareIndexEndOfLoopIndex = GraphLoopSwitchsBranchesdefault.Link( OSwitchsCompareIndex , IEndOfLoopIndex ) - - LIsNotOddEvenEndOfSwitchOddEven = GraphLoopSwitchsBranchesdefault.Link( OIsNotOddEven , IEndOfSwitchOddEven ) - - LIsNotEvenOddEndOfSwitchEvenOdd = GraphLoopSwitchsBranchesdefault.Link( OIsNotEvenOdd , IEndOfSwitchEvenOdd ) - - LIsOdddefaultaEndOfSwitchOdda = GraphLoopSwitchsBranchesdefault.Link( OIsOdddefaulta , IEndOfSwitchOdda ) - - LIsOdddefaultOddEndOfSwitchOddOdd = GraphLoopSwitchsBranchesdefault.Link( OIsOdddefaultOdd , IEndOfSwitchOddOdd ) - - LIsEvendefaultaEndOfSwitchEvena = GraphLoopSwitchsBranchesdefault.Link( OIsEvendefaulta , IEndOfSwitchEvena ) - - LIsEvendefaultEvenEndOfSwitchEvenEven = GraphLoopSwitchsBranchesdefault.Link( OIsEvendefaultEven , IEndOfSwitchEvenEven ) - - # Input datas - ILoopIndex.Input( 0 ) - ILoopMin.Input( -5 ) - ILoopMax.Input( 23 ) - - # Output Ports of the graph - #OEndOfLoopIndex = EndOfLoop.GetOutPort( 'Index' ) - #OEndOfLoopMin = EndOfLoop.GetOutPort( 'Min' ) - #OEndOfLoopMax = EndOfLoop.GetOutPort( 'Max' ) - return GraphLoopSwitchsBranchesdefault - - -GraphLoopSwitchsBranchesdefault = DefGraphLoopSwitchsBranchesdefault() diff --git a/Superv/Python/GraphLoopSwitchsNOTValid.py b/Superv/Python/GraphLoopSwitchsNOTValid.py deleted file mode 100644 index b44a526..0000000 --- a/Superv/Python/GraphLoopSwitchsNOTValid.py +++ /dev/null @@ -1,250 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphLoopSwitchsNOTValid -# -from SuperV import * - -# Graph creation of GraphLoopSwitchsNOTValid -def DefGraphLoopSwitchsNOTValid() : - GraphLoopSwitchsNOTValid = Graph( 'GraphLoopSwitchsNOTValid' ) - GraphLoopSwitchsNOTValid.SetName( 'GraphLoopSwitchsNOTValid' ) - GraphLoopSwitchsNOTValid.SetAuthor( 'JR' ) - GraphLoopSwitchsNOTValid.SetComment( '' ) - GraphLoopSwitchsNOTValid.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 = GraphLoopSwitchsNOTValid.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 = GraphLoopSwitchsNOTValid.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 = GraphLoopSwitchsNOTValid.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 = GraphLoopSwitchsNOTValid.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 = GraphLoopSwitchsNOTValid.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 = GraphLoopSwitchsNOTValid.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 = GraphLoopSwitchsNOTValid.Link( OIsOdda , IEndOfSwitchOdda ) - - LSwitchOddOddIsOddGate = GraphLoopSwitchsNOTValid.Link( OSwitchOddOdd , IIsOddGate ) - - LSwitchOddOddEndOfSwitchOddOdd = GraphLoopSwitchsNOTValid.Link( OSwitchOddOdd , IEndOfSwitchOddOdd ) - - LSwitchOddaIsOdda = GraphLoopSwitchsNOTValid.Link( OSwitchOdda , IIsOdda ) - LSwitchOddaIsOdda.AddCoord( 1 , 443 , 121 ) - LSwitchOddaIsOdda.AddCoord( 2 , 443 , 212 ) - - LSwitchOddDefaultEndOfSwitchOddDefault = GraphLoopSwitchsNOTValid.Link( OSwitchOddDefault , IEndOfSwitchOddDefault ) - - LEndOfSwitchOddaSwitchsCompareaOdd = GraphLoopSwitchsNOTValid.Link( OEndOfSwitchOdda , ISwitchsCompareaOdd ) - - LEndOfSwitchOddOddSwitchsCompareOdd = GraphLoopSwitchsNOTValid.Link( OEndOfSwitchOddOdd , ISwitchsCompareOdd ) - - LIsEvenaEndOfSwitchEvena = GraphLoopSwitchsNOTValid.Link( OIsEvena , IEndOfSwitchEvena ) - - LLoopIndexSwitchEvena = GraphLoopSwitchsNOTValid.Link( OLoopIndex , ISwitchEvena ) - - LLoopIndexSwitchOdda = GraphLoopSwitchsNOTValid.Link( OLoopIndex , ISwitchOdda ) - - LLoopMinEndOfLoopMin = GraphLoopSwitchsNOTValid.Link( OLoopMin , IEndOfLoopMin ) - - LLoopMaxEndOfLoopMax = GraphLoopSwitchsNOTValid.Link( OLoopMax , IEndOfLoopMax ) - - LSwitchEvenOddIsEvenGate = GraphLoopSwitchsNOTValid.Link( OSwitchEvenOdd , IIsEvenGate ) - - LSwitchEvenEvenEndOfSwitchEvenDefault = GraphLoopSwitchsNOTValid.Link( OSwitchEvenEven , IEndOfSwitchEvenDefault ) - - LSwitchEvenaIsEvena = GraphLoopSwitchsNOTValid.Link( OSwitchEvena , IIsEvena ) - LSwitchEvenaIsEvena.AddCoord( 1 , 434 , 382 ) - LSwitchEvenaIsEvena.AddCoord( 2 , 434 , 457 ) - - LEndOfSwitchEvenaSwitchsCompareaEven = GraphLoopSwitchsNOTValid.Link( OEndOfSwitchEvena , ISwitchsCompareaEven ) - - LEndOfSwitchEvenEvenSwitchsCompareEven = GraphLoopSwitchsNOTValid.Link( OEndOfSwitchEvenEven , ISwitchsCompareEven ) - - LSwitchsCompareaEndOfLoopIndex = GraphLoopSwitchsNOTValid.Link( OSwitchsComparea , IEndOfLoopIndex ) - - # Input datas - ILoopIndex.Input( 0 ) - ILoopMin.Input( 0 ) - ILoopMax.Input( 100 ) - - # Input Ports of the graph - #IEndOfSwitchEvenEven = EndOfSwitchEven.GetInPort( 'Even' ) - - # Output Ports of the graph - #OSwitchOddEven = SwitchOdd.GetOutPort( 'Even' ) - #OEndOfLoopIndex = EndOfLoop.GetOutPort( 'Index' ) - #OEndOfLoopMin = EndOfLoop.GetOutPort( 'Min' ) - #OEndOfLoopMax = EndOfLoop.GetOutPort( 'Max' ) - return GraphLoopSwitchsNOTValid - - -GraphLoopSwitchsNOTValid = DefGraphLoopSwitchsNOTValid() diff --git a/Superv/Python/GraphLoopTwoBranches.py b/Superv/Python/GraphLoopTwoBranches.py deleted file mode 100644 index 4dcda75..0000000 --- a/Superv/Python/GraphLoopTwoBranches.py +++ /dev/null @@ -1,347 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphLoopTwoBranches_1 -# -from SuperV import * - -# Graph creation of GraphLoopTwoBranches_1 -def DefGraphLoopTwoBranches_1() : - GraphLoopTwoBranches_1 = Graph( 'GraphLoopTwoBranches_1' ) - GraphLoopTwoBranches_1.SetName( 'GraphLoopTwoBranches_1' ) - GraphLoopTwoBranches_1.SetAuthor( '' ) - GraphLoopTwoBranches_1.SetComment( '' ) - GraphLoopTwoBranches_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" ' ) - PyIsOdd.append( ' sleep( 1 ) ' ) - PyIsOdd.append( ' return a,1 ' ) - IsOdd = GraphLoopTwoBranches_1.INode( 'IsOdd' , PyIsOdd ) - IsOdd.SetName( 'IsOdd' ) - IsOdd.SetAuthor( '' ) - IsOdd.SetComment( 'Python function' ) - IsOdd.Coords( 476 , 2 ) - IIsOdda = IsOdd.InPort( 'a' , 'long' ) - IIsOddGate = IsOdd.GetInPort( 'Gate' ) - OIsOdda = IsOdd.OutPort( 'a' , 'long' ) - OIsOddOdd = IsOdd.OutPort( 'Odd' , '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,1 ' ) - IsEven = GraphLoopTwoBranches_1.INode( 'IsEven' , PyIsEven ) - IsEven.SetName( 'IsEven' ) - IsEven.SetAuthor( '' ) - IsEven.SetComment( 'Python function' ) - IsEven.Coords( 472 , 724 ) - IIsEvena = IsEven.InPort( 'a' , 'long' ) - IIsEvenGate = IsEven.GetInPort( 'Gate' ) - OIsEvena = IsEven.OutPort( 'a' , 'long' ) - OIsEvenEven = IsEven.OutPort( 'Even' , 'long' ) - OIsEvenGate = IsEven.GetOutPort( 'Gate' ) - - PyIsNotOdd = [] - PyIsNotOdd.append( 'from time import * ' ) - PyIsNotOdd.append( 'def IsNotOdd(Even) : ' ) - PyIsNotOdd.append( ' sleep(1) ' ) - PyIsNotOdd.append( ' return Even ' ) - IsNotOdd = GraphLoopTwoBranches_1.INode( 'IsNotOdd' , PyIsNotOdd ) - IsNotOdd.SetName( 'IsNotOdd' ) - IsNotOdd.SetAuthor( '' ) - IsNotOdd.SetComment( 'Compute Node' ) - IsNotOdd.Coords( 477 , 137 ) - IIsNotOddEven = IsNotOdd.InPort( 'Even' , 'long' ) - IIsNotOddGate = IsNotOdd.GetInPort( 'Gate' ) - OIsNotOddEven = IsNotOdd.OutPort( 'Even' , 'long' ) - OIsNotOddGate = IsNotOdd.GetOutPort( 'Gate' ) - - PyIsNotEven = [] - PyIsNotEven.append( 'from time import * ' ) - PyIsNotEven.append( 'def IsNotEven(Odd) : ' ) - PyIsNotEven.append( ' sleep(1) ' ) - PyIsNotEven.append( ' return Odd ' ) - IsNotEven = GraphLoopTwoBranches_1.INode( 'IsNotEven' , PyIsNotEven ) - IsNotEven.SetName( 'IsNotEven' ) - IsNotEven.SetAuthor( '' ) - IsNotEven.SetComment( 'Compute Node' ) - IsNotEven.Coords( 475 , 601 ) - IIsNotEvenOdd = IsNotEven.InPort( 'Odd' , 'long' ) - IIsNotEvenGate = IsNotEven.GetInPort( 'Gate' ) - OIsNotEvenOdd = IsNotEven.OutPort( 'Odd' , 'long' ) - OIsNotEvenGate = IsNotEven.GetOutPort( 'Gate' ) - - PyIsOdddefault = [] - PyIsOdddefault.append( 'from time import * ' ) - PyIsOdddefault.append( 'def IsOdddefault(a) : ' ) - PyIsOdddefault.append( ' sleep(1) ' ) - PyIsOdddefault.append( ' return a,0 ' ) - PyIsOdddefault.append( '' ) - IsOdddefault = GraphLoopTwoBranches_1.INode( 'IsOdddefault' , PyIsOdddefault ) - IsOdddefault.SetName( 'IsOdddefault' ) - IsOdddefault.SetAuthor( '' ) - IsOdddefault.SetComment( 'Compute Node' ) - IsOdddefault.Coords( 477 , 285 ) - IIsOdddefaulta = IsOdddefault.InPort( 'a' , 'long' ) - IIsOdddefaultGate = IsOdddefault.GetInPort( 'Gate' ) - OIsOdddefaulta = IsOdddefault.OutPort( 'a' , 'long' ) - OIsOdddefaultOdd = IsOdddefault.OutPort( 'Odd' , 'long' ) - OIsOdddefaultGate = IsOdddefault.GetOutPort( 'Gate' ) - - PyIsEvendefault = [] - PyIsEvendefault.append( 'from time import * ' ) - PyIsEvendefault.append( 'def IsEvendefault(a) : ' ) - PyIsEvendefault.append( ' sleep(1) ' ) - PyIsEvendefault.append( ' return a,0 ' ) - PyIsEvendefault.append( '' ) - IsEvendefault = GraphLoopTwoBranches_1.INode( 'IsEvendefault' , PyIsEvendefault ) - IsEvendefault.SetName( 'IsEvendefault' ) - IsEvendefault.SetAuthor( '' ) - IsEvendefault.SetComment( 'Compute Node' ) - IsEvendefault.Coords( 478 , 434 ) - IIsEvendefaulta = IsEvendefault.InPort( 'a' , 'long' ) - IIsEvendefaultGate = IsEvendefault.GetInPort( 'Gate' ) - OIsEvendefaulta = IsEvendefault.OutPort( 'a' , 'long' ) - OIsEvendefaultEven = IsEvendefault.OutPort( 'Even' , 'long' ) - OIsEvendefaultGate = IsEvendefault.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyLoop = [] - PyLoop.append( 'def InitLoop(Index,Min,Max) : ' ) - PyLoop.append( ' Index = Max ' ) - PyLoop.append( ' return Index,Min,Max ' ) - PyMoreLoop = [] - PyMoreLoop.append( 'def MoreLoop(Index,Min,Max) : ' ) - PyMoreLoop.append( ' if Index >= Min : ' ) - 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 = GraphLoopTwoBranches_1.LNode( 'InitLoop' , PyLoop , 'MoreLoop' , PyMoreLoop , 'NextLoop' , PyNextLoop ) - EndOfLoop.SetName( 'EndOfLoop' ) - EndOfLoop.SetAuthor( '' ) - EndOfLoop.SetComment( 'Compute Node' ) - EndOfLoop.Coords( 1097 , 309 ) - 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( 18 , 389 ) - - # Creation of Switch Nodes - PySwitchOdd = [] - PySwitchOdd.append( 'from time import * ' ) - PySwitchOdd.append( 'def SwitchOdd(a) : ' ) - PySwitchOdd.append( ' sleep(1) ' ) - PySwitchOdd.append( ' if a <= 0 : ' ) - PySwitchOdd.append( ' OddEven = '<=0' ' ) - PySwitchOdd.append( ' return 0,0,0,a,OddEven ' ) - PySwitchOdd.append( ' OddEven = 'Odd' ' ) - PySwitchOdd.append( ' if (a&1) == 0 : ' ) - PySwitchOdd.append( ' OddEven = 'Even' ' ) - PySwitchOdd.append( ' return a & 1,1-(a&1),1-(a&1),a,OddEven ' ) - SwitchOdd,EndOfSwitchOdd = GraphLoopTwoBranches_1.SNode( 'SwitchOdd' , PySwitchOdd ) - EndOfSwitchOdd.SetName( 'EndOfSwitchOdd' ) - EndOfSwitchOdd.SetAuthor( '' ) - EndOfSwitchOdd.SetComment( 'Compute Node' ) - EndOfSwitchOdd.Coords( 718 , 162 ) - PyEndOfSwitchOdd = [] - PyEndOfSwitchOdd.append( 'from time import * ' ) - PyEndOfSwitchOdd.append( 'def EndOfSwitchOdd(a,Odd,Even,OddEven) : ' ) - PyEndOfSwitchOdd.append( ' sleep(1) ' ) - PyEndOfSwitchOdd.append( ' return a,Odd ' ) - EndOfSwitchOdd.SetPyFunction( 'EndOfSwitchOdd' , PyEndOfSwitchOdd ) - IEndOfSwitchOdda = EndOfSwitchOdd.InPort( 'a' , 'long' ) - IEndOfSwitchOddOdd = EndOfSwitchOdd.InPort( 'Odd' , 'boolean' ) - IEndOfSwitchOddEven = EndOfSwitchOdd.InPort( 'Even' , 'long' ) - IEndOfSwitchOddOddEven = EndOfSwitchOdd.InPort( 'OddEven' , '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 , 142 ) - ISwitchOdda = SwitchOdd.InPort( 'a' , 'long' ) - ISwitchOddGate = SwitchOdd.GetInPort( 'Gate' ) - OSwitchOddOdd = SwitchOdd.OutPort( 'Odd' , 'long' ) - OSwitchOddEven = SwitchOdd.OutPort( 'Even' , 'int' ) - OSwitchOdddefault = SwitchOdd.OutPort( 'default' , 'long' ) - OSwitchOdda = SwitchOdd.OutPort( 'a' , 'long' ) - OSwitchOddOddEven = SwitchOdd.OutPort( 'OddEven' , 'string' ) - OSwitchOddDefault = SwitchOdd.GetOutPort( 'Default' ) - - PySwitchEven = [] - PySwitchEven.append( 'from time import * ' ) - PySwitchEven.append( 'def SwitchEven(a) : ' ) - PySwitchEven.append( ' sleep(1) ' ) - PySwitchEven.append( ' if a <= 0 : ' ) - PySwitchEven.append( ' OddEven = '<=0' ' ) - PySwitchEven.append( ' return 0,0,0,a,OddEven ' ) - PySwitchEven.append( ' OddEven = 'Even' ' ) - PySwitchEven.append( ' if (a&1) != 0 : ' ) - PySwitchEven.append( ' OddEven = 'Odd' ' ) - PySwitchEven.append( ' print (a&1),1-(a&1),(a&1),a,OddEven ' ) - PySwitchEven.append( ' return (a&1),1-(a&1),(a&1),a,OddEven ' ) - SwitchEven,EndOfSwitchEven = GraphLoopTwoBranches_1.SNode( 'SwitchEven' , PySwitchEven ) - EndOfSwitchEven.SetName( 'EndOfSwitchEven' ) - EndOfSwitchEven.SetAuthor( '' ) - EndOfSwitchEven.SetComment( 'Compute Node' ) - EndOfSwitchEven.Coords( 721 , 477 ) - PyEndOfSwitchEven = [] - PyEndOfSwitchEven.append( 'from time import * ' ) - PyEndOfSwitchEven.append( 'def EndOfSwitchEven(a,Even,Odd,OddEven) : ' ) - PyEndOfSwitchEven.append( ' sleep(1) ' ) - PyEndOfSwitchEven.append( ' return a,Even ' ) - EndOfSwitchEven.SetPyFunction( 'EndOfSwitchEven' , PyEndOfSwitchEven ) - IEndOfSwitchEvena = EndOfSwitchEven.InPort( 'a' , 'long' ) - IEndOfSwitchEvenEven = EndOfSwitchEven.InPort( 'Even' , 'boolean' ) - IEndOfSwitchEvenOdd = EndOfSwitchEven.InPort( 'Odd' , 'long' ) - IEndOfSwitchEvenOddEven = EndOfSwitchEven.InPort( 'OddEven' , 'string' ) - 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( 230 , 457 ) - ISwitchEvena = SwitchEven.InPort( 'a' , 'long' ) - ISwitchEvenGate = SwitchEven.GetInPort( 'Gate' ) - OSwitchEvenOdd = SwitchEven.OutPort( 'Odd' , 'long' ) - OSwitchEvenEven = SwitchEven.OutPort( 'Even' , 'int' ) - OSwitchEvendefault = SwitchEven.OutPort( 'default' , 'long' ) - OSwitchEvena = SwitchEven.OutPort( 'a' , 'int' ) - OSwitchEvenOddEven = SwitchEven.OutPort( 'OddEven' , 'string' ) - OSwitchEvenDefault = SwitchEven.GetOutPort( 'Default' ) - - # Creation of Links - LIsOddaEndOfSwitchOdda = GraphLoopTwoBranches_1.Link( OIsOdda , IEndOfSwitchOdda ) - - LIsOddOddEndOfSwitchOddOdd = GraphLoopTwoBranches_1.Link( OIsOddOdd , IEndOfSwitchOddOdd ) - - LSwitchOddOddIsOddGate = GraphLoopTwoBranches_1.Link( OSwitchOddOdd , IIsOddGate ) - - LSwitchOddEvenIsNotOddEven = GraphLoopTwoBranches_1.Link( OSwitchOddEven , IIsNotOddEven ) - - LSwitchOdddefaultIsOdddefaultGate = GraphLoopTwoBranches_1.Link( OSwitchOdddefault , IIsOdddefaultGate ) - - LSwitchOddaIsOdddefaulta = GraphLoopTwoBranches_1.Link( OSwitchOdda , IIsOdddefaulta ) - - LSwitchOddaIsOdda = GraphLoopTwoBranches_1.Link( OSwitchOdda , IIsOdda ) - - LSwitchOddOddEvenEndOfSwitchOddOddEven = GraphLoopTwoBranches_1.Link( OSwitchOddOddEven , IEndOfSwitchOddOddEven ) - - LSwitchOddDefaultEndOfSwitchOddDefault = GraphLoopTwoBranches_1.Link( OSwitchOddDefault , IEndOfSwitchOddDefault ) - - LEndOfSwitchOddaEndOfLoopIndex = GraphLoopTwoBranches_1.Link( OEndOfSwitchOdda , IEndOfLoopIndex ) - - LIsEvenaEndOfSwitchEvena = GraphLoopTwoBranches_1.Link( OIsEvena , IEndOfSwitchEvena ) - - LIsEvenEvenEndOfSwitchEvenEven = GraphLoopTwoBranches_1.Link( OIsEvenEven , IEndOfSwitchEvenEven ) - - LLoopIndexSwitchOdda = GraphLoopTwoBranches_1.Link( OLoopIndex , ISwitchOdda ) - - LLoopIndexSwitchEvena = GraphLoopTwoBranches_1.Link( OLoopIndex , ISwitchEvena ) - - LLoopMinEndOfLoopMin = GraphLoopTwoBranches_1.Link( OLoopMin , IEndOfLoopMin ) - - LLoopMaxEndOfLoopMax = GraphLoopTwoBranches_1.Link( OLoopMax , IEndOfLoopMax ) - - LSwitchEvenOddIsNotEvenOdd = GraphLoopTwoBranches_1.Link( OSwitchEvenOdd , IIsNotEvenOdd ) - - LSwitchEvenEvenIsEvenGate = GraphLoopTwoBranches_1.Link( OSwitchEvenEven , IIsEvenGate ) - - LSwitchEvendefaultIsEvendefaultGate = GraphLoopTwoBranches_1.Link( OSwitchEvendefault , IIsEvendefaultGate ) - - LSwitchEvenaIsEvena = GraphLoopTwoBranches_1.Link( OSwitchEvena , IIsEvena ) - - LSwitchEvenaIsEvendefaulta = GraphLoopTwoBranches_1.Link( OSwitchEvena , IIsEvendefaulta ) - - LSwitchEvenOddEvenEndOfSwitchEvenOddEven = GraphLoopTwoBranches_1.Link( OSwitchEvenOddEven , IEndOfSwitchEvenOddEven ) - - LSwitchEvenDefaultEndOfSwitchEvenDefault = GraphLoopTwoBranches_1.Link( OSwitchEvenDefault , IEndOfSwitchEvenDefault ) - - LEndOfSwitchEvenGateEndOfLoopGate = GraphLoopTwoBranches_1.Link( OEndOfSwitchEvenGate , IEndOfLoopGate ) - - LIsNotOddEvenEndOfSwitchOddEven = GraphLoopTwoBranches_1.Link( OIsNotOddEven , IEndOfSwitchOddEven ) - - LIsNotEvenOddEndOfSwitchEvenOdd = GraphLoopTwoBranches_1.Link( OIsNotEvenOdd , IEndOfSwitchEvenOdd ) - - LIsOdddefaultaEndOfSwitchOdda = GraphLoopTwoBranches_1.Link( OIsOdddefaulta , IEndOfSwitchOdda ) - - LIsOdddefaultOddEndOfSwitchOddOdd = GraphLoopTwoBranches_1.Link( OIsOdddefaultOdd , IEndOfSwitchOddOdd ) - - LIsEvendefaultaEndOfSwitchEvena = GraphLoopTwoBranches_1.Link( OIsEvendefaulta , IEndOfSwitchEvena ) - - LIsEvendefaultEvenEndOfSwitchEvenEven = GraphLoopTwoBranches_1.Link( OIsEvendefaultEven , IEndOfSwitchEvenEven ) - - # Input datas - ILoopIndex.Input( 0 ) - ILoopMin.Input( -5 ) - ILoopMax.Input( 11 ) - - # Output Ports of the graph - #OEndOfSwitchOddOdd = EndOfSwitchOdd.GetOutPort( 'Odd' ) - #OEndOfLoopIndex = EndOfLoop.GetOutPort( 'Index' ) - #OEndOfLoopMin = EndOfLoop.GetOutPort( 'Min' ) - #OEndOfLoopMax = EndOfLoop.GetOutPort( 'Max' ) - #OEndOfSwitchEvena = EndOfSwitchEven.GetOutPort( 'a' ) - #OEndOfSwitchEvenEven = EndOfSwitchEven.GetOutPort( 'Even' ) - return GraphLoopTwoBranches_1 - - -GraphLoopTwoBranches_1 = DefGraphLoopTwoBranches_1() diff --git a/Superv/Python/GraphLoopWhile.py b/Superv/Python/GraphLoopWhile.py deleted file mode 100644 index 3cff8f5..0000000 --- a/Superv/Python/GraphLoopWhile.py +++ /dev/null @@ -1,95 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphLoopWhile -# -from SuperV import * - -# Graph creation of GraphLoopWhile -def DefGraphLoopWhile() : - GraphLoopWhile = Graph( 'GraphLoopWhile' ) - GraphLoopWhile.SetName( 'GraphLoopWhile' ) - GraphLoopWhile.SetAuthor( 'JR' ) - GraphLoopWhile.SetComment( '' ) - GraphLoopWhile.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - # Creation of Loop Nodes - PyLoop = [] - PyMoreLoop = [] - PyMoreLoop.append( 'import time ' ) - PyMoreLoop.append( 'def LoopWhileMore(Index,Max) : ' ) - PyMoreLoop.append( ' time.sleep(2) ' ) - PyMoreLoop.append( ' if Index < Max : ' ) - PyMoreLoop.append( ' DoLoop = 1 ' ) - PyMoreLoop.append( ' else : ' ) - PyMoreLoop.append( ' DoLoop = 0 ' ) - PyMoreLoop.append( ' return DoLoop,Index,Max ' ) - PyMoreLoop.append( '' ) - PyNextLoop = [] - PyNextLoop.append( 'def LoopWhileNext(Index,Max) : ' ) - PyNextLoop.append( ' Index = Index + 1 ' ) - PyNextLoop.append( ' return Index,Max ' ) - PyNextLoop.append( '' ) - Loop,EndLoop = GraphLoopWhile.LNode( '' , PyLoop , 'LoopWhileMore' , PyMoreLoop , 'LoopWhileNext' , PyNextLoop ) - EndLoop.SetName( 'EndLoop' ) - EndLoop.SetAuthor( '' ) - EndLoop.SetComment( 'Compute Node' ) - EndLoop.Coords( 414 , 232 ) - PyEndLoop = [] - EndLoop.SetPyFunction( 'EndLoop' , PyEndLoop ) - ILoopDoLoop = Loop.GetInPort( 'DoLoop' ) - ILoopIndex = Loop.InPort( 'Index' , 'long' ) - ILoopMax = Loop.InPort( 'Max' , 'long' ) - ILoopGate = Loop.GetInPort( 'Gate' ) - OLoopDoLoop = Loop.GetOutPort( 'DoLoop' ) - OLoopIndex = Loop.GetOutPort( 'Index' ) - OLoopMax = Loop.GetOutPort( 'Max' ) - IEndLoopDoLoop = EndLoop.GetInPort( 'DoLoop' ) - IEndLoopIndex = EndLoop.GetInPort( 'Index' ) - IEndLoopMax = EndLoop.GetInPort( 'Max' ) - IEndLoopGate = EndLoop.GetInPort( 'Gate' ) - OEndLoopDoLoop = EndLoop.GetOutPort( 'DoLoop' ) - OEndLoopIndex = EndLoop.GetOutPort( 'Index' ) - OEndLoopMax = EndLoop.GetOutPort( 'Max' ) - Loop.SetName( 'Loop' ) - Loop.SetAuthor( '' ) - Loop.SetComment( 'Compute Node' ) - Loop.Coords( 105 , 226 ) - - # Creation of Links - LLoopIndexEndLoopIndex = GraphLoopWhile.Link( OLoopIndex , IEndLoopIndex ) - - LLoopMaxEndLoopMax = GraphLoopWhile.Link( OLoopMax , IEndLoopMax ) - - # Input datas - ILoopIndex.Input( 5 ) - ILoopMax.Input( 10 ) - - # Output Ports of the graph - #OEndLoopIndex = EndLoop.GetOutPort( 'Index' ) - #OEndLoopMax = EndLoop.GetOutPort( 'Max' ) - return GraphLoopWhile - - -GraphLoopWhile = DefGraphLoopWhile() diff --git a/Superv/Python/GraphLoopsCoupled.py b/Superv/Python/GraphLoopsCoupled.py deleted file mode 100644 index 8bc6962..0000000 --- a/Superv/Python/GraphLoopsCoupled.py +++ /dev/null @@ -1,236 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphLoopsCoupled_3 -# -from SuperV import * - -# Graph creation of GraphLoopsCoupled_3 -def DefGraphLoopsCoupled_3() : - GraphLoopsCoupled_3 = Graph( 'GraphLoopsCoupled_3' ) - GraphLoopsCoupled_3.SetName( 'GraphLoopsCoupled_3' ) - GraphLoopsCoupled_3.SetAuthor( 'JR' ) - GraphLoopsCoupled_3.SetComment( '' ) - GraphLoopsCoupled_3.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - # Creation of InLine Nodes - PyAdd = [] - PyAdd.append( 'def Add(x,y) : ' ) - PyAdd.append( ' return x+y ' ) - PyAdd.append( '' ) - Add = GraphLoopsCoupled_3.INode( 'Add' , PyAdd ) - Add.SetName( 'Add' ) - Add.SetAuthor( '' ) - Add.SetComment( 'Compute Node' ) - Add.Coords( 245 , 38 ) - IAddx = Add.InPort( 'x' , 'long' ) - IAddy = Add.InPort( 'y' , 'long' ) - IAddGate = Add.GetInPort( 'Gate' ) - OAddz = Add.OutPort( 'z' , 'long' ) - OAddGate = Add.GetOutPort( 'Gate' ) - - PyAdd_1 = [] - PyAdd_1.append( 'def Add(x,y) : ' ) - PyAdd_1.append( ' return x+y ' ) - PyAdd_1.append( '' ) - Add_1 = GraphLoopsCoupled_3.INode( 'Add' , PyAdd_1 ) - Add_1.SetName( 'Add_1' ) - Add_1.SetAuthor( '' ) - Add_1.SetComment( 'Compute Node' ) - Add_1.Coords( 243 , 288 ) - IAdd_1x = Add_1.InPort( 'x' , 'long' ) - IAdd_1y = Add_1.InPort( 'y' , 'long' ) - IAdd_1Gate = Add_1.GetInPort( 'Gate' ) - OAdd_1z = Add_1.OutPort( 'z' , 'long' ) - OAdd_1Gate = Add_1.GetOutPort( 'Gate' ) - - PySub = [] - PySub.append( 'def Sub(x,y) : ' ) - PySub.append( ' return x-y ' ) - PySub.append( '' ) - Sub = GraphLoopsCoupled_3.INode( 'Sub' , PySub ) - Sub.SetName( 'Sub' ) - Sub.SetAuthor( '' ) - Sub.SetComment( 'Compute Node' ) - Sub.Coords( 458 , 18 ) - ISubx = Sub.InPort( 'x' , 'long' ) - ISuby = Sub.InPort( 'y' , 'long' ) - ISubGate = Sub.GetInPort( 'Gate' ) - OSubz = Sub.OutPort( 'z' , 'long' ) - OSubGate = Sub.GetOutPort( 'Gate' ) - - PySub_1 = [] - PySub_1.append( 'def Sub(x,y) : ' ) - PySub_1.append( ' return x-y ' ) - PySub_1.append( '' ) - Sub_1 = GraphLoopsCoupled_3.INode( 'Sub' , PySub_1 ) - Sub_1.SetName( 'Sub_1' ) - Sub_1.SetAuthor( '' ) - Sub_1.SetComment( 'Compute Node' ) - Sub_1.Coords( 461 , 268 ) - ISub_1x = Sub_1.InPort( 'x' , 'long' ) - ISub_1y = Sub_1.InPort( 'y' , 'long' ) - ISub_1Gate = Sub_1.GetInPort( 'Gate' ) - OSub_1z = Sub_1.OutPort( 'z' , 'long' ) - OSub_1Gate = Sub_1.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyLoop = [] - PyLoop.append( ' ' ) - PyMoreLoop = [] - PyMoreLoop.append( 'def More(Index,Max,z) : ' ) - PyMoreLoop.append( ' DoLoop = 0 ' ) - PyMoreLoop.append( ' if Index < Max : ' ) - PyMoreLoop.append( ' DoLoop = 1 ' ) - PyMoreLoop.append( ' return DoLoop,Index,Max,z ' ) - PyMoreLoop.append( ' ' ) - PyNextLoop = [] - PyNextLoop.append( 'def Next(Index,Max,z) : ' ) - PyNextLoop.append( ' Index = Index + 1 ' ) - PyNextLoop.append( ' return Index,Max,z ' ) - PyNextLoop.append( ' ' ) - Loop,EndLoop = GraphLoopsCoupled_3.LNode( '' , PyLoop , 'More' , PyMoreLoop , 'Next' , PyNextLoop ) - EndLoop.SetName( 'EndLoop' ) - EndLoop.SetAuthor( '' ) - EndLoop.SetComment( 'Compute Node' ) - EndLoop.Coords( 662 , 38 ) - PyEndLoop = [] - EndLoop.SetPyFunction( 'EndLoop' , PyEndLoop ) - ILoopDoLoop = Loop.GetInPort( 'DoLoop' ) - ILoopIndex = Loop.InPort( 'Index' , 'long' ) - ILoopMax = Loop.InPort( 'Max' , 'long' ) - ILoopz = Loop.InPort( 'z' , 'long' ) - ILoopGate = Loop.GetInPort( 'Gate' ) - OLoopDoLoop = Loop.GetOutPort( 'DoLoop' ) - OLoopIndex = Loop.GetOutPort( 'Index' ) - OLoopMax = Loop.GetOutPort( 'Max' ) - OLoopz = Loop.GetOutPort( 'z' ) - IEndLoopDoLoop = EndLoop.GetInPort( 'DoLoop' ) - IEndLoopIndex = EndLoop.GetInPort( 'Index' ) - IEndLoopMax = EndLoop.GetInPort( 'Max' ) - IEndLoopz = EndLoop.GetInPort( 'z' ) - IEndLoopGate = EndLoop.GetInPort( 'Gate' ) - OEndLoopDoLoop = EndLoop.GetOutPort( 'DoLoop' ) - OEndLoopIndex = EndLoop.GetOutPort( 'Index' ) - OEndLoopMax = EndLoop.GetOutPort( 'Max' ) - OEndLoopz = EndLoop.GetOutPort( 'z' ) - OEndLoopGate = EndLoop.GetOutPort( 'Gate' ) - Loop.SetName( 'Loop' ) - Loop.SetAuthor( '' ) - Loop.SetComment( 'Compute Node' ) - Loop.Coords( 15 , 58 ) - - PyInit = [] - PyInit.append( ' ' ) - PyMoreInit = [] - PyMoreInit.append( 'def More(Index,Max,z) : ' ) - PyMoreInit.append( ' DoLoop = 0 ' ) - PyMoreInit.append( ' if Index < Max : ' ) - PyMoreInit.append( ' DoLoop = 1 ' ) - PyMoreInit.append( ' return DoLoop,Index,Max,z ' ) - PyMoreInit.append( ' ' ) - PyNextInit = [] - PyNextInit.append( 'def Next(Index,Max,z) : ' ) - PyNextInit.append( ' Index = Index + 1 ' ) - PyNextInit.append( ' return Index,Max,z ' ) - PyNextInit.append( ' ' ) - Init,EndInit = GraphLoopsCoupled_3.LNode( '' , PyInit , 'More' , PyMoreInit , 'Next' , PyNextInit ) - EndInit.SetName( 'EndInit' ) - EndInit.SetAuthor( '' ) - EndInit.SetComment( 'Compute Node' ) - EndInit.Coords( 670 , 288 ) - PyEndInit = [] - EndInit.SetPyFunction( 'EndInit' , PyEndInit ) - IInitDoLoop = Init.GetInPort( 'DoLoop' ) - IInitIndex = Init.InPort( 'Index' , 'long' ) - IInitMax = Init.InPort( 'Max' , 'long' ) - IInitz = Init.InPort( 'z' , 'long' ) - IInitGate = Init.GetInPort( 'Gate' ) - OInitDoLoop = Init.GetOutPort( 'DoLoop' ) - OInitIndex = Init.GetOutPort( 'Index' ) - OInitMax = Init.GetOutPort( 'Max' ) - OInitz = Init.GetOutPort( 'z' ) - IEndInitDoLoop = EndInit.GetInPort( 'DoLoop' ) - IEndInitIndex = EndInit.GetInPort( 'Index' ) - IEndInitMax = EndInit.GetInPort( 'Max' ) - IEndInitz = EndInit.GetInPort( 'z' ) - IEndInitGate = EndInit.GetInPort( 'Gate' ) - OEndInitDoLoop = EndInit.GetOutPort( 'DoLoop' ) - OEndInitIndex = EndInit.GetOutPort( 'Index' ) - OEndInitMax = EndInit.GetOutPort( 'Max' ) - OEndInitz = EndInit.GetOutPort( 'z' ) - OEndInitGate = EndInit.GetOutPort( 'Gate' ) - Init.SetName( 'Init' ) - Init.SetAuthor( '' ) - Init.SetComment( 'Compute Node' ) - Init.Coords( 10 , 308 ) - - # Creation of Links - LAddzSuby = GraphLoopsCoupled_3.Link( OAddz , ISuby ) - - LAddzSub_1x = GraphLoopsCoupled_3.Link( OAddz , ISub_1x ) - - LAdd_1zSub_1y = GraphLoopsCoupled_3.Link( OAdd_1z , ISub_1y ) - - LAdd_1zSubx = GraphLoopsCoupled_3.Link( OAdd_1z , ISubx ) - - LSubzEndInitz = GraphLoopsCoupled_3.Link( OSubz , IEndInitz ) - - LSub_1zEndLoopz = GraphLoopsCoupled_3.Link( OSub_1z , IEndLoopz ) - - LLoopIndexEndLoopIndex = GraphLoopsCoupled_3.Link( OLoopIndex , IEndLoopIndex ) - - LLoopMaxEndLoopMax = GraphLoopsCoupled_3.Link( OLoopMax , IEndLoopMax ) - - LLoopMaxAddx = GraphLoopsCoupled_3.Link( OLoopMax , IAddx ) - - LLoopzAddy = GraphLoopsCoupled_3.Link( OLoopz , IAddy ) - - LInitIndexEndInitIndex = GraphLoopsCoupled_3.Link( OInitIndex , IEndInitIndex ) - - LInitMaxEndInitMax = GraphLoopsCoupled_3.Link( OInitMax , IEndInitMax ) - - LInitMaxAdd_1x = GraphLoopsCoupled_3.Link( OInitMax , IAdd_1x ) - - LInitzAdd_1y = GraphLoopsCoupled_3.Link( OInitz , IAdd_1y ) - - # Input datas - ILoopIndex.Input( 5 ) - ILoopMax.Input( 15 ) - ILoopz.Input( -1 ) - IInitIndex.Input( 3 ) - IInitMax.Input( 13 ) - IInitz.Input( -2 ) - - # Output Ports of the graph - #OEndLoopIndex = EndLoop.GetOutPort( 'Index' ) - #OEndLoopMax = EndLoop.GetOutPort( 'Max' ) - #OEndLoopz = EndLoop.GetOutPort( 'z' ) - #OEndInitIndex = EndInit.GetOutPort( 'Index' ) - #OEndInitMax = EndInit.GetOutPort( 'Max' ) - #OEndInitz = EndInit.GetOutPort( 'z' ) - return GraphLoopsCoupled_3 - - -GraphLoopsCoupled_3 = DefGraphLoopsCoupled_3() diff --git a/Superv/Python/GraphLoopsGates.py b/Superv/Python/GraphLoopsGates.py deleted file mode 100644 index 22c0778..0000000 --- a/Superv/Python/GraphLoopsGates.py +++ /dev/null @@ -1,277 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphLoopsGates_1 -# -from SuperV import * - -# Graph creation of GraphLoopsGates_1 -def DefGraphLoopsGates_1() : - GraphLoopsGates_1 = Graph( 'GraphLoopsGates_1' ) - GraphLoopsGates_1.SetName( 'GraphLoopsGates_1' ) - GraphLoopsGates_1.SetAuthor( 'JR' ) - GraphLoopsGates_1.SetComment( '' ) - GraphLoopsGates_1.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - Add = GraphLoopsGates_1.FNode( 'AddComponent' , 'AddComponent' , 'Add' ) - Add.SetName( 'Add' ) - Add.SetAuthor( '' ) - Add.SetContainer( 'localhost/FactoryServer' ) - Add.SetComment( 'Add from AddComponent' ) - Add.Coords( 230 , 76 ) - IAddx = Add.GetInPort( 'x' ) - IAddy = Add.GetInPort( 'y' ) - IAddGate = Add.GetInPort( 'Gate' ) - OAddFuncValue = Add.GetOutPort( 'FuncValue' ) - OAddz = Add.GetOutPort( 'z' ) - OAddGate = Add.GetOutPort( 'Gate' ) - - Add_1 = GraphLoopsGates_1.FNode( 'AddComponent' , 'AddComponent' , 'Add' ) - Add_1.SetName( 'Add_1' ) - Add_1.SetAuthor( '' ) - Add_1.SetContainer( 'localhost/FactoryServer' ) - Add_1.SetComment( 'Add from AddComponent' ) - Add_1.Coords( 225 , 304 ) - IAdd_1x = Add_1.GetInPort( 'x' ) - IAdd_1y = Add_1.GetInPort( 'y' ) - IAdd_1Gate = Add_1.GetInPort( 'Gate' ) - OAdd_1FuncValue = Add_1.GetOutPort( 'FuncValue' ) - OAdd_1z = Add_1.GetOutPort( 'z' ) - OAdd_1Gate = Add_1.GetOutPort( 'Gate' ) - - Sub = GraphLoopsGates_1.FNode( 'SubComponent' , 'SubComponent' , 'Sub' ) - Sub.SetName( 'Sub' ) - Sub.SetAuthor( '' ) - Sub.SetContainer( 'localhost/FactoryServer' ) - Sub.SetComment( 'Sub from SubComponent' ) - Sub.Coords( 447 , 77 ) - ISubx = Sub.GetInPort( 'x' ) - ISuby = Sub.GetInPort( 'y' ) - ISubGate = Sub.GetInPort( 'Gate' ) - OSubz = Sub.GetOutPort( 'z' ) - OSubGate = Sub.GetOutPort( 'Gate' ) - - Sub_1 = GraphLoopsGates_1.FNode( 'SubComponent' , 'SubComponent' , 'Sub' ) - Sub_1.SetName( 'Sub_1' ) - Sub_1.SetAuthor( '' ) - Sub_1.SetContainer( 'localhost/FactoryServer' ) - Sub_1.SetComment( 'Sub from SubComponent' ) - Sub_1.Coords( 448 , 304 ) - ISub_1x = Sub_1.GetInPort( 'x' ) - ISub_1y = Sub_1.GetInPort( 'y' ) - ISub_1Gate = Sub_1.GetInPort( 'Gate' ) - OSub_1z = Sub_1.GetOutPort( 'z' ) - OSub_1Gate = Sub_1.GetOutPort( 'Gate' ) - - # Creation of InLine Nodes - PyGate = [] - PyGate.append( 'from time import * ' ) - PyGate.append( 'def Gate(G1,G2) : ' ) - PyGate.append( ' sleep(1) ' ) - PyGate.append( ' return G1&G2 ' ) - Gate = GraphLoopsGates_1.INode( 'Gate' , PyGate ) - Gate.SetName( 'Gate' ) - Gate.SetAuthor( '' ) - Gate.SetComment( 'Compute Node' ) - Gate.Coords( 640 , 224 ) - IGateG1 = Gate.InPort( 'G1' , 'long' ) - IGateG2 = Gate.InPort( 'G2' , 'long' ) - IGateGate = Gate.GetInPort( 'Gate' ) - OGateG = Gate.OutPort( 'G' , 'long' ) - OGateGate = Gate.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyInit = [] - PyInit.append( 'from time import * ' ) - PyInit.append( 'def Init(Index,Min,Max) : ' ) - PyInit.append( ' Index = Min ' ) - PyInit.append( ' sleep(1) ' ) - PyInit.append( ' return Index,Min,Max ' ) - PyMoreInit = [] - PyMoreInit.append( 'def More(Index,Min,Max) : ' ) - PyMoreInit.append( ' if Index < Max : ' ) - PyMoreInit.append( ' DoLoop = 1 ' ) - PyMoreInit.append( ' else : ' ) - PyMoreInit.append( ' DoLoop = 0 ' ) - PyMoreInit.append( ' return DoLoop,Index,Min,Max ' ) - PyNextInit = [] - PyNextInit.append( 'from time import * ' ) - PyNextInit.append( 'def Next(Index,Min,Max) : ' ) - PyNextInit.append( ' Index = Index + 1 ' ) - PyNextInit.append( ' sleep(1) ' ) - PyNextInit.append( ' return Index,Min,Max ' ) - Init,EndInit = GraphLoopsGates_1.LNode( 'Init' , PyInit , 'More' , PyMoreInit , 'Next' , PyNextInit ) - EndInit.SetName( 'EndInit' ) - EndInit.SetAuthor( '' ) - EndInit.SetComment( 'Compute Node' ) - EndInit.Coords( 838 , 243 ) - PyEndInit = [] - EndInit.SetPyFunction( 'EndInit' , PyEndInit ) - IInitDoLoop = Init.GetInPort( 'DoLoop' ) - IInitIndex = Init.InPort( 'Index' , 'long' ) - IInitMin = Init.InPort( 'Min' , 'long' ) - IInitMax = Init.InPort( 'Max' , 'long' ) - IInitGate = Init.GetInPort( 'Gate' ) - OInitDoLoop = Init.GetOutPort( 'DoLoop' ) - OInitIndex = Init.GetOutPort( 'Index' ) - OInitMin = Init.GetOutPort( 'Min' ) - OInitMax = Init.GetOutPort( 'Max' ) - IEndInitDoLoop = EndInit.GetInPort( 'DoLoop' ) - IEndInitIndex = EndInit.GetInPort( 'Index' ) - IEndInitMin = EndInit.GetInPort( 'Min' ) - IEndInitMax = EndInit.GetInPort( 'Max' ) - IEndInitGate = EndInit.GetInPort( 'Gate' ) - OEndInitDoLoop = EndInit.GetOutPort( 'DoLoop' ) - OEndInitIndex = EndInit.GetOutPort( 'Index' ) - OEndInitMin = EndInit.GetOutPort( 'Min' ) - OEndInitMax = EndInit.GetOutPort( 'Max' ) - OEndInitGate = EndInit.GetOutPort( 'Gate' ) - Init.SetName( 'Init' ) - Init.SetAuthor( '' ) - Init.SetComment( 'Compute Node' ) - Init.Coords( 29 , 251 ) - - PyInit_1 = [] - PyInit_1.append( 'from time import * ' ) - PyInit_1.append( 'def Init_1(Index,Min,Max) : ' ) - PyInit_1.append( ' Index = Min ' ) - PyInit_1.append( ' sleep(1) ' ) - PyInit_1.append( ' return Index,Min,Max ' ) - PyMoreInit_1 = [] - PyMoreInit_1.append( 'def More_1(Index,Min,Max) : ' ) - PyMoreInit_1.append( ' if Index < Max : ' ) - PyMoreInit_1.append( ' DoLoop = 1 ' ) - PyMoreInit_1.append( ' else : ' ) - PyMoreInit_1.append( ' DoLoop = 0 ' ) - PyMoreInit_1.append( ' return DoLoop,Index,Min,Max ' ) - PyNextInit_1 = [] - PyNextInit_1.append( 'from time import * ' ) - PyNextInit_1.append( 'def Next_1(Index,Min,Max) : ' ) - PyNextInit_1.append( ' Index = Index + 1 ' ) - PyNextInit_1.append( ' sleep(1) ' ) - PyNextInit_1.append( ' return Index,Min,Max ' ) - Init_1,EndInit_1 = GraphLoopsGates_1.LNode( 'Init_1' , PyInit_1 , 'More_1' , PyMoreInit_1 , 'Next_1' , PyNextInit_1 ) - EndInit_1.SetName( 'EndInit_1' ) - EndInit_1.SetAuthor( '' ) - EndInit_1.SetComment( 'Compute Node' ) - EndInit_1.Coords( 1049 , 201 ) - PyEndInit_1 = [] - EndInit_1.SetPyFunction( 'EndInit_1' , PyEndInit_1 ) - IInit_1DoLoop = Init_1.GetInPort( 'DoLoop' ) - IInit_1Index = Init_1.InPort( 'Index' , 'long' ) - IInit_1Min = Init_1.InPort( 'Min' , 'long' ) - IInit_1Max = Init_1.InPort( 'Max' , 'long' ) - IInit_1Gate = Init_1.GetInPort( 'Gate' ) - OInit_1DoLoop = Init_1.GetOutPort( 'DoLoop' ) - OInit_1Index = Init_1.GetOutPort( 'Index' ) - OInit_1Min = Init_1.GetOutPort( 'Min' ) - OInit_1Max = Init_1.GetOutPort( 'Max' ) - IEndInit_1DoLoop = EndInit_1.GetInPort( 'DoLoop' ) - IEndInit_1Index = EndInit_1.GetInPort( 'Index' ) - IEndInit_1Min = EndInit_1.GetInPort( 'Min' ) - IEndInit_1Max = EndInit_1.GetInPort( 'Max' ) - IEndInit_1Gate = EndInit_1.GetInPort( 'Gate' ) - OEndInit_1DoLoop = EndInit_1.GetOutPort( 'DoLoop' ) - OEndInit_1Index = EndInit_1.GetOutPort( 'Index' ) - OEndInit_1Min = EndInit_1.GetOutPort( 'Min' ) - OEndInit_1Max = EndInit_1.GetOutPort( 'Max' ) - OEndInit_1Gate = EndInit_1.GetOutPort( 'Gate' ) - Init_1.SetName( 'Init_1' ) - Init_1.SetAuthor( '' ) - Init_1.SetComment( 'Compute Node' ) - Init_1.Coords( 9 , 24 ) - - # Creation of Links - LInitIndexEndInitIndex = GraphLoopsGates_1.Link( OInitIndex , IEndInitIndex ) - - LInitIndexSubx = GraphLoopsGates_1.Link( OInitIndex , ISubx ) - - LInitMinEndInitMin = GraphLoopsGates_1.Link( OInitMin , IEndInitMin ) - - LInitMinSuby = GraphLoopsGates_1.Link( OInitMin , ISuby ) - - LInitMinSub_1x = GraphLoopsGates_1.Link( OInitMin , ISub_1x ) - - LInitMaxEndInitMax = GraphLoopsGates_1.Link( OInitMax , IEndInitMax ) - - LInitMaxSub_1y = GraphLoopsGates_1.Link( OInitMax , ISub_1y ) - - LInitGateAdd_1Gate = GraphLoopsGates_1.Link( OInitGate , IAdd_1Gate ) - - LInitGateAddGate = GraphLoopsGates_1.Link( OInitGate , IAddGate ) - - LEndInitGateEndInit_1Gate = GraphLoopsGates_1.Link( OEndInitGate , IEndInit_1Gate ) - - LAddGateSubGate = GraphLoopsGates_1.Link( OAddGate , ISubGate ) - - LAdd_1GateSub_1Gate = GraphLoopsGates_1.Link( OAdd_1Gate , ISub_1Gate ) - - LSubGateGateG1 = GraphLoopsGates_1.Link( OSubGate , IGateG1 ) - - LSub_1GateGateG2 = GraphLoopsGates_1.Link( OSub_1Gate , IGateG2 ) - - LGateGateEndInitGate = GraphLoopsGates_1.Link( OGateGate , IEndInitGate ) - - LInit_1IndexEndInit_1Index = GraphLoopsGates_1.Link( OInit_1Index , IEndInit_1Index ) - - LInit_1MinEndInit_1Min = GraphLoopsGates_1.Link( OInit_1Min , IEndInit_1Min ) - - LInit_1MaxEndInit_1Max = GraphLoopsGates_1.Link( OInit_1Max , IEndInit_1Max ) - - LInit_1GateInitGate = GraphLoopsGates_1.Link( OInit_1Gate , IInitGate ) - LInit_1GateInitGate.AddCoord( 1 , 9 , 346 ) - LInit_1GateInitGate.AddCoord( 2 , 9 , 199 ) - LInit_1GateInitGate.AddCoord( 3 , 194 , 199 ) - LInit_1GateInitGate.AddCoord( 4 , 194 , 119 ) - - # Input datas - IInitIndex.Input( 0 ) - IInitMin.Input( 5 ) - IInitMax.Input( 8 ) - IAddx.Input( 1 ) - IAddy.Input( 2 ) - IAdd_1x.Input( 3 ) - IAdd_1y.Input( 4 ) - IInit_1Index.Input( 0 ) - IInit_1Min.Input( 1 ) - IInit_1Max.Input( 3 ) - - # Output Ports of the graph - #OEndInitIndex = EndInit.GetOutPort( 'Index' ) - #OEndInitMin = EndInit.GetOutPort( 'Min' ) - #OEndInitMax = EndInit.GetOutPort( 'Max' ) - #OAddFuncValue = Add.GetOutPort( 'FuncValue' ) - #OAddz = Add.GetOutPort( 'z' ) - #OAdd_1FuncValue = Add_1.GetOutPort( 'FuncValue' ) - #OAdd_1z = Add_1.GetOutPort( 'z' ) - #OSubz = Sub.GetOutPort( 'z' ) - #OSub_1z = Sub_1.GetOutPort( 'z' ) - #OGateG = Gate.GetOutPort( 'G' ) - #OEndInit_1Index = EndInit_1.GetOutPort( 'Index' ) - #OEndInit_1Min = EndInit_1.GetOutPort( 'Min' ) - #OEndInit_1Max = EndInit_1.GetOutPort( 'Max' ) - return GraphLoopsGates_1 - - -GraphLoopsGates_1 = DefGraphLoopsGates_1() diff --git a/Superv/Python/GraphLoopsStupidCoupledSwitchs.py b/Superv/Python/GraphLoopsStupidCoupledSwitchs.py deleted file mode 100644 index d92fcc8..0000000 --- a/Superv/Python/GraphLoopsStupidCoupledSwitchs.py +++ /dev/null @@ -1,294 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphLoopsStupidCoupledSwitchs -# -from SuperV import * - -# Graph creation of GraphLoopsStupidCoupledSwitchs -def DefGraphLoopsStupidCoupledSwitchs() : - GraphLoopsStupidCoupledSwitchs = Graph( 'GraphLoopsStupidCoupledSwitchs' ) - GraphLoopsStupidCoupledSwitchs.SetName( 'GraphLoopsStupidCoupledSwitchs' ) - GraphLoopsStupidCoupledSwitchs.SetAuthor( '' ) - GraphLoopsStupidCoupledSwitchs.SetComment( '' ) - GraphLoopsStupidCoupledSwitchs.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 (GraphSwitchs)" ' ) - PyIsOdd.append( ' sleep( 1 ) ' ) - PyIsOdd.append( ' return a ' ) - IsOdd = GraphLoopsStupidCoupledSwitchs.INode( 'IsOdd' , PyIsOdd ) - IsOdd.SetName( 'IsOdd' ) - IsOdd.SetAuthor( '' ) - IsOdd.SetComment( 'Python function' ) - IsOdd.Coords( 458 , 52 ) - IIsOdda = IsOdd.InPort( 'a' , 'long' ) - IIsOddGate = IsOdd.GetInPort( 'Gate' ) - OIsOdda = IsOdd.OutPort( 'a' , 'long' ) - OIsOddGate = IsOdd.GetOutPort( 'Gate' ) - - PyIsOdd_1 = [] - PyIsOdd_1.append( 'from time import * ' ) - PyIsOdd_1.append( 'def IsOdd(a) : ' ) - PyIsOdd_1.append( ' print a,"IsOdd_1 (GraphSwitchs)" ' ) - PyIsOdd_1.append( ' sleep( 1 ) ' ) - PyIsOdd_1.append( ' return a ' ) - IsOdd_1 = GraphLoopsStupidCoupledSwitchs.INode( 'IsOdd' , PyIsOdd_1 ) - IsOdd_1.SetName( 'IsOdd_1' ) - IsOdd_1.SetAuthor( '' ) - IsOdd_1.SetComment( 'Python function' ) - IsOdd_1.Coords( 487 , 321 ) - IIsOdd_1a = IsOdd_1.InPort( 'a' , 'long' ) - IIsOdd_1Gate = IsOdd_1.GetInPort( 'Gate' ) - OIsOdd_1a = IsOdd_1.OutPort( 'a' , 'long' ) - OIsOdd_1Gate = IsOdd_1.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyInitLoopSwitch = [] - PyInitLoopSwitch.append( 'def InitLoop(Index,Min,Max) : ' ) - PyInitLoopSwitch.append( ' return Index,Min,Max ' ) - PyMoreInitLoopSwitch = [] - PyMoreInitLoopSwitch.append( 'def MoreLoop(Index,Min,Max) : ' ) - PyMoreInitLoopSwitch.append( ' if Index <= Max : ' ) - 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 = GraphLoopsStupidCoupledSwitchs.LNode( 'InitLoop' , PyInitLoopSwitch , 'MoreLoop' , PyMoreInitLoopSwitch , 'NextLoop' , PyNextInitLoopSwitch ) - EndOfInitLoopSwitch.SetName( 'EndOfInitLoopSwitch' ) - EndOfInitLoopSwitch.SetAuthor( '' ) - EndOfInitLoopSwitch.SetComment( 'Compute Node' ) - EndOfInitLoopSwitch.Coords( 955 , 122 ) - 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( 14 , 136 ) - - PyInitLoop = [] - PyInitLoop.append( 'def InitLoop(Index,Min,Max) : ' ) - PyInitLoop.append( ' return Index,Min,Max ' ) - PyMoreInitLoop = [] - PyMoreInitLoop.append( 'def MoreLoop(Index,Min,Max) : ' ) - PyMoreInitLoop.append( ' if Index <= Max : ' ) - PyMoreInitLoop.append( ' DoLoop = 1 ' ) - PyMoreInitLoop.append( ' else : ' ) - PyMoreInitLoop.append( ' DoLoop = 0 ' ) - PyMoreInitLoop.append( ' return DoLoop,Index,Min,Max ' ) - PyNextInitLoop = [] - PyNextInitLoop.append( 'def NextLoop(Index,Min,Max) : ' ) - PyNextInitLoop.append( ' Index = Index + 1 ' ) - PyNextInitLoop.append( ' return Index,Min,Max ' ) - InitLoop,EndOfInitLoop = GraphLoopsStupidCoupledSwitchs.LNode( 'InitLoop' , PyInitLoop , 'MoreLoop' , PyMoreInitLoop , 'NextLoop' , PyNextInitLoop ) - EndOfInitLoop.SetName( 'EndOfInitLoop' ) - EndOfInitLoop.SetAuthor( '' ) - EndOfInitLoop.SetComment( 'Compute Node' ) - EndOfInitLoop.Coords( 961 , 369 ) - PyEndOfInitLoop = [] - EndOfInitLoop.SetPyFunction( '' , PyEndOfInitLoop ) - IInitLoopDoLoop = InitLoop.GetInPort( 'DoLoop' ) - IInitLoopIndex = InitLoop.InPort( 'Index' , 'long' ) - IInitLoopMin = InitLoop.InPort( 'Min' , 'long' ) - IInitLoopMax = InitLoop.InPort( 'Max' , 'long' ) - IInitLoopGate = InitLoop.GetInPort( 'Gate' ) - OInitLoopDoLoop = InitLoop.GetOutPort( 'DoLoop' ) - OInitLoopIndex = InitLoop.GetOutPort( 'Index' ) - OInitLoopMin = InitLoop.GetOutPort( 'Min' ) - OInitLoopMax = InitLoop.GetOutPort( 'Max' ) - IEndOfInitLoopDoLoop = EndOfInitLoop.GetInPort( 'DoLoop' ) - IEndOfInitLoopIndex = EndOfInitLoop.GetInPort( 'Index' ) - IEndOfInitLoopMin = EndOfInitLoop.GetInPort( 'Min' ) - IEndOfInitLoopMax = EndOfInitLoop.GetInPort( 'Max' ) - IEndOfInitLoopGate = EndOfInitLoop.GetInPort( 'Gate' ) - OEndOfInitLoopDoLoop = EndOfInitLoop.GetOutPort( 'DoLoop' ) - OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) - OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) - OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) - OEndOfInitLoopGate = EndOfInitLoop.GetOutPort( 'Gate' ) - InitLoop.SetName( 'InitLoop' ) - InitLoop.SetAuthor( '' ) - InitLoop.SetComment( 'Compute Node' ) - InitLoop.Coords( 10 , 391 ) - - # Creation of Switch Nodes - PySwitch = [] - PySwitch.append( 'from time import * ' ) - PySwitch.append( 'def Switch(a) : ' ) - PySwitch.append( ' if ( a & 1 ) == 0 : ' ) - PySwitch.append( ' sleep(1) ' ) - PySwitch.append( ' return a & 1,1-(a&1),a ' ) - Switch,EndOfSwitch = GraphLoopsStupidCoupledSwitchs.SNode( 'Switch' , PySwitch ) - EndOfSwitch.SetName( 'EndOfSwitch' ) - EndOfSwitch.SetAuthor( '' ) - EndOfSwitch.SetComment( 'Compute Node' ) - EndOfSwitch.Coords( 690 , 129 ) - PyEndOfSwitch = [] - EndOfSwitch.SetPyFunction( '' , 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( 245 , 136 ) - ISwitcha = Switch.InPort( 'a' , 'long' ) - ISwitchGate = Switch.GetInPort( 'Gate' ) - OSwitchOdd = Switch.OutPort( 'Odd' , 'long' ) - OSwitchEven = Switch.OutPort( 'Even' , 'int' ) - OSwitcha = Switch.OutPort( 'a' , 'int' ) - OSwitchDefault = Switch.GetOutPort( 'Default' ) - - PySwitch_1 = [] - PySwitch_1.append( 'from time import * ' ) - PySwitch_1.append( 'def Switch(a) : ' ) - PySwitch_1.append( ' if ( a & 1 ) == 0 : ' ) - PySwitch_1.append( ' sleep(1) ' ) - PySwitch_1.append( ' return a & 1,1-(a&1),a ' ) - Switch_1,EndSwitch = GraphLoopsStupidCoupledSwitchs.SNode( 'Switch' , PySwitch_1 ) - EndSwitch.SetName( 'EndSwitch' ) - EndSwitch.SetAuthor( '' ) - EndSwitch.SetComment( 'Compute Node' ) - EndSwitch.Coords( 695 , 387 ) - PyEndSwitch = [] - EndSwitch.SetPyFunction( '' , PyEndSwitch ) - IEndSwitcha = EndSwitch.InPort( 'a' , 'long' ) - IEndSwitchDefault = EndSwitch.GetInPort( 'Default' ) - OEndSwitcha = EndSwitch.OutPort( 'a' , 'long' ) - OEndSwitchGate = EndSwitch.GetOutPort( 'Gate' ) - Switch_1.SetName( 'Switch_1' ) - Switch_1.SetAuthor( '' ) - Switch_1.SetComment( 'Compute Node' ) - Switch_1.Coords( 258 , 391 ) - ISwitch_1a = Switch_1.InPort( 'a' , 'long' ) - ISwitch_1Gate = Switch_1.GetInPort( 'Gate' ) - OSwitch_1Odd = Switch_1.OutPort( 'Odd' , 'long' ) - OSwitch_1Even = Switch_1.OutPort( 'Even' , 'int' ) - OSwitch_1a = Switch_1.OutPort( 'a' , 'int' ) - OSwitch_1Default = Switch_1.GetOutPort( 'Default' ) - - # Creation of Links - LIsOddaEndOfSwitcha = GraphLoopsStupidCoupledSwitchs.Link( OIsOdda , IEndOfSwitcha ) - - LIsOddGateEndOfSwitchDefault = GraphLoopsStupidCoupledSwitchs.Link( OIsOddGate , IEndOfSwitchDefault ) - - LInitLoopSwitchIndexSwitcha = GraphLoopsStupidCoupledSwitchs.Link( OInitLoopSwitchIndex , ISwitcha ) - - LInitLoopSwitchMinEndOfInitLoopSwitchMin = GraphLoopsStupidCoupledSwitchs.Link( OInitLoopSwitchMin , IEndOfInitLoopSwitchMin ) - - LInitLoopSwitchMaxEndOfInitLoopSwitchMax = GraphLoopsStupidCoupledSwitchs.Link( OInitLoopSwitchMax , IEndOfInitLoopSwitchMax ) - - LInitLoopSwitchGateEndSwitchDefault = GraphLoopsStupidCoupledSwitchs.Link( OInitLoopSwitchGate , IEndSwitchDefault ) - - LSwitchaIsOdda = GraphLoopsStupidCoupledSwitchs.Link( OSwitcha , IIsOdda ) - - LSwitchDefaultEndSwitchDefault = GraphLoopsStupidCoupledSwitchs.Link( OSwitchDefault , IEndSwitchDefault ) - - LEndOfSwitchaEndOfInitLoopSwitchIndex = GraphLoopsStupidCoupledSwitchs.Link( OEndOfSwitcha , IEndOfInitLoopSwitchIndex ) - - LIsOdd_1aEndSwitcha = GraphLoopsStupidCoupledSwitchs.Link( OIsOdd_1a , IEndSwitcha ) - - LIsOdd_1GateEndSwitchDefault = GraphLoopsStupidCoupledSwitchs.Link( OIsOdd_1Gate , IEndSwitchDefault ) - - LIsOdd_1GateEndOfSwitchDefault = GraphLoopsStupidCoupledSwitchs.Link( OIsOdd_1Gate , IEndOfSwitchDefault ) - - LInitLoopIndexSwitch_1a = GraphLoopsStupidCoupledSwitchs.Link( OInitLoopIndex , ISwitch_1a ) - - LInitLoopMinEndOfInitLoopMin = GraphLoopsStupidCoupledSwitchs.Link( OInitLoopMin , IEndOfInitLoopMin ) - - LInitLoopMaxEndOfInitLoopMax = GraphLoopsStupidCoupledSwitchs.Link( OInitLoopMax , IEndOfInitLoopMax ) - - LInitLoopGateSwitchGate = GraphLoopsStupidCoupledSwitchs.Link( OInitLoopGate , ISwitchGate ) - - LInitLoopGateSwitch_1Gate = GraphLoopsStupidCoupledSwitchs.Link( OInitLoopGate , ISwitch_1Gate ) - - LInitLoopGateIsOdd_1Gate = GraphLoopsStupidCoupledSwitchs.Link( OInitLoopGate , IIsOdd_1Gate ) - - LInitLoopGateEndOfSwitchDefault = GraphLoopsStupidCoupledSwitchs.Link( OInitLoopGate , IEndOfSwitchDefault ) - - LSwitch_1EvenEndSwitchDefault = GraphLoopsStupidCoupledSwitchs.Link( OSwitch_1Even , IEndSwitchDefault ) - - LSwitch_1aIsOdd_1a = GraphLoopsStupidCoupledSwitchs.Link( OSwitch_1a , IIsOdd_1a ) - - LSwitch_1DefaultIsOddGate = GraphLoopsStupidCoupledSwitchs.Link( OSwitch_1Default , IIsOddGate ) - - LSwitch_1DefaultEndOfSwitchDefault = GraphLoopsStupidCoupledSwitchs.Link( OSwitch_1Default , IEndOfSwitchDefault ) - - LSwitch_1DefaultEndOfInitLoopSwitchGate = GraphLoopsStupidCoupledSwitchs.Link( OSwitch_1Default , IEndOfInitLoopSwitchGate ) - - LSwitch_1DefaultEndOfInitLoopGate = GraphLoopsStupidCoupledSwitchs.Link( OSwitch_1Default , IEndOfInitLoopGate ) - - LSwitch_1DefaultEndSwitchDefault = GraphLoopsStupidCoupledSwitchs.Link( OSwitch_1Default , IEndSwitchDefault ) - - LEndSwitchaEndOfInitLoopIndex = GraphLoopsStupidCoupledSwitchs.Link( OEndSwitcha , IEndOfInitLoopIndex ) - - # Input datas - IInitLoopSwitchIndex.Input( 0 ) - IInitLoopSwitchMin.Input( 0 ) - IInitLoopSwitchMax.Input( 20 ) - IInitLoopIndex.Input( 0 ) - IInitLoopMin.Input( 0 ) - IInitLoopMax.Input( 20 ) - - # Output Ports of the graph - #OEndOfInitLoopSwitchIndex = EndOfInitLoopSwitch.GetOutPort( 'Index' ) - #OEndOfInitLoopSwitchMin = EndOfInitLoopSwitch.GetOutPort( 'Min' ) - #OEndOfInitLoopSwitchMax = EndOfInitLoopSwitch.GetOutPort( 'Max' ) - #OSwitchOdd = Switch.GetOutPort( 'Odd' ) - #OSwitchEven = Switch.GetOutPort( 'Even' ) - #OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) - #OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) - #OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) - #OSwitch_1Odd = Switch_1.GetOutPort( 'Odd' ) - return GraphLoopsStupidCoupledSwitchs - - -GraphLoopsStupidCoupledSwitchs = DefGraphLoopsStupidCoupledSwitchs() diff --git a/Superv/Python/GraphMacroNodes.py b/Superv/Python/GraphMacroNodes.py deleted file mode 100644 index 7c33222..0000000 --- a/Superv/Python/GraphMacroNodes.py +++ /dev/null @@ -1,1073 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphMacroNodes -# -from SuperV import * - -# Graph creation of GraphMacroNodes -def DefGraphMacroNodes() : - GraphMacroNodes = Graph( 'GraphMacroNodes' ) - GraphMacroNodes.SetName( 'GraphMacroNodes' ) - GraphMacroNodes.SetAuthor( '' ) - GraphMacroNodes.SetComment( '' ) - GraphMacroNodes.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - Add = GraphMacroNodes.FNode( 'AddComponent' , 'AddComponent' , 'Add' ) - Add.SetName( 'Add' ) - Add.SetAuthor( '' ) - Add.SetContainer( 'FactoryServer' ) - Add.SetComment( 'Add from AddComponent' ) - Add.Coords( 9 , 293 ) - IAddx = Add.GetInPort( 'x' ) - IAddy = Add.GetInPort( 'y' ) - IAddGate = Add.GetInPort( 'Gate' ) - OAddFuncValue = Add.GetOutPort( 'FuncValue' ) - OAddz = Add.GetOutPort( 'z' ) - OAddGate = Add.GetOutPort( 'Gate' ) - - Sub = GraphMacroNodes.FNode( 'SubComponent' , 'SubComponent' , 'Sub' ) - Sub.SetName( 'Sub' ) - Sub.SetAuthor( '' ) - Sub.SetContainer( 'FactoryServer' ) - Sub.SetComment( 'Sub from SubComponent' ) - Sub.Coords( 227 , 99 ) - ISubx = Sub.GetInPort( 'x' ) - ISuby = Sub.GetInPort( 'y' ) - ISubGate = Sub.GetInPort( 'Gate' ) - OSubz = Sub.GetOutPort( 'z' ) - OSubGate = Sub.GetOutPort( 'Gate' ) - - Mul = GraphMacroNodes.FNode( 'MulComponent' , 'MulComponent' , 'Mul' ) - Mul.SetName( 'Mul' ) - Mul.SetAuthor( '' ) - Mul.SetContainer( 'FactoryServer' ) - Mul.SetComment( 'Mul from MulComponent' ) - Mul.Coords( 443 , 278 ) - IMulx = Mul.GetInPort( 'x' ) - IMuly = Mul.GetInPort( 'y' ) - IMulGate = Mul.GetInPort( 'Gate' ) - OMulz = Mul.GetOutPort( 'z' ) - OMulGate = Mul.GetOutPort( 'Gate' ) - - Div = GraphMacroNodes.FNode( 'DivComponent' , 'DivComponent' , 'Div' ) - Div.SetName( 'Div' ) - Div.SetAuthor( '' ) - Div.SetContainer( 'FactoryServer' ) - Div.SetComment( 'Div from DivComponent' ) - Div.Coords( 634 , 97 ) - IDivx = Div.GetInPort( 'x' ) - IDivy = Div.GetInPort( 'y' ) - IDivGate = Div.GetInPort( 'Gate' ) - ODivz = Div.GetOutPort( 'z' ) - ODivGate = Div.GetOutPort( 'Gate' ) - - # Creation of Macro Nodes - SyrStruct_1 = DefSyrStruct_1() - Macro_SyrStruct = GraphMacroNodes.GraphMNode( SyrStruct_1 ) - Macro_SyrStruct.SetCoupled( 'SyrStruct_1' ) - Macro_SyrStruct.SetName( 'Macro_SyrStruct' ) - Macro_SyrStruct.SetAuthor( '' ) - Macro_SyrStruct.SetComment( 'Macro Node' ) - Macro_SyrStruct.Coords( 13 , 6 ) - IMacro_SyrStructSyrComponent__aContainer = Macro_SyrStruct.GetInPort( 'SyrComponent__aContainer' ) - IMacro_SyrStructSyrComponent__aComponent = Macro_SyrStruct.GetInPort( 'SyrComponent__aComponent' ) - IMacro_SyrStructforN__N = Macro_SyrStruct.GetInPort( 'forN__N' ) - IMacro_SyrStructforN__K = Macro_SyrStruct.GetInPort( 'forN__K' ) - IMacro_SyrStructforN__min = Macro_SyrStruct.GetInPort( 'forN__min' ) - IMacro_SyrStructforN__max = Macro_SyrStruct.GetInPort( 'forN__max' ) - IMacro_SyrStructfori__i = Macro_SyrStruct.GetInPort( 'fori__i' ) - IMacro_SyrStructGate = Macro_SyrStruct.GetInPort( 'Gate' ) - OMacro_SyrStructEndOfforN__N = Macro_SyrStruct.GetOutPort( 'EndOfforN__N' ) - OMacro_SyrStructEndOfforN__K = Macro_SyrStruct.GetOutPort( 'EndOfforN__K' ) - OMacro_SyrStructEndOfforN__SyrComponent = Macro_SyrStruct.GetOutPort( 'EndOfforN__SyrComponent' ) - OMacro_SyrStructEndOfforN__min = Macro_SyrStruct.GetOutPort( 'EndOfforN__min' ) - OMacro_SyrStructEndOfforN__max = Macro_SyrStruct.GetOutPort( 'EndOfforN__max' ) - OMacro_SyrStructEndOfwhileNotOne__SyrComponent = Macro_SyrStruct.GetOutPort( 'EndOfwhileNotOne__SyrComponent' ) - OMacro_SyrStructEndOfwhileNotOne__N = Macro_SyrStruct.GetOutPort( 'EndOfwhileNotOne__N' ) - OMacro_SyrStructEndOffori__i = Macro_SyrStruct.GetOutPort( 'EndOffori__i' ) - OMacro_SyrStructEndOfwhileEven__SyrComponent = Macro_SyrStruct.GetOutPort( 'EndOfwhileEven__SyrComponent' ) - OMacro_SyrStructGate = Macro_SyrStruct.GetOutPort( 'Gate' ) - - SyrStruct_1_1 = DefSyrStruct_1_1() - Macro_SyrStruct_1 = GraphMacroNodes.GraphMNode( SyrStruct_1_1 ) - Macro_SyrStruct_1.SetCoupled( 'SyrStruct_1_1' ) - Macro_SyrStruct_1.SetName( 'Macro_SyrStruct_1' ) - Macro_SyrStruct_1.SetAuthor( '' ) - Macro_SyrStruct_1.SetComment( 'Macro Node' ) - Macro_SyrStruct_1.Coords( 8 , 441 ) - IMacro_SyrStruct_1SyrComponent__aContainer = Macro_SyrStruct_1.GetInPort( 'SyrComponent__aContainer' ) - IMacro_SyrStruct_1SyrComponent__aComponent = Macro_SyrStruct_1.GetInPort( 'SyrComponent__aComponent' ) - IMacro_SyrStruct_1forN__N = Macro_SyrStruct_1.GetInPort( 'forN__N' ) - IMacro_SyrStruct_1forN__K = Macro_SyrStruct_1.GetInPort( 'forN__K' ) - IMacro_SyrStruct_1forN__min = Macro_SyrStruct_1.GetInPort( 'forN__min' ) - IMacro_SyrStruct_1forN__max = Macro_SyrStruct_1.GetInPort( 'forN__max' ) - IMacro_SyrStruct_1fori__i = Macro_SyrStruct_1.GetInPort( 'fori__i' ) - IMacro_SyrStruct_1Gate = Macro_SyrStruct_1.GetInPort( 'Gate' ) - OMacro_SyrStruct_1EndOfforN__N = Macro_SyrStruct_1.GetOutPort( 'EndOfforN__N' ) - OMacro_SyrStruct_1EndOfforN__K = Macro_SyrStruct_1.GetOutPort( 'EndOfforN__K' ) - OMacro_SyrStruct_1EndOfforN__SyrComponent = Macro_SyrStruct_1.GetOutPort( 'EndOfforN__SyrComponent' ) - OMacro_SyrStruct_1EndOfforN__min = Macro_SyrStruct_1.GetOutPort( 'EndOfforN__min' ) - OMacro_SyrStruct_1EndOfforN__max = Macro_SyrStruct_1.GetOutPort( 'EndOfforN__max' ) - OMacro_SyrStruct_1EndOfwhileNotOne__SyrComponent = Macro_SyrStruct_1.GetOutPort( 'EndOfwhileNotOne__SyrComponent' ) - OMacro_SyrStruct_1EndOfwhileNotOne__N = Macro_SyrStruct_1.GetOutPort( 'EndOfwhileNotOne__N' ) - OMacro_SyrStruct_1EndOffori__i = Macro_SyrStruct_1.GetOutPort( 'EndOffori__i' ) - OMacro_SyrStruct_1EndOfwhileEven__SyrComponent = Macro_SyrStruct_1.GetOutPort( 'EndOfwhileEven__SyrComponent' ) - OMacro_SyrStruct_1Gate = Macro_SyrStruct_1.GetOutPort( 'Gate' ) - - # Creation of Links - LAddzSuby = GraphMacroNodes.Link( OAddz , ISuby ) - - LAddzMuly = GraphMacroNodes.Link( OAddz , IMuly ) - - LSubzMulx = GraphMacroNodes.Link( OSubz , IMulx ) - - LSubzDivx = GraphMacroNodes.Link( OSubz , IDivx ) - - LMulzDivy = GraphMacroNodes.Link( OMulz , IDivy ) - - # Input datas - IAddx.Input( 3 ) - IAddy.Input( 4.5 ) - ISubx.Input( 1.5 ) - IMacro_SyrStructSyrComponent__aContainer.Input( 'FactoryServer' ) - IMacro_SyrStructSyrComponent__aComponent.Input( 'SyrComponent' ) - IMacro_SyrStructforN__N.Input( 0 ) - IMacro_SyrStructforN__K.Input( 0 ) - IMacro_SyrStructforN__min.Input( 5 ) - IMacro_SyrStructforN__max.Input( 9 ) - IMacro_SyrStructfori__i.Input( 0 ) - IMacro_SyrStruct_1SyrComponent__aContainer.Input( 'FactoryServer' ) - IMacro_SyrStruct_1SyrComponent__aComponent.Input( 'SyrComponent' ) - IMacro_SyrStruct_1forN__N.Input( 0 ) - IMacro_SyrStruct_1forN__K.Input( 0 ) - IMacro_SyrStruct_1forN__min.Input( 5 ) - IMacro_SyrStruct_1forN__max.Input( 9 ) - IMacro_SyrStruct_1fori__i.Input( 0 ) - - # Output Ports of the graph - #OAddFuncValue = Add.GetOutPort( 'FuncValue' ) - #ODivz = Div.GetOutPort( 'z' ) - #OMacro_SyrStructEndOfforN__N = Macro_SyrStruct.GetOutPort( 'EndOfforN__N' ) - #OMacro_SyrStructEndOfforN__K = Macro_SyrStruct.GetOutPort( 'EndOfforN__K' ) - #OMacro_SyrStructEndOfforN__SyrComponent = Macro_SyrStruct.GetOutPort( 'EndOfforN__SyrComponent' ) - #OMacro_SyrStructEndOfforN__min = Macro_SyrStruct.GetOutPort( 'EndOfforN__min' ) - #OMacro_SyrStructEndOfforN__max = Macro_SyrStruct.GetOutPort( 'EndOfforN__max' ) - #OMacro_SyrStructEndOfwhileNotOne__SyrComponent = Macro_SyrStruct.GetOutPort( 'EndOfwhileNotOne__SyrComponent' ) - #OMacro_SyrStructEndOfwhileNotOne__N = Macro_SyrStruct.GetOutPort( 'EndOfwhileNotOne__N' ) - #OMacro_SyrStructEndOffori__i = Macro_SyrStruct.GetOutPort( 'EndOffori__i' ) - #OMacro_SyrStructEndOfwhileEven__SyrComponent = Macro_SyrStruct.GetOutPort( 'EndOfwhileEven__SyrComponent' ) - #OMacro_SyrStruct_1EndOfforN__N = Macro_SyrStruct_1.GetOutPort( 'EndOfforN__N' ) - #OMacro_SyrStruct_1EndOfforN__K = Macro_SyrStruct_1.GetOutPort( 'EndOfforN__K' ) - #OMacro_SyrStruct_1EndOfforN__SyrComponent = Macro_SyrStruct_1.GetOutPort( 'EndOfforN__SyrComponent' ) - #OMacro_SyrStruct_1EndOfforN__min = Macro_SyrStruct_1.GetOutPort( 'EndOfforN__min' ) - #OMacro_SyrStruct_1EndOfforN__max = Macro_SyrStruct_1.GetOutPort( 'EndOfforN__max' ) - #OMacro_SyrStruct_1EndOfwhileNotOne__SyrComponent = Macro_SyrStruct_1.GetOutPort( 'EndOfwhileNotOne__SyrComponent' ) - #OMacro_SyrStruct_1EndOfwhileNotOne__N = Macro_SyrStruct_1.GetOutPort( 'EndOfwhileNotOne__N' ) - #OMacro_SyrStruct_1EndOffori__i = Macro_SyrStruct_1.GetOutPort( 'EndOffori__i' ) - #OMacro_SyrStruct_1EndOfwhileEven__SyrComponent = Macro_SyrStruct_1.GetOutPort( 'EndOfwhileEven__SyrComponent' ) - return GraphMacroNodes - -# Graph creation of SyrStruct_1 -def DefSyrStruct_1() : - SyrStruct_1 = Graph( 'SyrStruct_1' ) - SyrStruct_1.SetCoupled( 'Macro_SyrStruct' ) - SyrStruct_1.SetName( 'SyrStruct_1' ) - SyrStruct_1.SetAuthor( 'JR' ) - SyrStruct_1.SetComment( 'Syracuse algorithm' ) - SyrStruct_1.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - m3 = SyrStruct_1.FNode( 'SyrComponent' , 'SyrComponent' , 'C_M3' ) - m3.SetName( 'm3' ) - m3.SetAuthor( '' ) - m3.SetContainer( 'localhost/FactoryServer' ) - m3.SetComment( 'C_M3 from SyrComponent' ) - m3.Coords( 672 , 28 ) - Im3anOddInteger = m3.GetInPort( 'anOddInteger' ) - Im3Gate = m3.GetInPort( 'Gate' ) - Om3anInteger = m3.GetOutPort( 'anInteger' ) - Om3Gate = m3.GetOutPort( 'Gate' ) - - m3incr = SyrStruct_1.FNode( 'SyrComponent' , 'SyrComponent' , 'C_INCR' ) - m3incr.SetName( 'm3incr' ) - m3incr.SetAuthor( '' ) - m3incr.SetContainer( 'localhost/FactoryServer' ) - m3incr.SetComment( 'C_INCR from SyrComponent' ) - m3incr.Coords( 898 , 29 ) - Im3incraCount = m3incr.GetInPort( 'aCount' ) - Im3incrGate = m3incr.GetInPort( 'Gate' ) - Om3incraNewCount = m3incr.GetOutPort( 'aNewCount' ) - Om3incrGate = m3incr.GetOutPort( 'Gate' ) - - incra = SyrStruct_1.FNode( 'SyrComponent' , 'SyrComponent' , 'C_INCR' ) - incra.SetName( 'incra' ) - incra.SetAuthor( '' ) - incra.SetContainer( 'localhost/FactoryServer' ) - incra.SetComment( 'C_INCR from SyrComponent' ) - incra.Coords( 803 , 195 ) - IincraaCount = incra.GetInPort( 'aCount' ) - IincraGate = incra.GetInPort( 'Gate' ) - OincraaNewCount = incra.GetOutPort( 'aNewCount' ) - OincraGate = incra.GetOutPort( 'Gate' ) - - div2 = SyrStruct_1.FNode( 'SyrComponent' , 'SyrComponent' , 'C_DIV2' ) - div2.SetName( 'div2' ) - div2.SetAuthor( '' ) - div2.SetContainer( 'localhost/FactoryServer' ) - div2.SetComment( 'C_DIV2 from SyrComponent' ) - div2.Coords( 810 , 435 ) - Idiv2anEvenInteger = div2.GetInPort( 'anEvenInteger' ) - Idiv2Gate = div2.GetInPort( 'Gate' ) - Odiv2anInteger = div2.GetOutPort( 'anInteger' ) - Odiv2Gate = div2.GetOutPort( 'Gate' ) - - incrb = SyrStruct_1.FNode( 'SyrComponent' , 'SyrComponent' , 'C_INCR' ) - incrb.SetName( 'incrb' ) - incrb.SetAuthor( '' ) - incrb.SetContainer( 'localhost/FactoryServer' ) - incrb.SetComment( 'C_INCR from SyrComponent' ) - incrb.Coords( 809 , 574 ) - IincrbaCount = incrb.GetInPort( 'aCount' ) - IincrbGate = incrb.GetInPort( 'Gate' ) - OincrbaNewCount = incrb.GetOutPort( 'aNewCount' ) - OincrbGate = incrb.GetOutPort( 'Gate' ) - - # Creation of InLine Nodes - PySyrComponent = [] - PySyrComponent.append( 'from LifeCycleCORBA import * ' ) - PySyrComponent.append( 'def SyrComponent( aContainer , aComponent ) : ' ) - PySyrComponent.append( ' orb = CORBA.ORB_init([], CORBA.ORB_ID) ' ) - PySyrComponent.append( ' lcc = LifeCycleCORBA(orb) ' ) - PySyrComponent.append( ' ComponentRef = lcc.FindOrLoadComponent( aContainer , aComponent ) ' ) - PySyrComponent.append( ' return ComponentRef ' ) - SyrComponent = SyrStruct_1.INode( 'SyrComponent' , PySyrComponent ) - SyrComponent.SetName( 'SyrComponent' ) - SyrComponent.SetAuthor( '' ) - SyrComponent.SetComment( 'SyrComponent( aContainer , aComponent )' ) - SyrComponent.Coords( 0 , 0 ) - ISyrComponentaContainer = SyrComponent.InPort( 'aContainer' , 'string' ) - ISyrComponentaComponent = SyrComponent.InPort( 'aComponent' , 'string' ) - ISyrComponentGate = SyrComponent.GetInPort( 'Gate' ) - OSyrComponentSyrComponentobjref = SyrComponent.OutPort( 'SyrComponentobjref' , 'objref' ) - OSyrComponentGate = SyrComponent.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyforN = [] - PyforN.append( 'def InitN( NN , K , SyrComponent , min , max ) : ' ) - PyforN.append( ' N = max ' ) - PyforN.append( ' if min > 0 : ' ) - PyforN.append( ' if max >= min : ' ) - PyforN.append( ' N = min ' ) - PyforN.append( ' return N,K,SyrComponent,min,max ' ) - PyMoreforN = [] - PyMoreforN.append( 'def MoreN( NN , KK , SyrComponent , min , max ) : ' ) - PyMoreforN.append( ' N = NN ' ) - PyMoreforN.append( ' OutLoop = 0 ' ) - PyMoreforN.append( ' if max > NN : ' ) - PyMoreforN.append( ' OutLoop = 1 ' ) - PyMoreforN.append( ' return OutLoop,N,0,SyrComponent,min,max ' ) - PyNextforN = [] - PyNextforN.append( 'def NextN( NN , KK , SyrComponent , min , max ) : ' ) - PyNextforN.append( ' N = NN + 1 ' ) - PyNextforN.append( ' K = KK ' ) - PyNextforN.append( ' return N,K,SyrComponent,min,max ' ) - forN,EndOfforN = SyrStruct_1.LNode( 'InitN' , PyforN , 'MoreN' , PyMoreforN , 'NextN' , PyNextforN ) - EndOfforN.SetName( 'EndOfforN' ) - EndOfforN.SetAuthor( '' ) - EndOfforN.SetComment( '' ) - EndOfforN.Coords( 1535 , 332 ) - PyEndOfforN = [] - EndOfforN.SetPyFunction( '' , PyEndOfforN ) - IforNDoLoop = forN.GetInPort( 'DoLoop' ) - IforNN = forN.InPort( 'N' , 'long' ) - IforNK = forN.InPort( 'K' , 'long' ) - IforNSyrComponent = forN.InPort( 'SyrComponent' , 'objref' ) - IforNmin = forN.InPort( 'min' , 'long' ) - IforNmax = forN.InPort( 'max' , 'long' ) - IforNGate = forN.GetInPort( 'Gate' ) - OforNDoLoop = forN.GetOutPort( 'DoLoop' ) - OforNN = forN.GetOutPort( 'N' ) - OforNK = forN.GetOutPort( 'K' ) - OforNSyrComponent = forN.GetOutPort( 'SyrComponent' ) - OforNmin = forN.GetOutPort( 'min' ) - OforNmax = forN.GetOutPort( 'max' ) - IEndOfforNDoLoop = EndOfforN.GetInPort( 'DoLoop' ) - IEndOfforNN = EndOfforN.GetInPort( 'N' ) - IEndOfforNK = EndOfforN.GetInPort( 'K' ) - IEndOfforNSyrComponent = EndOfforN.GetInPort( 'SyrComponent' ) - IEndOfforNmin = EndOfforN.GetInPort( 'min' ) - IEndOfforNmax = EndOfforN.GetInPort( 'max' ) - IEndOfforNGate = EndOfforN.GetInPort( 'Gate' ) - OEndOfforNDoLoop = EndOfforN.GetOutPort( 'DoLoop' ) - OEndOfforNN = EndOfforN.GetOutPort( 'N' ) - OEndOfforNK = EndOfforN.GetOutPort( 'K' ) - OEndOfforNSyrComponent = EndOfforN.GetOutPort( 'SyrComponent' ) - OEndOfforNmin = EndOfforN.GetOutPort( 'min' ) - OEndOfforNmax = EndOfforN.GetOutPort( 'max' ) - OEndOfforNGate = EndOfforN.GetOutPort( 'Gate' ) - forN.SetName( 'forN' ) - forN.SetAuthor( '' ) - forN.SetComment( 'InitN , MoreN , NextN' ) - forN.Coords( 20 , 302 ) - - PywhileNotOne = [] - PywhileNotOne.append( 'import threading' ) - PywhileNotOne.append( 'import SyrComponent_idl' ) - PywhileNotOne.append( 'def InitNotOne( SyrComponent , N , K ) :' ) - PywhileNotOne.append( ' return SyrComponent,N,K' ) - PyMorewhileNotOne = [] - PyMorewhileNotOne.append( 'import SyrComponent_idl' ) - PyMorewhileNotOne.append( 'def MoreNotOne( SyrComponent , N , K ) :' ) - PyMorewhileNotOne.append( ' OutLoop = 1 - SyrComponent.C_ISONE( N )' ) - PyMorewhileNotOne.append( ' return OutLoop,SyrComponent,N,K ' ) - PyNextwhileNotOne = [] - PyNextwhileNotOne.append( 'import SyrComponent_idl' ) - PyNextwhileNotOne.append( 'def NextNotOne( SyrComponent , N , K ) :' ) - PyNextwhileNotOne.append( ' return SyrComponent,N,K' ) - whileNotOne,EndOfwhileNotOne = SyrStruct_1.LNode( 'InitNotOne' , PywhileNotOne , 'MoreNotOne' , PyMorewhileNotOne , 'NextNotOne' , PyNextwhileNotOne ) - EndOfwhileNotOne.SetName( 'EndOfwhileNotOne' ) - EndOfwhileNotOne.SetAuthor( '' ) - EndOfwhileNotOne.SetComment( '' ) - EndOfwhileNotOne.Coords( 1366 , 303 ) - PyEndOfwhileNotOne = [] - EndOfwhileNotOne.SetPyFunction( '' , PyEndOfwhileNotOne ) - IwhileNotOneDoLoop = whileNotOne.GetInPort( 'DoLoop' ) - IwhileNotOneSyrComponent = whileNotOne.InPort( 'SyrComponent' , 'objref' ) - IwhileNotOneN = whileNotOne.InPort( 'N' , 'long' ) - IwhileNotOneK = whileNotOne.InPort( 'K' , 'long' ) - IwhileNotOneGate = whileNotOne.GetInPort( 'Gate' ) - OwhileNotOneDoLoop = whileNotOne.GetOutPort( 'DoLoop' ) - OwhileNotOneSyrComponent = whileNotOne.GetOutPort( 'SyrComponent' ) - OwhileNotOneN = whileNotOne.GetOutPort( 'N' ) - OwhileNotOneK = whileNotOne.GetOutPort( 'K' ) - IEndOfwhileNotOneDoLoop = EndOfwhileNotOne.GetInPort( 'DoLoop' ) - IEndOfwhileNotOneSyrComponent = EndOfwhileNotOne.GetInPort( 'SyrComponent' ) - IEndOfwhileNotOneN = EndOfwhileNotOne.GetInPort( 'N' ) - IEndOfwhileNotOneK = EndOfwhileNotOne.GetInPort( 'K' ) - IEndOfwhileNotOneGate = EndOfwhileNotOne.GetInPort( 'Gate' ) - OEndOfwhileNotOneDoLoop = EndOfwhileNotOne.GetOutPort( 'DoLoop' ) - OEndOfwhileNotOneSyrComponent = EndOfwhileNotOne.GetOutPort( 'SyrComponent' ) - OEndOfwhileNotOneN = EndOfwhileNotOne.GetOutPort( 'N' ) - OEndOfwhileNotOneK = EndOfwhileNotOne.GetOutPort( 'K' ) - OEndOfwhileNotOneGate = EndOfwhileNotOne.GetOutPort( 'Gate' ) - whileNotOne.SetName( 'whileNotOne' ) - whileNotOne.SetAuthor( '' ) - whileNotOne.SetComment( 'InitNotOne , MoreNotOne , NextNotOne' ) - whileNotOne.Coords( 212 , 274 ) - - Pyfori = [] - Pyfori.append( 'def Initfori( ii , K ) :' ) - Pyfori.append( ' return 1,0,K' ) - PyMorefori = [] - PyMorefori.append( 'def Morefori( ii , K ) :' ) - PyMorefori.append( ' OutLoop = 0' ) - PyMorefori.append( ' if 2 > ii :' ) - PyMorefori.append( ' OutLoop = 1' ) - PyMorefori.append( ' return OutLoop,ii,K' ) - PyNextfori = [] - PyNextfori.append( 'def Nextfori( ii , K ) :' ) - PyNextfori.append( ' ii = ii + 1' ) - PyNextfori.append( ' return ii,K' ) - fori,EndOffori = SyrStruct_1.LNode( 'Initfori' , Pyfori , 'Morefori' , PyMorefori , 'Nextfori' , PyNextfori ) - EndOffori.SetName( 'EndOffori' ) - EndOffori.SetAuthor( '' ) - EndOffori.SetComment( '' ) - EndOffori.Coords( 976 , 212 ) - PyEndOffori = [] - EndOffori.SetPyFunction( '' , PyEndOffori ) - IforiDoLoop = fori.GetInPort( 'DoLoop' ) - Iforii = fori.InPort( 'i' , 'long' ) - IforiK = fori.InPort( 'K' , 'long' ) - IforiGate = fori.GetInPort( 'Gate' ) - OforiDoLoop = fori.GetOutPort( 'DoLoop' ) - Oforii = fori.GetOutPort( 'i' ) - OforiK = fori.GetOutPort( 'K' ) - IEndOfforiDoLoop = EndOffori.GetInPort( 'DoLoop' ) - IEndOfforii = EndOffori.GetInPort( 'i' ) - IEndOfforiK = EndOffori.GetInPort( 'K' ) - IEndOfforiGate = EndOffori.GetInPort( 'Gate' ) - OEndOfforiDoLoop = EndOffori.GetOutPort( 'DoLoop' ) - OEndOfforii = EndOffori.GetOutPort( 'i' ) - OEndOfforiK = EndOffori.GetOutPort( 'K' ) - OEndOfforiGate = EndOffori.GetOutPort( 'Gate' ) - fori.SetName( 'fori' ) - fori.SetAuthor( '' ) - fori.SetComment( 'Initfori, Morefori, Nextfori' ) - fori.Coords( 635 , 212 ) - - PywhileEven = [] - PywhileEven.append( 'import SyrComponent_idl' ) - PywhileEven.append( 'def InitEven( SyrComponent , N , K ) :' ) - PywhileEven.append( ' return SyrComponent,N,K' ) - PyMorewhileEven = [] - PyMorewhileEven.append( 'import SyrComponent_idl' ) - PyMorewhileEven.append( 'def MoreEven( SyrComponent , N , K ) :' ) - PyMorewhileEven.append( ' OutLoop = SyrComponent.C_ISEVEN( N )' ) - PyMorewhileEven.append( ' return OutLoop,SyrComponent,N,K ' ) - PyNextwhileEven = [] - PyNextwhileEven.append( 'import SyrComponent_idl' ) - PyNextwhileEven.append( 'def NextEven( SyrComponent , N , K ) :' ) - PyNextwhileEven.append( ' return SyrComponent,N,K' ) - whileEven,EndOfwhileEven = SyrStruct_1.LNode( 'InitEven' , PywhileEven , 'MoreEven' , PyMorewhileEven , 'NextEven' , PyNextwhileEven ) - EndOfwhileEven.SetName( 'EndOfwhileEven' ) - EndOfwhileEven.SetAuthor( '' ) - EndOfwhileEven.SetComment( '' ) - EndOfwhileEven.Coords( 988 , 451 ) - PyEndOfwhileEven = [] - EndOfwhileEven.SetPyFunction( '' , PyEndOfwhileEven ) - IwhileEvenDoLoop = whileEven.GetInPort( 'DoLoop' ) - IwhileEvenSyrComponent = whileEven.InPort( 'SyrComponent' , 'objref' ) - IwhileEvenN = whileEven.InPort( 'N' , 'long' ) - IwhileEvenK = whileEven.InPort( 'K' , 'long' ) - IwhileEvenGate = whileEven.GetInPort( 'Gate' ) - OwhileEvenDoLoop = whileEven.GetOutPort( 'DoLoop' ) - OwhileEvenSyrComponent = whileEven.GetOutPort( 'SyrComponent' ) - OwhileEvenN = whileEven.GetOutPort( 'N' ) - OwhileEvenK = whileEven.GetOutPort( 'K' ) - IEndOfwhileEvenDoLoop = EndOfwhileEven.GetInPort( 'DoLoop' ) - IEndOfwhileEvenSyrComponent = EndOfwhileEven.GetInPort( 'SyrComponent' ) - IEndOfwhileEvenN = EndOfwhileEven.GetInPort( 'N' ) - IEndOfwhileEvenK = EndOfwhileEven.GetInPort( 'K' ) - IEndOfwhileEvenGate = EndOfwhileEven.GetInPort( 'Gate' ) - OEndOfwhileEvenDoLoop = EndOfwhileEven.GetOutPort( 'DoLoop' ) - OEndOfwhileEvenSyrComponent = EndOfwhileEven.GetOutPort( 'SyrComponent' ) - OEndOfwhileEvenN = EndOfwhileEven.GetOutPort( 'N' ) - OEndOfwhileEvenK = EndOfwhileEven.GetOutPort( 'K' ) - OEndOfwhileEvenGate = EndOfwhileEven.GetOutPort( 'Gate' ) - whileEven.SetName( 'whileEven' ) - whileEven.SetAuthor( '' ) - whileEven.SetComment( 'InitEven, MoreEven, NextEven' ) - whileEven.Coords( 632 , 451 ) - - # Creation of Switch Nodes - PyifNotEven = [] - PyifNotEven.append( 'import SyrComponent_idl' ) - PyifNotEven.append( 'def ifNotEven( SyrComponent , N , K ) :' ) - PyifNotEven.append( ' Even = SyrComponent.C_ISEVEN( N )' ) - PyifNotEven.append( ' Odd = 1 - Even' ) - PyifNotEven.append( ' return Odd,Even,SyrComponent,N,K' ) - ifNotEven,EndOfifNotEven = SyrStruct_1.SNode( 'ifNotEven' , PyifNotEven ) - EndOfifNotEven.SetName( 'EndOfifNotEven' ) - EndOfifNotEven.SetAuthor( '' ) - EndOfifNotEven.SetComment( '' ) - EndOfifNotEven.Coords( 1205 , 331 ) - PyEndOfifNotEven = [] - EndOfifNotEven.SetPyFunction( '' , PyEndOfifNotEven ) - IEndOfifNotEvenN = EndOfifNotEven.InPort( 'N' , 'long' ) - IEndOfifNotEvenK = EndOfifNotEven.InPort( 'K' , 'long' ) - IEndOfifNotEvenDefault = EndOfifNotEven.GetInPort( 'Default' ) - OEndOfifNotEvenN = EndOfifNotEven.OutPort( 'N' , 'long' ) - OEndOfifNotEvenK = EndOfifNotEven.OutPort( 'K' , 'long' ) - OEndOfifNotEvenGate = EndOfifNotEven.GetOutPort( 'Gate' ) - ifNotEven.SetName( 'ifNotEven' ) - ifNotEven.SetAuthor( '' ) - ifNotEven.SetComment( 'ifNotEven' ) - ifNotEven.Coords( 418 , 274 ) - IifNotEvenSyrComponent = ifNotEven.InPort( 'SyrComponent' , 'objref' ) - IifNotEvenN = ifNotEven.InPort( 'N' , 'long' ) - IifNotEvenK = ifNotEven.InPort( 'K' , 'long' ) - IifNotEvenGate = ifNotEven.GetInPort( 'Gate' ) - OifNotEvenOdd = ifNotEven.OutPort( 'Odd' , 'long' ) - OifNotEvenEven = ifNotEven.OutPort( 'Even' , 'long' ) - OifNotEvenSyrComponent = ifNotEven.OutPort( 'SyrComponent' , 'objref' ) - OifNotEvenN = ifNotEven.OutPort( 'N' , 'long' ) - OifNotEvenK = ifNotEven.OutPort( 'K' , 'long' ) - OifNotEvenDefault = ifNotEven.GetOutPort( 'Default' ) - - # Creation of Links - Lm3anIntegerm3incraCount = SyrStruct_1.Link( Om3anInteger , Im3incraCount ) - - Lm3incraNewCountEndOfifNotEvenN = SyrStruct_1.Link( Om3incraNewCount , IEndOfifNotEvenN ) - Lm3incraNewCountEndOfifNotEvenN.AddCoord( 1 , 1190 , 366 ) - Lm3incraNewCountEndOfifNotEvenN.AddCoord( 2 , 1191 , 109 ) - - LincraaNewCountEndOfforiK = SyrStruct_1.Link( OincraaNewCount , IEndOfforiK ) - - Ldiv2anIntegerEndOfwhileEvenN = SyrStruct_1.Link( Odiv2anInteger , IEndOfwhileEvenN ) - - LincrbaNewCountEndOfwhileEvenK = SyrStruct_1.Link( OincrbaNewCount , IEndOfwhileEvenK ) - LincrbaNewCountEndOfwhileEvenK.AddCoord( 1 , 988 , 543 ) - LincrbaNewCountEndOfwhileEvenK.AddCoord( 2 , 988 , 654 ) - - LSyrComponentSyrComponentobjrefforNSyrComponent = SyrStruct_1.Link( OSyrComponentSyrComponentobjref , IforNSyrComponent ) - LSyrComponentSyrComponentobjrefforNSyrComponent.AddCoord( 1 , 13 , 394 ) - LSyrComponentSyrComponentobjrefforNSyrComponent.AddCoord( 2 , 12 , 181 ) - LSyrComponentSyrComponentobjrefforNSyrComponent.AddCoord( 3 , 196 , 181 ) - LSyrComponentSyrComponentobjrefforNSyrComponent.AddCoord( 4 , 197 , 81 ) - - LforNNwhileNotOneN = SyrStruct_1.Link( OforNN , IwhileNotOneN ) - - LforNNEndOfforNN = SyrStruct_1.Link( OforNN , IEndOfforNN ) - - LforNKwhileNotOneK = SyrStruct_1.Link( OforNK , IwhileNotOneK ) - - LforNSyrComponentEndOfforNSyrComponent = SyrStruct_1.Link( OforNSyrComponent , IEndOfforNSyrComponent ) - - LforNSyrComponentwhileNotOneSyrComponent = SyrStruct_1.Link( OforNSyrComponent , IwhileNotOneSyrComponent ) - LforNSyrComponentwhileNotOneSyrComponent.AddCoord( 1 , 192 , 309 ) - LforNSyrComponentwhileNotOneSyrComponent.AddCoord( 2 , 191 , 394 ) - - LforNminEndOfforNmin = SyrStruct_1.Link( OforNmin , IEndOfforNmin ) - - LforNmaxEndOfforNmax = SyrStruct_1.Link( OforNmax , IEndOfforNmax ) - - LwhileNotOneSyrComponentEndOfwhileNotOneSyrComponent = SyrStruct_1.Link( OwhileNotOneSyrComponent , IEndOfwhileNotOneSyrComponent ) - - LwhileNotOneSyrComponentifNotEvenSyrComponent = SyrStruct_1.Link( OwhileNotOneSyrComponent , IifNotEvenSyrComponent ) - - LwhileNotOneNifNotEvenN = SyrStruct_1.Link( OwhileNotOneN , IifNotEvenN ) - - LwhileNotOneKifNotEvenK = SyrStruct_1.Link( OwhileNotOneK , IifNotEvenK ) - - LEndOfwhileNotOneKEndOfforNK = SyrStruct_1.Link( OEndOfwhileNotOneK , IEndOfforNK ) - - LforiiEndOfforii = SyrStruct_1.Link( Oforii , IEndOfforii ) - - LforiKincraaCount = SyrStruct_1.Link( OforiK , IincraaCount ) - - LEndOfforiKEndOfifNotEvenK = SyrStruct_1.Link( OEndOfforiK , IEndOfifNotEvenK ) - LEndOfforiKEndOfifNotEvenK.AddCoord( 1 , 1170 , 396 ) - LEndOfforiKEndOfifNotEvenK.AddCoord( 2 , 1169 , 275 ) - - LwhileEvenSyrComponentEndOfwhileEvenSyrComponent = SyrStruct_1.Link( OwhileEvenSyrComponent , IEndOfwhileEvenSyrComponent ) - - LwhileEvenNdiv2anEvenInteger = SyrStruct_1.Link( OwhileEvenN , Idiv2anEvenInteger ) - - LwhileEvenKincrbaCount = SyrStruct_1.Link( OwhileEvenK , IincrbaCount ) - LwhileEvenKincrbaCount.AddCoord( 1 , 796 , 655 ) - LwhileEvenKincrbaCount.AddCoord( 2 , 795 , 543 ) - - LEndOfwhileEvenNEndOfifNotEvenN = SyrStruct_1.Link( OEndOfwhileEvenN , IEndOfifNotEvenN ) - LEndOfwhileEvenNEndOfifNotEvenN.AddCoord( 1 , 1191 , 366 ) - LEndOfwhileEvenNEndOfifNotEvenN.AddCoord( 2 , 1191 , 513 ) - - LEndOfwhileEvenKEndOfifNotEvenK = SyrStruct_1.Link( OEndOfwhileEvenK , IEndOfifNotEvenK ) - LEndOfwhileEvenKEndOfifNotEvenK.AddCoord( 1 , 1169 , 395 ) - LEndOfwhileEvenKEndOfifNotEvenK.AddCoord( 2 , 1170 , 543 ) - - LifNotEvenOddm3Gate = SyrStruct_1.Link( OifNotEvenOdd , Im3Gate ) - LifNotEvenOddm3Gate.AddCoord( 1 , 593 , 141 ) - LifNotEvenOddm3Gate.AddCoord( 2 , 593 , 307 ) - - LifNotEvenOddforiGate = SyrStruct_1.Link( OifNotEvenOdd , IforiGate ) - - LifNotEvenEvenwhileEvenGate = SyrStruct_1.Link( OifNotEvenEven , IwhileEvenGate ) - LifNotEvenEvenwhileEvenGate.AddCoord( 1 , 593 , 576 ) - LifNotEvenEvenwhileEvenGate.AddCoord( 2 , 592 , 339 ) - - LifNotEvenSyrComponentwhileEvenSyrComponent = SyrStruct_1.Link( OifNotEvenSyrComponent , IwhileEvenSyrComponent ) - LifNotEvenSyrComponentwhileEvenSyrComponent.AddCoord( 1 , 586 , 486 ) - LifNotEvenSyrComponentwhileEvenSyrComponent.AddCoord( 2 , 587 , 367 ) - - LifNotEvenNwhileEvenN = SyrStruct_1.Link( OifNotEvenN , IwhileEvenN ) - LifNotEvenNwhileEvenN.AddCoord( 1 , 604 , 513 ) - LifNotEvenNwhileEvenN.AddCoord( 2 , 603 , 397 ) - - LifNotEvenNm3anOddInteger = SyrStruct_1.Link( OifNotEvenN , Im3anOddInteger ) - LifNotEvenNm3anOddInteger.AddCoord( 1 , 604 , 107 ) - LifNotEvenNm3anOddInteger.AddCoord( 2 , 604 , 395 ) - - LifNotEvenKwhileEvenK = SyrStruct_1.Link( OifNotEvenK , IwhileEvenK ) - LifNotEvenKwhileEvenK.AddCoord( 1 , 621 , 544 ) - LifNotEvenKwhileEvenK.AddCoord( 2 , 622 , 426 ) - - LifNotEvenKforiK = SyrStruct_1.Link( OifNotEvenK , IforiK ) - LifNotEvenKforiK.AddCoord( 1 , 622 , 275 ) - LifNotEvenKforiK.AddCoord( 2 , 622 , 426 ) - - LifNotEvenDefaultEndOfifNotEvenDefault = SyrStruct_1.Link( OifNotEvenDefault , IEndOfifNotEvenDefault ) - LifNotEvenDefaultEndOfifNotEvenDefault.AddCoord( 1 , 1204 , 429 ) - LifNotEvenDefaultEndOfifNotEvenDefault.AddCoord( 2 , 1203 , 12 ) - LifNotEvenDefaultEndOfifNotEvenDefault.AddCoord( 3 , 581 , 13 ) - LifNotEvenDefaultEndOfifNotEvenDefault.AddCoord( 4 , 581 , 458 ) - - LEndOfifNotEvenNEndOfwhileNotOneN = SyrStruct_1.Link( OEndOfifNotEvenN , IEndOfwhileNotOneN ) - - LEndOfifNotEvenKEndOfwhileNotOneK = SyrStruct_1.Link( OEndOfifNotEvenK , IEndOfwhileNotOneK ) - - # Input Ports of the graph - #ISyrComponentaContainer = SyrComponent.GetInPort( 'aContainer' ) - #ISyrComponentaComponent = SyrComponent.GetInPort( 'aComponent' ) - #IforNN = forN.GetInPort( 'N' ) - #IforNK = forN.GetInPort( 'K' ) - #IforNmin = forN.GetInPort( 'min' ) - #IforNmax = forN.GetInPort( 'max' ) - #Iforii = fori.GetInPort( 'i' ) - - # Output Ports of the graph - #OEndOfforNN = EndOfforN.GetOutPort( 'N' ) - #OEndOfforNK = EndOfforN.GetOutPort( 'K' ) - #OEndOfforNSyrComponent = EndOfforN.GetOutPort( 'SyrComponent' ) - #OEndOfforNmin = EndOfforN.GetOutPort( 'min' ) - #OEndOfforNmax = EndOfforN.GetOutPort( 'max' ) - #OEndOfwhileNotOneSyrComponent = EndOfwhileNotOne.GetOutPort( 'SyrComponent' ) - #OEndOfwhileNotOneN = EndOfwhileNotOne.GetOutPort( 'N' ) - #OEndOfforii = EndOffori.GetOutPort( 'i' ) - #OEndOfwhileEvenSyrComponent = EndOfwhileEven.GetOutPort( 'SyrComponent' ) - return SyrStruct_1 - -# Graph creation of SyrStruct_1_1 -def DefSyrStruct_1_1() : - SyrStruct_1_1 = Graph( 'SyrStruct_1_1' ) - SyrStruct_1_1.SetCoupled( 'Macro_SyrStruct_1' ) - SyrStruct_1_1.SetName( 'SyrStruct_1_1' ) - SyrStruct_1_1.SetAuthor( 'JR' ) - SyrStruct_1_1.SetComment( 'Syracuse algorithm' ) - SyrStruct_1_1.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - m3 = SyrStruct_1_1.FNode( 'SyrComponent' , 'SyrComponent' , 'C_M3' ) - m3.SetName( 'm3' ) - m3.SetAuthor( '' ) - m3.SetContainer( 'localhost/FactoryServer' ) - m3.SetComment( 'C_M3 from SyrComponent' ) - m3.Coords( 672 , 28 ) - Im3anOddInteger = m3.GetInPort( 'anOddInteger' ) - Im3Gate = m3.GetInPort( 'Gate' ) - Om3anInteger = m3.GetOutPort( 'anInteger' ) - Om3Gate = m3.GetOutPort( 'Gate' ) - - m3incr = SyrStruct_1_1.FNode( 'SyrComponent' , 'SyrComponent' , 'C_INCR' ) - m3incr.SetName( 'm3incr' ) - m3incr.SetAuthor( '' ) - m3incr.SetContainer( 'localhost/FactoryServer' ) - m3incr.SetComment( 'C_INCR from SyrComponent' ) - m3incr.Coords( 898 , 29 ) - Im3incraCount = m3incr.GetInPort( 'aCount' ) - Im3incrGate = m3incr.GetInPort( 'Gate' ) - Om3incraNewCount = m3incr.GetOutPort( 'aNewCount' ) - Om3incrGate = m3incr.GetOutPort( 'Gate' ) - - incra = SyrStruct_1_1.FNode( 'SyrComponent' , 'SyrComponent' , 'C_INCR' ) - incra.SetName( 'incra' ) - incra.SetAuthor( '' ) - incra.SetContainer( 'localhost/FactoryServer' ) - incra.SetComment( 'C_INCR from SyrComponent' ) - incra.Coords( 803 , 195 ) - IincraaCount = incra.GetInPort( 'aCount' ) - IincraGate = incra.GetInPort( 'Gate' ) - OincraaNewCount = incra.GetOutPort( 'aNewCount' ) - OincraGate = incra.GetOutPort( 'Gate' ) - - div2 = SyrStruct_1_1.FNode( 'SyrComponent' , 'SyrComponent' , 'C_DIV2' ) - div2.SetName( 'div2' ) - div2.SetAuthor( '' ) - div2.SetContainer( 'localhost/FactoryServer' ) - div2.SetComment( 'C_DIV2 from SyrComponent' ) - div2.Coords( 810 , 435 ) - Idiv2anEvenInteger = div2.GetInPort( 'anEvenInteger' ) - Idiv2Gate = div2.GetInPort( 'Gate' ) - Odiv2anInteger = div2.GetOutPort( 'anInteger' ) - Odiv2Gate = div2.GetOutPort( 'Gate' ) - - incrb = SyrStruct_1_1.FNode( 'SyrComponent' , 'SyrComponent' , 'C_INCR' ) - incrb.SetName( 'incrb' ) - incrb.SetAuthor( '' ) - incrb.SetContainer( 'localhost/FactoryServer' ) - incrb.SetComment( 'C_INCR from SyrComponent' ) - incrb.Coords( 809 , 574 ) - IincrbaCount = incrb.GetInPort( 'aCount' ) - IincrbGate = incrb.GetInPort( 'Gate' ) - OincrbaNewCount = incrb.GetOutPort( 'aNewCount' ) - OincrbGate = incrb.GetOutPort( 'Gate' ) - - # Creation of InLine Nodes - PySyrComponent = [] - PySyrComponent.append( 'from LifeCycleCORBA import * ' ) - PySyrComponent.append( 'def SyrComponent( aContainer , aComponent ) : ' ) - PySyrComponent.append( ' orb = CORBA.ORB_init([], CORBA.ORB_ID) ' ) - PySyrComponent.append( ' lcc = LifeCycleCORBA(orb) ' ) - PySyrComponent.append( ' ComponentRef = lcc.FindOrLoadComponent( aContainer , aComponent ) ' ) - PySyrComponent.append( ' return ComponentRef ' ) - SyrComponent = SyrStruct_1_1.INode( 'SyrComponent' , PySyrComponent ) - SyrComponent.SetName( 'SyrComponent' ) - SyrComponent.SetAuthor( '' ) - SyrComponent.SetComment( 'SyrComponent( aContainer , aComponent )' ) - SyrComponent.Coords( 0 , 0 ) - ISyrComponentaContainer = SyrComponent.InPort( 'aContainer' , 'string' ) - ISyrComponentaComponent = SyrComponent.InPort( 'aComponent' , 'string' ) - ISyrComponentGate = SyrComponent.GetInPort( 'Gate' ) - OSyrComponentSyrComponentobjref = SyrComponent.OutPort( 'SyrComponentobjref' , 'objref' ) - OSyrComponentGate = SyrComponent.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyforN = [] - PyforN.append( 'def InitN( NN , K , SyrComponent , min , max ) : ' ) - PyforN.append( ' N = max ' ) - PyforN.append( ' if min > 0 : ' ) - PyforN.append( ' if max >= min : ' ) - PyforN.append( ' N = min ' ) - PyforN.append( ' return N,K,SyrComponent,min,max ' ) - PyMoreforN = [] - PyMoreforN.append( 'def MoreN( NN , KK , SyrComponent , min , max ) : ' ) - PyMoreforN.append( ' N = NN ' ) - PyMoreforN.append( ' OutLoop = 0 ' ) - PyMoreforN.append( ' if max > NN : ' ) - PyMoreforN.append( ' OutLoop = 1 ' ) - PyMoreforN.append( ' return OutLoop,N,0,SyrComponent,min,max ' ) - PyNextforN = [] - PyNextforN.append( 'def NextN( NN , KK , SyrComponent , min , max ) : ' ) - PyNextforN.append( ' N = NN + 1 ' ) - PyNextforN.append( ' K = KK ' ) - PyNextforN.append( ' return N,K,SyrComponent,min,max ' ) - forN,EndOfforN = SyrStruct_1_1.LNode( 'InitN' , PyforN , 'MoreN' , PyMoreforN , 'NextN' , PyNextforN ) - EndOfforN.SetName( 'EndOfforN' ) - EndOfforN.SetAuthor( '' ) - EndOfforN.SetComment( '' ) - EndOfforN.Coords( 1535 , 332 ) - PyEndOfforN = [] - EndOfforN.SetPyFunction( '' , PyEndOfforN ) - IforNDoLoop = forN.GetInPort( 'DoLoop' ) - IforNN = forN.InPort( 'N' , 'long' ) - IforNK = forN.InPort( 'K' , 'long' ) - IforNSyrComponent = forN.InPort( 'SyrComponent' , 'objref' ) - IforNmin = forN.InPort( 'min' , 'long' ) - IforNmax = forN.InPort( 'max' , 'long' ) - IforNGate = forN.GetInPort( 'Gate' ) - OforNDoLoop = forN.GetOutPort( 'DoLoop' ) - OforNN = forN.GetOutPort( 'N' ) - OforNK = forN.GetOutPort( 'K' ) - OforNSyrComponent = forN.GetOutPort( 'SyrComponent' ) - OforNmin = forN.GetOutPort( 'min' ) - OforNmax = forN.GetOutPort( 'max' ) - IEndOfforNDoLoop = EndOfforN.GetInPort( 'DoLoop' ) - IEndOfforNN = EndOfforN.GetInPort( 'N' ) - IEndOfforNK = EndOfforN.GetInPort( 'K' ) - IEndOfforNSyrComponent = EndOfforN.GetInPort( 'SyrComponent' ) - IEndOfforNmin = EndOfforN.GetInPort( 'min' ) - IEndOfforNmax = EndOfforN.GetInPort( 'max' ) - IEndOfforNGate = EndOfforN.GetInPort( 'Gate' ) - OEndOfforNDoLoop = EndOfforN.GetOutPort( 'DoLoop' ) - OEndOfforNN = EndOfforN.GetOutPort( 'N' ) - OEndOfforNK = EndOfforN.GetOutPort( 'K' ) - OEndOfforNSyrComponent = EndOfforN.GetOutPort( 'SyrComponent' ) - OEndOfforNmin = EndOfforN.GetOutPort( 'min' ) - OEndOfforNmax = EndOfforN.GetOutPort( 'max' ) - OEndOfforNGate = EndOfforN.GetOutPort( 'Gate' ) - forN.SetName( 'forN' ) - forN.SetAuthor( '' ) - forN.SetComment( 'InitN , MoreN , NextN' ) - forN.Coords( 20 , 302 ) - - PywhileNotOne = [] - PywhileNotOne.append( 'import threading' ) - PywhileNotOne.append( 'import SyrComponent_idl' ) - PywhileNotOne.append( 'def InitNotOne( SyrComponent , N , K ) :' ) - PywhileNotOne.append( ' return SyrComponent,N,K' ) - PyMorewhileNotOne = [] - PyMorewhileNotOne.append( 'import SyrComponent_idl' ) - PyMorewhileNotOne.append( 'def MoreNotOne( SyrComponent , N , K ) :' ) - PyMorewhileNotOne.append( ' OutLoop = 1 - SyrComponent.C_ISONE( N )' ) - PyMorewhileNotOne.append( ' return OutLoop,SyrComponent,N,K ' ) - PyNextwhileNotOne = [] - PyNextwhileNotOne.append( 'import SyrComponent_idl' ) - PyNextwhileNotOne.append( 'def NextNotOne( SyrComponent , N , K ) :' ) - PyNextwhileNotOne.append( ' return SyrComponent,N,K' ) - whileNotOne,EndOfwhileNotOne = SyrStruct_1_1.LNode( 'InitNotOne' , PywhileNotOne , 'MoreNotOne' , PyMorewhileNotOne , 'NextNotOne' , PyNextwhileNotOne ) - EndOfwhileNotOne.SetName( 'EndOfwhileNotOne' ) - EndOfwhileNotOne.SetAuthor( '' ) - EndOfwhileNotOne.SetComment( '' ) - EndOfwhileNotOne.Coords( 1366 , 303 ) - PyEndOfwhileNotOne = [] - EndOfwhileNotOne.SetPyFunction( '' , PyEndOfwhileNotOne ) - IwhileNotOneDoLoop = whileNotOne.GetInPort( 'DoLoop' ) - IwhileNotOneSyrComponent = whileNotOne.InPort( 'SyrComponent' , 'objref' ) - IwhileNotOneN = whileNotOne.InPort( 'N' , 'long' ) - IwhileNotOneK = whileNotOne.InPort( 'K' , 'long' ) - IwhileNotOneGate = whileNotOne.GetInPort( 'Gate' ) - OwhileNotOneDoLoop = whileNotOne.GetOutPort( 'DoLoop' ) - OwhileNotOneSyrComponent = whileNotOne.GetOutPort( 'SyrComponent' ) - OwhileNotOneN = whileNotOne.GetOutPort( 'N' ) - OwhileNotOneK = whileNotOne.GetOutPort( 'K' ) - IEndOfwhileNotOneDoLoop = EndOfwhileNotOne.GetInPort( 'DoLoop' ) - IEndOfwhileNotOneSyrComponent = EndOfwhileNotOne.GetInPort( 'SyrComponent' ) - IEndOfwhileNotOneN = EndOfwhileNotOne.GetInPort( 'N' ) - IEndOfwhileNotOneK = EndOfwhileNotOne.GetInPort( 'K' ) - IEndOfwhileNotOneGate = EndOfwhileNotOne.GetInPort( 'Gate' ) - OEndOfwhileNotOneDoLoop = EndOfwhileNotOne.GetOutPort( 'DoLoop' ) - OEndOfwhileNotOneSyrComponent = EndOfwhileNotOne.GetOutPort( 'SyrComponent' ) - OEndOfwhileNotOneN = EndOfwhileNotOne.GetOutPort( 'N' ) - OEndOfwhileNotOneK = EndOfwhileNotOne.GetOutPort( 'K' ) - OEndOfwhileNotOneGate = EndOfwhileNotOne.GetOutPort( 'Gate' ) - whileNotOne.SetName( 'whileNotOne' ) - whileNotOne.SetAuthor( '' ) - whileNotOne.SetComment( 'InitNotOne , MoreNotOne , NextNotOne' ) - whileNotOne.Coords( 212 , 274 ) - - Pyfori = [] - Pyfori.append( 'def Initfori( ii , K ) :' ) - Pyfori.append( ' return 1,0,K' ) - PyMorefori = [] - PyMorefori.append( 'def Morefori( ii , K ) :' ) - PyMorefori.append( ' OutLoop = 0' ) - PyMorefori.append( ' if 2 > ii :' ) - PyMorefori.append( ' OutLoop = 1' ) - PyMorefori.append( ' return OutLoop,ii,K' ) - PyNextfori = [] - PyNextfori.append( 'def Nextfori( ii , K ) :' ) - PyNextfori.append( ' ii = ii + 1' ) - PyNextfori.append( ' return ii,K' ) - fori,EndOffori = SyrStruct_1_1.LNode( 'Initfori' , Pyfori , 'Morefori' , PyMorefori , 'Nextfori' , PyNextfori ) - EndOffori.SetName( 'EndOffori' ) - EndOffori.SetAuthor( '' ) - EndOffori.SetComment( '' ) - EndOffori.Coords( 976 , 212 ) - PyEndOffori = [] - EndOffori.SetPyFunction( '' , PyEndOffori ) - IforiDoLoop = fori.GetInPort( 'DoLoop' ) - Iforii = fori.InPort( 'i' , 'long' ) - IforiK = fori.InPort( 'K' , 'long' ) - IforiGate = fori.GetInPort( 'Gate' ) - OforiDoLoop = fori.GetOutPort( 'DoLoop' ) - Oforii = fori.GetOutPort( 'i' ) - OforiK = fori.GetOutPort( 'K' ) - IEndOfforiDoLoop = EndOffori.GetInPort( 'DoLoop' ) - IEndOfforii = EndOffori.GetInPort( 'i' ) - IEndOfforiK = EndOffori.GetInPort( 'K' ) - IEndOfforiGate = EndOffori.GetInPort( 'Gate' ) - OEndOfforiDoLoop = EndOffori.GetOutPort( 'DoLoop' ) - OEndOfforii = EndOffori.GetOutPort( 'i' ) - OEndOfforiK = EndOffori.GetOutPort( 'K' ) - OEndOfforiGate = EndOffori.GetOutPort( 'Gate' ) - fori.SetName( 'fori' ) - fori.SetAuthor( '' ) - fori.SetComment( 'Initfori, Morefori, Nextfori' ) - fori.Coords( 635 , 212 ) - - PywhileEven = [] - PywhileEven.append( 'import SyrComponent_idl' ) - PywhileEven.append( 'def InitEven( SyrComponent , N , K ) :' ) - PywhileEven.append( ' return SyrComponent,N,K' ) - PyMorewhileEven = [] - PyMorewhileEven.append( 'import SyrComponent_idl' ) - PyMorewhileEven.append( 'def MoreEven( SyrComponent , N , K ) :' ) - PyMorewhileEven.append( ' OutLoop = SyrComponent.C_ISEVEN( N )' ) - PyMorewhileEven.append( ' return OutLoop,SyrComponent,N,K ' ) - PyNextwhileEven = [] - PyNextwhileEven.append( 'import SyrComponent_idl' ) - PyNextwhileEven.append( 'def NextEven( SyrComponent , N , K ) :' ) - PyNextwhileEven.append( ' return SyrComponent,N,K' ) - whileEven,EndOfwhileEven = SyrStruct_1_1.LNode( 'InitEven' , PywhileEven , 'MoreEven' , PyMorewhileEven , 'NextEven' , PyNextwhileEven ) - EndOfwhileEven.SetName( 'EndOfwhileEven' ) - EndOfwhileEven.SetAuthor( '' ) - EndOfwhileEven.SetComment( '' ) - EndOfwhileEven.Coords( 988 , 451 ) - PyEndOfwhileEven = [] - EndOfwhileEven.SetPyFunction( '' , PyEndOfwhileEven ) - IwhileEvenDoLoop = whileEven.GetInPort( 'DoLoop' ) - IwhileEvenSyrComponent = whileEven.InPort( 'SyrComponent' , 'objref' ) - IwhileEvenN = whileEven.InPort( 'N' , 'long' ) - IwhileEvenK = whileEven.InPort( 'K' , 'long' ) - IwhileEvenGate = whileEven.GetInPort( 'Gate' ) - OwhileEvenDoLoop = whileEven.GetOutPort( 'DoLoop' ) - OwhileEvenSyrComponent = whileEven.GetOutPort( 'SyrComponent' ) - OwhileEvenN = whileEven.GetOutPort( 'N' ) - OwhileEvenK = whileEven.GetOutPort( 'K' ) - IEndOfwhileEvenDoLoop = EndOfwhileEven.GetInPort( 'DoLoop' ) - IEndOfwhileEvenSyrComponent = EndOfwhileEven.GetInPort( 'SyrComponent' ) - IEndOfwhileEvenN = EndOfwhileEven.GetInPort( 'N' ) - IEndOfwhileEvenK = EndOfwhileEven.GetInPort( 'K' ) - IEndOfwhileEvenGate = EndOfwhileEven.GetInPort( 'Gate' ) - OEndOfwhileEvenDoLoop = EndOfwhileEven.GetOutPort( 'DoLoop' ) - OEndOfwhileEvenSyrComponent = EndOfwhileEven.GetOutPort( 'SyrComponent' ) - OEndOfwhileEvenN = EndOfwhileEven.GetOutPort( 'N' ) - OEndOfwhileEvenK = EndOfwhileEven.GetOutPort( 'K' ) - OEndOfwhileEvenGate = EndOfwhileEven.GetOutPort( 'Gate' ) - whileEven.SetName( 'whileEven' ) - whileEven.SetAuthor( '' ) - whileEven.SetComment( 'InitEven, MoreEven, NextEven' ) - whileEven.Coords( 632 , 451 ) - - # Creation of Switch Nodes - PyifNotEven = [] - PyifNotEven.append( 'import SyrComponent_idl' ) - PyifNotEven.append( 'def ifNotEven( SyrComponent , N , K ) :' ) - PyifNotEven.append( ' Even = SyrComponent.C_ISEVEN( N )' ) - PyifNotEven.append( ' Odd = 1 - Even' ) - PyifNotEven.append( ' return Odd,Even,SyrComponent,N,K' ) - ifNotEven,EndOfifNotEven = SyrStruct_1_1.SNode( 'ifNotEven' , PyifNotEven ) - EndOfifNotEven.SetName( 'EndOfifNotEven' ) - EndOfifNotEven.SetAuthor( '' ) - EndOfifNotEven.SetComment( '' ) - EndOfifNotEven.Coords( 1205 , 331 ) - PyEndOfifNotEven = [] - EndOfifNotEven.SetPyFunction( '' , PyEndOfifNotEven ) - IEndOfifNotEvenN = EndOfifNotEven.InPort( 'N' , 'long' ) - IEndOfifNotEvenK = EndOfifNotEven.InPort( 'K' , 'long' ) - IEndOfifNotEvenDefault = EndOfifNotEven.GetInPort( 'Default' ) - OEndOfifNotEvenN = EndOfifNotEven.OutPort( 'N' , 'long' ) - OEndOfifNotEvenK = EndOfifNotEven.OutPort( 'K' , 'long' ) - OEndOfifNotEvenGate = EndOfifNotEven.GetOutPort( 'Gate' ) - ifNotEven.SetName( 'ifNotEven' ) - ifNotEven.SetAuthor( '' ) - ifNotEven.SetComment( 'ifNotEven' ) - ifNotEven.Coords( 418 , 274 ) - IifNotEvenSyrComponent = ifNotEven.InPort( 'SyrComponent' , 'objref' ) - IifNotEvenN = ifNotEven.InPort( 'N' , 'long' ) - IifNotEvenK = ifNotEven.InPort( 'K' , 'long' ) - IifNotEvenGate = ifNotEven.GetInPort( 'Gate' ) - OifNotEvenOdd = ifNotEven.OutPort( 'Odd' , 'long' ) - OifNotEvenEven = ifNotEven.OutPort( 'Even' , 'long' ) - OifNotEvenSyrComponent = ifNotEven.OutPort( 'SyrComponent' , 'objref' ) - OifNotEvenN = ifNotEven.OutPort( 'N' , 'long' ) - OifNotEvenK = ifNotEven.OutPort( 'K' , 'long' ) - OifNotEvenDefault = ifNotEven.GetOutPort( 'Default' ) - - # Creation of Links - Lm3anIntegerm3incraCount = SyrStruct_1_1.Link( Om3anInteger , Im3incraCount ) - - Lm3incraNewCountEndOfifNotEvenN = SyrStruct_1_1.Link( Om3incraNewCount , IEndOfifNotEvenN ) - Lm3incraNewCountEndOfifNotEvenN.AddCoord( 1 , 1190 , 366 ) - Lm3incraNewCountEndOfifNotEvenN.AddCoord( 2 , 1191 , 109 ) - - LincraaNewCountEndOfforiK = SyrStruct_1_1.Link( OincraaNewCount , IEndOfforiK ) - - Ldiv2anIntegerEndOfwhileEvenN = SyrStruct_1_1.Link( Odiv2anInteger , IEndOfwhileEvenN ) - - LincrbaNewCountEndOfwhileEvenK = SyrStruct_1_1.Link( OincrbaNewCount , IEndOfwhileEvenK ) - LincrbaNewCountEndOfwhileEvenK.AddCoord( 1 , 988 , 543 ) - LincrbaNewCountEndOfwhileEvenK.AddCoord( 2 , 988 , 654 ) - - LSyrComponentSyrComponentobjrefforNSyrComponent = SyrStruct_1_1.Link( OSyrComponentSyrComponentobjref , IforNSyrComponent ) - LSyrComponentSyrComponentobjrefforNSyrComponent.AddCoord( 1 , 13 , 394 ) - LSyrComponentSyrComponentobjrefforNSyrComponent.AddCoord( 2 , 12 , 181 ) - LSyrComponentSyrComponentobjrefforNSyrComponent.AddCoord( 3 , 196 , 181 ) - LSyrComponentSyrComponentobjrefforNSyrComponent.AddCoord( 4 , 197 , 81 ) - - LforNNwhileNotOneN = SyrStruct_1_1.Link( OforNN , IwhileNotOneN ) - - LforNNEndOfforNN = SyrStruct_1_1.Link( OforNN , IEndOfforNN ) - - LforNKwhileNotOneK = SyrStruct_1_1.Link( OforNK , IwhileNotOneK ) - - LforNSyrComponentEndOfforNSyrComponent = SyrStruct_1_1.Link( OforNSyrComponent , IEndOfforNSyrComponent ) - - LforNSyrComponentwhileNotOneSyrComponent = SyrStruct_1_1.Link( OforNSyrComponent , IwhileNotOneSyrComponent ) - LforNSyrComponentwhileNotOneSyrComponent.AddCoord( 1 , 192 , 309 ) - LforNSyrComponentwhileNotOneSyrComponent.AddCoord( 2 , 191 , 394 ) - - LforNminEndOfforNmin = SyrStruct_1_1.Link( OforNmin , IEndOfforNmin ) - - LforNmaxEndOfforNmax = SyrStruct_1_1.Link( OforNmax , IEndOfforNmax ) - - LwhileNotOneSyrComponentEndOfwhileNotOneSyrComponent = SyrStruct_1_1.Link( OwhileNotOneSyrComponent , IEndOfwhileNotOneSyrComponent ) - - LwhileNotOneSyrComponentifNotEvenSyrComponent = SyrStruct_1_1.Link( OwhileNotOneSyrComponent , IifNotEvenSyrComponent ) - - LwhileNotOneNifNotEvenN = SyrStruct_1_1.Link( OwhileNotOneN , IifNotEvenN ) - - LwhileNotOneKifNotEvenK = SyrStruct_1_1.Link( OwhileNotOneK , IifNotEvenK ) - - LEndOfwhileNotOneKEndOfforNK = SyrStruct_1_1.Link( OEndOfwhileNotOneK , IEndOfforNK ) - - LforiiEndOfforii = SyrStruct_1_1.Link( Oforii , IEndOfforii ) - - LforiKincraaCount = SyrStruct_1_1.Link( OforiK , IincraaCount ) - - LEndOfforiKEndOfifNotEvenK = SyrStruct_1_1.Link( OEndOfforiK , IEndOfifNotEvenK ) - LEndOfforiKEndOfifNotEvenK.AddCoord( 1 , 1170 , 396 ) - LEndOfforiKEndOfifNotEvenK.AddCoord( 2 , 1169 , 275 ) - - LwhileEvenSyrComponentEndOfwhileEvenSyrComponent = SyrStruct_1_1.Link( OwhileEvenSyrComponent , IEndOfwhileEvenSyrComponent ) - - LwhileEvenNdiv2anEvenInteger = SyrStruct_1_1.Link( OwhileEvenN , Idiv2anEvenInteger ) - - LwhileEvenKincrbaCount = SyrStruct_1_1.Link( OwhileEvenK , IincrbaCount ) - LwhileEvenKincrbaCount.AddCoord( 1 , 796 , 655 ) - LwhileEvenKincrbaCount.AddCoord( 2 , 795 , 543 ) - - LEndOfwhileEvenNEndOfifNotEvenN = SyrStruct_1_1.Link( OEndOfwhileEvenN , IEndOfifNotEvenN ) - LEndOfwhileEvenNEndOfifNotEvenN.AddCoord( 1 , 1191 , 366 ) - LEndOfwhileEvenNEndOfifNotEvenN.AddCoord( 2 , 1191 , 513 ) - - LEndOfwhileEvenKEndOfifNotEvenK = SyrStruct_1_1.Link( OEndOfwhileEvenK , IEndOfifNotEvenK ) - LEndOfwhileEvenKEndOfifNotEvenK.AddCoord( 1 , 1169 , 395 ) - LEndOfwhileEvenKEndOfifNotEvenK.AddCoord( 2 , 1170 , 543 ) - - LifNotEvenOddm3Gate = SyrStruct_1_1.Link( OifNotEvenOdd , Im3Gate ) - LifNotEvenOddm3Gate.AddCoord( 1 , 593 , 141 ) - LifNotEvenOddm3Gate.AddCoord( 2 , 593 , 307 ) - - LifNotEvenOddforiGate = SyrStruct_1_1.Link( OifNotEvenOdd , IforiGate ) - - LifNotEvenEvenwhileEvenGate = SyrStruct_1_1.Link( OifNotEvenEven , IwhileEvenGate ) - LifNotEvenEvenwhileEvenGate.AddCoord( 1 , 593 , 576 ) - LifNotEvenEvenwhileEvenGate.AddCoord( 2 , 592 , 339 ) - - LifNotEvenSyrComponentwhileEvenSyrComponent = SyrStruct_1_1.Link( OifNotEvenSyrComponent , IwhileEvenSyrComponent ) - LifNotEvenSyrComponentwhileEvenSyrComponent.AddCoord( 1 , 586 , 486 ) - LifNotEvenSyrComponentwhileEvenSyrComponent.AddCoord( 2 , 587 , 367 ) - - LifNotEvenNwhileEvenN = SyrStruct_1_1.Link( OifNotEvenN , IwhileEvenN ) - LifNotEvenNwhileEvenN.AddCoord( 1 , 604 , 513 ) - LifNotEvenNwhileEvenN.AddCoord( 2 , 603 , 397 ) - - LifNotEvenNm3anOddInteger = SyrStruct_1_1.Link( OifNotEvenN , Im3anOddInteger ) - LifNotEvenNm3anOddInteger.AddCoord( 1 , 604 , 107 ) - LifNotEvenNm3anOddInteger.AddCoord( 2 , 604 , 395 ) - - LifNotEvenKwhileEvenK = SyrStruct_1_1.Link( OifNotEvenK , IwhileEvenK ) - LifNotEvenKwhileEvenK.AddCoord( 1 , 621 , 544 ) - LifNotEvenKwhileEvenK.AddCoord( 2 , 622 , 426 ) - - LifNotEvenKforiK = SyrStruct_1_1.Link( OifNotEvenK , IforiK ) - LifNotEvenKforiK.AddCoord( 1 , 622 , 275 ) - LifNotEvenKforiK.AddCoord( 2 , 622 , 426 ) - - LifNotEvenDefaultEndOfifNotEvenDefault = SyrStruct_1_1.Link( OifNotEvenDefault , IEndOfifNotEvenDefault ) - LifNotEvenDefaultEndOfifNotEvenDefault.AddCoord( 1 , 1204 , 429 ) - LifNotEvenDefaultEndOfifNotEvenDefault.AddCoord( 2 , 1203 , 12 ) - LifNotEvenDefaultEndOfifNotEvenDefault.AddCoord( 3 , 581 , 13 ) - LifNotEvenDefaultEndOfifNotEvenDefault.AddCoord( 4 , 581 , 458 ) - - LEndOfifNotEvenNEndOfwhileNotOneN = SyrStruct_1_1.Link( OEndOfifNotEvenN , IEndOfwhileNotOneN ) - - LEndOfifNotEvenKEndOfwhileNotOneK = SyrStruct_1_1.Link( OEndOfifNotEvenK , IEndOfwhileNotOneK ) - - # Input Ports of the graph - #ISyrComponentaContainer = SyrComponent.GetInPort( 'aContainer' ) - #ISyrComponentaComponent = SyrComponent.GetInPort( 'aComponent' ) - #IforNN = forN.GetInPort( 'N' ) - #IforNK = forN.GetInPort( 'K' ) - #IforNmin = forN.GetInPort( 'min' ) - #IforNmax = forN.GetInPort( 'max' ) - #Iforii = fori.GetInPort( 'i' ) - - # Output Ports of the graph - #OEndOfforNN = EndOfforN.GetOutPort( 'N' ) - #OEndOfforNK = EndOfforN.GetOutPort( 'K' ) - #OEndOfforNSyrComponent = EndOfforN.GetOutPort( 'SyrComponent' ) - #OEndOfforNmin = EndOfforN.GetOutPort( 'min' ) - #OEndOfforNmax = EndOfforN.GetOutPort( 'max' ) - #OEndOfwhileNotOneSyrComponent = EndOfwhileNotOne.GetOutPort( 'SyrComponent' ) - #OEndOfwhileNotOneN = EndOfwhileNotOne.GetOutPort( 'N' ) - #OEndOfforii = EndOffori.GetOutPort( 'i' ) - #OEndOfwhileEvenSyrComponent = EndOfwhileEven.GetOutPort( 'SyrComponent' ) - return SyrStruct_1_1 - - -GraphMacroNodes = DefGraphMacroNodes() diff --git a/Superv/Python/GraphMacroNodes1.py b/Superv/Python/GraphMacroNodes1.py deleted file mode 100644 index d72783a..0000000 --- a/Superv/Python/GraphMacroNodes1.py +++ /dev/null @@ -1,230 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphMacroNodes1 -# -from SuperV import * - -# Graph creation of GraphMacroNodes1 -def DefGraphMacroNodes1() : - GraphMacroNodes1 = Graph( 'GraphMacroNodes1' ) - GraphMacroNodes1.SetName( 'GraphMacroNodes1' ) - GraphMacroNodes1.SetAuthor( '' ) - GraphMacroNodes1.SetComment( '' ) - GraphMacroNodes1.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - Add = GraphMacroNodes1.FNode( 'AddComponent' , 'AddComponent' , 'Add' ) - Add.SetName( 'Add' ) - Add.SetAuthor( '' ) - Add.SetContainer( 'FactoryServer' ) - Add.SetComment( 'Add from AddComponent' ) - Add.Coords( 15 , 241 ) - IAddx = Add.GetInPort( 'x' ) - IAddy = Add.GetInPort( 'y' ) - IAddGate = Add.GetInPort( 'Gate' ) - OAddFuncValue = Add.GetOutPort( 'FuncValue' ) - OAddz = Add.GetOutPort( 'z' ) - OAddGate = Add.GetOutPort( 'Gate' ) - - Sub = GraphMacroNodes1.FNode( 'SubComponent' , 'SubComponent' , 'Sub' ) - Sub.SetName( 'Sub' ) - Sub.SetAuthor( '' ) - Sub.SetContainer( 'FactoryServer' ) - Sub.SetComment( 'Sub from SubComponent' ) - Sub.Coords( 227 , 99 ) - ISubx = Sub.GetInPort( 'x' ) - ISuby = Sub.GetInPort( 'y' ) - ISubGate = Sub.GetInPort( 'Gate' ) - OSubz = Sub.GetOutPort( 'z' ) - OSubGate = Sub.GetOutPort( 'Gate' ) - - Mul = GraphMacroNodes1.FNode( 'MulComponent' , 'MulComponent' , 'Mul' ) - Mul.SetName( 'Mul' ) - Mul.SetAuthor( '' ) - Mul.SetContainer( 'FactoryServer' ) - Mul.SetComment( 'Mul from MulComponent' ) - Mul.Coords( 469 , 304 ) - IMulx = Mul.GetInPort( 'x' ) - IMuly = Mul.GetInPort( 'y' ) - IMulGate = Mul.GetInPort( 'Gate' ) - OMulz = Mul.GetOutPort( 'z' ) - OMulGate = Mul.GetOutPort( 'Gate' ) - - Div = GraphMacroNodes1.FNode( 'DivComponent' , 'DivComponent' , 'Div' ) - Div.SetName( 'Div' ) - Div.SetAuthor( '' ) - Div.SetContainer( 'FactoryServer' ) - Div.SetComment( 'Div from DivComponent' ) - Div.Coords( 668 , 200 ) - IDivx = Div.GetInPort( 'x' ) - IDivy = Div.GetInPort( 'y' ) - IDivGate = Div.GetInPort( 'Gate' ) - ODivz = Div.GetOutPort( 'z' ) - ODivGate = Div.GetOutPort( 'Gate' ) - - # Creation of Macro Nodes - GraphAdd = DefGraphAdd() - Macro_GraphAdd = GraphMacroNodes1.GraphMNode( GraphAdd ) - Macro_GraphAdd.SetCoupled( 'GraphAdd' ) - Macro_GraphAdd.SetName( 'Macro_GraphAdd' ) - Macro_GraphAdd.SetAuthor( '' ) - Macro_GraphAdd.SetComment( 'Macro Node' ) - Macro_GraphAdd.Coords( 434 , 128 ) - IMacro_GraphAddAdd__x = Macro_GraphAdd.GetInPort( 'Add__x' ) - IMacro_GraphAddAdd__y = Macro_GraphAdd.GetInPort( 'Add__y' ) - IMacro_GraphAddGate = Macro_GraphAdd.GetInPort( 'Gate' ) - OMacro_GraphAddAdd__FuncValue = Macro_GraphAdd.GetOutPort( 'Add__FuncValue' ) - OMacro_GraphAddAdd__z = Macro_GraphAdd.GetOutPort( 'Add__z' ) - OMacro_GraphAddGate = Macro_GraphAdd.GetOutPort( 'Gate' ) - - GraphSub = DefGraphSub() - Macro_GraphSub = GraphMacroNodes1.GraphMNode( GraphSub ) - Macro_GraphSub.SetCoupled( 'GraphSub' ) - Macro_GraphSub.SetName( 'Macro_GraphSub' ) - Macro_GraphSub.SetAuthor( '' ) - Macro_GraphSub.SetComment( 'Macro Node' ) - Macro_GraphSub.Coords( 240 , 301 ) - IMacro_GraphSubSub__x = Macro_GraphSub.GetInPort( 'Sub__x' ) - IMacro_GraphSubSub__y = Macro_GraphSub.GetInPort( 'Sub__y' ) - IMacro_GraphSubGate = Macro_GraphSub.GetInPort( 'Gate' ) - OMacro_GraphSubSub__z = Macro_GraphSub.GetOutPort( 'Sub__z' ) - OMacro_GraphSubGate = Macro_GraphSub.GetOutPort( 'Gate' ) - - # Creation of Links - LAddFuncValueMacro_GraphSubSub__x = GraphMacroNodes1.Link( OAddFuncValue , IMacro_GraphSubSub__x ) - - LAddFuncValueMacro_GraphAddAdd__y = GraphMacroNodes1.Link( OAddFuncValue , IMacro_GraphAddAdd__y ) - - LAddzSuby = GraphMacroNodes1.Link( OAddz , ISuby ) - - LAddzMacro_GraphSubSub__y = GraphMacroNodes1.Link( OAddz , IMacro_GraphSubSub__y ) - - LSubzMulx = GraphMacroNodes1.Link( OSubz , IMulx ) - - LSubzMacro_GraphAddAdd__x = GraphMacroNodes1.Link( OSubz , IMacro_GraphAddAdd__x ) - - LMacro_GraphAddGateDivGate = GraphMacroNodes1.Link( OMacro_GraphAddGate , IDivGate ) - - LMacro_GraphSubSub__zMuly = GraphMacroNodes1.Link( OMacro_GraphSubSub__z , IMuly ) - - LMacro_GraphSubGateMulGate = GraphMacroNodes1.Link( OMacro_GraphSubGate , IMulGate ) - - # Input datas - IAddx.Input( 3 ) - IAddy.Input( 4.5 ) - ISubx.Input( 1.5 ) - IDivx.Input( 1 ) - IDivy.Input( 2 ) - - # Output Ports of the graph - #OMulz = Mul.GetOutPort( 'z' ) - #ODivz = Div.GetOutPort( 'z' ) - #OMacro_GraphAddAdd__FuncValue = Macro_GraphAdd.GetOutPort( 'Add__FuncValue' ) - #OMacro_GraphAddAdd__z = Macro_GraphAdd.GetOutPort( 'Add__z' ) - return GraphMacroNodes1 - -# Graph creation of GraphAdd -def DefGraphAdd() : - GraphAdd = Graph( 'GraphAdd' ) - GraphAdd.SetCoupled( 'Macro_GraphAdd' ) - GraphAdd.SetName( 'GraphAdd' ) - GraphAdd.SetAuthor( '' ) - GraphAdd.SetComment( '' ) - GraphAdd.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - Add = GraphAdd.FNode( 'AddComponent' , 'AddComponent' , 'Add' ) - Add.SetName( 'Add' ) - Add.SetAuthor( '' ) - Add.SetContainer( 'localhost/FactoryServer' ) - Add.SetComment( 'Add from AddComponent' ) - Add.Coords( 55 , 61 ) - IAddx = Add.GetInPort( 'x' ) - IAddy = Add.GetInPort( 'y' ) - IAddGate = Add.GetInPort( 'Gate' ) - OAddFuncValue = Add.GetOutPort( 'FuncValue' ) - OAddz = Add.GetOutPort( 'z' ) - OAddGate = Add.GetOutPort( 'Gate' ) - - # Input Ports of the graph - #IAddx = Add.GetInPort( 'x' ) - #IAddy = Add.GetInPort( 'y' ) - - # Output Ports of the graph - #OAddFuncValue = Add.GetOutPort( 'FuncValue' ) - #OAddz = Add.GetOutPort( 'z' ) - return GraphAdd - -# Graph creation of GraphSub -def DefGraphSub() : - GraphSub = Graph( 'GraphSub' ) - GraphSub.SetCoupled( 'Macro_GraphSub' ) - GraphSub.SetName( 'GraphSub' ) - GraphSub.SetAuthor( '' ) - GraphSub.SetComment( '' ) - GraphSub.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - Sub = GraphSub.FNode( 'SubComponent' , 'SubComponent' , 'Sub' ) - Sub.SetName( 'Sub' ) - Sub.SetAuthor( '' ) - Sub.SetContainer( 'localhost/FactoryServer' ) - Sub.SetComment( 'Sub from SubComponent' ) - Sub.Coords( 55 , 71 ) - ISubx = Sub.GetInPort( 'x' ) - ISuby = Sub.GetInPort( 'y' ) - ISubGate = Sub.GetInPort( 'Gate' ) - OSubz = Sub.GetOutPort( 'z' ) - OSubGate = Sub.GetOutPort( 'Gate' ) - - # Input Ports of the graph - #ISubx = Sub.GetInPort( 'x' ) - #ISuby = Sub.GetInPort( 'y' ) - - # Output Ports of the graph - #OSubz = Sub.GetOutPort( 'z' ) - return GraphSub - - -GraphMacroNodes1 = DefGraphMacroNodes1() - -exec GraphMacroNodes1.ListNodes() -# Add,Sub,Mul,Div,Macro_GraphAdd,Macro_GraphSub - -GraphMacroNodes1.Run() -GraphMacroNodes1.DoneW() -print "GraphMacroNodes1",GraphMacroNodes1.State() -print "Macro_GraphAdd",Macro_GraphAdd.State() -print "Macro_GraphSub",Macro_GraphSub.State() -print "Mul",Mul.State() -print "Div",Div.State() - -Macro_GraphSub.PrintPorts() -Mul.PrintPorts() - -Macro_GraphAdd.PrintPorts() -Div.PrintPorts() - diff --git a/Superv/Python/GraphMerge.py b/Superv/Python/GraphMerge.py deleted file mode 100755 index 31ab43e..0000000 --- a/Superv/Python/GraphMerge.py +++ /dev/null @@ -1,82 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Check the Merge of two graphs -# Creation of GraphSwitch -# -from GraphSwitch import * - -# Creation of GraphSwitch1 -from GraphSwitch1 import * - -# Merge of GraphSwitch1 in GraphSwitch -GraphSwitch.Merge( GraphSwitch1 ) - -# Create a variable for each node of GraphSwitch : -# IsOdd,IsOdd_1,InitLoopSwitch,InitLoop,EndOfInitLoopSwitch,EndOfInitLoop,Switch,Switch_1,EndOfSwitch,EndSwitch -exec GraphSwitch.ListNodes() - -# Print Input and Output Ports values of InitLoopSwitch -InitLoopSwitch.PrintPorts() - -# Print Input and Output Ports values of InitLoop -InitLoop.PrintPorts() - -# Print Input and Output Ports values of GraphSwitch -GraphSwitch.PrintPorts() - -# Start asynchronous execution of GraphSwitch -GraphSwitch.Run() - -# Wait for completion of GraphSwitch -GraphSwitch.DoneW() - -# Print the state of GraphSwitch -GraphSwitch.State() - -# Print the results of GraphSwitch -GraphSwitch.PrintPorts() - -# Start asynchronous execution of GraphSwitch -GraphSwitch.Run() - -# Start asynchronous execution of GraphSwitch1 (parallel to the execution of GraphSwitch) -GraphSwitch1.Run() - -# Wait for completion of GraphSwitch1 -GraphSwitch1.DoneW() - -# Print the state of GraphSwitch1 -GraphSwitch.State() - -# Wait for completion of GraphSwitch -GraphSwitch.DoneW() - -# Print the state of GraphSwitch -GraphSwitch.State() - -# Print the results of GraphSwitch -GraphSwitch.PrintPorts() - -# Print the results of GraphSwitch1 -GraphSwitch1.PrintPorts() - diff --git a/Superv/Python/GraphMerge1.py b/Superv/Python/GraphMerge1.py deleted file mode 100755 index 0decd3a..0000000 --- a/Superv/Python/GraphMerge1.py +++ /dev/null @@ -1,77 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Check the Merge of two graphs and python functions definitions -# Creation of GraphSwitch -# -from GraphSwitch import * - -# Creation of GraphSwitch1 -from GraphSwitch1 import * - -# Merge of GraphSwitch1 in GraphSwitch -statmerge = GraphSwitch.Merge( GraphSwitch1 ) -if statmerge == 0 : - print "Failed to merge GraphSwitch1 in GraphSwitch" - -# Create a variable for each node of GraphSwitch : -# IsOdd,IsOdd_1,InitLoopSwitch,InitLoop,EndOfInitLoopSwitch,EndOfInitLoop,Switch,Switch_1,EndOfSwitch,EndSwitch -exec GraphSwitch.ListNodes() - -funcname = InitLoopSwitch.PyInitName() -funcname1 = InitLoop.PyInitName() -print "Init python function names of InitLoopSwitch and InitLoop :",funcname,funcname1 -InitLoop.PyInit() -# Erase python functions of InitLoop -InitLoop.SetPyInit( funcname , [] ) -InitLoop.PyInit() -InitLoop.SetPyMore( InitLoop.PyMoreName() , [] ) -InitLoop.PyMore() -InitLoop.SetPyNext( InitLoop.PyNextName() , [] ) -InitLoop.PyNext() - -IsOdd.SetPyFunction( IsOdd.PyFuncName() , [] ) -IsOdd.PyFunction() - -# Print Input and Output Ports values of InitLoopSwitch -InitLoopSwitch.PrintPorts() - -# Print Input and Output Ports values of InitLoop -InitLoop.PrintPorts() - -# Print Input and Output Ports values of GraphSwitch -GraphSwitch.PrintPorts() - -# Start asynchronous execution of GraphSwitch -GraphSwitch.Run() - -# Wait for completion of GraphSwitch -GraphSwitch.DoneW() - -# Print the state of GraphSwitch -GraphSwitch.State() - -# Print the results of GraphSwitch -GraphSwitch.PrintPorts() - -GraphSwitch.Export( "../GraphPyFunctions.xml" ) - diff --git a/Superv/Python/GraphNoEqualInPortsNumber.py b/Superv/Python/GraphNoEqualInPortsNumber.py deleted file mode 100644 index 82b2188..0000000 --- a/Superv/Python/GraphNoEqualInPortsNumber.py +++ /dev/null @@ -1,60 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph aNewDataFlow_3 -# -from SuperV import * - -# Graph creation of aNewDataFlow_3 -def DefaNewDataFlow_3() : - aNewDataFlow_3 = Graph( 'aNewDataFlow_3' ) - aNewDataFlow_3.SetName( 'aNewDataFlow_3' ) - aNewDataFlow_3.SetAuthor( '' ) - aNewDataFlow_3.SetComment( '' ) - aNewDataFlow_3.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - # Creation of InLine Nodes - PyMulNode = [] - PyMulNode.append( 'def MulNode(a,b): ' ) - PyMulNode.append( ' c = a*b ' ) - PyMulNode.append( ' return c ' ) - MulNode = aNewDataFlow_3.INode( 'MulNode' , PyMulNode ) - MulNode.SetName( 'MulNode' ) - MulNode.SetAuthor( '' ) - MulNode.SetComment( 'Compute Node' ) - MulNode.Coords( 0 , 0 ) - IMulNodea = MulNode.InPort( 'a' , 'double' ) - IMulNodeGate = MulNode.GetInPort( 'Gate' ) - OMulNodec = MulNode.OutPort( 'c' , 'double' ) - OMulNodeGate = MulNode.GetOutPort( 'Gate' ) - - # Input datas - IMulNodea.Input( 10.5 ) - - # Output Ports of the graph - #OMulNodec = MulNode.GetOutPort( 'c' ) - return aNewDataFlow_3 - - -aNewDataFlow_3 = DefaNewDataFlow_3() diff --git a/Superv/Python/GraphNoInputData.py b/Superv/Python/GraphNoInputData.py deleted file mode 100644 index d46262d..0000000 --- a/Superv/Python/GraphNoInputData.py +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph aNewDataFlow_1 -# -from SuperV import * - -# Graph creation of aNewDataFlow_1 -def DefaNewDataFlow_1() : - aNewDataFlow_1 = Graph( 'aNewDataFlow_1' ) - aNewDataFlow_1.SetName( 'aNewDataFlow_1' ) - aNewDataFlow_1.SetAuthor( '' ) - aNewDataFlow_1.SetComment( '' ) - aNewDataFlow_1.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - Add = aNewDataFlow_1.FNode( 'AddComponent' , 'AddComponent' , 'Add' ) - Add.SetName( 'Add' ) - Add.SetAuthor( '' ) - Add.SetContainer( 'localhost/FactoryServer' ) - Add.SetComment( 'Add from AddComponent' ) - Add.Coords( 0 , 0 ) - IAddx = Add.GetInPort( 'x' ) - IAddy = Add.GetInPort( 'y' ) - IAddGate = Add.GetInPort( 'Gate' ) - OAddFuncValue = Add.GetOutPort( 'FuncValue' ) - OAddz = Add.GetOutPort( 'z' ) - OAddGate = Add.GetOutPort( 'Gate' ) - - # Input datas - IAddx.Input( 0.4 ) - - # Input Ports of the graph - #IAddy = Add.GetInPort( 'y' ) - - # Output Ports of the graph - #OAddFuncValue = Add.GetOutPort( 'FuncValue' ) - #OAddz = Add.GetOutPort( 'z' ) - return aNewDataFlow_1 - - -aNewDataFlow_1 = DefaNewDataFlow_1() diff --git a/Superv/Python/GraphNonVoidEndLoop.py b/Superv/Python/GraphNonVoidEndLoop.py deleted file mode 100644 index dbac40d..0000000 --- a/Superv/Python/GraphNonVoidEndLoop.py +++ /dev/null @@ -1,122 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphNonVoidEndLoop -# -from SuperV import * - -# Graph creation of GraphNonVoidEndLoop -def DefGraphNonVoidEndLoop() : - GraphNonVoidEndLoop = Graph( 'GraphNonVoidEndLoop' ) - GraphNonVoidEndLoop.SetName( 'GraphNonVoidEndLoop' ) - GraphNonVoidEndLoop.SetAuthor( '' ) - GraphNonVoidEndLoop.SetComment( '' ) - GraphNonVoidEndLoop.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - # Creation of Loop Nodes - PyInit = [] - PyInit.append( 'def Init(Index,Min,Max,Incr) : ' ) - PyInit.append( ' if Min <= Max : ' ) - PyInit.append( ' Index = Min ' ) - PyInit.append( ' else : ' ) - PyInit.append( ' Index = Max ' ) - PyInit.append( ' print 'Init',Index,Min,Max,Incr ' ) - PyInit.append( ' return Index,Min,Max,Incr ' ) - PyMoreInit = [] - PyMoreInit.append( 'import time ' ) - PyMoreInit.append( 'def More(Index,Min,Max,Incr) : ' ) - PyMoreInit.append( ' time.sleep(2) ' ) - PyMoreInit.append( ' if Index < Max : ' ) - PyMoreInit.append( ' DoLoop = 1 ' ) - PyMoreInit.append( ' else : ' ) - PyMoreInit.append( ' DoLoop = 0 ' ) - PyMoreInit.append( ' print 'More', DoLoop,Index,Min,Max,Incr ' ) - PyMoreInit.append( ' return DoLoop,Index,Min,Max,Incr ' ) - PyNextInit = [] - PyNextInit.append( 'def Next(Index,Min,Max,Incr) : ' ) - PyNextInit.append( ' Index = Index + Incr ' ) - PyNextInit.append( ' print 'Next', Index,Min,Max,Incr ' ) - PyNextInit.append( ' return Index,Min,Max,Incr ' ) - Init,EndInit = GraphNonVoidEndLoop.LNode( 'Init' , PyInit , 'More' , PyMoreInit , 'Next' , PyNextInit ) - EndInit.SetName( 'EndInit' ) - EndInit.SetAuthor( '' ) - EndInit.SetComment( 'Compute Node' ) - EndInit.Coords( 411 , 260 ) - PyEndInit = [] - PyEndInit.append( 'def EndLoop(DoLoop,Index,Min,Max,Incr) : ' ) - PyEndInit.append( ' print 'EndLoop',DoLoop,Index,Min,Max,Incr ' ) - PyEndInit.append( ' return DoLoop,Index,Min,Max,Incr ' ) - PyEndInit.append( '' ) - EndInit.SetPyFunction( 'EndLoop' , PyEndInit ) - IInitDoLoop = Init.GetInPort( 'DoLoop' ) - IInitIndex = Init.InPort( 'Index' , 'long' ) - IInitMin = Init.InPort( 'Min' , 'long' ) - IInitMax = Init.InPort( 'Max' , 'long' ) - IInitIncr = Init.InPort( 'Incr' , 'long' ) - IInitGate = Init.GetInPort( 'Gate' ) - OInitDoLoop = Init.GetOutPort( 'DoLoop' ) - OInitIndex = Init.GetOutPort( 'Index' ) - OInitMin = Init.GetOutPort( 'Min' ) - OInitMax = Init.GetOutPort( 'Max' ) - OInitIncr = Init.GetOutPort( 'Incr' ) - IEndInitDoLoop = EndInit.GetInPort( 'DoLoop' ) - IEndInitIndex = EndInit.GetInPort( 'Index' ) - IEndInitMin = EndInit.GetInPort( 'Min' ) - IEndInitMax = EndInit.GetInPort( 'Max' ) - IEndInitIncr = EndInit.GetInPort( 'Incr' ) - IEndInitGate = EndInit.GetInPort( 'Gate' ) - OEndInitDoLoop = EndInit.GetOutPort( 'DoLoop' ) - OEndInitIndex = EndInit.GetOutPort( 'Index' ) - OEndInitMin = EndInit.GetOutPort( 'Min' ) - OEndInitMax = EndInit.GetOutPort( 'Max' ) - OEndInitIncr = EndInit.GetOutPort( 'Incr' ) - Init.SetName( 'Init' ) - Init.SetAuthor( '' ) - Init.SetComment( 'Compute Node' ) - Init.Coords( 17 , 257 ) - - # Creation of Links - LInitIndexEndInitIndex = GraphNonVoidEndLoop.Link( OInitIndex , IEndInitIndex ) - - LInitMinEndInitMin = GraphNonVoidEndLoop.Link( OInitMin , IEndInitMin ) - - LInitMaxEndInitMax = GraphNonVoidEndLoop.Link( OInitMax , IEndInitMax ) - - LInitIncrEndInitIncr = GraphNonVoidEndLoop.Link( OInitIncr , IEndInitIncr ) - - # Input datas - IInitIndex.Input( 0 ) - IInitMin.Input( 5 ) - IInitMax.Input( 10 ) - IInitIncr.Input( 1 ) - - # Output Ports of the graph - #OEndInitIndex = EndInit.GetOutPort( 'Index' ) - #OEndInitMin = EndInit.GetOutPort( 'Min' ) - #OEndInitMax = EndInit.GetOutPort( 'Max' ) - #OEndInitIncr = EndInit.GetOutPort( 'Incr' ) - return GraphNonVoidEndLoop - - -GraphNonVoidEndLoop = DefGraphNonVoidEndLoop() diff --git a/Superv/Python/GraphNotClosedChainInsideLoop.py b/Superv/Python/GraphNotClosedChainInsideLoop.py deleted file mode 100644 index 0903158..0000000 --- a/Superv/Python/GraphNotClosedChainInsideLoop.py +++ /dev/null @@ -1,163 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphSwitch -# -from SuperV import * - -# Graph creation of GraphSwitch -def DefGraphSwitch() : - GraphSwitch = Graph( 'GraphSwitch' ) - GraphSwitch.SetName( 'GraphSwitch' ) - GraphSwitch.SetAuthor( '' ) - GraphSwitch.SetComment( '' ) - GraphSwitch.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.INode( 'IsOdd' , PyIsOdd ) - IsOdd.SetName( 'IsOdd' ) - IsOdd.SetAuthor( '' ) - IsOdd.SetComment( 'Python function' ) - IsOdd.Coords( 389 , 65 ) - IIsOdda = IsOdd.InPort( 'a' , 'long' ) - IIsOddGate = IsOdd.GetInPort( 'Gate' ) - OIsOdda = IsOdd.OutPort( 'a' , 'long' ) - OIsOddGate = IsOdd.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyInitLoopSwitch = [] - PyInitLoopSwitch.append( 'def InitLoop(Index,Min,Max) : ' ) - PyInitLoopSwitch.append( ' return Index,Min,Max ' ) - PyMoreInitLoopSwitch = [] - PyMoreInitLoopSwitch.append( 'def MoreLoop(Index,Min,Max) : ' ) - PyMoreInitLoopSwitch.append( ' if Index <= Max : ' ) - 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.LNode( 'InitLoop' , PyInitLoopSwitch , 'MoreLoop' , PyMoreInitLoopSwitch , 'NextLoop' , PyNextInitLoopSwitch ) - EndOfInitLoopSwitch.SetName( 'EndOfInitLoopSwitch' ) - EndOfInitLoopSwitch.SetAuthor( '' ) - EndOfInitLoopSwitch.SetComment( 'Compute Node' ) - EndOfInitLoopSwitch.Coords( 776 , 170 ) - 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' ) - OInitLoopSwitchGate = InitLoopSwitch.GetOutPort( 'Gate' ) - 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( ' if ( a & 1 ) == 0 : ' ) - PySwitch.append( ' sleep(1) ' ) - PySwitch.append( ' return a & 1,1-(a&1),a ' ) - Switch,EndOfSwitch = GraphSwitch.SNode( 'Switch' , PySwitch ) - EndOfSwitch.SetName( 'EndOfSwitch' ) - EndOfSwitch.SetAuthor( '' ) - EndOfSwitch.SetComment( 'Compute Node' ) - EndOfSwitch.Coords( 582 , 170 ) - PyEndOfSwitch = [] - EndOfSwitch.SetPyFunction( '' , 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( 194 , 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' ) - OSwitchDefault = Switch.GetOutPort( 'Default' ) - - # Creation of Links - LIsOddaEndOfSwitcha = GraphSwitch.Link( OIsOdda , IEndOfSwitcha ) - LIsOddaEndOfSwitcha.AddCoord( 1 , 564 , 201 ) - LIsOddaEndOfSwitcha.AddCoord( 2 , 564 , 134 ) - - LInitLoopSwitchIndexSwitcha = GraphSwitch.Link( OInitLoopSwitchIndex , ISwitcha ) - - LInitLoopSwitchMinEndOfInitLoopSwitchMin = GraphSwitch.Link( OInitLoopSwitchMin , IEndOfInitLoopSwitchMin ) - - LInitLoopSwitchMaxEndOfInitLoopSwitchMax = GraphSwitch.Link( OInitLoopSwitchMax , IEndOfInitLoopSwitchMax ) - - LSwitchOddIsOddGate = GraphSwitch.Link( OSwitchOdd , IIsOddGate ) - - LSwitchaIsOdda = GraphSwitch.Link( OSwitcha , IIsOdda ) - LSwitchaIsOdda.AddCoord( 1 , 371 , 136 ) - LSwitchaIsOdda.AddCoord( 2 , 371 , 200 ) - - LSwitchDefaultEndOfSwitchDefault = GraphSwitch.Link( OSwitchDefault , IEndOfSwitchDefault ) - - # Input datas - IInitLoopSwitchIndex.Input( 0 ) - IInitLoopSwitchMin.Input( 0 ) - IInitLoopSwitchMax.Input( 35 ) - - # Output Ports of the graph - #OEndOfInitLoopSwitchIndex = EndOfInitLoopSwitch.GetOutPort( 'Index' ) - #OEndOfInitLoopSwitchMin = EndOfInitLoopSwitch.GetOutPort( 'Min' ) - #OEndOfInitLoopSwitchMax = EndOfInitLoopSwitch.GetOutPort( 'Max' ) - #OSwitchEven = Switch.GetOutPort( 'Even' ) - #OEndOfSwitcha = EndOfSwitch.GetOutPort( 'a' ) - return GraphSwitch - - -GraphSwitch = DefGraphSwitch() diff --git a/Superv/Python/GraphNotClosedChainInsideSwitch.py b/Superv/Python/GraphNotClosedChainInsideSwitch.py deleted file mode 100644 index eae4253..0000000 --- a/Superv/Python/GraphNotClosedChainInsideSwitch.py +++ /dev/null @@ -1,164 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphSwitch -# -from SuperV import * - -# Graph creation of GraphSwitch -def DefGraphSwitch() : - GraphSwitch = Graph( 'GraphSwitch' ) - GraphSwitch.SetName( 'GraphSwitch' ) - GraphSwitch.SetAuthor( '' ) - GraphSwitch.SetComment( '' ) - GraphSwitch.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.INode( 'IsOdd' , PyIsOdd ) - IsOdd.SetName( 'IsOdd' ) - IsOdd.SetAuthor( '' ) - IsOdd.SetComment( 'Python function' ) - IsOdd.Coords( 389 , 65 ) - IIsOdda = IsOdd.InPort( 'a' , 'long' ) - IIsOddGate = IsOdd.GetInPort( 'Gate' ) - OIsOdda = IsOdd.OutPort( 'a' , 'long' ) - OIsOddGate = IsOdd.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyInitLoopSwitch = [] - PyInitLoopSwitch.append( 'def InitLoop(Index,Min,Max) : ' ) - PyInitLoopSwitch.append( ' return Index,Min,Max ' ) - PyMoreInitLoopSwitch = [] - PyMoreInitLoopSwitch.append( 'def MoreLoop(Index,Min,Max) : ' ) - PyMoreInitLoopSwitch.append( ' if Index <= Max : ' ) - 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.LNode( 'InitLoop' , PyInitLoopSwitch , 'MoreLoop' , PyMoreInitLoopSwitch , 'NextLoop' , PyNextInitLoopSwitch ) - EndOfInitLoopSwitch.SetName( 'EndOfInitLoopSwitch' ) - EndOfInitLoopSwitch.SetAuthor( '' ) - EndOfInitLoopSwitch.SetComment( 'Compute Node' ) - EndOfInitLoopSwitch.Coords( 776 , 170 ) - 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' ) - OInitLoopSwitchGate = InitLoopSwitch.GetOutPort( 'Gate' ) - 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( ' if ( a & 1 ) == 0 : ' ) - PySwitch.append( ' sleep(1) ' ) - PySwitch.append( ' return a & 1,1-(a&1),a ' ) - Switch,EndOfSwitch = GraphSwitch.SNode( 'Switch' , PySwitch ) - EndOfSwitch.SetName( 'EndOfSwitch' ) - EndOfSwitch.SetAuthor( '' ) - EndOfSwitch.SetComment( 'Compute Node' ) - EndOfSwitch.Coords( 582 , 170 ) - PyEndOfSwitch = [] - EndOfSwitch.SetPyFunction( '' , 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( 194 , 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' ) - OSwitchDefault = Switch.GetOutPort( 'Default' ) - - # Creation of Links - LInitLoopSwitchIndexSwitcha = GraphSwitch.Link( OInitLoopSwitchIndex , ISwitcha ) - - LInitLoopSwitchMinEndOfInitLoopSwitchMin = GraphSwitch.Link( OInitLoopSwitchMin , IEndOfInitLoopSwitchMin ) - - LInitLoopSwitchMaxEndOfInitLoopSwitchMax = GraphSwitch.Link( OInitLoopSwitchMax , IEndOfInitLoopSwitchMax ) - - LSwitchOddIsOddGate = GraphSwitch.Link( OSwitchOdd , IIsOddGate ) - - LSwitchaIsOdda = GraphSwitch.Link( OSwitcha , IIsOdda ) - LSwitchaIsOdda.AddCoord( 1 , 371 , 136 ) - LSwitchaIsOdda.AddCoord( 2 , 371 , 200 ) - - LSwitchDefaultEndOfSwitchDefault = GraphSwitch.Link( OSwitchDefault , IEndOfSwitchDefault ) - - LEndOfSwitchaEndOfInitLoopSwitchIndex = GraphSwitch.Link( OEndOfSwitcha , IEndOfInitLoopSwitchIndex ) - - # Input datas - IInitLoopSwitchIndex.Input( 0 ) - IInitLoopSwitchMin.Input( 0 ) - IInitLoopSwitchMax.Input( 35 ) - - # Input Ports of the graph - #IEndOfSwitcha = EndOfSwitch.GetInPort( 'a' ) - - # Output Ports of the graph - #OIsOdda = IsOdd.GetOutPort( 'a' ) - #OEndOfInitLoopSwitchIndex = EndOfInitLoopSwitch.GetOutPort( 'Index' ) - #OEndOfInitLoopSwitchMin = EndOfInitLoopSwitch.GetOutPort( 'Min' ) - #OEndOfInitLoopSwitchMax = EndOfInitLoopSwitch.GetOutPort( 'Max' ) - #OSwitchEven = Switch.GetOutPort( 'Even' ) - return GraphSwitch - - -GraphSwitch = DefGraphSwitch() diff --git a/Superv/Python/GraphObjRef.py b/Superv/Python/GraphObjRef.py deleted file mode 100755 index 6fb0992..0000000 --- a/Superv/Python/GraphObjRef.py +++ /dev/null @@ -1,149 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphObjRef -# -from SuperV import * - -# Graph creation of GraphObjRef -def DefGraphObjRef() : - GraphObjRef = Graph( 'GraphObjRef' ) - GraphObjRef.SetName( 'GraphObjRef' ) - GraphObjRef.SetAuthor( '' ) - GraphObjRef.SetComment( '' ) - GraphObjRef.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - Addition = GraphObjRef.FNode( 'AddComponent' , 'AddComponent' , 'Addition' ) - Addition.SetName( 'Addition' ) - Addition.SetAuthor( '' ) - Addition.SetContainer( 'localhost/AdditionServer' ) - Addition.SetComment( 'Addition from AddComponent' ) - Addition.Coords( 10 , 15 ) - IAdditionGate = Addition.GetInPort( 'Gate' ) - OAdditionAdder = Addition.GetOutPort( 'Adder' ) - OAdditionGate = Addition.GetOutPort( 'Gate' ) - - # Creation of InLine Nodes - PySyrComponent = [] - PySyrComponent.append( 'from LifeCycleCORBA import * ' ) - PySyrComponent.append( 'def SyrComponent( aContainer , aComponent ) : ' ) - PySyrComponent.append( ' print "SyrComponent(",aContainer,",",aComponent,")" ' ) - PySyrComponent.append( ' orb = CORBA.ORB_init([], CORBA.ORB_ID) ' ) - PySyrComponent.append( ' print "SyrComponent orb",orb ' ) - PySyrComponent.append( ' lcc = LifeCycleCORBA(orb) ' ) - PySyrComponent.append( ' print "SyrComponent lcc",lcc ' ) - PySyrComponent.append( ' print "SyrComponent(",aContainer,",",aComponent,")" ' ) - PySyrComponent.append( ' ComponentRef = lcc.FindOrLoadComponent( aContainer , aComponent ) ' ) - PySyrComponent.append( ' print "SyrComponent(",aContainer,",",aComponent,") --> ",ComponentRef ' ) - PySyrComponent.append( ' return ComponentRef ' ) - PySyrComponent.append( '' ) - SyrComponent = GraphObjRef.INode( 'SyrComponent' , PySyrComponent ) - SyrComponent.SetName( 'SyrComponent' ) - SyrComponent.SetAuthor( '' ) - SyrComponent.SetComment( 'Compute Node' ) - SyrComponent.Coords( 26 , 209 ) - ISyrComponentaContainer = SyrComponent.InPort( 'aContainer' , 'string' ) - ISyrComponentaComponent = SyrComponent.InPort( 'aComponent' , 'string' ) - ISyrComponentGate = SyrComponent.GetInPort( 'Gate' ) - OSyrComponentanObjRef = SyrComponent.OutPort( 'anObjRef' , 'objref' ) - OSyrComponentGate = SyrComponent.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyInit = [] - PyInit.append( 'from time import * ' ) - PyInit.append( 'def Init( Adder , anObjRef , Index ) : ' ) - PyInit.append( ' sleep( 1 ) ' ) - PyInit.append( ' return Adder,anObjRef,0 ' ) - PyInit.append( ' ' ) - PyMoreInit = [] - PyMoreInit.append( 'def More( Adder , anObjRef , Index ) : ' ) - PyMoreInit.append( ' OutLoop = 0 ' ) - PyMoreInit.append( ' if 10 > Index : ' ) - PyMoreInit.append( ' OutLoop = 1 ' ) - PyMoreInit.append( ' return OutLoop,Adder,anObjRef,Index ' ) - PyMoreInit.append( ' ' ) - PyNextInit = [] - PyNextInit.append( 'def Nextfori( Adder , anObjRef , Index ) : ' ) - PyNextInit.append( ' Index = Index + 1 ' ) - PyNextInit.append( ' return Adder,anObjRef,Index ' ) - PyNextInit.append( ' ' ) - Init,EndInit = GraphObjRef.LNode( 'Init' , PyInit , 'More' , PyMoreInit , 'Nextfori' , PyNextInit ) - EndInit.SetName( 'EndInit' ) - EndInit.SetAuthor( '' ) - EndInit.SetComment( 'Compute Node' ) - EndInit.Coords( 449 , 165 ) - PyEndInit = [] - EndInit.SetPyFunction( '' , PyEndInit ) - IInitDoLoop = Init.GetInPort( 'DoLoop' ) - IInitAddder = Init.InPort( 'Addder' , 'objref' ) - IInitanObjRef = Init.InPort( 'anObjRef' , 'objref' ) - IInitIndex = Init.InPort( 'Index' , 'long' ) - IInitGate = Init.GetInPort( 'Gate' ) - OInitDoLoop = Init.GetOutPort( 'DoLoop' ) - OInitAddder = Init.GetOutPort( 'Addder' ) - OInitanObjRef = Init.GetOutPort( 'anObjRef' ) - OInitIndex = Init.GetOutPort( 'Index' ) - IEndInitDoLoop = EndInit.GetInPort( 'DoLoop' ) - IEndInitAddder = EndInit.GetInPort( 'Addder' ) - IEndInitanObjRef = EndInit.GetInPort( 'anObjRef' ) - IEndInitIndex = EndInit.GetInPort( 'Index' ) - IEndInitGate = EndInit.GetInPort( 'Gate' ) - OEndInitDoLoop = EndInit.GetOutPort( 'DoLoop' ) - OEndInitAddder = EndInit.GetOutPort( 'Addder' ) - OEndInitanObjRef = EndInit.GetOutPort( 'anObjRef' ) - OEndInitIndex = EndInit.GetOutPort( 'Index' ) - OEndInitGate = EndInit.GetOutPort( 'Gate' ) - Init.SetName( 'Init' ) - Init.SetAuthor( '' ) - Init.SetComment( 'Compute Node' ) - Init.Coords( 236 , 161 ) - - # Creation of Links - LAdditionAdderInitAddder = GraphObjRef.Link( OAdditionAdder , IInitAddder ) - LAdditionAdderInitAddder.AddCoord( 1 , 202 , 194 ) - LAdditionAdderInitAddder.AddCoord( 2 , 201 , 95 ) - - LSyrComponentanObjRefInitanObjRef = GraphObjRef.Link( OSyrComponentanObjRef , IInitanObjRef ) - LSyrComponentanObjRefInitanObjRef.AddCoord( 1 , 209 , 224 ) - LSyrComponentanObjRefInitanObjRef.AddCoord( 2 , 208 , 289 ) - - LInitAddderEndInitAddder = GraphObjRef.Link( OInitAddder , IEndInitAddder ) - - LInitanObjRefEndInitanObjRef = GraphObjRef.Link( OInitanObjRef , IEndInitanObjRef ) - - LInitIndexEndInitIndex = GraphObjRef.Link( OInitIndex , IEndInitIndex ) - - # Input datas - ISyrComponentaContainer.Input( 'FactoryServer' ) - ISyrComponentaComponent.Input( 'SyrComponent' ) - IInitIndex.Input( 0 ) - - # Output Ports of the graph - #OEndInitAddder = EndInit.GetOutPort( 'Addder' ) - #OEndInitanObjRef = EndInit.GetOutPort( 'anObjRef' ) - #OEndInitIndex = EndInit.GetOutPort( 'Index' ) - return GraphObjRef - - -GraphObjRef = DefGraphObjRef() diff --git a/Superv/Python/GraphObjRefOMNIORB4.py b/Superv/Python/GraphObjRefOMNIORB4.py deleted file mode 100644 index eb6c7b2..0000000 --- a/Superv/Python/GraphObjRefOMNIORB4.py +++ /dev/null @@ -1,250 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphObjRefOMNIORB4 -# -from SuperV import * - -# Graph creation of GraphObjRefOMNIORB4 -def DefGraphObjRefOMNIORB4() : - GraphObjRefOMNIORB4 = Graph( 'GraphObjRefOMNIORB4' ) - GraphObjRefOMNIORB4.SetName( 'GraphObjRefOMNIORB4' ) - GraphObjRefOMNIORB4.SetAuthor( '' ) - GraphObjRefOMNIORB4.SetComment( '' ) - GraphObjRefOMNIORB4.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - Addition = GraphObjRefOMNIORB4.FNode( 'AddComponent' , 'AddComponent' , 'Addition' ) - Addition.SetName( 'Addition' ) - Addition.SetAuthor( '' ) - Addition.SetContainer( 'localhost/FactoryServer' ) - Addition.SetComment( 'Addition from AddComponent' ) - Addition.Coords( 13 , 185 ) - IAdditionGate = Addition.GetInPort( 'Gate' ) - OAdditionAdder = Addition.GetOutPort( 'Adder' ) - OAdditionGate = Addition.GetOutPort( 'Gate' ) - - EmbeddedAddition = GraphObjRefOMNIORB4.FNode( 'AddComponent' , 'AddComponent' , 'Addition' ) - EmbeddedAddition.SetName( 'EmbeddedAddition' ) - EmbeddedAddition.SetAuthor( '' ) - EmbeddedAddition.SetContainer( 'localhost/SuperVisionContainer' ) - EmbeddedAddition.SetComment( 'Addition from AddComponent' ) - EmbeddedAddition.Coords( 17 , 347 ) - IEmbeddedAdditionGate = EmbeddedAddition.GetInPort( 'Gate' ) - OEmbeddedAdditionAdder = EmbeddedAddition.GetOutPort( 'Adder' ) - OEmbeddedAdditionGate = EmbeddedAddition.GetOutPort( 'Gate' ) - - AdditionObjRefs = GraphObjRefOMNIORB4.FNode( 'AddComponent' , 'AddComponent' , 'AdditionObjRefs' ) - AdditionObjRefs.SetName( 'AdditionObjRefs' ) - AdditionObjRefs.SetAuthor( '' ) - AdditionObjRefs.SetContainer( 'localhost/FactoryServer' ) - AdditionObjRefs.SetComment( 'AdditionObjRefs from AddComponent' ) - AdditionObjRefs.Coords( 453 , 164 ) - IAdditionObjRefsAddComponent1 = AdditionObjRefs.GetInPort( 'AddComponent1' ) - IAdditionObjRefsAdder2 = AdditionObjRefs.GetInPort( 'Adder2' ) - IAdditionObjRefsAdder3 = AdditionObjRefs.GetInPort( 'Adder3' ) - IAdditionObjRefsGate = AdditionObjRefs.GetInPort( 'Gate' ) - OAdditionObjRefsreturn = AdditionObjRefs.GetOutPort( 'return' ) - OAdditionObjRefsRetAddComponent1 = AdditionObjRefs.GetOutPort( 'RetAddComponent1' ) - OAdditionObjRefsRetAdder2 = AdditionObjRefs.GetOutPort( 'RetAdder2' ) - OAdditionObjRefsRetAdder3 = AdditionObjRefs.GetOutPort( 'RetAdder3' ) - OAdditionObjRefsGate = AdditionObjRefs.GetOutPort( 'Gate' ) - - AdditionObjRefs_1 = GraphObjRefOMNIORB4.FNode( 'AddComponent' , 'AddComponent' , 'AdditionObjRefs' ) - AdditionObjRefs_1.SetName( 'AdditionObjRefs_1' ) - AdditionObjRefs_1.SetAuthor( '' ) - AdditionObjRefs_1.SetContainer( 'localhost/AdditionObjRefsServer' ) - AdditionObjRefs_1.SetComment( 'AdditionObjRefs from AddComponent' ) - AdditionObjRefs_1.Coords( 457 , 345 ) - IAdditionObjRefs_1AddComponent1 = AdditionObjRefs_1.GetInPort( 'AddComponent1' ) - IAdditionObjRefs_1Adder2 = AdditionObjRefs_1.GetInPort( 'Adder2' ) - IAdditionObjRefs_1Adder3 = AdditionObjRefs_1.GetInPort( 'Adder3' ) - IAdditionObjRefs_1Gate = AdditionObjRefs_1.GetInPort( 'Gate' ) - OAdditionObjRefs_1return = AdditionObjRefs_1.GetOutPort( 'return' ) - OAdditionObjRefs_1RetAddComponent1 = AdditionObjRefs_1.GetOutPort( 'RetAddComponent1' ) - OAdditionObjRefs_1RetAdder2 = AdditionObjRefs_1.GetOutPort( 'RetAdder2' ) - OAdditionObjRefs_1RetAdder3 = AdditionObjRefs_1.GetOutPort( 'RetAdder3' ) - OAdditionObjRefs_1Gate = AdditionObjRefs_1.GetOutPort( 'Gate' ) - - # Creation of Computing Nodes - LccAddComponent_ServiceinParameter = [] - LccAddComponent_ServiceinParameter.append( SALOME_ModuleCatalog.ServicesParameter( 'SuperVisionTest::Adder' , 'Adder' ) ) - LccAddComponent_ServiceinParameter.append( SALOME_ModuleCatalog.ServicesParameter( 'string' , 'aContainer' ) ) - LccAddComponent_ServiceinParameter.append( SALOME_ModuleCatalog.ServicesParameter( 'string' , 'aComponentName' ) ) - LccAddComponent_ServiceoutParameter = [] - LccAddComponent_ServiceoutParameter.append( SALOME_ModuleCatalog.ServicesParameter( 'Component' , 'return' ) ) - LccAddComponent_ServiceinStreamParameter = [] - LccAddComponent_ServiceoutStreamParameter = [] - LccAddComponent_Service = SALOME_ModuleCatalog.Service( 'LccAddComponent' , LccAddComponent_ServiceinParameter , LccAddComponent_ServiceoutParameter , LccAddComponent_ServiceinStreamParameter , LccAddComponent_ServiceoutStreamParameter , 0 , 0 ) - LccAddComponent = GraphObjRefOMNIORB4.CNode( LccAddComponent_Service ) - LccAddComponent.SetName( 'LccAddComponent' ) - LccAddComponent.SetAuthor( '' ) - LccAddComponent.SetComment( 'Compute Node' ) - LccAddComponent.Coords( 235 , 184 ) - ILccAddComponentAdder = LccAddComponent.GetInPort( 'Adder' ) - ILccAddComponentaContainer = LccAddComponent.GetInPort( 'aContainer' ) - ILccAddComponentaComponentName = LccAddComponent.GetInPort( 'aComponentName' ) - ILccAddComponentGate = LccAddComponent.GetInPort( 'Gate' ) - OLccAddComponentreturn = LccAddComponent.GetOutPort( 'return' ) - OLccAddComponentGate = LccAddComponent.GetOutPort( 'Gate' ) - - EmbeddedLccAddComponent_ServiceinParameter = [] - EmbeddedLccAddComponent_ServiceinParameter.append( SALOME_ModuleCatalog.ServicesParameter( 'SuperVisionTest::Adder' , 'Adder' ) ) - EmbeddedLccAddComponent_ServiceinParameter.append( SALOME_ModuleCatalog.ServicesParameter( 'string' , 'aContainer' ) ) - EmbeddedLccAddComponent_ServiceinParameter.append( SALOME_ModuleCatalog.ServicesParameter( 'string' , 'aComponentName' ) ) - EmbeddedLccAddComponent_ServiceoutParameter = [] - EmbeddedLccAddComponent_ServiceoutParameter.append( SALOME_ModuleCatalog.ServicesParameter( 'Component' , 'return' ) ) - EmbeddedLccAddComponent_ServiceinStreamParameter = [] - EmbeddedLccAddComponent_ServiceoutStreamParameter = [] - EmbeddedLccAddComponent_Service = SALOME_ModuleCatalog.Service( 'LccAddComponent' , EmbeddedLccAddComponent_ServiceinParameter , EmbeddedLccAddComponent_ServiceoutParameter , EmbeddedLccAddComponent_ServiceinStreamParameter , EmbeddedLccAddComponent_ServiceoutStreamParameter , 0 , 0 ) - EmbeddedLccAddComponent = GraphObjRefOMNIORB4.CNode( EmbeddedLccAddComponent_Service ) - EmbeddedLccAddComponent.SetName( 'EmbeddedLccAddComponent' ) - EmbeddedLccAddComponent.SetAuthor( '' ) - EmbeddedLccAddComponent.SetComment( 'Compute Node' ) - EmbeddedLccAddComponent.Coords( 235 , 347 ) - IEmbeddedLccAddComponentAdder = EmbeddedLccAddComponent.GetInPort( 'Adder' ) - IEmbeddedLccAddComponentaContainer = EmbeddedLccAddComponent.GetInPort( 'aContainer' ) - IEmbeddedLccAddComponentaComponentName = EmbeddedLccAddComponent.GetInPort( 'aComponentName' ) - IEmbeddedLccAddComponentGate = EmbeddedLccAddComponent.GetInPort( 'Gate' ) - OEmbeddedLccAddComponentreturn = EmbeddedLccAddComponent.GetOutPort( 'return' ) - OEmbeddedLccAddComponentGate = EmbeddedLccAddComponent.GetOutPort( 'Gate' ) - - # Creation of InLine Nodes - PyAddComponent = [] - PyAddComponent.append( 'import CORBA ' ) - PyAddComponent.append( 'from LifeCycleCORBA import * ' ) - PyAddComponent.append( 'import SuperVisionTest ' ) - PyAddComponent.append( 'def defAddComponent( aContainer , aComponent ) : ' ) - PyAddComponent.append( ' orb = CORBA.ORB_init([], CORBA.ORB_ID) ' ) - PyAddComponent.append( ' lcc = LifeCycleCORBA(orb) ' ) - PyAddComponent.append( ' ComponentRef = lcc.FindOrLoadComponent( aContainer , aComponent ) ' ) - PyAddComponent.append( ' ComponentObjRef = ComponentRef._narrow( SuperVisionTest.AddComponent ) ' ) - PyAddComponent.append( ' return ComponentObjRef._duplicate( SuperVisionTest.AddComponent ) ' ) - AddComponent = GraphObjRefOMNIORB4.INode( 'defAddComponent' , PyAddComponent ) - AddComponent.SetName( 'AddComponent' ) - AddComponent.SetAuthor( '' ) - AddComponent.SetComment( 'Compute Node' ) - AddComponent.Coords( 240 , 31 ) - IAddComponentaContainer = AddComponent.InPort( 'aContainer' , 'string' ) - IAddComponentaComponent = AddComponent.InPort( 'aComponent' , 'string' ) - IAddComponentGate = AddComponent.GetInPort( 'Gate' ) - OAddComponentAddComponentobjref = AddComponent.OutPort( 'AddComponentobjref' , 'objref' ) - OAddComponentGate = AddComponent.GetOutPort( 'Gate' ) - - PyFindComponentInstance = [] - PyFindComponentInstance.append( 'from salome import * ' ) - PyFindComponentInstance.append( 'def FindComponentInstance( ComponentRef ) : ' ) - PyFindComponentInstance.append( ' MESSAGE("FindComponentInstance "+ str( ComponentRef )) ' ) - PyFindComponentInstance.append( ' print "FindComponentInstance",ComponentRef ' ) - PyFindComponentInstance.append( ' AddComponentObjRef = ComponentRef._narrow(Engines.EngineComponent) ' ) - PyFindComponentInstance.append( ' MESSAGE("FindComponentInstance") ' ) - PyFindComponentInstance.append( ' print "FindComponentInstance",AddComponentObjRef ' ) - PyFindComponentInstance.append( ' TheContainer = AddComponentObjRef.GetContainerRef() ' ) - PyFindComponentInstance.append( ' MESSAGE("FindComponentInstance") ' ) - PyFindComponentInstance.append( ' print "FindComponentInstance",TheContainer ' ) - PyFindComponentInstance.append( ' TheAddComponentObjRef=TheContainer.find_component_instance( "AddComponent" ,0 ) ' ) - PyFindComponentInstance.append( ' MESSAGE("FindComponentInstance "+ str( TheAddComponentObjRef )) ' ) - PyFindComponentInstance.append( ' print "FindComponentInstance",TheAddComponentObjRef ' ) - PyFindComponentInstance.append( ' return TheAddComponentObjRef ' ) - FindComponentInstance = GraphObjRefOMNIORB4.INode( 'FindComponentInstance' , PyFindComponentInstance ) - FindComponentInstance.SetName( 'FindComponentInstance' ) - FindComponentInstance.SetAuthor( '' ) - FindComponentInstance.SetComment( 'Compute Node' ) - FindComponentInstance.Coords( 648 , 184 ) - IFindComponentInstanceAddComponentObjRef = FindComponentInstance.InPort( 'AddComponentObjRef' , 'objref' ) - IFindComponentInstanceGate = FindComponentInstance.GetInPort( 'Gate' ) - OFindComponentInstanceAddComponentObjRef = FindComponentInstance.OutPort( 'AddComponentObjRef' , 'objref' ) - OFindComponentInstanceGate = FindComponentInstance.GetOutPort( 'Gate' ) - - PyFindComponentInstance_1 = [] - PyFindComponentInstance_1.append( 'from salome import * ' ) - PyFindComponentInstance_1.append( 'def FindComponentInstance_1( ComponentRef ) : ' ) - PyFindComponentInstance_1.append( ' print "FindComponentInstance_1 beginning" ' ) - PyFindComponentInstance_1.append( ' MESSAGE("FindComponentInstance_1 "+ str( ComponentRef ) ) ' ) - PyFindComponentInstance_1.append( ' print "FindComponentInstance_1",ComponentRef ' ) - PyFindComponentInstance_1.append( ' AddComponentObjRef = ComponentRef._narrow(Engines.EngineComponent) ' ) - PyFindComponentInstance_1.append( ' MESSAGE("FindComponentInstance_1") ' ) - PyFindComponentInstance_1.append( ' print "FindComponentInstance_1",AddComponentObjRef ' ) - PyFindComponentInstance_1.append( ' TheContainer = AddComponentObjRef.GetContainerRef() ' ) - PyFindComponentInstance_1.append( ' MESSAGE("FindComponentInstance_1") ' ) - PyFindComponentInstance_1.append( ' print "FindComponentInstance_1",TheContainer ' ) - PyFindComponentInstance_1.append( ' TheAddComponentObjRef=TheContainer.find_component_instance( "AddComponent" ,0 ) ' ) - PyFindComponentInstance_1.append( ' if TheAddComponentObjRef == None : ' ) - PyFindComponentInstance_1.append( ' MESSAGE("FindComponentInstance_1 None") ' ) - PyFindComponentInstance_1.append( ' else : ' ) - PyFindComponentInstance_1.append( ' MESSAGE("FindComponentInstance_1") ' ) - PyFindComponentInstance_1.append( ' print "FindComponentInstance_1",TheAddComponentObjRef ' ) - PyFindComponentInstance_1.append( ' return TheAddComponentObjRef ' ) - FindComponentInstance_1 = GraphObjRefOMNIORB4.INode( 'FindComponentInstance_1' , PyFindComponentInstance_1 ) - FindComponentInstance_1.SetName( 'FindComponentInstance_1' ) - FindComponentInstance_1.SetAuthor( '' ) - FindComponentInstance_1.SetComment( 'Compute Node' ) - FindComponentInstance_1.Coords( 647 , 31 ) - IFindComponentInstance_1AddComponentRef = FindComponentInstance_1.InPort( 'AddComponentRef' , 'objref' ) - IFindComponentInstance_1Gate = FindComponentInstance_1.GetInPort( 'Gate' ) - OFindComponentInstance_1AddComponentRef = FindComponentInstance_1.OutPort( 'AddComponentRef' , 'objref' ) - OFindComponentInstance_1Gate = FindComponentInstance_1.GetOutPort( 'Gate' ) - - # Creation of Links - LAddComponentAddComponentobjrefAdditionObjRefsAddComponent1 = GraphObjRefOMNIORB4.Link( OAddComponentAddComponentobjref , IAdditionObjRefsAddComponent1 ) - - LAddComponentAddComponentobjrefFindComponentInstance_1AddComponentRef = GraphObjRefOMNIORB4.Link( OAddComponentAddComponentobjref , IFindComponentInstance_1AddComponentRef ) - - LAddComponentAddComponentobjrefAdditionObjRefs_1AddComponent1 = GraphObjRefOMNIORB4.Link( OAddComponentAddComponentobjref , IAdditionObjRefs_1AddComponent1 ) - - LAdditionAdderLccAddComponentAdder = GraphObjRefOMNIORB4.Link( OAdditionAdder , ILccAddComponentAdder ) - - LEmbeddedAdditionAdderEmbeddedLccAddComponentAdder = GraphObjRefOMNIORB4.Link( OEmbeddedAdditionAdder , IEmbeddedLccAddComponentAdder ) - - LLccAddComponentreturnAdditionObjRefsAdder2 = GraphObjRefOMNIORB4.Link( OLccAddComponentreturn , IAdditionObjRefsAdder2 ) - - LLccAddComponentreturnAdditionObjRefs_1Adder2 = GraphObjRefOMNIORB4.Link( OLccAddComponentreturn , IAdditionObjRefs_1Adder2 ) - - LEmbeddedLccAddComponentreturnAdditionObjRefsAdder3 = GraphObjRefOMNIORB4.Link( OEmbeddedLccAddComponentreturn , IAdditionObjRefsAdder3 ) - - LEmbeddedLccAddComponentreturnAdditionObjRefs_1Adder3 = GraphObjRefOMNIORB4.Link( OEmbeddedLccAddComponentreturn , IAdditionObjRefs_1Adder3 ) - - LAdditionObjRefsRetAddComponent1FindComponentInstanceAddComponentObjRef = GraphObjRefOMNIORB4.Link( OAdditionObjRefsRetAddComponent1 , IFindComponentInstanceAddComponentObjRef ) - - # Input datas - IAddComponentaContainer.Input( 'FactoryServer' ) - IAddComponentaComponent.Input( 'AddComponent' ) - ILccAddComponentaContainer.Input( 'FactoryServer' ) - ILccAddComponentaComponentName.Input( 'AddComponent' ) - IEmbeddedLccAddComponentaContainer.Input( 'SuperVisionContainer' ) - IEmbeddedLccAddComponentaComponentName.Input( 'AddComponent' ) - - # Output Ports of the graph - #OAdditionObjRefsreturn = AdditionObjRefs.GetOutPort( 'return' ) - #OAdditionObjRefsRetAdder2 = AdditionObjRefs.GetOutPort( 'RetAdder2' ) - #OAdditionObjRefsRetAdder3 = AdditionObjRefs.GetOutPort( 'RetAdder3' ) - #OFindComponentInstanceAddComponentObjRef = FindComponentInstance.GetOutPort( 'AddComponentObjRef' ) - #OFindComponentInstance_1AddComponentRef = FindComponentInstance_1.GetOutPort( 'AddComponentRef' ) - #OAdditionObjRefs_1return = AdditionObjRefs_1.GetOutPort( 'return' ) - #OAdditionObjRefs_1RetAddComponent1 = AdditionObjRefs_1.GetOutPort( 'RetAddComponent1' ) - #OAdditionObjRefs_1RetAdder2 = AdditionObjRefs_1.GetOutPort( 'RetAdder2' ) - #OAdditionObjRefs_1RetAdder3 = AdditionObjRefs_1.GetOutPort( 'RetAdder3' ) - return GraphObjRefOMNIORB4 - - -GraphObjRefOMNIORB4 = DefGraphObjRefOMNIORB4() diff --git a/Superv/Python/GraphObjRefOMNIORB4_StandAlone.py b/Superv/Python/GraphObjRefOMNIORB4_StandAlone.py deleted file mode 100644 index 2d62446..0000000 --- a/Superv/Python/GraphObjRefOMNIORB4_StandAlone.py +++ /dev/null @@ -1,45 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# -from SuperV import * -import Engines -def FindComponentInstance( ComponentRef ) : - print "FindComponentInstance",ComponentRef - AddComponentObjRef = ComponentRef._narrow(Engines.EngineComponent) - print "FindComponentInstance",AddComponentObjRef - TheContainer = AddComponentObjRef.GetContainerRef() - print "FindComponentInstance",TheContainer - TheAddComponentObjRef=TheContainer.find_component_instance( "AddComponent" , 0 ) - print "FindComponentInstance",TheAddComponentObjRef - return TheAddComponentObjRef - -from LifeCycleCORBA import * -def defAddComponent( aContainer , aComponent ) : - orb = CORBA.ORB_init([], CORBA.ORB_ID) - lcc = LifeCycleCORBA(orb) - ComponentRef = lcc.FindOrLoadComponent( aContainer , aComponent ) - return ComponentRef - -AddComponent = defAddComponent( 'FactoryServer' , 'AddComponent' ) -AddComponent._narrow( Engines.EngineComponent ).ping() - -ComponentRef = FindComponentInstance( AddComponent ) -ComponentRef.ping() diff --git a/Superv/Python/GraphPyFunctions.py b/Superv/Python/GraphPyFunctions.py deleted file mode 100755 index 60999a0..0000000 --- a/Superv/Python/GraphPyFunctions.py +++ /dev/null @@ -1,262 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphPyFunctions_1 -# -from SuperV import * - -# Graph creation of GraphPyFunctions_1 -def DefGraphPyFunctions_1() : - GraphPyFunctions_1 = Graph( 'GraphPyFunctions_1' ) - GraphPyFunctions_1.SetName( 'GraphPyFunctions_1' ) - GraphPyFunctions_1.SetAuthor( '' ) - GraphPyFunctions_1.SetComment( '' ) - GraphPyFunctions_1.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - # Creation of InLine Nodes - PyIsOdd = [] - IsOdd = GraphPyFunctions_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' ) - - PyIsOdd_1 = [] - PyIsOdd_1.append( 'from time import * ' ) - PyIsOdd_1.append( 'def IsOdd(a) : ' ) - PyIsOdd_1.append( ' print a,"IsOdd" ' ) - PyIsOdd_1.append( ' sleep( 1 ) ' ) - PyIsOdd_1.append( ' return a ' ) - IsOdd_1 = GraphPyFunctions_1.INode( 'IsOdd' , PyIsOdd_1 ) - IsOdd_1.SetName( 'IsOdd_1' ) - IsOdd_1.SetAuthor( '' ) - IsOdd_1.SetComment( 'Python function' ) - IsOdd_1.Coords( 391 , 288 ) - IIsOdd_1a = IsOdd_1.InPort( 'a' , 'long' ) - IIsOdd_1Gate = IsOdd_1.GetInPort( 'Gate' ) - OIsOdd_1a = IsOdd_1.OutPort( 'a' , 'long' ) - OIsOdd_1Gate = IsOdd_1.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyInitLoop = [] - PyInitLoop.append( 'def InitLoop(Index,Min,Max) : ' ) - PyInitLoop.append( ' return Index,Min,Max ' ) - PyMoreInitLoop = [] - PyMoreInitLoop.append( 'def MoreLoop(Index,Min,Max) : ' ) - PyMoreInitLoop.append( ' if Index <= Max : ' ) - PyMoreInitLoop.append( ' DoLoop = 1 ' ) - PyMoreInitLoop.append( ' else : ' ) - PyMoreInitLoop.append( ' DoLoop = 0 ' ) - PyMoreInitLoop.append( ' return DoLoop,Index,Min,Max ' ) - PyNextInitLoop = [] - PyNextInitLoop.append( 'def NextLoop(Index,Min,Max) : ' ) - PyNextInitLoop.append( ' Index = Index + 1 ' ) - PyNextInitLoop.append( ' return Index,Min,Max ' ) - InitLoop,EndOfInitLoop = GraphPyFunctions_1.LNode( 'InitLoop' , PyInitLoop , 'MoreLoop' , PyMoreInitLoop , 'NextLoop' , PyNextInitLoop ) - EndOfInitLoop.SetName( 'EndOfInitLoop' ) - EndOfInitLoop.SetAuthor( '' ) - EndOfInitLoop.SetComment( 'Compute Node' ) - EndOfInitLoop.Coords( 766 , 127 ) - PyEndOfInitLoop = [] - EndOfInitLoop.SetPyFunction( 'EndInitLoop' , PyEndOfInitLoop ) - IInitLoopDoLoop = InitLoop.GetInPort( 'DoLoop' ) - IInitLoopIndex = InitLoop.InPort( 'Index' , 'long' ) - IInitLoopMin = InitLoop.InPort( 'Min' , 'long' ) - IInitLoopMax = InitLoop.InPort( 'Max' , 'long' ) - IInitLoopGate = InitLoop.GetInPort( 'Gate' ) - OInitLoopDoLoop = InitLoop.GetOutPort( 'DoLoop' ) - OInitLoopIndex = InitLoop.GetOutPort( 'Index' ) - OInitLoopMin = InitLoop.GetOutPort( 'Min' ) - OInitLoopMax = InitLoop.GetOutPort( 'Max' ) - IEndOfInitLoopDoLoop = EndOfInitLoop.GetInPort( 'DoLoop' ) - IEndOfInitLoopIndex = EndOfInitLoop.GetInPort( 'Index' ) - IEndOfInitLoopMin = EndOfInitLoop.GetInPort( 'Min' ) - IEndOfInitLoopMax = EndOfInitLoop.GetInPort( 'Max' ) - IEndOfInitLoopGate = EndOfInitLoop.GetInPort( 'Gate' ) - OEndOfInitLoopDoLoop = EndOfInitLoop.GetOutPort( 'DoLoop' ) - OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) - OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) - OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) - OEndOfInitLoopGate = EndOfInitLoop.GetOutPort( 'Gate' ) - InitLoop.SetName( 'InitLoop' ) - InitLoop.SetAuthor( '' ) - InitLoop.SetComment( 'Compute Node' ) - InitLoop.Coords( 10 , 129 ) - - PyInitLoop_1 = [] - PyMoreInitLoop_1 = [] - PyMoreInitLoop_1.append( '' ) - PyNextInitLoop_1 = [] - PyNextInitLoop_1.append( '' ) - InitLoop_1,EndOfInitLoop_1 = GraphPyFunctions_1.LNode( 'InitLoop' , PyInitLoop_1 , 'MoreLoop' , PyMoreInitLoop_1 , 'NextLoop' , PyNextInitLoop_1 ) - EndOfInitLoop_1.SetName( 'EndOfInitLoop_1' ) - EndOfInitLoop_1.SetAuthor( '' ) - EndOfInitLoop_1.SetComment( 'Compute Node' ) - EndOfInitLoop_1.Coords( 784 , 361 ) - PyEndOfInitLoop_1 = [] - EndOfInitLoop_1.SetPyFunction( 'EndInitLoop' , PyEndOfInitLoop_1 ) - IInitLoop_1DoLoop = InitLoop_1.GetInPort( 'DoLoop' ) - IInitLoop_1Index = InitLoop_1.InPort( 'Index' , 'long' ) - IInitLoop_1Min = InitLoop_1.InPort( 'Min' , 'long' ) - IInitLoop_1Max = InitLoop_1.InPort( 'Max' , 'long' ) - IInitLoop_1Gate = InitLoop_1.GetInPort( 'Gate' ) - OInitLoop_1DoLoop = InitLoop_1.GetOutPort( 'DoLoop' ) - OInitLoop_1Index = InitLoop_1.GetOutPort( 'Index' ) - OInitLoop_1Min = InitLoop_1.GetOutPort( 'Min' ) - OInitLoop_1Max = InitLoop_1.GetOutPort( 'Max' ) - IEndOfInitLoop_1DoLoop = EndOfInitLoop_1.GetInPort( 'DoLoop' ) - IEndOfInitLoop_1Index = EndOfInitLoop_1.GetInPort( 'Index' ) - IEndOfInitLoop_1Min = EndOfInitLoop_1.GetInPort( 'Min' ) - IEndOfInitLoop_1Max = EndOfInitLoop_1.GetInPort( 'Max' ) - IEndOfInitLoop_1Gate = EndOfInitLoop_1.GetInPort( 'Gate' ) - OEndOfInitLoop_1DoLoop = EndOfInitLoop_1.GetOutPort( 'DoLoop' ) - OEndOfInitLoop_1Index = EndOfInitLoop_1.GetOutPort( 'Index' ) - OEndOfInitLoop_1Min = EndOfInitLoop_1.GetOutPort( 'Min' ) - OEndOfInitLoop_1Max = EndOfInitLoop_1.GetOutPort( 'Max' ) - OEndOfInitLoop_1Gate = EndOfInitLoop_1.GetOutPort( 'Gate' ) - InitLoop_1.SetName( 'InitLoop_1' ) - InitLoop_1.SetAuthor( '' ) - InitLoop_1.SetComment( 'Compute Node' ) - InitLoop_1.Coords( 12 , 369 ) - - # Creation of Switch Nodes - PySwitch = [] - Switch,EndOfSwitch = GraphPyFunctions_1.SNode( 'Switch' , PySwitch ) - EndOfSwitch.SetName( 'EndOfSwitch' ) - EndOfSwitch.SetAuthor( '' ) - EndOfSwitch.SetComment( 'Compute Node' ) - EndOfSwitch.Coords( 587 , 126 ) - PyEndOfSwitch = [] - EndOfSwitch.SetPyFunction( 'EndOfSwitch_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( 186 , 130 ) - ISwitcha = Switch.InPort( 'a' , 'long' ) - ISwitchGate = Switch.GetInPort( 'Gate' ) - OSwitchOdd = Switch.OutPort( 'Odd' , 'long' ) - OSwitchEven = Switch.OutPort( 'Even' , 'int' ) - OSwitcha = Switch.OutPort( 'a' , 'int' ) - OSwitchDefault = Switch.GetOutPort( 'Default' ) - - PySwitch_1 = [] - PySwitch_1.append( 'from time import * ' ) - PySwitch_1.append( 'def Switch(a) : ' ) - PySwitch_1.append( ' if ( a & 1 ) == 0 : ' ) - PySwitch_1.append( ' sleep(1) ' ) - PySwitch_1.append( ' return a & 1,1-(a&1),a ' ) - Switch_1,EndOfSwitch_1 = GraphPyFunctions_1.SNode( 'Switch' , PySwitch_1 ) - EndOfSwitch_1.SetName( 'EndOfSwitch_1' ) - EndOfSwitch_1.SetAuthor( '' ) - EndOfSwitch_1.SetComment( 'Compute Node' ) - EndOfSwitch_1.Coords( 594 , 362 ) - PyEndOfSwitch_1 = [] - EndOfSwitch_1.SetPyFunction( 'EndOfSwitch_1' , PyEndOfSwitch_1 ) - IEndOfSwitch_1a = EndOfSwitch_1.InPort( 'a' , 'long' ) - IEndOfSwitch_1Default = EndOfSwitch_1.GetInPort( 'Default' ) - OEndOfSwitch_1a = EndOfSwitch_1.OutPort( 'a' , 'long' ) - OEndOfSwitch_1Gate = EndOfSwitch_1.GetOutPort( 'Gate' ) - Switch_1.SetName( 'Switch_1' ) - Switch_1.SetAuthor( '' ) - Switch_1.SetComment( 'Compute Node' ) - Switch_1.Coords( 185 , 368 ) - ISwitch_1a = Switch_1.InPort( 'a' , 'long' ) - ISwitch_1Gate = Switch_1.GetInPort( 'Gate' ) - OSwitch_1Odd = Switch_1.OutPort( 'Odd' , 'long' ) - OSwitch_1Even = Switch_1.OutPort( 'Even' , 'int' ) - OSwitch_1a = Switch_1.OutPort( 'a' , 'int' ) - OSwitch_1Default = Switch_1.GetOutPort( 'Default' ) - - # Creation of Links - LIsOddaEndOfSwitcha = GraphPyFunctions_1.Link( OIsOdda , IEndOfSwitcha ) - LIsOddaEndOfSwitcha.AddCoord( 1 , 571 , 160 ) - LIsOddaEndOfSwitcha.AddCoord( 2 , 571 , 129 ) - - LIsOdd_1aEndOfSwitch_1a = GraphPyFunctions_1.Link( OIsOdd_1a , IEndOfSwitch_1a ) - LIsOdd_1aEndOfSwitch_1a.AddCoord( 1 , 580 , 396 ) - LIsOdd_1aEndOfSwitch_1a.AddCoord( 2 , 580 , 368 ) - - LInitLoopIndexSwitcha = GraphPyFunctions_1.Link( OInitLoopIndex , ISwitcha ) - - LInitLoopMinEndOfInitLoopMin = GraphPyFunctions_1.Link( OInitLoopMin , IEndOfInitLoopMin ) - - LInitLoopMaxEndOfInitLoopMax = GraphPyFunctions_1.Link( OInitLoopMax , IEndOfInitLoopMax ) - - LInitLoop_1IndexSwitch_1a = GraphPyFunctions_1.Link( OInitLoop_1Index , ISwitch_1a ) - - LInitLoop_1MinEndOfInitLoop_1Min = GraphPyFunctions_1.Link( OInitLoop_1Min , IEndOfInitLoop_1Min ) - - LInitLoop_1MaxEndOfInitLoop_1Max = GraphPyFunctions_1.Link( OInitLoop_1Max , IEndOfInitLoop_1Max ) - - LSwitchOddIsOddGate = GraphPyFunctions_1.Link( OSwitchOdd , IIsOddGate ) - - LSwitchaIsOdda = GraphPyFunctions_1.Link( OSwitcha , IIsOdda ) - LSwitchaIsOdda.AddCoord( 1 , 366 , 131 ) - LSwitchaIsOdda.AddCoord( 2 , 365 , 223 ) - - LSwitchDefaultEndOfSwitchDefault = GraphPyFunctions_1.Link( OSwitchDefault , IEndOfSwitchDefault ) - LSwitchDefaultEndOfSwitchDefault.AddCoord( 1 , 572 , 194 ) - LSwitchDefaultEndOfSwitchDefault.AddCoord( 2 , 571 , 257 ) - - LEndOfSwitchaEndOfInitLoopIndex = GraphPyFunctions_1.Link( OEndOfSwitcha , IEndOfInitLoopIndex ) - - LSwitch_1OddIsOdd_1Gate = GraphPyFunctions_1.Link( OSwitch_1Odd , IIsOdd_1Gate ) - - LSwitch_1aIsOdd_1a = GraphPyFunctions_1.Link( OSwitch_1a , IIsOdd_1a ) - LSwitch_1aIsOdd_1a.AddCoord( 1 , 368 , 368 ) - LSwitch_1aIsOdd_1a.AddCoord( 2 , 367 , 460 ) - - LSwitch_1DefaultEndOfSwitch_1Default = GraphPyFunctions_1.Link( OSwitch_1Default , IEndOfSwitch_1Default ) - - LEndOfSwitch_1aEndOfInitLoop_1Index = GraphPyFunctions_1.Link( OEndOfSwitch_1a , IEndOfInitLoop_1Index ) - - # Input datas - IInitLoopIndex.Input( 0 ) - IInitLoopMin.Input( 0 ) - IInitLoopMax.Input( 25 ) - IInitLoop_1Index.Input( 0 ) - IInitLoop_1Min.Input( 0 ) - IInitLoop_1Max.Input( 35 ) - - # Output Ports of the graph - #OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) - #OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) - #OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) - #OEndOfInitLoop_1Index = EndOfInitLoop_1.GetOutPort( 'Index' ) - #OEndOfInitLoop_1Min = EndOfInitLoop_1.GetOutPort( 'Min' ) - #OEndOfInitLoop_1Max = EndOfInitLoop_1.GetOutPort( 'Max' ) - #OSwitchEven = Switch.GetOutPort( 'Even' ) - #OSwitch_1Even = Switch_1.GetOutPort( 'Even' ) - return GraphPyFunctions_1 - - -GraphPyFunctions_1 = DefGraphPyFunctions_1() diff --git a/Superv/Python/GraphPythonSyntaxError.py b/Superv/Python/GraphPythonSyntaxError.py deleted file mode 100644 index be2c437..0000000 --- a/Superv/Python/GraphPythonSyntaxError.py +++ /dev/null @@ -1,61 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph aNewDataFlow_2 -# -from SuperV import * - -# Graph creation of aNewDataFlow_2 -def DefaNewDataFlow_2() : - aNewDataFlow_2 = Graph( 'aNewDataFlow_2' ) - aNewDataFlow_2.SetName( 'aNewDataFlow_2' ) - aNewDataFlow_2.SetAuthor( '' ) - aNewDataFlow_2.SetComment( '' ) - aNewDataFlow_2.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - # Creation of InLine Nodes - PyErrorNode = [] - PyErrorNode.append( 'def ErrorNode(a,b) ' ) - PyErrorNode.append( ' return a&b ' ) - ErrorNode = aNewDataFlow_2.INode( 'ErrorNode' , PyErrorNode ) - ErrorNode.SetName( 'ErrorNode' ) - ErrorNode.SetAuthor( '' ) - ErrorNode.SetComment( 'Compute Node' ) - ErrorNode.Coords( 0 , 0 ) - IErrorNodea = ErrorNode.InPort( 'a' , 'boolean' ) - IErrorNodeb = ErrorNode.InPort( 'b' , 'boolean' ) - IErrorNodeGate = ErrorNode.GetInPort( 'Gate' ) - OErrorNodec = ErrorNode.OutPort( 'c' , 'boolean' ) - OErrorNodeGate = ErrorNode.GetOutPort( 'Gate' ) - - # Input datas - IErrorNodea.Input( 1 ) - IErrorNodeb.Input( 0 ) - - # Output Ports of the graph - #OErrorNodec = ErrorNode.GetOutPort( 'c' ) - return aNewDataFlow_2 - - -aNewDataFlow_2 = DefaNewDataFlow_2() diff --git a/Superv/Python/GraphRunSyr.py b/Superv/Python/GraphRunSyr.py deleted file mode 100644 index 33e7b75..0000000 --- a/Superv/Python/GraphRunSyr.py +++ /dev/null @@ -1,64 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# -# File : GraphRunSyr.py -# Module : SuperVisionTest -# -from SuperV import * - -# Warning this script has an IOR (object reference) as Input : -# You may have to redefine it with the result of : -# SyrStruct.ComponentRef( 'FactoryServer' , 'SyrComponent' ) -# See the Input Port forN.InPort( 'SyrComponent' , 'ComponentRef' ) - -#SyrStruct = Graph('../share/salome/resources/SyrStruct.xml') -SyrStruct = Graph('/home/data/jr_HEAD/build/share/salome/resources/SyrStruct.xml') - -exec SyrStruct.ListNodes() - -forN.Input('min',5) -forN.Input('max',8) - -SyrStruct.Start() - -endforN.State() - -SyrStruct.State() - -endforN.Suspend() - -forN.State() - -N = forN.Port( 'N' ) -EndN = endwhileNotOne.Port( 'N' ) -K = endforN.Port( 'K' ) - -forN.Resume() - -while SyrStruct.IsDone() == 0 : - endforN.SuspendedW() - if SyrStruct.IsDone() == 0 : - print N.ToString(),'-->',EndN.ToString(),'with',K.ToString(),'steps' - endforN.Resume() - -SyrStruct.State() - -SyrStruct.PrintPorts() diff --git a/Superv/Python/GraphSIGFPE.py b/Superv/Python/GraphSIGFPE.py deleted file mode 100644 index 586d91e..0000000 --- a/Superv/Python/GraphSIGFPE.py +++ /dev/null @@ -1,58 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphSIGFPE -# -from SuperV import * - -# Graph creation of GraphSIGFPE -def DefGraphSIGFPE() : - GraphSIGFPE = Graph( 'GraphSIGFPE' ) - GraphSIGFPE.SetName( 'GraphSIGFPE' ) - GraphSIGFPE.SetAuthor( 'JR' ) - GraphSIGFPE.SetComment( '' ) - GraphSIGFPE.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - SIGFPEfunc = GraphSIGFPE.FNode( 'SIGNALSComponent' , 'SIGNALSComponent' , 'SIGFPEfunc' ) - SIGFPEfunc.SetName( 'SIGFPEfunc' ) - SIGFPEfunc.SetAuthor( '' ) - SIGFPEfunc.SetContainer( 'localhost/FactoryServer' ) - SIGFPEfunc.SetComment( 'SIGFPEfunc from SIGNALSComponent' ) - SIGFPEfunc.Coords( 134 , 137 ) - ISIGFPEfunca = SIGFPEfunc.GetInPort( 'a' ) - ISIGFPEfuncb = SIGFPEfunc.GetInPort( 'b' ) - ISIGFPEfuncGate = SIGFPEfunc.GetInPort( 'Gate' ) - OSIGFPEfuncreturn = SIGFPEfunc.GetOutPort( 'return' ) - OSIGFPEfuncGate = SIGFPEfunc.GetOutPort( 'Gate' ) - - # Input datas - ISIGFPEfunca.Input( 1 ) - ISIGFPEfuncb.Input( 0 ) - - # Output Ports of the graph - #OSIGFPEfuncreturn = SIGFPEfunc.GetOutPort( 'return' ) - return GraphSIGFPE - - -GraphSIGFPE = DefGraphSIGFPE() diff --git a/Superv/Python/GraphSIGFPEPython.py b/Superv/Python/GraphSIGFPEPython.py deleted file mode 100644 index d7f6b63..0000000 --- a/Superv/Python/GraphSIGFPEPython.py +++ /dev/null @@ -1,56 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph SIGFPEPython -# -from SuperV import * - -# Graph creation of SIGFPEPython -def DefSIGFPEPython() : - SIGFPEPython = Graph( 'SIGFPEPython' ) - SIGFPEPython.SetName( 'SIGFPEPython' ) - SIGFPEPython.SetAuthor( 'JR' ) - SIGFPEPython.SetComment( '' ) - SIGFPEPython.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - # Creation of InLine Nodes - PySIGFPEPython = [] - PySIGFPEPython.append( 'def SIGFPEPython() : ' ) - PySIGFPEPython.append( ' import libSIGNALSComponent_Swig ' ) - PySIGFPEPython.append( ' s = libSIGNALSComponent_Swig.SIGNALSComponentEngine() ' ) - PySIGFPEPython.append( ' s.SIGFPEfunc(1,0) ' ) - PySIGFPEPython.append( ' ' ) - SIGFPEPython = SIGFPEPython.INode( 'SIGFPEPython' , PySIGFPEPython ) - SIGFPEPython.SetName( 'SIGFPEPython' ) - SIGFPEPython.SetAuthor( '' ) - SIGFPEPython.SetComment( 'Compute Node' ) - SIGFPEPython.Coords( 118 , 159 ) - ISIGFPEPythonGate = SIGFPEPython.GetInPort( 'Gate' ) - OSIGFPEPythonGate = SIGFPEPython.GetOutPort( 'Gate' ) - - # Output Ports of the graph - return SIGFPEPython - - -SIGFPEPython = DefSIGFPEPython() diff --git a/Superv/Python/GraphSIGSEGV.py b/Superv/Python/GraphSIGSEGV.py deleted file mode 100644 index b221ddf..0000000 --- a/Superv/Python/GraphSIGSEGV.py +++ /dev/null @@ -1,52 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphSIGSEGV -# -from SuperV import * - -# Graph creation of GraphSIGSEGV -def DefGraphSIGSEGV() : - GraphSIGSEGV = Graph( 'GraphSIGSEGV' ) - GraphSIGSEGV.SetName( 'GraphSIGSEGV' ) - GraphSIGSEGV.SetAuthor( 'JR' ) - GraphSIGSEGV.SetComment( '' ) - GraphSIGSEGV.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - SIGSEGVfunc = GraphSIGSEGV.FNode( 'SIGNALSComponent' , 'SIGNALSComponent' , 'SIGSEGVfunc' ) - SIGSEGVfunc.SetName( 'SIGSEGVfunc' ) - SIGSEGVfunc.SetAuthor( '' ) - SIGSEGVfunc.SetContainer( 'localhost/FactoryServer' ) - SIGSEGVfunc.SetComment( 'SIGSEGVfunc from SIGNALSComponent' ) - SIGSEGVfunc.Coords( 152 , 197 ) - ISIGSEGVfuncGate = SIGSEGVfunc.GetInPort( 'Gate' ) - OSIGSEGVfuncreturn = SIGSEGVfunc.GetOutPort( 'return' ) - OSIGSEGVfuncGate = SIGSEGVfunc.GetOutPort( 'Gate' ) - - # Output Ports of the graph - #OSIGSEGVfuncreturn = SIGSEGVfunc.GetOutPort( 'return' ) - return GraphSIGSEGV - - -GraphSIGSEGV = DefGraphSIGSEGV() diff --git a/Superv/Python/GraphSIGSEGVPython.py b/Superv/Python/GraphSIGSEGVPython.py deleted file mode 100644 index b7244c4..0000000 --- a/Superv/Python/GraphSIGSEGVPython.py +++ /dev/null @@ -1,56 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphSIGSEGVPython -# -from SuperV import * - -# Graph creation of GraphSIGSEGVPython -def DefGraphSIGSEGVPython() : - GraphSIGSEGVPython = Graph( 'GraphSIGSEGVPython' ) - GraphSIGSEGVPython.SetName( 'GraphSIGSEGVPython' ) - GraphSIGSEGVPython.SetAuthor( 'JR' ) - GraphSIGSEGVPython.SetComment( '' ) - GraphSIGSEGVPython.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - # Creation of InLine Nodes - PySIGSEGVPython = [] - PySIGSEGVPython.append( 'def SIGSEGVPython() : ' ) - PySIGSEGVPython.append( ' import libSIGNALSComponent_Swig ' ) - PySIGSEGVPython.append( ' s = libSIGNALSComponent_Swig.SIGNALSComponentEngine() ' ) - PySIGSEGVPython.append( ' s.SIGSEGVfunc() ' ) - PySIGSEGVPython.append( ' ' ) - SIGSEGVPython = GraphSIGSEGVPython.INode( 'SIGSEGVPython' , PySIGSEGVPython ) - SIGSEGVPython.SetName( 'SIGSEGVPython' ) - SIGSEGVPython.SetAuthor( '' ) - SIGSEGVPython.SetComment( 'Compute Node' ) - SIGSEGVPython.Coords( 105 , 143 ) - ISIGSEGVPythonGate = SIGSEGVPython.GetInPort( 'Gate' ) - OSIGSEGVPythonGate = SIGSEGVPython.GetOutPort( 'Gate' ) - - # Output Ports of the graph - return GraphSIGSEGVPython - - -GraphSIGSEGVPython = DefGraphSIGSEGVPython() diff --git a/Superv/Python/GraphStream.py b/Superv/Python/GraphStream.py deleted file mode 100644 index 16db44c..0000000 --- a/Superv/Python/GraphStream.py +++ /dev/null @@ -1,242 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphStream -# -from SuperV import * -# Graph creation -GraphStream = StreamGraph( 'GraphStream' ) -GraphStream.SetStreamParams( 0 , SUPERV.WithoutTrace , 0 ) -GraphStream.SetName( 'GraphStream' ) -GraphStream.SetAuthor( '' ) -GraphStream.SetComment( 'Test of DataStreamPorts in FactoryNodes' ) -GraphStream.Coords( 0 , 0 ) - -# Creation of Factory Nodes - -NewDataStream = GraphStream.FNode( 'DataStreamFactory' , 'DataStreamFactory' , 'NewDataStream' ) -NewDataStream.SetName( 'NewDataStream' ) -NewDataStream.SetAuthor( '' ) -NewDataStream.SetContainer( 'FactoryServer' ) -NewDataStream.SetComment( 'NewDataStream from DataStreamFactory' ) -NewDataStream.Coords( 4 , 10 ) -INewDataStreamGate = NewDataStream.GetInPort( 'Gate' ) -ONewDataStreamDataStream = NewDataStream.GetOutPort( 'DataStream' ) -ONewDataStreamGate = NewDataStream.GetOutPort( 'Gate' ) - -Add = GraphStream.FNode( 'DataStreamFactory' , 'DataStreamFactory' , 'Add' ) -Add.SetName( 'Add' ) -Add.SetAuthor( '' ) -Add.SetContainer( 'FactoryServer' ) -Add.SetComment( 'Add from DataStreamFactory from DataStreamComponent' ) -Add.Coords( 6 , 370 ) -IAddx = Add.GetInPort( 'x' ) -IAddy = Add.GetInPort( 'y' ) -IAddGate = Add.GetInPort( 'Gate' ) -OAddz = Add.GetOutPort( 'z' ) -OAddGate = Add.GetOutPort( 'Gate' ) -IAddistream = Add.GetInStreamPort( 'istream' ) -IAddistream.SetParams( SUPERV.SCHENULL , SUPERV.INTERNULL , SUPERV.EXTRANULL ) -OAddostream = Add.GetOutStreamPort( 'ostream' ) -OAddostream.SetNumberOfValues( 0 ) -OAddOStream = Add.GetOutStreamPort( 'OStream' ) -OAddOStream.SetNumberOfValues( 0 ) - -Sub = GraphStream.FNode( 'DataStreamFactory' , 'DataStreamFactory' , 'Sub' ) -Sub.SetName( 'Sub' ) -Sub.SetAuthor( '' ) -Sub.SetContainer( 'FactoryServer' ) -Sub.SetComment( 'Sub from DataStreamFactory from DataStreamComponent' ) -Sub.Coords( 234 , 216 ) -ISubx = Sub.GetInPort( 'x' ) -ISuby = Sub.GetInPort( 'y' ) -ISubGate = Sub.GetInPort( 'Gate' ) -OSubz = Sub.GetOutPort( 'z' ) -OSubGate = Sub.GetOutPort( 'Gate' ) -ISubistream = Sub.GetInStreamPort( 'istream' ) -ISubistream.SetParams( SUPERV.SCHENULL , SUPERV.INTERNULL , SUPERV.EXTRANULL ) -ISubIstream = Sub.GetInStreamPort( 'Istream' ) -ISubIstream.SetParams( SUPERV.SCHENULL , SUPERV.INTERNULL , SUPERV.EXTRANULL ) - -Mul = GraphStream.FNode( 'DataStreamFactory' , 'DataStreamFactory' , 'Mul' ) -Mul.SetName( 'Mul' ) -Mul.SetAuthor( '' ) -Mul.SetContainer( 'FactoryServer' ) -Mul.SetComment( 'Mul from DataStreamFactory from DataStreamComponent' ) -Mul.Coords( 448 , 342 ) -IMulx = Mul.GetInPort( 'x' ) -IMuly = Mul.GetInPort( 'y' ) -IMulGate = Mul.GetInPort( 'Gate' ) -OMulz = Mul.GetOutPort( 'z' ) -OMulGate = Mul.GetOutPort( 'Gate' ) - -Div = GraphStream.FNode( 'DataStreamFactory' , 'DataStreamFactory' , 'Div' ) -Div.SetName( 'Div' ) -Div.SetAuthor( '' ) -Div.SetContainer( 'FactoryServer' ) -Div.SetComment( 'Div from DataStreamFactory from DataStreamComponent' ) -Div.Coords( 678 , 214 ) -IDivx = Div.GetInPort( 'x' ) -IDivy = Div.GetInPort( 'y' ) -IDivGate = Div.GetInPort( 'Gate' ) -ODivz = Div.GetOutPort( 'z' ) -ODivGate = Div.GetOutPort( 'Gate' ) -ODivostream = Div.GetOutStreamPort( 'ostream' ) -ODivostream.SetNumberOfValues( 0 ) - -# Creation of Computing Nodes -StreamAdd_ServiceinParameter = [] -StreamAdd_ServiceinParameter.append( SALOME_ModuleCatalog.ServicesParameter( 'objref' , 'this' ) ) -StreamAdd_ServiceinParameter.append( SALOME_ModuleCatalog.ServicesParameter( 'long' , 'x' ) ) -StreamAdd_ServiceinParameter.append( SALOME_ModuleCatalog.ServicesParameter( 'long' , 'y' ) ) -StreamAdd_ServiceoutParameter = [] -StreamAdd_ServiceoutParameter.append( SALOME_ModuleCatalog.ServicesParameter( 'long' , 'z' ) ) -StreamAdd_ServiceinStreamParameter = [] -StreamAdd_ServiceinStreamParameter.append( SALOME_ModuleCatalog.ServicesDataStreamParameter( SALOME_ModuleCatalog.DATASTREAM_INTEGER , 'istream' , SALOME_ModuleCatalog.DATASTREAM_ITERATIVE ) ) -StreamAdd_ServiceoutStreamParameter = [] -StreamAdd_ServiceoutStreamParameter.append( SALOME_ModuleCatalog.ServicesDataStreamParameter( SALOME_ModuleCatalog.DATASTREAM_INTEGER , 'ostream' , SALOME_ModuleCatalog.DATASTREAM_ITERATIVE ) ) -StreamAdd_ServiceoutStreamParameter.append( SALOME_ModuleCatalog.ServicesDataStreamParameter( SALOME_ModuleCatalog.DATASTREAM_INTEGER , 'OStream' , SALOME_ModuleCatalog.DATASTREAM_ITERATIVE ) ) -StreamAdd_Service = SALOME_ModuleCatalog.Service( 'StreamAdd' , StreamAdd_ServiceinParameter , StreamAdd_ServiceoutParameter , StreamAdd_ServiceinStreamParameter , StreamAdd_ServiceoutStreamParameter , 0 , 0 ) -StreamAdd = GraphStream.CNode( StreamAdd_Service ) -StreamAdd.SetName( 'StreamAdd' ) -StreamAdd.SetAuthor( '' ) -StreamAdd.SetComment( 'Compute Node' ) -StreamAdd.Coords( 448 , 9 ) -IStreamAddthis = StreamAdd.GetInPort( 'this' ) -IStreamAddx = StreamAdd.GetInPort( 'x' ) -IStreamAddy = StreamAdd.GetInPort( 'y' ) -IStreamAddGate = StreamAdd.GetInPort( 'Gate' ) -OStreamAddz = StreamAdd.GetOutPort( 'z' ) -OStreamAddGate = StreamAdd.GetOutPort( 'Gate' ) -IStreamAddistream = StreamAdd.GetInStreamPort( 'istream' ) -IStreamAddistream.SetParams( SUPERV.SCHENULL , SUPERV.INTERNULL , SUPERV.EXTRANULL ) -OStreamAddostream = StreamAdd.GetOutStreamPort( 'ostream' ) -OStreamAddostream.SetNumberOfValues( 0 ) -OStreamAddOStream = StreamAdd.GetOutStreamPort( 'OStream' ) -OStreamAddOStream.SetNumberOfValues( 0 ) - -# Creation of Links -LNewDataStreamDataStreamStreamAddthis = GraphStream.Link( ONewDataStreamDataStream , IStreamAddthis ) - -LAddzSuby = GraphStream.Link( OAddz , ISuby ) -LAddzSuby.AddCoord( 1 , 185 , 310 ) -LAddzSuby.AddCoord( 2 , 185 , 437 ) - -LAddzMuly = GraphStream.Link( OAddz , IMuly ) - -LAddostreamSubistream = GraphStream.StreamLink( OAddostream , ISubistream ) -LAddostreamSubistream.AddCoord( 1 , 199 , 343 ) -LAddostreamSubistream.AddCoord( 2 , 200 , 497 ) - -LAddOStreamSubIstream = GraphStream.StreamLink( OAddOStream , ISubIstream ) -LAddOStreamSubIstream.AddCoord( 1 , 219 , 374 ) -LAddOStreamSubIstream.AddCoord( 2 , 218 , 529 ) - -LSubzMulx = GraphStream.Link( OSubz , IMulx ) -LSubzMulx.AddCoord( 1 , 426 , 408 ) -LSubzMulx.AddCoord( 2 , 427 , 282 ) - -LSubzDivx = GraphStream.Link( OSubz , IDivx ) - -LMulzDivy = GraphStream.Link( OMulz , IDivy ) -LMulzDivy.AddCoord( 1 , 648 , 309 ) -LMulzDivy.AddCoord( 2 , 648 , 406 ) - -# Input datas -IAddx.Input( 3 ) -IAddy.Input( 7 ) -ISubx.Input( 1 ) -IStreamAddx.Input( 1 ) -IStreamAddy.Input( 2 ) -IAddistream.Input( 1 ) -IStreamAddistream.Input( 136159896 ) - -# Output Ports of the graph -#ODivz = Div.GetOutPort( 'z' ) -#OStreamAddz = StreamAdd.GetOutPort( 'z' ) - -GraphStream.PrintPorts() -GraphStream.IsValid() -status = GraphStream.IsExecutable() -if status == 0 : - print 'Input of port IStreamAddistream is required : Ok' -else : - print 'Input of port IStreamAddistream is required : ERROR' -# Following input is required : -IStreamAddistream.Input( 1 ) -GraphStream.IsExecutable() - -GraphStream.Run() -GraphStream.DoneW() -GraphStream.PrintPorts() -GraphStream.State() - -subgraphs = GraphStream.SubGraphsNumber() -i = 1 -while i <= subgraphs : - nodes = GraphStream.SubGraphsNodes( i ) - j = 0 - while j < len(nodes) : - print 'SubGraph',i,nodes[j].Name() - j = j + 1 - i = i + 1 - - -substreamgraphs = GraphStream.SubStreamGraphsNumber() -i = 1 -while i <= substreamgraphs : - nodes = GraphStream.SubStreamGraphsNodes( i ) - j = 0 - while j < len(nodes) : - print 'SubStreamGraph',i,nodes[j].Name() - j = j + 1 - i = i + 1 - -GraphStream.Export('/tmp/GraphStream.xml') - -GraphStream = StreamGraph( '/tmp/GraphStream.xml' ) -GraphStream.Run() -GraphStream.DoneW() -GraphStream.PrintPorts() -print GraphStream.State() - -subgraphs = GraphStream.SubGraphsNumber() -i = 1 -while i <= subgraphs : - nodes = GraphStream.SubGraphsNodes( i ) - j = 0 - while j < len(nodes) : - print 'SubGraph',i,nodes[j].Name() - j = j + 1 - i = i + 1 - - -substreamgraphs = GraphStream.SubStreamGraphsNumber() -i = 1 -while i <= substreamgraphs : - nodes = GraphStream.SubStreamGraphsNodes( i ) - j = 0 - while j < len(nodes) : - print 'SubStreamGraph',i,nodes[j].Name() - j = j + 1 - i = i + 1 - diff --git a/Superv/Python/GraphStreamInLines.py b/Superv/Python/GraphStreamInLines.py deleted file mode 100644 index ee193c4..0000000 --- a/Superv/Python/GraphStreamInLines.py +++ /dev/null @@ -1,222 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphStreamInLines -# -from SuperV import * - -# Graph creation of GraphStreamInLines -def DefGraphStreamInLines() : - GraphStreamInLines = StreamGraph( 'GraphStreamInLines' ) - GraphStreamInLines.SetStreamParams( 300 , SUPERV.WithoutTrace , 0 ) - GraphStreamInLines.SetName( 'GraphStreamInLines' ) - GraphStreamInLines.SetAuthor( '' ) - GraphStreamInLines.SetComment( '' ) - GraphStreamInLines.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - # Creation of InLine Nodes - PyIsOdd = [] - PyIsOdd.append( 'from time import * ' ) - PyIsOdd.append( 'def IsOdd(a,Even) : ' ) - PyIsOdd.append( ' print a,"IsOdd (GraphStreamInLines1)" ' ) - PyIsOdd.append( ' sleep( 1 ) ' ) - PyIsOdd.append( ' return a ' ) - IsOdd = GraphStreamInLines.INode( 'IsOdd' , PyIsOdd ) - IsOdd.SetName( 'IsOdd' ) - IsOdd.SetAuthor( '' ) - IsOdd.SetComment( 'Python function' ) - IsOdd.Coords( 404 , 7 ) - IIsOdda = IsOdd.InPort( 'a' , 'long' ) - IIsOddEven = IsOdd.InPort( 'Even' , 'boolean' ) - IIsOddGate = IsOdd.GetInPort( 'Gate' ) - OIsOdda = IsOdd.OutPort( 'a' , 'long' ) - OIsOddGate = IsOdd.GetOutPort( 'Gate' ) - IIsOddistream = IsOdd.InStreamPort( 'istream' , SALOME_ModuleCatalog.DATASTREAM_INTEGER , SALOME_ModuleCatalog.DATASTREAM_TEMPORAL ) - IIsOddistream.SetParams( SUPERV.TI , SUPERV.L1 , SUPERV.EXTRANULL ) - OIsOddostream = IsOdd.OutStreamPort( 'ostream' , SALOME_ModuleCatalog.DATASTREAM_INTEGER , SALOME_ModuleCatalog.DATASTREAM_ITERATIVE ) - OIsOddostream.SetNumberOfValues( 0 ) - - # Creation of Loop Nodes - PyInitLoop = [] - PyMoreInitLoop = [] - PyMoreInitLoop.append( '' ) - PyNextInitLoop = [] - PyNextInitLoop.append( '' ) - InitLoop,EndOfInitLoop = GraphStreamInLines.LNode( '' , PyInitLoop , '' , PyMoreInitLoop , '' , PyNextInitLoop ) - EndOfInitLoop.SetName( 'EndOfInitLoop' ) - EndOfInitLoop.SetAuthor( '' ) - EndOfInitLoop.SetComment( 'Compute Node' ) - EndOfInitLoop.Coords( 807 , 104 ) - PyEndOfInitLoop = [] - PyEndOfInitLoop.append( 'def EndOfInitLoop( DoLoop , Index , Min , Max ) :' ) - PyEndOfInitLoop.append( ' Index = Index + 1 ' ) - PyEndOfInitLoop.append( ' if Index <= Max : ' ) - PyEndOfInitLoop.append( ' DoLoop = 1 ' ) - PyEndOfInitLoop.append( ' else : ' ) - PyEndOfInitLoop.append( ' DoLoop = 0 ' ) - PyEndOfInitLoop.append( ' return DoLoop,Index,Min,Max ' ) - EndOfInitLoop.SetPyFunction( 'EndOfInitLoop' , PyEndOfInitLoop ) - IInitLoopDoLoop = InitLoop.GetInPort( 'DoLoop' ) - IInitLoopIndex = InitLoop.InPort( 'Index' , 'long' ) - IInitLoopMin = InitLoop.InPort( 'Min' , 'long' ) - IInitLoopMax = InitLoop.InPort( 'Max' , 'long' ) - IInitLoopistream = InitLoop.InStreamPort( 'istream' , SALOME_ModuleCatalog.DATASTREAM_INTEGER , SALOME_ModuleCatalog.DATASTREAM_TEMPORAL ) - IInitLoopistream.SetParams( SUPERV.TI , SUPERV.L1 , SUPERV.EXTRANULL ) - IInitLoopGate = InitLoop.GetInPort( 'Gate' ) - OInitLoopDoLoop = InitLoop.GetOutPort( 'DoLoop' ) - OInitLoopIndex = InitLoop.GetOutPort( 'Index' ) - OInitLoopMin = InitLoop.GetOutPort( 'Min' ) - OInitLoopMax = InitLoop.GetOutPort( 'Max' ) - OInitLoopostream = InitLoop.OutStreamPort( 'ostream' , SALOME_ModuleCatalog.DATASTREAM_INTEGER , SALOME_ModuleCatalog.DATASTREAM_ITERATIVE ) - OInitLoopostream.SetNumberOfValues( 0 ) - IEndOfInitLoopDoLoop = EndOfInitLoop.GetInPort( 'DoLoop' ) - IEndOfInitLoopIndex = EndOfInitLoop.GetInPort( 'Index' ) - IEndOfInitLoopMin = EndOfInitLoop.GetInPort( 'Min' ) - IEndOfInitLoopMax = EndOfInitLoop.GetInPort( 'Max' ) - IEndOfInitLoopistream = EndOfInitLoop.InStreamPort( 'istream' , SALOME_ModuleCatalog.DATASTREAM_INTEGER , SALOME_ModuleCatalog.DATASTREAM_ITERATIVE ) - IEndOfInitLoopistream.SetParams( SUPERV.SCHENULL , SUPERV.INTERNULL , SUPERV.EXTRANULL ) - IEndOfInitLoopGate = EndOfInitLoop.GetInPort( 'Gate' ) - OEndOfInitLoopDoLoop = EndOfInitLoop.GetOutPort( 'DoLoop' ) - OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) - OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) - OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) - OEndOfInitLoopGate = EndOfInitLoop.GetOutPort( 'Gate' ) - OEndOfInitLoopostream = EndOfInitLoop.OutStreamPort( 'ostream' , SALOME_ModuleCatalog.DATASTREAM_INTEGER , SALOME_ModuleCatalog.DATASTREAM_TEMPORAL ) - OEndOfInitLoopostream.SetNumberOfValues( 0 ) - InitLoop.SetName( 'InitLoop' ) - InitLoop.SetAuthor( '' ) - InitLoop.SetComment( 'Compute Node' ) - InitLoop.Coords( 11 , 119 ) - IInitLoopistream = InitLoop.InStreamPort( 'istream' , SALOME_ModuleCatalog.DATASTREAM_INTEGER , SALOME_ModuleCatalog.DATASTREAM_TEMPORAL ) - IInitLoopistream.SetParams( SUPERV.TI , SUPERV.L1 , SUPERV.EXTRANULL ) - OInitLoopostream = InitLoop.OutStreamPort( 'ostream' , SALOME_ModuleCatalog.DATASTREAM_INTEGER , SALOME_ModuleCatalog.DATASTREAM_ITERATIVE ) - OInitLoopostream.SetNumberOfValues( 0 ) - - # Creation of Switch Nodes - PySwitch = [] - PySwitch.append( 'from time import * ' ) - PySwitch.append( 'def Switch(a) : ' ) - PySwitch.append( ' if ( a & 1 ) == 0 : ' ) - PySwitch.append( ' sleep(1) ' ) - PySwitch.append( ' return a & 1,1-(a&1),a ' ) - Switch,EndSwitch = GraphStreamInLines.SNode( 'Switch' , PySwitch ) - EndSwitch.SetName( 'EndSwitch' ) - EndSwitch.SetAuthor( '' ) - EndSwitch.SetComment( 'Compute Node' ) - EndSwitch.Coords( 604 , 105 ) - PyEndSwitch = [] - PyEndSwitch.append( 'def EndOfSwitch(a) : ' ) - PyEndSwitch.append( ' if ( a & 1 ) == 0 : ' ) - PyEndSwitch.append( ' sleep(1) ' ) - PyEndSwitch.append( ' return a ' ) - EndSwitch.SetPyFunction( 'EndOfSwitch' , PyEndSwitch ) - IEndSwitcha = EndSwitch.InPort( 'a' , 'long' ) - IEndSwitchistream = EndSwitch.InStreamPort( 'istream' , SALOME_ModuleCatalog.DATASTREAM_INTEGER , SALOME_ModuleCatalog.DATASTREAM_TEMPORAL ) - IEndSwitchistream.SetParams( SUPERV.TI , SUPERV.L1 , SUPERV.EXTRANULL ) - IEndSwitchDefault = EndSwitch.GetInPort( 'Default' ) - OEndSwitcha = EndSwitch.OutPort( 'a' , 'long' ) - OEndSwitchostream = EndSwitch.OutStreamPort( 'ostream' , SALOME_ModuleCatalog.DATASTREAM_INTEGER , SALOME_ModuleCatalog.DATASTREAM_TEMPORAL ) - OEndSwitchostream.SetNumberOfValues( 0 ) - OEndSwitchGate = EndSwitch.GetOutPort( 'Gate' ) - Switch.SetName( 'Switch' ) - Switch.SetAuthor( '' ) - Switch.SetComment( 'Compute Node' ) - Switch.Coords( 198 , 115 ) - ISwitcha = Switch.InPort( 'a' , 'long' ) - ISwitchGate = Switch.GetInPort( 'Gate' ) - OSwitchOdd = Switch.OutPort( 'Odd' , 'long' ) - OSwitchEven = Switch.OutPort( 'Even' , 'int' ) - OSwitcha = Switch.OutPort( 'a' , 'int' ) - OSwitchDefault = Switch.GetOutPort( 'Default' ) - ISwitchistream = Switch.InStreamPort( 'istream' , SALOME_ModuleCatalog.DATASTREAM_INTEGER , SALOME_ModuleCatalog.DATASTREAM_TEMPORAL ) - ISwitchistream.SetParams( SUPERV.TI , SUPERV.L1 , SUPERV.EXTRANULL ) - OSwitchostream = Switch.OutStreamPort( 'ostream' , SALOME_ModuleCatalog.DATASTREAM_INTEGER , SALOME_ModuleCatalog.DATASTREAM_ITERATIVE ) - OSwitchostream.SetNumberOfValues( 0 ) - - # Creation of Links - LIsOddaEndSwitcha = GraphStreamInLines.Link( OIsOdda , IEndSwitcha ) - - LIsOddostreamInitLoopistream = GraphStreamInLines.StreamLink( OIsOddostream , IInitLoopistream ) - LIsOddostreamInitLoopistream.AddCoord( 1 , 3 , 240 ) - LIsOddostreamInitLoopistream.AddCoord( 2 , 3 , 395 ) - LIsOddostreamInitLoopistream.AddCoord( 3 , 571 , 394 ) - LIsOddostreamInitLoopistream.AddCoord( 4 , 577 , 122 ) - - LInitLoopIndexSwitcha = GraphStreamInLines.Link( OInitLoopIndex , ISwitcha ) - - LInitLoopMinEndOfInitLoopMin = GraphStreamInLines.Link( OInitLoopMin , IEndOfInitLoopMin ) - - LInitLoopMaxEndOfInitLoopMax = GraphStreamInLines.Link( OInitLoopMax , IEndOfInitLoopMax ) - - LInitLoopostreamEndSwitchistream = GraphStreamInLines.StreamLink( OInitLoopostream , IEndSwitchistream ) - LInitLoopostreamEndSwitchistream.AddCoord( 1 , 586 , 158 ) - LInitLoopostreamEndSwitchistream.AddCoord( 2 , 586 , 362 ) - LInitLoopostreamEndSwitchistream.AddCoord( 3 , 591 , 362 ) - LInitLoopostreamEndSwitchistream.AddCoord( 4 , 591 , 359 ) - LInitLoopostreamEndSwitchistream.AddCoord( 5 , 180 , 359 ) - LInitLoopostreamEndSwitchistream.AddCoord( 6 , 180 , 212 ) - LInitLoopostreamEndSwitchistream.AddCoord( 7 , 181 , 212 ) - LInitLoopostreamEndSwitchistream.AddCoord( 8 , 181 , 214 ) - LInitLoopostreamEndSwitchistream.AddCoord( 9 , 584 , 167 ) - LInitLoopostreamEndSwitchistream.AddCoord( 10 , 584 , 369 ) - LInitLoopostreamEndSwitchistream.AddCoord( 11 , 184 , 368 ) - LInitLoopostreamEndSwitchistream.AddCoord( 12 , 185 , 240 ) - - LSwitchOddIsOddGate = GraphStreamInLines.Link( OSwitchOdd , IIsOddGate ) - - LSwitchEvenIsOddEven = GraphStreamInLines.Link( OSwitchEven , IIsOddEven ) - - LSwitchaIsOdda = GraphStreamInLines.Link( OSwitcha , IIsOdda ) - - LSwitchostreamIsOddistream = GraphStreamInLines.StreamLink( OSwitchostream , IIsOddistream ) - - LSwitchostreamEndOfInitLoopistream = GraphStreamInLines.StreamLink( OSwitchostream , IEndOfInitLoopistream ) - LSwitchostreamEndOfInitLoopistream.AddCoord( 1 , 779 , 203 ) - LSwitchostreamEndOfInitLoopistream.AddCoord( 2 , 775 , 261 ) - LSwitchostreamEndOfInitLoopistream.AddCoord( 3 , 397 , 260 ) - LSwitchostreamEndOfInitLoopistream.AddCoord( 4 , 403 , 217 ) - - LSwitchDefaultEndSwitchDefault = GraphStreamInLines.Link( OSwitchDefault , IEndSwitchDefault ) - - LEndSwitchaEndOfInitLoopIndex = GraphStreamInLines.Link( OEndSwitcha , IEndOfInitLoopIndex ) - - LEndSwitchostreamSwitchistream = GraphStreamInLines.StreamLink( OEndSwitchostream , ISwitchistream ) - LEndSwitchostreamSwitchistream.AddCoord( 1 , 186 , 240 ) - LEndSwitchostreamSwitchistream.AddCoord( 2 , 186 , 331 ) - LEndSwitchostreamSwitchistream.AddCoord( 3 , 790 , 329 ) - LEndSwitchostreamSwitchistream.AddCoord( 4 , 786 , 161 ) - - # Input datas - IInitLoopIndex.Input( 0 ) - IInitLoopMin.Input( 0 ) - IInitLoopMax.Input( 35 ) - - # Output Ports of the graph - #OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) - #OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) - #OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) - return GraphStreamInLines - - -GraphStreamInLines = DefGraphStreamInLines() diff --git a/Superv/Python/GraphStreamTopologies.py b/Superv/Python/GraphStreamTopologies.py deleted file mode 100644 index f5696eb..0000000 --- a/Superv/Python/GraphStreamTopologies.py +++ /dev/null @@ -1,256 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphStreamTopologies -# -from SuperV import * -# Graph creation -GraphStreamTopologies = StreamGraph( 'GraphStreamTopologies' ) -GraphStreamTopologies.SetStreamParams( 300 , SUPERV.WithoutTrace , 0 ) -GraphStreamTopologies.SetName( 'GraphStreamTopologies' ) -GraphStreamTopologies.SetAuthor( 'JR' ) -GraphStreamTopologies.SetComment( 'Test of SubStreamGraphs of a StreamGraph' ) -GraphStreamTopologies.Coords( 0 , 0 ) - -# Creation of Factory Nodes - -# Creation of InLine Nodes -PyNode_A_1 = [] -PyNode_A_1.append( 'def Node_A_1() : ' ) -PyNode_A_1.append( ' return 1 ' ) -Node_A_1 = GraphStreamTopologies.INode( 'Node_A_1' , PyNode_A_1 ) -Node_A_1.SetName( 'Node_A_1' ) -Node_A_1.SetAuthor( '' ) -Node_A_1.SetComment( 'Python function' ) -Node_A_1.Coords( 29 , 66 ) -INode_A_1Gate = Node_A_1.GetInPort( 'Gate' ) -ONode_A_1a_1 = Node_A_1.OutPort( 'a_1' , 'long' ) -ONode_A_1Gate = Node_A_1.GetOutPort( 'Gate' ) -INode_A_1istream_A_1_1 = Node_A_1.InStreamPort( 'istream_A_1_1' , SALOME_ModuleCatalog.DATASTREAM_INTEGER , SALOME_ModuleCatalog.DATASTREAM_TEMPORAL ) -INode_A_1istream_A_1_1.SetParams( SUPERV.TI , SUPERV.L1 , SUPERV.EXTRANULL ) -INode_A_1istream_A_1_2 = Node_A_1.InStreamPort( 'istream_A_1_2' , SALOME_ModuleCatalog.DATASTREAM_INTEGER , SALOME_ModuleCatalog.DATASTREAM_TEMPORAL ) -INode_A_1istream_A_1_2.SetParams( SUPERV.TI , SUPERV.L1 , SUPERV.EXTRANULL ) -INode_A_1istream_A_1_3 = Node_A_1.InStreamPort( 'istream_A_1_3' , SALOME_ModuleCatalog.DATASTREAM_INTEGER , SALOME_ModuleCatalog.DATASTREAM_TEMPORAL ) -INode_A_1istream_A_1_3.SetParams( SUPERV.TI , SUPERV.L1 , SUPERV.EXTRANULL ) - -PyNode_A_2 = [] -PyNode_A_2.append( 'def Node_A_2() : ' ) -PyNode_A_2.append( ' return 1 ' ) -Node_A_2 = GraphStreamTopologies.INode( 'Node_A_2' , PyNode_A_2 ) -Node_A_2.SetName( 'Node_A_2' ) -Node_A_2.SetAuthor( '' ) -Node_A_2.SetComment( 'Python function' ) -Node_A_2.Coords( 23 , 309 ) -INode_A_2Gate = Node_A_2.GetInPort( 'Gate' ) -ONode_A_2a_2 = Node_A_2.OutPort( 'a_2' , 'long' ) -ONode_A_2Gate = Node_A_2.GetOutPort( 'Gate' ) -INode_A_2istream_A_2_1 = Node_A_2.InStreamPort( 'istream_A_2_1' , SALOME_ModuleCatalog.DATASTREAM_INTEGER , SALOME_ModuleCatalog.DATASTREAM_TEMPORAL ) -INode_A_2istream_A_2_1.SetParams( SUPERV.TI , SUPERV.L1 , SUPERV.EXTRANULL ) -ONode_A_2ostream_A_2_1 = Node_A_2.OutStreamPort( 'ostream_A_2_1' , SALOME_ModuleCatalog.DATASTREAM_INTEGER , SALOME_ModuleCatalog.DATASTREAM_TEMPORAL ) -ONode_A_2ostream_A_2_1.SetNumberOfValues( 0 ) - -PyNode_B_1 = [] -PyNode_B_1.append( 'def Node_B_1( n ) : ' ) -PyNode_B_1.append( ' return n ' ) -Node_B_1 = GraphStreamTopologies.INode( 'Node_B_1' , PyNode_B_1 ) -Node_B_1.SetName( 'Node_B_1' ) -Node_B_1.SetAuthor( '' ) -Node_B_1.SetComment( 'Python function' ) -Node_B_1.Coords( 249 , 66 ) -INode_B_1b_1 = Node_B_1.InPort( 'b_1' , 'long' ) -INode_B_1Gate = Node_B_1.GetInPort( 'Gate' ) -ONode_B_1b_1 = Node_B_1.OutPort( 'b_1' , 'long' ) -ONode_B_1Gate = Node_B_1.GetOutPort( 'Gate' ) -INode_B_1istream_B_1_1 = Node_B_1.InStreamPort( 'istream_B_1_1' , SALOME_ModuleCatalog.DATASTREAM_INTEGER , SALOME_ModuleCatalog.DATASTREAM_TEMPORAL ) -INode_B_1istream_B_1_1.SetParams( SUPERV.TI , SUPERV.L1 , SUPERV.EXTRANULL ) - -PyNode_B_2 = [] -PyNode_B_2.append( 'def Node_B_2( n ) : ' ) -PyNode_B_2.append( ' return n ' ) -Node_B_2 = GraphStreamTopologies.INode( 'Node_B_2' , PyNode_B_2 ) -Node_B_2.SetName( 'Node_B_2' ) -Node_B_2.SetAuthor( '' ) -Node_B_2.SetComment( 'Python function' ) -Node_B_2.Coords( 245 , 308 ) -INode_B_2b_2 = Node_B_2.InPort( 'b_2' , 'long' ) -INode_B_2Gate = Node_B_2.GetInPort( 'Gate' ) -ONode_B_2b_2 = Node_B_2.OutPort( 'b_2' , 'long' ) -ONode_B_2Gate = Node_B_2.GetOutPort( 'Gate' ) -INode_B_2istream_B_2_1 = Node_B_2.InStreamPort( 'istream_B_2_1' , SALOME_ModuleCatalog.DATASTREAM_INTEGER , SALOME_ModuleCatalog.DATASTREAM_TEMPORAL ) -INode_B_2istream_B_2_1.SetParams( SUPERV.TI , SUPERV.L1 , SUPERV.EXTRANULL ) -ONode_B_2ostream_B_2_1 = Node_B_2.OutStreamPort( 'ostream_B_2_1' , SALOME_ModuleCatalog.DATASTREAM_INTEGER , SALOME_ModuleCatalog.DATASTREAM_TEMPORAL ) -ONode_B_2ostream_B_2_1.SetNumberOfValues( 0 ) -ONode_B_2ostream_B_2_2 = Node_B_2.OutStreamPort( 'ostream_B_2_2' , SALOME_ModuleCatalog.DATASTREAM_INTEGER , SALOME_ModuleCatalog.DATASTREAM_TEMPORAL ) -ONode_B_2ostream_B_2_2.SetNumberOfValues( 0 ) - -PyNode_C_1 = [] -PyNode_C_1.append( 'def Node_C_1( n ) : ' ) -PyNode_C_1.append( ' return ' ) -Node_C_1 = GraphStreamTopologies.INode( 'Node_C_1' , PyNode_C_1 ) -Node_C_1.SetName( 'Node_C_1' ) -Node_C_1.SetAuthor( '' ) -Node_C_1.SetComment( 'Python function' ) -Node_C_1.Coords( 481 , 67 ) -INode_C_1c_1 = Node_C_1.InPort( 'c_1' , 'long' ) -INode_C_1Gate = Node_C_1.GetInPort( 'Gate' ) -ONode_C_1Gate = Node_C_1.GetOutPort( 'Gate' ) -ONode_C_1ostream_C_1_1 = Node_C_1.OutStreamPort( 'ostream_C_1_1' , SALOME_ModuleCatalog.DATASTREAM_INTEGER , SALOME_ModuleCatalog.DATASTREAM_TEMPORAL ) -ONode_C_1ostream_C_1_1.SetNumberOfValues( 0 ) - -PyNode_C_2 = [] -PyNode_C_2.append( 'def Node_C_2( n ) : ' ) -PyNode_C_2.append( ' return n ' ) -Node_C_2 = GraphStreamTopologies.INode( 'Node_C_2' , PyNode_C_2 ) -Node_C_2.SetName( 'Node_C_2' ) -Node_C_2.SetAuthor( '' ) -Node_C_2.SetComment( 'Python function' ) -Node_C_2.Coords( 476 , 307 ) -INode_C_2c_2 = Node_C_2.InPort( 'c_2' , 'long' ) -INode_C_2Gate = Node_C_2.GetInPort( 'Gate' ) -ONode_C_2c_2 = Node_C_2.OutPort( 'c_2' , 'long' ) -ONode_C_2Gate = Node_C_2.GetOutPort( 'Gate' ) -INode_C_2istream_C_2_1 = Node_C_2.InStreamPort( 'istream_C_2_1' , SALOME_ModuleCatalog.DATASTREAM_INTEGER , SALOME_ModuleCatalog.DATASTREAM_TEMPORAL ) -INode_C_2istream_C_2_1.SetParams( SUPERV.TI , SUPERV.L1 , SUPERV.EXTRANULL ) - -PyNode_D_1 = [] -PyNode_D_1.append( 'def Node_D_1( n ) : ' ) -PyNode_D_1.append( ' return ' ) -Node_D_1 = GraphStreamTopologies.INode( 'Node_D_1' , PyNode_D_1 ) -Node_D_1.SetName( 'Node_D_1' ) -Node_D_1.SetAuthor( '' ) -Node_D_1.SetComment( 'Python function' ) -Node_D_1.Coords( 703 , 306 ) -INode_D_1d_1 = Node_D_1.InPort( 'd_1' , 'long' ) -INode_D_1Gate = Node_D_1.GetInPort( 'Gate' ) -ONode_D_1Gate = Node_D_1.GetOutPort( 'Gate' ) -ONode_D_1ostream_D_1_1 = Node_D_1.OutStreamPort( 'ostream_D_1_1' , SALOME_ModuleCatalog.DATASTREAM_INTEGER , SALOME_ModuleCatalog.DATASTREAM_TEMPORAL ) -ONode_D_1ostream_D_1_1.SetNumberOfValues( 0 ) - -# Creation of Links -LNode_A_1a_1Node_B_1b_1 = GraphStreamTopologies.Link( ONode_A_1a_1 , INode_B_1b_1 ) - -LNode_A_2a_2Node_B_2b_2 = GraphStreamTopologies.Link( ONode_A_2a_2 , INode_B_2b_2 ) - -LNode_A_2ostream_A_2_1Node_A_1istream_A_1_1 = GraphStreamTopologies.StreamLink( ONode_A_2ostream_A_2_1 , INode_A_1istream_A_1_1 ) -LNode_A_2ostream_A_2_1Node_A_1istream_A_1_1.AddCoord( 1 , 13 , 164 ) -LNode_A_2ostream_A_2_1Node_A_1istream_A_1_1.AddCoord( 2 , 13 , 44 ) -LNode_A_2ostream_A_2_1Node_A_1istream_A_1_1.AddCoord( 3 , 207 , 44 ) -LNode_A_2ostream_A_2_1Node_A_1istream_A_1_1.AddCoord( 4 , 207 , 409 ) - -LNode_B_1b_1Node_C_1c_1 = GraphStreamTopologies.Link( ONode_B_1b_1 , INode_C_1c_1 ) - -LNode_B_2b_2Node_C_2c_2 = GraphStreamTopologies.Link( ONode_B_2b_2 , INode_C_2c_2 ) - -LNode_B_2ostream_B_2_1Node_A_1istream_A_1_2 = GraphStreamTopologies.StreamLink( ONode_B_2ostream_B_2_1 , INode_A_1istream_A_1_2 ) -LNode_B_2ostream_B_2_1Node_A_1istream_A_1_2.AddCoord( 1 , 14 , 195 ) -LNode_B_2ostream_B_2_1Node_A_1istream_A_1_2.AddCoord( 2 , 13 , 299 ) -LNode_B_2ostream_B_2_1Node_A_1istream_A_1_2.AddCoord( 3 , 428 , 300 ) -LNode_B_2ostream_B_2_1Node_A_1istream_A_1_2.AddCoord( 4 , 428 , 407 ) - -LNode_B_2ostream_B_2_2Node_A_2istream_A_2_1 = GraphStreamTopologies.StreamLink( ONode_B_2ostream_B_2_2 , INode_A_2istream_A_2_1 ) -LNode_B_2ostream_B_2_2Node_A_2istream_A_2_1.AddCoord( 1 , 12 , 406 ) -LNode_B_2ostream_B_2_2Node_A_2istream_A_2_1.AddCoord( 2 , 11 , 525 ) -LNode_B_2ostream_B_2_2Node_A_2istream_A_2_1.AddCoord( 3 , 427 , 525 ) -LNode_B_2ostream_B_2_2Node_A_2istream_A_2_1.AddCoord( 4 , 426 , 438 ) - -LNode_C_1ostream_C_1_1Node_A_1istream_A_1_3 = GraphStreamTopologies.StreamLink( ONode_C_1ostream_C_1_1 , INode_A_1istream_A_1_3 ) -LNode_C_1ostream_C_1_1Node_A_1istream_A_1_3.AddCoord( 1 , 5 , 227 ) -LNode_C_1ostream_C_1_1Node_A_1istream_A_1_3.AddCoord( 2 , 5 , 16 ) -LNode_C_1ostream_C_1_1Node_A_1istream_A_1_3.AddCoord( 3 , 672 , 16 ) -LNode_C_1ostream_C_1_1Node_A_1istream_A_1_3.AddCoord( 4 , 671 , 166 ) - -LNode_C_2c_2Node_D_1d_1 = GraphStreamTopologies.Link( ONode_C_2c_2 , INode_D_1d_1 ) - -LNode_D_1ostream_D_1_1Node_C_2istream_C_2_1 = GraphStreamTopologies.StreamLink( ONode_D_1ostream_D_1_1 , INode_C_2istream_C_2_1 ) -LNode_D_1ostream_D_1_1Node_C_2istream_C_2_1.AddCoord( 1 , 453 , 406 ) -LNode_D_1ostream_D_1_1Node_C_2istream_C_2_1.AddCoord( 2 , 454 , 499 ) -LNode_D_1ostream_D_1_1Node_C_2istream_C_2_1.AddCoord( 3 , 903 , 500 ) -LNode_D_1ostream_D_1_1Node_C_2istream_C_2_1.AddCoord( 4 , 903 , 404 ) - -LNode_D_1ostream_D_1_1Node_B_1istream_B_1_1 = GraphStreamTopologies.StreamLink( ONode_D_1ostream_D_1_1 , INode_B_1istream_B_1_1 ) -LNode_D_1ostream_D_1_1Node_B_1istream_B_1_1.AddCoord( 1 , 229 , 163 ) -LNode_D_1ostream_D_1_1Node_B_1istream_B_1_1.AddCoord( 2 , 229 , 282 ) -LNode_D_1ostream_D_1_1Node_B_1istream_B_1_1.AddCoord( 3 , 902 , 282 ) -LNode_D_1ostream_D_1_1Node_B_1istream_B_1_1.AddCoord( 4 , 903 , 404 ) - -# Input datas -INode_B_2istream_B_2_1.Input( 1 ) - -# Output Ports of the graph - -GraphStreamTopologies.Run() -GraphStreamTopologies.DoneW() -GraphStreamTopologies.State() - -subgraphs = GraphStreamTopologies.SubGraphsNumber() -i = 1 -while i <= subgraphs : - nodes = GraphStreamTopologies.SubGraphsNodes( i ) - j = 0 - while j < len(nodes) : - print 'SubGraph',i,nodes[j].Name() - j = j + 1 - i = i + 1 - - -substreamgraphs = GraphStreamTopologies.SubStreamGraphsNumber() -i = 1 -while i <= substreamgraphs : - nodes = GraphStreamTopologies.SubStreamGraphsNodes( i ) - j = 0 - while j < len(nodes) : - print 'SubStreamGraph',i,nodes[j].Name() - j = j + 1 - i = i + 1 - - -GraphStreamTopologies.Export( '/tmp/GraphStreamTopologies.xml' ) - -GraphStreamTopologies = StreamGraph( '/tmp/GraphStreamTopologies.xml' ) - -GraphStreamTopologies.PrintPorts() - -GraphStreamTopologies.Run() -GraphStreamTopologies.DoneW() -GraphStreamTopologies.State() - -subgraphs = GraphStreamTopologies.SubGraphsNumber() -i = 1 -while i <= subgraphs : - nodes = GraphStreamTopologies.SubGraphsNodes( i ) - j = 0 - while j < len(nodes) : - print 'SubGraph',i,nodes[j].Name() - j = j + 1 - i = i + 1 - - -substreamgraphs = GraphStreamTopologies.SubStreamGraphsNumber() -i = 1 -while i <= substreamgraphs : - nodes = GraphStreamTopologies.SubStreamGraphsNodes( i ) - j = 0 - while j < len(nodes) : - print 'SubStreamGraph',i,nodes[j].Name() - j = j + 1 - i = i + 1 - diff --git a/Superv/Python/GraphStreamTopology.py b/Superv/Python/GraphStreamTopology.py deleted file mode 100644 index 56951b2..0000000 --- a/Superv/Python/GraphStreamTopology.py +++ /dev/null @@ -1,265 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphStreamTopology -# -from SuperV import * -# Graph creation -GraphStreamTopology = StreamGraph( 'GraphStreamTopology' ) -GraphStreamTopology.SetStreamParams( 300 , SUPERV.WithoutTrace , 0 ) -GraphStreamTopology.SetName( 'GraphStreamTopology' ) -GraphStreamTopology.SetAuthor( 'JR' ) -GraphStreamTopology.SetComment( 'Test of SubStreamGraphs of a StreamGraph' ) -GraphStreamTopology.Coords( 0 , 0 ) - -# Creation of Factory Nodes - -# Creation of InLine Nodes -PyNode_A_1 = [] -PyNode_A_1.append( 'def Node_A_1() : ' ) -PyNode_A_1.append( ' return 1 ' ) -Node_A_1 = GraphStreamTopology.INode( 'Node_A_1' , PyNode_A_1 ) -Node_A_1.SetName( 'Node_A_1' ) -Node_A_1.SetAuthor( '' ) -Node_A_1.SetComment( 'Python function' ) -Node_A_1.Coords( 32 , 65 ) -INode_A_1Gate = Node_A_1.GetInPort( 'Gate' ) -ONode_A_1a_1 = Node_A_1.OutPort( 'a_1' , 'long' ) -ONode_A_1Gate = Node_A_1.GetOutPort( 'Gate' ) -INode_A_1istream_A_1_1 = Node_A_1.InStreamPort( 'istream_A_1_1' , SALOME_ModuleCatalog.DATASTREAM_INTEGER , SALOME_ModuleCatalog.DATASTREAM_TEMPORAL ) -INode_A_1istream_A_1_1.SetParams( SUPERV.TI , SUPERV.L1 , SUPERV.EXTRANULL ) -INode_A_1istream_A_1_2 = Node_A_1.InStreamPort( 'istream_A_1_2' , SALOME_ModuleCatalog.DATASTREAM_INTEGER , SALOME_ModuleCatalog.DATASTREAM_TEMPORAL ) -INode_A_1istream_A_1_2.SetParams( SUPERV.TI , SUPERV.L1 , SUPERV.EXTRANULL ) -INode_A_1istream_A_1_3 = Node_A_1.InStreamPort( 'istream_A_1_3' , SALOME_ModuleCatalog.DATASTREAM_INTEGER , SALOME_ModuleCatalog.DATASTREAM_TEMPORAL ) -INode_A_1istream_A_1_3.SetParams( SUPERV.TI , SUPERV.L1 , SUPERV.EXTRANULL ) - -PyNode_A_2 = [] -PyNode_A_2.append( 'def Node_A_2() : ' ) -PyNode_A_2.append( ' return 1 ' ) -Node_A_2 = GraphStreamTopology.INode( 'Node_A_2' , PyNode_A_2 ) -Node_A_2.SetName( 'Node_A_2' ) -Node_A_2.SetAuthor( '' ) -Node_A_2.SetComment( 'Python function' ) -Node_A_2.Coords( 31 , 336 ) -INode_A_2Gate = Node_A_2.GetInPort( 'Gate' ) -ONode_A_2a_2 = Node_A_2.OutPort( 'a_2' , 'long' ) -ONode_A_2Gate = Node_A_2.GetOutPort( 'Gate' ) -INode_A_2istream_A_2_1 = Node_A_2.InStreamPort( 'istream_A_2_1' , SALOME_ModuleCatalog.DATASTREAM_INTEGER , SALOME_ModuleCatalog.DATASTREAM_TEMPORAL ) -INode_A_2istream_A_2_1.SetParams( SUPERV.TI , SUPERV.L1 , SUPERV.EXTRANULL ) -ONode_A_2ostream_A_2_1 = Node_A_2.OutStreamPort( 'ostream_A_2_1' , SALOME_ModuleCatalog.DATASTREAM_INTEGER , SALOME_ModuleCatalog.DATASTREAM_TEMPORAL ) -ONode_A_2ostream_A_2_1.SetNumberOfValues( 0 ) - -PyNode_B_1 = [] -PyNode_B_1.append( 'def Node_B_1( n ) : ' ) -PyNode_B_1.append( ' return n ' ) -Node_B_1 = GraphStreamTopology.INode( 'Node_B_1' , PyNode_B_1 ) -Node_B_1.SetName( 'Node_B_1' ) -Node_B_1.SetAuthor( '' ) -Node_B_1.SetComment( 'Python function' ) -Node_B_1.Coords( 254 , 64 ) -INode_B_1b_1 = Node_B_1.InPort( 'b_1' , 'long' ) -INode_B_1Gate = Node_B_1.GetInPort( 'Gate' ) -ONode_B_1b_1 = Node_B_1.OutPort( 'b_1' , 'long' ) -ONode_B_1Gate = Node_B_1.GetOutPort( 'Gate' ) -INode_B_1istream_B_1_1 = Node_B_1.InStreamPort( 'istream_B_1_1' , SALOME_ModuleCatalog.DATASTREAM_INTEGER , SALOME_ModuleCatalog.DATASTREAM_TEMPORAL ) -INode_B_1istream_B_1_1.SetParams( SUPERV.TI , SUPERV.L1 , SUPERV.EXTRANULL ) - -PyNode_B_2 = [] -PyNode_B_2.append( 'def Node_B_2( n ) : ' ) -PyNode_B_2.append( ' return n ' ) -Node_B_2 = GraphStreamTopology.INode( 'Node_B_2' , PyNode_B_2 ) -Node_B_2.SetName( 'Node_B_2' ) -Node_B_2.SetAuthor( '' ) -Node_B_2.SetComment( 'Python function' ) -Node_B_2.Coords( 255 , 336 ) -INode_B_2b_2 = Node_B_2.InPort( 'b_2' , 'long' ) -INode_B_2Gate = Node_B_2.GetInPort( 'Gate' ) -ONode_B_2b_2 = Node_B_2.OutPort( 'b_2' , 'long' ) -ONode_B_2Gate = Node_B_2.GetOutPort( 'Gate' ) -INode_B_2istream_B_2_1 = Node_B_2.InStreamPort( 'istream_B_2_1' , SALOME_ModuleCatalog.DATASTREAM_INTEGER , SALOME_ModuleCatalog.DATASTREAM_TEMPORAL ) -INode_B_2istream_B_2_1.SetParams( SUPERV.TI , SUPERV.L1 , SUPERV.EXTRANULL ) -ONode_B_2ostream_B_2_1 = Node_B_2.OutStreamPort( 'ostream_B_2_1' , SALOME_ModuleCatalog.DATASTREAM_INTEGER , SALOME_ModuleCatalog.DATASTREAM_TEMPORAL ) -ONode_B_2ostream_B_2_1.SetNumberOfValues( 0 ) -ONode_B_2ostream_B_2_2 = Node_B_2.OutStreamPort( 'ostream_B_2_2' , SALOME_ModuleCatalog.DATASTREAM_INTEGER , SALOME_ModuleCatalog.DATASTREAM_TEMPORAL ) -ONode_B_2ostream_B_2_2.SetNumberOfValues( 0 ) - -PyNode_C_1 = [] -PyNode_C_1.append( 'def Node_C_1( n ) : ' ) -PyNode_C_1.append( ' return ' ) -Node_C_1 = GraphStreamTopology.INode( 'Node_C_1' , PyNode_C_1 ) -Node_C_1.SetName( 'Node_C_1' ) -Node_C_1.SetAuthor( '' ) -Node_C_1.SetComment( 'Python function' ) -Node_C_1.Coords( 478 , 63 ) -INode_C_1c_1 = Node_C_1.InPort( 'c_1' , 'long' ) -INode_C_1Gate = Node_C_1.GetInPort( 'Gate' ) -ONode_C_1Gate = Node_C_1.GetOutPort( 'Gate' ) -ONode_C_1ostream_C_1_1 = Node_C_1.OutStreamPort( 'ostream_C_1_1' , SALOME_ModuleCatalog.DATASTREAM_INTEGER , SALOME_ModuleCatalog.DATASTREAM_TEMPORAL ) -ONode_C_1ostream_C_1_1.SetNumberOfValues( 0 ) - -PyNode_C_2 = [] -PyNode_C_2.append( 'def Node_C_2( n ) : ' ) -PyNode_C_2.append( ' return n ' ) -Node_C_2 = GraphStreamTopology.INode( 'Node_C_2' , PyNode_C_2 ) -Node_C_2.SetName( 'Node_C_2' ) -Node_C_2.SetAuthor( '' ) -Node_C_2.SetComment( 'Python function' ) -Node_C_2.Coords( 477 , 337 ) -INode_C_2c_2 = Node_C_2.InPort( 'c_2' , 'long' ) -INode_C_2Gate = Node_C_2.GetInPort( 'Gate' ) -ONode_C_2c_2 = Node_C_2.OutPort( 'c_2' , 'long' ) -ONode_C_2Gate = Node_C_2.GetOutPort( 'Gate' ) -INode_C_2istream_C_2_1 = Node_C_2.InStreamPort( 'istream_C_2_1' , SALOME_ModuleCatalog.DATASTREAM_INTEGER , SALOME_ModuleCatalog.DATASTREAM_TEMPORAL ) -INode_C_2istream_C_2_1.SetParams( SUPERV.TI , SUPERV.L1 , SUPERV.EXTRANULL ) - -PyNode_D_1 = [] -PyNode_D_1.append( 'def Node_D_1( n ) : ' ) -PyNode_D_1.append( ' return ' ) -Node_D_1 = GraphStreamTopology.INode( 'Node_D_1' , PyNode_D_1 ) -Node_D_1.SetName( 'Node_D_1' ) -Node_D_1.SetAuthor( '' ) -Node_D_1.SetComment( 'Python function' ) -Node_D_1.Coords( 702 , 336 ) -INode_D_1d_1 = Node_D_1.InPort( 'd_1' , 'long' ) -INode_D_1Gate = Node_D_1.GetInPort( 'Gate' ) -ONode_D_1Gate = Node_D_1.GetOutPort( 'Gate' ) -ONode_D_1ostream_D_1_1 = Node_D_1.OutStreamPort( 'ostream_D_1_1' , SALOME_ModuleCatalog.DATASTREAM_INTEGER , SALOME_ModuleCatalog.DATASTREAM_TEMPORAL ) -ONode_D_1ostream_D_1_1.SetNumberOfValues( 0 ) - -# Creation of Links -LNode_A_1a_1Node_B_1b_1 = GraphStreamTopology.Link( ONode_A_1a_1 , INode_B_1b_1 ) - -LNode_A_2a_2Node_B_2b_2 = GraphStreamTopology.Link( ONode_A_2a_2 , INode_B_2b_2 ) - -LNode_A_2ostream_A_2_1Node_A_1istream_A_1_1 = GraphStreamTopology.StreamLink( ONode_A_2ostream_A_2_1 , INode_A_1istream_A_1_1 ) -LNode_A_2ostream_A_2_1Node_A_1istream_A_1_1.AddCoord( 1 , 14 , 162 ) -LNode_A_2ostream_A_2_1Node_A_1istream_A_1_1.AddCoord( 2 , 13 , 37 ) -LNode_A_2ostream_A_2_1Node_A_1istream_A_1_1.AddCoord( 3 , 211 , 36 ) -LNode_A_2ostream_A_2_1Node_A_1istream_A_1_1.AddCoord( 4 , 210 , 435 ) - -LNode_B_1b_1Node_C_1c_1 = GraphStreamTopology.Link( ONode_B_1b_1 , INode_C_1c_1 ) - -LNode_B_2b_2Node_C_2c_2 = GraphStreamTopology.Link( ONode_B_2b_2 , INode_C_2c_2 ) - -LNode_B_2ostream_B_2_1Node_A_1istream_A_1_2 = GraphStreamTopology.StreamLink( ONode_B_2ostream_B_2_1 , INode_A_1istream_A_1_2 ) -LNode_B_2ostream_B_2_1Node_A_1istream_A_1_2.AddCoord( 1 , 8 , 195 ) -LNode_B_2ostream_B_2_1Node_A_1istream_A_1_2.AddCoord( 2 , 7 , 324 ) -LNode_B_2ostream_B_2_1Node_A_1istream_A_1_2.AddCoord( 3 , 443 , 323 ) -LNode_B_2ostream_B_2_1Node_A_1istream_A_1_2.AddCoord( 4 , 442 , 434 ) - -LNode_B_2ostream_B_2_2Node_A_2istream_A_2_1 = GraphStreamTopology.StreamLink( ONode_B_2ostream_B_2_2 , INode_A_2istream_A_2_1 ) -LNode_B_2ostream_B_2_2Node_A_2istream_A_2_1.AddCoord( 1 , 16 , 433 ) -LNode_B_2ostream_B_2_2Node_A_2istream_A_2_1.AddCoord( 2 , 15 , 583 ) -LNode_B_2ostream_B_2_2Node_A_2istream_A_2_1.AddCoord( 3 , 434 , 584 ) -LNode_B_2ostream_B_2_2Node_A_2istream_A_2_1.AddCoord( 4 , 434 , 467 ) - -LNode_C_1ostream_C_1_1Node_A_1istream_A_1_3 = GraphStreamTopology.StreamLink( ONode_C_1ostream_C_1_1 , INode_A_1istream_A_1_3 ) -LNode_C_1ostream_C_1_1Node_A_1istream_A_1_3.AddCoord( 1 , 21 , 226 ) -LNode_C_1ostream_C_1_1Node_A_1istream_A_1_3.AddCoord( 2 , 20 , 296 ) -LNode_C_1ostream_C_1_1Node_A_1istream_A_1_3.AddCoord( 3 , 663 , 295 ) -LNode_C_1ostream_C_1_1Node_A_1istream_A_1_3.AddCoord( 4 , 662 , 161 ) - -LNode_C_2c_2Node_D_1d_1 = GraphStreamTopology.Link( ONode_C_2c_2 , INode_D_1d_1 ) - -LNode_D_1ostream_D_1_1Node_B_2istream_B_2_1 = GraphStreamTopology.StreamLink( ONode_D_1ostream_D_1_1 , INode_B_2istream_B_2_1 ) -LNode_D_1ostream_D_1_1Node_B_2istream_B_2_1.AddCoord( 1 , 232 , 433 ) -LNode_D_1ostream_D_1_1Node_B_2istream_B_2_1.AddCoord( 2 , 231 , 553 ) -LNode_D_1ostream_D_1_1Node_B_2istream_B_2_1.AddCoord( 3 , 903 , 553 ) -LNode_D_1ostream_D_1_1Node_B_2istream_B_2_1.AddCoord( 4 , 902 , 434 ) - -LNode_D_1ostream_D_1_1Node_C_2istream_C_2_1 = GraphStreamTopology.StreamLink( ONode_D_1ostream_D_1_1 , INode_C_2istream_C_2_1 ) -LNode_D_1ostream_D_1_1Node_C_2istream_C_2_1.AddCoord( 1 , 461 , 434 ) -LNode_D_1ostream_D_1_1Node_C_2istream_C_2_1.AddCoord( 2 , 461 , 524 ) -LNode_D_1ostream_D_1_1Node_C_2istream_C_2_1.AddCoord( 3 , 889 , 525 ) -LNode_D_1ostream_D_1_1Node_C_2istream_C_2_1.AddCoord( 4 , 888 , 434 ) - -LNode_D_1ostream_D_1_1Node_B_1istream_B_1_1 = GraphStreamTopology.StreamLink( ONode_D_1ostream_D_1_1 , INode_B_1istream_B_1_1 ) -LNode_D_1ostream_D_1_1Node_B_1istream_B_1_1.AddCoord( 1 , 236 , 162 ) -LNode_D_1ostream_D_1_1Node_B_1istream_B_1_1.AddCoord( 2 , 236 , 249 ) -LNode_D_1ostream_D_1_1Node_B_1istream_B_1_1.AddCoord( 3 , 887 , 249 ) -LNode_D_1ostream_D_1_1Node_B_1istream_B_1_1.AddCoord( 4 , 888 , 432 ) - -# Output Ports of the graph - - - - -GraphStreamTopology.Run() -GraphStreamTopology.DoneW() -print GraphStreamTopology.State() - -GraphStreamTopology.PrintPorts() - -subgraphs = GraphStreamTopology.SubGraphsNumber() -i = 1 -while i <= subgraphs : - nodes = GraphStreamTopology.SubGraphsNodes( i ) - j = 0 - while j < len(nodes) : - print 'SubGraph',i,nodes[j].Name() - j = j + 1 - i = i + 1 - - -substreamgraphs = GraphStreamTopology.SubStreamGraphsNumber() -i = 1 -while i <= substreamgraphs : - nodes = GraphStreamTopology.SubStreamGraphsNodes( i ) - j = 0 - while j < len(nodes) : - print 'SubStreamGraph',i,nodes[j].Name() - j = j + 1 - i = i + 1 - - - -GraphStreamTopology.Export( '/tmp/GraphStreamTopology.xml' ) - -GraphStreamTopology = StreamGraph( '/tmp/GraphStreamTopology.xml' ) - -GraphStreamTopology.PrintPorts() - -GraphStreamTopology.Run() -GraphStreamTopology.DoneW() -GraphStreamTopology.State() - -subgraphs = GraphStreamTopology.SubGraphsNumber() -i = 1 -while i <= subgraphs : - nodes = GraphStreamTopology.SubGraphsNodes( i ) - j = 0 - while j < len(nodes) : - print 'SubGraph',i,nodes[j].Name() - j = j + 1 - i = i + 1 - - -substreamgraphs = GraphStreamTopology.SubStreamGraphsNumber() -i = 1 -while i <= substreamgraphs : - nodes = GraphStreamTopology.SubStreamGraphsNodes( i ) - j = 0 - while j < len(nodes) : - print 'SubStreamGraph',i,nodes[j].Name() - j = j + 1 - i = i + 1 - diff --git a/Superv/Python/GraphStreams.py b/Superv/Python/GraphStreams.py deleted file mode 100644 index 407e7c3..0000000 --- a/Superv/Python/GraphStreams.py +++ /dev/null @@ -1,425 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphStreams -# -from SuperV import * -# Graph creation -GraphStreams = StreamGraph( 'GraphStreams' ) -GraphStreams.SetStreamParams( 1000 , SUPERV.SummaryTrace , 1.5 ) -GraphStreams.SetName( 'GraphStreams' ) -GraphStreams.SetAuthor( 'JR' ) -GraphStreams.SetComment( 'Graph with DataStreamPorts CEA/EDF : Calcium' ) -GraphStreams.Coords( 0 , 0 ) - -# Creation of Factory Nodes - -Add = GraphStreams.FNode( 'DataStreamFactory' , 'DataStreamFactory' , 'Add' ) -Add.SetName( 'Add' ) -Add.SetAuthor( '' ) -Add.SetContainer( 'FactoryServer' ) -Add.SetComment( 'Add from DataStreamFactory' ) -Add.Coords( 255 , 171 ) -IAddx = Add.GetInPort( 'x' ) -IAddy = Add.GetInPort( 'y' ) -IAddGate = Add.GetInPort( 'Gate' ) -OAddz = Add.GetOutPort( 'z' ) -OAddGate = Add.GetOutPort( 'Gate' ) -IAddistream = Add.GetInStreamPort( 'istream' ) -IAddistream.SetParams( SUPERV.SCHENULL , SUPERV.INTERNULL , SUPERV.EXTRANULL ) -OAddostream = Add.GetOutStreamPort( 'ostream' ) -OAddostream.SetNumberOfValues( 0 ) -OAddOStream = Add.GetOutStreamPort( 'OStream' ) -OAddOStream.SetNumberOfValues( 10 ) - -Sub = GraphStreams.FNode( 'DataStreamFactory' , 'DataStreamFactory' , 'Sub' ) -Sub.SetName( 'Sub' ) -Sub.SetAuthor( '' ) -Sub.SetContainer( 'FactoryServer' ) -Sub.SetComment( 'Sub from DataStreamFactory' ) -Sub.Coords( 519 , 48 ) -ISubx = Sub.GetInPort( 'x' ) -ISuby = Sub.GetInPort( 'y' ) -ISubGate = Sub.GetInPort( 'Gate' ) -OSubz = Sub.GetOutPort( 'z' ) -OSubGate = Sub.GetOutPort( 'Gate' ) -ISubistream = Sub.GetInStreamPort( 'istream' ) -ISubistream.SetParams( SUPERV.SCHENULL , SUPERV.INTERNULL , SUPERV.EXTRANULL ) -ISubIstream = Sub.GetInStreamPort( 'Istream' ) -ISubIstream.SetParams( SUPERV.SCHENULL , SUPERV.INTERNULL , SUPERV.EXTRANULL ) - -Mul = GraphStreams.FNode( 'DataStreamFactory' , 'DataStreamFactory' , 'Mul' ) -Mul.SetName( 'Mul' ) -Mul.SetAuthor( '' ) -Mul.SetContainer( 'FactoryServer' ) -Mul.SetComment( 'Mul from DataStreamFactory' ) -Mul.Coords( 724 , 142 ) -IMulx = Mul.GetInPort( 'x' ) -IMuly = Mul.GetInPort( 'y' ) -IMulGate = Mul.GetInPort( 'Gate' ) -OMulz = Mul.GetOutPort( 'z' ) -OMulGate = Mul.GetOutPort( 'Gate' ) - -Div = GraphStreams.FNode( 'DataStreamFactory' , 'DataStreamFactory' , 'Div' ) -Div.SetName( 'Div' ) -Div.SetAuthor( '' ) -Div.SetContainer( 'FactoryServer' ) -Div.SetComment( 'Div from DataStreamFactory' ) -Div.Coords( 935 , 48 ) -IDivx = Div.GetInPort( 'x' ) -IDivy = Div.GetInPort( 'y' ) -IDivGate = Div.GetInPort( 'Gate' ) -ODivz = Div.GetOutPort( 'z' ) -ODivGate = Div.GetOutPort( 'Gate' ) -ODivostream = Div.GetOutStreamPort( 'ostream' ) -ODivostream.SetNumberOfValues( 0 ) - -Add_1 = GraphStreams.FNode( 'DataStreamFactory' , 'DataStreamFactory' , 'Add' ) -Add_1.SetName( 'Add_1' ) -Add_1.SetAuthor( '' ) -Add_1.SetContainer( 'localhost/FactoryServer' ) -Add_1.SetComment( 'Add from DataStreamFactory' ) -Add_1.Coords( 252 , 499 ) -IAdd_1x = Add_1.GetInPort( 'x' ) -IAdd_1y = Add_1.GetInPort( 'y' ) -IAdd_1Gate = Add_1.GetInPort( 'Gate' ) -OAdd_1z = Add_1.GetOutPort( 'z' ) -OAdd_1Gate = Add_1.GetOutPort( 'Gate' ) -IAdd_1istream = Add_1.GetInStreamPort( 'istream' ) -IAdd_1istream.SetParams( SUPERV.SCHENULL , SUPERV.INTERNULL , SUPERV.EXTRANULL ) -OAdd_1ostream = Add_1.GetOutStreamPort( 'ostream' ) -OAdd_1ostream.SetNumberOfValues( 0 ) -OAdd_1OStream = Add_1.GetOutStreamPort( 'OStream' ) -OAdd_1OStream.SetNumberOfValues( 0 ) - -Sub_1 = GraphStreams.FNode( 'DataStreamFactory' , 'DataStreamFactory' , 'Sub' ) -Sub_1.SetName( 'Sub_1' ) -Sub_1.SetAuthor( '' ) -Sub_1.SetContainer( 'localhost/FactoryServer' ) -Sub_1.SetComment( 'Sub from DataStreamFactory' ) -Sub_1.Coords( 516 , 385 ) -ISub_1x = Sub_1.GetInPort( 'x' ) -ISub_1y = Sub_1.GetInPort( 'y' ) -ISub_1Gate = Sub_1.GetInPort( 'Gate' ) -OSub_1z = Sub_1.GetOutPort( 'z' ) -OSub_1Gate = Sub_1.GetOutPort( 'Gate' ) -ISub_1istream = Sub_1.GetInStreamPort( 'istream' ) -ISub_1istream.SetParams( SUPERV.SCHENULL , SUPERV.INTERNULL , SUPERV.EXTRANULL ) -ISub_1Istream = Sub_1.GetInStreamPort( 'Istream' ) -ISub_1Istream.SetParams( SUPERV.SCHENULL , SUPERV.INTERNULL , SUPERV.EXTRANULL ) - -Mul_1 = GraphStreams.FNode( 'DataStreamFactory' , 'DataStreamFactory' , 'Mul' ) -Mul_1.SetName( 'Mul_1' ) -Mul_1.SetAuthor( '' ) -Mul_1.SetContainer( 'localhost/FactoryServer' ) -Mul_1.SetComment( 'Mul from DataStreamFactory' ) -Mul_1.Coords( 731 , 487 ) -IMul_1x = Mul_1.GetInPort( 'x' ) -IMul_1y = Mul_1.GetInPort( 'y' ) -IMul_1Gate = Mul_1.GetInPort( 'Gate' ) -OMul_1z = Mul_1.GetOutPort( 'z' ) -OMul_1Gate = Mul_1.GetOutPort( 'Gate' ) - -Div_1 = GraphStreams.FNode( 'DataStreamFactory' , 'DataStreamFactory' , 'Div' ) -Div_1.SetName( 'Div_1' ) -Div_1.SetAuthor( '' ) -Div_1.SetContainer( 'localhost/FactoryServer' ) -Div_1.SetComment( 'Div from DataStreamFactory' ) -Div_1.Coords( 931 , 385 ) -IDiv_1x = Div_1.GetInPort( 'x' ) -IDiv_1y = Div_1.GetInPort( 'y' ) -IDiv_1Gate = Div_1.GetInPort( 'Gate' ) -ODiv_1z = Div_1.GetOutPort( 'z' ) -ODiv_1Gate = Div_1.GetOutPort( 'Gate' ) -ODiv_1ostream = Div_1.GetOutStreamPort( 'ostream' ) -ODiv_1ostream.SetNumberOfValues( 0 ) - -# Creation of Loop Nodes -PyLoop = [] -PyLoop.append( 'import time ' ) -PyLoop.append( 'def Init(Index,Min,Max,Incr,Z_Div,Z_Div_1,y_Add,x_Sub) : ' ) -PyLoop.append( ' if Min <= Max : ' ) -PyLoop.append( ' Index = Min ' ) -PyLoop.append( ' else : ' ) -PyLoop.append( ' Index = Max ' ) -PyLoop.append( ' time.sleep( 1 ) ' ) -PyLoop.append( ' return Index,Min,Max,Incr,Z_Div,Z_Div_1,y_Add,x_Sub ' ) -PyMoreLoop = [] -PyMoreLoop.append( 'import time ' ) -PyMoreLoop.append( 'def More(Index,Min,Max,Incr,Z_Div,Z_Div_1,y_Add,x_Sub) : ' ) -PyMoreLoop.append( ' if Index < Max : ' ) -PyMoreLoop.append( ' DoLoop = 1 ' ) -PyMoreLoop.append( ' else : ' ) -PyMoreLoop.append( ' DoLoop = 0 ' ) -PyMoreLoop.append( ' time.sleep( 1 ) ' ) -PyMoreLoop.append( ' return DoLoop,Index,Min,Max,Incr,Z_Div,Z_Div_1,y_Add,x_Sub ' ) -PyNextLoop = [] -PyNextLoop.append( 'import time ' ) -PyNextLoop.append( 'def Next(Index,Min,Max,Incr,Z_Div,Z_Div_1,y_Add,x_Sub) : ' ) -PyNextLoop.append( ' Index = Index + Incr ' ) -PyNextLoop.append( ' time.sleep( 1 ) ' ) -PyNextLoop.append( ' return Index,Min,Max,Incr,Z_Div,Z_Div_1,y_Add,x_Sub ' ) -Loop,EndLoop = GraphStreams.LNode( 'Init' , PyLoop , 'More' , PyMoreLoop , 'Next' , PyNextLoop ) -EndLoop.SetName( 'EndLoop' ) -EndLoop.SetAuthor( '' ) -EndLoop.SetComment( '' ) -EndLoop.Coords( 1158 , 393 ) -PyEndLoop = [] -EndLoop.SetPyFunction( 'EndInit' , PyEndLoop ) -ILoopInitLoop = Loop.GetInPort( 'DoLoop' ) -ILoopIndex = Loop.InPort( 'Index' , 'long' ) -ILoopMin = Loop.InPort( 'Min' , 'long' ) -ILoopMax = Loop.InPort( 'Max' , 'long' ) -ILoopIncr = Loop.InPort( 'Incr' , 'long' ) -ILoopz_Div = Loop.InPort( 'z_Div' , 'double' ) -ILoopz_Div_1 = Loop.InPort( 'z_Div_1' , 'double' ) -ILoopy_Add = Loop.InPort( 'y_Add' , 'double' ) -ILoopx_Sub = Loop.InPort( 'x_Sub' , 'double' ) -ILoopGate = Loop.GetInPort( 'Gate' ) -OLoopDoLoop = Loop.GetOutPort( 'DoLoop' ) -OLoopIndex = Loop.GetOutPort( 'Index' ) -OLoopMin = Loop.GetOutPort( 'Min' ) -OLoopMax = Loop.GetOutPort( 'Max' ) -OLoopIncr = Loop.GetOutPort( 'Incr' ) -OLoopz_Div = Loop.GetOutPort( 'z_Div' ) -OLoopz_Div_1 = Loop.GetOutPort( 'z_Div_1' ) -OLoopy_Add = Loop.GetOutPort( 'y_Add' ) -OLoopx_Sub = Loop.GetOutPort( 'x_Sub' ) -IEndLoopDoLoop = EndLoop.GetInPort( 'DoLoop' ) -IEndLoopIndex = EndLoop.GetInPort( 'Index' ) -IEndLoopMin = EndLoop.GetInPort( 'Min' ) -IEndLoopMax = EndLoop.GetInPort( 'Max' ) -IEndLoopIncr = EndLoop.GetInPort( 'Incr' ) -IEndLoopz_Div = EndLoop.GetInPort( 'z_Div' ) -IEndLoopz_Div_1 = EndLoop.GetInPort( 'z_Div_1' ) -IEndLoopy_Add = EndLoop.GetInPort( 'y_Add' ) -IEndLoopx_Sub = EndLoop.GetInPort( 'x_Sub' ) -IEndLoopGate = EndLoop.GetInPort( 'Gate' ) -OEndLoopDoLoop = EndLoop.GetOutPort( 'DoLoop' ) -OEndLoopIndex = EndLoop.GetOutPort( 'Index' ) -OEndLoopMin = EndLoop.GetOutPort( 'Min' ) -OEndLoopMax = EndLoop.GetOutPort( 'Max' ) -OEndLoopIncr = EndLoop.GetOutPort( 'Incr' ) -OEndLoopz_Div = EndLoop.GetOutPort( 'z_Div' ) -OEndLoopz_Div_1 = EndLoop.GetOutPort( 'z_Div_1' ) -OEndLoopy_Add = EndLoop.GetOutPort( 'y_Add' ) -OEndLoopx_Sub = EndLoop.GetOutPort( 'x_Sub' ) -Loop.SetName( 'Loop' ) -Loop.SetAuthor( '' ) -Loop.SetComment( '' ) -Loop.Coords( 5 , 391 ) - -# Creation of Links -LAddzSuby = GraphStreams.Link( OAddz , ISuby ) -LAddzSuby.AddCoord( 1 , 448 , 143 ) -LAddzSuby.AddCoord( 2 , 449 , 237 ) - -LAddzMuly = GraphStreams.Link( OAddz , IMuly ) -LAddzMuly.AddCoord( 1 , 708 , 237 ) -LAddzMuly.AddCoord( 2 , 708 , 270 ) -LAddzMuly.AddCoord( 3 , 449 , 270 ) -LAddzMuly.AddCoord( 4 , 448 , 238 ) - -LAddostreamSubistream = GraphStreams.StreamLink( OAddostream , ISubistream ) -LAddostreamSubistream.AddCoord( 1 , 474 , 175 ) -LAddostreamSubistream.AddCoord( 2 , 474 , 297 ) - -LAddOStreamSubIstream = GraphStreams.StreamLink( OAddOStream , ISubIstream ) -LAddOStreamSubIstream.AddCoord( 1 , 497 , 207 ) -LAddOStreamSubIstream.AddCoord( 2 , 498 , 328 ) - -LSubzMulx = GraphStreams.Link( OSubz , IMulx ) -LSubzMulx.AddCoord( 1 , 706 , 207 ) -LSubzMulx.AddCoord( 2 , 706 , 114 ) - -LSubzDivx = GraphStreams.Link( OSubz , IDivx ) - -LMulzDivy = GraphStreams.Link( OMulz , IDivy ) -LMulzDivy.AddCoord( 1 , 912 , 143 ) -LMulzDivy.AddCoord( 2 , 911 , 208 ) - -LDivzEndLoopz_Div = GraphStreams.Link( ODivz , IEndLoopz_Div ) -LDivzEndLoopz_Div.AddCoord( 1 , 1147 , 537 ) -LDivzEndLoopz_Div.AddCoord( 2 , 1148 , 113 ) - -LDivostreamAdd_1istream = GraphStreams.StreamLink( ODivostream , IAdd_1istream ) -LDivostreamAdd_1istream.AddCoord( 1 , 233 , 626 ) -LDivostreamAdd_1istream.AddCoord( 2 , 232 , 763 ) -LDivostreamAdd_1istream.AddCoord( 3 , 1126 , 763 ) -LDivostreamAdd_1istream.AddCoord( 4 , 1125 , 175 ) - -LAdd_1zSub_1y = GraphStreams.Link( OAdd_1z , ISub_1y ) -LAdd_1zSub_1y.AddCoord( 1 , 445 , 478 ) -LAdd_1zSub_1y.AddCoord( 2 , 444 , 566 ) - -LAdd_1zMul_1y = GraphStreams.Link( OAdd_1z , IMul_1y ) -LAdd_1zMul_1y.AddCoord( 1 , 703 , 582 ) -LAdd_1zMul_1y.AddCoord( 2 , 703 , 677 ) -LAdd_1zMul_1y.AddCoord( 3 , 445 , 678 ) -LAdd_1zMul_1y.AddCoord( 4 , 444 , 567 ) - -LAdd_1ostreamSub_1istream = GraphStreams.StreamLink( OAdd_1ostream , ISub_1istream ) -LAdd_1ostreamSub_1istream.AddCoord( 1 , 473 , 511 ) -LAdd_1ostreamSub_1istream.AddCoord( 2 , 473 , 627 ) - -LAdd_1OStreamSub_1Istream = GraphStreams.StreamLink( OAdd_1OStream , ISub_1Istream ) -LAdd_1OStreamSub_1Istream.AddCoord( 1 , 498 , 543 ) -LAdd_1OStreamSub_1Istream.AddCoord( 2 , 497 , 658 ) - -LSub_1zMul_1x = GraphStreams.Link( OSub_1z , IMul_1x ) -LSub_1zMul_1x.AddCoord( 1 , 708 , 552 ) -LSub_1zMul_1x.AddCoord( 2 , 707 , 450 ) - -LSub_1zDiv_1x = GraphStreams.Link( OSub_1z , IDiv_1x ) - -LMul_1zDiv_1y = GraphStreams.Link( OMul_1z , IDiv_1y ) -LMul_1zDiv_1y.AddCoord( 1 , 913 , 479 ) -LMul_1zDiv_1y.AddCoord( 2 , 913 , 551 ) - -LDiv_1zEndLoopz_Div_1 = GraphStreams.Link( ODiv_1z , IEndLoopz_Div_1 ) -LDiv_1zEndLoopz_Div_1.AddCoord( 1 , 1138 , 567 ) -LDiv_1zEndLoopz_Div_1.AddCoord( 2 , 1138 , 449 ) - -LDiv_1ostreamAddistream = GraphStreams.StreamLink( ODiv_1ostream , IAddistream ) -LDiv_1ostreamAddistream.AddCoord( 1 , 229 , 297 ) -LDiv_1ostreamAddistream.AddCoord( 2 , 229 , 426 ) -LDiv_1ostreamAddistream.AddCoord( 3 , 475 , 425 ) -LDiv_1ostreamAddistream.AddCoord( 4 , 475 , 352 ) -LDiv_1ostreamAddistream.AddCoord( 5 , 1110 , 352 ) -LDiv_1ostreamAddistream.AddCoord( 6 , 1111 , 512 ) - -LLoopIndexEndLoopIndex = GraphStreams.Link( OLoopIndex , IEndLoopIndex ) - -LLoopIndexAddx = GraphStreams.Link( OLoopIndex , IAddx ) -LLoopIndexAddx.AddCoord( 1 , 201 , 236 ) -LLoopIndexAddx.AddCoord( 2 , 202 , 420 ) - -LLoopIndexAdd_1x = GraphStreams.Link( OLoopIndex , IAdd_1x ) -LLoopIndexAdd_1x.AddCoord( 1 , 201 , 562 ) -LLoopIndexAdd_1x.AddCoord( 2 , 202 , 422 ) - -LLoopMinEndLoopMin = GraphStreams.Link( OLoopMin , IEndLoopMin ) - -LLoopMaxEndLoopMax = GraphStreams.Link( OLoopMax , IEndLoopMax ) - -LLoopIncrEndLoopIncr = GraphStreams.Link( OLoopIncr , IEndLoopIncr ) - -LLoopy_AddEndLoopy_Add = GraphStreams.Link( OLoopy_Add , IEndLoopy_Add ) - -LLoopy_AddAddy = GraphStreams.Link( OLoopy_Add , IAddy ) -LLoopy_AddAddy.AddCoord( 1 , 183 , 266 ) -LLoopy_AddAddy.AddCoord( 2 , 182 , 593 ) - -LLoopy_AddAdd_1y = GraphStreams.Link( OLoopy_Add , IAdd_1y ) - -LLoopx_SubEndLoopx_Sub = GraphStreams.Link( OLoopx_Sub , IEndLoopx_Sub ) - -LLoopx_SubSubx = GraphStreams.Link( OLoopx_Sub , ISubx ) -LLoopx_SubSubx.AddCoord( 1 , 167 , 113 ) -LLoopx_SubSubx.AddCoord( 2 , 167 , 625 ) - -LLoopx_SubSub_1x = GraphStreams.Link( OLoopx_Sub , ISub_1x ) -LLoopx_SubSub_1x.AddCoord( 1 , 167 , 450 ) -LLoopx_SubSub_1x.AddCoord( 2 , 168 , 624 ) - -# Input datas -ILoopIndex.Input( 0 ) -ILoopMin.Input( 1 ) -ILoopMax.Input( 10 ) -ILoopIncr.Input( 1 ) -ILoopz_Div.Input( 0 ) -ILoopz_Div_1.Input( 0 ) -ILoopy_Add.Input( 4.5 ) -ILoopx_Sub.Input( 1.5 ) - -# Output Ports of the graph -#OLoopz_Div = Loop.GetOutPort( 'z_Div' ) -#OLoopz_Div_1 = Loop.GetOutPort( 'z_Div_1' ) -#OEndLoopIndex = EndLoop.GetOutPort( 'Index' ) -#OEndLoopMin = EndLoop.GetOutPort( 'Min' ) -#OEndLoopMax = EndLoop.GetOutPort( 'Max' ) -#OEndLoopIncr = EndLoop.GetOutPort( 'Incr' ) -#OEndLoopz_Div = EndLoop.GetOutPort( 'z_Div' ) -#OEndLoopz_Div_1 = EndLoop.GetOutPort( 'z_Div_1' ) -#OEndLoopy_Add = EndLoop.GetOutPort( 'y_Add' ) -#OEndLoopx_Sub = EndLoop.GetOutPort( 'x_Sub' ) - - -GraphStreams.Run() -GraphStreams.DoneW() -GraphStreams.State() - -GraphStreams.PrintPorts() - -subgraphs = GraphStreams.SubGraphsNumber() -i = 1 -while i <= subgraphs : - nodes = GraphStreams.SubGraphsNodes( i ) - j = 0 - while j < len(nodes) : - print 'SubGraph',i,nodes[j].Name() - j = j + 1 - i = i + 1 - - -substreamgraphs = GraphStreams.SubStreamGraphsNumber() -i = 1 -while i <= substreamgraphs : - nodes = GraphStreams.SubStreamGraphsNodes( i ) - j = 0 - while j < len(nodes) : - print 'SubStreamGraph',i,nodes[j].Name() - j = j + 1 - i = i + 1 - - -GraphStreams.Export('/tmp/GraphStreams.xml') - -GraphStreams = StreamGraph( '/tmp/GraphStreams.xml' ) -GraphStreams.Run() -GraphStreams.DoneW() -GraphStreams.PrintPorts() -print GraphStreams.State() - -GraphStreams.IsExecutable() - -subgraphs = GraphStreams.SubGraphsNumber() -i = 1 -while i <= subgraphs : - nodes = GraphStreams.SubGraphsNodes( i ) - j = 0 - while j < len(nodes) : - print 'SubGraph',i,nodes[j].Name() - j = j + 1 - i = i + 1 - - -substreamgraphs = GraphStreams.SubStreamGraphsNumber() -i = 1 -while i <= substreamgraphs : - nodes = GraphStreams.SubStreamGraphsNodes( i ) - j = 0 - while j < len(nodes) : - print 'SubStreamGraph',i,nodes[j].Name() - j = j + 1 - i = i + 1 - diff --git a/Superv/Python/GraphStreamsXmlTest.py b/Superv/Python/GraphStreamsXmlTest.py deleted file mode 100644 index 9319f43..0000000 --- a/Superv/Python/GraphStreamsXmlTest.py +++ /dev/null @@ -1,134 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# -from SuperV import * - -FlowGraph = Graph( 'FlowGraph' ) -Add = FlowGraph.FNode( 'AddComponent' , 'AddComponent' , 'Add' ) - -Sub = FlowGraph.FNode( 'SubComponent' , 'SubComponent' , 'Sub' ) -Addz = Add.GetOutStreamPort( 'z' ) -if Addz != None : - print "Error : GetOutStreamPort of a FlowPort in a FlowGraph" -else : - print 'None : Ok' - -Addz = Add.Port( 'z' ) -try : - Suby = FlowGraph.StreamLink( Addz , Sub.Port( 'y' ) ) - print "Error : creation of a StreamLink in a FlowGraph" -except : - print "Ok" - -links = FlowGraph.StreamLinks() -if len(links) != 0 : - print "Error : StreamLinks in a FlowGraph" - -ports = FlowGraph.StreamPorts() -if len( ports ) != 0 : - print "Error : StreamPorts in a FlowGraph" - -links = Add.StreamLinks() -if len(links) != 0 : - print "Error : StreamLinks in a FlowNode" - -ports = Add.StreamPorts() -if len( ports ) != 0 : - print "Error : StreamPorts in a FlowNode" - -try : - FlowGraph.SetStreamParams( 100 , SUPERV.WithoutTrace , 10. ) -except : - print "No SetStreamParams Ok" - -try : - Timeout,DataStreamTrace,DeltaTime = FlowGraph.StreamParams() -except : - print "No StreamParams Ok" - - - - -from SuperV import * - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphStreams.xml' -GraphStreams = StreamGraph( anXmlFile ) - -GraphStreams.PrintPorts() -GraphStreams.PrintLinks() - -exec GraphStreams.ListNodes() -Add.PrintPorts() -Add.PrintLinks() - -exec Loop.ListPorts() -ILoopIndex.Print() -OLoopIndex.Print() -exec EndLoop.ListPorts() -IEndLoopGate.Print() -OEndLoopx_Sub.Print() -exec Add.ListPorts() -IAddx.Print() -IAddistream.Print() -OAddOStream.Print() -exec Sub.ListPorts() -exec Mul.ListPorts() -exec Div.ListPorts() -exec Add_1.ListPorts() -exec Sub_1.ListPorts() -exec Mul_1.ListPorts() -exec Div_1.ListPorts() -exec Add.ListLinks() -LLoopIndexAddx.Print() -LAddzMuly.Print() -LDiv_1ostreamAddistream.Print() -LAddOStreamSubIstream.Print() - - -GraphStreams.IsExecutable() - -GraphStreams.Run() -GraphStreams.DoneW() -GraphStreams.PrintPorts() - - - -subgraphs = GraphStreams.SubGraphsNumber() -i = 1 -while i <= subgraphs : - nodes = GraphStreams.SubGraphsNodes( i ) - j = 0 - while j < len(nodes) : - print 'SubGraph',i,nodes[j].Name() - j = j + 1 - i = i + 1 - - -substreamgraphs = GraphStreams.SubStreamGraphsNumber() -i = 1 -while i <= substreamgraphs : - nodes = GraphStreams.SubStreamGraphsNodes( i ) - j = 0 - while j < len(nodes) : - print 'SubStreamGraph',i,nodes[j].Name() - j = j + 1 - i = i + 1 - diff --git a/Superv/Python/GraphSub.py b/Superv/Python/GraphSub.py deleted file mode 100644 index 4f89379..0000000 --- a/Superv/Python/GraphSub.py +++ /dev/null @@ -1,58 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphSub -# -from SuperV import * - -# Graph creation of GraphSub -def DefGraphSub() : - GraphSub = Graph( 'GraphSub' ) - GraphSub.SetName( 'GraphSub' ) - GraphSub.SetAuthor( '' ) - GraphSub.SetComment( '' ) - GraphSub.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - Sub = GraphSub.FNode( 'SubComponent' , 'SubComponent' , 'Sub' ) - Sub.SetName( 'Sub' ) - Sub.SetAuthor( '' ) - Sub.SetContainer( 'localhost/FactoryServer' ) - Sub.SetComment( 'Sub from SubComponent' ) - Sub.Coords( 55 , 71 ) - ISubx = Sub.GetInPort( 'x' ) - ISuby = Sub.GetInPort( 'y' ) - ISubGate = Sub.GetInPort( 'Gate' ) - OSubz = Sub.GetOutPort( 'z' ) - OSubGate = Sub.GetOutPort( 'Gate' ) - - # Input Ports of the graph - #ISubx = Sub.GetInPort( 'x' ) - #ISuby = Sub.GetInPort( 'y' ) - - # Output Ports of the graph - #OSubz = Sub.GetOutPort( 'z' ) - return GraphSub - - -GraphSub = DefGraphSub() diff --git a/Superv/Python/GraphSwitch.py b/Superv/Python/GraphSwitch.py deleted file mode 100644 index 60d9150..0000000 --- a/Superv/Python/GraphSwitch.py +++ /dev/null @@ -1,163 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphSwitch -# -from SuperV import * - -# Graph creation of GraphSwitch -def DefGraphSwitch() : - GraphSwitch = Graph( 'GraphSwitch' ) - GraphSwitch.SetName( 'GraphSwitch' ) - GraphSwitch.SetAuthor( '' ) - GraphSwitch.SetComment( '' ) - GraphSwitch.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.INode( 'IsOdd' , PyIsOdd ) - IsOdd.SetName( 'IsOdd' ) - IsOdd.SetAuthor( '' ) - IsOdd.SetComment( 'Python function' ) - IsOdd.Coords( 389 , 65 ) - IIsOdda = IsOdd.InPort( 'a' , 'long' ) - IIsOddGate = IsOdd.GetInPort( 'Gate' ) - OIsOdda = IsOdd.OutPort( 'a' , 'long' ) - OIsOddGate = IsOdd.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyInitLoopSwitch = [] - PyInitLoopSwitch.append( 'def InitLoop(Index,Min,Max) : ' ) - PyInitLoopSwitch.append( ' return Index,Min,Max ' ) - PyMoreInitLoopSwitch = [] - PyMoreInitLoopSwitch.append( 'def MoreLoop(Index,Min,Max) : ' ) - PyMoreInitLoopSwitch.append( ' if Index <= Max : ' ) - 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.LNode( 'InitLoop' , PyInitLoopSwitch , 'MoreLoop' , PyMoreInitLoopSwitch , 'NextLoop' , PyNextInitLoopSwitch ) - EndOfInitLoopSwitch.SetName( 'EndOfInitLoopSwitch' ) - EndOfInitLoopSwitch.SetAuthor( '' ) - EndOfInitLoopSwitch.SetComment( 'Compute Node' ) - EndOfInitLoopSwitch.Coords( 776 , 170 ) - 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( ' if ( a & 1 ) == 0 : ' ) - PySwitch.append( ' sleep(1) ' ) - PySwitch.append( ' return a & 1,1-(a&1),a ' ) - Switch,EndOfSwitch = GraphSwitch.SNode( 'Switch' , PySwitch ) - EndOfSwitch.SetName( 'EndOfSwitch' ) - EndOfSwitch.SetAuthor( '' ) - EndOfSwitch.SetComment( 'Compute Node' ) - EndOfSwitch.Coords( 582 , 170 ) - PyEndOfSwitch = [] - EndOfSwitch.SetPyFunction( '' , 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( 194 , 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' ) - OSwitchDefault = Switch.GetOutPort( 'Default' ) - - # Creation of Links - LIsOddaEndOfSwitcha = GraphSwitch.Link( OIsOdda , IEndOfSwitcha ) - LIsOddaEndOfSwitcha.AddCoord( 1 , 564 , 201 ) - LIsOddaEndOfSwitcha.AddCoord( 2 , 564 , 137 ) - - LInitLoopSwitchIndexSwitcha = GraphSwitch.Link( OInitLoopSwitchIndex , ISwitcha ) - - LInitLoopSwitchMinEndOfInitLoopSwitchMin = GraphSwitch.Link( OInitLoopSwitchMin , IEndOfInitLoopSwitchMin ) - - LInitLoopSwitchMaxEndOfInitLoopSwitchMax = GraphSwitch.Link( OInitLoopSwitchMax , IEndOfInitLoopSwitchMax ) - - LSwitchOddIsOddGate = GraphSwitch.Link( OSwitchOdd , IIsOddGate ) - - LSwitchaIsOdda = GraphSwitch.Link( OSwitcha , IIsOdda ) - LSwitchaIsOdda.AddCoord( 1 , 371 , 136 ) - LSwitchaIsOdda.AddCoord( 2 , 371 , 200 ) - - LSwitchDefaultEndOfSwitchDefault = GraphSwitch.Link( OSwitchDefault , IEndOfSwitchDefault ) - - LEndOfSwitchaEndOfInitLoopSwitchIndex = GraphSwitch.Link( OEndOfSwitcha , IEndOfInitLoopSwitchIndex ) - - # Input datas - IInitLoopSwitchIndex.Input( 0 ) - IInitLoopSwitchMin.Input( 0 ) - IInitLoopSwitchMax.Input( 35 ) - - # Output Ports of the graph - #OEndOfInitLoopSwitchIndex = EndOfInitLoopSwitch.GetOutPort( 'Index' ) - #OEndOfInitLoopSwitchMin = EndOfInitLoopSwitch.GetOutPort( 'Min' ) - #OEndOfInitLoopSwitchMax = EndOfInitLoopSwitch.GetOutPort( 'Max' ) - #OSwitchEven = Switch.GetOutPort( 'Even' ) - return GraphSwitch - - -GraphSwitch = DefGraphSwitch() diff --git a/Superv/Python/GraphSwitch1.py b/Superv/Python/GraphSwitch1.py deleted file mode 100755 index 6b5676b..0000000 --- a/Superv/Python/GraphSwitch1.py +++ /dev/null @@ -1,162 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphSwitch1 -# -from SuperV import * - -# Graph creation of GraphSwitch1 -def DefGraphSwitch1() : - GraphSwitch1 = Graph( 'GraphSwitch1' ) - GraphSwitch1.SetName( 'GraphSwitch1' ) - GraphSwitch1.SetAuthor( '' ) - GraphSwitch1.SetComment( '' ) - GraphSwitch1.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 (GraphSwitch1)" ' ) - PyIsOdd.append( ' sleep( 1 ) ' ) - PyIsOdd.append( ' return a ' ) - IsOdd = GraphSwitch1.INode( 'IsOdd' , PyIsOdd ) - IsOdd.SetName( 'IsOdd' ) - IsOdd.SetAuthor( '' ) - IsOdd.SetComment( 'Python function' ) - IsOdd.Coords( 408 , 34 ) - IIsOdda = IsOdd.InPort( 'a' , 'long' ) - IIsOddGate = IsOdd.GetInPort( 'Gate' ) - OIsOdda = IsOdd.OutPort( 'a' , 'long' ) - OIsOddGate = IsOdd.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyInitLoop = [] - PyInitLoop.append( 'def InitLoop(Index,Min,Max) : ' ) - PyInitLoop.append( ' return Index,Min,Max ' ) - PyMoreInitLoop = [] - PyMoreInitLoop.append( 'def MoreLoop(Index,Min,Max) : ' ) - PyMoreInitLoop.append( ' if Index <= Max : ' ) - PyMoreInitLoop.append( ' DoLoop = 1 ' ) - PyMoreInitLoop.append( ' else : ' ) - PyMoreInitLoop.append( ' DoLoop = 0 ' ) - PyMoreInitLoop.append( ' return DoLoop,Index,Min,Max ' ) - PyNextInitLoop = [] - PyNextInitLoop.append( 'def NextLoop(Index,Min,Max) : ' ) - PyNextInitLoop.append( ' Index = Index + 1 ' ) - PyNextInitLoop.append( ' return Index,Min,Max ' ) - InitLoop,EndOfInitLoop = GraphSwitch1.LNode( 'InitLoop' , PyInitLoop , 'MoreLoop' , PyMoreInitLoop , 'NextLoop' , PyNextInitLoop ) - EndOfInitLoop.SetName( 'EndOfInitLoop' ) - EndOfInitLoop.SetAuthor( '' ) - EndOfInitLoop.SetComment( 'Compute Node' ) - EndOfInitLoop.Coords( 862 , 156 ) - PyEndOfInitLoop = [] - EndOfInitLoop.SetPyFunction( '' , PyEndOfInitLoop ) - IInitLoopDoLoop = InitLoop.GetInPort( 'DoLoop' ) - IInitLoopIndex = InitLoop.InPort( 'Index' , 'long' ) - IInitLoopMin = InitLoop.InPort( 'Min' , 'long' ) - IInitLoopMax = InitLoop.InPort( 'Max' , 'long' ) - IInitLoopGate = InitLoop.GetInPort( 'Gate' ) - OInitLoopDoLoop = InitLoop.GetOutPort( 'DoLoop' ) - OInitLoopIndex = InitLoop.GetOutPort( 'Index' ) - OInitLoopMin = InitLoop.GetOutPort( 'Min' ) - OInitLoopMax = InitLoop.GetOutPort( 'Max' ) - OInitLoopGate = InitLoop.GetOutPort( 'Gate' ) - IEndOfInitLoopDoLoop = EndOfInitLoop.GetInPort( 'DoLoop' ) - IEndOfInitLoopIndex = EndOfInitLoop.GetInPort( 'Index' ) - IEndOfInitLoopMin = EndOfInitLoop.GetInPort( 'Min' ) - IEndOfInitLoopMax = EndOfInitLoop.GetInPort( 'Max' ) - IEndOfInitLoopGate = EndOfInitLoop.GetInPort( 'Gate' ) - OEndOfInitLoopDoLoop = EndOfInitLoop.GetOutPort( 'DoLoop' ) - OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) - OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) - OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) - OEndOfInitLoopGate = EndOfInitLoop.GetOutPort( 'Gate' ) - InitLoop.SetName( 'InitLoop' ) - InitLoop.SetAuthor( '' ) - InitLoop.SetComment( 'Compute Node' ) - InitLoop.Coords( 10 , 129 ) - - # Creation of Switch Nodes - PySwitch = [] - PySwitch.append( 'from time import * ' ) - PySwitch.append( 'def Switch(a) : ' ) - PySwitch.append( ' if ( a & 1 ) == 0 : ' ) - PySwitch.append( ' sleep(1) ' ) - PySwitch.append( ' return a & 1,1-(a&1),a ' ) - Switch,EndOfSwitch = GraphSwitch1.SNode( 'Switch' , PySwitch ) - EndOfSwitch.SetName( 'EndOfSwitch' ) - EndOfSwitch.SetAuthor( '' ) - EndOfSwitch.SetComment( 'Compute Node' ) - EndOfSwitch.Coords( 640 , 155 ) - PyEndOfSwitch = [] - EndOfSwitch.SetPyFunction( '' , 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 , 130 ) - ISwitcha = Switch.InPort( 'a' , 'long' ) - ISwitchGate = Switch.GetInPort( 'Gate' ) - OSwitchOdd = Switch.OutPort( 'Odd' , 'long' ) - OSwitchEven = Switch.OutPort( 'Even' , 'int' ) - OSwitcha = Switch.OutPort( 'a' , 'int' ) - OSwitchDefault = Switch.GetOutPort( 'Default' ) - - # Creation of Links - LIsOddaEndOfSwitcha = GraphSwitch1.Link( OIsOdda , IEndOfSwitcha ) - - LInitLoopIndexSwitcha = GraphSwitch1.Link( OInitLoopIndex , ISwitcha ) - - LInitLoopMinEndOfInitLoopMin = GraphSwitch1.Link( OInitLoopMin , IEndOfInitLoopMin ) - - LInitLoopMaxEndOfInitLoopMax = GraphSwitch1.Link( OInitLoopMax , IEndOfInitLoopMax ) - - LSwitchOddIsOddGate = GraphSwitch1.Link( OSwitchOdd , IIsOddGate ) - - LSwitchaIsOdda = GraphSwitch1.Link( OSwitcha , IIsOdda ) - LSwitchaIsOdda.AddCoord( 1 , 375 , 105 ) - LSwitchaIsOdda.AddCoord( 2 , 375 , 201 ) - - LSwitchDefaultEndOfSwitchDefault = GraphSwitch1.Link( OSwitchDefault , IEndOfSwitchDefault ) - - LEndOfSwitchaEndOfInitLoopIndex = GraphSwitch1.Link( OEndOfSwitcha , IEndOfInitLoopIndex ) - - # Input datas - IInitLoopIndex.Input( 0 ) - IInitLoopMin.Input( 0 ) - IInitLoopMax.Input( 100 ) - - # Output Ports of the graph - #OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) - #OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) - #OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) - #OSwitchEven = Switch.GetOutPort( 'Even' ) - return GraphSwitch1 - - -GraphSwitch1 = DefGraphSwitch1() diff --git a/Superv/Python/GraphSwitch2.py b/Superv/Python/GraphSwitch2.py deleted file mode 100644 index bbe1350..0000000 --- a/Superv/Python/GraphSwitch2.py +++ /dev/null @@ -1,182 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphSwitch_1_1 -# -from SuperV import * - -# Graph creation of GraphSwitch_1_1 -def DefGraphSwitch_1_1() : - GraphSwitch_1_1 = Graph( 'GraphSwitch_1_1' ) - GraphSwitch_1_1.SetName( 'GraphSwitch_1_1' ) - GraphSwitch_1_1.SetAuthor( '' ) - GraphSwitch_1_1.SetComment( '' ) - GraphSwitch_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.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.INode( 'IsEven' , PyIsEven ) - IsEven.SetName( 'IsEven' ) - IsEven.SetAuthor( '' ) - IsEven.SetComment( 'Compute Node' ) - IsEven.Coords( 397 , 279 ) - IIsEvena = IsEven.InPort( 'a' , 'long' ) - IIsEvenGate = IsEven.GetInPort( 'Gate' ) - OIsEvena = IsEven.OutPort( 'a' , 'long' ) - OIsEvenGate = IsEven.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.LNode( 'InitLoop' , PyInitLoopSwitch , 'MoreLoop' , PyMoreInitLoopSwitch , 'NextLoop' , PyNextInitLoopSwitch ) - EndOfInitLoopSwitch.SetName( 'EndOfInitLoopSwitch' ) - EndOfInitLoopSwitch.SetAuthor( '' ) - EndOfInitLoopSwitch.SetComment( 'Compute Node' ) - EndOfInitLoopSwitch.Coords( 775 , 169 ) - 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( ' sleep(1) ' ) - PySwitch.append( ' if a <= 0 : ' ) - PySwitch.append( ' return 0,0,a ' ) - PySwitch.append( ' return a & 1,1-(a&1),a ' ) - Switch,EndOfSwitch = GraphSwitch_1_1.SNode( 'Switch' , PySwitch ) - EndOfSwitch.SetName( 'EndOfSwitch' ) - EndOfSwitch.SetAuthor( '' ) - EndOfSwitch.SetComment( 'Compute Node' ) - EndOfSwitch.Coords( 583 , 169 ) - 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' ) - OSwitchDefault = Switch.GetOutPort( 'Default' ) - - # Creation of Links - LIsOddaEndOfSwitcha = GraphSwitch_1_1.Link( OIsOdda , IEndOfSwitcha ) - - LInitLoopSwitchIndexSwitcha = GraphSwitch_1_1.Link( OInitLoopSwitchIndex , ISwitcha ) - - LInitLoopSwitchMinEndOfInitLoopSwitchMin = GraphSwitch_1_1.Link( OInitLoopSwitchMin , IEndOfInitLoopSwitchMin ) - - LInitLoopSwitchMaxEndOfInitLoopSwitchMax = GraphSwitch_1_1.Link( OInitLoopSwitchMax , IEndOfInitLoopSwitchMax ) - - LIsEvenaEndOfSwitcha = GraphSwitch_1_1.Link( OIsEvena , IEndOfSwitcha ) - - LSwitchOddIsOddGate = GraphSwitch_1_1.Link( OSwitchOdd , IIsOddGate ) - - LSwitchEvenIsEvenGate = GraphSwitch_1_1.Link( OSwitchEven , IIsEvenGate ) - - LSwitchaIsOdda = GraphSwitch_1_1.Link( OSwitcha , IIsOdda ) - - LSwitchaIsEvena = GraphSwitch_1_1.Link( OSwitcha , IIsEvena ) - - LSwitchDefaultEndOfSwitchDefault = GraphSwitch_1_1.Link( OSwitchDefault , IEndOfSwitchDefault ) - - LEndOfSwitchaEndOfInitLoopSwitchIndex = GraphSwitch_1_1.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 GraphSwitch_1_1 - - -GraphSwitch_1_1 = DefGraphSwitch_1_1() diff --git a/Superv/Python/GraphSwitchBranchGates.py b/Superv/Python/GraphSwitchBranchGates.py deleted file mode 100644 index 7a20422..0000000 --- a/Superv/Python/GraphSwitchBranchGates.py +++ /dev/null @@ -1,168 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphSwitchBranchGates -# -from SuperV import * - -# Graph creation of GraphSwitchBranchGates -def DefGraphSwitchBranchGates() : - GraphSwitchBranchGates = Graph( 'GraphSwitchBranchGates' ) - GraphSwitchBranchGates.SetName( 'GraphSwitchBranchGates' ) - GraphSwitchBranchGates.SetAuthor( 'JR' ) - GraphSwitchBranchGates.SetComment( '' ) - GraphSwitchBranchGates.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 (GraphSwitch1)" ' ) - PyIsOdd.append( ' sleep( 1 ) ' ) - PyIsOdd.append( ' return a ' ) - IsOdd = GraphSwitchBranchGates.INode( 'IsOdd' , PyIsOdd ) - IsOdd.SetName( 'IsOdd' ) - IsOdd.SetAuthor( '' ) - IsOdd.SetComment( 'Python function' ) - IsOdd.Coords( 389 , 65 ) - IIsOdda = IsOdd.InPort( 'a' , 'long' ) - IIsOddGate = IsOdd.GetInPort( 'Gate' ) - OIsOdda = IsOdd.OutPort( 'a' , 'long' ) - OIsOddGate = IsOdd.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyInitLoop = [] - PyInitLoop.append( 'def InitLoop(Index,Min,Max) : ' ) - PyInitLoop.append( ' Index = Max ' ) - PyInitLoop.append( ' return Index,Min,Max ' ) - PyMoreInitLoop = [] - PyMoreInitLoop.append( 'def MoreLoop(Index,Min,Max) : ' ) - PyMoreInitLoop.append( ' if Index >= Min : ' ) - PyMoreInitLoop.append( ' DoLoop = 1 ' ) - PyMoreInitLoop.append( ' else : ' ) - PyMoreInitLoop.append( ' DoLoop = 0 ' ) - PyMoreInitLoop.append( ' return DoLoop,Index,Min,Max ' ) - PyNextInitLoop = [] - PyNextInitLoop.append( 'def NextLoop(Index,Min,Max) : ' ) - PyNextInitLoop.append( ' Index = Index - 1 ' ) - PyNextInitLoop.append( ' return Index,Min,Max ' ) - InitLoop,EndOfInitLoop = GraphSwitchBranchGates.LNode( 'InitLoop' , PyInitLoop , 'MoreLoop' , PyMoreInitLoop , 'NextLoop' , PyNextInitLoop ) - EndOfInitLoop.SetName( 'EndOfInitLoop' ) - EndOfInitLoop.SetAuthor( '' ) - EndOfInitLoop.SetComment( 'Compute Node' ) - EndOfInitLoop.Coords( 777 , 170 ) - PyEndOfInitLoop = [] - EndOfInitLoop.SetPyFunction( '' , PyEndOfInitLoop ) - IInitLoopDoLoop = InitLoop.GetInPort( 'DoLoop' ) - IInitLoopIndex = InitLoop.InPort( 'Index' , 'long' ) - IInitLoopMin = InitLoop.InPort( 'Min' , 'long' ) - IInitLoopMax = InitLoop.InPort( 'Max' , 'long' ) - IInitLoopGate = InitLoop.GetInPort( 'Gate' ) - OInitLoopDoLoop = InitLoop.GetOutPort( 'DoLoop' ) - OInitLoopIndex = InitLoop.GetOutPort( 'Index' ) - OInitLoopMin = InitLoop.GetOutPort( 'Min' ) - OInitLoopMax = InitLoop.GetOutPort( 'Max' ) - IEndOfInitLoopDoLoop = EndOfInitLoop.GetInPort( 'DoLoop' ) - IEndOfInitLoopIndex = EndOfInitLoop.GetInPort( 'Index' ) - IEndOfInitLoopMin = EndOfInitLoop.GetInPort( 'Min' ) - IEndOfInitLoopMax = EndOfInitLoop.GetInPort( 'Max' ) - IEndOfInitLoopGate = EndOfInitLoop.GetInPort( 'Gate' ) - OEndOfInitLoopDoLoop = EndOfInitLoop.GetOutPort( 'DoLoop' ) - OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) - OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) - OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) - OEndOfInitLoopGate = EndOfInitLoop.GetOutPort( 'Gate' ) - InitLoop.SetName( 'InitLoop' ) - InitLoop.SetAuthor( '' ) - InitLoop.SetComment( 'Compute Node' ) - InitLoop.Coords( 10 , 129 ) - - # Creation of Switch Nodes - PySwitch = [] - PySwitch.append( 'from time import * ' ) - PySwitch.append( 'def Switch(a) : ' ) - PySwitch.append( ' if a <= 0 : ' ) - PySwitch.append( ' sleep(1) ' ) - PySwitch.append( ' return 0,0,a ' ) - PySwitch.append( ' if ( a & 1 ) == 0 : ' ) - PySwitch.append( ' sleep(1) ' ) - PySwitch.append( ' return a & 1,1-(a&1),a ' ) - Switch,EndOfSwitch = GraphSwitchBranchGates.SNode( 'Switch' , PySwitch ) - EndOfSwitch.SetName( 'EndOfSwitch' ) - EndOfSwitch.SetAuthor( '' ) - EndOfSwitch.SetComment( 'Compute Node' ) - EndOfSwitch.Coords( 589 , 170 ) - PyEndOfSwitch = [] - EndOfSwitch.SetPyFunction( '' , 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 , 130 ) - ISwitcha = Switch.InPort( 'a' , 'long' ) - ISwitchGate = Switch.GetInPort( 'Gate' ) - OSwitchOdd = Switch.OutPort( 'Odd' , 'long' ) - OSwitchEven = Switch.OutPort( 'Even' , 'int' ) - OSwitcha = Switch.OutPort( 'a' , 'int' ) - OSwitchDefault = Switch.GetOutPort( 'Default' ) - - # Creation of Links - LIsOddaEndOfSwitcha = GraphSwitchBranchGates.Link( OIsOdda , IEndOfSwitcha ) - LIsOddaEndOfSwitcha.AddCoord( 1 , 571 , 201 ) - LIsOddaEndOfSwitcha.AddCoord( 2 , 571 , 136 ) - - LInitLoopIndexSwitcha = GraphSwitchBranchGates.Link( OInitLoopIndex , ISwitcha ) - - LInitLoopMinEndOfInitLoopMin = GraphSwitchBranchGates.Link( OInitLoopMin , IEndOfInitLoopMin ) - - LInitLoopMaxEndOfInitLoopMax = GraphSwitchBranchGates.Link( OInitLoopMax , IEndOfInitLoopMax ) - - LSwitchOddIsOddGate = GraphSwitchBranchGates.Link( OSwitchOdd , IIsOddGate ) - - LSwitchEvenEndOfSwitchDefault = GraphSwitchBranchGates.Link( OSwitchEven , IEndOfSwitchDefault ) - - LSwitchaIsOdda = GraphSwitchBranchGates.Link( OSwitcha , IIsOdda ) - LSwitchaIsOdda.AddCoord( 1 , 375 , 136 ) - LSwitchaIsOdda.AddCoord( 2 , 375 , 201 ) - - LSwitchDefaultEndOfSwitchDefault = GraphSwitchBranchGates.Link( OSwitchDefault , IEndOfSwitchDefault ) - - LEndOfSwitchaEndOfInitLoopIndex = GraphSwitchBranchGates.Link( OEndOfSwitcha , IEndOfInitLoopIndex ) - - # Input datas - IInitLoopIndex.Input( 0 ) - IInitLoopMin.Input( -5 ) - IInitLoopMax.Input( 23 ) - - # Output Ports of the graph - #OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) - #OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) - #OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) - return GraphSwitchBranchGates - - -GraphSwitchBranchGates = DefGraphSwitchBranchGates() diff --git a/Superv/Python/GraphSwitchBranchGates1.py b/Superv/Python/GraphSwitchBranchGates1.py deleted file mode 100644 index c58c574..0000000 --- a/Superv/Python/GraphSwitchBranchGates1.py +++ /dev/null @@ -1,170 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphSwitchBranchGates1 -# -from SuperV import * - -# Graph creation of GraphSwitchBranchGates1 -def DefGraphSwitchBranchGates1() : - GraphSwitchBranchGates1 = Graph( 'GraphSwitchBranchGates1' ) - GraphSwitchBranchGates1.SetName( 'GraphSwitchBranchGates1' ) - GraphSwitchBranchGates1.SetAuthor( 'JR' ) - GraphSwitchBranchGates1.SetComment( '' ) - GraphSwitchBranchGates1.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 (GraphSwitch1)" ' ) - PyIsOdd.append( ' sleep( 1 ) ' ) - PyIsOdd.append( ' return a ' ) - IsOdd = GraphSwitchBranchGates1.INode( 'IsOdd' , PyIsOdd ) - IsOdd.SetName( 'IsOdd' ) - IsOdd.SetAuthor( '' ) - IsOdd.SetComment( 'Python function' ) - IsOdd.Coords( 389 , 65 ) - IIsOdda = IsOdd.InPort( 'a' , 'long' ) - IIsOddGate = IsOdd.GetInPort( 'Gate' ) - OIsOdda = IsOdd.OutPort( 'a' , 'long' ) - OIsOddGate = IsOdd.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyInitLoop = [] - PyInitLoop.append( 'def InitLoop(Index,Min,Max) : ' ) - PyInitLoop.append( ' Index = Max ' ) - PyInitLoop.append( ' return Index,Min,Max ' ) - PyMoreInitLoop = [] - PyMoreInitLoop.append( 'def MoreLoop(Index,Min,Max) : ' ) - PyMoreInitLoop.append( ' if Index >= Min : ' ) - PyMoreInitLoop.append( ' DoLoop = 1 ' ) - PyMoreInitLoop.append( ' else : ' ) - PyMoreInitLoop.append( ' DoLoop = 0 ' ) - PyMoreInitLoop.append( ' return DoLoop,Index,Min,Max ' ) - PyNextInitLoop = [] - PyNextInitLoop.append( 'def NextLoop(Index,Min,Max) : ' ) - PyNextInitLoop.append( ' Index = Index - 1 ' ) - PyNextInitLoop.append( ' return Index,Min,Max ' ) - InitLoop,EndOfInitLoop = GraphSwitchBranchGates1.LNode( 'InitLoop' , PyInitLoop , 'MoreLoop' , PyMoreInitLoop , 'NextLoop' , PyNextInitLoop ) - EndOfInitLoop.SetName( 'EndOfInitLoop' ) - EndOfInitLoop.SetAuthor( '' ) - EndOfInitLoop.SetComment( 'Compute Node' ) - EndOfInitLoop.Coords( 777 , 170 ) - PyEndOfInitLoop = [] - EndOfInitLoop.SetPyFunction( '' , PyEndOfInitLoop ) - IInitLoopDoLoop = InitLoop.GetInPort( 'DoLoop' ) - IInitLoopIndex = InitLoop.InPort( 'Index' , 'long' ) - IInitLoopMin = InitLoop.InPort( 'Min' , 'long' ) - IInitLoopMax = InitLoop.InPort( 'Max' , 'long' ) - IInitLoopGate = InitLoop.GetInPort( 'Gate' ) - OInitLoopDoLoop = InitLoop.GetOutPort( 'DoLoop' ) - OInitLoopIndex = InitLoop.GetOutPort( 'Index' ) - OInitLoopMin = InitLoop.GetOutPort( 'Min' ) - OInitLoopMax = InitLoop.GetOutPort( 'Max' ) - IEndOfInitLoopDoLoop = EndOfInitLoop.GetInPort( 'DoLoop' ) - IEndOfInitLoopIndex = EndOfInitLoop.GetInPort( 'Index' ) - IEndOfInitLoopMin = EndOfInitLoop.GetInPort( 'Min' ) - IEndOfInitLoopMax = EndOfInitLoop.GetInPort( 'Max' ) - IEndOfInitLoopGate = EndOfInitLoop.GetInPort( 'Gate' ) - OEndOfInitLoopDoLoop = EndOfInitLoop.GetOutPort( 'DoLoop' ) - OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) - OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) - OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) - OEndOfInitLoopGate = EndOfInitLoop.GetOutPort( 'Gate' ) - InitLoop.SetName( 'InitLoop' ) - InitLoop.SetAuthor( '' ) - InitLoop.SetComment( 'Compute Node' ) - InitLoop.Coords( 10 , 129 ) - - # Creation of Switch Nodes - PySwitch = [] - PySwitch.append( 'from time import * ' ) - PySwitch.append( 'def Switch(a) : ' ) - PySwitch.append( ' if a <= 0 : ' ) - PySwitch.append( ' sleep(1) ' ) - PySwitch.append( ' return 0,0,a ' ) - PySwitch.append( ' if ( a & 1 ) == 0 : ' ) - PySwitch.append( ' sleep(1) ' ) - PySwitch.append( ' return a & 1,1-(a&1),a ' ) - Switch,EndOfSwitch = GraphSwitchBranchGates1.SNode( 'Switch' , PySwitch ) - EndOfSwitch.SetName( 'EndOfSwitch' ) - EndOfSwitch.SetAuthor( '' ) - EndOfSwitch.SetComment( 'Compute Node' ) - EndOfSwitch.Coords( 589 , 170 ) - PyEndOfSwitch = [] - EndOfSwitch.SetPyFunction( '' , 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 , 130 ) - ISwitcha = Switch.InPort( 'a' , 'long' ) - ISwitchGate = Switch.GetInPort( 'Gate' ) - OSwitchOdd = Switch.OutPort( 'Odd' , 'long' ) - OSwitchEven = Switch.OutPort( 'Even' , 'int' ) - OSwitcha = Switch.OutPort( 'a' , 'int' ) - OSwitchDefault = Switch.GetOutPort( 'Default' ) - - # Creation of Links - LIsOddaEndOfSwitcha = GraphSwitchBranchGates1.Link( OIsOdda , IEndOfSwitcha ) - LIsOddaEndOfSwitcha.AddCoord( 1 , 571 , 201 ) - LIsOddaEndOfSwitcha.AddCoord( 2 , 571 , 136 ) - - LIsOddGateEndOfSwitchDefault = GraphSwitchBranchGates1.Link( OIsOddGate , IEndOfSwitchDefault ) - - LInitLoopIndexSwitcha = GraphSwitchBranchGates1.Link( OInitLoopIndex , ISwitcha ) - - LInitLoopMinEndOfInitLoopMin = GraphSwitchBranchGates1.Link( OInitLoopMin , IEndOfInitLoopMin ) - - LInitLoopMaxEndOfInitLoopMax = GraphSwitchBranchGates1.Link( OInitLoopMax , IEndOfInitLoopMax ) - - LSwitchOddIsOddGate = GraphSwitchBranchGates1.Link( OSwitchOdd , IIsOddGate ) - - LSwitchEvenEndOfSwitchDefault = GraphSwitchBranchGates1.Link( OSwitchEven , IEndOfSwitchDefault ) - - LSwitchaIsOdda = GraphSwitchBranchGates1.Link( OSwitcha , IIsOdda ) - LSwitchaIsOdda.AddCoord( 1 , 375 , 136 ) - LSwitchaIsOdda.AddCoord( 2 , 375 , 201 ) - - LSwitchDefaultEndOfSwitchDefault = GraphSwitchBranchGates1.Link( OSwitchDefault , IEndOfSwitchDefault ) - - LEndOfSwitchaEndOfInitLoopIndex = GraphSwitchBranchGates1.Link( OEndOfSwitcha , IEndOfInitLoopIndex ) - - # Input datas - IInitLoopIndex.Input( 0 ) - IInitLoopMin.Input( -5 ) - IInitLoopMax.Input( 23 ) - - # Output Ports of the graph - #OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) - #OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) - #OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) - return GraphSwitchBranchGates1 - - -GraphSwitchBranchGates1 = DefGraphSwitchBranchGates1() diff --git a/Superv/Python/GraphSwitchBugAborted.py b/Superv/Python/GraphSwitchBugAborted.py deleted file mode 100644 index 9df3131..0000000 --- a/Superv/Python/GraphSwitchBugAborted.py +++ /dev/null @@ -1,167 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphSwitchBugAborted -# -from SuperV import * - -# Graph creation of GraphSwitchBugAborted -def DefGraphSwitchBugAborted() : - GraphSwitchBugAborted = Graph( 'GraphSwitchBugAborted' ) - GraphSwitchBugAborted.SetName( 'GraphSwitchBugAborted' ) - GraphSwitchBugAborted.SetAuthor( 'JR' ) - GraphSwitchBugAborted.SetComment( '' ) - GraphSwitchBugAborted.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 = GraphSwitchBugAborted.INode( 'IsOdd' , PyIsOdd ) - IsOdd.SetName( 'IsOdd' ) - IsOdd.SetAuthor( '' ) - IsOdd.SetComment( 'Python function' ) - IsOdd.Coords( 389 , 65 ) - IIsOdda = IsOdd.InPort( 'a' , 'long' ) - IIsOddGate = IsOdd.GetInPort( 'Gate' ) - OIsOdda = IsOdd.OutPort( 'a' , 'long' ) - OIsOddGate = IsOdd.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyInitLoopSwitch = [] - PyInitLoopSwitch.append( 'def InitLoop(Index,Min,Max) : ' ) - PyInitLoopSwitch.append( ' return Index,Min,Max ' ) - PyMoreInitLoopSwitch = [] - PyMoreInitLoopSwitch.append( 'def MoreLoop(Index,Min,Max) : ' ) - PyMoreInitLoopSwitch.append( ' if Index <= Max : ' ) - 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 = GraphSwitchBugAborted.LNode( 'InitLoop' , PyInitLoopSwitch , 'MoreLoop' , PyMoreInitLoopSwitch , 'NextLoop' , PyNextInitLoopSwitch ) - EndOfInitLoopSwitch.SetName( 'EndOfInitLoopSwitch' ) - EndOfInitLoopSwitch.SetAuthor( '' ) - EndOfInitLoopSwitch.SetComment( 'Compute Node' ) - EndOfInitLoopSwitch.Coords( 772 , 132 ) - 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( ' if ( a & 1 ) == 0 : ' ) - PySwitch.append( ' sleep(1) ' ) - PySwitch.append( ' return a & 1,1-(a&1),a,a ' ) - Switch,EndOfSwitch = GraphSwitchBugAborted.SNode( 'Switch' , PySwitch ) - EndOfSwitch.SetName( 'EndOfSwitch' ) - EndOfSwitch.SetAuthor( '' ) - EndOfSwitch.SetComment( 'Compute Node' ) - EndOfSwitch.Coords( 581 , 132 ) - PyEndOfSwitch = [] - PyEndOfSwitch.append( 'def EndOfSwitch(a,Even,k) : ' ) - PyEndOfSwitch.append( ' return a ' ) - EndOfSwitch.SetPyFunction( 'EndOfSwitch' , PyEndOfSwitch ) - IEndOfSwitcha = EndOfSwitch.InPort( 'a' , 'long' ) - IEndOfSwitchEven = EndOfSwitch.InPort( 'Even' , 'long' ) - IEndOfSwitchk = EndOfSwitch.InPort( 'k' , '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( 194 , 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' ) - OSwitchn = Switch.OutPort( 'n' , 'int' ) - OSwitchDefault = Switch.GetOutPort( 'Default' ) - - # Creation of Links - LIsOddaEndOfSwitcha = GraphSwitchBugAborted.Link( OIsOdda , IEndOfSwitcha ) - - LInitLoopSwitchIndexSwitcha = GraphSwitchBugAborted.Link( OInitLoopSwitchIndex , ISwitcha ) - - LInitLoopSwitchMinEndOfInitLoopSwitchMin = GraphSwitchBugAborted.Link( OInitLoopSwitchMin , IEndOfInitLoopSwitchMin ) - - LInitLoopSwitchMaxEndOfInitLoopSwitchMax = GraphSwitchBugAborted.Link( OInitLoopSwitchMax , IEndOfInitLoopSwitchMax ) - - LSwitchOddIsOddGate = GraphSwitchBugAborted.Link( OSwitchOdd , IIsOddGate ) - - LSwitchaIsOdda = GraphSwitchBugAborted.Link( OSwitcha , IIsOdda ) - - LSwitchnEndOfSwitchk = GraphSwitchBugAborted.Link( OSwitchn , IEndOfSwitchk ) - - LEndOfSwitchaEndOfInitLoopSwitchIndex = GraphSwitchBugAborted.Link( OEndOfSwitcha , IEndOfInitLoopSwitchIndex ) - - # Input datas - IInitLoopSwitchIndex.Input( 0 ) - IInitLoopSwitchMin.Input( 0 ) - IInitLoopSwitchMax.Input( 20 ) - - # Input Ports of the graph - #IEndOfSwitchEven = EndOfSwitch.GetInPort( 'Even' ) - - # Output Ports of the graph - #OEndOfInitLoopSwitchIndex = EndOfInitLoopSwitch.GetOutPort( 'Index' ) - #OEndOfInitLoopSwitchMin = EndOfInitLoopSwitch.GetOutPort( 'Min' ) - #OEndOfInitLoopSwitchMax = EndOfInitLoopSwitch.GetOutPort( 'Max' ) - #OSwitchEven = Switch.GetOutPort( 'Even' ) - return GraphSwitchBugAborted - - -GraphSwitchBugAborted = DefGraphSwitchBugAborted() diff --git a/Superv/Python/GraphSwitchBugDefault.py b/Superv/Python/GraphSwitchBugDefault.py deleted file mode 100644 index 6b16641..0000000 --- a/Superv/Python/GraphSwitchBugDefault.py +++ /dev/null @@ -1,170 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphSwitchBugDefault -# -from SuperV import * - -# Graph creation of GraphSwitchBugDefault -def DefGraphSwitchBugDefault() : - GraphSwitchBugDefault = Graph( 'GraphSwitchBugDefault' ) - GraphSwitchBugDefault.SetName( 'GraphSwitchBugDefault' ) - GraphSwitchBugDefault.SetAuthor( 'JR' ) - GraphSwitchBugDefault.SetComment( '' ) - GraphSwitchBugDefault.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 = GraphSwitchBugDefault.INode( 'IsOdd' , PyIsOdd ) - IsOdd.SetName( 'IsOdd' ) - IsOdd.SetAuthor( '' ) - IsOdd.SetComment( 'Python function' ) - IsOdd.Coords( 389 , 65 ) - IIsOdda = IsOdd.InPort( 'a' , 'long' ) - IIsOddGate = IsOdd.GetInPort( 'Gate' ) - OIsOdda = IsOdd.OutPort( 'a' , 'long' ) - OIsOddGate = IsOdd.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyInitLoopSwitch = [] - PyInitLoopSwitch.append( 'def InitLoop(Index,Min,Max) : ' ) - PyInitLoopSwitch.append( ' Index = Min ' ) - PyInitLoopSwitch.append( ' return Index,Min,Max ' ) - PyMoreInitLoopSwitch = [] - PyMoreInitLoopSwitch.append( 'def MoreLoop(Index,Min,Max) : ' ) - PyMoreInitLoopSwitch.append( ' if Index <= Max : ' ) - 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 = GraphSwitchBugDefault.LNode( 'InitLoop' , PyInitLoopSwitch , 'MoreLoop' , PyMoreInitLoopSwitch , 'NextLoop' , PyNextInitLoopSwitch ) - EndOfInitLoopSwitch.SetName( 'EndOfInitLoopSwitch' ) - EndOfInitLoopSwitch.SetAuthor( '' ) - EndOfInitLoopSwitch.SetComment( 'Compute Node' ) - EndOfInitLoopSwitch.Coords( 772 , 132 ) - 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( ' if ( a & 1 ) == 0 : ' ) - PySwitch.append( ' sleep(1) ' ) - PySwitch.append( ' return a & 1,1-(a&1),a,a ' ) - Switch,EndOfSwitch = GraphSwitchBugDefault.SNode( 'Switch' , PySwitch ) - EndOfSwitch.SetName( 'EndOfSwitch' ) - EndOfSwitch.SetAuthor( '' ) - EndOfSwitch.SetComment( 'Compute Node' ) - EndOfSwitch.Coords( 581 , 132 ) - PyEndOfSwitch = [] - PyEndOfSwitch.append( 'def EndOfSwitch(a,Even,k) : ' ) - PyEndOfSwitch.append( ' return a ' ) - EndOfSwitch.SetPyFunction( 'EndOfSwitch' , PyEndOfSwitch ) - IEndOfSwitcha = EndOfSwitch.InPort( 'a' , 'long' ) - IEndOfSwitchEven = EndOfSwitch.InPort( 'Even' , 'long' ) - IEndOfSwitchk = EndOfSwitch.InPort( 'k' , '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( 194 , 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' ) - OSwitchn = Switch.OutPort( 'n' , 'int' ) - OSwitchDefault = Switch.GetOutPort( 'Default' ) - - # Creation of Links - LIsOddaEndOfSwitcha = GraphSwitchBugDefault.Link( OIsOdda , IEndOfSwitcha ) - - LInitLoopSwitchIndexSwitcha = GraphSwitchBugDefault.Link( OInitLoopSwitchIndex , ISwitcha ) - - LInitLoopSwitchMinEndOfInitLoopSwitchMin = GraphSwitchBugDefault.Link( OInitLoopSwitchMin , IEndOfInitLoopSwitchMin ) - - LInitLoopSwitchMaxEndOfInitLoopSwitchMax = GraphSwitchBugDefault.Link( OInitLoopSwitchMax , IEndOfInitLoopSwitchMax ) - - LSwitchOddIsOddGate = GraphSwitchBugDefault.Link( OSwitchOdd , IIsOddGate ) - - LSwitchaIsOdda = GraphSwitchBugDefault.Link( OSwitcha , IIsOdda ) - - LSwitchnEndOfSwitchk = GraphSwitchBugDefault.Link( OSwitchn , IEndOfSwitchk ) - - LSwitchDefaultEndOfSwitchDefault = GraphSwitchBugDefault.Link( OSwitchDefault , IEndOfSwitchDefault ) - - LEndOfSwitchaEndOfInitLoopSwitchIndex = GraphSwitchBugDefault.Link( OEndOfSwitcha , IEndOfInitLoopSwitchIndex ) - - # Input datas - IInitLoopSwitchIndex.Input( 0 ) - IInitLoopSwitchMin.Input( 1 ) - IInitLoopSwitchMax.Input( 20 ) - - # Input Ports of the graph - #IEndOfSwitchEven = EndOfSwitch.GetInPort( 'Even' ) - - # Output Ports of the graph - #OEndOfInitLoopSwitchIndex = EndOfInitLoopSwitch.GetOutPort( 'Index' ) - #OEndOfInitLoopSwitchMin = EndOfInitLoopSwitch.GetOutPort( 'Min' ) - #OEndOfInitLoopSwitchMax = EndOfInitLoopSwitch.GetOutPort( 'Max' ) - #OSwitchEven = Switch.GetOutPort( 'Even' ) - return GraphSwitchBugDefault - - -GraphSwitchBugDefault = DefGraphSwitchBugDefault() diff --git a/Superv/Python/GraphSwitchCheck.py b/Superv/Python/GraphSwitchCheck.py deleted file mode 100644 index 0b7ca6f..0000000 --- a/Superv/Python/GraphSwitchCheck.py +++ /dev/null @@ -1,289 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphSwitchCheck -# -from SuperV import * - -# Graph creation of GraphSwitchCheck -def DefGraphSwitchCheck() : - GraphSwitchCheck = Graph( 'GraphSwitchCheck' ) - GraphSwitchCheck.SetName( 'GraphSwitchCheck' ) - GraphSwitchCheck.SetAuthor( 'JR' ) - GraphSwitchCheck.SetComment( '' ) - GraphSwitchCheck.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 = GraphSwitchCheck.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 = GraphSwitchCheck.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 = GraphSwitchCheck.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 = GraphSwitchCheck.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 = GraphSwitchCheck.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' ) - - # 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 = GraphSwitchCheck.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 = GraphSwitchCheck.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 - LIsOddaEmptyNodea = GraphSwitchCheck.Link( OIsOdda , IEmptyNodea ) - LIsOddaEmptyNodea.AddCoord( 1 , 646 , 78 ) - - LIsEvenaEndOfSwitcha = GraphSwitchCheck.Link( OIsEvena , IEndOfSwitcha ) - - LPrintOddBranchEmptyNodeBranch = GraphSwitchCheck.Link( OPrintOddBranch , IEmptyNodeBranch ) - - LPrintEvenBranchEndOfSwitchBranch = GraphSwitchCheck.Link( OPrintEvenBranch , IEndOfSwitchBranch ) - - LEmptyNodeaEndOfSwitcha = GraphSwitchCheck.Link( OEmptyNodea , IEndOfSwitcha ) - - LEmptyNodeBranchEndOfSwitchBranch = GraphSwitchCheck.Link( OEmptyNodeBranch , IEndOfSwitchBranch ) - - LInitLoopSwitchIndexSwitcha = GraphSwitchCheck.Link( OInitLoopSwitchIndex , ISwitcha ) - - LInitLoopSwitchMinEndOfInitLoopSwitchMin = GraphSwitchCheck.Link( OInitLoopSwitchMin , IEndOfInitLoopSwitchMin ) - - LInitLoopSwitchMaxEndOfInitLoopSwitchMax = GraphSwitchCheck.Link( OInitLoopSwitchMax , IEndOfInitLoopSwitchMax ) - - LSwitchOddIsOddGate = GraphSwitchCheck.Link( OSwitchOdd , IIsOddGate ) - LSwitchOddIsOddGate.AddCoord( 1 , 401 , 101 ) - LSwitchOddIsOddGate.AddCoord( 2 , 401 , 160 ) - - LSwitchOddPrintOddGate = GraphSwitchCheck.Link( OSwitchOdd , IPrintOddGate ) - LSwitchOddPrintOddGate.AddCoord( 1 , 401 , 245 ) - LSwitchOddPrintOddGate.AddCoord( 2 , 401 , 159 ) - - LSwitchEvenIsEvenGate = GraphSwitchCheck.Link( OSwitchEven , IIsEvenGate ) - LSwitchEvenIsEvenGate.AddCoord( 1 , 392 , 533 ) - LSwitchEvenIsEvenGate.AddCoord( 2 , 392 , 182 ) - - LSwitchEvenPrintEvenGate = GraphSwitchCheck.Link( OSwitchEven , IPrintEvenGate ) - LSwitchEvenPrintEvenGate.AddCoord( 1 , 392 , 403 ) - LSwitchEvenPrintEvenGate.AddCoord( 2 , 392 , 181 ) - - LSwitchaIsOdda = GraphSwitchCheck.Link( OSwitcha , IIsOdda ) - LSwitchaIsOdda.AddCoord( 1 , 382 , 78 ) - LSwitchaIsOdda.AddCoord( 2 , 382 , 199 ) - - LSwitchaIsEvena = GraphSwitchCheck.Link( OSwitcha , IIsEvena ) - LSwitchaIsEvena.AddCoord( 1 , 381 , 509 ) - LSwitchaIsEvena.AddCoord( 2 , 382 , 200 ) - - LSwitchaPrintOdda = GraphSwitchCheck.Link( OSwitcha , IPrintOdda ) - - LSwitchaPrintEvena = GraphSwitchCheck.Link( OSwitcha , IPrintEvena ) - LSwitchaPrintEvena.AddCoord( 1 , 381 , 361 ) - LSwitchaPrintEvena.AddCoord( 2 , 382 , 200 ) - - LSwitchBranchPrintOddBranch = GraphSwitchCheck.Link( OSwitchBranch , IPrintOddBranch ) - - LSwitchBranchPrintEvenBranch = GraphSwitchCheck.Link( OSwitchBranch , IPrintEvenBranch ) - LSwitchBranchPrintEvenBranch.AddCoord( 1 , 369 , 381 ) - LSwitchBranchPrintEvenBranch.AddCoord( 2 , 369 , 219 ) - - LSwitchDefaultEndOfSwitchDefault = GraphSwitchCheck.Link( OSwitchDefault , IEndOfSwitchDefault ) - - LEndOfSwitchaEndOfInitLoopSwitchIndex = GraphSwitchCheck.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 GraphSwitchCheck - - -GraphSwitchCheck = DefGraphSwitchCheck() diff --git a/Superv/Python/GraphSwitchCheckBranch.py b/Superv/Python/GraphSwitchCheckBranch.py deleted file mode 100644 index 078c3f2..0000000 --- a/Superv/Python/GraphSwitchCheckBranch.py +++ /dev/null @@ -1,229 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# 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() diff --git a/Superv/Python/GraphSwitchCheckBranch1.py b/Superv/Python/GraphSwitchCheckBranch1.py deleted file mode 100644 index ceb214c..0000000 --- a/Superv/Python/GraphSwitchCheckBranch1.py +++ /dev/null @@ -1,254 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphSwitchCheckBranch1_1 -# -from SuperV import * - -# Graph creation of GraphSwitchCheckBranch1_1 -def DefGraphSwitchCheckBranch1_1() : - GraphSwitchCheckBranch1_1 = Graph( 'GraphSwitchCheckBranch1_1' ) - GraphSwitchCheckBranch1_1.SetName( 'GraphSwitchCheckBranch1_1' ) - GraphSwitchCheckBranch1_1.SetAuthor( 'JR' ) - GraphSwitchCheckBranch1_1.SetComment( 'Switch with two SwitchBranches, One NotSwitchBranch and the DefaultBranch' ) - GraphSwitchCheckBranch1_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 = GraphSwitchCheckBranch1_1.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_1.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_1.INode( 'Print_1' , PyBranchNode ) - BranchNode.SetName( 'BranchNode' ) - BranchNode.SetAuthor( '' ) - BranchNode.SetComment( 'Compute Node' ) - BranchNode.Coords( 529 , 177 ) - IBranchNodeBranch = BranchNode.InPort( 'Branch' , 'string' ) - IBranchNodeGate = BranchNode.GetInPort( 'Gate' ) - OBranchNodeBranch = BranchNode.OutPort( 'Branch' , 'string' ) - OBranchNodeGate = BranchNode.GetOutPort( 'Gate' ) - - Pydefault = [] - Pydefault.append( 'from time import * ' ) - Pydefault.append( 'def default(a) : ' ) - Pydefault.append( ' sleep(1) ' ) - Pydefault.append( ' return a ' ) - default = GraphSwitchCheckBranch1_1.INode( 'default' , Pydefault ) - default.SetName( 'default' ) - default.SetAuthor( '' ) - default.SetComment( 'Compute Node' ) - default.Coords( 428 , 308 ) - Idefaulta = default.InPort( 'a' , 'long' ) - IdefaultGate = default.GetInPort( 'Gate' ) - Odefaulta = default.OutPort( 'a' , 'long' ) - 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 = GraphSwitchCheckBranch1_1.LNode( 'InitLoop' , PyInitLoopSwitch , 'MoreLoop' , PyMoreInitLoopSwitch , 'NextLoop' , PyNextInitLoopSwitch ) - EndOfInitLoopSwitch.SetName( 'EndOfInitLoopSwitch' ) - EndOfInitLoopSwitch.SetAuthor( '' ) - EndOfInitLoopSwitch.SetComment( 'Compute Node' ) - EndOfInitLoopSwitch.Coords( 1073 , 216 ) - 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_1.SNode( 'Switch' , PySwitch ) - EndOfSwitch.SetName( 'EndOfSwitch' ) - EndOfSwitch.SetAuthor( '' ) - EndOfSwitch.SetComment( 'Compute Node' ) - EndOfSwitch.Coords( 880 , 216 ) - 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_1.Link( OIsOdda , IEndOfSwitcha ) - - LIsEvenaEndOfSwitcha = GraphSwitchCheckBranch1_1.Link( OIsEvena , IEndOfSwitcha ) - - LBranchNodeBranchEndOfSwitchBranch = GraphSwitchCheckBranch1_1.Link( OBranchNodeBranch , IEndOfSwitchBranch ) - - LInitLoopSwitchIndexSwitcha = GraphSwitchCheckBranch1_1.Link( OInitLoopSwitchIndex , ISwitcha ) - - LInitLoopSwitchMinEndOfInitLoopSwitchMin = GraphSwitchCheckBranch1_1.Link( OInitLoopSwitchMin , IEndOfInitLoopSwitchMin ) - - LInitLoopSwitchMaxEndOfInitLoopSwitchMax = GraphSwitchCheckBranch1_1.Link( OInitLoopSwitchMax , IEndOfInitLoopSwitchMax ) - - LSwitchOddIsOddGate = GraphSwitchCheckBranch1_1.Link( OSwitchOdd , IIsOddGate ) - LSwitchOddIsOddGate.AddCoord( 1 , 401 , 101 ) - LSwitchOddIsOddGate.AddCoord( 2 , 401 , 188 ) - - LSwitchEvenIsEvenGate = GraphSwitchCheckBranch1_1.Link( OSwitchEven , IIsEvenGate ) - LSwitchEvenIsEvenGate.AddCoord( 1 , 392 , 533 ) - LSwitchEvenIsEvenGate.AddCoord( 2 , 392 , 208 ) - - LSwitchaIsOdda = GraphSwitchCheckBranch1_1.Link( OSwitcha , IIsOdda ) - LSwitchaIsOdda.AddCoord( 1 , 382 , 78 ) - LSwitchaIsOdda.AddCoord( 2 , 382 , 229 ) - - LSwitchaIsEvena = GraphSwitchCheckBranch1_1.Link( OSwitcha , IIsEvena ) - LSwitchaIsEvena.AddCoord( 1 , 381 , 509 ) - LSwitchaIsEvena.AddCoord( 2 , 381 , 229 ) - - LSwitchadefaulta = GraphSwitchCheckBranch1_1.Link( OSwitcha , Idefaulta ) - LSwitchadefaulta.AddCoord( 1 , 382 , 377 ) - LSwitchadefaulta.AddCoord( 2 , 382 , 228 ) - - LSwitchBranchBranchNodeBranch = GraphSwitchCheckBranch1_1.Link( OSwitchBranch , IBranchNodeBranch ) - - LSwitchdefaultdefaultGate = GraphSwitchCheckBranch1_1.Link( OSwitchdefault , IdefaultGate ) - LSwitchdefaultdefaultGate.AddCoord( 1 , 410 , 403 ) - LSwitchdefaultdefaultGate.AddCoord( 2 , 410 , 269 ) - LSwitchdefaultdefaultGate.AddCoord( 3 , 410 , 268 ) - - LSwitchDefaultEndOfSwitchDefault = GraphSwitchCheckBranch1_1.Link( OSwitchDefault , IEndOfSwitchDefault ) - - LEndOfSwitchaEndOfInitLoopSwitchIndex = GraphSwitchCheckBranch1_1.Link( OEndOfSwitcha , IEndOfInitLoopSwitchIndex ) - - LdefaultaEndOfSwitcha = GraphSwitchCheckBranch1_1.Link( Odefaulta , 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' ) - return GraphSwitchCheckBranch1_1 - - -GraphSwitchCheckBranch1_1 = DefGraphSwitchCheckBranch1_1() diff --git a/Superv/Python/GraphSwitchCheckBranch1Default.py b/Superv/Python/GraphSwitchCheckBranch1Default.py deleted file mode 100644 index 64480b8..0000000 --- a/Superv/Python/GraphSwitchCheckBranch1Default.py +++ /dev/null @@ -1,257 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphSwitchCheckBranch1Default -# -from SuperV import * - -# Graph creation of GraphSwitchCheckBranch1Default -def DefGraphSwitchCheckBranch1Default() : - GraphSwitchCheckBranch1Default = Graph( 'GraphSwitchCheckBranch1Default' ) - GraphSwitchCheckBranch1Default.SetName( 'GraphSwitchCheckBranch1Default' ) - GraphSwitchCheckBranch1Default.SetAuthor( 'JR' ) - GraphSwitchCheckBranch1Default.SetComment( 'Switch with two SwitchBranches, One NotSwitchBranch and the DefaultBranch' ) - GraphSwitchCheckBranch1Default.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 = GraphSwitchCheckBranch1Default.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 = GraphSwitchCheckBranch1Default.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 = GraphSwitchCheckBranch1Default.INode( 'Print_1' , PyBranchNode ) - BranchNode.SetName( 'BranchNode' ) - BranchNode.SetAuthor( '' ) - BranchNode.SetComment( 'Compute Node' ) - BranchNode.Coords( 529 , 177 ) - IBranchNodeBranch = BranchNode.InPort( 'Branch' , 'string' ) - IBranchNodeGate = BranchNode.GetInPort( 'Gate' ) - OBranchNodeBranch = BranchNode.OutPort( 'Branch' , 'string' ) - OBranchNodeGate = BranchNode.GetOutPort( 'Gate' ) - - Pydefault = [] - Pydefault.append( 'from time import * ' ) - Pydefault.append( 'def default(a) : ' ) - Pydefault.append( ' sleep(1) ' ) - Pydefault.append( ' return a ' ) - default = GraphSwitchCheckBranch1Default.INode( 'default' , Pydefault ) - default.SetName( 'default' ) - default.SetAuthor( '' ) - default.SetComment( 'Compute Node' ) - default.Coords( 428 , 308 ) - Idefaulta = default.InPort( 'a' , 'long' ) - IdefaultGate = default.GetInPort( 'Gate' ) - Odefaulta = default.OutPort( 'a' , 'long' ) - 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 = GraphSwitchCheckBranch1Default.LNode( 'InitLoop' , PyInitLoopSwitch , 'MoreLoop' , PyMoreInitLoopSwitch , 'NextLoop' , PyNextInitLoopSwitch ) - EndOfInitLoopSwitch.SetName( 'EndOfInitLoopSwitch' ) - EndOfInitLoopSwitch.SetAuthor( '' ) - EndOfInitLoopSwitch.SetComment( 'Compute Node' ) - EndOfInitLoopSwitch.Coords( 1073 , 216 ) - 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( ' if ( a & 1 ) == 0 : ' ) - PySwitch.append( ' return 0,0,a,Branch,1 ' ) - PySwitch.append( ' else : ' ) - PySwitch.append( ' return 0,0,a,Branch,0 ' ) - 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 = GraphSwitchCheckBranch1Default.SNode( 'Switch' , PySwitch ) - EndOfSwitch.SetName( 'EndOfSwitch' ) - EndOfSwitch.SetAuthor( '' ) - EndOfSwitch.SetComment( 'Compute Node' ) - EndOfSwitch.Coords( 880 , 216 ) - 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 = GraphSwitchCheckBranch1Default.Link( OIsOdda , IEndOfSwitcha ) - - LIsEvenaEndOfSwitcha = GraphSwitchCheckBranch1Default.Link( OIsEvena , IEndOfSwitcha ) - - LBranchNodeBranchEndOfSwitchBranch = GraphSwitchCheckBranch1Default.Link( OBranchNodeBranch , IEndOfSwitchBranch ) - - LInitLoopSwitchIndexSwitcha = GraphSwitchCheckBranch1Default.Link( OInitLoopSwitchIndex , ISwitcha ) - - LInitLoopSwitchMinEndOfInitLoopSwitchMin = GraphSwitchCheckBranch1Default.Link( OInitLoopSwitchMin , IEndOfInitLoopSwitchMin ) - - LInitLoopSwitchMaxEndOfInitLoopSwitchMax = GraphSwitchCheckBranch1Default.Link( OInitLoopSwitchMax , IEndOfInitLoopSwitchMax ) - - LSwitchOddIsOddGate = GraphSwitchCheckBranch1Default.Link( OSwitchOdd , IIsOddGate ) - LSwitchOddIsOddGate.AddCoord( 1 , 401 , 101 ) - LSwitchOddIsOddGate.AddCoord( 2 , 401 , 188 ) - - LSwitchEvenIsEvenGate = GraphSwitchCheckBranch1Default.Link( OSwitchEven , IIsEvenGate ) - LSwitchEvenIsEvenGate.AddCoord( 1 , 392 , 533 ) - LSwitchEvenIsEvenGate.AddCoord( 2 , 392 , 208 ) - - LSwitchaIsOdda = GraphSwitchCheckBranch1Default.Link( OSwitcha , IIsOdda ) - LSwitchaIsOdda.AddCoord( 1 , 382 , 78 ) - LSwitchaIsOdda.AddCoord( 2 , 382 , 229 ) - - LSwitchaIsEvena = GraphSwitchCheckBranch1Default.Link( OSwitcha , IIsEvena ) - LSwitchaIsEvena.AddCoord( 1 , 381 , 509 ) - LSwitchaIsEvena.AddCoord( 2 , 381 , 229 ) - - LSwitchadefaulta = GraphSwitchCheckBranch1Default.Link( OSwitcha , Idefaulta ) - LSwitchadefaulta.AddCoord( 1 , 382 , 377 ) - LSwitchadefaulta.AddCoord( 2 , 382 , 228 ) - - LSwitchBranchBranchNodeBranch = GraphSwitchCheckBranch1Default.Link( OSwitchBranch , IBranchNodeBranch ) - - LSwitchdefaultdefaultGate = GraphSwitchCheckBranch1Default.Link( OSwitchdefault , IdefaultGate ) - LSwitchdefaultdefaultGate.AddCoord( 1 , 410 , 403 ) - LSwitchdefaultdefaultGate.AddCoord( 2 , 410 , 269 ) - LSwitchdefaultdefaultGate.AddCoord( 3 , 410 , 268 ) - - LSwitchDefaultEndOfSwitchDefault = GraphSwitchCheckBranch1Default.Link( OSwitchDefault , IEndOfSwitchDefault ) - - LEndOfSwitchaEndOfInitLoopSwitchIndex = GraphSwitchCheckBranch1Default.Link( OEndOfSwitcha , IEndOfInitLoopSwitchIndex ) - - LdefaultaEndOfSwitcha = GraphSwitchCheckBranch1Default.Link( Odefaulta , 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' ) - return GraphSwitchCheckBranch1Default - - -GraphSwitchCheckBranch1Default = DefGraphSwitchCheckBranch1Default() diff --git a/Superv/Python/GraphSwitchCheckBranch1NoDefault.py b/Superv/Python/GraphSwitchCheckBranch1NoDefault.py deleted file mode 100644 index 2e29b2f..0000000 --- a/Superv/Python/GraphSwitchCheckBranch1NoDefault.py +++ /dev/null @@ -1,252 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphSwitchCheckBranch1NoDefault -# -from SuperV import * - -# Graph creation of GraphSwitchCheckBranch1NoDefault -def DefGraphSwitchCheckBranch1NoDefault() : - GraphSwitchCheckBranch1NoDefault = Graph( 'GraphSwitchCheckBranch1NoDefault' ) - GraphSwitchCheckBranch1NoDefault.SetName( 'GraphSwitchCheckBranch1NoDefault' ) - GraphSwitchCheckBranch1NoDefault.SetAuthor( 'JR' ) - GraphSwitchCheckBranch1NoDefault.SetComment( 'Switch with two SwitchBranches, One NotSwitchBranch and the DefaultBranch' ) - GraphSwitchCheckBranch1NoDefault.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 = GraphSwitchCheckBranch1NoDefault.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 = GraphSwitchCheckBranch1NoDefault.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 = GraphSwitchCheckBranch1NoDefault.INode( 'Print_1' , PyBranchNode ) - BranchNode.SetName( 'BranchNode' ) - BranchNode.SetAuthor( '' ) - BranchNode.SetComment( 'Compute Node' ) - BranchNode.Coords( 529 , 177 ) - IBranchNodeBranch = BranchNode.InPort( 'Branch' , 'string' ) - IBranchNodeGate = BranchNode.GetInPort( 'Gate' ) - OBranchNodeBranch = BranchNode.OutPort( 'Branch' , 'string' ) - OBranchNodeGate = BranchNode.GetOutPort( 'Gate' ) - - Pydefault = [] - Pydefault.append( 'from time import * ' ) - Pydefault.append( 'def default(a) : ' ) - Pydefault.append( ' sleep(1) ' ) - Pydefault.append( ' return a ' ) - default = GraphSwitchCheckBranch1NoDefault.INode( 'default' , Pydefault ) - default.SetName( 'default' ) - default.SetAuthor( '' ) - default.SetComment( 'Compute Node' ) - default.Coords( 428 , 308 ) - Idefaulta = default.InPort( 'a' , 'long' ) - IdefaultGate = default.GetInPort( 'Gate' ) - Odefaulta = default.OutPort( 'a' , 'long' ) - 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 = GraphSwitchCheckBranch1NoDefault.LNode( 'InitLoop' , PyInitLoopSwitch , 'MoreLoop' , PyMoreInitLoopSwitch , 'NextLoop' , PyNextInitLoopSwitch ) - EndOfInitLoopSwitch.SetName( 'EndOfInitLoopSwitch' ) - EndOfInitLoopSwitch.SetAuthor( '' ) - EndOfInitLoopSwitch.SetComment( 'Compute Node' ) - EndOfInitLoopSwitch.Coords( 1073 , 216 ) - 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 = GraphSwitchCheckBranch1NoDefault.SNode( 'Switch' , PySwitch ) - EndOfSwitch.SetName( 'EndOfSwitch' ) - EndOfSwitch.SetAuthor( '' ) - EndOfSwitch.SetComment( 'Compute Node' ) - EndOfSwitch.Coords( 880 , 216 ) - 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 = GraphSwitchCheckBranch1NoDefault.Link( OIsOdda , IEndOfSwitcha ) - - LIsEvenaEndOfSwitcha = GraphSwitchCheckBranch1NoDefault.Link( OIsEvena , IEndOfSwitcha ) - - LBranchNodeBranchEndOfSwitchBranch = GraphSwitchCheckBranch1NoDefault.Link( OBranchNodeBranch , IEndOfSwitchBranch ) - - LInitLoopSwitchIndexSwitcha = GraphSwitchCheckBranch1NoDefault.Link( OInitLoopSwitchIndex , ISwitcha ) - - LInitLoopSwitchMinEndOfInitLoopSwitchMin = GraphSwitchCheckBranch1NoDefault.Link( OInitLoopSwitchMin , IEndOfInitLoopSwitchMin ) - - LInitLoopSwitchMaxEndOfInitLoopSwitchMax = GraphSwitchCheckBranch1NoDefault.Link( OInitLoopSwitchMax , IEndOfInitLoopSwitchMax ) - - LSwitchOddIsOddGate = GraphSwitchCheckBranch1NoDefault.Link( OSwitchOdd , IIsOddGate ) - LSwitchOddIsOddGate.AddCoord( 1 , 401 , 101 ) - LSwitchOddIsOddGate.AddCoord( 2 , 401 , 188 ) - - LSwitchEvenIsEvenGate = GraphSwitchCheckBranch1NoDefault.Link( OSwitchEven , IIsEvenGate ) - LSwitchEvenIsEvenGate.AddCoord( 1 , 392 , 533 ) - LSwitchEvenIsEvenGate.AddCoord( 2 , 392 , 208 ) - - LSwitchaIsOdda = GraphSwitchCheckBranch1NoDefault.Link( OSwitcha , IIsOdda ) - LSwitchaIsOdda.AddCoord( 1 , 382 , 78 ) - LSwitchaIsOdda.AddCoord( 2 , 382 , 229 ) - - LSwitchaIsEvena = GraphSwitchCheckBranch1NoDefault.Link( OSwitcha , IIsEvena ) - LSwitchaIsEvena.AddCoord( 1 , 381 , 509 ) - LSwitchaIsEvena.AddCoord( 2 , 381 , 229 ) - - LSwitchadefaulta = GraphSwitchCheckBranch1NoDefault.Link( OSwitcha , Idefaulta ) - LSwitchadefaulta.AddCoord( 1 , 382 , 377 ) - LSwitchadefaulta.AddCoord( 2 , 382 , 228 ) - - LSwitchBranchBranchNodeBranch = GraphSwitchCheckBranch1NoDefault.Link( OSwitchBranch , IBranchNodeBranch ) - - LSwitchdefaultdefaultGate = GraphSwitchCheckBranch1NoDefault.Link( OSwitchdefault , IdefaultGate ) - LSwitchdefaultdefaultGate.AddCoord( 1 , 410 , 403 ) - LSwitchdefaultdefaultGate.AddCoord( 2 , 410 , 269 ) - LSwitchdefaultdefaultGate.AddCoord( 3 , 410 , 268 ) - - LEndOfSwitchaEndOfInitLoopSwitchIndex = GraphSwitchCheckBranch1NoDefault.Link( OEndOfSwitcha , IEndOfInitLoopSwitchIndex ) - - LdefaultaEndOfSwitcha = GraphSwitchCheckBranch1NoDefault.Link( Odefaulta , 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' ) - return GraphSwitchCheckBranch1NoDefault - - -GraphSwitchCheckBranch1NoDefault = DefGraphSwitchCheckBranch1NoDefault() diff --git a/Superv/Python/GraphSwitchCheckBranch2NOTValid.py b/Superv/Python/GraphSwitchCheckBranch2NOTValid.py deleted file mode 100644 index dfb9d21..0000000 --- a/Superv/Python/GraphSwitchCheckBranch2NOTValid.py +++ /dev/null @@ -1,258 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphSwitchCheckBranch2NOTValid -# -from SuperV import * - -# Graph creation of GraphSwitchCheckBranch2NOTValid -def DefGraphSwitchCheckBranch2NOTValid() : - GraphSwitchCheckBranch2NOTValid = Graph( 'GraphSwitchCheckBranch2NOTValid' ) - GraphSwitchCheckBranch2NOTValid.SetName( 'GraphSwitchCheckBranch2NOTValid' ) - GraphSwitchCheckBranch2NOTValid.SetAuthor( 'JR' ) - GraphSwitchCheckBranch2NOTValid.SetComment( 'Switch with two SwitchBranches, One NotSwitchBranch and the DefaultBranch -Shared Node between Branches' ) - GraphSwitchCheckBranch2NOTValid.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - # Creation of InLine Nodes - PyIsOdd = [] - PyIsOdd.append( 'from time import * ' ) - PyIsOdd.append( 'def IsOdd(aBranch) : ' ) - PyIsOdd.append( ' print a,"IsOdd (GraphSwitch)" ' ) - PyIsOdd.append( ' sleep( 1 ) ' ) - PyIsOdd.append( ' return a ' ) - IsOdd = GraphSwitchCheckBranch2NOTValid.INode( 'IsOdd' , PyIsOdd ) - IsOdd.SetName( 'IsOdd' ) - IsOdd.SetAuthor( '' ) - IsOdd.SetComment( 'Python function' ) - IsOdd.Coords( 649 , 6 ) - IIsOdda = IsOdd.InPort( 'a' , 'long' ) - IIsOddBranch = IsOdd.InPort( 'Branch' , 'string' ) - IIsOddGate = IsOdd.GetInPort( 'Gate' ) - OIsOdda = IsOdd.OutPort( 'a' , 'long' ) - OIsOddGate = IsOdd.GetOutPort( 'Gate' ) - - PyIsEven = [] - PyIsEven.append( 'from time import * ' ) - PyIsEven.append( 'def IsEven(aBranch) : ' ) - PyIsEven.append( ' print a,"IsEven (GraphSwitch)" ' ) - PyIsEven.append( ' sleep( 1 ) ' ) - PyIsEven.append( ' return a ' ) - IsEven = GraphSwitchCheckBranch2NOTValid.INode( 'IsEven' , PyIsEven ) - IsEven.SetName( 'IsEven' ) - IsEven.SetAuthor( '' ) - IsEven.SetComment( 'Compute Node' ) - IsEven.Coords( 657 , 451 ) - IIsEvena = IsEven.InPort( 'a' , 'long' ) - IIsEvenBranch = IsEven.InPort( 'Branch' , 'string' ) - 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 = GraphSwitchCheckBranch2NOTValid.INode( 'Print_1' , PyBranchNode ) - BranchNode.SetName( 'BranchNode' ) - BranchNode.SetAuthor( '' ) - BranchNode.SetComment( 'Compute Node' ) - BranchNode.Coords( 429 , 177 ) - IBranchNodeBranch = BranchNode.InPort( 'Branch' , 'string' ) - IBranchNodeGate = BranchNode.GetInPort( 'Gate' ) - OBranchNodeBranch = BranchNode.OutPort( 'Branch' , 'string' ) - OBranchNodeGate = BranchNode.GetOutPort( 'Gate' ) - - Pydefault = [] - Pydefault.append( 'from time import * ' ) - Pydefault.append( 'def default(a,Branch) : ' ) - Pydefault.append( ' sleep(1) ' ) - Pydefault.append( ' return a ' ) - default = GraphSwitchCheckBranch2NOTValid.INode( 'default' , Pydefault ) - default.SetName( 'default' ) - default.SetAuthor( '' ) - default.SetComment( 'Compute Node' ) - default.Coords( 655 , 306 ) - Idefaulta = default.InPort( 'a' , 'long' ) - IdefaultBranch = default.InPort( 'Branch' , 'string' ) - IdefaultGate = default.GetInPort( 'Gate' ) - Odefaulta = default.OutPort( 'a' , 'long' ) - 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 = GraphSwitchCheckBranch2NOTValid.LNode( 'InitLoop' , PyInitLoopSwitch , 'MoreLoop' , PyMoreInitLoopSwitch , 'NextLoop' , PyNextInitLoopSwitch ) - EndOfInitLoopSwitch.SetName( 'EndOfInitLoopSwitch' ) - EndOfInitLoopSwitch.SetAuthor( '' ) - EndOfInitLoopSwitch.SetComment( 'Compute Node' ) - EndOfInitLoopSwitch.Coords( 1073 , 216 ) - 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 = GraphSwitchCheckBranch2NOTValid.SNode( 'Switch' , PySwitch ) - EndOfSwitch.SetName( 'EndOfSwitch' ) - EndOfSwitch.SetAuthor( '' ) - EndOfSwitch.SetComment( 'Compute Node' ) - EndOfSwitch.Coords( 880 , 216 ) - 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 = GraphSwitchCheckBranch2NOTValid.Link( OIsOdda , IEndOfSwitcha ) - - LIsEvenaEndOfSwitcha = GraphSwitchCheckBranch2NOTValid.Link( OIsEvena , IEndOfSwitcha ) - - LBranchNodeBranchEndOfSwitchBranch = GraphSwitchCheckBranch2NOTValid.Link( OBranchNodeBranch , IEndOfSwitchBranch ) - - LBranchNodeBranchIsOddBranch = GraphSwitchCheckBranch2NOTValid.Link( OBranchNodeBranch , IIsOddBranch ) - - LBranchNodeBranchdefaultBranch = GraphSwitchCheckBranch2NOTValid.Link( OBranchNodeBranch , IdefaultBranch ) - - LBranchNodeBranchIsEvenBranch = GraphSwitchCheckBranch2NOTValid.Link( OBranchNodeBranch , IIsEvenBranch ) - - LInitLoopSwitchIndexSwitcha = GraphSwitchCheckBranch2NOTValid.Link( OInitLoopSwitchIndex , ISwitcha ) - - LInitLoopSwitchMinEndOfInitLoopSwitchMin = GraphSwitchCheckBranch2NOTValid.Link( OInitLoopSwitchMin , IEndOfInitLoopSwitchMin ) - - LInitLoopSwitchMaxEndOfInitLoopSwitchMax = GraphSwitchCheckBranch2NOTValid.Link( OInitLoopSwitchMax , IEndOfInitLoopSwitchMax ) - - LSwitchOddIsOddGate = GraphSwitchCheckBranch2NOTValid.Link( OSwitchOdd , IIsOddGate ) - LSwitchOddIsOddGate.AddCoord( 1 , 400 , 121 ) - LSwitchOddIsOddGate.AddCoord( 2 , 401 , 188 ) - - LSwitchEvenIsEvenGate = GraphSwitchCheckBranch2NOTValid.Link( OSwitchEven , IIsEvenGate ) - LSwitchEvenIsEvenGate.AddCoord( 1 , 391 , 568 ) - LSwitchEvenIsEvenGate.AddCoord( 2 , 392 , 208 ) - - LSwitchadefaulta = GraphSwitchCheckBranch2NOTValid.Link( OSwitcha , Idefaulta ) - - LSwitchaIsEvena = GraphSwitchCheckBranch2NOTValid.Link( OSwitcha , IIsEvena ) - - LSwitchaIsOdda = GraphSwitchCheckBranch2NOTValid.Link( OSwitcha , IIsOdda ) - - LSwitchBranchBranchNodeBranch = GraphSwitchCheckBranch2NOTValid.Link( OSwitchBranch , IBranchNodeBranch ) - - LSwitchdefaultdefaultGate = GraphSwitchCheckBranch2NOTValid.Link( OSwitchdefault , IdefaultGate ) - LSwitchdefaultdefaultGate.AddCoord( 1 , 410 , 422 ) - LSwitchdefaultdefaultGate.AddCoord( 2 , 410 , 269 ) - LSwitchdefaultdefaultGate.AddCoord( 3 , 410 , 268 ) - - LSwitchDefaultEndOfSwitchDefault = GraphSwitchCheckBranch2NOTValid.Link( OSwitchDefault , IEndOfSwitchDefault ) - - LEndOfSwitchaEndOfInitLoopSwitchIndex = GraphSwitchCheckBranch2NOTValid.Link( OEndOfSwitcha , IEndOfInitLoopSwitchIndex ) - - LdefaultaEndOfSwitcha = GraphSwitchCheckBranch2NOTValid.Link( Odefaulta , 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' ) - return GraphSwitchCheckBranch2NOTValid - - -GraphSwitchCheckBranch2NOTValid = DefGraphSwitchCheckBranch2NOTValid() diff --git a/Superv/Python/GraphSwitchCheckDefault.py b/Superv/Python/GraphSwitchCheckDefault.py deleted file mode 100644 index 523f0f8..0000000 --- a/Superv/Python/GraphSwitchCheckDefault.py +++ /dev/null @@ -1,289 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphSwitchCheckDefault_1 -# -from SuperV import * - -# Graph creation of GraphSwitchCheckDefault_1 -def DefGraphSwitchCheckDefault_1() : - GraphSwitchCheckDefault_1 = Graph( 'GraphSwitchCheckDefault_1' ) - GraphSwitchCheckDefault_1.SetName( 'GraphSwitchCheckDefault_1' ) - GraphSwitchCheckDefault_1.SetAuthor( 'JR' ) - GraphSwitchCheckDefault_1.SetComment( '' ) - GraphSwitchCheckDefault_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 = GraphSwitchCheckDefault_1.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 = GraphSwitchCheckDefault_1.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 = GraphSwitchCheckDefault_1.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 = GraphSwitchCheckDefault_1.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 = GraphSwitchCheckDefault_1.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' ) - - # 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 = GraphSwitchCheckDefault_1.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 = GraphSwitchCheckDefault_1.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 = GraphSwitchCheckDefault_1.Link( OIsOdda , IEmptyNodea ) - LIsOddaEmptyNodea.AddCoord( 1 , 646 , 78 ) - - LIsEvenaEndOfSwitcha = GraphSwitchCheckDefault_1.Link( OIsEvena , IEndOfSwitcha ) - - LPrintOddBranchEmptyNodeBranch = GraphSwitchCheckDefault_1.Link( OPrintOddBranch , IEmptyNodeBranch ) - - LPrintEvenBranchEndOfSwitchBranch = GraphSwitchCheckDefault_1.Link( OPrintEvenBranch , IEndOfSwitchBranch ) - - LEmptyNodeaEndOfSwitcha = GraphSwitchCheckDefault_1.Link( OEmptyNodea , IEndOfSwitcha ) - - LEmptyNodeBranchEndOfSwitchBranch = GraphSwitchCheckDefault_1.Link( OEmptyNodeBranch , IEndOfSwitchBranch ) - - LInitLoopSwitchIndexSwitcha = GraphSwitchCheckDefault_1.Link( OInitLoopSwitchIndex , ISwitcha ) - - LInitLoopSwitchMinEndOfInitLoopSwitchMin = GraphSwitchCheckDefault_1.Link( OInitLoopSwitchMin , IEndOfInitLoopSwitchMin ) - - LInitLoopSwitchMaxEndOfInitLoopSwitchMax = GraphSwitchCheckDefault_1.Link( OInitLoopSwitchMax , IEndOfInitLoopSwitchMax ) - - LSwitchOddIsOddGate = GraphSwitchCheckDefault_1.Link( OSwitchOdd , IIsOddGate ) - LSwitchOddIsOddGate.AddCoord( 1 , 401 , 101 ) - LSwitchOddIsOddGate.AddCoord( 2 , 401 , 160 ) - - LSwitchOddPrintOddGate = GraphSwitchCheckDefault_1.Link( OSwitchOdd , IPrintOddGate ) - LSwitchOddPrintOddGate.AddCoord( 1 , 401 , 245 ) - LSwitchOddPrintOddGate.AddCoord( 2 , 401 , 159 ) - - LSwitchEvenIsEvenGate = GraphSwitchCheckDefault_1.Link( OSwitchEven , IIsEvenGate ) - LSwitchEvenIsEvenGate.AddCoord( 1 , 392 , 533 ) - LSwitchEvenIsEvenGate.AddCoord( 2 , 392 , 182 ) - - LSwitchEvenPrintEvenGate = GraphSwitchCheckDefault_1.Link( OSwitchEven , IPrintEvenGate ) - LSwitchEvenPrintEvenGate.AddCoord( 1 , 392 , 403 ) - LSwitchEvenPrintEvenGate.AddCoord( 2 , 392 , 181 ) - - LSwitchaIsOdda = GraphSwitchCheckDefault_1.Link( OSwitcha , IIsOdda ) - LSwitchaIsOdda.AddCoord( 1 , 382 , 78 ) - LSwitchaIsOdda.AddCoord( 2 , 382 , 199 ) - - LSwitchaIsEvena = GraphSwitchCheckDefault_1.Link( OSwitcha , IIsEvena ) - LSwitchaIsEvena.AddCoord( 1 , 381 , 509 ) - LSwitchaIsEvena.AddCoord( 2 , 382 , 200 ) - - LSwitchaPrintOdda = GraphSwitchCheckDefault_1.Link( OSwitcha , IPrintOdda ) - - LSwitchaPrintEvena = GraphSwitchCheckDefault_1.Link( OSwitcha , IPrintEvena ) - LSwitchaPrintEvena.AddCoord( 1 , 381 , 361 ) - LSwitchaPrintEvena.AddCoord( 2 , 382 , 200 ) - - LSwitchBranchPrintOddBranch = GraphSwitchCheckDefault_1.Link( OSwitchBranch , IPrintOddBranch ) - - LSwitchBranchPrintEvenBranch = GraphSwitchCheckDefault_1.Link( OSwitchBranch , IPrintEvenBranch ) - LSwitchBranchPrintEvenBranch.AddCoord( 1 , 369 , 381 ) - LSwitchBranchPrintEvenBranch.AddCoord( 2 , 369 , 219 ) - - LSwitchDefaultEndOfSwitchDefault = GraphSwitchCheckDefault_1.Link( OSwitchDefault , IEndOfSwitchDefault ) - - LEndOfSwitchaEndOfInitLoopSwitchIndex = GraphSwitchCheckDefault_1.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 GraphSwitchCheckDefault_1 - - -GraphSwitchCheckDefault_1 = DefGraphSwitchCheckDefault_1() diff --git a/Superv/Python/GraphSwitchCheckDefault1.py b/Superv/Python/GraphSwitchCheckDefault1.py deleted file mode 100644 index 7aeb204..0000000 --- a/Superv/Python/GraphSwitchCheckDefault1.py +++ /dev/null @@ -1,321 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphSwitchCheckDefault1 -# -from SuperV import * - -# Graph creation of GraphSwitchCheckDefault1 -def DefGraphSwitchCheckDefault1() : - GraphSwitchCheckDefault1 = Graph( 'GraphSwitchCheckDefault1' ) - GraphSwitchCheckDefault1.SetName( 'GraphSwitchCheckDefault1' ) - GraphSwitchCheckDefault1.SetAuthor( 'JR' ) - GraphSwitchCheckDefault1.SetComment( '' ) - GraphSwitchCheckDefault1.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 = GraphSwitchCheckDefault1.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 = GraphSwitchCheckDefault1.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 = GraphSwitchCheckDefault1.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 = GraphSwitchCheckDefault1.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 = GraphSwitchCheckDefault1.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 = GraphSwitchCheckDefault1.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 = GraphSwitchCheckDefault1.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 = GraphSwitchCheckDefault1.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 = GraphSwitchCheckDefault1.Link( OIsOdda , IEmptyNodea ) - LIsOddaEmptyNodea.AddCoord( 1 , 646 , 78 ) - - LIsEvenaEndOfSwitcha = GraphSwitchCheckDefault1.Link( OIsEvena , IEndOfSwitcha ) - - LPrintOddBranchEmptyNodeBranch = GraphSwitchCheckDefault1.Link( OPrintOddBranch , IEmptyNodeBranch ) - - LPrintEvenBranchEndOfSwitchBranch = GraphSwitchCheckDefault1.Link( OPrintEvenBranch , IEndOfSwitchBranch ) - - LEmptyNodeaEndOfSwitcha = GraphSwitchCheckDefault1.Link( OEmptyNodea , IEndOfSwitcha ) - - LEmptyNodeBranchEndOfSwitchBranch = GraphSwitchCheckDefault1.Link( OEmptyNodeBranch , IEndOfSwitchBranch ) - - LDefaultaEndOfSwitcha = GraphSwitchCheckDefault1.Link( ODefaulta , IEndOfSwitcha ) - - LDefaultBranchEndOfSwitchBranch = GraphSwitchCheckDefault1.Link( ODefaultBranch , IEndOfSwitchBranch ) - - LInitLoopSwitchIndexSwitcha = GraphSwitchCheckDefault1.Link( OInitLoopSwitchIndex , ISwitcha ) - - LInitLoopSwitchMinEndOfInitLoopSwitchMin = GraphSwitchCheckDefault1.Link( OInitLoopSwitchMin , IEndOfInitLoopSwitchMin ) - - LInitLoopSwitchMaxEndOfInitLoopSwitchMax = GraphSwitchCheckDefault1.Link( OInitLoopSwitchMax , IEndOfInitLoopSwitchMax ) - - LSwitchOddIsOddGate = GraphSwitchCheckDefault1.Link( OSwitchOdd , IIsOddGate ) - LSwitchOddIsOddGate.AddCoord( 1 , 401 , 101 ) - LSwitchOddIsOddGate.AddCoord( 2 , 401 , 160 ) - - LSwitchOddPrintOddGate = GraphSwitchCheckDefault1.Link( OSwitchOdd , IPrintOddGate ) - LSwitchOddPrintOddGate.AddCoord( 1 , 401 , 245 ) - LSwitchOddPrintOddGate.AddCoord( 2 , 401 , 159 ) - - LSwitchEvenIsEvenGate = GraphSwitchCheckDefault1.Link( OSwitchEven , IIsEvenGate ) - LSwitchEvenIsEvenGate.AddCoord( 1 , 392 , 533 ) - LSwitchEvenIsEvenGate.AddCoord( 2 , 392 , 182 ) - - LSwitchEvenPrintEvenGate = GraphSwitchCheckDefault1.Link( OSwitchEven , IPrintEvenGate ) - LSwitchEvenPrintEvenGate.AddCoord( 1 , 392 , 403 ) - LSwitchEvenPrintEvenGate.AddCoord( 2 , 392 , 181 ) - - LSwitchaIsOdda = GraphSwitchCheckDefault1.Link( OSwitcha , IIsOdda ) - LSwitchaIsOdda.AddCoord( 1 , 382 , 78 ) - LSwitchaIsOdda.AddCoord( 2 , 382 , 199 ) - - LSwitchaIsEvena = GraphSwitchCheckDefault1.Link( OSwitcha , IIsEvena ) - LSwitchaIsEvena.AddCoord( 1 , 381 , 509 ) - LSwitchaIsEvena.AddCoord( 2 , 382 , 200 ) - - LSwitchaPrintOdda = GraphSwitchCheckDefault1.Link( OSwitcha , IPrintOdda ) - - LSwitchaPrintEvena = GraphSwitchCheckDefault1.Link( OSwitcha , IPrintEvena ) - LSwitchaPrintEvena.AddCoord( 1 , 381 , 361 ) - LSwitchaPrintEvena.AddCoord( 2 , 382 , 200 ) - - LSwitchaDefaulta = GraphSwitchCheckDefault1.Link( OSwitcha , IDefaulta ) - LSwitchaDefaulta.AddCoord( 1 , 382 , 663 ) - LSwitchaDefaulta.AddCoord( 2 , 382 , 199 ) - - LSwitchBranchPrintOddBranch = GraphSwitchCheckDefault1.Link( OSwitchBranch , IPrintOddBranch ) - - LSwitchBranchPrintEvenBranch = GraphSwitchCheckDefault1.Link( OSwitchBranch , IPrintEvenBranch ) - LSwitchBranchPrintEvenBranch.AddCoord( 1 , 369 , 381 ) - LSwitchBranchPrintEvenBranch.AddCoord( 2 , 369 , 219 ) - - LSwitchBranchDefaultBranch = GraphSwitchCheckDefault1.Link( OSwitchBranch , IDefaultBranch ) - LSwitchBranchDefaultBranch.AddCoord( 1 , 370 , 683 ) - LSwitchBranchDefaultBranch.AddCoord( 2 , 370 , 220 ) - - LSwitchdefaultDefaultGate = GraphSwitchCheckDefault1.Link( OSwitchdefault , IDefaultGate ) - LSwitchdefaultDefaultGate.AddCoord( 1 , 363 , 707 ) - LSwitchdefaultDefaultGate.AddCoord( 2 , 362 , 239 ) - - LSwitchDefaultEndOfSwitchDefault = GraphSwitchCheckDefault1.Link( OSwitchDefault , IEndOfSwitchDefault ) - - LEndOfSwitchaEndOfInitLoopSwitchIndex = GraphSwitchCheckDefault1.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 GraphSwitchCheckDefault1 - - -GraphSwitchCheckDefault1 = DefGraphSwitchCheckDefault1() diff --git a/Superv/Python/GraphSwitchCheckDefault1NOTValid.py b/Superv/Python/GraphSwitchCheckDefault1NOTValid.py deleted file mode 100755 index 683678f..0000000 --- a/Superv/Python/GraphSwitchCheckDefault1NOTValid.py +++ /dev/null @@ -1,320 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# 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() diff --git a/Superv/Python/GraphSwitchCheckDefault2.py b/Superv/Python/GraphSwitchCheckDefault2.py deleted file mode 100644 index bf77099..0000000 --- a/Superv/Python/GraphSwitchCheckDefault2.py +++ /dev/null @@ -1,355 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphSwitchCheckDefault2 -# -from SuperV import * - -# Graph creation of GraphSwitchCheckDefault2 -def DefGraphSwitchCheckDefault2() : - GraphSwitchCheckDefault2 = Graph( 'GraphSwitchCheckDefault2' ) - GraphSwitchCheckDefault2.SetName( 'GraphSwitchCheckDefault2' ) - GraphSwitchCheckDefault2.SetAuthor( 'JR' ) - GraphSwitchCheckDefault2.SetComment( '' ) - GraphSwitchCheckDefault2.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 = GraphSwitchCheckDefault2.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 = GraphSwitchCheckDefault2.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 = GraphSwitchCheckDefault2.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 = GraphSwitchCheckDefault2.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 = GraphSwitchCheckDefault2.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 = GraphSwitchCheckDefault2.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 = GraphSwitchCheckDefault2.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 = GraphSwitchCheckDefault2.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 = GraphSwitchCheckDefault2.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 = GraphSwitchCheckDefault2.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 = GraphSwitchCheckDefault2.Link( OIsOdda , IEmptyNodea ) - LIsOddaEmptyNodea.AddCoord( 1 , 646 , 78 ) - - LIsEvenaEndOfSwitcha = GraphSwitchCheckDefault2.Link( OIsEvena , IEndOfSwitcha ) - - LPrintOddBranchEmptyNodeBranch = GraphSwitchCheckDefault2.Link( OPrintOddBranch , IEmptyNodeBranch ) - - LPrintEvenBranchEndOfSwitchBranch = GraphSwitchCheckDefault2.Link( OPrintEvenBranch , IEndOfSwitchBranch ) - - LEmptyNodeaEndOfSwitcha = GraphSwitchCheckDefault2.Link( OEmptyNodea , IEndOfSwitcha ) - - LEmptyNodeBranchEndOfSwitchBranch = GraphSwitchCheckDefault2.Link( OEmptyNodeBranch , IEndOfSwitchBranch ) - - LDefaultaPutaa = GraphSwitchCheckDefault2.Link( ODefaulta , IPutaa ) - - LDefaultBranchPutBranchBranch = GraphSwitchCheckDefault2.Link( ODefaultBranch , IPutBranchBranch ) - - LInitLoopSwitchIndexSwitcha = GraphSwitchCheckDefault2.Link( OInitLoopSwitchIndex , ISwitcha ) - - LInitLoopSwitchMinEndOfInitLoopSwitchMin = GraphSwitchCheckDefault2.Link( OInitLoopSwitchMin , IEndOfInitLoopSwitchMin ) - - LInitLoopSwitchMaxEndOfInitLoopSwitchMax = GraphSwitchCheckDefault2.Link( OInitLoopSwitchMax , IEndOfInitLoopSwitchMax ) - - LSwitchOddIsOddGate = GraphSwitchCheckDefault2.Link( OSwitchOdd , IIsOddGate ) - LSwitchOddIsOddGate.AddCoord( 1 , 401 , 101 ) - LSwitchOddIsOddGate.AddCoord( 2 , 401 , 160 ) - - LSwitchOddPrintOddGate = GraphSwitchCheckDefault2.Link( OSwitchOdd , IPrintOddGate ) - LSwitchOddPrintOddGate.AddCoord( 1 , 401 , 245 ) - LSwitchOddPrintOddGate.AddCoord( 2 , 401 , 159 ) - - LSwitchEvenIsEvenGate = GraphSwitchCheckDefault2.Link( OSwitchEven , IIsEvenGate ) - LSwitchEvenIsEvenGate.AddCoord( 1 , 392 , 533 ) - LSwitchEvenIsEvenGate.AddCoord( 2 , 392 , 182 ) - - LSwitchEvenPrintEvenGate = GraphSwitchCheckDefault2.Link( OSwitchEven , IPrintEvenGate ) - LSwitchEvenPrintEvenGate.AddCoord( 1 , 392 , 403 ) - LSwitchEvenPrintEvenGate.AddCoord( 2 , 392 , 181 ) - - LSwitchaIsOdda = GraphSwitchCheckDefault2.Link( OSwitcha , IIsOdda ) - LSwitchaIsOdda.AddCoord( 1 , 382 , 78 ) - LSwitchaIsOdda.AddCoord( 2 , 382 , 199 ) - - LSwitchaIsEvena = GraphSwitchCheckDefault2.Link( OSwitcha , IIsEvena ) - LSwitchaIsEvena.AddCoord( 1 , 381 , 509 ) - LSwitchaIsEvena.AddCoord( 2 , 382 , 200 ) - - LSwitchaPrintOdda = GraphSwitchCheckDefault2.Link( OSwitcha , IPrintOdda ) - - LSwitchaPrintEvena = GraphSwitchCheckDefault2.Link( OSwitcha , IPrintEvena ) - LSwitchaPrintEvena.AddCoord( 1 , 381 , 361 ) - LSwitchaPrintEvena.AddCoord( 2 , 382 , 200 ) - - LSwitchaDefaulta = GraphSwitchCheckDefault2.Link( OSwitcha , IDefaulta ) - LSwitchaDefaulta.AddCoord( 1 , 382 , 663 ) - LSwitchaDefaulta.AddCoord( 2 , 382 , 199 ) - - LSwitchBranchPrintOddBranch = GraphSwitchCheckDefault2.Link( OSwitchBranch , IPrintOddBranch ) - - LSwitchBranchPrintEvenBranch = GraphSwitchCheckDefault2.Link( OSwitchBranch , IPrintEvenBranch ) - LSwitchBranchPrintEvenBranch.AddCoord( 1 , 369 , 381 ) - LSwitchBranchPrintEvenBranch.AddCoord( 2 , 369 , 219 ) - - LSwitchBranchDefaultBranch = GraphSwitchCheckDefault2.Link( OSwitchBranch , IDefaultBranch ) - LSwitchBranchDefaultBranch.AddCoord( 1 , 370 , 683 ) - LSwitchBranchDefaultBranch.AddCoord( 2 , 370 , 220 ) - - LSwitchdefaultDefaultGate = GraphSwitchCheckDefault2.Link( OSwitchdefault , IDefaultGate ) - LSwitchdefaultDefaultGate.AddCoord( 1 , 363 , 707 ) - LSwitchdefaultDefaultGate.AddCoord( 2 , 362 , 239 ) - - LSwitchDefaultEndOfSwitchDefault = GraphSwitchCheckDefault2.Link( OSwitchDefault , IEndOfSwitchDefault ) - - LEndOfSwitchaEndOfInitLoopSwitchIndex = GraphSwitchCheckDefault2.Link( OEndOfSwitcha , IEndOfInitLoopSwitchIndex ) - - LPutaaEndOfSwitcha = GraphSwitchCheckDefault2.Link( OPutaa , IEndOfSwitcha ) - - LPutBranchBranchEndOfSwitchBranch = GraphSwitchCheckDefault2.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 GraphSwitchCheckDefault2 - - -GraphSwitchCheckDefault2 = DefGraphSwitchCheckDefault2() diff --git a/Superv/Python/GraphSwitchCheckDefault2NOTValid.py b/Superv/Python/GraphSwitchCheckDefault2NOTValid.py deleted file mode 100755 index 263ef8c..0000000 --- a/Superv/Python/GraphSwitchCheckDefault2NOTValid.py +++ /dev/null @@ -1,359 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# 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() diff --git a/Superv/Python/GraphSwitchCheckDefault2NOTValid1.py b/Superv/Python/GraphSwitchCheckDefault2NOTValid1.py deleted file mode 100755 index afca059..0000000 --- a/Superv/Python/GraphSwitchCheckDefault2NOTValid1.py +++ /dev/null @@ -1,319 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# 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() diff --git a/Superv/Python/GraphSwitchCheckDefault2NOTValid2.py b/Superv/Python/GraphSwitchCheckDefault2NOTValid2.py deleted file mode 100644 index c595440..0000000 --- a/Superv/Python/GraphSwitchCheckDefault2NOTValid2.py +++ /dev/null @@ -1,359 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphSwitchCheckDefault2NOTValid2_1 -# -from SuperV import * - -# Graph creation of GraphSwitchCheckDefault2NOTValid2_1 -def DefGraphSwitchCheckDefault2NOTValid2_1() : - GraphSwitchCheckDefault2NOTValid2_1 = Graph( 'GraphSwitchCheckDefault2NOTValid2_1' ) - GraphSwitchCheckDefault2NOTValid2_1.SetName( 'GraphSwitchCheckDefault2NOTValid2_1' ) - GraphSwitchCheckDefault2NOTValid2_1.SetAuthor( 'JR' ) - GraphSwitchCheckDefault2NOTValid2_1.SetComment( '' ) - GraphSwitchCheckDefault2NOTValid2_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 = GraphSwitchCheckDefault2NOTValid2_1.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_1.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_1.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_1.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_1.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_1.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_1.INode( 'Puta' , PyPuta ) - Puta.SetName( 'Puta' ) - Puta.SetAuthor( '' ) - Puta.SetComment( 'Compute Node' ) - Puta.Coords( 653 , 414 ) - 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_1.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_1.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_1.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_1.Link( OIsOdda , IEmptyNodea ) - LIsOddaEmptyNodea.AddCoord( 1 , 646 , 78 ) - - LIsEvenaEndOfSwitcha = GraphSwitchCheckDefault2NOTValid2_1.Link( OIsEvena , IEndOfSwitcha ) - - LIsEvenaPutaa = GraphSwitchCheckDefault2NOTValid2_1.Link( OIsEvena , IPutaa ) - - LPrintOddBranchEmptyNodeBranch = GraphSwitchCheckDefault2NOTValid2_1.Link( OPrintOddBranch , IEmptyNodeBranch ) - - LPrintEvenBranchEndOfSwitchBranch = GraphSwitchCheckDefault2NOTValid2_1.Link( OPrintEvenBranch , IEndOfSwitchBranch ) - - LEmptyNodeaEndOfSwitcha = GraphSwitchCheckDefault2NOTValid2_1.Link( OEmptyNodea , IEndOfSwitcha ) - - LEmptyNodeBranchEndOfSwitchBranch = GraphSwitchCheckDefault2NOTValid2_1.Link( OEmptyNodeBranch , IEndOfSwitchBranch ) - - LDefaultaEndOfSwitcha = GraphSwitchCheckDefault2NOTValid2_1.Link( ODefaulta , IEndOfSwitcha ) - - LDefaultBranchEndOfSwitchBranch = GraphSwitchCheckDefault2NOTValid2_1.Link( ODefaultBranch , IEndOfSwitchBranch ) - - LDefaultBranchPutBranchBranch = GraphSwitchCheckDefault2NOTValid2_1.Link( ODefaultBranch , IPutBranchBranch ) - - LInitLoopSwitchIndexSwitcha = GraphSwitchCheckDefault2NOTValid2_1.Link( OInitLoopSwitchIndex , ISwitcha ) - - LInitLoopSwitchMinEndOfInitLoopSwitchMin = GraphSwitchCheckDefault2NOTValid2_1.Link( OInitLoopSwitchMin , IEndOfInitLoopSwitchMin ) - - LInitLoopSwitchMaxEndOfInitLoopSwitchMax = GraphSwitchCheckDefault2NOTValid2_1.Link( OInitLoopSwitchMax , IEndOfInitLoopSwitchMax ) - - LSwitchOddIsOddGate = GraphSwitchCheckDefault2NOTValid2_1.Link( OSwitchOdd , IIsOddGate ) - LSwitchOddIsOddGate.AddCoord( 1 , 401 , 101 ) - LSwitchOddIsOddGate.AddCoord( 2 , 401 , 160 ) - - LSwitchOddPrintOddGate = GraphSwitchCheckDefault2NOTValid2_1.Link( OSwitchOdd , IPrintOddGate ) - LSwitchOddPrintOddGate.AddCoord( 1 , 401 , 245 ) - LSwitchOddPrintOddGate.AddCoord( 2 , 401 , 159 ) - - LSwitchEvenIsEvenGate = GraphSwitchCheckDefault2NOTValid2_1.Link( OSwitchEven , IIsEvenGate ) - LSwitchEvenIsEvenGate.AddCoord( 1 , 392 , 533 ) - LSwitchEvenIsEvenGate.AddCoord( 2 , 392 , 182 ) - - LSwitchEvenPrintEvenGate = GraphSwitchCheckDefault2NOTValid2_1.Link( OSwitchEven , IPrintEvenGate ) - LSwitchEvenPrintEvenGate.AddCoord( 1 , 392 , 403 ) - LSwitchEvenPrintEvenGate.AddCoord( 2 , 392 , 181 ) - - LSwitchaIsOdda = GraphSwitchCheckDefault2NOTValid2_1.Link( OSwitcha , IIsOdda ) - LSwitchaIsOdda.AddCoord( 1 , 382 , 78 ) - LSwitchaIsOdda.AddCoord( 2 , 382 , 199 ) - - LSwitchaIsEvena = GraphSwitchCheckDefault2NOTValid2_1.Link( OSwitcha , IIsEvena ) - LSwitchaIsEvena.AddCoord( 1 , 381 , 509 ) - LSwitchaIsEvena.AddCoord( 2 , 382 , 200 ) - - LSwitchaPrintOdda = GraphSwitchCheckDefault2NOTValid2_1.Link( OSwitcha , IPrintOdda ) - - LSwitchaPrintEvena = GraphSwitchCheckDefault2NOTValid2_1.Link( OSwitcha , IPrintEvena ) - LSwitchaPrintEvena.AddCoord( 1 , 381 , 361 ) - LSwitchaPrintEvena.AddCoord( 2 , 382 , 200 ) - - LSwitchaDefaulta = GraphSwitchCheckDefault2NOTValid2_1.Link( OSwitcha , IDefaulta ) - LSwitchaDefaulta.AddCoord( 1 , 382 , 663 ) - LSwitchaDefaulta.AddCoord( 2 , 382 , 199 ) - - LSwitchBranchPrintOddBranch = GraphSwitchCheckDefault2NOTValid2_1.Link( OSwitchBranch , IPrintOddBranch ) - - LSwitchBranchPrintEvenBranch = GraphSwitchCheckDefault2NOTValid2_1.Link( OSwitchBranch , IPrintEvenBranch ) - LSwitchBranchPrintEvenBranch.AddCoord( 1 , 369 , 381 ) - LSwitchBranchPrintEvenBranch.AddCoord( 2 , 369 , 219 ) - - LSwitchBranchDefaultBranch = GraphSwitchCheckDefault2NOTValid2_1.Link( OSwitchBranch , IDefaultBranch ) - LSwitchBranchDefaultBranch.AddCoord( 1 , 370 , 683 ) - LSwitchBranchDefaultBranch.AddCoord( 2 , 370 , 220 ) - - LSwitchdefaultDefaultGate = GraphSwitchCheckDefault2NOTValid2_1.Link( OSwitchdefault , IDefaultGate ) - LSwitchdefaultDefaultGate.AddCoord( 1 , 363 , 707 ) - LSwitchdefaultDefaultGate.AddCoord( 2 , 362 , 239 ) - - LSwitchDefaultEndOfSwitchDefault = GraphSwitchCheckDefault2NOTValid2_1.Link( OSwitchDefault , IEndOfSwitchDefault ) - - LEndOfSwitchaEndOfInitLoopSwitchIndex = GraphSwitchCheckDefault2NOTValid2_1.Link( OEndOfSwitcha , IEndOfInitLoopSwitchIndex ) - - LPutaaEndOfSwitcha = GraphSwitchCheckDefault2NOTValid2_1.Link( OPutaa , IEndOfSwitcha ) - - LPutBranchBranchEndOfSwitchBranch = GraphSwitchCheckDefault2NOTValid2_1.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_1 - - -GraphSwitchCheckDefault2NOTValid2_1 = DefGraphSwitchCheckDefault2NOTValid2_1() diff --git a/Superv/Python/GraphSwitchCheckNoDefault2.py b/Superv/Python/GraphSwitchCheckNoDefault2.py deleted file mode 100644 index 9405297..0000000 --- a/Superv/Python/GraphSwitchCheckNoDefault2.py +++ /dev/null @@ -1,353 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphSwitchCheckNoDefault2 -# -from SuperV import * - -# Graph creation of GraphSwitchCheckNoDefault2 -def DefGraphSwitchCheckNoDefault2() : - GraphSwitchCheckNoDefault2 = Graph( 'GraphSwitchCheckNoDefault2' ) - GraphSwitchCheckNoDefault2.SetName( 'GraphSwitchCheckNoDefault2' ) - GraphSwitchCheckNoDefault2.SetAuthor( 'JR' ) - GraphSwitchCheckNoDefault2.SetComment( '' ) - GraphSwitchCheckNoDefault2.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 = GraphSwitchCheckNoDefault2.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 = GraphSwitchCheckNoDefault2.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 = GraphSwitchCheckNoDefault2.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 = GraphSwitchCheckNoDefault2.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 = GraphSwitchCheckNoDefault2.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 = GraphSwitchCheckNoDefault2.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 = GraphSwitchCheckNoDefault2.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 = GraphSwitchCheckNoDefault2.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 = GraphSwitchCheckNoDefault2.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 = GraphSwitchCheckNoDefault2.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 = GraphSwitchCheckNoDefault2.Link( OIsOdda , IEmptyNodea ) - LIsOddaEmptyNodea.AddCoord( 1 , 646 , 78 ) - - LIsEvenaEndOfSwitcha = GraphSwitchCheckNoDefault2.Link( OIsEvena , IEndOfSwitcha ) - - LPrintOddBranchEmptyNodeBranch = GraphSwitchCheckNoDefault2.Link( OPrintOddBranch , IEmptyNodeBranch ) - - LPrintEvenBranchEndOfSwitchBranch = GraphSwitchCheckNoDefault2.Link( OPrintEvenBranch , IEndOfSwitchBranch ) - - LEmptyNodeaEndOfSwitcha = GraphSwitchCheckNoDefault2.Link( OEmptyNodea , IEndOfSwitcha ) - - LEmptyNodeBranchEndOfSwitchBranch = GraphSwitchCheckNoDefault2.Link( OEmptyNodeBranch , IEndOfSwitchBranch ) - - LDefaultaPutaa = GraphSwitchCheckNoDefault2.Link( ODefaulta , IPutaa ) - - LDefaultBranchPutBranchBranch = GraphSwitchCheckNoDefault2.Link( ODefaultBranch , IPutBranchBranch ) - - LInitLoopSwitchIndexSwitcha = GraphSwitchCheckNoDefault2.Link( OInitLoopSwitchIndex , ISwitcha ) - - LInitLoopSwitchMinEndOfInitLoopSwitchMin = GraphSwitchCheckNoDefault2.Link( OInitLoopSwitchMin , IEndOfInitLoopSwitchMin ) - - LInitLoopSwitchMaxEndOfInitLoopSwitchMax = GraphSwitchCheckNoDefault2.Link( OInitLoopSwitchMax , IEndOfInitLoopSwitchMax ) - - LSwitchOddIsOddGate = GraphSwitchCheckNoDefault2.Link( OSwitchOdd , IIsOddGate ) - LSwitchOddIsOddGate.AddCoord( 1 , 401 , 101 ) - LSwitchOddIsOddGate.AddCoord( 2 , 401 , 160 ) - - LSwitchOddPrintOddGate = GraphSwitchCheckNoDefault2.Link( OSwitchOdd , IPrintOddGate ) - LSwitchOddPrintOddGate.AddCoord( 1 , 401 , 245 ) - LSwitchOddPrintOddGate.AddCoord( 2 , 401 , 159 ) - - LSwitchEvenIsEvenGate = GraphSwitchCheckNoDefault2.Link( OSwitchEven , IIsEvenGate ) - LSwitchEvenIsEvenGate.AddCoord( 1 , 392 , 533 ) - LSwitchEvenIsEvenGate.AddCoord( 2 , 392 , 182 ) - - LSwitchEvenPrintEvenGate = GraphSwitchCheckNoDefault2.Link( OSwitchEven , IPrintEvenGate ) - LSwitchEvenPrintEvenGate.AddCoord( 1 , 392 , 403 ) - LSwitchEvenPrintEvenGate.AddCoord( 2 , 392 , 181 ) - - LSwitchaIsOdda = GraphSwitchCheckNoDefault2.Link( OSwitcha , IIsOdda ) - LSwitchaIsOdda.AddCoord( 1 , 382 , 78 ) - LSwitchaIsOdda.AddCoord( 2 , 382 , 199 ) - - LSwitchaIsEvena = GraphSwitchCheckNoDefault2.Link( OSwitcha , IIsEvena ) - LSwitchaIsEvena.AddCoord( 1 , 381 , 509 ) - LSwitchaIsEvena.AddCoord( 2 , 382 , 200 ) - - LSwitchaPrintOdda = GraphSwitchCheckNoDefault2.Link( OSwitcha , IPrintOdda ) - - LSwitchaPrintEvena = GraphSwitchCheckNoDefault2.Link( OSwitcha , IPrintEvena ) - LSwitchaPrintEvena.AddCoord( 1 , 381 , 361 ) - LSwitchaPrintEvena.AddCoord( 2 , 382 , 200 ) - - LSwitchaDefaulta = GraphSwitchCheckNoDefault2.Link( OSwitcha , IDefaulta ) - LSwitchaDefaulta.AddCoord( 1 , 382 , 663 ) - LSwitchaDefaulta.AddCoord( 2 , 382 , 199 ) - - LSwitchBranchPrintOddBranch = GraphSwitchCheckNoDefault2.Link( OSwitchBranch , IPrintOddBranch ) - - LSwitchBranchPrintEvenBranch = GraphSwitchCheckNoDefault2.Link( OSwitchBranch , IPrintEvenBranch ) - LSwitchBranchPrintEvenBranch.AddCoord( 1 , 369 , 381 ) - LSwitchBranchPrintEvenBranch.AddCoord( 2 , 369 , 219 ) - - LSwitchBranchDefaultBranch = GraphSwitchCheckNoDefault2.Link( OSwitchBranch , IDefaultBranch ) - LSwitchBranchDefaultBranch.AddCoord( 1 , 370 , 683 ) - LSwitchBranchDefaultBranch.AddCoord( 2 , 370 , 220 ) - - LSwitchdefaultDefaultGate = GraphSwitchCheckNoDefault2.Link( OSwitchdefault , IDefaultGate ) - LSwitchdefaultDefaultGate.AddCoord( 1 , 363 , 707 ) - LSwitchdefaultDefaultGate.AddCoord( 2 , 362 , 239 ) - - LEndOfSwitchaEndOfInitLoopSwitchIndex = GraphSwitchCheckNoDefault2.Link( OEndOfSwitcha , IEndOfInitLoopSwitchIndex ) - - LPutaaEndOfSwitcha = GraphSwitchCheckNoDefault2.Link( OPutaa , IEndOfSwitcha ) - - LPutBranchBranchEndOfSwitchBranch = GraphSwitchCheckNoDefault2.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 GraphSwitchCheckNoDefault2 - - -GraphSwitchCheckNoDefault2 = DefGraphSwitchCheckNoDefault2() diff --git a/Superv/Python/GraphSwitchCrash.py b/Superv/Python/GraphSwitchCrash.py deleted file mode 100755 index 4155a25..0000000 --- a/Superv/Python/GraphSwitchCrash.py +++ /dev/null @@ -1,281 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphSwitchCrash_1 -# -from SuperV import * - -# Graph creation of GraphSwitchCrash_1 -def DefGraphSwitchCrash_1() : - GraphSwitchCrash_1 = Graph( 'GraphSwitchCrash_1' ) - GraphSwitchCrash_1.SetName( 'GraphSwitchCrash_1' ) - GraphSwitchCrash_1.SetAuthor( '' ) - GraphSwitchCrash_1.SetComment( '' ) - GraphSwitchCrash_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 (IsOdd)" ' ) - PyIsOdd.append( ' sleep( 1 ) ' ) - PyIsOdd.append( ' return a ' ) - IsOdd = GraphSwitchCrash_1.INode( 'IsOdd' , PyIsOdd ) - IsOdd.SetName( 'IsOdd' ) - IsOdd.SetAuthor( '' ) - IsOdd.SetComment( 'Python function' ) - IsOdd.Coords( 387 , 58 ) - IIsOdda = IsOdd.InPort( 'a' , 'long' ) - IIsOddGate = IsOdd.GetInPort( 'Gate' ) - OIsOdda = IsOdd.OutPort( 'a' , 'long' ) - OIsOddGate = IsOdd.GetOutPort( 'Gate' ) - - PyIsOdd_1 = [] - PyIsOdd_1.append( 'from time import * ' ) - PyIsOdd_1.append( 'def IsOdd(a,Even) : ' ) - PyIsOdd_1.append( ' print a,"IsOdd (IsOdd_1)" ' ) - PyIsOdd_1.append( ' sleep( 1 ) ' ) - PyIsOdd_1.append( ' return a ' ) - IsOdd_1 = GraphSwitchCrash_1.INode( 'IsOdd' , PyIsOdd_1 ) - IsOdd_1.SetName( 'IsOdd_1' ) - IsOdd_1.SetAuthor( '' ) - IsOdd_1.SetComment( 'Python function' ) - IsOdd_1.Coords( 417 , 287 ) - IIsOdd_1a = IsOdd_1.InPort( 'a' , 'long' ) - IIsOdd_1Even = IsOdd_1.InPort( 'Even' , 'boolean' ) - IIsOdd_1Gate = IsOdd_1.GetInPort( 'Gate' ) - OIsOdd_1a = IsOdd_1.OutPort( 'a' , 'long' ) - OIsOdd_1Gate = IsOdd_1.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyInitLoopSwitch = [] - PyInitLoopSwitch.append( 'def InitLoop(Index,Min,Max) : ' ) - PyInitLoopSwitch.append( ' return Index,Min,Max ' ) - PyMoreInitLoopSwitch = [] - PyMoreInitLoopSwitch.append( 'def MoreLoop(Index,Min,Max) : ' ) - PyMoreInitLoopSwitch.append( ' if Index <= Max : ' ) - 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 = GraphSwitchCrash_1.LNode( 'InitLoop' , PyInitLoopSwitch , 'MoreLoop' , PyMoreInitLoopSwitch , 'NextLoop' , PyNextInitLoopSwitch ) - EndOfInitLoopSwitch.SetName( 'EndOfInitLoopSwitch' ) - EndOfInitLoopSwitch.SetAuthor( '' ) - EndOfInitLoopSwitch.SetComment( 'Compute Node' ) - EndOfInitLoopSwitch.Coords( 766 , 127 ) - 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 ) - - PyInitLoop = [] - PyInitLoop.append( 'def InitLoop(Index,Min,Max) : ' ) - PyInitLoop.append( ' return Index,Min,Max ' ) - PyMoreInitLoop = [] - PyMoreInitLoop.append( 'def MoreLoop(Index,Min,Max) : ' ) - PyMoreInitLoop.append( ' if Index <= Max : ' ) - PyMoreInitLoop.append( ' DoLoop = 1 ' ) - PyMoreInitLoop.append( ' else : ' ) - PyMoreInitLoop.append( ' DoLoop = 0 ' ) - PyMoreInitLoop.append( ' return DoLoop,Index,Min,Max ' ) - PyNextInitLoop = [] - PyNextInitLoop.append( 'def NextLoop(Index,Min,Max) : ' ) - PyNextInitLoop.append( ' Index = Index + 1 ' ) - PyNextInitLoop.append( ' return Index,Min,Max ' ) - InitLoop,EndOfInitLoop = GraphSwitchCrash_1.LNode( 'InitLoop' , PyInitLoop , 'MoreLoop' , PyMoreInitLoop , 'NextLoop' , PyNextInitLoop ) - EndOfInitLoop.SetName( 'EndOfInitLoop' ) - EndOfInitLoop.SetAuthor( '' ) - EndOfInitLoop.SetComment( 'Compute Node' ) - EndOfInitLoop.Coords( 783 , 381 ) - PyEndOfInitLoop = [] - EndOfInitLoop.SetPyFunction( '' , PyEndOfInitLoop ) - IInitLoopDoLoop = InitLoop.GetInPort( 'DoLoop' ) - IInitLoopIndex = InitLoop.InPort( 'Index' , 'long' ) - IInitLoopMin = InitLoop.InPort( 'Min' , 'long' ) - IInitLoopMax = InitLoop.InPort( 'Max' , 'long' ) - IInitLoopGate = InitLoop.GetInPort( 'Gate' ) - OInitLoopDoLoop = InitLoop.GetOutPort( 'DoLoop' ) - OInitLoopIndex = InitLoop.GetOutPort( 'Index' ) - OInitLoopMin = InitLoop.GetOutPort( 'Min' ) - OInitLoopMax = InitLoop.GetOutPort( 'Max' ) - IEndOfInitLoopDoLoop = EndOfInitLoop.GetInPort( 'DoLoop' ) - IEndOfInitLoopIndex = EndOfInitLoop.GetInPort( 'Index' ) - IEndOfInitLoopMin = EndOfInitLoop.GetInPort( 'Min' ) - IEndOfInitLoopMax = EndOfInitLoop.GetInPort( 'Max' ) - IEndOfInitLoopGate = EndOfInitLoop.GetInPort( 'Gate' ) - OEndOfInitLoopDoLoop = EndOfInitLoop.GetOutPort( 'DoLoop' ) - OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) - OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) - OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) - OEndOfInitLoopGate = EndOfInitLoop.GetOutPort( 'Gate' ) - InitLoop.SetName( 'InitLoop' ) - InitLoop.SetAuthor( '' ) - InitLoop.SetComment( 'Compute Node' ) - InitLoop.Coords( 10 , 388 ) - - # Creation of Switch Nodes - PySwitch = [] - PySwitch.append( 'from time import * ' ) - PySwitch.append( 'def Switch(a) : ' ) - PySwitch.append( ' if ( a & 1 ) == 0 : ' ) - PySwitch.append( ' sleep(1) ' ) - PySwitch.append( ' return a & 1,1-(a&1),a ' ) - Switch,EndOfSwitch = GraphSwitchCrash_1.SNode( 'Switch' , PySwitch ) - EndOfSwitch.SetName( 'EndOfSwitch' ) - EndOfSwitch.SetAuthor( '' ) - EndOfSwitch.SetComment( 'Compute Node' ) - EndOfSwitch.Coords( 587 , 126 ) - PyEndOfSwitch = [] - EndOfSwitch.SetPyFunction( '' , 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( 186 , 130 ) - ISwitcha = Switch.InPort( 'a' , 'long' ) - ISwitchGate = Switch.GetInPort( 'Gate' ) - OSwitchOdd = Switch.OutPort( 'Odd' , 'long' ) - OSwitchEven = Switch.OutPort( 'Even' , 'int' ) - OSwitcha = Switch.OutPort( 'a' , 'int' ) - OSwitchDefault = Switch.GetOutPort( 'Default' ) - - PySwitch_1 = [] - PySwitch_1.append( 'from time import * ' ) - PySwitch_1.append( 'def Switch(a) : ' ) - PySwitch_1.append( ' if ( a & 1 ) == 0 : ' ) - PySwitch_1.append( ' sleep(1) ' ) - PySwitch_1.append( ' return a & 1,1-(a&1),a ' ) - Switch_1,EndSwitch = GraphSwitchCrash_1.SNode( 'Switch' , PySwitch_1 ) - EndSwitch.SetName( 'EndSwitch' ) - EndSwitch.SetAuthor( '' ) - EndSwitch.SetComment( 'Compute Node' ) - EndSwitch.Coords( 605 , 382 ) - PyEndSwitch = [] - EndSwitch.SetPyFunction( '' , PyEndSwitch ) - IEndSwitcha = EndSwitch.InPort( 'a' , 'long' ) - IEndSwitchDefault = EndSwitch.GetInPort( 'Default' ) - OEndSwitcha = EndSwitch.OutPort( 'a' , 'long' ) - OEndSwitchGate = EndSwitch.GetOutPort( 'Gate' ) - Switch_1.SetName( 'Switch_1' ) - Switch_1.SetAuthor( '' ) - Switch_1.SetComment( 'Compute Node' ) - Switch_1.Coords( 193 , 388 ) - ISwitch_1a = Switch_1.InPort( 'a' , 'long' ) - ISwitch_1Gate = Switch_1.GetInPort( 'Gate' ) - OSwitch_1Odd = Switch_1.OutPort( 'Odd' , 'long' ) - OSwitch_1Even = Switch_1.OutPort( 'Even' , 'int' ) - OSwitch_1a = Switch_1.OutPort( 'a' , 'int' ) - OSwitch_1Default = Switch_1.GetOutPort( 'Default' ) - - # Creation of Links - LIsOddaEndOfSwitcha = GraphSwitchCrash_1.Link( OIsOdda , IEndOfSwitcha ) - LIsOddaEndOfSwitcha.AddCoord( 1 , 572 , 157 ) - LIsOddaEndOfSwitcha.AddCoord( 2 , 572 , 130 ) - - LInitLoopSwitchIndexSwitcha = GraphSwitchCrash_1.Link( OInitLoopSwitchIndex , ISwitcha ) - - LInitLoopSwitchMinEndOfInitLoopSwitchMin = GraphSwitchCrash_1.Link( OInitLoopSwitchMin , IEndOfInitLoopSwitchMin ) - - LInitLoopSwitchMaxEndOfInitLoopSwitchMax = GraphSwitchCrash_1.Link( OInitLoopSwitchMax , IEndOfInitLoopSwitchMax ) - - LSwitchOddIsOddGate = GraphSwitchCrash_1.Link( OSwitchOdd , IIsOddGate ) - - LSwitchaIsOdda = GraphSwitchCrash_1.Link( OSwitcha , IIsOdda ) - LSwitchaIsOdda.AddCoord( 1 , 365 , 129 ) - LSwitchaIsOdda.AddCoord( 2 , 365 , 201 ) - - LSwitchDefaultEndOfSwitchDefault = GraphSwitchCrash_1.Link( OSwitchDefault , IEndOfSwitchDefault ) - - LEndOfSwitchaEndOfInitLoopSwitchIndex = GraphSwitchCrash_1.Link( OEndOfSwitcha , IEndOfInitLoopSwitchIndex ) - - LIsOdd_1aEndSwitcha = GraphSwitchCrash_1.Link( OIsOdd_1a , IEndSwitcha ) - LIsOdd_1aEndSwitcha.AddCoord( 1 , 593 , 411 ) - LIsOdd_1aEndSwitcha.AddCoord( 2 , 593 , 358 ) - - LInitLoopIndexSwitch_1a = GraphSwitchCrash_1.Link( OInitLoopIndex , ISwitch_1a ) - - LInitLoopMinEndOfInitLoopMin = GraphSwitchCrash_1.Link( OInitLoopMin , IEndOfInitLoopMin ) - - LInitLoopMaxEndOfInitLoopMax = GraphSwitchCrash_1.Link( OInitLoopMax , IEndOfInitLoopMax ) - - LSwitch_1OddIsOdd_1Gate = GraphSwitchCrash_1.Link( OSwitch_1Odd , IIsOdd_1Gate ) - - LSwitch_1EvenIsOdd_1Even = GraphSwitchCrash_1.Link( OSwitch_1Even , IIsOdd_1Even ) - - LSwitch_1aIsOdd_1a = GraphSwitchCrash_1.Link( OSwitch_1a , IIsOdd_1a ) - LSwitch_1aIsOdd_1a.AddCoord( 1 , 377 , 358 ) - LSwitch_1aIsOdd_1a.AddCoord( 2 , 377 , 460 ) - - LSwitch_1DefaultEndSwitchDefault = GraphSwitchCrash_1.Link( OSwitch_1Default , IEndSwitchDefault ) - - LEndSwitchaEndOfInitLoopIndex = GraphSwitchCrash_1.Link( OEndSwitcha , IEndOfInitLoopIndex ) - - # Input datas - IInitLoopSwitchIndex.Input( 0 ) - IInitLoopSwitchMin.Input( 0 ) - IInitLoopSwitchMax.Input( 23 ) - IInitLoopIndex.Input( 0 ) - IInitLoopMin.Input( 0 ) - IInitLoopMax.Input( 31 ) - - # Output Ports of the graph - #OEndOfInitLoopSwitchIndex = EndOfInitLoopSwitch.GetOutPort( 'Index' ) - #OEndOfInitLoopSwitchMin = EndOfInitLoopSwitch.GetOutPort( 'Min' ) - #OEndOfInitLoopSwitchMax = EndOfInitLoopSwitch.GetOutPort( 'Max' ) - #OSwitchEven = Switch.GetOutPort( 'Even' ) - #OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) - #OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) - #OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) - return GraphSwitchCrash_1 - - -GraphSwitchCrash_1 = DefGraphSwitchCrash_1() diff --git a/Superv/Python/GraphSwitchErrExec.py b/Superv/Python/GraphSwitchErrExec.py deleted file mode 100644 index 5c904b8..0000000 --- a/Superv/Python/GraphSwitchErrExec.py +++ /dev/null @@ -1,185 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphSwitchErrExec -# -from SuperV import * - -# Graph creation of GraphSwitchErrExec -def DefGraphSwitchErrExec() : - GraphSwitchErrExec = Graph( 'GraphSwitchErrExec' ) - GraphSwitchErrExec.SetName( 'GraphSwitchErrExec' ) - GraphSwitchErrExec.SetAuthor( '' ) - GraphSwitchErrExec.SetComment( '' ) - GraphSwitchErrExec.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 = GraphSwitchErrExec.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 = GraphSwitchErrExec.INode( 'IsEven' , PyIsEven ) - IsEven.SetName( 'IsEven' ) - IsEven.SetAuthor( '' ) - IsEven.SetComment( 'Compute Node' ) - IsEven.Coords( 397 , 279 ) - IIsEvena = IsEven.InPort( 'a' , 'long' ) - IIsEvenGate = IsEven.GetInPort( 'Gate' ) - OIsEvena = IsEven.OutPort( 'a' , 'long' ) - OIsEvenGate = IsEven.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 = GraphSwitchErrExec.LNode( 'InitLoop' , PyInitLoopSwitch , 'MoreLoop' , PyMoreInitLoopSwitch , 'NextLoop' , PyNextInitLoopSwitch ) - EndOfInitLoopSwitch.SetName( 'EndOfInitLoopSwitch' ) - EndOfInitLoopSwitch.SetAuthor( '' ) - EndOfInitLoopSwitch.SetComment( 'Compute Node' ) - EndOfInitLoopSwitch.Coords( 766 , 127 ) - 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( ' if a == 0 : ' ) - PySwitch.append( ' return 0,0,a ' ) - PySwitch.append( ' if a < 0 : ' ) - PySwitch.append( ' return 1,1,a ' ) - PySwitch.append( ' if ( a & 1 ) == 0 : ' ) - PySwitch.append( ' sleep(1) ' ) - PySwitch.append( ' return a & 1,1-(a&1),a ' ) - Switch,EndOfSwitch = GraphSwitchErrExec.SNode( 'Switch' , PySwitch ) - EndOfSwitch.SetName( 'EndOfSwitch' ) - EndOfSwitch.SetAuthor( '' ) - EndOfSwitch.SetComment( 'Compute Node' ) - EndOfSwitch.Coords( 580 , 147 ) - 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' ) - OSwitchDefault = Switch.GetOutPort( 'Default' ) - - # Creation of Links - LIsOddaEndOfSwitcha = GraphSwitchErrExec.Link( OIsOdda , IEndOfSwitcha ) - - LInitLoopSwitchIndexSwitcha = GraphSwitchErrExec.Link( OInitLoopSwitchIndex , ISwitcha ) - - LInitLoopSwitchMinEndOfInitLoopSwitchMin = GraphSwitchErrExec.Link( OInitLoopSwitchMin , IEndOfInitLoopSwitchMin ) - - LInitLoopSwitchMaxEndOfInitLoopSwitchMax = GraphSwitchErrExec.Link( OInitLoopSwitchMax , IEndOfInitLoopSwitchMax ) - - LIsEvenaEndOfSwitcha = GraphSwitchErrExec.Link( OIsEvena , IEndOfSwitcha ) - - LSwitchOddIsOddGate = GraphSwitchErrExec.Link( OSwitchOdd , IIsOddGate ) - - LSwitchEvenIsEvenGate = GraphSwitchErrExec.Link( OSwitchEven , IIsEvenGate ) - - LSwitchaIsOdda = GraphSwitchErrExec.Link( OSwitcha , IIsOdda ) - - LSwitchaIsEvena = GraphSwitchErrExec.Link( OSwitcha , IIsEvena ) - - LSwitchDefaultEndOfSwitchDefault = GraphSwitchErrExec.Link( OSwitchDefault , IEndOfSwitchDefault ) - - LEndOfSwitchaEndOfInitLoopSwitchIndex = GraphSwitchErrExec.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 GraphSwitchErrExec - - -GraphSwitchErrExec = DefGraphSwitchErrExec() diff --git a/Superv/Python/GraphSwitchExecutable.py b/Superv/Python/GraphSwitchExecutable.py deleted file mode 100644 index 5e100c9..0000000 --- a/Superv/Python/GraphSwitchExecutable.py +++ /dev/null @@ -1,169 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphSwitchExecutable -# -from SuperV import * - -# Graph creation of GraphSwitchExecutable -def DefGraphSwitchExecutable() : - GraphSwitchExecutable = Graph( 'GraphSwitchExecutable' ) - GraphSwitchExecutable.SetName( 'GraphSwitchExecutable' ) - GraphSwitchExecutable.SetAuthor( '' ) - GraphSwitchExecutable.SetComment( '' ) - GraphSwitchExecutable.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 = GraphSwitchExecutable.INode( 'IsOdd' , PyIsOdd ) - IsOdd.SetName( 'IsOdd' ) - IsOdd.SetAuthor( '' ) - IsOdd.SetComment( 'Python function' ) - IsOdd.Coords( 389 , 65 ) - IIsOdda = IsOdd.InPort( 'a' , 'long' ) - IIsOddGate = IsOdd.GetInPort( 'Gate' ) - OIsOdda = IsOdd.OutPort( 'a' , 'long' ) - OIsOddGate = IsOdd.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyInitLoopSwitch = [] - PyInitLoopSwitch.append( 'def InitLoop(Index,Min,Max) : ' ) - PyInitLoopSwitch.append( ' return Index,Min,Max ' ) - PyMoreInitLoopSwitch = [] - PyMoreInitLoopSwitch.append( 'def MoreLoop(Index,Min,Max) : ' ) - PyMoreInitLoopSwitch.append( ' if Index <= Max : ' ) - 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 = GraphSwitchExecutable.LNode( 'InitLoop' , PyInitLoopSwitch , 'MoreLoop' , PyMoreInitLoopSwitch , 'NextLoop' , PyNextInitLoopSwitch ) - EndOfInitLoopSwitch.SetName( 'EndOfInitLoopSwitch' ) - EndOfInitLoopSwitch.SetAuthor( '' ) - EndOfInitLoopSwitch.SetComment( 'Compute Node' ) - EndOfInitLoopSwitch.Coords( 772 , 132 ) - 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( ' if ( a & 1 ) == 0 : ' ) - PySwitch.append( ' sleep(1) ' ) - PySwitch.append( ' return a & 1,1-(a&1),a,a ' ) - Switch,EndOfSwitch = GraphSwitchExecutable.SNode( 'Switch' , PySwitch ) - EndOfSwitch.SetName( 'EndOfSwitch' ) - EndOfSwitch.SetAuthor( '' ) - EndOfSwitch.SetComment( 'Compute Node' ) - EndOfSwitch.Coords( 581 , 132 ) - PyEndOfSwitch = [] - PyEndOfSwitch.append( 'def EndOfSwitch( a , Even , k ) : ' ) - PyEndOfSwitch.append( ' return a ' ) - EndOfSwitch.SetPyFunction( 'EndOfSwitch' , PyEndOfSwitch ) - IEndOfSwitcha = EndOfSwitch.InPort( 'a' , 'long' ) - IEndOfSwitchEven = EndOfSwitch.InPort( 'Even' , 'long' ) - IEndOfSwitchk = EndOfSwitch.InPort( 'k' , '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( 194 , 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' ) - OSwitchi = Switch.OutPort( 'i' , 'long' ) - OSwitchDefault = Switch.GetOutPort( 'Default' ) - - # Creation of Links - LIsOddaEndOfSwitcha = GraphSwitchExecutable.Link( OIsOdda , IEndOfSwitcha ) - - LInitLoopSwitchIndexSwitcha = GraphSwitchExecutable.Link( OInitLoopSwitchIndex , ISwitcha ) - - LInitLoopSwitchMinEndOfInitLoopSwitchMin = GraphSwitchExecutable.Link( OInitLoopSwitchMin , IEndOfInitLoopSwitchMin ) - - LInitLoopSwitchMaxEndOfInitLoopSwitchMax = GraphSwitchExecutable.Link( OInitLoopSwitchMax , IEndOfInitLoopSwitchMax ) - - LSwitchOddIsOddGate = GraphSwitchExecutable.Link( OSwitchOdd , IIsOddGate ) - - LSwitchaIsOdda = GraphSwitchExecutable.Link( OSwitcha , IIsOdda ) - - LSwitchiEndOfSwitchk = GraphSwitchExecutable.Link( OSwitchi , IEndOfSwitchk ) - - LSwitchDefaultEndOfSwitchDefault = GraphSwitchExecutable.Link( OSwitchDefault , IEndOfSwitchDefault ) - - LEndOfSwitchaEndOfInitLoopSwitchIndex = GraphSwitchExecutable.Link( OEndOfSwitcha , IEndOfInitLoopSwitchIndex ) - - # Input datas - IInitLoopSwitchIndex.Input( 0 ) - IInitLoopSwitchMin.Input( 0 ) - IInitLoopSwitchMax.Input( 35 ) - - # Input Ports of the graph - #IEndOfSwitchEven = EndOfSwitch.GetInPort( 'Even' ) - - # Output Ports of the graph - #OEndOfInitLoopSwitchIndex = EndOfInitLoopSwitch.GetOutPort( 'Index' ) - #OEndOfInitLoopSwitchMin = EndOfInitLoopSwitch.GetOutPort( 'Min' ) - #OEndOfInitLoopSwitchMax = EndOfInitLoopSwitch.GetOutPort( 'Max' ) - #OSwitchEven = Switch.GetOutPort( 'Even' ) - return GraphSwitchExecutable - - -GraphSwitchExecutable = DefGraphSwitchExecutable() diff --git a/Superv/Python/GraphSwitchGates.py b/Superv/Python/GraphSwitchGates.py deleted file mode 100644 index 747ae3e..0000000 --- a/Superv/Python/GraphSwitchGates.py +++ /dev/null @@ -1,177 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphSwitchGates -# -from SuperV import * - -# Graph creation of GraphSwitchGates -def DefGraphSwitchGates() : - GraphSwitchGates = Graph( 'GraphSwitchGates' ) - GraphSwitchGates.SetName( 'GraphSwitchGates' ) - GraphSwitchGates.SetAuthor( 'JR' ) - GraphSwitchGates.SetComment( '' ) - GraphSwitchGates.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - # Creation of InLine Nodes - PyIsOdd = [] - PyIsOdd.append( 'from time import * ' ) - PyIsOdd.append( 'def IsOdd() : ' ) - PyIsOdd.append( ' sleep(1) ' ) - PyIsOdd.append( ' return ' ) - IsOdd = GraphSwitchGates.INode( 'IsOdd' , PyIsOdd ) - IsOdd.SetName( 'IsOdd' ) - IsOdd.SetAuthor( '' ) - IsOdd.SetComment( 'Compute Node' ) - IsOdd.Coords( 424 , 116 ) - IIsOddGate = IsOdd.GetInPort( 'Gate' ) - OIsOddGate = IsOdd.GetOutPort( 'Gate' ) - - PyIsEven = [] - PyIsEven.append( 'from time import * ' ) - PyIsEven.append( 'def IsEven() : ' ) - PyIsEven.append( ' sleep(1) ' ) - PyIsEven.append( ' return ' ) - IsEven = GraphSwitchGates.INode( 'IsEven' , PyIsEven ) - IsEven.SetName( 'IsEven' ) - IsEven.SetAuthor( '' ) - IsEven.SetComment( 'Compute Node' ) - IsEven.Coords( 428 , 345 ) - IIsEvenGate = IsEven.GetInPort( 'Gate' ) - OIsEvenGate = IsEven.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyLoopGates = [] - PyLoopGates.append( 'def InitLoop(Index,Max,Min) : ' ) - PyLoopGates.append( ' Index = Max ' ) - PyLoopGates.append( ' return Index,Max,Min ' ) - PyMoreLoopGates = [] - PyMoreLoopGates.append( 'from time import * ' ) - PyMoreLoopGates.append( 'def MoreLoop(Index,Max,Min) : ' ) - PyMoreLoopGates.append( ' sleep(1) ' ) - PyMoreLoopGates.append( ' DoLoop = 0 ' ) - PyMoreLoopGates.append( ' if Index >= Min : ' ) - PyMoreLoopGates.append( ' DoLoop = 1 ' ) - PyMoreLoopGates.append( ' return DoLoop,Index,Max,Min ' ) - PyNextLoopGates = [] - PyNextLoopGates.append( 'def NextLoop(Index,Max,Min) : ' ) - PyNextLoopGates.append( ' Index = Index - 1 ' ) - PyNextLoopGates.append( ' return Index,Max,Min ' ) - LoopGates,EndLoopGates = GraphSwitchGates.LNode( 'InitLoop' , PyLoopGates , 'MoreLoop' , PyMoreLoopGates , 'NextLoop' , PyNextLoopGates ) - EndLoopGates.SetName( 'EndLoopGates' ) - EndLoopGates.SetAuthor( '' ) - EndLoopGates.SetComment( 'Compute Node' ) - EndLoopGates.Coords( 875 , 216 ) - PyEndLoopGates = [] - EndLoopGates.SetPyFunction( 'EndLoopGates' , PyEndLoopGates ) - ILoopGatesDoLoop = LoopGates.GetInPort( 'DoLoop' ) - ILoopGatesIndex = LoopGates.InPort( 'Index' , 'long' ) - ILoopGatesMax = LoopGates.InPort( 'Max' , 'long' ) - ILoopGatesMin = LoopGates.InPort( 'Min' , 'long' ) - ILoopGatesGate = LoopGates.GetInPort( 'Gate' ) - OLoopGatesDoLoop = LoopGates.GetOutPort( 'DoLoop' ) - OLoopGatesIndex = LoopGates.GetOutPort( 'Index' ) - OLoopGatesMax = LoopGates.GetOutPort( 'Max' ) - OLoopGatesMin = LoopGates.GetOutPort( 'Min' ) - IEndLoopGatesDoLoop = EndLoopGates.GetInPort( 'DoLoop' ) - IEndLoopGatesIndex = EndLoopGates.GetInPort( 'Index' ) - IEndLoopGatesMax = EndLoopGates.GetInPort( 'Max' ) - IEndLoopGatesMin = EndLoopGates.GetInPort( 'Min' ) - IEndLoopGatesGate = EndLoopGates.GetInPort( 'Gate' ) - OEndLoopGatesDoLoop = EndLoopGates.GetOutPort( 'DoLoop' ) - OEndLoopGatesIndex = EndLoopGates.GetOutPort( 'Index' ) - OEndLoopGatesMax = EndLoopGates.GetOutPort( 'Max' ) - OEndLoopGatesMin = EndLoopGates.GetOutPort( 'Min' ) - OEndLoopGatesGate = EndLoopGates.GetOutPort( 'Gate' ) - LoopGates.SetName( 'LoopGates' ) - LoopGates.SetAuthor( '' ) - LoopGates.SetComment( 'Compute Node' ) - LoopGates.Coords( 13 , 236 ) - - # Creation of Switch Nodes - PySwitchGates = [] - PySwitchGates.append( 'def SwitchGates(Index) : ' ) - PySwitchGates.append( ' Odd = 0 ' ) - PySwitchGates.append( ' Even = 0 ' ) - PySwitchGates.append( ' if (Index & 1) == 1 : ' ) - PySwitchGates.append( ' Odd = 1 ' ) - PySwitchGates.append( ' if (Index & 1) == 0 : ' ) - PySwitchGates.append( ' Even = 1 ' ) - PySwitchGates.append( ' return Odd,Even ' ) - SwitchGates,EndSwitchGates = GraphSwitchGates.SNode( 'SwitchGates' , PySwitchGates ) - EndSwitchGates.SetName( 'EndSwitchGates' ) - EndSwitchGates.SetAuthor( '' ) - EndSwitchGates.SetComment( 'Compute Node' ) - EndSwitchGates.Coords( 648 , 276 ) - PyEndSwitchGates = [] - PyEndSwitchGates.append( 'from time import * ' ) - PyEndSwitchGates.append( 'def EndSwitchGates() : ' ) - PyEndSwitchGates.append( ' sleep(1) ' ) - PyEndSwitchGates.append( ' return ' ) - PyEndSwitchGates.append( '' ) - EndSwitchGates.SetPyFunction( 'EndSwitchGates' , PyEndSwitchGates ) - IEndSwitchGatesDefault = EndSwitchGates.GetInPort( 'Default' ) - OEndSwitchGatesGate = EndSwitchGates.GetOutPort( 'Gate' ) - SwitchGates.SetName( 'SwitchGates' ) - SwitchGates.SetAuthor( '' ) - SwitchGates.SetComment( 'Compute Node' ) - SwitchGates.Coords( 204 , 236 ) - ISwitchGatesIndex = SwitchGates.InPort( 'Index' , 'long' ) - ISwitchGatesGate = SwitchGates.GetInPort( 'Gate' ) - OSwitchGatesOdd = SwitchGates.OutPort( 'Odd' , 'long' ) - OSwitchGatesEven = SwitchGates.OutPort( 'Even' , 'long' ) - OSwitchGatesDefault = SwitchGates.GetOutPort( 'Default' ) - - # Creation of Links - LLoopGatesIndexEndLoopGatesIndex = GraphSwitchGates.Link( OLoopGatesIndex , IEndLoopGatesIndex ) - - LLoopGatesIndexSwitchGatesIndex = GraphSwitchGates.Link( OLoopGatesIndex , ISwitchGatesIndex ) - - LLoopGatesMaxEndLoopGatesMax = GraphSwitchGates.Link( OLoopGatesMax , IEndLoopGatesMax ) - - LLoopGatesMinEndLoopGatesMin = GraphSwitchGates.Link( OLoopGatesMin , IEndLoopGatesMin ) - - LSwitchGatesOddIsOddGate = GraphSwitchGates.Link( OSwitchGatesOdd , IIsOddGate ) - - LSwitchGatesEvenIsEvenGate = GraphSwitchGates.Link( OSwitchGatesEven , IIsEvenGate ) - - LEndSwitchGatesGateEndLoopGatesGate = GraphSwitchGates.Link( OEndSwitchGatesGate , IEndLoopGatesGate ) - - LIsOddGateEndSwitchGatesDefault = GraphSwitchGates.Link( OIsOddGate , IEndSwitchGatesDefault ) - - LIsEvenGateEndSwitchGatesDefault = GraphSwitchGates.Link( OIsEvenGate , IEndSwitchGatesDefault ) - - # Input datas - ILoopGatesIndex.Input( 0 ) - ILoopGatesMax.Input( 13 ) - ILoopGatesMin.Input( -7 ) - - # Output Ports of the graph - #OEndLoopGatesIndex = EndLoopGates.GetOutPort( 'Index' ) - #OEndLoopGatesMax = EndLoopGates.GetOutPort( 'Max' ) - #OEndLoopGatesMin = EndLoopGates.GetOutPort( 'Min' ) - return GraphSwitchGates - - -GraphSwitchGates = DefGraphSwitchGates() diff --git a/Superv/Python/GraphSwitchGatesDefault.py b/Superv/Python/GraphSwitchGatesDefault.py deleted file mode 100644 index e35aad3..0000000 --- a/Superv/Python/GraphSwitchGatesDefault.py +++ /dev/null @@ -1,180 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphSwitchGatesDefault -# -from SuperV import * - -# Graph creation of GraphSwitchGatesDefault -def DefGraphSwitchGatesDefault() : - GraphSwitchGatesDefault = Graph( 'GraphSwitchGatesDefault' ) - GraphSwitchGatesDefault.SetName( 'GraphSwitchGatesDefault' ) - GraphSwitchGatesDefault.SetAuthor( 'JR' ) - GraphSwitchGatesDefault.SetComment( '' ) - GraphSwitchGatesDefault.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - # Creation of InLine Nodes - PyIsOdd = [] - PyIsOdd.append( 'from time import * ' ) - PyIsOdd.append( 'def IsOdd() : ' ) - PyIsOdd.append( ' sleep(1) ' ) - PyIsOdd.append( ' return ' ) - IsOdd = GraphSwitchGatesDefault.INode( 'IsOdd' , PyIsOdd ) - IsOdd.SetName( 'IsOdd' ) - IsOdd.SetAuthor( '' ) - IsOdd.SetComment( 'Compute Node' ) - IsOdd.Coords( 424 , 116 ) - IIsOddGate = IsOdd.GetInPort( 'Gate' ) - OIsOddGate = IsOdd.GetOutPort( 'Gate' ) - - PyIsEven = [] - PyIsEven.append( 'from time import * ' ) - PyIsEven.append( 'def IsEven() : ' ) - PyIsEven.append( ' sleep(1) ' ) - PyIsEven.append( ' return ' ) - IsEven = GraphSwitchGatesDefault.INode( 'IsEven' , PyIsEven ) - IsEven.SetName( 'IsEven' ) - IsEven.SetAuthor( '' ) - IsEven.SetComment( 'Compute Node' ) - IsEven.Coords( 428 , 345 ) - IIsEvenGate = IsEven.GetInPort( 'Gate' ) - OIsEvenGate = IsEven.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyLoopGates = [] - PyLoopGates.append( 'def InitLoop(Index,Max,Min) : ' ) - PyLoopGates.append( ' Index = Max ' ) - PyLoopGates.append( ' return Index,Max,Min ' ) - PyMoreLoopGates = [] - PyMoreLoopGates.append( 'from time import * ' ) - PyMoreLoopGates.append( 'def MoreLoop(Index,Max,Min) : ' ) - PyMoreLoopGates.append( ' sleep(1) ' ) - PyMoreLoopGates.append( ' DoLoop = 0 ' ) - PyMoreLoopGates.append( ' if Index >= Min : ' ) - PyMoreLoopGates.append( ' DoLoop = 1 ' ) - PyMoreLoopGates.append( ' return DoLoop,Index,Max,Min ' ) - PyNextLoopGates = [] - PyNextLoopGates.append( 'def NextLoop(Index,Max,Min) : ' ) - PyNextLoopGates.append( ' Index = Index - 1 ' ) - PyNextLoopGates.append( ' return Index,Max,Min ' ) - LoopGates,EndLoopGates = GraphSwitchGatesDefault.LNode( 'InitLoop' , PyLoopGates , 'MoreLoop' , PyMoreLoopGates , 'NextLoop' , PyNextLoopGates ) - EndLoopGates.SetName( 'EndLoopGates' ) - EndLoopGates.SetAuthor( '' ) - EndLoopGates.SetComment( 'Compute Node' ) - EndLoopGates.Coords( 875 , 216 ) - PyEndLoopGates = [] - EndLoopGates.SetPyFunction( 'EndLoopGates' , PyEndLoopGates ) - ILoopGatesDoLoop = LoopGates.GetInPort( 'DoLoop' ) - ILoopGatesIndex = LoopGates.InPort( 'Index' , 'long' ) - ILoopGatesMax = LoopGates.InPort( 'Max' , 'long' ) - ILoopGatesMin = LoopGates.InPort( 'Min' , 'long' ) - ILoopGatesGate = LoopGates.GetInPort( 'Gate' ) - OLoopGatesDoLoop = LoopGates.GetOutPort( 'DoLoop' ) - OLoopGatesIndex = LoopGates.GetOutPort( 'Index' ) - OLoopGatesMax = LoopGates.GetOutPort( 'Max' ) - OLoopGatesMin = LoopGates.GetOutPort( 'Min' ) - IEndLoopGatesDoLoop = EndLoopGates.GetInPort( 'DoLoop' ) - IEndLoopGatesIndex = EndLoopGates.GetInPort( 'Index' ) - IEndLoopGatesMax = EndLoopGates.GetInPort( 'Max' ) - IEndLoopGatesMin = EndLoopGates.GetInPort( 'Min' ) - IEndLoopGatesGate = EndLoopGates.GetInPort( 'Gate' ) - OEndLoopGatesDoLoop = EndLoopGates.GetOutPort( 'DoLoop' ) - OEndLoopGatesIndex = EndLoopGates.GetOutPort( 'Index' ) - OEndLoopGatesMax = EndLoopGates.GetOutPort( 'Max' ) - OEndLoopGatesMin = EndLoopGates.GetOutPort( 'Min' ) - OEndLoopGatesGate = EndLoopGates.GetOutPort( 'Gate' ) - LoopGates.SetName( 'LoopGates' ) - LoopGates.SetAuthor( '' ) - LoopGates.SetComment( 'Compute Node' ) - LoopGates.Coords( 13 , 236 ) - - # Creation of Switch Nodes - PySwitchGates = [] - PySwitchGates.append( 'def SwitchGates(Index) : ' ) - PySwitchGates.append( ' Odd = 0 ' ) - PySwitchGates.append( ' Even = 0 ' ) - PySwitchGates.append( ' if Index > 0 : ' ) - PySwitchGates.append( ' if (Index & 1) == 1 : ' ) - PySwitchGates.append( ' Odd = 1 ' ) - PySwitchGates.append( ' if (Index & 1) == 0 : ' ) - PySwitchGates.append( ' Even = 1 ' ) - PySwitchGates.append( ' return Odd,Even ' ) - SwitchGates,EndSwitchGates = GraphSwitchGatesDefault.SNode( 'SwitchGates' , PySwitchGates ) - EndSwitchGates.SetName( 'EndSwitchGates' ) - EndSwitchGates.SetAuthor( '' ) - EndSwitchGates.SetComment( 'Compute Node' ) - EndSwitchGates.Coords( 648 , 276 ) - PyEndSwitchGates = [] - PyEndSwitchGates.append( 'from time import * ' ) - PyEndSwitchGates.append( 'def EndSwitchGates() : ' ) - PyEndSwitchGates.append( ' sleep(1) ' ) - PyEndSwitchGates.append( ' return ' ) - PyEndSwitchGates.append( '' ) - EndSwitchGates.SetPyFunction( 'EndSwitchGates' , PyEndSwitchGates ) - IEndSwitchGatesDefault = EndSwitchGates.GetInPort( 'Default' ) - OEndSwitchGatesGate = EndSwitchGates.GetOutPort( 'Gate' ) - SwitchGates.SetName( 'SwitchGates' ) - SwitchGates.SetAuthor( '' ) - SwitchGates.SetComment( 'Compute Node' ) - SwitchGates.Coords( 204 , 236 ) - ISwitchGatesIndex = SwitchGates.InPort( 'Index' , 'long' ) - ISwitchGatesGate = SwitchGates.GetInPort( 'Gate' ) - OSwitchGatesOdd = SwitchGates.OutPort( 'Odd' , 'long' ) - OSwitchGatesEven = SwitchGates.OutPort( 'Even' , 'long' ) - OSwitchGatesDefault = SwitchGates.GetOutPort( 'Default' ) - - # Creation of Links - LLoopGatesIndexEndLoopGatesIndex = GraphSwitchGatesDefault.Link( OLoopGatesIndex , IEndLoopGatesIndex ) - - LLoopGatesIndexSwitchGatesIndex = GraphSwitchGatesDefault.Link( OLoopGatesIndex , ISwitchGatesIndex ) - - LLoopGatesMaxEndLoopGatesMax = GraphSwitchGatesDefault.Link( OLoopGatesMax , IEndLoopGatesMax ) - - LLoopGatesMinEndLoopGatesMin = GraphSwitchGatesDefault.Link( OLoopGatesMin , IEndLoopGatesMin ) - - LSwitchGatesOddIsOddGate = GraphSwitchGatesDefault.Link( OSwitchGatesOdd , IIsOddGate ) - - LSwitchGatesEvenIsEvenGate = GraphSwitchGatesDefault.Link( OSwitchGatesEven , IIsEvenGate ) - - LSwitchGatesDefaultEndSwitchGatesDefault = GraphSwitchGatesDefault.Link( OSwitchGatesDefault , IEndSwitchGatesDefault ) - - LEndSwitchGatesGateEndLoopGatesGate = GraphSwitchGatesDefault.Link( OEndSwitchGatesGate , IEndLoopGatesGate ) - - LIsOddGateEndSwitchGatesDefault = GraphSwitchGatesDefault.Link( OIsOddGate , IEndSwitchGatesDefault ) - - LIsEvenGateEndSwitchGatesDefault = GraphSwitchGatesDefault.Link( OIsEvenGate , IEndSwitchGatesDefault ) - - # Input datas - ILoopGatesIndex.Input( 0 ) - ILoopGatesMax.Input( 13 ) - ILoopGatesMin.Input( -7 ) - - # Output Ports of the graph - #OEndLoopGatesIndex = EndLoopGates.GetOutPort( 'Index' ) - #OEndLoopGatesMax = EndLoopGates.GetOutPort( 'Max' ) - #OEndLoopGatesMin = EndLoopGates.GetOutPort( 'Min' ) - return GraphSwitchGatesDefault - - -GraphSwitchGatesDefault = DefGraphSwitchGatesDefault() diff --git a/Superv/Python/GraphSwitchGatesNoDefaultAborted.py b/Superv/Python/GraphSwitchGatesNoDefaultAborted.py deleted file mode 100644 index e21a532..0000000 --- a/Superv/Python/GraphSwitchGatesNoDefaultAborted.py +++ /dev/null @@ -1,178 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphSwitchGatesNoDefaultAborted -# -from SuperV import * - -# Graph creation of GraphSwitchGatesNoDefaultAborted -def DefGraphSwitchGatesNoDefaultAborted() : - GraphSwitchGatesNoDefaultAborted = Graph( 'GraphSwitchGatesNoDefaultAborted' ) - GraphSwitchGatesNoDefaultAborted.SetName( 'GraphSwitchGatesNoDefaultAborted' ) - GraphSwitchGatesNoDefaultAborted.SetAuthor( 'JR' ) - GraphSwitchGatesNoDefaultAborted.SetComment( '' ) - GraphSwitchGatesNoDefaultAborted.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - # Creation of InLine Nodes - PyIsOdd = [] - PyIsOdd.append( 'from time import * ' ) - PyIsOdd.append( 'def IsOdd() : ' ) - PyIsOdd.append( ' sleep(1) ' ) - PyIsOdd.append( ' return ' ) - IsOdd = GraphSwitchGatesNoDefaultAborted.INode( 'IsOdd' , PyIsOdd ) - IsOdd.SetName( 'IsOdd' ) - IsOdd.SetAuthor( '' ) - IsOdd.SetComment( 'Compute Node' ) - IsOdd.Coords( 424 , 116 ) - IIsOddGate = IsOdd.GetInPort( 'Gate' ) - OIsOddGate = IsOdd.GetOutPort( 'Gate' ) - - PyIsEven = [] - PyIsEven.append( 'from time import * ' ) - PyIsEven.append( 'def IsEven() : ' ) - PyIsEven.append( ' sleep(1) ' ) - PyIsEven.append( ' return ' ) - IsEven = GraphSwitchGatesNoDefaultAborted.INode( 'IsEven' , PyIsEven ) - IsEven.SetName( 'IsEven' ) - IsEven.SetAuthor( '' ) - IsEven.SetComment( 'Compute Node' ) - IsEven.Coords( 428 , 345 ) - IIsEvenGate = IsEven.GetInPort( 'Gate' ) - OIsEvenGate = IsEven.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyLoopGates = [] - PyLoopGates.append( 'def InitLoop(Index,Max,Min) : ' ) - PyLoopGates.append( ' Index = Max ' ) - PyLoopGates.append( ' return Index,Max,Min ' ) - PyMoreLoopGates = [] - PyMoreLoopGates.append( 'from time import * ' ) - PyMoreLoopGates.append( 'def MoreLoop(Index,Max,Min) : ' ) - PyMoreLoopGates.append( ' sleep(1) ' ) - PyMoreLoopGates.append( ' DoLoop = 0 ' ) - PyMoreLoopGates.append( ' if Index >= Min : ' ) - PyMoreLoopGates.append( ' DoLoop = 1 ' ) - PyMoreLoopGates.append( ' return DoLoop,Index,Max,Min ' ) - PyNextLoopGates = [] - PyNextLoopGates.append( 'def NextLoop(Index,Max,Min) : ' ) - PyNextLoopGates.append( ' Index = Index - 1 ' ) - PyNextLoopGates.append( ' return Index,Max,Min ' ) - LoopGates,EndLoopGates = GraphSwitchGatesNoDefaultAborted.LNode( 'InitLoop' , PyLoopGates , 'MoreLoop' , PyMoreLoopGates , 'NextLoop' , PyNextLoopGates ) - EndLoopGates.SetName( 'EndLoopGates' ) - EndLoopGates.SetAuthor( '' ) - EndLoopGates.SetComment( 'Compute Node' ) - EndLoopGates.Coords( 875 , 216 ) - PyEndLoopGates = [] - EndLoopGates.SetPyFunction( 'EndLoopGates' , PyEndLoopGates ) - ILoopGatesDoLoop = LoopGates.GetInPort( 'DoLoop' ) - ILoopGatesIndex = LoopGates.InPort( 'Index' , 'long' ) - ILoopGatesMax = LoopGates.InPort( 'Max' , 'long' ) - ILoopGatesMin = LoopGates.InPort( 'Min' , 'long' ) - ILoopGatesGate = LoopGates.GetInPort( 'Gate' ) - OLoopGatesDoLoop = LoopGates.GetOutPort( 'DoLoop' ) - OLoopGatesIndex = LoopGates.GetOutPort( 'Index' ) - OLoopGatesMax = LoopGates.GetOutPort( 'Max' ) - OLoopGatesMin = LoopGates.GetOutPort( 'Min' ) - IEndLoopGatesDoLoop = EndLoopGates.GetInPort( 'DoLoop' ) - IEndLoopGatesIndex = EndLoopGates.GetInPort( 'Index' ) - IEndLoopGatesMax = EndLoopGates.GetInPort( 'Max' ) - IEndLoopGatesMin = EndLoopGates.GetInPort( 'Min' ) - IEndLoopGatesGate = EndLoopGates.GetInPort( 'Gate' ) - OEndLoopGatesDoLoop = EndLoopGates.GetOutPort( 'DoLoop' ) - OEndLoopGatesIndex = EndLoopGates.GetOutPort( 'Index' ) - OEndLoopGatesMax = EndLoopGates.GetOutPort( 'Max' ) - OEndLoopGatesMin = EndLoopGates.GetOutPort( 'Min' ) - OEndLoopGatesGate = EndLoopGates.GetOutPort( 'Gate' ) - LoopGates.SetName( 'LoopGates' ) - LoopGates.SetAuthor( '' ) - LoopGates.SetComment( 'Compute Node' ) - LoopGates.Coords( 13 , 236 ) - - # Creation of Switch Nodes - PySwitchGates = [] - PySwitchGates.append( 'def SwitchGates(Index) : ' ) - PySwitchGates.append( ' Odd = 0 ' ) - PySwitchGates.append( ' Even = 0 ' ) - PySwitchGates.append( ' if Index > 0 : ' ) - PySwitchGates.append( ' if (Index & 1) == 1 : ' ) - PySwitchGates.append( ' Odd = 1 ' ) - PySwitchGates.append( ' if (Index & 1) == 0 : ' ) - PySwitchGates.append( ' Even = 1 ' ) - PySwitchGates.append( ' return Odd,Even ' ) - SwitchGates,EndSwitchGates = GraphSwitchGatesNoDefaultAborted.SNode( 'SwitchGates' , PySwitchGates ) - EndSwitchGates.SetName( 'EndSwitchGates' ) - EndSwitchGates.SetAuthor( '' ) - EndSwitchGates.SetComment( 'Compute Node' ) - EndSwitchGates.Coords( 648 , 276 ) - PyEndSwitchGates = [] - PyEndSwitchGates.append( 'from time import * ' ) - PyEndSwitchGates.append( 'def EndSwitchGates() : ' ) - PyEndSwitchGates.append( ' sleep(1) ' ) - PyEndSwitchGates.append( ' return ' ) - PyEndSwitchGates.append( '' ) - EndSwitchGates.SetPyFunction( 'EndSwitchGates' , PyEndSwitchGates ) - IEndSwitchGatesDefault = EndSwitchGates.GetInPort( 'Default' ) - OEndSwitchGatesGate = EndSwitchGates.GetOutPort( 'Gate' ) - SwitchGates.SetName( 'SwitchGates' ) - SwitchGates.SetAuthor( '' ) - SwitchGates.SetComment( 'Compute Node' ) - SwitchGates.Coords( 204 , 236 ) - ISwitchGatesIndex = SwitchGates.InPort( 'Index' , 'long' ) - ISwitchGatesGate = SwitchGates.GetInPort( 'Gate' ) - OSwitchGatesOdd = SwitchGates.OutPort( 'Odd' , 'long' ) - OSwitchGatesEven = SwitchGates.OutPort( 'Even' , 'long' ) - OSwitchGatesDefault = SwitchGates.GetOutPort( 'Default' ) - - # Creation of Links - LLoopGatesIndexEndLoopGatesIndex = GraphSwitchGatesNoDefaultAborted.Link( OLoopGatesIndex , IEndLoopGatesIndex ) - - LLoopGatesIndexSwitchGatesIndex = GraphSwitchGatesNoDefaultAborted.Link( OLoopGatesIndex , ISwitchGatesIndex ) - - LLoopGatesMaxEndLoopGatesMax = GraphSwitchGatesNoDefaultAborted.Link( OLoopGatesMax , IEndLoopGatesMax ) - - LLoopGatesMinEndLoopGatesMin = GraphSwitchGatesNoDefaultAborted.Link( OLoopGatesMin , IEndLoopGatesMin ) - - LSwitchGatesOddIsOddGate = GraphSwitchGatesNoDefaultAborted.Link( OSwitchGatesOdd , IIsOddGate ) - - LSwitchGatesEvenIsEvenGate = GraphSwitchGatesNoDefaultAborted.Link( OSwitchGatesEven , IIsEvenGate ) - - LEndSwitchGatesGateEndLoopGatesGate = GraphSwitchGatesNoDefaultAborted.Link( OEndSwitchGatesGate , IEndLoopGatesGate ) - - LIsOddGateEndSwitchGatesDefault = GraphSwitchGatesNoDefaultAborted.Link( OIsOddGate , IEndSwitchGatesDefault ) - - LIsEvenGateEndSwitchGatesDefault = GraphSwitchGatesNoDefaultAborted.Link( OIsEvenGate , IEndSwitchGatesDefault ) - - # Input datas - ILoopGatesIndex.Input( 0 ) - ILoopGatesMax.Input( 13 ) - ILoopGatesMin.Input( -7 ) - - # Output Ports of the graph - #OEndLoopGatesIndex = EndLoopGates.GetOutPort( 'Index' ) - #OEndLoopGatesMax = EndLoopGates.GetOutPort( 'Max' ) - #OEndLoopGatesMin = EndLoopGates.GetOutPort( 'Min' ) - return GraphSwitchGatesNoDefaultAborted - - -GraphSwitchGatesNoDefaultAborted = DefGraphSwitchGatesNoDefaultAborted() diff --git a/Superv/Python/GraphSwitchGatesdefaultBranch.py b/Superv/Python/GraphSwitchGatesdefaultBranch.py deleted file mode 100644 index 58161ba..0000000 --- a/Superv/Python/GraphSwitchGatesdefaultBranch.py +++ /dev/null @@ -1,199 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphSwitchGatesdefaultBranch -# -from SuperV import * - -# Graph creation of GraphSwitchGatesdefaultBranch -def DefGraphSwitchGatesdefaultBranch() : - GraphSwitchGatesdefaultBranch = Graph( 'GraphSwitchGatesdefaultBranch' ) - GraphSwitchGatesdefaultBranch.SetName( 'GraphSwitchGatesdefaultBranch' ) - GraphSwitchGatesdefaultBranch.SetAuthor( 'JR' ) - GraphSwitchGatesdefaultBranch.SetComment( '' ) - GraphSwitchGatesdefaultBranch.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - # Creation of InLine Nodes - PyIsOdd = [] - PyIsOdd.append( 'from time import * ' ) - PyIsOdd.append( 'def IsOdd() : ' ) - PyIsOdd.append( ' sleep(1) ' ) - PyIsOdd.append( ' return ' ) - IsOdd = GraphSwitchGatesdefaultBranch.INode( 'IsOdd' , PyIsOdd ) - IsOdd.SetName( 'IsOdd' ) - IsOdd.SetAuthor( '' ) - IsOdd.SetComment( 'Compute Node' ) - IsOdd.Coords( 424 , 116 ) - IIsOddGate = IsOdd.GetInPort( 'Gate' ) - OIsOddGate = IsOdd.GetOutPort( 'Gate' ) - - PyIsEven = [] - PyIsEven.append( 'from time import * ' ) - PyIsEven.append( 'def IsEven() : ' ) - PyIsEven.append( ' sleep(1) ' ) - PyIsEven.append( ' return ' ) - IsEven = GraphSwitchGatesdefaultBranch.INode( 'IsEven' , PyIsEven ) - IsEven.SetName( 'IsEven' ) - IsEven.SetAuthor( '' ) - IsEven.SetComment( 'Compute Node' ) - IsEven.Coords( 428 , 345 ) - IIsEvenGate = IsEven.GetInPort( 'Gate' ) - OIsEvenGate = IsEven.GetOutPort( 'Gate' ) - - PydefaultNode = [] - PydefaultNode.append( 'from time import * ' ) - PydefaultNode.append( 'def defaultNode() : ' ) - PydefaultNode.append( ' sleep(1) ' ) - PydefaultNode.append( ' return ' ) - defaultNode = GraphSwitchGatesdefaultBranch.INode( 'defaultNode' , PydefaultNode ) - defaultNode.SetName( 'defaultNode' ) - defaultNode.SetAuthor( '' ) - defaultNode.SetComment( 'Compute Node' ) - defaultNode.Coords( 425 , 232 ) - IdefaultNodeGate = defaultNode.GetInPort( 'Gate' ) - OdefaultNodeGate = defaultNode.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyLoopGates = [] - PyLoopGates.append( 'def InitLoop(Index,Max,Min) : ' ) - PyLoopGates.append( ' Index = Max ' ) - PyLoopGates.append( ' return Index,Max,Min ' ) - PyMoreLoopGates = [] - PyMoreLoopGates.append( 'from time import * ' ) - PyMoreLoopGates.append( 'def MoreLoop(Index,Max,Min) : ' ) - PyMoreLoopGates.append( ' sleep(1) ' ) - PyMoreLoopGates.append( ' DoLoop = 0 ' ) - PyMoreLoopGates.append( ' if Index >= Min : ' ) - PyMoreLoopGates.append( ' DoLoop = 1 ' ) - PyMoreLoopGates.append( ' return DoLoop,Index,Max,Min ' ) - PyNextLoopGates = [] - PyNextLoopGates.append( 'def NextLoop(Index,Max,Min) : ' ) - PyNextLoopGates.append( ' Index = Index - 1 ' ) - PyNextLoopGates.append( ' return Index,Max,Min ' ) - LoopGates,EndLoopGates = GraphSwitchGatesdefaultBranch.LNode( 'InitLoop' , PyLoopGates , 'MoreLoop' , PyMoreLoopGates , 'NextLoop' , PyNextLoopGates ) - EndLoopGates.SetName( 'EndLoopGates' ) - EndLoopGates.SetAuthor( '' ) - EndLoopGates.SetComment( 'Compute Node' ) - EndLoopGates.Coords( 875 , 216 ) - PyEndLoopGates = [] - EndLoopGates.SetPyFunction( 'EndLoopGates' , PyEndLoopGates ) - ILoopGatesDoLoop = LoopGates.GetInPort( 'DoLoop' ) - ILoopGatesIndex = LoopGates.InPort( 'Index' , 'long' ) - ILoopGatesMax = LoopGates.InPort( 'Max' , 'long' ) - ILoopGatesMin = LoopGates.InPort( 'Min' , 'long' ) - ILoopGatesGate = LoopGates.GetInPort( 'Gate' ) - OLoopGatesDoLoop = LoopGates.GetOutPort( 'DoLoop' ) - OLoopGatesIndex = LoopGates.GetOutPort( 'Index' ) - OLoopGatesMax = LoopGates.GetOutPort( 'Max' ) - OLoopGatesMin = LoopGates.GetOutPort( 'Min' ) - IEndLoopGatesDoLoop = EndLoopGates.GetInPort( 'DoLoop' ) - IEndLoopGatesIndex = EndLoopGates.GetInPort( 'Index' ) - IEndLoopGatesMax = EndLoopGates.GetInPort( 'Max' ) - IEndLoopGatesMin = EndLoopGates.GetInPort( 'Min' ) - IEndLoopGatesGate = EndLoopGates.GetInPort( 'Gate' ) - OEndLoopGatesDoLoop = EndLoopGates.GetOutPort( 'DoLoop' ) - OEndLoopGatesIndex = EndLoopGates.GetOutPort( 'Index' ) - OEndLoopGatesMax = EndLoopGates.GetOutPort( 'Max' ) - OEndLoopGatesMin = EndLoopGates.GetOutPort( 'Min' ) - OEndLoopGatesGate = EndLoopGates.GetOutPort( 'Gate' ) - LoopGates.SetName( 'LoopGates' ) - LoopGates.SetAuthor( '' ) - LoopGates.SetComment( 'Compute Node' ) - LoopGates.Coords( 13 , 236 ) - - # Creation of Switch Nodes - PySwitchGates = [] - PySwitchGates.append( 'def SwitchGates(Index) : ' ) - PySwitchGates.append( ' Odd = 0 ' ) - PySwitchGates.append( ' Even = 0 ' ) - PySwitchGates.append( ' default = 0 ' ) - PySwitchGates.append( ' if Index > 0 : ' ) - PySwitchGates.append( ' if (Index & 1) == 1 : ' ) - PySwitchGates.append( ' Odd = 1 ' ) - PySwitchGates.append( ' if (Index & 1) == 0 : ' ) - PySwitchGates.append( ' Even = 1 ' ) - PySwitchGates.append( ' else : ' ) - PySwitchGates.append( ' default = 1 ' ) - PySwitchGates.append( ' return Odd,Even,default ' ) - SwitchGates,EndSwitchGates = GraphSwitchGatesdefaultBranch.SNode( 'SwitchGates' , PySwitchGates ) - EndSwitchGates.SetName( 'EndSwitchGates' ) - EndSwitchGates.SetAuthor( '' ) - EndSwitchGates.SetComment( 'Compute Node' ) - EndSwitchGates.Coords( 647 , 272 ) - PyEndSwitchGates = [] - PyEndSwitchGates.append( 'from time import * ' ) - PyEndSwitchGates.append( 'def EndSwitchGates() : ' ) - PyEndSwitchGates.append( ' sleep(1) ' ) - PyEndSwitchGates.append( ' return ' ) - PyEndSwitchGates.append( '' ) - EndSwitchGates.SetPyFunction( 'EndSwitchGates' , PyEndSwitchGates ) - IEndSwitchGatesDefault = EndSwitchGates.GetInPort( 'Default' ) - OEndSwitchGatesGate = EndSwitchGates.GetOutPort( 'Gate' ) - SwitchGates.SetName( 'SwitchGates' ) - SwitchGates.SetAuthor( '' ) - SwitchGates.SetComment( 'Compute Node' ) - SwitchGates.Coords( 204 , 236 ) - ISwitchGatesIndex = SwitchGates.InPort( 'Index' , 'long' ) - ISwitchGatesGate = SwitchGates.GetInPort( 'Gate' ) - OSwitchGatesOdd = SwitchGates.OutPort( 'Odd' , 'long' ) - OSwitchGatesEven = SwitchGates.OutPort( 'Even' , 'long' ) - OSwitchGatesdefault = SwitchGates.OutPort( 'default' , 'long' ) - OSwitchGatesDefault = SwitchGates.GetOutPort( 'Default' ) - - # Creation of Links - LLoopGatesIndexEndLoopGatesIndex = GraphSwitchGatesdefaultBranch.Link( OLoopGatesIndex , IEndLoopGatesIndex ) - - LLoopGatesIndexSwitchGatesIndex = GraphSwitchGatesdefaultBranch.Link( OLoopGatesIndex , ISwitchGatesIndex ) - - LLoopGatesMaxEndLoopGatesMax = GraphSwitchGatesdefaultBranch.Link( OLoopGatesMax , IEndLoopGatesMax ) - - LLoopGatesMinEndLoopGatesMin = GraphSwitchGatesdefaultBranch.Link( OLoopGatesMin , IEndLoopGatesMin ) - - LSwitchGatesOddIsOddGate = GraphSwitchGatesdefaultBranch.Link( OSwitchGatesOdd , IIsOddGate ) - - LSwitchGatesEvenIsEvenGate = GraphSwitchGatesdefaultBranch.Link( OSwitchGatesEven , IIsEvenGate ) - - LSwitchGatesdefaultdefaultNodeGate = GraphSwitchGatesdefaultBranch.Link( OSwitchGatesdefault , IdefaultNodeGate ) - - LEndSwitchGatesGateEndLoopGatesGate = GraphSwitchGatesdefaultBranch.Link( OEndSwitchGatesGate , IEndLoopGatesGate ) - - LIsOddGateEndSwitchGatesDefault = GraphSwitchGatesdefaultBranch.Link( OIsOddGate , IEndSwitchGatesDefault ) - - LIsEvenGateEndSwitchGatesDefault = GraphSwitchGatesdefaultBranch.Link( OIsEvenGate , IEndSwitchGatesDefault ) - - LdefaultNodeGateEndSwitchGatesDefault = GraphSwitchGatesdefaultBranch.Link( OdefaultNodeGate , IEndSwitchGatesDefault ) - - # Input datas - ILoopGatesIndex.Input( 0 ) - ILoopGatesMax.Input( 13 ) - ILoopGatesMin.Input( -7 ) - - # Output Ports of the graph - #OEndLoopGatesIndex = EndLoopGates.GetOutPort( 'Index' ) - #OEndLoopGatesMax = EndLoopGates.GetOutPort( 'Max' ) - #OEndLoopGatesMin = EndLoopGates.GetOutPort( 'Min' ) - return GraphSwitchGatesdefaultBranch - - -GraphSwitchGatesdefaultBranch = DefGraphSwitchGatesdefaultBranch() diff --git a/Superv/Python/GraphSwitchGatesdefault_.py b/Superv/Python/GraphSwitchGatesdefault_.py deleted file mode 100755 index 032c6c4..0000000 --- a/Superv/Python/GraphSwitchGatesdefault_.py +++ /dev/null @@ -1,184 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphSwitchGatesdefault -# -from SuperV import * - -# Graph creation of GraphSwitchGatesdefault -def DefGraphSwitchGatesdefault() : - GraphSwitchGatesdefault = Graph( 'GraphSwitchGatesdefault' ) - GraphSwitchGatesdefault.SetName( 'GraphSwitchGatesdefault' ) - GraphSwitchGatesdefault.SetAuthor( 'JR' ) - GraphSwitchGatesdefault.SetComment( '' ) - GraphSwitchGatesdefault.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - # Creation of InLine Nodes - PyIsOdd = [] - PyIsOdd.append( 'from time import * ' ) - PyIsOdd.append( 'def IsOdd() : ' ) - PyIsOdd.append( ' sleep(1) ' ) - PyIsOdd.append( ' return ' ) - IsOdd = GraphSwitchGatesdefault.INode( 'IsOdd' , PyIsOdd ) - IsOdd.SetName( 'IsOdd' ) - IsOdd.SetAuthor( '' ) - IsOdd.SetComment( 'Compute Node' ) - IsOdd.Coords( 424 , 116 ) - IIsOddGate = IsOdd.GetInPort( 'Gate' ) - OIsOddGate = IsOdd.GetOutPort( 'Gate' ) - - PyIsEven = [] - PyIsEven.append( 'from time import * ' ) - PyIsEven.append( 'def IsEven() : ' ) - PyIsEven.append( ' sleep(1) ' ) - PyIsEven.append( ' return ' ) - IsEven = GraphSwitchGatesdefault.INode( 'IsEven' , PyIsEven ) - IsEven.SetName( 'IsEven' ) - IsEven.SetAuthor( '' ) - IsEven.SetComment( 'Compute Node' ) - IsEven.Coords( 428 , 345 ) - IIsEvenGate = IsEven.GetInPort( 'Gate' ) - OIsEvenGate = IsEven.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyLoopGates = [] - PyLoopGates.append( 'def InitLoop(Index,Max,Min) : ' ) - PyLoopGates.append( ' Index = Max ' ) - PyLoopGates.append( ' return Index,Max,Min ' ) - PyMoreLoopGates = [] - PyMoreLoopGates.append( 'from time import * ' ) - PyMoreLoopGates.append( 'def MoreLoop(Index,Max,Min) : ' ) - PyMoreLoopGates.append( ' sleep(1) ' ) - PyMoreLoopGates.append( ' DoLoop = 0 ' ) - PyMoreLoopGates.append( ' if Index >= Min : ' ) - PyMoreLoopGates.append( ' DoLoop = 1 ' ) - PyMoreLoopGates.append( ' return DoLoop,Index,Max,Min ' ) - PyNextLoopGates = [] - PyNextLoopGates.append( 'def NextLoop(Index,Max,Min) : ' ) - PyNextLoopGates.append( ' Index = Index - 1 ' ) - PyNextLoopGates.append( ' return Index,Max,Min ' ) - LoopGates,EndLoopGates = GraphSwitchGatesdefault.LNode( 'InitLoop' , PyLoopGates , 'MoreLoop' , PyMoreLoopGates , 'NextLoop' , PyNextLoopGates ) - EndLoopGates.SetName( 'EndLoopGates' ) - EndLoopGates.SetAuthor( '' ) - EndLoopGates.SetComment( 'Compute Node' ) - EndLoopGates.Coords( 875 , 216 ) - PyEndLoopGates = [] - EndLoopGates.SetPyFunction( 'EndLoopGates' , PyEndLoopGates ) - ILoopGatesDoLoop = LoopGates.GetInPort( 'DoLoop' ) - ILoopGatesIndex = LoopGates.InPort( 'Index' , 'long' ) - ILoopGatesMax = LoopGates.InPort( 'Max' , 'long' ) - ILoopGatesMin = LoopGates.InPort( 'Min' , 'long' ) - ILoopGatesGate = LoopGates.GetInPort( 'Gate' ) - OLoopGatesDoLoop = LoopGates.GetOutPort( 'DoLoop' ) - OLoopGatesIndex = LoopGates.GetOutPort( 'Index' ) - OLoopGatesMax = LoopGates.GetOutPort( 'Max' ) - OLoopGatesMin = LoopGates.GetOutPort( 'Min' ) - IEndLoopGatesDoLoop = EndLoopGates.GetInPort( 'DoLoop' ) - IEndLoopGatesIndex = EndLoopGates.GetInPort( 'Index' ) - IEndLoopGatesMax = EndLoopGates.GetInPort( 'Max' ) - IEndLoopGatesMin = EndLoopGates.GetInPort( 'Min' ) - IEndLoopGatesGate = EndLoopGates.GetInPort( 'Gate' ) - OEndLoopGatesDoLoop = EndLoopGates.GetOutPort( 'DoLoop' ) - OEndLoopGatesIndex = EndLoopGates.GetOutPort( 'Index' ) - OEndLoopGatesMax = EndLoopGates.GetOutPort( 'Max' ) - OEndLoopGatesMin = EndLoopGates.GetOutPort( 'Min' ) - OEndLoopGatesGate = EndLoopGates.GetOutPort( 'Gate' ) - LoopGates.SetName( 'LoopGates' ) - LoopGates.SetAuthor( '' ) - LoopGates.SetComment( 'Compute Node' ) - LoopGates.Coords( 13 , 236 ) - - # Creation of Switch Nodes - PySwitchGates = [] - PySwitchGates.append( 'def SwitchGates(Index) : ' ) - PySwitchGates.append( ' Odd = 0 ' ) - PySwitchGates.append( ' Even = 0 ' ) - PySwitchGates.append( ' default = 0 ' ) - PySwitchGates.append( ' if Index > 0 : ' ) - PySwitchGates.append( ' if (Index & 1) == 1 : ' ) - PySwitchGates.append( ' Odd = 1 ' ) - PySwitchGates.append( ' if (Index & 1) == 0 : ' ) - PySwitchGates.append( ' Even = 1 ' ) - PySwitchGates.append( ' else : ' ) - PySwitchGates.append( ' default = 1 ' ) - PySwitchGates.append( ' return Odd,Even,default ' ) - SwitchGates,EndSwitchGates = GraphSwitchGatesdefault.SNode( 'SwitchGates' , PySwitchGates ) - EndSwitchGates.SetName( 'EndSwitchGates' ) - EndSwitchGates.SetAuthor( '' ) - EndSwitchGates.SetComment( 'Compute Node' ) - EndSwitchGates.Coords( 648 , 276 ) - PyEndSwitchGates = [] - PyEndSwitchGates.append( 'from time import * ' ) - PyEndSwitchGates.append( 'def EndSwitchGates() : ' ) - PyEndSwitchGates.append( ' sleep(1) ' ) - PyEndSwitchGates.append( ' return ' ) - PyEndSwitchGates.append( '' ) - EndSwitchGates.SetPyFunction( 'EndSwitchGates' , PyEndSwitchGates ) - IEndSwitchGatesDefault = EndSwitchGates.GetInPort( 'Default' ) - OEndSwitchGatesGate = EndSwitchGates.GetOutPort( 'Gate' ) - SwitchGates.SetName( 'SwitchGates' ) - SwitchGates.SetAuthor( '' ) - SwitchGates.SetComment( 'Compute Node' ) - SwitchGates.Coords( 204 , 236 ) - ISwitchGatesIndex = SwitchGates.InPort( 'Index' , 'long' ) - ISwitchGatesGate = SwitchGates.GetInPort( 'Gate' ) - OSwitchGatesOdd = SwitchGates.OutPort( 'Odd' , 'long' ) - OSwitchGatesEven = SwitchGates.OutPort( 'Even' , 'long' ) - OSwitchGatesdefault = SwitchGates.OutPort( 'default' , 'long' ) - OSwitchGatesDefault = SwitchGates.GetOutPort( 'Default' ) - - # Creation of Links - LLoopGatesIndexEndLoopGatesIndex = GraphSwitchGatesdefault.Link( OLoopGatesIndex , IEndLoopGatesIndex ) - - LLoopGatesIndexSwitchGatesIndex = GraphSwitchGatesdefault.Link( OLoopGatesIndex , ISwitchGatesIndex ) - - LLoopGatesMaxEndLoopGatesMax = GraphSwitchGatesdefault.Link( OLoopGatesMax , IEndLoopGatesMax ) - - LLoopGatesMinEndLoopGatesMin = GraphSwitchGatesdefault.Link( OLoopGatesMin , IEndLoopGatesMin ) - - LSwitchGatesOddIsOddGate = GraphSwitchGatesdefault.Link( OSwitchGatesOdd , IIsOddGate ) - - LSwitchGatesEvenIsEvenGate = GraphSwitchGatesdefault.Link( OSwitchGatesEven , IIsEvenGate ) - - LSwitchGatesdefaultEndSwitchGatesDefault = GraphSwitchGatesdefault.Link( OSwitchGatesdefault , IEndSwitchGatesDefault ) - - LEndSwitchGatesGateEndLoopGatesGate = GraphSwitchGatesdefault.Link( OEndSwitchGatesGate , IEndLoopGatesGate ) - - LIsOddGateEndSwitchGatesDefault = GraphSwitchGatesdefault.Link( OIsOddGate , IEndSwitchGatesDefault ) - - LIsEvenGateEndSwitchGatesDefault = GraphSwitchGatesdefault.Link( OIsEvenGate , IEndSwitchGatesDefault ) - - # Input datas - ILoopGatesIndex.Input( 0 ) - ILoopGatesMax.Input( 13 ) - ILoopGatesMin.Input( -7 ) - - # Output Ports of the graph - #OEndLoopGatesIndex = EndLoopGates.GetOutPort( 'Index' ) - #OEndLoopGatesMax = EndLoopGates.GetOutPort( 'Max' ) - #OEndLoopGatesMin = EndLoopGates.GetOutPort( 'Min' ) - return GraphSwitchGatesdefault - - -GraphSwitchGatesdefault = DefGraphSwitchGatesdefault() diff --git a/Superv/Python/GraphSwitchManyCases.py b/Superv/Python/GraphSwitchManyCases.py deleted file mode 100644 index 79989d8..0000000 --- a/Superv/Python/GraphSwitchManyCases.py +++ /dev/null @@ -1,254 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphSwitchManyCases -# -from SuperV import * - -# Graph creation of GraphSwitchManyCases -def DefGraphSwitchManyCases() : - GraphSwitchManyCases = Graph( 'GraphSwitchManyCases' ) - GraphSwitchManyCases.SetName( 'GraphSwitchManyCases' ) - GraphSwitchManyCases.SetAuthor( 'JR' ) - GraphSwitchManyCases.SetComment( '' ) - GraphSwitchManyCases.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - # Creation of InLine Nodes - PyCase1 = [] - PyCase1.append( 'from time import * ' ) - PyCase1.append( 'def Case1(a) : ' ) - PyCase1.append( ' sleep(1) ' ) - PyCase1.append( ' return a ' ) - Case1 = GraphSwitchManyCases.INode( 'Case1' , PyCase1 ) - Case1.SetName( 'Case1' ) - Case1.SetAuthor( '' ) - Case1.SetComment( 'Compute Node' ) - Case1.Coords( 448 , 13 ) - ICase1a = Case1.InPort( 'a' , 'long' ) - ICase1Gate = Case1.GetInPort( 'Gate' ) - OCase1a = Case1.OutPort( 'a' , 'long' ) - OCase1Gate = Case1.GetOutPort( 'Gate' ) - - PyCase3 = [] - PyCase3.append( 'from time import * ' ) - PyCase3.append( 'def Case3(b) : ' ) - PyCase3.append( ' sleep(1) ' ) - PyCase3.append( ' return b ' ) - Case3 = GraphSwitchManyCases.INode( 'Case3' , PyCase3 ) - Case3.SetName( 'Case3' ) - Case3.SetAuthor( '' ) - Case3.SetComment( 'Compute Node' ) - Case3.Coords( 458 , 286 ) - ICase3b = Case3.InPort( 'b' , 'long' ) - ICase3Gate = Case3.GetInPort( 'Gate' ) - OCase3b = Case3.OutPort( 'b' , 'long' ) - OCase3Gate = Case3.GetOutPort( 'Gate' ) - - PyCase4 = [] - PyCase4.append( 'from time import * ' ) - PyCase4.append( 'def Case4(c) : ' ) - PyCase4.append( ' sleep(1) ' ) - PyCase4.append( ' return ' ) - Case4 = GraphSwitchManyCases.INode( 'Case4' , PyCase4 ) - Case4.SetName( 'Case4' ) - Case4.SetAuthor( '' ) - Case4.SetComment( 'Compute Node' ) - Case4.Coords( 459 , 493 ) - ICase4c = Case4.InPort( 'c' , 'long' ) - ICase4Gate = Case4.GetInPort( 'Gate' ) - OCase4Gate = Case4.GetOutPort( 'Gate' ) - - PyCase2a = [] - PyCase2a.append( 'from time import * ' ) - PyCase2a.append( 'def Case2a(a) : ' ) - PyCase2a.append( ' sleep(1) ' ) - PyCase2a.append( ' return a ' ) - Case2a = GraphSwitchManyCases.INode( 'Case2a' , PyCase2a ) - Case2a.SetName( 'Case2a' ) - Case2a.SetAuthor( '' ) - Case2a.SetComment( 'Compute Node' ) - Case2a.Coords( 453 , 154 ) - ICase2aa = Case2a.InPort( 'a' , 'long' ) - ICase2aGate = Case2a.GetInPort( 'Gate' ) - OCase2aa = Case2a.OutPort( 'a' , 'long' ) - OCase2aGate = Case2a.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyLoop = [] - PyLoop.append( 'def Init(Index,Max,Min) : ' ) - PyLoop.append( ' Index = Max ' ) - PyLoop.append( ' return Index,Max,Min ' ) - PyMoreLoop = [] - PyMoreLoop.append( 'def More(Index,Max,Min) : ' ) - PyMoreLoop.append( ' if Index >= Min : ' ) - PyMoreLoop.append( ' DoLoop = 1 ' ) - PyMoreLoop.append( ' else : ' ) - PyMoreLoop.append( ' DoLoop = 0 ' ) - PyMoreLoop.append( ' return DoLoop,Index,Max,Min ' ) - PyNextLoop = [] - PyNextLoop.append( 'def Next(Index,Max,Min) : ' ) - PyNextLoop.append( ' Index = Index - 1 ' ) - PyNextLoop.append( ' return Index,Max,Min ' ) - Loop,EndLoop = GraphSwitchManyCases.LNode( 'Init' , PyLoop , 'More' , PyMoreLoop , 'Next' , PyNextLoop ) - EndLoop.SetName( 'EndLoop' ) - EndLoop.SetAuthor( '' ) - EndLoop.SetComment( 'Compute Node' ) - EndLoop.Coords( 972 , 344 ) - PyEndLoop = [] - EndLoop.SetPyFunction( 'EndLoop' , PyEndLoop ) - ILoopDoLoop = Loop.GetInPort( 'DoLoop' ) - ILoopIndex = Loop.InPort( 'Index' , 'long' ) - ILoopMax = Loop.InPort( 'Max' , 'long' ) - ILoopMin = Loop.InPort( 'Min' , 'long' ) - ILoopGate = Loop.GetInPort( 'Gate' ) - OLoopDoLoop = Loop.GetOutPort( 'DoLoop' ) - OLoopIndex = Loop.GetOutPort( 'Index' ) - OLoopMax = Loop.GetOutPort( 'Max' ) - OLoopMin = Loop.GetOutPort( 'Min' ) - IEndLoopDoLoop = EndLoop.GetInPort( 'DoLoop' ) - IEndLoopIndex = EndLoop.GetInPort( 'Index' ) - IEndLoopMax = EndLoop.GetInPort( 'Max' ) - IEndLoopMin = EndLoop.GetInPort( 'Min' ) - IEndLoopGate = EndLoop.GetInPort( 'Gate' ) - OEndLoopDoLoop = EndLoop.GetOutPort( 'DoLoop' ) - OEndLoopIndex = EndLoop.GetOutPort( 'Index' ) - OEndLoopMax = EndLoop.GetOutPort( 'Max' ) - OEndLoopMin = EndLoop.GetOutPort( 'Min' ) - OEndLoopGate = EndLoop.GetOutPort( 'Gate' ) - Loop.SetName( 'Loop' ) - Loop.SetAuthor( '' ) - Loop.SetComment( 'Compute Node' ) - Loop.Coords( 15 , 336 ) - - # Creation of Switch Nodes - PySwitch = [] - PySwitch.append( 'from time import * ' ) - PySwitch.append( 'def Switch(Index) : ' ) - PySwitch.append( ' sleep(1) ' ) - PySwitch.append( ' SB1 = 0 ' ) - PySwitch.append( ' SB2 = 0 ' ) - PySwitch.append( ' if (Index & 3) == 3 : ' ) - PySwitch.append( ' SB1 = 1 ' ) - PySwitch.append( ' elif (Index & 3) == 0 : ' ) - PySwitch.append( ' SB2 = 1 ' ) - PySwitch.append( ' return SB1,SB2,Index,Index+1,Index+2,Index+3,Index+4,Index+5 ' ) - Switch,EndSwitch = GraphSwitchManyCases.SNode( 'Switch' , PySwitch ) - EndSwitch.SetName( 'EndSwitch' ) - EndSwitch.SetAuthor( '' ) - EndSwitch.SetComment( 'Compute Node' ) - EndSwitch.Coords( 732 , 344 ) - PyEndSwitch = [] - PyEndSwitch.append( 'from time import * ' ) - PyEndSwitch.append( 'def EndSwitch(a,b,dd,e,f) : ' ) - PyEndSwitch.append( ' sleep(1) ' ) - PyEndSwitch.append( ' if b != (a+1) : ' ) - PyEndSwitch.append( ' print 'EndSwitch ERROR' ' ) - PyEndSwitch.append( ' pass ' ) - PyEndSwitch.append( ' if dd != (a+3) : ' ) - PyEndSwitch.append( ' print 'EndSwitch ERROR' ' ) - PyEndSwitch.append( ' pass ' ) - PyEndSwitch.append( ' if e != (a+4) : ' ) - PyEndSwitch.append( ' print 'EndSwitch ERROR' ' ) - PyEndSwitch.append( ' pass ' ) - PyEndSwitch.append( ' if f != (a+5) : ' ) - PyEndSwitch.append( ' print 'EndSwitch ERROR' ' ) - PyEndSwitch.append( ' pass ' ) - PyEndSwitch.append( ' return a ' ) - EndSwitch.SetPyFunction( 'EndSwitch' , PyEndSwitch ) - IEndSwitcha = EndSwitch.InPort( 'a' , 'long' ) - IEndSwitchb = EndSwitch.InPort( 'b' , 'long' ) - IEndSwitchdd = EndSwitch.InPort( 'dd' , 'long' ) - IEndSwitche = EndSwitch.InPort( 'e' , 'long' ) - IEndSwitchf = EndSwitch.InPort( 'f' , 'long' ) - IEndSwitchDefault = EndSwitch.GetInPort( 'Default' ) - OEndSwitchIndex = EndSwitch.OutPort( 'Index' , 'long' ) - OEndSwitchGate = EndSwitch.GetOutPort( 'Gate' ) - Switch.SetName( 'Switch' ) - Switch.SetAuthor( '' ) - Switch.SetComment( 'Compute Node' ) - Switch.Coords( 232 , 285 ) - ISwitchIndex = Switch.InPort( 'Index' , 'long' ) - ISwitchGate = Switch.GetInPort( 'Gate' ) - OSwitchSB1 = Switch.OutPort( 'SB1' , 'long' ) - OSwitchSB2 = Switch.OutPort( 'SB2' , 'long' ) - OSwitcha = Switch.OutPort( 'a' , 'long' ) - OSwitchb = Switch.OutPort( 'b' , 'long' ) - OSwitchc = Switch.OutPort( 'c' , 'long' ) - OSwitchd = Switch.OutPort( 'd' , 'long' ) - OSwitche = Switch.OutPort( 'e' , 'long' ) - OSwitchf = Switch.OutPort( 'f' , 'long' ) - OSwitchDefault = Switch.GetOutPort( 'Default' ) - - # Creation of Links - LLoopIndexSwitchIndex = GraphSwitchManyCases.Link( OLoopIndex , ISwitchIndex ) - - LLoopMaxEndLoopMax = GraphSwitchManyCases.Link( OLoopMax , IEndLoopMax ) - - LLoopMinEndLoopMin = GraphSwitchManyCases.Link( OLoopMin , IEndLoopMin ) - - LSwitchSB1Case1Gate = GraphSwitchManyCases.Link( OSwitchSB1 , ICase1Gate ) - - LSwitchSB2Case2aGate = GraphSwitchManyCases.Link( OSwitchSB2 , ICase2aGate ) - - LSwitchaCase1a = GraphSwitchManyCases.Link( OSwitcha , ICase1a ) - - LSwitchaCase2aa = GraphSwitchManyCases.Link( OSwitcha , ICase2aa ) - - LSwitchbCase3b = GraphSwitchManyCases.Link( OSwitchb , ICase3b ) - - LSwitchcCase4c = GraphSwitchManyCases.Link( OSwitchc , ICase4c ) - - LSwitchdEndSwitchdd = GraphSwitchManyCases.Link( OSwitchd , IEndSwitchdd ) - - LSwitcheEndSwitche = GraphSwitchManyCases.Link( OSwitche , IEndSwitche ) - - LSwitchDefaultEndSwitchDefault = GraphSwitchManyCases.Link( OSwitchDefault , IEndSwitchDefault ) - - LEndSwitchIndexEndLoopIndex = GraphSwitchManyCases.Link( OEndSwitchIndex , IEndLoopIndex ) - - LCase1aEndSwitcha = GraphSwitchManyCases.Link( OCase1a , IEndSwitcha ) - - LCase3bEndSwitchb = GraphSwitchManyCases.Link( OCase3b , IEndSwitchb ) - - LCase4GateEndSwitchDefault = GraphSwitchManyCases.Link( OCase4Gate , IEndSwitchDefault ) - - LCase2aaEndSwitcha = GraphSwitchManyCases.Link( OCase2aa , IEndSwitcha ) - - # Input datas - ILoopIndex.Input( 0 ) - ILoopMax.Input( 23 ) - ILoopMin.Input( -7 ) - - # Input Ports of the graph - #IEndSwitchf = EndSwitch.GetInPort( 'f' ) - - # Output Ports of the graph - #OEndLoopIndex = EndLoop.GetOutPort( 'Index' ) - #OEndLoopMax = EndLoop.GetOutPort( 'Max' ) - #OEndLoopMin = EndLoop.GetOutPort( 'Min' ) - #OSwitchf = Switch.GetOutPort( 'f' ) - return GraphSwitchManyCases - - -GraphSwitchManyCases = DefGraphSwitchManyCases() diff --git a/Superv/Python/GraphSwitchManyCasesNOTValid.py b/Superv/Python/GraphSwitchManyCasesNOTValid.py deleted file mode 100644 index bbeab80..0000000 --- a/Superv/Python/GraphSwitchManyCasesNOTValid.py +++ /dev/null @@ -1,271 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphSwitchManyCasesNOTValid -# -from SuperV import * - -# Graph creation of GraphSwitchManyCasesNOTValid -def DefGraphSwitchManyCasesNOTValid() : - GraphSwitchManyCasesNOTValid = Graph( 'GraphSwitchManyCasesNOTValid' ) - GraphSwitchManyCasesNOTValid.SetName( 'GraphSwitchManyCasesNOTValid' ) - GraphSwitchManyCasesNOTValid.SetAuthor( 'JR' ) - GraphSwitchManyCasesNOTValid.SetComment( '' ) - GraphSwitchManyCasesNOTValid.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - # Creation of InLine Nodes - PyCase1 = [] - PyCase1.append( 'from time import * ' ) - PyCase1.append( 'def Case1(a) : ' ) - PyCase1.append( ' sleep(1) ' ) - PyCase1.append( ' return a ' ) - Case1 = GraphSwitchManyCasesNOTValid.INode( 'Case1' , PyCase1 ) - Case1.SetName( 'Case1' ) - Case1.SetAuthor( '' ) - Case1.SetComment( 'Compute Node' ) - Case1.Coords( 448 , 13 ) - ICase1a = Case1.InPort( 'a' , 'long' ) - ICase1Gate = Case1.GetInPort( 'Gate' ) - OCase1a = Case1.OutPort( 'a' , 'long' ) - OCase1Gate = Case1.GetOutPort( 'Gate' ) - - PyCase3 = [] - PyCase3.append( 'from time import * ' ) - PyCase3.append( 'def Case3(b) : ' ) - PyCase3.append( ' sleep(1) ' ) - PyCase3.append( ' return b ' ) - Case3 = GraphSwitchManyCasesNOTValid.INode( 'Case3' , PyCase3 ) - Case3.SetName( 'Case3' ) - Case3.SetAuthor( '' ) - Case3.SetComment( 'Compute Node' ) - Case3.Coords( 461 , 500 ) - ICase3b = Case3.InPort( 'b' , 'long' ) - ICase3Gate = Case3.GetInPort( 'Gate' ) - OCase3b = Case3.OutPort( 'b' , 'long' ) - OCase3Gate = Case3.GetOutPort( 'Gate' ) - - PyCase4 = [] - PyCase4.append( 'from time import * ' ) - PyCase4.append( 'def Case4(c) : ' ) - PyCase4.append( ' sleep(1) ' ) - PyCase4.append( ' return ' ) - Case4 = GraphSwitchManyCasesNOTValid.INode( 'Case4' , PyCase4 ) - Case4.SetName( 'Case4' ) - Case4.SetAuthor( '' ) - Case4.SetComment( 'Compute Node' ) - Case4.Coords( 455 , 647 ) - ICase4c = Case4.InPort( 'c' , 'long' ) - ICase4Gate = Case4.GetInPort( 'Gate' ) - OCase4Gate = Case4.GetOutPort( 'Gate' ) - - PyCase2 = [] - PyCase2.append( 'from time import * ' ) - PyCase2.append( 'def Case2() : ' ) - PyCase2.append( ' sleep(1) ' ) - PyCase2.append( ' return ' ) - Case2 = GraphSwitchManyCasesNOTValid.INode( 'Case2' , PyCase2 ) - Case2.SetName( 'Case2' ) - Case2.SetAuthor( '' ) - Case2.SetComment( 'Compute Node' ) - Case2.Coords( 455 , 179 ) - ICase2Gate = Case2.GetInPort( 'Gate' ) - OCase2Gate = Case2.GetOutPort( 'Gate' ) - - PyCase2a = [] - PyCase2a.append( 'from time import * ' ) - PyCase2a.append( 'def Case2a(a) : ' ) - PyCase2a.append( ' sleep(1) ' ) - PyCase2a.append( ' return a ' ) - Case2a = GraphSwitchManyCasesNOTValid.INode( 'Case2a' , PyCase2a ) - Case2a.SetName( 'Case2a' ) - Case2a.SetAuthor( '' ) - Case2a.SetComment( 'Compute Node' ) - Case2a.Coords( 456 , 304 ) - ICase2aa = Case2a.InPort( 'a' , 'long' ) - ICase2aGate = Case2a.GetInPort( 'Gate' ) - OCase2aa = Case2a.OutPort( 'a' , 'long' ) - OCase2aGate = Case2a.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyLoop = [] - PyLoop.append( 'def Init(Index,Max,Min) : ' ) - PyLoop.append( ' Index = Max ' ) - PyLoop.append( ' return Index,Max,Min ' ) - PyMoreLoop = [] - PyMoreLoop.append( 'def More(Index,Max,Min) : ' ) - PyMoreLoop.append( ' if Index >= Min : ' ) - PyMoreLoop.append( ' DoLoop = 1 ' ) - PyMoreLoop.append( ' else : ' ) - PyMoreLoop.append( ' DoLoop = 0 ' ) - PyMoreLoop.append( ' return DoLoop,Index,Max,Min ' ) - PyNextLoop = [] - PyNextLoop.append( 'def Next(Index,Max,Min) : ' ) - PyNextLoop.append( ' Index = Index - 1 ' ) - PyNextLoop.append( ' return Index,Max,Min ' ) - Loop,EndLoop = GraphSwitchManyCasesNOTValid.LNode( 'Init' , PyLoop , 'More' , PyMoreLoop , 'Next' , PyNextLoop ) - EndLoop.SetName( 'EndLoop' ) - EndLoop.SetAuthor( '' ) - EndLoop.SetComment( 'Compute Node' ) - EndLoop.Coords( 972 , 344 ) - PyEndLoop = [] - EndLoop.SetPyFunction( 'EndLoop' , PyEndLoop ) - ILoopDoLoop = Loop.GetInPort( 'DoLoop' ) - ILoopIndex = Loop.InPort( 'Index' , 'long' ) - ILoopMax = Loop.InPort( 'Max' , 'long' ) - ILoopMin = Loop.InPort( 'Min' , 'long' ) - ILoopGate = Loop.GetInPort( 'Gate' ) - OLoopDoLoop = Loop.GetOutPort( 'DoLoop' ) - OLoopIndex = Loop.GetOutPort( 'Index' ) - OLoopMax = Loop.GetOutPort( 'Max' ) - OLoopMin = Loop.GetOutPort( 'Min' ) - IEndLoopDoLoop = EndLoop.GetInPort( 'DoLoop' ) - IEndLoopIndex = EndLoop.GetInPort( 'Index' ) - IEndLoopMax = EndLoop.GetInPort( 'Max' ) - IEndLoopMin = EndLoop.GetInPort( 'Min' ) - IEndLoopGate = EndLoop.GetInPort( 'Gate' ) - OEndLoopDoLoop = EndLoop.GetOutPort( 'DoLoop' ) - OEndLoopIndex = EndLoop.GetOutPort( 'Index' ) - OEndLoopMax = EndLoop.GetOutPort( 'Max' ) - OEndLoopMin = EndLoop.GetOutPort( 'Min' ) - OEndLoopGate = EndLoop.GetOutPort( 'Gate' ) - Loop.SetName( 'Loop' ) - Loop.SetAuthor( '' ) - Loop.SetComment( 'Compute Node' ) - Loop.Coords( 15 , 336 ) - - # Creation of Switch Nodes - PySwitch = [] - PySwitch.append( 'from time import * ' ) - PySwitch.append( 'def Switch(Index) : ' ) - PySwitch.append( ' sleep(1) ' ) - PySwitch.append( ' SB1 = 0 ' ) - PySwitch.append( ' SB2 = 0 ' ) - PySwitch.append( ' if (Index & 3) == 3 : ' ) - PySwitch.append( ' SB1 = 1 ' ) - PySwitch.append( ' elif (Index & 3) == 0 : ' ) - PySwitch.append( ' SB2 = 1 ' ) - PySwitch.append( ' return SB1,SB2,Index,Index+1,Index+2,Index+3,Index+4,Index+5 ' ) - Switch,EndSwitch = GraphSwitchManyCasesNOTValid.SNode( 'Switch' , PySwitch ) - EndSwitch.SetName( 'EndSwitch' ) - EndSwitch.SetAuthor( '' ) - EndSwitch.SetComment( 'Compute Node' ) - EndSwitch.Coords( 732 , 344 ) - PyEndSwitch = [] - PyEndSwitch.append( 'from time import * ' ) - PyEndSwitch.append( 'def EndSwitch(a,b,dd,e,f) : ' ) - PyEndSwitch.append( ' sleep(1) ' ) - PyEndSwitch.append( ' if b != (a+1) : ' ) - PyEndSwitch.append( ' print 'EndSwitch ERROR' ' ) - PyEndSwitch.append( ' pass ' ) - PyEndSwitch.append( ' if dd != (a+3) : ' ) - PyEndSwitch.append( ' print 'EndSwitch ERROR' ' ) - PyEndSwitch.append( ' pass ' ) - PyEndSwitch.append( ' if e != (a+4) : ' ) - PyEndSwitch.append( ' print 'EndSwitch ERROR' ' ) - PyEndSwitch.append( ' pass ' ) - PyEndSwitch.append( ' if f != (a+5) : ' ) - PyEndSwitch.append( ' print 'EndSwitch ERROR' ' ) - PyEndSwitch.append( ' pass ' ) - PyEndSwitch.append( ' return a ' ) - EndSwitch.SetPyFunction( 'EndSwitch' , PyEndSwitch ) - IEndSwitcha = EndSwitch.InPort( 'a' , 'long' ) - IEndSwitchb = EndSwitch.InPort( 'b' , 'long' ) - IEndSwitchdd = EndSwitch.InPort( 'dd' , 'long' ) - IEndSwitche = EndSwitch.InPort( 'e' , 'long' ) - IEndSwitchf = EndSwitch.InPort( 'f' , 'long' ) - IEndSwitchDefault = EndSwitch.GetInPort( 'Default' ) - OEndSwitchIndex = EndSwitch.OutPort( 'Index' , 'long' ) - OEndSwitchGate = EndSwitch.GetOutPort( 'Gate' ) - Switch.SetName( 'Switch' ) - Switch.SetAuthor( '' ) - Switch.SetComment( 'Compute Node' ) - Switch.Coords( 232 , 285 ) - ISwitchIndex = Switch.InPort( 'Index' , 'long' ) - ISwitchGate = Switch.GetInPort( 'Gate' ) - OSwitchSB1 = Switch.OutPort( 'SB1' , 'long' ) - OSwitchSB2 = Switch.OutPort( 'SB2' , 'long' ) - OSwitcha = Switch.OutPort( 'a' , 'long' ) - OSwitchb = Switch.OutPort( 'b' , 'long' ) - OSwitchc = Switch.OutPort( 'c' , 'long' ) - OSwitchd = Switch.OutPort( 'd' , 'long' ) - OSwitche = Switch.OutPort( 'e' , 'long' ) - OSwitchf = Switch.OutPort( 'f' , 'long' ) - OSwitchDefault = Switch.GetOutPort( 'Default' ) - - # Creation of Links - LLoopIndexSwitchIndex = GraphSwitchManyCasesNOTValid.Link( OLoopIndex , ISwitchIndex ) - - LLoopMaxEndLoopMax = GraphSwitchManyCasesNOTValid.Link( OLoopMax , IEndLoopMax ) - - LLoopMinEndLoopMin = GraphSwitchManyCasesNOTValid.Link( OLoopMin , IEndLoopMin ) - - LSwitchSB1Case1Gate = GraphSwitchManyCasesNOTValid.Link( OSwitchSB1 , ICase1Gate ) - - LSwitchSB2Case2Gate = GraphSwitchManyCasesNOTValid.Link( OSwitchSB2 , ICase2Gate ) - - LSwitchSB2Case2aGate = GraphSwitchManyCasesNOTValid.Link( OSwitchSB2 , ICase2aGate ) - - LSwitchaCase1a = GraphSwitchManyCasesNOTValid.Link( OSwitcha , ICase1a ) - - LSwitchaCase2aa = GraphSwitchManyCasesNOTValid.Link( OSwitcha , ICase2aa ) - - LSwitchbCase3b = GraphSwitchManyCasesNOTValid.Link( OSwitchb , ICase3b ) - - LSwitchcCase4c = GraphSwitchManyCasesNOTValid.Link( OSwitchc , ICase4c ) - - LSwitchdEndSwitchdd = GraphSwitchManyCasesNOTValid.Link( OSwitchd , IEndSwitchdd ) - - LSwitcheEndSwitche = GraphSwitchManyCasesNOTValid.Link( OSwitche , IEndSwitche ) - - LSwitchDefaultEndSwitchDefault = GraphSwitchManyCasesNOTValid.Link( OSwitchDefault , IEndSwitchDefault ) - - LEndSwitchIndexEndLoopIndex = GraphSwitchManyCasesNOTValid.Link( OEndSwitchIndex , IEndLoopIndex ) - - LCase1aEndSwitcha = GraphSwitchManyCasesNOTValid.Link( OCase1a , IEndSwitcha ) - - LCase3bEndSwitchb = GraphSwitchManyCasesNOTValid.Link( OCase3b , IEndSwitchb ) - - LCase4GateEndSwitchDefault = GraphSwitchManyCasesNOTValid.Link( OCase4Gate , IEndSwitchDefault ) - - LCase2GateEndSwitchDefault = GraphSwitchManyCasesNOTValid.Link( OCase2Gate , IEndSwitchDefault ) - - LCase2aaEndSwitcha = GraphSwitchManyCasesNOTValid.Link( OCase2aa , IEndSwitcha ) - - # Input datas - ILoopIndex.Input( 0 ) - ILoopMax.Input( 23 ) - ILoopMin.Input( -7 ) - - # Input Ports of the graph - #IEndSwitchf = EndSwitch.GetInPort( 'f' ) - - # Output Ports of the graph - #OEndLoopIndex = EndLoop.GetOutPort( 'Index' ) - #OEndLoopMax = EndLoop.GetOutPort( 'Max' ) - #OEndLoopMin = EndLoop.GetOutPort( 'Min' ) - #OSwitchf = Switch.GetOutPort( 'f' ) - return GraphSwitchManyCasesNOTValid - - -GraphSwitchManyCasesNOTValid = DefGraphSwitchManyCasesNOTValid() diff --git a/Superv/Python/GraphSwitchNOTExecutable.py b/Superv/Python/GraphSwitchNOTExecutable.py deleted file mode 100644 index bb0079a..0000000 --- a/Superv/Python/GraphSwitchNOTExecutable.py +++ /dev/null @@ -1,163 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphSwitchNOTExecutable -# -from SuperV import * - -# Graph creation of GraphSwitchNOTExecutable -def DefGraphSwitchNOTExecutable() : - GraphSwitchNOTExecutable = Graph( 'GraphSwitchNOTExecutable' ) - GraphSwitchNOTExecutable.SetName( 'GraphSwitchNOTExecutable' ) - GraphSwitchNOTExecutable.SetAuthor( '' ) - GraphSwitchNOTExecutable.SetComment( '' ) - GraphSwitchNOTExecutable.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 = GraphSwitchNOTExecutable.INode( 'IsOdd' , PyIsOdd ) - IsOdd.SetName( 'IsOdd' ) - IsOdd.SetAuthor( '' ) - IsOdd.SetComment( 'Python function' ) - IsOdd.Coords( 389 , 65 ) - IIsOdda = IsOdd.InPort( 'a' , 'long' ) - IIsOddGate = IsOdd.GetInPort( 'Gate' ) - OIsOdda = IsOdd.OutPort( 'a' , 'long' ) - OIsOddGate = IsOdd.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyInitLoopSwitch = [] - PyInitLoopSwitch.append( 'def InitLoop(Index,Min,Max) : ' ) - PyInitLoopSwitch.append( ' return Index,Min,Max ' ) - PyMoreInitLoopSwitch = [] - PyMoreInitLoopSwitch.append( 'def MoreLoop(Index,Min,Max) : ' ) - PyMoreInitLoopSwitch.append( ' if Index <= Max : ' ) - 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 = GraphSwitchNOTExecutable.LNode( 'InitLoop' , PyInitLoopSwitch , 'MoreLoop' , PyMoreInitLoopSwitch , 'NextLoop' , PyNextInitLoopSwitch ) - EndOfInitLoopSwitch.SetName( 'EndOfInitLoopSwitch' ) - EndOfInitLoopSwitch.SetAuthor( '' ) - EndOfInitLoopSwitch.SetComment( 'Compute Node' ) - EndOfInitLoopSwitch.Coords( 776 , 170 ) - 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( ' if ( a & 1 ) == 0 : ' ) - PySwitch.append( ' sleep(1) ' ) - PySwitch.append( ' return a & 1,1-(a&1),a ' ) - Switch,EndOfSwitch = GraphSwitchNOTExecutable.SNode( 'Switch' , PySwitch ) - EndOfSwitch.SetName( 'EndOfSwitch' ) - EndOfSwitch.SetAuthor( '' ) - EndOfSwitch.SetComment( 'Compute Node' ) - EndOfSwitch.Coords( 582 , 170 ) - PyEndOfSwitch = [] - EndOfSwitch.SetPyFunction( '' , 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( 194 , 129 ) - ISwitcha = Switch.InPort( 'a' , 'long' ) - ISwitchGate = Switch.GetInPort( 'Gate' ) - OSwitchOdd = Switch.OutPort( 'Odd' , 'long' ) - OSwitchEven = Switch.OutPort( 'Even' , 'int' ) - OSwitchn = Switch.OutPort( 'n' , 'int' ) - OSwitchDefault = Switch.GetOutPort( 'Default' ) - - # Creation of Links - LIsOddaEndOfSwitcha = GraphSwitchNOTExecutable.Link( OIsOdda , IEndOfSwitcha ) - LIsOddaEndOfSwitcha.AddCoord( 1 , 564 , 201 ) - LIsOddaEndOfSwitcha.AddCoord( 2 , 564 , 137 ) - - LInitLoopSwitchIndexSwitcha = GraphSwitchNOTExecutable.Link( OInitLoopSwitchIndex , ISwitcha ) - - LInitLoopSwitchMinEndOfInitLoopSwitchMin = GraphSwitchNOTExecutable.Link( OInitLoopSwitchMin , IEndOfInitLoopSwitchMin ) - - LInitLoopSwitchMaxEndOfInitLoopSwitchMax = GraphSwitchNOTExecutable.Link( OInitLoopSwitchMax , IEndOfInitLoopSwitchMax ) - - LSwitchOddIsOddGate = GraphSwitchNOTExecutable.Link( OSwitchOdd , IIsOddGate ) - - LSwitchnIsOdda = GraphSwitchNOTExecutable.Link( OSwitchn , IIsOdda ) - LSwitchnIsOdda.AddCoord( 1 , 371 , 136 ) - LSwitchnIsOdda.AddCoord( 2 , 371 , 200 ) - - LSwitchDefaultEndOfSwitchDefault = GraphSwitchNOTExecutable.Link( OSwitchDefault , IEndOfSwitchDefault ) - - LEndOfSwitchaEndOfInitLoopSwitchIndex = GraphSwitchNOTExecutable.Link( OEndOfSwitcha , IEndOfInitLoopSwitchIndex ) - - # Input datas - IInitLoopSwitchIndex.Input( 0 ) - IInitLoopSwitchMin.Input( 0 ) - IInitLoopSwitchMax.Input( 100 ) - - # Output Ports of the graph - #OEndOfInitLoopSwitchIndex = EndOfInitLoopSwitch.GetOutPort( 'Index' ) - #OEndOfInitLoopSwitchMin = EndOfInitLoopSwitch.GetOutPort( 'Min' ) - #OEndOfInitLoopSwitchMax = EndOfInitLoopSwitch.GetOutPort( 'Max' ) - #OSwitchEven = Switch.GetOutPort( 'Even' ) - return GraphSwitchNOTExecutable - - -GraphSwitchNOTExecutable = DefGraphSwitchNOTExecutable() diff --git a/Superv/Python/GraphSwitchNOTExecutable1.py b/Superv/Python/GraphSwitchNOTExecutable1.py deleted file mode 100644 index 738eb08..0000000 --- a/Superv/Python/GraphSwitchNOTExecutable1.py +++ /dev/null @@ -1,165 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphSwitchNOTExecutable1 -# -from SuperV import * - -# Graph creation of GraphSwitchNOTExecutable1 -def DefGraphSwitchNOTExecutable1() : - GraphSwitchNOTExecutable1 = Graph( 'GraphSwitchNOTExecutable1' ) - GraphSwitchNOTExecutable1.SetName( 'GraphSwitchNOTExecutable1' ) - GraphSwitchNOTExecutable1.SetAuthor( '' ) - GraphSwitchNOTExecutable1.SetComment( '' ) - GraphSwitchNOTExecutable1.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 = GraphSwitchNOTExecutable1.INode( 'IsOdd' , PyIsOdd ) - IsOdd.SetName( 'IsOdd' ) - IsOdd.SetAuthor( '' ) - IsOdd.SetComment( 'Python function' ) - IsOdd.Coords( 389 , 65 ) - IIsOdda = IsOdd.InPort( 'a' , 'long' ) - IIsOddGate = IsOdd.GetInPort( 'Gate' ) - OIsOdda = IsOdd.OutPort( 'a' , 'long' ) - OIsOddGate = IsOdd.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyInitLoopSwitch = [] - PyInitLoopSwitch.append( 'def InitLoop(Index,Min,Max) : ' ) - PyInitLoopSwitch.append( ' return Index,Min,Max ' ) - PyMoreInitLoopSwitch = [] - PyMoreInitLoopSwitch.append( 'def MoreLoop(Index,Min,Max) : ' ) - PyMoreInitLoopSwitch.append( ' if Index <= Max : ' ) - 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 = GraphSwitchNOTExecutable1.LNode( 'InitLoop' , PyInitLoopSwitch , 'MoreLoop' , PyMoreInitLoopSwitch , 'NextLoop' , PyNextInitLoopSwitch ) - EndOfInitLoopSwitch.SetName( 'EndOfInitLoopSwitch' ) - EndOfInitLoopSwitch.SetAuthor( '' ) - EndOfInitLoopSwitch.SetComment( 'Compute Node' ) - EndOfInitLoopSwitch.Coords( 776 , 170 ) - 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( ' if ( a & 1 ) == 0 : ' ) - PySwitch.append( ' sleep(1) ' ) - PySwitch.append( ' return a & 1,1-(a&1),a ' ) - Switch,EndOfSwitch = GraphSwitchNOTExecutable1.SNode( 'Switch' , PySwitch ) - EndOfSwitch.SetName( 'EndOfSwitch' ) - EndOfSwitch.SetAuthor( '' ) - EndOfSwitch.SetComment( 'Compute Node' ) - EndOfSwitch.Coords( 582 , 170 ) - PyEndOfSwitch = [] - EndOfSwitch.SetPyFunction( '' , 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( 194 , 129 ) - ISwitcha = Switch.InPort( 'a' , 'long' ) - ISwitchGate = Switch.GetInPort( 'Gate' ) - OSwitchOdd = Switch.OutPort( 'Odd' , 'long' ) - OSwitchEven = Switch.OutPort( 'Even' , 'int' ) - OSwitchn = Switch.OutPort( 'n' , 'int' ) - OSwitchDefault = Switch.GetOutPort( 'Default' ) - - # Creation of Links - LIsOddaEndOfSwitcha = GraphSwitchNOTExecutable1.Link( OIsOdda , IEndOfSwitcha ) - LIsOddaEndOfSwitcha.AddCoord( 1 , 564 , 201 ) - LIsOddaEndOfSwitcha.AddCoord( 2 , 564 , 137 ) - - LInitLoopSwitchIndexSwitcha = GraphSwitchNOTExecutable1.Link( OInitLoopSwitchIndex , ISwitcha ) - - LInitLoopSwitchMinEndOfInitLoopSwitchMin = GraphSwitchNOTExecutable1.Link( OInitLoopSwitchMin , IEndOfInitLoopSwitchMin ) - - LInitLoopSwitchMaxEndOfInitLoopSwitchMax = GraphSwitchNOTExecutable1.Link( OInitLoopSwitchMax , IEndOfInitLoopSwitchMax ) - - LSwitchOddIsOddGate = GraphSwitchNOTExecutable1.Link( OSwitchOdd , IIsOddGate ) - - LSwitchnIsOdda = GraphSwitchNOTExecutable1.Link( OSwitchn , IIsOdda ) - LSwitchnIsOdda.AddCoord( 1 , 371 , 136 ) - LSwitchnIsOdda.AddCoord( 2 , 371 , 200 ) - - LSwitchnEndOfSwitcha = GraphSwitchNOTExecutable1.Link( OSwitchn , IEndOfSwitcha ) - - LSwitchDefaultEndOfSwitchDefault = GraphSwitchNOTExecutable1.Link( OSwitchDefault , IEndOfSwitchDefault ) - - LEndOfSwitchaEndOfInitLoopSwitchIndex = GraphSwitchNOTExecutable1.Link( OEndOfSwitcha , IEndOfInitLoopSwitchIndex ) - - # Input datas - IInitLoopSwitchIndex.Input( 0 ) - IInitLoopSwitchMin.Input( 0 ) - IInitLoopSwitchMax.Input( 100 ) - - # Output Ports of the graph - #OEndOfInitLoopSwitchIndex = EndOfInitLoopSwitch.GetOutPort( 'Index' ) - #OEndOfInitLoopSwitchMin = EndOfInitLoopSwitch.GetOutPort( 'Min' ) - #OEndOfInitLoopSwitchMax = EndOfInitLoopSwitch.GetOutPort( 'Max' ) - #OSwitchEven = Switch.GetOutPort( 'Even' ) - return GraphSwitchNOTExecutable1 - - -GraphSwitchNOTExecutable1 = DefGraphSwitchNOTExecutable1() diff --git a/Superv/Python/GraphSwitchNOTExecutable2.py b/Superv/Python/GraphSwitchNOTExecutable2.py deleted file mode 100644 index 7f9b62f..0000000 --- a/Superv/Python/GraphSwitchNOTExecutable2.py +++ /dev/null @@ -1,168 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphSwitchNOTExecutable2 -# -from SuperV import * - -# Graph creation of GraphSwitchNOTExecutable2 -def DefGraphSwitchNOTExecutable2() : - GraphSwitchNOTExecutable2 = Graph( 'GraphSwitchNOTExecutable2' ) - GraphSwitchNOTExecutable2.SetName( 'GraphSwitchNOTExecutable2' ) - GraphSwitchNOTExecutable2.SetAuthor( 'JR' ) - GraphSwitchNOTExecutable2.SetComment( '' ) - GraphSwitchNOTExecutable2.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 = GraphSwitchNOTExecutable2.INode( 'IsOdd' , PyIsOdd ) - IsOdd.SetName( 'IsOdd' ) - IsOdd.SetAuthor( '' ) - IsOdd.SetComment( 'Python function' ) - IsOdd.Coords( 389 , 65 ) - IIsOdda = IsOdd.InPort( 'a' , 'long' ) - IIsOddGate = IsOdd.GetInPort( 'Gate' ) - OIsOdda = IsOdd.OutPort( 'a' , 'long' ) - OIsOddGate = IsOdd.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyInitLoopSwitch = [] - PyInitLoopSwitch.append( 'def InitLoop(Index,Min,Max) : ' ) - PyInitLoopSwitch.append( ' return Index,Min,Max ' ) - PyMoreInitLoopSwitch = [] - PyMoreInitLoopSwitch.append( 'def MoreLoop(Index,Min,Max) : ' ) - PyMoreInitLoopSwitch.append( ' if Index <= Max : ' ) - 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 = GraphSwitchNOTExecutable2.LNode( 'InitLoop' , PyInitLoopSwitch , 'MoreLoop' , PyMoreInitLoopSwitch , 'NextLoop' , PyNextInitLoopSwitch ) - EndOfInitLoopSwitch.SetName( 'EndOfInitLoopSwitch' ) - EndOfInitLoopSwitch.SetAuthor( '' ) - EndOfInitLoopSwitch.SetComment( 'Compute Node' ) - EndOfInitLoopSwitch.Coords( 772 , 132 ) - 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( ' if ( a & 1 ) == 0 : ' ) - PySwitch.append( ' sleep(1) ' ) - PySwitch.append( ' return a & 1,1-(a&1),a ' ) - Switch,EndOfSwitch = GraphSwitchNOTExecutable2.SNode( 'Switch' , PySwitch ) - EndOfSwitch.SetName( 'EndOfSwitch' ) - EndOfSwitch.SetAuthor( '' ) - EndOfSwitch.SetComment( 'Compute Node' ) - EndOfSwitch.Coords( 581 , 132 ) - PyEndOfSwitch = [] - EndOfSwitch.SetPyFunction( '' , PyEndOfSwitch ) - IEndOfSwitcha = EndOfSwitch.InPort( 'a' , 'long' ) - IEndOfSwitchEven = EndOfSwitch.InPort( 'Even' , 'long' ) - IEndOfSwitchk = EndOfSwitch.InPort( 'k' , '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( 194 , 129 ) - ISwitcha = Switch.InPort( 'a' , 'long' ) - ISwitchGate = Switch.GetInPort( 'Gate' ) - OSwitchOdd = Switch.OutPort( 'Odd' , 'long' ) - OSwitchEven = Switch.OutPort( 'Even' , 'int' ) - OSwitchn = Switch.OutPort( 'n' , 'int' ) - OSwitchDefault = Switch.GetOutPort( 'Default' ) - - # Creation of Links - LIsOddaEndOfSwitcha = GraphSwitchNOTExecutable2.Link( OIsOdda , IEndOfSwitcha ) - - LInitLoopSwitchIndexSwitcha = GraphSwitchNOTExecutable2.Link( OInitLoopSwitchIndex , ISwitcha ) - - LInitLoopSwitchMinEndOfInitLoopSwitchMin = GraphSwitchNOTExecutable2.Link( OInitLoopSwitchMin , IEndOfInitLoopSwitchMin ) - - LInitLoopSwitchMaxEndOfInitLoopSwitchMax = GraphSwitchNOTExecutable2.Link( OInitLoopSwitchMax , IEndOfInitLoopSwitchMax ) - - LSwitchOddIsOddGate = GraphSwitchNOTExecutable2.Link( OSwitchOdd , IIsOddGate ) - - LSwitchnIsOdda = GraphSwitchNOTExecutable2.Link( OSwitchn , IIsOdda ) - LSwitchnIsOdda.AddCoord( 1 , 371 , 136 ) - LSwitchnIsOdda.AddCoord( 2 , 371 , 200 ) - - LSwitchnEndOfSwitchk = GraphSwitchNOTExecutable2.Link( OSwitchn , IEndOfSwitchk ) - - LSwitchDefaultEndOfSwitchDefault = GraphSwitchNOTExecutable2.Link( OSwitchDefault , IEndOfSwitchDefault ) - - LEndOfSwitchaEndOfInitLoopSwitchIndex = GraphSwitchNOTExecutable2.Link( OEndOfSwitcha , IEndOfInitLoopSwitchIndex ) - - # Input datas - IInitLoopSwitchIndex.Input( 0 ) - IInitLoopSwitchMin.Input( 0 ) - IInitLoopSwitchMax.Input( 100 ) - - # Input Ports of the graph - #IEndOfSwitchEven = EndOfSwitch.GetInPort( 'Even' ) - - # Output Ports of the graph - #OEndOfInitLoopSwitchIndex = EndOfInitLoopSwitch.GetOutPort( 'Index' ) - #OEndOfInitLoopSwitchMin = EndOfInitLoopSwitch.GetOutPort( 'Min' ) - #OEndOfInitLoopSwitchMax = EndOfInitLoopSwitch.GetOutPort( 'Max' ) - #OSwitchEven = Switch.GetOutPort( 'Even' ) - return GraphSwitchNOTExecutable2 - - -GraphSwitchNOTExecutable2 = DefGraphSwitchNOTExecutable2() diff --git a/Superv/Python/GraphSwitchOutput.py b/Superv/Python/GraphSwitchOutput.py deleted file mode 100644 index ed8e72e..0000000 --- a/Superv/Python/GraphSwitchOutput.py +++ /dev/null @@ -1,240 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphSwitch_1_1_2 -# -from SuperV import * - -# Graph creation of GraphSwitch_1_1_2 -def DefGraphSwitch_1_1_2() : - GraphSwitch_1_1_2 = Graph( 'GraphSwitch_1_1_2' ) - GraphSwitch_1_1_2.SetName( 'GraphSwitch_1_1_2' ) - GraphSwitch_1_1_2.SetAuthor( '' ) - GraphSwitch_1_1_2.SetComment( '' ) - GraphSwitch_1_1_2.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - # Creation of InLine Nodes - PyIsOdd = [] - PyIsOdd.append( 'from time import * ' ) - PyIsOdd.append( 'def IsOdd(a,Branch) : ' ) - PyIsOdd.append( ' print a,"IsOdd (GraphSwitch)" ' ) - PyIsOdd.append( ' sleep( 1 ) ' ) - PyIsOdd.append( ' return a,Branch ' ) - IsOdd = GraphSwitch_1_1_2.INode( 'IsOdd' , PyIsOdd ) - IsOdd.SetName( 'IsOdd' ) - IsOdd.SetAuthor( '' ) - IsOdd.SetComment( 'Python function' ) - IsOdd.Coords( 388 , 50 ) - IIsOdda = IsOdd.InPort( 'a' , 'long' ) - IIsOddBranch = IsOdd.InPort( 'Branch' , 'string' ) - IIsOddGate = IsOdd.GetInPort( 'Gate' ) - OIsOdda = IsOdd.OutPort( 'a' , 'long' ) - OIsOddBranch = IsOdd.OutPort( 'Branch' , 'string' ) - OIsOddGate = IsOdd.GetOutPort( 'Gate' ) - - PyIsEven = [] - PyIsEven.append( 'from time import * ' ) - PyIsEven.append( 'def IsEven(a,Branch) : ' ) - PyIsEven.append( ' print a,"IsEven (GraphSwitch)" ' ) - PyIsEven.append( ' sleep( 1 ) ' ) - PyIsEven.append( ' return a,Branch ' ) - IsEven = GraphSwitch_1_1_2.INode( 'IsEven' , PyIsEven ) - IsEven.SetName( 'IsEven' ) - IsEven.SetAuthor( '' ) - IsEven.SetComment( 'Compute Node' ) - IsEven.Coords( 395 , 334 ) - IIsEvena = IsEven.InPort( 'a' , 'long' ) - IIsEvenBranch = IsEven.InPort( 'Branch' , 'string' ) - IIsEvenGate = IsEven.GetInPort( 'Gate' ) - OIsEvena = IsEven.OutPort( 'a' , 'long' ) - OIsEvenBranch = IsEven.OutPort( 'Branch' , 'string' ) - 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_2.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_2.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_2.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_2.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_2.Link( OIsOdda , IPrinta ) - - LIsOddBranchPrintBranch = GraphSwitch_1_1_2.Link( OIsOddBranch , IPrintBranch ) - - LInitLoopSwitchIndexSwitcha = GraphSwitch_1_1_2.Link( OInitLoopSwitchIndex , ISwitcha ) - - LInitLoopSwitchMinEndOfInitLoopSwitchMin = GraphSwitch_1_1_2.Link( OInitLoopSwitchMin , IEndOfInitLoopSwitchMin ) - - LInitLoopSwitchMaxEndOfInitLoopSwitchMax = GraphSwitch_1_1_2.Link( OInitLoopSwitchMax , IEndOfInitLoopSwitchMax ) - - LIsEvenaPrint_1a = GraphSwitch_1_1_2.Link( OIsEvena , IPrint_1a ) - - LIsEvenBranchPrint_1Branch = GraphSwitch_1_1_2.Link( OIsEvenBranch , IPrint_1Branch ) - - LSwitchOddIsOddGate = GraphSwitch_1_1_2.Link( OSwitchOdd , IIsOddGate ) - - LSwitchEvenIsEvenGate = GraphSwitch_1_1_2.Link( OSwitchEven , IIsEvenGate ) - - LSwitchaIsOdda = GraphSwitch_1_1_2.Link( OSwitcha , IIsOdda ) - - LSwitchaIsEvena = GraphSwitch_1_1_2.Link( OSwitcha , IIsEvena ) - - LSwitchBranchIsOddBranch = GraphSwitch_1_1_2.Link( OSwitchBranch , IIsOddBranch ) - - LSwitchBranchIsEvenBranch = GraphSwitch_1_1_2.Link( OSwitchBranch , IIsEvenBranch ) - - LSwitchDefaultEndOfSwitchDefault = GraphSwitch_1_1_2.Link( OSwitchDefault , IEndOfSwitchDefault ) - - LEndOfSwitchaEndOfInitLoopSwitchIndex = GraphSwitch_1_1_2.Link( OEndOfSwitcha , IEndOfInitLoopSwitchIndex ) - - LPrintaEndOfSwitcha = GraphSwitch_1_1_2.Link( OPrinta , IEndOfSwitcha ) - - LPrint_1aEndOfSwitcha = GraphSwitch_1_1_2.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_2 - - -GraphSwitch_1_1_2 = DefGraphSwitch_1_1_2() diff --git a/Superv/Python/GraphSwitchOutputNOTValid.py b/Superv/Python/GraphSwitchOutputNOTValid.py deleted file mode 100644 index 94683cd..0000000 --- a/Superv/Python/GraphSwitchOutputNOTValid.py +++ /dev/null @@ -1,232 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphSwitchOutputNOTValid -# -from SuperV import * - -# Graph creation of GraphSwitchOutputNOTValid -def DefGraphSwitchOutputNOTValid() : - GraphSwitchOutputNOTValid = Graph( 'GraphSwitchOutputNOTValid' ) - GraphSwitchOutputNOTValid.SetName( 'GraphSwitchOutputNOTValid' ) - GraphSwitchOutputNOTValid.SetAuthor( 'JR' ) - GraphSwitchOutputNOTValid.SetComment( '' ) - GraphSwitchOutputNOTValid.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 = GraphSwitchOutputNOTValid.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 = GraphSwitchOutputNOTValid.INode( 'IsEven' , PyIsEven ) - IsEven.SetName( 'IsEven' ) - IsEven.SetAuthor( '' ) - IsEven.SetComment( 'Compute Node' ) - IsEven.Coords( 432 , 337 ) - 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 = GraphSwitchOutputNOTValid.INode( 'Print' , PyPrint ) - Print.SetName( 'Print' ) - Print.SetAuthor( '' ) - Print.SetComment( 'Compute Node' ) - Print.Coords( 639 , 50 ) - 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 = GraphSwitchOutputNOTValid.INode( 'Print_1' , PyPrint_1 ) - Print_1.SetName( 'Print_1' ) - Print_1.SetAuthor( '' ) - Print_1.SetComment( 'Compute Node' ) - Print_1.Coords( 645 , 250 ) - 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 = GraphSwitchOutputNOTValid.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 = GraphSwitchOutputNOTValid.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 = GraphSwitchOutputNOTValid.Link( OIsOdda , IPrinta ) - - LInitLoopSwitchIndexSwitcha = GraphSwitchOutputNOTValid.Link( OInitLoopSwitchIndex , ISwitcha ) - - LInitLoopSwitchMinEndOfInitLoopSwitchMin = GraphSwitchOutputNOTValid.Link( OInitLoopSwitchMin , IEndOfInitLoopSwitchMin ) - - LInitLoopSwitchMaxEndOfInitLoopSwitchMax = GraphSwitchOutputNOTValid.Link( OInitLoopSwitchMax , IEndOfInitLoopSwitchMax ) - - LIsEvenaPrint_1a = GraphSwitchOutputNOTValid.Link( OIsEvena , IPrint_1a ) - - LSwitchOddIsOddGate = GraphSwitchOutputNOTValid.Link( OSwitchOdd , IIsOddGate ) - - LSwitchEvenIsEvenGate = GraphSwitchOutputNOTValid.Link( OSwitchEven , IIsEvenGate ) - - LSwitchaIsOdda = GraphSwitchOutputNOTValid.Link( OSwitcha , IIsOdda ) - - LSwitchaIsEvena = GraphSwitchOutputNOTValid.Link( OSwitcha , IIsEvena ) - - LSwitchBranchPrintBranch = GraphSwitchOutputNOTValid.Link( OSwitchBranch , IPrintBranch ) - - LSwitchBranchPrint_1Branch = GraphSwitchOutputNOTValid.Link( OSwitchBranch , IPrint_1Branch ) - - LSwitchDefaultEndOfSwitchDefault = GraphSwitchOutputNOTValid.Link( OSwitchDefault , IEndOfSwitchDefault ) - - LEndOfSwitchaEndOfInitLoopSwitchIndex = GraphSwitchOutputNOTValid.Link( OEndOfSwitcha , IEndOfInitLoopSwitchIndex ) - - LPrintaEndOfSwitcha = GraphSwitchOutputNOTValid.Link( OPrinta , IEndOfSwitcha ) - - LPrint_1aEndOfSwitcha = GraphSwitchOutputNOTValid.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 GraphSwitchOutputNOTValid - - -GraphSwitchOutputNOTValid = DefGraphSwitchOutputNOTValid() diff --git a/Superv/Python/GraphSwitchs.py b/Superv/Python/GraphSwitchs.py deleted file mode 100755 index 1b32665..0000000 --- a/Superv/Python/GraphSwitchs.py +++ /dev/null @@ -1,282 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphSwitchs -# -from SuperV import * - -# Graph creation of GraphSwitchs -def DefGraphSwitchs() : - GraphSwitchs = Graph( 'GraphSwitchs' ) - GraphSwitchs.SetName( 'GraphSwitchs' ) - GraphSwitchs.SetAuthor( '' ) - GraphSwitchs.SetComment( '' ) - GraphSwitchs.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 (GraphSwitchs)" ' ) - PyIsOdd.append( ' sleep( 1 ) ' ) - PyIsOdd.append( ' return a ' ) - IsOdd = GraphSwitchs.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' ) - - PyIsOdd_1 = [] - PyIsOdd_1.append( 'from time import * ' ) - PyIsOdd_1.append( 'def IsOdd(a) : ' ) - PyIsOdd_1.append( ' print a,"IsOdd_1 (GraphSwitchs)" ' ) - PyIsOdd_1.append( ' sleep( 1 ) ' ) - PyIsOdd_1.append( ' return a ' ) - IsOdd_1 = GraphSwitchs.INode( 'IsOdd' , PyIsOdd_1 ) - IsOdd_1.SetName( 'IsOdd_1' ) - IsOdd_1.SetAuthor( '' ) - IsOdd_1.SetComment( 'Python function' ) - IsOdd_1.Coords( 419 , 308 ) - IIsOdd_1a = IsOdd_1.InPort( 'a' , 'long' ) - IIsOdd_1Gate = IsOdd_1.GetInPort( 'Gate' ) - OIsOdd_1a = IsOdd_1.OutPort( 'a' , 'long' ) - OIsOdd_1Gate = IsOdd_1.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyInitLoopSwitch = [] - PyInitLoopSwitch.append( 'def InitLoop(Index,Min,Max) : ' ) - PyInitLoopSwitch.append( ' return Index,Min,Max ' ) - PyMoreInitLoopSwitch = [] - PyMoreInitLoopSwitch.append( 'def MoreLoop(Index,Min,Max) : ' ) - PyMoreInitLoopSwitch.append( ' if Index <= Max : ' ) - 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 = GraphSwitchs.LNode( 'InitLoop' , PyInitLoopSwitch , 'MoreLoop' , PyMoreInitLoopSwitch , 'NextLoop' , PyNextInitLoopSwitch ) - EndOfInitLoopSwitch.SetName( 'EndOfInitLoopSwitch' ) - EndOfInitLoopSwitch.SetAuthor( '' ) - EndOfInitLoopSwitch.SetComment( 'Compute Node' ) - EndOfInitLoopSwitch.Coords( 766 , 127 ) - 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' ) - OInitLoopSwitchGate = InitLoopSwitch.GetOutPort( 'Gate' ) - 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 ) - - PyInitLoop = [] - PyInitLoop.append( 'def InitLoop(Index,Min,Max) : ' ) - PyInitLoop.append( ' return Index,Min,Max ' ) - PyMoreInitLoop = [] - PyMoreInitLoop.append( 'def MoreLoop(Index,Min,Max) : ' ) - PyMoreInitLoop.append( ' if Index <= Max : ' ) - PyMoreInitLoop.append( ' DoLoop = 1 ' ) - PyMoreInitLoop.append( ' else : ' ) - PyMoreInitLoop.append( ' DoLoop = 0 ' ) - PyMoreInitLoop.append( ' return DoLoop,Index,Min,Max ' ) - PyNextInitLoop = [] - PyNextInitLoop.append( 'def NextLoop(Index,Min,Max) : ' ) - PyNextInitLoop.append( ' Index = Index + 1 ' ) - PyNextInitLoop.append( ' return Index,Min,Max ' ) - InitLoop,EndOfInitLoop = GraphSwitchs.LNode( 'InitLoop' , PyInitLoop , 'MoreLoop' , PyMoreInitLoop , 'NextLoop' , PyNextInitLoop ) - EndOfInitLoop.SetName( 'EndOfInitLoop' ) - EndOfInitLoop.SetAuthor( '' ) - EndOfInitLoop.SetComment( 'Compute Node' ) - EndOfInitLoop.Coords( 783 , 381 ) - PyEndOfInitLoop = [] - EndOfInitLoop.SetPyFunction( '' , PyEndOfInitLoop ) - IInitLoopDoLoop = InitLoop.GetInPort( 'DoLoop' ) - IInitLoopIndex = InitLoop.InPort( 'Index' , 'long' ) - IInitLoopMin = InitLoop.InPort( 'Min' , 'long' ) - IInitLoopMax = InitLoop.InPort( 'Max' , 'long' ) - IInitLoopGate = InitLoop.GetInPort( 'Gate' ) - OInitLoopDoLoop = InitLoop.GetOutPort( 'DoLoop' ) - OInitLoopIndex = InitLoop.GetOutPort( 'Index' ) - OInitLoopMin = InitLoop.GetOutPort( 'Min' ) - OInitLoopMax = InitLoop.GetOutPort( 'Max' ) - OInitLoopGate = InitLoop.GetOutPort( 'Gate' ) - IEndOfInitLoopDoLoop = EndOfInitLoop.GetInPort( 'DoLoop' ) - IEndOfInitLoopIndex = EndOfInitLoop.GetInPort( 'Index' ) - IEndOfInitLoopMin = EndOfInitLoop.GetInPort( 'Min' ) - IEndOfInitLoopMax = EndOfInitLoop.GetInPort( 'Max' ) - IEndOfInitLoopGate = EndOfInitLoop.GetInPort( 'Gate' ) - OEndOfInitLoopDoLoop = EndOfInitLoop.GetOutPort( 'DoLoop' ) - OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) - OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) - OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) - OEndOfInitLoopGate = EndOfInitLoop.GetOutPort( 'Gate' ) - InitLoop.SetName( 'InitLoop' ) - InitLoop.SetAuthor( '' ) - InitLoop.SetComment( 'Compute Node' ) - InitLoop.Coords( 10 , 388 ) - - # Creation of Switch Nodes - PySwitch = [] - PySwitch.append( 'from time import * ' ) - PySwitch.append( 'def Switch(a) : ' ) - PySwitch.append( ' if ( a & 1 ) == 0 : ' ) - PySwitch.append( ' sleep(1) ' ) - PySwitch.append( ' return a & 1,1-(a&1),a ' ) - Switch,EndOfSwitch = GraphSwitchs.SNode( 'Switch' , PySwitch ) - EndOfSwitch.SetName( 'EndOfSwitch' ) - EndOfSwitch.SetAuthor( '' ) - EndOfSwitch.SetComment( 'Compute Node' ) - EndOfSwitch.Coords( 587 , 126 ) - PyEndOfSwitch = [] - EndOfSwitch.SetPyFunction( '' , 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( 186 , 130 ) - ISwitcha = Switch.InPort( 'a' , 'long' ) - ISwitchGate = Switch.GetInPort( 'Gate' ) - OSwitchOdd = Switch.OutPort( 'Odd' , 'long' ) - OSwitchEven = Switch.OutPort( 'Even' , 'int' ) - OSwitcha = Switch.OutPort( 'a' , 'int' ) - OSwitchDefault = Switch.GetOutPort( 'Default' ) - - PySwitch_1 = [] - PySwitch_1.append( 'from time import * ' ) - PySwitch_1.append( 'def Switch(a) : ' ) - PySwitch_1.append( ' if ( a & 1 ) == 0 : ' ) - PySwitch_1.append( ' sleep(1) ' ) - PySwitch_1.append( ' return a & 1,1-(a&1),a ' ) - Switch_1,EndSwitch = GraphSwitchs.SNode( 'Switch' , PySwitch_1 ) - EndSwitch.SetName( 'EndSwitch' ) - EndSwitch.SetAuthor( '' ) - EndSwitch.SetComment( 'Compute Node' ) - EndSwitch.Coords( 605 , 382 ) - PyEndSwitch = [] - EndSwitch.SetPyFunction( '' , PyEndSwitch ) - IEndSwitcha = EndSwitch.InPort( 'a' , 'long' ) - IEndSwitchDefault = EndSwitch.GetInPort( 'Default' ) - OEndSwitcha = EndSwitch.OutPort( 'a' , 'long' ) - OEndSwitchGate = EndSwitch.GetOutPort( 'Gate' ) - Switch_1.SetName( 'Switch_1' ) - Switch_1.SetAuthor( '' ) - Switch_1.SetComment( 'Compute Node' ) - Switch_1.Coords( 193 , 388 ) - ISwitch_1a = Switch_1.InPort( 'a' , 'long' ) - ISwitch_1Gate = Switch_1.GetInPort( 'Gate' ) - OSwitch_1Odd = Switch_1.OutPort( 'Odd' , 'long' ) - OSwitch_1Even = Switch_1.OutPort( 'Even' , 'int' ) - OSwitch_1a = Switch_1.OutPort( 'a' , 'int' ) - OSwitch_1Default = Switch_1.GetOutPort( 'Default' ) - - # Creation of Links - LIsOddaEndOfSwitcha = GraphSwitchs.Link( OIsOdda , IEndOfSwitcha ) - LIsOddaEndOfSwitcha.AddCoord( 1 , 573 , 160 ) - LIsOddaEndOfSwitcha.AddCoord( 2 , 572 , 130 ) - - LInitLoopSwitchIndexSwitcha = GraphSwitchs.Link( OInitLoopSwitchIndex , ISwitcha ) - - LInitLoopSwitchMinEndOfInitLoopSwitchMin = GraphSwitchs.Link( OInitLoopSwitchMin , IEndOfInitLoopSwitchMin ) - - LInitLoopSwitchMaxEndOfInitLoopSwitchMax = GraphSwitchs.Link( OInitLoopSwitchMax , IEndOfInitLoopSwitchMax ) - - LSwitchOddIsOddGate = GraphSwitchs.Link( OSwitchOdd , IIsOddGate ) - - LSwitchaIsOdda = GraphSwitchs.Link( OSwitcha , IIsOdda ) - LSwitchaIsOdda.AddCoord( 1 , 365 , 129 ) - LSwitchaIsOdda.AddCoord( 2 , 365 , 222 ) - - LSwitchDefaultEndOfSwitchDefault = GraphSwitchs.Link( OSwitchDefault , IEndOfSwitchDefault ) - LSwitchDefaultEndOfSwitchDefault.AddCoord( 1 , 572 , 194 ) - LSwitchDefaultEndOfSwitchDefault.AddCoord( 2 , 571 , 257 ) - - LEndOfSwitchaEndOfInitLoopSwitchIndex = GraphSwitchs.Link( OEndOfSwitcha , IEndOfInitLoopSwitchIndex ) - - LIsOdd_1aEndSwitcha = GraphSwitchs.Link( OIsOdd_1a , IEndSwitcha ) - LIsOdd_1aEndSwitcha.AddCoord( 1 , 599 , 416 ) - LIsOdd_1aEndSwitcha.AddCoord( 2 , 598 , 389 ) - - LInitLoopIndexSwitch_1a = GraphSwitchs.Link( OInitLoopIndex , ISwitch_1a ) - - LInitLoopMinEndOfInitLoopMin = GraphSwitchs.Link( OInitLoopMin , IEndOfInitLoopMin ) - - LInitLoopMaxEndOfInitLoopMax = GraphSwitchs.Link( OInitLoopMax , IEndOfInitLoopMax ) - - LSwitch_1OddIsOdd_1Gate = GraphSwitchs.Link( OSwitch_1Odd , IIsOdd_1Gate ) - - LSwitch_1EvenEndSwitchDefault = GraphSwitchs.Link( OSwitch_1Even , IEndSwitchDefault ) - - LSwitch_1aIsOdd_1a = GraphSwitchs.Link( OSwitch_1a , IIsOdd_1a ) - LSwitch_1aIsOdd_1a.AddCoord( 1 , 379 , 387 ) - LSwitch_1aIsOdd_1a.AddCoord( 2 , 378 , 481 ) - - LEndSwitchaEndOfInitLoopIndex = GraphSwitchs.Link( OEndSwitcha , IEndOfInitLoopIndex ) - - # Input datas - IInitLoopSwitchIndex.Input( 0 ) - IInitLoopSwitchMin.Input( 0 ) - IInitLoopSwitchMax.Input( 20 ) - IInitLoopIndex.Input( 0 ) - IInitLoopMin.Input( 0 ) - IInitLoopMax.Input( 20 ) - - # Output Ports of the graph - #OEndOfInitLoopSwitchIndex = EndOfInitLoopSwitch.GetOutPort( 'Index' ) - #OEndOfInitLoopSwitchMin = EndOfInitLoopSwitch.GetOutPort( 'Min' ) - #OEndOfInitLoopSwitchMax = EndOfInitLoopSwitch.GetOutPort( 'Max' ) - #OSwitchEven = Switch.GetOutPort( 'Even' ) - #OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) - #OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) - #OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) - return GraphSwitchs - - -GraphSwitchs = DefGraphSwitchs() diff --git a/Superv/Python/GraphSyrControl.py b/Superv/Python/GraphSyrControl.py deleted file mode 100644 index 2b7b826..0000000 --- a/Superv/Python/GraphSyrControl.py +++ /dev/null @@ -1,306 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphSyrControl -# -from SuperV import * - -# Graph creation of GraphSyrControl -def DefGraphSyrControl() : - GraphSyrControl = Graph( 'GraphSyrControl' ) - GraphSyrControl.SetName( 'GraphSyrControl' ) - GraphSyrControl.SetAuthor( 'JR' ) - GraphSyrControl.SetComment( 'Syracuse algorithm' ) - GraphSyrControl.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - test_ISEVEN = GraphSyrControl.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( 190 , 338 ) - 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 = GraphSyrControl.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( 196 , 131 ) - 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 = GraphSyrControl.FNode( 'SyrComponent' , 'SyrComponent' , 'C_M3P1' ) - m3p1.SetName( 'm3p1' ) - m3p1.SetAuthor( '' ) - m3p1.SetContainer( 'localhost/FactoryServer' ) - m3p1.SetComment( 'C_M3P1 from SyrComponent' ) - m3p1.Coords( 788 , 22 ) - Im3p1anOddInteger = m3p1.GetInPort( 'anOddInteger' ) - Im3p1Gate = m3p1.GetInPort( 'Gate' ) - Om3p1anEvenInteger = m3p1.GetOutPort( 'anEvenInteger' ) - Om3p1Gate = m3p1.GetOutPort( 'Gate' ) - - div2 = GraphSyrControl.FNode( 'SyrComponent' , 'SyrComponent' , 'C_DIV2' ) - div2.SetName( 'div2' ) - div2.SetAuthor( '' ) - div2.SetContainer( 'localhost/FactoryServer' ) - div2.SetComment( 'C_DIV2 from SyrComponent' ) - div2.Coords( 794 , 427 ) - Idiv2anEvenInteger = div2.GetInPort( 'anEvenInteger' ) - Idiv2Gate = div2.GetInPort( 'Gate' ) - Odiv2anInteger = div2.GetOutPort( 'anInteger' ) - Odiv2Gate = div2.GetOutPort( 'Gate' ) - - incr = GraphSyrControl.FNode( 'SyrComponent' , 'SyrComponent' , 'C_INCR' ) - incr.SetName( 'incr' ) - incr.SetAuthor( '' ) - incr.SetContainer( 'localhost/FactoryServer' ) - incr.SetComment( 'C_INCR from SyrComponent' ) - incr.Coords( 790 , 158 ) - 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 = GraphSyrControl.INode( 'label_begin' , Pylabel_begin ) - label_begin.SetName( 'label_begin' ) - label_begin.SetAuthor( '' ) - label_begin.SetComment( 'Python function' ) - label_begin.Coords( 7 , 216 ) - 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 = GraphSyrControl.INode( 'label_test' , Pylabel_test ) - label_test.SetName( 'label_test' ) - label_test.SetAuthor( '' ) - label_test.SetComment( 'Python function' ) - label_test.Coords( 385 , 159 ) - 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 = GraphSyrControl.SNode( 'Switch_OneEven' , Pytest ) - EndSwitch_OneEven.SetName( 'EndSwitch_OneEven' ) - EndSwitch_OneEven.SetAuthor( '' ) - EndSwitch_OneEven.SetComment( 'Compute Node' ) - EndSwitch_OneEven.Coords( 1065 , 321 ) - 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( 592 , 205 ) - 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( 'from time import * ' ) - Pycontrol_m3p1.append( 'def control_m3p1( N , K ): ' ) - Pycontrol_m3p1.append( ' sleep(1) ' ) - Pycontrol_m3p1.append( ' return 0,1,N,K ' ) - control_m3p1 = GraphSyrControl.GNode( 'control_m3p1' , Pycontrol_m3p1 , 'label_test' ) - control_m3p1.SetName( 'control_m3p1' ) - control_m3p1.SetAuthor( '' ) - control_m3p1.SetComment( 'Compute Node' ) - control_m3p1.Coords( 1012 , 68 ) - 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( 'from time import * ' ) - Pycontrol_div2.append( 'def control_div2( N , NB ) : ' ) - Pycontrol_div2.append( ' sleep(1) ' ) - Pycontrol_div2.append( ' return N,NB ' ) - control_div2 = GraphSyrControl.GNode( 'control_div2' , Pycontrol_div2 , 'label_begin' ) - control_div2.SetName( 'control_div2' ) - control_div2.SetAuthor( '' ) - control_div2.SetComment( 'Compute Node' ) - control_div2.Coords( 1010 , 473 ) - 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 = GraphSyrControl.Link( Otest_ISEVENBoolEven , Ilabel_testValEven ) - Ltest_ISEVENBoolEvenlabel_testValEven.AddCoord( 1 , 380 , 236 ) - Ltest_ISEVENBoolEvenlabel_testValEven.AddCoord( 2 , 379 , 419 ) - - Ltest_ISONEBoolOnelabel_testValOne = GraphSyrControl.Link( Otest_ISONEBoolOne , Ilabel_testValOne ) - Ltest_ISONEBoolOnelabel_testValOne.AddCoord( 1 , 367 , 269 ) - Ltest_ISONEBoolOnelabel_testValOne.AddCoord( 2 , 367 , 213 ) - - Lm3p1anEvenIntegercontrol_m3p1N = GraphSyrControl.Link( Om3p1anEvenInteger , Icontrol_m3p1N ) - - Ldiv2anIntegercontrol_div2N = GraphSyrControl.Link( Odiv2anInteger , Icontrol_div2N ) - - LincraNewCountcontrol_m3p1K = GraphSyrControl.Link( OincraNewCount , Icontrol_m3p1K ) - LincraNewCountcontrol_m3p1K.AddCoord( 1 , 978 , 132 ) - LincraNewCountcontrol_m3p1K.AddCoord( 2 , 978 , 239 ) - - LincraNewCountcontrol_div2K = GraphSyrControl.Link( OincraNewCount , Icontrol_div2K ) - LincraNewCountcontrol_div2K.AddCoord( 1 , 979 , 536 ) - LincraNewCountcontrol_div2K.AddCoord( 2 , 978 , 240 ) - - Llabel_beginNTlabel_testNT = GraphSyrControl.Link( Olabel_beginNT , Ilabel_testNT ) - - Llabel_beginNTtest_ISEVENanInteger = GraphSyrControl.Link( Olabel_beginNT , Itest_ISEVENanInteger ) - Llabel_beginNTtest_ISEVENanInteger.AddCoord( 1 , 184 , 416 ) - Llabel_beginNTtest_ISEVENanInteger.AddCoord( 2 , 185 , 298 ) - - Llabel_beginNTtest_ISONEanInteger = GraphSyrControl.Link( Olabel_beginNT , Itest_ISONEanInteger ) - Llabel_beginNTtest_ISONEanInteger.AddCoord( 1 , 186 , 211 ) - Llabel_beginNTtest_ISONEanInteger.AddCoord( 2 , 185 , 297 ) - - Llabel_beginKTlabel_testKT = GraphSyrControl.Link( Olabel_beginKT , Ilabel_testKT ) - - Llabel_testValEventestValEven = GraphSyrControl.Link( Olabel_testValEven , ItestValEven ) - - Llabel_testValOnetestValOne = GraphSyrControl.Link( Olabel_testValOne , ItestValOne ) - - Llabel_testNTtestNT = GraphSyrControl.Link( Olabel_testNT , ItestNT ) - - Llabel_testKTtestKT = GraphSyrControl.Link( Olabel_testKT , ItestKT ) - - LtestFinishedEndSwitch_OneEvenFinished = GraphSyrControl.Link( OtestFinished , IEndSwitch_OneEvenFinished ) - - LtestEvendiv2Gate = GraphSyrControl.Link( OtestEven , Idiv2Gate ) - LtestEvendiv2Gate.AddCoord( 1 , 764 , 536 ) - LtestEvendiv2Gate.AddCoord( 2 , 763 , 297 ) - - LtestOddm3p1Gate = GraphSyrControl.Link( OtestOdd , Im3p1Gate ) - LtestOddm3p1Gate.AddCoord( 1 , 773 , 133 ) - LtestOddm3p1Gate.AddCoord( 2 , 773 , 326 ) - - LtestNm3p1anOddInteger = GraphSyrControl.Link( OtestN , Im3p1anOddInteger ) - LtestNm3p1anOddInteger.AddCoord( 1 , 753 , 102 ) - LtestNm3p1anOddInteger.AddCoord( 2 , 752 , 355 ) - - LtestNdiv2anEvenInteger = GraphSyrControl.Link( OtestN , Idiv2anEvenInteger ) - LtestNdiv2anEvenInteger.AddCoord( 1 , 753 , 508 ) - LtestNdiv2anEvenInteger.AddCoord( 2 , 752 , 356 ) - - LtestKEndSwitch_OneEvenK = GraphSyrControl.Link( OtestK , IEndSwitch_OneEvenK ) - - LtestKincraCount = GraphSyrControl.Link( OtestK , IincraCount ) - LtestKincraCount.AddCoord( 1 , 779 , 239 ) - LtestKincraCount.AddCoord( 2 , 780 , 385 ) - - LtestDefaultEndSwitch_OneEvenDefault = GraphSyrControl.Link( OtestDefault , IEndSwitch_OneEvenDefault ) - - Lcontrol_m3p1Gatelabel_testGate = GraphSyrControl.Link( Ocontrol_m3p1Gate , Ilabel_testGate ) - Lcontrol_m3p1Gatelabel_testGate.AddCoord( 1 , 373 , 354 ) - Lcontrol_m3p1Gatelabel_testGate.AddCoord( 2 , 372 , 10 ) - Lcontrol_m3p1Gatelabel_testGate.AddCoord( 3 , 1180 , 9 ) - Lcontrol_m3p1Gatelabel_testGate.AddCoord( 4 , 1181 , 217 ) - - Lcontrol_div2Gatelabel_beginGate = GraphSyrControl.Link( Ocontrol_div2Gate , Ilabel_beginGate ) - Lcontrol_div2Gatelabel_beginGate.AddCoord( 1 , 5 , 355 ) - Lcontrol_div2Gatelabel_beginGate.AddCoord( 2 , 4 , 608 ) - Lcontrol_div2Gatelabel_beginGate.AddCoord( 3 , 1177 , 608 ) - Lcontrol_div2Gatelabel_beginGate.AddCoord( 4 , 1177 , 563 ) - - # 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 GraphSyrControl - - -GraphSyrControl = DefGraphSyrControl() diff --git a/Superv/Python/GraphSyrControl1.py b/Superv/Python/GraphSyrControl1.py deleted file mode 100755 index 39b7a56..0000000 --- a/Superv/Python/GraphSyrControl1.py +++ /dev/null @@ -1,267 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphSyrControl1 -# -from SuperV import * - -# Graph creation of GraphSyrControl1 -def DefGraphSyrControl1() : - GraphSyrControl1 = Graph( 'GraphSyrControl1' ) - GraphSyrControl1.SetName( 'GraphSyrControl1' ) - GraphSyrControl1.SetAuthor( 'JR' ) - GraphSyrControl1.SetComment( 'Syracuse algorithm' ) - GraphSyrControl1.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - test_ISEVEN = GraphSyrControl1.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( 190 , 338 ) - 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 = GraphSyrControl1.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( 196 , 131 ) - 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 = GraphSyrControl1.FNode( 'SyrComponent' , 'SyrComponent' , 'C_M3P1' ) - m3p1.SetName( 'm3p1' ) - m3p1.SetAuthor( '' ) - m3p1.SetContainer( 'localhost/FactoryServer' ) - m3p1.SetComment( 'C_M3P1 from SyrComponent' ) - m3p1.Coords( 615 , 30 ) - Im3p1anOddInteger = m3p1.GetInPort( 'anOddInteger' ) - Im3p1Gate = m3p1.GetInPort( 'Gate' ) - Om3p1anEvenInteger = m3p1.GetOutPort( 'anEvenInteger' ) - Om3p1Gate = m3p1.GetOutPort( 'Gate' ) - - div2 = GraphSyrControl1.FNode( 'SyrComponent' , 'SyrComponent' , 'C_DIV2' ) - div2.SetName( 'div2' ) - div2.SetAuthor( '' ) - div2.SetContainer( 'localhost/FactoryServer' ) - div2.SetComment( 'C_DIV2 from SyrComponent' ) - div2.Coords( 624 , 391 ) - Idiv2anEvenInteger = div2.GetInPort( 'anEvenInteger' ) - Idiv2Gate = div2.GetInPort( 'Gate' ) - Odiv2anInteger = div2.GetOutPort( 'anInteger' ) - Odiv2Gate = div2.GetOutPort( 'Gate' ) - - incr = GraphSyrControl1.FNode( 'SyrComponent' , 'SyrComponent' , 'C_INCR' ) - incr.SetName( 'incr' ) - incr.SetAuthor( '' ) - incr.SetContainer( 'localhost/FactoryServer' ) - incr.SetComment( 'C_INCR from SyrComponent' ) - incr.Coords( 623 , 206 ) - 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( ' return NB,KB' ) - label_begin = GraphSyrControl1.INode( 'label_begin' , Pylabel_begin ) - label_begin.SetName( 'label_begin' ) - label_begin.SetAuthor( '' ) - label_begin.SetComment( 'Python function' ) - label_begin.Coords( 5 , 190 ) - 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' ) - - # Creation of Switch Nodes - Pylabel_test = [] - Pylabel_test.append( 'def L_OneEven( ValOne , ValEven , NT , KT ):' ) - Pylabel_test.append( ' Finished = ValOne' ) - Pylabel_test.append( ' if Finished == 0 :' ) - Pylabel_test.append( ' Incr = 1' ) - Pylabel_test.append( ' Even = ValEven' ) - Pylabel_test.append( ' if Even == 0 :' ) - Pylabel_test.append( ' Odd = 1' ) - Pylabel_test.append( ' else :' ) - Pylabel_test.append( ' Odd = 0' ) - Pylabel_test.append( ' else :' ) - Pylabel_test.append( ' Incr = 0' ) - Pylabel_test.append( ' Even = 0' ) - Pylabel_test.append( ' Odd = 0' ) - Pylabel_test.append( ' Even = ValEven' ) - Pylabel_test.append( ' return Finished,Incr,Even,Odd,NT,KT' ) - label_test,EndL_OneEven = GraphSyrControl1.SNode( 'L_OneEven' , Pylabel_test ) - EndL_OneEven.SetName( 'EndL_OneEven' ) - EndL_OneEven.SetAuthor( '' ) - EndL_OneEven.SetComment( 'Compute Node' ) - EndL_OneEven.Coords( 1017 , 247 ) - PyEndL_OneEven = [] - EndL_OneEven.SetPyFunction( '' , PyEndL_OneEven ) - IEndL_OneEvenDefault = EndL_OneEven.GetInPort( 'Default' ) - OEndL_OneEvenGate = EndL_OneEven.GetOutPort( 'Gate' ) - label_test.SetName( 'label_test' ) - label_test.SetAuthor( '' ) - label_test.SetComment( 'Compute Node' ) - label_test.Coords( 399 , 177 ) - Ilabel_testValOne = label_test.InPort( 'ValOne' , 'long' ) - Ilabel_testValEven = label_test.InPort( 'ValEven' , 'long' ) - Ilabel_testNT = label_test.InPort( 'NT' , 'long' ) - Ilabel_testKT = label_test.InPort( 'KT' , 'long' ) - Ilabel_testGate = label_test.GetInPort( 'Gate' ) - Olabel_testFinished = label_test.OutPort( 'Finished' , 'long' ) - Olabel_testIncr = label_test.OutPort( 'Incr' , 'long' ) - Olabel_testEven = label_test.OutPort( 'Even' , 'long' ) - Olabel_testOdd = label_test.OutPort( 'Odd' , 'long' ) - Olabel_testN = label_test.OutPort( 'N' , 'long' ) - Olabel_testK = label_test.OutPort( 'K' , 'long' ) - Olabel_testDefault = label_test.GetOutPort( 'Default' ) - - # Creation of GOTO Nodes - Pycontrol_m3p1 = [] - Pycontrol_m3p1.append( 'def C_NotOneIsEven( N , K ):' ) - Pycontrol_m3p1.append( ' return 0,1,N,K' ) - control_m3p1 = GraphSyrControl1.GNode( 'C_NotOneIsEven' , Pycontrol_m3p1 , 'label_test' ) - control_m3p1.SetName( 'control_m3p1' ) - control_m3p1.SetAuthor( '' ) - control_m3p1.SetComment( 'Compute Node' ) - control_m3p1.Coords( 821 , 28 ) - 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 , K ) :' ) - Pycontrol_div2.append( ' return N,K' ) - control_div2 = GraphSyrControl1.GNode( 'control_div2' , Pycontrol_div2 , 'label_begin' ) - control_div2.SetName( 'control_div2' ) - control_div2.SetAuthor( '' ) - control_div2.SetComment( 'Compute Node' ) - control_div2.Coords( 818 , 358 ) - 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 = GraphSyrControl1.Link( Otest_ISEVENBoolEven , Ilabel_testValEven ) - Ltest_ISEVENBoolEvenlabel_testValEven.AddCoord( 1 , 383 , 239 ) - Ltest_ISEVENBoolEvenlabel_testValEven.AddCoord( 2 , 382 , 417 ) - - Ltest_ISONEBoolOnelabel_testValOne = GraphSyrControl1.Link( Otest_ISONEBoolOne , Ilabel_testValOne ) - - Lm3p1anEvenIntegercontrol_m3p1N = GraphSyrControl1.Link( Om3p1anEvenInteger , Icontrol_m3p1N ) - Lm3p1anEvenIntegercontrol_m3p1N.AddCoord( 1 , 793 , 62 ) - Lm3p1anEvenIntegercontrol_m3p1N.AddCoord( 2 , 792 , 111 ) - - Ldiv2anIntegercontrol_div2N = GraphSyrControl1.Link( Odiv2anInteger , Icontrol_div2N ) - Ldiv2anIntegercontrol_div2N.AddCoord( 1 , 797 , 392 ) - Ldiv2anIntegercontrol_div2N.AddCoord( 2 , 798 , 471 ) - - LincraNewCountcontrol_div2K = GraphSyrControl1.Link( OincraNewCount , Icontrol_div2K ) - LincraNewCountcontrol_div2K.AddCoord( 1 , 809 , 420 ) - LincraNewCountcontrol_div2K.AddCoord( 2 , 808 , 288 ) - - LincraNewCountcontrol_m3p1K = GraphSyrControl1.Link( OincraNewCount , Icontrol_m3p1K ) - LincraNewCountcontrol_m3p1K.AddCoord( 1 , 807 , 91 ) - LincraNewCountcontrol_m3p1K.AddCoord( 2 , 808 , 286 ) - - Llabel_beginNTtest_ISONEanInteger = GraphSyrControl1.Link( Olabel_beginNT , Itest_ISONEanInteger ) - Llabel_beginNTtest_ISONEanInteger.AddCoord( 1 , 180 , 211 ) - Llabel_beginNTtest_ISONEanInteger.AddCoord( 2 , 179 , 269 ) - - Llabel_beginNTlabel_testNT = GraphSyrControl1.Link( Olabel_beginNT , Ilabel_testNT ) - - Llabel_beginNTtest_ISEVENanInteger = GraphSyrControl1.Link( Olabel_beginNT , Itest_ISEVENanInteger ) - Llabel_beginNTtest_ISEVENanInteger.AddCoord( 1 , 179 , 417 ) - Llabel_beginNTtest_ISEVENanInteger.AddCoord( 2 , 179 , 271 ) - - Llabel_beginKTlabel_testKT = GraphSyrControl1.Link( Olabel_beginKT , Ilabel_testKT ) - - Llabel_testEvendiv2Gate = GraphSyrControl1.Link( Olabel_testEven , Idiv2Gate ) - Llabel_testEvendiv2Gate.AddCoord( 1 , 583 , 500 ) - Llabel_testEvendiv2Gate.AddCoord( 2 , 582 , 269 ) - - Llabel_testOddm3p1Gate = GraphSyrControl1.Link( Olabel_testOdd , Im3p1Gate ) - Llabel_testOddm3p1Gate.AddCoord( 1 , 571 , 138 ) - Llabel_testOddm3p1Gate.AddCoord( 2 , 573 , 298 ) - - Llabel_testNm3p1anOddInteger = GraphSyrControl1.Link( Olabel_testN , Im3p1anOddInteger ) - Llabel_testNm3p1anOddInteger.AddCoord( 1 , 604 , 110 ) - Llabel_testNm3p1anOddInteger.AddCoord( 2 , 605 , 328 ) - - Llabel_testNdiv2anEvenInteger = GraphSyrControl1.Link( Olabel_testN , Idiv2anEvenInteger ) - Llabel_testNdiv2anEvenInteger.AddCoord( 1 , 606 , 471 ) - Llabel_testNdiv2anEvenInteger.AddCoord( 2 , 605 , 328 ) - - Llabel_testKincraCount = GraphSyrControl1.Link( Olabel_testK , IincraCount ) - Llabel_testKincraCount.AddCoord( 1 , 594 , 287 ) - Llabel_testKincraCount.AddCoord( 2 , 595 , 356 ) - - Llabel_testDefaultEndL_OneEvenDefault = GraphSyrControl1.Link( Olabel_testDefault , IEndL_OneEvenDefault ) - Llabel_testDefaultEndL_OneEvenDefault.AddCoord( 1 , 1008 , 281 ) - Llabel_testDefaultEndL_OneEvenDefault.AddCoord( 2 , 1008 , 560 ) - Llabel_testDefaultEndL_OneEvenDefault.AddCoord( 3 , 565 , 559 ) - Llabel_testDefaultEndL_OneEvenDefault.AddCoord( 4 , 564 , 385 ) - - Lcontrol_m3p1Gatelabel_testGate = GraphSyrControl1.Link( Ocontrol_m3p1Gate , Ilabel_testGate ) - Lcontrol_m3p1Gatelabel_testGate.AddCoord( 1 , 368 , 327 ) - Lcontrol_m3p1Gatelabel_testGate.AddCoord( 2 , 369 , 7 ) - Lcontrol_m3p1Gatelabel_testGate.AddCoord( 3 , 1009 , 8 ) - Lcontrol_m3p1Gatelabel_testGate.AddCoord( 4 , 1009 , 179 ) - - Lcontrol_div2Gatelabel_beginGate = GraphSyrControl1.Link( Ocontrol_div2Gate , Ilabel_beginGate ) - Lcontrol_div2Gatelabel_beginGate.AddCoord( 1 , 3 , 327 ) - Lcontrol_div2Gatelabel_beginGate.AddCoord( 2 , 2 , 582 ) - Lcontrol_div2Gatelabel_beginGate.AddCoord( 3 , 991 , 583 ) - Lcontrol_div2Gatelabel_beginGate.AddCoord( 4 , 991 , 451 ) - - # Input datas - Ilabel_beginNB.Input( 7 ) - Ilabel_beginKB.Input( 0 ) - - # Output Ports of the graph - #Olabel_testFinished = label_test.GetOutPort( 'Finished' ) - #Olabel_testIncr = label_test.GetOutPort( 'Incr' ) - return GraphSyrControl1 - - -GraphSyrControl1 = DefGraphSyrControl1() diff --git a/Superv/Python/GraphSyrControlAborted.py b/Superv/Python/GraphSyrControlAborted.py deleted file mode 100644 index 09b34ac..0000000 --- a/Superv/Python/GraphSyrControlAborted.py +++ /dev/null @@ -1,299 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphSyrControlAborted -# -from SuperV import * - -# Graph creation of GraphSyrControlAborted -def DefGraphSyrControlAborted() : - GraphSyrControlAborted = Graph( 'GraphSyrControlAborted' ) - GraphSyrControlAborted.SetName( 'GraphSyrControlAborted' ) - GraphSyrControlAborted.SetAuthor( 'JR' ) - GraphSyrControlAborted.SetComment( 'Syracuse algorithm' ) - GraphSyrControlAborted.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - test_ISEVEN = GraphSyrControlAborted.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( 190 , 338 ) - 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 = GraphSyrControlAborted.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( 196 , 131 ) - 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 = GraphSyrControlAborted.FNode( 'SyrComponent' , 'SyrComponent' , 'C_M3P1' ) - m3p1.SetName( 'm3p1' ) - m3p1.SetAuthor( '' ) - m3p1.SetContainer( 'localhost/FactoryServer' ) - m3p1.SetComment( 'C_M3P1 from SyrComponent' ) - m3p1.Coords( 788 , 22 ) - Im3p1anOddInteger = m3p1.GetInPort( 'anOddInteger' ) - Im3p1Gate = m3p1.GetInPort( 'Gate' ) - Om3p1anEvenInteger = m3p1.GetOutPort( 'anEvenInteger' ) - Om3p1Gate = m3p1.GetOutPort( 'Gate' ) - - div2 = GraphSyrControlAborted.FNode( 'SyrComponent' , 'SyrComponent' , 'C_DIV2' ) - div2.SetName( 'div2' ) - div2.SetAuthor( '' ) - div2.SetContainer( 'localhost/FactoryServer' ) - div2.SetComment( 'C_DIV2 from SyrComponent' ) - div2.Coords( 794 , 427 ) - Idiv2anEvenInteger = div2.GetInPort( 'anEvenInteger' ) - Idiv2Gate = div2.GetInPort( 'Gate' ) - Odiv2anInteger = div2.GetOutPort( 'anInteger' ) - Odiv2Gate = div2.GetOutPort( 'Gate' ) - - incr = GraphSyrControlAborted.FNode( 'SyrComponent' , 'SyrComponent' , 'C_INCR' ) - incr.SetName( 'incr' ) - incr.SetAuthor( '' ) - incr.SetContainer( 'localhost/FactoryServer' ) - incr.SetComment( 'C_INCR from SyrComponent' ) - incr.Coords( 790 , 158 ) - 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 = GraphSyrControlAborted.INode( 'label_begin' , Pylabel_begin ) - label_begin.SetName( 'label_begin' ) - label_begin.SetAuthor( '' ) - label_begin.SetComment( 'Python function' ) - label_begin.Coords( 8 , 205 ) - 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 = GraphSyrControlAborted.INode( 'label_test' , Pylabel_test ) - label_test.SetName( 'label_test' ) - label_test.SetAuthor( '' ) - label_test.SetComment( 'Python function' ) - label_test.Coords( 397 , 165 ) - 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 = GraphSyrControlAborted.SNode( 'Switch_OneEven' , Pytest ) - EndSwitch_OneEven.SetName( 'EndSwitch_OneEven' ) - EndSwitch_OneEven.SetAuthor( '' ) - EndSwitch_OneEven.SetComment( 'Compute Node' ) - EndSwitch_OneEven.Coords( 1065 , 356 ) - 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( 575 , 205 ) - 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 = GraphSyrControlAborted.GNode( 'control_m3p1' , Pycontrol_m3p1 , 'label_test' ) - control_m3p1.SetName( 'control_m3p1' ) - control_m3p1.SetAuthor( '' ) - control_m3p1.SetComment( 'Compute Node' ) - control_m3p1.Coords( 1013 , 63 ) - 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 = GraphSyrControlAborted.GNode( 'control_div2' , Pycontrol_div2 , 'label_begin' ) - control_div2.SetName( 'control_div2' ) - control_div2.SetAuthor( '' ) - control_div2.SetComment( 'Compute Node' ) - control_div2.Coords( 1010 , 473 ) - 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 = GraphSyrControlAborted.Link( Otest_ISEVENBoolEven , Ilabel_testValEven ) - Ltest_ISEVENBoolEvenlabel_testValEven.AddCoord( 1 , 381 , 234 ) - Ltest_ISEVENBoolEvenlabel_testValEven.AddCoord( 2 , 381 , 410 ) - - Ltest_ISONEBoolOnelabel_testValOne = GraphSyrControlAborted.Link( Otest_ISONEBoolOne , Ilabel_testValOne ) - Ltest_ISONEBoolOnelabel_testValOne.AddCoord( 1 , 367 , 256 ) - Ltest_ISONEBoolOnelabel_testValOne.AddCoord( 2 , 367 , 201 ) - - Lm3p1anEvenIntegercontrol_m3p1N = GraphSyrControlAborted.Link( Om3p1anEvenInteger , Icontrol_m3p1N ) - - Ldiv2anIntegercontrol_div2N = GraphSyrControlAborted.Link( Odiv2anInteger , Icontrol_div2N ) - - LincraNewCountcontrol_m3p1K = GraphSyrControlAborted.Link( OincraNewCount , Icontrol_m3p1K ) - LincraNewCountcontrol_m3p1K.AddCoord( 1 , 978 , 114 ) - LincraNewCountcontrol_m3p1K.AddCoord( 2 , 978 , 230 ) - - LincraNewCountcontrol_div2K = GraphSyrControlAborted.Link( OincraNewCount , Icontrol_div2K ) - LincraNewCountcontrol_div2K.AddCoord( 1 , 981 , 524 ) - LincraNewCountcontrol_div2K.AddCoord( 2 , 978 , 229 ) - - Llabel_beginNTlabel_testNT = GraphSyrControlAborted.Link( Olabel_beginNT , Ilabel_testNT ) - - Llabel_beginNTtest_ISEVENanInteger = GraphSyrControlAborted.Link( Olabel_beginNT , Itest_ISEVENanInteger ) - Llabel_beginNTtest_ISEVENanInteger.AddCoord( 1 , 179 , 408 ) - Llabel_beginNTtest_ISEVENanInteger.AddCoord( 2 , 179 , 276 ) - - Llabel_beginNTtest_ISONEanInteger = GraphSyrControlAborted.Link( Olabel_beginNT , Itest_ISONEanInteger ) - Llabel_beginNTtest_ISONEanInteger.AddCoord( 1 , 179 , 203 ) - Llabel_beginNTtest_ISONEanInteger.AddCoord( 2 , 180 , 275 ) - - Llabel_beginKTlabel_testKT = GraphSyrControlAborted.Link( Olabel_beginKT , Ilabel_testKT ) - - Llabel_testValEventestValEven = GraphSyrControlAborted.Link( Olabel_testValEven , ItestValEven ) - - Llabel_testValOnetestValOne = GraphSyrControlAborted.Link( Olabel_testValOne , ItestValOne ) - - Llabel_testNTtestNT = GraphSyrControlAborted.Link( Olabel_testNT , ItestNT ) - - Llabel_testKTtestKT = GraphSyrControlAborted.Link( Olabel_testKT , ItestKT ) - - LtestFinishedEndSwitch_OneEvenFinished = GraphSyrControlAborted.Link( OtestFinished , IEndSwitch_OneEvenFinished ) - - LtestEvendiv2Gate = GraphSyrControlAborted.Link( OtestEven , Idiv2Gate ) - LtestEvendiv2Gate.AddCoord( 1 , 763 , 522 ) - LtestEvendiv2Gate.AddCoord( 2 , 763 , 278 ) - - LtestOddm3p1Gate = GraphSyrControlAborted.Link( OtestOdd , Im3p1Gate ) - LtestOddm3p1Gate.AddCoord( 1 , 772 , 117 ) - LtestOddm3p1Gate.AddCoord( 2 , 772 , 297 ) - - LtestNm3p1anOddInteger = GraphSyrControlAborted.Link( OtestN , Im3p1anOddInteger ) - LtestNm3p1anOddInteger.AddCoord( 1 , 751 , 93 ) - LtestNm3p1anOddInteger.AddCoord( 2 , 752 , 317 ) - - LtestNdiv2anEvenInteger = GraphSyrControlAborted.Link( OtestN , Idiv2anEvenInteger ) - LtestNdiv2anEvenInteger.AddCoord( 1 , 751 , 498 ) - LtestNdiv2anEvenInteger.AddCoord( 2 , 752 , 318 ) - - LtestKEndSwitch_OneEvenK = GraphSyrControlAborted.Link( OtestK , IEndSwitch_OneEvenK ) - - LtestKincraCount = GraphSyrControlAborted.Link( OtestK , IincraCount ) - LtestKincraCount.AddCoord( 1 , 779 , 229 ) - LtestKincraCount.AddCoord( 2 , 779 , 336 ) - - Lcontrol_m3p1Gatelabel_testGate = GraphSyrControlAborted.Link( Ocontrol_m3p1Gate , Ilabel_testGate ) - Lcontrol_m3p1Gatelabel_testGate.AddCoord( 1 , 374 , 321 ) - Lcontrol_m3p1Gatelabel_testGate.AddCoord( 2 , 374 , 15 ) - Lcontrol_m3p1Gatelabel_testGate.AddCoord( 3 , 1180 , 9 ) - Lcontrol_m3p1Gatelabel_testGate.AddCoord( 4 , 1181 , 217 ) - - Lcontrol_div2Gatelabel_beginGate = GraphSyrControlAborted.Link( Ocontrol_div2Gate , Ilabel_beginGate ) - Lcontrol_div2Gatelabel_beginGate.AddCoord( 1 , 4 , 608 ) - Lcontrol_div2Gatelabel_beginGate.AddCoord( 2 , 1184 , 604 ) - Lcontrol_div2Gatelabel_beginGate.AddCoord( 3 , 1184 , 548 ) - - # 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 GraphSyrControlAborted - - -GraphSyrControlAborted = DefGraphSyrControlAborted() diff --git a/Superv/Python/GraphSyrControlAve.py b/Superv/Python/GraphSyrControlAve.py deleted file mode 100644 index 6bb4728..0000000 --- a/Superv/Python/GraphSyrControlAve.py +++ /dev/null @@ -1,433 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphSyrControlAve -# -from SuperV import * - -# Graph creation of GraphSyrControlAve -def DefGraphSyrControlAve() : - GraphSyrControlAve = Graph( 'GraphSyrControlAve' ) - GraphSyrControlAve.SetName( 'GraphSyrControlAve' ) - GraphSyrControlAve.SetAuthor( 'JR' ) - GraphSyrControlAve.SetComment( 'Syracuse algorithm' ) - GraphSyrControlAve.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - test_ISEVEN = GraphSyrControlAve.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( 370 , 455 ) - 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 = GraphSyrControlAve.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( 370 , 127 ) - 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 = GraphSyrControlAve.FNode( 'SyrComponent' , 'SyrComponent' , 'C_M3P1' ) - m3p1.SetName( 'm3p1' ) - m3p1.SetAuthor( '' ) - m3p1.SetContainer( 'localhost/FactoryServer' ) - m3p1.SetComment( 'C_M3P1 from SyrComponent' ) - m3p1.Coords( 789 , 0 ) - Im3p1anOddInteger = m3p1.GetInPort( 'anOddInteger' ) - Im3p1Gate = m3p1.GetInPort( 'Gate' ) - Om3p1anEvenInteger = m3p1.GetOutPort( 'anEvenInteger' ) - Om3p1Gate = m3p1.GetOutPort( 'Gate' ) - - div2 = GraphSyrControlAve.FNode( 'SyrComponent' , 'SyrComponent' , 'C_DIV2' ) - div2.SetName( 'div2' ) - div2.SetAuthor( '' ) - div2.SetContainer( 'localhost/FactoryServer' ) - div2.SetComment( 'C_DIV2 from SyrComponent' ) - div2.Coords( 789 , 255 ) - Idiv2anEvenInteger = div2.GetInPort( 'anEvenInteger' ) - Idiv2Gate = div2.GetInPort( 'Gate' ) - Odiv2anInteger = div2.GetOutPort( 'anInteger' ) - Odiv2Gate = div2.GetOutPort( 'Gate' ) - - incr = GraphSyrControlAve.FNode( 'SyrComponent' , 'SyrComponent' , 'C_INCR' ) - incr.SetName( 'incr' ) - incr.SetAuthor( '' ) - incr.SetContainer( 'localhost/FactoryServer' ) - incr.SetComment( 'C_INCR from SyrComponent' ) - incr.Coords( 790 , 136 ) - IincraCount = incr.GetInPort( 'aCount' ) - IincrGate = incr.GetInPort( 'Gate' ) - OincraNewCount = incr.GetOutPort( 'aNewCount' ) - OincrGate = incr.GetOutPort( 'Gate' ) - - C_MIN = GraphSyrControlAve.FNode( 'SyrComponent' , 'SyrComponent' , 'C_MIN' ) - C_MIN.SetName( 'C_MIN' ) - C_MIN.SetAuthor( '' ) - C_MIN.SetContainer( 'localhost/FactoryServer' ) - C_MIN.SetComment( 'C_MIN from SyrComponent' ) - C_MIN.Coords( 798 , 833 ) - IC_MINaMinVal = C_MIN.GetInPort( 'aMinVal' ) - IC_MINanInteger = C_MIN.GetInPort( 'anInteger' ) - IC_MINGate = C_MIN.GetInPort( 'Gate' ) - OC_MINaNewMinVal = C_MIN.GetOutPort( 'aNewMinVal' ) - OC_MINGate = C_MIN.GetOutPort( 'Gate' ) - - C_MAX = GraphSyrControlAve.FNode( 'SyrComponent' , 'SyrComponent' , 'C_MAX' ) - C_MAX.SetName( 'C_MAX' ) - C_MAX.SetAuthor( '' ) - C_MAX.SetContainer( 'localhost/FactoryServer' ) - C_MAX.SetComment( 'C_MAX from SyrComponent' ) - C_MAX.Coords( 798 , 668 ) - IC_MAXaMaxVal = C_MAX.GetInPort( 'aMaxVal' ) - IC_MAXanInteger = C_MAX.GetInPort( 'anInteger' ) - IC_MAXGate = C_MAX.GetInPort( 'Gate' ) - OC_MAXaNewMaxVal = C_MAX.GetOutPort( 'aNewMaxVal' ) - OC_MAXGate = C_MAX.GetOutPort( 'Gate' ) - - C_AVERAGE = GraphSyrControlAve.FNode( 'SyrComponent' , 'SyrComponent' , 'C_AVERAGE' ) - C_AVERAGE.SetName( 'C_AVERAGE' ) - C_AVERAGE.SetAuthor( '' ) - C_AVERAGE.SetContainer( 'localhost/FactoryServer' ) - C_AVERAGE.SetComment( 'C_AVERAGE from SyrComponent' ) - C_AVERAGE.Coords( 784 , 476 ) - IC_AVERAGEaListOfSyr = C_AVERAGE.GetInPort( 'aListOfSyr' ) - IC_AVERAGEanInteger = C_AVERAGE.GetInPort( 'anInteger' ) - IC_AVERAGEaCount = C_AVERAGE.GetInPort( 'aCount' ) - IC_AVERAGEGate = C_AVERAGE.GetInPort( 'Gate' ) - OC_AVERAGEaNewListOfSyr = C_AVERAGE.GetOutPort( 'aNewListOfSyr' ) - OC_AVERAGEanAverage = C_AVERAGE.GetOutPort( 'anAverage' ) - OC_AVERAGEGate = C_AVERAGE.GetOutPort( 'Gate' ) - - C_LISTOFSYR = GraphSyrControlAve.FNode( 'SyrComponent' , 'SyrComponent' , 'C_LISTOFSYR' ) - C_LISTOFSYR.SetName( 'C_LISTOFSYR' ) - C_LISTOFSYR.SetAuthor( '' ) - C_LISTOFSYR.SetContainer( 'localhost/FactoryServer' ) - C_LISTOFSYR.SetComment( 'C_LISTOFSYR from SyrComponent' ) - C_LISTOFSYR.Coords( 5 , 321 ) - IC_LISTOFSYRGate = C_LISTOFSYR.GetInPort( 'Gate' ) - OC_LISTOFSYRaListOfSyr = C_LISTOFSYR.GetOutPort( 'aListOfSyr' ) - OC_LISTOFSYRGate = C_LISTOFSYR.GetOutPort( 'Gate' ) - - # Creation of InLine Nodes - Pylabel_begin = [] - Pylabel_begin.append( 'def label_begin( NB , KB , MINB , MAXB , AVERAGEB , SYRLISTB ) :' ) - Pylabel_begin.append( ' return NB,KB,MINB,MAXB,AVERAGEB,SYRLISTB' ) - label_begin = GraphSyrControlAve.INode( 'label_begin' , Pylabel_begin ) - label_begin.SetName( 'label_begin' ) - label_begin.SetAuthor( '' ) - label_begin.SetComment( 'Python function' ) - label_begin.Coords( 183 , 220 ) - Ilabel_beginNB = label_begin.InPort( 'NB' , 'long' ) - Ilabel_beginKB = label_begin.InPort( 'KB' , 'long' ) - Ilabel_beginMINB = label_begin.InPort( 'MINB' , 'long' ) - Ilabel_beginMAXB = label_begin.InPort( 'MAXB' , 'long' ) - Ilabel_beginAVERAGEB = label_begin.InPort( 'AVERAGEB' , 'double' ) - Ilabel_beginSYRLISTB = label_begin.InPort( 'SYRLISTB' , 'ListOfSyr' ) - Ilabel_beginGate = label_begin.GetInPort( 'Gate' ) - Olabel_beginNT = label_begin.OutPort( 'NT' , 'long' ) - Olabel_beginKT = label_begin.OutPort( 'KT' , 'long' ) - Olabel_beginMIN = label_begin.OutPort( 'MIN' , 'long' ) - Olabel_beginMAX = label_begin.OutPort( 'MAX' , 'long' ) - Olabel_beginAVERAGE = label_begin.OutPort( 'AVERAGE' , 'double' ) - Olabel_beginSYRLIST = label_begin.OutPort( 'SYRLIST' , 'ListOfSyr' ) - Olabel_beginGate = label_begin.GetOutPort( 'Gate' ) - - # Creation of Switch Nodes - Pylabel_test = [] - Pylabel_test.append( 'def L_OneEven( ValOne , ValEven , NT , KT , MIN , MAX , AVERAGE , SYRLIST ):' ) - Pylabel_test.append( ' Finished = ValOne' ) - Pylabel_test.append( ' if Finished == 0 :' ) - Pylabel_test.append( ' Incr = 1' ) - Pylabel_test.append( ' Even = ValEven' ) - Pylabel_test.append( ' if Even == 0 :' ) - Pylabel_test.append( ' Odd = 1' ) - Pylabel_test.append( ' else :' ) - Pylabel_test.append( ' Odd = 0' ) - Pylabel_test.append( ' else :' ) - Pylabel_test.append( ' Incr = 0' ) - Pylabel_test.append( ' Even = 0' ) - Pylabel_test.append( ' Odd = 0' ) - Pylabel_test.append( ' Even = ValEven' ) - Pylabel_test.append( ' return Finished,Incr,Even,Odd,NT,KT,MIN,MAX,AVERAGE,SYRLIST' ) - label_test,EndL_OneEven = GraphSyrControlAve.SNode( 'L_OneEven' , Pylabel_test ) - EndL_OneEven.SetName( 'EndL_OneEven' ) - EndL_OneEven.SetAuthor( '' ) - EndL_OneEven.SetComment( 'Compute Node' ) - EndL_OneEven.Coords( 1064 , 339 ) - PyEndL_OneEven = [] - EndL_OneEven.SetPyFunction( '' , PyEndL_OneEven ) - IEndL_OneEvenMINT = EndL_OneEven.InPort( 'MINT' , 'long' ) - IEndL_OneEvenMAXT = EndL_OneEven.InPort( 'MAXT' , 'long' ) - IEndL_OneEvenAVERAGET = EndL_OneEven.InPort( 'AVERAGET' , 'double' ) - IEndL_OneEvenDefault = EndL_OneEven.GetInPort( 'Default' ) - OEndL_OneEvenMIN = EndL_OneEven.OutPort( 'MIN' , 'long' ) - OEndL_OneEvenMAX = EndL_OneEven.OutPort( 'MAX' , 'long' ) - OEndL_OneEvenAVERAGE = EndL_OneEven.OutPort( 'AVERAGE' , 'double' ) - OEndL_OneEvenGate = EndL_OneEven.GetOutPort( 'Gate' ) - label_test.SetName( 'label_test' ) - label_test.SetAuthor( '' ) - label_test.SetComment( 'Compute Node' ) - label_test.Coords( 564 , 219 ) - Ilabel_testValOne = label_test.InPort( 'ValOne' , 'long' ) - Ilabel_testValEven = label_test.InPort( 'ValEven' , 'long' ) - Ilabel_testNT = label_test.InPort( 'NT' , 'long' ) - Ilabel_testKT = label_test.InPort( 'KT' , 'long' ) - Ilabel_testMIN = label_test.InPort( 'MIN' , 'long' ) - Ilabel_testMAX = label_test.InPort( 'MAX' , 'long' ) - Ilabel_testAVERAGE = label_test.InPort( 'AVERAGE' , 'double' ) - Ilabel_testSYRLIST = label_test.InPort( 'SYRLIST' , 'ListOfSyr' ) - Ilabel_testGate = label_test.GetInPort( 'Gate' ) - Olabel_testFinished = label_test.OutPort( 'Finished' , 'long' ) - Olabel_testIncr = label_test.OutPort( 'Incr' , 'long' ) - Olabel_testEven = label_test.OutPort( 'Even' , 'long' ) - Olabel_testOdd = label_test.OutPort( 'Odd' , 'long' ) - Olabel_testN = label_test.OutPort( 'N' , 'long' ) - Olabel_testK = label_test.OutPort( 'K' , 'long' ) - Olabel_testMINT = label_test.OutPort( 'MINT' , 'long' ) - Olabel_testMAXT = label_test.OutPort( 'MAXT' , 'long' ) - Olabel_testAVERAGET = label_test.OutPort( 'AVERAGET' , 'double' ) - Olabel_testSYRLISTT = label_test.OutPort( 'SYRLISTT' , 'ListOfSyr' ) - Olabel_testDefault = label_test.GetOutPort( 'Default' ) - - # Creation of GOTO Nodes - Pycontrol_m3p1 = [] - Pycontrol_m3p1.append( 'def C_NotOneIsEven( N , K , MINT , MAXT , AVERAGET , SYRLISTT ):' ) - Pycontrol_m3p1.append( ' return 0,1,N,K,MINT,MAXT,AVERAGET,SYRLISTT' ) - control_m3p1 = GraphSyrControlAve.GNode( 'C_NotOneIsEven' , Pycontrol_m3p1 , 'label_test' ) - control_m3p1.SetName( 'control_m3p1' ) - control_m3p1.SetAuthor( '' ) - control_m3p1.SetComment( 'Compute Node' ) - control_m3p1.Coords( 1058 , 8 ) - Icontrol_m3p1N = control_m3p1.InPort( 'N' , 'long' ) - Icontrol_m3p1K = control_m3p1.InPort( 'K' , 'long' ) - Icontrol_m3p1MINT = control_m3p1.InPort( 'MINT' , 'long' ) - Icontrol_m3p1MAXT = control_m3p1.InPort( 'MAXT' , 'long' ) - Icontrol_m3p1AVERAGET = control_m3p1.InPort( 'AVERAGET' , 'double' ) - Icontrol_m3p1SYRLISTT = control_m3p1.InPort( 'SYRLISTT' , 'ListOfSyr' ) - 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_m3p1MIN = control_m3p1.OutPort( 'MIN' , 'long' ) - Ocontrol_m3p1MAX = control_m3p1.OutPort( 'MAX' , 'long' ) - Ocontrol_m3p1AVERAGE = control_m3p1.OutPort( 'AVERAGE' , 'double' ) - Ocontrol_m3p1SYRLIST = control_m3p1.OutPort( 'SYRLIST' , 'ListOfSyr' ) - Ocontrol_m3p1Gate = control_m3p1.GetOutPort( 'Gate' ) - - Pycontrol_div2 = [] - Pycontrol_div2.append( 'def control_div2( N , K , MINT , MAXT , AVERAGET , SYRLISTT ) :' ) - Pycontrol_div2.append( ' return N,K,MINT,MAXT,AVERAGET,SYRLISTT' ) - control_div2 = GraphSyrControlAve.GNode( 'control_div2' , Pycontrol_div2 , 'label_begin' ) - control_div2.SetName( 'control_div2' ) - control_div2.SetAuthor( '' ) - control_div2.SetComment( 'Compute Node' ) - control_div2.Coords( 1048 , 555 ) - Icontrol_div2N = control_div2.InPort( 'N' , 'long' ) - Icontrol_div2K = control_div2.InPort( 'K' , 'long' ) - Icontrol_div2MINT = control_div2.InPort( 'MINT' , 'long' ) - Icontrol_div2MAXT = control_div2.InPort( 'MAXT' , 'long' ) - Icontrol_div2AVERAGET = control_div2.InPort( 'AVERAGET' , 'double' ) - Icontrol_div2SYRLISTT = control_div2.InPort( 'SYRLISTT' , 'ListOfSyr' ) - Icontrol_div2Gate = control_div2.GetInPort( 'Gate' ) - Ocontrol_div2NB = control_div2.OutPort( 'NB' , 'long' ) - Ocontrol_div2KB = control_div2.OutPort( 'KB' , 'long' ) - Ocontrol_div2MINB = control_div2.OutPort( 'MINB' , 'long' ) - Ocontrol_div2MAXB = control_div2.OutPort( 'MAXB' , 'long' ) - Ocontrol_div2AVERAGEB = control_div2.OutPort( 'AVERAGEB' , 'double' ) - Ocontrol_div2SYRLISTB = control_div2.OutPort( 'SYRLISTB' , 'ListOfSyr' ) - Ocontrol_div2Gate = control_div2.GetOutPort( 'Gate' ) - - # Creation of Links - Ltest_ISEVENBoolEvenlabel_testValEven = GraphSyrControlAve.Link( Otest_ISEVENBoolEven , Ilabel_testValEven ) - Ltest_ISEVENBoolEvenlabel_testValEven.AddCoord( 1 , 544 , 256 ) - Ltest_ISEVENBoolEvenlabel_testValEven.AddCoord( 2 , 544 , 524 ) - - Ltest_ISONEBoolOnelabel_testValOne = GraphSyrControlAve.Link( Otest_ISONEBoolOne , Ilabel_testValOne ) - Ltest_ISONEBoolOnelabel_testValOne.AddCoord( 1 , 546 , 237 ) - Ltest_ISONEBoolOnelabel_testValOne.AddCoord( 2 , 546 , 198 ) - - Lm3p1anEvenIntegercontrol_m3p1N = GraphSyrControlAve.Link( Om3p1anEvenInteger , Icontrol_m3p1N ) - Lm3p1anEvenIntegercontrol_m3p1N.AddCoord( 1 , 975 , 38 ) - Lm3p1anEvenIntegercontrol_m3p1N.AddCoord( 2 , 976 , 81 ) - - Ldiv2anIntegercontrol_div2N = GraphSyrControlAve.Link( Odiv2anInteger , Icontrol_div2N ) - Ldiv2anIntegercontrol_div2N.AddCoord( 1 , 1012 , 585 ) - Ldiv2anIntegercontrol_div2N.AddCoord( 2 , 1011 , 346 ) - - LincraNewCountcontrol_div2K = GraphSyrControlAve.Link( OincraNewCount , Icontrol_div2K ) - LincraNewCountcontrol_div2K.AddCoord( 1 , 966 , 606 ) - LincraNewCountcontrol_div2K.AddCoord( 2 , 968 , 207 ) - - LincraNewCountcontrol_m3p1K = GraphSyrControlAve.Link( OincraNewCount , Icontrol_m3p1K ) - LincraNewCountcontrol_m3p1K.AddCoord( 1 , 965 , 59 ) - LincraNewCountcontrol_m3p1K.AddCoord( 2 , 966 , 208 ) - - LincraNewCountC_AVERAGEaCount = GraphSyrControlAve.Link( OincraNewCount , IC_AVERAGEaCount ) - LincraNewCountC_AVERAGEaCount.AddCoord( 1 , 751 , 588 ) - LincraNewCountC_AVERAGEaCount.AddCoord( 2 , 751 , 460 ) - LincraNewCountC_AVERAGEaCount.AddCoord( 3 , 965 , 462 ) - LincraNewCountC_AVERAGEaCount.AddCoord( 4 , 968 , 205 ) - - LC_MINaNewMinValcontrol_m3p1MINT = GraphSyrControlAve.Link( OC_MINaNewMinVal , Icontrol_m3p1MINT ) - LC_MINaNewMinValcontrol_m3p1MINT.AddCoord( 1 , 991 , 78 ) - LC_MINaNewMinValcontrol_m3p1MINT.AddCoord( 2 , 991 , 905 ) - - LC_MINaNewMinValcontrol_div2MINT = GraphSyrControlAve.Link( OC_MINaNewMinVal , Icontrol_div2MINT ) - LC_MINaNewMinValcontrol_div2MINT.AddCoord( 1 , 991 , 626 ) - LC_MINaNewMinValcontrol_div2MINT.AddCoord( 2 , 991 , 905 ) - - LC_MAXaNewMaxValcontrol_m3p1MAXT = GraphSyrControlAve.Link( OC_MAXaNewMaxVal , Icontrol_m3p1MAXT ) - LC_MAXaNewMaxValcontrol_m3p1MAXT.AddCoord( 1 , 976 , 98 ) - LC_MAXaNewMaxValcontrol_m3p1MAXT.AddCoord( 2 , 974 , 738 ) - - LC_MAXaNewMaxValcontrol_div2MAXT = GraphSyrControlAve.Link( OC_MAXaNewMaxVal , Icontrol_div2MAXT ) - LC_MAXaNewMaxValcontrol_div2MAXT.AddCoord( 1 , 972 , 648 ) - LC_MAXaNewMaxValcontrol_div2MAXT.AddCoord( 2 , 974 , 738 ) - - LC_AVERAGEaNewListOfSyrcontrol_m3p1SYRLISTT = GraphSyrControlAve.Link( OC_AVERAGEaNewListOfSyr , Icontrol_m3p1SYRLISTT ) - LC_AVERAGEaNewListOfSyrcontrol_m3p1SYRLISTT.AddCoord( 1 , 1037 , 137 ) - LC_AVERAGEaNewListOfSyrcontrol_m3p1SYRLISTT.AddCoord( 2 , 1038 , 556 ) - - LC_AVERAGEaNewListOfSyrcontrol_div2SYRLISTT = GraphSyrControlAve.Link( OC_AVERAGEaNewListOfSyr , Icontrol_div2SYRLISTT ) - LC_AVERAGEaNewListOfSyrcontrol_div2SYRLISTT.AddCoord( 1 , 1038 , 686 ) - LC_AVERAGEaNewListOfSyrcontrol_div2SYRLISTT.AddCoord( 2 , 1038 , 555 ) - - LC_AVERAGEanAveragecontrol_m3p1AVERAGET = GraphSyrControlAve.Link( OC_AVERAGEanAverage , Icontrol_m3p1AVERAGET ) - LC_AVERAGEanAveragecontrol_m3p1AVERAGET.AddCoord( 1 , 1026 , 118 ) - LC_AVERAGEanAveragecontrol_m3p1AVERAGET.AddCoord( 2 , 1027 , 567 ) - - LC_AVERAGEanAveragecontrol_div2AVERAGET = GraphSyrControlAve.Link( OC_AVERAGEanAverage , Icontrol_div2AVERAGET ) - LC_AVERAGEanAveragecontrol_div2AVERAGET.AddCoord( 1 , 1027 , 668 ) - LC_AVERAGEanAveragecontrol_div2AVERAGET.AddCoord( 2 , 1026 , 568 ) - - LC_LISTOFSYRaListOfSyrlabel_beginSYRLISTB = GraphSyrControlAve.Link( OC_LISTOFSYRaListOfSyr , Ilabel_beginSYRLISTB ) - - Llabel_beginNTtest_ISONEanInteger = GraphSyrControlAve.Link( Olabel_beginNT , Itest_ISONEanInteger ) - Llabel_beginNTtest_ISONEanInteger.AddCoord( 1 , 361 , 197 ) - Llabel_beginNTtest_ISONEanInteger.AddCoord( 2 , 360 , 290 ) - - Llabel_beginNTlabel_testNT = GraphSyrControlAve.Link( Olabel_beginNT , Ilabel_testNT ) - - Llabel_beginNTtest_ISEVENanInteger = GraphSyrControlAve.Link( Olabel_beginNT , Itest_ISEVENanInteger ) - Llabel_beginNTtest_ISEVENanInteger.AddCoord( 1 , 359 , 525 ) - Llabel_beginNTtest_ISEVENanInteger.AddCoord( 2 , 361 , 291 ) - - Llabel_beginKTlabel_testKT = GraphSyrControlAve.Link( Olabel_beginKT , Ilabel_testKT ) - - Llabel_beginMINlabel_testMIN = GraphSyrControlAve.Link( Olabel_beginMIN , Ilabel_testMIN ) - - Llabel_beginMAXlabel_testMAX = GraphSyrControlAve.Link( Olabel_beginMAX , Ilabel_testMAX ) - - Llabel_beginAVERAGElabel_testAVERAGE = GraphSyrControlAve.Link( Olabel_beginAVERAGE , Ilabel_testAVERAGE ) - - Llabel_beginSYRLISTlabel_testSYRLIST = GraphSyrControlAve.Link( Olabel_beginSYRLIST , Ilabel_testSYRLIST ) - - Llabel_testEvendiv2Gate = GraphSyrControlAve.Link( Olabel_testEven , Idiv2Gate ) - Llabel_testEvendiv2Gate.AddCoord( 1 , 777 , 351 ) - Llabel_testEvendiv2Gate.AddCoord( 2 , 777 , 286 ) - - Llabel_testOddm3p1Gate = GraphSyrControlAve.Link( Olabel_testOdd , Im3p1Gate ) - Llabel_testOddm3p1Gate.AddCoord( 1 , 757 , 95 ) - Llabel_testOddm3p1Gate.AddCoord( 2 , 757 , 310 ) - - Llabel_testNm3p1anOddInteger = GraphSyrControlAve.Link( Olabel_testN , Im3p1anOddInteger ) - Llabel_testNm3p1anOddInteger.AddCoord( 1 , 741 , 72 ) - Llabel_testNm3p1anOddInteger.AddCoord( 2 , 741 , 331 ) - - Llabel_testNdiv2anEvenInteger = GraphSyrControlAve.Link( Olabel_testN , Idiv2anEvenInteger ) - - Llabel_testNC_MINanInteger = GraphSyrControlAve.Link( Olabel_testN , IC_MINanInteger ) - Llabel_testNC_MINanInteger.AddCoord( 1 , 744 , 923 ) - Llabel_testNC_MINanInteger.AddCoord( 2 , 742 , 331 ) - - Llabel_testNC_MAXanInteger = GraphSyrControlAve.Link( Olabel_testN , IC_MAXanInteger ) - Llabel_testNC_MAXanInteger.AddCoord( 1 , 742 , 759 ) - Llabel_testNC_MAXanInteger.AddCoord( 2 , 743 , 332 ) - - Llabel_testNC_AVERAGEanInteger = GraphSyrControlAve.Link( Olabel_testN , IC_AVERAGEanInteger ) - Llabel_testNC_AVERAGEanInteger.AddCoord( 1 , 741 , 568 ) - Llabel_testNC_AVERAGEanInteger.AddCoord( 2 , 742 , 330 ) - - Llabel_testKincraCount = GraphSyrControlAve.Link( Olabel_testK , IincraCount ) - Llabel_testKincraCount.AddCoord( 1 , 766 , 207 ) - Llabel_testKincraCount.AddCoord( 2 , 766 , 343 ) - - Llabel_testMINTC_MINaMinVal = GraphSyrControlAve.Link( Olabel_testMINT , IC_MINaMinVal ) - Llabel_testMINTC_MINaMinVal.AddCoord( 1 , 760 , 904 ) - Llabel_testMINTC_MINaMinVal.AddCoord( 2 , 756 , 372 ) - - Llabel_testMAXTC_MAXaMaxVal = GraphSyrControlAve.Link( Olabel_testMAXT , IC_MAXaMaxVal ) - Llabel_testMAXTC_MAXaMaxVal.AddCoord( 1 , 765 , 742 ) - Llabel_testMAXTC_MAXaMaxVal.AddCoord( 2 , 766 , 384 ) - - Llabel_testSYRLISTTC_AVERAGEaListOfSyr = GraphSyrControlAve.Link( Olabel_testSYRLISTT , IC_AVERAGEaListOfSyr ) - Llabel_testSYRLISTTC_AVERAGEaListOfSyr.AddCoord( 1 , 773 , 546 ) - Llabel_testSYRLISTTC_AVERAGEaListOfSyr.AddCoord( 2 , 772 , 424 ) - - Llabel_testDefaultEndL_OneEvenDefault = GraphSyrControlAve.Link( Olabel_testDefault , IEndL_OneEvenDefault ) - - Lcontrol_m3p1Gatelabel_testGate = GraphSyrControlAve.Link( Ocontrol_m3p1Gate , Ilabel_testGate ) - Lcontrol_m3p1Gatelabel_testGate.AddCoord( 1 , 553 , 453 ) - Lcontrol_m3p1Gatelabel_testGate.AddCoord( 2 , 554 , 1025 ) - Lcontrol_m3p1Gatelabel_testGate.AddCoord( 3 , 1242 , 1026 ) - Lcontrol_m3p1Gatelabel_testGate.AddCoord( 4 , 1234 , 204 ) - - Lcontrol_div2Gatelabel_beginGate = GraphSyrControlAve.Link( Ocontrol_div2Gate , Ilabel_beginGate ) - Lcontrol_div2Gatelabel_beginGate.AddCoord( 1 , 176 , 419 ) - Lcontrol_div2Gatelabel_beginGate.AddCoord( 2 , 176 , 997 ) - Lcontrol_div2Gatelabel_beginGate.AddCoord( 3 , 1217 , 996 ) - Lcontrol_div2Gatelabel_beginGate.AddCoord( 4 , 1223 , 711 ) - - # Input datas - Ilabel_beginNB.Input( 31 ) - Ilabel_beginKB.Input( 0 ) - Ilabel_beginMINB.Input( 0 ) - Ilabel_beginMAXB.Input( 0 ) - Ilabel_beginAVERAGEB.Input( 0 ) - - # Input Ports of the graph - #IEndL_OneEvenMINT = EndL_OneEven.GetInPort( 'MINT' ) - #IEndL_OneEvenMAXT = EndL_OneEven.GetInPort( 'MAXT' ) - #IEndL_OneEvenAVERAGET = EndL_OneEven.GetInPort( 'AVERAGET' ) - - # Output Ports of the graph - #Olabel_testFinished = label_test.GetOutPort( 'Finished' ) - #Olabel_testIncr = label_test.GetOutPort( 'Incr' ) - #Olabel_testAVERAGET = label_test.GetOutPort( 'AVERAGET' ) - #OEndL_OneEvenMIN = EndL_OneEven.GetOutPort( 'MIN' ) - #OEndL_OneEvenMAX = EndL_OneEven.GetOutPort( 'MAX' ) - #OEndL_OneEvenAVERAGE = EndL_OneEven.GetOutPort( 'AVERAGE' ) - return GraphSyrControlAve - - -GraphSyrControlAve = DefGraphSyrControlAve() diff --git a/Superv/Python/GraphSyrControlAveAborted.py b/Superv/Python/GraphSyrControlAveAborted.py deleted file mode 100644 index aa99cd7..0000000 --- a/Superv/Python/GraphSyrControlAveAborted.py +++ /dev/null @@ -1,434 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphSyrControlAveAborted -# -from SuperV import * - -# Graph creation of GraphSyrControlAveAborted -def DefGraphSyrControlAveAborted() : - GraphSyrControlAveAborted = Graph( 'GraphSyrControlAveAborted' ) - GraphSyrControlAveAborted.SetName( 'GraphSyrControlAveAborted' ) - GraphSyrControlAveAborted.SetAuthor( 'JR' ) - GraphSyrControlAveAborted.SetComment( 'Syracuse algorithm' ) - GraphSyrControlAveAborted.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - test_ISEVEN = GraphSyrControlAveAborted.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( 370 , 455 ) - 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 = GraphSyrControlAveAborted.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( 370 , 127 ) - 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 = GraphSyrControlAveAborted.FNode( 'SyrComponent' , 'SyrComponent' , 'C_M3P1' ) - m3p1.SetName( 'm3p1' ) - m3p1.SetAuthor( '' ) - m3p1.SetContainer( 'localhost/FactoryServer' ) - m3p1.SetComment( 'C_M3P1 from SyrComponent' ) - m3p1.Coords( 789 , 0 ) - Im3p1anOddInteger = m3p1.GetInPort( 'anOddInteger' ) - Im3p1Gate = m3p1.GetInPort( 'Gate' ) - Om3p1anEvenInteger = m3p1.GetOutPort( 'anEvenInteger' ) - Om3p1Gate = m3p1.GetOutPort( 'Gate' ) - - div2 = GraphSyrControlAveAborted.FNode( 'SyrComponent' , 'SyrComponent' , 'C_DIV2' ) - div2.SetName( 'div2' ) - div2.SetAuthor( '' ) - div2.SetContainer( 'localhost/FactoryServer' ) - div2.SetComment( 'C_DIV2 from SyrComponent' ) - div2.Coords( 789 , 255 ) - Idiv2anEvenInteger = div2.GetInPort( 'anEvenInteger' ) - Idiv2Gate = div2.GetInPort( 'Gate' ) - Odiv2anInteger = div2.GetOutPort( 'anInteger' ) - Odiv2Gate = div2.GetOutPort( 'Gate' ) - - incr = GraphSyrControlAveAborted.FNode( 'SyrComponent' , 'SyrComponent' , 'C_INCR' ) - incr.SetName( 'incr' ) - incr.SetAuthor( '' ) - incr.SetContainer( 'localhost/FactoryServer' ) - incr.SetComment( 'C_INCR from SyrComponent' ) - incr.Coords( 790 , 136 ) - IincraCount = incr.GetInPort( 'aCount' ) - IincrGate = incr.GetInPort( 'Gate' ) - OincraNewCount = incr.GetOutPort( 'aNewCount' ) - OincrGate = incr.GetOutPort( 'Gate' ) - - C_MIN = GraphSyrControlAveAborted.FNode( 'SyrComponent' , 'SyrComponent' , 'C_MIN' ) - C_MIN.SetName( 'C_MIN' ) - C_MIN.SetAuthor( '' ) - C_MIN.SetContainer( 'localhost/FactoryServer' ) - C_MIN.SetComment( 'C_MIN from SyrComponent' ) - C_MIN.Coords( 798 , 833 ) - IC_MINaMinVal = C_MIN.GetInPort( 'aMinVal' ) - IC_MINanInteger = C_MIN.GetInPort( 'anInteger' ) - IC_MINGate = C_MIN.GetInPort( 'Gate' ) - OC_MINaNewMinVal = C_MIN.GetOutPort( 'aNewMinVal' ) - OC_MINGate = C_MIN.GetOutPort( 'Gate' ) - - C_MAX = GraphSyrControlAveAborted.FNode( 'SyrComponent' , 'SyrComponent' , 'C_MAX' ) - C_MAX.SetName( 'C_MAX' ) - C_MAX.SetAuthor( '' ) - C_MAX.SetContainer( 'localhost/FactoryServer' ) - C_MAX.SetComment( 'C_MAX from SyrComponent' ) - C_MAX.Coords( 798 , 668 ) - IC_MAXaMaxVal = C_MAX.GetInPort( 'aMaxVal' ) - IC_MAXanInteger = C_MAX.GetInPort( 'anInteger' ) - IC_MAXGate = C_MAX.GetInPort( 'Gate' ) - OC_MAXaNewMaxVal = C_MAX.GetOutPort( 'aNewMaxVal' ) - OC_MAXGate = C_MAX.GetOutPort( 'Gate' ) - - C_AVERAGE = GraphSyrControlAveAborted.FNode( 'SyrComponent' , 'SyrComponent' , 'C_AVERAGE' ) - C_AVERAGE.SetName( 'C_AVERAGE' ) - C_AVERAGE.SetAuthor( '' ) - C_AVERAGE.SetContainer( 'localhost/FactoryServer' ) - C_AVERAGE.SetComment( 'C_AVERAGE from SyrComponent' ) - C_AVERAGE.Coords( 784 , 476 ) - IC_AVERAGEaListOfSyr = C_AVERAGE.GetInPort( 'aListOfSyr' ) - IC_AVERAGEanInteger = C_AVERAGE.GetInPort( 'anInteger' ) - IC_AVERAGEaCount = C_AVERAGE.GetInPort( 'aCount' ) - IC_AVERAGEGate = C_AVERAGE.GetInPort( 'Gate' ) - OC_AVERAGEaNewListOfSyr = C_AVERAGE.GetOutPort( 'aNewListOfSyr' ) - OC_AVERAGEanAverage = C_AVERAGE.GetOutPort( 'anAverage' ) - OC_AVERAGEGate = C_AVERAGE.GetOutPort( 'Gate' ) - - C_LISTOFSYR = GraphSyrControlAveAborted.FNode( 'SyrComponent' , 'SyrComponent' , 'C_LISTOFSYR' ) - C_LISTOFSYR.SetName( 'C_LISTOFSYR' ) - C_LISTOFSYR.SetAuthor( '' ) - C_LISTOFSYR.SetContainer( 'localhost/FactoryServer' ) - C_LISTOFSYR.SetComment( 'C_LISTOFSYR from SyrComponent' ) - C_LISTOFSYR.Coords( 5 , 321 ) - IC_LISTOFSYRGate = C_LISTOFSYR.GetInPort( 'Gate' ) - OC_LISTOFSYRaListOfSyr = C_LISTOFSYR.GetOutPort( 'aListOfSyr' ) - OC_LISTOFSYRGate = C_LISTOFSYR.GetOutPort( 'Gate' ) - - # Creation of InLine Nodes - Pylabel_begin = [] - Pylabel_begin.append( 'def label_begin( NB , KB , MINB , MAXB , AVERAGEB , SYRLISTB ) :' ) - Pylabel_begin.append( ' return NB,KB,MINB,MAXB,AVERAGEB,SYRLISTB' ) - label_begin = GraphSyrControlAveAborted.INode( 'label_begin' , Pylabel_begin ) - label_begin.SetName( 'label_begin' ) - label_begin.SetAuthor( '' ) - label_begin.SetComment( 'Python function' ) - label_begin.Coords( 183 , 220 ) - Ilabel_beginNB = label_begin.InPort( 'NB' , 'long' ) - Ilabel_beginKB = label_begin.InPort( 'KB' , 'long' ) - Ilabel_beginMINB = label_begin.InPort( 'MINB' , 'long' ) - Ilabel_beginMAXB = label_begin.InPort( 'MAXB' , 'long' ) - Ilabel_beginAVERAGEB = label_begin.InPort( 'AVERAGEB' , 'double' ) - Ilabel_beginSYRLISTB = label_begin.InPort( 'SYRLISTB' , 'ListOfSyr' ) - Ilabel_beginGate = label_begin.GetInPort( 'Gate' ) - Olabel_beginNT = label_begin.OutPort( 'NT' , 'long' ) - Olabel_beginKT = label_begin.OutPort( 'KT' , 'long' ) - Olabel_beginMIN = label_begin.OutPort( 'MIN' , 'long' ) - Olabel_beginMAX = label_begin.OutPort( 'MAX' , 'long' ) - Olabel_beginAVERAGE = label_begin.OutPort( 'AVERAGE' , 'double' ) - Olabel_beginSYRLIST = label_begin.OutPort( 'SYRLIST' , 'ListOfSyr' ) - Olabel_beginGate = label_begin.GetOutPort( 'Gate' ) - - # Creation of Switch Nodes - Pylabel_test = [] - Pylabel_test.append( 'def L_OneEven( ValOne , ValEven , NT , KT , MIN , MAX , AVERAGE , SYRLIST ):' ) - Pylabel_test.append( ' Finished = ValOne' ) - Pylabel_test.append( ' if Finished == 0 :' ) - Pylabel_test.append( ' Incr = 1' ) - Pylabel_test.append( ' Even = ValEven' ) - Pylabel_test.append( ' if Even == 0 :' ) - Pylabel_test.append( ' Odd = 1' ) - Pylabel_test.append( ' else :' ) - Pylabel_test.append( ' Odd = 0' ) - Pylabel_test.append( ' else :' ) - Pylabel_test.append( ' Incr = 0' ) - Pylabel_test.append( ' Even = 0' ) - Pylabel_test.append( ' Odd = 0' ) - Pylabel_test.append( ' Even = ValEven' ) - Pylabel_test.append( ' return Finished,Incr,Even,Odd,NT,KT,MIN,MAX,AVERAGE,SYRLIST' ) - label_test,EndL_OneEven = GraphSyrControlAveAborted.SNode( 'L_OneEven' , Pylabel_test ) - EndL_OneEven.SetName( 'EndL_OneEven' ) - EndL_OneEven.SetAuthor( '' ) - EndL_OneEven.SetComment( 'Compute Node' ) - EndL_OneEven.Coords( 1064 , 339 ) - PyEndL_OneEven = [] - EndL_OneEven.SetPyFunction( '' , PyEndL_OneEven ) - IEndL_OneEvenMINT = EndL_OneEven.InPort( 'MINT' , 'long' ) - IEndL_OneEvenMAXT = EndL_OneEven.InPort( 'MAXT' , 'long' ) - IEndL_OneEvenAVERAGET = EndL_OneEven.InPort( 'AVERAGET' , 'double' ) - IEndL_OneEvenDefault = EndL_OneEven.GetInPort( 'Default' ) - OEndL_OneEvenMIN = EndL_OneEven.OutPort( 'MIN' , 'long' ) - OEndL_OneEvenMAX = EndL_OneEven.OutPort( 'MAX' , 'long' ) - OEndL_OneEvenAVERAGE = EndL_OneEven.OutPort( 'AVERAGE' , 'double' ) - OEndL_OneEvenGate = EndL_OneEven.GetOutPort( 'Gate' ) - label_test.SetName( 'label_test' ) - label_test.SetAuthor( '' ) - label_test.SetComment( 'Compute Node' ) - label_test.Coords( 564 , 219 ) - Ilabel_testValOne = label_test.InPort( 'ValOne' , 'long' ) - Ilabel_testValEven = label_test.InPort( 'ValEven' , 'long' ) - Ilabel_testNT = label_test.InPort( 'NT' , 'long' ) - Ilabel_testKT = label_test.InPort( 'KT' , 'long' ) - Ilabel_testMIN = label_test.InPort( 'MIN' , 'long' ) - Ilabel_testMAX = label_test.InPort( 'MAX' , 'long' ) - Ilabel_testAVERAGE = label_test.InPort( 'AVERAGE' , 'double' ) - Ilabel_testSYRLIST = label_test.InPort( 'SYRLIST' , 'ListOfSyr' ) - Ilabel_testGate = label_test.GetInPort( 'Gate' ) - Olabel_testFinished = label_test.OutPort( 'Finished' , 'long' ) - Olabel_testIncr = label_test.OutPort( 'Incr' , 'long' ) - Olabel_testEven = label_test.OutPort( 'Even' , 'long' ) - Olabel_testOdd = label_test.OutPort( 'Odd' , 'long' ) - Olabel_testN = label_test.OutPort( 'N' , 'long' ) - Olabel_testK = label_test.OutPort( 'K' , 'long' ) - Olabel_testMIN = label_test.OutPort( 'MIN' , 'long' ) - Olabel_testMAX = label_test.OutPort( 'MAX' , 'long' ) - Olabel_testAVERAGE = label_test.OutPort( 'AVERAGE' , 'double' ) - Olabel_testSYRLIST = label_test.OutPort( 'SYRLIST' , 'ListOfSyr' ) - Olabel_testDefault = label_test.GetOutPort( 'Default' ) - - # Creation of GOTO Nodes - Pycontrol_m3p1 = [] - Pycontrol_m3p1.append( 'def C_NotOneIsEven( N , K , MINT , MAXT , AVERAGET , SYRLISTT ):' ) - Pycontrol_m3p1.append( ' return 0,1,N,K,MINT,MAXT,AVERAGET,SYRLISTT' ) - control_m3p1 = GraphSyrControlAveAborted.GNode( 'C_NotOneIsEven' , Pycontrol_m3p1 , 'label_test' ) - control_m3p1.SetName( 'control_m3p1' ) - control_m3p1.SetAuthor( '' ) - control_m3p1.SetComment( 'Compute Node' ) - control_m3p1.Coords( 1058 , 8 ) - Icontrol_m3p1N = control_m3p1.InPort( 'N' , 'long' ) - Icontrol_m3p1K = control_m3p1.InPort( 'K' , 'long' ) - Icontrol_m3p1MINT = control_m3p1.InPort( 'MINT' , 'long' ) - Icontrol_m3p1MAXT = control_m3p1.InPort( 'MAXT' , 'long' ) - Icontrol_m3p1AVERAGET = control_m3p1.InPort( 'AVERAGET' , 'double' ) - Icontrol_m3p1SYRLISTT = control_m3p1.InPort( 'SYRLISTT' , 'ListOfSyr' ) - 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_m3p1MIN = control_m3p1.OutPort( 'MIN' , 'long' ) - Ocontrol_m3p1MAX = control_m3p1.OutPort( 'MAX' , 'long' ) - Ocontrol_m3p1AVERAGE = control_m3p1.OutPort( 'AVERAGE' , 'double' ) - Ocontrol_m3p1SYRLIST = control_m3p1.OutPort( 'SYRLIST' , 'ListOfSyr' ) - Ocontrol_m3p1Gate = control_m3p1.GetOutPort( 'Gate' ) - - Pycontrol_div2 = [] - Pycontrol_div2.append( 'def control_div2( N , K , MINT , MAXT , AVERAGET , SYRLISTT ) :' ) - Pycontrol_div2.append( ' return N,K,MINT,MAXT,AVERAGET,SYRLISTT' ) - control_div2 = GraphSyrControlAveAborted.GNode( 'control_div2' , Pycontrol_div2 , 'label_begin' ) - control_div2.SetName( 'control_div2' ) - control_div2.SetAuthor( '' ) - control_div2.SetComment( 'Compute Node' ) - control_div2.Coords( 1048 , 555 ) - Icontrol_div2N = control_div2.InPort( 'N' , 'long' ) - Icontrol_div2K = control_div2.InPort( 'K' , 'long' ) - Icontrol_div2MINT = control_div2.InPort( 'MINT' , 'long' ) - Icontrol_div2MAXT = control_div2.InPort( 'MAXT' , 'long' ) - Icontrol_div2AVERAGET = control_div2.InPort( 'AVERAGET' , 'double' ) - Icontrol_div2SYRLISTT = control_div2.InPort( 'SYRLISTT' , 'ListOfSyr' ) - Icontrol_div2Gate = control_div2.GetInPort( 'Gate' ) - Ocontrol_div2NB = control_div2.OutPort( 'NB' , 'long' ) - Ocontrol_div2KB = control_div2.OutPort( 'KB' , 'long' ) - Ocontrol_div2MINB = control_div2.OutPort( 'MINB' , 'long' ) - Ocontrol_div2MAXB = control_div2.OutPort( 'MAXB' , 'long' ) - Ocontrol_div2AVERAGEB = control_div2.OutPort( 'AVERAGEB' , 'double' ) - Ocontrol_div2SYRLISTB = control_div2.OutPort( 'SYRLISTB' , 'ListOfSyr' ) - Ocontrol_div2Gate = control_div2.GetOutPort( 'Gate' ) - - # Creation of Links - Ltest_ISEVENBoolEvenlabel_testValEven = GraphSyrControlAveAborted.Link( Otest_ISEVENBoolEven , Ilabel_testValEven ) - Ltest_ISEVENBoolEvenlabel_testValEven.AddCoord( 1 , 544 , 256 ) - Ltest_ISEVENBoolEvenlabel_testValEven.AddCoord( 2 , 544 , 524 ) - - Ltest_ISONEBoolOnelabel_testValOne = GraphSyrControlAveAborted.Link( Otest_ISONEBoolOne , Ilabel_testValOne ) - Ltest_ISONEBoolOnelabel_testValOne.AddCoord( 1 , 546 , 237 ) - Ltest_ISONEBoolOnelabel_testValOne.AddCoord( 2 , 546 , 198 ) - - Lm3p1anEvenIntegercontrol_m3p1N = GraphSyrControlAveAborted.Link( Om3p1anEvenInteger , Icontrol_m3p1N ) - Lm3p1anEvenIntegercontrol_m3p1N.AddCoord( 1 , 975 , 38 ) - Lm3p1anEvenIntegercontrol_m3p1N.AddCoord( 2 , 976 , 81 ) - - Ldiv2anIntegercontrol_div2N = GraphSyrControlAveAborted.Link( Odiv2anInteger , Icontrol_div2N ) - Ldiv2anIntegercontrol_div2N.AddCoord( 1 , 1012 , 585 ) - Ldiv2anIntegercontrol_div2N.AddCoord( 2 , 1011 , 346 ) - - LincraNewCountcontrol_div2K = GraphSyrControlAveAborted.Link( OincraNewCount , Icontrol_div2K ) - LincraNewCountcontrol_div2K.AddCoord( 1 , 966 , 606 ) - LincraNewCountcontrol_div2K.AddCoord( 2 , 968 , 207 ) - - LincraNewCountcontrol_m3p1K = GraphSyrControlAveAborted.Link( OincraNewCount , Icontrol_m3p1K ) - LincraNewCountcontrol_m3p1K.AddCoord( 1 , 965 , 59 ) - LincraNewCountcontrol_m3p1K.AddCoord( 2 , 966 , 208 ) - - LincraNewCountC_AVERAGEaCount = GraphSyrControlAveAborted.Link( OincraNewCount , IC_AVERAGEaCount ) - LincraNewCountC_AVERAGEaCount.AddCoord( 1 , 751 , 588 ) - LincraNewCountC_AVERAGEaCount.AddCoord( 2 , 751 , 460 ) - LincraNewCountC_AVERAGEaCount.AddCoord( 3 , 965 , 462 ) - LincraNewCountC_AVERAGEaCount.AddCoord( 4 , 968 , 205 ) - - LC_MINaNewMinValcontrol_m3p1MINT = GraphSyrControlAveAborted.Link( OC_MINaNewMinVal , Icontrol_m3p1MINT ) - LC_MINaNewMinValcontrol_m3p1MINT.AddCoord( 1 , 991 , 78 ) - LC_MINaNewMinValcontrol_m3p1MINT.AddCoord( 2 , 991 , 905 ) - - LC_MINaNewMinValcontrol_div2MINT = GraphSyrControlAveAborted.Link( OC_MINaNewMinVal , Icontrol_div2MINT ) - LC_MINaNewMinValcontrol_div2MINT.AddCoord( 1 , 991 , 626 ) - LC_MINaNewMinValcontrol_div2MINT.AddCoord( 2 , 991 , 905 ) - - LC_MAXaNewMaxValcontrol_m3p1MAXT = GraphSyrControlAveAborted.Link( OC_MAXaNewMaxVal , Icontrol_m3p1MAXT ) - LC_MAXaNewMaxValcontrol_m3p1MAXT.AddCoord( 1 , 976 , 98 ) - LC_MAXaNewMaxValcontrol_m3p1MAXT.AddCoord( 2 , 974 , 738 ) - - LC_MAXaNewMaxValcontrol_div2MAXT = GraphSyrControlAveAborted.Link( OC_MAXaNewMaxVal , Icontrol_div2MAXT ) - LC_MAXaNewMaxValcontrol_div2MAXT.AddCoord( 1 , 972 , 648 ) - LC_MAXaNewMaxValcontrol_div2MAXT.AddCoord( 2 , 974 , 738 ) - - LC_AVERAGEaNewListOfSyrcontrol_m3p1SYRLISTT = GraphSyrControlAveAborted.Link( OC_AVERAGEaNewListOfSyr , Icontrol_m3p1SYRLISTT ) - LC_AVERAGEaNewListOfSyrcontrol_m3p1SYRLISTT.AddCoord( 1 , 1037 , 137 ) - LC_AVERAGEaNewListOfSyrcontrol_m3p1SYRLISTT.AddCoord( 2 , 1038 , 556 ) - - LC_AVERAGEaNewListOfSyrcontrol_div2SYRLISTT = GraphSyrControlAveAborted.Link( OC_AVERAGEaNewListOfSyr , Icontrol_div2SYRLISTT ) - LC_AVERAGEaNewListOfSyrcontrol_div2SYRLISTT.AddCoord( 1 , 1038 , 686 ) - LC_AVERAGEaNewListOfSyrcontrol_div2SYRLISTT.AddCoord( 2 , 1038 , 555 ) - - LC_AVERAGEanAveragecontrol_m3p1AVERAGET = GraphSyrControlAveAborted.Link( OC_AVERAGEanAverage , Icontrol_m3p1AVERAGET ) - LC_AVERAGEanAveragecontrol_m3p1AVERAGET.AddCoord( 1 , 1026 , 118 ) - LC_AVERAGEanAveragecontrol_m3p1AVERAGET.AddCoord( 2 , 1027 , 567 ) - - LC_AVERAGEanAveragecontrol_div2AVERAGET = GraphSyrControlAveAborted.Link( OC_AVERAGEanAverage , Icontrol_div2AVERAGET ) - LC_AVERAGEanAveragecontrol_div2AVERAGET.AddCoord( 1 , 1027 , 668 ) - LC_AVERAGEanAveragecontrol_div2AVERAGET.AddCoord( 2 , 1026 , 568 ) - - LC_LISTOFSYRaListOfSyrlabel_beginSYRLISTB = GraphSyrControlAveAborted.Link( OC_LISTOFSYRaListOfSyr , Ilabel_beginSYRLISTB ) - - Llabel_beginNTtest_ISONEanInteger = GraphSyrControlAveAborted.Link( Olabel_beginNT , Itest_ISONEanInteger ) - Llabel_beginNTtest_ISONEanInteger.AddCoord( 1 , 361 , 197 ) - Llabel_beginNTtest_ISONEanInteger.AddCoord( 2 , 360 , 290 ) - - Llabel_beginNTlabel_testNT = GraphSyrControlAveAborted.Link( Olabel_beginNT , Ilabel_testNT ) - - Llabel_beginNTtest_ISEVENanInteger = GraphSyrControlAveAborted.Link( Olabel_beginNT , Itest_ISEVENanInteger ) - Llabel_beginNTtest_ISEVENanInteger.AddCoord( 1 , 359 , 525 ) - Llabel_beginNTtest_ISEVENanInteger.AddCoord( 2 , 361 , 291 ) - - Llabel_beginKTlabel_testKT = GraphSyrControlAveAborted.Link( Olabel_beginKT , Ilabel_testKT ) - - Llabel_beginMINlabel_testMIN = GraphSyrControlAveAborted.Link( Olabel_beginMIN , Ilabel_testMIN ) - - Llabel_beginMAXlabel_testMAX = GraphSyrControlAveAborted.Link( Olabel_beginMAX , Ilabel_testMAX ) - - Llabel_beginAVERAGElabel_testAVERAGE = GraphSyrControlAveAborted.Link( Olabel_beginAVERAGE , Ilabel_testAVERAGE ) - - Llabel_beginSYRLISTlabel_testSYRLIST = GraphSyrControlAveAborted.Link( Olabel_beginSYRLIST , Ilabel_testSYRLIST ) - - Llabel_testEvendiv2Gate = GraphSyrControlAveAborted.Link( Olabel_testEven , Idiv2Gate ) - Llabel_testEvendiv2Gate.AddCoord( 1 , 777 , 351 ) - Llabel_testEvendiv2Gate.AddCoord( 2 , 777 , 286 ) - - Llabel_testOddm3p1Gate = GraphSyrControlAveAborted.Link( Olabel_testOdd , Im3p1Gate ) - Llabel_testOddm3p1Gate.AddCoord( 1 , 757 , 95 ) - Llabel_testOddm3p1Gate.AddCoord( 2 , 757 , 310 ) - - Llabel_testNm3p1anOddInteger = GraphSyrControlAveAborted.Link( Olabel_testN , Im3p1anOddInteger ) - Llabel_testNm3p1anOddInteger.AddCoord( 1 , 741 , 72 ) - Llabel_testNm3p1anOddInteger.AddCoord( 2 , 741 , 331 ) - - Llabel_testNdiv2anEvenInteger = GraphSyrControlAveAborted.Link( Olabel_testN , Idiv2anEvenInteger ) - - Llabel_testNC_MINanInteger = GraphSyrControlAveAborted.Link( Olabel_testN , IC_MINanInteger ) - Llabel_testNC_MINanInteger.AddCoord( 1 , 744 , 923 ) - Llabel_testNC_MINanInteger.AddCoord( 2 , 742 , 331 ) - - Llabel_testNC_MAXanInteger = GraphSyrControlAveAborted.Link( Olabel_testN , IC_MAXanInteger ) - Llabel_testNC_MAXanInteger.AddCoord( 1 , 742 , 759 ) - Llabel_testNC_MAXanInteger.AddCoord( 2 , 743 , 332 ) - - Llabel_testNC_AVERAGEanInteger = GraphSyrControlAveAborted.Link( Olabel_testN , IC_AVERAGEanInteger ) - Llabel_testNC_AVERAGEanInteger.AddCoord( 1 , 741 , 568 ) - Llabel_testNC_AVERAGEanInteger.AddCoord( 2 , 742 , 330 ) - - Llabel_testKincraCount = GraphSyrControlAveAborted.Link( Olabel_testK , IincraCount ) - Llabel_testKincraCount.AddCoord( 1 , 766 , 207 ) - Llabel_testKincraCount.AddCoord( 2 , 766 , 343 ) - - Llabel_testMINC_MINaMinVal = GraphSyrControlAveAborted.Link( Olabel_testMIN , IC_MINaMinVal ) - Llabel_testMINC_MINaMinVal.AddCoord( 1 , 771 , 902 ) - Llabel_testMINC_MINaMinVal.AddCoord( 2 , 777 , 371 ) - Llabel_testMINC_MINaMinVal.AddCoord( 3 , 777 , 370 ) - - Llabel_testMINEndL_OneEvenMINT = GraphSyrControlAveAborted.Link( Olabel_testMIN , IEndL_OneEvenMINT ) - - Llabel_testMAXC_MAXaMaxVal = GraphSyrControlAveAborted.Link( Olabel_testMAX , IC_MAXaMaxVal ) - Llabel_testMAXC_MAXaMaxVal.AddCoord( 1 , 764 , 739 ) - Llabel_testMAXC_MAXaMaxVal.AddCoord( 2 , 762 , 390 ) - - Llabel_testMAXEndL_OneEvenMAXT = GraphSyrControlAveAborted.Link( Olabel_testMAX , IEndL_OneEvenMAXT ) - - Llabel_testAVERAGEEndL_OneEvenAVERAGET = GraphSyrControlAveAborted.Link( Olabel_testAVERAGE , IEndL_OneEvenAVERAGET ) - - Llabel_testSYRLISTC_AVERAGEaListOfSyr = GraphSyrControlAveAborted.Link( Olabel_testSYRLIST , IC_AVERAGEaListOfSyr ) - Llabel_testSYRLISTC_AVERAGEaListOfSyr.AddCoord( 1 , 769 , 546 ) - Llabel_testSYRLISTC_AVERAGEaListOfSyr.AddCoord( 2 , 769 , 431 ) - Llabel_testSYRLISTC_AVERAGEaListOfSyr.AddCoord( 3 , 768 , 431 ) - Llabel_testSYRLISTC_AVERAGEaListOfSyr.AddCoord( 4 , 768 , 430 ) - - Lcontrol_m3p1Gatelabel_testGate = GraphSyrControlAveAborted.Link( Ocontrol_m3p1Gate , Ilabel_testGate ) - Lcontrol_m3p1Gatelabel_testGate.AddCoord( 1 , 553 , 453 ) - Lcontrol_m3p1Gatelabel_testGate.AddCoord( 2 , 554 , 1025 ) - Lcontrol_m3p1Gatelabel_testGate.AddCoord( 3 , 1242 , 1026 ) - Lcontrol_m3p1Gatelabel_testGate.AddCoord( 4 , 1234 , 204 ) - - Lcontrol_div2Gatelabel_beginGate = GraphSyrControlAveAborted.Link( Ocontrol_div2Gate , Ilabel_beginGate ) - Lcontrol_div2Gatelabel_beginGate.AddCoord( 1 , 176 , 419 ) - Lcontrol_div2Gatelabel_beginGate.AddCoord( 2 , 176 , 997 ) - Lcontrol_div2Gatelabel_beginGate.AddCoord( 3 , 1217 , 996 ) - Lcontrol_div2Gatelabel_beginGate.AddCoord( 4 , 1223 , 711 ) - - # Input datas - Ilabel_beginNB.Input( 31 ) - Ilabel_beginKB.Input( 0 ) - Ilabel_beginMINB.Input( 0 ) - Ilabel_beginMAXB.Input( 0 ) - Ilabel_beginAVERAGEB.Input( 0 ) - - # Output Ports of the graph - #Olabel_testFinished = label_test.GetOutPort( 'Finished' ) - #Olabel_testIncr = label_test.GetOutPort( 'Incr' ) - #OEndL_OneEvenMIN = EndL_OneEven.GetOutPort( 'MIN' ) - #OEndL_OneEvenMAX = EndL_OneEven.GetOutPort( 'MAX' ) - #OEndL_OneEvenAVERAGE = EndL_OneEven.GetOutPort( 'AVERAGE' ) - return GraphSyrControlAveAborted - - -GraphSyrControlAveAborted = DefGraphSyrControlAveAborted() diff --git a/Superv/Python/GraphSyrControlAveExecutable.py b/Superv/Python/GraphSyrControlAveExecutable.py deleted file mode 100644 index 6c24af2..0000000 --- a/Superv/Python/GraphSyrControlAveExecutable.py +++ /dev/null @@ -1,436 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphSyrControlAveExecutable -# -from SuperV import * - -# Graph creation of GraphSyrControlAveExecutable -def DefGraphSyrControlAveExecutable() : - GraphSyrControlAveExecutable = Graph( 'GraphSyrControlAveExecutable' ) - GraphSyrControlAveExecutable.SetName( 'GraphSyrControlAveExecutable' ) - GraphSyrControlAveExecutable.SetAuthor( 'JR' ) - GraphSyrControlAveExecutable.SetComment( 'Syracuse algorithm' ) - GraphSyrControlAveExecutable.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - test_ISEVEN = GraphSyrControlAveExecutable.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( 370 , 455 ) - 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 = GraphSyrControlAveExecutable.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( 370 , 127 ) - 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 = GraphSyrControlAveExecutable.FNode( 'SyrComponent' , 'SyrComponent' , 'C_M3P1' ) - m3p1.SetName( 'm3p1' ) - m3p1.SetAuthor( '' ) - m3p1.SetContainer( 'localhost/FactoryServer' ) - m3p1.SetComment( 'C_M3P1 from SyrComponent' ) - m3p1.Coords( 789 , 0 ) - Im3p1anOddInteger = m3p1.GetInPort( 'anOddInteger' ) - Im3p1Gate = m3p1.GetInPort( 'Gate' ) - Om3p1anEvenInteger = m3p1.GetOutPort( 'anEvenInteger' ) - Om3p1Gate = m3p1.GetOutPort( 'Gate' ) - - div2 = GraphSyrControlAveExecutable.FNode( 'SyrComponent' , 'SyrComponent' , 'C_DIV2' ) - div2.SetName( 'div2' ) - div2.SetAuthor( '' ) - div2.SetContainer( 'localhost/FactoryServer' ) - div2.SetComment( 'C_DIV2 from SyrComponent' ) - div2.Coords( 789 , 255 ) - Idiv2anEvenInteger = div2.GetInPort( 'anEvenInteger' ) - Idiv2Gate = div2.GetInPort( 'Gate' ) - Odiv2anInteger = div2.GetOutPort( 'anInteger' ) - Odiv2Gate = div2.GetOutPort( 'Gate' ) - - incr = GraphSyrControlAveExecutable.FNode( 'SyrComponent' , 'SyrComponent' , 'C_INCR' ) - incr.SetName( 'incr' ) - incr.SetAuthor( '' ) - incr.SetContainer( 'localhost/FactoryServer' ) - incr.SetComment( 'C_INCR from SyrComponent' ) - incr.Coords( 790 , 136 ) - IincraCount = incr.GetInPort( 'aCount' ) - IincrGate = incr.GetInPort( 'Gate' ) - OincraNewCount = incr.GetOutPort( 'aNewCount' ) - OincrGate = incr.GetOutPort( 'Gate' ) - - C_MIN = GraphSyrControlAveExecutable.FNode( 'SyrComponent' , 'SyrComponent' , 'C_MIN' ) - C_MIN.SetName( 'C_MIN' ) - C_MIN.SetAuthor( '' ) - C_MIN.SetContainer( 'localhost/FactoryServer' ) - C_MIN.SetComment( 'C_MIN from SyrComponent' ) - C_MIN.Coords( 798 , 833 ) - IC_MINaMinVal = C_MIN.GetInPort( 'aMinVal' ) - IC_MINanInteger = C_MIN.GetInPort( 'anInteger' ) - IC_MINGate = C_MIN.GetInPort( 'Gate' ) - OC_MINaNewMinVal = C_MIN.GetOutPort( 'aNewMinVal' ) - OC_MINGate = C_MIN.GetOutPort( 'Gate' ) - - C_MAX = GraphSyrControlAveExecutable.FNode( 'SyrComponent' , 'SyrComponent' , 'C_MAX' ) - C_MAX.SetName( 'C_MAX' ) - C_MAX.SetAuthor( '' ) - C_MAX.SetContainer( 'localhost/FactoryServer' ) - C_MAX.SetComment( 'C_MAX from SyrComponent' ) - C_MAX.Coords( 798 , 668 ) - IC_MAXaMaxVal = C_MAX.GetInPort( 'aMaxVal' ) - IC_MAXanInteger = C_MAX.GetInPort( 'anInteger' ) - IC_MAXGate = C_MAX.GetInPort( 'Gate' ) - OC_MAXaNewMaxVal = C_MAX.GetOutPort( 'aNewMaxVal' ) - OC_MAXGate = C_MAX.GetOutPort( 'Gate' ) - - C_AVERAGE = GraphSyrControlAveExecutable.FNode( 'SyrComponent' , 'SyrComponent' , 'C_AVERAGE' ) - C_AVERAGE.SetName( 'C_AVERAGE' ) - C_AVERAGE.SetAuthor( '' ) - C_AVERAGE.SetContainer( 'localhost/FactoryServer' ) - C_AVERAGE.SetComment( 'C_AVERAGE from SyrComponent' ) - C_AVERAGE.Coords( 784 , 476 ) - IC_AVERAGEaListOfSyr = C_AVERAGE.GetInPort( 'aListOfSyr' ) - IC_AVERAGEanInteger = C_AVERAGE.GetInPort( 'anInteger' ) - IC_AVERAGEaCount = C_AVERAGE.GetInPort( 'aCount' ) - IC_AVERAGEGate = C_AVERAGE.GetInPort( 'Gate' ) - OC_AVERAGEaNewListOfSyr = C_AVERAGE.GetOutPort( 'aNewListOfSyr' ) - OC_AVERAGEanAverage = C_AVERAGE.GetOutPort( 'anAverage' ) - OC_AVERAGEGate = C_AVERAGE.GetOutPort( 'Gate' ) - - C_LISTOFSYR = GraphSyrControlAveExecutable.FNode( 'SyrComponent' , 'SyrComponent' , 'C_LISTOFSYR' ) - C_LISTOFSYR.SetName( 'C_LISTOFSYR' ) - C_LISTOFSYR.SetAuthor( '' ) - C_LISTOFSYR.SetContainer( 'localhost/FactoryServer' ) - C_LISTOFSYR.SetComment( 'C_LISTOFSYR from SyrComponent' ) - C_LISTOFSYR.Coords( 5 , 321 ) - IC_LISTOFSYRGate = C_LISTOFSYR.GetInPort( 'Gate' ) - OC_LISTOFSYRaListOfSyr = C_LISTOFSYR.GetOutPort( 'aListOfSyr' ) - OC_LISTOFSYRGate = C_LISTOFSYR.GetOutPort( 'Gate' ) - - # Creation of InLine Nodes - Pylabel_begin = [] - Pylabel_begin.append( 'def label_begin( NB , KB , MINB , MAXB , AVERAGEB , SYRLISTB ) :' ) - Pylabel_begin.append( ' return NB,KB,MINB,MAXB,AVERAGEB,SYRLISTB' ) - label_begin = GraphSyrControlAveExecutable.INode( 'label_begin' , Pylabel_begin ) - label_begin.SetName( 'label_begin' ) - label_begin.SetAuthor( '' ) - label_begin.SetComment( 'Python function' ) - label_begin.Coords( 183 , 220 ) - Ilabel_beginNB = label_begin.InPort( 'NB' , 'long' ) - Ilabel_beginKB = label_begin.InPort( 'KB' , 'long' ) - Ilabel_beginMINB = label_begin.InPort( 'MINB' , 'long' ) - Ilabel_beginMAXB = label_begin.InPort( 'MAXB' , 'long' ) - Ilabel_beginAVERAGEB = label_begin.InPort( 'AVERAGEB' , 'double' ) - Ilabel_beginSYRLISTB = label_begin.InPort( 'SYRLISTB' , 'ListOfSyr' ) - Ilabel_beginGate = label_begin.GetInPort( 'Gate' ) - Olabel_beginNT = label_begin.OutPort( 'NT' , 'long' ) - Olabel_beginKT = label_begin.OutPort( 'KT' , 'long' ) - Olabel_beginMIN = label_begin.OutPort( 'MIN' , 'long' ) - Olabel_beginMAX = label_begin.OutPort( 'MAX' , 'long' ) - Olabel_beginAVERAGE = label_begin.OutPort( 'AVERAGE' , 'double' ) - Olabel_beginSYRLIST = label_begin.OutPort( 'SYRLIST' , 'ListOfSyr' ) - Olabel_beginGate = label_begin.GetOutPort( 'Gate' ) - - # Creation of Switch Nodes - Pylabel_test = [] - Pylabel_test.append( 'def L_OneEven( ValOne , ValEven , NT , KT , MIN , MAX , AVERAGE , SYRLIST ):' ) - Pylabel_test.append( ' Finished = ValOne' ) - Pylabel_test.append( ' if Finished == 0 :' ) - Pylabel_test.append( ' Incr = 1' ) - Pylabel_test.append( ' Even = ValEven' ) - Pylabel_test.append( ' if Even == 0 :' ) - Pylabel_test.append( ' Odd = 1' ) - Pylabel_test.append( ' else :' ) - Pylabel_test.append( ' Odd = 0' ) - Pylabel_test.append( ' else :' ) - Pylabel_test.append( ' Incr = 0' ) - Pylabel_test.append( ' Even = 0' ) - Pylabel_test.append( ' Odd = 0' ) - Pylabel_test.append( ' Even = ValEven' ) - Pylabel_test.append( ' return Finished,Incr,Even,Odd,NT,KT,MIN,MAX,AVERAGE,SYRLIST' ) - label_test,EndL_OneEven = GraphSyrControlAveExecutable.SNode( 'L_OneEven' , Pylabel_test ) - EndL_OneEven.SetName( 'EndL_OneEven' ) - EndL_OneEven.SetAuthor( '' ) - EndL_OneEven.SetComment( 'Compute Node' ) - EndL_OneEven.Coords( 1064 , 339 ) - PyEndL_OneEven = [] - EndL_OneEven.SetPyFunction( '' , PyEndL_OneEven ) - IEndL_OneEvenMINT = EndL_OneEven.InPort( 'MINT' , 'long' ) - IEndL_OneEvenMAXT = EndL_OneEven.InPort( 'MAXT' , 'long' ) - IEndL_OneEvenAVERAGET = EndL_OneEven.InPort( 'AVERAGET' , 'double' ) - IEndL_OneEvenDefault = EndL_OneEven.GetInPort( 'Default' ) - OEndL_OneEvenMIN = EndL_OneEven.OutPort( 'MIN' , 'long' ) - OEndL_OneEvenMAX = EndL_OneEven.OutPort( 'MAX' , 'long' ) - OEndL_OneEvenAVERAGE = EndL_OneEven.OutPort( 'AVERAGE' , 'double' ) - OEndL_OneEvenGate = EndL_OneEven.GetOutPort( 'Gate' ) - label_test.SetName( 'label_test' ) - label_test.SetAuthor( '' ) - label_test.SetComment( 'Compute Node' ) - label_test.Coords( 564 , 219 ) - Ilabel_testValOne = label_test.InPort( 'ValOne' , 'long' ) - Ilabel_testValEven = label_test.InPort( 'ValEven' , 'long' ) - Ilabel_testNT = label_test.InPort( 'NT' , 'long' ) - Ilabel_testKT = label_test.InPort( 'KT' , 'long' ) - Ilabel_testMIN = label_test.InPort( 'MIN' , 'long' ) - Ilabel_testMAX = label_test.InPort( 'MAX' , 'long' ) - Ilabel_testAVERAGE = label_test.InPort( 'AVERAGE' , 'double' ) - Ilabel_testSYRLIST = label_test.InPort( 'SYRLIST' , 'ListOfSyr' ) - Ilabel_testGate = label_test.GetInPort( 'Gate' ) - Olabel_testFinished = label_test.OutPort( 'Finished' , 'long' ) - Olabel_testIncr = label_test.OutPort( 'Incr' , 'long' ) - Olabel_testEven = label_test.OutPort( 'Even' , 'long' ) - Olabel_testOdd = label_test.OutPort( 'Odd' , 'long' ) - Olabel_testN = label_test.OutPort( 'N' , 'long' ) - Olabel_testK = label_test.OutPort( 'K' , 'long' ) - Olabel_testMIN = label_test.OutPort( 'MIN' , 'long' ) - Olabel_testMAX = label_test.OutPort( 'MAX' , 'long' ) - Olabel_testAVERAGE = label_test.OutPort( 'AVERAGE' , 'double' ) - Olabel_testSYRLIST = label_test.OutPort( 'SYRLIST' , 'ListOfSyr' ) - Olabel_testDefault = label_test.GetOutPort( 'Default' ) - - # Creation of GOTO Nodes - Pycontrol_m3p1 = [] - Pycontrol_m3p1.append( 'def C_NotOneIsEven( N , K , MINT , MAXT , AVERAGET , SYRLISTT ):' ) - Pycontrol_m3p1.append( ' return 0,1,N,K,MINT,MAXT,AVERAGET,SYRLISTT' ) - control_m3p1 = GraphSyrControlAveExecutable.GNode( 'C_NotOneIsEven' , Pycontrol_m3p1 , 'label_test' ) - control_m3p1.SetName( 'control_m3p1' ) - control_m3p1.SetAuthor( '' ) - control_m3p1.SetComment( 'Compute Node' ) - control_m3p1.Coords( 1058 , 8 ) - Icontrol_m3p1N = control_m3p1.InPort( 'N' , 'long' ) - Icontrol_m3p1K = control_m3p1.InPort( 'K' , 'long' ) - Icontrol_m3p1MINT = control_m3p1.InPort( 'MINT' , 'long' ) - Icontrol_m3p1MAXT = control_m3p1.InPort( 'MAXT' , 'long' ) - Icontrol_m3p1AVERAGET = control_m3p1.InPort( 'AVERAGET' , 'double' ) - Icontrol_m3p1SYRLISTT = control_m3p1.InPort( 'SYRLISTT' , 'ListOfSyr' ) - 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_m3p1MIN = control_m3p1.OutPort( 'MIN' , 'long' ) - Ocontrol_m3p1MAX = control_m3p1.OutPort( 'MAX' , 'long' ) - Ocontrol_m3p1AVERAGE = control_m3p1.OutPort( 'AVERAGE' , 'double' ) - Ocontrol_m3p1SYRLIST = control_m3p1.OutPort( 'SYRLIST' , 'ListOfSyr' ) - Ocontrol_m3p1Gate = control_m3p1.GetOutPort( 'Gate' ) - - Pycontrol_div2 = [] - Pycontrol_div2.append( 'def control_div2( N , K , MINT , MAXT , AVERAGET , SYRLISTT ) :' ) - Pycontrol_div2.append( ' return N,K,MINT,MAXT,AVERAGET,SYRLISTT' ) - control_div2 = GraphSyrControlAveExecutable.GNode( 'control_div2' , Pycontrol_div2 , 'label_begin' ) - control_div2.SetName( 'control_div2' ) - control_div2.SetAuthor( '' ) - control_div2.SetComment( 'Compute Node' ) - control_div2.Coords( 1048 , 555 ) - Icontrol_div2N = control_div2.InPort( 'N' , 'long' ) - Icontrol_div2K = control_div2.InPort( 'K' , 'long' ) - Icontrol_div2MINT = control_div2.InPort( 'MINT' , 'long' ) - Icontrol_div2MAXT = control_div2.InPort( 'MAXT' , 'long' ) - Icontrol_div2AVERAGET = control_div2.InPort( 'AVERAGET' , 'double' ) - Icontrol_div2SYRLISTT = control_div2.InPort( 'SYRLISTT' , 'ListOfSyr' ) - Icontrol_div2Gate = control_div2.GetInPort( 'Gate' ) - Ocontrol_div2NB = control_div2.OutPort( 'NB' , 'long' ) - Ocontrol_div2KB = control_div2.OutPort( 'KB' , 'long' ) - Ocontrol_div2MINB = control_div2.OutPort( 'MINB' , 'long' ) - Ocontrol_div2MAXB = control_div2.OutPort( 'MAXB' , 'long' ) - Ocontrol_div2AVERAGEB = control_div2.OutPort( 'AVERAGEB' , 'double' ) - Ocontrol_div2SYRLISTB = control_div2.OutPort( 'SYRLISTB' , 'ListOfSyr' ) - Ocontrol_div2Gate = control_div2.GetOutPort( 'Gate' ) - - # Creation of Links - Ltest_ISEVENBoolEvenlabel_testValEven = GraphSyrControlAveExecutable.Link( Otest_ISEVENBoolEven , Ilabel_testValEven ) - Ltest_ISEVENBoolEvenlabel_testValEven.AddCoord( 1 , 544 , 256 ) - Ltest_ISEVENBoolEvenlabel_testValEven.AddCoord( 2 , 544 , 524 ) - - Ltest_ISONEBoolOnelabel_testValOne = GraphSyrControlAveExecutable.Link( Otest_ISONEBoolOne , Ilabel_testValOne ) - Ltest_ISONEBoolOnelabel_testValOne.AddCoord( 1 , 546 , 237 ) - Ltest_ISONEBoolOnelabel_testValOne.AddCoord( 2 , 546 , 198 ) - - Lm3p1anEvenIntegercontrol_m3p1N = GraphSyrControlAveExecutable.Link( Om3p1anEvenInteger , Icontrol_m3p1N ) - Lm3p1anEvenIntegercontrol_m3p1N.AddCoord( 1 , 975 , 38 ) - Lm3p1anEvenIntegercontrol_m3p1N.AddCoord( 2 , 976 , 81 ) - - Ldiv2anIntegercontrol_div2N = GraphSyrControlAveExecutable.Link( Odiv2anInteger , Icontrol_div2N ) - Ldiv2anIntegercontrol_div2N.AddCoord( 1 , 1012 , 585 ) - Ldiv2anIntegercontrol_div2N.AddCoord( 2 , 1011 , 346 ) - - LincraNewCountcontrol_div2K = GraphSyrControlAveExecutable.Link( OincraNewCount , Icontrol_div2K ) - LincraNewCountcontrol_div2K.AddCoord( 1 , 966 , 606 ) - LincraNewCountcontrol_div2K.AddCoord( 2 , 968 , 207 ) - - LincraNewCountcontrol_m3p1K = GraphSyrControlAveExecutable.Link( OincraNewCount , Icontrol_m3p1K ) - LincraNewCountcontrol_m3p1K.AddCoord( 1 , 965 , 59 ) - LincraNewCountcontrol_m3p1K.AddCoord( 2 , 966 , 208 ) - - LincraNewCountC_AVERAGEaCount = GraphSyrControlAveExecutable.Link( OincraNewCount , IC_AVERAGEaCount ) - LincraNewCountC_AVERAGEaCount.AddCoord( 1 , 751 , 588 ) - LincraNewCountC_AVERAGEaCount.AddCoord( 2 , 751 , 460 ) - LincraNewCountC_AVERAGEaCount.AddCoord( 3 , 965 , 462 ) - LincraNewCountC_AVERAGEaCount.AddCoord( 4 , 968 , 205 ) - - LC_MINaNewMinValcontrol_m3p1MINT = GraphSyrControlAveExecutable.Link( OC_MINaNewMinVal , Icontrol_m3p1MINT ) - LC_MINaNewMinValcontrol_m3p1MINT.AddCoord( 1 , 991 , 78 ) - LC_MINaNewMinValcontrol_m3p1MINT.AddCoord( 2 , 991 , 905 ) - - LC_MINaNewMinValcontrol_div2MINT = GraphSyrControlAveExecutable.Link( OC_MINaNewMinVal , Icontrol_div2MINT ) - LC_MINaNewMinValcontrol_div2MINT.AddCoord( 1 , 991 , 626 ) - LC_MINaNewMinValcontrol_div2MINT.AddCoord( 2 , 991 , 905 ) - - LC_MAXaNewMaxValcontrol_m3p1MAXT = GraphSyrControlAveExecutable.Link( OC_MAXaNewMaxVal , Icontrol_m3p1MAXT ) - LC_MAXaNewMaxValcontrol_m3p1MAXT.AddCoord( 1 , 976 , 98 ) - LC_MAXaNewMaxValcontrol_m3p1MAXT.AddCoord( 2 , 974 , 738 ) - - LC_MAXaNewMaxValcontrol_div2MAXT = GraphSyrControlAveExecutable.Link( OC_MAXaNewMaxVal , Icontrol_div2MAXT ) - LC_MAXaNewMaxValcontrol_div2MAXT.AddCoord( 1 , 972 , 648 ) - LC_MAXaNewMaxValcontrol_div2MAXT.AddCoord( 2 , 974 , 738 ) - - LC_AVERAGEaNewListOfSyrcontrol_m3p1SYRLISTT = GraphSyrControlAveExecutable.Link( OC_AVERAGEaNewListOfSyr , Icontrol_m3p1SYRLISTT ) - LC_AVERAGEaNewListOfSyrcontrol_m3p1SYRLISTT.AddCoord( 1 , 1037 , 137 ) - LC_AVERAGEaNewListOfSyrcontrol_m3p1SYRLISTT.AddCoord( 2 , 1038 , 556 ) - - LC_AVERAGEaNewListOfSyrcontrol_div2SYRLISTT = GraphSyrControlAveExecutable.Link( OC_AVERAGEaNewListOfSyr , Icontrol_div2SYRLISTT ) - LC_AVERAGEaNewListOfSyrcontrol_div2SYRLISTT.AddCoord( 1 , 1038 , 686 ) - LC_AVERAGEaNewListOfSyrcontrol_div2SYRLISTT.AddCoord( 2 , 1038 , 555 ) - - LC_AVERAGEanAveragecontrol_m3p1AVERAGET = GraphSyrControlAveExecutable.Link( OC_AVERAGEanAverage , Icontrol_m3p1AVERAGET ) - LC_AVERAGEanAveragecontrol_m3p1AVERAGET.AddCoord( 1 , 1026 , 118 ) - LC_AVERAGEanAveragecontrol_m3p1AVERAGET.AddCoord( 2 , 1027 , 567 ) - - LC_AVERAGEanAveragecontrol_div2AVERAGET = GraphSyrControlAveExecutable.Link( OC_AVERAGEanAverage , Icontrol_div2AVERAGET ) - LC_AVERAGEanAveragecontrol_div2AVERAGET.AddCoord( 1 , 1027 , 668 ) - LC_AVERAGEanAveragecontrol_div2AVERAGET.AddCoord( 2 , 1026 , 568 ) - - LC_LISTOFSYRaListOfSyrlabel_beginSYRLISTB = GraphSyrControlAveExecutable.Link( OC_LISTOFSYRaListOfSyr , Ilabel_beginSYRLISTB ) - - Llabel_beginNTtest_ISONEanInteger = GraphSyrControlAveExecutable.Link( Olabel_beginNT , Itest_ISONEanInteger ) - Llabel_beginNTtest_ISONEanInteger.AddCoord( 1 , 361 , 197 ) - Llabel_beginNTtest_ISONEanInteger.AddCoord( 2 , 360 , 290 ) - - Llabel_beginNTlabel_testNT = GraphSyrControlAveExecutable.Link( Olabel_beginNT , Ilabel_testNT ) - - Llabel_beginNTtest_ISEVENanInteger = GraphSyrControlAveExecutable.Link( Olabel_beginNT , Itest_ISEVENanInteger ) - Llabel_beginNTtest_ISEVENanInteger.AddCoord( 1 , 359 , 525 ) - Llabel_beginNTtest_ISEVENanInteger.AddCoord( 2 , 361 , 291 ) - - Llabel_beginKTlabel_testKT = GraphSyrControlAveExecutable.Link( Olabel_beginKT , Ilabel_testKT ) - - Llabel_beginMINlabel_testMIN = GraphSyrControlAveExecutable.Link( Olabel_beginMIN , Ilabel_testMIN ) - - Llabel_beginMAXlabel_testMAX = GraphSyrControlAveExecutable.Link( Olabel_beginMAX , Ilabel_testMAX ) - - Llabel_beginAVERAGElabel_testAVERAGE = GraphSyrControlAveExecutable.Link( Olabel_beginAVERAGE , Ilabel_testAVERAGE ) - - Llabel_beginSYRLISTlabel_testSYRLIST = GraphSyrControlAveExecutable.Link( Olabel_beginSYRLIST , Ilabel_testSYRLIST ) - - Llabel_testEvendiv2Gate = GraphSyrControlAveExecutable.Link( Olabel_testEven , Idiv2Gate ) - Llabel_testEvendiv2Gate.AddCoord( 1 , 777 , 351 ) - Llabel_testEvendiv2Gate.AddCoord( 2 , 777 , 286 ) - - Llabel_testOddm3p1Gate = GraphSyrControlAveExecutable.Link( Olabel_testOdd , Im3p1Gate ) - Llabel_testOddm3p1Gate.AddCoord( 1 , 757 , 95 ) - Llabel_testOddm3p1Gate.AddCoord( 2 , 757 , 310 ) - - Llabel_testNm3p1anOddInteger = GraphSyrControlAveExecutable.Link( Olabel_testN , Im3p1anOddInteger ) - Llabel_testNm3p1anOddInteger.AddCoord( 1 , 741 , 72 ) - Llabel_testNm3p1anOddInteger.AddCoord( 2 , 741 , 331 ) - - Llabel_testNdiv2anEvenInteger = GraphSyrControlAveExecutable.Link( Olabel_testN , Idiv2anEvenInteger ) - - Llabel_testNC_MINanInteger = GraphSyrControlAveExecutable.Link( Olabel_testN , IC_MINanInteger ) - Llabel_testNC_MINanInteger.AddCoord( 1 , 744 , 923 ) - Llabel_testNC_MINanInteger.AddCoord( 2 , 742 , 331 ) - - Llabel_testNC_MAXanInteger = GraphSyrControlAveExecutable.Link( Olabel_testN , IC_MAXanInteger ) - Llabel_testNC_MAXanInteger.AddCoord( 1 , 742 , 759 ) - Llabel_testNC_MAXanInteger.AddCoord( 2 , 743 , 332 ) - - Llabel_testNC_AVERAGEanInteger = GraphSyrControlAveExecutable.Link( Olabel_testN , IC_AVERAGEanInteger ) - Llabel_testNC_AVERAGEanInteger.AddCoord( 1 , 741 , 568 ) - Llabel_testNC_AVERAGEanInteger.AddCoord( 2 , 742 , 330 ) - - Llabel_testKincraCount = GraphSyrControlAveExecutable.Link( Olabel_testK , IincraCount ) - Llabel_testKincraCount.AddCoord( 1 , 766 , 207 ) - Llabel_testKincraCount.AddCoord( 2 , 766 , 343 ) - - Llabel_testMINC_MINaMinVal = GraphSyrControlAveExecutable.Link( Olabel_testMIN , IC_MINaMinVal ) - Llabel_testMINC_MINaMinVal.AddCoord( 1 , 771 , 902 ) - Llabel_testMINC_MINaMinVal.AddCoord( 2 , 777 , 371 ) - Llabel_testMINC_MINaMinVal.AddCoord( 3 , 777 , 370 ) - - Llabel_testMINEndL_OneEvenMINT = GraphSyrControlAveExecutable.Link( Olabel_testMIN , IEndL_OneEvenMINT ) - - Llabel_testMAXC_MAXaMaxVal = GraphSyrControlAveExecutable.Link( Olabel_testMAX , IC_MAXaMaxVal ) - Llabel_testMAXC_MAXaMaxVal.AddCoord( 1 , 764 , 739 ) - Llabel_testMAXC_MAXaMaxVal.AddCoord( 2 , 762 , 390 ) - - Llabel_testMAXEndL_OneEvenMAXT = GraphSyrControlAveExecutable.Link( Olabel_testMAX , IEndL_OneEvenMAXT ) - - Llabel_testAVERAGEEndL_OneEvenAVERAGET = GraphSyrControlAveExecutable.Link( Olabel_testAVERAGE , IEndL_OneEvenAVERAGET ) - - Llabel_testSYRLISTC_AVERAGEaListOfSyr = GraphSyrControlAveExecutable.Link( Olabel_testSYRLIST , IC_AVERAGEaListOfSyr ) - Llabel_testSYRLISTC_AVERAGEaListOfSyr.AddCoord( 1 , 769 , 546 ) - Llabel_testSYRLISTC_AVERAGEaListOfSyr.AddCoord( 2 , 769 , 431 ) - Llabel_testSYRLISTC_AVERAGEaListOfSyr.AddCoord( 3 , 768 , 431 ) - Llabel_testSYRLISTC_AVERAGEaListOfSyr.AddCoord( 4 , 768 , 430 ) - - Llabel_testDefaultEndL_OneEvenDefault = GraphSyrControlAveExecutable.Link( Olabel_testDefault , IEndL_OneEvenDefault ) - - Lcontrol_m3p1Gatelabel_testGate = GraphSyrControlAveExecutable.Link( Ocontrol_m3p1Gate , Ilabel_testGate ) - Lcontrol_m3p1Gatelabel_testGate.AddCoord( 1 , 553 , 453 ) - Lcontrol_m3p1Gatelabel_testGate.AddCoord( 2 , 554 , 1025 ) - Lcontrol_m3p1Gatelabel_testGate.AddCoord( 3 , 1242 , 1026 ) - Lcontrol_m3p1Gatelabel_testGate.AddCoord( 4 , 1234 , 204 ) - - Lcontrol_div2Gatelabel_beginGate = GraphSyrControlAveExecutable.Link( Ocontrol_div2Gate , Ilabel_beginGate ) - Lcontrol_div2Gatelabel_beginGate.AddCoord( 1 , 176 , 419 ) - Lcontrol_div2Gatelabel_beginGate.AddCoord( 2 , 176 , 997 ) - Lcontrol_div2Gatelabel_beginGate.AddCoord( 3 , 1217 , 996 ) - Lcontrol_div2Gatelabel_beginGate.AddCoord( 4 , 1223 , 711 ) - - # Input datas - Ilabel_beginNB.Input( 31 ) - Ilabel_beginKB.Input( 0 ) - Ilabel_beginMINB.Input( 0 ) - Ilabel_beginMAXB.Input( 0 ) - Ilabel_beginAVERAGEB.Input( 0 ) - - # Output Ports of the graph - #Olabel_testFinished = label_test.GetOutPort( 'Finished' ) - #Olabel_testIncr = label_test.GetOutPort( 'Incr' ) - #OEndL_OneEvenMIN = EndL_OneEven.GetOutPort( 'MIN' ) - #OEndL_OneEvenMAX = EndL_OneEven.GetOutPort( 'MAX' ) - #OEndL_OneEvenAVERAGE = EndL_OneEven.GetOutPort( 'AVERAGE' ) - return GraphSyrControlAveExecutable - - -GraphSyrControlAveExecutable = DefGraphSyrControlAveExecutable() diff --git a/Superv/Python/GraphSyrControlAveNOTValid.py b/Superv/Python/GraphSyrControlAveNOTValid.py deleted file mode 100644 index d492cfb..0000000 --- a/Superv/Python/GraphSyrControlAveNOTValid.py +++ /dev/null @@ -1,436 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphSyrControlAveNOTValid -# -from SuperV import * - -# Graph creation of GraphSyrControlAveNOTValid -def DefGraphSyrControlAveNOTValid() : - GraphSyrControlAveNOTValid = Graph( 'GraphSyrControlAveNOTValid' ) - GraphSyrControlAveNOTValid.SetName( 'GraphSyrControlAveNOTValid' ) - GraphSyrControlAveNOTValid.SetAuthor( 'JR' ) - GraphSyrControlAveNOTValid.SetComment( 'Syracuse algorithm' ) - GraphSyrControlAveNOTValid.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - test_ISEVEN = GraphSyrControlAveNOTValid.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( 370 , 455 ) - 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 = GraphSyrControlAveNOTValid.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( 370 , 127 ) - 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 = GraphSyrControlAveNOTValid.FNode( 'SyrComponent' , 'SyrComponent' , 'C_M3P1' ) - m3p1.SetName( 'm3p1' ) - m3p1.SetAuthor( '' ) - m3p1.SetContainer( 'localhost/FactoryServer' ) - m3p1.SetComment( 'C_M3P1 from SyrComponent' ) - m3p1.Coords( 789 , 0 ) - Im3p1anOddInteger = m3p1.GetInPort( 'anOddInteger' ) - Im3p1Gate = m3p1.GetInPort( 'Gate' ) - Om3p1anEvenInteger = m3p1.GetOutPort( 'anEvenInteger' ) - Om3p1Gate = m3p1.GetOutPort( 'Gate' ) - - div2 = GraphSyrControlAveNOTValid.FNode( 'SyrComponent' , 'SyrComponent' , 'C_DIV2' ) - div2.SetName( 'div2' ) - div2.SetAuthor( '' ) - div2.SetContainer( 'localhost/FactoryServer' ) - div2.SetComment( 'C_DIV2 from SyrComponent' ) - div2.Coords( 789 , 255 ) - Idiv2anEvenInteger = div2.GetInPort( 'anEvenInteger' ) - Idiv2Gate = div2.GetInPort( 'Gate' ) - Odiv2anInteger = div2.GetOutPort( 'anInteger' ) - Odiv2Gate = div2.GetOutPort( 'Gate' ) - - incr = GraphSyrControlAveNOTValid.FNode( 'SyrComponent' , 'SyrComponent' , 'C_INCR' ) - incr.SetName( 'incr' ) - incr.SetAuthor( '' ) - incr.SetContainer( 'localhost/FactoryServer' ) - incr.SetComment( 'C_INCR from SyrComponent' ) - incr.Coords( 790 , 136 ) - IincraCount = incr.GetInPort( 'aCount' ) - IincrGate = incr.GetInPort( 'Gate' ) - OincraNewCount = incr.GetOutPort( 'aNewCount' ) - OincrGate = incr.GetOutPort( 'Gate' ) - - C_MIN = GraphSyrControlAveNOTValid.FNode( 'SyrComponent' , 'SyrComponent' , 'C_MIN' ) - C_MIN.SetName( 'C_MIN' ) - C_MIN.SetAuthor( '' ) - C_MIN.SetContainer( 'localhost/FactoryServer' ) - C_MIN.SetComment( 'C_MIN from SyrComponent' ) - C_MIN.Coords( 798 , 833 ) - IC_MINaMinVal = C_MIN.GetInPort( 'aMinVal' ) - IC_MINanInteger = C_MIN.GetInPort( 'anInteger' ) - IC_MINGate = C_MIN.GetInPort( 'Gate' ) - OC_MINaNewMinVal = C_MIN.GetOutPort( 'aNewMinVal' ) - OC_MINGate = C_MIN.GetOutPort( 'Gate' ) - - C_MAX = GraphSyrControlAveNOTValid.FNode( 'SyrComponent' , 'SyrComponent' , 'C_MAX' ) - C_MAX.SetName( 'C_MAX' ) - C_MAX.SetAuthor( '' ) - C_MAX.SetContainer( 'localhost/FactoryServer' ) - C_MAX.SetComment( 'C_MAX from SyrComponent' ) - C_MAX.Coords( 798 , 668 ) - IC_MAXaMaxVal = C_MAX.GetInPort( 'aMaxVal' ) - IC_MAXanInteger = C_MAX.GetInPort( 'anInteger' ) - IC_MAXGate = C_MAX.GetInPort( 'Gate' ) - OC_MAXaNewMaxVal = C_MAX.GetOutPort( 'aNewMaxVal' ) - OC_MAXGate = C_MAX.GetOutPort( 'Gate' ) - - C_AVERAGE = GraphSyrControlAveNOTValid.FNode( 'SyrComponent' , 'SyrComponent' , 'C_AVERAGE' ) - C_AVERAGE.SetName( 'C_AVERAGE' ) - C_AVERAGE.SetAuthor( '' ) - C_AVERAGE.SetContainer( 'localhost/FactoryServer' ) - C_AVERAGE.SetComment( 'C_AVERAGE from SyrComponent' ) - C_AVERAGE.Coords( 784 , 476 ) - IC_AVERAGEaListOfSyr = C_AVERAGE.GetInPort( 'aListOfSyr' ) - IC_AVERAGEanInteger = C_AVERAGE.GetInPort( 'anInteger' ) - IC_AVERAGEaCount = C_AVERAGE.GetInPort( 'aCount' ) - IC_AVERAGEGate = C_AVERAGE.GetInPort( 'Gate' ) - OC_AVERAGEaNewListOfSyr = C_AVERAGE.GetOutPort( 'aNewListOfSyr' ) - OC_AVERAGEanAverage = C_AVERAGE.GetOutPort( 'anAverage' ) - OC_AVERAGEGate = C_AVERAGE.GetOutPort( 'Gate' ) - - C_LISTOFSYR = GraphSyrControlAveNOTValid.FNode( 'SyrComponent' , 'SyrComponent' , 'C_LISTOFSYR' ) - C_LISTOFSYR.SetName( 'C_LISTOFSYR' ) - C_LISTOFSYR.SetAuthor( '' ) - C_LISTOFSYR.SetContainer( 'localhost/FactoryServer' ) - C_LISTOFSYR.SetComment( 'C_LISTOFSYR from SyrComponent' ) - C_LISTOFSYR.Coords( 5 , 321 ) - IC_LISTOFSYRGate = C_LISTOFSYR.GetInPort( 'Gate' ) - OC_LISTOFSYRaListOfSyr = C_LISTOFSYR.GetOutPort( 'aListOfSyr' ) - OC_LISTOFSYRGate = C_LISTOFSYR.GetOutPort( 'Gate' ) - - # Creation of InLine Nodes - Pylabel_begin = [] - Pylabel_begin.append( 'def label_begin( NB , KB , MINB , MAXB , AVERAGEB , SYRLISTB ) :' ) - Pylabel_begin.append( ' return NB,KB,MINB,MAXB,AVERAGEB,SYRLISTB' ) - label_begin = GraphSyrControlAveNOTValid.INode( 'label_begin' , Pylabel_begin ) - label_begin.SetName( 'label_begin' ) - label_begin.SetAuthor( '' ) - label_begin.SetComment( 'Python function' ) - label_begin.Coords( 183 , 220 ) - Ilabel_beginNB = label_begin.InPort( 'NB' , 'long' ) - Ilabel_beginKB = label_begin.InPort( 'KB' , 'long' ) - Ilabel_beginMINB = label_begin.InPort( 'MINB' , 'long' ) - Ilabel_beginMAXB = label_begin.InPort( 'MAXB' , 'long' ) - Ilabel_beginAVERAGEB = label_begin.InPort( 'AVERAGEB' , 'double' ) - Ilabel_beginSYRLISTB = label_begin.InPort( 'SYRLISTB' , 'ListOfSyr' ) - Ilabel_beginGate = label_begin.GetInPort( 'Gate' ) - Olabel_beginNT = label_begin.OutPort( 'NT' , 'long' ) - Olabel_beginKT = label_begin.OutPort( 'KT' , 'long' ) - Olabel_beginMIN = label_begin.OutPort( 'MIN' , 'long' ) - Olabel_beginMAX = label_begin.OutPort( 'MAX' , 'long' ) - Olabel_beginAVERAGE = label_begin.OutPort( 'AVERAGE' , 'double' ) - Olabel_beginSYRLIST = label_begin.OutPort( 'SYRLIST' , 'ListOfSyr' ) - Olabel_beginGate = label_begin.GetOutPort( 'Gate' ) - - # Creation of Switch Nodes - Pylabel_test = [] - Pylabel_test.append( 'def L_OneEven( ValOne , ValEven , NT , KT , MIN , MAX , AVERAGE , SYRLIST ):' ) - Pylabel_test.append( ' Finished = ValOne' ) - Pylabel_test.append( ' if Finished == 0 :' ) - Pylabel_test.append( ' Incr = 1' ) - Pylabel_test.append( ' Even = ValEven' ) - Pylabel_test.append( ' if Even == 0 :' ) - Pylabel_test.append( ' Odd = 1' ) - Pylabel_test.append( ' else :' ) - Pylabel_test.append( ' Odd = 0' ) - Pylabel_test.append( ' else :' ) - Pylabel_test.append( ' Incr = 0' ) - Pylabel_test.append( ' Even = 0' ) - Pylabel_test.append( ' Odd = 0' ) - Pylabel_test.append( ' Even = ValEven' ) - Pylabel_test.append( ' return Finished,Incr,Even,Odd,NT,KT,MIN,MAX,AVERAGE,SYRLIST' ) - label_test,EndL_OneEven = GraphSyrControlAveNOTValid.SNode( 'L_OneEven' , Pylabel_test ) - EndL_OneEven.SetName( 'EndL_OneEven' ) - EndL_OneEven.SetAuthor( '' ) - EndL_OneEven.SetComment( 'Compute Node' ) - EndL_OneEven.Coords( 1064 , 339 ) - PyEndL_OneEven = [] - EndL_OneEven.SetPyFunction( '' , PyEndL_OneEven ) - IEndL_OneEvenMINT = EndL_OneEven.InPort( 'MINT' , 'long' ) - IEndL_OneEvenMAXT = EndL_OneEven.InPort( 'MAXT' , 'long' ) - IEndL_OneEvenAVERAGET = EndL_OneEven.InPort( 'AVERAGET' , 'double' ) - IEndL_OneEvenDefault = EndL_OneEven.GetInPort( 'Default' ) - OEndL_OneEvenMIN = EndL_OneEven.OutPort( 'MIN' , 'long' ) - OEndL_OneEvenMAX = EndL_OneEven.OutPort( 'MAX' , 'long' ) - OEndL_OneEvenAVERAGE = EndL_OneEven.OutPort( 'AVERAGE' , 'double' ) - OEndL_OneEvenGate = EndL_OneEven.GetOutPort( 'Gate' ) - label_test.SetName( 'label_test' ) - label_test.SetAuthor( '' ) - label_test.SetComment( 'Compute Node' ) - label_test.Coords( 564 , 219 ) - Ilabel_testValOne = label_test.InPort( 'ValOne' , 'long' ) - Ilabel_testValEven = label_test.InPort( 'ValEven' , 'long' ) - Ilabel_testNT = label_test.InPort( 'NT' , 'long' ) - Ilabel_testKT = label_test.InPort( 'KT' , 'long' ) - Ilabel_testMIN = label_test.InPort( 'MIN' , 'long' ) - Ilabel_testMAX = label_test.InPort( 'MAX' , 'long' ) - Ilabel_testAVERAGE = label_test.InPort( 'AVERAGE' , 'double' ) - Ilabel_testSYRLIST = label_test.InPort( 'SYRLIST' , 'ListOfSyr' ) - Ilabel_testGate = label_test.GetInPort( 'Gate' ) - Olabel_testFinished = label_test.OutPort( 'Finished' , 'long' ) - Olabel_testIncr = label_test.OutPort( 'Incr' , 'long' ) - Olabel_testEven = label_test.OutPort( 'Even' , 'long' ) - Olabel_testOdd = label_test.OutPort( 'Odd' , 'long' ) - Olabel_testN = label_test.OutPort( 'N' , 'long' ) - Olabel_testK = label_test.OutPort( 'K' , 'long' ) - Olabel_testMIN = label_test.OutPort( 'MIN' , 'long' ) - Olabel_testMAX = label_test.OutPort( 'MAX' , 'long' ) - Olabel_testAVERAGE = label_test.OutPort( 'AVERAGE' , 'double' ) - Olabel_testSYRLIST = label_test.OutPort( 'SYRLIST' , 'ListOfSyr' ) - Olabel_testDefault = label_test.GetOutPort( 'Default' ) - - # Creation of GOTO Nodes - Pycontrol_m3p1 = [] - Pycontrol_m3p1.append( 'def C_NotOneIsEven( N , K , MINT , MAXT , AVERAGET , SYRLISTT ):' ) - Pycontrol_m3p1.append( ' return 0,1,N,K,MINT,MAXT,AVERAGET,SYRLISTT' ) - control_m3p1 = GraphSyrControlAveNOTValid.GNode( 'C_NotOneIsEven' , Pycontrol_m3p1 , 'label_test' ) - control_m3p1.SetName( 'control_m3p1' ) - control_m3p1.SetAuthor( '' ) - control_m3p1.SetComment( 'Compute Node' ) - control_m3p1.Coords( 1058 , 8 ) - Icontrol_m3p1N = control_m3p1.InPort( 'N' , 'long' ) - Icontrol_m3p1K = control_m3p1.InPort( 'K' , 'long' ) - Icontrol_m3p1MINT = control_m3p1.InPort( 'MINT' , 'long' ) - Icontrol_m3p1MAXT = control_m3p1.InPort( 'MAXT' , 'long' ) - Icontrol_m3p1AVERAGET = control_m3p1.InPort( 'AVERAGET' , 'double' ) - Icontrol_m3p1SYRLISTT = control_m3p1.InPort( 'SYRLISTT' , 'ListOfSyr' ) - 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_m3p1MIN = control_m3p1.OutPort( 'MIN' , 'long' ) - Ocontrol_m3p1MAX = control_m3p1.OutPort( 'MAX' , 'long' ) - Ocontrol_m3p1AVERAGE = control_m3p1.OutPort( 'AVERAGE' , 'double' ) - Ocontrol_m3p1SYRLIST = control_m3p1.OutPort( 'SYRLIST' , 'ListOfSyr' ) - Ocontrol_m3p1Gate = control_m3p1.GetOutPort( 'Gate' ) - - Pycontrol_div2 = [] - Pycontrol_div2.append( 'def control_div2( N , K , MINT , MAXT , AVERAGET , SYRLISTT ) :' ) - Pycontrol_div2.append( ' return N,K,MINT,MAXT,AVERAGET,SYRLISTT' ) - control_div2 = GraphSyrControlAveNOTValid.GNode( 'control_div2' , Pycontrol_div2 , 'label_begin' ) - control_div2.SetName( 'control_div2' ) - control_div2.SetAuthor( '' ) - control_div2.SetComment( 'Compute Node' ) - control_div2.Coords( 1048 , 555 ) - Icontrol_div2N = control_div2.InPort( 'N' , 'long' ) - Icontrol_div2K = control_div2.InPort( 'K' , 'long' ) - Icontrol_div2MINT = control_div2.InPort( 'MINT' , 'long' ) - Icontrol_div2MAXT = control_div2.InPort( 'MAXT' , 'long' ) - Icontrol_div2AVERAGET = control_div2.InPort( 'AVERAGET' , 'double' ) - Icontrol_div2SYRLISTT = control_div2.InPort( 'SYRLISTT' , 'ListOfSyr' ) - Icontrol_div2Gate = control_div2.GetInPort( 'Gate' ) - Ocontrol_div2NB = control_div2.OutPort( 'NB' , 'long' ) - Ocontrol_div2KB = control_div2.OutPort( 'KB' , 'long' ) - Ocontrol_div2MINB = control_div2.OutPort( 'MINB' , 'long' ) - Ocontrol_div2MAXB = control_div2.OutPort( 'MAXB' , 'long' ) - Ocontrol_div2AVERAGEB = control_div2.OutPort( 'AVERAGEB' , 'double' ) - Ocontrol_div2SYRLISTB = control_div2.OutPort( 'SYRLISTB' , 'ListOfSyr' ) - Ocontrol_div2Gate = control_div2.GetOutPort( 'Gate' ) - - # Creation of Links - Ltest_ISEVENBoolEvenlabel_testValEven = GraphSyrControlAveNOTValid.Link( Otest_ISEVENBoolEven , Ilabel_testValEven ) - Ltest_ISEVENBoolEvenlabel_testValEven.AddCoord( 1 , 544 , 256 ) - Ltest_ISEVENBoolEvenlabel_testValEven.AddCoord( 2 , 544 , 524 ) - - Ltest_ISONEBoolOnelabel_testValOne = GraphSyrControlAveNOTValid.Link( Otest_ISONEBoolOne , Ilabel_testValOne ) - Ltest_ISONEBoolOnelabel_testValOne.AddCoord( 1 , 546 , 237 ) - Ltest_ISONEBoolOnelabel_testValOne.AddCoord( 2 , 546 , 198 ) - - Lm3p1anEvenIntegercontrol_m3p1N = GraphSyrControlAveNOTValid.Link( Om3p1anEvenInteger , Icontrol_m3p1N ) - Lm3p1anEvenIntegercontrol_m3p1N.AddCoord( 1 , 975 , 38 ) - Lm3p1anEvenIntegercontrol_m3p1N.AddCoord( 2 , 976 , 81 ) - - Ldiv2anIntegercontrol_div2N = GraphSyrControlAveNOTValid.Link( Odiv2anInteger , Icontrol_div2N ) - Ldiv2anIntegercontrol_div2N.AddCoord( 1 , 1012 , 585 ) - Ldiv2anIntegercontrol_div2N.AddCoord( 2 , 1011 , 346 ) - - LincraNewCountcontrol_div2K = GraphSyrControlAveNOTValid.Link( OincraNewCount , Icontrol_div2K ) - LincraNewCountcontrol_div2K.AddCoord( 1 , 966 , 606 ) - LincraNewCountcontrol_div2K.AddCoord( 2 , 968 , 207 ) - - LincraNewCountcontrol_m3p1K = GraphSyrControlAveNOTValid.Link( OincraNewCount , Icontrol_m3p1K ) - LincraNewCountcontrol_m3p1K.AddCoord( 1 , 965 , 59 ) - LincraNewCountcontrol_m3p1K.AddCoord( 2 , 966 , 208 ) - - LincraNewCountC_AVERAGEaCount = GraphSyrControlAveNOTValid.Link( OincraNewCount , IC_AVERAGEaCount ) - LincraNewCountC_AVERAGEaCount.AddCoord( 1 , 751 , 588 ) - LincraNewCountC_AVERAGEaCount.AddCoord( 2 , 751 , 460 ) - LincraNewCountC_AVERAGEaCount.AddCoord( 3 , 965 , 462 ) - LincraNewCountC_AVERAGEaCount.AddCoord( 4 , 968 , 205 ) - - LC_MINaNewMinValcontrol_m3p1MINT = GraphSyrControlAveNOTValid.Link( OC_MINaNewMinVal , Icontrol_m3p1MINT ) - LC_MINaNewMinValcontrol_m3p1MINT.AddCoord( 1 , 991 , 78 ) - LC_MINaNewMinValcontrol_m3p1MINT.AddCoord( 2 , 991 , 905 ) - - LC_MINaNewMinValcontrol_div2MINT = GraphSyrControlAveNOTValid.Link( OC_MINaNewMinVal , Icontrol_div2MINT ) - LC_MINaNewMinValcontrol_div2MINT.AddCoord( 1 , 991 , 626 ) - LC_MINaNewMinValcontrol_div2MINT.AddCoord( 2 , 991 , 905 ) - - LC_MAXaNewMaxValcontrol_m3p1MAXT = GraphSyrControlAveNOTValid.Link( OC_MAXaNewMaxVal , Icontrol_m3p1MAXT ) - LC_MAXaNewMaxValcontrol_m3p1MAXT.AddCoord( 1 , 976 , 98 ) - LC_MAXaNewMaxValcontrol_m3p1MAXT.AddCoord( 2 , 974 , 738 ) - - LC_MAXaNewMaxValcontrol_div2MAXT = GraphSyrControlAveNOTValid.Link( OC_MAXaNewMaxVal , Icontrol_div2MAXT ) - LC_MAXaNewMaxValcontrol_div2MAXT.AddCoord( 1 , 972 , 648 ) - LC_MAXaNewMaxValcontrol_div2MAXT.AddCoord( 2 , 974 , 738 ) - - LC_AVERAGEaNewListOfSyrcontrol_m3p1SYRLISTT = GraphSyrControlAveNOTValid.Link( OC_AVERAGEaNewListOfSyr , Icontrol_m3p1SYRLISTT ) - LC_AVERAGEaNewListOfSyrcontrol_m3p1SYRLISTT.AddCoord( 1 , 1037 , 137 ) - LC_AVERAGEaNewListOfSyrcontrol_m3p1SYRLISTT.AddCoord( 2 , 1038 , 556 ) - - LC_AVERAGEaNewListOfSyrcontrol_div2SYRLISTT = GraphSyrControlAveNOTValid.Link( OC_AVERAGEaNewListOfSyr , Icontrol_div2SYRLISTT ) - LC_AVERAGEaNewListOfSyrcontrol_div2SYRLISTT.AddCoord( 1 , 1038 , 686 ) - LC_AVERAGEaNewListOfSyrcontrol_div2SYRLISTT.AddCoord( 2 , 1038 , 555 ) - - LC_AVERAGEanAveragecontrol_m3p1AVERAGET = GraphSyrControlAveNOTValid.Link( OC_AVERAGEanAverage , Icontrol_m3p1AVERAGET ) - LC_AVERAGEanAveragecontrol_m3p1AVERAGET.AddCoord( 1 , 1026 , 118 ) - LC_AVERAGEanAveragecontrol_m3p1AVERAGET.AddCoord( 2 , 1027 , 567 ) - - LC_AVERAGEanAveragecontrol_div2AVERAGET = GraphSyrControlAveNOTValid.Link( OC_AVERAGEanAverage , Icontrol_div2AVERAGET ) - LC_AVERAGEanAveragecontrol_div2AVERAGET.AddCoord( 1 , 1027 , 668 ) - LC_AVERAGEanAveragecontrol_div2AVERAGET.AddCoord( 2 , 1026 , 568 ) - - LC_LISTOFSYRaListOfSyrlabel_beginSYRLISTB = GraphSyrControlAveNOTValid.Link( OC_LISTOFSYRaListOfSyr , Ilabel_beginSYRLISTB ) - - Llabel_beginNTtest_ISONEanInteger = GraphSyrControlAveNOTValid.Link( Olabel_beginNT , Itest_ISONEanInteger ) - Llabel_beginNTtest_ISONEanInteger.AddCoord( 1 , 361 , 197 ) - Llabel_beginNTtest_ISONEanInteger.AddCoord( 2 , 360 , 290 ) - - Llabel_beginNTlabel_testNT = GraphSyrControlAveNOTValid.Link( Olabel_beginNT , Ilabel_testNT ) - - Llabel_beginNTtest_ISEVENanInteger = GraphSyrControlAveNOTValid.Link( Olabel_beginNT , Itest_ISEVENanInteger ) - Llabel_beginNTtest_ISEVENanInteger.AddCoord( 1 , 359 , 525 ) - Llabel_beginNTtest_ISEVENanInteger.AddCoord( 2 , 361 , 291 ) - - Llabel_beginKTlabel_testKT = GraphSyrControlAveNOTValid.Link( Olabel_beginKT , Ilabel_testKT ) - - Llabel_beginMINlabel_testMIN = GraphSyrControlAveNOTValid.Link( Olabel_beginMIN , Ilabel_testMIN ) - - Llabel_beginMAXlabel_testMAX = GraphSyrControlAveNOTValid.Link( Olabel_beginMAX , Ilabel_testMAX ) - - Llabel_beginAVERAGElabel_testAVERAGE = GraphSyrControlAveNOTValid.Link( Olabel_beginAVERAGE , Ilabel_testAVERAGE ) - - Llabel_beginSYRLISTlabel_testSYRLIST = GraphSyrControlAveNOTValid.Link( Olabel_beginSYRLIST , Ilabel_testSYRLIST ) - - Llabel_testEvendiv2Gate = GraphSyrControlAveNOTValid.Link( Olabel_testEven , Idiv2Gate ) - Llabel_testEvendiv2Gate.AddCoord( 1 , 777 , 351 ) - Llabel_testEvendiv2Gate.AddCoord( 2 , 777 , 286 ) - - Llabel_testOddm3p1Gate = GraphSyrControlAveNOTValid.Link( Olabel_testOdd , Im3p1Gate ) - Llabel_testOddm3p1Gate.AddCoord( 1 , 757 , 95 ) - Llabel_testOddm3p1Gate.AddCoord( 2 , 757 , 310 ) - - Llabel_testNm3p1anOddInteger = GraphSyrControlAveNOTValid.Link( Olabel_testN , Im3p1anOddInteger ) - Llabel_testNm3p1anOddInteger.AddCoord( 1 , 741 , 72 ) - Llabel_testNm3p1anOddInteger.AddCoord( 2 , 741 , 331 ) - - Llabel_testNdiv2anEvenInteger = GraphSyrControlAveNOTValid.Link( Olabel_testN , Idiv2anEvenInteger ) - - Llabel_testNC_MINanInteger = GraphSyrControlAveNOTValid.Link( Olabel_testN , IC_MINanInteger ) - Llabel_testNC_MINanInteger.AddCoord( 1 , 744 , 923 ) - Llabel_testNC_MINanInteger.AddCoord( 2 , 742 , 331 ) - - Llabel_testNC_MAXanInteger = GraphSyrControlAveNOTValid.Link( Olabel_testN , IC_MAXanInteger ) - Llabel_testNC_MAXanInteger.AddCoord( 1 , 742 , 759 ) - Llabel_testNC_MAXanInteger.AddCoord( 2 , 743 , 332 ) - - Llabel_testNC_AVERAGEanInteger = GraphSyrControlAveNOTValid.Link( Olabel_testN , IC_AVERAGEanInteger ) - Llabel_testNC_AVERAGEanInteger.AddCoord( 1 , 741 , 568 ) - Llabel_testNC_AVERAGEanInteger.AddCoord( 2 , 742 , 330 ) - - Llabel_testKincraCount = GraphSyrControlAveNOTValid.Link( Olabel_testK , IincraCount ) - Llabel_testKincraCount.AddCoord( 1 , 766 , 207 ) - Llabel_testKincraCount.AddCoord( 2 , 766 , 343 ) - - Llabel_testMINC_MINaMinVal = GraphSyrControlAveNOTValid.Link( Olabel_testMIN , IC_MINaMinVal ) - Llabel_testMINC_MINaMinVal.AddCoord( 1 , 771 , 902 ) - Llabel_testMINC_MINaMinVal.AddCoord( 2 , 777 , 371 ) - Llabel_testMINC_MINaMinVal.AddCoord( 3 , 777 , 370 ) - - Llabel_testMAXC_MAXaMaxVal = GraphSyrControlAveNOTValid.Link( Olabel_testMAX , IC_MAXaMaxVal ) - Llabel_testMAXC_MAXaMaxVal.AddCoord( 1 , 764 , 739 ) - Llabel_testMAXC_MAXaMaxVal.AddCoord( 2 , 762 , 390 ) - - Llabel_testSYRLISTC_AVERAGEaListOfSyr = GraphSyrControlAveNOTValid.Link( Olabel_testSYRLIST , IC_AVERAGEaListOfSyr ) - Llabel_testSYRLISTC_AVERAGEaListOfSyr.AddCoord( 1 , 769 , 546 ) - Llabel_testSYRLISTC_AVERAGEaListOfSyr.AddCoord( 2 , 769 , 431 ) - Llabel_testSYRLISTC_AVERAGEaListOfSyr.AddCoord( 3 , 768 , 431 ) - Llabel_testSYRLISTC_AVERAGEaListOfSyr.AddCoord( 4 , 768 , 430 ) - - Llabel_testDefaultEndL_OneEvenDefault = GraphSyrControlAveNOTValid.Link( Olabel_testDefault , IEndL_OneEvenDefault ) - - Lcontrol_m3p1Gatelabel_testGate = GraphSyrControlAveNOTValid.Link( Ocontrol_m3p1Gate , Ilabel_testGate ) - Lcontrol_m3p1Gatelabel_testGate.AddCoord( 1 , 553 , 453 ) - Lcontrol_m3p1Gatelabel_testGate.AddCoord( 2 , 554 , 1025 ) - Lcontrol_m3p1Gatelabel_testGate.AddCoord( 3 , 1242 , 1026 ) - Lcontrol_m3p1Gatelabel_testGate.AddCoord( 4 , 1234 , 204 ) - - Lcontrol_div2Gatelabel_beginGate = GraphSyrControlAveNOTValid.Link( Ocontrol_div2Gate , Ilabel_beginGate ) - Lcontrol_div2Gatelabel_beginGate.AddCoord( 1 , 176 , 419 ) - Lcontrol_div2Gatelabel_beginGate.AddCoord( 2 , 176 , 997 ) - Lcontrol_div2Gatelabel_beginGate.AddCoord( 3 , 1217 , 996 ) - Lcontrol_div2Gatelabel_beginGate.AddCoord( 4 , 1223 , 711 ) - - # Input datas - Ilabel_beginNB.Input( 31 ) - Ilabel_beginKB.Input( 0 ) - Ilabel_beginMINB.Input( 0 ) - Ilabel_beginMAXB.Input( 0 ) - Ilabel_beginAVERAGEB.Input( 0 ) - - # Input Ports of the graph - #IEndL_OneEvenMINT = EndL_OneEven.GetInPort( 'MINT' ) - #IEndL_OneEvenMAXT = EndL_OneEven.GetInPort( 'MAXT' ) - #IEndL_OneEvenAVERAGET = EndL_OneEven.GetInPort( 'AVERAGET' ) - - # Output Ports of the graph - #Olabel_testFinished = label_test.GetOutPort( 'Finished' ) - #Olabel_testIncr = label_test.GetOutPort( 'Incr' ) - #Olabel_testAVERAGE = label_test.GetOutPort( 'AVERAGE' ) - #OEndL_OneEvenMIN = EndL_OneEven.GetOutPort( 'MIN' ) - #OEndL_OneEvenMAX = EndL_OneEven.GetOutPort( 'MAX' ) - #OEndL_OneEvenAVERAGE = EndL_OneEven.GetOutPort( 'AVERAGE' ) - return GraphSyrControlAveNOTValid - - -GraphSyrControlAveNOTValid = DefGraphSyrControlAveNOTValid() diff --git a/Superv/Python/GraphSyrControlAveValid.py b/Superv/Python/GraphSyrControlAveValid.py deleted file mode 100644 index a7952c0..0000000 --- a/Superv/Python/GraphSyrControlAveValid.py +++ /dev/null @@ -1,433 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphSyrControlAveValid -# -from SuperV import * - -# Graph creation of GraphSyrControlAveValid -def DefGraphSyrControlAveValid() : - GraphSyrControlAveValid = Graph( 'GraphSyrControlAveValid' ) - GraphSyrControlAveValid.SetName( 'GraphSyrControlAveValid' ) - GraphSyrControlAveValid.SetAuthor( 'JR' ) - GraphSyrControlAveValid.SetComment( 'Syracuse algorithm' ) - GraphSyrControlAveValid.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - test_ISEVEN = GraphSyrControlAveValid.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( 370 , 455 ) - 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 = GraphSyrControlAveValid.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( 370 , 127 ) - 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 = GraphSyrControlAveValid.FNode( 'SyrComponent' , 'SyrComponent' , 'C_M3P1' ) - m3p1.SetName( 'm3p1' ) - m3p1.SetAuthor( '' ) - m3p1.SetContainer( 'localhost/FactoryServer' ) - m3p1.SetComment( 'C_M3P1 from SyrComponent' ) - m3p1.Coords( 789 , 0 ) - Im3p1anOddInteger = m3p1.GetInPort( 'anOddInteger' ) - Im3p1Gate = m3p1.GetInPort( 'Gate' ) - Om3p1anEvenInteger = m3p1.GetOutPort( 'anEvenInteger' ) - Om3p1Gate = m3p1.GetOutPort( 'Gate' ) - - div2 = GraphSyrControlAveValid.FNode( 'SyrComponent' , 'SyrComponent' , 'C_DIV2' ) - div2.SetName( 'div2' ) - div2.SetAuthor( '' ) - div2.SetContainer( 'localhost/FactoryServer' ) - div2.SetComment( 'C_DIV2 from SyrComponent' ) - div2.Coords( 789 , 255 ) - Idiv2anEvenInteger = div2.GetInPort( 'anEvenInteger' ) - Idiv2Gate = div2.GetInPort( 'Gate' ) - Odiv2anInteger = div2.GetOutPort( 'anInteger' ) - Odiv2Gate = div2.GetOutPort( 'Gate' ) - - incr = GraphSyrControlAveValid.FNode( 'SyrComponent' , 'SyrComponent' , 'C_INCR' ) - incr.SetName( 'incr' ) - incr.SetAuthor( '' ) - incr.SetContainer( 'localhost/FactoryServer' ) - incr.SetComment( 'C_INCR from SyrComponent' ) - incr.Coords( 790 , 136 ) - IincraCount = incr.GetInPort( 'aCount' ) - IincrGate = incr.GetInPort( 'Gate' ) - OincraNewCount = incr.GetOutPort( 'aNewCount' ) - OincrGate = incr.GetOutPort( 'Gate' ) - - C_MIN = GraphSyrControlAveValid.FNode( 'SyrComponent' , 'SyrComponent' , 'C_MIN' ) - C_MIN.SetName( 'C_MIN' ) - C_MIN.SetAuthor( '' ) - C_MIN.SetContainer( 'localhost/FactoryServer' ) - C_MIN.SetComment( 'C_MIN from SyrComponent' ) - C_MIN.Coords( 798 , 833 ) - IC_MINaMinVal = C_MIN.GetInPort( 'aMinVal' ) - IC_MINanInteger = C_MIN.GetInPort( 'anInteger' ) - IC_MINGate = C_MIN.GetInPort( 'Gate' ) - OC_MINaNewMinVal = C_MIN.GetOutPort( 'aNewMinVal' ) - OC_MINGate = C_MIN.GetOutPort( 'Gate' ) - - C_MAX = GraphSyrControlAveValid.FNode( 'SyrComponent' , 'SyrComponent' , 'C_MAX' ) - C_MAX.SetName( 'C_MAX' ) - C_MAX.SetAuthor( '' ) - C_MAX.SetContainer( 'localhost/FactoryServer' ) - C_MAX.SetComment( 'C_MAX from SyrComponent' ) - C_MAX.Coords( 798 , 668 ) - IC_MAXaMaxVal = C_MAX.GetInPort( 'aMaxVal' ) - IC_MAXanInteger = C_MAX.GetInPort( 'anInteger' ) - IC_MAXGate = C_MAX.GetInPort( 'Gate' ) - OC_MAXaNewMaxVal = C_MAX.GetOutPort( 'aNewMaxVal' ) - OC_MAXGate = C_MAX.GetOutPort( 'Gate' ) - - C_AVERAGE = GraphSyrControlAveValid.FNode( 'SyrComponent' , 'SyrComponent' , 'C_AVERAGE' ) - C_AVERAGE.SetName( 'C_AVERAGE' ) - C_AVERAGE.SetAuthor( '' ) - C_AVERAGE.SetContainer( 'localhost/FactoryServer' ) - C_AVERAGE.SetComment( 'C_AVERAGE from SyrComponent' ) - C_AVERAGE.Coords( 784 , 476 ) - IC_AVERAGEaListOfSyr = C_AVERAGE.GetInPort( 'aListOfSyr' ) - IC_AVERAGEanInteger = C_AVERAGE.GetInPort( 'anInteger' ) - IC_AVERAGEaCount = C_AVERAGE.GetInPort( 'aCount' ) - IC_AVERAGEGate = C_AVERAGE.GetInPort( 'Gate' ) - OC_AVERAGEaNewListOfSyr = C_AVERAGE.GetOutPort( 'aNewListOfSyr' ) - OC_AVERAGEanAverage = C_AVERAGE.GetOutPort( 'anAverage' ) - OC_AVERAGEGate = C_AVERAGE.GetOutPort( 'Gate' ) - - C_LISTOFSYR = GraphSyrControlAveValid.FNode( 'SyrComponent' , 'SyrComponent' , 'C_LISTOFSYR' ) - C_LISTOFSYR.SetName( 'C_LISTOFSYR' ) - C_LISTOFSYR.SetAuthor( '' ) - C_LISTOFSYR.SetContainer( 'localhost/FactoryServer' ) - C_LISTOFSYR.SetComment( 'C_LISTOFSYR from SyrComponent' ) - C_LISTOFSYR.Coords( 5 , 321 ) - IC_LISTOFSYRGate = C_LISTOFSYR.GetInPort( 'Gate' ) - OC_LISTOFSYRaListOfSyr = C_LISTOFSYR.GetOutPort( 'aListOfSyr' ) - OC_LISTOFSYRGate = C_LISTOFSYR.GetOutPort( 'Gate' ) - - # Creation of InLine Nodes - Pylabel_begin = [] - Pylabel_begin.append( 'def label_begin( NB , KB , MINB , MAXB , AVERAGEB , SYRLISTB ) :' ) - Pylabel_begin.append( ' return NB,KB,MINB,MAXB,AVERAGEB,SYRLISTB' ) - label_begin = GraphSyrControlAveValid.INode( 'label_begin' , Pylabel_begin ) - label_begin.SetName( 'label_begin' ) - label_begin.SetAuthor( '' ) - label_begin.SetComment( 'Python function' ) - label_begin.Coords( 183 , 220 ) - Ilabel_beginNB = label_begin.InPort( 'NB' , 'long' ) - Ilabel_beginKB = label_begin.InPort( 'KB' , 'long' ) - Ilabel_beginMINB = label_begin.InPort( 'MINB' , 'long' ) - Ilabel_beginMAXB = label_begin.InPort( 'MAXB' , 'long' ) - Ilabel_beginAVERAGEB = label_begin.InPort( 'AVERAGEB' , 'double' ) - Ilabel_beginSYRLISTB = label_begin.InPort( 'SYRLISTB' , 'ListOfSyr' ) - Ilabel_beginGate = label_begin.GetInPort( 'Gate' ) - Olabel_beginNT = label_begin.OutPort( 'NT' , 'long' ) - Olabel_beginKT = label_begin.OutPort( 'KT' , 'long' ) - Olabel_beginMIN = label_begin.OutPort( 'MIN' , 'long' ) - Olabel_beginMAX = label_begin.OutPort( 'MAX' , 'long' ) - Olabel_beginAVERAGE = label_begin.OutPort( 'AVERAGE' , 'double' ) - Olabel_beginSYRLIST = label_begin.OutPort( 'SYRLIST' , 'ListOfSyr' ) - Olabel_beginGate = label_begin.GetOutPort( 'Gate' ) - - # Creation of Switch Nodes - Pylabel_test = [] - Pylabel_test.append( 'def L_OneEven( ValOne , ValEven , NT , KT , MIN , MAX , AVERAGE , SYRLIST ):' ) - Pylabel_test.append( ' Finished = ValOne' ) - Pylabel_test.append( ' if Finished == 0 :' ) - Pylabel_test.append( ' Incr = 1' ) - Pylabel_test.append( ' Even = ValEven' ) - Pylabel_test.append( ' if Even == 0 :' ) - Pylabel_test.append( ' Odd = 1' ) - Pylabel_test.append( ' else :' ) - Pylabel_test.append( ' Odd = 0' ) - Pylabel_test.append( ' else :' ) - Pylabel_test.append( ' Incr = 0' ) - Pylabel_test.append( ' Even = 0' ) - Pylabel_test.append( ' Odd = 0' ) - Pylabel_test.append( ' Even = ValEven' ) - Pylabel_test.append( ' return Finished,Incr,Even,Odd,NT,KT,MIN,MAX,AVERAGE,SYRLIST' ) - label_test,EndL_OneEven = GraphSyrControlAveValid.SNode( 'L_OneEven' , Pylabel_test ) - EndL_OneEven.SetName( 'EndL_OneEven' ) - EndL_OneEven.SetAuthor( '' ) - EndL_OneEven.SetComment( 'Compute Node' ) - EndL_OneEven.Coords( 1064 , 339 ) - PyEndL_OneEven = [] - EndL_OneEven.SetPyFunction( '' , PyEndL_OneEven ) - IEndL_OneEvenMINT = EndL_OneEven.InPort( 'MINT' , 'long' ) - IEndL_OneEvenMAXT = EndL_OneEven.InPort( 'MAXT' , 'long' ) - IEndL_OneEvenAVERAGET = EndL_OneEven.InPort( 'AVERAGET' , 'double' ) - IEndL_OneEvenDefault = EndL_OneEven.GetInPort( 'Default' ) - OEndL_OneEvenMIN = EndL_OneEven.OutPort( 'MIN' , 'long' ) - OEndL_OneEvenMAX = EndL_OneEven.OutPort( 'MAX' , 'long' ) - OEndL_OneEvenAVERAGE = EndL_OneEven.OutPort( 'AVERAGE' , 'double' ) - OEndL_OneEvenGate = EndL_OneEven.GetOutPort( 'Gate' ) - label_test.SetName( 'label_test' ) - label_test.SetAuthor( '' ) - label_test.SetComment( 'Compute Node' ) - label_test.Coords( 564 , 219 ) - Ilabel_testValOne = label_test.InPort( 'ValOne' , 'long' ) - Ilabel_testValEven = label_test.InPort( 'ValEven' , 'long' ) - Ilabel_testNT = label_test.InPort( 'NT' , 'long' ) - Ilabel_testKT = label_test.InPort( 'KT' , 'long' ) - Ilabel_testMIN = label_test.InPort( 'MIN' , 'long' ) - Ilabel_testMAX = label_test.InPort( 'MAX' , 'long' ) - Ilabel_testAVERAGE = label_test.InPort( 'AVERAGE' , 'double' ) - Ilabel_testSYRLIST = label_test.InPort( 'SYRLIST' , 'ListOfSyr' ) - Ilabel_testGate = label_test.GetInPort( 'Gate' ) - Olabel_testFinished = label_test.OutPort( 'Finished' , 'long' ) - Olabel_testIncr = label_test.OutPort( 'Incr' , 'long' ) - Olabel_testEven = label_test.OutPort( 'Even' , 'long' ) - Olabel_testOdd = label_test.OutPort( 'Odd' , 'long' ) - Olabel_testN = label_test.OutPort( 'N' , 'long' ) - Olabel_testK = label_test.OutPort( 'K' , 'long' ) - Olabel_testMINT = label_test.OutPort( 'MINT' , 'long' ) - Olabel_testMAXT = label_test.OutPort( 'MAXT' , 'long' ) - Olabel_testAVERAGET = label_test.OutPort( 'AVERAGET' , 'double' ) - Olabel_testSYRLISTT = label_test.OutPort( 'SYRLISTT' , 'ListOfSyr' ) - Olabel_testDefault = label_test.GetOutPort( 'Default' ) - - # Creation of GOTO Nodes - Pycontrol_m3p1 = [] - Pycontrol_m3p1.append( 'def C_NotOneIsEven( N , K , MINT , MAXT , AVERAGET , SYRLISTT ):' ) - Pycontrol_m3p1.append( ' return 0,1,N,K,MINT,MAXT,AVERAGET,SYRLISTT' ) - control_m3p1 = GraphSyrControlAveValid.GNode( 'C_NotOneIsEven' , Pycontrol_m3p1 , 'label_test' ) - control_m3p1.SetName( 'control_m3p1' ) - control_m3p1.SetAuthor( '' ) - control_m3p1.SetComment( 'Compute Node' ) - control_m3p1.Coords( 1058 , 8 ) - Icontrol_m3p1N = control_m3p1.InPort( 'N' , 'long' ) - Icontrol_m3p1K = control_m3p1.InPort( 'K' , 'long' ) - Icontrol_m3p1MINT = control_m3p1.InPort( 'MINT' , 'long' ) - Icontrol_m3p1MAXT = control_m3p1.InPort( 'MAXT' , 'long' ) - Icontrol_m3p1AVERAGET = control_m3p1.InPort( 'AVERAGET' , 'double' ) - Icontrol_m3p1SYRLISTT = control_m3p1.InPort( 'SYRLISTT' , 'ListOfSyr' ) - 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_m3p1MIN = control_m3p1.OutPort( 'MIN' , 'long' ) - Ocontrol_m3p1MAX = control_m3p1.OutPort( 'MAX' , 'long' ) - Ocontrol_m3p1AVERAGE = control_m3p1.OutPort( 'AVERAGE' , 'double' ) - Ocontrol_m3p1SYRLIST = control_m3p1.OutPort( 'SYRLIST' , 'ListOfSyr' ) - Ocontrol_m3p1Gate = control_m3p1.GetOutPort( 'Gate' ) - - Pycontrol_div2 = [] - Pycontrol_div2.append( 'def control_div2( N , K , MINT , MAXT , AVERAGET , SYRLISTT ) :' ) - Pycontrol_div2.append( ' return N,K,MINT,MAXT,AVERAGET,SYRLISTT' ) - control_div2 = GraphSyrControlAveValid.GNode( 'control_div2' , Pycontrol_div2 , 'label_begin' ) - control_div2.SetName( 'control_div2' ) - control_div2.SetAuthor( '' ) - control_div2.SetComment( 'Compute Node' ) - control_div2.Coords( 1048 , 555 ) - Icontrol_div2N = control_div2.InPort( 'N' , 'long' ) - Icontrol_div2K = control_div2.InPort( 'K' , 'long' ) - Icontrol_div2MINT = control_div2.InPort( 'MINT' , 'long' ) - Icontrol_div2MAXT = control_div2.InPort( 'MAXT' , 'long' ) - Icontrol_div2AVERAGET = control_div2.InPort( 'AVERAGET' , 'double' ) - Icontrol_div2SYRLISTT = control_div2.InPort( 'SYRLISTT' , 'ListOfSyr' ) - Icontrol_div2Gate = control_div2.GetInPort( 'Gate' ) - Ocontrol_div2NB = control_div2.OutPort( 'NB' , 'long' ) - Ocontrol_div2KB = control_div2.OutPort( 'KB' , 'long' ) - Ocontrol_div2MINB = control_div2.OutPort( 'MINB' , 'long' ) - Ocontrol_div2MAXB = control_div2.OutPort( 'MAXB' , 'long' ) - Ocontrol_div2AVERAGEB = control_div2.OutPort( 'AVERAGEB' , 'double' ) - Ocontrol_div2SYRLISTB = control_div2.OutPort( 'SYRLISTB' , 'ListOfSyr' ) - Ocontrol_div2Gate = control_div2.GetOutPort( 'Gate' ) - - # Creation of Links - Ltest_ISEVENBoolEvenlabel_testValEven = GraphSyrControlAveValid.Link( Otest_ISEVENBoolEven , Ilabel_testValEven ) - Ltest_ISEVENBoolEvenlabel_testValEven.AddCoord( 1 , 544 , 256 ) - Ltest_ISEVENBoolEvenlabel_testValEven.AddCoord( 2 , 544 , 524 ) - - Ltest_ISONEBoolOnelabel_testValOne = GraphSyrControlAveValid.Link( Otest_ISONEBoolOne , Ilabel_testValOne ) - Ltest_ISONEBoolOnelabel_testValOne.AddCoord( 1 , 546 , 237 ) - Ltest_ISONEBoolOnelabel_testValOne.AddCoord( 2 , 546 , 198 ) - - Lm3p1anEvenIntegercontrol_m3p1N = GraphSyrControlAveValid.Link( Om3p1anEvenInteger , Icontrol_m3p1N ) - Lm3p1anEvenIntegercontrol_m3p1N.AddCoord( 1 , 975 , 38 ) - Lm3p1anEvenIntegercontrol_m3p1N.AddCoord( 2 , 976 , 81 ) - - Ldiv2anIntegercontrol_div2N = GraphSyrControlAveValid.Link( Odiv2anInteger , Icontrol_div2N ) - Ldiv2anIntegercontrol_div2N.AddCoord( 1 , 1012 , 585 ) - Ldiv2anIntegercontrol_div2N.AddCoord( 2 , 1011 , 346 ) - - LincraNewCountcontrol_div2K = GraphSyrControlAveValid.Link( OincraNewCount , Icontrol_div2K ) - LincraNewCountcontrol_div2K.AddCoord( 1 , 966 , 606 ) - LincraNewCountcontrol_div2K.AddCoord( 2 , 968 , 207 ) - - LincraNewCountcontrol_m3p1K = GraphSyrControlAveValid.Link( OincraNewCount , Icontrol_m3p1K ) - LincraNewCountcontrol_m3p1K.AddCoord( 1 , 965 , 59 ) - LincraNewCountcontrol_m3p1K.AddCoord( 2 , 966 , 208 ) - - LincraNewCountC_AVERAGEaCount = GraphSyrControlAveValid.Link( OincraNewCount , IC_AVERAGEaCount ) - LincraNewCountC_AVERAGEaCount.AddCoord( 1 , 751 , 588 ) - LincraNewCountC_AVERAGEaCount.AddCoord( 2 , 751 , 460 ) - LincraNewCountC_AVERAGEaCount.AddCoord( 3 , 965 , 462 ) - LincraNewCountC_AVERAGEaCount.AddCoord( 4 , 968 , 205 ) - - LC_MINaNewMinValcontrol_m3p1MINT = GraphSyrControlAveValid.Link( OC_MINaNewMinVal , Icontrol_m3p1MINT ) - LC_MINaNewMinValcontrol_m3p1MINT.AddCoord( 1 , 991 , 78 ) - LC_MINaNewMinValcontrol_m3p1MINT.AddCoord( 2 , 991 , 905 ) - - LC_MINaNewMinValcontrol_div2MINT = GraphSyrControlAveValid.Link( OC_MINaNewMinVal , Icontrol_div2MINT ) - LC_MINaNewMinValcontrol_div2MINT.AddCoord( 1 , 991 , 626 ) - LC_MINaNewMinValcontrol_div2MINT.AddCoord( 2 , 991 , 905 ) - - LC_MAXaNewMaxValcontrol_m3p1MAXT = GraphSyrControlAveValid.Link( OC_MAXaNewMaxVal , Icontrol_m3p1MAXT ) - LC_MAXaNewMaxValcontrol_m3p1MAXT.AddCoord( 1 , 976 , 98 ) - LC_MAXaNewMaxValcontrol_m3p1MAXT.AddCoord( 2 , 974 , 738 ) - - LC_MAXaNewMaxValcontrol_div2MAXT = GraphSyrControlAveValid.Link( OC_MAXaNewMaxVal , Icontrol_div2MAXT ) - LC_MAXaNewMaxValcontrol_div2MAXT.AddCoord( 1 , 972 , 648 ) - LC_MAXaNewMaxValcontrol_div2MAXT.AddCoord( 2 , 974 , 738 ) - - LC_AVERAGEaNewListOfSyrcontrol_m3p1SYRLISTT = GraphSyrControlAveValid.Link( OC_AVERAGEaNewListOfSyr , Icontrol_m3p1SYRLISTT ) - LC_AVERAGEaNewListOfSyrcontrol_m3p1SYRLISTT.AddCoord( 1 , 1037 , 137 ) - LC_AVERAGEaNewListOfSyrcontrol_m3p1SYRLISTT.AddCoord( 2 , 1038 , 556 ) - - LC_AVERAGEaNewListOfSyrcontrol_div2SYRLISTT = GraphSyrControlAveValid.Link( OC_AVERAGEaNewListOfSyr , Icontrol_div2SYRLISTT ) - LC_AVERAGEaNewListOfSyrcontrol_div2SYRLISTT.AddCoord( 1 , 1038 , 686 ) - LC_AVERAGEaNewListOfSyrcontrol_div2SYRLISTT.AddCoord( 2 , 1038 , 555 ) - - LC_AVERAGEanAveragecontrol_m3p1AVERAGET = GraphSyrControlAveValid.Link( OC_AVERAGEanAverage , Icontrol_m3p1AVERAGET ) - LC_AVERAGEanAveragecontrol_m3p1AVERAGET.AddCoord( 1 , 1026 , 118 ) - LC_AVERAGEanAveragecontrol_m3p1AVERAGET.AddCoord( 2 , 1027 , 567 ) - - LC_AVERAGEanAveragecontrol_div2AVERAGET = GraphSyrControlAveValid.Link( OC_AVERAGEanAverage , Icontrol_div2AVERAGET ) - LC_AVERAGEanAveragecontrol_div2AVERAGET.AddCoord( 1 , 1027 , 668 ) - LC_AVERAGEanAveragecontrol_div2AVERAGET.AddCoord( 2 , 1026 , 568 ) - - LC_LISTOFSYRaListOfSyrlabel_beginSYRLISTB = GraphSyrControlAveValid.Link( OC_LISTOFSYRaListOfSyr , Ilabel_beginSYRLISTB ) - - Llabel_beginNTtest_ISONEanInteger = GraphSyrControlAveValid.Link( Olabel_beginNT , Itest_ISONEanInteger ) - Llabel_beginNTtest_ISONEanInteger.AddCoord( 1 , 361 , 197 ) - Llabel_beginNTtest_ISONEanInteger.AddCoord( 2 , 360 , 290 ) - - Llabel_beginNTlabel_testNT = GraphSyrControlAveValid.Link( Olabel_beginNT , Ilabel_testNT ) - - Llabel_beginNTtest_ISEVENanInteger = GraphSyrControlAveValid.Link( Olabel_beginNT , Itest_ISEVENanInteger ) - Llabel_beginNTtest_ISEVENanInteger.AddCoord( 1 , 359 , 525 ) - Llabel_beginNTtest_ISEVENanInteger.AddCoord( 2 , 361 , 291 ) - - Llabel_beginKTlabel_testKT = GraphSyrControlAveValid.Link( Olabel_beginKT , Ilabel_testKT ) - - Llabel_beginMINlabel_testMIN = GraphSyrControlAveValid.Link( Olabel_beginMIN , Ilabel_testMIN ) - - Llabel_beginMAXlabel_testMAX = GraphSyrControlAveValid.Link( Olabel_beginMAX , Ilabel_testMAX ) - - Llabel_beginAVERAGElabel_testAVERAGE = GraphSyrControlAveValid.Link( Olabel_beginAVERAGE , Ilabel_testAVERAGE ) - - Llabel_beginSYRLISTlabel_testSYRLIST = GraphSyrControlAveValid.Link( Olabel_beginSYRLIST , Ilabel_testSYRLIST ) - - Llabel_testEvendiv2Gate = GraphSyrControlAveValid.Link( Olabel_testEven , Idiv2Gate ) - Llabel_testEvendiv2Gate.AddCoord( 1 , 777 , 351 ) - Llabel_testEvendiv2Gate.AddCoord( 2 , 777 , 286 ) - - Llabel_testOddm3p1Gate = GraphSyrControlAveValid.Link( Olabel_testOdd , Im3p1Gate ) - Llabel_testOddm3p1Gate.AddCoord( 1 , 757 , 95 ) - Llabel_testOddm3p1Gate.AddCoord( 2 , 757 , 310 ) - - Llabel_testNm3p1anOddInteger = GraphSyrControlAveValid.Link( Olabel_testN , Im3p1anOddInteger ) - Llabel_testNm3p1anOddInteger.AddCoord( 1 , 741 , 72 ) - Llabel_testNm3p1anOddInteger.AddCoord( 2 , 741 , 331 ) - - Llabel_testNdiv2anEvenInteger = GraphSyrControlAveValid.Link( Olabel_testN , Idiv2anEvenInteger ) - - Llabel_testNC_MINanInteger = GraphSyrControlAveValid.Link( Olabel_testN , IC_MINanInteger ) - Llabel_testNC_MINanInteger.AddCoord( 1 , 744 , 923 ) - Llabel_testNC_MINanInteger.AddCoord( 2 , 742 , 331 ) - - Llabel_testNC_MAXanInteger = GraphSyrControlAveValid.Link( Olabel_testN , IC_MAXanInteger ) - Llabel_testNC_MAXanInteger.AddCoord( 1 , 742 , 759 ) - Llabel_testNC_MAXanInteger.AddCoord( 2 , 743 , 332 ) - - Llabel_testNC_AVERAGEanInteger = GraphSyrControlAveValid.Link( Olabel_testN , IC_AVERAGEanInteger ) - Llabel_testNC_AVERAGEanInteger.AddCoord( 1 , 741 , 568 ) - Llabel_testNC_AVERAGEanInteger.AddCoord( 2 , 742 , 330 ) - - Llabel_testKincraCount = GraphSyrControlAveValid.Link( Olabel_testK , IincraCount ) - Llabel_testKincraCount.AddCoord( 1 , 766 , 207 ) - Llabel_testKincraCount.AddCoord( 2 , 766 , 343 ) - - Llabel_testMINTC_MINaMinVal = GraphSyrControlAveValid.Link( Olabel_testMINT , IC_MINaMinVal ) - Llabel_testMINTC_MINaMinVal.AddCoord( 1 , 760 , 904 ) - Llabel_testMINTC_MINaMinVal.AddCoord( 2 , 756 , 372 ) - - Llabel_testMINTEndL_OneEvenMINT = GraphSyrControlAveValid.Link( Olabel_testMINT , IEndL_OneEvenMINT ) - - Llabel_testMAXTC_MAXaMaxVal = GraphSyrControlAveValid.Link( Olabel_testMAXT , IC_MAXaMaxVal ) - Llabel_testMAXTC_MAXaMaxVal.AddCoord( 1 , 765 , 742 ) - Llabel_testMAXTC_MAXaMaxVal.AddCoord( 2 , 766 , 384 ) - - Llabel_testMAXTEndL_OneEvenMAXT = GraphSyrControlAveValid.Link( Olabel_testMAXT , IEndL_OneEvenMAXT ) - - Llabel_testAVERAGETEndL_OneEvenAVERAGET = GraphSyrControlAveValid.Link( Olabel_testAVERAGET , IEndL_OneEvenAVERAGET ) - - Llabel_testSYRLISTTC_AVERAGEaListOfSyr = GraphSyrControlAveValid.Link( Olabel_testSYRLISTT , IC_AVERAGEaListOfSyr ) - Llabel_testSYRLISTTC_AVERAGEaListOfSyr.AddCoord( 1 , 773 , 546 ) - Llabel_testSYRLISTTC_AVERAGEaListOfSyr.AddCoord( 2 , 772 , 424 ) - - Llabel_testDefaultEndL_OneEvenDefault = GraphSyrControlAveValid.Link( Olabel_testDefault , IEndL_OneEvenDefault ) - - Lcontrol_m3p1Gatelabel_testGate = GraphSyrControlAveValid.Link( Ocontrol_m3p1Gate , Ilabel_testGate ) - Lcontrol_m3p1Gatelabel_testGate.AddCoord( 1 , 553 , 453 ) - Lcontrol_m3p1Gatelabel_testGate.AddCoord( 2 , 554 , 1025 ) - Lcontrol_m3p1Gatelabel_testGate.AddCoord( 3 , 1242 , 1026 ) - Lcontrol_m3p1Gatelabel_testGate.AddCoord( 4 , 1234 , 204 ) - - Lcontrol_div2Gatelabel_beginGate = GraphSyrControlAveValid.Link( Ocontrol_div2Gate , Ilabel_beginGate ) - Lcontrol_div2Gatelabel_beginGate.AddCoord( 1 , 176 , 419 ) - Lcontrol_div2Gatelabel_beginGate.AddCoord( 2 , 176 , 997 ) - Lcontrol_div2Gatelabel_beginGate.AddCoord( 3 , 1217 , 996 ) - Lcontrol_div2Gatelabel_beginGate.AddCoord( 4 , 1223 , 711 ) - - # Input datas - Ilabel_beginNB.Input( 31 ) - Ilabel_beginKB.Input( 0 ) - Ilabel_beginMINB.Input( 0 ) - Ilabel_beginMAXB.Input( 0 ) - Ilabel_beginAVERAGEB.Input( 0 ) - - # Output Ports of the graph - #Olabel_testFinished = label_test.GetOutPort( 'Finished' ) - #Olabel_testIncr = label_test.GetOutPort( 'Incr' ) - #OEndL_OneEvenMIN = EndL_OneEven.GetOutPort( 'MIN' ) - #OEndL_OneEvenMAX = EndL_OneEven.GetOutPort( 'MAX' ) - #OEndL_OneEvenAVERAGE = EndL_OneEven.GetOutPort( 'AVERAGE' ) - return GraphSyrControlAveValid - - -GraphSyrControlAveValid = DefGraphSyrControlAveValid() diff --git a/Superv/Python/GraphSyrControlDefault.py b/Superv/Python/GraphSyrControlDefault.py deleted file mode 100644 index 4d4aa56..0000000 --- a/Superv/Python/GraphSyrControlDefault.py +++ /dev/null @@ -1,293 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphSyrControlDefault -# -from SuperV import * - -# Graph creation of GraphSyrControlDefault -def DefGraphSyrControlDefault() : - GraphSyrControlDefault = Graph( 'GraphSyrControlDefault' ) - GraphSyrControlDefault.SetName( 'GraphSyrControlDefault' ) - GraphSyrControlDefault.SetAuthor( 'JR' ) - GraphSyrControlDefault.SetComment( 'Syracuse algorithm' ) - GraphSyrControlDefault.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - test_ISEVEN = GraphSyrControlDefault.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( 204 , 444 ) - 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 = GraphSyrControlDefault.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 , 52 ) - 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 = GraphSyrControlDefault.FNode( 'SyrComponent' , 'SyrComponent' , 'C_M3P1' ) - m3p1.SetName( 'm3p1' ) - m3p1.SetAuthor( '' ) - m3p1.SetContainer( 'localhost/FactoryServer' ) - m3p1.SetComment( 'C_M3P1 from SyrComponent' ) - m3p1.Coords( 806 , 19 ) - Im3p1anOddInteger = m3p1.GetInPort( 'anOddInteger' ) - Im3p1Gate = m3p1.GetInPort( 'Gate' ) - Om3p1anEvenInteger = m3p1.GetOutPort( 'anEvenInteger' ) - Om3p1Gate = m3p1.GetOutPort( 'Gate' ) - - div2 = GraphSyrControlDefault.FNode( 'SyrComponent' , 'SyrComponent' , 'C_DIV2' ) - div2.SetName( 'div2' ) - div2.SetAuthor( '' ) - div2.SetContainer( 'localhost/FactoryServer' ) - div2.SetComment( 'C_DIV2 from SyrComponent' ) - div2.Coords( 803 , 451 ) - Idiv2anEvenInteger = div2.GetInPort( 'anEvenInteger' ) - Idiv2Gate = div2.GetInPort( 'Gate' ) - Odiv2anInteger = div2.GetOutPort( 'anInteger' ) - Odiv2Gate = div2.GetOutPort( 'Gate' ) - - incr = GraphSyrControlDefault.FNode( 'SyrComponent' , 'SyrComponent' , 'C_INCR' ) - incr.SetName( 'incr' ) - incr.SetAuthor( '' ) - incr.SetContainer( 'localhost/FactoryServer' ) - incr.SetComment( 'C_INCR from SyrComponent' ) - incr.Coords( 802 , 170 ) - 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 = GraphSyrControlDefault.INode( 'label_begin' , Pylabel_begin ) - label_begin.SetName( 'label_begin' ) - label_begin.SetAuthor( '' ) - label_begin.SetComment( 'Python function' ) - label_begin.Coords( 12 , 264 ) - 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 = GraphSyrControlDefault.INode( 'label_test' , Pylabel_test ) - label_test.SetName( 'label_test' ) - label_test.SetAuthor( '' ) - label_test.SetComment( 'Python function' ) - label_test.Coords( 415 , 206 ) - 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 Incr,Even,Odd,NT,KT' ) - test,EndSwitch_OneEven = GraphSyrControlDefault.SNode( 'Switch_OneEven' , Pytest ) - EndSwitch_OneEven.SetName( 'EndSwitch_OneEven' ) - EndSwitch_OneEven.SetAuthor( '' ) - EndSwitch_OneEven.SetComment( 'Compute Node' ) - EndSwitch_OneEven.Coords( 1074 , 367 ) - PyEndSwitch_OneEven = [] - EndSwitch_OneEven.SetPyFunction( '' , PyEndSwitch_OneEven ) - IEndSwitch_OneEvenK = EndSwitch_OneEven.InPort( 'K' , 'long' ) - IEndSwitch_OneEvenDefault = EndSwitch_OneEven.GetInPort( 'Default' ) - OEndSwitch_OneEvenK = EndSwitch_OneEven.OutPort( 'K' , 'long' ) - OEndSwitch_OneEvenGate = EndSwitch_OneEven.GetOutPort( 'Gate' ) - test.SetName( 'test' ) - test.SetAuthor( '' ) - test.SetComment( 'Compute Node' ) - test.Coords( 597 , 251 ) - ItestValOne = test.InPort( 'ValOne' , 'long' ) - ItestValEven = test.InPort( 'ValEven' , 'long' ) - ItestNT = test.InPort( 'NT' , 'long' ) - ItestKT = test.InPort( 'KT' , 'long' ) - ItestGate = test.GetInPort( 'Gate' ) - 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 = GraphSyrControlDefault.GNode( 'control_m3p1' , Pycontrol_m3p1 , 'label_test' ) - control_m3p1.SetName( 'control_m3p1' ) - control_m3p1.SetAuthor( '' ) - control_m3p1.SetComment( 'Compute Node' ) - control_m3p1.Coords( 1002 , 64 ) - 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 = GraphSyrControlDefault.GNode( 'control_div2' , Pycontrol_div2 , 'label_begin' ) - control_div2.SetName( 'control_div2' ) - control_div2.SetAuthor( '' ) - control_div2.SetComment( 'Compute Node' ) - control_div2.Coords( 1013 , 496 ) - 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 = GraphSyrControlDefault.Link( Otest_ISEVENBoolEven , Ilabel_testValEven ) - Ltest_ISEVENBoolEvenlabel_testValEven.AddCoord( 1 , 381 , 286 ) - Ltest_ISEVENBoolEvenlabel_testValEven.AddCoord( 2 , 382 , 524 ) - - Ltest_ISONEBoolOnelabel_testValOne = GraphSyrControlDefault.Link( Otest_ISONEBoolOne , Ilabel_testValOne ) - Ltest_ISONEBoolOnelabel_testValOne.AddCoord( 1 , 393 , 314 ) - Ltest_ISONEBoolOnelabel_testValOne.AddCoord( 2 , 393 , 133 ) - - Lm3p1anEvenIntegercontrol_m3p1N = GraphSyrControlDefault.Link( Om3p1anEvenInteger , Icontrol_m3p1N ) - - Ldiv2anIntegercontrol_div2N = GraphSyrControlDefault.Link( Odiv2anInteger , Icontrol_div2N ) - - LincraNewCountcontrol_m3p1K = GraphSyrControlDefault.Link( OincraNewCount , Icontrol_m3p1K ) - LincraNewCountcontrol_m3p1K.AddCoord( 1 , 985 , 128 ) - LincraNewCountcontrol_m3p1K.AddCoord( 2 , 985 , 250 ) - - LincraNewCountcontrol_div2K = GraphSyrControlDefault.Link( OincraNewCount , Icontrol_div2K ) - LincraNewCountcontrol_div2K.AddCoord( 1 , 987 , 559 ) - LincraNewCountcontrol_div2K.AddCoord( 2 , 985 , 250 ) - - Llabel_beginNTlabel_testNT = GraphSyrControlDefault.Link( Olabel_beginNT , Ilabel_testNT ) - - Llabel_beginNTtest_ISEVENanInteger = GraphSyrControlDefault.Link( Olabel_beginNT , Itest_ISEVENanInteger ) - Llabel_beginNTtest_ISEVENanInteger.AddCoord( 1 , 191 , 524 ) - Llabel_beginNTtest_ISEVENanInteger.AddCoord( 2 , 192 , 345 ) - - Llabel_beginNTtest_ISONEanInteger = GraphSyrControlDefault.Link( Olabel_beginNT , Itest_ISONEanInteger ) - Llabel_beginNTtest_ISONEanInteger.AddCoord( 1 , 192 , 131 ) - Llabel_beginNTtest_ISONEanInteger.AddCoord( 2 , 193 , 345 ) - - Llabel_beginKTlabel_testKT = GraphSyrControlDefault.Link( Olabel_beginKT , Ilabel_testKT ) - - Llabel_testValEventestValEven = GraphSyrControlDefault.Link( Olabel_testValEven , ItestValEven ) - - Llabel_testValOnetestValOne = GraphSyrControlDefault.Link( Olabel_testValOne , ItestValOne ) - - Llabel_testNTtestNT = GraphSyrControlDefault.Link( Olabel_testNT , ItestNT ) - - Llabel_testKTtestKT = GraphSyrControlDefault.Link( Olabel_testKT , ItestKT ) - - LtestEvendiv2Gate = GraphSyrControlDefault.Link( OtestEven , Idiv2Gate ) - LtestEvendiv2Gate.AddCoord( 1 , 793 , 567 ) - LtestEvendiv2Gate.AddCoord( 2 , 792 , 314 ) - - LtestOddm3p1Gate = GraphSyrControlDefault.Link( OtestOdd , Im3p1Gate ) - LtestOddm3p1Gate.AddCoord( 1 , 786 , 132 ) - LtestOddm3p1Gate.AddCoord( 2 , 785 , 343 ) - - LtestNm3p1anOddInteger = GraphSyrControlDefault.Link( OtestN , Im3p1anOddInteger ) - LtestNm3p1anOddInteger.AddCoord( 1 , 767 , 100 ) - LtestNm3p1anOddInteger.AddCoord( 2 , 767 , 371 ) - - LtestNdiv2anEvenInteger = GraphSyrControlDefault.Link( OtestN , Idiv2anEvenInteger ) - LtestNdiv2anEvenInteger.AddCoord( 1 , 768 , 531 ) - LtestNdiv2anEvenInteger.AddCoord( 2 , 767 , 371 ) - - LtestKEndSwitch_OneEvenK = GraphSyrControlDefault.Link( OtestK , IEndSwitch_OneEvenK ) - - LtestKincraCount = GraphSyrControlDefault.Link( OtestK , IincraCount ) - LtestKincraCount.AddCoord( 1 , 773 , 251 ) - LtestKincraCount.AddCoord( 2 , 774 , 400 ) - - LtestDefaultEndSwitch_OneEvenDefault = GraphSyrControlDefault.Link( OtestDefault , IEndSwitch_OneEvenDefault ) - - Lcontrol_m3p1Gatelabel_testGate = GraphSyrControlDefault.Link( Ocontrol_m3p1Gate , Ilabel_testGate ) - Lcontrol_m3p1Gatelabel_testGate.AddCoord( 1 , 402 , 406 ) - Lcontrol_m3p1Gatelabel_testGate.AddCoord( 2 , 403 , 4 ) - Lcontrol_m3p1Gatelabel_testGate.AddCoord( 3 , 1174 , 5 ) - Lcontrol_m3p1Gatelabel_testGate.AddCoord( 4 , 1175 , 219 ) - - Lcontrol_div2Gatelabel_beginGate = GraphSyrControlDefault.Link( Ocontrol_div2Gate , Ilabel_beginGate ) - Lcontrol_div2Gatelabel_beginGate.AddCoord( 1 , 3 , 409 ) - Lcontrol_div2Gatelabel_beginGate.AddCoord( 2 , 2 , 671 ) - Lcontrol_div2Gatelabel_beginGate.AddCoord( 3 , 1199 , 670 ) - Lcontrol_div2Gatelabel_beginGate.AddCoord( 4 , 1198 , 592 ) - - # Input datas - Ilabel_beginNB.Input( 7 ) - Ilabel_beginKB.Input( 0 ) - - # Output Ports of the graph - #OtestIncr = test.GetOutPort( 'Incr' ) - #OEndSwitch_OneEvenK = EndSwitch_OneEven.GetOutPort( 'K' ) - return GraphSyrControlDefault - - -GraphSyrControlDefault = DefGraphSyrControlDefault() diff --git a/Superv/Python/GraphSyrControlGUI.py b/Superv/Python/GraphSyrControlGUI.py deleted file mode 100644 index 91c00d2..0000000 --- a/Superv/Python/GraphSyrControlGUI.py +++ /dev/null @@ -1,265 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphSyrControlGUI_2 -# -from SuperV import * - -# Graph creation of GraphSyrControlGUI_2 -def DefGraphSyrControlGUI_2() : - GraphSyrControlGUI_2 = Graph( 'GraphSyrControlGUI_2' ) - GraphSyrControlGUI_2.SetName( 'GraphSyrControlGUI_2' ) - GraphSyrControlGUI_2.SetAuthor( 'JR' ) - GraphSyrControlGUI_2.SetComment( 'Syracuse algorithm' ) - GraphSyrControlGUI_2.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - test_ISEVEN = GraphSyrControlGUI_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( 288 , 337 ) - 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 = GraphSyrControlGUI_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( 293 , 130 ) - 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 = GraphSyrControlGUI_2.FNode( 'SyrComponent' , 'SyrComponent' , 'C_M3P1' ) - m3p1.SetName( 'm3p1' ) - m3p1.SetAuthor( '' ) - m3p1.SetContainer( 'localhost/FactoryServer' ) - m3p1.SetComment( 'C_M3P1 from SyrComponent' ) - m3p1.Coords( 761 , 19 ) - Im3p1anOddInteger = m3p1.GetInPort( 'anOddInteger' ) - Im3p1Gate = m3p1.GetInPort( 'Gate' ) - Om3p1anEvenInteger = m3p1.GetOutPort( 'anEvenInteger' ) - Om3p1Gate = m3p1.GetOutPort( 'Gate' ) - - div2 = GraphSyrControlGUI_2.FNode( 'SyrComponent' , 'SyrComponent' , 'C_DIV2' ) - div2.SetName( 'div2' ) - div2.SetAuthor( '' ) - div2.SetContainer( 'localhost/FactoryServer' ) - div2.SetComment( 'C_DIV2 from SyrComponent' ) - div2.Coords( 770 , 384 ) - Idiv2anEvenInteger = div2.GetInPort( 'anEvenInteger' ) - Idiv2Gate = div2.GetInPort( 'Gate' ) - Odiv2anInteger = div2.GetOutPort( 'anInteger' ) - Odiv2Gate = div2.GetOutPort( 'Gate' ) - - incr = GraphSyrControlGUI_2.FNode( 'SyrComponent' , 'SyrComponent' , 'C_INCR' ) - incr.SetName( 'incr' ) - incr.SetAuthor( '' ) - incr.SetContainer( 'localhost/FactoryServer' ) - incr.SetComment( 'C_INCR from SyrComponent' ) - incr.Coords( 764 , 179 ) - 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( ' return NB,KB' ) - label_begin = GraphSyrControlGUI_2.INode( 'label_begin' , Pylabel_begin ) - label_begin.SetName( 'label_begin' ) - label_begin.SetAuthor( '' ) - label_begin.SetComment( 'Python function' ) - label_begin.Coords( 58 , 189 ) - 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' ) - - # Creation of Switch Nodes - Pylabel_test = [] - Pylabel_test.append( 'def L_OneEven( ValOne , ValEven , NT , KT ):' ) - Pylabel_test.append( ' Finished = ValOne' ) - Pylabel_test.append( ' if Finished == 0 :' ) - Pylabel_test.append( ' Incr = 1' ) - Pylabel_test.append( ' Even = ValEven' ) - Pylabel_test.append( ' if Even == 0 :' ) - Pylabel_test.append( ' Odd = 1' ) - Pylabel_test.append( ' else :' ) - Pylabel_test.append( ' Odd = 0' ) - Pylabel_test.append( ' else :' ) - Pylabel_test.append( ' Incr = 0' ) - Pylabel_test.append( ' Even = 0' ) - Pylabel_test.append( ' Odd = 0' ) - Pylabel_test.append( ' Even = ValEven' ) - Pylabel_test.append( ' return Finished,Incr,Even,Odd,NT,KT' ) - label_test,EndL_OneEven = GraphSyrControlGUI_2.SNode( 'L_OneEven' , Pylabel_test ) - EndL_OneEven.SetName( 'EndL_OneEven' ) - EndL_OneEven.SetAuthor( '' ) - EndL_OneEven.SetComment( 'Compute Node' ) - EndL_OneEven.Coords( 1069 , 310 ) - PyEndL_OneEven = [] - EndL_OneEven.SetPyFunction( '' , PyEndL_OneEven ) - IEndL_OneEvenDefault = EndL_OneEven.GetInPort( 'Default' ) - OEndL_OneEvenGate = EndL_OneEven.GetOutPort( 'Gate' ) - label_test.SetName( 'label_test' ) - label_test.SetAuthor( '' ) - label_test.SetComment( 'Compute Node' ) - label_test.Coords( 515 , 190 ) - Ilabel_testValOne = label_test.InPort( 'ValOne' , 'long' ) - Ilabel_testValEven = label_test.InPort( 'ValEven' , 'long' ) - Ilabel_testNT = label_test.InPort( 'NT' , 'long' ) - Ilabel_testKT = label_test.InPort( 'KT' , 'long' ) - Ilabel_testGate = label_test.GetInPort( 'Gate' ) - Olabel_testFinished = label_test.OutPort( 'Finished' , 'long' ) - Olabel_testIncr = label_test.OutPort( 'Incr' , 'long' ) - Olabel_testEven = label_test.OutPort( 'Even' , 'long' ) - Olabel_testOdd = label_test.OutPort( 'Odd' , 'long' ) - Olabel_testN = label_test.OutPort( 'N' , 'long' ) - Olabel_testK = label_test.OutPort( 'K' , 'long' ) - Olabel_testDefault = label_test.GetOutPort( 'Default' ) - - # Creation of GOTO Nodes - Pycontrol_m3p1 = [] - Pycontrol_m3p1.append( 'def C_NotOneIsEven( N , K ):' ) - Pycontrol_m3p1.append( ' return 0,1,N,K' ) - control_m3p1 = GraphSyrControlGUI_2.GNode( 'C_NotOneIsEven' , Pycontrol_m3p1 , 'label_test' ) - control_m3p1.SetName( 'control_m3p1' ) - control_m3p1.SetAuthor( '' ) - control_m3p1.SetComment( 'Compute Node' ) - control_m3p1.Coords( 973 , 59 ) - 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 , K ) :' ) - Pycontrol_div2.append( ' return N,K' ) - control_div2 = GraphSyrControlGUI_2.GNode( 'control_div2' , Pycontrol_div2 , 'label_begin' ) - control_div2.SetName( 'control_div2' ) - control_div2.SetAuthor( '' ) - control_div2.SetComment( 'Compute Node' ) - control_div2.Coords( 973 , 424 ) - 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 = GraphSyrControlGUI_2.Link( Otest_ISEVENBoolEven , Ilabel_testValEven ) - Ltest_ISEVENBoolEvenlabel_testValEven.AddCoord( 1 , 493 , 241 ) - Ltest_ISEVENBoolEvenlabel_testValEven.AddCoord( 2 , 492 , 405 ) - - Ltest_ISONEBoolOnelabel_testValOne = GraphSyrControlGUI_2.Link( Otest_ISONEBoolOne , Ilabel_testValOne ) - Ltest_ISONEBoolOnelabel_testValOne.AddCoord( 1 , 476 , 222 ) - Ltest_ISONEBoolOnelabel_testValOne.AddCoord( 2 , 476 , 202 ) - - Lm3p1anEvenIntegercontrol_m3p1N = GraphSyrControlGUI_2.Link( Om3p1anEvenInteger , Icontrol_m3p1N ) - - Ldiv2anIntegercontrol_div2N = GraphSyrControlGUI_2.Link( Odiv2anInteger , Icontrol_div2N ) - - LincraNewCountcontrol_div2K = GraphSyrControlGUI_2.Link( OincraNewCount , Icontrol_div2K ) - LincraNewCountcontrol_div2K.AddCoord( 1 , 954 , 475 ) - LincraNewCountcontrol_div2K.AddCoord( 2 , 953 , 251 ) - - LincraNewCountcontrol_m3p1K = GraphSyrControlGUI_2.Link( OincraNewCount , Icontrol_m3p1K ) - LincraNewCountcontrol_m3p1K.AddCoord( 1 , 955 , 110 ) - LincraNewCountcontrol_m3p1K.AddCoord( 2 , 953 , 250 ) - - Llabel_beginNTtest_ISONEanInteger = GraphSyrControlGUI_2.Link( Olabel_beginNT , Itest_ISONEanInteger ) - Llabel_beginNTtest_ISONEanInteger.AddCoord( 1 , 275 , 201 ) - Llabel_beginNTtest_ISONEanInteger.AddCoord( 2 , 275 , 260 ) - - Llabel_beginNTlabel_testNT = GraphSyrControlGUI_2.Link( Olabel_beginNT , Ilabel_testNT ) - - Llabel_beginNTtest_ISEVENanInteger = GraphSyrControlGUI_2.Link( Olabel_beginNT , Itest_ISEVENanInteger ) - Llabel_beginNTtest_ISEVENanInteger.AddCoord( 1 , 275 , 408 ) - Llabel_beginNTtest_ISEVENanInteger.AddCoord( 2 , 275 , 261 ) - - Llabel_beginKTlabel_testKT = GraphSyrControlGUI_2.Link( Olabel_beginKT , Ilabel_testKT ) - Llabel_beginKTlabel_testKT.AddCoord( 1 , 476 , 282 ) - Llabel_beginKTlabel_testKT.AddCoord( 2 , 475 , 515 ) - Llabel_beginKTlabel_testKT.AddCoord( 3 , 260 , 515 ) - Llabel_beginKTlabel_testKT.AddCoord( 4 , 260 , 280 ) - - Llabel_testEvendiv2Gate = GraphSyrControlGUI_2.Link( Olabel_testEven , Idiv2Gate ) - Llabel_testEvendiv2Gate.AddCoord( 1 , 722 , 480 ) - Llabel_testEvendiv2Gate.AddCoord( 2 , 722 , 261 ) - - Llabel_testOddm3p1Gate = GraphSyrControlGUI_2.Link( Olabel_testOdd , Im3p1Gate ) - Llabel_testOddm3p1Gate.AddCoord( 1 , 698 , 114 ) - Llabel_testOddm3p1Gate.AddCoord( 2 , 698 , 281 ) - - Llabel_testNm3p1anOddInteger = GraphSyrControlGUI_2.Link( Olabel_testN , Im3p1anOddInteger ) - Llabel_testNm3p1anOddInteger.AddCoord( 1 , 745 , 90 ) - Llabel_testNm3p1anOddInteger.AddCoord( 2 , 747 , 301 ) - - Llabel_testNdiv2anEvenInteger = GraphSyrControlGUI_2.Link( Olabel_testN , Idiv2anEvenInteger ) - Llabel_testNdiv2anEvenInteger.AddCoord( 1 , 746 , 455 ) - Llabel_testNdiv2anEvenInteger.AddCoord( 2 , 748 , 301 ) - - Llabel_testKincraCount = GraphSyrControlGUI_2.Link( Olabel_testK , IincraCount ) - Llabel_testKincraCount.AddCoord( 1 , 733 , 250 ) - Llabel_testKincraCount.AddCoord( 2 , 734 , 321 ) - - Llabel_testDefaultEndL_OneEvenDefault = GraphSyrControlGUI_2.Link( Olabel_testDefault , IEndL_OneEvenDefault ) - - Lcontrol_m3p1Gatelabel_testGate = GraphSyrControlGUI_2.Link( Ocontrol_m3p1Gate , Ilabel_testGate ) - Lcontrol_m3p1Gatelabel_testGate.AddCoord( 1 , 504 , 344 ) - Lcontrol_m3p1Gatelabel_testGate.AddCoord( 2 , 505 , 5 ) - Lcontrol_m3p1Gatelabel_testGate.AddCoord( 3 , 1149 , 5 ) - Lcontrol_m3p1Gatelabel_testGate.AddCoord( 4 , 1150 , 174 ) - - Lcontrol_div2Gatelabel_beginGate = GraphSyrControlGUI_2.Link( Ocontrol_div2Gate , Ilabel_beginGate ) - Lcontrol_div2Gatelabel_beginGate.AddCoord( 1 , 34 , 304 ) - Lcontrol_div2Gatelabel_beginGate.AddCoord( 2 , 34 , 592 ) - Lcontrol_div2Gatelabel_beginGate.AddCoord( 3 , 1145 , 586 ) - Lcontrol_div2Gatelabel_beginGate.AddCoord( 4 , 1145 , 499 ) - - # Input datas - Ilabel_beginNB.Input( 7 ) - Ilabel_beginKB.Input( 0 ) - - # Output Ports of the graph - #Olabel_testFinished = label_test.GetOutPort( 'Finished' ) - #Olabel_testIncr = label_test.GetOutPort( 'Incr' ) - return GraphSyrControlGUI_2 - - -GraphSyrControlGUI_2 = DefGraphSyrControlGUI_2() diff --git a/Superv/Python/GraphSyracuseControl.py b/Superv/Python/GraphSyracuseControl.py deleted file mode 100644 index 9f4f288..0000000 --- a/Superv/Python/GraphSyracuseControl.py +++ /dev/null @@ -1,143 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# -from SuperV import * - -GraphSyracuseControl = Graph( 'GraphSyracuseControl' ) -print GraphSyracuseControl.SetName( 'GraphSyracuseControl' ) -print GraphSyracuseControl.SetAuthor( 'JR' ) -print GraphSyracuseControl.SetComment( 'Syracuse algorithm' ) -GraphSyracuseControl.Coords( 0 , 0 ) - - -test_ISEVEN = GraphSyracuseControl.Node( 'SyrComponent' , 'SyrComponent' , 'C_ISEVEN' ) -print test_ISEVEN.SetName( 'test_ISEVEN' ) -print test_ISEVEN.SetAuthor( '' ) -print test_ISEVEN.SetContainer( 'localhost/FactoryServer' ) -print test_ISEVEN.SetComment( '' ) -test_ISEVEN.Coords( 190 , 338 ) -test_ISONE = GraphSyracuseControl.Node( 'SyrComponent' , 'SyrComponent' , 'C_ISONE' ) -print test_ISONE.SetName( 'test_ISONE' ) -print test_ISONE.SetAuthor( '' ) -print test_ISONE.SetContainer( 'localhost/FactoryServer' ) -print test_ISONE.SetComment( '' ) -test_ISONE.Coords( 196 , 131 ) -m3p1 = GraphSyracuseControl.Node( 'SyrComponent' , 'SyrComponent' , 'C_M3P1' ) -print m3p1.SetName( 'm3p1' ) -print m3p1.SetAuthor( '' ) -print m3p1.SetContainer( 'localhost/FactoryServer' ) -print m3p1.SetComment( '' ) -m3p1.Coords( 621 , 14 ) -div2 = GraphSyracuseControl.Node( 'SyrComponent' , 'SyrComponent' , 'C_DIV2' ) -print div2.SetName( 'div2' ) -print div2.SetAuthor( '' ) -print div2.SetContainer( 'localhost/FactoryServer' ) -print div2.SetComment( '' ) -div2.Coords( 624 , 391 ) -incr = GraphSyracuseControl.Node( 'SyrComponent' , 'SyrComponent' , 'C_INCR' ) -print incr.SetName( 'incr' ) -print incr.SetAuthor( '' ) -print incr.SetContainer( 'localhost/FactoryServer' ) -print incr.SetComment( '' ) -incr.Coords( 622 , 199 ) -label_begin = GraphSyracuseControl.LNode( 'label_begin' ) -print label_begin.SetName( 'label_begin' ) -print label_begin.SetAuthor( '' ) -print label_begin.SetContainer( 'localhost/FactoryServerPy' ) -print label_begin.SetComment( '' ) -label_begin.Coords( 7 , 216 ) -label_test = GraphSyracuseControl.LService( 'SyrControlComponent' , 'SyrControlComponent' , 'L_OneEven' ) -print label_test.SetName( 'label_test' ) -print label_test.SetAuthor( '' ) -print label_test.SetContainer( 'localhost/FactoryServerPy' ) -print label_test.SetComment( '' ) -label_test.Coords( 399 , 176 ) -control_m3p1 = GraphSyracuseControl.CService( 'SyrControlComponent' , 'SyrControlComponent' , 'C_NotOneIsEven' ) -print control_m3p1.SetName( 'control_m3p1' ) -print control_m3p1.SetAuthor( '' ) -print control_m3p1.SetContainer( 'localhost/FactoryServerPy' ) -print control_m3p1.SetComment( '' ) -control_m3p1.Coords( 814 , 13 ) -control_div2 = GraphSyracuseControl.CNode( 'control_div2' ) -print control_div2.SetName( 'control_div2' ) -print control_div2.SetAuthor( '' ) -print control_div2.SetContainer( 'localhost/FactoryServerPy' ) -print control_div2.SetComment( '' ) -control_div2.Coords( 812 , 414 ) - - -label_begin.BusPorts( 'NB' , 'long' , 'NT' , 'long' ) -label_begin.BusPorts( 'KB' , 'long' , 'KT' , 'long' ) -label_test.BusPorts( 'NT' , 'long' , 'N' , 'long' ) -label_test.BusPorts( 'KT' , 'long' , 'K' , 'long' ) -control_m3p1.BusPorts( 'N' , 'long' , 'NT' , 'long' ) -control_m3p1.BusPorts( 'K' , 'long' , 'KT' , 'long' ) -control_div2.BusPorts( 'N' , 'long' , 'NB' , 'long' ) -control_div2.BusPorts( 'K' , 'long' , 'KB' , 'long' ) - - -GraphSyracuseControl.Link( label_begin.Port( 'NT' ) , label_test.Port( 'NT' ) ) -GraphSyracuseControl.Link( label_begin.Port( 'KT' ) , label_test.Port( 'KT' ) ) -GraphSyracuseControl.Link( label_begin.Port( 'NT' ) , test_ISEVEN.Port( 'anInteger' ) ) -GraphSyracuseControl.Link( label_begin.Port( 'NT' ) , test_ISONE.Port( 'anInteger' ) ) - -GraphSyracuseControl.Link( test_ISEVEN.Port( 'BoolEven' ) , label_test.Port( 'ValEven' ) ) -GraphSyracuseControl.Link( test_ISONE.Port( 'BoolOne' ) , label_test.Port( 'ValOne' ) ) -GraphSyracuseControl.Link( label_test.Port( 'N' ) , m3p1.Port( 'anOddInteger' ) ) -GraphSyracuseControl.Link( label_test.Port( 'N' ) , div2.Port( 'anEvenInteger' ) ) -GraphSyracuseControl.Link( label_test.Port( 'K' ) , incr.Port( 'aCount' ) ) -GraphSyracuseControl.Link( label_test.Port( 'Incr' ) , incr.Port( 'InGate' ) ) -GraphSyracuseControl.Link( label_test.Port( 'Even' ) , div2.Port( 'InGate' ) ) -GraphSyracuseControl.Link( label_test.Port( 'Odd' ) , m3p1.Port( 'InGate' ) ) - -GraphSyracuseControl.Link( m3p1.Port( 'anEvenInteger' ) , control_m3p1.Port( 'N' ) ) -GraphSyracuseControl.Link( div2.Port( 'anInteger' ) , control_div2.Port( 'N' ) ) -GraphSyracuseControl.Link( incr.Port( 'aNewCount' ) , control_m3p1.Port( 'K' ) ) -GraphSyracuseControl.Link( incr.Port( 'aNewCount' ) , control_div2.Port( 'K' ) ) - -GraphSyracuseControl.Link( control_m3p1.Port( 'OutGate' ) , label_test.Port( 'InGate' ) ) -GraphSyracuseControl.Link( control_div2.Port( 'OutGate' ) , label_begin.Port( 'InGate' ) ) - -GraphSyracuseControl.IsValid() - -GraphSyracuseControl.ThreadsMax() - -GraphSyracuseControl.LevelMax() - -GraphSyracuseControl.GraphsNumber() - -label_begin.Input( 'NB' , 31 ) -label_begin.Input( 'KB' , 0 ) - -GraphSyracuseControl.IsExecutable() - -GraphSyracuseControl.Export('../GraphSyrControl') - - -GraphSyracuseControl.Run() - -GraphSyracuseControl.DoneW() - -print GraphSyracuseControl.State() - -GraphSyracuseControl.PrintPorts() - -label_test.PrintPorts() diff --git a/Superv/Python/GraphTestMacroNodes.py b/Superv/Python/GraphTestMacroNodes.py deleted file mode 100644 index e7b8a0e..0000000 --- a/Superv/Python/GraphTestMacroNodes.py +++ /dev/null @@ -1,333 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# -from SuperV import * - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphEssai.xml' -GraphMacroNodes = Graph( anXmlFile ) - -GraphMacroNodes.PrintLinks() - -GraphMacroNodes.SetName('GraphMacroNodes') - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/SyrStruct.xml' -Macro_SyrStruct = GraphMacroNodes.MNode( anXmlFile ) - -Macro_SyrStruct.PrintPorts() - -GraphMacroNodes.PrintPorts() - -GraphMacroNodes.PrintLinks() - -GraphMacroNodes.Print() - -Macro_SyrStruct.Print() - -exec GraphMacroNodes.ListNodes('GraphMacroNodes') - -Macro_SyrStruct.Print() - -Macro_SyrStruct.IsMacro() -Macro_SyrStruct.IsFlowMacro() -Macro_SyrStruct.IsStreamMacro() - -SyrStruct = Macro_SyrStruct.FlowObjRef() - -SyrStruct.Print() - -SyrStruct.PrintPorts() - -SyrStruct.PrintLinks() - -SyrStruct.IsValid() -SyrStruct.IsExecutable() - -exec SyrStruct.ListNodes('SyrStruct') - -m3incr.Print() - -m3incr.PrintPorts() - -m3incr.PrintLinks() - -EndOffori.Print() - -EndOffori.PrintPorts() - -EndOffori.PrintLinks() - -EndOfwhileEven.Print() - -EndOfwhileEven.PrintPorts() - -EndOfwhileEven.PrintLinks() - -MSyrStruct = SyrStruct.FlowObjRef() - -MSyrStruct.Print() - -MSyrStruct.PrintPorts() - -GraphMacroNodes.IsValid() -GraphMacroNodes.IsExecutable() - -GraphMacroNodes.PrintPorts() - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/SyrStruct.xml' -Macro_SyrStruct_1 = GraphMacroNodes.MNode( anXmlFile ) - -Macro_SyrStruct_1.Print() - -Macro_SyrStruct_1.IsMacro() -Macro_SyrStruct_1.IsFlowMacro() -Macro_SyrStruct_1.IsStreamMacro() - -SyrStruct_1 = Macro_SyrStruct_1.FlowObjRef() - -SyrStruct_1.Print() - -GraphMacroNodes.IsValid() -GraphMacroNodes.IsExecutable() - -GraphMacroNodes.PrintPorts() - -MSyrStruct_1 = SyrStruct_1.FlowObjRef() - -MSyrStruct_1.Print() - -MSyrStruct_1.PrintPorts() - - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphMacroNodes.xml' -GraphMacroNodes.Export( anXmlFile ) - -SyrStruct.Name() -SyrStruct_1.Name() - -GraphMacroNodes.Run() - -GraphMacroNodes.DoneW() - -GraphMacroNodes.State() - -Macro_SyrStruct.State() - -Macro_SyrStruct_1.State() - - - - - -from SuperV import * - -anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphMacroNodes.xml' -GraphMacroNodes = Graph( anXmlFile ) - -GraphMacroNodes.Name() - -GraphMacroNodes.Export( '/tmp/GraphMacroNodes.xml' ) - -exec GraphMacroNodes.ListNodes('GraphMacroNodes') - -GraphMacroNodes.PrintPorts() - -GraphMacroNodes.PrintLinks() - -Macro_SyrStruct.IsMacro() -Macro_SyrStruct.IsFlowMacro() -Macro_SyrStruct.IsStreamMacro() - -Macro_SyrStruct.Print() - -SyrStruct = Macro_SyrStruct.FlowObjRef() - -SyrStruct.Print() - -SyrStruct.PrintPorts() - -SyrStruct.PrintLinks() - -exec SyrStruct.ListNodes('SyrStruct') - -Macro_SyrStruct.IsMacro() -Macro_SyrStruct.IsFlowMacro() -Macro_SyrStruct.IsStreamMacro() - -Macro_SyrStruct.IsValid() - -Macro_SyrStruct.IsExecutable() - -Macro_SyrStruct_1.Print() - -SyrStruct_1 = Macro_SyrStruct_1.FlowObjRef() - -SyrStruct_1.Print() - -SyrStruct_1.PrintPorts() - -SyrStruct_1.PrintLinks() - -exec SyrStruct_1.ListNodes('SyrStruct_1') - -MSyrStruct = SyrStruct.FlowObjRef() - -MSyrStruct.Print() - -MSyrStruct_1 = SyrStruct_1.FlowObjRef() - -MSyrStruct_1.Print() - -GraphMacroNodes.Run() - -GraphMacroNodes.DoneW() - -GraphMacroNodes.State() - -Macro_SyrStruct.State() - -Macro_SyrStruct_1.State() - - - - -from SuperV import * - -from GraphMacroNodes import * - -GraphMacroNodes.IsExecutable() - -GraphMacroNodes.Run() - -exec GraphMacroNodes.ListNodes('GraphMacroNodes') - -SyrStruct = Macro_SyrStruct.FlowObjRef() - -SyrStruct.IsExecutable() - -GraphMacroNodes.DoneW() - -GraphMacroNodes.State() - -Macro_SyrStruct.State() - -Macro_SyrStruct_1.State() - -SyrStruct = Macro_SyrStruct.FlowObjRef() - -exec SyrStruct.ListNodes('SyrStruct') - -EndOfforN.State() - -SyrStruct.DoneW() - -SyrStruct.State() - -SyrStruct_1 = Macro_SyrStruct_1.FlowObjRef() - -exec SyrStruct_1.ListNodes('SyrStruct') - -EndOfforN.State() - -SyrStruct_1.DoneW() - -SyrStruct_1.State() - -SyrStruct.PrintPorts() - -Macro_SyrStruct.PrintPorts() - -GraphMacroNodes.PrintPorts() - -GraphMacroNodes.Run() - -GraphMacroNodes.DoneW() - -GraphMacroNodes.State() - -Macro_SyrStruct.State() - -Macro_SyrStruct_1.State() - - - - -SyrStruct.Export('/tmp/SubSyrStruct.xml') - - -SubSyrStruct = Graph('/tmp/SubSyrStruct.xml') - -SubSyrStruct.IsValid() - -SubSyrStruct.IsExecutable() - -SubSyrStruct.Run() - -SubSyrStruct.DoneW() - -SubSyrStruct.State() - -SubSyrStruct.PrintPorts() - - - - - -from SuperV import * - -from GraphMacroNodes import * - -exec GraphMacroNodes.ListNodes('GraphMacroNodes') - -SyrStruct = Macro_SyrStruct.FlowObjRef() - -exec SyrStruct.ListNodes('SyrStruct') - -Unused = SyrComponent.InPort('Unused','long') - -SyrComponent.PrintPorts() - -SyrComponent.Print() - -SyrStruct.IsValid() - -SyrStruct.PrintPorts() - -Macro_SyrStruct.PrintPorts() - -GraphMacroNodes.PrintPorts() - -Unused.Destroy() - -GraphMacroNodes.PrintPorts() - -Macro_SyrStruct.PrintPorts() - -SyrStruct.PrintPorts() - -GraphMacroNodes.Run() - -GraphMacroNodes.DoneW() - -GraphMacroNodes.State() - -Macro_SyrStruct.State() - -Macro_SyrStruct_1.State() diff --git a/Superv/Python/GraphTwoLoops.py b/Superv/Python/GraphTwoLoops.py deleted file mode 100644 index 7eada71..0000000 --- a/Superv/Python/GraphTwoLoops.py +++ /dev/null @@ -1,153 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphTwoLoops -# -from SuperV import * - -# Graph creation of GraphTwoLoops -def DefGraphTwoLoops() : - GraphTwoLoops = Graph( 'GraphTwoLoops' ) - GraphTwoLoops.SetName( 'GraphTwoLoops' ) - GraphTwoLoops.SetAuthor( 'JR' ) - GraphTwoLoops.SetComment( '' ) - GraphTwoLoops.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - # Creation of Loop Nodes - PyLoop1 = [] - PyLoop1.append( 'def Loop1(Index,Max) : ' ) - PyLoop1.append( ' return Index,Max ' ) - PyLoop1.append( '' ) - PyMoreLoop1 = [] - PyMoreLoop1.append( 'import time ' ) - PyMoreLoop1.append( 'def More(Index,Max) : ' ) - PyMoreLoop1.append( ' time.sleep(2) ' ) - PyMoreLoop1.append( ' DoLoop = 0 ' ) - PyMoreLoop1.append( ' if Index < Max : ' ) - PyMoreLoop1.append( ' DoLoop = 1 ' ) - PyMoreLoop1.append( ' return DoLoop,Index,Max ' ) - PyMoreLoop1.append( '' ) - PyNextLoop1 = [] - PyNextLoop1.append( 'def Next(Index,Max) : ' ) - PyNextLoop1.append( ' Index = Index + 1 ' ) - PyNextLoop1.append( ' return Index,Max ' ) - PyNextLoop1.append( '' ) - Loop1,EndLoop1 = GraphTwoLoops.LNode( 'Loop1' , PyLoop1 , 'More' , PyMoreLoop1 , 'Next' , PyNextLoop1 ) - EndLoop1.SetName( 'EndLoop1' ) - EndLoop1.SetAuthor( '' ) - EndLoop1.SetComment( 'Compute Node' ) - EndLoop1.Coords( 634 , 177 ) - PyEndLoop1 = [] - EndLoop1.SetPyFunction( 'EndLoop1' , PyEndLoop1 ) - ILoop1DoLoop = Loop1.GetInPort( 'DoLoop' ) - ILoop1Index = Loop1.InPort( 'Index' , 'long' ) - ILoop1Max = Loop1.InPort( 'Max' , 'long' ) - ILoop1Gate = Loop1.GetInPort( 'Gate' ) - OLoop1DoLoop = Loop1.GetOutPort( 'DoLoop' ) - OLoop1Index = Loop1.GetOutPort( 'Index' ) - OLoop1Max = Loop1.GetOutPort( 'Max' ) - IEndLoop1DoLoop = EndLoop1.GetInPort( 'DoLoop' ) - IEndLoop1Index = EndLoop1.GetInPort( 'Index' ) - IEndLoop1Max = EndLoop1.GetInPort( 'Max' ) - IEndLoop1Gate = EndLoop1.GetInPort( 'Gate' ) - OEndLoop1DoLoop = EndLoop1.GetOutPort( 'DoLoop' ) - OEndLoop1Index = EndLoop1.GetOutPort( 'Index' ) - OEndLoop1Max = EndLoop1.GetOutPort( 'Max' ) - OEndLoop1Gate = EndLoop1.GetOutPort( 'Gate' ) - Loop1.SetName( 'Loop1' ) - Loop1.SetAuthor( '' ) - Loop1.SetComment( 'Compute Node' ) - Loop1.Coords( 7 , 175 ) - - PyLoop = [] - PyMoreLoop = [] - PyMoreLoop.append( '' ) - PyNextLoop = [] - PyNextLoop.append( 'def Next(Index,Max) : ' ) - PyNextLoop.append( ' Index = Index + 1 ' ) - PyNextLoop.append( ' return Index,Max ' ) - PyNextLoop.append( '' ) - Loop,EndLoop = GraphTwoLoops.LNode( '' , PyLoop , '' , PyMoreLoop , 'Next' , PyNextLoop ) - EndLoop.SetName( 'EndLoop' ) - EndLoop.SetAuthor( '' ) - EndLoop.SetComment( 'Compute Node' ) - EndLoop.Coords( 426 , 180 ) - PyEndLoop = [] - PyEndLoop.append( 'import time ' ) - PyEndLoop.append( 'def EndLoop(DoLoop,Index,Max) : ' ) - PyEndLoop.append( ' time.sleep(1) ' ) - PyEndLoop.append( ' DoLoop = 0 ' ) - PyEndLoop.append( ' if Index < Max : ' ) - PyEndLoop.append( ' DoLoop = 1 ' ) - PyEndLoop.append( ' return DoLoop,Index,Max ' ) - PyEndLoop.append( '' ) - EndLoop.SetPyFunction( 'EndLoop' , PyEndLoop ) - ILoopDoLoop = Loop.GetInPort( 'DoLoop' ) - ILoopIndex = Loop.InPort( 'Index' , 'long' ) - ILoopMax = Loop.InPort( 'Max' , 'long' ) - ILoopGate = Loop.GetInPort( 'Gate' ) - OLoopDoLoop = Loop.GetOutPort( 'DoLoop' ) - OLoopIndex = Loop.GetOutPort( 'Index' ) - OLoopMax = Loop.GetOutPort( 'Max' ) - IEndLoopDoLoop = EndLoop.GetInPort( 'DoLoop' ) - IEndLoopIndex = EndLoop.GetInPort( 'Index' ) - IEndLoopMax = EndLoop.GetInPort( 'Max' ) - IEndLoopGate = EndLoop.GetInPort( 'Gate' ) - OEndLoopDoLoop = EndLoop.GetOutPort( 'DoLoop' ) - OEndLoopIndex = EndLoop.GetOutPort( 'Index' ) - OEndLoopMax = EndLoop.GetOutPort( 'Max' ) - OEndLoopGate = EndLoop.GetOutPort( 'Gate' ) - Loop.SetName( 'Loop' ) - Loop.SetAuthor( '' ) - Loop.SetComment( 'Compute Node' ) - Loop.Coords( 208 , 179 ) - - # Creation of Links - LLoop1IndexEndLoop1Index = GraphTwoLoops.Link( OLoop1Index , IEndLoop1Index ) - - LLoop1MaxEndLoop1Max = GraphTwoLoops.Link( OLoop1Max , IEndLoop1Max ) - - LLoop1GateLoopGate = GraphTwoLoops.Link( OLoop1Gate , ILoopGate ) - - LLoopIndexEndLoopIndex = GraphTwoLoops.Link( OLoopIndex , IEndLoopIndex ) - - LLoopMaxEndLoopMax = GraphTwoLoops.Link( OLoopMax , IEndLoopMax ) - - LEndLoopGateEndLoop1Gate = GraphTwoLoops.Link( OEndLoopGate , IEndLoop1Gate ) - - # Input datas - ILoop1Index.Input( 5 ) - ILoop1Max.Input( 15 ) - ILoopIndex.Input( 2 ) - ILoopMax.Input( 20 ) - - # Output Ports of the graph - #OEndLoop1Index = EndLoop1.GetOutPort( 'Index' ) - #OEndLoop1Max = EndLoop1.GetOutPort( 'Max' ) - #OEndLoopIndex = EndLoop.GetOutPort( 'Index' ) - #OEndLoopMax = EndLoop.GetOutPort( 'Max' ) - return GraphTwoLoops - - -GraphTwoLoops = DefGraphTwoLoops() diff --git a/Superv/Python/GraphTwoLoops1.py b/Superv/Python/GraphTwoLoops1.py deleted file mode 100644 index 4231486..0000000 --- a/Superv/Python/GraphTwoLoops1.py +++ /dev/null @@ -1,154 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphTwoLoops1 -# -from SuperV import * - -# Graph creation of GraphTwoLoops1 -def DefGraphTwoLoops1() : - GraphTwoLoops1 = Graph( 'GraphTwoLoops1' ) - GraphTwoLoops1.SetName( 'GraphTwoLoops1' ) - GraphTwoLoops1.SetAuthor( 'JR' ) - GraphTwoLoops1.SetComment( '' ) - GraphTwoLoops1.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - # Creation of Loop Nodes - PyLoop1 = [] - PyLoop1.append( 'def Loop1(Index,Max) : ' ) - PyLoop1.append( ' return Index,Max ' ) - PyLoop1.append( '' ) - PyMoreLoop1 = [] - PyMoreLoop1.append( 'import time ' ) - PyMoreLoop1.append( 'def More(Index,Max) : ' ) - PyMoreLoop1.append( ' time.sleep(2) ' ) - PyMoreLoop1.append( ' DoLoop = 0 ' ) - PyMoreLoop1.append( ' if Index < Max : ' ) - PyMoreLoop1.append( ' DoLoop = 1 ' ) - PyMoreLoop1.append( ' return DoLoop,Index,Max ' ) - PyMoreLoop1.append( '' ) - PyNextLoop1 = [] - PyNextLoop1.append( 'def Next(Index,Max) : ' ) - PyNextLoop1.append( ' Index = Index + 1 ' ) - PyNextLoop1.append( ' return Index,Max ' ) - PyNextLoop1.append( '' ) - Loop1,EndLoop1 = GraphTwoLoops1.LNode( 'Loop1' , PyLoop1 , 'More' , PyMoreLoop1 , 'Next' , PyNextLoop1 ) - EndLoop1.SetName( 'EndLoop1' ) - EndLoop1.SetAuthor( '' ) - EndLoop1.SetComment( 'Compute Node' ) - EndLoop1.Coords( 634 , 177 ) - PyEndLoop1 = [] - EndLoop1.SetPyFunction( 'EndLoop1' , PyEndLoop1 ) - ILoop1DoLoop = Loop1.GetInPort( 'DoLoop' ) - ILoop1Index = Loop1.InPort( 'Index' , 'long' ) - ILoop1Max = Loop1.InPort( 'Max' , 'long' ) - ILoop1Gate = Loop1.GetInPort( 'Gate' ) - OLoop1DoLoop = Loop1.GetOutPort( 'DoLoop' ) - OLoop1Index = Loop1.GetOutPort( 'Index' ) - OLoop1Max = Loop1.GetOutPort( 'Max' ) - IEndLoop1DoLoop = EndLoop1.GetInPort( 'DoLoop' ) - IEndLoop1Index = EndLoop1.GetInPort( 'Index' ) - IEndLoop1Max = EndLoop1.GetInPort( 'Max' ) - IEndLoop1Gate = EndLoop1.GetInPort( 'Gate' ) - OEndLoop1DoLoop = EndLoop1.GetOutPort( 'DoLoop' ) - OEndLoop1Index = EndLoop1.GetOutPort( 'Index' ) - OEndLoop1Max = EndLoop1.GetOutPort( 'Max' ) - OEndLoop1Gate = EndLoop1.GetOutPort( 'Gate' ) - Loop1.SetName( 'Loop1' ) - Loop1.SetAuthor( '' ) - Loop1.SetComment( 'Compute Node' ) - Loop1.Coords( 7 , 175 ) - - PyLoop = [] - PyMoreLoop = [] - PyMoreLoop.append( '' ) - PyNextLoop = [] - PyNextLoop.append( 'def Next(Index,Max) : ' ) - PyNextLoop.append( ' Index = Index + 1 ' ) - PyNextLoop.append( ' return Index,Max ' ) - PyNextLoop.append( '' ) - Loop,EndLoop = GraphTwoLoops1.LNode( '' , PyLoop , '' , PyMoreLoop , 'Next' , PyNextLoop ) - EndLoop.SetName( 'EndLoop' ) - EndLoop.SetAuthor( '' ) - EndLoop.SetComment( 'Compute Node' ) - EndLoop.Coords( 426 , 180 ) - PyEndLoop = [] - PyEndLoop.append( 'import time ' ) - PyEndLoop.append( 'def EndLoop(DoLoop,Index,Max) : ' ) - PyEndLoop.append( ' time.sleep(1) ' ) - PyEndLoop.append( ' DoLoop = 0 ' ) - PyEndLoop.append( ' if Index < Max : ' ) - PyEndLoop.append( ' DoLoop = 1 ' ) - PyEndLoop.append( ' return DoLoop,Index,Max ' ) - PyEndLoop.append( '' ) - EndLoop.SetPyFunction( 'EndLoop' , PyEndLoop ) - ILoopDoLoop = Loop.GetInPort( 'DoLoop' ) - ILoopIndex = Loop.InPort( 'Index' , 'long' ) - ILoopMax = Loop.InPort( 'Max' , 'long' ) - ILoopGate = Loop.GetInPort( 'Gate' ) - OLoopDoLoop = Loop.GetOutPort( 'DoLoop' ) - OLoopIndex = Loop.GetOutPort( 'Index' ) - OLoopMax = Loop.GetOutPort( 'Max' ) - IEndLoopDoLoop = EndLoop.GetInPort( 'DoLoop' ) - IEndLoopIndex = EndLoop.GetInPort( 'Index' ) - IEndLoopMax = EndLoop.GetInPort( 'Max' ) - IEndLoopGate = EndLoop.GetInPort( 'Gate' ) - OEndLoopDoLoop = EndLoop.GetOutPort( 'DoLoop' ) - OEndLoopIndex = EndLoop.GetOutPort( 'Index' ) - OEndLoopMax = EndLoop.GetOutPort( 'Max' ) - OEndLoopGate = EndLoop.GetOutPort( 'Gate' ) - Loop.SetName( 'Loop' ) - Loop.SetAuthor( '' ) - Loop.SetComment( 'Compute Node' ) - Loop.Coords( 208 , 179 ) - - # Creation of Links - LLoop1IndexEndLoop1Index = GraphTwoLoops1.Link( OLoop1Index , IEndLoop1Index ) - - LLoop1IndexLoopIndex = GraphTwoLoops1.Link( OLoop1Index , ILoopIndex ) - - LLoop1MaxEndLoop1Max = GraphTwoLoops1.Link( OLoop1Max , IEndLoop1Max ) - - LLoop1GateLoopGate = GraphTwoLoops1.Link( OLoop1Gate , ILoopGate ) - - LLoopIndexEndLoopIndex = GraphTwoLoops1.Link( OLoopIndex , IEndLoopIndex ) - - LLoopMaxEndLoopMax = GraphTwoLoops1.Link( OLoopMax , IEndLoopMax ) - - LEndLoopGateEndLoop1Gate = GraphTwoLoops1.Link( OEndLoopGate , IEndLoop1Gate ) - - # Input datas - ILoop1Index.Input( 5 ) - ILoop1Max.Input( 15 ) - ILoopMax.Input( 20 ) - - # Output Ports of the graph - #OEndLoop1Index = EndLoop1.GetOutPort( 'Index' ) - #OEndLoop1Max = EndLoop1.GetOutPort( 'Max' ) - #OEndLoopIndex = EndLoop.GetOutPort( 'Index' ) - #OEndLoopMax = EndLoop.GetOutPort( 'Max' ) - return GraphTwoLoops1 - - -GraphTwoLoops1 = DefGraphTwoLoops1() diff --git a/Superv/Python/GraphTypesCheck.py b/Superv/Python/GraphTypesCheck.py deleted file mode 100755 index 5b0a8ed..0000000 --- a/Superv/Python/GraphTypesCheck.py +++ /dev/null @@ -1,146 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphTypesCheck -# -from SuperV import * -# Graph creation -GraphTypesCheck = Graph( 'GraphTypesCheck' ) -GraphTypesCheck.SetName( 'GraphTypesCheck' ) -GraphTypesCheck.SetAuthor( 'JR' ) -GraphTypesCheck.SetComment( '' ) -GraphTypesCheck.Coords( 0 , 0 ) - -# Creation of Factory Nodes - -BoolCheck = GraphTypesCheck.FNode( 'TypesCheck' , 'TypesCheck' , 'BoolCheck' ) -BoolCheck.SetName( 'BoolCheck' ) -BoolCheck.SetAuthor( '' ) -BoolCheck.SetContainer( 'localhost/FactoryServer' ) -BoolCheck.SetComment( 'BoolCheck from TypesCheck' ) -BoolCheck.Coords( 202 , 108 ) - -CharCheck = GraphTypesCheck.FNode( 'TypesCheck' , 'TypesCheck' , 'CharCheck' ) -CharCheck.SetName( 'CharCheck' ) -CharCheck.SetAuthor( '' ) -CharCheck.SetContainer( 'localhost/FactoryServer' ) -CharCheck.SetComment( 'CharCheck from TypesCheck' ) -CharCheck.Coords( 13 , 166 ) - -ShortCheck = GraphTypesCheck.FNode( 'TypesCheck' , 'TypesCheck' , 'ShortCheck' ) -ShortCheck.SetName( 'ShortCheck' ) -ShortCheck.SetAuthor( '' ) -ShortCheck.SetContainer( 'localhost/FactoryServer' ) -ShortCheck.SetComment( 'ShortCheck from TypesCheck' ) -ShortCheck.Coords( 205 , 258 ) - -FloatCheck = GraphTypesCheck.FNode( 'TypesCheck' , 'TypesCheck' , 'FloatCheck' ) -FloatCheck.SetName( 'FloatCheck' ) -FloatCheck.SetAuthor( '' ) -FloatCheck.SetContainer( 'localhost/FactoryServer' ) -FloatCheck.SetComment( 'FloatCheck from TypesCheck' ) -FloatCheck.Coords( 204 , 409 ) - -Addition = GraphTypesCheck.FNode( 'AddComponent' , 'AddComponent' , 'Addition' ) -Addition.SetName( 'Addition' ) -Addition.SetAuthor( '' ) -Addition.SetContainer( 'localhost/FactoryServer' ) -Addition.SetComment( 'Addition from AddComponent' ) -Addition.Coords( 16 , 459 ) - -LongCheck = GraphTypesCheck.FNode( 'TypesCheck' , 'TypesCheck' , 'LongCheck' ) -LongCheck.SetName( 'LongCheck' ) -LongCheck.SetAuthor( '' ) -LongCheck.SetContainer( 'localhost/FactoryServer' ) -LongCheck.SetComment( 'LongCheck from TypesCheck' ) -LongCheck.Coords( 17 , 318 ) - -MiscTypes = GraphTypesCheck.FNode( 'TypesCheck' , 'TypesCheck' , 'MiscTypes' ) -MiscTypes.SetName( 'MiscTypes' ) -MiscTypes.SetAuthor( '' ) -MiscTypes.SetContainer( 'localhost/FactoryServer' ) -MiscTypes.SetComment( 'MiscTypes from TypesCheck' ) -MiscTypes.Coords( 431 , 170 ) - -StringCheck = GraphTypesCheck.FNode( 'TypesCheck' , 'TypesCheck' , 'StringCheck' ) -StringCheck.SetName( 'StringCheck' ) -StringCheck.SetAuthor( '' ) -StringCheck.SetContainer( 'localhost/FactoryServer' ) -StringCheck.SetComment( 'StringCheck from TypesCheck' ) -StringCheck.Coords( 13 , 10 ) - -# Creation of Links -BoolCheckOutBool = BoolCheck.Port( 'OutBool' ) -MiscTypesInBool = GraphTypesCheck.Link( BoolCheckOutBool , MiscTypes.Port( 'InBool' ) ) -MiscTypesInBool.AddCoord( 1 , 402 , 280 ) -MiscTypesInBool.AddCoord( 2 , 401 , 188 ) - -CharCheckOutChar = CharCheck.Port( 'OutChar' ) -MiscTypesInChar = GraphTypesCheck.Link( CharCheckOutChar , MiscTypes.Port( 'InChar' ) ) -MiscTypesInChar.AddCoord( 1 , 382 , 307 ) -MiscTypesInChar.AddCoord( 2 , 382 , 247 ) - -ShortCheckOutShort = ShortCheck.Port( 'OutShort' ) -MiscTypesInShort = GraphTypesCheck.Link( ShortCheckOutShort , MiscTypes.Port( 'InShort' ) ) - -FloatCheckOutFloat = FloatCheck.Port( 'OutFloat' ) -MiscTypesInFloat = GraphTypesCheck.Link( FloatCheckOutFloat , MiscTypes.Port( 'InFloat' ) ) -MiscTypesInFloat.AddCoord( 1 , 400 , 395 ) -MiscTypesInFloat.AddCoord( 2 , 399 , 490 ) - -AdditionAdder = Addition.Port( 'Adder' ) -MiscTypesInObjRef = GraphTypesCheck.Link( AdditionAdder , MiscTypes.Port( 'InObjRef' ) ) -MiscTypesInObjRef.AddCoord( 1 , 415 , 453 ) -MiscTypesInObjRef.AddCoord( 2 , 415 , 540 ) - -LongCheckOutLong = LongCheck.Port( 'OutLong' ) -MiscTypesInLong = GraphTypesCheck.Link( LongCheckOutLong , MiscTypes.Port( 'InLong' ) ) -MiscTypesInLong.AddCoord( 1 , 383 , 367 ) -MiscTypesInLong.AddCoord( 2 , 383 , 399 ) - -StringCheckOutString = StringCheck.Port( 'OutString' ) -MiscTypesInString = GraphTypesCheck.Link( StringCheckOutString , MiscTypes.Port( 'InString' ) ) -MiscTypesInString.AddCoord( 1 , 412 , 251 ) -MiscTypesInString.AddCoord( 2 , 411 , 91 ) - -# Creation of Input datas -BoolCheckInBool = BoolCheck.Input( 'InBool' , 1) -CharCheckInChar = CharCheck.Input( 'InChar' , 255) -ShortCheckInShort = ShortCheck.Input( 'InShort' , 16383) -FloatCheckInFloat = FloatCheck.Input( 'InFloat' , 3.14159) -LongCheckInLong = LongCheck.Input( 'InLong' , 2147483647) -MiscTypesInDouble = MiscTypes.Input( 'InDouble' , 3.14159) -StringCheckInString = StringCheck.Input( 'InString' , 'aString') - -# Creation of Output variables -MiscTypesOutString = MiscTypes.Port( 'OutString' ) -MiscTypesOutBool = MiscTypes.Port( 'OutBool' ) -MiscTypesOutChar = MiscTypes.Port( 'OutChar' ) -MiscTypesOutShort = MiscTypes.Port( 'OutShort' ) -MiscTypesOutLong = MiscTypes.Port( 'OutLong' ) -MiscTypesOutFloat = MiscTypes.Port( 'OutFloat' ) -MiscTypesOutDouble = MiscTypes.Port( 'OutDouble' ) -MiscTypesOutObjRef = MiscTypes.Port( 'OutObjRef' ) - -GraphTypesCheck.Run() -GraphTypesCheck.DoneW() -GraphTypesCheck.PrintPorts() diff --git a/Superv/Python/GraphUnValid.py b/Superv/Python/GraphUnValid.py deleted file mode 100755 index 3d945d7..0000000 --- a/Superv/Python/GraphUnValid.py +++ /dev/null @@ -1,123 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphUnValid -# -from SuperV import * - -# Graph creation of GraphUnValid -def DefGraphUnValid() : - GraphUnValid = Graph( 'GraphUnValid' ) - GraphUnValid.SetName( 'GraphUnValid' ) - GraphUnValid.SetAuthor( 'JR' ) - GraphUnValid.SetComment( '' ) - GraphUnValid.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - Add = GraphUnValid.FNode( 'AddComponent' , 'AddComponent' , 'Add' ) - Add.SetName( 'Add' ) - Add.SetAuthor( '' ) - Add.SetContainer( 'FactoryServer' ) - Add.SetComment( 'Add from AddComponent' ) - Add.Coords( 8 , 62 ) - IAddx = Add.GetInPort( 'x' ) - IAddy = Add.GetInPort( 'y' ) - IAddGate = Add.GetInPort( 'Gate' ) - OAddFuncValue = Add.GetOutPort( 'FuncValue' ) - OAddz = Add.GetOutPort( 'z' ) - OAddGate = Add.GetOutPort( 'Gate' ) - - Sub = GraphUnValid.FNode( 'SubComponent' , 'SubComponent' , 'Sub' ) - Sub.SetName( 'Sub' ) - Sub.SetAuthor( '' ) - Sub.SetContainer( 'FactoryServer' ) - Sub.SetComment( 'Sub from SubComponent' ) - Sub.Coords( 203 , 4 ) - ISubx = Sub.GetInPort( 'x' ) - ISuby = Sub.GetInPort( 'y' ) - ISubGate = Sub.GetInPort( 'Gate' ) - OSubz = Sub.GetOutPort( 'z' ) - OSubGate = Sub.GetOutPort( 'Gate' ) - - Mul = GraphUnValid.FNode( 'MulComponent' , 'MulComponent' , 'Mul' ) - Mul.SetName( 'Mul' ) - Mul.SetAuthor( '' ) - Mul.SetContainer( 'FactoryServer' ) - Mul.SetComment( 'Mul from MulComponent' ) - Mul.Coords( 390 , 62 ) - IMulx = Mul.GetInPort( 'x' ) - IMuly = Mul.GetInPort( 'y' ) - IMulGate = Mul.GetInPort( 'Gate' ) - OMulz = Mul.GetOutPort( 'z' ) - OMulGate = Mul.GetOutPort( 'Gate' ) - - Div = GraphUnValid.FNode( 'DivComponent' , 'DivComponent' , 'Div' ) - Div.SetName( 'Div' ) - Div.SetAuthor( '' ) - Div.SetContainer( 'FactoryServer' ) - Div.SetComment( 'Div from DivComponent' ) - Div.Coords( 575 , 11 ) - IDivx = Div.GetInPort( 'x' ) - IDivy = Div.GetInPort( 'y' ) - IDivGate = Div.GetInPort( 'Gate' ) - ODivz = Div.GetOutPort( 'z' ) - ODivGate = Div.GetOutPort( 'Gate' ) - - # Creation of Links - LAddzMuly = GraphUnValid.Link( OAddz , IMuly ) - - LAddzSuby = GraphUnValid.Link( OAddz , ISuby ) - LAddzSuby.AddCoord( 1 , 182 , 113 ) - LAddzSuby.AddCoord( 2 , 183 , 170 ) - - LSubzDivx = GraphUnValid.Link( OSubz , IDivx ) - LSubzDivx.AddCoord( 1 , 566 , 91 ) - LSubzDivx.AddCoord( 2 , 566 , 49 ) - LSubzDivx.AddCoord( 3 , 380 , 49 ) - LSubzDivx.AddCoord( 4 , 379 , 84 ) - - LSubzMulx = GraphUnValid.Link( OSubz , IMulx ) - LSubzMulx.AddCoord( 1 , 379 , 141 ) - LSubzMulx.AddCoord( 2 , 378 , 85 ) - - LMulzDivy = GraphUnValid.Link( OMulz , IDivy ) - LMulzDivy.AddCoord( 1 , 565 , 120 ) - LMulzDivy.AddCoord( 2 , 565 , 141 ) - - LMulzSubx = GraphUnValid.Link( OMulz , ISubx ) - LMulzSubx.AddCoord( 1 , 194 , 84 ) - LMulzSubx.AddCoord( 2 , 195 , 252 ) - LMulzSubx.AddCoord( 3 , 566 , 252 ) - LMulzSubx.AddCoord( 4 , 565 , 141 ) - - # Input datas - IAddx.Input( 3 ) - IAddy.Input( 4.5 ) - - # Output Ports of the graph - #OAddFuncValue = Add.GetOutPort( 'FuncValue' ) - #ODivz = Div.GetOutPort( 'z' ) - return GraphUnValid - - -GraphUnValid = DefGraphUnValid() diff --git a/Superv/Python/GraphUndefinedSymbol.py b/Superv/Python/GraphUndefinedSymbol.py deleted file mode 100644 index 46b91f8..0000000 --- a/Superv/Python/GraphUndefinedSymbol.py +++ /dev/null @@ -1,52 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphUndefinedSymbol -# -from SuperV import * - -# Graph creation of GraphUndefinedSymbol -def DefGraphUndefinedSymbol() : - GraphUndefinedSymbol = Graph( 'GraphUndefinedSymbol' ) - GraphUndefinedSymbol.SetName( 'GraphUndefinedSymbol' ) - GraphUndefinedSymbol.SetAuthor( 'JR' ) - GraphUndefinedSymbol.SetComment( '' ) - GraphUndefinedSymbol.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - UndefinedSymbol = GraphUndefinedSymbol.FNode( 'UndefinedSymbolComponent' , 'UndefinedSymbolComponent' , 'UndefinedSymbol' ) - UndefinedSymbol.SetName( 'UndefinedSymbol' ) - UndefinedSymbol.SetAuthor( '' ) - UndefinedSymbol.SetContainer( 'localhost/FactoryServer' ) - UndefinedSymbol.SetComment( 'UndefinedSymbol from UndefinedSymbolComponent' ) - UndefinedSymbol.Coords( 146 , 166 ) - IUndefinedSymbolGate = UndefinedSymbol.GetInPort( 'Gate' ) - OUndefinedSymbolreturn = UndefinedSymbol.GetOutPort( 'return' ) - OUndefinedSymbolGate = UndefinedSymbol.GetOutPort( 'Gate' ) - - # Output Ports of the graph - #OUndefinedSymbolreturn = UndefinedSymbol.GetOutPort( 'return' ) - return GraphUndefinedSymbol - - -GraphUndefinedSymbol = DefGraphUndefinedSymbol() diff --git a/Superv/Python/GraphVoidMoreLoop.py b/Superv/Python/GraphVoidMoreLoop.py deleted file mode 100644 index f6669d0..0000000 --- a/Superv/Python/GraphVoidMoreLoop.py +++ /dev/null @@ -1,118 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphNonVoidEndLoop_1 -# -from SuperV import * - -# Graph creation of GraphNonVoidEndLoop_1 -def DefGraphNonVoidEndLoop_1() : - GraphNonVoidEndLoop_1 = Graph( 'GraphNonVoidEndLoop_1' ) - GraphNonVoidEndLoop_1.SetName( 'GraphNonVoidEndLoop_1' ) - GraphNonVoidEndLoop_1.SetAuthor( '' ) - GraphNonVoidEndLoop_1.SetComment( '' ) - GraphNonVoidEndLoop_1.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - # Creation of Loop Nodes - PyInit = [] - PyInit.append( 'def Init(Index,Min,Max,Incr) : ' ) - PyInit.append( ' if Min <= Max : ' ) - PyInit.append( ' Index = Min ' ) - PyInit.append( ' else : ' ) - PyInit.append( ' Index = Max ' ) - PyInit.append( ' print 'Init',Index,Min,Max,Incr ' ) - PyInit.append( ' return Index,Min,Max,Incr ' ) - PyMoreInit = [] - PyMoreInit.append( ' ' ) - PyNextInit = [] - PyNextInit.append( 'import time ' ) - PyNextInit.append( 'def Next(Index,Min,Max,Incr) : ' ) - PyNextInit.append( ' time.sleep(2) ' ) - PyNextInit.append( ' Index = Index + Incr ' ) - PyNextInit.append( ' print 'Next', Index,Min,Max,Incr ' ) - PyNextInit.append( ' return Index,Min,Max,Incr ' ) - Init,EndInit = GraphNonVoidEndLoop_1.LNode( 'Init' , PyInit , '' , PyMoreInit , 'Next' , PyNextInit ) - EndInit.SetName( 'EndInit' ) - EndInit.SetAuthor( '' ) - EndInit.SetComment( 'Compute Node' ) - EndInit.Coords( 411 , 260 ) - PyEndInit = [] - PyEndInit.append( 'def EndLoop(DoLoop,Index,Min,Max,Incr) : ' ) - PyEndInit.append( ' print 'EndLoop',DoLoop,Index,Min,Max,Incr ' ) - PyEndInit.append( ' if Index == Max : ' ) - PyEndInit.append( ' DoLoop = 0 ' ) - PyEndInit.append( ' return DoLoop,Index,Min,Max,Incr ' ) - PyEndInit.append( '' ) - EndInit.SetPyFunction( 'EndLoop' , PyEndInit ) - IInitInitLoop = Init.GetInPort( 'InitLoop' ) - IInitIndex = Init.InPort( 'Index' , 'long' ) - IInitMin = Init.InPort( 'Min' , 'long' ) - IInitMax = Init.InPort( 'Max' , 'long' ) - IInitIncr = Init.InPort( 'Incr' , 'long' ) - IInitGate = Init.GetInPort( 'Gate' ) - OInitDoLoop = Init.GetOutPort( 'DoLoop' ) - OInitIndex = Init.GetOutPort( 'Index' ) - OInitMin = Init.GetOutPort( 'Min' ) - OInitMax = Init.GetOutPort( 'Max' ) - OInitIncr = Init.GetOutPort( 'Incr' ) - IEndInitDoLoop = EndInit.GetInPort( 'DoLoop' ) - IEndInitIndex = EndInit.GetInPort( 'Index' ) - IEndInitMin = EndInit.GetInPort( 'Min' ) - IEndInitMax = EndInit.GetInPort( 'Max' ) - IEndInitIncr = EndInit.GetInPort( 'Incr' ) - IEndInitGate = EndInit.GetInPort( 'Gate' ) - OEndInitDoLoop = EndInit.GetOutPort( 'DoLoop' ) - OEndInitIndex = EndInit.GetOutPort( 'Index' ) - OEndInitMin = EndInit.GetOutPort( 'Min' ) - OEndInitMax = EndInit.GetOutPort( 'Max' ) - OEndInitIncr = EndInit.GetOutPort( 'Incr' ) - Init.SetName( 'Init' ) - Init.SetAuthor( '' ) - Init.SetComment( 'Compute Node' ) - Init.Coords( 17 , 257 ) - - # Creation of Links - LInitIndexEndInitIndex = GraphNonVoidEndLoop_1.Link( OInitIndex , IEndInitIndex ) - - LInitMinEndInitMin = GraphNonVoidEndLoop_1.Link( OInitMin , IEndInitMin ) - - LInitMaxEndInitMax = GraphNonVoidEndLoop_1.Link( OInitMax , IEndInitMax ) - - LInitIncrEndInitIncr = GraphNonVoidEndLoop_1.Link( OInitIncr , IEndInitIncr ) - - # Input datas - IInitIndex.Input( 0 ) - IInitMin.Input( 5 ) - IInitMax.Input( 10 ) - IInitIncr.Input( 1 ) - - # Output Ports of the graph - #OEndInitIndex = EndInit.GetOutPort( 'Index' ) - #OEndInitMin = EndInit.GetOutPort( 'Min' ) - #OEndInitMax = EndInit.GetOutPort( 'Max' ) - #OEndInitIncr = EndInit.GetOutPort( 'Incr' ) - return GraphNonVoidEndLoop_1 - - -GraphNonVoidEndLoop_1 = DefGraphNonVoidEndLoop_1() diff --git a/Superv/Python/GraphWrongContainerOrComponent.py b/Superv/Python/GraphWrongContainerOrComponent.py deleted file mode 100644 index 9286177..0000000 --- a/Superv/Python/GraphWrongContainerOrComponent.py +++ /dev/null @@ -1,75 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphWrongContainerOrComponent -# -from SuperV import * - -# Graph creation of GraphWrongContainerOrComponent -def DefGraphWrongContainerOrComponent() : - GraphWrongContainerOrComponent = Graph( 'GraphWrongContainerOrComponent' ) - GraphWrongContainerOrComponent.SetName( 'GraphWrongContainerOrComponent' ) - GraphWrongContainerOrComponent.SetAuthor( 'JR' ) - GraphWrongContainerOrComponent.SetComment( '' ) - GraphWrongContainerOrComponent.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - Add = GraphWrongContainerOrComponent.FNode( 'AddComponent' , 'AddComponent' , 'Add' ) - Add.SetName( 'Add' ) - Add.SetAuthor( '' ) - Add.SetContainer( 'FactoryServer' ) - Add.SetComment( 'Add from AddComponent' ) - Add.Coords( 99 , 304 ) - IAddx = Add.GetInPort( 'x' ) - IAddy = Add.GetInPort( 'y' ) - IAddGate = Add.GetInPort( 'Gate' ) - OAddFuncValue = Add.GetOutPort( 'FuncValue' ) - OAddz = Add.GetOutPort( 'z' ) - OAddGate = Add.GetOutPort( 'Gate' ) - - Sub = GraphWrongContainerOrComponent.FNode( 'SubComponent' , 'SubComponent' , 'Sub' ) - Sub.SetName( 'Sub' ) - Sub.SetAuthor( '' ) - Sub.SetContainer( 'FactoryServer' ) - Sub.SetComment( 'Sub from SubComponent' ) - Sub.Coords( 98 , 59 ) - ISubx = Sub.GetInPort( 'x' ) - ISuby = Sub.GetInPort( 'y' ) - ISubGate = Sub.GetInPort( 'Gate' ) - OSubz = Sub.GetOutPort( 'z' ) - OSubGate = Sub.GetOutPort( 'Gate' ) - - # Input datas - IAddx.Input( 3 ) - IAddy.Input( 4.5 ) - ISubx.Input( 1.5 ) - ISuby.Input( 0 ) - - # Output Ports of the graph - #OAddFuncValue = Add.GetOutPort( 'FuncValue' ) - #OAddz = Add.GetOutPort( 'z' ) - #OSubz = Sub.GetOutPort( 'z' ) - return GraphWrongContainerOrComponent - - -GraphWrongContainerOrComponent = DefGraphWrongContainerOrComponent() diff --git a/Superv/Python/GraphWrongPythonFunctions.py b/Superv/Python/GraphWrongPythonFunctions.py deleted file mode 100644 index d730e2a..0000000 --- a/Superv/Python/GraphWrongPythonFunctions.py +++ /dev/null @@ -1,186 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphWrongPythonFunctions_1 -# -from SuperV import * - -# Graph creation of GraphWrongPythonFunctions_1 -def DefGraphWrongPythonFunctions_1() : - GraphWrongPythonFunctions_1 = Graph( 'GraphWrongPythonFunctions_1' ) - GraphWrongPythonFunctions_1.SetName( 'GraphWrongPythonFunctions_1' ) - GraphWrongPythonFunctions_1.SetAuthor( 'JR' ) - GraphWrongPythonFunctions_1.SetComment( '' ) - GraphWrongPythonFunctions_1.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - # Creation of InLine Nodes - PyIsOdd = [] - PyIsOdd.append( 'from timed import * ' ) - PyIsOdd.append( 'def IsOdd(a) : ' ) - PyIsOdd.append( ' print a,"IsOdd (GraphLoopSwitch1)" ' ) - PyIsOdd.append( ' sleep( 1 ) ' ) - PyIsOdd.append( ' return a ' ) - IsOdd = GraphWrongPythonFunctions_1.INode( 'IsOdd' , PyIsOdd ) - IsOdd.SetName( 'IsOdd' ) - IsOdd.SetAuthor( '' ) - IsOdd.SetComment( 'Python function' ) - IsOdd.Coords( 397 , 1 ) - IIsOdda = IsOdd.InPort( 'a' , 'long' ) - IIsOddGate = IsOdd.GetInPort( 'Gate' ) - OIsOdda = IsOdd.OutPort( 'a' , 'long' ) - OIsOddGate = IsOdd.GetOutPort( 'Gate' ) - - PyValEven = [] - PyValEven.append( 'from timed import * ' ) - PyValEven.append( 'def ValEven(Even) : ' ) - PyValEven.append( ' sleep(1) ' ) - PyValEven.append( ' return Even ' ) - PyValEven.append( '' ) - ValEven = GraphWrongPythonFunctions_1.INode( 'ValEven' , PyValEven ) - ValEven.SetName( 'ValEven' ) - ValEven.SetAuthor( '' ) - ValEven.SetComment( 'Compute Node' ) - ValEven.Coords( 396 , 222 ) - IValEvenEven = ValEven.InPort( 'Even' , 'long' ) - IValEvenGate = ValEven.GetInPort( 'Gate' ) - OValEvenEven = ValEven.OutPort( 'Even' , 'long' ) - OValEvenGate = ValEven.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyInitLoop = [] - PyInitLoop.append( 'def InitLoop(Index,Min,Max) ' ) - PyInitLoop.append( ' Index = Min ' ) - PyInitLoop.append( ' return Index,Min,Max ' ) - PyInitLoop.append( ' ' ) - PyMoreInitLoop = [] - PyMoreInitLoop.append( 'def More() ' ) - PyMoreInitLoop.append( ' return toto ' ) - PyNextInitLoop = [] - PyNextInitLoop.append( 'def Next(...) ' ) - PyNextInitLoop.append( ' return Ok ' ) - InitLoop,EndOfInitLoop = GraphWrongPythonFunctions_1.LNode( 'InitLoop' , PyInitLoop , 'More' , PyMoreInitLoop , 'Next' , PyNextInitLoop ) - EndOfInitLoop.SetName( 'EndOfInitLoop' ) - EndOfInitLoop.SetAuthor( '' ) - EndOfInitLoop.SetComment( 'Compute Node' ) - EndOfInitLoop.Coords( 767 , 102 ) - PyEndOfInitLoop = [] - PyEndOfInitLoop.append( 'def EndOfInitLoop( DoLoop , Index , Min , Max ) : ' ) - PyEndOfInitLoop.append( ' Index = Index + 1 ' ) - PyEndOfInitLoop.append( ' if Index <= Max : ' ) - PyEndOfInitLoop.append( ' DoLoop = 1 ' ) - PyEndOfInitLoop.append( ' else : ' ) - PyEndOfInitLoop.append( ' DoLoop = 0 ' ) - PyEndOfInitLoop.append( ' return DoLoop,Index,Min,Max : ' ) - EndOfInitLoop.SetPyFunction( 'EndOfInitLoop' , PyEndOfInitLoop ) - IInitLoopDoLoop = InitLoop.GetInPort( 'DoLoop' ) - IInitLoopIndex = InitLoop.InPort( 'Index' , 'long' ) - IInitLoopMin = InitLoop.InPort( 'Min' , 'long' ) - IInitLoopMax = InitLoop.InPort( 'Max' , 'long' ) - IInitLoopGate = InitLoop.GetInPort( 'Gate' ) - OInitLoopDoLoop = InitLoop.GetOutPort( 'DoLoop' ) - OInitLoopIndex = InitLoop.GetOutPort( 'Index' ) - OInitLoopMin = InitLoop.GetOutPort( 'Min' ) - OInitLoopMax = InitLoop.GetOutPort( 'Max' ) - IEndOfInitLoopDoLoop = EndOfInitLoop.GetInPort( 'DoLoop' ) - IEndOfInitLoopIndex = EndOfInitLoop.GetInPort( 'Index' ) - IEndOfInitLoopMin = EndOfInitLoop.GetInPort( 'Min' ) - IEndOfInitLoopMax = EndOfInitLoop.GetInPort( 'Max' ) - IEndOfInitLoopGate = EndOfInitLoop.GetInPort( 'Gate' ) - OEndOfInitLoopDoLoop = EndOfInitLoop.GetOutPort( 'DoLoop' ) - OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) - OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) - OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) - OEndOfInitLoopGate = EndOfInitLoop.GetOutPort( 'Gate' ) - InitLoop.SetName( 'InitLoop' ) - InitLoop.SetAuthor( '' ) - InitLoop.SetComment( 'Compute Node' ) - InitLoop.Coords( 10 , 108 ) - - # Creation of Switch Nodes - PySwitch = [] - PySwitch.append( 'from time import * ' ) - PySwitch.append( 'def Switch(a) ' ) - PySwitch.append( ' if a & 1 == 0 : ' ) - PySwitch.append( ' sleep(1) ' ) - PySwitch.append( ' return a & 1,1-(a&1),a ' ) - Switch,EndSwitch = GraphWrongPythonFunctions_1.SNode( 'Switch' , PySwitch ) - EndSwitch.SetName( 'EndSwitch' ) - EndSwitch.SetAuthor( '' ) - EndSwitch.SetComment( 'Compute Node' ) - EndSwitch.Coords( 587 , 103 ) - PyEndSwitch = [] - PyEndSwitch.append( 'def EndSwitch(a,Even) ' ) - PyEndSwitch.append( ' sleep(1) ' ) - PyEndSwitch.append( ' return a, ' ) - EndSwitch.SetPyFunction( 'EndSwitch' , PyEndSwitch ) - IEndSwitcha = EndSwitch.InPort( 'a' , 'long' ) - IEndSwitchEven = EndSwitch.InPort( 'Even' , 'long' ) - IEndSwitchDefault = EndSwitch.GetInPort( 'Default' ) - OEndSwitcha = EndSwitch.OutPort( 'a' , 'long' ) - OEndSwitchGate = EndSwitch.GetOutPort( 'Gate' ) - Switch.SetName( 'Switch' ) - Switch.SetAuthor( '' ) - Switch.SetComment( 'Compute Node' ) - Switch.Coords( 194 , 109 ) - ISwitcha = Switch.InPort( 'a' , 'long' ) - ISwitchGate = Switch.GetInPort( 'Gate' ) - OSwitchOdd = Switch.OutPort( 'Odd' , 'long' ) - OSwitchEven = Switch.OutPort( 'Even' , 'int' ) - OSwitcha = Switch.OutPort( 'a' , 'int' ) - OSwitchDefault = Switch.GetOutPort( 'Default' ) - - # Creation of Links - LIsOddaEndSwitcha = GraphWrongPythonFunctions_1.Link( OIsOdda , IEndSwitcha ) - - LInitLoopIndexSwitcha = GraphWrongPythonFunctions_1.Link( OInitLoopIndex , ISwitcha ) - - LInitLoopMinEndOfInitLoopMin = GraphWrongPythonFunctions_1.Link( OInitLoopMin , IEndOfInitLoopMin ) - - LInitLoopMaxEndOfInitLoopMax = GraphWrongPythonFunctions_1.Link( OInitLoopMax , IEndOfInitLoopMax ) - - LSwitchOddIsOddGate = GraphWrongPythonFunctions_1.Link( OSwitchOdd , IIsOddGate ) - - LSwitchEvenValEvenEven = GraphWrongPythonFunctions_1.Link( OSwitchEven , IValEvenEven ) - - LSwitchaIsOdda = GraphWrongPythonFunctions_1.Link( OSwitcha , IIsOdda ) - - LSwitchDefaultEndSwitchDefault = GraphWrongPythonFunctions_1.Link( OSwitchDefault , IEndSwitchDefault ) - - LEndSwitchaEndOfInitLoopIndex = GraphWrongPythonFunctions_1.Link( OEndSwitcha , IEndOfInitLoopIndex ) - - LValEvenEvenEndSwitchEven = GraphWrongPythonFunctions_1.Link( OValEvenEven , IEndSwitchEven ) - - # Input datas - IInitLoopIndex.Input( 0 ) - IInitLoopMin.Input( 5 ) - IInitLoopMax.Input( 23 ) - - # Output Ports of the graph - #OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) - #OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) - #OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) - return GraphWrongPythonFunctions_1 - - -GraphWrongPythonFunctions_1 = DefGraphWrongPythonFunctions_1() diff --git a/Superv/Python/Graphs.py b/Superv/Python/Graphs.py deleted file mode 100644 index af52e60..0000000 --- a/Superv/Python/Graphs.py +++ /dev/null @@ -1,152 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph Graphs -# -from SuperV import * -# Graph creation -Graphs = Graph( 'Graphs' ) -Graphs.SetName( 'Graphs' ) -Graphs.SetAuthor( '' ) -Graphs.SetComment( '' ) -Graphs.Coords( 0 , 0 ) - -# Creation of Factory Nodes - -Add = Graphs.FNode( 'AddComponent' , 'AddComponent' , 'Add' ) -Add.SetName( 'Add' ) -Add.SetAuthor( '' ) -Add.SetContainer( 'localhost/FactoryServer' ) -Add.SetComment( 'Add from AddComponent' ) -Add.Coords( 30 , 8 ) - -Sub = Graphs.FNode( 'SubComponent' , 'SubComponent' , 'Sub' ) -Sub.SetName( 'Sub' ) -Sub.SetAuthor( '' ) -Sub.SetContainer( 'localhost/FactoryServer' ) -Sub.SetComment( 'Sub from SubComponent' ) -Sub.Coords( 241 , 38 ) - -Mul = Graphs.FNode( 'MulComponent' , 'MulComponent' , 'Mul' ) -Mul.SetName( 'Mul' ) -Mul.SetAuthor( '' ) -Mul.SetContainer( 'localhost/FactoryServer' ) -Mul.SetComment( 'Mul from MulComponent' ) -Mul.Coords( 439 , 39 ) - -Div = Graphs.FNode( 'DivComponent' , 'DivComponent' , 'Div' ) -Div.SetName( 'Div' ) -Div.SetAuthor( '' ) -Div.SetContainer( 'localhost/FactoryServer' ) -Div.SetComment( 'Div from DivComponent' ) -Div.Coords( 633 , 120 ) - -Add_1 = Graphs.FNode( 'AddComponent' , 'AddComponent' , 'Add' ) -Add_1.SetName( 'Add_1' ) -Add_1.SetAuthor( '' ) -Add_1.SetContainer( 'localhost/FactoryServer' ) -Add_1.SetComment( 'Add from AddComponent' ) -Add_1.Coords( 13 , 297 ) - -Sub_1 = Graphs.FNode( 'SubComponent' , 'SubComponent' , 'Sub' ) -Sub_1.SetName( 'Sub_1' ) -Sub_1.SetAuthor( '' ) -Sub_1.SetContainer( 'localhost/FactoryServer' ) -Sub_1.SetComment( 'Sub from SubComponent' ) -Sub_1.Coords( 235 , 217 ) - -Mul_1 = Graphs.FNode( 'MulComponent' , 'MulComponent' , 'Mul' ) -Mul_1.SetName( 'Mul_1' ) -Mul_1.SetAuthor( '' ) -Mul_1.SetContainer( 'localhost/FactoryServer' ) -Mul_1.SetComment( 'Mul from MulComponent' ) -Mul_1.Coords( 423 , 375 ) - -Div_1 = Graphs.FNode( 'DivComponent' , 'DivComponent' , 'Div' ) -Div_1.SetName( 'Div_1' ) -Div_1.SetAuthor( '' ) -Div_1.SetContainer( 'localhost/FactoryServer' ) -Div_1.SetComment( 'Div from DivComponent' ) -Div_1.Coords( 630 , 284 ) - -# Creation of Links -Addz = Add.Port( 'z' ) -Subx = Graphs.Link( Addz , Sub.Port( 'x' ) ) - -Subz = Sub.Port( 'z' ) -Divx = Graphs.Link( Subz , Div.Port( 'x' ) ) -Divx.AddCoord( 1 , 426 , 201 ) -Divx.AddCoord( 2 , 425 , 119 ) - -Mulx = Graphs.Link( Subz , Mul.Port( 'x' ) ) - -Mulz = Mul.Port( 'z' ) -Divy = Graphs.Link( Mulz , Div.Port( 'y' ) ) -Divy.AddCoord( 1 , 619 , 230 ) -Divy.AddCoord( 2 , 620 , 120 ) - -Add_1FuncValue = Add_1.Port( 'FuncValue' ) -Mul_1x = Graphs.Link( Add_1FuncValue , Mul_1.Port( 'x' ) ) -Mul_1x.AddCoord( 1 , 396 , 455 ) -Mul_1x.AddCoord( 2 , 395 , 378 ) - -Sub_1x = Graphs.Link( Add_1FuncValue , Sub_1.Port( 'x' ) ) -Sub_1x.AddCoord( 1 , 215 , 297 ) -Sub_1x.AddCoord( 2 , 215 , 378 ) - -Add_1z = Add_1.Port( 'z' ) -Sub_1y = Graphs.Link( Add_1z , Sub_1.Port( 'y' ) ) -Sub_1y.AddCoord( 1 , 197 , 327 ) -Sub_1y.AddCoord( 2 , 196 , 406 ) - -Sub_1z = Sub_1.Port( 'z' ) -Div_1x = Graphs.Link( Sub_1z , Div_1.Port( 'x' ) ) -Div_1x.AddCoord( 1 , 604 , 364 ) -Div_1x.AddCoord( 2 , 603 , 297 ) - -Mul_1z = Mul_1.Port( 'z' ) -Div_1y = Graphs.Link( Mul_1z , Div_1.Port( 'y' ) ) -Div_1y.AddCoord( 1 , 610 , 394 ) -Div_1y.AddCoord( 2 , 610 , 455 ) - -# Creation of Input datas -Addx = Add.Input( 'x' , 3) -Addy = Add.Input( 'y' , 5) -Suby = Sub.Input( 'y' , 7) -Muly = Mul.Input( 'y' , 11) -Add_1x = Add_1.Input( 'x' , 1) -Add_1y = Add_1.Input( 'y' , 2) -Mul_1y = Mul_1.Input( 'y' , 4) - -# Creation of Output variables -AddFuncValue = Add.Port( 'FuncValue' ) -Divz = Div.Port( 'z' ) -Div_1z = Div_1.Port( 'z' ) - -Graphs.Run() - -Graphs.DoneW() - -Graphs.State() - -Graphs.PrintPorts() - diff --git a/Superv/Python/InLine_Nut.py b/Superv/Python/InLine_Nut.py deleted file mode 100755 index 7a97b15..0000000 --- a/Superv/Python/InLine_Nut.py +++ /dev/null @@ -1,166 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -##################################################################### -#Created :17/02/2005 -#Auhtor :KOVALTCHUK Alexey -##################################################################### -# -def Geometry(y1=50, y2=90): - from batchmode_geompy import * - import math - import os - #Sketcher_1 creation - Sketcher_1 = MakeSketcher("Sketcher:F 100 -57.7:TT 100 57.7:TT 0 115.47:TT -100 57.7:TT -100 -57.7:TT 0 -115.47:WW") - addToStudy(Sketcher_1, "Sketcher_1") - Face_1 = MakeFace(Sketcher_1, 1) - addToStudy(Face_1, "Face_1") - #Line creation - Line_1 = MakeLineTwoPnt(MakeVertex(0,0,0), MakeVertex(0,0,100)) - addToStudy(Line_1, "Line_1") - #Prism creation - Prism_1 = MakePrismVecH(Face_1, Line_1, 100) - addToStudy(Prism_1, "Prism_1") - #Sketcher_2 creation - #"Sketcher:F 50 0:TT 80 0:TT 112 13:TT 112 48:TT 80 63:TT 80 90:TT 50 90:WW" - command = "Sketcher:F " + str(y1)+ " 0:TT 80 0:TT 112 13:TT 112 48:TT 80 63:TT 80 " + str(y2)+ ":TT " + str(y1) + " " + str(y2) + ":WW" - Sketcher_2 = MakeSketcher(command, [0,0,0, 1,0,0, 0,1,0]) - addToStudy(Sketcher_2, "Sketcher_2") - Face_2 = MakeFace(Sketcher_2, 1) - addToStudy(Face_2, "Face_2") - #Revolution creation - Revolution_1 = MakeRevolution(Face_2, Line_1, 2*math.pi) - addToStudy(Revolution_1, "Revolution_1") - #Common applying - Common_1 = MakeBoolean(Revolution_1, Prism_1, 1) - addToStudy(Common_1, "Common_1") - #Explode Common_1 on edges - CommonExplodedListEdges = SubShapeAll(Common_1, ShapeType["EDGE"]) - for i in range(0, len(CommonExplodedListEdges)): - name = "Edge_"+str(i+1) - addToStudyInFather(Common_1, CommonExplodedListEdges[i], name) - #Fillet applying - ID = GetSubShapeID(Common_1, CommonExplodedListEdges[0]) - Fillet_1 = MakeFillet(Common_1, 10, ShapeType["EDGE"], [6]) - addToStudy(Fillet_1, "Fillet_1") - #Chamfer applying - Chamfer_1 = MakeChamferEdge(Fillet_1, 10, 10, 16, 50 ) - addToStudy(Chamfer_1, "Chamfer_1") - Chamfer_2 = MakeChamferEdge(Chamfer_1, 10, 10, 21, 31 ) - addToStudy(Chamfer_2, "Chamfer_2") - #Import of the shape from "slots.brep" - thePath = os.getenv("DATA_DIR") - theFileName = thePath + "/Shapes/Brep/slots.brep" - theShapeForCut = ImportBREP(theFileName) - addToStudy(theShapeForCut, "slot.brep_1") - #Cut applying - Cut_1 = MakeBoolean(Chamfer_2, theShapeForCut, 2) - addToStudy(Cut_1, "Cut_1") - return Cut_1 - - -def Mesh(theNameOfTheShape = "Cut_1", theAverageLength = 5, theMaxElementArea = 20, theMaxElementVolume = 150): - #Format of the parameter is: "[[first level object/[second level object/[.../]]]Name" - from batchmode_smesh import * - import StdMeshers - smesh.SetCurrentStudy(myStudy) - theNameOfTheShape = "/Geometry/"+ str(theNameOfTheShape) - SObject = myStudy.FindObjectByPath(theNameOfTheShape) - if SObject == None: - raise RuntimeError, "It is an incorrect object name..." - shape_mesh = IDToObject( SObject.GetID() ) - mesh = smesh.CreateMesh(shape_mesh) - idmesh = ObjectToID(mesh) - SetName( idmesh, "Mesh" ) - - #HYPOTHESIS CREATION - print "-------------------------- Average length" - theName = "AverageLength" + str(theAverageLength) - hAvLength = smesh.CreateHypothesis( "LocalLength", "libStdMeshersEngine.so" ) - hAvLength.SetLength( theAverageLength ) - print hAvLength.GetName() - print hAvLength.GetId() - SetName(ObjectToID(hAvLength), theName) - - print "-------------------------- MaxElementArea" - theName = "MaxElementArea" + str( theMaxElementArea ) - hArea = smesh.CreateHypothesis( "MaxElementArea", "libStdMeshersEngine.so" ) - hArea.SetMaxElementArea( theMaxElementArea ) - print hArea.GetName() - print hArea.GetId() - print hArea.GetMaxElementArea() - SetName(ObjectToID(hArea), theName) - - print "-------------------------- MaxElementVolume" - theName = "MaxElementVolume" + str( theMaxElementVolume ) - hVolume = smesh.CreateHypothesis( "MaxElementVolume", "libStdMeshersEngine.so" ) - hVolume.SetMaxElementVolume( theMaxElementVolume ) - print hVolume.GetName() - print hVolume.GetId() - print hVolume.GetMaxElementVolume() - SetName(ObjectToID(hVolume), theName) - - mesh.AddHypothesis(shape_mesh, hAvLength) - mesh.AddHypothesis(shape_mesh, hArea) - mesh.AddHypothesis(shape_mesh, hVolume) - - print "-------------------------- Regular_1D" - - algoReg1D = smesh.CreateHypothesis( "Regular_1D", "libStdMeshersEngine.so" ) - listHyp = algoReg1D.GetCompatibleHypothesis() - for hyp in listHyp: - print hyp - print algoReg1D.GetName() - print algoReg1D.GetId() - SetName(ObjectToID(algoReg1D), "Wire discretisation") - - print "-------------------------- MEFISTO_2D" - algoMef = smesh.CreateHypothesis( "MEFISTO_2D", "libStdMeshersEngine.so" ) - listHyp = algoMef.GetCompatibleHypothesis() - for hyp in listHyp: - print hyp - print algoMef.GetName() - print algoMef.GetId() - SetName(ObjectToID(algoMef), "Triangle (Mefisto)") - - print "-------------------------- NETGEN_3D" - algoNg = smesh.CreateHypothesis( "NETGEN_3D", "libNETGENEngine.so" ) - for hyp in listHyp: - print hyp - print algoNg.GetName() - print algoNg.GetId() - SetName(ObjectToID(algoNg), "Tetrahedron (NETGEN)") - mesh.AddHypothesis(shape_mesh, algoReg1D) - mesh.AddHypothesis(shape_mesh, algoMef) - mesh.AddHypothesis(shape_mesh, algoNg) - smesh.Compute(mesh,shape_mesh) - - print "Information about the mesh:" - print "Number of nodes : ", mesh.NbNodes() - print "Number of edges : ", mesh.NbEdges() - print "Number of faces : ", mesh.NbFaces() - print "Number of triangles : ", mesh.NbTriangles() - print "Number of quadrangles : ", mesh.NbQuadrangles() - print "Number of volumes : ", mesh.NbVolumes() - print "Number of tetrahedrons: ", mesh.NbTetras() - - diff --git a/Superv/Python/MacroWithGeom.py b/Superv/Python/MacroWithGeom.py deleted file mode 100644 index d6ba4c2..0000000 --- a/Superv/Python/MacroWithGeom.py +++ /dev/null @@ -1,245 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph aNewDataFlow -# -from SuperV import * - -# Graph creation of aNewDataFlow -def DefaNewDataFlow() : - aNewDataFlow = Graph( 'aNewDataFlow' ) - aNewDataFlow.SetName( 'aNewDataFlow' ) - aNewDataFlow.SetAuthor( '' ) - aNewDataFlow.SetComment( '' ) - aNewDataFlow.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - TranslateDXDYDZ = aNewDataFlow.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'TranslateDXDYDZ' ) - TranslateDXDYDZ.SetName( 'TranslateDXDYDZ' ) - TranslateDXDYDZ.SetAuthor( '' ) - TranslateDXDYDZ.SetContainer( 'localhost/FactoryServer' ) - TranslateDXDYDZ.SetComment( 'TranslateDXDYDZ from GEOM_Superv' ) - TranslateDXDYDZ.Coords( 735 , 14 ) - ITranslateDXDYDZtheObject = TranslateDXDYDZ.GetInPort( 'theObject' ) - ITranslateDXDYDZtheDX = TranslateDXDYDZ.GetInPort( 'theDX' ) - ITranslateDXDYDZtheDY = TranslateDXDYDZ.GetInPort( 'theDY' ) - ITranslateDXDYDZtheDZ = TranslateDXDYDZ.GetInPort( 'theDZ' ) - ITranslateDXDYDZGate = TranslateDXDYDZ.GetInPort( 'Gate' ) - OTranslateDXDYDZreturn = TranslateDXDYDZ.GetOutPort( 'return' ) - OTranslateDXDYDZGate = TranslateDXDYDZ.GetOutPort( 'Gate' ) - - MakeCopy = aNewDataFlow.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeCopy' ) - MakeCopy.SetName( 'MakeCopy' ) - MakeCopy.SetAuthor( '' ) - MakeCopy.SetContainer( 'localhost/FactoryServer' ) - MakeCopy.SetComment( 'MakeCopy from GEOM_Superv' ) - MakeCopy.Coords( 477 , 14 ) - IMakeCopytheOriginal = MakeCopy.GetInPort( 'theOriginal' ) - IMakeCopyGate = MakeCopy.GetInPort( 'Gate' ) - OMakeCopyreturn = MakeCopy.GetOutPort( 'return' ) - OMakeCopyGate = MakeCopy.GetOutPort( 'Gate' ) - - MakeBox = aNewDataFlow.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeBox' ) - MakeBox.SetName( 'MakeBox' ) - MakeBox.SetAuthor( '' ) - MakeBox.SetContainer( 'localhost/FactoryServer' ) - MakeBox.SetComment( 'MakeBox from GEOM_Superv' ) - MakeBox.Coords( 219 , 14 ) - IMakeBoxtheX1 = MakeBox.GetInPort( 'theX1' ) - IMakeBoxtheY1 = MakeBox.GetInPort( 'theY1' ) - IMakeBoxtheZ1 = MakeBox.GetInPort( 'theZ1' ) - IMakeBoxtheX2 = MakeBox.GetInPort( 'theX2' ) - IMakeBoxtheY2 = MakeBox.GetInPort( 'theY2' ) - IMakeBoxtheZ2 = MakeBox.GetInPort( 'theZ2' ) - IMakeBoxGate = MakeBox.GetInPort( 'Gate' ) - OMakeBoxreturn = MakeBox.GetOutPort( 'return' ) - OMakeBoxGate = MakeBox.GetOutPort( 'Gate' ) - - MakeCopy_1 = aNewDataFlow.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeCopy' ) - MakeCopy_1.SetName( 'MakeCopy_1' ) - MakeCopy_1.SetAuthor( '' ) - MakeCopy_1.SetContainer( 'localhost/FactoryServer' ) - MakeCopy_1.SetComment( 'MakeCopy from GEOM_Superv' ) - MakeCopy_1.Coords( 482 , 306 ) - IMakeCopy_1theOriginal = MakeCopy_1.GetInPort( 'theOriginal' ) - IMakeCopy_1Gate = MakeCopy_1.GetInPort( 'Gate' ) - OMakeCopy_1return = MakeCopy_1.GetOutPort( 'return' ) - OMakeCopy_1Gate = MakeCopy_1.GetOutPort( 'Gate' ) - - MakeFuse = aNewDataFlow.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeFuse' ) - MakeFuse.SetName( 'MakeFuse' ) - MakeFuse.SetAuthor( '' ) - MakeFuse.SetContainer( 'localhost/FactoryServer' ) - MakeFuse.SetComment( 'MakeFuse from GEOM_Superv' ) - MakeFuse.Coords( 950 , 121 ) - IMakeFusetheShape1 = MakeFuse.GetInPort( 'theShape1' ) - IMakeFusetheShape2 = MakeFuse.GetInPort( 'theShape2' ) - IMakeFuseGate = MakeFuse.GetInPort( 'Gate' ) - OMakeFusereturn = MakeFuse.GetOutPort( 'return' ) - OMakeFuseGate = MakeFuse.GetOutPort( 'Gate' ) - - MakeSphere = aNewDataFlow.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeSphere' ) - MakeSphere.SetName( 'MakeSphere' ) - MakeSphere.SetAuthor( '' ) - MakeSphere.SetContainer( 'localhost/FactoryServer' ) - MakeSphere.SetComment( 'MakeSphere from GEOM_Superv' ) - MakeSphere.Coords( 227 , 409 ) - IMakeSpheretheX = MakeSphere.GetInPort( 'theX' ) - IMakeSpheretheY = MakeSphere.GetInPort( 'theY' ) - IMakeSpheretheZ = MakeSphere.GetInPort( 'theZ' ) - IMakeSpheretheRadius = MakeSphere.GetInPort( 'theRadius' ) - IMakeSphereGate = MakeSphere.GetInPort( 'Gate' ) - OMakeSpherereturn = MakeSphere.GetOutPort( 'return' ) - OMakeSphereGate = MakeSphere.GetOutPort( 'Gate' ) - - MakeFuse_1 = aNewDataFlow.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeFuse' ) - MakeFuse_1.SetName( 'MakeFuse_1' ) - MakeFuse_1.SetAuthor( '' ) - MakeFuse_1.SetContainer( 'localhost/FactoryServer' ) - MakeFuse_1.SetComment( 'MakeFuse from GEOM_Superv' ) - MakeFuse_1.Coords( 1217 , 389 ) - IMakeFuse_1theShape1 = MakeFuse_1.GetInPort( 'theShape1' ) - IMakeFuse_1theShape2 = MakeFuse_1.GetInPort( 'theShape2' ) - IMakeFuse_1Gate = MakeFuse_1.GetInPort( 'Gate' ) - OMakeFuse_1return = MakeFuse_1.GetOutPort( 'return' ) - OMakeFuse_1Gate = MakeFuse_1.GetOutPort( 'Gate' ) - - SetStudyID = aNewDataFlow.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'SetStudyID' ) - SetStudyID.SetName( 'SetStudyID' ) - SetStudyID.SetAuthor( '' ) - SetStudyID.SetContainer( 'localhost/FactoryServer' ) - SetStudyID.SetComment( 'SetStudyID from GEOM_Superv' ) - SetStudyID.Coords( 7 , 269 ) - ISetStudyIDtheStudyID = SetStudyID.GetInPort( 'theStudyID' ) - ISetStudyIDGate = SetStudyID.GetInPort( 'Gate' ) - OSetStudyIDGate = SetStudyID.GetOutPort( 'Gate' ) - - # Creation of Macro Nodes - aNewDataFlow_1 = DefaNewDataFlow_1() - Macro_aNewDataFlow_1 = aNewDataFlow.GraphMNode( aNewDataFlow_1 ) - Macro_aNewDataFlow_1.SetCoupled( 'aNewDataFlow_1' ) - Macro_aNewDataFlow_1.SetName( 'Macro_aNewDataFlow_1' ) - Macro_aNewDataFlow_1.SetAuthor( '' ) - Macro_aNewDataFlow_1.SetComment( 'Macro Node' ) - Macro_aNewDataFlow_1.Coords( 480 , 145 ) - IMacro_aNewDataFlow_1sum__a = Macro_aNewDataFlow_1.GetInPort( 'sum__a' ) - IMacro_aNewDataFlow_1sum__b = Macro_aNewDataFlow_1.GetInPort( 'sum__b' ) - IMacro_aNewDataFlow_1Gate = Macro_aNewDataFlow_1.GetInPort( 'Gate' ) - OMacro_aNewDataFlow_1Mult__b = Macro_aNewDataFlow_1.GetOutPort( 'Mult__b' ) - OMacro_aNewDataFlow_1Gate = Macro_aNewDataFlow_1.GetOutPort( 'Gate' ) - - # Creation of Links - LMacro_aNewDataFlow_1Mult__bTranslateDXDYDZtheDY = aNewDataFlow.Link( OMacro_aNewDataFlow_1Mult__b , ITranslateDXDYDZtheDY ) - - LTranslateDXDYDZreturnMakeFusetheShape1 = aNewDataFlow.Link( OTranslateDXDYDZreturn , IMakeFusetheShape1 ) - - LMakeCopyreturnTranslateDXDYDZtheObject = aNewDataFlow.Link( OMakeCopyreturn , ITranslateDXDYDZtheObject ) - - LMakeBoxreturnMakeCopytheOriginal = aNewDataFlow.Link( OMakeBoxreturn , IMakeCopytheOriginal ) - - LMakeBoxreturnMakeCopy_1theOriginal = aNewDataFlow.Link( OMakeBoxreturn , IMakeCopy_1theOriginal ) - - LMakeCopy_1returnMakeFusetheShape2 = aNewDataFlow.Link( OMakeCopy_1return , IMakeFusetheShape2 ) - - LMakeFusereturnMakeFuse_1theShape1 = aNewDataFlow.Link( OMakeFusereturn , IMakeFuse_1theShape1 ) - - LMakeSpherereturnMakeFuse_1theShape2 = aNewDataFlow.Link( OMakeSpherereturn , IMakeFuse_1theShape2 ) - - LSetStudyIDGateMakeBoxGate = aNewDataFlow.Link( OSetStudyIDGate , IMakeBoxGate ) - - LSetStudyIDGateMakeSphereGate = aNewDataFlow.Link( OSetStudyIDGate , IMakeSphereGate ) - - # Input datas - IMacro_aNewDataFlow_1sum__a.Input( 1 ) - IMacro_aNewDataFlow_1sum__b.Input( 2 ) - ITranslateDXDYDZtheDX.Input( 25 ) - ITranslateDXDYDZtheDZ.Input( 25 ) - IMakeBoxtheX1.Input( 0 ) - IMakeBoxtheY1.Input( 0 ) - IMakeBoxtheZ1.Input( 0 ) - IMakeBoxtheX2.Input( 50 ) - IMakeBoxtheY2.Input( 50 ) - IMakeBoxtheZ2.Input( 50 ) - IMakeSpheretheX.Input( 0 ) - IMakeSpheretheY.Input( 0 ) - IMakeSpheretheZ.Input( 0 ) - IMakeSpheretheRadius.Input( 12 ) - ISetStudyIDtheStudyID.Input( 1 ) - - # Output Ports of the graph - #OMakeFuse_1return = MakeFuse_1.GetOutPort( 'return' ) - return aNewDataFlow - -# Graph creation of aNewDataFlow_1 -def DefaNewDataFlow_1() : - aNewDataFlow_1 = Graph( 'aNewDataFlow_1' ) - aNewDataFlow_1.SetCoupled( 'Macro_aNewDataFlow_1' ) - aNewDataFlow_1.SetName( 'aNewDataFlow_1' ) - aNewDataFlow_1.SetAuthor( '' ) - aNewDataFlow_1.SetComment( '' ) - aNewDataFlow_1.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - # Creation of InLine Nodes - PyMult = [] - PyMult.append( 'def Mult(a): ' ) - PyMult.append( ' b = a*3 ' ) - PyMult.append( ' return b ' ) - Mult = aNewDataFlow_1.INode( 'Mult' , PyMult ) - Mult.SetName( 'Mult' ) - Mult.SetAuthor( '' ) - Mult.SetComment( 'Compute Node' ) - Mult.Coords( 382 , 78 ) - IMulta = Mult.InPort( 'a' , 'double' ) - IMultGate = Mult.GetInPort( 'Gate' ) - OMultb = Mult.OutPort( 'b' , 'double' ) - OMultGate = Mult.GetOutPort( 'Gate' ) - - Pysum = [] - Pysum.append( 'def sum(a, b): ' ) - Pysum.append( ' return a+b' ) - sum = aNewDataFlow_1.INode( 'sum' , Pysum ) - sum.SetName( 'sum' ) - sum.SetAuthor( '' ) - sum.SetComment( 'Compute Node' ) - sum.Coords( 47 , 87 ) - Isuma = sum.InPort( 'a' , 'double' ) - Isumb = sum.InPort( 'b' , 'double' ) - IsumGate = sum.GetInPort( 'Gate' ) - Osums = sum.OutPort( 's' , 'double' ) - OsumGate = sum.GetOutPort( 'Gate' ) - - # Creation of Links - LsumsMulta = aNewDataFlow_1.Link( Osums , IMulta ) - - # Input Ports of the graph - #Isuma = sum.GetInPort( 'a' ) - #Isumb = sum.GetInPort( 'b' ) - - # Output Ports of the graph - #OMultb = Mult.GetOutPort( 'b' ) - return aNewDataFlow_1 - - -aNewDataFlow = DefaNewDataFlow() diff --git a/Superv/Python/MacroWithGeomGates.py b/Superv/Python/MacroWithGeomGates.py deleted file mode 100644 index 2dd9236..0000000 --- a/Superv/Python/MacroWithGeomGates.py +++ /dev/null @@ -1,255 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph aNewDataFlow_1_4 -# -from SuperV import * - -# Graph creation of aNewDataFlow_1_4 -def DefaNewDataFlow_1_4() : - aNewDataFlow_1_4 = Graph( 'aNewDataFlow_1_4' ) - aNewDataFlow_1_4.SetName( 'aNewDataFlow_1_4' ) - aNewDataFlow_1_4.SetAuthor( '' ) - aNewDataFlow_1_4.SetComment( '' ) - aNewDataFlow_1_4.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - TranslateDXDYDZ = aNewDataFlow_1_4.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'TranslateDXDYDZ' ) - TranslateDXDYDZ.SetName( 'TranslateDXDYDZ' ) - TranslateDXDYDZ.SetAuthor( '' ) - TranslateDXDYDZ.SetContainer( 'localhost/FactoryServer' ) - TranslateDXDYDZ.SetComment( 'TranslateDXDYDZ from GEOM_Superv' ) - TranslateDXDYDZ.Coords( 1051 , 118 ) - ITranslateDXDYDZtheObject = TranslateDXDYDZ.GetInPort( 'theObject' ) - ITranslateDXDYDZtheDX = TranslateDXDYDZ.GetInPort( 'theDX' ) - ITranslateDXDYDZtheDY = TranslateDXDYDZ.GetInPort( 'theDY' ) - ITranslateDXDYDZtheDZ = TranslateDXDYDZ.GetInPort( 'theDZ' ) - ITranslateDXDYDZGate = TranslateDXDYDZ.GetInPort( 'Gate' ) - OTranslateDXDYDZreturn = TranslateDXDYDZ.GetOutPort( 'return' ) - OTranslateDXDYDZGate = TranslateDXDYDZ.GetOutPort( 'Gate' ) - - MakeCopy = aNewDataFlow_1_4.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeCopy' ) - MakeCopy.SetName( 'MakeCopy' ) - MakeCopy.SetAuthor( '' ) - MakeCopy.SetContainer( 'localhost/FactoryServer' ) - MakeCopy.SetComment( 'MakeCopy from GEOM_Superv' ) - MakeCopy.Coords( 656 , 101 ) - IMakeCopytheOriginal = MakeCopy.GetInPort( 'theOriginal' ) - IMakeCopyGate = MakeCopy.GetInPort( 'Gate' ) - OMakeCopyreturn = MakeCopy.GetOutPort( 'return' ) - OMakeCopyGate = MakeCopy.GetOutPort( 'Gate' ) - - MakeBox = aNewDataFlow_1_4.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeBox' ) - MakeBox.SetName( 'MakeBox' ) - MakeBox.SetAuthor( '' ) - MakeBox.SetContainer( 'localhost/FactoryServer' ) - MakeBox.SetComment( 'MakeBox from GEOM_Superv' ) - MakeBox.Coords( 219 , 14 ) - IMakeBoxtheX1 = MakeBox.GetInPort( 'theX1' ) - IMakeBoxtheY1 = MakeBox.GetInPort( 'theY1' ) - IMakeBoxtheZ1 = MakeBox.GetInPort( 'theZ1' ) - IMakeBoxtheX2 = MakeBox.GetInPort( 'theX2' ) - IMakeBoxtheY2 = MakeBox.GetInPort( 'theY2' ) - IMakeBoxtheZ2 = MakeBox.GetInPort( 'theZ2' ) - IMakeBoxGate = MakeBox.GetInPort( 'Gate' ) - OMakeBoxreturn = MakeBox.GetOutPort( 'return' ) - OMakeBoxGate = MakeBox.GetOutPort( 'Gate' ) - - MakeCopy_1 = aNewDataFlow_1_4.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeCopy' ) - MakeCopy_1.SetName( 'MakeCopy_1' ) - MakeCopy_1.SetAuthor( '' ) - MakeCopy_1.SetContainer( 'localhost/FactoryServer' ) - MakeCopy_1.SetComment( 'MakeCopy from GEOM_Superv' ) - MakeCopy_1.Coords( 1286 , 14 ) - IMakeCopy_1theOriginal = MakeCopy_1.GetInPort( 'theOriginal' ) - IMakeCopy_1Gate = MakeCopy_1.GetInPort( 'Gate' ) - OMakeCopy_1return = MakeCopy_1.GetOutPort( 'return' ) - OMakeCopy_1Gate = MakeCopy_1.GetOutPort( 'Gate' ) - - MakeFuse = aNewDataFlow_1_4.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeFuse' ) - MakeFuse.SetName( 'MakeFuse' ) - MakeFuse.SetAuthor( '' ) - MakeFuse.SetContainer( 'localhost/FactoryServer' ) - MakeFuse.SetComment( 'MakeFuse from GEOM_Superv' ) - MakeFuse.Coords( 1549 , 146 ) - IMakeFusetheShape1 = MakeFuse.GetInPort( 'theShape1' ) - IMakeFusetheShape2 = MakeFuse.GetInPort( 'theShape2' ) - IMakeFuseGate = MakeFuse.GetInPort( 'Gate' ) - OMakeFusereturn = MakeFuse.GetOutPort( 'return' ) - OMakeFuseGate = MakeFuse.GetOutPort( 'Gate' ) - - MakeSphere = aNewDataFlow_1_4.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeSphere' ) - MakeSphere.SetName( 'MakeSphere' ) - MakeSphere.SetAuthor( '' ) - MakeSphere.SetContainer( 'localhost/FactoryServer' ) - MakeSphere.SetComment( 'MakeSphere from GEOM_Superv' ) - MakeSphere.Coords( 1749 , 41 ) - IMakeSpheretheX = MakeSphere.GetInPort( 'theX' ) - IMakeSpheretheY = MakeSphere.GetInPort( 'theY' ) - IMakeSpheretheZ = MakeSphere.GetInPort( 'theZ' ) - IMakeSpheretheRadius = MakeSphere.GetInPort( 'theRadius' ) - IMakeSphereGate = MakeSphere.GetInPort( 'Gate' ) - OMakeSpherereturn = MakeSphere.GetOutPort( 'return' ) - OMakeSphereGate = MakeSphere.GetOutPort( 'Gate' ) - - MakeFuse_1 = aNewDataFlow_1_4.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeFuse' ) - MakeFuse_1.SetName( 'MakeFuse_1' ) - MakeFuse_1.SetAuthor( '' ) - MakeFuse_1.SetContainer( 'localhost/FactoryServer' ) - MakeFuse_1.SetComment( 'MakeFuse from GEOM_Superv' ) - MakeFuse_1.Coords( 2007 , 210 ) - IMakeFuse_1theShape1 = MakeFuse_1.GetInPort( 'theShape1' ) - IMakeFuse_1theShape2 = MakeFuse_1.GetInPort( 'theShape2' ) - IMakeFuse_1Gate = MakeFuse_1.GetInPort( 'Gate' ) - OMakeFuse_1return = MakeFuse_1.GetOutPort( 'return' ) - OMakeFuse_1Gate = MakeFuse_1.GetOutPort( 'Gate' ) - - SetStudyID = aNewDataFlow_1_4.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'SetStudyID' ) - SetStudyID.SetName( 'SetStudyID' ) - SetStudyID.SetAuthor( '' ) - SetStudyID.SetContainer( 'localhost/FactoryServer' ) - SetStudyID.SetComment( 'SetStudyID from GEOM_Superv' ) - SetStudyID.Coords( 7 , 269 ) - ISetStudyIDtheStudyID = SetStudyID.GetInPort( 'theStudyID' ) - ISetStudyIDGate = SetStudyID.GetInPort( 'Gate' ) - OSetStudyIDGate = SetStudyID.GetOutPort( 'Gate' ) - - # Creation of Macro Nodes - aNewDataFlow_1_1_2 = DefaNewDataFlow_1_1_2() - Macro_aNewDataFlow_1 = aNewDataFlow_1_4.GraphMNode( aNewDataFlow_1_1_2 ) - Macro_aNewDataFlow_1.SetCoupled( 'aNewDataFlow_1_1_2' ) - Macro_aNewDataFlow_1.SetName( 'Macro_aNewDataFlow_1' ) - Macro_aNewDataFlow_1.SetAuthor( '' ) - Macro_aNewDataFlow_1.SetComment( 'Macro Node' ) - Macro_aNewDataFlow_1.Coords( 718 , 263 ) - IMacro_aNewDataFlow_1sum__a = Macro_aNewDataFlow_1.GetInPort( 'sum__a' ) - IMacro_aNewDataFlow_1sum__b = Macro_aNewDataFlow_1.GetInPort( 'sum__b' ) - IMacro_aNewDataFlow_1Gate = Macro_aNewDataFlow_1.GetInPort( 'Gate' ) - OMacro_aNewDataFlow_1Mult__b = Macro_aNewDataFlow_1.GetOutPort( 'Mult__b' ) - OMacro_aNewDataFlow_1Gate = Macro_aNewDataFlow_1.GetOutPort( 'Gate' ) - - # Creation of Links - LMacro_aNewDataFlow_1Mult__bTranslateDXDYDZtheDY = aNewDataFlow_1_4.Link( OMacro_aNewDataFlow_1Mult__b , ITranslateDXDYDZtheDY ) - - LTranslateDXDYDZreturnMakeFusetheShape1 = aNewDataFlow_1_4.Link( OTranslateDXDYDZreturn , IMakeFusetheShape1 ) - - LTranslateDXDYDZGateMakeCopy_1Gate = aNewDataFlow_1_4.Link( OTranslateDXDYDZGate , IMakeCopy_1Gate ) - - LMakeCopyreturnTranslateDXDYDZtheObject = aNewDataFlow_1_4.Link( OMakeCopyreturn , ITranslateDXDYDZtheObject ) - - LMakeCopyGateTranslateDXDYDZGate = aNewDataFlow_1_4.Link( OMakeCopyGate , ITranslateDXDYDZGate ) - - LMakeBoxreturnMakeCopytheOriginal = aNewDataFlow_1_4.Link( OMakeBoxreturn , IMakeCopytheOriginal ) - - LMakeBoxreturnMakeCopy_1theOriginal = aNewDataFlow_1_4.Link( OMakeBoxreturn , IMakeCopy_1theOriginal ) - - LMakeBoxGateMakeCopyGate = aNewDataFlow_1_4.Link( OMakeBoxGate , IMakeCopyGate ) - - LMakeCopy_1returnMakeFusetheShape2 = aNewDataFlow_1_4.Link( OMakeCopy_1return , IMakeFusetheShape2 ) - - LMakeCopy_1GateMakeFuseGate = aNewDataFlow_1_4.Link( OMakeCopy_1Gate , IMakeFuseGate ) - - LMakeFusereturnMakeFuse_1theShape1 = aNewDataFlow_1_4.Link( OMakeFusereturn , IMakeFuse_1theShape1 ) - - LMakeFuseGateMakeSphereGate = aNewDataFlow_1_4.Link( OMakeFuseGate , IMakeSphereGate ) - - LMakeSpherereturnMakeFuse_1theShape2 = aNewDataFlow_1_4.Link( OMakeSpherereturn , IMakeFuse_1theShape2 ) - - LMakeSphereGateMakeFuse_1Gate = aNewDataFlow_1_4.Link( OMakeSphereGate , IMakeFuse_1Gate ) - - LSetStudyIDGateMakeBoxGate = aNewDataFlow_1_4.Link( OSetStudyIDGate , IMakeBoxGate ) - - # Input datas - IMacro_aNewDataFlow_1sum__a.Input( 1 ) - IMacro_aNewDataFlow_1sum__b.Input( 2 ) - ITranslateDXDYDZtheDX.Input( 25 ) - ITranslateDXDYDZtheDZ.Input( 25 ) - IMakeBoxtheX1.Input( 0 ) - IMakeBoxtheY1.Input( 0 ) - IMakeBoxtheZ1.Input( 0 ) - IMakeBoxtheX2.Input( 50 ) - IMakeBoxtheY2.Input( 50 ) - IMakeBoxtheZ2.Input( 50 ) - IMakeSpheretheX.Input( 0 ) - IMakeSpheretheY.Input( 0 ) - IMakeSpheretheZ.Input( 0 ) - IMakeSpheretheRadius.Input( 12 ) - ISetStudyIDtheStudyID.Input( 12 ) - - # Output Ports of the graph - #OMakeFuse_1return = MakeFuse_1.GetOutPort( 'return' ) - return aNewDataFlow_1_4 - -# Graph creation of aNewDataFlow_1_1_2 -def DefaNewDataFlow_1_1_2() : - aNewDataFlow_1_1_2 = Graph( 'aNewDataFlow_1_1_2' ) - aNewDataFlow_1_1_2.SetCoupled( 'Macro_aNewDataFlow_1' ) - aNewDataFlow_1_1_2.SetName( 'aNewDataFlow_1_1_2' ) - aNewDataFlow_1_1_2.SetAuthor( '' ) - aNewDataFlow_1_1_2.SetComment( '' ) - aNewDataFlow_1_1_2.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - # Creation of InLine Nodes - PyMult = [] - PyMult.append( 'def Mult(a): ' ) - PyMult.append( ' b = a*3 ' ) - PyMult.append( ' return b ' ) - Mult = aNewDataFlow_1_1_2.INode( 'Mult' , PyMult ) - Mult.SetName( 'Mult' ) - Mult.SetAuthor( '' ) - Mult.SetComment( 'Compute Node' ) - Mult.Coords( 382 , 78 ) - IMulta = Mult.InPort( 'a' , 'double' ) - IMultGate = Mult.GetInPort( 'Gate' ) - OMultb = Mult.OutPort( 'b' , 'double' ) - OMultGate = Mult.GetOutPort( 'Gate' ) - - Pysum = [] - Pysum.append( 'def sum(a, b): ' ) - Pysum.append( ' return a+b' ) - sum = aNewDataFlow_1_1_2.INode( 'sum' , Pysum ) - sum.SetName( 'sum' ) - sum.SetAuthor( '' ) - sum.SetComment( 'Compute Node' ) - sum.Coords( 47 , 87 ) - Isuma = sum.InPort( 'a' , 'double' ) - Isumb = sum.InPort( 'b' , 'double' ) - IsumGate = sum.GetInPort( 'Gate' ) - Osums = sum.OutPort( 's' , 'double' ) - OsumGate = sum.GetOutPort( 'Gate' ) - - # Creation of Links - LsumsMulta = aNewDataFlow_1_1_2.Link( Osums , IMulta ) - - # Input Ports of the graph - #Isuma = sum.GetInPort( 'a' ) - #Isumb = sum.GetInPort( 'b' ) - - # Output Ports of the graph - #OMultb = Mult.GetOutPort( 'b' ) - return aNewDataFlow_1_1_2 - - -aNewDataFlow_1_4 = DefaNewDataFlow_1_4() diff --git a/Superv/Python/MacroWithGeomGates_py.py b/Superv/Python/MacroWithGeomGates_py.py deleted file mode 100644 index ebf6ce5..0000000 --- a/Superv/Python/MacroWithGeomGates_py.py +++ /dev/null @@ -1,299 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph aNewDataFlow_1_4_1_1_1_1 -# -from SuperV import * - -# Graph creation of aNewDataFlow_1_4_1_1_1_1 -def DefaNewDataFlow_1_4_1_1_1_1() : - aNewDataFlow_1_4_1_1_1_1 = Graph( 'aNewDataFlow_1_4_1_1_1_1' ) - aNewDataFlow_1_4_1_1_1_1.SetName( 'aNewDataFlow_1_4_1_1_1_1' ) - aNewDataFlow_1_4_1_1_1_1.SetAuthor( '' ) - aNewDataFlow_1_4_1_1_1_1.SetComment( '' ) - aNewDataFlow_1_4_1_1_1_1.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - # Creation of InLine Nodes - Pygag = [] - Pygag.append( 'from batchmode_geompy import * ' ) - Pygag.append( 'def gag(): ' ) - Pygag.append( ' # This is a gag ' ) - Pygag.append( ' return 1 ' ) - gag = aNewDataFlow_1_4_1_1_1_1.INode( 'gag' , Pygag ) - gag.SetName( 'gag' ) - gag.SetAuthor( '' ) - gag.SetComment( 'Compute Node' ) - gag.Coords( 0 , 123 ) - IgagGate = gag.GetInPort( 'Gate' ) - OgagGate = gag.GetOutPort( 'Gate' ) - - PyMakeBox1 = [] - PyMakeBox1.append( 'def MakeBox1(x1,y1,z1,x2,y2,z2): ' ) - PyMakeBox1.append( ' aBox = MakeBox(x1,y1,z1,x2,y2,z2) ' ) - PyMakeBox1.append( ' return aBox ' ) - MakeBox1 = aNewDataFlow_1_4_1_1_1_1.INode( 'MakeBox1' , PyMakeBox1 ) - MakeBox1.SetName( 'MakeBox1' ) - MakeBox1.SetAuthor( '' ) - MakeBox1.SetComment( 'Compute Node' ) - MakeBox1.Coords( 194 , 3 ) - IMakeBox1x1 = MakeBox1.InPort( 'x1' , 'double' ) - IMakeBox1y1 = MakeBox1.InPort( 'y1' , 'double' ) - IMakeBox1z1 = MakeBox1.InPort( 'z1' , 'double' ) - IMakeBox1x2 = MakeBox1.InPort( 'x2' , 'double' ) - IMakeBox1y2 = MakeBox1.InPort( 'y2' , 'double' ) - IMakeBox1z2 = MakeBox1.InPort( 'z2' , 'double' ) - IMakeBox1Gate = MakeBox1.GetInPort( 'Gate' ) - OMakeBox1shape = MakeBox1.OutPort( 'shape' , 'objref' ) - OMakeBox1Gate = MakeBox1.GetOutPort( 'Gate' ) - - PyMakeCopy_1 = [] - PyMakeCopy_1.append( 'def MakeCopy_1(shape1): ' ) - PyMakeCopy_1.append( ' shape=MakeCopy(shape1) ' ) - PyMakeCopy_1.append( ' return shape ' ) - MakeCopy_1 = aNewDataFlow_1_4_1_1_1_1.INode( 'MakeCopy_1' , PyMakeCopy_1 ) - MakeCopy_1.SetName( 'MakeCopy_1' ) - MakeCopy_1.SetAuthor( '' ) - MakeCopy_1.SetComment( 'Compute Node' ) - MakeCopy_1.Coords( 389 , 3 ) - IMakeCopy_1shape1 = MakeCopy_1.InPort( 'shape1' , 'objref' ) - IMakeCopy_1Gate = MakeCopy_1.GetInPort( 'Gate' ) - OMakeCopy_1shape = MakeCopy_1.OutPort( 'shape' , 'objref' ) - OMakeCopy_1Gate = MakeCopy_1.GetOutPort( 'Gate' ) - - PyMakeCopy_2 = [] - PyMakeCopy_2.append( 'def MakeCopy_2(shape1): ' ) - PyMakeCopy_2.append( ' shape=MakeCopy(shape1) ' ) - PyMakeCopy_2.append( ' return shape ' ) - MakeCopy_2 = aNewDataFlow_1_4_1_1_1_1.INode( 'MakeCopy_2' , PyMakeCopy_2 ) - MakeCopy_2.SetName( 'MakeCopy_2' ) - MakeCopy_2.SetAuthor( '' ) - MakeCopy_2.SetComment( 'Compute Node' ) - MakeCopy_2.Coords( 391 , 264 ) - IMakeCopy_2shape1 = MakeCopy_2.InPort( 'shape1' , 'objref' ) - IMakeCopy_2Gate = MakeCopy_2.GetInPort( 'Gate' ) - OMakeCopy_2shape = MakeCopy_2.OutPort( 'shape' , 'objref' ) - OMakeCopy_2Gate = MakeCopy_2.GetOutPort( 'Gate' ) - - PyMakeSphere_1 = [] - PyMakeSphere_1.append( 'def MakeSphere_1(x1,y1,z1,radius): ' ) - PyMakeSphere_1.append( ' apoint=MakeVertex(x1,y1,z1) ' ) - PyMakeSphere_1.append( ' shape=MakeSpherePntR(apoint,radius) ' ) - PyMakeSphere_1.append( ' return shape ' ) - MakeSphere_1 = aNewDataFlow_1_4_1_1_1_1.INode( 'MakeSphere_1' , PyMakeSphere_1 ) - MakeSphere_1.SetName( 'MakeSphere_1' ) - MakeSphere_1.SetAuthor( '' ) - MakeSphere_1.SetComment( 'Compute Node' ) - MakeSphere_1.Coords( 641 , 326 ) - IMakeSphere_1x1 = MakeSphere_1.InPort( 'x1' , 'double' ) - IMakeSphere_1y1 = MakeSphere_1.InPort( 'y1' , 'double' ) - IMakeSphere_1z1 = MakeSphere_1.InPort( 'z1' , 'double' ) - IMakeSphere_1radius = MakeSphere_1.InPort( 'radius' , 'double' ) - IMakeSphere_1Gate = MakeSphere_1.GetInPort( 'Gate' ) - OMakeSphere_1shape = MakeSphere_1.OutPort( 'shape' , 'objref' ) - OMakeSphere_1Gate = MakeSphere_1.GetOutPort( 'Gate' ) - - PyMakeFuse_1 = [] - PyMakeFuse_1.append( 'def MakeFuse_1(shape1,shape2): ' ) - PyMakeFuse_1.append( ' # fuse operation 3 ' ) - PyMakeFuse_1.append( ' shape = MakeBoolean(shape1,shape2,3) ' ) - PyMakeFuse_1.append( ' return shape ' ) - MakeFuse_1 = aNewDataFlow_1_4_1_1_1_1.INode( 'MakeFuse_1' , PyMakeFuse_1 ) - MakeFuse_1.SetName( 'MakeFuse_1' ) - MakeFuse_1.SetAuthor( '' ) - MakeFuse_1.SetComment( 'Compute Node' ) - MakeFuse_1.Coords( 823 , 116 ) - IMakeFuse_1shape1 = MakeFuse_1.InPort( 'shape1' , 'objref' ) - IMakeFuse_1shape2 = MakeFuse_1.InPort( 'shape2' , 'objref' ) - IMakeFuse_1Gate = MakeFuse_1.GetInPort( 'Gate' ) - OMakeFuse_1shape = MakeFuse_1.OutPort( 'shape' , 'objref' ) - OMakeFuse_1Gate = MakeFuse_1.GetOutPort( 'Gate' ) - - PyMakeFuse_2 = [] - PyMakeFuse_2.append( 'def MakeFuse_2(shape1,shape2): ' ) - PyMakeFuse_2.append( ' # fuse operation 3 ' ) - PyMakeFuse_2.append( ' shape = MakeBoolean(shape1,shape2,3) ' ) - PyMakeFuse_2.append( ' from SALOME_NamingServicePy import SALOME_NamingServicePy_i ' ) - PyMakeFuse_2.append( ' myNamingService = SALOME_NamingServicePy_i(orb) ' ) - PyMakeFuse_2.append( ' aSession = myNamingService.Resolve('/Kernel/Session') ' ) - PyMakeFuse_2.append( ' aStudyId = aSession.GetActiveStudyId() ' ) - PyMakeFuse_2.append( ' myStudyManager = myNamingService.Resolve('/myStudyManager') ' ) - PyMakeFuse_2.append( ' aStudy = myStudyManager.GetStudyByID(aStudyId) ' ) - PyMakeFuse_2.append( ' aSObject = geom.AddInStudy(aStudy, shape, "shape", None) ' ) - PyMakeFuse_2.append( ' return shape ' ) - MakeFuse_2 = aNewDataFlow_1_4_1_1_1_1.INode( 'MakeFuse_2' , PyMakeFuse_2 ) - MakeFuse_2.SetName( 'MakeFuse_2' ) - MakeFuse_2.SetAuthor( '' ) - MakeFuse_2.SetComment( 'Compute Node' ) - MakeFuse_2.Coords( 1049 , 295 ) - IMakeFuse_2shape1 = MakeFuse_2.InPort( 'shape1' , 'objref' ) - IMakeFuse_2shape2 = MakeFuse_2.InPort( 'shape2' , 'objref' ) - IMakeFuse_2Gate = MakeFuse_2.GetInPort( 'Gate' ) - OMakeFuse_2shape = MakeFuse_2.OutPort( 'shape' , 'objref' ) - OMakeFuse_2Gate = MakeFuse_2.GetOutPort( 'Gate' ) - - PyMakeTranslation_1 = [] - PyMakeTranslation_1.append( 'def MakeTranslation_1(shape1,x1,y1,z1): ' ) - PyMakeTranslation_1.append( ' shape = MakeTranslation(shape1,x1,y1,z1) ' ) - PyMakeTranslation_1.append( ' return shape' ) - MakeTranslation_1 = aNewDataFlow_1_4_1_1_1_1.INode( 'MakeTranslation_1' , PyMakeTranslation_1 ) - MakeTranslation_1.SetName( 'MakeTranslation_1' ) - MakeTranslation_1.SetAuthor( '' ) - MakeTranslation_1.SetComment( 'Compute Node' ) - MakeTranslation_1.Coords( 621 , 12 ) - IMakeTranslation_1shape1 = MakeTranslation_1.InPort( 'shape1' , 'objref' ) - IMakeTranslation_1x1 = MakeTranslation_1.InPort( 'x1' , 'double' ) - IMakeTranslation_1y1 = MakeTranslation_1.InPort( 'y1' , 'double' ) - IMakeTranslation_1z1 = MakeTranslation_1.InPort( 'z1' , 'double' ) - IMakeTranslation_1Gate = MakeTranslation_1.GetInPort( 'Gate' ) - OMakeTranslation_1shape = MakeTranslation_1.OutPort( 'shape' , 'objref' ) - OMakeTranslation_1Gate = MakeTranslation_1.GetOutPort( 'Gate' ) - - # Creation of Macro Nodes - aNewDataFlow_1_5_1_1_3_3_1_1_1_3_1 = DefaNewDataFlow_1_5_1_1_3_3_1_1_1_3_1() - Macro_aNewDataFlow_1_5_1_1 = aNewDataFlow_1_4_1_1_1_1.GraphMNode( aNewDataFlow_1_5_1_1_3_3_1_1_1_3_1 ) - Macro_aNewDataFlow_1_5_1_1.SetCoupled( 'aNewDataFlow_1_5_1_1_3_3_1_1_1_3_1' ) - Macro_aNewDataFlow_1_5_1_1.SetName( 'Macro_aNewDataFlow_1_5_1_1' ) - Macro_aNewDataFlow_1_5_1_1.SetAuthor( '' ) - Macro_aNewDataFlow_1_5_1_1.SetComment( 'Macro Node' ) - Macro_aNewDataFlow_1_5_1_1.Coords( 391 , 121 ) - IMacro_aNewDataFlow_1_5_1_1sum__a = Macro_aNewDataFlow_1_5_1_1.GetInPort( 'sum__a' ) - IMacro_aNewDataFlow_1_5_1_1sum__b = Macro_aNewDataFlow_1_5_1_1.GetInPort( 'sum__b' ) - IMacro_aNewDataFlow_1_5_1_1Gate = Macro_aNewDataFlow_1_5_1_1.GetInPort( 'Gate' ) - OMacro_aNewDataFlow_1_5_1_1Mult__b = Macro_aNewDataFlow_1_5_1_1.GetOutPort( 'Mult__b' ) - OMacro_aNewDataFlow_1_5_1_1Gate = Macro_aNewDataFlow_1_5_1_1.GetOutPort( 'Gate' ) - - # Creation of Links - LgagGateMakeBox1Gate = aNewDataFlow_1_4_1_1_1_1.Link( OgagGate , IMakeBox1Gate ) - - LMakeBox1shapeMakeCopy_1shape1 = aNewDataFlow_1_4_1_1_1_1.Link( OMakeBox1shape , IMakeCopy_1shape1 ) - - LMakeBox1shapeMakeCopy_2shape1 = aNewDataFlow_1_4_1_1_1_1.Link( OMakeBox1shape , IMakeCopy_2shape1 ) - LMakeBox1shapeMakeCopy_2shape1.AddCoord( 1 , 373 , 211 ) - - LMakeBox1GateMakeCopy_1Gate = aNewDataFlow_1_4_1_1_1_1.Link( OMakeBox1Gate , IMakeCopy_1Gate ) - - LMakeCopy_1shapeMakeTranslation_1shape1 = aNewDataFlow_1_4_1_1_1_1.Link( OMakeCopy_1shape , IMakeTranslation_1shape1 ) - - LMakeCopy_1GateMakeCopy_2Gate = aNewDataFlow_1_4_1_1_1_1.Link( OMakeCopy_1Gate , IMakeCopy_2Gate ) - LMakeCopy_1GateMakeCopy_2Gate.AddCoord( 1 , 365 , 359 ) - LMakeCopy_1GateMakeCopy_2Gate.AddCoord( 2 , 570 , 98 ) - - LMakeCopy_2shapeMakeFuse_1shape2 = aNewDataFlow_1_4_1_1_1_1.Link( OMakeCopy_2shape , IMakeFuse_1shape2 ) - LMakeCopy_2shapeMakeFuse_1shape2.AddCoord( 1 , 674 , 207 ) - - LMakeCopy_2GateMakeSphere_1Gate = aNewDataFlow_1_4_1_1_1_1.Link( OMakeCopy_2Gate , IMakeSphere_1Gate ) - - LMakeSphere_1shapeMakeFuse_2shape2 = aNewDataFlow_1_4_1_1_1_1.Link( OMakeSphere_1shape , IMakeFuse_2shape2 ) - - LMakeSphere_1GateMakeTranslation_1Gate = aNewDataFlow_1_4_1_1_1_1.Link( OMakeSphere_1Gate , IMakeTranslation_1Gate ) - LMakeSphere_1GateMakeTranslation_1Gate.AddCoord( 1 , 593 , 167 ) - LMakeSphere_1GateMakeTranslation_1Gate.AddCoord( 2 , 828 , 481 ) - - LMakeFuse_1shapeMakeFuse_2shape1 = aNewDataFlow_1_4_1_1_1_1.Link( OMakeFuse_1shape , IMakeFuse_2shape1 ) - LMakeFuse_1shapeMakeFuse_2shape1.AddCoord( 1 , 1017 , 366 ) - LMakeFuse_1shapeMakeFuse_2shape1.AddCoord( 2 , 1017 , 187 ) - - LMakeFuse_1GateMakeFuse_2Gate = aNewDataFlow_1_4_1_1_1_1.Link( OMakeFuse_1Gate , IMakeFuse_2Gate ) - LMakeFuse_1GateMakeFuse_2Gate.AddCoord( 1 , 1001 , 410 ) - LMakeFuse_1GateMakeFuse_2Gate.AddCoord( 2 , 1001 , 231 ) - - LMacro_aNewDataFlow_1_5_1_1Mult__bMakeTranslation_1y1 = aNewDataFlow_1_4_1_1_1_1.Link( OMacro_aNewDataFlow_1_5_1_1Mult__b , IMakeTranslation_1y1 ) - - LMakeTranslation_1shapeMakeFuse_1shape1 = aNewDataFlow_1_4_1_1_1_1.Link( OMakeTranslation_1shape , IMakeFuse_1shape1 ) - - LMakeTranslation_1GateMakeFuse_1Gate = aNewDataFlow_1_4_1_1_1_1.Link( OMakeTranslation_1Gate , IMakeFuse_1Gate ) - - # Input datas - IMakeBox1x1.Input( 0 ) - IMakeBox1y1.Input( 0 ) - IMakeBox1z1.Input( 0 ) - IMakeBox1x2.Input( 50 ) - IMakeBox1y2.Input( 50 ) - IMakeBox1z2.Input( 50 ) - IMakeSphere_1x1.Input( 0 ) - IMakeSphere_1y1.Input( 0 ) - IMakeSphere_1z1.Input( 0 ) - IMakeSphere_1radius.Input( 12 ) - IMacro_aNewDataFlow_1_5_1_1sum__a.Input( 1 ) - IMacro_aNewDataFlow_1_5_1_1sum__b.Input( 2 ) - IMakeTranslation_1x1.Input( 25 ) - IMakeTranslation_1z1.Input( 25 ) - - # Output Ports of the graph - #OMakeFuse_2shape = MakeFuse_2.GetOutPort( 'shape' ) - return aNewDataFlow_1_4_1_1_1_1 - -# Graph creation of aNewDataFlow_1_5_1_1_3_3_1_1_1_3_1 -def DefaNewDataFlow_1_5_1_1_3_3_1_1_1_3_1() : - aNewDataFlow_1_5_1_1_3_3_1_1_1_3_1 = Graph( 'aNewDataFlow_1_5_1_1_3_3_1_1_1_3_1' ) - aNewDataFlow_1_5_1_1_3_3_1_1_1_3_1.SetCoupled( 'Macro_aNewDataFlow_1_5_1_1' ) - aNewDataFlow_1_5_1_1_3_3_1_1_1_3_1.SetName( 'aNewDataFlow_1_5_1_1_3_3_1_1_1_3_1' ) - aNewDataFlow_1_5_1_1_3_3_1_1_1_3_1.SetAuthor( '' ) - aNewDataFlow_1_5_1_1_3_3_1_1_1_3_1.SetComment( '' ) - aNewDataFlow_1_5_1_1_3_3_1_1_1_3_1.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - # Creation of InLine Nodes - Pysum = [] - Pysum.append( 'def sum(a, b): ' ) - Pysum.append( ' return a+b ' ) - sum = aNewDataFlow_1_5_1_1_3_3_1_1_1_3_1.INode( 'sum' , Pysum ) - sum.SetName( 'sum' ) - sum.SetAuthor( '' ) - sum.SetComment( 'Compute Node' ) - sum.Coords( 52 , 80 ) - Isuma = sum.InPort( 'a' , 'double' ) - Isumb = sum.InPort( 'b' , 'double' ) - IsumGate = sum.GetInPort( 'Gate' ) - Osums = sum.OutPort( 's' , 'double' ) - OsumGate = sum.GetOutPort( 'Gate' ) - - PyMult = [] - PyMult.append( 'def Mult(a): ' ) - PyMult.append( ' b = a*3 ' ) - PyMult.append( ' return b ' ) - Mult = aNewDataFlow_1_5_1_1_3_3_1_1_1_3_1.INode( 'Mult' , PyMult ) - Mult.SetName( 'Mult' ) - Mult.SetAuthor( '' ) - Mult.SetComment( 'Compute Node' ) - Mult.Coords( 298 , 72 ) - IMulta = Mult.InPort( 'a' , 'double' ) - IMultGate = Mult.GetInPort( 'Gate' ) - OMultb = Mult.OutPort( 'b' , 'double' ) - OMultGate = Mult.GetOutPort( 'Gate' ) - - # Creation of Links - LsumsMulta = aNewDataFlow_1_5_1_1_3_3_1_1_1_3_1.Link( Osums , IMulta ) - - # Input Ports of the graph - #Isuma = sum.GetInPort( 'a' ) - #Isumb = sum.GetInPort( 'b' ) - - # Output Ports of the graph - #OMultb = Mult.GetOutPort( 'b' ) - return aNewDataFlow_1_5_1_1_3_3_1_1_1_3_1 - - -aNewDataFlow_1_4_1_1_1_1 = DefaNewDataFlow_1_4_1_1_1_1() diff --git a/Superv/Python/MacroWithGeom_py.py b/Superv/Python/MacroWithGeom_py.py deleted file mode 100644 index a2226b7..0000000 --- a/Superv/Python/MacroWithGeom_py.py +++ /dev/null @@ -1,285 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph aNewDataFlow_1_4_1_1_1_1 -# -from SuperV import * - -# Graph creation of aNewDataFlow_1_4_1_1_1_1 -def DefaNewDataFlow_1_4_1_1_1_1() : - aNewDataFlow_1_4_1_1_1_1 = Graph( 'aNewDataFlow_1_4_1_1_1_1' ) - aNewDataFlow_1_4_1_1_1_1.SetName( 'aNewDataFlow_1_4_1_1_1_1' ) - aNewDataFlow_1_4_1_1_1_1.SetAuthor( '' ) - aNewDataFlow_1_4_1_1_1_1.SetComment( '' ) - aNewDataFlow_1_4_1_1_1_1.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - # Creation of InLine Nodes - Pygag = [] - Pygag.append( 'from batchmode_geompy import * ' ) - Pygag.append( 'def gag(): ' ) - Pygag.append( ' # This is a gag ' ) - Pygag.append( ' return 1 ' ) - gag = aNewDataFlow_1_4_1_1_1_1.INode( 'gag' , Pygag ) - gag.SetName( 'gag' ) - gag.SetAuthor( '' ) - gag.SetComment( 'Compute Node' ) - gag.Coords( 0 , 123 ) - IgagGate = gag.GetInPort( 'Gate' ) - OgagGate = gag.GetOutPort( 'Gate' ) - - PyMakeBox1 = [] - PyMakeBox1.append( 'def MakeBox1(x1,y1,z1,x2,y2,z2): ' ) - PyMakeBox1.append( ' aBox = MakeBox(x1,y1,z1,x2,y2,z2) ' ) - PyMakeBox1.append( ' return aBox ' ) - MakeBox1 = aNewDataFlow_1_4_1_1_1_1.INode( 'MakeBox1' , PyMakeBox1 ) - MakeBox1.SetName( 'MakeBox1' ) - MakeBox1.SetAuthor( '' ) - MakeBox1.SetComment( 'Compute Node' ) - MakeBox1.Coords( 194 , 3 ) - IMakeBox1x1 = MakeBox1.InPort( 'x1' , 'double' ) - IMakeBox1y1 = MakeBox1.InPort( 'y1' , 'double' ) - IMakeBox1z1 = MakeBox1.InPort( 'z1' , 'double' ) - IMakeBox1x2 = MakeBox1.InPort( 'x2' , 'double' ) - IMakeBox1y2 = MakeBox1.InPort( 'y2' , 'double' ) - IMakeBox1z2 = MakeBox1.InPort( 'z2' , 'double' ) - IMakeBox1Gate = MakeBox1.GetInPort( 'Gate' ) - OMakeBox1shape = MakeBox1.OutPort( 'shape' , 'objref' ) - OMakeBox1Gate = MakeBox1.GetOutPort( 'Gate' ) - - PyMakeCopy_1 = [] - PyMakeCopy_1.append( 'def MakeCopy_1(shape1): ' ) - PyMakeCopy_1.append( ' shape=MakeCopy(shape1) ' ) - PyMakeCopy_1.append( ' return shape ' ) - MakeCopy_1 = aNewDataFlow_1_4_1_1_1_1.INode( 'MakeCopy_1' , PyMakeCopy_1 ) - MakeCopy_1.SetName( 'MakeCopy_1' ) - MakeCopy_1.SetAuthor( '' ) - MakeCopy_1.SetComment( 'Compute Node' ) - MakeCopy_1.Coords( 389 , 3 ) - IMakeCopy_1shape1 = MakeCopy_1.InPort( 'shape1' , 'objref' ) - IMakeCopy_1Gate = MakeCopy_1.GetInPort( 'Gate' ) - OMakeCopy_1shape = MakeCopy_1.OutPort( 'shape' , 'objref' ) - OMakeCopy_1Gate = MakeCopy_1.GetOutPort( 'Gate' ) - - PyMakeCopy_2 = [] - PyMakeCopy_2.append( 'def MakeCopy_2(shape1): ' ) - PyMakeCopy_2.append( ' shape=MakeCopy(shape1) ' ) - PyMakeCopy_2.append( ' return shape ' ) - MakeCopy_2 = aNewDataFlow_1_4_1_1_1_1.INode( 'MakeCopy_2' , PyMakeCopy_2 ) - MakeCopy_2.SetName( 'MakeCopy_2' ) - MakeCopy_2.SetAuthor( '' ) - MakeCopy_2.SetComment( 'Compute Node' ) - MakeCopy_2.Coords( 391 , 264 ) - IMakeCopy_2shape1 = MakeCopy_2.InPort( 'shape1' , 'objref' ) - IMakeCopy_2Gate = MakeCopy_2.GetInPort( 'Gate' ) - OMakeCopy_2shape = MakeCopy_2.OutPort( 'shape' , 'objref' ) - OMakeCopy_2Gate = MakeCopy_2.GetOutPort( 'Gate' ) - - PyMakeSphere_1 = [] - PyMakeSphere_1.append( 'def MakeSphere_1(x1,y1,z1,radius): ' ) - PyMakeSphere_1.append( ' apoint=MakeVertex(x1,y1,z1) ' ) - PyMakeSphere_1.append( ' shape=MakeSpherePntR(apoint,radius) ' ) - PyMakeSphere_1.append( ' return shape ' ) - MakeSphere_1 = aNewDataFlow_1_4_1_1_1_1.INode( 'MakeSphere_1' , PyMakeSphere_1 ) - MakeSphere_1.SetName( 'MakeSphere_1' ) - MakeSphere_1.SetAuthor( '' ) - MakeSphere_1.SetComment( 'Compute Node' ) - MakeSphere_1.Coords( 203 , 315 ) - IMakeSphere_1x1 = MakeSphere_1.InPort( 'x1' , 'double' ) - IMakeSphere_1y1 = MakeSphere_1.InPort( 'y1' , 'double' ) - IMakeSphere_1z1 = MakeSphere_1.InPort( 'z1' , 'double' ) - IMakeSphere_1radius = MakeSphere_1.InPort( 'radius' , 'double' ) - IMakeSphere_1Gate = MakeSphere_1.GetInPort( 'Gate' ) - OMakeSphere_1shape = MakeSphere_1.OutPort( 'shape' , 'objref' ) - OMakeSphere_1Gate = MakeSphere_1.GetOutPort( 'Gate' ) - - PyMakeFuse_1 = [] - PyMakeFuse_1.append( 'def MakeFuse_1(shape1,shape2): ' ) - PyMakeFuse_1.append( ' # fuse operation 3 ' ) - PyMakeFuse_1.append( ' shape = MakeBoolean(shape1,shape2,3) ' ) - PyMakeFuse_1.append( ' return shape ' ) - MakeFuse_1 = aNewDataFlow_1_4_1_1_1_1.INode( 'MakeFuse_1' , PyMakeFuse_1 ) - MakeFuse_1.SetName( 'MakeFuse_1' ) - MakeFuse_1.SetAuthor( '' ) - MakeFuse_1.SetComment( 'Compute Node' ) - MakeFuse_1.Coords( 823 , 116 ) - IMakeFuse_1shape1 = MakeFuse_1.InPort( 'shape1' , 'objref' ) - IMakeFuse_1shape2 = MakeFuse_1.InPort( 'shape2' , 'objref' ) - IMakeFuse_1Gate = MakeFuse_1.GetInPort( 'Gate' ) - OMakeFuse_1shape = MakeFuse_1.OutPort( 'shape' , 'objref' ) - OMakeFuse_1Gate = MakeFuse_1.GetOutPort( 'Gate' ) - - PyMakeFuse_2 = [] - PyMakeFuse_2.append( 'def MakeFuse_2(shape1,shape2): ' ) - PyMakeFuse_2.append( ' # fuse operation 3 ' ) - PyMakeFuse_2.append( ' shape = MakeBoolean(shape1,shape2,3) ' ) - PyMakeFuse_2.append( ' from SALOME_NamingServicePy import SALOME_NamingServicePy_i ' ) - PyMakeFuse_2.append( ' myNamingService = SALOME_NamingServicePy_i(orb) ' ) - PyMakeFuse_2.append( ' aSession = myNamingService.Resolve('/Kernel/Session') ' ) - PyMakeFuse_2.append( ' aStudyId = aSession.GetActiveStudyId() ' ) - PyMakeFuse_2.append( ' myStudyManager = myNamingService.Resolve('/myStudyManager') ' ) - PyMakeFuse_2.append( ' aStudy = myStudyManager.GetStudyByID(aStudyId) ' ) - PyMakeFuse_2.append( ' aSObject = geom.AddInStudy(aStudy, shape, "shape", None) ' ) - PyMakeFuse_2.append( ' return shape ' ) - MakeFuse_2 = aNewDataFlow_1_4_1_1_1_1.INode( 'MakeFuse_2' , PyMakeFuse_2 ) - MakeFuse_2.SetName( 'MakeFuse_2' ) - MakeFuse_2.SetAuthor( '' ) - MakeFuse_2.SetComment( 'Compute Node' ) - MakeFuse_2.Coords( 1049 , 295 ) - IMakeFuse_2shape1 = MakeFuse_2.InPort( 'shape1' , 'objref' ) - IMakeFuse_2shape2 = MakeFuse_2.InPort( 'shape2' , 'objref' ) - IMakeFuse_2Gate = MakeFuse_2.GetInPort( 'Gate' ) - OMakeFuse_2shape = MakeFuse_2.OutPort( 'shape' , 'objref' ) - OMakeFuse_2Gate = MakeFuse_2.GetOutPort( 'Gate' ) - - PyMakeTranslation_1 = [] - PyMakeTranslation_1.append( 'def MakeTranslation_1(shape1,x1,y1,z1): ' ) - PyMakeTranslation_1.append( ' shape = MakeTranslation(shape1,x1,y1,z1) ' ) - PyMakeTranslation_1.append( ' return shape' ) - MakeTranslation_1 = aNewDataFlow_1_4_1_1_1_1.INode( 'MakeTranslation_1' , PyMakeTranslation_1 ) - MakeTranslation_1.SetName( 'MakeTranslation_1' ) - MakeTranslation_1.SetAuthor( '' ) - MakeTranslation_1.SetComment( 'Compute Node' ) - MakeTranslation_1.Coords( 621 , 12 ) - IMakeTranslation_1shape1 = MakeTranslation_1.InPort( 'shape1' , 'objref' ) - IMakeTranslation_1x1 = MakeTranslation_1.InPort( 'x1' , 'double' ) - IMakeTranslation_1y1 = MakeTranslation_1.InPort( 'y1' , 'double' ) - IMakeTranslation_1z1 = MakeTranslation_1.InPort( 'z1' , 'double' ) - IMakeTranslation_1Gate = MakeTranslation_1.GetInPort( 'Gate' ) - OMakeTranslation_1shape = MakeTranslation_1.OutPort( 'shape' , 'objref' ) - OMakeTranslation_1Gate = MakeTranslation_1.GetOutPort( 'Gate' ) - - # Creation of Macro Nodes - aNewDataFlow_1_5_1_1_3_3_1_1_1_3_1 = DefaNewDataFlow_1_5_1_1_3_3_1_1_1_3_1() - Macro_aNewDataFlow_1_5_1_1 = aNewDataFlow_1_4_1_1_1_1.GraphMNode( aNewDataFlow_1_5_1_1_3_3_1_1_1_3_1 ) - Macro_aNewDataFlow_1_5_1_1.SetCoupled( 'aNewDataFlow_1_5_1_1_3_3_1_1_1_3_1' ) - Macro_aNewDataFlow_1_5_1_1.SetName( 'Macro_aNewDataFlow_1_5_1_1' ) - Macro_aNewDataFlow_1_5_1_1.SetAuthor( '' ) - Macro_aNewDataFlow_1_5_1_1.SetComment( 'Macro Node' ) - Macro_aNewDataFlow_1_5_1_1.Coords( 391 , 121 ) - IMacro_aNewDataFlow_1_5_1_1sum__a = Macro_aNewDataFlow_1_5_1_1.GetInPort( 'sum__a' ) - IMacro_aNewDataFlow_1_5_1_1sum__b = Macro_aNewDataFlow_1_5_1_1.GetInPort( 'sum__b' ) - IMacro_aNewDataFlow_1_5_1_1Gate = Macro_aNewDataFlow_1_5_1_1.GetInPort( 'Gate' ) - OMacro_aNewDataFlow_1_5_1_1Mult__b = Macro_aNewDataFlow_1_5_1_1.GetOutPort( 'Mult__b' ) - OMacro_aNewDataFlow_1_5_1_1Gate = Macro_aNewDataFlow_1_5_1_1.GetOutPort( 'Gate' ) - - # Creation of Links - LgagGateMakeBox1Gate = aNewDataFlow_1_4_1_1_1_1.Link( OgagGate , IMakeBox1Gate ) - - LgagGateMakeSphere_1Gate = aNewDataFlow_1_4_1_1_1_1.Link( OgagGate , IMakeSphere_1Gate ) - LgagGateMakeSphere_1Gate.AddCoord( 1 , 175 , 470 ) - LgagGateMakeSphere_1Gate.AddCoord( 2 , 175 , 198 ) - - LMakeBox1shapeMakeCopy_1shape1 = aNewDataFlow_1_4_1_1_1_1.Link( OMakeBox1shape , IMakeCopy_1shape1 ) - - LMakeBox1shapeMakeCopy_2shape1 = aNewDataFlow_1_4_1_1_1_1.Link( OMakeBox1shape , IMakeCopy_2shape1 ) - LMakeBox1shapeMakeCopy_2shape1.AddCoord( 1 , 373 , 211 ) - - LMakeCopy_1shapeMakeTranslation_1shape1 = aNewDataFlow_1_4_1_1_1_1.Link( OMakeCopy_1shape , IMakeTranslation_1shape1 ) - - LMakeCopy_2shapeMakeFuse_1shape2 = aNewDataFlow_1_4_1_1_1_1.Link( OMakeCopy_2shape , IMakeFuse_1shape2 ) - LMakeCopy_2shapeMakeFuse_1shape2.AddCoord( 1 , 674 , 207 ) - - LMakeSphere_1shapeMakeFuse_2shape2 = aNewDataFlow_1_4_1_1_1_1.Link( OMakeSphere_1shape , IMakeFuse_2shape2 ) - - LMakeFuse_1shapeMakeFuse_2shape1 = aNewDataFlow_1_4_1_1_1_1.Link( OMakeFuse_1shape , IMakeFuse_2shape1 ) - LMakeFuse_1shapeMakeFuse_2shape1.AddCoord( 1 , 1017 , 366 ) - LMakeFuse_1shapeMakeFuse_2shape1.AddCoord( 2 , 1017 , 187 ) - - LMacro_aNewDataFlow_1_5_1_1Mult__bMakeTranslation_1y1 = aNewDataFlow_1_4_1_1_1_1.Link( OMacro_aNewDataFlow_1_5_1_1Mult__b , IMakeTranslation_1y1 ) - - LMakeTranslation_1shapeMakeFuse_1shape1 = aNewDataFlow_1_4_1_1_1_1.Link( OMakeTranslation_1shape , IMakeFuse_1shape1 ) - - # Input datas - IMakeBox1x1.Input( 0 ) - IMakeBox1y1.Input( 0 ) - IMakeBox1z1.Input( 0 ) - IMakeBox1x2.Input( 50 ) - IMakeBox1y2.Input( 50 ) - IMakeBox1z2.Input( 50 ) - IMakeSphere_1x1.Input( 0 ) - IMakeSphere_1y1.Input( 0 ) - IMakeSphere_1z1.Input( 0 ) - IMakeSphere_1radius.Input( 12 ) - IMacro_aNewDataFlow_1_5_1_1sum__a.Input( 1 ) - IMacro_aNewDataFlow_1_5_1_1sum__b.Input( 2 ) - IMakeTranslation_1x1.Input( 25 ) - IMakeTranslation_1z1.Input( 25 ) - - # Output Ports of the graph - #OMakeFuse_2shape = MakeFuse_2.GetOutPort( 'shape' ) - return aNewDataFlow_1_4_1_1_1_1 - -# Graph creation of aNewDataFlow_1_5_1_1_3_3_1_1_1_3_1 -def DefaNewDataFlow_1_5_1_1_3_3_1_1_1_3_1() : - aNewDataFlow_1_5_1_1_3_3_1_1_1_3_1 = Graph( 'aNewDataFlow_1_5_1_1_3_3_1_1_1_3_1' ) - aNewDataFlow_1_5_1_1_3_3_1_1_1_3_1.SetCoupled( 'Macro_aNewDataFlow_1_5_1_1' ) - aNewDataFlow_1_5_1_1_3_3_1_1_1_3_1.SetName( 'aNewDataFlow_1_5_1_1_3_3_1_1_1_3_1' ) - aNewDataFlow_1_5_1_1_3_3_1_1_1_3_1.SetAuthor( '' ) - aNewDataFlow_1_5_1_1_3_3_1_1_1_3_1.SetComment( '' ) - aNewDataFlow_1_5_1_1_3_3_1_1_1_3_1.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - # Creation of InLine Nodes - Pysum = [] - Pysum.append( 'def sum(a, b): ' ) - Pysum.append( ' return a+b ' ) - sum = aNewDataFlow_1_5_1_1_3_3_1_1_1_3_1.INode( 'sum' , Pysum ) - sum.SetName( 'sum' ) - sum.SetAuthor( '' ) - sum.SetComment( 'Compute Node' ) - sum.Coords( 52 , 80 ) - Isuma = sum.InPort( 'a' , 'double' ) - Isumb = sum.InPort( 'b' , 'double' ) - IsumGate = sum.GetInPort( 'Gate' ) - Osums = sum.OutPort( 's' , 'double' ) - OsumGate = sum.GetOutPort( 'Gate' ) - - PyMult = [] - PyMult.append( 'def Mult(a): ' ) - PyMult.append( ' b = a*3 ' ) - PyMult.append( ' return b ' ) - Mult = aNewDataFlow_1_5_1_1_3_3_1_1_1_3_1.INode( 'Mult' , PyMult ) - Mult.SetName( 'Mult' ) - Mult.SetAuthor( '' ) - Mult.SetComment( 'Compute Node' ) - Mult.Coords( 298 , 72 ) - IMulta = Mult.InPort( 'a' , 'double' ) - IMultGate = Mult.GetInPort( 'Gate' ) - OMultb = Mult.OutPort( 'b' , 'double' ) - OMultGate = Mult.GetOutPort( 'Gate' ) - - # Creation of Links - LsumsMulta = aNewDataFlow_1_5_1_1_3_3_1_1_1_3_1.Link( Osums , IMulta ) - - # Input Ports of the graph - #Isuma = sum.GetInPort( 'a' ) - #Isumb = sum.GetInPort( 'b' ) - - # Output Ports of the graph - #OMultb = Mult.GetOutPort( 'b' ) - return aNewDataFlow_1_5_1_1_3_3_1_1_1_3_1 - - -aNewDataFlow_1_4_1_1_1_1 = DefaNewDataFlow_1_4_1_1_1_1() diff --git a/Superv/Python/NewGraphEssai.py b/Superv/Python/NewGraphEssai.py deleted file mode 100644 index 22b9101..0000000 --- a/Superv/Python/NewGraphEssai.py +++ /dev/null @@ -1,117 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph GraphEssai -# -from SuperV import * -# Graph creation -NewGraphEssai = Graph( 'NewGraphEssai' ) -NewGraphEssai.SetName( 'NewGraphEssai' ) -NewGraphEssai.SetAuthor( '' ) -NewGraphEssai.SetComment( '' ) -NewGraphEssai.Coords( 0 , 0 ) - -# Creation of Factory Nodes - -Sub = NewGraphEssai.FNode( 'SubComponent' , 'SubComponent' , 'Sub' ) -Sub.SetName( 'Sub' ) -Sub.SetAuthor( '' ) -Sub.SetContainer( 'SubDivServer' ) -Sub.SetComment( 'Sub from SubComponent' ) -Sub.Coords( 413 , 74 ) - -Mul = NewGraphEssai.FNode( 'MulComponent' , 'MulComponent' , 'Mul' ) -Mul.SetName( 'Mul' ) -Mul.SetAuthor( '' ) -Mul.SetContainer( 'MulServer' ) -Mul.SetComment( 'Mul from MulComponent' ) -Mul.Coords( 617 , 268 ) - -Div = NewGraphEssai.FNode( 'DivComponent' , 'DivComponent' , 'Div' ) -Div.SetName( 'Div' ) -Div.SetAuthor( '' ) -Div.SetContainer( 'SubDivServer' ) -Div.SetComment( 'Div from DivComponent' ) -Div.Coords( 823 , 74 ) - -Addition = NewGraphEssai.FNode( 'AddComponent' , 'AddComponent' , 'Addition' ) -Addition.SetName( 'Addition' ) -Addition.SetAuthor( '' ) -Addition.SetContainer( 'localhost/AddServer' ) -Addition.SetComment( 'Addition from AddComponent' ) -Addition.Coords( 11 , 268 ) - -# Creation of Computing Nodes -Add_ServiceinParameter = [] -Add_ServiceinParameter.append( SALOME_ModuleCatalog.ServicesParameter( 'Adder' , 'Adder' ) ) -Add_ServiceinParameter.append( SALOME_ModuleCatalog.ServicesParameter( 'double' , 'x' ) ) -Add_ServiceinParameter.append( SALOME_ModuleCatalog.ServicesParameter( 'double' , 'y' ) ) -Add_ServiceoutParameter = [] -Add_ServiceoutParameter.append( SALOME_ModuleCatalog.ServicesParameter( 'double' , 'FuncValue' ) ) -Add_ServiceoutParameter.append( SALOME_ModuleCatalog.ServicesParameter( 'double' , 'z' ) ) -Add_Service = SALOME_ModuleCatalog.Service( 'Add' , Add_ServiceinParameter , Add_ServiceoutParameter , 0 ) -Add = NewGraphEssai.CNode( Add_Service ) -Add.SetName( 'Add' ) -Add.SetAuthor( '' ) -Add.SetComment( 'Compute Node' ) -Add.Coords( 215 , 268 ) - -# Creation of Links -Subz = Sub.Port( 'z' ) -Divx = NewGraphEssai.Link( Subz , Div.Port( 'x' ) ) - -Mulx = NewGraphEssai.Link( Subz , Mul.Port( 'x' ) ) -Mulx.AddCoord( 1 , 595 , 348 ) -Mulx.AddCoord( 2 , 595 , 154 ) - -Mulz = Mul.Port( 'z' ) -Divy = NewGraphEssai.Link( Mulz , Div.Port( 'y' ) ) -Divy.AddCoord( 1 , 805 , 183 ) -Divy.AddCoord( 2 , 806 , 348 ) - -AdditionAdder = Addition.Port( 'Adder' ) -AddAdder = NewGraphEssai.Link( AdditionAdder , Add.Port( 'Adder' ) ) - -AddFuncValue = Add.Port( 'FuncValue' ) -Suby = NewGraphEssai.Link( AddFuncValue , Sub.Port( 'y' ) ) -Suby.AddCoord( 1 , 395 , 183 ) -Suby.AddCoord( 2 , 395 , 349 ) - -Addz = Add.Port( 'z' ) -Muly = NewGraphEssai.Link( Addz , Mul.Port( 'y' ) ) - -# Creation of Input datas -Subx = Sub.Input( 'x' , 4.5) -Addx = Add.Input( 'x' , 1.5) -Addy = Add.Input( 'y' , 3) - -# Creation of Output variables -Divz = Div.Port( 'z' ) - -NewGraphEssai.Run() - -NewGraphEssai.DoneW() - -NewGraphEssai.State() - -NewGraphEssai.PrintPorts() - diff --git a/Superv/Python/NewGraphGeomEssai.py b/Superv/Python/NewGraphGeomEssai.py deleted file mode 100644 index 4ffc0ec..0000000 --- a/Superv/Python/NewGraphGeomEssai.py +++ /dev/null @@ -1,124 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph aNewDataFlow_1 -# -from SuperV import * - -# Graph creation of aNewDataFlow_1 -def DefaNewDataFlow_1() : - aNewDataFlow_1 = Graph( 'aNewDataFlow_1' ) - aNewDataFlow_1.SetName( 'aNewDataFlow_1' ) - aNewDataFlow_1.SetAuthor( '' ) - aNewDataFlow_1.SetComment( '' ) - aNewDataFlow_1.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - SetStudyID = aNewDataFlow_1.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'SetStudyID' ) - SetStudyID.SetName( 'SetStudyID' ) - SetStudyID.SetAuthor( '' ) - SetStudyID.SetContainer( 'localhost/FactoryServer' ) - SetStudyID.SetComment( 'SetStudyID from GEOM_Superv' ) - SetStudyID.Coords( 9 , 118 ) - ISetStudyIDtheStudyID = SetStudyID.GetInPort( 'theStudyID' ) - ISetStudyIDGate = SetStudyID.GetInPort( 'Gate' ) - OSetStudyIDGate = SetStudyID.GetOutPort( 'Gate' ) - - MakeSphere = aNewDataFlow_1.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeSphere' ) - MakeSphere.SetName( 'MakeSphere' ) - MakeSphere.SetAuthor( '' ) - MakeSphere.SetContainer( 'localhost/FactoryServer' ) - MakeSphere.SetComment( 'MakeSphere from GEOM_Superv' ) - MakeSphere.Coords( 202 , 58 ) - IMakeSpheretheX = MakeSphere.GetInPort( 'theX' ) - IMakeSpheretheY = MakeSphere.GetInPort( 'theY' ) - IMakeSpheretheZ = MakeSphere.GetInPort( 'theZ' ) - IMakeSpheretheRadius = MakeSphere.GetInPort( 'theRadius' ) - IMakeSphereGate = MakeSphere.GetInPort( 'Gate' ) - OMakeSpherereturn = MakeSphere.GetOutPort( 'return' ) - OMakeSphereGate = MakeSphere.GetOutPort( 'Gate' ) - - MakeCopy = aNewDataFlow_1.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeCopy' ) - MakeCopy.SetName( 'MakeCopy' ) - MakeCopy.SetAuthor( '' ) - MakeCopy.SetContainer( 'localhost/FactoryServer' ) - MakeCopy.SetComment( 'MakeCopy from GEOM_Superv' ) - MakeCopy.Coords( 425 , 11 ) - IMakeCopytheOriginal = MakeCopy.GetInPort( 'theOriginal' ) - IMakeCopyGate = MakeCopy.GetInPort( 'Gate' ) - OMakeCopyreturn = MakeCopy.GetOutPort( 'return' ) - OMakeCopyGate = MakeCopy.GetOutPort( 'Gate' ) - - TranslateDXDYDZ = aNewDataFlow_1.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'TranslateDXDYDZ' ) - TranslateDXDYDZ.SetName( 'TranslateDXDYDZ' ) - TranslateDXDYDZ.SetAuthor( '' ) - TranslateDXDYDZ.SetContainer( 'localhost/FactoryServer' ) - TranslateDXDYDZ.SetComment( 'TranslateDXDYDZ from GEOM_Superv' ) - TranslateDXDYDZ.Coords( 428 , 197 ) - ITranslateDXDYDZtheObject = TranslateDXDYDZ.GetInPort( 'theObject' ) - ITranslateDXDYDZtheDX = TranslateDXDYDZ.GetInPort( 'theDX' ) - ITranslateDXDYDZtheDY = TranslateDXDYDZ.GetInPort( 'theDY' ) - ITranslateDXDYDZtheDZ = TranslateDXDYDZ.GetInPort( 'theDZ' ) - ITranslateDXDYDZGate = TranslateDXDYDZ.GetInPort( 'Gate' ) - OTranslateDXDYDZreturn = TranslateDXDYDZ.GetOutPort( 'return' ) - OTranslateDXDYDZGate = TranslateDXDYDZ.GetOutPort( 'Gate' ) - - MakeFuse = aNewDataFlow_1.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeFuse' ) - MakeFuse.SetName( 'MakeFuse' ) - MakeFuse.SetAuthor( '' ) - MakeFuse.SetContainer( 'localhost/FactoryServer' ) - MakeFuse.SetComment( 'MakeFuse from GEOM_Superv' ) - MakeFuse.Coords( 651 , 103 ) - IMakeFusetheShape1 = MakeFuse.GetInPort( 'theShape1' ) - IMakeFusetheShape2 = MakeFuse.GetInPort( 'theShape2' ) - IMakeFuseGate = MakeFuse.GetInPort( 'Gate' ) - OMakeFusereturn = MakeFuse.GetOutPort( 'return' ) - OMakeFuseGate = MakeFuse.GetOutPort( 'Gate' ) - - # Creation of Links - LSetStudyIDGateMakeSphereGate = aNewDataFlow_1.Link( OSetStudyIDGate , IMakeSphereGate ) - - LMakeSpherereturnMakeCopytheOriginal = aNewDataFlow_1.Link( OMakeSpherereturn , IMakeCopytheOriginal ) - - LMakeSpherereturnTranslateDXDYDZtheObject = aNewDataFlow_1.Link( OMakeSpherereturn , ITranslateDXDYDZtheObject ) - - LMakeCopyreturnMakeFusetheShape1 = aNewDataFlow_1.Link( OMakeCopyreturn , IMakeFusetheShape1 ) - - LTranslateDXDYDZreturnMakeFusetheShape2 = aNewDataFlow_1.Link( OTranslateDXDYDZreturn , IMakeFusetheShape2 ) - - # Input datas - ISetStudyIDtheStudyID.Input( 1 ) - IMakeSpheretheX.Input( 0 ) - IMakeSpheretheY.Input( 0 ) - IMakeSpheretheZ.Input( 0 ) - IMakeSpheretheRadius.Input( 50 ) - ITranslateDXDYDZtheDX.Input( 80 ) - ITranslateDXDYDZtheDY.Input( 0 ) - ITranslateDXDYDZtheDZ.Input( 0 ) - - # Output Ports of the graph - #OMakeFusereturn = MakeFuse.GetOutPort( 'return' ) - return aNewDataFlow_1 - - -aNewDataFlow_1 = DefaNewDataFlow_1() diff --git a/Superv/Python/NewGraphGeomEssaiGates.py b/Superv/Python/NewGraphGeomEssaiGates.py deleted file mode 100644 index 7330428..0000000 --- a/Superv/Python/NewGraphGeomEssaiGates.py +++ /dev/null @@ -1,132 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph aNewDataFlow_1 -# -from SuperV import * - -# Graph creation of aNewDataFlow_1 -def DefaNewDataFlow_1() : - aNewDataFlow_1 = Graph( 'aNewDataFlow_1' ) - aNewDataFlow_1.SetName( 'aNewDataFlow_1' ) - aNewDataFlow_1.SetAuthor( '' ) - aNewDataFlow_1.SetComment( '' ) - aNewDataFlow_1.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - SetStudyID = aNewDataFlow_1.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'SetStudyID' ) - SetStudyID.SetName( 'SetStudyID' ) - SetStudyID.SetAuthor( '' ) - SetStudyID.SetContainer( 'localhost/FactoryServer' ) - SetStudyID.SetComment( 'SetStudyID from GEOM_Superv' ) - SetStudyID.Coords( 9 , 118 ) - ISetStudyIDtheStudyID = SetStudyID.GetInPort( 'theStudyID' ) - ISetStudyIDGate = SetStudyID.GetInPort( 'Gate' ) - OSetStudyIDGate = SetStudyID.GetOutPort( 'Gate' ) - - MakeSphere = aNewDataFlow_1.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeSphere' ) - MakeSphere.SetName( 'MakeSphere' ) - MakeSphere.SetAuthor( '' ) - MakeSphere.SetContainer( 'localhost/FactoryServer' ) - MakeSphere.SetComment( 'MakeSphere from GEOM_Superv' ) - MakeSphere.Coords( 202 , 58 ) - IMakeSpheretheX = MakeSphere.GetInPort( 'theX' ) - IMakeSpheretheY = MakeSphere.GetInPort( 'theY' ) - IMakeSpheretheZ = MakeSphere.GetInPort( 'theZ' ) - IMakeSpheretheRadius = MakeSphere.GetInPort( 'theRadius' ) - IMakeSphereGate = MakeSphere.GetInPort( 'Gate' ) - OMakeSpherereturn = MakeSphere.GetOutPort( 'return' ) - OMakeSphereGate = MakeSphere.GetOutPort( 'Gate' ) - - MakeCopy = aNewDataFlow_1.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeCopy' ) - MakeCopy.SetName( 'MakeCopy' ) - MakeCopy.SetAuthor( '' ) - MakeCopy.SetContainer( 'localhost/FactoryServer' ) - MakeCopy.SetComment( 'MakeCopy from GEOM_Superv' ) - MakeCopy.Coords( 425 , 11 ) - IMakeCopytheOriginal = MakeCopy.GetInPort( 'theOriginal' ) - IMakeCopyGate = MakeCopy.GetInPort( 'Gate' ) - OMakeCopyreturn = MakeCopy.GetOutPort( 'return' ) - OMakeCopyGate = MakeCopy.GetOutPort( 'Gate' ) - - TranslateDXDYDZ = aNewDataFlow_1.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'TranslateDXDYDZ' ) - TranslateDXDYDZ.SetName( 'TranslateDXDYDZ' ) - TranslateDXDYDZ.SetAuthor( '' ) - TranslateDXDYDZ.SetContainer( 'localhost/FactoryServer' ) - TranslateDXDYDZ.SetComment( 'TranslateDXDYDZ from GEOM_Superv' ) - TranslateDXDYDZ.Coords( 428 , 197 ) - ITranslateDXDYDZtheObject = TranslateDXDYDZ.GetInPort( 'theObject' ) - ITranslateDXDYDZtheDX = TranslateDXDYDZ.GetInPort( 'theDX' ) - ITranslateDXDYDZtheDY = TranslateDXDYDZ.GetInPort( 'theDY' ) - ITranslateDXDYDZtheDZ = TranslateDXDYDZ.GetInPort( 'theDZ' ) - ITranslateDXDYDZGate = TranslateDXDYDZ.GetInPort( 'Gate' ) - OTranslateDXDYDZreturn = TranslateDXDYDZ.GetOutPort( 'return' ) - OTranslateDXDYDZGate = TranslateDXDYDZ.GetOutPort( 'Gate' ) - - MakeFuse = aNewDataFlow_1.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeFuse' ) - MakeFuse.SetName( 'MakeFuse' ) - MakeFuse.SetAuthor( '' ) - MakeFuse.SetContainer( 'localhost/FactoryServer' ) - MakeFuse.SetComment( 'MakeFuse from GEOM_Superv' ) - MakeFuse.Coords( 651 , 103 ) - IMakeFusetheShape1 = MakeFuse.GetInPort( 'theShape1' ) - IMakeFusetheShape2 = MakeFuse.GetInPort( 'theShape2' ) - IMakeFuseGate = MakeFuse.GetInPort( 'Gate' ) - OMakeFusereturn = MakeFuse.GetOutPort( 'return' ) - OMakeFuseGate = MakeFuse.GetOutPort( 'Gate' ) - - # Creation of Links - LSetStudyIDGateMakeSphereGate = aNewDataFlow_1.Link( OSetStudyIDGate , IMakeSphereGate ) - - LMakeSpherereturnMakeCopytheOriginal = aNewDataFlow_1.Link( OMakeSpherereturn , IMakeCopytheOriginal ) - - LMakeSpherereturnTranslateDXDYDZtheObject = aNewDataFlow_1.Link( OMakeSpherereturn , ITranslateDXDYDZtheObject ) - - LMakeSphereGateMakeCopyGate = aNewDataFlow_1.Link( OMakeSphereGate , IMakeCopyGate ) - - LMakeCopyreturnMakeFusetheShape1 = aNewDataFlow_1.Link( OMakeCopyreturn , IMakeFusetheShape1 ) - - LMakeCopyGateTranslateDXDYDZGate = aNewDataFlow_1.Link( OMakeCopyGate , ITranslateDXDYDZGate ) - LMakeCopyGateTranslateDXDYDZGate.AddCoord( 1 , 390 , 352 ) - LMakeCopyGateTranslateDXDYDZGate.AddCoord( 2 , 618 , 107 ) - - LTranslateDXDYDZreturnMakeFusetheShape2 = aNewDataFlow_1.Link( OTranslateDXDYDZreturn , IMakeFusetheShape2 ) - - LTranslateDXDYDZGateMakeFuseGate = aNewDataFlow_1.Link( OTranslateDXDYDZGate , IMakeFuseGate ) - - # Input datas - ISetStudyIDtheStudyID.Input( 1 ) - IMakeSpheretheX.Input( 0 ) - IMakeSpheretheY.Input( 0 ) - IMakeSpheretheZ.Input( 0 ) - IMakeSpheretheRadius.Input( 50 ) - ITranslateDXDYDZtheDX.Input( 80 ) - ITranslateDXDYDZtheDY.Input( 0 ) - ITranslateDXDYDZtheDZ.Input( 0 ) - - # Output Ports of the graph - #OMakeFusereturn = MakeFuse.GetOutPort( 'return' ) - return aNewDataFlow_1 - - -aNewDataFlow_1 = DefaNewDataFlow_1() diff --git a/Superv/Python/NewGraphGeomEssaiGates_py.py b/Superv/Python/NewGraphGeomEssaiGates_py.py deleted file mode 100644 index 8e21492..0000000 --- a/Superv/Python/NewGraphGeomEssaiGates_py.py +++ /dev/null @@ -1,156 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph aNewDataFlow_1_4_2_1 -# -from SuperV import * - -# Graph creation of aNewDataFlow_1_4_2_1 -def DefaNewDataFlow_1_4_2_1() : - aNewDataFlow_1_4_2_1 = Graph( 'aNewDataFlow_1_4_2_1' ) - aNewDataFlow_1_4_2_1.SetName( 'aNewDataFlow_1_4_2_1' ) - aNewDataFlow_1_4_2_1.SetAuthor( '' ) - aNewDataFlow_1_4_2_1.SetComment( '' ) - aNewDataFlow_1_4_2_1.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - # Creation of InLine Nodes - Pygag = [] - Pygag.append( 'from batchmode_geompy import * ' ) - Pygag.append( 'def gag(): ' ) - Pygag.append( ' # This is a gag ' ) - Pygag.append( ' return 1 ' ) - gag = aNewDataFlow_1_4_2_1.INode( 'gag' , Pygag ) - gag.SetName( 'gag' ) - gag.SetAuthor( '' ) - gag.SetComment( 'Compute Node' ) - gag.Coords( 0 , 123 ) - IgagGate = gag.GetInPort( 'Gate' ) - OgagGate = gag.GetOutPort( 'Gate' ) - - PyMakeCopy_1 = [] - PyMakeCopy_1.append( 'def MakeCopy_1(shape1): ' ) - PyMakeCopy_1.append( ' shape=MakeCopy(shape1) ' ) - PyMakeCopy_1.append( ' return shape ' ) - MakeCopy_1 = aNewDataFlow_1_4_2_1.INode( 'MakeCopy_1' , PyMakeCopy_1 ) - MakeCopy_1.SetName( 'MakeCopy_1' ) - MakeCopy_1.SetAuthor( '' ) - MakeCopy_1.SetComment( 'Compute Node' ) - MakeCopy_1.Coords( 385 , 3 ) - IMakeCopy_1shape1 = MakeCopy_1.InPort( 'shape1' , 'objref' ) - IMakeCopy_1Gate = MakeCopy_1.GetInPort( 'Gate' ) - OMakeCopy_1shape = MakeCopy_1.OutPort( 'shape' , 'objref' ) - OMakeCopy_1Gate = MakeCopy_1.GetOutPort( 'Gate' ) - - PyMakeSphere_1 = [] - PyMakeSphere_1.append( 'def MakeSphere_1(x1,y1,z1,radius): ' ) - PyMakeSphere_1.append( ' apoint=MakeVertex(x1,y1,z1) ' ) - PyMakeSphere_1.append( ' shape=MakeSpherePntR(apoint,radius) ' ) - PyMakeSphere_1.append( ' return shape ' ) - MakeSphere_1 = aNewDataFlow_1_4_2_1.INode( 'MakeSphere_1' , PyMakeSphere_1 ) - MakeSphere_1.SetName( 'MakeSphere_1' ) - MakeSphere_1.SetAuthor( '' ) - MakeSphere_1.SetComment( 'Compute Node' ) - MakeSphere_1.Coords( 193 , 67 ) - IMakeSphere_1x1 = MakeSphere_1.InPort( 'x1' , 'double' ) - IMakeSphere_1y1 = MakeSphere_1.InPort( 'y1' , 'double' ) - IMakeSphere_1z1 = MakeSphere_1.InPort( 'z1' , 'double' ) - IMakeSphere_1radius = MakeSphere_1.InPort( 'radius' , 'double' ) - IMakeSphere_1Gate = MakeSphere_1.GetInPort( 'Gate' ) - OMakeSphere_1shape = MakeSphere_1.OutPort( 'shape' , 'objref' ) - OMakeSphere_1Gate = MakeSphere_1.GetOutPort( 'Gate' ) - - PyMakeTranslation_1 = [] - PyMakeTranslation_1.append( 'def MakeTranslation_1(shape1,x1,y1,z1): ' ) - PyMakeTranslation_1.append( ' shape = MakeTranslation(shape1,x1,y1,z1) ' ) - PyMakeTranslation_1.append( ' return shape ' ) - MakeTranslation_1 = aNewDataFlow_1_4_2_1.INode( 'MakeTranslation_1' , PyMakeTranslation_1 ) - MakeTranslation_1.SetName( 'MakeTranslation_1' ) - MakeTranslation_1.SetAuthor( '' ) - MakeTranslation_1.SetComment( 'Compute Node' ) - MakeTranslation_1.Coords( 388 , 146 ) - IMakeTranslation_1shape1 = MakeTranslation_1.InPort( 'shape1' , 'objref' ) - IMakeTranslation_1x1 = MakeTranslation_1.InPort( 'x1' , 'double' ) - IMakeTranslation_1y1 = MakeTranslation_1.InPort( 'y1' , 'double' ) - IMakeTranslation_1z1 = MakeTranslation_1.InPort( 'z1' , 'double' ) - IMakeTranslation_1Gate = MakeTranslation_1.GetInPort( 'Gate' ) - OMakeTranslation_1shape = MakeTranslation_1.OutPort( 'shape' , 'objref' ) - OMakeTranslation_1Gate = MakeTranslation_1.GetOutPort( 'Gate' ) - - PyMakeFuse_1 = [] - PyMakeFuse_1.append( 'def MakeFuse_1(shape1,shape2): ' ) - PyMakeFuse_1.append( ' # fuse operation 3 ' ) - PyMakeFuse_1.append( ' shape = MakeBoolean(shape1,shape2,3) ' ) - PyMakeFuse_1.append( ' from SALOME_NamingServicePy import SALOME_NamingServicePy_i ' ) - PyMakeFuse_1.append( ' myNamingService = SALOME_NamingServicePy_i(orb) ' ) - PyMakeFuse_1.append( ' aSession = myNamingService.Resolve('/Kernel/Session') ' ) - PyMakeFuse_1.append( ' aStudyId = aSession.GetActiveStudyId() ' ) - PyMakeFuse_1.append( ' myStudyManager = myNamingService.Resolve('/myStudyManager') ' ) - PyMakeFuse_1.append( ' aStudy = myStudyManager.GetStudyByID(aStudyId) ' ) - PyMakeFuse_1.append( ' aSObject = geom.AddInStudy(aStudy, shape, "shape", None) ' ) - PyMakeFuse_1.append( ' return shape ' ) - MakeFuse_1 = aNewDataFlow_1_4_2_1.INode( 'MakeFuse_1' , PyMakeFuse_1 ) - MakeFuse_1.SetName( 'MakeFuse_1' ) - MakeFuse_1.SetAuthor( '' ) - MakeFuse_1.SetComment( 'Compute Node' ) - MakeFuse_1.Coords( 618 , 64 ) - IMakeFuse_1shape1 = MakeFuse_1.InPort( 'shape1' , 'objref' ) - IMakeFuse_1shape2 = MakeFuse_1.InPort( 'shape2' , 'objref' ) - IMakeFuse_1Gate = MakeFuse_1.GetInPort( 'Gate' ) - OMakeFuse_1shape = MakeFuse_1.OutPort( 'shape' , 'objref' ) - OMakeFuse_1Gate = MakeFuse_1.GetOutPort( 'Gate' ) - - # Creation of Links - LgagGateMakeSphere_1Gate = aNewDataFlow_1_4_2_1.Link( OgagGate , IMakeSphere_1Gate ) - - LMakeCopy_1shapeMakeFuse_1shape1 = aNewDataFlow_1_4_2_1.Link( OMakeCopy_1shape , IMakeFuse_1shape1 ) - - LMakeCopy_1GateMakeTranslation_1Gate = aNewDataFlow_1_4_2_1.Link( OMakeCopy_1Gate , IMakeTranslation_1Gate ) - LMakeCopy_1GateMakeTranslation_1Gate.AddCoord( 1 , 363 , 301 ) - LMakeCopy_1GateMakeTranslation_1Gate.AddCoord( 2 , 568 , 98 ) - - LMakeSphere_1shapeMakeCopy_1shape1 = aNewDataFlow_1_4_2_1.Link( OMakeSphere_1shape , IMakeCopy_1shape1 ) - - LMakeSphere_1shapeMakeTranslation_1shape1 = aNewDataFlow_1_4_2_1.Link( OMakeSphere_1shape , IMakeTranslation_1shape1 ) - - LMakeSphere_1GateMakeCopy_1Gate = aNewDataFlow_1_4_2_1.Link( OMakeSphere_1Gate , IMakeCopy_1Gate ) - - LMakeTranslation_1shapeMakeFuse_1shape2 = aNewDataFlow_1_4_2_1.Link( OMakeTranslation_1shape , IMakeFuse_1shape2 ) - - LMakeTranslation_1GateMakeFuse_1Gate = aNewDataFlow_1_4_2_1.Link( OMakeTranslation_1Gate , IMakeFuse_1Gate ) - - # Input datas - IMakeSphere_1x1.Input( 0 ) - IMakeSphere_1y1.Input( 0 ) - IMakeSphere_1z1.Input( 0 ) - IMakeSphere_1radius.Input( 50 ) - IMakeTranslation_1x1.Input( 80 ) - IMakeTranslation_1y1.Input( 0 ) - IMakeTranslation_1z1.Input( 0 ) - - # Output Ports of the graph - #OMakeFuse_1shape = MakeFuse_1.GetOutPort( 'shape' ) - return aNewDataFlow_1_4_2_1 - - -aNewDataFlow_1_4_2_1 = DefaNewDataFlow_1_4_2_1() diff --git a/Superv/Python/NewGraphGeomEssai_py.py b/Superv/Python/NewGraphGeomEssai_py.py deleted file mode 100644 index 9ab9475..0000000 --- a/Superv/Python/NewGraphGeomEssai_py.py +++ /dev/null @@ -1,148 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph aNewDataFlow_1_4_2_1 -# -from SuperV import * - -# Graph creation of aNewDataFlow_1_4_2_1 -def DefaNewDataFlow_1_4_2_1() : - aNewDataFlow_1_4_2_1 = Graph( 'aNewDataFlow_1_4_2_1' ) - aNewDataFlow_1_4_2_1.SetName( 'aNewDataFlow_1_4_2_1' ) - aNewDataFlow_1_4_2_1.SetAuthor( '' ) - aNewDataFlow_1_4_2_1.SetComment( '' ) - aNewDataFlow_1_4_2_1.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - # Creation of InLine Nodes - Pygag = [] - Pygag.append( 'from batchmode_geompy import * ' ) - Pygag.append( 'def gag(): ' ) - Pygag.append( ' # This is a gag ' ) - Pygag.append( ' return 1 ' ) - gag = aNewDataFlow_1_4_2_1.INode( 'gag' , Pygag ) - gag.SetName( 'gag' ) - gag.SetAuthor( '' ) - gag.SetComment( 'Compute Node' ) - gag.Coords( 0 , 123 ) - IgagGate = gag.GetInPort( 'Gate' ) - OgagGate = gag.GetOutPort( 'Gate' ) - - PyMakeCopy_1 = [] - PyMakeCopy_1.append( 'def MakeCopy_1(shape1): ' ) - PyMakeCopy_1.append( ' shape=MakeCopy(shape1) ' ) - PyMakeCopy_1.append( ' return shape ' ) - MakeCopy_1 = aNewDataFlow_1_4_2_1.INode( 'MakeCopy_1' , PyMakeCopy_1 ) - MakeCopy_1.SetName( 'MakeCopy_1' ) - MakeCopy_1.SetAuthor( '' ) - MakeCopy_1.SetComment( 'Compute Node' ) - MakeCopy_1.Coords( 385 , 3 ) - IMakeCopy_1shape1 = MakeCopy_1.InPort( 'shape1' , 'objref' ) - IMakeCopy_1Gate = MakeCopy_1.GetInPort( 'Gate' ) - OMakeCopy_1shape = MakeCopy_1.OutPort( 'shape' , 'objref' ) - OMakeCopy_1Gate = MakeCopy_1.GetOutPort( 'Gate' ) - - PyMakeSphere_1 = [] - PyMakeSphere_1.append( 'def MakeSphere_1(x1,y1,z1,radius): ' ) - PyMakeSphere_1.append( ' apoint=MakeVertex(x1,y1,z1) ' ) - PyMakeSphere_1.append( ' shape=MakeSpherePntR(apoint,radius) ' ) - PyMakeSphere_1.append( ' return shape ' ) - MakeSphere_1 = aNewDataFlow_1_4_2_1.INode( 'MakeSphere_1' , PyMakeSphere_1 ) - MakeSphere_1.SetName( 'MakeSphere_1' ) - MakeSphere_1.SetAuthor( '' ) - MakeSphere_1.SetComment( 'Compute Node' ) - MakeSphere_1.Coords( 193 , 67 ) - IMakeSphere_1x1 = MakeSphere_1.InPort( 'x1' , 'double' ) - IMakeSphere_1y1 = MakeSphere_1.InPort( 'y1' , 'double' ) - IMakeSphere_1z1 = MakeSphere_1.InPort( 'z1' , 'double' ) - IMakeSphere_1radius = MakeSphere_1.InPort( 'radius' , 'double' ) - IMakeSphere_1Gate = MakeSphere_1.GetInPort( 'Gate' ) - OMakeSphere_1shape = MakeSphere_1.OutPort( 'shape' , 'objref' ) - OMakeSphere_1Gate = MakeSphere_1.GetOutPort( 'Gate' ) - - PyMakeTranslation_1 = [] - PyMakeTranslation_1.append( 'def MakeTranslation_1(shape1,x1,y1,z1): ' ) - PyMakeTranslation_1.append( ' shape = MakeTranslation(shape1,x1,y1,z1) ' ) - PyMakeTranslation_1.append( ' return shape ' ) - MakeTranslation_1 = aNewDataFlow_1_4_2_1.INode( 'MakeTranslation_1' , PyMakeTranslation_1 ) - MakeTranslation_1.SetName( 'MakeTranslation_1' ) - MakeTranslation_1.SetAuthor( '' ) - MakeTranslation_1.SetComment( 'Compute Node' ) - MakeTranslation_1.Coords( 388 , 146 ) - IMakeTranslation_1shape1 = MakeTranslation_1.InPort( 'shape1' , 'objref' ) - IMakeTranslation_1x1 = MakeTranslation_1.InPort( 'x1' , 'double' ) - IMakeTranslation_1y1 = MakeTranslation_1.InPort( 'y1' , 'double' ) - IMakeTranslation_1z1 = MakeTranslation_1.InPort( 'z1' , 'double' ) - IMakeTranslation_1Gate = MakeTranslation_1.GetInPort( 'Gate' ) - OMakeTranslation_1shape = MakeTranslation_1.OutPort( 'shape' , 'objref' ) - OMakeTranslation_1Gate = MakeTranslation_1.GetOutPort( 'Gate' ) - - PyMakeFuse_1 = [] - PyMakeFuse_1.append( 'def MakeFuse_1(shape1,shape2): ' ) - PyMakeFuse_1.append( ' # fuse operation 3 ' ) - PyMakeFuse_1.append( ' shape = MakeBoolean(shape1,shape2,3) ' ) - PyMakeFuse_1.append( ' from SALOME_NamingServicePy import SALOME_NamingServicePy_i ' ) - PyMakeFuse_1.append( ' myNamingService = SALOME_NamingServicePy_i(orb) ' ) - PyMakeFuse_1.append( ' aSession = myNamingService.Resolve('/Kernel/Session') ' ) - PyMakeFuse_1.append( ' aStudyId = aSession.GetActiveStudyId() ' ) - PyMakeFuse_1.append( ' myStudyManager = myNamingService.Resolve('/myStudyManager') ' ) - PyMakeFuse_1.append( ' aStudy = myStudyManager.GetStudyByID(aStudyId) ' ) - PyMakeFuse_1.append( ' aSObject = geom.AddInStudy(aStudy, shape, "shape", None) ' ) - PyMakeFuse_1.append( ' return shape ' ) - MakeFuse_1 = aNewDataFlow_1_4_2_1.INode( 'MakeFuse_1' , PyMakeFuse_1 ) - MakeFuse_1.SetName( 'MakeFuse_1' ) - MakeFuse_1.SetAuthor( '' ) - MakeFuse_1.SetComment( 'Compute Node' ) - MakeFuse_1.Coords( 618 , 64 ) - IMakeFuse_1shape1 = MakeFuse_1.InPort( 'shape1' , 'objref' ) - IMakeFuse_1shape2 = MakeFuse_1.InPort( 'shape2' , 'objref' ) - IMakeFuse_1Gate = MakeFuse_1.GetInPort( 'Gate' ) - OMakeFuse_1shape = MakeFuse_1.OutPort( 'shape' , 'objref' ) - OMakeFuse_1Gate = MakeFuse_1.GetOutPort( 'Gate' ) - - # Creation of Links - LgagGateMakeSphere_1Gate = aNewDataFlow_1_4_2_1.Link( OgagGate , IMakeSphere_1Gate ) - - LMakeCopy_1shapeMakeFuse_1shape1 = aNewDataFlow_1_4_2_1.Link( OMakeCopy_1shape , IMakeFuse_1shape1 ) - - LMakeSphere_1shapeMakeCopy_1shape1 = aNewDataFlow_1_4_2_1.Link( OMakeSphere_1shape , IMakeCopy_1shape1 ) - - LMakeSphere_1shapeMakeTranslation_1shape1 = aNewDataFlow_1_4_2_1.Link( OMakeSphere_1shape , IMakeTranslation_1shape1 ) - - LMakeTranslation_1shapeMakeFuse_1shape2 = aNewDataFlow_1_4_2_1.Link( OMakeTranslation_1shape , IMakeFuse_1shape2 ) - - # Input datas - IMakeSphere_1x1.Input( 0 ) - IMakeSphere_1y1.Input( 0 ) - IMakeSphere_1z1.Input( 0 ) - IMakeSphere_1radius.Input( 50 ) - IMakeTranslation_1x1.Input( 80 ) - IMakeTranslation_1y1.Input( 0 ) - IMakeTranslation_1z1.Input( 0 ) - - # Output Ports of the graph - #OMakeFuse_1shape = MakeFuse_1.GetOutPort( 'shape' ) - return aNewDataFlow_1_4_2_1 - - -aNewDataFlow_1_4_2_1 = DefaNewDataFlow_1_4_2_1() diff --git a/Superv/Python/SIGSEGV.py b/Superv/Python/SIGSEGV.py deleted file mode 100644 index 7bd9acf..0000000 --- a/Superv/Python/SIGSEGV.py +++ /dev/null @@ -1,29 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# -from LifeCycleCORBA import * -orb = CORBA.ORB_init([''], CORBA.ORB_ID) -lcc = LifeCycleCORBA(orb) -import SIGNALSComponent_idl -SIGNALSComponent = lcc.FindOrLoadComponent('FactoryServer','SIGNALSComponent') -SIGNALSComponent.SIGSEGVfunc() -SIGNALSComponent.ping() - diff --git a/Superv/Python/SIGSEGVTUI.py b/Superv/Python/SIGSEGVTUI.py deleted file mode 100644 index 2860b84..0000000 --- a/Superv/Python/SIGSEGVTUI.py +++ /dev/null @@ -1,28 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# -import salome -orb = salome.CORBA.ORB_init([''], salome.CORBA.ORB_ID) -lcc = salome.LifeCycleCORBA(orb) -import SIGNALSComponent_idl -SIGNALSComponent = lcc.FindOrLoadComponent('FactoryServer','SIGNALSComponent') -SIGNALSComponent.SIGSEGVfunc() -SIGNALSComponent.ping() diff --git a/Superv/Python/SIGSEGV_Swig.py b/Superv/Python/SIGSEGV_Swig.py deleted file mode 100644 index eb645cf..0000000 --- a/Superv/Python/SIGSEGV_Swig.py +++ /dev/null @@ -1,24 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# -import libSIGNALSComponent_Swig -s = libSIGNALSComponent_Swig.SIGNALSComponentEngine() -s.SIGSEGVfunc() diff --git a/Superv/Python/SyrStruct.py b/Superv/Python/SyrStruct.py deleted file mode 100644 index 2d8bd42..0000000 --- a/Superv/Python/SyrStruct.py +++ /dev/null @@ -1,469 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph SyrStruct -# -from SuperV import * - -# Graph creation of SyrStruct -def DefSyrStruct() : - SyrStruct = Graph( 'SyrStruct' ) - SyrStruct.SetName( 'SyrStruct' ) - SyrStruct.SetAuthor( 'JR' ) - SyrStruct.SetComment( 'Syracuse algorithm' ) - SyrStruct.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - m3 = SyrStruct.FNode( 'SyrComponent' , 'SyrComponent' , 'C_M3' ) - m3.SetName( 'm3' ) - m3.SetAuthor( '' ) - m3.SetContainer( 'localhost/FactoryServer' ) - m3.SetComment( 'C_M3 from SyrComponent' ) - m3.Coords( 672 , 28 ) - Im3anOddInteger = m3.GetInPort( 'anOddInteger' ) - Im3Gate = m3.GetInPort( 'Gate' ) - Om3anInteger = m3.GetOutPort( 'anInteger' ) - Om3Gate = m3.GetOutPort( 'Gate' ) - - m3incr = SyrStruct.FNode( 'SyrComponent' , 'SyrComponent' , 'C_INCR' ) - m3incr.SetName( 'm3incr' ) - m3incr.SetAuthor( '' ) - m3incr.SetContainer( 'localhost/FactoryServer' ) - m3incr.SetComment( 'C_INCR from SyrComponent' ) - m3incr.Coords( 899 , 28 ) - Im3incraCount = m3incr.GetInPort( 'aCount' ) - Im3incrGate = m3incr.GetInPort( 'Gate' ) - Om3incraNewCount = m3incr.GetOutPort( 'aNewCount' ) - Om3incrGate = m3incr.GetOutPort( 'Gate' ) - - incra = SyrStruct.FNode( 'SyrComponent' , 'SyrComponent' , 'C_INCR' ) - incra.SetName( 'incra' ) - incra.SetAuthor( '' ) - incra.SetContainer( 'localhost/FactoryServer' ) - incra.SetComment( 'C_INCR from SyrComponent' ) - incra.Coords( 824 , 218 ) - IincraaCount = incra.GetInPort( 'aCount' ) - IincraGate = incra.GetInPort( 'Gate' ) - OincraaNewCount = incra.GetOutPort( 'aNewCount' ) - OincraGate = incra.GetOutPort( 'Gate' ) - - div2 = SyrStruct.FNode( 'SyrComponent' , 'SyrComponent' , 'C_DIV2' ) - div2.SetName( 'div2' ) - div2.SetAuthor( '' ) - div2.SetContainer( 'localhost/FactoryServer' ) - div2.SetComment( 'C_DIV2 from SyrComponent' ) - div2.Coords( 817 , 431 ) - Idiv2anEvenInteger = div2.GetInPort( 'anEvenInteger' ) - Idiv2Gate = div2.GetInPort( 'Gate' ) - Odiv2anInteger = div2.GetOutPort( 'anInteger' ) - Odiv2Gate = div2.GetOutPort( 'Gate' ) - - incrb = SyrStruct.FNode( 'SyrComponent' , 'SyrComponent' , 'C_INCR' ) - incrb.SetName( 'incrb' ) - incrb.SetAuthor( '' ) - incrb.SetContainer( 'localhost/FactoryServer' ) - incrb.SetComment( 'C_INCR from SyrComponent' ) - incrb.Coords( 821 , 574 ) - IincrbaCount = incrb.GetInPort( 'aCount' ) - IincrbGate = incrb.GetInPort( 'Gate' ) - OincrbaNewCount = incrb.GetOutPort( 'aNewCount' ) - OincrbGate = incrb.GetOutPort( 'Gate' ) - - # Creation of InLine Nodes - PySyrComponent = [] - PySyrComponent.append( 'from LifeCycleCORBA import * ' ) - PySyrComponent.append( 'def SyrComponent( aContainer , aComponent ) : ' ) - PySyrComponent.append( ' orb = CORBA.ORB_init([], CORBA.ORB_ID) ' ) - PySyrComponent.append( ' lcc = LifeCycleCORBA(orb) ' ) - PySyrComponent.append( ' ComponentRef = lcc.FindOrLoadComponent( aContainer , aComponent ) ' ) - PySyrComponent.append( ' return ComponentRef ' ) - SyrComponent = SyrStruct.INode( 'SyrComponent' , PySyrComponent ) - SyrComponent.SetName( 'SyrComponent' ) - SyrComponent.SetAuthor( '' ) - SyrComponent.SetComment( 'SyrComponent( aContainer , aComponent )' ) - SyrComponent.Coords( 0 , 0 ) - ISyrComponentaContainer = SyrComponent.InPort( 'aContainer' , 'string' ) - ISyrComponentaComponent = SyrComponent.InPort( 'aComponent' , 'string' ) - ISyrComponentGate = SyrComponent.GetInPort( 'Gate' ) - OSyrComponentSyrComponentobjref = SyrComponent.OutPort( 'SyrComponentobjref' , 'objref' ) - OSyrComponentGate = SyrComponent.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyforN = [] - PyforN.append( 'def InitN( NN , K , SyrComponent , min , max ) : ' ) - PyforN.append( ' N = max ' ) - PyforN.append( ' if min > 0 : ' ) - PyforN.append( ' if max >= min : ' ) - PyforN.append( ' N = min ' ) - PyforN.append( ' return N,K,SyrComponent,min,max ' ) - PyMoreforN = [] - PyMoreforN.append( 'def MoreN( NN , KK , SyrComponent , min , max ) : ' ) - PyMoreforN.append( ' N = NN ' ) - PyMoreforN.append( ' OutLoop = 0 ' ) - PyMoreforN.append( ' if max > NN : ' ) - PyMoreforN.append( ' OutLoop = 1 ' ) - PyMoreforN.append( ' return OutLoop,N,0,SyrComponent,min,max ' ) - PyNextforN = [] - PyNextforN.append( 'def NextN( NN , KK , SyrComponent , min , max ) : ' ) - PyNextforN.append( ' N = NN + 1 ' ) - PyNextforN.append( ' K = KK ' ) - PyNextforN.append( ' return N,K,SyrComponent,min,max ' ) - forN,EndOfforN = SyrStruct.LNode( 'InitN' , PyforN , 'MoreN' , PyMoreforN , 'NextN' , PyNextforN ) - EndOfforN.SetName( 'EndOfforN' ) - EndOfforN.SetAuthor( '' ) - EndOfforN.SetComment( 'Compute Node' ) - EndOfforN.Coords( 1590 , 331 ) - PyEndOfforN = [] - EndOfforN.SetPyFunction( '' , PyEndOfforN ) - IforNDoLoop = forN.GetInPort( 'DoLoop' ) - IforNN = forN.InPort( 'N' , 'long' ) - IforNK = forN.InPort( 'K' , 'long' ) - IforNSyrComponent = forN.InPort( 'SyrComponent' , 'objref' ) - IforNmin = forN.InPort( 'min' , 'long' ) - IforNmax = forN.InPort( 'max' , 'long' ) - IforNGate = forN.GetInPort( 'Gate' ) - OforNDoLoop = forN.GetOutPort( 'DoLoop' ) - OforNN = forN.GetOutPort( 'N' ) - OforNK = forN.GetOutPort( 'K' ) - OforNSyrComponent = forN.GetOutPort( 'SyrComponent' ) - OforNmin = forN.GetOutPort( 'min' ) - OforNmax = forN.GetOutPort( 'max' ) - IEndOfforNDoLoop = EndOfforN.GetInPort( 'DoLoop' ) - IEndOfforNN = EndOfforN.GetInPort( 'N' ) - IEndOfforNK = EndOfforN.GetInPort( 'K' ) - IEndOfforNSyrComponent = EndOfforN.GetInPort( 'SyrComponent' ) - IEndOfforNmin = EndOfforN.GetInPort( 'min' ) - IEndOfforNmax = EndOfforN.GetInPort( 'max' ) - IEndOfforNGate = EndOfforN.GetInPort( 'Gate' ) - OEndOfforNDoLoop = EndOfforN.GetOutPort( 'DoLoop' ) - OEndOfforNN = EndOfforN.GetOutPort( 'N' ) - OEndOfforNK = EndOfforN.GetOutPort( 'K' ) - OEndOfforNSyrComponent = EndOfforN.GetOutPort( 'SyrComponent' ) - OEndOfforNmin = EndOfforN.GetOutPort( 'min' ) - OEndOfforNmax = EndOfforN.GetOutPort( 'max' ) - OEndOfforNGate = EndOfforN.GetOutPort( 'Gate' ) - forN.SetName( 'forN' ) - forN.SetAuthor( '' ) - forN.SetComment( 'InitN , MoreN , NextN' ) - forN.Coords( 20 , 302 ) - - PywhileNotOne = [] - PywhileNotOne.append( 'import threading' ) - PywhileNotOne.append( 'import SyrComponent_idl' ) - PywhileNotOne.append( 'def InitNotOne( SyrComponent , N , K ) :' ) - PywhileNotOne.append( ' return SyrComponent,N,K' ) - PyMorewhileNotOne = [] - PyMorewhileNotOne.append( 'import SyrComponent_idl' ) - PyMorewhileNotOne.append( 'def MoreNotOne( SyrComponent , N , K ) :' ) - PyMorewhileNotOne.append( ' OutLoop = 1 - SyrComponent.C_ISONE( N )' ) - PyMorewhileNotOne.append( ' return OutLoop,SyrComponent,N,K ' ) - PyNextwhileNotOne = [] - PyNextwhileNotOne.append( 'import SyrComponent_idl' ) - PyNextwhileNotOne.append( 'def NextNotOne( SyrComponent , N , K ) :' ) - PyNextwhileNotOne.append( ' return SyrComponent,N,K' ) - whileNotOne,EndOfwhileNotOne = SyrStruct.LNode( 'InitNotOne' , PywhileNotOne , 'MoreNotOne' , PyMorewhileNotOne , 'NextNotOne' , PyNextwhileNotOne ) - EndOfwhileNotOne.SetName( 'EndOfwhileNotOne' ) - EndOfwhileNotOne.SetAuthor( '' ) - EndOfwhileNotOne.SetComment( 'Compute Node' ) - EndOfwhileNotOne.Coords( 1405 , 311 ) - PyEndOfwhileNotOne = [] - EndOfwhileNotOne.SetPyFunction( '' , PyEndOfwhileNotOne ) - IwhileNotOneDoLoop = whileNotOne.GetInPort( 'DoLoop' ) - IwhileNotOneSyrComponent = whileNotOne.InPort( 'SyrComponent' , 'objref' ) - IwhileNotOneN = whileNotOne.InPort( 'N' , 'long' ) - IwhileNotOneK = whileNotOne.InPort( 'K' , 'long' ) - IwhileNotOneGate = whileNotOne.GetInPort( 'Gate' ) - OwhileNotOneDoLoop = whileNotOne.GetOutPort( 'DoLoop' ) - OwhileNotOneSyrComponent = whileNotOne.GetOutPort( 'SyrComponent' ) - OwhileNotOneN = whileNotOne.GetOutPort( 'N' ) - OwhileNotOneK = whileNotOne.GetOutPort( 'K' ) - IEndOfwhileNotOneDoLoop = EndOfwhileNotOne.GetInPort( 'DoLoop' ) - IEndOfwhileNotOneSyrComponent = EndOfwhileNotOne.GetInPort( 'SyrComponent' ) - IEndOfwhileNotOneN = EndOfwhileNotOne.GetInPort( 'N' ) - IEndOfwhileNotOneK = EndOfwhileNotOne.GetInPort( 'K' ) - IEndOfwhileNotOneGate = EndOfwhileNotOne.GetInPort( 'Gate' ) - OEndOfwhileNotOneDoLoop = EndOfwhileNotOne.GetOutPort( 'DoLoop' ) - OEndOfwhileNotOneSyrComponent = EndOfwhileNotOne.GetOutPort( 'SyrComponent' ) - OEndOfwhileNotOneN = EndOfwhileNotOne.GetOutPort( 'N' ) - OEndOfwhileNotOneK = EndOfwhileNotOne.GetOutPort( 'K' ) - OEndOfwhileNotOneGate = EndOfwhileNotOne.GetOutPort( 'Gate' ) - whileNotOne.SetName( 'whileNotOne' ) - whileNotOne.SetAuthor( '' ) - whileNotOne.SetComment( 'InitNotOne , MoreNotOne , NextNotOne' ) - whileNotOne.Coords( 215 , 282 ) - - Pyfori = [] - Pyfori.append( 'def Initfori( ii , K ) : ' ) - Pyfori.append( ' ii = 0 ' ) - Pyfori.append( ' return ii,K ' ) - PyMorefori = [] - PyMorefori.append( 'from time import * ' ) - PyMorefori.append( 'def Morefori( ii , K ) : ' ) - PyMorefori.append( ' OutLoop = 0 ' ) - PyMorefori.append( ' if ii < 2 : ' ) - PyMorefori.append( ' OutLoop = 1 ' ) - PyMorefori.append( ' return OutLoop,ii,K ' ) - PyNextfori = [] - PyNextfori.append( 'def Nextfori( ii , K ) : ' ) - PyNextfori.append( ' ii = ii + 1 ' ) - PyNextfori.append( ' return ii,K ' ) - fori,EndOffori = SyrStruct.LNode( 'Initfori' , Pyfori , 'Morefori' , PyMorefori , 'Nextfori' , PyNextfori ) - EndOffori.SetName( 'EndOffori' ) - EndOffori.SetAuthor( '' ) - EndOffori.SetComment( 'Compute Node' ) - EndOffori.Coords( 1009 , 238 ) - PyEndOffori = [] - EndOffori.SetPyFunction( '' , PyEndOffori ) - IforiDoLoop = fori.GetInPort( 'DoLoop' ) - Iforii = fori.InPort( 'i' , 'long' ) - IforiK = fori.InPort( 'K' , 'long' ) - IforiGate = fori.GetInPort( 'Gate' ) - OforiDoLoop = fori.GetOutPort( 'DoLoop' ) - Oforii = fori.GetOutPort( 'i' ) - OforiK = fori.GetOutPort( 'K' ) - IEndOfforiDoLoop = EndOffori.GetInPort( 'DoLoop' ) - IEndOfforii = EndOffori.GetInPort( 'i' ) - IEndOfforiK = EndOffori.GetInPort( 'K' ) - IEndOfforiGate = EndOffori.GetInPort( 'Gate' ) - OEndOfforiDoLoop = EndOffori.GetOutPort( 'DoLoop' ) - OEndOfforii = EndOffori.GetOutPort( 'i' ) - OEndOfforiK = EndOffori.GetOutPort( 'K' ) - OEndOfforiGate = EndOffori.GetOutPort( 'Gate' ) - fori.SetName( 'fori' ) - fori.SetAuthor( '' ) - fori.SetComment( 'Initfori, Morefori, Nextfori' ) - fori.Coords( 641 , 238 ) - - PywhileEven = [] - PywhileEven.append( 'import SyrComponent_idl' ) - PywhileEven.append( 'def InitEven( SyrComponent , N , K ) :' ) - PywhileEven.append( ' return SyrComponent,N,K' ) - PyMorewhileEven = [] - PyMorewhileEven.append( 'import SyrComponent_idl' ) - PyMorewhileEven.append( 'def MoreEven( SyrComponent , N , K ) :' ) - PyMorewhileEven.append( ' OutLoop = SyrComponent.C_ISEVEN( N )' ) - PyMorewhileEven.append( ' return OutLoop,SyrComponent,N,K ' ) - PyNextwhileEven = [] - PyNextwhileEven.append( 'import SyrComponent_idl' ) - PyNextwhileEven.append( 'def NextEven( SyrComponent , N , K ) :' ) - PyNextwhileEven.append( ' return SyrComponent,N,K' ) - whileEven,EndOfwhileEven = SyrStruct.LNode( 'InitEven' , PywhileEven , 'MoreEven' , PyMorewhileEven , 'NextEven' , PyNextwhileEven ) - EndOfwhileEven.SetName( 'EndOfwhileEven' ) - EndOfwhileEven.SetAuthor( '' ) - EndOfwhileEven.SetComment( 'Compute Node' ) - EndOfwhileEven.Coords( 1006 , 451 ) - PyEndOfwhileEven = [] - EndOfwhileEven.SetPyFunction( '' , PyEndOfwhileEven ) - IwhileEvenDoLoop = whileEven.GetInPort( 'DoLoop' ) - IwhileEvenSyrComponent = whileEven.InPort( 'SyrComponent' , 'objref' ) - IwhileEvenN = whileEven.InPort( 'N' , 'long' ) - IwhileEvenK = whileEven.InPort( 'K' , 'long' ) - IwhileEvenGate = whileEven.GetInPort( 'Gate' ) - OwhileEvenDoLoop = whileEven.GetOutPort( 'DoLoop' ) - OwhileEvenSyrComponent = whileEven.GetOutPort( 'SyrComponent' ) - OwhileEvenN = whileEven.GetOutPort( 'N' ) - OwhileEvenK = whileEven.GetOutPort( 'K' ) - IEndOfwhileEvenDoLoop = EndOfwhileEven.GetInPort( 'DoLoop' ) - IEndOfwhileEvenSyrComponent = EndOfwhileEven.GetInPort( 'SyrComponent' ) - IEndOfwhileEvenN = EndOfwhileEven.GetInPort( 'N' ) - IEndOfwhileEvenK = EndOfwhileEven.GetInPort( 'K' ) - IEndOfwhileEvenGate = EndOfwhileEven.GetInPort( 'Gate' ) - OEndOfwhileEvenDoLoop = EndOfwhileEven.GetOutPort( 'DoLoop' ) - OEndOfwhileEvenSyrComponent = EndOfwhileEven.GetOutPort( 'SyrComponent' ) - OEndOfwhileEvenN = EndOfwhileEven.GetOutPort( 'N' ) - OEndOfwhileEvenK = EndOfwhileEven.GetOutPort( 'K' ) - OEndOfwhileEvenGate = EndOfwhileEven.GetOutPort( 'Gate' ) - whileEven.SetName( 'whileEven' ) - whileEven.SetAuthor( '' ) - whileEven.SetComment( 'InitEven, MoreEven, NextEven' ) - whileEven.Coords( 632 , 451 ) - - # Creation of Switch Nodes - PyifNotEven = [] - PyifNotEven.append( 'import SyrComponent_idl' ) - PyifNotEven.append( 'def ifNotEven( SyrComponent , N , K ) :' ) - PyifNotEven.append( ' Even = SyrComponent.C_ISEVEN( N )' ) - PyifNotEven.append( ' Odd = 1 - Even' ) - PyifNotEven.append( ' return Odd,Even,SyrComponent,N,K' ) - ifNotEven,EndOfifNotEven = SyrStruct.SNode( 'ifNotEven' , PyifNotEven ) - EndOfifNotEven.SetName( 'EndOfifNotEven' ) - EndOfifNotEven.SetAuthor( '' ) - EndOfifNotEven.SetComment( 'Compute Node' ) - EndOfifNotEven.Coords( 1220 , 331 ) - PyEndOfifNotEven = [] - EndOfifNotEven.SetPyFunction( '' , PyEndOfifNotEven ) - IEndOfifNotEvenN = EndOfifNotEven.InPort( 'N' , 'long' ) - IEndOfifNotEvenK = EndOfifNotEven.InPort( 'K' , 'long' ) - IEndOfifNotEvenDefault = EndOfifNotEven.GetInPort( 'Default' ) - OEndOfifNotEvenN = EndOfifNotEven.OutPort( 'N' , 'long' ) - OEndOfifNotEvenK = EndOfifNotEven.OutPort( 'K' , 'long' ) - OEndOfifNotEvenGate = EndOfifNotEven.GetOutPort( 'Gate' ) - ifNotEven.SetName( 'ifNotEven' ) - ifNotEven.SetAuthor( '' ) - ifNotEven.SetComment( 'ifNotEven' ) - ifNotEven.Coords( 407 , 282 ) - IifNotEvenSyrComponent = ifNotEven.InPort( 'SyrComponent' , 'objref' ) - IifNotEvenN = ifNotEven.InPort( 'N' , 'long' ) - IifNotEvenK = ifNotEven.InPort( 'K' , 'long' ) - IifNotEvenGate = ifNotEven.GetInPort( 'Gate' ) - OifNotEvenOdd = ifNotEven.OutPort( 'Odd' , 'long' ) - OifNotEvenEven = ifNotEven.OutPort( 'Even' , 'long' ) - OifNotEvenSyrComponent = ifNotEven.OutPort( 'SyrComponent' , 'objref' ) - OifNotEvenN = ifNotEven.OutPort( 'N' , 'long' ) - OifNotEvenK = ifNotEven.OutPort( 'K' , 'long' ) - OifNotEvenDefault = ifNotEven.GetOutPort( 'Default' ) - - # Creation of Links - Lm3anIntegerm3incraCount = SyrStruct.Link( Om3anInteger , Im3incraCount ) - - Lm3incraNewCountEndOfifNotEvenN = SyrStruct.Link( Om3incraNewCount , IEndOfifNotEvenN ) - Lm3incraNewCountEndOfifNotEvenN.AddCoord( 1 , 1193 , 362 ) - Lm3incraNewCountEndOfifNotEvenN.AddCoord( 2 , 1191 , 100 ) - - LincraaNewCountEndOfforiK = SyrStruct.Link( OincraaNewCount , IEndOfforiK ) - - Ldiv2anIntegerEndOfwhileEvenN = SyrStruct.Link( Odiv2anInteger , IEndOfwhileEvenN ) - - LincrbaNewCountEndOfwhileEvenK = SyrStruct.Link( OincrbaNewCount , IEndOfwhileEvenK ) - LincrbaNewCountEndOfwhileEvenK.AddCoord( 1 , 992 , 521 ) - LincrbaNewCountEndOfwhileEvenK.AddCoord( 2 , 992 , 645 ) - - LSyrComponentSyrComponentobjrefforNSyrComponent = SyrStruct.Link( OSyrComponentSyrComponentobjref , IforNSyrComponent ) - LSyrComponentSyrComponentobjrefforNSyrComponent.AddCoord( 1 , 8 , 373 ) - LSyrComponentSyrComponentobjrefforNSyrComponent.AddCoord( 2 , 8 , 181 ) - LSyrComponentSyrComponentobjrefforNSyrComponent.AddCoord( 3 , 196 , 181 ) - LSyrComponentSyrComponentobjrefforNSyrComponent.AddCoord( 4 , 196 , 71 ) - - LforNNwhileNotOneN = SyrStruct.Link( OforNN , IwhileNotOneN ) - - LforNNEndOfforNN = SyrStruct.Link( OforNN , IEndOfforNN ) - - LforNKwhileNotOneK = SyrStruct.Link( OforNK , IwhileNotOneK ) - - LforNSyrComponentEndOfforNSyrComponent = SyrStruct.Link( OforNSyrComponent , IEndOfforNSyrComponent ) - - LforNSyrComponentwhileNotOneSyrComponent = SyrStruct.Link( OforNSyrComponent , IwhileNotOneSyrComponent ) - LforNSyrComponentwhileNotOneSyrComponent.AddCoord( 1 , 197 , 313 ) - LforNSyrComponentwhileNotOneSyrComponent.AddCoord( 2 , 197 , 373 ) - - LforNminEndOfforNmin = SyrStruct.Link( OforNmin , IEndOfforNmin ) - - LforNmaxEndOfforNmax = SyrStruct.Link( OforNmax , IEndOfforNmax ) - - LwhileNotOneSyrComponentEndOfwhileNotOneSyrComponent = SyrStruct.Link( OwhileNotOneSyrComponent , IEndOfwhileNotOneSyrComponent ) - - LwhileNotOneSyrComponentifNotEvenSyrComponent = SyrStruct.Link( OwhileNotOneSyrComponent , IifNotEvenSyrComponent ) - - LwhileNotOneNifNotEvenN = SyrStruct.Link( OwhileNotOneN , IifNotEvenN ) - - LwhileNotOneKifNotEvenK = SyrStruct.Link( OwhileNotOneK , IifNotEvenK ) - - LEndOfwhileNotOneKEndOfforNK = SyrStruct.Link( OEndOfwhileNotOneK , IEndOfforNK ) - - LforiiEndOfforii = SyrStruct.Link( Oforii , IEndOfforii ) - - LforiKincraaCount = SyrStruct.Link( OforiK , IincraaCount ) - - LEndOfforiKEndOfifNotEvenK = SyrStruct.Link( OEndOfforiK , IEndOfifNotEvenK ) - LEndOfforiKEndOfifNotEvenK.AddCoord( 1 , 1180 , 382 ) - LEndOfforiKEndOfifNotEvenK.AddCoord( 2 , 1180 , 289 ) - - LwhileEvenSyrComponentEndOfwhileEvenSyrComponent = SyrStruct.Link( OwhileEvenSyrComponent , IEndOfwhileEvenSyrComponent ) - - LwhileEvenNdiv2anEvenInteger = SyrStruct.Link( OwhileEvenN , Idiv2anEvenInteger ) - - LwhileEvenKincrbaCount = SyrStruct.Link( OwhileEvenK , IincrbaCount ) - LwhileEvenKincrbaCount.AddCoord( 1 , 805 , 645 ) - LwhileEvenKincrbaCount.AddCoord( 2 , 805 , 522 ) - - LEndOfwhileEvenNEndOfifNotEvenN = SyrStruct.Link( OEndOfwhileEvenN , IEndOfifNotEvenN ) - LEndOfwhileEvenNEndOfifNotEvenN.AddCoord( 1 , 1192 , 362 ) - LEndOfwhileEvenNEndOfifNotEvenN.AddCoord( 2 , 1192 , 502 ) - - LEndOfwhileEvenKEndOfifNotEvenK = SyrStruct.Link( OEndOfwhileEvenK , IEndOfifNotEvenK ) - LEndOfwhileEvenKEndOfifNotEvenK.AddCoord( 1 , 1180 , 382 ) - LEndOfwhileEvenKEndOfifNotEvenK.AddCoord( 2 , 1180 , 522 ) - - LifNotEvenOddm3Gate = SyrStruct.Link( OifNotEvenOdd , Im3Gate ) - LifNotEvenOddm3Gate.AddCoord( 1 , 594 , 123 ) - LifNotEvenOddm3Gate.AddCoord( 2 , 594 , 313 ) - - LifNotEvenOddforiGate = SyrStruct.Link( OifNotEvenOdd , IforiGate ) - - LifNotEvenEvenwhileEvenGate = SyrStruct.Link( OifNotEvenEven , IwhileEvenGate ) - LifNotEvenEvenwhileEvenGate.AddCoord( 1 , 594 , 546 ) - LifNotEvenEvenwhileEvenGate.AddCoord( 2 , 594 , 334 ) - - LifNotEvenSyrComponentwhileEvenSyrComponent = SyrStruct.Link( OifNotEvenSyrComponent , IwhileEvenSyrComponent ) - LifNotEvenSyrComponentwhileEvenSyrComponent.AddCoord( 1 , 588 , 482 ) - LifNotEvenSyrComponentwhileEvenSyrComponent.AddCoord( 2 , 588 , 354 ) - - LifNotEvenNwhileEvenN = SyrStruct.Link( OifNotEvenN , IwhileEvenN ) - LifNotEvenNwhileEvenN.AddCoord( 1 , 603 , 502 ) - LifNotEvenNwhileEvenN.AddCoord( 2 , 603 , 373 ) - - LifNotEvenNm3anOddInteger = SyrStruct.Link( OifNotEvenN , Im3anOddInteger ) - LifNotEvenNm3anOddInteger.AddCoord( 1 , 605 , 99 ) - LifNotEvenNm3anOddInteger.AddCoord( 2 , 604 , 372 ) - - LifNotEvenKwhileEvenK = SyrStruct.Link( OifNotEvenK , IwhileEvenK ) - LifNotEvenKwhileEvenK.AddCoord( 1 , 620 , 523 ) - LifNotEvenKwhileEvenK.AddCoord( 2 , 620 , 396 ) - - LifNotEvenKforiK = SyrStruct.Link( OifNotEvenK , IforiK ) - LifNotEvenKforiK.AddCoord( 1 , 620 , 289 ) - LifNotEvenKforiK.AddCoord( 2 , 620 , 395 ) - - LifNotEvenDefaultEndOfifNotEvenDefault = SyrStruct.Link( OifNotEvenDefault , IEndOfifNotEvenDefault ) - LifNotEvenDefaultEndOfifNotEvenDefault.AddCoord( 1 , 1204 , 407 ) - LifNotEvenDefaultEndOfifNotEvenDefault.AddCoord( 2 , 1203 , 12 ) - LifNotEvenDefaultEndOfifNotEvenDefault.AddCoord( 3 , 581 , 13 ) - LifNotEvenDefaultEndOfifNotEvenDefault.AddCoord( 4 , 581 , 418 ) - - LEndOfifNotEvenNEndOfwhileNotOneN = SyrStruct.Link( OEndOfifNotEvenN , IEndOfwhileNotOneN ) - - LEndOfifNotEvenKEndOfwhileNotOneK = SyrStruct.Link( OEndOfifNotEvenK , IEndOfwhileNotOneK ) - - # Input datas - ISyrComponentaContainer.Input( 'FactoryServer' ) - ISyrComponentaComponent.Input( 'SyrComponent' ) - IforNN.Input( 0 ) - IforNK.Input( 0 ) - IforNmin.Input( 5 ) - IforNmax.Input( 9 ) - Iforii.Input( 0 ) - - # Output Ports of the graph - #OEndOfforNN = EndOfforN.GetOutPort( 'N' ) - #OEndOfforNK = EndOfforN.GetOutPort( 'K' ) - #OEndOfforNSyrComponent = EndOfforN.GetOutPort( 'SyrComponent' ) - #OEndOfforNmin = EndOfforN.GetOutPort( 'min' ) - #OEndOfforNmax = EndOfforN.GetOutPort( 'max' ) - #OEndOfwhileNotOneSyrComponent = EndOfwhileNotOne.GetOutPort( 'SyrComponent' ) - #OEndOfwhileNotOneN = EndOfwhileNotOne.GetOutPort( 'N' ) - #OEndOfforii = EndOffori.GetOutPort( 'i' ) - #OEndOfwhileEvenSyrComponent = EndOfwhileEven.GetOutPort( 'SyrComponent' ) - return SyrStruct - - -SyrStruct = DefSyrStruct() diff --git a/Superv/Python/TestSupervMedfieldLoopFori.py b/Superv/Python/TestSupervMedfieldLoopFori.py deleted file mode 100755 index 542ac15..0000000 --- a/Superv/Python/TestSupervMedfieldLoopFori.py +++ /dev/null @@ -1,206 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph TestSupervMedfieldLoopFori -# -from SuperV import * - -# Graph creation of TestSupervMedfieldLoopFori -def DefTestSupervMedfieldLoopFori() : - TestSupervMedfieldLoopFori = Graph( 'TestSupervMedfieldLoopFori' ) - TestSupervMedfieldLoopFori.SetName( 'TestSupervMedfieldLoopFori' ) - TestSupervMedfieldLoopFori.SetAuthor( '' ) - TestSupervMedfieldLoopFori.SetComment( '' ) - TestSupervMedfieldLoopFori.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - Mul = TestSupervMedfieldLoopFori.FNode( 'Calculator' , 'Calculator' , 'Mul' ) - Mul.SetName( 'Mul' ) - Mul.SetAuthor( 'LD' ) - Mul.SetContainer( 'localhost/FactoryServer' ) - Mul.SetComment( 'Multiply a field by a constant' ) - Mul.Coords( 429 , 46 ) - IMulfield1 = Mul.GetInPort( 'field1' ) - IMulx1 = Mul.GetInPort( 'x1' ) - IMulGate = Mul.GetInPort( 'Gate' ) - OMulreturn = Mul.GetOutPort( 'return' ) - OMulGate = Mul.GetOutPort( 'Gate' ) - - # Creation of InLine Nodes - PyInitDisplay = [] - PyInitDisplay.append( 'from VISU import * ' ) - PyInitDisplay.append( 'import SALOMEDS ' ) - PyInitDisplay.append( 'from LifeCycleCORBA import * ' ) - PyInitDisplay.append( 'from SALOME_NamingServicePy import * ' ) - PyInitDisplay.append( 'def InitDisplay(): ' ) - PyInitDisplay.append( ' # initialize the ORB ' ) - PyInitDisplay.append( ' orb = CORBA.ORB_init([], CORBA.ORB_ID) ' ) - PyInitDisplay.append( ' # create an LifeCycleCORBA instance ' ) - PyInitDisplay.append( ' lcc = LifeCycleCORBA(orb) ' ) - PyInitDisplay.append( ' # ----------------------------------------- ' ) - PyInitDisplay.append( ' # Visualization parameters ' ) - PyInitDisplay.append( ' #create a naming service instance ' ) - PyInitDisplay.append( ' naming_service = SALOME_NamingServicePy_i(orb) ' ) - PyInitDisplay.append( ' # get Study Manager reference ' ) - PyInitDisplay.append( ' obj = naming_service.Resolve("myStudyManager") ' ) - PyInitDisplay.append( ' myStudyManager = obj._narrow(SALOMEDS.StudyManager) ' ) - PyInitDisplay.append( ' myStudy = myStudyManager.GetStudyByID(1) ' ) - PyInitDisplay.append( ' aVisu = lcc.FindOrLoadComponent("FactoryServer", "VISU") ' ) - PyInitDisplay.append( ' print "InitDisplay --> aVisu = ",aVisu ' ) - PyInitDisplay.append( ' aVisu.SetCurrentStudy(myStudy); ' ) - PyInitDisplay.append( ' aViewManager = aVisu.GetViewManager() ' ) - PyInitDisplay.append( ' print "InitDisplay --> aViewManager = ",aViewManager ' ) - PyInitDisplay.append( ' aView = aViewManager.Create3DView() ' ) - PyInitDisplay.append( ' print "InitDisplay --> aView = ",aView ' ) - PyInitDisplay.append( ' return aVisu,aView ' ) - InitDisplay = TestSupervMedfieldLoopFori.INode( 'InitDisplay' , PyInitDisplay ) - InitDisplay.SetName( 'InitDisplay' ) - InitDisplay.SetAuthor( '' ) - InitDisplay.SetComment( 'Compute Node' ) - InitDisplay.Coords( 1 , 105 ) - IInitDisplayGate = InitDisplay.GetInPort( 'Gate' ) - OInitDisplayaVisu = InitDisplay.OutPort( 'aVisu' , 'objref' ) - OInitDisplayaView = InitDisplay.OutPort( 'aView' , 'objref' ) - OInitDisplayGate = InitDisplay.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyInit = [] - PyInit.append( 'def Init(index,min,max,medfield,x1,aVisu,aView): ' ) - PyInit.append( ' if max >= min : ' ) - PyInit.append( ' index = min ' ) - PyInit.append( ' else : ' ) - PyInit.append( ' index = max ' ) - PyInit.append( ' print "Init --> index = ",index ' ) - PyInit.append( ' print " min = ",min ' ) - PyInit.append( ' print " max = ",max ' ) - PyInit.append( ' print " medfield = ",medfield ' ) - PyInit.append( ' return index,min,max,medfield,x1,aVisu,aView ' ) - PyMoreInit = [] - PyMoreInit.append( 'def More(index,min,max,medfield,x1,aVisu,aView): ' ) - PyMoreInit.append( ' if max >= index : ' ) - PyMoreInit.append( ' DoLoop = 1 ' ) - PyMoreInit.append( ' else : ' ) - PyMoreInit.append( ' DoLoop = 0 ' ) - PyMoreInit.append( ' print "More --> DoLoop = ",DoLoop ' ) - PyMoreInit.append( ' print " index = ",index ' ) - PyMoreInit.append( ' print " min = ",min ' ) - PyMoreInit.append( ' print " max = ",max ' ) - PyMoreInit.append( ' print " medfield = ",medfield ' ) - PyMoreInit.append( ' return DoLoop,index,min,max,medfield,x1,aVisu,aView ' ) - PyNextInit = [] - PyNextInit.append( 'def Next(index,min,max,medfield,x1,aVisu,aView): ' ) - PyNextInit.append( ' index = index + 1 ' ) - PyNextInit.append( ' print "Next --> index = ",index ' ) - PyNextInit.append( ' print " min = ",min ' ) - PyNextInit.append( ' print " max = ",max ' ) - PyNextInit.append( ' print " medfield = ",medfield ' ) - PyNextInit.append( ' return index,min,max,medfield,x1,aVisu,aView ' ) - Init,EndInit = TestSupervMedfieldLoopFori.LNode( 'Init' , PyInit , 'More' , PyMoreInit , 'Next' , PyNextInit ) - EndInit.SetName( 'EndInit' ) - EndInit.SetAuthor( 'LD' ) - EndInit.SetComment( 'no comment' ) - EndInit.Coords( 631 , 5 ) - PyEndInit = [] - EndInit.SetPyFunction( '' , PyEndInit ) - IInitDoLoop = Init.GetInPort( 'DoLoop' ) - IInitindex = Init.InPort( 'index' , 'long' ) - IInitmin = Init.InPort( 'min' , 'long' ) - IInitmax = Init.InPort( 'max' , 'long' ) - IInitmedfield = Init.InPort( 'medfield' , 'objref' ) - IInitx1 = Init.InPort( 'x1' , 'double' ) - IInitaVisu = Init.InPort( 'aVisu' , 'objref' ) - IInitaView = Init.InPort( 'aView' , 'objref' ) - IInitGate = Init.GetInPort( 'Gate' ) - OInitDoLoop = Init.GetOutPort( 'DoLoop' ) - OInitindex = Init.GetOutPort( 'index' ) - OInitmin = Init.GetOutPort( 'min' ) - OInitmax = Init.GetOutPort( 'max' ) - OInitmedfield = Init.GetOutPort( 'medfield' ) - OInitx1 = Init.GetOutPort( 'x1' ) - OInitaVisu = Init.GetOutPort( 'aVisu' ) - OInitaView = Init.GetOutPort( 'aView' ) - IEndInitDoLoop = EndInit.GetInPort( 'DoLoop' ) - IEndInitindex = EndInit.GetInPort( 'index' ) - IEndInitmin = EndInit.GetInPort( 'min' ) - IEndInitmax = EndInit.GetInPort( 'max' ) - IEndInitmedfield = EndInit.GetInPort( 'medfield' ) - IEndInitx1 = EndInit.GetInPort( 'x1' ) - IEndInitaVisu = EndInit.GetInPort( 'aVisu' ) - IEndInitaView = EndInit.GetInPort( 'aView' ) - IEndInitGate = EndInit.GetInPort( 'Gate' ) - OEndInitDoLoop = EndInit.GetOutPort( 'DoLoop' ) - OEndInitindex = EndInit.GetOutPort( 'index' ) - OEndInitmin = EndInit.GetOutPort( 'min' ) - OEndInitmax = EndInit.GetOutPort( 'max' ) - OEndInitmedfield = EndInit.GetOutPort( 'medfield' ) - OEndInitx1 = EndInit.GetOutPort( 'x1' ) - OEndInitaVisu = EndInit.GetOutPort( 'aVisu' ) - OEndInitaView = EndInit.GetOutPort( 'aView' ) - OEndInitGate = EndInit.GetOutPort( 'Gate' ) - Init.SetName( 'Init' ) - Init.SetAuthor( 'LD' ) - Init.SetComment( 'no comment' ) - Init.Coords( 216 , 5 ) - - # Creation of Links - LInitDisplayaVisuInitaVisu = TestSupervMedfieldLoopFori.Link( OInitDisplayaVisu , IInitaVisu ) - - LInitDisplayaViewInitaView = TestSupervMedfieldLoopFori.Link( OInitDisplayaView , IInitaView ) - - LInitindexEndInitindex = TestSupervMedfieldLoopFori.Link( OInitindex , IEndInitindex ) - - LInitminEndInitmin = TestSupervMedfieldLoopFori.Link( OInitmin , IEndInitmin ) - - LInitmaxEndInitmax = TestSupervMedfieldLoopFori.Link( OInitmax , IEndInitmax ) - - LInitmedfieldMulfield1 = TestSupervMedfieldLoopFori.Link( OInitmedfield , IMulfield1 ) - - LInitx1EndInitx1 = TestSupervMedfieldLoopFori.Link( OInitx1 , IEndInitx1 ) - - LInitx1Mulx1 = TestSupervMedfieldLoopFori.Link( OInitx1 , IMulx1 ) - - LInitaVisuEndInitaVisu = TestSupervMedfieldLoopFori.Link( OInitaVisu , IEndInitaVisu ) - - LInitaViewEndInitaView = TestSupervMedfieldLoopFori.Link( OInitaView , IEndInitaView ) - - LMulreturnEndInitmedfield = TestSupervMedfieldLoopFori.Link( OMulreturn , IEndInitmedfield ) - - # Input datas - IInitindex.Input( 0 ) - IInitmin.Input( 0 ) - IInitmax.Input( 55 ) - IInitmedfield.Input( 'IOR:010000001f00000049444c3a53414c4f4d455f4d45442f4649454c44444f55424c453a312e300000010000000000000026000000010100000a0000003132372e302e302e3100ead00e000000fe1948673f000058e60000000021' ) - IInitx1.Input( 2 ) - - # Output Ports of the graph - #OEndInitindex = EndInit.GetOutPort( 'index' ) - #OEndInitmin = EndInit.GetOutPort( 'min' ) - #OEndInitmax = EndInit.GetOutPort( 'max' ) - #OEndInitmedfield = EndInit.GetOutPort( 'medfield' ) - #OEndInitx1 = EndInit.GetOutPort( 'x1' ) - #OEndInitaVisu = EndInit.GetOutPort( 'aVisu' ) - #OEndInitaView = EndInit.GetOutPort( 'aView' ) - return TestSupervMedfieldLoopFori - - -TestSupervMedfieldLoopFori = DefTestSupervMedfieldLoopFori() diff --git a/Superv/Python/TestSupervMedfieldLoopForiVisu.py b/Superv/Python/TestSupervMedfieldLoopForiVisu.py deleted file mode 100755 index c21901a..0000000 --- a/Superv/Python/TestSupervMedfieldLoopForiVisu.py +++ /dev/null @@ -1,264 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph TestSupervMedfieldLoopForiVisu -# -from SuperV import * - -# Graph creation of TestSupervMedfieldLoopForiVisu -def DefTestSupervMedfieldLoopForiVisu() : - TestSupervMedfieldLoopForiVisu = Graph( 'TestSupervMedfieldLoopForiVisu' ) - TestSupervMedfieldLoopForiVisu.SetName( 'TestSupervMedfieldLoopForiVisu' ) - TestSupervMedfieldLoopForiVisu.SetAuthor( '' ) - TestSupervMedfieldLoopForiVisu.SetComment( '' ) - TestSupervMedfieldLoopForiVisu.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - Mul = TestSupervMedfieldLoopForiVisu.FNode( 'Calculator' , 'Calculator' , 'Mul' ) - Mul.SetName( 'Mul' ) - Mul.SetAuthor( 'LD' ) - Mul.SetContainer( 'localhost/FactoryServer' ) - Mul.SetComment( 'Multiply a field by a constant' ) - Mul.Coords( 387 , 104 ) - IMulfield1 = Mul.GetInPort( 'field1' ) - IMulx1 = Mul.GetInPort( 'x1' ) - IMulGate = Mul.GetInPort( 'Gate' ) - OMulreturn = Mul.GetOutPort( 'return' ) - OMulGate = Mul.GetOutPort( 'Gate' ) - - # Creation of InLine Nodes - PyInitDisplay = [] - PyInitDisplay.append( 'from LifeCycleCORBA import * ' ) - PyInitDisplay.append( 'from VISU import * ' ) - PyInitDisplay.append( 'def InitDisplay(): ' ) - PyInitDisplay.append( ' # initialize the ORB ' ) - PyInitDisplay.append( ' orb = CORBA.ORB_init([], CORBA.ORB_ID) ' ) - PyInitDisplay.append( ' # create an LifeCycleCORBA instance ' ) - PyInitDisplay.append( ' lcc = LifeCycleCORBA(orb) ' ) - PyInitDisplay.append( ' # ----------------------------------------- ' ) - PyInitDisplay.append( ' # loading visu component ' ) - PyInitDisplay.append( ' aVisu = lcc.FindOrLoadComponent("FactoryServer","VISU") ' ) - PyInitDisplay.append( ' print "InitDisplay --> aVisu = ",aVisu ' ) - PyInitDisplay.append( ' aViewManager = aVisu.GetViewManager() ' ) - PyInitDisplay.append( ' print "InitDisplay --> aViewManager = ",aViewManager ' ) - PyInitDisplay.append( ' # aView = aViewManager.GetCurrentView() ' ) - PyInitDisplay.append( ' aView = aViewManager.Create3DView() ' ) - PyInitDisplay.append( ' print "InitDisplay --> aView = ",aView ' ) - PyInitDisplay.append( ' return aVisu,aView ' ) - InitDisplay = TestSupervMedfieldLoopForiVisu.INode( 'InitDisplay' , PyInitDisplay ) - InitDisplay.SetName( 'InitDisplay' ) - InitDisplay.SetAuthor( '' ) - InitDisplay.SetComment( 'Compute Node' ) - InitDisplay.Coords( 0 , 163 ) - IInitDisplayGate = InitDisplay.GetInPort( 'Gate' ) - OInitDisplayaVisu = InitDisplay.OutPort( 'aVisu' , 'objref' ) - OInitDisplayaView = InitDisplay.OutPort( 'aView' , 'objref' ) - OInitDisplayGate = InitDisplay.GetOutPort( 'Gate' ) - - PyDisplayMed = [] - PyDisplayMed.append( 'import os ' ) - PyDisplayMed.append( 'import SALOME_MED ' ) - PyDisplayMed.append( 'from VISU import * ' ) - PyDisplayMed.append( 'from LifeCycleCORBA import * ' ) - PyDisplayMed.append( 'def DisplayMed(medfield,index,aVisu,aView): ' ) - PyDisplayMed.append( ' # initialize the ORB ' ) - PyDisplayMed.append( ' orb = CORBA.ORB_init([''], CORBA.ORB_ID) ' ) - PyDisplayMed.append( ' # create an LifeCycleCORBA instance ' ) - PyDisplayMed.append( ' lcc = LifeCycleCORBA(orb) ' ) - PyDisplayMed.append( ' print " " ' ) - PyDisplayMed.append( ' print "***************************************************************" ' ) - PyDisplayMed.append( ' calc = lcc.FindOrLoadComponent("FactoryServer", "Calculator") ' ) - PyDisplayMed.append( ' print "-----> calc = ",calc ' ) - PyDisplayMed.append( ' medfilename = "/tmp/LoopGraphFile" + str(index) + ".med" ' ) - PyDisplayMed.append( ' print "-----> Writing Med field in temporary file : ",medfilename ' ) - PyDisplayMed.append( ' calc.writeMEDfile(medfield,medfilename) ' ) - PyDisplayMed.append( ' print "-----> calc = ",calc ' ) - PyDisplayMed.append( ' print "***************************************************************" ' ) - PyDisplayMed.append( ' myResult1 = aVisu.ImportFile(medfilename) ' ) - PyDisplayMed.append( ' print "-----> myResult1 = ",myResult1 ' ) - PyDisplayMed.append( ' field_name = medfield.getName() ' ) - PyDisplayMed.append( ' print "-----> field_name = ",field_name ' ) - PyDisplayMed.append( ' mesh_name = medfield.getSupport().getMesh().getName() ' ) - PyDisplayMed.append( ' print "-----> mesh_name = ",mesh_name ' ) - PyDisplayMed.append( ' aMesh1 = aVisu.MeshOnEntity(myResult1,mesh_name,CELL) ' ) - PyDisplayMed.append( ' print "-----> aMesh1 = ",aMesh1 ' ) - PyDisplayMed.append( ' aScalarMap1 = aVisu.ScalarMapOnField(myResult1,mesh_name,NODE,field_name,1) ' ) - PyDisplayMed.append( ' print "-----> aScalarMap1 = ",aScalarMap1 ' ) - PyDisplayMed.append( ' aView.DisplayOnly(aScalarMap1) ' ) - PyDisplayMed.append( ' aView.FitAll() ' ) - PyDisplayMed.append( ' command = "rm " + medfilename ' ) - PyDisplayMed.append( ' os.system(command) ' ) - PyDisplayMed.append( ' print "-----> Delete temporary Med file : ",medfilename ' ) - PyDisplayMed.append( ' print "***************************************************************" ' ) - PyDisplayMed.append( ' print " " ' ) - PyDisplayMed.append( ' return medfield ' ) - DisplayMed = TestSupervMedfieldLoopForiVisu.INode( 'DisplayMed' , PyDisplayMed ) - DisplayMed.SetName( 'DisplayMed' ) - DisplayMed.SetAuthor( '' ) - DisplayMed.SetComment( 'Compute Node' ) - DisplayMed.Coords( 594 , 105 ) - IDisplayMedINmedfield = DisplayMed.InPort( 'INmedfield' , 'objref' ) - IDisplayMedindex = DisplayMed.InPort( 'index' , 'long' ) - IDisplayMedaVisu = DisplayMed.InPort( 'aVisu' , 'objref' ) - IDisplayMedaView = DisplayMed.InPort( 'aView' , 'objref' ) - IDisplayMedGate = DisplayMed.GetInPort( 'Gate' ) - ODisplayMedOUTmedfield = DisplayMed.OutPort( 'OUTmedfield' , 'objref' ) - ODisplayMedGate = DisplayMed.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyInit = [] - PyInit.append( 'def Init(index,min,max,medfield,x1,aVisu,aView): ' ) - PyInit.append( ' if max >= min : ' ) - PyInit.append( ' index = min ' ) - PyInit.append( ' else : ' ) - PyInit.append( ' index = max ' ) - PyInit.append( ' print "Init --> index = ",index ' ) - PyInit.append( ' print " min = ",min ' ) - PyInit.append( ' print " max = ",max ' ) - PyInit.append( ' print " medfield = ",medfield ' ) - PyInit.append( ' return index,min,max,medfield,x1,aVisu,aView ' ) - PyMoreInit = [] - PyMoreInit.append( 'def More(index,min,max,medfield,x1,aVisu,aView): ' ) - PyMoreInit.append( ' if max >= index : ' ) - PyMoreInit.append( ' DoLoop = 1 ' ) - PyMoreInit.append( ' else : ' ) - PyMoreInit.append( ' DoLoop = 0 ' ) - PyMoreInit.append( ' print "More --> DoLoop = ",DoLoop ' ) - PyMoreInit.append( ' print " index = ",index ' ) - PyMoreInit.append( ' print " min = ",min ' ) - PyMoreInit.append( ' print " max = ",max ' ) - PyMoreInit.append( ' print " medfield = ",medfield ' ) - PyMoreInit.append( ' return DoLoop,index,min,max,medfield,x1,aVisu,aView ' ) - PyNextInit = [] - PyNextInit.append( 'def Next(index,min,max,medfield,x1,aVisu,aView): ' ) - PyNextInit.append( ' index = index + 1 ' ) - PyNextInit.append( ' print "Next --> index = ",index ' ) - PyNextInit.append( ' print " min = ",min ' ) - PyNextInit.append( ' print " max = ",max ' ) - PyNextInit.append( ' print " medfield = ",medfield ' ) - PyNextInit.append( ' return index,min,max,medfield,x1,aVisu,aView ' ) - Init,EndInit = TestSupervMedfieldLoopForiVisu.LNode( 'Init' , PyInit , 'More' , PyMoreInit , 'Next' , PyNextInit ) - EndInit.SetName( 'EndInit' ) - EndInit.SetAuthor( 'LD' ) - EndInit.SetComment( 'no comment' ) - EndInit.Coords( 776 , 64 ) - PyEndInit = [] - EndInit.SetPyFunction( '' , PyEndInit ) - IInitDoLoop = Init.GetInPort( 'DoLoop' ) - IInitindex = Init.InPort( 'index' , 'long' ) - IInitmin = Init.InPort( 'min' , 'long' ) - IInitmax = Init.InPort( 'max' , 'long' ) - IInitmedfield = Init.InPort( 'medfield' , 'objref' ) - IInitx1 = Init.InPort( 'x1' , 'double' ) - IInitaVisu = Init.InPort( 'aVisu' , 'objref' ) - IInitaView = Init.InPort( 'aView' , 'objref' ) - IInitGate = Init.GetInPort( 'Gate' ) - OInitDoLoop = Init.GetOutPort( 'DoLoop' ) - OInitindex = Init.GetOutPort( 'index' ) - OInitmin = Init.GetOutPort( 'min' ) - OInitmax = Init.GetOutPort( 'max' ) - OInitmedfield = Init.GetOutPort( 'medfield' ) - OInitx1 = Init.GetOutPort( 'x1' ) - OInitaVisu = Init.GetOutPort( 'aVisu' ) - OInitaView = Init.GetOutPort( 'aView' ) - IEndInitDoLoop = EndInit.GetInPort( 'DoLoop' ) - IEndInitindex = EndInit.GetInPort( 'index' ) - IEndInitmin = EndInit.GetInPort( 'min' ) - IEndInitmax = EndInit.GetInPort( 'max' ) - IEndInitmedfield = EndInit.GetInPort( 'medfield' ) - IEndInitx1 = EndInit.GetInPort( 'x1' ) - IEndInitaVisu = EndInit.GetInPort( 'aVisu' ) - IEndInitaView = EndInit.GetInPort( 'aView' ) - IEndInitGate = EndInit.GetInPort( 'Gate' ) - OEndInitDoLoop = EndInit.GetOutPort( 'DoLoop' ) - OEndInitindex = EndInit.GetOutPort( 'index' ) - OEndInitmin = EndInit.GetOutPort( 'min' ) - OEndInitmax = EndInit.GetOutPort( 'max' ) - OEndInitmedfield = EndInit.GetOutPort( 'medfield' ) - OEndInitx1 = EndInit.GetOutPort( 'x1' ) - OEndInitaVisu = EndInit.GetOutPort( 'aVisu' ) - OEndInitaView = EndInit.GetOutPort( 'aView' ) - OEndInitGate = EndInit.GetOutPort( 'Gate' ) - Init.SetName( 'Init' ) - Init.SetAuthor( 'LD' ) - Init.SetComment( 'no comment' ) - Init.Coords( 205 , 63 ) - - # Creation of Links - LInitDisplayaVisuInitaVisu = TestSupervMedfieldLoopForiVisu.Link( OInitDisplayaVisu , IInitaVisu ) - - LInitDisplayaViewInitaView = TestSupervMedfieldLoopForiVisu.Link( OInitDisplayaView , IInitaView ) - - LInitindexEndInitindex = TestSupervMedfieldLoopForiVisu.Link( OInitindex , IEndInitindex ) - - LInitindexDisplayMedindex = TestSupervMedfieldLoopForiVisu.Link( OInitindex , IDisplayMedindex ) - LInitindexDisplayMedindex.AddCoord( 1 , 566 , 215 ) - LInitindexDisplayMedindex.AddCoord( 2 , 566 , 96 ) - - LInitminEndInitmin = TestSupervMedfieldLoopForiVisu.Link( OInitmin , IEndInitmin ) - - LInitmaxEndInitmax = TestSupervMedfieldLoopForiVisu.Link( OInitmax , IEndInitmax ) - - LInitmedfieldMulfield1 = TestSupervMedfieldLoopForiVisu.Link( OInitmedfield , IMulfield1 ) - - LInitx1EndInitx1 = TestSupervMedfieldLoopForiVisu.Link( OInitx1 , IEndInitx1 ) - - LInitx1Mulx1 = TestSupervMedfieldLoopForiVisu.Link( OInitx1 , IMulx1 ) - - LInitaVisuEndInitaVisu = TestSupervMedfieldLoopForiVisu.Link( OInitaVisu , IEndInitaVisu ) - - LInitaVisuDisplayMedaVisu = TestSupervMedfieldLoopForiVisu.Link( OInitaVisu , IDisplayMedaVisu ) - LInitaVisuDisplayMedaVisu.AddCoord( 1 , 570 , 242 ) - LInitaVisuDisplayMedaVisu.AddCoord( 2 , 569 , 263 ) - LInitaVisuDisplayMedaVisu.AddCoord( 3 , 377 , 264 ) - LInitaVisuDisplayMedaVisu.AddCoord( 4 , 376 , 242 ) - - LInitaViewEndInitaView = TestSupervMedfieldLoopForiVisu.Link( OInitaView , IEndInitaView ) - - LInitaViewDisplayMedaView = TestSupervMedfieldLoopForiVisu.Link( OInitaView , IDisplayMedaView ) - - LMulreturnDisplayMedINmedfield = TestSupervMedfieldLoopForiVisu.Link( OMulreturn , IDisplayMedINmedfield ) - - LDisplayMedOUTmedfieldEndInitmedfield = TestSupervMedfieldLoopForiVisu.Link( ODisplayMedOUTmedfield , IEndInitmedfield ) - - # Input datas - IInitindex.Input( 0 ) - IInitmin.Input( 0 ) - IInitmax.Input( 4 ) - IInitx1.Input( 2 ) - - # Input Ports of the graph - #IInitmedfield = Init.GetInPort( 'medfield' ) - - # Output Ports of the graph - #OEndInitindex = EndInit.GetOutPort( 'index' ) - #OEndInitmin = EndInit.GetOutPort( 'min' ) - #OEndInitmax = EndInit.GetOutPort( 'max' ) - #OEndInitmedfield = EndInit.GetOutPort( 'medfield' ) - #OEndInitx1 = EndInit.GetOutPort( 'x1' ) - #OEndInitaVisu = EndInit.GetOutPort( 'aVisu' ) - #OEndInitaView = EndInit.GetOutPort( 'aView' ) - return TestSupervMedfieldLoopForiVisu - - -TestSupervMedfieldLoopForiVisu = DefTestSupervMedfieldLoopForiVisu() diff --git a/Superv/Python/dataflow_calculator_example.py b/Superv/Python/dataflow_calculator_example.py deleted file mode 100755 index d3d893f..0000000 --- a/Superv/Python/dataflow_calculator_example.py +++ /dev/null @@ -1,229 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -#%dataflow_calculator_example.py% -#============================================================================== -# File : dataflow_calculator_example.py -# Created : 30 sept 2002 -# Author : Laurent DADA -# Project : SALOME -#============================================================================== -#============================================================================== -# Example of dataflow with CalculatorComponent services (Add, Mult and Const) -# and MED data (mesh and field). -#============================================================================== -#============================================================================== -# -import batchmode_salome -import SALOME_MED -from batchmode_SuperV import * -#============================================================================== -datadir = os.getenv("DATA_DIR") -if len(datadir) != 0: - datadir=datadir+ "/MedFiles/" -input_file = datadir+'pointe.med' -print 'dataflow_calculator_example.py',input_file -str= os.getenv("HOME") -if str == None: - str = "/tmp" -output_file = str + 'test_dataflow_calculator.med' - -export_xmlfile = str + "/my_dataflow_calculator_example.xml" - -#============================================================================== -# Load mesh and field in MED component, register into current study and get -# a field under the following name : fieldnodedouble -#============================================================================== -from batchmode_MED import * - -#============================================================================== -# Define a function for printing on Salome TUI the" until_index" first values -# for each component of a field (MED data) -#============================================================================== - -def PrintField(aField,until_index): - # check parameter - if aField is None: - print "PrintField() : aField is None " - return - name = aField.getName() - desc = aField.getDescription() - nb_comp = aField.getNumberOfComponents() - values = aField.getValue(SALOME_MED.MED_FULL_INTERLACE) - support = aField.getSupport() - if (support.isOnAllElements()): - nb_node = support.getMesh().getNumberOfElements(support.getEntity(),SALOME_MED.MED_ALL_ELEMENTS) - else: - nb_node = support.getNumberOfElements(SALOME_MED.MED_ALL_ELEMENTS); - - if until_index > nb_node: - max_index = nb_node - else: - max_index = until_index - time = aField.getTime() - iter = aField.getIterationNumber() - print "------------------------------------------------" - print "Field %s"%(name) - print " Description : %s"%(desc) - print " Number of components : %d"%(nb_comp) - print " Number of nodes : %d"%(nb_node) - print " Iteration number : %d"%(iter) - print " Time : %f"%(time) - icomp = 0 - while icomp < nb_comp : - icomp = icomp + 1 - namec = aField.getComponentName(icomp) - unit = aField.getComponentUnit(icomp) - print " Component : %s"%(namec) - print " Unit : %s"%(type) - print " first %d values :"%(until_index) - index = 0 - while index < max_index : - index = index + 1 - print " component %d index %d :%f"%(icomp,index,values[(index-1)+(icomp-1)*nb_comp]) - print "------------------------------------------------" - -#---------------------------------------------------------------------- - -med_comp.readStructFileWithFieldType(input_file, studyCurrent) - -med_obj = getMedObjectFromStudy() - -nbMeshes = med_obj.getNumberOfMeshes() - -nbFields = med_obj.getNumberOfFields() - -print "" -print "The med file ",input_file," has ",nbMeshes," Meshe(s) and ",nbFields," Field(s)" -print "" - -mesh = getMeshObjectFromStudy(1) - -name = mesh.getName() - -nbNodes = mesh.getNumberOfNodes() - -spaceDim = mesh.getSpaceDimension() - -print "The mesh from the Study is ",name,".It is a ",spaceDim,"-D mesh and it has ",nbNodes,"Nodes" -print "" - -fieldcelldouble = getFieldIntObjectFromStudy(1,1) -if (fieldcelldouble == None): - fieldcelldouble = getFieldDoubleObjectFromStudy(1,1) - print "The following field is a float (double) one" -else: - print "The following field is an integer one" - -AnalyzeField(fieldcelldouble) - -fieldnodedouble = getFieldIntObjectFromStudy(2,1) -if (fieldnodedouble == None): - fieldnodedouble = getFieldDoubleObjectFromStudy(2,1) - print "The following field is a float (double) one" -else: - print "The following field is an integer one" - -AnalyzeField(fieldnodedouble) -#---------------------------------------------------------------------- - -#============================================================================== -# Building the Dataflow -#============================================================================== - -myGraph = Graph("CalculatorDataflow") - -# nodes and links -# ------------------- - -scal_field_const = myGraph.Node("Calculator","Calculator","Constant") -scal_field_mult = myGraph.Node("Calculator","Calculator","Mul") -scal_field_add = myGraph.Node("Calculator","Calculator","Add") - -write_initial = myGraph.Node("Calculator","Calculator","writeMEDfile") -write_result = myGraph.Node("Calculator","Calculator","writeMEDfile") - -link1 = myGraph.Link( scal_field_const.Port("return") , scal_field_add.Port("field1") ) -link2 = myGraph.Link( scal_field_mult.Port("return") , scal_field_add.Port("field2") ) -link3 = myGraph.Link( scal_field_add.Port("return") , write_result.Port("field1") ) - - -# machines ressources -# ------------------- - -#myGraph.SetContainer('FactoryServer') -scal_field_const.SetContainer('FactoryServer') -scal_field_mult.SetContainer('FactoryServer') -scal_field_add.SetContainer('FactoryServer') -write_initial.SetContainer('FactoryServer') -write_result.SetContainer('FactoryServer') - -# validation and exporting (xml format) -# --------------------------------- -print myGraph.Export(export_xmlfile) - -print myGraph.IsValid() - -#============================================================================== -# Dataflow Input -#============================================================================== - -# Ports Input -# ---------------------------- - -scal_const_in2 = scal_field_const.Input( "x1", 10. ) -scal_mult_in2 = scal_field_mult.Input( "x1", -1. ) -result_write = write_result.Input( "filename", output_file) -initial_write_in2 = write_initial.Input( "filename", output_file) - -# exporting with constant inputs (xml format) -# ------------------------------------------- - -print myGraph.Export(export_xmlfile) - -# Other ports Input -# ---------------------------- - -print "Print fieldnodedouble" -PrintField(fieldnodedouble,20) - -scal_const_in1 = scal_field_const.Input( "field1", fieldnodedouble ) -scal_mult_in1 = scal_field_mult.Input( "field1", fieldnodedouble ) -initial_write_in1 = write_initial.Input( "field1", fieldnodedouble) - -print myGraph.IsExecutable() - -#============================================================================== -# Running the Dataflow (asynchronous) -#============================================================================== - -print myGraph.Run() - -print myGraph.DoneW() - -new_field = scal_field_add.Port("return").ToAny().value() -print "Print new_field" -PrintField(new_field,20) - - - - diff --git a/Superv/Python/myFactorialPy.py b/Superv/Python/myFactorialPy.py deleted file mode 100644 index e904ddd..0000000 --- a/Superv/Python/myFactorialPy.py +++ /dev/null @@ -1,42 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# -# File : myFactorialPy.py -# Module : SuperVisionTest -# -from SuperV import * - -myPy = Graph('myPy') - -eval = myPy.Node('FactorialComponent','FactorialComponent','eval') -eval.SetContainer('FactoryServerPy') - -myPy.IsValid() - -myPy.PrintPorts() - -myPy.Run( 3 ) - -myPy.DoneW() - -print myPy.State() - -myPy.PrintPorts() diff --git a/Superv/Python/newsupervisionexample.py b/Superv/Python/newsupervisionexample.py deleted file mode 100644 index 66f373c..0000000 --- a/Superv/Python/newsupervisionexample.py +++ /dev/null @@ -1,85 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# -# File : newsupervisionexample.py -# Module : SuperVisionTest -# -from SuperV import * -# Graph creation -newsupervisionexample = Graph( 'newsupervisionexample' ) -newsupervisionexample.SetName( 'newsupervisionexample' ) -newsupervisionexample.SetAuthor( '' ) -newsupervisionexample.SetComment( '' ) -newsupervisionexample.Coords( 0 , 0 ) - -# Creation of Computing Nodes -Add = newsupervisionexample.Node( 'AddComponent' , 'AddComponent' , 'Add' ) -Add.SetName( 'Add' ) -Add.SetAuthor( '' ) -Add.SetContainer( 'FactoryServer' ) -Add.SetComment( '' ) -Add.Coords( 15 , 241 ) -Sub = newsupervisionexample.Node( 'SubComponent' , 'SubComponent' , 'Sub' ) -Sub.SetName( 'Sub' ) -Sub.SetAuthor( '' ) -Sub.SetContainer( 'FactoryServer' ) -Sub.SetComment( '' ) -Sub.Coords( 227 , 99 ) -Mul = newsupervisionexample.Node( 'MulComponent' , 'MulComponent' , 'Mul' ) -Mul.SetName( 'Mul' ) -Mul.SetAuthor( '' ) -Mul.SetContainer( 'FactoryServer' ) -Mul.SetComment( '' ) -Mul.Coords( 443 , 278 ) -Div = newsupervisionexample.Node( 'DivComponent' , 'DivComponent' , 'Div' ) -Div.SetName( 'Div' ) -Div.SetAuthor( '' ) -Div.SetContainer( 'FactoryServer' ) -Div.SetComment( '' ) -Div.Coords( 634 , 97 ) - -# Creation of intermediate Output variables and of Computing Links -Addz = Add.Port( 'z' ) -Suby = newsupervisionexample.Link( Addz , Sub.Port( 'y' ) ) -Muly = newsupervisionexample.Link( Addz , Mul.Port( 'y' ) ) -Subz = Sub.Port( 'z' ) -Mulx = newsupervisionexample.Link( Subz , Mul.Port( 'x' ) ) -Divx = newsupervisionexample.Link( Subz , Div.Port( 'x' ) ) -Mulz = Mul.Port( 'z' ) -Divy = newsupervisionexample.Link( Mulz , Div.Port( 'y' ) ) - -# Creation of Input datas -Addx = Add.Input( 'x' , 3) -Addy = Add.Input( 'y' , 4.5) -Subx = Sub.Input( 'x' , 1.5) - -# Creation of Output variables -AddFuncValue = Add.Port( 'FuncValue' ) -Divz = Div.Port( 'z' ) - -newsupervisionexample.Run() - -newsupervisionexample.DoneW() - -newsupervisionexample.State() - -newsupervisionexample.PrintPorts() - diff --git a/Superv/Python/test_events.py b/Superv/Python/test_events.py deleted file mode 100644 index dcaa2ef..0000000 --- a/Superv/Python/test_events.py +++ /dev/null @@ -1,87 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph aNewDataFlow -# -from SuperV import * -# Graph creation -aNewDataFlow = Graph( 'aNewDataFlow' ) -aNewDataFlow.SetName( 'aNewDataFlow' ) -aNewDataFlow.SetAuthor( '' ) -aNewDataFlow.SetComment( '' ) -aNewDataFlow.Coords( 0 , 0 ) - -# Creation of Factory Nodes - -# Creation of InLine Nodes -PyFunc = [] -PyFunc.append( 'def Func( A ): ' ) -PyFunc.append( ' import batchmode_visu ' ) -PyFunc.append( ' batchmode_visu.myVisu.CreateTestView() ' ) -PyFunc.append( ' batchmode_visu.myVisu.ShowTestObject() ' ) -PyFunc.append( ' return A ' ) -Func = aNewDataFlow.INode( 'Func' , PyFunc ) -Func.SetName( 'Func' ) -Func.SetAuthor( '' ) -Func.SetComment( 'Compute Node' ) -Func.Coords( 375 , 162 ) -Func.InPort( 'A' , 'int' ) -Func.OutPort( 'B' , 'int' ) - -# Creation of Loop Nodes -PyInit = [] -PyInit.append( 'def Init( A ): ' ) -PyInit.append( ' return A ' ) -PyMoreInit = [] -PyMoreInit.append( 'def More( A ): ' ) -PyMoreInit.append( ' if A < 10: ' ) -PyMoreInit.append( ' return 1,A ' ) -PyMoreInit.append( ' return 0,A ' ) -PyNextInit = [] -PyNextInit.append( 'def Next( A ): ' ) -PyNextInit.append( ' return (A + 1) ' ) -Init,EndInit = aNewDataFlow.LNode( 'Init' , PyInit , 'More' , PyMoreInit , 'Next' , PyNextInit ) -EndInit.SetName( 'EndInit' ) -EndInit.SetAuthor( '' ) -EndInit.SetComment( '' ) -EndInit.Coords( 740 , 168 ) -PyEndInit = [] -EndInit.SetPyFunction( 'EndInit' , PyEndInit ) -Init.SetName( 'Init' ) -Init.SetAuthor( '' ) -Init.SetComment( '' ) -Init.Coords( 118 , 160 ) -Init.InPort( 'A' , 'int' ) -Init.OutPort( 'A' , 'int' ) - -# Creation of Links -InitA = Init.Port( 'A' ) -FuncA = aNewDataFlow.Link( InitA , Func.Port( 'A' ) ) - -FuncB = Func.Port( 'B' ) -EndInitA = aNewDataFlow.Link( FuncB , EndInit.Port( 'A' ) ) - -# Creation of Input datas -InitA = Init.Input( 'A' , 0) - -# Creation of Output variables -EndInitA = EndInit.Port( 'A' ) diff --git a/Superv/Python/test_superv_basic_loop.py b/Superv/Python/test_superv_basic_loop.py deleted file mode 100755 index ee86600..0000000 --- a/Superv/Python/test_superv_basic_loop.py +++ /dev/null @@ -1,124 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph test_superv_basic_loop -# -from SuperV import * -# Graph creation -test_superv_basic_loop = Graph( 'test_superv_basic_loop' ) -test_superv_basic_loop.SetName( 'test_superv_basic_loop' ) -test_superv_basic_loop.SetAuthor( '' ) -test_superv_basic_loop.SetComment( '' ) -test_superv_basic_loop.Coords( 0 , 0 ) - -# Creation of Factory Nodes - -# Creation of InLine Nodes -PyAdd = [] -PyAdd.append( 'def Sum(sum,incr): ' ) -PyAdd.append( ' result = sum+incr ' ) -PyAdd.append( ' return result,incr ' ) -Add = test_superv_basic_loop.INode( 'Sum' , PyAdd ) -Add.InPort( 'sum' , 'long' ) -Add.InPort( 'incr' , 'long' ) -Add.OutPort( 'Sum' , 'long' ) -Add.OutPort( 'incr' , 'long' ) -Add.SetName( 'Add' ) -Add.SetAuthor( '' ) -Add.SetComment( 'Python function' ) -Add.Coords( 220 , 40 ) - -# Creation of Loop Nodes -Pyfori = [] -Pyfori.append( 'def Init(index,min,max,sum): ' ) -Pyfori.append( ' if max > min : ' ) -Pyfori.append( ' index = min ' ) -Pyfori.append( ' else : ' ) -Pyfori.append( ' index = max ' ) -Pyfori.append( ' #print index,min,max,sum ' ) -Pyfori.append( ' return index,min,max,sum ' ) -PyMorefori = [] -PyMorefori.append( 'def More(index,min,max,sum): ' ) -PyMorefori.append( ' OutLoop = 0 ' ) -PyMorefori.append( ' if max > index : ' ) -PyMorefori.append( ' OutLoop = 1 ' ) -PyMorefori.append( ' #print OutLoop,index,min,max,sum ' ) -PyMorefori.append( ' return OutLoop,index,min,max,sum ' ) -PyNextfori = [] -PyNextfori.append( 'def Next(index,min,max,sum): ' ) -PyNextfori.append( ' index = index + 1 ' ) -PyNextfori.append( ' #print index,min,max,sum ' ) -PyNextfori.append( ' return index,min,max,sum ' ) -fori,Endfori = test_superv_basic_loop.LNode( 'Init' , Pyfori , 'More' , PyMorefori , 'Next' , PyNextfori ) -Endfori.SetName( 'Endfori' ) -Endfori.SetAuthor( '' ) -Endfori.SetComment( '' ) -Endfori.Coords( 432 , 0 ) -fori.InPort( 'index' , 'long' ) -fori.InPort( 'min' , 'long' ) -fori.InPort( 'max' , 'long' ) -fori.InPort( 'sum' , 'long' ) -fori.OutPort( 'index' , 'long' ) -fori.OutPort( 'min' , 'long' ) -fori.OutPort( 'max' , 'long' ) -fori.OutPort( 'sum' , 'long' ) -fori.SetName( 'fori' ) -fori.SetAuthor( '' ) -fori.SetComment( '' ) -fori.Coords( 12 , 0 ) - -# Creation of Links -AddSum = Add.Port( 'Sum' ) -Endforisum = test_superv_basic_loop.Link( AddSum , Endfori.Port( 'sum' ) ) - -foriindex = fori.Port( 'index' ) -Endforiindex = test_superv_basic_loop.Link( foriindex , Endfori.Port( 'index' ) ) - -Addincr = test_superv_basic_loop.Link( foriindex , Add.Port( 'incr' ) ) -Addincr.AddCoord( 1 , 186 , 150 ) -Addincr.AddCoord( 2 , 187 , 34 ) - -forimin = fori.Port( 'min' ) -Endforimin = test_superv_basic_loop.Link( forimin , Endfori.Port( 'min' ) ) - -forimax = fori.Port( 'max' ) -Endforimax = test_superv_basic_loop.Link( forimax , Endfori.Port( 'max' ) ) - -forisum = fori.Port( 'sum' ) -Addsum = test_superv_basic_loop.Link( forisum , Add.Port( 'sum' ) ) - -# Creation of Input datas -foriindex = fori.Input( 'index' , 0) -forimin = fori.Input( 'min' , 0) -forimax = fori.Input( 'max' , 1001) -forisum = fori.Input( 'sum' , 0) - -# Creation of Output variables -Addincr = Add.Port( 'incr' ) -Endforiindex = Endfori.Port( 'index' ) -Endforimin = Endfori.Port( 'min' ) -Endforimax = Endfori.Port( 'max' ) -Endforisum = Endfori.Port( 'sum' ) - -test_superv_basic_loop.Run() -test_superv_basic_loop.DoneW() -test_superv_basic_loop.PrintPorts() diff --git a/Superv/Python/testvisu20_multi.py b/Superv/Python/testvisu20_multi.py deleted file mode 100644 index 10023a1..0000000 --- a/Superv/Python/testvisu20_multi.py +++ /dev/null @@ -1,355 +0,0 @@ -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# Generated python file of Graph TestVisu20_multi -# -from SuperV import * - -# Graph creation of TestVisu20_multi -def DefTestVisu20_multi() : - TestVisu20_multi = Graph( 'TestVisu20_multi' ) - TestVisu20_multi.SetName( 'TestVisu20_multi' ) - TestVisu20_multi.SetAuthor( '' ) - TestVisu20_multi.SetComment( '' ) - TestVisu20_multi.Coords( 0 , 0 ) - - # Creation of Factory Nodes - - # Creation of InLine Nodes - PyInitDisplay = [] - PyInitDisplay.append( 'import os ' ) - PyInitDisplay.append( 'import time ' ) - PyInitDisplay.append( 'from LifeCycleCORBA import * ' ) - PyInitDisplay.append( 'from SALOME_NamingServicePy import * ' ) - PyInitDisplay.append( 'import SALOMEDS ' ) - PyInitDisplay.append( 'from VISU import * ' ) - PyInitDisplay.append( 'def InitDisplay(): ' ) - PyInitDisplay.append( ' # --- initialize the ORB ' ) - PyInitDisplay.append( ' orb = CORBA.ORB_init([], CORBA.ORB_ID) ' ) - PyInitDisplay.append( ' # --- create a LifeCycleCORBA instance ' ) - PyInitDisplay.append( ' lcc = LifeCycleCORBA(orb) ' ) - PyInitDisplay.append( ' # --- create a naming service instance ' ) - PyInitDisplay.append( ' naming_service = SALOME_NamingServicePy_i(orb) ' ) - PyInitDisplay.append( ' # --- get Study Manager reference ' ) - PyInitDisplay.append( ' obj = naming_service.Resolve('myStudyManager') ' ) - PyInitDisplay.append( ' StudyManager = obj._narrow(SALOMEDS.StudyManager) ' ) - PyInitDisplay.append( ' # --- load visu component ' ) - PyInitDisplay.append( ' aVisu = lcc.FindOrLoadComponent("FactoryServer","VISU") ' ) - PyInitDisplay.append( ' aStudy = StudyManager.GetStudyByID(1) ' ) - PyInitDisplay.append( ' aVisu.SetCurrentStudy(aStudy) ' ) - PyInitDisplay.append( ' print "InitDisplay --> aVisu ", aVisu ' ) - PyInitDisplay.append( ' time.sleep(2) ' ) - PyInitDisplay.append( ' #aViewManager=aVisu.GetViewManager() ' ) - PyInitDisplay.append( ' #print "InitDisplay --> aViewManager ", aViewManager ' ) - PyInitDisplay.append( ' #time.sleep(2) ' ) - PyInitDisplay.append( ' #aView=aViewManager.GetCurrentView() ' ) - PyInitDisplay.append( ' #aView=aViewManager.Create3DView() ' ) - PyInitDisplay.append( ' #print "InitDisplay --> aView ", aView ' ) - PyInitDisplay.append( ' #time.sleep(2) ' ) - PyInitDisplay.append( ' medFile = "TimeStamps.med" ' ) - PyInitDisplay.append( ' medFile = os.getenv('DATA_DIR') + '/MedFiles/' + medFile ' ) - PyInitDisplay.append( ' myResult = aVisu.ImportFile(medFile) ' ) - PyInitDisplay.append( ' print "InitDisplay --> myResult ", myResult ' ) - PyInitDisplay.append( ' return aVisu,myResult ' ) - PyInitDisplay.append( '' ) - InitDisplay = TestVisu20_multi.INode( 'InitDisplay' , PyInitDisplay ) - InitDisplay.SetName( 'InitDisplay' ) - InitDisplay.SetAuthor( '' ) - InitDisplay.SetComment( 'Compute Node' ) - InitDisplay.Coords( 13 , 173 ) - IInitDisplayGate = InitDisplay.GetInPort( 'Gate' ) - OInitDisplayaVisu = InitDisplay.OutPort( 'aVisu' , 'objref' ) - OInitDisplaymyResult = InitDisplay.OutPort( 'myResult' , 'objref' ) - OInitDisplayGate = InitDisplay.GetOutPort( 'Gate' ) - - PyDisplayVitesse = [] - PyDisplayVitesse.append( 'import VISU ' ) - PyDisplayVitesse.append( 'import os ' ) - PyDisplayVitesse.append( 'import time ' ) - PyDisplayVitesse.append( 'def DisplayVitesse(index,aVisu,aView,aResult,x1): ' ) - PyDisplayVitesse.append( ' print "----- Display 1 index = ", index,aVisu,aView,aResult,x1 ' ) - PyDisplayVitesse.append( ' aMeshName ="dom" ' ) - PyDisplayVitesse.append( ' myFieldName = "vitesse" ' ) - PyDisplayVitesse.append( ' anEntity = VISU.NODE ' ) - PyDisplayVitesse.append( ' aMesh = aVisu.MeshOnEntity(aResult, aMeshName, anEntity) ' ) - PyDisplayVitesse.append( ' print "----- Display 2 ", aMesh ' ) - PyDisplayVitesse.append( ' aScalarMap=aVisu.ScalarMapOnField(aResult,aMeshName,anEntity,myFieldName,x1) ' ) - PyDisplayVitesse.append( ' print "----- Display 4" ' ) - PyDisplayVitesse.append( ' if aScalarMap is not None: ' ) - PyDisplayVitesse.append( ' aScalarMap.SetScaling(VISU.LINEAR) ' ) - PyDisplayVitesse.append( ' else: ' ) - PyDisplayVitesse.append( ' print "Null scalar map is created" ' ) - PyDisplayVitesse.append( ' print "----- Display 5" ' ) - PyDisplayVitesse.append( ' aView.DisplayOnly(aScalarMap) ' ) - PyDisplayVitesse.append( ' aView.FitAll() ' ) - PyDisplayVitesse.append( ' aView.Update() ' ) - PyDisplayVitesse.append( ' print "----- Display 6" ' ) - PyDisplayVitesse.append( ' theResult=aResult ' ) - PyDisplayVitesse.append( ' #time.sleep(2) ' ) - PyDisplayVitesse.append( ' return theResult ' ) - PyDisplayVitesse.append( '' ) - DisplayVitesse = TestVisu20_multi.INode( 'DisplayVitesse' , PyDisplayVitesse ) - DisplayVitesse.SetName( 'DisplayVitesse' ) - DisplayVitesse.SetAuthor( '' ) - DisplayVitesse.SetComment( 'Compute Node' ) - DisplayVitesse.Coords( 609 , 506 ) - IDisplayVitesseindex = DisplayVitesse.InPort( 'index' , 'string' ) - IDisplayVitesseaVisu = DisplayVitesse.InPort( 'aVisu' , 'objref' ) - IDisplayVitesseaView = DisplayVitesse.InPort( 'aView' , 'objref' ) - IDisplayVitesseaResult = DisplayVitesse.InPort( 'aResult' , 'objref' ) - IDisplayVitessex1 = DisplayVitesse.InPort( 'x1' , 'double' ) - IDisplayVitesseGate = DisplayVitesse.GetInPort( 'Gate' ) - ODisplayVitessetheResult = DisplayVitesse.OutPort( 'theResult' , 'objref' ) - ODisplayVitesseGate = DisplayVitesse.GetOutPort( 'Gate' ) - - PyCreateView = [] - PyCreateView.append( 'def CreateView(aVisu,aResult) : ' ) - PyCreateView.append( ' vm=aVisu.GetViewManager() ' ) - PyCreateView.append( ' aView=vm.Create3DView() ' ) - PyCreateView.append( ' theVisu=aVisu ' ) - PyCreateView.append( ' theResult=aResult ' ) - PyCreateView.append( ' return aView,theVisu,theResult ' ) - CreateView = TestVisu20_multi.INode( 'CreateView' , PyCreateView ) - CreateView.SetName( 'CreateView' ) - CreateView.SetAuthor( '' ) - CreateView.SetComment( 'Compute Node' ) - CreateView.Coords( 221 , 563 ) - ICreateViewaVisu = CreateView.InPort( 'aVisu' , 'objref' ) - ICreateViewaResult = CreateView.InPort( 'aResult' , 'objref' ) - ICreateViewGate = CreateView.GetInPort( 'Gate' ) - OCreateViewaView = CreateView.OutPort( 'aView' , 'objref' ) - OCreateViewtheVisu = CreateView.OutPort( 'theVisu' , 'objref' ) - OCreateViewtheResult = CreateView.OutPort( 'theResult' , 'objref' ) - OCreateViewGate = CreateView.GetOutPort( 'Gate' ) - - # Creation of Loop Nodes - PyInit = [] - PyInit.append( 'def Init(index,min,max,aVisu,aView,myResult,x1): ' ) - PyInit.append( ' if max >= min : ' ) - PyInit.append( ' index = min ' ) - PyInit.append( ' else : ' ) - PyInit.append( ' index = max ' ) - PyInit.append( ' print "---- Init ",index,min,max,aVisu,aView,myResult,x1 ' ) - PyInit.append( ' return index,min,max,aVisu,aView,myResult,x1 ' ) - PyMoreInit = [] - PyMoreInit.append( 'def More(index,min,max,aVisu,aView,myResult,x1): ' ) - PyMoreInit.append( ' if max >= index : ' ) - PyMoreInit.append( ' DoLoop = 1 ' ) - PyMoreInit.append( ' else : ' ) - PyMoreInit.append( ' DoLoop = 0 ' ) - PyMoreInit.append( ' print "---- More",index,min,max,aVisu,aView,myResult,x1 ' ) - PyMoreInit.append( ' return DoLoop,index,min,max,aVisu,aView,myResult,x1 ' ) - PyNextInit = [] - PyNextInit.append( 'def Next(index,min,max,aVisu,aView,myResult,x1): ' ) - PyNextInit.append( ' index = index + 1 ' ) - PyNextInit.append( ' x1=x1+1.0 ' ) - PyNextInit.append( ' print "---- Next",index,min,max,aVisu,aView,myResult,x1 ' ) - PyNextInit.append( ' return index,min,max,aVisu,aView,myResult,x1 ' ) - Init,EndOfInit = TestVisu20_multi.LNode( 'Init' , PyInit , 'More' , PyMoreInit , 'Next' , PyNextInit ) - EndOfInit.SetName( 'EndOfInit' ) - EndOfInit.SetAuthor( '' ) - EndOfInit.SetComment( 'Compute Node' ) - EndOfInit.Coords( 797 , 507 ) - PyEndOfInit = [] - EndOfInit.SetPyFunction( '' , PyEndOfInit ) - IInitDoLoop = Init.GetInPort( 'DoLoop' ) - IInitindex = Init.InPort( 'index' , 'long' ) - IInitmin = Init.InPort( 'min' , 'long' ) - IInitmax = Init.InPort( 'max' , 'long' ) - IInitaVisu = Init.InPort( 'aVisu' , 'objref' ) - IInitaView = Init.InPort( 'aView' , 'objref' ) - IInitaResult = Init.InPort( 'aResult' , 'objref' ) - IInitx1 = Init.InPort( 'x1' , 'double' ) - IInitGate = Init.GetInPort( 'Gate' ) - OInitDoLoop = Init.GetOutPort( 'DoLoop' ) - OInitindex = Init.GetOutPort( 'index' ) - OInitmin = Init.GetOutPort( 'min' ) - OInitmax = Init.GetOutPort( 'max' ) - OInitaVisu = Init.GetOutPort( 'aVisu' ) - OInitaView = Init.GetOutPort( 'aView' ) - OInitaResult = Init.GetOutPort( 'aResult' ) - OInitx1 = Init.GetOutPort( 'x1' ) - IEndOfInitDoLoop = EndOfInit.GetInPort( 'DoLoop' ) - IEndOfInitindex = EndOfInit.GetInPort( 'index' ) - IEndOfInitmin = EndOfInit.GetInPort( 'min' ) - IEndOfInitmax = EndOfInit.GetInPort( 'max' ) - IEndOfInitaVisu = EndOfInit.GetInPort( 'aVisu' ) - IEndOfInitaView = EndOfInit.GetInPort( 'aView' ) - IEndOfInitaResult = EndOfInit.GetInPort( 'aResult' ) - IEndOfInitx1 = EndOfInit.GetInPort( 'x1' ) - IEndOfInitGate = EndOfInit.GetInPort( 'Gate' ) - OEndOfInitDoLoop = EndOfInit.GetOutPort( 'DoLoop' ) - OEndOfInitindex = EndOfInit.GetOutPort( 'index' ) - OEndOfInitmin = EndOfInit.GetOutPort( 'min' ) - OEndOfInitmax = EndOfInit.GetOutPort( 'max' ) - OEndOfInitaVisu = EndOfInit.GetOutPort( 'aVisu' ) - OEndOfInitaView = EndOfInit.GetOutPort( 'aView' ) - OEndOfInitaResult = EndOfInit.GetOutPort( 'aResult' ) - OEndOfInitx1 = EndOfInit.GetOutPort( 'x1' ) - OEndOfInitGate = EndOfInit.GetOutPort( 'Gate' ) - Init.SetName( 'Init' ) - Init.SetAuthor( '' ) - Init.SetComment( 'Compute Node' ) - Init.Coords( 428 , 493 ) - - PyLoopOnViews = [] - PyLoopOnViews.append( 'def InitViews( aVisu,aResult,ViewCount,MinCount,MaxCount ): ' ) - PyLoopOnViews.append( ' ViewCount=MinCount ' ) - PyLoopOnViews.append( ' return aVisu,aResult,ViewCount,MinCount,MaxCount ' ) - PyMoreLoopOnViews = [] - PyMoreLoopOnViews.append( 'def MoreViews( aVisu,aResult,ViewCount,MinCount,MaxCount ): ' ) - PyMoreLoopOnViews.append( ' if ViewCount < MaxCount: ' ) - PyMoreLoopOnViews.append( ' return 1,aVisu,aResult,ViewCount,MinCount,MaxCount ' ) - PyMoreLoopOnViews.append( ' return 0,aVisu,aResult,ViewCount,MinCount,MaxCount ' ) - PyNextLoopOnViews = [] - PyNextLoopOnViews.append( 'def NextViews( aVisu,aResult,ViewCount,MinCount,MaxCount ): ' ) - PyNextLoopOnViews.append( ' ViewCount = ViewCount + 1 ' ) - PyNextLoopOnViews.append( ' return aVisu,aResult,ViewCount,MinCount,MaxCount ' ) - LoopOnViews,EndOfLoopOnViews = TestVisu20_multi.LNode( 'InitViews' , PyLoopOnViews , 'MoreViews' , PyMoreLoopOnViews , 'NextViews' , PyNextLoopOnViews ) - EndOfLoopOnViews.SetName( 'EndOfLoopOnViews' ) - EndOfLoopOnViews.SetAuthor( '' ) - EndOfLoopOnViews.SetComment( 'Compute Node' ) - EndOfLoopOnViews.Coords( 773 , 224 ) - PyEndOfLoopOnViews = [] - EndOfLoopOnViews.SetPyFunction( 'EndLoop' , PyEndOfLoopOnViews ) - ILoopOnViewsDoLoop = LoopOnViews.GetInPort( 'DoLoop' ) - ILoopOnViewsaVisu = LoopOnViews.InPort( 'aVisu' , 'objref' ) - ILoopOnViewsaResult = LoopOnViews.InPort( 'aResult' , 'objref' ) - ILoopOnViewsViewCount = LoopOnViews.InPort( 'ViewCount' , 'int' ) - ILoopOnViewsMinCount = LoopOnViews.InPort( 'MinCount' , 'int' ) - ILoopOnViewsMaxCount = LoopOnViews.InPort( 'MaxCount' , 'int' ) - ILoopOnViewsGate = LoopOnViews.GetInPort( 'Gate' ) - OLoopOnViewsDoLoop = LoopOnViews.GetOutPort( 'DoLoop' ) - OLoopOnViewsaVisu = LoopOnViews.GetOutPort( 'aVisu' ) - OLoopOnViewsaResult = LoopOnViews.GetOutPort( 'aResult' ) - OLoopOnViewsViewCount = LoopOnViews.GetOutPort( 'ViewCount' ) - OLoopOnViewsMinCount = LoopOnViews.GetOutPort( 'MinCount' ) - OLoopOnViewsMaxCount = LoopOnViews.GetOutPort( 'MaxCount' ) - IEndOfLoopOnViewsDoLoop = EndOfLoopOnViews.GetInPort( 'DoLoop' ) - IEndOfLoopOnViewsaVisu = EndOfLoopOnViews.GetInPort( 'aVisu' ) - IEndOfLoopOnViewsaResult = EndOfLoopOnViews.GetInPort( 'aResult' ) - IEndOfLoopOnViewsViewCount = EndOfLoopOnViews.GetInPort( 'ViewCount' ) - IEndOfLoopOnViewsMinCount = EndOfLoopOnViews.GetInPort( 'MinCount' ) - IEndOfLoopOnViewsMaxCount = EndOfLoopOnViews.GetInPort( 'MaxCount' ) - IEndOfLoopOnViewsGate = EndOfLoopOnViews.GetInPort( 'Gate' ) - OEndOfLoopOnViewsDoLoop = EndOfLoopOnViews.GetOutPort( 'DoLoop' ) - OEndOfLoopOnViewsaVisu = EndOfLoopOnViews.GetOutPort( 'aVisu' ) - OEndOfLoopOnViewsaResult = EndOfLoopOnViews.GetOutPort( 'aResult' ) - OEndOfLoopOnViewsViewCount = EndOfLoopOnViews.GetOutPort( 'ViewCount' ) - OEndOfLoopOnViewsMinCount = EndOfLoopOnViews.GetOutPort( 'MinCount' ) - OEndOfLoopOnViewsMaxCount = EndOfLoopOnViews.GetOutPort( 'MaxCount' ) - OEndOfLoopOnViewsGate = EndOfLoopOnViews.GetOutPort( 'Gate' ) - LoopOnViews.SetName( 'LoopOnViews' ) - LoopOnViews.SetAuthor( '' ) - LoopOnViews.SetComment( 'Compute Node' ) - LoopOnViews.Coords( 219 , 218 ) - - # Creation of Links - LInitDisplayaVisuLoopOnViewsaVisu = TestVisu20_multi.Link( OInitDisplayaVisu , ILoopOnViewsaVisu ) - - LInitDisplaymyResultLoopOnViewsaResult = TestVisu20_multi.Link( OInitDisplaymyResult , ILoopOnViewsaResult ) - - LInitindexEndOfInitindex = TestVisu20_multi.Link( OInitindex , IEndOfInitindex ) - - LInitindexDisplayVitesseindex = TestVisu20_multi.Link( OInitindex , IDisplayVitesseindex ) - LInitindexDisplayVitesseindex.AddCoord( 1 , 590 , 587 ) - LInitindexDisplayVitesseindex.AddCoord( 2 , 591 , 527 ) - - LInitminEndOfInitmin = TestVisu20_multi.Link( OInitmin , IEndOfInitmin ) - - LInitmaxEndOfInitmax = TestVisu20_multi.Link( OInitmax , IEndOfInitmax ) - - LInitaVisuEndOfInitaVisu = TestVisu20_multi.Link( OInitaVisu , IEndOfInitaVisu ) - - LInitaVisuDisplayVitesseaVisu = TestVisu20_multi.Link( OInitaVisu , IDisplayVitesseaVisu ) - - LInitaViewEndOfInitaView = TestVisu20_multi.Link( OInitaView , IEndOfInitaView ) - - LInitaViewDisplayVitesseaView = TestVisu20_multi.Link( OInitaView , IDisplayVitesseaView ) - - LInitaResultDisplayVitesseaResult = TestVisu20_multi.Link( OInitaResult , IDisplayVitesseaResult ) - - LInitx1EndOfInitx1 = TestVisu20_multi.Link( OInitx1 , IEndOfInitx1 ) - - LInitx1DisplayVitessex1 = TestVisu20_multi.Link( OInitx1 , IDisplayVitessex1 ) - - LEndOfInitaResultEndOfLoopOnViewsaResult = TestVisu20_multi.Link( OEndOfInitaResult , IEndOfLoopOnViewsaResult ) - LEndOfInitaResultEndOfLoopOnViewsaResult.AddCoord( 1 , 762 , 288 ) - LEndOfInitaResultEndOfLoopOnViewsaResult.AddCoord( 2 , 763 , 424 ) - LEndOfInitaResultEndOfLoopOnViewsaResult.AddCoord( 3 , 972 , 425 ) - LEndOfInitaResultEndOfLoopOnViewsaResult.AddCoord( 4 , 971 , 687 ) - - LDisplayVitessetheResultEndOfInitaResult = TestVisu20_multi.Link( ODisplayVitessetheResult , IEndOfInitaResult ) - LDisplayVitessetheResultEndOfInitaResult.AddCoord( 1 , 787 , 687 ) - LDisplayVitessetheResultEndOfInitaResult.AddCoord( 2 , 786 , 585 ) - - LLoopOnViewsaVisuEndOfLoopOnViewsaVisu = TestVisu20_multi.Link( OLoopOnViewsaVisu , IEndOfLoopOnViewsaVisu ) - - LLoopOnViewsaVisuCreateViewaVisu = TestVisu20_multi.Link( OLoopOnViewsaVisu , ICreateViewaVisu ) - LLoopOnViewsaVisuCreateViewaVisu.AddCoord( 1 , 186 , 643 ) - LLoopOnViewsaVisuCreateViewaVisu.AddCoord( 2 , 186 , 442 ) - LLoopOnViewsaVisuCreateViewaVisu.AddCoord( 3 , 400 , 441 ) - LLoopOnViewsaVisuCreateViewaVisu.AddCoord( 4 , 401 , 251 ) - - LLoopOnViewsaResultCreateViewaResult = TestVisu20_multi.Link( OLoopOnViewsaResult , ICreateViewaResult ) - LLoopOnViewsaResultCreateViewaResult.AddCoord( 1 , 169 , 671 ) - LLoopOnViewsaResultCreateViewaResult.AddCoord( 2 , 170 , 412 ) - LLoopOnViewsaResultCreateViewaResult.AddCoord( 3 , 386 , 413 ) - LLoopOnViewsaResultCreateViewaResult.AddCoord( 4 , 387 , 280 ) - - LLoopOnViewsViewCountEndOfLoopOnViewsViewCount = TestVisu20_multi.Link( OLoopOnViewsViewCount , IEndOfLoopOnViewsViewCount ) - - LLoopOnViewsMinCountEndOfLoopOnViewsMinCount = TestVisu20_multi.Link( OLoopOnViewsMinCount , IEndOfLoopOnViewsMinCount ) - - LLoopOnViewsMaxCountEndOfLoopOnViewsMaxCount = TestVisu20_multi.Link( OLoopOnViewsMaxCount , IEndOfLoopOnViewsMaxCount ) - - LCreateViewaViewInitaView = TestVisu20_multi.Link( OCreateViewaView , IInitaView ) - - LCreateViewtheVisuInitaVisu = TestVisu20_multi.Link( OCreateViewtheVisu , IInitaVisu ) - - LCreateViewtheResultInitaResult = TestVisu20_multi.Link( OCreateViewtheResult , IInitaResult ) - - # Input datas - IInitindex.Input( 1 ) - IInitmin.Input( 1 ) - IInitmax.Input( 10 ) - IInitx1.Input( 1 ) - ILoopOnViewsViewCount.Input( 0 ) - ILoopOnViewsMinCount.Input( 0 ) - ILoopOnViewsMaxCount.Input( 10 ) - - # Output Ports of the graph - #OEndOfInitindex = EndOfInit.GetOutPort( 'index' ) - #OEndOfInitmin = EndOfInit.GetOutPort( 'min' ) - #OEndOfInitmax = EndOfInit.GetOutPort( 'max' ) - #OEndOfInitaVisu = EndOfInit.GetOutPort( 'aVisu' ) - #OEndOfInitaView = EndOfInit.GetOutPort( 'aView' ) - #OEndOfInitx1 = EndOfInit.GetOutPort( 'x1' ) - #OEndOfLoopOnViewsaVisu = EndOfLoopOnViews.GetOutPort( 'aVisu' ) - #OEndOfLoopOnViewsaResult = EndOfLoopOnViews.GetOutPort( 'aResult' ) - #OEndOfLoopOnViewsViewCount = EndOfLoopOnViews.GetOutPort( 'ViewCount' ) - #OEndOfLoopOnViewsMinCount = EndOfLoopOnViews.GetOutPort( 'MinCount' ) - #OEndOfLoopOnViewsMaxCount = EndOfLoopOnViews.GetOutPort( 'MaxCount' ) - return TestVisu20_multi - - -TestVisu20_multi = DefTestVisu20_multi() -- 2.30.2