English Français

Documentation / Manuel développeur

Modules disponibles

Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,   Uranie / ReLauncher: TComponentRun.h Source File
Uranie / ReLauncher  v4.10.0
/* @license-end */
TComponentRun.h
Go to the documentation of this file.
1 /* --- Ansi C --- */
3 // Copyright (C) 2013-2024 CEA/DES
4 //
5 // This program is free software: you can redistribute it and/or
6 // modify it under the terms of the GNU Lesser General Public License
7 // as published by the Free Software Foundation, either version 3 of
8 // the License, or any later version.
9 //
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU Lesser General Public License for more details.
14 //
15 // You should have received a copy of the GNU Lesser General Public
16 // License along with this program.
17 // if not, see <http://www.gnu.org/licenses/>.
19 
28 #ifndef __COMPONENTRUN__
29 #define __COMPONENTRUN__
30 
31 #include "TShareRun.h"
32 
33 #include "uranie_detection.h"
34 #ifdef Boost_COROUTINE_FOUND
35 #include <boost/coroutine2/coroutine.hpp>
36 using namespace boost::coroutines2;
37 #endif
38 
39 namespace URANIE
40 {
41 namespace Relauncher
42 {
43 
45 {
46 protected:
48 #ifdef Boost_COROUTINE_FOUND
49  coroutine<void>::push_type *_yield;
50 #endif
51 
52 public:
53 #ifdef Boost_COROUTINE_FOUND
54  TComponentRun(TEval *, coroutine<void>::push_type *);
55 #else
57 #endif
58  virtual ~TComponentRun(void);
59 
60  virtual void startSlave(void);
61  virtual void stopSlave(void);
62 
63  virtual int get(long &);
64 
65  int eval(vector<URANIE::DataServer::UEntry*> *,
66  vector<URANIE::DataServer::UEntry*> *, int =0);
67 
68  ClassDef(URANIE::Relauncher::TComponentRun, ID_RELAUNCHER)
69 };
70 
71 }} //namespace
72 
73 #endif
Definition: TBaseEval.cxx:44
Definition: TShareRun.h:83
TEval * _workfun
Definition: TComponentRun.h:47
Definition: TComponentRun.h:44
TRun base class.
Definition: TEval.h:49