← Documentation
ADS-IDAC Engine 5.0.0
ProcedureExpectedParameterTrendUnit.cpp
Go to the documentation of this file.
1// ProcedureExpectedParameterTrendUnit.cpp: implementation of the ProcedureExpectedParameterTrendUnit class.
2//
4
6using namespace std;
7
9// Construction/Destruction
11
13{
15}
16
18{
19
20}
24 string name;
25 int info_type, trend, logical_relation;
26 double t_minimum, alpha_weibull, beta_weibull, par1, par2, next_OR;;
27 fin >> name >> info_type >> t_minimum >> alpha_weibull >> beta_weibull
28 >> trend >> logical_relation >> par1 >> par2 >> next_OR;
29 this->setInfoName(name);
30 //this->setBothTotalTimeRequiredAndRemainingTime(required_time);
31 this->setT_Minimum(t_minimum);
32 this->setAlpha_Weibull(alpha_weibull);
33 this->setBeta_Weibull(beta_weibull);
34 this->setLogicalRelation(logical_relation);
35 this->setExpectedValue1(par1);
36 this->setExpectedValue2(par2);
37 this->setORLink(next_OR);
38 this->setUseNewInfo(info_type);
39}
41 int info_type, trend, logical_relation, next_OR;
42 double t_minimum, alpha_weibull, beta_weibull, par1, par2;
43 fin >> info_type >> t_minimum >> alpha_weibull >> beta_weibull
44 >> trend >> logical_relation >> par1 >> par2 >> next_OR;
45 //this->setBothTotalTimeRequiredAndRemainingTime(required_time);
46 this->setT_Minimum(t_minimum);
47 this->setAlpha_Weibull(alpha_weibull);
48 this->setBeta_Weibull(beta_weibull);
49 this->setLogicalRelation(logical_relation);
50 this->setExpectedValue1(par1);
51 this->setExpectedValue2(par2);
52 this->setORLink(next_OR);
53 this->setUseNewInfo(info_type);
54}
57 Timer::copyTimer((Timer &) _pep);
60}
63 this->saveTimerToFile(fout);
65 fout << use_new_info << '\n';
66}
69 this->retrieveTimerFromFile(fin);
71 fin >> use_new_info;
72}
73
74
75#include <boost/archive/binary_oarchive.hpp>
76#include <boost/archive/binary_iarchive.hpp>
77
78void ProcedureExpectedParameterTrendUnit::state_save(boost::archive::binary_oarchive& ar) const {
81}
82void ProcedureExpectedParameterTrendUnit::state_load(boost::archive::binary_iarchive& ar) {
85}
virtual void state_load(boost::archive::binary_iarchive &ar)
virtual void state_save(boost::archive::binary_oarchive &ar) const
void setInfoName(std::string)
Definition: KBElement.cpp:25
void copyKBExpectedParameterTrendUnit(KBExpectedParameterTrendUnit &)
void retrieveKBExpectedParameterTrendUnitFromFile(std::ifstream &)
void saveKBExpectedParameterTrendUnitToFile(std::ofstream &)
void copyProcedureExpectedParameterTrendUnit(ProcedureExpectedParameterTrendUnit &)
void state_save(boost::archive::binary_oarchive &ar) const override
void state_load(boost::archive::binary_iarchive &ar) override
Definition: Timer.h:17
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 timer_state_save(Archive &ar) const
Definition: Timer.h:22
void setBeta_Weibull(double)
Definition: Timer.cpp:36
double t_minimum
Definition: Timer.h:76
double beta_weibull
Definition: Timer.h:74
void setAlpha_Weibull(double)
Definition: Timer.cpp:34
void timer_state_load(Archive &ar)
Definition: Timer.h:26
constexpr int None
Definition: SimConstants.h:75