Salome HOME
Merge from V6_main_20120808 08Aug12
[modules/homard.git] / src / HOMARD_I / HOMARD_Hypothesis_i.hxx
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_I_HXX_
21 #define _HOMARD_HYPOTHESIS_I_HXX_
22
23 #include <SALOMEconfig.h>
24 #include CORBA_SERVER_HEADER(HOMARD_Gen)
25 #include CORBA_SERVER_HEADER(HOMARD_Hypothesis)
26
27 #include "SALOME_Component_i.hxx"
28 #include "SALOME_NamingService.hxx"
29 #include "Utils_CorbaException.hxx"
30
31 #include <string>
32
33 class HOMARD_Hypothesis;
34
35 class HOMARD_Hypothesis_i:
36   public virtual Engines_Component_i,
37   public virtual POA_HOMARD::HOMARD_Hypothesis,
38   public virtual PortableServer::ServantBase
39 {
40 public:
41   HOMARD_Hypothesis_i( CORBA::ORB_ptr orb, HOMARD::HOMARD_Gen_var gen_i );
42   HOMARD_Hypothesis_i();
43
44   virtual ~HOMARD_Hypothesis_i();
45
46   void                         SetName( const char* NomHypothesis );
47   char*                        GetName();
48   void                         SetCaseCreation( const char* NomCaseCreation );
49   char*                        GetCaseCreation();
50   char*                        GetDumpPython();
51
52   void                         SetAdapRefinUnRef( CORBA::Long TypeAdap, CORBA::Long TypeRaff, CORBA::Long TypeDera );
53   HOMARD::listeTypes*          GetAdapRefinUnRef();
54   CORBA::Long                  GetAdapType();
55   CORBA::Long                  GetRefinType();
56   CORBA::Long                  GetUnRefType();
57
58   void                         SetField( const char* FieldName );
59   char*                        GetFieldName();
60   void                         SetRefinThr(CORBA::Long TypeThR, CORBA::Double ThreshR);
61   CORBA::Long                  GetRefinThrType();
62   void                         SetUnRefThr(CORBA::Long TypeThC, CORBA::Double ThreshC);
63   CORBA::Long                  GetUnRefThrType();
64   void                         SetUseComp(CORBA::Long UsCmpI);
65   void                         SetUseField(CORBA::Long UsField);
66   HOMARD::InfosHypo*           GetField();
67
68   void                         AddIteration( const char* NomIteration );
69   void                         AddZone( const char* NomZone, CORBA::Long TypeUse );
70   void                         SupprZone( const char* NomZone );
71   void                         AddComp( const char* NomComposant );
72   void                         SupprComp();
73
74   HOMARD::listeComposantsHypo* GetListComp();
75   HOMARD::listeIters*          GetIterations();
76   HOMARD::listeZonesHypo*      GetZones();
77
78   void                         AddGroup( const char* Group);
79   void                         SetGroups(const HOMARD::ListGroupType& ListGroup);
80   HOMARD::ListGroupType*       GetGroups();
81
82   void                         SetTypeFieldInterp( CORBA::Long TypeFieldInterp );
83   CORBA::Long                  GetTypeFieldInterp();
84   void                         AddFieldInterp( const char* FieldInterp );
85   void                         SupprFieldInterp();
86   HOMARD::listFieldInterpHypo* GetListFieldInterp();
87
88   void                         SetNivMax( CORBA::Long NivMax );
89   CORBA::Long                  GetNivMax();
90   void                         SetDiamMin( CORBA::Double DiamMin );
91   CORBA::Double                GetDiamMin();
92   void                         SetAdapInit( CORBA::Long AdapInit );
93   CORBA::Long                  GetAdapInit();
94
95   std::string                  Dump() const;
96   bool                         Restore( const std::string& stream );
97
98 private:
99   ::HOMARD_Hypothesis*         myHomardHypothesis;
100
101   CORBA::ORB_ptr               _orb;
102   HOMARD::HOMARD_Gen_var       _gen_i;
103 };
104
105 #endif