Salome HOME
Supervisor sample graphs 'graph1.xml' and 'graph2.xml' were replaced by the same... BR_new_bop3
authorakl <akl@opencascade.com>
Mon, 10 Jun 2013 13:57:08 +0000 (13:57 +0000)
committerakl <akl@opencascade.com>
Mon, 10 Jun 2013 13:57:08 +0000 (13:57 +0000)
README
resources/Makefile.am
resources/graph1.xml [deleted file]
resources/graph2.xml [deleted file]
resources/schema1.xml [new file with mode: 0644]
resources/schema2.xml [new file with mode: 0644]

diff --git a/README b/README
index 8c3626934c3ad79e1574b7918943fdb514d14f2f..64c0a2d33674b11d4dfb8adb139813059ccee72a 100755 (executable)
--- a/README
+++ b/README
@@ -23,8 +23,8 @@ Randomizer and Sierpinsky SALOME-based modules implement simple interface to cal
 2. Prerequisites.
 =======================================================
 
-SALOME version 3.0.2 is used as a referense version of SALOME platform.
-All other products are those used by SALOME v3.0.2.
+SALOME platform.
+All other products are those used by SALOME.
 
 =======================================================
 3. Installation.
@@ -32,13 +32,13 @@ All other products are those used by SALOME v3.0.2.
 
 The compilation procedure is exactly the same as for other SALOME modules:
 
-3.1. install SALOME 3.0.2 with all prerequisite products;
+3.1. install SALOME with all prerequisite products;
 3.2. unpack Randomizer and Sierpinsky modules sources;
 3.3  set environment:
 
    source <salome_install_dir>/env_products.csh
 
-   where <salome_install_dir> is a directory where SALOME 3.0.2 is installed to.
+   where <salome_install_dir> is a directory where SALOME is installed to.
 
 3.4 create build directory for Randomizer module:
 
@@ -69,7 +69,7 @@ To launch SALOME application the following steps should be performed:
 
    source <salome_install_dir>/env_products.csh
 
-   where <salome_install_dir> is a directory where SALOME 3.0.2 is installed to.
+   where <salome_install_dir> is a directory where SALOME is installed to.
 
 4.3. add Randomizer and Sierpinsky modules environment:
 
@@ -81,7 +81,7 @@ To launch SALOME application the following steps should be performed:
 
 4.4. launch SALOME:
 
-   ${KERNEL_ROOT_DIR}/bin/salome/runSalome --module=MED,VISU,SUPERV,RANDOMIZER,SIERPINSKY
+   ${KERNEL_ROOT_DIR}/bin/salome/runSalome --modules=MED,VISU,RANDOMIZER,SIERPINSKY
    
 =======================================================
 5. Functionality.
@@ -167,7 +167,7 @@ After pressing the 'Start' button the calculation begins. It is possible to stop
 6.2. Visualization.
 
 Activate Post-Pro (VISU) module by clicking the corresponding button on the 'Components' toolbar.
-Select 'File/Import from file' menu command. Select the MED file, click 'Open' button. The MED file is imported
+Select 'File - Import from file' menu command. Select the MED file, click 'Open' button. The MED file is imported
 to the study.
 Note: the MED file can be automatically imported to the study after finishing of the calculations
 (see previous paragraph).
@@ -176,20 +176,21 @@ Select 'Post-Pro/<med_file>.med/Sierpinsky/Families/onNodes' object in the Objec
 menu by mouse right-button click and select 'Display Only' command. The cloud of points is displayed in the viewer.
 Note: the visualizaion of mesh is only possible in the VTK viewer.
 
-6.3. Supervisor.
+6.3. Supervision.
 
-Activate Supervisor module by clicking the corresponding button on the 'Components' toolbar.
-There are two sample Supervisor graphs which allow to test the Randomizer and Sierpinsky modules
+Activate YACS module by clicking the corresponding button on the 'Components' toolbar.
+There are two sample YACS schemas which allow to test the Randomizer and Sierpinsky modules
 functionality. These files can be found in the <SIERPINSKY_install_dir>/share/salome/resources directory
 where <SIERPINSKY_install_dir> is the directory where you have installed Sierpinsky module (see paragraph 3).
 
-Call 'File/Import Dataflow' menu command, then browse to the 'graph1.xml' or 'graph2.xml' file and click 'Open' button.
-To launch the graph, call 'Supervisor/Run' menu command or just click the corresponding toolbar button.
+Call 'YACS - Import Schema' menu command, then browse to the 'schema1.xml' or 'schema2.xml' file and click 'Open' button.
+To prepare the schema for execution, call 'YACS - Run Current Schema' menu command or just click the corresponding toolbar button.
+Then launch the ready schema by calling 'YACS - Start/Resume execution' menu command.
 
-The both graphs implement simple loop to perform calculations. The first graph uses default parameters and 
+The both schemas implement simple loop to perform calculations. The first schema uses default parameters and 
 exports the generated data to the JPEG file after calculation finishing.
 
-The second graph is some more complicated. It uses random start and reference points. After the calculations finishing
+The second schema is some more complicated. It uses random start and reference points. After the calculations finishing
 it exports the data to the JPEG file and to the MED file, then automatically imports the MED file to the Post-Pro
 module and displays it in the new 3d viewer (the 'ImportToVisu' inline node performs the importation and visualizing).
 
index d3738d35aa591af2edd7b295a2d6e8cd91a7517f..6f0d6b04327fce1b113c92e445c7b9b537255b80 100644 (file)
@@ -27,8 +27,8 @@ include $(top_srcdir)/adm_local/unix/make_common_starter.am
 dist_salomeres_DATA = \
        SIERPINSKY.png \
        go.png \
-       graph1.xml \
-       graph2.xml 
+       schema1.xml \
+       schema2.xml 
 
 # VSR: little trick to avoid putting if SIERPINSKYCatalog.xml to the distribution archive
 nodist_salomeres_SCRIPTS = SIERPINSKYCatalog.xml SalomeApp.xml
diff --git a/resources/graph1.xml b/resources/graph1.xml
deleted file mode 100644 (file)
index e20387e..0000000
+++ /dev/null
@@ -1,455 +0,0 @@
-<!DOCTYPE SuperGraph>
-<!--
-  Copyright (C) 2005-2013  OPEN CASCADE
-
-  This library is free software; you can redistribute it and/or
-  modify it under the terms of the GNU Lesser General Public
-  License as published by the Free Software Foundation; either
-  version 2.1 of the License.
-
-  This library is distributed in the hope that it will be useful,
-  but WITHOUT ANY WARRANTY; without even the implied warranty of
-  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-  Lesser General Public License for more details.
-
-  You should have received a copy of the GNU Lesser General Public
-  License along with this library; if not, write to the Free Software
-  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
-
-  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
-
--->
-<supergraph>
-<dataflow>
-<info-list>
-<node>
-<component-name>?</component-name>
-    <interface-name>?</interface-name>
-    <node-name>aNewDataFlow_1_3</node-name>
-    <kind>1</kind>
-    <coupled-node>?</coupled-node>
-    <service>
-<service-name>aNewDataFlow_1_3</service-name>
-     <inParameter-list>
-<inParameter>
-<inParameter-type>long</inParameter-type>
-       <inParameter-name>Loop__nbIter</inParameter-name>      </inParameter>
-      <inParameter>
-<inParameter-type>long</inParameter-type>
-       <inParameter-name>Loop__iter</inParameter-name>      </inParameter>
-      <inParameter>
-<inParameter-type>string</inParameter-type>
-       <inParameter-name>ExportToJPEG__fileName</inParameter-name>      </inParameter>
-      <inParameter>
-<inParameter-type>long</inParameter-type>
-       <inParameter-name>ExportToJPEG__size</inParameter-name>      </inParameter>     </inParameter-list>
-     <outParameter-list>
-<outParameter>
-<outParameter-type>double</outParameter-type>
-       <outParameter-name>EndLoop__x</outParameter-name>      </outParameter>
-      <outParameter>
-<outParameter-type>double</outParameter-type>
-       <outParameter-name>EndLoop__y</outParameter-name>      </outParameter>
-      <outParameter>
-<outParameter-type>long</outParameter-type>
-       <outParameter-name>EndLoop__nbIter</outParameter-name>      </outParameter>
-      <outParameter>
-<outParameter-type>long</outParameter-type>
-       <outParameter-name>EndLoop__iter</outParameter-name>      </outParameter>
-      <outParameter>
-<outParameter-type>boolean</outParameter-type>
-       <outParameter-name>ExportToJPEG__return</outParameter-name>      </outParameter>     </outParameter-list>    </service>
-    <DataStream-list/>
-    <PyFunction-list/>
-    <creation-date>13/7/2005 - 13:45:3</creation-date>
-    <lastmodification-date>14/7/2005 - 17:9:25</lastmodification-date>
-    <editor-release>2.0</editor-release>
-    <author>?</author>
-    <container>?</container>
-    <comment>?</comment>
-    <x-position>0</x-position>
-    <y-position>0</y-position>   </node>  </info-list>
-  <node-list>
-<node>
-<component-name>RANDOMIZER</component-name>
-    <interface-name>RANDOMIZER</interface-name>
-    <node-name>InitPoint</node-name>
-    <kind>0</kind>
-    <coupled-node>?</coupled-node>
-    <service>
-<service-name>InitPoint</service-name>
-     <inParameter-list/>
-     <outParameter-list>
-<outParameter>
-<outParameter-type>double</outParameter-type>
-       <outParameter-name>theX</outParameter-name>      </outParameter>
-      <outParameter>
-<outParameter-type>double</outParameter-type>
-       <outParameter-name>theY</outParameter-name>      </outParameter>     </outParameter-list>    </service>
-    <DataStream-list/>
-    <PyFunction-list/>
-    <creation-date>14/7/2005 - 17:9:25</creation-date>
-    <lastmodification-date>14/7/2005 - 17:9:25</lastmodification-date>
-    <editor-release>2.0</editor-release>
-    <author>?</author>
-    <container>FactoryServerPy</container>
-    <comment>InitPoint from RANDOMIZER</comment>
-    <x-position>20</x-position>
-    <y-position>7</y-position>   </node>
-   <node>
-<component-name>RANDOMIZER</component-name>
-    <interface-name>RANDOMIZER</interface-name>
-    <node-name>NextIteration</node-name>
-    <kind>0</kind>
-    <coupled-node>?</coupled-node>
-    <service>
-<service-name>NextIteration</service-name>
-     <inParameter-list/>
-     <outParameter-list>
-<outParameter>
-<outParameter-type>long</outParameter-type>
-       <outParameter-name>return</outParameter-name>      </outParameter>     </outParameter-list>    </service>
-    <DataStream-list/>
-    <PyFunction-list/>
-    <creation-date>14/7/2005 - 17:9:25</creation-date>
-    <lastmodification-date>14/7/2005 - 17:9:25</lastmodification-date>
-    <editor-release>2.0</editor-release>
-    <author>?</author>
-    <container>FactoryServerPy</container>
-    <comment>NextIteration from RANDOMIZER</comment>
-    <x-position>433</x-position>
-    <y-position>115</y-position>   </node>
-   <node>
-<component-name>SIERPINSKY</component-name>
-    <interface-name>SIERPINSKY</interface-name>
-    <node-name>NextPoint</node-name>
-    <kind>0</kind>
-    <coupled-node>?</coupled-node>
-    <service>
-<service-name>NextPoint</service-name>
-     <inParameter-list>
-<inParameter>
-<inParameter-type>double</inParameter-type>
-       <inParameter-name>X</inParameter-name>      </inParameter>
-      <inParameter>
-<inParameter-type>double</inParameter-type>
-       <inParameter-name>Y</inParameter-name>      </inParameter>
-      <inParameter>
-<inParameter-type>long</inParameter-type>
-       <inParameter-name>iter</inParameter-name>      </inParameter>     </inParameter-list>
-     <outParameter-list>
-<outParameter>
-<outParameter-type>double</outParameter-type>
-       <outParameter-name>nextX</outParameter-name>      </outParameter>
-      <outParameter>
-<outParameter-type>double</outParameter-type>
-       <outParameter-name>nextY</outParameter-name>      </outParameter>     </outParameter-list>    </service>
-    <DataStream-list/>
-    <PyFunction-list/>
-    <creation-date>14/7/2005 - 17:9:25</creation-date>
-    <lastmodification-date>14/7/2005 - 17:9:25</lastmodification-date>
-    <editor-release>2.0</editor-release>
-    <author>?</author>
-    <container>localhost/FactoryServer</container>
-    <comment>NextPoint from SIERPINSKY</comment>
-    <x-position>638</x-position>
-    <y-position>7</y-position>   </node>
-   <node>
-<component-name>?</component-name>
-    <interface-name>?</interface-name>
-    <node-name>Loop</node-name>
-    <kind>4</kind>
-    <coupled-node>EndLoop</coupled-node>
-    <service>
-<service-name>Loop</service-name>
-     <inParameter-list>
-<inParameter>
-<inParameter-type>double</inParameter-type>
-       <inParameter-name>x</inParameter-name>      </inParameter>
-      <inParameter>
-<inParameter-type>double</inParameter-type>
-       <inParameter-name>y</inParameter-name>      </inParameter>
-      <inParameter>
-<inParameter-type>long</inParameter-type>
-       <inParameter-name>nbIter</inParameter-name>      </inParameter>
-      <inParameter>
-<inParameter-type>long</inParameter-type>
-       <inParameter-name>iter</inParameter-name>      </inParameter>     </inParameter-list>
-     <outParameter-list>
-<outParameter>
-<outParameter-type>double</outParameter-type>
-       <outParameter-name>x</outParameter-name>      </outParameter>
-      <outParameter>
-<outParameter-type>double</outParameter-type>
-       <outParameter-name>y</outParameter-name>      </outParameter>
-      <outParameter>
-<outParameter-type>long</outParameter-type>
-       <outParameter-name>nbIter</outParameter-name>      </outParameter>
-      <outParameter>
-<outParameter-type>long</outParameter-type>
-       <outParameter-name>iter</outParameter-name>      </outParameter>     </outParameter-list>    </service>
-    <DataStream-list/>
-    <PyFunction-list>
-<PyFunction>
-<FuncName>InitLoop</FuncName>
-      <PyFunc><![CDATA[def InitLoop( x, y, nbIter, iter ): ]]></PyFunc>
-      <PyFunc><![CDATA[    iter = 0 ]]></PyFunc>
-      <PyFunc><![CDATA[    return x, y, nbIter, iter ]]></PyFunc>
-      <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>
-     <PyFunction>
-<FuncName>MoreLoop</FuncName>
-      <PyFunc><![CDATA[def MoreLoop( x, y, nbIter, iter ): ]]></PyFunc>
-      <PyFunc><![CDATA[    loop = 0 ]]></PyFunc>
-      <PyFunc><![CDATA[    if iter < nbIter: loop = 1 ]]></PyFunc>
-      <PyFunc><![CDATA[    return loop, x, y, nbIter, iter ]]></PyFunc>
-      <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>
-     <PyFunction>
-<FuncName>NextLoop</FuncName>
-      <PyFunc><![CDATA[def NextLoop( x, y, nbIter, iter ): ]]></PyFunc>
-      <PyFunc><![CDATA[    iter = iter + 1 ]]></PyFunc>
-      <PyFunc><![CDATA[    return x, y, nbIter, iter ]]></PyFunc>
-      <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
-    <creation-date>14/7/2005 - 17:9:25</creation-date>
-    <lastmodification-date>14/7/2005 - 17:9:25</lastmodification-date>
-    <editor-release>2.0</editor-release>
-    <author>?</author>
-    <container>?</container>
-    <comment>Compute Node</comment>
-    <x-position>229</x-position>
-    <y-position>47</y-position>   </node>
-   <node>
-<component-name>?</component-name>
-    <interface-name>?</interface-name>
-    <node-name>EndLoop</node-name>
-    <kind>5</kind>
-    <coupled-node>Loop</coupled-node>
-    <service>
-<service-name>EndLoop</service-name>
-     <inParameter-list>
-<inParameter>
-<inParameter-type>double</inParameter-type>
-       <inParameter-name>x</inParameter-name>      </inParameter>
-      <inParameter>
-<inParameter-type>double</inParameter-type>
-       <inParameter-name>y</inParameter-name>      </inParameter>
-      <inParameter>
-<inParameter-type>long</inParameter-type>
-       <inParameter-name>nbIter</inParameter-name>      </inParameter>
-      <inParameter>
-<inParameter-type>long</inParameter-type>
-       <inParameter-name>iter</inParameter-name>      </inParameter>     </inParameter-list>
-     <outParameter-list>
-<outParameter>
-<outParameter-type>double</outParameter-type>
-       <outParameter-name>x</outParameter-name>      </outParameter>
-      <outParameter>
-<outParameter-type>double</outParameter-type>
-       <outParameter-name>y</outParameter-name>      </outParameter>
-      <outParameter>
-<outParameter-type>long</outParameter-type>
-       <outParameter-name>nbIter</outParameter-name>      </outParameter>
-      <outParameter>
-<outParameter-type>long</outParameter-type>
-       <outParameter-name>iter</outParameter-name>      </outParameter>     </outParameter-list>    </service>
-    <DataStream-list/>
-    <PyFunction-list>
-<PyFunction>
-<FuncName>EndLoop</FuncName>
-      <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
-    <creation-date>14/7/2005 - 17:9:25</creation-date>
-    <lastmodification-date>14/7/2005 - 17:9:25</lastmodification-date>
-    <editor-release>2.0</editor-release>
-    <author>?</author>
-    <container>?</container>
-    <comment>Compute Node</comment>
-    <x-position>833</x-position>
-    <y-position>47</y-position>   </node>
-   <node>
-<component-name>SIERPINSKY</component-name>
-    <interface-name>SIERPINSKY</interface-name>
-    <node-name>ExportToJPEG</node-name>
-    <kind>0</kind>
-    <coupled-node>?</coupled-node>
-    <service>
-<service-name>ExportToJPEG</service-name>
-     <inParameter-list>
-<inParameter>
-<inParameter-type>string</inParameter-type>
-       <inParameter-name>fileName</inParameter-name>      </inParameter>
-      <inParameter>
-<inParameter-type>long</inParameter-type>
-       <inParameter-name>size</inParameter-name>      </inParameter>     </inParameter-list>
-     <outParameter-list>
-<outParameter>
-<outParameter-type>boolean</outParameter-type>
-       <outParameter-name>return</outParameter-name>      </outParameter>     </outParameter-list>    </service>
-    <DataStream-list/>
-    <PyFunction-list/>
-    <creation-date>14/7/2005 - 17:9:25</creation-date>
-    <lastmodification-date>14/7/2005 - 17:9:25</lastmodification-date>
-    <editor-release>2.0</editor-release>
-    <author>?</author>
-    <container>localhost/FactoryServer</container>
-    <comment>ExportToJPEG from SIERPINSKY</comment>
-    <x-position>1032</x-position>
-    <y-position>47</y-position>   </node>
-   <node>
-<component-name>SIERPINSKY</component-name>
-    <interface-name>SIERPINSKY</interface-name>
-    <node-name>Reset</node-name>
-    <kind>0</kind>
-    <coupled-node>?</coupled-node>
-    <service>
-<service-name>Reset</service-name>
-     <inParameter-list/>
-     <outParameter-list/>    </service>
-    <DataStream-list/>
-    <PyFunction-list/>
-    <creation-date>14/7/2005 - 17:9:25</creation-date>
-    <lastmodification-date>14/7/2005 - 17:9:25</lastmodification-date>
-    <editor-release>2.0</editor-release>
-    <author>?</author>
-    <container>localhost/FactoryServer</container>
-    <comment>Reset from SIERPINSKY</comment>
-    <x-position>19</x-position>
-    <y-position>152</y-position>   </node>  </node-list>
-  <link-list>
-<link>
-<fromnode-name>InitPoint</fromnode-name>
-    <fromserviceparameter-name>theX</fromserviceparameter-name>
-    <tonode-name>Loop</tonode-name>
-    <toserviceparameter-name>x</toserviceparameter-name>
-    <coord-list/>   </link>
-   <link>
-<fromnode-name>InitPoint</fromnode-name>
-    <fromserviceparameter-name>theY</fromserviceparameter-name>
-    <tonode-name>Loop</tonode-name>
-    <toserviceparameter-name>y</toserviceparameter-name>
-    <coord-list/>   </link>
-   <link>
-<fromnode-name>NextIteration</fromnode-name>
-    <fromserviceparameter-name>return</fromserviceparameter-name>
-    <tonode-name>NextPoint</tonode-name>
-    <toserviceparameter-name>iter</toserviceparameter-name>
-    <coord-list>
-<coord>
-<x>616</x>
-      <y>118</y>     </coord>
-     <coord>
-<x>616</x>
-      <y>186</y>     </coord>    </coord-list>   </link>
-   <link>
-<fromnode-name>NextPoint</fromnode-name>
-    <fromserviceparameter-name>nextX</fromserviceparameter-name>
-    <tonode-name>EndLoop</tonode-name>
-    <toserviceparameter-name>x</toserviceparameter-name>
-    <coord-list/>   </link>
-   <link>
-<fromnode-name>NextPoint</fromnode-name>
-    <fromserviceparameter-name>nextY</fromserviceparameter-name>
-    <tonode-name>EndLoop</tonode-name>
-    <toserviceparameter-name>y</toserviceparameter-name>
-    <coord-list/>   </link>
-   <link>
-<fromnode-name>Loop</fromnode-name>
-    <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
-    <tonode-name>EndLoop</tonode-name>
-    <toserviceparameter-name>DoLoop</toserviceparameter-name>
-    <coord-list/>   </link>
-   <link>
-<fromnode-name>Loop</fromnode-name>
-    <fromserviceparameter-name>x</fromserviceparameter-name>
-    <tonode-name>NextPoint</tonode-name>
-    <toserviceparameter-name>X</toserviceparameter-name>
-    <coord-list/>   </link>
-   <link>
-<fromnode-name>Loop</fromnode-name>
-    <fromserviceparameter-name>y</fromserviceparameter-name>
-    <tonode-name>NextPoint</tonode-name>
-    <toserviceparameter-name>Y</toserviceparameter-name>
-    <coord-list/>   </link>
-   <link>
-<fromnode-name>Loop</fromnode-name>
-    <fromserviceparameter-name>nbIter</fromserviceparameter-name>
-    <tonode-name>EndLoop</tonode-name>
-    <toserviceparameter-name>nbIter</toserviceparameter-name>
-    <coord-list/>   </link>
-   <link>
-<fromnode-name>Loop</fromnode-name>
-    <fromserviceparameter-name>iter</fromserviceparameter-name>
-    <tonode-name>EndLoop</tonode-name>
-    <toserviceparameter-name>iter</toserviceparameter-name>
-    <coord-list/>   </link>
-   <link>
-<fromnode-name>Loop</fromnode-name>
-    <fromserviceparameter-name>Gate</fromserviceparameter-name>
-    <tonode-name>NextIteration</tonode-name>
-    <toserviceparameter-name>Gate</toserviceparameter-name>
-    <coord-list>
-<coord>
-<x>409</x>
-      <y>210</y>     </coord>
-     <coord>
-<x>409</x>
-      <y>162</y>     </coord>    </coord-list>   </link>
-   <link>
-<fromnode-name>EndLoop</fromnode-name>
-    <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
-    <tonode-name>Loop</tonode-name>
-    <toserviceparameter-name>DoLoop</toserviceparameter-name>
-    <coord-list/>   </link>
-   <link>
-<fromnode-name>EndLoop</fromnode-name>
-    <fromserviceparameter-name>Gate</fromserviceparameter-name>
-    <tonode-name>ExportToJPEG</tonode-name>
-    <toserviceparameter-name>Gate</toserviceparameter-name>
-    <coord-list/>   </link>
-   <link>
-<fromnode-name>Reset</fromnode-name>
-    <fromserviceparameter-name>Gate</fromserviceparameter-name>
-    <tonode-name>Loop</tonode-name>
-    <toserviceparameter-name>Gate</toserviceparameter-name>
-    <coord-list>
-<coord>
-<x>205</x>
-      <y>162</y>     </coord>
-     <coord>
-<x>205</x>
-      <y>227</y>     </coord>    </coord-list>   </link>  </link-list>
-  <data-list>
-<data>
-<fromnode-name>aNewDataFlow_1_3</fromnode-name>
-    <fromserviceparameter-name>Loop__nbIter</fromserviceparameter-name>
-    <tonode-name>Loop</tonode-name>
-    <toserviceparameter-name>nbIter</toserviceparameter-name>
-    <data-value>
-<value-type>3</value-type>
-     <value>500</value>    </data-value>
-    <coord-list/>   </data>
-   <data>
-<fromnode-name>aNewDataFlow_1_3</fromnode-name>
-    <fromserviceparameter-name>Loop__iter</fromserviceparameter-name>
-    <tonode-name>Loop</tonode-name>
-    <toserviceparameter-name>iter</toserviceparameter-name>
-    <data-value>
-<value-type>3</value-type>
-     <value>0</value>    </data-value>
-    <coord-list/>   </data>
-   <data>
-<fromnode-name>aNewDataFlow_1_3</fromnode-name>
-    <fromserviceparameter-name>ExportToJPEG__fileName</fromserviceparameter-name>
-    <tonode-name>ExportToJPEG</tonode-name>
-    <toserviceparameter-name>fileName</toserviceparameter-name>
-    <data-value>
-<value-type>18</value-type>
-     <value><![CDATA[/tmp/sierpinsky_graph1.jpg]]></value>    </data-value>
-    <coord-list/>   </data>
-   <data>
-<fromnode-name>aNewDataFlow_1_3</fromnode-name>
-    <fromserviceparameter-name>ExportToJPEG__size</fromserviceparameter-name>
-    <tonode-name>ExportToJPEG</tonode-name>
-    <toserviceparameter-name>size</toserviceparameter-name>
-    <data-value>
-<value-type>3</value-type>
-     <value>200</value>    </data-value>
-    <coord-list/>   </data>  </data-list> </dataflow></supergraph>
diff --git a/resources/graph2.xml b/resources/graph2.xml
deleted file mode 100644 (file)
index 7921979..0000000
+++ /dev/null
@@ -1,1127 +0,0 @@
-<!DOCTYPE SuperGraph>
-<!--
-  Copyright (C) 2005-2013  OPEN CASCADE
-
-  This library is free software; you can redistribute it and/or
-  modify it under the terms of the GNU Lesser General Public
-  License as published by the Free Software Foundation; either
-  version 2.1 of the License.
-
-  This library is distributed in the hope that it will be useful,
-  but WITHOUT ANY WARRANTY; without even the implied warranty of
-  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-  Lesser General Public License for more details.
-
-  You should have received a copy of the GNU Lesser General Public
-  License along with this library; if not, write to the Free Software
-  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
-
-  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
-
--->
-<supergraph>
- <dataflow>
-  <info-list>
-   <node>
-    <component-name>?</component-name>
-    <interface-name>?</interface-name>
-    <node-name>aNewDataFlow_1</node-name>
-    <kind>1</kind>
-    <coupled-node>?</coupled-node>
-    <service>
-     <service-name>aNewDataFlow_1</service-name>
-     <inParameter-list>
-      <inParameter>
-       <inParameter-type>long</inParameter-type>
-       <inParameter-name>Loop__nbIter</inParameter-name>
-      </inParameter>
-      <inParameter>
-       <inParameter-type>long</inParameter-type>
-       <inParameter-name>Loop__iter</inParameter-name>
-      </inParameter>
-      <inParameter>
-       <inParameter-type>double</inParameter-type>
-       <inParameter-name>ExportToMED__size</inParameter-name>
-      </inParameter>
-      <inParameter>
-       <inParameter-type>string</inParameter-type>
-       <inParameter-name>getFileNames__medFile</inParameter-name>
-      </inParameter>
-      <inParameter>
-       <inParameter-type>string</inParameter-type>
-       <inParameter-name>getFileNames__jpegFile</inParameter-name>
-      </inParameter>
-      <inParameter>
-       <inParameter-type>long</inParameter-type>
-       <inParameter-name>ExportToJPEG__size</inParameter-name>
-      </inParameter>
-     </inParameter-list>
-     <outParameter-list>
-      <outParameter>
-       <outParameter-type>double</outParameter-type>
-       <outParameter-name>EndLoop__x</outParameter-name>
-      </outParameter>
-      <outParameter>
-       <outParameter-type>double</outParameter-type>
-       <outParameter-name>EndLoop__y</outParameter-name>
-      </outParameter>
-      <outParameter>
-       <outParameter-type>long</outParameter-type>
-       <outParameter-name>EndLoop__nbIter</outParameter-name>
-      </outParameter>
-      <outParameter>
-       <outParameter-type>long</outParameter-type>
-       <outParameter-name>EndLoop__iter</outParameter-name>
-      </outParameter>
-      <outParameter>
-       <outParameter-type>long</outParameter-type>
-       <outParameter-name>CheckMedFile__ko</outParameter-name>
-      </outParameter>
-      <outParameter>
-       <outParameter-type>boolean</outParameter-type>
-       <outParameter-name>ExportToJPEG__return</outParameter-name>
-      </outParameter>
-     </outParameter-list>
-    </service>
-    <DataStream-list/>
-    <PyFunction-list/>
-    <creation-date>13/7/2005 - 13:45:3</creation-date>
-    <lastmodification-date>5/9/2005 - 17:48:48</lastmodification-date>
-    <editor-release>2.0</editor-release>
-    <author>?</author>
-    <container>?</container>
-    <comment>?</comment>
-    <x-position>0</x-position>
-    <y-position>0</y-position>
-   </node>
-  </info-list>
-  <node-list>
-   <node>
-    <component-name>RANDOMIZER</component-name>
-    <interface-name>RANDOMIZER</interface-name>
-    <node-name>InitPoint</node-name>
-    <kind>0</kind>
-    <coupled-node>?</coupled-node>
-    <service>
-     <service-name>InitPoint</service-name>
-     <inParameter-list/>
-     <outParameter-list>
-      <outParameter>
-       <outParameter-type>double</outParameter-type>
-       <outParameter-name>theX</outParameter-name>
-      </outParameter>
-      <outParameter>
-       <outParameter-type>double</outParameter-type>
-       <outParameter-name>theY</outParameter-name>
-      </outParameter>
-     </outParameter-list>
-    </service>
-    <DataStream-list/>
-    <PyFunction-list/>
-    <creation-date>5/9/2005 - 17:48:48</creation-date>
-    <lastmodification-date>5/9/2005 - 17:48:48</lastmodification-date>
-    <editor-release>2.0</editor-release>
-    <author>?</author>
-    <container>FactoryServerPy</container>
-    <comment>InitPoint from RANDOMIZER</comment>
-    <x-position>20</x-position>
-    <y-position>7</y-position>
-   </node>
-   <node>
-    <component-name>RANDOMIZER</component-name>
-    <interface-name>RANDOMIZER</interface-name>
-    <node-name>NextIteration</node-name>
-    <kind>0</kind>
-    <coupled-node>?</coupled-node>
-    <service>
-     <service-name>NextIteration</service-name>
-     <inParameter-list/>
-     <outParameter-list>
-      <outParameter>
-       <outParameter-type>long</outParameter-type>
-       <outParameter-name>return</outParameter-name>
-      </outParameter>
-     </outParameter-list>
-    </service>
-    <DataStream-list/>
-    <PyFunction-list/>
-    <creation-date>5/9/2005 - 17:48:48</creation-date>
-    <lastmodification-date>5/9/2005 - 17:48:48</lastmodification-date>
-    <editor-release>2.0</editor-release>
-    <author>?</author>
-    <container>FactoryServerPy</container>
-    <comment>NextIteration from RANDOMIZER</comment>
-    <x-position>633</x-position>
-    <y-position>207</y-position>
-   </node>
-   <node>
-    <component-name>SIERPINSKY</component-name>
-    <interface-name>SIERPINSKY</interface-name>
-    <node-name>NextPoint</node-name>
-    <kind>0</kind>
-    <coupled-node>?</coupled-node>
-    <service>
-     <service-name>NextPoint</service-name>
-     <inParameter-list>
-      <inParameter>
-       <inParameter-type>double</inParameter-type>
-       <inParameter-name>X</inParameter-name>
-      </inParameter>
-      <inParameter>
-       <inParameter-type>double</inParameter-type>
-       <inParameter-name>Y</inParameter-name>
-      </inParameter>
-      <inParameter>
-       <inParameter-type>long</inParameter-type>
-       <inParameter-name>iter</inParameter-name>
-      </inParameter>
-     </inParameter-list>
-     <outParameter-list>
-      <outParameter>
-       <outParameter-type>double</outParameter-type>
-       <outParameter-name>nextX</outParameter-name>
-      </outParameter>
-      <outParameter>
-       <outParameter-type>double</outParameter-type>
-       <outParameter-name>nextY</outParameter-name>
-      </outParameter>
-     </outParameter-list>
-    </service>
-    <DataStream-list/>
-    <PyFunction-list/>
-    <creation-date>5/9/2005 - 17:48:48</creation-date>
-    <lastmodification-date>5/9/2005 - 17:48:48</lastmodification-date>
-    <editor-release>2.0</editor-release>
-    <author>?</author>
-    <container>localhost/FactoryServer</container>
-    <comment>NextPoint from SIERPINSKY</comment>
-    <x-position>825</x-position>
-    <y-position>7</y-position>
-   </node>
-   <node>
-    <component-name>?</component-name>
-    <interface-name>?</interface-name>
-    <node-name>Loop</node-name>
-    <kind>4</kind>
-    <coupled-node>EndLoop</coupled-node>
-    <service>
-     <service-name>Loop</service-name>
-     <inParameter-list>
-      <inParameter>
-       <inParameter-type>double</inParameter-type>
-       <inParameter-name>x</inParameter-name>
-      </inParameter>
-      <inParameter>
-       <inParameter-type>double</inParameter-type>
-       <inParameter-name>y</inParameter-name>
-      </inParameter>
-      <inParameter>
-       <inParameter-type>long</inParameter-type>
-       <inParameter-name>nbIter</inParameter-name>
-      </inParameter>
-      <inParameter>
-       <inParameter-type>long</inParameter-type>
-       <inParameter-name>iter</inParameter-name>
-      </inParameter>
-     </inParameter-list>
-     <outParameter-list>
-      <outParameter>
-       <outParameter-type>double</outParameter-type>
-       <outParameter-name>x</outParameter-name>
-      </outParameter>
-      <outParameter>
-       <outParameter-type>double</outParameter-type>
-       <outParameter-name>y</outParameter-name>
-      </outParameter>
-      <outParameter>
-       <outParameter-type>long</outParameter-type>
-       <outParameter-name>nbIter</outParameter-name>
-      </outParameter>
-      <outParameter>
-       <outParameter-type>long</outParameter-type>
-       <outParameter-name>iter</outParameter-name>
-      </outParameter>
-     </outParameter-list>
-    </service>
-    <DataStream-list/>
-    <PyFunction-list>
-     <PyFunction>
-      <FuncName>InitLoop</FuncName>
-      <PyFunc><![CDATA[def InitLoop( x, y, nbIter, iter ): ]]></PyFunc>
-      <PyFunc><![CDATA[    iter = 0 ]]></PyFunc>
-      <PyFunc><![CDATA[    return x, y, nbIter, iter ]]></PyFunc>
-      <PyFunc><![CDATA[?]]></PyFunc>
-     </PyFunction>
-     <PyFunction>
-      <FuncName>MoreLoop</FuncName>
-      <PyFunc><![CDATA[def MoreLoop( x, y, nbIter, iter ): ]]></PyFunc>
-      <PyFunc><![CDATA[    loop = 0 ]]></PyFunc>
-      <PyFunc><![CDATA[    if iter < nbIter: loop = 1 ]]></PyFunc>
-      <PyFunc><![CDATA[    return loop, x, y, nbIter, iter ]]></PyFunc>
-      <PyFunc><![CDATA[?]]></PyFunc>
-     </PyFunction>
-     <PyFunction>
-      <FuncName>NextLoop</FuncName>
-      <PyFunc><![CDATA[def NextLoop( x, y, nbIter, iter ): ]]></PyFunc>
-      <PyFunc><![CDATA[    iter = iter + 1 ]]></PyFunc>
-      <PyFunc><![CDATA[    return x, y, nbIter, iter ]]></PyFunc>
-      <PyFunc><![CDATA[?]]></PyFunc>
-     </PyFunction>
-    </PyFunction-list>
-    <creation-date>5/9/2005 - 17:48:48</creation-date>
-    <lastmodification-date>5/9/2005 - 17:48:48</lastmodification-date>
-    <editor-release>2.0</editor-release>
-    <author>?</author>
-    <container>?</container>
-    <comment>Compute Node</comment>
-    <x-position>432</x-position>
-    <y-position>47</y-position>
-   </node>
-   <node>
-    <component-name>?</component-name>
-    <interface-name>?</interface-name>
-    <node-name>EndLoop</node-name>
-    <kind>5</kind>
-    <coupled-node>Loop</coupled-node>
-    <service>
-     <service-name>EndLoop</service-name>
-     <inParameter-list>
-      <inParameter>
-       <inParameter-type>double</inParameter-type>
-       <inParameter-name>x</inParameter-name>
-      </inParameter>
-      <inParameter>
-       <inParameter-type>double</inParameter-type>
-       <inParameter-name>y</inParameter-name>
-      </inParameter>
-      <inParameter>
-       <inParameter-type>long</inParameter-type>
-       <inParameter-name>nbIter</inParameter-name>
-      </inParameter>
-      <inParameter>
-       <inParameter-type>long</inParameter-type>
-       <inParameter-name>iter</inParameter-name>
-      </inParameter>
-     </inParameter-list>
-     <outParameter-list>
-      <outParameter>
-       <outParameter-type>double</outParameter-type>
-       <outParameter-name>x</outParameter-name>
-      </outParameter>
-      <outParameter>
-       <outParameter-type>double</outParameter-type>
-       <outParameter-name>y</outParameter-name>
-      </outParameter>
-      <outParameter>
-       <outParameter-type>long</outParameter-type>
-       <outParameter-name>nbIter</outParameter-name>
-      </outParameter>
-      <outParameter>
-       <outParameter-type>long</outParameter-type>
-       <outParameter-name>iter</outParameter-name>
-      </outParameter>
-     </outParameter-list>
-    </service>
-    <DataStream-list/>
-    <PyFunction-list>
-     <PyFunction>
-      <FuncName>EndLoop</FuncName>
-      <PyFunc><![CDATA[?]]></PyFunc>
-     </PyFunction>
-    </PyFunction-list>
-    <creation-date>5/9/2005 - 17:48:48</creation-date>
-    <lastmodification-date>5/9/2005 - 17:48:48</lastmodification-date>
-    <editor-release>2.0</editor-release>
-    <author>?</author>
-    <container>?</container>
-    <comment>Compute Node</comment>
-    <x-position>1015</x-position>
-    <y-position>47</y-position>
-   </node>
-   <node>
-    <component-name>SIERPINSKY</component-name>
-    <interface-name>SIERPINSKY</interface-name>
-    <node-name>ExportToMED</node-name>
-    <kind>0</kind>
-    <coupled-node>?</coupled-node>
-    <service>
-     <service-name>ExportToMED</service-name>
-     <inParameter-list>
-      <inParameter>
-       <inParameter-type>string</inParameter-type>
-       <inParameter-name>fileName</inParameter-name>
-      </inParameter>
-      <inParameter>
-       <inParameter-type>double</inParameter-type>
-       <inParameter-name>size</inParameter-name>
-      </inParameter>
-     </inParameter-list>
-     <outParameter-list>
-      <outParameter>
-       <outParameter-type>boolean</outParameter-type>
-       <outParameter-name>return</outParameter-name>
-      </outParameter>
-     </outParameter-list>
-    </service>
-    <DataStream-list/>
-    <PyFunction-list/>
-    <creation-date>5/9/2005 - 17:48:48</creation-date>
-    <lastmodification-date>5/9/2005 - 17:48:48</lastmodification-date>
-    <editor-release>2.0</editor-release>
-    <author>?</author>
-    <container>localhost/FactoryServer</container>
-    <comment>ExportToMED from SIERPINSKY</comment>
-    <x-position>474</x-position>
-    <y-position>484</y-position>
-   </node>
-   <node>
-    <component-name>?</component-name>
-    <interface-name>?</interface-name>
-    <node-name>ImportToVISU</node-name>
-    <kind>3</kind>
-    <coupled-node>?</coupled-node>
-    <service>
-     <service-name>ImportToVISU</service-name>
-     <inParameter-list>
-      <inParameter>
-       <inParameter-type>string</inParameter-type>
-       <inParameter-name>fileName</inParameter-name>
-      </inParameter>
-     </inParameter-list>
-     <outParameter-list/>
-    </service>
-    <DataStream-list/>
-    <PyFunction-list>
-     <PyFunction>
-      <FuncName>ImportToVISU</FuncName>
-      <PyFunc><![CDATA[def ImportToVISU( fileName ):           ]]></PyFunc>
-      <PyFunc><![CDATA[  import CORBA          ]]></PyFunc>
-      <PyFunc><![CDATA[  import SALOME_NamingServicePy          ]]></PyFunc>
-      <PyFunc><![CDATA[  import LifeCycleCORBA          ]]></PyFunc>
-      <PyFunc><![CDATA[  import SALOME ]]></PyFunc>
-      <PyFunc><![CDATA[  import SALOME_Session_idl          ]]></PyFunc>
-      <PyFunc><![CDATA[  import SALOMEDS          ]]></PyFunc>
-      <PyFunc><![CDATA[  import VISU        ]]></PyFunc>
-      <PyFunc><![CDATA[  orb = CORBA.ORB_init( [], CORBA.ORB_ID )          ]]></PyFunc>
-      <PyFunc><![CDATA[  naming_service = SALOME_NamingServicePy.SALOME_NamingServicePy_i( orb )          ]]></PyFunc>
-      <PyFunc><![CDATA[  lcc = LifeCycleCORBA.LifeCycleCORBA( orb )          ]]></PyFunc>
-      <PyFunc><![CDATA[  studyManager = naming_service.Resolve( "myStudyManager" )._narrow( SALOMEDS.StudyManager )          ]]></PyFunc>
-      <PyFunc><![CDATA[  session = naming_service.Resolve( "/Kernel/Session" )._narrow( SALOME.Session )          ]]></PyFunc>
-      <PyFunc><![CDATA[  studyId = session.GetActiveStudyId()          ]]></PyFunc>
-      <PyFunc><![CDATA[  study = studyManager.GetStudyByID( studyId )          ]]></PyFunc>
-      <PyFunc><![CDATA[  aVisu = lcc.FindOrLoadComponent( "FactoryServer", "VISU" )          ]]></PyFunc>
-      <PyFunc><![CDATA[  aVisu.SetCurrentStudy( study )                ]]></PyFunc>
-      <PyFunc><![CDATA[  aResult = aVisu.ImportFile( fileName );          ]]></PyFunc>
-      <PyFunc><![CDATA[  aMesh = aVisu.MeshOnEntity( aResult, "Sierpinsky", VISU.NODE )          ]]></PyFunc>
-      <PyFunc><![CDATA[  aViewManager = aVisu.GetViewManager()                                                            ]]></PyFunc>
-      <PyFunc><![CDATA[  View3d = aViewManager.Create3DView()                                                           ]]></PyFunc>
-      <PyFunc><![CDATA[  View3d.Restore()                       ]]></PyFunc>
-      <PyFunc><![CDATA[  View3d.SetRelativePosition( 0.5, 0.5 )                       ]]></PyFunc>
-      <PyFunc><![CDATA[  View3d.SetRelativeSize( 0.5, 0.5 )                       ]]></PyFunc>
-      <PyFunc><![CDATA[  View3d.ShowPart( VISU.View.OBJECTBROWSER, 0 )                      ]]></PyFunc>
-      <PyFunc><![CDATA[  View3d.ShowPart( VISU.View.PYTHON, 0 )                      ]]></PyFunc>
-      <PyFunc><![CDATA[  View3d.ShowPart( VISU.View.MESSAGES, 0 )                      ]]></PyFunc>
-      <PyFunc><![CDATA[  View3d.DisplayOnly( aMesh )                                                                                    ]]></PyFunc>
-      <PyFunc><![CDATA[  View3d.SetView( VISU.View3D.TOP )   ]]></PyFunc>
-      <PyFunc><![CDATA[  View3d.FitAll()                                                                                    ]]></PyFunc>
-      <PyFunc><![CDATA[  return          ]]></PyFunc>
-      <PyFunc><![CDATA[?]]></PyFunc>
-     </PyFunction>
-    </PyFunction-list>
-    <creation-date>5/9/2005 - 17:48:48</creation-date>
-    <lastmodification-date>5/9/2005 - 17:48:48</lastmodification-date>
-    <editor-release>2.0</editor-release>
-    <author>?</author>
-    <container>?</container>
-    <comment>Compute Node</comment>
-    <x-position>861</x-position>
-    <y-position>460</y-position>
-   </node>
-   <node>
-    <component-name>?</component-name>
-    <interface-name>?</interface-name>
-    <node-name>CheckMedFile</node-name>
-    <kind>6</kind>
-    <coupled-node>EndOfCheckMedFile</coupled-node>
-    <service>
-     <service-name>CheckMedFile</service-name>
-     <inParameter-list>
-      <inParameter>
-       <inParameter-type>long</inParameter-type>
-       <inParameter-name>ok</inParameter-name>
-      </inParameter>
-     </inParameter-list>
-     <outParameter-list>
-      <outParameter>
-       <outParameter-type>long</outParameter-type>
-       <outParameter-name>ok</outParameter-name>
-      </outParameter>
-      <outParameter>
-       <outParameter-type>long</outParameter-type>
-       <outParameter-name>ko</outParameter-name>
-      </outParameter>
-     </outParameter-list>
-    </service>
-    <DataStream-list/>
-    <PyFunction-list>
-     <PyFunction>
-      <FuncName>CheckMedFile</FuncName>
-      <PyFunc><![CDATA[def CheckMedFile( ok ):   ]]></PyFunc>
-      <PyFunc><![CDATA[    return ok, not ok   ]]></PyFunc>
-      <PyFunc><![CDATA[?]]></PyFunc>
-     </PyFunction>
-    </PyFunction-list>
-    <creation-date>5/9/2005 - 17:48:48</creation-date>
-    <lastmodification-date>5/9/2005 - 17:48:48</lastmodification-date>
-    <editor-release>2.0</editor-release>
-    <author>?</author>
-    <container>?</container>
-    <comment>Compute Node</comment>
-    <x-position>662</x-position>
-    <y-position>524</y-position>
-   </node>
-   <node>
-    <component-name>?</component-name>
-    <interface-name>?</interface-name>
-    <node-name>EndOfCheckMedFile</node-name>
-    <kind>7</kind>
-    <coupled-node>CheckMedFile</coupled-node>
-    <service>
-     <service-name>EndOfCheckMedFile</service-name>
-     <inParameter-list/>
-     <outParameter-list/>
-    </service>
-    <DataStream-list/>
-    <PyFunction-list>
-     <PyFunction>
-      <FuncName>EndImportToVISU</FuncName>
-      <PyFunc><![CDATA[?]]></PyFunc>
-     </PyFunction>
-    </PyFunction-list>
-    <creation-date>5/9/2005 - 17:48:48</creation-date>
-    <lastmodification-date>5/9/2005 - 17:48:48</lastmodification-date>
-    <editor-release>2.0</editor-release>
-    <author>?</author>
-    <container>?</container>
-    <comment>Compute Node</comment>
-    <x-position>1054</x-position>
-    <y-position>520</y-position>
-   </node>
-   <node>
-    <component-name>SIERPINSKY</component-name>
-    <interface-name>SIERPINSKY</interface-name>
-    <node-name>Init</node-name>
-    <kind>0</kind>
-    <coupled-node>?</coupled-node>
-    <service>
-     <service-name>Init</service-name>
-     <inParameter-list>
-      <inParameter>
-       <inParameter-type>double</inParameter-type>
-       <inParameter-name>X1</inParameter-name>
-      </inParameter>
-      <inParameter>
-       <inParameter-type>double</inParameter-type>
-       <inParameter-name>Y1</inParameter-name>
-      </inParameter>
-      <inParameter>
-       <inParameter-type>double</inParameter-type>
-       <inParameter-name>X2</inParameter-name>
-      </inParameter>
-      <inParameter>
-       <inParameter-type>double</inParameter-type>
-       <inParameter-name>Y2</inParameter-name>
-      </inParameter>
-      <inParameter>
-       <inParameter-type>double</inParameter-type>
-       <inParameter-name>X3</inParameter-name>
-      </inParameter>
-      <inParameter>
-       <inParameter-type>double</inParameter-type>
-       <inParameter-name>Y3</inParameter-name>
-      </inParameter>
-     </inParameter-list>
-     <outParameter-list/>
-    </service>
-    <DataStream-list/>
-    <PyFunction-list/>
-    <creation-date>5/9/2005 - 17:48:48</creation-date>
-    <lastmodification-date>5/9/2005 - 17:48:48</lastmodification-date>
-    <editor-release>2.0</editor-release>
-    <author>?</author>
-    <container>localhost/FactoryServer</container>
-    <comment>Init from SIERPINSKY</comment>
-    <x-position>234</x-position>
-    <y-position>185</y-position>
-   </node>
-   <node>
-    <component-name>RANDOMIZER</component-name>
-    <interface-name>RANDOMIZER</interface-name>
-    <node-name>InitPoint_1</node-name>
-    <kind>0</kind>
-    <coupled-node>?</coupled-node>
-    <service>
-     <service-name>InitPoint</service-name>
-     <inParameter-list/>
-     <outParameter-list>
-      <outParameter>
-       <outParameter-type>double</outParameter-type>
-       <outParameter-name>theX</outParameter-name>
-      </outParameter>
-      <outParameter>
-       <outParameter-type>double</outParameter-type>
-       <outParameter-name>theY</outParameter-name>
-      </outParameter>
-     </outParameter-list>
-    </service>
-    <DataStream-list/>
-    <PyFunction-list/>
-    <creation-date>5/9/2005 - 17:48:48</creation-date>
-    <lastmodification-date>5/9/2005 - 17:48:48</lastmodification-date>
-    <editor-release>2.0</editor-release>
-    <author>?</author>
-    <container>FactoryServerPy</container>
-    <comment>InitPoint from RANDOMIZER</comment>
-    <x-position>20</x-position>
-    <y-position>185</y-position>
-   </node>
-   <node>
-    <component-name>RANDOMIZER</component-name>
-    <interface-name>RANDOMIZER</interface-name>
-    <node-name>InitPoint_2</node-name>
-    <kind>0</kind>
-    <coupled-node>?</coupled-node>
-    <service>
-     <service-name>InitPoint</service-name>
-     <inParameter-list/>
-     <outParameter-list>
-      <outParameter>
-       <outParameter-type>double</outParameter-type>
-       <outParameter-name>theX</outParameter-name>
-      </outParameter>
-      <outParameter>
-       <outParameter-type>double</outParameter-type>
-       <outParameter-name>theY</outParameter-name>
-      </outParameter>
-     </outParameter-list>
-    </service>
-    <DataStream-list/>
-    <PyFunction-list/>
-    <creation-date>5/9/2005 - 17:48:48</creation-date>
-    <lastmodification-date>5/9/2005 - 17:48:48</lastmodification-date>
-    <editor-release>2.0</editor-release>
-    <author>?</author>
-    <container>FactoryServerPy</container>
-    <comment>InitPoint from RANDOMIZER</comment>
-    <x-position>20</x-position>
-    <y-position>317</y-position>
-   </node>
-   <node>
-    <component-name>RANDOMIZER</component-name>
-    <interface-name>RANDOMIZER</interface-name>
-    <node-name>InitPoint_3</node-name>
-    <kind>0</kind>
-    <coupled-node>?</coupled-node>
-    <service>
-     <service-name>InitPoint</service-name>
-     <inParameter-list/>
-     <outParameter-list>
-      <outParameter>
-       <outParameter-type>double</outParameter-type>
-       <outParameter-name>theX</outParameter-name>
-      </outParameter>
-      <outParameter>
-       <outParameter-type>double</outParameter-type>
-       <outParameter-name>theY</outParameter-name>
-      </outParameter>
-     </outParameter-list>
-    </service>
-    <DataStream-list/>
-    <PyFunction-list/>
-    <creation-date>5/9/2005 - 17:48:48</creation-date>
-    <lastmodification-date>5/9/2005 - 17:48:48</lastmodification-date>
-    <editor-release>2.0</editor-release>
-    <author>?</author>
-    <container>FactoryServerPy</container>
-    <comment>InitPoint from RANDOMIZER</comment>
-    <x-position>20</x-position>
-    <y-position>448</y-position>
-   </node>
-   <node>
-    <component-name>?</component-name>
-    <interface-name>?</interface-name>
-    <node-name>getFileNames</node-name>
-    <kind>3</kind>
-    <coupled-node>?</coupled-node>
-    <service>
-     <service-name>getFileNames</service-name>
-     <inParameter-list>
-      <inParameter>
-       <inParameter-type>string</inParameter-type>
-       <inParameter-name>medFile</inParameter-name>
-      </inParameter>
-      <inParameter>
-       <inParameter-type>string</inParameter-type>
-       <inParameter-name>jpegFile</inParameter-name>
-      </inParameter>
-     </inParameter-list>
-     <outParameter-list>
-      <outParameter>
-       <outParameter-type>string</outParameter-type>
-       <outParameter-name>medFile</outParameter-name>
-      </outParameter>
-      <outParameter>
-       <outParameter-type>string</outParameter-type>
-       <outParameter-name>jpegFile</outParameter-name>
-      </outParameter>
-     </outParameter-list>
-    </service>
-    <DataStream-list/>
-    <PyFunction-list>
-     <PyFunction>
-      <FuncName>getMedFileName</FuncName>
-      <PyFunc><![CDATA[def getMedFileName( medFile, jpegFile ):   ]]></PyFunc>
-      <PyFunc><![CDATA[    return medFile, jpegFile  ]]></PyFunc>
-      <PyFunc><![CDATA[?]]></PyFunc>
-     </PyFunction>
-    </PyFunction-list>
-    <creation-date>5/9/2005 - 17:48:48</creation-date>
-    <lastmodification-date>5/9/2005 - 17:48:48</lastmodification-date>
-    <editor-release>2.0</editor-release>
-    <author>?</author>
-    <container>?</container>
-    <comment>Compute Node</comment>
-    <x-position>21</x-position>
-    <y-position>594</y-position>
-   </node>
-   <node>
-    <component-name>SIERPINSKY</component-name>
-    <interface-name>SIERPINSKY</interface-name>
-    <node-name>ExportToJPEG</node-name>
-    <kind>0</kind>
-    <coupled-node>?</coupled-node>
-    <service>
-     <service-name>ExportToJPEG</service-name>
-     <inParameter-list>
-      <inParameter>
-       <inParameter-type>string</inParameter-type>
-       <inParameter-name>fileName</inParameter-name>
-      </inParameter>
-      <inParameter>
-       <inParameter-type>long</inParameter-type>
-       <inParameter-name>size</inParameter-name>
-      </inParameter>
-     </inParameter-list>
-     <outParameter-list>
-      <outParameter>
-       <outParameter-type>boolean</outParameter-type>
-       <outParameter-name>return</outParameter-name>
-      </outParameter>
-     </outParameter-list>
-    </service>
-    <DataStream-list/>
-    <PyFunction-list/>
-    <creation-date>5/9/2005 - 17:48:48</creation-date>
-    <lastmodification-date>5/9/2005 - 17:48:48</lastmodification-date>
-    <editor-release>2.0</editor-release>
-    <author>?</author>
-    <container>localhost/FactoryServer</container>
-    <comment>ExportToJPEG from SIERPINSKY</comment>
-    <x-position>474</x-position>
-    <y-position>658</y-position>
-   </node>
-  </node-list>
-  <link-list>
-   <link>
-    <fromnode-name>InitPoint</fromnode-name>
-    <fromserviceparameter-name>theX</fromserviceparameter-name>
-    <tonode-name>Loop</tonode-name>
-    <toserviceparameter-name>x</toserviceparameter-name>
-    <coord-list/>
-   </link>
-   <link>
-    <fromnode-name>InitPoint</fromnode-name>
-    <fromserviceparameter-name>theY</fromserviceparameter-name>
-    <tonode-name>Loop</tonode-name>
-    <toserviceparameter-name>y</toserviceparameter-name>
-    <coord-list/>
-   </link>
-   <link>
-    <fromnode-name>NextIteration</fromnode-name>
-    <fromserviceparameter-name>return</fromserviceparameter-name>
-    <tonode-name>NextPoint</tonode-name>
-    <toserviceparameter-name>iter</toserviceparameter-name>
-    <coord-list>
-     <coord>
-      <x>807</x>
-      <y>118</y>
-     </coord>
-     <coord>
-      <x>807</x>
-      <y>278</y>
-     </coord>
-    </coord-list>
-   </link>
-   <link>
-    <fromnode-name>NextPoint</fromnode-name>
-    <fromserviceparameter-name>nextX</fromserviceparameter-name>
-    <tonode-name>EndLoop</tonode-name>
-    <toserviceparameter-name>x</toserviceparameter-name>
-    <coord-list/>
-   </link>
-   <link>
-    <fromnode-name>NextPoint</fromnode-name>
-    <fromserviceparameter-name>nextY</fromserviceparameter-name>
-    <tonode-name>EndLoop</tonode-name>
-    <toserviceparameter-name>y</toserviceparameter-name>
-    <coord-list/>
-   </link>
-   <link>
-    <fromnode-name>Loop</fromnode-name>
-    <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
-    <tonode-name>EndLoop</tonode-name>
-    <toserviceparameter-name>DoLoop</toserviceparameter-name>
-    <coord-list/>
-   </link>
-   <link>
-    <fromnode-name>Loop</fromnode-name>
-    <fromserviceparameter-name>x</fromserviceparameter-name>
-    <tonode-name>NextPoint</tonode-name>
-    <toserviceparameter-name>X</toserviceparameter-name>
-    <coord-list/>
-   </link>
-   <link>
-    <fromnode-name>Loop</fromnode-name>
-    <fromserviceparameter-name>y</fromserviceparameter-name>
-    <tonode-name>NextPoint</tonode-name>
-    <toserviceparameter-name>Y</toserviceparameter-name>
-    <coord-list/>
-   </link>
-   <link>
-    <fromnode-name>Loop</fromnode-name>
-    <fromserviceparameter-name>nbIter</fromserviceparameter-name>
-    <tonode-name>EndLoop</tonode-name>
-    <toserviceparameter-name>nbIter</toserviceparameter-name>
-    <coord-list/>
-   </link>
-   <link>
-    <fromnode-name>Loop</fromnode-name>
-    <fromserviceparameter-name>iter</fromserviceparameter-name>
-    <tonode-name>EndLoop</tonode-name>
-    <toserviceparameter-name>iter</toserviceparameter-name>
-    <coord-list/>
-   </link>
-   <link>
-    <fromnode-name>Loop</fromnode-name>
-    <fromserviceparameter-name>Gate</fromserviceparameter-name>
-    <tonode-name>NextIteration</tonode-name>
-    <toserviceparameter-name>Gate</toserviceparameter-name>
-    <coord-list>
-     <coord>
-      <x>615</x>
-      <y>302</y>
-     </coord>
-     <coord>
-      <x>615</x>
-      <y>162</y>
-     </coord>
-    </coord-list>
-   </link>
-   <link>
-    <fromnode-name>EndLoop</fromnode-name>
-    <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
-    <tonode-name>Loop</tonode-name>
-    <toserviceparameter-name>DoLoop</toserviceparameter-name>
-    <coord-list/>
-   </link>
-   <link>
-    <fromnode-name>EndLoop</fromnode-name>
-    <fromserviceparameter-name>Gate</fromserviceparameter-name>
-    <tonode-name>ExportToMED</tonode-name>
-    <toserviceparameter-name>Gate</toserviceparameter-name>
-    <coord-list>
-     <coord>
-      <x>457</x>
-      <y>599</y>
-     </coord>
-     <coord>
-      <x>457</x>
-      <y>377</y>
-     </coord>
-     <coord>
-      <x>1195</x>
-      <y>377</y>
-     </coord>
-     <coord>
-      <x>1195</x>
-      <y>162</y>
-     </coord>
-    </coord-list>
-   </link>
-   <link>
-    <fromnode-name>EndLoop</fromnode-name>
-    <fromserviceparameter-name>Gate</fromserviceparameter-name>
-    <tonode-name>ExportToJPEG</tonode-name>
-    <toserviceparameter-name>Gate</toserviceparameter-name>
-    <coord-list>
-     <coord>
-      <x>457</x>
-      <y>773</y>
-     </coord>
-     <coord>
-      <x>457</x>
-      <y>377</y>
-     </coord>
-     <coord>
-      <x>1195</x>
-      <y>377</y>
-     </coord>
-     <coord>
-      <x>1195</x>
-      <y>162</y>
-     </coord>
-    </coord-list>
-   </link>
-   <link>
-    <fromnode-name>ExportToMED</fromnode-name>
-    <fromserviceparameter-name>return</fromserviceparameter-name>
-    <tonode-name>CheckMedFile</tonode-name>
-    <toserviceparameter-name>ok</toserviceparameter-name>
-    <coord-list/>
-   </link>
-   <link>
-    <fromnode-name>ImportToVISU</fromnode-name>
-    <fromserviceparameter-name>Gate</fromserviceparameter-name>
-    <tonode-name>EndOfCheckMedFile</tonode-name>
-    <toserviceparameter-name>Default</toserviceparameter-name>
-    <coord-list/>
-   </link>
-   <link>
-    <fromnode-name>CheckMedFile</fromnode-name>
-    <fromserviceparameter-name>ok</fromserviceparameter-name>
-    <tonode-name>ImportToVISU</tonode-name>
-    <toserviceparameter-name>Gate</toserviceparameter-name>
-    <coord-list/>
-   </link>
-   <link>
-    <fromnode-name>Init</fromnode-name>
-    <fromserviceparameter-name>Gate</fromserviceparameter-name>
-    <tonode-name>Loop</tonode-name>
-    <toserviceparameter-name>Gate</toserviceparameter-name>
-    <coord-list>
-     <coord>
-      <x>412</x>
-      <y>162</y>
-     </coord>
-     <coord>
-      <x>412</x>
-      <y>380</y>
-     </coord>
-    </coord-list>
-   </link>
-   <link>
-    <fromnode-name>InitPoint_1</fromnode-name>
-    <fromserviceparameter-name>theX</fromserviceparameter-name>
-    <tonode-name>Init</tonode-name>
-    <toserviceparameter-name>X1</toserviceparameter-name>
-    <coord-list/>
-   </link>
-   <link>
-    <fromnode-name>InitPoint_1</fromnode-name>
-    <fromserviceparameter-name>theY</fromserviceparameter-name>
-    <tonode-name>Init</tonode-name>
-    <toserviceparameter-name>Y1</toserviceparameter-name>
-    <coord-list/>
-   </link>
-   <link>
-    <fromnode-name>InitPoint_2</fromnode-name>
-    <fromserviceparameter-name>theX</fromserviceparameter-name>
-    <tonode-name>Init</tonode-name>
-    <toserviceparameter-name>X2</toserviceparameter-name>
-    <coord-list>
-     <coord>
-      <x>198</x>
-      <y>296</y>
-     </coord>
-     <coord>
-      <x>198</x>
-      <y>388</y>
-     </coord>
-    </coord-list>
-   </link>
-   <link>
-    <fromnode-name>InitPoint_2</fromnode-name>
-    <fromserviceparameter-name>theY</fromserviceparameter-name>
-    <tonode-name>Init</tonode-name>
-    <toserviceparameter-name>Y2</toserviceparameter-name>
-    <coord-list>
-     <coord>
-      <x>204</x>
-      <y>316</y>
-     </coord>
-     <coord>
-      <x>204</x>
-      <y>408</y>
-     </coord>
-    </coord-list>
-   </link>
-   <link>
-    <fromnode-name>InitPoint_3</fromnode-name>
-    <fromserviceparameter-name>theX</fromserviceparameter-name>
-    <tonode-name>Init</tonode-name>
-    <toserviceparameter-name>X3</toserviceparameter-name>
-    <coord-list>
-     <coord>
-      <x>210</x>
-      <y>336</y>
-     </coord>
-     <coord>
-      <x>210</x>
-      <y>519</y>
-     </coord>
-    </coord-list>
-   </link>
-   <link>
-    <fromnode-name>InitPoint_3</fromnode-name>
-    <fromserviceparameter-name>theY</fromserviceparameter-name>
-    <tonode-name>Init</tonode-name>
-    <toserviceparameter-name>Y3</toserviceparameter-name>
-    <coord-list>
-     <coord>
-      <x>216</x>
-      <y>356</y>
-     </coord>
-     <coord>
-      <x>216</x>
-      <y>539</y>
-     </coord>
-    </coord-list>
-   </link>
-   <link>
-    <fromnode-name>getFileNames</fromnode-name>
-    <fromserviceparameter-name>medFile</fromserviceparameter-name>
-    <tonode-name>ExportToMED</tonode-name>
-    <toserviceparameter-name>fileName</toserviceparameter-name>
-    <coord-list>
-     <coord>
-      <x>355</x>
-      <y>555</y>
-     </coord>
-     <coord>
-      <x>355</x>
-      <y>665</y>
-     </coord>
-    </coord-list>
-   </link>
-   <link>
-    <fromnode-name>getFileNames</fromnode-name>
-    <fromserviceparameter-name>medFile</fromserviceparameter-name>
-    <tonode-name>ImportToVISU</tonode-name>
-    <toserviceparameter-name>fileName</toserviceparameter-name>
-    <coord-list>
-     <coord>
-      <x>842</x>
-      <y>531</y>
-     </coord>
-     <coord>
-      <x>842</x>
-      <y>430</y>
-     </coord>
-     <coord>
-      <x>355</x>
-      <y>430</y>
-     </coord>
-     <coord>
-      <x>355</x>
-      <y>665</y>
-     </coord>
-    </coord-list>
-   </link>
-   <link>
-    <fromnode-name>getFileNames</fromnode-name>
-    <fromserviceparameter-name>jpegFile</fromserviceparameter-name>
-    <tonode-name>ExportToJPEG</tonode-name>
-    <toserviceparameter-name>fileName</toserviceparameter-name>
-    <coord-list>
-     <coord>
-      <x>356</x>
-      <y>729</y>
-     </coord>
-     <coord>
-      <x>356</x>
-      <y>685</y>
-     </coord>
-    </coord-list>
-   </link>
-  </link-list>
-  <data-list>
-   <data>
-    <fromnode-name>aNewDataFlow_1</fromnode-name>
-    <fromserviceparameter-name>Loop__nbIter</fromserviceparameter-name>
-    <tonode-name>Loop</tonode-name>
-    <toserviceparameter-name>nbIter</toserviceparameter-name>
-    <data-value>
-     <value-type>3</value-type>
-     <value>500</value>
-    </data-value>
-    <coord-list/>
-   </data>
-   <data>
-    <fromnode-name>aNewDataFlow_1</fromnode-name>
-    <fromserviceparameter-name>Loop__iter</fromserviceparameter-name>
-    <tonode-name>Loop</tonode-name>
-    <toserviceparameter-name>iter</toserviceparameter-name>
-    <data-value>
-     <value-type>3</value-type>
-     <value>0</value>
-    </data-value>
-    <coord-list/>
-   </data>
-   <data>
-    <fromnode-name>aNewDataFlow_1</fromnode-name>
-    <fromserviceparameter-name>ExportToMED__size</fromserviceparameter-name>
-    <tonode-name>ExportToMED</tonode-name>
-    <toserviceparameter-name>size</toserviceparameter-name>
-    <data-value>
-     <value-type>7</value-type>
-     <value>100</value>
-    </data-value>
-    <coord-list/>
-   </data>
-   <data>
-    <fromnode-name>aNewDataFlow_1</fromnode-name>
-    <fromserviceparameter-name>getFileNames__medFile</fromserviceparameter-name>
-    <tonode-name>getFileNames</tonode-name>
-    <toserviceparameter-name>medFile</toserviceparameter-name>
-    <data-value>
-     <value-type>18</value-type>
-     <value>/tmp/sierpinsky_graph2.med</value>
-    </data-value>
-    <coord-list/>
-   </data>
-   <data>
-    <fromnode-name>aNewDataFlow_1</fromnode-name>
-    <fromserviceparameter-name>getFileNames__jpegFile</fromserviceparameter-name>
-    <tonode-name>getFileNames</tonode-name>
-    <toserviceparameter-name>jpegFile</toserviceparameter-name>
-    <data-value>
-     <value-type>18</value-type>
-     <value>/tmp/sierpinsky_graph2.jpg</value>
-    </data-value>
-    <coord-list/>
-   </data>
-   <data>
-    <fromnode-name>aNewDataFlow_1</fromnode-name>
-    <fromserviceparameter-name>ExportToJPEG__size</fromserviceparameter-name>
-    <tonode-name>ExportToJPEG</tonode-name>
-    <toserviceparameter-name>size</toserviceparameter-name>
-    <data-value>
-     <value-type>3</value-type>
-     <value>100</value>
-    </data-value>
-    <coord-list/>
-   </data>
-  </data-list>
- </dataflow>
-</supergraph>
-
diff --git a/resources/schema1.xml b/resources/schema1.xml
new file mode 100644 (file)
index 0000000..e6dfb34
--- /dev/null
@@ -0,0 +1,117 @@
+<?xml version='1.0' encoding='iso-8859-1' ?>
+<proc name="schema_1">
+   <property name="DefaultStudyID" value="6"/>
+   <type name="string" kind="string"/>
+   <struct name="Engines/dataref">
+      <member name="ref" type="string"/>
+   </struct>
+   <type name="bool" kind="bool"/>
+   <sequence name="boolvec" content="bool"/>
+   <type name="double" kind="double"/>
+   <sequence name="dblevec" content="double"/>
+   <objref name="file" id="file"/>
+   <type name="int" kind="int"/>
+   <sequence name="intvec" content="int"/>
+   <struct name="stringpair">
+      <member name="name" type="string"/>
+      <member name="value" type="string"/>
+   </struct>
+   <sequence name="propvec" content="stringpair"/>
+   <objref name="pyobj" id="python:obj:1.0"/>
+   <sequence name="seqbool" content="bool"/>
+   <sequence name="seqboolvec" content="boolvec"/>
+   <sequence name="seqdblevec" content="dblevec"/>
+   <sequence name="seqintvec" content="intvec"/>
+   <sequence name="stringvec" content="string"/>
+   <sequence name="seqstringvec" content="stringvec"/>
+   <container name="DefaultContainer">
+      <property name="container_name" value="FactoryServer"/>
+      <property name="name" value="localhost"/>
+   </container>
+   <container name="FactoryServer">
+      <property name="container_name" value="FactoryServer"/>
+      <property name="name" value="localhost"/>
+      <property name="type" value="multi"/>
+   </container>
+   <service name="InitPoint">
+      <component>RANDOMIZER</component>
+      <load container="FactoryServer"/>
+      <method>InitPoint</method>
+      <outport name="theX" type="double"/>
+      <outport name="theY" type="double"/>
+   </service>
+   <forloop name="ForLoop" nsteps="500">
+      <bloc name="Bloc">
+         <service name="NextIteration">
+            <node>InitPoint</node>
+            <method>NextIteration</method>
+            <outport name="return" type="int"/>
+         </service>
+         <service name="NextPoint">
+            <component>SIERPINSKY</component>
+            <load container="FactoryServer"/>
+            <method>NextPoint</method>
+            <inport name="X" type="double"/>
+            <inport name="Y" type="double"/>
+            <inport name="iter" type="int"/>
+            <outport name="nextX" type="double"/>
+            <outport name="nextY" type="double"/>
+         </service>
+         <control> <fromnode>NextIteration</fromnode> <tonode>NextPoint</tonode> </control>
+         <datalink control="false">
+            <fromnode>NextIteration</fromnode> <fromport>return</fromport>
+            <tonode>NextPoint</tonode> <toport>iter</toport>
+         </datalink>
+      </bloc>
+      <datalink control="false">
+         <fromnode>Bloc.NextPoint</fromnode> <fromport>nextX</fromport>
+         <tonode>Bloc.NextPoint</tonode> <toport>X</toport>
+      </datalink>
+      <datalink control="false">
+         <fromnode>Bloc.NextPoint</fromnode> <fromport>nextY</fromport>
+         <tonode>Bloc.NextPoint</tonode> <toport>Y</toport>
+      </datalink>
+   </forloop>
+   <service name="ExportToJPEG">
+      <node>ForLoop.Bloc.NextPoint</node>
+      <method>ExportToJPEG</method>
+      <inport name="fileName" type="string"/>
+      <inport name="size" type="int"/>
+      <outport name="return" type="bool"/>
+   </service>
+   <service name="Reset">
+      <node>ForLoop.Bloc.NextPoint</node>
+      <method>Reset</method>
+   </service>
+   <control> <fromnode>InitPoint</fromnode> <tonode>ForLoop</tonode> </control>
+   <control> <fromnode>ForLoop</fromnode> <tonode>ExportToJPEG</tonode> </control>
+   <control> <fromnode>Reset</fromnode> <tonode>ForLoop</tonode> </control>
+   <datalink control="false">
+      <fromnode>InitPoint</fromnode> <fromport>theX</fromport>
+      <tonode>ForLoop.Bloc.NextPoint</tonode> <toport>X</toport>
+   </datalink>
+   <datalink control="false">
+      <fromnode>InitPoint</fromnode> <fromport>theY</fromport>
+      <tonode>ForLoop.Bloc.NextPoint</tonode> <toport>Y</toport>
+   </datalink>
+   <parameter>
+      <tonode>ExportToJPEG</tonode><toport>fileName</toport>
+      <value><string>/tmp/sierpinsky_schema1.jpg</string></value>
+   </parameter>
+   <parameter>
+      <tonode>ExportToJPEG</tonode><toport>size</toport>
+      <value><int>200</int></value>
+   </parameter>
+   <parameter>
+      <tonode>ForLoop</tonode><toport>nsteps</toport>
+      <value><int>500</int></value>
+   </parameter>
+   <presentation name="ExportToJPEG" x="599.75" y="98.75" width="158" height="90" expanded="1" expx="599.75" expy="98.75" expWidth="158" expHeight="90" shownState="0"/>
+   <presentation name="Reset" x="1.75" y="44.75" width="158" height="36" expanded="1" expx="1.75" expy="44.75" expWidth="158" expHeight="36" shownState="0"/>
+   <presentation name="ForLoop" x="195.875" y="34.125" width="367.75" height="219.25" expanded="1" expx="195.875" expy="34.125" expWidth="367.75" expHeight="219.25" shownState="0"/>
+   <presentation name="InitPoint" x="1.75" y="98.75" width="158" height="90" expanded="1" expx="1.75" expy="98.75" expWidth="158" expHeight="90" shownState="0"/>
+   <presentation name="ForLoop.Bloc.NextPoint" x="195.75" y="33.25" width="158" height="117" expanded="1" expx="195.75" expy="33.25" expWidth="158" expHeight="117" shownState="0"/>
+   <presentation name="ForLoop.Bloc" x="6" y="61" width="357.75" height="154.25" expanded="1" expx="6" expy="61" expWidth="357.75" expHeight="154.25" shownState="0"/>
+   <presentation name="ForLoop.Bloc.NextIteration" x="1.75" y="60.25" width="158" height="63" expanded="1" expx="1.75" expy="60.25" expWidth="158" expHeight="63" shownState="0"/>
+   <presentation name="__ROOT__" x="0" y="0" width="761.75" height="257.375" expanded="1" expx="0" expy="0" expWidth="761.75" expHeight="257.375" shownState="0"/>
+</proc>
diff --git a/resources/schema2.xml b/resources/schema2.xml
new file mode 100644 (file)
index 0000000..6298a99
--- /dev/null
@@ -0,0 +1,251 @@
+<?xml version='1.0' encoding='iso-8859-1' ?>
+<proc name="schema_2">
+   <property name="DefaultStudyID" value="6"/>
+   <type name="string" kind="string"/>
+   <struct name="Engines/dataref">
+      <member name="ref" type="string"/>
+   </struct>
+   <objref name="GEOM_Shape" id="IDL:GEOM/GEOM_Object:1.0"/>
+   <objref name="SALOME_MED/MED" id="IDL:SALOME_MED/MED:1.0"/>
+   <type name="bool" kind="bool"/>
+   <sequence name="boolvec" content="bool"/>
+   <type name="double" kind="double"/>
+   <sequence name="dblevec" content="double"/>
+   <objref name="file" id="file"/>
+   <type name="int" kind="int"/>
+   <sequence name="intvec" content="int"/>
+   <struct name="stringpair">
+      <member name="name" type="string"/>
+      <member name="value" type="string"/>
+   </struct>
+   <sequence name="propvec" content="stringpair"/>
+   <objref name="pyobj" id="python:obj:1.0"/>
+   <sequence name="seqbool" content="bool"/>
+   <sequence name="seqboolvec" content="boolvec"/>
+   <sequence name="seqdblevec" content="dblevec"/>
+   <sequence name="seqintvec" content="intvec"/>
+   <sequence name="stringvec" content="string"/>
+   <sequence name="seqstringvec" content="stringvec"/>
+   <container name="DefaultContainer">
+      <property name="container_name" value="FactoryServer"/>
+      <property name="name" value="localhost"/>
+   </container>
+   <container name="FactoryServer">
+      <property name="container_name" value="FactoryServer"/>
+      <property name="name" value="localhost"/>
+   </container>
+   <service name="InitPoint">
+      <component>RANDOMIZER</component>
+      <load container="FactoryServer"/>
+      <method>InitPoint</method>
+      <outport name="theX" type="double"/>
+      <outport name="theY" type="double"/>
+   </service>
+   <forloop name="ForLoop" nsteps="500">
+      <bloc name="Bloc">
+         <service name="NextIteration">
+            <node>InitPoint</node>
+            <method>NextIteration</method>
+            <outport name="return" type="int"/>
+         </service>
+         <service name="NextPoint">
+            <component>SIERPINSKY</component>
+            <load container="FactoryServer"/>
+            <method>NextPoint</method>
+            <inport name="X" type="double"/>
+            <inport name="Y" type="double"/>
+            <inport name="iter" type="int"/>
+            <outport name="nextX" type="double"/>
+            <outport name="nextY" type="double"/>
+         </service>
+         <control> <fromnode>NextIteration</fromnode> <tonode>NextPoint</tonode> </control>
+         <datalink control="false">
+            <fromnode>NextIteration</fromnode> <fromport>return</fromport>
+            <tonode>NextPoint</tonode> <toport>iter</toport>
+         </datalink>
+      </bloc>
+      <datalink control="false">
+         <fromnode>Bloc.NextPoint</fromnode> <fromport>nextX</fromport>
+         <tonode>Bloc.NextPoint</tonode> <toport>X</toport>
+      </datalink>
+      <datalink control="false">
+         <fromnode>Bloc.NextPoint</fromnode> <fromport>nextY</fromport>
+         <tonode>Bloc.NextPoint</tonode> <toport>Y</toport>
+      </datalink>
+   </forloop>
+   <service name="Init">
+      <node>ForLoop.Bloc.NextPoint</node>
+      <method>Init</method>
+      <inport name="X1" type="double"/>
+      <inport name="Y1" type="double"/>
+      <inport name="X2" type="double"/>
+      <inport name="Y2" type="double"/>
+      <inport name="X3" type="double"/>
+      <inport name="Y3" type="double"/>
+   </service>
+   <service name="InitPoint_1">
+      <node>InitPoint</node>
+      <method>InitPoint</method>
+      <outport name="theX" type="double"/>
+      <outport name="theY" type="double"/>
+   </service>
+   <service name="InitPoint_2">
+      <node>InitPoint</node>
+      <method>InitPoint</method>
+      <outport name="theX" type="double"/>
+      <outport name="theY" type="double"/>
+   </service>
+   <service name="InitPoint_3">
+      <node>InitPoint</node>
+      <method>InitPoint</method>
+      <outport name="theX" type="double"/>
+      <outport name="theY" type="double"/>
+   </service>
+   <service name="ExportToMED">
+      <node>ForLoop.Bloc.NextPoint</node>
+      <method>ExportToMED</method>
+      <inport name="fileName" type="string"/>
+      <inport name="size" type="double"/>
+      <outport name="return" type="bool"/>
+   </service>
+   <service name="ExportToJPEG">
+      <node>ForLoop.Bloc.NextPoint</node>
+      <method>ExportToJPEG</method>
+      <inport name="fileName" type="string"/>
+      <inport name="size" type="int"/>
+      <outport name="return" type="bool"/>
+   </service>
+   <inline name="ImportToVISU">
+      <function name="ImportToVISU">
+         <code><![CDATA[def ImportToVISU( fileName, isFile ):           
+  if ( not isFile ):
+      return False
+  import CORBA          
+  import SALOME_NamingServicePy          
+  import LifeCycleCORBA          
+  import SALOME 
+  import SALOME_Session_idl          
+  import SALOMEDS          
+  import VISU        
+  orb = CORBA.ORB_init( [], CORBA.ORB_ID )          
+  naming_service = SALOME_NamingServicePy.SALOME_NamingServicePy_i( orb )          
+  lcc = LifeCycleCORBA.LifeCycleCORBA( orb )          
+  studyManager = naming_service.Resolve( "myStudyManager" )._narrow( SALOMEDS.StudyManager )          
+  session = naming_service.Resolve( "/Kernel/Session" )._narrow( SALOME.Session )          
+  studyId = session.GetActiveStudyId()          
+  study = studyManager.GetStudyByID( studyId )          
+  aVisu = lcc.FindOrLoadComponent( "FactoryServer", "VISU" )          
+  aVisu.SetCurrentStudy( study )                
+  aResult = aVisu.ImportFile( fileName );          
+  aMesh = aVisu.MeshOnEntity( aResult, "Sierpinsky", VISU.NODE )          
+  aViewManager = aVisu.GetViewManager()                                                            
+  View3d = aViewManager.Create3DView()                                                           
+  View3d.Restore()                       
+  View3d.SetRelativePosition( 0.5, 0.5 )                       
+  View3d.SetRelativeSize( 0.5, 0.5 )                       
+  View3d.ShowPart( VISU.View.OBJECTBROWSER, 0 )                      
+  View3d.ShowPart( VISU.View.PYTHON, 0 )                      
+  View3d.ShowPart( VISU.View.MESSAGES, 0 )                      
+  View3d.DisplayOnly( aMesh )                                                                                    
+  View3d.SetView( VISU.View3D.TOP )   
+  View3d.FitAll()                                                                                    
+  return True
+]]></code>
+      </function>
+      <inport name="fileName" type="string"/>
+      <inport name="isFile" type="bool"/>
+      <outport name="return" type="bool"/>
+   </inline>
+   <datanode name="getFileNames">
+      <parameter name="medFile" type="string">
+         <value><string>/tmp/sierpinsky_schema2.med</string></value>
+      </parameter>
+      <parameter name="jpegFile" type="string">
+         <value><string>/tmp/sierpinsky_schema2.jpg</string></value>
+      </parameter>
+   </datanode>
+   <control> <fromnode>InitPoint</fromnode> <tonode>ForLoop</tonode> </control>
+   <control> <fromnode>ForLoop</fromnode> <tonode>ExportToMED</tonode> </control>
+   <control> <fromnode>ForLoop</fromnode> <tonode>ExportToJPEG</tonode> </control>
+   <control> <fromnode>Init</fromnode> <tonode>ForLoop</tonode> </control>
+   <control> <fromnode>InitPoint_1</fromnode> <tonode>Init</tonode> </control>
+   <control> <fromnode>InitPoint_2</fromnode> <tonode>Init</tonode> </control>
+   <control> <fromnode>InitPoint_3</fromnode> <tonode>Init</tonode> </control>
+   <control> <fromnode>ExportToMED</fromnode> <tonode>ImportToVISU</tonode> </control>
+   <control> <fromnode>getFileNames</fromnode> <tonode>ExportToMED</tonode> </control>
+   <control> <fromnode>getFileNames</fromnode> <tonode>ExportToJPEG</tonode> </control>
+   <datalink control="false">
+      <fromnode>InitPoint</fromnode> <fromport>theX</fromport>
+      <tonode>ForLoop.Bloc.NextPoint</tonode> <toport>X</toport>
+   </datalink>
+   <datalink control="false">
+      <fromnode>InitPoint</fromnode> <fromport>theY</fromport>
+      <tonode>ForLoop.Bloc.NextPoint</tonode> <toport>Y</toport>
+   </datalink>
+   <datalink control="false">
+      <fromnode>InitPoint_1</fromnode> <fromport>theX</fromport>
+      <tonode>Init</tonode> <toport>X1</toport>
+   </datalink>
+   <datalink control="false">
+      <fromnode>InitPoint_1</fromnode> <fromport>theY</fromport>
+      <tonode>Init</tonode> <toport>Y1</toport>
+   </datalink>
+   <datalink control="false">
+      <fromnode>InitPoint_2</fromnode> <fromport>theX</fromport>
+      <tonode>Init</tonode> <toport>X2</toport>
+   </datalink>
+   <datalink control="false">
+      <fromnode>InitPoint_2</fromnode> <fromport>theY</fromport>
+      <tonode>Init</tonode> <toport>Y2</toport>
+   </datalink>
+   <datalink control="false">
+      <fromnode>InitPoint_3</fromnode> <fromport>theX</fromport>
+      <tonode>Init</tonode> <toport>X3</toport>
+   </datalink>
+   <datalink control="false">
+      <fromnode>InitPoint_3</fromnode> <fromport>theY</fromport>
+      <tonode>Init</tonode> <toport>Y3</toport>
+   </datalink>
+   <datalink control="false">
+      <fromnode>ExportToMED</fromnode> <fromport>return</fromport>
+      <tonode>ImportToVISU</tonode> <toport>isFile</toport>
+   </datalink>
+   <datalink control="false">
+      <fromnode>getFileNames</fromnode> <fromport>medFile</fromport>
+      <tonode>ImportToVISU</tonode> <toport>fileName</toport>
+   </datalink>
+   <datalink control="false">
+      <fromnode>getFileNames</fromnode> <fromport>medFile</fromport>
+      <tonode>ExportToMED</tonode> <toport>fileName</toport>
+   </datalink>
+   <datalink control="false">
+      <fromnode>getFileNames</fromnode> <fromport>jpegFile</fromport>
+      <tonode>ExportToJPEG</tonode> <toport>fileName</toport>
+   </datalink>
+   <parameter>
+      <tonode>ForLoop</tonode><toport>nsteps</toport>
+      <value><int>500</int></value>
+   </parameter>
+   <parameter>
+      <tonode>ExportToMED</tonode><toport>size</toport>
+      <value><double>100</double></value>
+   </parameter>
+   <parameter>
+      <tonode>ExportToJPEG</tonode><toport>size</toport>
+      <value><int>100</int></value>
+   </parameter>
+   <presentation name="ImportToVISU" x="987.75" y="530.75" width="158" height="90" expanded="1" expx="987.75" expy="530.75" expWidth="158" expHeight="90" shownState="0"/>
+   <presentation name="ForLoop" x="389.875" y="239.125" width="367.75" height="219.25" expanded="1" expx="389.875" expy="239.125" expWidth="367.75" expHeight="219.25" shownState="0"/>
+   <presentation name="ForLoop.Bloc" x="6" y="61" width="357.75" height="154.25" expanded="1" expx="6" expy="61" expWidth="357.75" expHeight="154.25" shownState="0"/>
+   <presentation name="ForLoop.Bloc.NextIteration" x="1.75" y="60.25" width="158" height="63" expanded="1" expx="1.75" expy="60.25" expWidth="158" expHeight="63" shownState="0"/>
+   <presentation name="Init" x="195.75" y="87.75" width="158" height="198" expanded="1" expx="195.75" expy="87.75" expWidth="158" expHeight="198" shownState="0"/>
+   <presentation name="InitPoint" x="194.75" y="303.75" width="158" height="90" expanded="1" expx="194.75" expy="303.75" expWidth="158" expHeight="90" shownState="0"/>
+   <presentation name="ForLoop.Bloc.NextPoint" x="195.75" y="33.25" width="158" height="117" expanded="1" expx="195.75" expy="33.25" expWidth="158" expHeight="117" shownState="0"/>
+   <presentation name="InitPoint_1" x="1.75" y="305.25" width="158" height="90" expanded="1" expx="1.75" expy="305.25" expWidth="158" expHeight="90" shownState="0"/>
+   <presentation name="InitPoint_2" x="1.75" y="214.75" width="158" height="90" expanded="1" expx="1.75" expy="214.75" expWidth="158" expHeight="90" shownState="0"/>
+   <presentation name="InitPoint_3" x="1.75" y="33.75" width="158" height="90" expanded="1" expx="1.75" expy="33.75" expWidth="158" expHeight="90" shownState="0"/>
+   <presentation name="getFileNames" x="494.75" y="530.75" width="158" height="90" expanded="1" expx="494.75" expy="530.75" expWidth="158" expHeight="90" shownState="0"/>
+   <presentation name="ExportToMED" x="793.75" y="530.75" width="158" height="90" expanded="1" expx="793.75" expy="530.75" expWidth="158" expHeight="90" shownState="0"/>
+   <presentation name="ExportToJPEG" x="793.75" y="422.75" width="158" height="90" expanded="1" expx="793.75" expy="422.75" expWidth="158" expHeight="90" shownState="0"/>
+   <presentation name="__ROOT__" x="0" y="0" width="1149.75" height="624.75" expanded="1" expx="0" expy="0" expWidth="1149.75" expHeight="624.75" shownState="0"/>
+</proc>