Salome HOME
Merge from BR_V5_DEV 17Feb09
[samples/datafiles.git] / Superv / Python / GraphSyrControlAve.py
1 #  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
2 #
3 #  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 #  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 #
6 #  This library is free software; you can redistribute it and/or
7 #  modify it under the terms of the GNU Lesser General Public
8 #  License as published by the Free Software Foundation; either
9 #  version 2.1 of the License.
10 #
11 #  This library is distributed in the hope that it will be useful,
12 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
13 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 #  Lesser General Public License for more details.
15 #
16 #  You should have received a copy of the GNU Lesser General Public
17 #  License along with this library; if not, write to the Free Software
18 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 #
20 #  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 #
22 # Generated python file of Graph GraphSyrControlAve
23 #
24 from SuperV import *
25
26 # Graph creation of GraphSyrControlAve
27 def DefGraphSyrControlAve() :
28     GraphSyrControlAve = Graph( 'GraphSyrControlAve' )
29     GraphSyrControlAve.SetName( 'GraphSyrControlAve' )
30     GraphSyrControlAve.SetAuthor( 'JR' )
31     GraphSyrControlAve.SetComment( 'Syracuse algorithm' )
32     GraphSyrControlAve.Coords( 0 , 0 )
33     
34     # Creation of Factory Nodes
35     
36     test_ISEVEN = GraphSyrControlAve.FNode( 'SyrComponent' , 'SyrComponent' , 'C_ISEVEN' )
37     test_ISEVEN.SetName( 'test_ISEVEN' )
38     test_ISEVEN.SetAuthor( '' )
39     test_ISEVEN.SetContainer( 'localhost/FactoryServer' )
40     test_ISEVEN.SetComment( 'C_ISEVEN from SyrComponent' )
41     test_ISEVEN.Coords( 370 , 455 )
42     Itest_ISEVENanInteger = test_ISEVEN.GetInPort( 'anInteger' )
43     Itest_ISEVENGate = test_ISEVEN.GetInPort( 'Gate' )
44     Otest_ISEVENBoolEven = test_ISEVEN.GetOutPort( 'BoolEven' )
45     Otest_ISEVENGate = test_ISEVEN.GetOutPort( 'Gate' )
46     
47     test_ISONE = GraphSyrControlAve.FNode( 'SyrComponent' , 'SyrComponent' , 'C_ISONE' )
48     test_ISONE.SetName( 'test_ISONE' )
49     test_ISONE.SetAuthor( '' )
50     test_ISONE.SetContainer( 'localhost/FactoryServer' )
51     test_ISONE.SetComment( 'C_ISONE from SyrComponent' )
52     test_ISONE.Coords( 370 , 127 )
53     Itest_ISONEanInteger = test_ISONE.GetInPort( 'anInteger' )
54     Itest_ISONEGate = test_ISONE.GetInPort( 'Gate' )
55     Otest_ISONEBoolOne = test_ISONE.GetOutPort( 'BoolOne' )
56     Otest_ISONEGate = test_ISONE.GetOutPort( 'Gate' )
57     
58     m3p1 = GraphSyrControlAve.FNode( 'SyrComponent' , 'SyrComponent' , 'C_M3P1' )
59     m3p1.SetName( 'm3p1' )
60     m3p1.SetAuthor( '' )
61     m3p1.SetContainer( 'localhost/FactoryServer' )
62     m3p1.SetComment( 'C_M3P1 from SyrComponent' )
63     m3p1.Coords( 789 , 0 )
64     Im3p1anOddInteger = m3p1.GetInPort( 'anOddInteger' )
65     Im3p1Gate = m3p1.GetInPort( 'Gate' )
66     Om3p1anEvenInteger = m3p1.GetOutPort( 'anEvenInteger' )
67     Om3p1Gate = m3p1.GetOutPort( 'Gate' )
68     
69     div2 = GraphSyrControlAve.FNode( 'SyrComponent' , 'SyrComponent' , 'C_DIV2' )
70     div2.SetName( 'div2' )
71     div2.SetAuthor( '' )
72     div2.SetContainer( 'localhost/FactoryServer' )
73     div2.SetComment( 'C_DIV2 from SyrComponent' )
74     div2.Coords( 789 , 255 )
75     Idiv2anEvenInteger = div2.GetInPort( 'anEvenInteger' )
76     Idiv2Gate = div2.GetInPort( 'Gate' )
77     Odiv2anInteger = div2.GetOutPort( 'anInteger' )
78     Odiv2Gate = div2.GetOutPort( 'Gate' )
79     
80     incr = GraphSyrControlAve.FNode( 'SyrComponent' , 'SyrComponent' , 'C_INCR' )
81     incr.SetName( 'incr' )
82     incr.SetAuthor( '' )
83     incr.SetContainer( 'localhost/FactoryServer' )
84     incr.SetComment( 'C_INCR from SyrComponent' )
85     incr.Coords( 790 , 136 )
86     IincraCount = incr.GetInPort( 'aCount' )
87     IincrGate = incr.GetInPort( 'Gate' )
88     OincraNewCount = incr.GetOutPort( 'aNewCount' )
89     OincrGate = incr.GetOutPort( 'Gate' )
90     
91     C_MIN = GraphSyrControlAve.FNode( 'SyrComponent' , 'SyrComponent' , 'C_MIN' )
92     C_MIN.SetName( 'C_MIN' )
93     C_MIN.SetAuthor( '' )
94     C_MIN.SetContainer( 'localhost/FactoryServer' )
95     C_MIN.SetComment( 'C_MIN from SyrComponent' )
96     C_MIN.Coords( 798 , 833 )
97     IC_MINaMinVal = C_MIN.GetInPort( 'aMinVal' )
98     IC_MINanInteger = C_MIN.GetInPort( 'anInteger' )
99     IC_MINGate = C_MIN.GetInPort( 'Gate' )
100     OC_MINaNewMinVal = C_MIN.GetOutPort( 'aNewMinVal' )
101     OC_MINGate = C_MIN.GetOutPort( 'Gate' )
102     
103     C_MAX = GraphSyrControlAve.FNode( 'SyrComponent' , 'SyrComponent' , 'C_MAX' )
104     C_MAX.SetName( 'C_MAX' )
105     C_MAX.SetAuthor( '' )
106     C_MAX.SetContainer( 'localhost/FactoryServer' )
107     C_MAX.SetComment( 'C_MAX from SyrComponent' )
108     C_MAX.Coords( 798 , 668 )
109     IC_MAXaMaxVal = C_MAX.GetInPort( 'aMaxVal' )
110     IC_MAXanInteger = C_MAX.GetInPort( 'anInteger' )
111     IC_MAXGate = C_MAX.GetInPort( 'Gate' )
112     OC_MAXaNewMaxVal = C_MAX.GetOutPort( 'aNewMaxVal' )
113     OC_MAXGate = C_MAX.GetOutPort( 'Gate' )
114     
115     C_AVERAGE = GraphSyrControlAve.FNode( 'SyrComponent' , 'SyrComponent' , 'C_AVERAGE' )
116     C_AVERAGE.SetName( 'C_AVERAGE' )
117     C_AVERAGE.SetAuthor( '' )
118     C_AVERAGE.SetContainer( 'localhost/FactoryServer' )
119     C_AVERAGE.SetComment( 'C_AVERAGE from SyrComponent' )
120     C_AVERAGE.Coords( 784 , 476 )
121     IC_AVERAGEaListOfSyr = C_AVERAGE.GetInPort( 'aListOfSyr' )
122     IC_AVERAGEanInteger = C_AVERAGE.GetInPort( 'anInteger' )
123     IC_AVERAGEaCount = C_AVERAGE.GetInPort( 'aCount' )
124     IC_AVERAGEGate = C_AVERAGE.GetInPort( 'Gate' )
125     OC_AVERAGEaNewListOfSyr = C_AVERAGE.GetOutPort( 'aNewListOfSyr' )
126     OC_AVERAGEanAverage = C_AVERAGE.GetOutPort( 'anAverage' )
127     OC_AVERAGEGate = C_AVERAGE.GetOutPort( 'Gate' )
128     
129     C_LISTOFSYR = GraphSyrControlAve.FNode( 'SyrComponent' , 'SyrComponent' , 'C_LISTOFSYR' )
130     C_LISTOFSYR.SetName( 'C_LISTOFSYR' )
131     C_LISTOFSYR.SetAuthor( '' )
132     C_LISTOFSYR.SetContainer( 'localhost/FactoryServer' )
133     C_LISTOFSYR.SetComment( 'C_LISTOFSYR from SyrComponent' )
134     C_LISTOFSYR.Coords( 5 , 321 )
135     IC_LISTOFSYRGate = C_LISTOFSYR.GetInPort( 'Gate' )
136     OC_LISTOFSYRaListOfSyr = C_LISTOFSYR.GetOutPort( 'aListOfSyr' )
137     OC_LISTOFSYRGate = C_LISTOFSYR.GetOutPort( 'Gate' )
138     
139     # Creation of InLine Nodes
140     Pylabel_begin = []
141     Pylabel_begin.append( 'def label_begin( NB , KB , MINB , MAXB , AVERAGEB , SYRLISTB ) :' )
142     Pylabel_begin.append( '    return NB,KB,MINB,MAXB,AVERAGEB,SYRLISTB' )
143     label_begin = GraphSyrControlAve.INode( 'label_begin' , Pylabel_begin )
144     label_begin.SetName( 'label_begin' )
145     label_begin.SetAuthor( '' )
146     label_begin.SetComment( 'Python function' )
147     label_begin.Coords( 183 , 220 )
148     Ilabel_beginNB = label_begin.InPort( 'NB' , 'long' )
149     Ilabel_beginKB = label_begin.InPort( 'KB' , 'long' )
150     Ilabel_beginMINB = label_begin.InPort( 'MINB' , 'long' )
151     Ilabel_beginMAXB = label_begin.InPort( 'MAXB' , 'long' )
152     Ilabel_beginAVERAGEB = label_begin.InPort( 'AVERAGEB' , 'double' )
153     Ilabel_beginSYRLISTB = label_begin.InPort( 'SYRLISTB' , 'ListOfSyr' )
154     Ilabel_beginGate = label_begin.GetInPort( 'Gate' )
155     Olabel_beginNT = label_begin.OutPort( 'NT' , 'long' )
156     Olabel_beginKT = label_begin.OutPort( 'KT' , 'long' )
157     Olabel_beginMIN = label_begin.OutPort( 'MIN' , 'long' )
158     Olabel_beginMAX = label_begin.OutPort( 'MAX' , 'long' )
159     Olabel_beginAVERAGE = label_begin.OutPort( 'AVERAGE' , 'double' )
160     Olabel_beginSYRLIST = label_begin.OutPort( 'SYRLIST' , 'ListOfSyr' )
161     Olabel_beginGate = label_begin.GetOutPort( 'Gate' )
162     
163     # Creation of Switch Nodes
164     Pylabel_test = []
165     Pylabel_test.append( 'def L_OneEven( ValOne , ValEven , NT , KT , MIN , MAX , AVERAGE , SYRLIST ):' )
166     Pylabel_test.append( '    Finished = ValOne' )
167     Pylabel_test.append( '    if Finished == 0 :' )
168     Pylabel_test.append( '        Incr = 1' )
169     Pylabel_test.append( '        Even = ValEven' )
170     Pylabel_test.append( '        if Even == 0 :' )
171     Pylabel_test.append( '            Odd = 1' )
172     Pylabel_test.append( '        else :' )
173     Pylabel_test.append( '            Odd = 0' )
174     Pylabel_test.append( '    else :' )
175     Pylabel_test.append( '        Incr = 0' )
176     Pylabel_test.append( '        Even = 0' )
177     Pylabel_test.append( '        Odd = 0' )
178     Pylabel_test.append( '    Even = ValEven' )
179     Pylabel_test.append( '    return Finished,Incr,Even,Odd,NT,KT,MIN,MAX,AVERAGE,SYRLIST' )
180     label_test,EndL_OneEven = GraphSyrControlAve.SNode( 'L_OneEven' , Pylabel_test )
181     EndL_OneEven.SetName( 'EndL_OneEven' )
182     EndL_OneEven.SetAuthor( '' )
183     EndL_OneEven.SetComment( 'Compute Node' )
184     EndL_OneEven.Coords( 1064 , 339 )
185     PyEndL_OneEven = []
186     EndL_OneEven.SetPyFunction( '' , PyEndL_OneEven )
187     IEndL_OneEvenMINT = EndL_OneEven.InPort( 'MINT' , 'long' )
188     IEndL_OneEvenMAXT = EndL_OneEven.InPort( 'MAXT' , 'long' )
189     IEndL_OneEvenAVERAGET = EndL_OneEven.InPort( 'AVERAGET' , 'double' )
190     IEndL_OneEvenDefault = EndL_OneEven.GetInPort( 'Default' )
191     OEndL_OneEvenMIN = EndL_OneEven.OutPort( 'MIN' , 'long' )
192     OEndL_OneEvenMAX = EndL_OneEven.OutPort( 'MAX' , 'long' )
193     OEndL_OneEvenAVERAGE = EndL_OneEven.OutPort( 'AVERAGE' , 'double' )
194     OEndL_OneEvenGate = EndL_OneEven.GetOutPort( 'Gate' )
195     label_test.SetName( 'label_test' )
196     label_test.SetAuthor( '' )
197     label_test.SetComment( 'Compute Node' )
198     label_test.Coords( 564 , 219 )
199     Ilabel_testValOne = label_test.InPort( 'ValOne' , 'long' )
200     Ilabel_testValEven = label_test.InPort( 'ValEven' , 'long' )
201     Ilabel_testNT = label_test.InPort( 'NT' , 'long' )
202     Ilabel_testKT = label_test.InPort( 'KT' , 'long' )
203     Ilabel_testMIN = label_test.InPort( 'MIN' , 'long' )
204     Ilabel_testMAX = label_test.InPort( 'MAX' , 'long' )
205     Ilabel_testAVERAGE = label_test.InPort( 'AVERAGE' , 'double' )
206     Ilabel_testSYRLIST = label_test.InPort( 'SYRLIST' , 'ListOfSyr' )
207     Ilabel_testGate = label_test.GetInPort( 'Gate' )
208     Olabel_testFinished = label_test.OutPort( 'Finished' , 'long' )
209     Olabel_testIncr = label_test.OutPort( 'Incr' , 'long' )
210     Olabel_testEven = label_test.OutPort( 'Even' , 'long' )
211     Olabel_testOdd = label_test.OutPort( 'Odd' , 'long' )
212     Olabel_testN = label_test.OutPort( 'N' , 'long' )
213     Olabel_testK = label_test.OutPort( 'K' , 'long' )
214     Olabel_testMINT = label_test.OutPort( 'MINT' , 'long' )
215     Olabel_testMAXT = label_test.OutPort( 'MAXT' , 'long' )
216     Olabel_testAVERAGET = label_test.OutPort( 'AVERAGET' , 'double' )
217     Olabel_testSYRLISTT = label_test.OutPort( 'SYRLISTT' , 'ListOfSyr' )
218     Olabel_testDefault = label_test.GetOutPort( 'Default' )
219     
220     # Creation of GOTO Nodes
221     Pycontrol_m3p1 = []
222     Pycontrol_m3p1.append( 'def C_NotOneIsEven( N , K , MINT , MAXT , AVERAGET , SYRLISTT ):' )
223     Pycontrol_m3p1.append( '    return 0,1,N,K,MINT,MAXT,AVERAGET,SYRLISTT' )
224     control_m3p1 = GraphSyrControlAve.GNode( 'C_NotOneIsEven' , Pycontrol_m3p1 , 'label_test' )
225     control_m3p1.SetName( 'control_m3p1' )
226     control_m3p1.SetAuthor( '' )
227     control_m3p1.SetComment( 'Compute Node' )
228     control_m3p1.Coords( 1058 , 8 )
229     Icontrol_m3p1N = control_m3p1.InPort( 'N' , 'long' )
230     Icontrol_m3p1K = control_m3p1.InPort( 'K' , 'long' )
231     Icontrol_m3p1MINT = control_m3p1.InPort( 'MINT' , 'long' )
232     Icontrol_m3p1MAXT = control_m3p1.InPort( 'MAXT' , 'long' )
233     Icontrol_m3p1AVERAGET = control_m3p1.InPort( 'AVERAGET' , 'double' )
234     Icontrol_m3p1SYRLISTT = control_m3p1.InPort( 'SYRLISTT' , 'ListOfSyr' )
235     Icontrol_m3p1Gate = control_m3p1.GetInPort( 'Gate' )
236     Ocontrol_m3p1ValOne = control_m3p1.OutPort( 'ValOne' , 'long' )
237     Ocontrol_m3p1ValEven = control_m3p1.OutPort( 'ValEven' , 'long' )
238     Ocontrol_m3p1NT = control_m3p1.OutPort( 'NT' , 'long' )
239     Ocontrol_m3p1KT = control_m3p1.OutPort( 'KT' , 'long' )
240     Ocontrol_m3p1MIN = control_m3p1.OutPort( 'MIN' , 'long' )
241     Ocontrol_m3p1MAX = control_m3p1.OutPort( 'MAX' , 'long' )
242     Ocontrol_m3p1AVERAGE = control_m3p1.OutPort( 'AVERAGE' , 'double' )
243     Ocontrol_m3p1SYRLIST = control_m3p1.OutPort( 'SYRLIST' , 'ListOfSyr' )
244     Ocontrol_m3p1Gate = control_m3p1.GetOutPort( 'Gate' )
245     
246     Pycontrol_div2 = []
247     Pycontrol_div2.append( 'def control_div2( N , K , MINT , MAXT , AVERAGET , SYRLISTT ) :' )
248     Pycontrol_div2.append( '    return N,K,MINT,MAXT,AVERAGET,SYRLISTT' )
249     control_div2 = GraphSyrControlAve.GNode( 'control_div2' , Pycontrol_div2 , 'label_begin' )
250     control_div2.SetName( 'control_div2' )
251     control_div2.SetAuthor( '' )
252     control_div2.SetComment( 'Compute Node' )
253     control_div2.Coords( 1048 , 555 )
254     Icontrol_div2N = control_div2.InPort( 'N' , 'long' )
255     Icontrol_div2K = control_div2.InPort( 'K' , 'long' )
256     Icontrol_div2MINT = control_div2.InPort( 'MINT' , 'long' )
257     Icontrol_div2MAXT = control_div2.InPort( 'MAXT' , 'long' )
258     Icontrol_div2AVERAGET = control_div2.InPort( 'AVERAGET' , 'double' )
259     Icontrol_div2SYRLISTT = control_div2.InPort( 'SYRLISTT' , 'ListOfSyr' )
260     Icontrol_div2Gate = control_div2.GetInPort( 'Gate' )
261     Ocontrol_div2NB = control_div2.OutPort( 'NB' , 'long' )
262     Ocontrol_div2KB = control_div2.OutPort( 'KB' , 'long' )
263     Ocontrol_div2MINB = control_div2.OutPort( 'MINB' , 'long' )
264     Ocontrol_div2MAXB = control_div2.OutPort( 'MAXB' , 'long' )
265     Ocontrol_div2AVERAGEB = control_div2.OutPort( 'AVERAGEB' , 'double' )
266     Ocontrol_div2SYRLISTB = control_div2.OutPort( 'SYRLISTB' , 'ListOfSyr' )
267     Ocontrol_div2Gate = control_div2.GetOutPort( 'Gate' )
268     
269     # Creation of Links
270     Ltest_ISEVENBoolEvenlabel_testValEven = GraphSyrControlAve.Link( Otest_ISEVENBoolEven , Ilabel_testValEven )
271     Ltest_ISEVENBoolEvenlabel_testValEven.AddCoord( 1 , 544 , 256 )
272     Ltest_ISEVENBoolEvenlabel_testValEven.AddCoord( 2 , 544 , 524 )
273     
274     Ltest_ISONEBoolOnelabel_testValOne = GraphSyrControlAve.Link( Otest_ISONEBoolOne , Ilabel_testValOne )
275     Ltest_ISONEBoolOnelabel_testValOne.AddCoord( 1 , 546 , 237 )
276     Ltest_ISONEBoolOnelabel_testValOne.AddCoord( 2 , 546 , 198 )
277     
278     Lm3p1anEvenIntegercontrol_m3p1N = GraphSyrControlAve.Link( Om3p1anEvenInteger , Icontrol_m3p1N )
279     Lm3p1anEvenIntegercontrol_m3p1N.AddCoord( 1 , 975 , 38 )
280     Lm3p1anEvenIntegercontrol_m3p1N.AddCoord( 2 , 976 , 81 )
281     
282     Ldiv2anIntegercontrol_div2N = GraphSyrControlAve.Link( Odiv2anInteger , Icontrol_div2N )
283     Ldiv2anIntegercontrol_div2N.AddCoord( 1 , 1012 , 585 )
284     Ldiv2anIntegercontrol_div2N.AddCoord( 2 , 1011 , 346 )
285     
286     LincraNewCountcontrol_div2K = GraphSyrControlAve.Link( OincraNewCount , Icontrol_div2K )
287     LincraNewCountcontrol_div2K.AddCoord( 1 , 966 , 606 )
288     LincraNewCountcontrol_div2K.AddCoord( 2 , 968 , 207 )
289     
290     LincraNewCountcontrol_m3p1K = GraphSyrControlAve.Link( OincraNewCount , Icontrol_m3p1K )
291     LincraNewCountcontrol_m3p1K.AddCoord( 1 , 965 , 59 )
292     LincraNewCountcontrol_m3p1K.AddCoord( 2 , 966 , 208 )
293     
294     LincraNewCountC_AVERAGEaCount = GraphSyrControlAve.Link( OincraNewCount , IC_AVERAGEaCount )
295     LincraNewCountC_AVERAGEaCount.AddCoord( 1 , 751 , 588 )
296     LincraNewCountC_AVERAGEaCount.AddCoord( 2 , 751 , 460 )
297     LincraNewCountC_AVERAGEaCount.AddCoord( 3 , 965 , 462 )
298     LincraNewCountC_AVERAGEaCount.AddCoord( 4 , 968 , 205 )
299     
300     LC_MINaNewMinValcontrol_m3p1MINT = GraphSyrControlAve.Link( OC_MINaNewMinVal , Icontrol_m3p1MINT )
301     LC_MINaNewMinValcontrol_m3p1MINT.AddCoord( 1 , 991 , 78 )
302     LC_MINaNewMinValcontrol_m3p1MINT.AddCoord( 2 , 991 , 905 )
303     
304     LC_MINaNewMinValcontrol_div2MINT = GraphSyrControlAve.Link( OC_MINaNewMinVal , Icontrol_div2MINT )
305     LC_MINaNewMinValcontrol_div2MINT.AddCoord( 1 , 991 , 626 )
306     LC_MINaNewMinValcontrol_div2MINT.AddCoord( 2 , 991 , 905 )
307     
308     LC_MAXaNewMaxValcontrol_m3p1MAXT = GraphSyrControlAve.Link( OC_MAXaNewMaxVal , Icontrol_m3p1MAXT )
309     LC_MAXaNewMaxValcontrol_m3p1MAXT.AddCoord( 1 , 976 , 98 )
310     LC_MAXaNewMaxValcontrol_m3p1MAXT.AddCoord( 2 , 974 , 738 )
311     
312     LC_MAXaNewMaxValcontrol_div2MAXT = GraphSyrControlAve.Link( OC_MAXaNewMaxVal , Icontrol_div2MAXT )
313     LC_MAXaNewMaxValcontrol_div2MAXT.AddCoord( 1 , 972 , 648 )
314     LC_MAXaNewMaxValcontrol_div2MAXT.AddCoord( 2 , 974 , 738 )
315     
316     LC_AVERAGEaNewListOfSyrcontrol_m3p1SYRLISTT = GraphSyrControlAve.Link( OC_AVERAGEaNewListOfSyr , Icontrol_m3p1SYRLISTT )
317     LC_AVERAGEaNewListOfSyrcontrol_m3p1SYRLISTT.AddCoord( 1 , 1037 , 137 )
318     LC_AVERAGEaNewListOfSyrcontrol_m3p1SYRLISTT.AddCoord( 2 , 1038 , 556 )
319     
320     LC_AVERAGEaNewListOfSyrcontrol_div2SYRLISTT = GraphSyrControlAve.Link( OC_AVERAGEaNewListOfSyr , Icontrol_div2SYRLISTT )
321     LC_AVERAGEaNewListOfSyrcontrol_div2SYRLISTT.AddCoord( 1 , 1038 , 686 )
322     LC_AVERAGEaNewListOfSyrcontrol_div2SYRLISTT.AddCoord( 2 , 1038 , 555 )
323     
324     LC_AVERAGEanAveragecontrol_m3p1AVERAGET = GraphSyrControlAve.Link( OC_AVERAGEanAverage , Icontrol_m3p1AVERAGET )
325     LC_AVERAGEanAveragecontrol_m3p1AVERAGET.AddCoord( 1 , 1026 , 118 )
326     LC_AVERAGEanAveragecontrol_m3p1AVERAGET.AddCoord( 2 , 1027 , 567 )
327     
328     LC_AVERAGEanAveragecontrol_div2AVERAGET = GraphSyrControlAve.Link( OC_AVERAGEanAverage , Icontrol_div2AVERAGET )
329     LC_AVERAGEanAveragecontrol_div2AVERAGET.AddCoord( 1 , 1027 , 668 )
330     LC_AVERAGEanAveragecontrol_div2AVERAGET.AddCoord( 2 , 1026 , 568 )
331     
332     LC_LISTOFSYRaListOfSyrlabel_beginSYRLISTB = GraphSyrControlAve.Link( OC_LISTOFSYRaListOfSyr , Ilabel_beginSYRLISTB )
333     
334     Llabel_beginNTtest_ISONEanInteger = GraphSyrControlAve.Link( Olabel_beginNT , Itest_ISONEanInteger )
335     Llabel_beginNTtest_ISONEanInteger.AddCoord( 1 , 361 , 197 )
336     Llabel_beginNTtest_ISONEanInteger.AddCoord( 2 , 360 , 290 )
337     
338     Llabel_beginNTlabel_testNT = GraphSyrControlAve.Link( Olabel_beginNT , Ilabel_testNT )
339     
340     Llabel_beginNTtest_ISEVENanInteger = GraphSyrControlAve.Link( Olabel_beginNT , Itest_ISEVENanInteger )
341     Llabel_beginNTtest_ISEVENanInteger.AddCoord( 1 , 359 , 525 )
342     Llabel_beginNTtest_ISEVENanInteger.AddCoord( 2 , 361 , 291 )
343     
344     Llabel_beginKTlabel_testKT = GraphSyrControlAve.Link( Olabel_beginKT , Ilabel_testKT )
345     
346     Llabel_beginMINlabel_testMIN = GraphSyrControlAve.Link( Olabel_beginMIN , Ilabel_testMIN )
347     
348     Llabel_beginMAXlabel_testMAX = GraphSyrControlAve.Link( Olabel_beginMAX , Ilabel_testMAX )
349     
350     Llabel_beginAVERAGElabel_testAVERAGE = GraphSyrControlAve.Link( Olabel_beginAVERAGE , Ilabel_testAVERAGE )
351     
352     Llabel_beginSYRLISTlabel_testSYRLIST = GraphSyrControlAve.Link( Olabel_beginSYRLIST , Ilabel_testSYRLIST )
353     
354     Llabel_testEvendiv2Gate = GraphSyrControlAve.Link( Olabel_testEven , Idiv2Gate )
355     Llabel_testEvendiv2Gate.AddCoord( 1 , 777 , 351 )
356     Llabel_testEvendiv2Gate.AddCoord( 2 , 777 , 286 )
357     
358     Llabel_testOddm3p1Gate = GraphSyrControlAve.Link( Olabel_testOdd , Im3p1Gate )
359     Llabel_testOddm3p1Gate.AddCoord( 1 , 757 , 95 )
360     Llabel_testOddm3p1Gate.AddCoord( 2 , 757 , 310 )
361     
362     Llabel_testNm3p1anOddInteger = GraphSyrControlAve.Link( Olabel_testN , Im3p1anOddInteger )
363     Llabel_testNm3p1anOddInteger.AddCoord( 1 , 741 , 72 )
364     Llabel_testNm3p1anOddInteger.AddCoord( 2 , 741 , 331 )
365     
366     Llabel_testNdiv2anEvenInteger = GraphSyrControlAve.Link( Olabel_testN , Idiv2anEvenInteger )
367     
368     Llabel_testNC_MINanInteger = GraphSyrControlAve.Link( Olabel_testN , IC_MINanInteger )
369     Llabel_testNC_MINanInteger.AddCoord( 1 , 744 , 923 )
370     Llabel_testNC_MINanInteger.AddCoord( 2 , 742 , 331 )
371     
372     Llabel_testNC_MAXanInteger = GraphSyrControlAve.Link( Olabel_testN , IC_MAXanInteger )
373     Llabel_testNC_MAXanInteger.AddCoord( 1 , 742 , 759 )
374     Llabel_testNC_MAXanInteger.AddCoord( 2 , 743 , 332 )
375     
376     Llabel_testNC_AVERAGEanInteger = GraphSyrControlAve.Link( Olabel_testN , IC_AVERAGEanInteger )
377     Llabel_testNC_AVERAGEanInteger.AddCoord( 1 , 741 , 568 )
378     Llabel_testNC_AVERAGEanInteger.AddCoord( 2 , 742 , 330 )
379     
380     Llabel_testKincraCount = GraphSyrControlAve.Link( Olabel_testK , IincraCount )
381     Llabel_testKincraCount.AddCoord( 1 , 766 , 207 )
382     Llabel_testKincraCount.AddCoord( 2 , 766 , 343 )
383     
384     Llabel_testMINTC_MINaMinVal = GraphSyrControlAve.Link( Olabel_testMINT , IC_MINaMinVal )
385     Llabel_testMINTC_MINaMinVal.AddCoord( 1 , 760 , 904 )
386     Llabel_testMINTC_MINaMinVal.AddCoord( 2 , 756 , 372 )
387     
388     Llabel_testMAXTC_MAXaMaxVal = GraphSyrControlAve.Link( Olabel_testMAXT , IC_MAXaMaxVal )
389     Llabel_testMAXTC_MAXaMaxVal.AddCoord( 1 , 765 , 742 )
390     Llabel_testMAXTC_MAXaMaxVal.AddCoord( 2 , 766 , 384 )
391     
392     Llabel_testSYRLISTTC_AVERAGEaListOfSyr = GraphSyrControlAve.Link( Olabel_testSYRLISTT , IC_AVERAGEaListOfSyr )
393     Llabel_testSYRLISTTC_AVERAGEaListOfSyr.AddCoord( 1 , 773 , 546 )
394     Llabel_testSYRLISTTC_AVERAGEaListOfSyr.AddCoord( 2 , 772 , 424 )
395     
396     Llabel_testDefaultEndL_OneEvenDefault = GraphSyrControlAve.Link( Olabel_testDefault , IEndL_OneEvenDefault )
397     
398     Lcontrol_m3p1Gatelabel_testGate = GraphSyrControlAve.Link( Ocontrol_m3p1Gate , Ilabel_testGate )
399     Lcontrol_m3p1Gatelabel_testGate.AddCoord( 1 , 553 , 453 )
400     Lcontrol_m3p1Gatelabel_testGate.AddCoord( 2 , 554 , 1025 )
401     Lcontrol_m3p1Gatelabel_testGate.AddCoord( 3 , 1242 , 1026 )
402     Lcontrol_m3p1Gatelabel_testGate.AddCoord( 4 , 1234 , 204 )
403     
404     Lcontrol_div2Gatelabel_beginGate = GraphSyrControlAve.Link( Ocontrol_div2Gate , Ilabel_beginGate )
405     Lcontrol_div2Gatelabel_beginGate.AddCoord( 1 , 176 , 419 )
406     Lcontrol_div2Gatelabel_beginGate.AddCoord( 2 , 176 , 997 )
407     Lcontrol_div2Gatelabel_beginGate.AddCoord( 3 , 1217 , 996 )
408     Lcontrol_div2Gatelabel_beginGate.AddCoord( 4 , 1223 , 711 )
409     
410     # Input datas
411     Ilabel_beginNB.Input( 31 )
412     Ilabel_beginKB.Input( 0 )
413     Ilabel_beginMINB.Input( 0 )
414     Ilabel_beginMAXB.Input( 0 )
415     Ilabel_beginAVERAGEB.Input( 0 )
416     
417     # Input Ports of the graph
418     #IEndL_OneEvenMINT = EndL_OneEven.GetInPort( 'MINT' )
419     #IEndL_OneEvenMAXT = EndL_OneEven.GetInPort( 'MAXT' )
420     #IEndL_OneEvenAVERAGET = EndL_OneEven.GetInPort( 'AVERAGET' )
421     
422     # Output Ports of the graph
423     #Olabel_testFinished = label_test.GetOutPort( 'Finished' )
424     #Olabel_testIncr = label_test.GetOutPort( 'Incr' )
425     #Olabel_testAVERAGET = label_test.GetOutPort( 'AVERAGET' )
426     #OEndL_OneEvenMIN = EndL_OneEven.GetOutPort( 'MIN' )
427     #OEndL_OneEvenMAX = EndL_OneEven.GetOutPort( 'MAX' )
428     #OEndL_OneEvenAVERAGE = EndL_OneEven.GetOutPort( 'AVERAGE' )
429     return GraphSyrControlAve
430
431
432 GraphSyrControlAve = DefGraphSyrControlAve()