2 from GraphSwitchs import *
4 GraphSwitchs.SetName('GraphEditSwitchs')
5 GraphEditSwitchs = GraphSwitchs
7 exec GraphEditSwitchs.ListNodes()
8 InitLoopSwitch.destroy()
10 aPyFile = os.getenv('DATA_DIR') + '/Superv/Python/GraphEditGraphSwitchs_1.py'
11 GraphEditSwitchs.Export( aPyFile )
13 InitLoop.SetName('InitLoopSwitch')
14 InitLoopSwitch = InitLoop
15 EndOfInitLoop.SetName('EndOfInitLoopSwitch')
16 EndOfInitLoopSwitch = EndOfInitLoop
18 exec InitLoopSwitch.ListPorts()
19 exec Switch.ListPorts()
21 GraphEditSwitchs.Link( OInitLoopSwitchIndex , ISwitcha )
23 exec EndOfInitLoopSwitch.ListPorts()
24 IEndOfInitLoopSwitchIndex.Link().destroy()
26 aPyFile = os.getenv('DATA_DIR') + '/Superv/Python/GraphEditGraphSwitchs_2.py'
27 GraphEditSwitchs.Export( aPyFile )
29 exec EndOfSwitch.ListPorts()
30 GraphEditSwitchs.Link(OEndOfSwitcha,IEndOfInitLoopSwitchIndex)
32 exec EndSwitch.ListPorts()
33 GraphEditSwitchs.Link(OEndSwitchGate,IEndOfInitLoopSwitchGate)
35 aPyFile = os.getenv('DATA_DIR') + '/Superv/Python/GraphEditGraphSwitchs_3.py'
36 GraphEditSwitchs.Export( aPyFile )
38 IsOdd_1.SetName('IsEven')
41 exec IsEven.ListPorts()
42 IIsEvena.Link().destroy()
44 IIsEvenGate.Link().destroy()
46 exec Switch_1.ListPorts()
47 GraphEditSwitchs.Link(OSwitch_1Even,IIsEvenGate)
49 aPyFile = os.getenv('DATA_DIR') + '/Superv/Python/GraphEditGraphSwitchs_4.py'
50 GraphEditSwitchs.Export( aPyFile )
52 GraphEditSwitchs.PrintLinks()
54 L = GraphEditSwitchs.Link(OSwitch_1Even,IEndSwitchDefault)
57 aPyFile = os.getenv('DATA_DIR') + '/Superv/Python/GraphEditGraphSwitchs_5.py'
58 GraphEditSwitchs.Export( aPyFile )
60 GraphEditSwitchs.Link(OSwitch_1Default,IEndSwitchDefault)
62 GraphEditSwitchs.Link(OSwitch_1a,IIsEvena)
64 GraphEditSwitchs.Export( aPyFile)
70 aPyFile = os.getenv('DATA_DIR') + '/Superv/Python/GraphEditGraphSwitchs_3.py'
71 GraphEditSwitchs = Graph( aPyFile )