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