Salome HOME
fin du menage
[tools/eficas.git] / Accas / A_ASSD.py
1 # -*- coding: utf-8 -*-
2 # Copyright (C) 2007-2021   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 from Noyau import N_UserASSD
30
31 # On ajoute la classe ASSD dans l'heritage multiple pour recreer
32 # une hierarchie d'heritage identique a celle de Noyau
33 # pour faire en sorte que isinstance(o,ASSD) marche encore apres
34 # derivation
35
36 class ASSD(I_ASSD.ASSD,N_ASSD.ASSD):pass
37 #class LASSD(I_LASSD.LASSD,N_LASSD.LASSD):pass
38 class LASSD(I_LASSD.LASSD):pass
39 class UserASSD(N_UserASSD.UserASSD,ASSD): pass
40
41 class assd(N_ASSD.assd,I_ASSD.assd,ASSD):pass
42
43 class FONCTION(N_FONCTION.FONCTION,I_FONCTION.FONCTION,ASSD):
44     def __init__(self,etape=None,sd=None,reg='oui'):
45         N_FONCTION.FONCTION.__init__(self,etape=etape,sd=sd,reg=reg)
46         I_FONCTION.FONCTION.__init__(self,etape=etape,sd=sd,reg=reg)
47
48 class formule(I_FONCTION.formule,N_FONCTION.formule,ASSD):
49     def __init__(self,etape=None,sd=None,reg='oui'):
50         N_FONCTION.formule.__init__(self,etape=etape,sd=sd,reg=reg)
51         I_FONCTION.formule.__init__(self,etape=etape,sd=sd,reg=reg)
52
53 class formule_c(formule):pass
54
55 # On conserve fonction (ceinture et bretelles)
56 # fonction n'existe plus dans N_FONCTION on le remplace par formule
57 class fonction(N_FONCTION.formule,I_FONCTION.fonction,ASSD):
58     def __init__(self,etape=None,sd=None,reg='oui'):
59         N_FONCTION.formule.__init__(self,etape=etape,sd=sd,reg=reg)
60         I_FONCTION.fonction.__init__(self,etape=etape,sd=sd,reg=reg)
61
62 class GEOM(N_GEOM.GEOM,I_ASSD.GEOM,ASSD):pass
63 class geom(N_GEOM.geom,I_ASSD.geom,ASSD):pass
64 class CO(N_CO.CO,I_ASSD.CO,ASSD):pass