1 # Copyright (C) 2003 CEA/DEN, EDF R&D
5 # File : GraphRunSyr.py
6 # Module : SuperVisionTest
10 # Warning this script has an IOR (object reference) as Input :
11 # You may have to redefine it with the result of :
12 # SyrStruct.ComponentRef( 'FactoryServer' , 'SyrComponent' )
13 # See the Input Port forN.InPort( 'SyrComponent' , 'ComponentRef' )
15 #SyrStruct = Graph('../share/salome/resources/SyrStruct.xml')
16 SyrStruct = Graph('/home/data/jr_HEAD/build/share/salome/resources/SyrStruct.xml')
18 exec SyrStruct.ListNodes()
34 EndN = endwhileNotOne.Port( 'N' )
35 K = endforN.Port( 'K' )
39 while SyrStruct.IsDone() == 0 :
41 if SyrStruct.IsDone() == 0 :
42 print N.ToString(),'-->',EndN.ToString(),'with',K.ToString(),'steps'
47 SyrStruct.PrintPorts()