1 // Copyright (C) 2011-2012 CEA/DEN, EDF R&D
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.
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.
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
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 #ifndef _HOMARD_HYPOTHESIS_I_HXX_
21 #define _HOMARD_HYPOTHESIS_I_HXX_
23 #include <SALOMEconfig.h>
24 #include CORBA_SERVER_HEADER(HOMARD_Gen)
25 #include CORBA_SERVER_HEADER(HOMARD_Hypothesis)
27 #include "SALOME_Component_i.hxx"
28 #include "SALOME_NamingService.hxx"
29 #include "Utils_CorbaException.hxx"
33 class HOMARD_Hypothesis;
35 class HOMARD_Hypothesis_i:
36 public virtual Engines_Component_i,
37 public virtual POA_HOMARD::HOMARD_Hypothesis,
38 public virtual PortableServer::ServantBase
41 HOMARD_Hypothesis_i( CORBA::ORB_ptr orb, HOMARD::HOMARD_Gen_var gen_i );
42 HOMARD_Hypothesis_i();
44 virtual ~HOMARD_Hypothesis_i();
46 void SetName( const char* NomHypothesis );
48 void SetCaseCreation( const char* NomCaseCreation );
49 char* GetCaseCreation();
50 char* GetDumpPython();
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();
58 void SetField( const char* FieldName );
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();
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 );
74 HOMARD::listeComposantsHypo* GetListComp();
75 HOMARD::listeIters* GetIterations();
76 HOMARD::listeZonesHypo* GetZones();
78 void AddGroup( const char* Group);
79 void SetGroups(const HOMARD::ListGroupType& ListGroup);
80 HOMARD::ListGroupType* GetGroups();
82 void SetTypeFieldInterp( CORBA::Long TypeFieldInterp );
83 CORBA::Long GetTypeFieldInterp();
84 void AddFieldInterp( const char* FieldInterp );
85 void SupprFieldInterp();
86 HOMARD::listFieldInterpHypo* GetListFieldInterp();
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 void SetLevelOutput( CORBA::Long LevelOutput );
95 CORBA::Long GetLevelOutput();
97 std::string Dump() const;
98 bool Restore( const std::string& stream );
101 ::HOMARD_Hypothesis* myHomardHypothesis;
104 HOMARD::HOMARD_Gen_var _gen_i;