Salome HOME
modif pour MT
[tools/eficas.git] / Accas / A_ASSD.py
1 # -*- coding: utf-8 -*-
2 # Copyright (C) 2007-2017   EDF R&D
3 #
4 # This library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2.1 of the License.
8 #
9 # This library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12 # Lesser General Public License for more details.
13 #
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with this library; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
17 #
18 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 #
20
21 from __future__ import absolute_import
22 from Ihm import I_ASSD
23 from Ihm import I_LASSD
24 from Ihm import I_FONCTION
25 from Noyau import N_ASSD 
26 from Noyau import N_GEOM 
27 from Noyau import N_FONCTION 
28 from Noyau import N_CO 
29
30 # On ajoute la classe ASSD dans l'heritage multiple pour recreer 
31 # une hierarchie d'heritage identique a celle de Noyau
32 # pour faire en sorte que isinstance(o,ASSD) marche encore apres 
33 # derivation
34
35 class ASSD(I_ASSD.ASSD,N_ASSD.ASSD):pass
36 #class LASSD(I_LASSD.LASSD,N_LASSD.LASSD):pass
37 class LASSD(I_LASSD.LASSD):pass
38
39 class assd(N_ASSD.assd,I_ASSD.assd,ASSD):pass
40
41 class FONCTION(N_FONCTION.FONCTION,I_FONCTION.FONCTION,ASSD):
42    def __init__(self,etape=None,sd=None,reg='oui'):
43       N_FONCTION.FONCTION.__init__(self,etape=etape,sd=sd,reg=reg)
44       I_FONCTION.FONCTION.__init__(self,etape=etape,sd=sd,reg=reg)
45
46 class formule(I_FONCTION.formule,N_FONCTION.formule,ASSD):
47    def __init__(self,etape=None,sd=None,reg='oui'):
48       N_FONCTION.formule.__init__(self,etape=etape,sd=sd,reg=reg)
49       I_FONCTION.formule.__init__(self,etape=etape,sd=sd,reg=reg)
50
51 class formule_c(formule):pass
52
53 # On conserve fonction (ceinture et bretelles)
54 # fonction n'existe plus dans N_FONCTION on le remplace par formule
55 class fonction(N_FONCTION.formule,I_FONCTION.fonction,ASSD):
56    def __init__(self,etape=None,sd=None,reg='oui'):
57       N_FONCTION.formule.__init__(self,etape=etape,sd=sd,reg=reg)
58       I_FONCTION.fonction.__init__(self,etape=etape,sd=sd,reg=reg)
59
60 class GEOM(N_GEOM.GEOM,I_ASSD.GEOM,ASSD):pass
61 class geom(N_GEOM.geom,I_ASSD.geom,ASSD):pass
62 class CO(N_CO.CO,I_ASSD.CO,ASSD):pass