← Documentation
ADS-IDAC Engine 5.0.0
MentalRepresentation Class Reference

#include <MentalRepresentation.h>

Public Member Functions

void BuildConnectionsForMentalRepresentation (void *)
 
IDElement * FindMRUnitByID (std::string)
 
void CopyMentalRepresentationFromAnother (MentalRepresentation *)
 
void UpdateMRwithNewInference (Statement *)
 
void SaveMentalRepresentationInforToFile (std::string _path)
 
void ErrorMessage (std::string)
 
void FirstRoundCheckOftheMR ()
 
IDElement * CheckExistenceByConceptName (std::string)
 
IDElement * CheckExistenceByConceptStrict (IDElement *)
 
IDElement * CheckExistenceByIndicationName (std::string)
 
void ReadMentalRepresentationtInfoFromInputFile ()
 
 MentalRepresentation ()
 
virtual ~MentalRepresentation ()
 

Public Attributes

int m_operator
 
bool m_check_value_or_rate
 
bool m_first_round_initiated_bl
 
std::vector< std::unique_ptr< MRParameterUnit > > m_MRParameter_list
 
std::vector< std::unique_ptr< MRComponentStateUnit > > m_MRComponent_list
 
std::vector< std::unique_ptr< MRSupportSystemStateUnit > > m_MRSupportSystem_list
 
std::vector< std::unique_ptr< MRAlarmUnit > > m_MRAlarm_list
 
decltype(m_MRParameter_list) ::iterator m_MR_P_itr
 
decltype(m_MRComponent_list) ::iterator m_MR_C_itr
 
decltype(m_MRSupportSystem_list) ::iterator m_MR_SS_itr
 
decltype(m_MRAlarm_list) ::iterator m_MR_A_itr
 

Detailed Description

Definition at line 17 of file MentalRepresentation.h.

Constructor & Destructor Documentation

◆ MentalRepresentation()

MentalRepresentation::MentalRepresentation ( )

◆ ~MentalRepresentation()

MentalRepresentation::~MentalRepresentation ( )
virtual

Definition at line 33 of file MentalRepresentation.cpp.

Member Function Documentation

◆ BuildConnectionsForMentalRepresentation()

void MentalRepresentation::BuildConnectionsForMentalRepresentation ( void *  _pt)

◆ CheckExistenceByConceptName()

◆ CheckExistenceByConceptStrict()

IDElement * MentalRepresentation::CheckExistenceByConceptStrict ( IDElement *  _ID_pt)

Definition at line 354 of file MentalRepresentation.cpp.

References MRComponentStateUnit::m_Concept_ID_pt, MRParameterUnit::m_Concept_ID_pt, MRSupportSystemStateUnit::m_Concept_ID_pt, MRAlarmUnit::m_Concept_pt, IDElement::m_ID, m_MRAlarm_list, m_MRComponent_list, m_MRParameter_list, and m_MRSupportSystem_list.

Referenced by UpdateMRwithNewInference().

Here is the caller graph for this function:

◆ CheckExistenceByIndicationName()

◆ CopyMentalRepresentationFromAnother()

void MentalRepresentation::CopyMentalRepresentationFromAnother ( MentalRepresentation *  _MR_pt)

Definition at line 1294 of file MentalRepresentation.cpp.

References ErrorMessage(), m_check_value_or_rate, m_first_round_initiated_bl, m_MR_A_itr, m_MR_C_itr, m_MR_P_itr, m_MR_SS_itr, m_MRAlarm_list, m_MRComponent_list, m_MRParameter_list, m_MRSupportSystem_list, and m_operator.

Here is the call graph for this function:

◆ ErrorMessage()

void MentalRepresentation::ErrorMessage ( std::string  )

Definition at line 493 of file MentalRepresentation.cpp.

References r5pars_.

Referenced by CopyMentalRepresentationFromAnother(), ReadMentalRepresentationtInfoFromInputFile(), and UpdateMRwithNewInference().

Here is the caller graph for this function:

◆ FindMRUnitByID()

IDElement * MentalRepresentation::FindMRUnitByID ( std::string  )

◆ FirstRoundCheckOftheMR()

◆ ReadMentalRepresentationtInfoFromInputFile()

void MentalRepresentation::ReadMentalRepresentationtInfoFromInputFile ( )

Definition at line 37 of file MentalRepresentation.cpp.

References SimulationContext::Action_Taker, MRComponentStateUnit::Component_State_Indicator_ID, MRComponentStateUnit::Control_Value_Indicator_ID, SimulationContext::Decision_Maker, ErrorMessage(), g_sim, Scheduler::getOATDirectory(), Scheduler::getODMDirectory(), MRAlarmUnit::m_alarm_indicator_name, MRComponentStateUnit::m_change_threshold, ReasonMachine::m_Concept_Base, MRAlarmUnit::m_Concept_ID, MRComponentStateUnit::m_concept_ID, MRSupportSystemStateUnit::m_concept_ID, MRComponentStateUnit::m_Concept_ID_pt, MRParameterUnit::m_Concept_ID_pt, MRSupportSystemStateUnit::m_Concept_ID_pt, MRAlarmUnit::m_Concept_pt, MRComponentStateUnit::m_CS_type, MRParameterUnit::m_decrease_rate_threshold, MRParameterUnit::m_decrease_threshold, IDElement::m_ID, MRParameterUnit::m_increase_rate_threshold, MRParameterUnit::m_increase_threshold, m_MRAlarm_list, m_MRComponent_list, m_MRParameter_list, m_MRSupportSystem_list, m_operator, MRAlarmUnit::m_operator, MRComponentStateUnit::m_operator, MRParameterUnit::m_operator, MRSupportSystemStateUnit::m_operator, MRParameterUnit::m_parameter_concept_ID, MRParameterUnit::m_parameter_indicator_ID, MRParameterUnit::m_parameter_rate_indicator_ID, Operator::m_RM, sim::Operator::OAT, sim::Operator::ODM, SimulationContext::SScheduler, and MRSupportSystemStateUnit::Support_System_State_Indicator_ID.

Here is the call graph for this function:

◆ SaveMentalRepresentationInforToFile()

◆ UpdateMRwithNewInference()

void MentalRepresentation::UpdateMRwithNewInference ( Statement *  _statement_pt)

Definition at line 671 of file MentalRepresentation.cpp.

References SimulationContext::Action_Taker, ReasonMachine::AddANewStatement(), ReasonMachine::AddDeltaToCognitiveLoad(), ReasonMachine::AddDeltaToSystemDynamics(), ReasonMachine::AddNewInvestigator(), CheckExistenceByConceptStrict(), ReasonMachine::CheckExistInSemanticPoolBySentence(), SimulationContext::Decision_Maker, ErrorMessage(), g_sim, TimeRange::GetTimeBoundLater(), SentenceUnit::m_comparison_pt, ReasonMachine::m_Concept_Base, Statement::m_confidence, MRComponentStateUnit::m_CS_type, TimeRange::m_end_time, Statement::m_factual_type, MRComponentStateUnit::m_history_state, MRSupportSystemStateUnit::m_history_state, MRAlarmUnit::m_history_state_list, IDElement::m_ID_Type, Statement::m_investigator_ID_pt, m_operator, MRStateSchema::m_perceived_state, SentenceUnit::m_process_pt, MRAlarmUnit::m_recent_action_statement, MRComponentStateUnit::m_recent_action_statement, MRSupportSystemStateUnit::m_recent_action_statement, MRParameterUnit::m_recent_parameter_value, MRComponentStateUnit::m_recent_position_value, MRAlarmUnit::m_recent_state, MRComponentStateUnit::m_recent_state, MRSupportSystemStateUnit::m_recent_state, MRAlarmUnit::m_recent_state_statement, MRComponentStateUnit::m_recent_state_statement, MRSupportSystemStateUnit::m_recent_state_statement, MRParameterUnit::m_recent_trend, Operator::m_RM, Statement::m_sent_pt, SentenceUnit::m_sentence_type, TimeRange::m_start_time, Statement::m_state, SentenceUnit::m_state_pt, SentenceUnit::m_subject_pt, TimeRange::m_time_after, TimeRange::m_time_before, MRStateSchema::m_time_perceived, Statement::m_time_range, SentenceUnit::m_value, sim::Operator::OAT, sim::Operator::ODM, r5pars_, Statement::RefreshStatementEndTimeToCurrentTime(), and MRParameterUnit::UpdateTheRelevantInvestigator().

Here is the call graph for this function:

Member Data Documentation

◆ m_check_value_or_rate

bool MentalRepresentation::m_check_value_or_rate

◆ m_first_round_initiated_bl

bool MentalRepresentation::m_first_round_initiated_bl

◆ m_MR_A_itr

decltype(m_MRAlarm_list) ::iterator MentalRepresentation::m_MR_A_itr

◆ m_MR_C_itr

decltype(m_MRComponent_list) ::iterator MentalRepresentation::m_MR_C_itr

◆ m_MR_P_itr

decltype(m_MRParameter_list) ::iterator MentalRepresentation::m_MR_P_itr

◆ m_MR_SS_itr

decltype(m_MRSupportSystem_list) ::iterator MentalRepresentation::m_MR_SS_itr

◆ m_MRAlarm_list

◆ m_MRComponent_list

◆ m_MRParameter_list

◆ m_MRSupportSystem_list

◆ m_operator


The documentation for this class was generated from the following files: