Salome HOME
PN : pour prendre en compte le nouveau panneau : UNIQUE_ASSD_Panel_Reel
[tools/eficas.git] / Exemples / ex12 / cata.py
1 # -*- coding: utf-8 -*-
2 """
3 """
4
5 import sys
6 sys.path[:0]=['../..']
7
8 from Accas import SIMP,FACT,OPER,JDC_CATA
9
10 # Construction objet de définition
11
12 class concept:
13    def __init__(self,etape):
14       self.etape=etape
15    def is_object(valeur):
16       """
17           Indique si valeur est d'un type conforme à la classe (1) ou non conforme (0)
18       """
19       return 0
20
21 JdC=JDC_CATA(code="ASTER")
22 OP1 = OPER(nom='OP1',op=1,sd_prod=concept,reentrant='f',
23            a=SIMP(typ='I'),
24            b=SIMP(typ=concept),
25           )
26