Salome HOME
cd185390e5fd198b40dcefd746ddebd80b9520b8
[samples/datafiles.git] / Superv / Python / GraphEditGraphSwitchs.py
1
2 from GraphSwitchs import *
3
4 GraphSwitchs.SetName('GraphEditSwitchs')
5 GraphEditSwitchs = GraphSwitchs
6
7 exec GraphEditSwitchs.ListNodes()
8 InitLoopSwitch.destroy()
9
10 aPyFile = os.getenv('DATA_DIR') + '/Superv/Python/GraphEditGraphSwitchs_1.py'
11 GraphEditSwitchs.Export( aPyFile )
12
13 InitLoop.SetName('InitLoopSwitch')
14 InitLoopSwitch = InitLoop
15 EndOfInitLoop.SetName('EndOfInitLoopSwitch')
16 EndOfInitLoopSwitch = EndOfInitLoop
17
18 exec InitLoopSwitch.ListPorts()
19 exec Switch.ListPorts()
20
21 GraphEditSwitchs.Link( OInitLoopSwitchIndex , ISwitcha )
22
23 exec EndOfInitLoopSwitch.ListPorts()
24 IEndOfInitLoopSwitchIndex.Link().destroy()
25
26 aPyFile = os.getenv('DATA_DIR') + '/Superv/Python/GraphEditGraphSwitchs_2.py'
27 GraphEditSwitchs.Export( aPyFile )
28
29 exec EndOfSwitch.ListPorts()
30 GraphEditSwitchs.Link(OEndOfSwitcha,IEndOfInitLoopSwitchIndex)
31
32 exec EndSwitch.ListPorts()
33 GraphEditSwitchs.Link(OEndSwitchGate,IEndOfInitLoopSwitchGate)
34
35 aPyFile = os.getenv('DATA_DIR') + '/Superv/Python/GraphEditGraphSwitchs_3.py'
36 GraphEditSwitchs.Export( aPyFile )
37
38 IsOdd_1.SetName('IsEven')
39 IsEven = IsOdd_1
40
41 exec IsEven.ListPorts()
42 IIsEvena.Link().destroy()
43
44 IIsEvenGate.Link().destroy()
45
46 exec Switch_1.ListPorts()
47 GraphEditSwitchs.Link(OSwitch_1Even,IIsEvenGate)
48
49 aPyFile = os.getenv('DATA_DIR') + '/Superv/Python/GraphEditGraphSwitchs_4.py'
50 GraphEditSwitchs.Export( aPyFile )
51
52 GraphEditSwitchs.PrintLinks()
53
54 L = GraphEditSwitchs.Link(OSwitch_1Even,IEndSwitchDefault)
55 L.destroy()
56
57 aPyFile = os.getenv('DATA_DIR') + '/Superv/Python/GraphEditGraphSwitchs_5.py'
58 GraphEditSwitchs.Export( aPyFile )
59
60 GraphEditSwitchs.Link(OSwitch_1Default,IEndSwitchDefault)
61
62 GraphEditSwitchs.Link(OSwitch_1a,IIsEvena)
63
64 GraphEditSwitchs.Export( aPyFile)
65
66 Switch_1.SetName('')
67
68 from SuperV import *
69
70 aPyFile = os.getenv('DATA_DIR') + '/Superv/Python/GraphEditGraphSwitchs_3.py'
71 GraphEditSwitchs = Graph( aPyFile )
72