← Documentation
ADS-IDAC Engine 5.0.0
MentalParameterValue.cpp
Go to the documentation of this file.
1// MentalParameterValue.cpp: implementation of the MentalParameterValue class.
2//
4
6#include "../Global/TermConversions.h"
7#include "../Global/fmodule.h"
8#include <boost/serialization/export.hpp>
9#include <boost/archive/binary_oarchive.hpp>
10#include <boost/archive/binary_iarchive.hpp>
11BOOST_CLASS_EXPORT_IMPLEMENT(MentalParameterValue)
12using namespace std;
13
15// Construction/Destruction
17
19{
22}
23
27 this->setDisplayName(_dpv->getDisplayName());
33}
34
36{
37
38}
45}
47 double xtemp;
49 if (xtemp > -1e-30 && xtemp < 1e-30) {
50 xtemp = 0.0;
51 }
52 fout << xtemp << '\n'; this->saveMentalInfoToFile(fout);
53 this->saveDisplayElementToFile(fout);
54}
59}
61 bool matched = true;
62 if(!this->checkIfIsIdenticalDisplayElement(_mpv) || !this->checkIfIsIdenticalMentalInfo(_mpv) ||
64 matched = false;
65 }
66 return matched;
67}
document e
void saveDisplayElementToFile(std::ofstream &)
std::string getDisplayName()
void setTimeRequiredForCheckingThisDisplay(double)
std::string getCorrespondingSystemName()
bool checkIfIsIdenticalDisplayElement(DisplayElement &)
double getTimeRequiredForCheckingThisDisplay()
void setDisplayName(std::string)
std::string getCorrespondingSystemParameterName()
void retrieveDisplayElementFromFile(std::ifstream &)
void setCorrespondingSystemParameterUnit(std::string)
void copyDisplayElement(DisplayElement &)
void setCorrespondingSystemParameterName(std::string)
void setCorrespondingSystemName(std::string)
std::string getCorrespondingSystemParameterUnit()
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
void saveMentalParameterValueToFile(std::ofstream &)
void retrieveMentalParameterValueFromFile(std::ifstream &)
bool checkIfIsIdenticalMentalParameterValue(MentalParameterValue &)
void copyMentalParameterValue(MentalParameterValue &)
void setObservedParameterValue(double)
struct @0 r5pars_
constexpr int ParameterValue
Definition: SimConstants.h:286