Salome HOME
973af78b4d4a165ad8088cd2122289b8ab8551a9
[modules/hydrosolver.git] / src / HYDRO / HYDROSOLVER.py
1 #  Copyright (C) 2012-2013 EDF
2 #
3 #  This file is part of SALOME HYDRO module.
4 #
5 #  SALOME HYDRO module is free software: you can redistribute it and/or modify
6 #  it under the terms of the GNU General Public License as published by
7 #  the Free Software Foundation, either version 3 of the License, or
8 #  (at your option) any later version.
9 #
10 #  SALOME HYDRO module is distributed in the hope that it will be useful,
11 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
12 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 #  GNU General Public License for more details.
14 #
15 #  You should have received a copy of the GNU General Public License
16 #  along with SALOME HYDRO module.  If not, see <http://www.gnu.org/licenses/>.
17
18 import HYDROSOLVER_ORB__POA
19 import SALOME_ComponentPy
20 import SALOME_DriverPy
21
22
23 class HYDROSOLVER(HYDROSOLVER_ORB__POA.HYDROSOLVER,
24                   SALOME_ComponentPy.SALOME_ComponentPy_i,
25                   SALOME_DriverPy.SALOME_DriverPy_i):
26
27     """
28         Pour etre un composant SALOME cette classe Python
29         doit avoir le nom du composant et heriter de la
30         classe HYDROSOLVER issue de la compilation de l'idl
31         par omniidl et de la classe SALOME_ComponentPy_i
32         qui porte les services generaux d'un composant SALOME
33     """
34     def __init__ ( self, orb, poa, contID, containerName, instanceName, 
35                    interfaceName ):
36         SALOME_ComponentPy.SALOME_ComponentPy_i.__init__(self, orb, poa,
37                     contID, containerName, instanceName, interfaceName)
38         SALOME_DriverPy.SALOME_DriverPy_i.__init__(self, interfaceName)