← Documentation
ADS-IDAC Engine 5.0.0
ProcedureExpectedSupportSystemStateUnit.cpp
Go to the documentation of this file.
2#include <boost/serialization/export.hpp>
3#include <boost/archive/binary_oarchive.hpp>
4#include <boost/archive/binary_iarchive.hpp>
5BOOST_CLASS_EXPORT_IMPLEMENT(ProcedureExpectedSupportSystemStateUnit)
6using namespace std;
7
9{
11}
12
14{
15
16}
20 string name;
21 int info_type, state, next_OR;
23 fin >> name >> info_type >> t_minimum >> alpha_weibull >> beta_weibull
24 >> state >> next_OR;
25 this->setInfoName(name);
26 //this->setBothTotalTimeRequiredAndRemainingTime(remaining_time);
27 this->setT_Minimum(t_minimum);
28 this->setAlpha_Weibull(alpha_weibull);
29 this->setBeta_Weibull(beta_weibull);
30 this->setExpectedState(state);
31 this->setORLink(next_OR);
32 this->setUseNewInfo(info_type);
33}
35 int info_type, state, next_OR;
37 fin >> info_type >> t_minimum >> alpha_weibull >> beta_weibull
38 >> state >> next_OR;
39 //this->setBothTotalTimeRequiredAndRemainingTime(remaining_time);
40 this->setT_Minimum(t_minimum);
41 this->setAlpha_Weibull(alpha_weibull);
42 this->setBeta_Weibull(beta_weibull);
43 this->setExpectedState(state);
44 this->setORLink(next_OR);
45 this->setUseNewInfo(info_type);
46}
49 Timer::copyTimer((Timer &) _pess);
52}
55 this->saveTimerToFile(fout);
57 fout << use_new_info << '\n';
58}
61 this->retrieveTimerFromFile(fin);
63 fin >> use_new_info;
64}
65#include <boost/archive/binary_oarchive.hpp>
66#include <boost/archive/binary_iarchive.hpp>
67
68void ProcedureExpectedSupportSystemStateUnit::state_save(boost::archive::binary_oarchive& ar) const {
71}
72void ProcedureExpectedSupportSystemStateUnit::state_load(boost::archive::binary_iarchive& ar) {
75}
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 copyKBExpectedSupportSystemStateUnit(KBExpectedSupportSystemStateUnit &)
void retrieveKBExpectedSupportSystemStateUnitFromFile(std::ifstream &)
void state_load(boost::archive::binary_iarchive &ar) override
void copyProcedureExpectedSupportSystemStateUnit(ProcedureExpectedSupportSystemStateUnit &)
void state_save(boost::archive::binary_oarchive &ar) const 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