1 // Copyright (C) 2007-2009 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.
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
22 // File : SALOME_PACOExtension.idl
23 // Author : André RIBES, EDF
26 #ifndef _SALOME_PACOExtension_IDL_
27 #define _SALOME_PACOExtension_IDL_
29 /*! \file SALOME_PACOExtension.idl
30 \brief Interfaces for Parallel Component and Container using PaCO++
33 #include "SALOME_Component.idl"
34 #include "DSC_Engines.idl"
38 interface Parallel_Component : Engines::Component {
39 void send_parallel_proxy_object(in Object proxy_ref);
42 interface PACO_Container : Engines::Container {
43 // Replicated Method used by the proxy to create
45 void create_paco_component_node_instance(in string registeredName,
46 in string proxy_containerName,
47 in long studyId) raises(SALOME::SALOME_Exception);
49 void updateInstanceNumber();
52 /*--------------------------------------------------------------------------------------------*/
54 /*! \brief Interface of a Parallel_DSC component.
55 This interface defines the operations needed to add a paco++ port
56 into a parallel DSC component.
58 interface Parallel_DSC : Engines::Superv_Component, Engines::Parallel_Component {
61 This operation gives the proxy node of a paco++ port to all the nodes.
62 Only a node of the parallel component is going to add a proxy object
63 with an internal method.
65 \param ref provides proxy port's reference.
66 \param provides_port_name provides port's name.
68 \see Engines_ParallelDSC_i::add_parallel_provides_proxy_port
70 void set_paco_proxy(in Object ref,
71 in string provides_port_name,
72 in Ports::PortProperties port_prop);
76 /*! \brief Interface of a Parallel_Salome_file
77 This interface is used by parallel components and containers.
78 It adds methods to enable to choose on which node of the parallel component the file has to
81 interface Parallel_Salome_file : Engines::Salome_file {
84 Set a number of node for the file. Default is the node 0.
86 \param file_name name of the file.
87 \param node_nbr node number where the file is.
89 \exception raised if the file doesn't exist.
91 void setFileNode(in string file_name, in long node_nbr) raises (SALOME::SALOME_Exception);
94 Get the number of the node that actually managed the file.
96 \param file_name name of managed file.
98 \return node number of the file
100 \exception raised if the file doesn't exist.
102 long getFileNode(in string file_name) raises (SALOME::SALOME_Exception);
105 This method update the state of file for the Parallel_Salome_file.
107 \param new_file the new state of file.
109 Engines::Container updateFile(in Engines::file new_file);
112 This method is used by the parallel implementation of recvFiles.
114 \exception raised if the file cannot be ok.
116 void recvFiles_node() raises (SALOME::SALOME_Exception);