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