Salome HOME
bdd841b2d5188c7322261dafbe56b0b8444d3bc6
[samples/genericsolver.git] / src / GENERICSOLVER / GENERICSOLVER.py
1 #  Copyright (C) 2009-2014 EDF R&D
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 #  $Id$
20 #
21
22 import GENERICSOLVER_ORB__POA
23 import SALOME_ComponentPy
24 import SALOME_DriverPy
25
26
27 class GENERICSOLVER(GENERICSOLVER_ORB__POA.GENERICSOLVER_Gen,
28                     SALOME_ComponentPy.SALOME_ComponentPy_i,
29                     SALOME_DriverPy.SALOME_DriverPy_i):
30
31     """
32         Pour etre un composant SALOME cette classe Python
33         doit avoir le nom du composant et heriter de la
34         classe GENERICSOLVER_Gen issue de la compilation de l'idl
35         par omniidl et de la classe SALOME_ComponentPy_i
36         qui porte les services generaux d'un composant SALOME
37     """
38     def __init__ ( self, orb, poa, contID, containerName, instanceName, 
39                    interfaceName ):
40         SALOME_ComponentPy.SALOME_ComponentPy_i.__init__(self, orb, poa,
41                     contID, containerName, instanceName, interfaceName, 0)
42         SALOME_DriverPy.SALOME_DriverPy_i.__init__(self, interfaceName)