← Documentation
ADS-IDAC Engine 5.0.0
MentalComponentState.cpp
Go to the documentation of this file.
1// MentalComponentState.cpp: implementation of the MentalComponentState class.
2//
4
6#include "../Global/TermConversions.h"
7#include <boost/serialization/export.hpp>
8#include <boost/archive/binary_oarchive.hpp>
9#include <boost/archive/binary_iarchive.hpp>
10BOOST_CLASS_EXPORT_IMPLEMENT(MentalComponentState)
11using namespace std;
12
14// Construction/Destruction
16
18{
21}
22
24{
25
26}
33}
35 fout << observed_component_state << '\n';
36 this->saveMentalInfoToFile(fout);
37 this->saveDisplayElementToFile(fout);
38}
43}
45 bool matched = true;
46 if(!this->checkIfIsIdenticalDisplayElement(_mcs) || !this->checkIfIsIdenticalMentalInfo(_mcs) ||
48 matched = false;
49 }
50 return matched;
51}
void saveDisplayElementToFile(std::ofstream &)
bool checkIfIsIdenticalDisplayElement(DisplayElement &)
void retrieveDisplayElementFromFile(std::ifstream &)
void copyDisplayElement(DisplayElement &)
bool checkIfIsIdenticalMentalComponentState(MentalComponentState &)
void retrieveMentalComponentStateFromFile(std::ifstream &)
void copyMentalComponentState(MentalComponentState &)
void saveMentalComponentStateToFile(std::ofstream &)
void retrieveMentalInfoFromFile(std::ifstream &)
Definition: MentalInfo.cpp:37
bool checkIfIsIdenticalMentalInfo(MentalInfo &)
Definition: MentalInfo.cpp:40
void copyMentalInfo(MentalInfo &)
Definition: MentalInfo.cpp:30
void saveMentalInfoToFile(std::ofstream &)
Definition: MentalInfo.cpp:34
void setTypeOfMentalInfo(int)
Definition: MentalInfo.cpp:28
constexpr int ComponentState
Definition: SimConstants.h:285
constexpr int None
Definition: SimConstants.h:75