← Documentation
ADS-IDAC Engine 5.0.0
MentalControl.cpp
Go to the documentation of this file.
1// MentalControl.cpp: implementation of the MentalControl class.
2//
4
5#include "MentalControl.h"
6#include <boost/serialization/export.hpp>
7#include <boost/archive/binary_oarchive.hpp>
8#include <boost/archive/binary_iarchive.hpp>
9BOOST_CLASS_EXPORT_IMPLEMENT(MentalControl)
10using namespace std;
11
12
14// Construction/Destruction
16
18{
21}
22
24{
25
26}
30 this->copyControlElement(*_ce);
31}
35 this->copyControlElement(_mcp);
36 this->copyMentalInfo(_mcp);
38}
40 fout << perceived_control_value << '\n';
41 this->saveMentalInfoToFile(fout);
42 this->saveControlElementToFile(fout);
43}
48}
50 bool matched = true;
53 matched = false;
54 }
55 return matched;
56}
void saveControlElementToFile(std::ofstream &)
void retrieveControlElementFromFile(std::ifstream &)
void copyControlElement(ControlElement &)
bool checkIfIsIdenticalControlElement(ControlElement &)
void copyMentalControl(MentalControl &)
void retrieveMentalControlFromFile(std::ifstream &)
void setPerceivedControlValue(double)
void saveMentalControlToFile(std::ofstream &)
double getPerceivedControlValue()
virtual ~MentalControl()
double perceived_control_value
Definition: MentalControl.h:44
bool checkIfIsIdenticalMentalControl(MentalControl &)
void retrieveMentalInfoFromFile(std::ifstream &)
Definition: MentalInfo.cpp:37
void setTimeAtWhichThisInfoIsPerceived(double)
Definition: MentalInfo.cpp:26
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
struct @0 r5pars_
constexpr int Control
Definition: SimConstants.h:111