From: pascale.noyret Date: Fri, 20 Mar 2020 13:39:15 +0000 (+0100) Subject: 1ers tests ambigus X-Git-Tag: V200520bis~83 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=724cc4fcc60cc471bfea3883304f4cbeffc2a3d6;p=tools%2Feficas.git 1ers tests ambigus --- diff --git a/Tests/MappingAccasXsd/Ambiguite/cata_Ambigu_1_Commun.py b/Tests/MappingAccasXsd/Ambiguite/cata_Ambigu_1_Commun.py new file mode 100644 index 00000000..72e723f8 --- /dev/null +++ b/Tests/MappingAccasXsd/Ambiguite/cata_Ambigu_1_Commun.py @@ -0,0 +1,41 @@ +# Copyright (C) 2008-2018 EDF R&D +# +# This file is part of SALOME ADAO module +# +# 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 +import os, re +import Accas +from Accas import * +monFichier=os.path.abspath(__file__) + +JdC = JDC_CATA ( + code = 'Essai', + ) + +VERSION_CATALOGUE='V_0' +LeProcNA = PROC( nom = 'LeProc', + SimpA = SIMP(statut ="o",typ='R', defaut = 2, ), + B1=BLOC( condition = 'SimpA == 1', + SimpK = SIMP(statut ="o",typ='R' ), + SimpC = SIMP(statut ="f",typ='R' ), + ), + B2=BLOC( condition = 'SimpA == 3', + SimpK = SIMP(statut ="o",typ='R' ), + SimpD = SIMP(statut ="f",typ='R' ), + ), +) + diff --git a/Tests/MappingAccasXsd/Ambiguite/cata_Ambigu_2_Commun.py b/Tests/MappingAccasXsd/Ambiguite/cata_Ambigu_2_Commun.py new file mode 100644 index 00000000..6c10ad6e --- /dev/null +++ b/Tests/MappingAccasXsd/Ambiguite/cata_Ambigu_2_Commun.py @@ -0,0 +1,43 @@ +# Copyright (C) 2008-2018 EDF R&D +# +# This file is part of SALOME ADAO module +# +# 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 +import os, re +import Accas +from Accas import * +monFichier=os.path.abspath(__file__) + +JdC = JDC_CATA ( + code = 'Essai', + ) + +VERSION_CATALOGUE='V_0' +LeProcNA = PROC( nom = 'LeProc', + SimpA = SIMP(statut ="o",typ='R', defaut = 2, ), + B1=BLOC( condition = 'SimpA == 1', + SimpK = SIMP(statut ="o",typ='R' ), + SimpC = SIMP(statut ="f",typ='R' ), + SimpE = SIMP(statut ="f",typ='R' ), + ), + B2=BLOC( condition = 'SimpA == 3', + SimpK = SIMP(statut ="o",typ='R' ), + SimpC = SIMP(statut ="f",typ='R' ), + SimpD = SIMP(statut ="f",typ='R' ), + ), +) +