← Documentation
ADS-IDAC Engine 5.0.0
DecisionGoal.cpp
Go to the documentation of this file.
1// DecisionGoal.cpp: implementation of the DecisionGoal class.
2//
4
5#include "DecisionGoal.h"
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(DecisionGoal)
11using namespace std;
12
14// Construction/Destruction
16
18{
20}
21
23{
24
25}
29}
31 this->saveDecisionToFile(fout);
32 this->saveMentalInfoToFile(fout);
33}
35 this->retrieveDecisionFromFile(fin);
37}
39 bool matched = true;
40 if(!this->checkIfIsIdenticalDecision(_goal) || !this->checkIfIsIdenticalMentalInfo(_goal)) {
41 matched = false;
42 }
43 return matched;
44}
bool checkIfIsIdenticalDecisionGoal(DecisionGoal &)
void copyDecisionGoal(DecisionGoal &)
void saveDecisionGoalToFile(std::ofstream &)
virtual ~DecisionGoal()
void retrieveDecisionGoalFromFile(std::ifstream &)
void copyDecision(Decision &)
Definition: Decision.cpp:28
void saveDecisionToFile(std::ostream &)
Definition: Decision.cpp:32
void retrieveDecisionFromFile(std::istream &)
Definition: Decision.cpp:37
bool checkIfIsIdenticalDecision(Decision &)
Definition: Decision.cpp:41
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 Goal
Definition: SimConstants.h:190