Documentation / Manuel développeur
Modules disponibles
Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,  ![]()  | 
  
    Uranie / Launcher
    v4.10.0
    
   | 
 
Description of the class TCode. More...
#include <TCode.h>


Public Member Functions | |
Constructor and Destructor  | |
| TCode () | |
| Default constructor.  More... | |
| TCode (const TString &name, const TString &title) | |
| constructor with a name and a title  More... | |
| TCode (URANIE::DataServer::TDataServer *tds, TString scmd) | |
| Constructor from TDataServer and Command as string.  More... | |
| TCode (URANIE::Launcher::TCode &mycode) | |
| Copy constructor.  More... | |
| virtual | ~TCode () | 
| Default destructor.  More... | |
Get Input Files or Output Files  | |
| TInputFile * | getInputFile (TString sfile) | 
| Get the input file file from his name.  More... | |
| TInputFile * | getInputFile (Int_t nfile) | 
| Get the input file from his index.  More... | |
| TInputFile * | getLastInputFile () | 
| Get the last input file.  More... | |
| TOutputFile * | getOutputFile (Int_t nfile) | 
| Get the output file from his index.  More... | |
| TOutputFile * | getOutputFile (TString sfile) | 
| getOutputFile  More... | |
Setting and Getting attributs  | |
| void | setWorkingDirectory (TString sPathName="") | 
| Set the working directory.  More... | |
| TString | getWorkingDirectory () | 
| Get the working directory.  More... | |
| void | setReferenceDirectory (TString str) | 
| Set the reference directory where inputs no change are located.  More... | |
| TString | getReferenceDirectory () | 
| Get the reference directory where inputs no change are located.  More... | |
| void | setCommand (TString str) | 
| Set the code command.  More... | |
| TString | getCommand () | 
| Get the code command.  More... | |
| Int_t | getNOutputFiles () | 
| Get the number of output files.  More... | |
| Int_t | getNOutputAttributes () | 
| Get the number of output attributes.  More... | |
| Int_t | getNOutputAttributes (Int_t nfile) | 
| Get the number of output attributes in the output file given by his index.  More... | |
| Int_t | getNInputFiles () | 
| Get the number of input files.  More... | |
| Int_t | getNInputAttributes () | 
| Get the number of input attributes.  More... | |
| Int_t | getNInputAttributes (Int_t nfile) | 
| Get the number of input attributes in the input file given by his index.  More... | |
| URANIE::DataServer::TAttribute * | getInputAttribute (Int_t nfile, Int_t natt) | 
| Get an attribute of an input file.  More... | |
| URANIE::DataServer::TAttribute * | getAttribute (Int_t nfile, Int_t natt) | 
| Get an attribute of an output file.  More... | |
| TString | getInputVarNames () | 
| Get the names of the input variables separated by ":".  More... | |
| TString | getOutputVarNames () | 
| Get the names of the output variables separated by ":".  More... | |
| URANIE::DataServer::TDataServer * | getTDataServer () | 
| Get the pointer to the TDS.  More... | |
| void | setTDataServer (URANIE::DataServer::TDataServer *atds) | 
| Set the pointer to the TDS.  More... | |
Encapsulates a code  | |
The states of the TCode are follow:  
with 
  | |
| virtual void | runTest (Option_t *option="") | 
| Run a test for the code.  More... | |
| virtual void | initFileType (Option_t *option="") | 
| Init file typing.  More... | |
| virtual void | init (Option_t *option="") | 
| Init phase of the code.  More... | |
| virtual void | initRun (forkcode *fjob, Option_t *option="") | 
| virtual void | preTraitment (forkcode *fjob, Double_t *val, Int_t *index=NULL, Option_t *option="") | 
| Pre-traitment phase of the code.  More... | |
| virtual void | prepareEntries (forkcode *fjob, vector< URANIE::DataServer::UEntry *> *input) | 
| Pre-traitment phase of the code that deals with vectors/strings.  More... | |
| virtual void | preTraitment (forkcode *fjob, vector< URANIE::DataServer::UEntry *> *input, Option_t *option="") | 
| virtual void | run (forkcode *fjob, Option_t *option="") | 
| Run the code (bloquant)  More... | |
| virtual void | start (forkcode *fjob, Option_t *option="") | 
| Start to run the code (non bloquant)  More... | |
| virtual Bool_t | postTraitment (forkcode *fjob, Int_t &nout, Double_t *dvalout, Option_t *option="", TList *lstOut=NULL) | 
| Post-traitment phase of the code.  More... | |
| virtual Bool_t | postTraitment (forkcode *fjob, vector< URANIE::DataServer::UEntry *> *out, Option_t *option="") | 
| Post-traitment phase of the code that deals with vectors/strings.  More... | |
| virtual void | terminate (Option_t *option="") | 
| Terminate phase of the code.  More... | |
Manipulates the code  | |
| void | createDirectory (TString sPathName, TString sDirectoryName="") | 
| create the directory sPathName+"/"+sDirectoryName  More... | |
| virtual void | copyFiles (Option_t *option="") | 
| copyFiles  More... | |
| void | resetCurrentSimulation () | 
| resetCurrentSimulation  More... | |
| virtual void | cleanOutputFiles (forkcode *fjob, Option_t *option="") | 
| Cleans the output files.  More... | |
Adding Input and Output files  | |
| void | addInputFile (TInputFile *ifile) | 
| Add a TInputFile file.  More... | |
| void | addInputFile (TString str) | 
| Add an input file as a TString This input file does not contain input attributes. It is a mandatory input file for the code evaluation.  More... | |
| void | addOutputFile (TOutputFile *ifile) | 
| Add a TOutputFile file The TOutputFile file contains the output attributes of teh study.  More... | |
Printing Log  | |
| void | setLog () | 
| Force the log.  More... | |
| void | unsetLog () | 
| Force to desable the log.  More... | |
| void | changeLog () | 
| Swith the status of the log.  More... | |
| Bool_t | getLog () | 
| Get the status of the log.  More... | |
| virtual void | printLog (Option_t *option="") | 
| Print the log of the object/class.  More... | |
Public Attributes | |
protected attributes  | |
| protected TList * | _listOfInputFiles | 
| < vector of output files  More... | |
| TString | _sWorkingDirectory | 
| The Working directory.  More... | |
| TString | _sReferenceDirectory | 
| The Working directory.  More... | |
| TString | _sCommand | 
| The Command of the code.  More... | |
| Int_t | _nCurrentSimulation | 
| The Current number of simulation.  More... | |
| Int_t | _nOfInput | 
| The size of the vector listOfInput scanning input files.  More... | |
| Int_t | _nOfInputToSubstitute | 
| The size of the vector _nIndexOfInputToSubstitute.  More... | |
| Int_t * | _nIndexOfInputToSubstitute | 
| The vector of Index to Substitute.  More... | |
| Bool_t | _blog | 
| Boolean for edit the log.  More... | |
| URANIE::DataServer::TDataServer * | _tds | 
Detailed Description
Description of the class TCode.
To be written by the developper.
Constructor & Destructor Documentation
◆ TCode() [1/4]
| URANIE::Launcher::TCode::TCode | ( | ) | 
Default constructor.
Referenced by ClassImp().
◆ TCode() [2/4]
| URANIE::Launcher::TCode::TCode | ( | const TString & | name, | 
| const TString & | title | ||
| ) | 
constructor with a name and a title
- Parameters
 - 
  
name title  
◆ TCode() [3/4]
| URANIE::Launcher::TCode::TCode | ( | URANIE::DataServer::TDataServer * | tds, | 
| TString | scmd | ||
| ) | 
Constructor from TDataServer and Command as string.
- Parameters
 - 
  
tds scmd  
◆ TCode() [4/4]
| URANIE::Launcher::TCode::TCode | ( | URANIE::Launcher::TCode & | mycode | ) | 
Copy constructor.
- Parameters
 - 
  
mycode  
◆ ~TCode()
      
  | 
  virtual | 
Default destructor.
Referenced by ClassImp().
Member Function Documentation
◆ addInputFile() [1/2]
| void URANIE::Launcher::TCode::addInputFile | ( | TInputFile * | ifile | ) | 
◆ addInputFile() [2/2]
| void URANIE::Launcher::TCode::addInputFile | ( | TString | str | ) | 
Add an input file as a TString This input file does not contain input attributes. It is a mandatory input file for the code evaluation.
- Parameters
 - 
  
str  
◆ addOutputFile()
| void URANIE::Launcher::TCode::addOutputFile | ( | TOutputFile * | ifile | ) | 
Add a TOutputFile file The TOutputFile file contains the output attributes of teh study.
- Parameters
 - 
  
ifile  
Referenced by ClassImp().
◆ changeLog()
      
  | 
  inline | 
Swith the status of the log.
References _blog.
◆ cleanOutputFiles()
      
  | 
  virtual | 
◆ copyFiles()
      
  | 
  virtual | 
◆ createDirectory()
| void URANIE::Launcher::TCode::createDirectory | ( | TString | sPathName, | 
| TString | sDirectoryName = ""  | 
        ||
| ) | 
create the directory sPathName+"/"+sDirectoryName
- Parameters
 - 
  
sPathName sDirectoryName  
Referenced by ClassImp().
◆ getAttribute()
| URANIE::DataServer::TAttribute* URANIE::Launcher::TCode::getAttribute | ( | Int_t | nfile, | 
| Int_t | natt | ||
| ) | 
◆ getCommand()
      
  | 
  inline | 
Get the code command.
- Returns
 
References _sCommand.
Referenced by ClassImp(), URANIE::Launcher::TLauncherMulti::createJob(), and URANIE::Launcher::TLauncherByStep::run().
◆ getInputAttribute()
| URANIE::DataServer::TAttribute* URANIE::Launcher::TCode::getInputAttribute | ( | Int_t | nfile, | 
| Int_t | natt | ||
| ) | 
◆ getInputFile() [1/2]
| TInputFile* URANIE::Launcher::TCode::getInputFile | ( | TString | sfile | ) | 
◆ getInputFile() [2/2]
| TInputFile* URANIE::Launcher::TCode::getInputFile | ( | Int_t | nfile | ) | 
Get the input file from his index.
- Parameters
 - 
  
nfile  
- Returns
 
◆ getInputVarNames()
| TString URANIE::Launcher::TCode::getInputVarNames | ( | ) | 
◆ getLastInputFile()
| TInputFile* URANIE::Launcher::TCode::getLastInputFile | ( | ) | 
◆ getLog()
      
  | 
  inline | 
◆ getNInputAttributes() [1/2]
| Int_t URANIE::Launcher::TCode::getNInputAttributes | ( | ) | 
◆ getNInputAttributes() [2/2]
| Int_t URANIE::Launcher::TCode::getNInputAttributes | ( | Int_t | nfile | ) | 
Get the number of input attributes in the input file given by his index.
- Parameters
 - 
  
nfile  
- Returns
 
◆ getNInputFiles()
      
  | 
  inline | 
◆ getNOutputAttributes() [1/2]
| Int_t URANIE::Launcher::TCode::getNOutputAttributes | ( | ) | 
◆ getNOutputAttributes() [2/2]
| Int_t URANIE::Launcher::TCode::getNOutputAttributes | ( | Int_t | nfile | ) | 
Get the number of output attributes in the output file given by his index.
- Parameters
 - 
  
nfile  
- Returns
 
◆ getNOutputFiles()
      
  | 
  inline | 
◆ getOutputFile() [1/2]
| TOutputFile* URANIE::Launcher::TCode::getOutputFile | ( | Int_t | nfile | ) | 
◆ getOutputFile() [2/2]
| TOutputFile* URANIE::Launcher::TCode::getOutputFile | ( | TString | sfile | ) | 
getOutputFile
- Parameters
 - 
  
sfile  
- Returns
 
◆ getOutputVarNames()
| TString URANIE::Launcher::TCode::getOutputVarNames | ( | ) | 
◆ getReferenceDirectory()
      
  | 
  inline | 
Get the reference directory where inputs no change are located.
- Returns
 
References _sReferenceDirectory.
◆ getTDataServer()
      
  | 
  inline | 
◆ getWorkingDirectory()
      
  | 
  inline | 
◆ init()
      
  | 
  virtual | 
Init phase of the code.
- Parameters
 - 
  
option  
Reimplemented in URANIE::Launcher::TCodeFMU.
Referenced by ClassImp(), URANIE::Launcher::TLauncherByStep::preTreatment(), and URANIE::Launcher::TLauncherByStep::run().
◆ initFileType()
      
  | 
  virtual | 
◆ initRun()
      
  | 
  virtual | 
Reimplemented in URANIE::Launcher::TCodeFMU.
Referenced by ClassImp(), and URANIE::Launcher::TLauncherByStep::preTreatment().
◆ postTraitment() [1/2]
      
  | 
  virtual | 
Post-traitment phase of the code.
- Parameters
 - 
  
nout dvalout option lstOut  
- Returns
 
Referenced by ClassImp(), and URANIE::Launcher::TLauncherByStep::postTreatment().
◆ postTraitment() [2/2]
      
  | 
  virtual | 
Post-traitment phase of the code that deals with vectors/strings.
- Parameters
 - 
  
out option  
- Returns
 
◆ prepareEntries()
      
  | 
  virtual | 
Pre-traitment phase of the code that deals with vectors/strings.
- Parameters
 - 
  
n input option  
Referenced by ClassImp(), and URANIE::Launcher::TLauncherByStep::preTreatment().
◆ preTraitment() [1/2]
      
  | 
  virtual | 
Pre-traitment phase of the code.
- Parameters
 - 
  
n val index option  
Referenced by ClassImp(), and URANIE::Launcher::TLauncherByStep::preTreatment().
◆ preTraitment() [2/2]
      
  | 
  virtual | 
◆ printLog()
      
  | 
  virtual | 
Print the log of the object/class.
- Parameters
 - 
  
option  
Reimplemented in URANIE::Launcher::TCodeFMU.
Referenced by ClassImp().
◆ resetCurrentSimulation()
| void URANIE::Launcher::TCode::resetCurrentSimulation | ( | ) | 
resetCurrentSimulation
Creates the uranieLancher_0 subdirectory to store all the computation
Referenced by ClassImp().
◆ run()
      
  | 
  virtual | 
Run the code (bloquant)
- Parameters
 - 
  
option  
Referenced by ClassImp(), and URANIE::Launcher::TLauncherByStep::run().
◆ runTest()
      
  | 
  virtual | 
◆ setCommand()
      
  | 
  inline | 
◆ setLog()
      
  | 
  inline | 
Force the log.
References _blog.
◆ setReferenceDirectory()
      
  | 
  inline | 
Set the reference directory where inputs no change are located.
- Parameters
 - 
  
str  
References _sReferenceDirectory.
◆ setTDataServer()
      
  | 
  inline | 
◆ setWorkingDirectory()
| void URANIE::Launcher::TCode::setWorkingDirectory | ( | TString | sPathName = "" | ) | 
◆ start()
      
  | 
  virtual | 
Start to run the code (non bloquant)
- Parameters
 - 
  
option  
Reimplemented in URANIE::Launcher::TCodeFMU.
Referenced by ClassImp().
◆ terminate()
      
  | 
  virtual | 
Terminate phase of the code.
- Parameters
 - 
  
option  
Reimplemented in URANIE::Launcher::TCodeFMU.
Referenced by ClassImp().
◆ unsetLog()
      
  | 
  inline | 
Force to desable the log.
References _blog.
Member Data Documentation
◆ _blog
| Bool_t URANIE::Launcher::TCode::_blog | 
Boolean for edit the log.
Referenced by URANIE::Launcher::TCodeFMU::changeLog(), changeLog(), ClassImp(), URANIE::Launcher::TCodeFMU::getLog(), getLog(), URANIE::Launcher::TCodeFMU::setLog(), setLog(), URANIE::Launcher::TCodeFMU::unsetLog(), and unsetLog().
◆ _listOfInputFiles
| protected TList* URANIE::Launcher::TCode::_listOfInputFiles | 
◆ _nCurrentSimulation
| Int_t URANIE::Launcher::TCode::_nCurrentSimulation | 
The Current number of simulation.
Referenced by ClassImp().
◆ _nIndexOfInputToSubstitute
| Int_t* URANIE::Launcher::TCode::_nIndexOfInputToSubstitute | 
The vector of Index to Substitute.
Referenced by ClassImp().
◆ _nOfInput
| Int_t URANIE::Launcher::TCode::_nOfInput | 
The size of the vector listOfInput scanning input files.
Referenced by ClassImp().
◆ _nOfInputToSubstitute
| Int_t URANIE::Launcher::TCode::_nOfInputToSubstitute | 
The size of the vector _nIndexOfInputToSubstitute.
Referenced by ClassImp().
◆ _sCommand
| TString URANIE::Launcher::TCode::_sCommand | 
The Command of the code.
Referenced by ClassImp(), getCommand(), and setCommand().
◆ _sReferenceDirectory
| TString URANIE::Launcher::TCode::_sReferenceDirectory | 
The Working directory.
Referenced by ClassImp(), getReferenceDirectory(), and setReferenceDirectory().
◆ _sWorkingDirectory
| TString URANIE::Launcher::TCode::_sWorkingDirectory | 
The Working directory.
Referenced by ClassImp(), and getWorkingDirectory().
◆ _tds
| URANIE::DataServer::TDataServer* URANIE::Launcher::TCode::_tds | 
Referenced by ClassImp(), getTDataServer(), and setTDataServer().
            
            