Version: 6.5.0
ParallelDSC_i.hxx
1 // Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
2 //
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.
7 //
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.
12 //
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
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19 
20 // File : ParallelDSC_i.hxx
21 // Author : André RIBES (EDF)
22 // Module : KERNEL
23 //
24 #ifndef _PARALLEL_DSC_COMPONENT_I_HXX_
25 #define _PARALLEL_DSC_COMPONENT_I_HXX_
26 
27 #include <iostream>
28 #include <map>
29 
30 #include "DSC_interface.hxx"
31 #include "SALOME_ParallelComponent_i.hxx"
32 
33 #include "SALOME_PACOExtensionPaCO_Engines_Parallel_DSC_server.hxx"
34 #include "SALOME_PortsPaCO.hxx"
35 
37  public virtual Engines_Parallel_Component_i,
38  public virtual Engines::Parallel_DSC_serv,
39  public virtual Engines_DSC_interface
40 {
41 public:
42  Engines_ParallelDSC_i(CORBA::ORB_ptr orb,
43  char * ior,
44  int rank,
45  PortableServer::POA_ptr poa,
46  PortableServer::ObjectId * contId,
47  const char *instanceName,
48  const char *interfaceName,
49  bool notif = false);
50 
51  virtual ~Engines_ParallelDSC_i();
52 
53 
57  virtual void add_provides_port(Ports::Port_ptr ref,
58  const char* provides_port_name,
59  Ports::PortProperties_ptr port_prop)
64  provides_port_name,
65  port_prop);
66  }
67 
71  virtual void add_uses_port(const char* repository_id,
72  const char* uses_port_name,
73  Ports::PortProperties_ptr port_prop)
77  uses_port_name,
78  port_prop);
79  }
80 
84  virtual Ports::Port_ptr get_provides_port(const char* provides_port_name,
85  const CORBA::Boolean connection_error)
88  return Engines_DSC_interface::get_provides_port(provides_port_name,
89  connection_error);
90  }
91 
95  virtual Engines::DSC::uses_port * get_uses_port(const char* uses_port_name)
98  return Engines_DSC_interface::get_uses_port(uses_port_name);
99  }
100 
104  virtual void connect_provides_port(const char* provides_port_name)
107  }
108 
112  virtual void connect_uses_port(const char* uses_port_name,
113  Ports::Port_ptr provides_port_ref)
118  provides_port_ref);
119  }
120 
124  virtual CORBA::Boolean is_connected(const char* port_name)
126  return Engines_DSC_interface::is_connected(port_name);
127  }
128 
132  virtual void disconnect_provides_port(const char* provides_port_name,
133  const Engines::DSC::Message message)
137  message);
138  }
139 
143  virtual void disconnect_uses_port(const char* uses_port_name,
144  Ports::Port_ptr provides_port_ref,
145  const Engines::DSC::Message message)
150  provides_port_ref,
151  message);
152  }
153 
154  virtual Ports::PortProperties_ptr get_port_properties(const char* port_name)
157  }
158 
167  virtual void set_paco_proxy(CORBA::Object_ptr ref,
168  const char* provides_port_name,
169  Ports::PortProperties_ptr port_prop);
170 
179  virtual CORBA::Boolean add_parallel_provides_proxy_port(const CORBA::Object_ptr ref,
180  const char * provides_port_name,
181  Ports::PortProperties_ptr port_prop);
182 
190  virtual CORBA::Boolean add_parallel_provides_proxy_wait(const char * provides_port_name);
191 
200  virtual CORBA::Boolean add_parallel_provides_node_port(Ports::Port_PaCO_ptr ref,
201  const char* provides_port_name);
202 
210  virtual const char * get_proxy(const char* provides_port_name);
211 
212 };
213 
214 #endif
virtual CORBA::Boolean is_connected(const char *port_name)
Definition: ParallelDSC_i.hxx:124
virtual void disconnect_provides_port(const char *provides_port_name, const Engines::DSC::Message message)
Definition: DSC_interface.cxx:286
Port's reference is not the right reference.
Definition: DSC_Engines.idl:106
virtual Ports::Port_ptr get_provides_port(const char *provides_port_name, const CORBA::Boolean connection_error)
Definition: ParallelDSC_i.hxx:84
virtual Engines::DSC::uses_port * get_uses_port(const char *uses_port_name)
Definition: ParallelDSC_i.hxx:95
virtual CORBA::Boolean add_parallel_provides_proxy_port(const CORBA::Object_ptr ref, const char *provides_port_name, Ports::PortProperties_ptr port_prop)
Definition: ParallelDSC_i.cxx:80
virtual void add_uses_port(const char *repository_id, const char *uses_port_name, Ports::PortProperties_ptr port_prop)
Definition: DSC_interface.cxx:82
virtual CORBA::Boolean add_parallel_provides_proxy_wait(const char *provides_port_name)
Definition: ParallelDSC_i.cxx:94
virtual void add_uses_port(const char *repository_id, const char *uses_port_name, Ports::PortProperties_ptr port_prop)
Definition: ParallelDSC_i.hxx:71
virtual Ports::PortProperties_ptr get_port_properties(const char *port_name)
Definition: ParallelDSC_i.hxx:154
virtual Ports::PortProperties_ptr get_port_properties(const char *port_name)
Definition: DSC_interface.cxx:382
virtual void set_paco_proxy(CORBA::Object_ptr ref, const char *provides_port_name, Ports::PortProperties_ptr port_prop)
Definition: ParallelDSC_i.cxx:57
Port's reference is Nil !
Definition: DSC_Engines.idl:103
virtual void disconnect_provides_port(const char *provides_port_name, const Engines::DSC::Message message)
Definition: ParallelDSC_i.hxx:132
virtual void connect_uses_port(const char *uses_port_name, Ports::Port_ptr provides_port_ref)
Definition: ParallelDSC_i.hxx:112
virtual void add_provides_port(Ports::Port_ptr ref, const char *provides_port_name, Ports::PortProperties_ptr port_prop)
Definition: ParallelDSC_i.hxx:57
virtual CORBA::Boolean is_connected(const char *port_name)
Definition: DSC_interface.cxx:266
virtual void connect_provides_port(const char *provides_port_name)
Definition: DSC_interface.cxx:190
sequence< Ports::Port > uses_port
a uses port
Definition: DSC_Engines.idl:73
virtual Engines::DSC::uses_port * get_uses_port(const char *uses_port_name)
Definition: DSC_interface.cxx:150
virtual void disconnect_uses_port(const char *uses_port_name, Ports::Port_ptr provides_port_ref, const Engines::DSC::Message message)
Definition: ParallelDSC_i.hxx:143
This class implements the interface Engines::DSC.
Definition: DSC_interface.hxx:43
virtual void disconnect_uses_port(const char *uses_port_name, Ports::Port_ptr provides_port_ref, const Engines::DSC::Message message)
Definition: DSC_interface.cxx:313
This exception is raised when a port is used before it is added to the component. ...
Definition: DSC_Engines.idl:84
virtual Ports::Port_ptr get_provides_port(const char *provides_port_name, const CORBA::Boolean connection_error)
Definition: DSC_interface.cxx:114
virtual void connect_provides_port(const char *provides_port_name)
Definition: ParallelDSC_i.hxx:104
virtual void add_provides_port(Ports::Port_ptr ref, const char *provides_port_name, Ports::PortProperties_ptr port_prop)
Definition: DSC_interface.cxx:51
virtual const char * get_proxy(const char *provides_port_name)
Definition: ParallelDSC_i.cxx:70
Object property is not good for the port.
Definition: DSC_Engines.idl:109
Message
This enumeration is used when the connection of a port (uses or provides) is changed.
Definition: DSC_Engines.idl:79
This exception is raised when you try to use a port that is not connected.
Definition: DSC_Engines.idl:90
virtual CORBA::Boolean add_parallel_provides_node_port(Ports::Port_PaCO_ptr ref, const char *provides_port_name)
Definition: ParallelDSC_i.cxx:115
Definition: ParallelDSC_i.hxx:36
This exception is raised if the type of the provides port is bad.
Definition: DSC_Engines.idl:97
virtual void connect_uses_port(const char *uses_port_name, Ports::Port_ptr provides_port_ref)
Definition: DSC_interface.cxx:214
This exception is raised if you try to add a port with the same name than a previous defined port...
Definition: DSC_Engines.idl:87
Copyright © 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS