← Documentation
ADS-IDAC Engine 5.0.0
DecisionSubGoal.cpp
Go to the documentation of this file.
1// DecisionSubGoal.cpp: implementation of the DecisionSubGoal class.
2//
4
5#include "DecisionSubGoal.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(DecisionSubGoal)
10using namespace std;
11
13// Construction/Destruction
15
17{
19}
20
22{
23
24}
28};
30 this->saveDecisionToFile(fout);
31 this->saveMentalInfoToFile(fout);
32}
34 this->retrieveDecisionFromFile(fin);
36}
38 bool matched = true;
39 if(!this->checkIfIsIdenticalDecision(_goal) || !this->checkIfIsIdenticalMentalInfo(_goal)) {
40 matched = false;
41 }
42 return matched;
43}
void saveDecisionSubGoalToFile(std::ofstream &)
bool checkIfIsIdenticalDecisionSubGoal(DecisionSubGoal &)
void retrieveDecisionSubGoalFromFile(std::ifstream &)
virtual ~DecisionSubGoal()
void copyDecisionSubGoal(DecisionSubGoal &)
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 SubGoal
Definition: SimConstants.h:191