--- /dev/null
+def CreeUneASSD(Unite) :
+ return ('toto')
+
+def UtiliseUneASSD(MonASSD):
+ print (MonASSD)
+
+
+class maClasseUser :
+ def __init__(self):
+ print ('je cree un objet utilisateur')
+
+
+def creeUneASSDDansUnSimp(UneSeuleASSD):
+ print ('je suis dans la fonction utilisateur)
+
+
+# _______________ fin partie code metier ___________________
+#
+def creeUnObjet(classe,reference,*args,**kwargs) :
+ if args == {} : obj=classe(**kwargs)
+ else : obj=classe(*args,**kwargs)
+ globals()[reference]=obj
+
+def decoratorCreeUnObjet(maFonction,maClasse):
+ def maFonctionAvecCreation(*args, **kwargs):
+ creeUnObjet(*args,**args)
+ maFonction(*args, **kwargs)
+ return maFonctionAvecCreation(*args, **kwargs)
+
+creeUneASSDDansUnSimp = decoratorCreeUnObjet(creeUneASSDDansUnSimp,maClasseUser)
+# -------------------------------------------------------------------
+
+creeUneUserASSDDansUnSimp(UneSeuleASSD='MaRef',);
+UtiliseUneUserASSD(MonUserASSD=MaRef);
+
+#MonAssd=CreeUneASSD(Unite=1,);
+#UtiliseUneASSD(MonASSD=MonAssd,);
+
+#MaRef=maClasseUser('MaRef')
+#CreeUneUserASSDDansUnSimp(UneSeuleASSD=MaRef,);
+
+#UtiliseUneUserASSD(MonUserASSD='MaRef',);
+#VERSION_CATALOGUE:V_0:FIN VERSION_CATALOGUE
+#CHECKSUM:c908ade781fa6592ac27485ea2f9b939 -:FIN CHECKSUM
--- /dev/null
+../../CatasDeTests/cata_Assd.py
\ No newline at end of file
--- /dev/null
+../../CatasDeTests/cata_Assd_user.py
\ No newline at end of file
--- /dev/null
+comm_avec_userASSD.comm
\ No newline at end of file
--- /dev/null
+
+DefinitUneGeometrie(uneFaceDeLaGeometrie='Haut',);
+
+DefinitUneConditionAuxLimites(laFaceDeLaCL=Haut,);
+#VERSION_CATALOGUE:V_0:FIN VERSION_CATALOGUE
+#CHECKSUM:03040f7bb46466807f7c4d30b8180bbf -:FIN CHECKSUM
--- /dev/null
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+# Copyright (C) 2007-2013 EDF R&D
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+"""
+lancement EFICAS ss Ihm
+"""
+from __future__ import absolute_import
+from __future__ import print_function
+
+# On ajoute le path jusqu a eficas et celui ou on trouve le prefs_Code
+import os, sys
+sys.path.insert(0,'/home/A96028/QT5GitEficasTravail/eficas')
+sys.path.insert(0,'/home/A96028/QT5GitEficasTravail/eficas/CatasDeTests')
+
+debug = True
+
+if __name__ == '__main__':
+ from InterfaceQT4.eficas_go import getEficasSsIhm
+ code='Essai'
+ versionCode="V2019"
+
+ monEficasSsIhm = getEficasSsIhm(code=code,versionCode=versionCode)
+ monEficasSsIhm.initEditor()
+ monEditor = monEficasSsIhm.editor
+ if debug : print ('monEditor : ' , monEditor )
+
+ monJdc = monEditor.jdc
+ if debug : print ('monJdc : ' , monJdc )
+
+ index=-1
+
+ #TesteCreationASSD = True
+ TesteCreationASSD = 0
+ if TesteCreationASSD :
+ index=index+1
+ monJdc.addEntite('CreeUneASSD',index)
+ monEtape=monJdc.etapes[index]
+ monMC=monEtape.getChild('Unite')
+ monMC.setValeur(1)
+ monEtape.nommeSd('MonASSDCree')
+ print (monEtape.nom , " isValid : ", monEtape.isValid())
+
+ index=index+1
+ monJdc.addEntite('UtiliseUneASSD',index)
+ monEtape=monJdc.etapes[index]
+ monMC=monEtape.getChild('MonASSD')
+ objetASSD=monMC.evalVal('MonASSDCree')
+ validType=monMC.verifType(objetASSD)
+ monMC.setValeur(objetASSD)
+ print (monEtape.nom , " isValid : ", monEtape.isValid())
+
+ TesteCreationUserASSDDansUnSimp = True
+ if TesteCreationUserASSDDansUnSimp :
+ index=index+1
+ monJdc.addEntite('CreeUneUserASSDDansUnSimp',index)
+ monEtape=monJdc.etapes[index]
+ monMC=monEtape.getChild('UneSeuleASSD')
+ monMC.creeUserASSDetSetValeur('SIMPquiEstUneUserASSD')
+ monMCEnCreation = monMC
+ print (monEtape.nom , " isValid : ", monEtape.isValid())
+
+ monJdc.addEntite('UtiliseUneUserASSD',index)
+ monEtape=monJdc.etapes[index]
+ monMC=monEtape.getChild('MonUserASSD')
+ objetUserASSD=monMC.evalVal('SIMPquiEstUneUserASSD')
+ validType=monMC.verifType(objetUserASSD)
+ monMC.setValeur(objetUserASSD)
+ monMCEnUtilisation = monMC
+ print (monEtape.nom , " isValid : ", monEtape.isValid())
+
+ TesteRenommeUserASSDDansUnSimp = True
+ if TesteCreationUserASSDDansUnSimp :
+ monMCEnCreation.renommeSdCree('SimpUserAssd')
+ print (monMCEnUtilisation.isValid())
+
+
+
+
+
+
+
+
+
--- /dev/null
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+# Copyright (C) 2007-2013 EDF R&D
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+"""
+lancement EFICAS ss Ihm
+"""
+from __future__ import absolute_import
+from __future__ import print_function
+
+# On ajoute le path jusqu a eficas et celui ou on trouve le prefs_Code
+import os, sys
+sys.path.insert(0,'/home/A96028/QT5GitEficasTravail/eficas')
+sys.path.insert(0,'/home/A96028/QT5GitEficasTravail/eficas/CatasDeTests')
+
+debug = True
+
+if __name__ == '__main__':
+ from InterfaceQT4.eficas_go import getEficasSsIhm
+ code='Essai'
+ versionCode="V2019"
+
+ monEficasSsIhm = getEficasSsIhm(code=code,versionCode=versionCode)
+ monFichier = './avecDesAssd.comm'
+ monHandler = monEficasSsIhm.fileOpen(monFichier)
+ if not monHandler : print (' souci!'); exit()
+ monHandler.viewJdcSource()
+ monHandler.viewJdcRapport()
+
+
+
+
+
+
--- /dev/null
+class surfaceElementaire:
+ def __init__(self,*tup,**args) :
+ print ('_____________ surfaceElementaire ______________')
+ print ('dans le __init__ de la classe surfaceElementaire metier')
+ print ('arguments : ', tup, ' ', args)
+ print ('_____________ fin \n\n')
+
+
+class mesDonnees:
+ def __init__(self,from,string) :
+ pass
+
+data=mesDonnees
+def UneFonction (*tup, **args):
+
+
+def DefinitUneGeometrie(uneFaceDeLaGeometrie) :
+ print ('dans la fonction metier DefinitUneGeometrie avec uneFaceDeLaGeometrie ', uneFaceDeLaGeometrie)
+
+def DefinitUneConditionAuxLimites(laFaceDeLaCL) :
+ print ('dans la fonction metier DefinitUneConditionAuxLimites avec laFaceDeLaCL ', laFaceDeLaCL)