1 # Copyright (C) 2012-2013 EDF
3 # This file is part of SALOME HYDRO module.
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.
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.
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/>.
18 import HYDROSOLVER_ORB__POA
19 import SALOME_ComponentPy
20 import SALOME_DriverPy
23 class HYDROSOLVER(HYDROSOLVER_ORB__POA.HYDROSOLVER,
24 SALOME_ComponentPy.SALOME_ComponentPy_i,
25 SALOME_DriverPy.SALOME_DriverPy_i):
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
34 def __init__ ( self, orb, poa, contID, containerName, instanceName,
36 SALOME_ComponentPy.SALOME_ComponentPy_i.__init__(self, orb, poa,
37 contID, containerName, instanceName, interfaceName, 0)
38 SALOME_DriverPy.SALOME_DriverPy_i.__init__(self, interfaceName)