← Documentation
ADS-IDAC Engine 5.0.0
DecisionActionObjective.cpp
Go to the documentation of this file.
1// DecisionActionObjective.cpp: implementation of the DecisionActionObjective class.
2//
4
6#include <boost/serialization/export.hpp>
7#include <boost/archive/binary_oarchive.hpp>
8#include <boost/archive/binary_iarchive.hpp>
9BOOST_CLASS_EXPORT_IMPLEMENT(DecisionActionObjective)
10using namespace std;
11
13// Construction/Destruction
15
17{
18 action_objective_name = "NONE";
19}
20
22{
23
24}
31}
33 related_action_pack.push_back(unique_ptr<DecisionActionPack>(_ap));
34}
36 related_action_pack.clear();
37}
39 fout << action_objective_name << '\n';
40 this->saveDecisionToFile(fout);
41 this->saveMentalInfoToFile(fout);
42}
45 this->retrieveDecisionFromFile(fin);
47}
49 bool matched = true;
50 if(!this->checkIfIsIdenticalDecision(_db) || !this->checkIfIsIdenticalMentalInfo(_db) ||
52 matched = false;
53 }
54 return matched;
55}
bool checkIfIsIdenticalDecisionActionObjective(DecisionActionObjective &)
void copyDecisionActionObjective(DecisionActionObjective &)
void setActionObjectiveName(std::string)
std::vector< std::unique_ptr< DecisionActionPack > > related_action_pack
void retrieveDecisionActionObjectiveFromFile(std::ifstream &)
void addActionPack(DecisionActionPack *)
void saveDecisionActionObjectiveToFile(std::ofstream &)
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