English Français

Documentation / Manuel développeur

Modules disponibles

Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,   Uranie / DataServer: TBaseModel.h Source File
Uranie / DataServer  v4.10.0
/* @license-end */
TBaseModel.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
6 // by 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$
22 // $State$
24 
44 #ifndef TBASEMODEL_H
45 #define TBASEMODEL_H
46 // ROOT
47 #include "TNamed.h"
48 
49 // URANIE
50 #include "DataServer.h"
51 
52 namespace URANIE
53 {
54 namespace DataServer
55 {
56 class TBaseModel: public TNamed
57 {
58 public:
59  enum ELanguage
60  {
62  };
63 private:
64  TString _sinput;
65  TString _shidden;
66  TString _soutput;
70  Int_t _niteration;
72  Int_t _nseed;
73 
74  Double_t _dlearn;
75 public:
76  TBaseModel();
77  TBaseModel(TString sinput, TString soutput);
78  TBaseModel(TString sname, TString sinput, TString shidden, TString soutput);
80  virtual ~TBaseModel();
81 
82  //---------------------------------------------
86  void setName(TString str)
87  {
88  SetName(str);
89  }
90  void setInput(TString str)
91  {
92  _sinput = str;
93  }
94  void setHidden(TString str)
95  {
96  _shidden = str;
97  }
98  void setOutput(TString str)
99  {
100  _soutput = str;
101  }
103  {
104  _nlanguage = val;
105  }
107  {
108  return _nlanguage;
109  }
110 
111  void initExport();
112  void setFileNameExport(TString str)
113  {
114  _sfileNameExport = str;
115  }
116  void setFunctionNameExport(TString str)
117  {
118  _sfunctionNameExport = str;
119  }
120  void setNIteration(Int_t n)
121  {
122  _niteration = n;
123  }
124  void setNInitialization(Int_t n)
125  {
126  _ninitialization = n;
127  }
128  void setSeed(Int_t n)
129  {
130  _nseed = n;
131  }
132  void setLearn(Double_t dval)
133  {
134  _dlearn = dval;
135  }
136 
137  TString getInput()
138  {
139  return _sinput;
140  }
141  TString getHidden()
142  {
143  return _shidden;
144  }
145  TString getOutput()
146  {
147  return _soutput;
148  }
150  {
151  return _niteration;
152  }
154  {
155  return _ninitialization;
156  }
157  Int_t getSeed()
158  {
159  return _nseed;
160  }
161  Double_t getLearn()
162  {
163  return _dlearn;
164  }
166 
167  //---------------------------------------------
171  void printLog(Option_t *option = "");
173 
174  ClassDef(URANIE::DataServer::TBaseModel, ID_DATASERVER)
175  //Classe de
176 };
177 
178 } // Fin du namespace DataServer
179 } // Fin du namespace URANIE
180 #endif
ROOT.
Definition: TAttribute.h:104
Int_t getNIteration()
Definition: TBaseModel.h:149
void setFunctionNameExport(TString str)
Definition: TBaseModel.h:116
void setOutput(TString str)
Definition: TBaseModel.h:98
virtual ~TBaseModel()
Default destructor.
TString _sfileNameExport
Definition: TBaseModel.h:68
Int_t _ninitialization
Definition: TBaseModel.h:71
void setSeed(Int_t n)
Definition: TBaseModel.h:128
ELanguage
Definition: TBaseModel.h:59
void setLearn(Double_t dval)
Definition: TBaseModel.h:132
TString _soutput
Definition: TBaseModel.h:66
ELanguage getLanguage()
Definition: TBaseModel.h:106
ELanguage _nlanguage
Definition: TBaseModel.h:67
TString _shidden
Definition: TBaseModel.h:65
Double_t _dlearn
Definition: TBaseModel.h:74
void setLanguage(ELanguage val)
Definition: TBaseModel.h:102
Int_t getSeed()
Definition: TBaseModel.h:157
TString getInput()
Definition: TBaseModel.h:137
Definition: TBaseModel.h:61
TString getOutput()
Definition: TBaseModel.h:145
TString getHidden()
Definition: TBaseModel.h:141
TString _sfunctionNameExport
Definition: TBaseModel.h:69
TString _sinput
Definition: TBaseModel.h:64
Int_t _nseed
Definition: TBaseModel.h:72
void printLog(Option_t *option="")
Definition: TBaseModel.h:61
Definition: TBaseModel.h:61
void setFileNameExport(TString str)
Definition: TBaseModel.h:112
Definition: TBaseModel.h:61
void setNInitialization(Int_t n)
Definition: TBaseModel.h:124
Double_t getLearn()
Definition: TBaseModel.h:161
void setInput(TString str)
Definition: TBaseModel.h:90
Description of the class TBaseModel.
Definition: TBaseModel.h:56
void setName(TString str)
Definition: TBaseModel.h:86
Int_t _niteration
Definition: TBaseModel.h:70
void setHidden(TString str)
Definition: TBaseModel.h:94
Int_t getNInitialization()
Definition: TBaseModel.h:153
void setNIteration(Int_t n)
Definition: TBaseModel.h:120