]> SALOME platform Git repositories - modules/med.git/blob - src/MedClient/test/test1/Compo1Py.py
Salome HOME
50dac23a736e27c01a74a979b0f8af1f2506a168
[modules/med.git] / src / MedClient / test / test1 / Compo1Py.py
1 import sys
2 from omniORB import CORBA, PortableServer
3 import CosNaming
4 import Engines, Engines__POA
5 from SALOME_ComponentPy import *
6 from libMedCorba_Swig import *
7
8 import Compo1
9
10 class Compo1Py( Engines__POA.Compo1Py, SALOME_ComponentPy_i):
11
12         def __init__(self, orb, poa, contID, \
13                      containerName, instanceName, interfaceName):
14             notif = 1
15             SALOME_ComponentPy_i.__init__(self, orb, poa, contID, \
16                                           containerName, instanceName, \
17                                           interfaceName, notif)
18
19             self.C = Compo1.Compo1()
20             
21             print "Compo1Py_Impl::__init__"
22
23
24         def Initialise(self, medFile):
25             self.C.Initialise(medFile);
26             
27         def Calcul1(self):
28             m = self.C.Calcul1()
29             return createCorbaMesh(m)
30             
31         def Calcul2(self):
32             s = self.C.Calcul2()
33             return createCorbaSupport(s)
34