← Documentation
ADS-IDAC Engine 5.0.0
KeyParameterHistoryUnit.h
Go to the documentation of this file.
1#pragma once
2
3#include <iostream>
4#include <typeinfo>
5// KeyParameterHistoryUnit.h: interface for the KeyParameterHistoryUnit class.
6//
8
9#include <vector>
10#include <fstream>
11#include <boost/serialization/vector.hpp>
12#include <boost/serialization/access.hpp>
13#include <boost/serialization/export.hpp>
14#include <boost/archive/text_oarchive.hpp>
15#include <boost/archive/text_iarchive.hpp>
16
17
19{
20public:
23 void setCurrentTime(double);
24 double getCurrentTime();
25 void addDataSet();
26 void outputAllDataToFile(std::ofstream &);
27 void outputLabelToFile(std::ofstream &);
28 void outputUnitToFile(std::ofstream &);
30 int getNumOfData();
31 //
32 void outputAllDiagnosisDataToFile(std::ofstream &);
33 void outputDiagnosisLabelToFile(std::ofstream &);
34 void outputDiagnosisUnitToFile(std::ofstream &);
36 //
37 void outputAllPIFDataToFile(std::ofstream &);
38 void outputPIFLabelToFile(std::ofstream &);
39 void outputPIFUnitToFile(std::ofstream &);
40 int getPIFNumOfData();
41 //
43 void saveKeyParameterHistoryUnitToFile(std::ofstream &);
44 void retrieveKeyParameterHistoryUnitFromFile(std::ifstream &);
45 std::vector<double> parameter_value_array;
46 std::vector<double> parameter_trend_array;
47 std::vector<int> component_state_array;
48 std::vector<double> mesh_point_value_array;
52 // control states are stored as double (the other state arrays are int)
53 std::vector<double> control_state_array;
54 //
55 std::vector<double> control_value_array;
56 std::vector<double> ODM_hardwiredKB_confidence;
57 std::vector<double> OAT_hardwiredKB_confidence;
58 std::vector<double> ODM_symptom_confidence;
59 std::vector<double> OAT_symptom_confidence;
60 std::vector<double> ODM_event_confidence;
61 std::vector<double> OAT_event_confidence;
62 std::vector<double> ODM_event_lower_bound;
63 std::vector<double> OAT_event_lower_bound;
64 std::vector<double> ODM_event_upper_bound;
65 std::vector<double> OAT_event_upper_bound;
66 std::vector<double> ODM_safety_parameters;
67 std::vector<double> OAT_safety_parameters;
68 std::vector<double> ODM_time_constrained_load;
69 std::vector<double> OAT_time_constrained_load;
70 std::vector<double> ODM_information_load;
71 std::vector<double> OAT_information_load;
72 std::vector<double> ODM_RelapPIFs;
73 std::vector<double> OAT_RelapPIFs;
75 template<class Archive>
76 void serialize(Archive& ar, const unsigned int version) {
77// std::cout << "Serializing class: " << typeid(*this).name() << std::endl;
78 ar & current_time;
104 ar & ODM_RelapPIFs;
105 ar & OAT_RelapPIFs;
106 }
107private:
109};
110
111
112BOOST_CLASS_EXPORT_KEY(KeyParameterHistoryUnit)
std::vector< double > OAT_symptom_confidence
std::vector< int > alarm_component_state_array
void outputPIFLabelToFile(std::ofstream &)
std::vector< int > component_state_array
std::vector< double > OAT_RelapPIFs
std::vector< double > OAT_time_constrained_load
void outputUnitToFile(std::ofstream &)
std::vector< double > ODM_RelapPIFs
void outputLabelToFile(std::ofstream &)
void outputAllPIFDataToFile(std::ofstream &)
std::vector< double > ODM_event_lower_bound
std::vector< double > OAT_event_upper_bound
void outputPIFUnitToFile(std::ofstream &)
std::vector< double > ODM_information_load
std::vector< double > parameter_trend_array
std::vector< double > ODM_safety_parameters
std::vector< double > OAT_event_lower_bound
std::vector< double > OAT_hardwiredKB_confidence
void retrieveKeyParameterHistoryUnitFromFile(std::ifstream &)
std::vector< double > OAT_safety_parameters
void serialize(Archive &ar, const unsigned int version)
std::vector< double > ODM_event_upper_bound
std::vector< double > control_state_array
std::vector< double > control_value_array
void saveKeyParameterHistoryUnitToFile(std::ofstream &)
std::vector< int > alarm_parameter_value_array
std::vector< double > ODM_hardwiredKB_confidence
void outputDiagnosisLabelToFile(std::ofstream &)
void outputDiagnosisUnitToFile(std::ofstream &)
std::vector< double > mesh_point_value_array
std::vector< double > ODM_time_constrained_load
friend class boost::serialization::access
std::vector< double > OAT_information_load
void outputAllDiagnosisDataToFile(std::ofstream &)
void outputAllDataToFile(std::ofstream &)
std::vector< double > ODM_event_confidence
void copyKeyParameterHistoryUnit(KeyParameterHistoryUnit &)
std::vector< int > alarm_value_difference_array
std::vector< double > parameter_value_array
std::vector< double > ODM_symptom_confidence
std::vector< double > OAT_event_confidence