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.9.0
/* @license-end */
TComposeEval.h
Go to the documentation of this file.
1
2// 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
43namespace URANIE
44{
45namespace Relauncher
46{
47
48class TSubEval: public TObject
49{
50protected:
52 int _dec;
53 std::vector<int> _select;
54 std::vector<int> _selectout;
55
56public:
58 virtual ~TSubEval();
59
60 TEval *getEval();
61 int freeze(Int_t, TObjArray &, TObjArray &, TObjArray &);
62 void match(TObjArray &);
63 void _rebuild(int, Bool_t);
64 TSubEval *rebuild(int, Bool_t);
65 void unbuild();
66 int eval(vector<URANIE::DataServer::UEntry*>*, vector<URANIE::DataServer::UEntry*>*, int =0 );
67
68};
69
71{
72protected:
73 TList *_eval;
74 TObjArray _const;
75 std::vector<double> _val;
77
78public:
80 virtual ~TComposeEval();
81
82 void addEval(TEval *);
83 void setEvals(Int_t, TEval *, ...);
84 void addConstantValue(URANIE::DataServer::TAttribute *, double);
85
86 virtual void freeze();
87 void _rebuild(int, Bool_t);
88 virtual TEval *rebuild(int rank, Bool_t chef = kTRUE);
89 virtual Bool_t unbuild();
90 virtual int eval(vector<URANIE::DataServer::UEntry*>*, vector<URANIE::DataServer::UEntry*>*, int =0 );
91
92 virtual bool isThreadSafe();
93
94 ClassDef(URANIE::Relauncher::TComposeEval, ID_RELAUNCHER)
95};
96
97}
98} //namespace
99
100#endif
implementation partage au TEval
Definition TComposeEval.h:71
virtual ~TComposeEval()
Definition TComposeEval.cxx:154
TObjArray _const
Definition TComposeEval.h:74
TComposeEval()
Definition TComposeEval.cxx:147
virtual void freeze()
Definition TComposeEval.cxx:205
void _rebuild(int, Bool_t)
Definition TComposeEval.cxx:249
void addConstantValue(URANIE::DataServer::TAttribute *, double)
Definition TComposeEval.cxx:198
int _allsize
Definition TComposeEval.h:76
virtual bool isThreadSafe()
Definition TComposeEval.cxx:160
virtual Bool_t unbuild()
Definition TComposeEval.cxx:273
virtual int eval(vector< URANIE::DataServer::UEntry * > *, vector< URANIE::DataServer::UEntry * > *, int=0)
Definition TComposeEval.cxx:285
virtual TEval * rebuild(int rank, Bool_t chef=kTRUE)
Definition TComposeEval.cxx:264
std::vector< double > _val
Definition TComposeEval.h:75
void addEval(TEval *)
Definition TComposeEval.cxx:174
void setEvals(Int_t, TEval *,...)
Definition TComposeEval.cxx:179
TList * _eval
Definition TComposeEval.h:73
Definition TEval.h:50
Definition TShareEval.h:52
Definition TComposeEval.h:49
int eval(vector< URANIE::DataServer::UEntry * > *, vector< URANIE::DataServer::UEntry * > *, int=0)
Definition TComposeEval.cxx:125
void _rebuild(int, Bool_t)
Definition TComposeEval.cxx:103
TEval * getEval()
Definition TComposeEval.cxx:51
std::vector< int > _selectout
Definition TComposeEval.h:54
TEval * _eval
Definition TComposeEval.h:51
void match(TObjArray &)
Definition TComposeEval.cxx:79
void unbuild()
Definition TComposeEval.cxx:116
int _dec
Definition TComposeEval.h:52
int freeze(Int_t, TObjArray &, TObjArray &, TObjArray &)
Definition TComposeEval.cxx:56
std::vector< int > _select
Definition TComposeEval.h:53
TSubEval * rebuild(int, Bool_t)
Definition TComposeEval.cxx:108
virtual ~TSubEval()
Definition TComposeEval.cxx:47
Definition TBaseEval.cxx:44