From f8384ef50634416b5ac1de2e5c8e214970958fe1 Mon Sep 17 00:00:00 2001 From: "pascale.noyret" Date: Fri, 21 May 2021 16:28:46 +0200 Subject: [PATCH] Pour qu Eric resolve le pb --- .../Ambiguite/cata_FusionCompliqueeDeFact.py | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 Tests/MappingAccasXsd/Ambiguite/cata_FusionCompliqueeDeFact.py diff --git a/Tests/MappingAccasXsd/Ambiguite/cata_FusionCompliqueeDeFact.py b/Tests/MappingAccasXsd/Ambiguite/cata_FusionCompliqueeDeFact.py new file mode 100644 index 00000000..6c378964 --- /dev/null +++ b/Tests/MappingAccasXsd/Ambiguite/cata_FusionCompliqueeDeFact.py @@ -0,0 +1,63 @@ +# 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' +LeProc = PROC( nom = 'LeProc', + SimpA = SIMP(statut ="o",typ='R', defaut = 2, ), + B1=BLOC( condition = 'SimpA == 1', + F = FACT(statut='f', + S1B1 = SIMP(statut ="f",typ='R' ), + A1 = SIMP(statut ="f",typ='R' ), + S2B1 = SIMP(statut ="f",typ='R' ), + A2 = SIMP(statut ="f",typ='R' ), + S3B1 = SIMP(statut ="f",typ='R' ), + A3 = SIMP(statut ="f",typ='R' ), + ), + ), + B2=BLOC( condition = 'SimpA == 3', + F = FACT(statut='f', + S1B2 = SIMP(statut ="f",typ='R' ), + A1 = SIMP(statut ="f",typ='R' ), + A2 = SIMP(statut ="f",typ='R' ), + S2B2 = SIMP(statut ="f",typ='R' ), + A3 = SIMP(statut ="f",typ='R' ), + S3B2 = SIMP(statut ="f",typ='R' ), + ), + ), + B3=BLOC( condition = 'SimpA == 4', + F = FACT(statut='f', + A3 = SIMP(statut ="f",typ='R' ), + S1B3 = SIMP(statut ="f",typ='R'), + A2 = SIMP(statut ="f",typ='R' ), + S2B3 = SIMP(statut ="f",typ='R' ), + A1 = SIMP(statut ="f",typ='R' ), + S3B3 = SIMP(statut ="f",typ='R' ), + ), + ), +) + -- 2.39.2