|
ADS-IDAC Engine 5.0.0
|
#include <EventSchemaBase.h>
Public Attributes | |
| float | m_active_investigation_threshold |
| int | m_operator |
| float | m_diagnose_claim_threshold |
| float | m_timing |
| DiagnoseInvestigator * | m_timed_DI |
| std::string | m_ID_timed_DI |
| std::vector< std::unique_ptr< EventSchemaUnit > > | m_event_schema_list |
| std::vector< std::unique_ptr< DiagnoseInvestigator > > | m_diagnose_invest_list |
| std::vector< std::string > | m_debug_info |
| std::vector< Investigator * > | m_interested_invest_list |
| std::vector< InvestigatorLink * > | m_interested_invest_link_list |
| std::vector< std::string > | m_ID_interested_invest_list |
| std::vector< std::string > | m_ID_interested_invest_link_list |
Public Attributes inherited from IDElement | |
| int | m_ID_Type |
| std::string | m_ID |
Definition at line 13 of file EventSchemaBase.h.
| EventSchemaBase::EventSchemaBase | ( | ) |
Definition at line 28 of file EventSchemaBase.cpp.
References m_active_investigation_threshold, m_diagnose_claim_threshold, m_ID_timed_DI, IDElement::m_ID_Type, m_timed_DI, and m_timing.
|
virtual |
Definition at line 38 of file EventSchemaBase.cpp.
References m_debug_info, m_diagnose_invest_list, m_event_schema_list, m_ID_interested_invest_link_list, m_ID_interested_invest_list, m_interested_invest_link_list, and m_interested_invest_list.
| void EventSchemaBase::AddANewDiagnoseInvestigator | ( | DiagnoseInvestigator * | _diagnose_invest_pt | ) |
Definition at line 247 of file EventSchemaBase.cpp.
References m_diagnose_invest_list, DiagnoseInvestigator::m_ES_base_ID_pt, DiagnoseInvestigator::m_event_statement_pt, IDElement::m_ID, DiagnoseInvestigator::m_operator, m_operator, and r5pars_.
| void EventSchemaBase::AddNewSymptomCaseWithNewInvestigatorIfNecessary | ( | Investigator * | _invest_pt | ) |
Definition at line 740 of file EventSchemaBase.cpp.
References SymptomInvestigator::m_candidate_case_list, m_diagnose_invest_list, Investigator::m_KElement_ID_pt, KnowledgeElement::m_negation, SymptomInvestigator::m_opposite_KE_pt, Statement::m_sent_pt, KnowledgeElement::m_SentenceUnit_pt, Statement::m_state, Investigator::m_Statement_pt, DiagnoseInvestigator::m_symptom_invest_list, and SymptomInvestigator::m_symptom_KE_pt.
| void EventSchemaBase::BuildTheConnectionsForThisEventSchemaBase | ( | void * | _pt | ) |
Definition at line 988 of file EventSchemaBase.cpp.
References ErrorMessage(), FindDiagnoseInvestigatorByID(), ReasonMachine::FindInvestigatorByID(), ReasonMachine::FindInvestigatorLinkByID(), m_diagnose_invest_list, m_event_schema_list, m_ID_interested_invest_link_list, m_ID_interested_invest_list, m_ID_timed_DI, m_interested_invest_link_list, m_interested_invest_list, and m_timed_DI.
| void EventSchemaBase::ConvertStaticESBinfoToString | ( | ) |
Definition at line 844 of file EventSchemaBase.cpp.
References e, and m_event_schema_list.
| void EventSchemaBase::CopyESBinfoFromAnother | ( | EventSchemaBase * | _ESB_pt | ) |
Definition at line 852 of file EventSchemaBase.cpp.
References IDElement::CopyIDElementToRestartInfo(), e, ErrorMessage(), m_active_investigation_threshold, m_debug_info, m_diagnose_claim_threshold, m_diagnose_invest_list, m_event_schema_list, IDElement::m_ID, m_ID_interested_invest_link_list, m_ID_interested_invest_list, m_ID_timed_DI, m_interested_invest_link_list, m_interested_invest_list, m_operator, m_timed_DI, and m_timing.
| void EventSchemaBase::CrossCheckProcedureUse | ( | ) |
Definition at line 827 of file EventSchemaBase.cpp.
References e, m_diagnose_invest_list, m_operator, and sim::Operator::ODM.
| void EventSchemaBase::ErrorMessage | ( | std::string | ) |
Definition at line 239 of file EventSchemaBase.cpp.
References r5pars_.
Referenced by BuildTheConnectionsForThisEventSchemaBase(), CopyESBinfoFromAnother(), LinkNewInvestigatorToDiagnoseInvestigatorIfNecessary(), and ReadEventSchemaBaseFromInputFile().
| DiagnoseInvestigator * EventSchemaBase::FindACorrespondingDiagnoseInvestigatorByKE | ( | KnowledgeElement * | _KE_pt | ) |
Definition at line 268 of file EventSchemaBase.cpp.
References e, and m_diagnose_invest_list.
| EventSchemaUnit * EventSchemaBase::FindACorrespondingEventSchemaUnitByKE | ( | KnowledgeElement * | _KE_pt | ) |
Definition at line 282 of file EventSchemaBase.cpp.
References SimulationContext::Action_Taker, SimulationContext::Decision_Maker, e, ReasonMachine::FindAnIndefiniteSentenceMatchTheInputSentence(), g_sim, m_event_schema_list, ReasonMachine::m_IB, KnowledgeElement::m_negation, m_operator, Operator::m_RM, KnowledgeElement::m_SentenceUnit_pt, sim::Operator::OAT, and sim::Operator::ODM.
| DiagnoseInvestigator * EventSchemaBase::FindDiagnoseInvestigatorByID | ( | std::string | ) |
Definition at line 956 of file EventSchemaBase.cpp.
References e, and m_diagnose_invest_list.
Referenced by BuildTheConnectionsForThisEventSchemaBase().
| EventSchemaUnit * EventSchemaBase::FindEventSchemaUnitByID | ( | std::string | ) |
Definition at line 1042 of file EventSchemaBase.cpp.
References e, and m_event_schema_list.
| EventSymptomUnit * EventSchemaBase::FindEventSymptomUnitByID | ( | std::string | ) |
Definition at line 1054 of file EventSchemaBase.cpp.
References m_event_schema_list.
| SymptomInvestigator * EventSchemaBase::FindSymtomInvestigatorByID | ( | std::string | ) |
Definition at line 971 of file EventSchemaBase.cpp.
References m_diagnose_invest_list.
| bool EventSchemaBase::GenerateANewInvestigatorOrNot | ( | ) |
Definition at line 377 of file EventSchemaBase.cpp.
References SimulationContext::Action_Taker, ReasonMachine::AddNewInvestigator(), SymptomInvestigator::BoostTheActivationOfOngoingInvestigation(), Investigator::CrankTheActivationToOne(), SimulationContext::Decision_Maker, inv::FindMatchingStatement, g_sim, Investigator::m_active_investigation, SymptomInvestigator::m_attention_level, SymptomInvestigator::m_candidate_case_list, m_debug_info, m_diagnose_invest_list, Investigator::m_effective_end, Investigator::m_effective_start, DiagnoseInvestigator::m_event_KE_pt, Investigator::m_Happen, IDElement::m_ID, Investigator::m_interest_from_SymptomInvestigator, Investigator::m_invest_dormant, Investigator::m_investigator_token, Investigator::m_KElement_ID_pt, Investigator::m_motivation, SymptomInvestigator::m_need_to_invest_opposite_bl, Investigator::m_note, m_operator, Investigator::m_operator, SymptomInvestigator::m_opposite_KE_pt, SymptomInvestigator::m_rejected_case_list, Operator::m_RM, Investigator::m_root_of_a_thought_line, Investigator::m_SI_ID_pt, SymptomInvestigator::m_symptom_KE_pt, DiagnoseInvestigator::m_tbi_SI, m_timed_DI, m_timing, sim::Operator::OAT, sim::Operator::ODM, PrintMessage(), r5pars_, and inv::SearchPossibleCauses.
| void EventSchemaBase::LinkNewInvestigatorToDiagnoseInvestigatorIfNecessary | ( | Investigator * | _invest_pt | ) |
Definition at line 321 of file EventSchemaBase.cpp.
References ErrorMessage(), m_diagnose_invest_list, Investigator::m_KElement_ID_pt, Investigator::m_motivation, Statement::m_sent_pt, Statement::m_state, and Investigator::m_Statement_pt.
| void EventSchemaBase::PrintMessage | ( | std::string | str | ) |
Definition at line 815 of file EventSchemaBase.cpp.
References r5pars_.
Referenced by GenerateANewInvestigatorOrNot(), and RemoveAllTheCaseAssociatedWithAnInvestigator().
| void EventSchemaBase::ReadEventSchemaBaseFromInputFile | ( | ) |
Definition at line 50 of file EventSchemaBase.cpp.
References SimulationContext::Action_Taker, SimulationContext::All_procedure, SimulationContext::Decision_Maker, ErrorMessage(), ReasonMachine::FindKnowledgeElementByID(), ReasonMachine::FindKnowledgeUnitByID(), g_sim, Scheduler::getOATDirectory(), Scheduler::getODMDirectory(), Hamlet, HamletB, m_active_investigation_threshold, m_diagnose_claim_threshold, EventSchemaUnit::m_diagnose_claim_threshold, EventSchemaUnit::m_event_KE_pt, m_event_schema_list, IDElement::m_ID, EventSymptomUnit::m_KU_list, m_operator, ReasonMachine::m_problem_solving_style, EventSchemaUnit::m_procedure_name, EventSchemaUnit::m_procedure_step_name, EventSchemaUnit::m_procedure_step_pt, Operator::m_RM, EventSymptomUnit::m_symptom_KE_pt, EventSchemaUnit::m_symptom_list, sim::Operator::OAT, sim::Operator::ODM, Procedures::procedure_map, and SimulationContext::SScheduler.
| void EventSchemaBase::RemoveAllTheCaseAssociatedWithAnInvestigator | ( | IDElement * | _ID_pt | ) |
Definition at line 1087 of file EventSchemaBase.cpp.
References SymptomInvestigator::m_candidate_case_list, m_diagnose_invest_list, SymptomInvestigator::m_discarded_case_list, SymptomCase::m_finished_bl, Investigator::m_Happen, IDElement::m_ID, SymptomCase::m_ID_invest, SymptomCase::m_invest_pt, Investigator::m_KElement_ID_pt, SymptomInvestigator::m_last_case_end_time, SymptomInvestigator::m_rejected_case_list, SymptomCase::m_rejection_time, SymptomInvestigator::m_voided_case_list, SymptomInvestigator::MoveCaseFromCandidateTo(), PrintMessage(), r5pars_, and SymptomInvestigator::RemoveADeterminedCaseFromCandiateList().
| void EventSchemaBase::SaveAllDiagnoseInvestigatorInforToFile | ( | std::string | _path | ) |
Definition at line 573 of file EventSchemaBase.cpp.
References SymptomInvestigator::m_candidate_case_list, DiagnoseInvestigator::m_confidence, DiagnoseInvestigator::m_confidence_history, DiagnoseInvestigator::m_confidence_timeline, SymptomInvestigator::m_confirmed_case_list, DiagnoseInvestigator::m_coverage_list, m_debug_info, m_diagnose_invest_list, DiagnoseInvestigator::m_event_KE_pt, SymptomInvestigator::m_exception_case_list, IDElement::m_ID, SymptomInvestigator::m_inconsistant_case_list, SymptomInvestigator::m_independent_symptom_probability, DiagnoseInvestigator::m_Integrated_prob_list, DiagnoseInvestigator::m_N_disabled_list, DiagnoseInvestigator::m_N_setback_list, DiagnoseInvestigator::m_N_voided_list, DiagnoseInvestigator::m_other_evidence_list, SymptomInvestigator::m_rejected_case_list, DiagnoseInvestigator::m_symp_confidence_list, DiagnoseInvestigator::m_symptom_invest_list, SymptomInvestigator::m_symptom_KE_pt, and SymptomInvestigator::m_voided_case_list.
| void EventSchemaBase::TrackTheOngoingInvestigation | ( | ) |
Definition at line 363 of file EventSchemaBase.cpp.
References e, and m_diagnose_invest_list.
Referenced by UpdateTheInterestForInvestigatorOrInvestigatorLink().
| void EventSchemaBase::UpdateTheBranchingHistory | ( | void * | _pt | ) |
Definition at line 1070 of file EventSchemaBase.cpp.
References e, and m_diagnose_invest_list.
| void EventSchemaBase::UpdateTheInterestForInvestigatorOrInvestigatorLink | ( | ) |
Definition at line 371 of file EventSchemaBase.cpp.
References TrackTheOngoingInvestigation().
| bool EventSchemaBase::WhetherItIsNormalOperating | ( | ) |
Definition at line 1156 of file EventSchemaBase.cpp.
References e, and m_diagnose_invest_list.
| float EventSchemaBase::m_active_investigation_threshold |
Definition at line 19 of file EventSchemaBase.h.
Referenced by CopyESBinfoFromAnother(), EventSchemaBase(), and ReadEventSchemaBaseFromInputFile().
| std::vector<std::string> EventSchemaBase::m_debug_info |
Definition at line 51 of file EventSchemaBase.h.
Referenced by CopyESBinfoFromAnother(), GenerateANewInvestigatorOrNot(), SaveAllDiagnoseInvestigatorInforToFile(), boost::serialization::serialize(), and ~EventSchemaBase().
| float EventSchemaBase::m_diagnose_claim_threshold |
Definition at line 43 of file EventSchemaBase.h.
Referenced by CopyESBinfoFromAnother(), EventSchemaBase(), ReadEventSchemaBaseFromInputFile(), and boost::serialization::serialize().
| std::vector<std::unique_ptr<DiagnoseInvestigator> > EventSchemaBase::m_diagnose_invest_list |
Definition at line 50 of file EventSchemaBase.h.
Referenced by AddANewDiagnoseInvestigator(), AddNewSymptomCaseWithNewInvestigatorIfNecessary(), BuildTheConnectionsForThisEventSchemaBase(), CopyESBinfoFromAnother(), CrossCheckProcedureUse(), FindACorrespondingDiagnoseInvestigatorByKE(), FindDiagnoseInvestigatorByID(), FindSymtomInvestigatorByID(), GenerateANewInvestigatorOrNot(), LinkNewInvestigatorToDiagnoseInvestigatorIfNecessary(), RemoveAllTheCaseAssociatedWithAnInvestigator(), SaveAllDiagnoseInvestigatorInforToFile(), boost::serialization::serialize(), TrackTheOngoingInvestigation(), UpdateTheBranchingHistory(), WhetherItIsNormalOperating(), and ~EventSchemaBase().
| std::vector<std::unique_ptr<EventSchemaUnit> > EventSchemaBase::m_event_schema_list |
Definition at line 49 of file EventSchemaBase.h.
Referenced by BuildTheConnectionsForThisEventSchemaBase(), ConvertStaticESBinfoToString(), CopyESBinfoFromAnother(), FindACorrespondingEventSchemaUnitByKE(), FindEventSchemaUnitByID(), FindEventSymptomUnitByID(), ReadEventSchemaBaseFromInputFile(), boost::serialization::serialize(), and ~EventSchemaBase().
| std::vector<std::string> EventSchemaBase::m_ID_interested_invest_link_list |
Definition at line 57 of file EventSchemaBase.h.
Referenced by BuildTheConnectionsForThisEventSchemaBase(), CopyESBinfoFromAnother(), boost::serialization::serialize(), and ~EventSchemaBase().
| std::vector<std::string> EventSchemaBase::m_ID_interested_invest_list |
Definition at line 56 of file EventSchemaBase.h.
Referenced by BuildTheConnectionsForThisEventSchemaBase(), CopyESBinfoFromAnother(), boost::serialization::serialize(), and ~EventSchemaBase().
| std::string EventSchemaBase::m_ID_timed_DI |
Definition at line 47 of file EventSchemaBase.h.
Referenced by BuildTheConnectionsForThisEventSchemaBase(), CopyESBinfoFromAnother(), EventSchemaBase(), and boost::serialization::serialize().
| std::vector<InvestigatorLink *> EventSchemaBase::m_interested_invest_link_list |
Definition at line 54 of file EventSchemaBase.h.
Referenced by BuildTheConnectionsForThisEventSchemaBase(), CopyESBinfoFromAnother(), and ~EventSchemaBase().
| std::vector<Investigator *> EventSchemaBase::m_interested_invest_list |
Definition at line 53 of file EventSchemaBase.h.
Referenced by BuildTheConnectionsForThisEventSchemaBase(), CopyESBinfoFromAnother(), and ~EventSchemaBase().
| int EventSchemaBase::m_operator |
Definition at line 42 of file EventSchemaBase.h.
Referenced by AddANewDiagnoseInvestigator(), CopyESBinfoFromAnother(), CrossCheckProcedureUse(), FindACorrespondingEventSchemaUnitByKE(), GenerateANewInvestigatorOrNot(), ReadEventSchemaBaseFromInputFile(), and boost::serialization::serialize().
| DiagnoseInvestigator* EventSchemaBase::m_timed_DI |
Definition at line 46 of file EventSchemaBase.h.
Referenced by BuildTheConnectionsForThisEventSchemaBase(), CopyESBinfoFromAnother(), EventSchemaBase(), and GenerateANewInvestigatorOrNot().
| float EventSchemaBase::m_timing |
Definition at line 44 of file EventSchemaBase.h.
Referenced by CopyESBinfoFromAnother(), EventSchemaBase(), GenerateANewInvestigatorOrNot(), and boost::serialization::serialize().