← Documentation
ADS-IDAC Engine 5.0.0
DisplaySupportSystemState.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(DisplaySupportSystemState)
6using namespace std;
7
8//extern SupportSystemReliabilityModule Support_system_reliability;
9
15// ptr_to_corresponding_support_system = 0;
16}
17
19
20}
23}
24void DisplaySupportSystemState::setDisplayedSupportSystemOperationalState(int displayed_support_system_operational_state) {
26}
29}
30void DisplaySupportSystemState::setDisplayedSupportSystemOperationalStateWhenFail(int displayed_support_system_operational_state_when_fail) {
33}
35 std::string display_name, str;
36 fin >> display_name >> str;
37 this->setDisplayName(display_name);
38 if (str == "ON") {
41 } else if (str == "OFF") {
44 } else if (str == "OPEN") {
47 } else if (str == "CLOSE") {
50 } else {}
51}
54 if (failure_probability == 1.0) {
56 } else {
65 }
66 }
67 } else {
69 }
70
71}
72
76 this->copySystemDisplay(_dsss);
77}
79 this->saveSystemDisplayToFile(fout);
81 << '\n';
82}
86}
void setDisplayName(std::string)
std::string display_name
void setCorrespondingSystemParameterUnit(std::string)
int getDisplayedSupportSystemOperationalStateWhenFail() const
void updateDisplayedSupportSystemOperationalState(double failure_probability)
void saveDisplaySupportSystemStateToFile(std::ofstream &)
void setDisplayedSupportSystemOperationalState(int displayed_support_system_operational_state)
void readInfoFromFile(std::ifstream &fin)
void copyDisplaySupportSystemState(DisplaySupportSystemState &)
void retrieveDisplaySupportSystemStateFromFile(std::ifstream &)
void setDisplayedSupportSystemOperationalStateWhenFail(int displayed_support_system_operational_state_when_fail)
void setTypeOfDisplay(DisplayType type)
int getFunctionalState()
void saveSystemDisplayToFile(std::ofstream &)
void retrieveSystemDisplayFromFile(std::ifstream &)
void copySystemDisplay(SystemDisplay &)
constexpr int On
Definition: SimConstants.h:105
constexpr int Off
Definition: SimConstants.h:106
constexpr int Succeed
Definition: SimConstants.h:104
constexpr int Open
Definition: SimConstants.h:116
constexpr int Close
Definition: SimConstants.h:117