Salome HOME
Merge from V6_main_20120808 08Aug12
[modules/homard.git] / idl / HOMARD_Hypothesis.idl
1 // Copyright (C) 2011-2012  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
20 #ifndef _HOMARD_HYPOTHESIS_IDL
21 #define _HOMARD_HYPOTHESIS_IDL
22
23 #include "SALOME_Component.idl"
24 #include "SALOME_Exception.idl"
25 #include "SALOMEDS.idl"
26
27 #include "HOMARD_Cas.idl"
28
29 module HOMARD
30 {
31   typedef sequence<string> listeZonesHypo ;
32   typedef sequence<string> listeIters ;
33   typedef sequence<string> listeComposantsHypo ;
34   typedef sequence<long>   listeTypes;
35   typedef sequence<string> listFieldInterpHypo;
36
37   struct InfosHypo
38   {
39       string FieldName;
40       long UsCmpI;
41       long UsField;
42       long TypeThR;
43       double ThreshR;
44       long TypeThC;
45       double ThreshC;
46   };
47
48   interface HOMARD_Hypothesis : Engines::EngineComponent
49   {
50
51     void     SetName(in string NomHypothesis)              raises (SALOME::SALOME_Exception);
52     string   GetName()                                     raises (SALOME::SALOME_Exception);
53
54     void     SetCaseCreation(in string NomCas)             raises (SALOME::SALOME_Exception);
55     string   GetCaseCreation()                             raises (SALOME::SALOME_Exception);
56
57     void       SetAdapRefinUnRef(in long Adap, in long Raff, in long Dera)
58                                                            raises (SALOME::SALOME_Exception);
59     listeTypes GetAdapRefinUnRef()                         raises (SALOME::SALOME_Exception);
60     long       GetAdapType()                               raises (SALOME::SALOME_Exception);
61     long       GetRefinType()                              raises (SALOME::SALOME_Exception);
62     long       GetUnRefType()                              raises (SALOME::SALOME_Exception);
63
64     void       SetField(in string FieldName)               raises (SALOME::SALOME_Exception);
65     string     GetFieldName()                              raises (SALOME::SALOME_Exception);
66     void       SetRefinThr(in long TypeThR, in double ThreshR)
67                                                            raises (SALOME::SALOME_Exception);
68     void       SetUnRefThr(in long TypeThC, in double ThreshC)
69                                                            raises (SALOME::SALOME_Exception);
70     long       GetRefinThrType()                           raises (SALOME::SALOME_Exception);
71     long       GetUnRefThrType()                           raises (SALOME::SALOME_Exception);
72     void       SetUseComp(in long UsCmpI)                  raises (SALOME::SALOME_Exception);
73     void       SetUseField(in long UsField)                raises (SALOME::SALOME_Exception);
74     InfosHypo  GetField()                                  raises (SALOME::SALOME_Exception);
75
76     void       AddComp(in string NomComposant)             raises (SALOME::SALOME_Exception);
77     void       SupprComp()                                 raises (SALOME::SALOME_Exception);
78     listeComposantsHypo GetListComp()                      raises (SALOME::SALOME_Exception);
79
80     void       AddZone(in string NomZone, in long TypeUse) raises (SALOME::SALOME_Exception);
81     void       SupprZone(in string NomZone)                raises (SALOME::SALOME_Exception);
82     listeZonesHypo GetZones()                              raises (SALOME::SALOME_Exception);
83
84     listeIters GetIterations()                             raises (SALOME::SALOME_Exception);
85     void       AddIteration(in string NomIteration)        raises (SALOME::SALOME_Exception);
86
87     ListGroupType GetGroups()                              raises (SALOME::SALOME_Exception);
88     void       SetGroups(in ListGroupType ListGroup)       raises (SALOME::SALOME_Exception);
89     void       AddGroup(in string LeGroupe)                raises (SALOME::SALOME_Exception);
90
91     void       SetTypeFieldInterp(in long TypeFieldInterp) raises (SALOME::SALOME_Exception);
92     long       GetTypeFieldInterp()                        raises (SALOME::SALOME_Exception);
93     void       AddFieldInterp(in string FieldInterp)       raises (SALOME::SALOME_Exception);
94     void       SupprFieldInterp()                          raises (SALOME::SALOME_Exception);
95     listFieldInterpHypo GetListFieldInterp()               raises (SALOME::SALOME_Exception);
96
97     void     SetNivMax(in long NivMax)                     raises (SALOME::SALOME_Exception);
98     long     GetNivMax()                                   raises (SALOME::SALOME_Exception);
99
100     void     SetDiamMin(in double DiamMin)                 raises (SALOME::SALOME_Exception);
101     double   GetDiamMin()                                  raises (SALOME::SALOME_Exception);
102
103     void     SetAdapInit(in long AdapInit)                 raises (SALOME::SALOME_Exception);
104     long     GetAdapInit()                                 raises (SALOME::SALOME_Exception);
105
106     string   GetDumpPython()                               raises (SALOME::SALOME_Exception);
107
108   };
109 };
110 #endif