← Documentation
ADS-IDAC Engine 5.0.0
BranchMentalProcedureActivationTimeUnit.cpp
Go to the documentation of this file.
1// BranchMentalProcedureActivationTimeUnit.cpp: implementation of the BranchMentalProcedureActivationTimeUnit 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(BranchMentalProcedureActivationTimeUnit)
10using namespace std;
11
13// Construction/Destruction
15
17{
18 mental_belief_name = "NONE";
19 mental_procedure_name = "NONE";
21}
22
24{
25
26}
27bool BranchMentalProcedureActivationTimeUnit::checkIfActivationBranchNeedsToBeGenerated(string _mental_belief_name,string _mental_procedure_name)
28{
29 bool generate_branches = false;
30 if (_mental_belief_name == mental_belief_name && _mental_procedure_name == mental_procedure_name)
31 {
32 generate_branches = true;
33 }
34 return generate_branches;
35}
43{
44 fin >> mental_belief_name
47}
49{
50 fout << mental_belief_name << ' '
51 << mental_procedure_name << ' '
52 << number_of_branches << '\n';
53}
55{
56 fin >> mental_belief_name
59}
61{
65}
void copyBranchMentalProcedureActivationTimeUnit(BranchMentalProcedureActivationTimeUnit &)