English Français

Documentation / Manuel développeur

Modules disponibles

Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,   Uranie / ReLauncher: TRun.h Source File
Uranie / ReLauncher v4.9.0
/* @license-end */
TRun.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.4 $
22// $State$
24
32#ifndef __TRun__
33#define __TRun__
34
35//ROOT
36#include "Rtypes.h"
37
38// Uranie
39#include "Relauncher.h"
40#include "TEval.h"
41
42#define MASTERBLOCK(run) int mb; for((run).startSlave(), mb=0; (run).onMaster() && !mb ; (run).stopSlave(), mb++)
43
44namespace URANIE
45{
46namespace Relauncher
47{
48
49class TRun
50{
51public:
52 Int_t _ncpus;
53
54 virtual ~TRun()
55 {
56 }
57 ;
58
59 virtual TEval *getEval() =0;
60
61 virtual void startSlave() = 0;
62 virtual Bool_t onMaster() = 0;
63 virtual void stopSlave() = 0;
64
65 virtual void put(long, vector<URANIE::DataServer::UEntry*> *in, vector<URANIE::DataServer::UEntry*> *out, int icalc=0) = 0;
66 virtual Bool_t readyToGet() = 0;
67 virtual int get(long &) = 0;
68
69 ClassDef(URANIE::Relauncher::TRun, ID_RELAUNCHER)
70};
71
72}
73} //namespace
74
75#endif
evaluation dun jeu de parametres
Definition TEval.h:50
Definition TRun.h:50
virtual ~TRun()
Definition TRun.h:54
virtual void stopSlave()=0
virtual void startSlave()=0
virtual void put(long, vector< URANIE::DataServer::UEntry * > *in, vector< URANIE::DataServer::UEntry * > *out, int icalc=0)=0
virtual Bool_t onMaster()=0
virtual TEval * getEval()=0
Int_t _ncpus
Definition TRun.h:52
virtual int get(long &)=0
virtual Bool_t readyToGet()=0
Definition TBaseEval.cxx:44