Salome HOME
Nouvelles icones
[modules/homard.git] / idl / HOMARD_Hypothesis.idl
1 // Copyright (C) 2011-2013  CEA/DEN, EDF R&D
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
7 //
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19 // Remarques :
20 // L'ordre de description des fonctions est le meme dans tous les fichiers
21 // HOMARD_aaaa.idl, HOMARD_aaaa.hxx, HOMARD_aaaa.cxx, HOMARD_aaaa_i.hxx, HOMARD_aaaa_i.cxx :
22 // 1. Les generalites : Name, Delete, DumpPython, Dump, Restore
23 // 2. Les caracteristiques
24 // 3. Le lien avec les autres structures
25 //
26 // Quand les 2 fonctions Setxxx et Getxxx sont presentes, Setxxx est decrit en premier
27 //
28
29 #ifndef _HOMARD_HYPOTHESIS_IDL
30 #define _HOMARD_HYPOTHESIS_IDL
31
32 #include "SALOME_Component.idl"
33 #include "SALOME_Exception.idl"
34 #include "SALOMEDS.idl"
35
36 #include "HOMARD_Cas.idl"
37
38 module HOMARD
39 {
40   typedef sequence<string> listeZonesHypo ;
41   typedef sequence<string> listeIters ;
42   typedef sequence<string> listeComposantsHypo ;
43   typedef sequence<long>   listeTypes;
44   typedef sequence<string> listFieldInterpHypo;
45
46   struct InfosHypo
47   {
48       string FieldName;
49       long UsCmpI;
50       long UsField;
51       long TypeThR;
52       double ThreshR;
53       long TypeThC;
54       double ThreshC;
55   };
56
57   interface HOMARD_Hypothesis : Engines::EngineComponent
58   {
59 // Generalites
60     void     SetName(in string Name)                       raises (SALOME::SALOME_Exception);
61     string   GetName()                                     raises (SALOME::SALOME_Exception);
62
63     long     Delete()                                      raises (SALOME::SALOME_Exception);
64
65     string   GetDumpPython()                               raises (SALOME::SALOME_Exception);
66
67 // Caracteristiques
68     void     SetAdapRefinUnRef(in long Adap, in long Raff, in long Dera)
69                                                            raises (SALOME::SALOME_Exception);
70     listeTypes GetAdapRefinUnRef()                         raises (SALOME::SALOME_Exception);
71     long     GetAdapType()                                 raises (SALOME::SALOME_Exception);
72     long     GetRefinType()                                raises (SALOME::SALOME_Exception);
73     long     GetUnRefType()                                raises (SALOME::SALOME_Exception);
74
75     void     SetField(in string FieldName)                 raises (SALOME::SALOME_Exception);
76     string   GetFieldName()                                raises (SALOME::SALOME_Exception);
77     void     SetUseField(in long UsField)                  raises (SALOME::SALOME_Exception);
78     InfosHypo GetField()                                  raises (SALOME::SALOME_Exception);
79
80     void     SetUseComp(in long UsCmpI)                    raises (SALOME::SALOME_Exception);
81     void     AddComp(in string NomComposant)               raises (SALOME::SALOME_Exception);
82     void     SupprComp()                                   raises (SALOME::SALOME_Exception);
83     listeComposantsHypo GetListComp()                      raises (SALOME::SALOME_Exception);
84
85     void     SetRefinThr(in long TypeThR, in double ThreshR)
86                                                            raises (SALOME::SALOME_Exception);
87     long     GetRefinThrType()                             raises (SALOME::SALOME_Exception);
88     void     SetUnRefThr(in long TypeThC, in double ThreshC)
89                                                            raises (SALOME::SALOME_Exception);
90     long     GetUnRefThrType()                             raises (SALOME::SALOME_Exception);
91
92     void     SetNivMax(in long NivMax)                     raises (SALOME::SALOME_Exception);
93     long     GetNivMax()                                   raises (SALOME::SALOME_Exception);
94
95     void     SetDiamMin(in double DiamMin)                 raises (SALOME::SALOME_Exception);
96     double   GetDiamMin()                                  raises (SALOME::SALOME_Exception);
97
98     void     SetAdapInit(in long AdapInit)                 raises (SALOME::SALOME_Exception);
99     long     GetAdapInit()                                 raises (SALOME::SALOME_Exception);
100
101     void     SetLevelOutput(in long LevelOutput)           raises (SALOME::SALOME_Exception);
102     long     GetLevelOutput()                              raises (SALOME::SALOME_Exception);
103
104     void     AddGroup(in string LeGroupe)                  raises (SALOME::SALOME_Exception);
105     void     SetGroups(in ListGroupType ListGroup)         raises (SALOME::SALOME_Exception);
106     ListGroupType GetGroups()                              raises (SALOME::SALOME_Exception);
107
108     void     SetTypeFieldInterp(in long TypeFieldInterp)   raises (SALOME::SALOME_Exception);
109     long     GetTypeFieldInterp()                          raises (SALOME::SALOME_Exception);
110     void     AddFieldInterp(in string FieldInterp)         raises (SALOME::SALOME_Exception);
111     void     SupprFieldInterp()                            raises (SALOME::SALOME_Exception);
112     listFieldInterpHypo GetListFieldInterp()               raises (SALOME::SALOME_Exception);
113
114 // Liens avec les autres structures
115     void     SetCaseCreation(in string NomCas)             raises (SALOME::SALOME_Exception);
116     string   GetCaseCreation()                             raises (SALOME::SALOME_Exception);
117
118     void     LinkIteration(in string NomIteration)         raises (SALOME::SALOME_Exception);
119     void     UnLinkIteration(in string NomIteration)       raises (SALOME::SALOME_Exception);
120     listeIters GetIterations()                             raises (SALOME::SALOME_Exception);
121
122     void     AddZone(in string NomZone, in long TypeUse)   raises (SALOME::SALOME_Exception);
123     void     AddZone0(in string NomZone, in long TypeUse)  raises (SALOME::SALOME_Exception);
124     void     SupprZone(in string NomZone)                  raises (SALOME::SALOME_Exception);
125     listeZonesHypo GetZones()                              raises (SALOME::SALOME_Exception);
126
127   };
128 };
129 #endif