25 vector<int>::iterator int_itr;
26 vector<float>::iterator fl_itr;
34 {this->
ErrorMessage(
"m_No_of_alarms_history does not the size of m_alarm_time_history");}
44 {this->
ErrorMessage(
"m_No_of_alarms_history does not the size of m_alarm_time_history");}
60 float denominator = 0;
63 bool add_to_timeline =
false;
67 vector<int>::iterator int_itr;
68 vector<float>::iterator fl_itr;
71 {this->
ErrorMessage(
"m_No_of_alarms_history does not equal to the size of m_alarm_time_history");}
79 denominator += exp(-0.461* (
r5pars_.timesno - (*fl_itr) ) );
87 denominator += exp(-0.461 * 0.5*
float(i));
101 add_to_timeline =
true;
106 if(vtu_pt->
m_fl != this->m_alarm_load_value)
107 {add_to_timeline =
true;}
113 cout <<
r5pars_.timesno <<
" " << str <<
" in ReasonMachine.cpp" <<
'\n';
114 ofstream fout(
"err messages.txt", ios::app);
115 fout <<
r5pars_.timesno <<
" " << str <<
'\n';
131 vector<int>::iterator int_itr;
132 vector<float>::iterator fl_itr;
141 {this->
ErrorMessage(
"this->m_No_of_alarms_history.size() > 0");}
143 {this->
ErrorMessage(
"this->m_alarm_time_history.size() > 0");}
145 {this->
ErrorMessage(
"this->m_passive_alarm_load_timeline.size() > 0");}
157 auto v = make_unique<ValueTimeLineUnit>();
158 v->CopyFromAnotherVTLU(
e.get());
void PopBackIfNecessary()
float GetAlarmLoadValue()
void AddNewDataPoint(int)
virtual ~PassiveAlarmLoadUnit()
void ErrorMessage(std::string)
std::vector< float > m_alarm_time_history
std::vector< int > m_No_of_alarms_history
std::vector< std::unique_ptr< ValueTimeLineUnit > > m_passive_alarm_load_timeline
void UpdatePassiveAlarmLoadValue()
void CopyFromAnotherPassiveAlarmLoadUnit(PassiveAlarmLoadUnit *)