8#include "../Crew/OperatorDM.h"
9#include "../Crew/OperatorAT.h"
12#include "../Global/SimulationContext.h"
208 double ratio1, ratio2;
222 ratio2 = pow(ratio1,
float(1/n));
228 ratio2 = pow(ratio1,
float(1/n));
234 ratio2 = pow(ratio1,
float(1/n));
240 ratio2 = pow(ratio1,
float(1/n));
247 ratio2 = pow(ratio1,
float(1/n));
274 RM_pt->
m_Concept_Base->m_BasicConcept_updated_list.push_back(B_pt);
279 RM_pt->
m_Concept_Base->m_ComposedConcept_updated_list.push_back(C_pt);
290 cout <<
"Time: " <<
r5pars_.timesno <<
":\n" << str <<
'\n';
293 ofstream fout(
"RMI.txt", ios::app);
294 fout <<
"\n" <<
"Time: " <<
r5pars_.timesno <<
":\n" << str <<
'\n';
320 if(label_sub_pt != NULL && label_obj_pt == NULL)
324 else if(label_sub_pt == NULL && label_obj_pt != NULL)
328 else if(label_sub_pt == NULL && label_obj_pt == NULL)
332 else if(label_sub_pt == label_obj_pt)
338 this->
ErrorMessage(this->
m_ID +
" has two labels, which is beyond the current source codes!");
345 cout <<
r5pars_.timesno <<
" " << str <<
" in SentenceUnit.cpp" <<
'\n';
346 ofstream fout(
"err messages.txt", ios::app);
347 fout <<
r5pars_.timesno <<
" " << str <<
'\n';
356 bool BiState_bl =
true;
Diagnostic reasoning engine — knowledge representation, mental model, and inference.
SimulationContext g_sim
Global simulation context: the single instance, defined in SimulationContext.cpp.
void ChangeActivationByRatio(float)
void UpdateTheBaseLineValueAfterAChange(float _decay_lamda)
void CopyActivationToRestartInfo(Activation *)
std::vector< IDElement * > m_antonym_list
IDElement * m_label_ID_pt
void CopyIDElementToRestartInfo(IDElement *)
std::unique_ptr< ReasonMachine > m_RM
std::unique_ptr< KBConcept > m_Concept_Base
std::string m_ID_comparison
void CopyStaticInfoFromAnotherSentence(SentenceUnit *)
void PrintMessage(std::string)
std::string m_ID_attribute
bool CheckMatchBySentence(SentenceUnit *)
bool WhetherItIsBiState()
double GetActivationChangeRatioByID(IDElement *)
void BuildTheConnectionsToThisSentence(void *)
IDElement * m_comparison_pt
void ErrorMessage(std::string)
void ActivationPropagationFromConceptBottomUp(int)
IDElement * GetLabelOfThisSentence()
void ConvertSentenceInfoToStringForm()
void ChangActivationOfConceptByID(IDElement *, double, int)
void CopyFromAnotherSentence(SentenceUnit *)
IDElement * m_attribute_pt
void PropagateActivationToConceptUnitsTopDown(int)
OperatorAT Action_Taker
Crew action execution model.
OperatorDM Decision_Maker
Crew decision-making model.