1 // Copyright (C) 2007-2020 CEA/DEN, EDF R&D, OPEN CASCADE
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 // File : SALOME_PACOExtension.idl
21 // Author : André RIBES, EDF
23 #ifndef _SALOME_PACOExtension_IDL_
24 #define _SALOME_PACOExtension_IDL_
26 /*! \file SALOME_PACOExtension.idl
27 \brief Interfaces for Parallel Component and Container using PaCO++
30 #include "SALOME_Component.idl"
31 #include "DSC_Engines.idl"
35 interface Parallel_Component : Engines::EngineComponent {
36 void send_parallel_proxy_object(in Object proxy_ref);
39 interface PACO_Container : Engines::Container {
40 // Replicated Method used by the proxy to create
42 void create_paco_component_node_instance(in string registeredName,
43 in string proxy_containerName) raises(SALOME::SALOME_Exception);
45 void updateInstanceNumber();
48 /*--------------------------------------------------------------------------------------------*/
50 /*! \brief Interface of a Parallel_DSC component.
51 This interface defines the operations needed to add a paco++ port
52 into a parallel DSC component.
54 interface Parallel_DSC : Engines::Superv_Component, Engines::Parallel_Component {
57 This operation gives the proxy node of a paco++ port to all the nodes.
58 Only a node of the parallel component is going to add a proxy object
59 with an internal method.
61 \param ref provides proxy port's reference.
62 \param provides_port_name provides port's name.
64 \see Engines_ParallelDSC_i::add_parallel_provides_proxy_port
66 void set_paco_proxy(in Object ref,
67 in string provides_port_name,
68 in Ports::PortProperties port_prop);
72 /*! \brief Interface of a Parallel_Salome_file
73 This interface is used by parallel components and containers.
74 It adds methods to enable to choose on which node of the parallel component the file has to
77 interface Parallel_Salome_file : Engines::Salome_file {
80 Set a number of node for the file. Default is the node 0.
82 \param file_name name of the file.
83 \param node_nbr node number where the file is.
85 \exception raised if the file doesn't exist.
87 void setFileNode(in string file_name, in long node_nbr) raises (SALOME::SALOME_Exception);
90 Get the number of the node that actually managed the file.
92 \param file_name name of managed file.
94 \return node number of the file
96 \exception raised if the file doesn't exist.
98 long getFileNode(in string file_name) raises (SALOME::SALOME_Exception);
101 This method update the state of file for the Parallel_Salome_file.
103 \param new_file the new state of file.
105 Engines::Container updateFile(in Engines::file new_file);
108 This method is used by the parallel implementation of recvFiles.
110 \exception raised if the file cannot be ok.
112 void recvFiles_node() raises (SALOME::SALOME_Exception);