Back to index

salome-med  6.5.0
Compo1Py.py
Go to the documentation of this file.
00001 #  -*- coding: iso-8859-1 -*-
00002 # Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
00003 #
00004 # Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00005 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00006 #
00007 # This library is free software; you can redistribute it and/or
00008 # modify it under the terms of the GNU Lesser General Public
00009 # License as published by the Free Software Foundation; either
00010 # version 2.1 of the License.
00011 #
00012 # This library is distributed in the hope that it will be useful,
00013 # but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015 # Lesser General Public License for more details.
00016 #
00017 # You should have received a copy of the GNU Lesser General Public
00018 # License along with this library; if not, write to the Free Software
00019 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00020 #
00021 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00022 #
00023 
00024 import sys
00025 from omniORB import CORBA, PortableServer
00026 import CosNaming
00027 import Compo1Py_ORB, Compo1Py_ORB__POA
00028 from SALOME_ComponentPy import *
00029 from libMedCorba_Swig import *
00030 
00031 import Compo1
00032 
00033 class Compo1Py( Compo1Py_ORB__POA.Compo1Py, SALOME_ComponentPy_i):
00034 
00035         def __init__(self, orb, poa, contID, \
00036                      containerName, instanceName, interfaceName):
00037             notif = 1
00038             SALOME_ComponentPy_i.__init__(self, orb, poa, contID, \
00039                                           containerName, instanceName, \
00040                                           interfaceName, notif)
00041 
00042             self.C = Compo1.Compo1()
00043             
00044             print "Compo1Py_Impl::__init__"
00045 
00046 
00047        def Initialise(self, medFile):
00048            self.C.Initialise(medFile);
00049            
00050         def Calcul1(self):
00051             m = self.C.Calcul1()
00052             return createCorbaMesh(m)
00053            
00054         def Calcul2(self):
00055             s = self.C.Calcul2()
00056             return createCorbaSupport(s)
00057