X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=inline;f=doc%2Fschemapy.rst;h=ccd0ada8083a0424c8e4d7f986d496686abbbc9d;hb=77793cab4c390fe2b6f513a99d7a59ab2b75c00c;hp=3880dcf16000fdf1aab176a53bb9b2078e9dc6c6;hpb=09cbf696c05bcf689364417ad0f97a34ca938cdc;p=modules%2Fyacs.git diff --git a/doc/schemapy.rst b/doc/schemapy.rst index 3880dcf16..ccd0ada80 100644 --- a/doc/schemapy.rst +++ b/doc/schemapy.rst @@ -601,25 +601,6 @@ is defined by the class async in the python module myalgo2.py:: p.edAddLink(ol.getOutputPort("evalSamples"),n.getInputPort("p1")) p.edAddLink(n.getOutputPort("p1"),ol.getInputPort("evalResults")) -.. _py_container_creation: - -Creation of the three type of containers -'''''''''''''''''''''''''''''''''''''''' - -To create a mono YACS container simply invoke:: - - my_mono_cont=p.createContainer("MyMonoCont","Salome") - my_mono_cont.setProperty("type","mono") - -To create a multi YACS container simply invoke:: - - my_multi_cont=p.createContainer("MyMultiCont","Salome") - my_multi_cont.setProperty("type","multi") - -To create a HP YACS container simply invoke:: - - my_hp_cont=p.createContainer("MyHPCont","HPSalome") - .. _py_container: Definition of containers @@ -649,6 +630,16 @@ If it is required to place the SALOME service defined above (node “node3”) o n3.getComponent().setContainer(c1) +Since SALOME v7.5, there is a new type of container: +*Homogeneous Pool of SALOME containers* (HP container). +It is possible to create this type of container this way:: + + my_hp_cont=r.createContainer("MyHPCont","HPSalome") + +- "MyHPCont" : name of the container. Same result as my_hp_cont.setName("MyHPCont"). +- "HPSalome" : type of container. Possible values are "HPSalome" (for a HP container) + or "Salome" (for a classic container). + Node properties ''''''''''''''''''''''''''' A property is added to an elementary or composite node (or is modified) using its setProperty method that has two