← Documentation
ADS-IDAC Engine 5.0.0
KBExpectedParameterTrendUnit.cpp
Go to the documentation of this file.
1// KBExpectedParameterTrendUnit.cpp: implementation of the KBExpectedParameterTrendUnit class.
2//
4
6#include "../Branch/BranchRecord.h"
7#include <boost/serialization/export.hpp>
8#include "../Global/SimulationContext.h"
9#include <boost/archive/binary_oarchive.hpp>
10#include <boost/archive/binary_iarchive.hpp>
11BOOST_CLASS_EXPORT_IMPLEMENT(KBExpectedParameterTrendUnit)
12using namespace std;
13
14
16// Construction/Destruction
18
20{
23}
24
26{
27
28}
31}
32int KBExpectedParameterTrendUnit::checkForMatch(string _par_name, int _par_trend){
33 int n_return = 0;
34// n_return = KBExpectedParameterValueUnit::checkForMatch(_par_name, _par_trend); //Y.L. commented out
35 return n_return;
36}
39}
41 fout << "KBExpectedParameterTrendUnit ";
43}
45 string str;
46 fin >> str;
47 if (str != "KBExpectedParameterTrendUnit"){
48 ofstream fout("err messages.txt", ios::app);
49 cout << "KBExpectedParameterTrendUnit::retrieveKBExpectedParameterTrendUnitFromFile error in previous function" << endl;
50 fout << r5pars_.timesno << " KBExpectedParameterTrendUnit::retrieveKBExpectedParameterTrendUnitFromFile error in previous function\n";
51 fout.close();
52 r5pars_.sim_err = true;
53 g_sim.Branch_center.setTempESMessage("KBExpectedParameterTrendUnit::retrieveKBExpectedParameterTrendUnitFromFile Prior error");
55 return;
56 }
58}
SimulationContext g_sim
Global simulation context: the single instance, defined in SimulationContext.cpp.
void setTempTypeOfConsequence(Consequence)
Stores the consequence of the end state the running sequence will get.
void setTempESMessage(std::string)
Stores the description of the end state the running sequence will get if it is terminated (set by mod...
void copyKBExpectedParameterTrendUnit(KBExpectedParameterTrendUnit &)
void retrieveKBExpectedParameterTrendUnitFromFile(std::ifstream &)
void saveKBExpectedParameterTrendUnitToFile(std::ofstream &)
void copyKBExpectedParameterValueUnit(KBExpectedParameterValueUnit &)
void saveKBExpectedParameterValueUnitToFile(std::ofstream &)
void retrieveKBExpectedParameterValueUnitFromFile(std::ifstream &)
struct @0 r5pars_
constexpr int ParameterTrend
Definition: SimConstants.h:287
constexpr int None
Definition: SimConstants.h:75
BranchRecord Branch_center
Dynamic event tree state.