English Français

Documentation / Developer's manual

Available modules

Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,   Uranie / ReLauncher: TComposeEval.h Source File
Uranie / ReLauncher  v4.10.0
/* @license-end */
TComposeEval.h
Go to the documentation of this file.
1 // Copyright (C) 2013-2024 CEA/DES
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Lesser General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or any
7 // later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Lesser General Public License for more details.
13 //
14 // You should have received a copy of the GNU Lesser General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
18 // $Id$
19 // $Author$
20 // $Date$
21 // $Revision 1.3 $
22 // $State$
24 
32 #ifndef __TCOMPOSEEVAL__
33 #define __TCOMPOSEEVAL__
34 
35 //ROOT
36 #include "TList.h"
37 #include "TObjArray.h"
38 
39 //URANIE
40 #include "Relauncher.h"
41 #include "TShareEval.h"
42 #include "TCodeBase.h"
43 
44 namespace URANIE
45 {
46 namespace Relauncher
47 {
48 
49 class TSubEval: public TObject
50 {
51 protected:
53  int _dec;
54  std::vector<int> _select;
55  std::vector<int> _selectout;
56 
57 public:
58  TSubEval(TEval*);
59  virtual ~TSubEval();
60 
61  TEval *getEval();
62  int freeze(Int_t, TObjArray &, TObjArray &, TObjArray &);
63  void match(TObjArray &);
64  void _rebuild(int, Bool_t);
65  TSubEval *rebuild(int, Bool_t);
66  void unbuild();
67  int eval(vector<URANIE::DataServer::UEntry*>*, vector<URANIE::DataServer::UEntry*>*, int =0 );
68 
69 };
70 
71 class TComposeEval: public TShareEval, public TDirEval
72 {
73 protected:
74  TList *_eval;
75  TObjArray _const;
76  std::vector<double> _val;
77  int _allsize;
78 
79 public:
80  TComposeEval();
81  virtual ~TComposeEval();
82 
83  void addEval(TEval *);
84  void setEvals(Int_t, TEval *, ...);
85  void addConstantValue(URANIE::DataServer::TAttribute *, double);
86 
87  virtual void freeze();
88  void _rebuild(int, Bool_t);
89  virtual TEval *rebuild(int rank, Bool_t chef = kTRUE);
90  virtual Bool_t unbuild();
91  virtual int eval(vector<URANIE::DataServer::UEntry*>*, vector<URANIE::DataServer::UEntry*>*, int =0 );
92 
93  virtual bool isThreadSafe();
94 
95  ClassDef(URANIE::Relauncher::TComposeEval, ID_RELAUNCHER)
96 };
97 
98 }
99 } //namespace
100 
101 #endif
Definition: TBaseEval.cxx:44
std::vector< double > _val
Definition: TComposeEval.h:76
Definition: TCodeBase.h:46
gestion des répertoires fichiers de travail*
Definition: TShareEval.h:51
Definition: TComposeEval.h:49
implementation partage au TEval
int freeze(Int_t, TObjArray &, TObjArray &, TObjArray &)
Definition: TComposeEval.cxx:58
void addEval(TEval *)
Definition: TComposeEval.cxx:178
std::vector< int > _selectout
Definition: TComposeEval.h:55
virtual TEval * rebuild(int rank, Bool_t chef=kTRUE)
Definition: TComposeEval.cxx:268
TSubEval * rebuild(int, Bool_t)
Definition: TComposeEval.cxx:110
virtual int eval(vector< URANIE::DataServer::UEntry *> *, vector< URANIE::DataServer::UEntry *> *, int=0)
Definition: TComposeEval.cxx:293
std::vector< int > _select
Definition: TComposeEval.h:54
int _dec
Definition: TComposeEval.h:53
virtual ~TComposeEval()
Definition: TComposeEval.cxx:156
TList * _eval
Definition: TComposeEval.h:74
TSubEval(TEval *)
Definition: TComposeEval.cxx:44
int eval(vector< URANIE::DataServer::UEntry *> *, vector< URANIE::DataServer::UEntry *> *, int=0)
Definition: TComposeEval.cxx:127
TObjArray _const
Definition: TComposeEval.h:75
TComposeEval()
Definition: TComposeEval.cxx:149
virtual Bool_t unbuild()
Definition: TComposeEval.cxx:281
void _rebuild(int, Bool_t)
Definition: TComposeEval.cxx:105
int _allsize
Definition: TComposeEval.h:77
virtual void freeze()
Definition: TComposeEval.cxx:209
TEval * getEval()
Definition: TComposeEval.cxx:53
TEval * _eval
Definition: TComposeEval.h:52
void unbuild()
Definition: TComposeEval.cxx:118
void match(TObjArray &)
Definition: TComposeEval.cxx:81
Definition: TEval.h:49
void addConstantValue(URANIE::DataServer::TAttribute *, double)
Definition: TComposeEval.cxx:202
virtual ~TSubEval()
Definition: TComposeEval.cxx:49
void _rebuild(int, Bool_t)
Definition: TComposeEval.cxx:253
void setEvals(Int_t, TEval *,...)
Definition: TComposeEval.cxx:183
Definition: TComposeEval.h:71
virtual bool isThreadSafe()
Definition: TComposeEval.cxx:162