← Documentation
ADS-IDAC Engine 5.0.0
ProcedureScannedParameterUnit.cpp
Go to the documentation of this file.
1// ProcedureScannedParameterUnit.cpp: implementation of the ProcedureScannedParameterUnit class.
2//
4
6#include <boost/serialization/export.hpp>
7#include <boost/archive/binary_oarchive.hpp>
8#include <boost/archive/binary_iarchive.hpp>
9BOOST_CLASS_EXPORT_IMPLEMENT(ProcedureScannedParameterUnit)
10using namespace std;
11
13// Construction/Destruction
15
17{
18 scan_priority = -999;
20}
21
23{
24
25}
26
31
33{
34 double minimum_time, alpha_weibull, beta_weibull;
35 double a_beta, b_beta;
36 string parameter_name;
37 int n_expectation;
38 fin >> parameter_name >> type_of_scanned_parameter >> scan_priority
39 >> minimum_time >> alpha_weibull >> beta_weibull
40 >> a_beta >> b_beta >> n_expectation;
41
42 this->setInfoName(parameter_name);
43 //
44 // set timing parameters (three parameter Weibull Distribution)
45 this->setT_Minimum(minimum_time);
46 this->setAlpha_Weibull(alpha_weibull);
47 this->setBeta_Weibull(beta_weibull);
48 //
49 // set Beta Distribution parameters for skipped steps
50 this->setAlpha_Parameter(a_beta);
51 this->setBeta_Parameter(b_beta);
52 return n_expectation;
53}
54
56{
59 this->copyKBElement(_pspu);
60 this->copyTimer(_pspu);
61 this->copyProbability(_pspu);
62}
63
65 fout << scan_priority << ' '
67 this->saveKBElementToFile(fout);
68 this->saveTimerToFile(fout);
69 this->saveProbabilityToFile(fout);
70}
71
75 this->retrieveTimerFromFile(fin);
77}
void setInfoName(std::string)
Definition: KBElement.cpp:25
void retrieveKBElementFromFile(std::ifstream &)
Definition: KBElement.cpp:36
void saveKBElementToFile(std::ofstream &)
Definition: KBElement.cpp:33
void copyKBElement(KBElement &)
Definition: KBElement.cpp:30
void copyProbability(Probability &)
Definition: Probability.cpp:28
void setBeta_Parameter(double)
Definition: Probability.cpp:46
void saveProbabilityToFile(std::ofstream &)
Definition: Probability.cpp:34
void retrieveProbabilityFromFile(std::ifstream &)
Definition: Probability.cpp:39
void setAlpha_Parameter(double)
Definition: Probability.cpp:44
void copyProcedureScannedParameterUnit(ProcedureScannedParameterUnit &)
void retrieveProcedureScannedParameterUnitFromFile(std::ifstream &)
void saveProcedureScannedParameterUnitToFile(std::ofstream &)
void saveTimerToFile(std::ofstream &)
Definition: Timer.cpp:54
void retrieveTimerFromFile(std::ifstream &)
Definition: Timer.cpp:59
void copyTimer(Timer &)
Definition: Timer.cpp:44
double alpha_weibull
Definition: Timer.h:75
void setT_Minimum(double)
Definition: Timer.cpp:38
void setBeta_Weibull(double)
Definition: Timer.cpp:36
double beta_weibull
Definition: Timer.h:74
void setAlpha_Weibull(double)
Definition: Timer.cpp:34
constexpr int None
Definition: SimConstants.h:75