1 # Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE
3 # Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
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.
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.
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
20 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 # Generated python file of Graph GraphSyrControlAveValid
27 # Graph creation of GraphSyrControlAveValid
28 def DefGraphSyrControlAveValid() :
29 GraphSyrControlAveValid = Graph( 'GraphSyrControlAveValid' )
30 GraphSyrControlAveValid.SetName( 'GraphSyrControlAveValid' )
31 GraphSyrControlAveValid.SetAuthor( 'JR' )
32 GraphSyrControlAveValid.SetComment( 'Syracuse algorithm' )
33 GraphSyrControlAveValid.Coords( 0 , 0 )
35 # Creation of Factory Nodes
37 test_ISEVEN = GraphSyrControlAveValid.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' )
48 test_ISONE = GraphSyrControlAveValid.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' )
59 m3p1 = GraphSyrControlAveValid.FNode( 'SyrComponent' , 'SyrComponent' , 'C_M3P1' )
60 m3p1.SetName( 'm3p1' )
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' )
70 div2 = GraphSyrControlAveValid.FNode( 'SyrComponent' , 'SyrComponent' , 'C_DIV2' )
71 div2.SetName( 'div2' )
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' )
81 incr = GraphSyrControlAveValid.FNode( 'SyrComponent' , 'SyrComponent' , 'C_INCR' )
82 incr.SetName( 'incr' )
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' )
92 C_MIN = GraphSyrControlAveValid.FNode( 'SyrComponent' , 'SyrComponent' , 'C_MIN' )
93 C_MIN.SetName( 'C_MIN' )
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' )
104 C_MAX = GraphSyrControlAveValid.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' )
116 C_AVERAGE = GraphSyrControlAveValid.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' )
130 C_LISTOFSYR = GraphSyrControlAveValid.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' )
140 # Creation of InLine Nodes
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 = GraphSyrControlAveValid.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' )
164 # Creation of Switch Nodes
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 = GraphSyrControlAveValid.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 )
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' )
221 # Creation of GOTO Nodes
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 = GraphSyrControlAveValid.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' )
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 = GraphSyrControlAveValid.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' )
271 Ltest_ISEVENBoolEvenlabel_testValEven = GraphSyrControlAveValid.Link( Otest_ISEVENBoolEven , Ilabel_testValEven )
272 Ltest_ISEVENBoolEvenlabel_testValEven.AddCoord( 1 , 544 , 256 )
273 Ltest_ISEVENBoolEvenlabel_testValEven.AddCoord( 2 , 544 , 524 )
275 Ltest_ISONEBoolOnelabel_testValOne = GraphSyrControlAveValid.Link( Otest_ISONEBoolOne , Ilabel_testValOne )
276 Ltest_ISONEBoolOnelabel_testValOne.AddCoord( 1 , 546 , 237 )
277 Ltest_ISONEBoolOnelabel_testValOne.AddCoord( 2 , 546 , 198 )
279 Lm3p1anEvenIntegercontrol_m3p1N = GraphSyrControlAveValid.Link( Om3p1anEvenInteger , Icontrol_m3p1N )
280 Lm3p1anEvenIntegercontrol_m3p1N.AddCoord( 1 , 975 , 38 )
281 Lm3p1anEvenIntegercontrol_m3p1N.AddCoord( 2 , 976 , 81 )
283 Ldiv2anIntegercontrol_div2N = GraphSyrControlAveValid.Link( Odiv2anInteger , Icontrol_div2N )
284 Ldiv2anIntegercontrol_div2N.AddCoord( 1 , 1012 , 585 )
285 Ldiv2anIntegercontrol_div2N.AddCoord( 2 , 1011 , 346 )
287 LincraNewCountcontrol_div2K = GraphSyrControlAveValid.Link( OincraNewCount , Icontrol_div2K )
288 LincraNewCountcontrol_div2K.AddCoord( 1 , 966 , 606 )
289 LincraNewCountcontrol_div2K.AddCoord( 2 , 968 , 207 )
291 LincraNewCountcontrol_m3p1K = GraphSyrControlAveValid.Link( OincraNewCount , Icontrol_m3p1K )
292 LincraNewCountcontrol_m3p1K.AddCoord( 1 , 965 , 59 )
293 LincraNewCountcontrol_m3p1K.AddCoord( 2 , 966 , 208 )
295 LincraNewCountC_AVERAGEaCount = GraphSyrControlAveValid.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 )
301 LC_MINaNewMinValcontrol_m3p1MINT = GraphSyrControlAveValid.Link( OC_MINaNewMinVal , Icontrol_m3p1MINT )
302 LC_MINaNewMinValcontrol_m3p1MINT.AddCoord( 1 , 991 , 78 )
303 LC_MINaNewMinValcontrol_m3p1MINT.AddCoord( 2 , 991 , 905 )
305 LC_MINaNewMinValcontrol_div2MINT = GraphSyrControlAveValid.Link( OC_MINaNewMinVal , Icontrol_div2MINT )
306 LC_MINaNewMinValcontrol_div2MINT.AddCoord( 1 , 991 , 626 )
307 LC_MINaNewMinValcontrol_div2MINT.AddCoord( 2 , 991 , 905 )
309 LC_MAXaNewMaxValcontrol_m3p1MAXT = GraphSyrControlAveValid.Link( OC_MAXaNewMaxVal , Icontrol_m3p1MAXT )
310 LC_MAXaNewMaxValcontrol_m3p1MAXT.AddCoord( 1 , 976 , 98 )
311 LC_MAXaNewMaxValcontrol_m3p1MAXT.AddCoord( 2 , 974 , 738 )
313 LC_MAXaNewMaxValcontrol_div2MAXT = GraphSyrControlAveValid.Link( OC_MAXaNewMaxVal , Icontrol_div2MAXT )
314 LC_MAXaNewMaxValcontrol_div2MAXT.AddCoord( 1 , 972 , 648 )
315 LC_MAXaNewMaxValcontrol_div2MAXT.AddCoord( 2 , 974 , 738 )
317 LC_AVERAGEaNewListOfSyrcontrol_m3p1SYRLISTT = GraphSyrControlAveValid.Link( OC_AVERAGEaNewListOfSyr , Icontrol_m3p1SYRLISTT )
318 LC_AVERAGEaNewListOfSyrcontrol_m3p1SYRLISTT.AddCoord( 1 , 1037 , 137 )
319 LC_AVERAGEaNewListOfSyrcontrol_m3p1SYRLISTT.AddCoord( 2 , 1038 , 556 )
321 LC_AVERAGEaNewListOfSyrcontrol_div2SYRLISTT = GraphSyrControlAveValid.Link( OC_AVERAGEaNewListOfSyr , Icontrol_div2SYRLISTT )
322 LC_AVERAGEaNewListOfSyrcontrol_div2SYRLISTT.AddCoord( 1 , 1038 , 686 )
323 LC_AVERAGEaNewListOfSyrcontrol_div2SYRLISTT.AddCoord( 2 , 1038 , 555 )
325 LC_AVERAGEanAveragecontrol_m3p1AVERAGET = GraphSyrControlAveValid.Link( OC_AVERAGEanAverage , Icontrol_m3p1AVERAGET )
326 LC_AVERAGEanAveragecontrol_m3p1AVERAGET.AddCoord( 1 , 1026 , 118 )
327 LC_AVERAGEanAveragecontrol_m3p1AVERAGET.AddCoord( 2 , 1027 , 567 )
329 LC_AVERAGEanAveragecontrol_div2AVERAGET = GraphSyrControlAveValid.Link( OC_AVERAGEanAverage , Icontrol_div2AVERAGET )
330 LC_AVERAGEanAveragecontrol_div2AVERAGET.AddCoord( 1 , 1027 , 668 )
331 LC_AVERAGEanAveragecontrol_div2AVERAGET.AddCoord( 2 , 1026 , 568 )
333 LC_LISTOFSYRaListOfSyrlabel_beginSYRLISTB = GraphSyrControlAveValid.Link( OC_LISTOFSYRaListOfSyr , Ilabel_beginSYRLISTB )
335 Llabel_beginNTtest_ISONEanInteger = GraphSyrControlAveValid.Link( Olabel_beginNT , Itest_ISONEanInteger )
336 Llabel_beginNTtest_ISONEanInteger.AddCoord( 1 , 361 , 197 )
337 Llabel_beginNTtest_ISONEanInteger.AddCoord( 2 , 360 , 290 )
339 Llabel_beginNTlabel_testNT = GraphSyrControlAveValid.Link( Olabel_beginNT , Ilabel_testNT )
341 Llabel_beginNTtest_ISEVENanInteger = GraphSyrControlAveValid.Link( Olabel_beginNT , Itest_ISEVENanInteger )
342 Llabel_beginNTtest_ISEVENanInteger.AddCoord( 1 , 359 , 525 )
343 Llabel_beginNTtest_ISEVENanInteger.AddCoord( 2 , 361 , 291 )
345 Llabel_beginKTlabel_testKT = GraphSyrControlAveValid.Link( Olabel_beginKT , Ilabel_testKT )
347 Llabel_beginMINlabel_testMIN = GraphSyrControlAveValid.Link( Olabel_beginMIN , Ilabel_testMIN )
349 Llabel_beginMAXlabel_testMAX = GraphSyrControlAveValid.Link( Olabel_beginMAX , Ilabel_testMAX )
351 Llabel_beginAVERAGElabel_testAVERAGE = GraphSyrControlAveValid.Link( Olabel_beginAVERAGE , Ilabel_testAVERAGE )
353 Llabel_beginSYRLISTlabel_testSYRLIST = GraphSyrControlAveValid.Link( Olabel_beginSYRLIST , Ilabel_testSYRLIST )
355 Llabel_testEvendiv2Gate = GraphSyrControlAveValid.Link( Olabel_testEven , Idiv2Gate )
356 Llabel_testEvendiv2Gate.AddCoord( 1 , 777 , 351 )
357 Llabel_testEvendiv2Gate.AddCoord( 2 , 777 , 286 )
359 Llabel_testOddm3p1Gate = GraphSyrControlAveValid.Link( Olabel_testOdd , Im3p1Gate )
360 Llabel_testOddm3p1Gate.AddCoord( 1 , 757 , 95 )
361 Llabel_testOddm3p1Gate.AddCoord( 2 , 757 , 310 )
363 Llabel_testNm3p1anOddInteger = GraphSyrControlAveValid.Link( Olabel_testN , Im3p1anOddInteger )
364 Llabel_testNm3p1anOddInteger.AddCoord( 1 , 741 , 72 )
365 Llabel_testNm3p1anOddInteger.AddCoord( 2 , 741 , 331 )
367 Llabel_testNdiv2anEvenInteger = GraphSyrControlAveValid.Link( Olabel_testN , Idiv2anEvenInteger )
369 Llabel_testNC_MINanInteger = GraphSyrControlAveValid.Link( Olabel_testN , IC_MINanInteger )
370 Llabel_testNC_MINanInteger.AddCoord( 1 , 744 , 923 )
371 Llabel_testNC_MINanInteger.AddCoord( 2 , 742 , 331 )
373 Llabel_testNC_MAXanInteger = GraphSyrControlAveValid.Link( Olabel_testN , IC_MAXanInteger )
374 Llabel_testNC_MAXanInteger.AddCoord( 1 , 742 , 759 )
375 Llabel_testNC_MAXanInteger.AddCoord( 2 , 743 , 332 )
377 Llabel_testNC_AVERAGEanInteger = GraphSyrControlAveValid.Link( Olabel_testN , IC_AVERAGEanInteger )
378 Llabel_testNC_AVERAGEanInteger.AddCoord( 1 , 741 , 568 )
379 Llabel_testNC_AVERAGEanInteger.AddCoord( 2 , 742 , 330 )
381 Llabel_testKincraCount = GraphSyrControlAveValid.Link( Olabel_testK , IincraCount )
382 Llabel_testKincraCount.AddCoord( 1 , 766 , 207 )
383 Llabel_testKincraCount.AddCoord( 2 , 766 , 343 )
385 Llabel_testMINTC_MINaMinVal = GraphSyrControlAveValid.Link( Olabel_testMINT , IC_MINaMinVal )
386 Llabel_testMINTC_MINaMinVal.AddCoord( 1 , 760 , 904 )
387 Llabel_testMINTC_MINaMinVal.AddCoord( 2 , 756 , 372 )
389 Llabel_testMINTEndL_OneEvenMINT = GraphSyrControlAveValid.Link( Olabel_testMINT , IEndL_OneEvenMINT )
391 Llabel_testMAXTC_MAXaMaxVal = GraphSyrControlAveValid.Link( Olabel_testMAXT , IC_MAXaMaxVal )
392 Llabel_testMAXTC_MAXaMaxVal.AddCoord( 1 , 765 , 742 )
393 Llabel_testMAXTC_MAXaMaxVal.AddCoord( 2 , 766 , 384 )
395 Llabel_testMAXTEndL_OneEvenMAXT = GraphSyrControlAveValid.Link( Olabel_testMAXT , IEndL_OneEvenMAXT )
397 Llabel_testAVERAGETEndL_OneEvenAVERAGET = GraphSyrControlAveValid.Link( Olabel_testAVERAGET , IEndL_OneEvenAVERAGET )
399 Llabel_testSYRLISTTC_AVERAGEaListOfSyr = GraphSyrControlAveValid.Link( Olabel_testSYRLISTT , IC_AVERAGEaListOfSyr )
400 Llabel_testSYRLISTTC_AVERAGEaListOfSyr.AddCoord( 1 , 773 , 546 )
401 Llabel_testSYRLISTTC_AVERAGEaListOfSyr.AddCoord( 2 , 772 , 424 )
403 Llabel_testDefaultEndL_OneEvenDefault = GraphSyrControlAveValid.Link( Olabel_testDefault , IEndL_OneEvenDefault )
405 Lcontrol_m3p1Gatelabel_testGate = GraphSyrControlAveValid.Link( Ocontrol_m3p1Gate , Ilabel_testGate )
406 Lcontrol_m3p1Gatelabel_testGate.AddCoord( 1 , 553 , 453 )
407 Lcontrol_m3p1Gatelabel_testGate.AddCoord( 2 , 554 , 1025 )
408 Lcontrol_m3p1Gatelabel_testGate.AddCoord( 3 , 1242 , 1026 )
409 Lcontrol_m3p1Gatelabel_testGate.AddCoord( 4 , 1234 , 204 )
411 Lcontrol_div2Gatelabel_beginGate = GraphSyrControlAveValid.Link( Ocontrol_div2Gate , Ilabel_beginGate )
412 Lcontrol_div2Gatelabel_beginGate.AddCoord( 1 , 176 , 419 )
413 Lcontrol_div2Gatelabel_beginGate.AddCoord( 2 , 176 , 997 )
414 Lcontrol_div2Gatelabel_beginGate.AddCoord( 3 , 1217 , 996 )
415 Lcontrol_div2Gatelabel_beginGate.AddCoord( 4 , 1223 , 711 )
418 Ilabel_beginNB.Input( 31 )
419 Ilabel_beginKB.Input( 0 )
420 Ilabel_beginMINB.Input( 0 )
421 Ilabel_beginMAXB.Input( 0 )
422 Ilabel_beginAVERAGEB.Input( 0 )
424 # Output Ports of the graph
425 #Olabel_testFinished = label_test.GetOutPort( 'Finished' )
426 #Olabel_testIncr = label_test.GetOutPort( 'Incr' )
427 #OEndL_OneEvenMIN = EndL_OneEven.GetOutPort( 'MIN' )
428 #OEndL_OneEvenMAX = EndL_OneEven.GetOutPort( 'MAX' )
429 #OEndL_OneEvenAVERAGE = EndL_OneEven.GetOutPort( 'AVERAGE' )
430 return GraphSyrControlAveValid
433 GraphSyrControlAveValid = DefGraphSyrControlAveValid()