← Documentation
ADS-IDAC Engine 5.0.0
AnalysisProcedureDataContainerUnit.cpp
Go to the documentation of this file.
1// AnalysisProcedureDataContainerUnit.cpp: implementation of the AnalysisProcedureDataContainerUnit 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(AnalysisProcedureDataContainerUnit)
10using namespace std;
11
13// Construction/Destruction
15
17{
18 time = -999.0;
19 operator_id = -999;
20 procedure_name = "None";
21 procedure_step = "None";
22 action_name = "None";
23 action_relevance = -999.0;
24 time_PIF = -999.0;
25 dynamic_multiplier = -999.0;
26 static_multiplier = -999.0;
27 skip_probability = -999.0;
28}
29
30
32{
33
34}
35
36
38{
39 this->action_name = _apdcu.getActionName();
40 this->action_relevance = _apdcu.getActionRelevance();
42 this->operator_id = _apdcu.getOperatorID();
43 this->procedure_name = _apdcu.getProcedureName();
44 this->procedure_step = _apdcu.getProcedureStep();
45 this->skip_probability = _apdcu.getSkipProbability();
47 this->time = _apdcu.getTime();
48 this->time_PIF = _apdcu.getTimePIF();
49}
50
52{
53 fout << time << ' '
54 << operator_id << ' '
55 << procedure_name << ' '
56 << procedure_step << ' '
57 << action_name << ' '
58 << action_relevance << ' '
59 << time_PIF << ' '
60 << dynamic_multiplier << ' '
61 << static_multiplier << ' '
62 << skip_probability << '\n';
63}
64
66{
67 fin >> time
73 >> time_PIF
77}
78
80{
81 string operator_type;
82
83 if (this->getOperatorID() == sim::Operator::ODM) {
84 operator_type = "ODM";
85 } else if (this->getOperatorID() == sim::Operator::OAT) {
86 operator_type = "OAT";
87 } else {
88 operator_type = "unknown";
89 }
90
91 fout << this->time << '\t'
92 << operator_type << '\t'
93 << this->procedure_name << '\t'
94 << this->procedure_step << '\t'
95 << this->action_name << '\t'
96 << this->action_relevance << '\t'
97 << this->time_PIF << '\t'
98 << this->dynamic_multiplier << '\t'
99 << this->static_multiplier << '\t'
100 << this->skip_probability << '\n';
101}
102
113
void copyAnalysisProcedureDataContainerUnit(AnalysisProcedureDataContainerUnit &)
constexpr int ODM
Definition: SimConstants.h:145
constexpr int OAT
Definition: SimConstants.h:144