]> Creatis software - bbtk.git/blob - packages/std/src/bbstdFindOptimalParam.h
#3278 BBTK Feature New Normal - FindOptimalParam Box
[bbtk.git] / packages / std / src / bbstdFindOptimalParam.h
1 //===== 
2 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
3 //===== 
4 #ifndef __bbstdFindOptimalParam_h_INCLUDED__
5 #define __bbstdFindOptimalParam_h_INCLUDED__
6
7 #include "bbstd_EXPORT.h"
8 #include "bbtkAtomicBlackBox.h"
9 #include "iostream"
10
11 namespace bbstd
12 {
13
14 class bbstd_EXPORT FindOptimalParam
15  : 
16    public bbtk::AtomicBlackBox
17 {
18   BBTK_BLACK_BOX_INTERFACE(FindOptimalParam,bbtk::AtomicBlackBox);
19 //===== 
20 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
21 //===== 
22   BBTK_DECLARE_INPUT(InitStart,double);
23   BBTK_DECLARE_INPUT(InitEnd,double);
24   BBTK_DECLARE_INPUT(MinDifference,double);
25   BBTK_DECLARE_INPUT(String,std::string);
26   BBTK_DECLARE_INPUT(TransferFile,std::string);
27   BBTK_DECLARE_OUTPUT(Result,double);
28   BBTK_PROCESS(Process);
29   void Process();
30
31         std::string Replace(std::string command, double value);
32         int             Evaluate( double value );
33
34
35 //===== 
36 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
37 //===== 
38 };
39
40 BBTK_BEGIN_DESCRIBE_BLACK_BOX(FindOptimalParam,bbtk::AtomicBlackBox);
41   BBTK_NAME("FindOptimalParam");
42   BBTK_AUTHOR("InfoDev");
43   BBTK_DESCRIPTION("No Description.");
44   BBTK_CATEGORY("empty");
45
46   BBTK_INPUT(FindOptimalParam,InitStart,"Initial Start",double,"");
47   BBTK_INPUT(FindOptimalParam,InitEnd,"(defalut 100) Initial End ",double,"");
48   BBTK_INPUT(FindOptimalParam,MinDifference,"(default 1) Minimum (End-Start) to stop iteration ",double,"");
49   BBTK_INPUT(FindOptimalParam,String,"String script evaluation (use 'XXvalueXX' to be optimice)",std::string,"");
50   BBTK_INPUT(FindOptimalParam,TransferFile,"File to check the difference",std::string,"");
51
52   BBTK_OUTPUT(FindOptimalParam,Result,"Find optimal parameter",double,"");
53
54
55 BBTK_END_DESCRIBE_BLACK_BOX(FindOptimalParam);
56 //===== 
57 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
58 //===== 
59 }
60 // EO namespace bbstd
61
62 #endif // __bbstdFindOptimalParam_h_INCLUDED__
63