|
ADS-IDAC Engine 5.0.0
|
#include <MRComponentStateUnit.h>
Public Attributes | |
| int | m_CS_type |
| int | m_operator |
| float | m_change_threshold |
| std::unique_ptr< MRValueSchema > | m_recent_position_value |
| std::unique_ptr< MRStateSchema > | m_recent_state |
| std::vector< std::unique_ptr< MRStateSchema > > | m_history_state |
| std::vector< std::unique_ptr< MRValueSchema > > | m_history_position_value |
| IDElement * | m_Concept_ID_pt |
| Statement * | m_recent_action_statement |
| Statement * | m_recent_state_statement |
| std::string | m_concept_ID |
| std::string | m_ID_recent_action_statement |
| std::string | m_ID_recent_state_statement |
| std::string | Control_Value_Indicator_ID |
| std::string | Component_State_Indicator_ID |
Public Attributes inherited from IDElement | |
| int | m_ID_Type |
| std::string | m_ID |
Definition at line 17 of file MRComponentStateUnit.h.
| MRComponentStateUnit::MRComponentStateUnit | ( | ) |
Definition at line 26 of file MRComponentStateUnit.cpp.
References Component_State_Indicator_ID, Control_Value_Indicator_ID, m_change_threshold, m_concept_ID, m_Concept_ID_pt, m_ID_recent_action_statement, m_ID_recent_state_statement, IDElement::m_ID_Type, m_recent_action_statement, and m_recent_state_statement.
|
virtual |
Definition at line 44 of file MRComponentStateUnit.cpp.
References m_history_position_value, and m_history_state.
| void MRComponentStateUnit::AddNewPositionValue | ( | float | _position, |
| int | _operator, | ||
| bool | _expecting | ||
| ) |
Definition at line 238 of file MRComponentStateUnit.cpp.
References SimulationContext::Action_Taker, ReasonMachine::ActivationUpdateByRefreshAStatement(), ReasonMachine::AddANewStatement(), ReasonMachine::AddDeltaToCognitiveLoad(), ReasonMachine::AddDeltaToSystemDynamics(), ReasonMachine::AddNewInvestigator(), ReasonMachine::CheckExistInSemanticPoolBySentence(), Control_Value_Indicator_ID, SimulationContext::Decision_Maker, g_sim, Investigator::GetSemanticSentenceOfThisInvestigator(), ReasonMachine::m_Concept_Base, m_Concept_ID_pt, m_history_position_value, Statement::m_investigator_ID_pt, m_operator, SentenceUnit::m_process_pt, m_recent_action_statement, m_recent_position_value, Operator::m_RM, Investigator::m_root_of_a_thought_line, Statement::m_sent_pt, SentenceUnit::m_sentence_type, Investigator::m_Statement_pt, SentenceUnit::m_subject_pt, ReasonMachine::m_working_on_invest_pt, sim::Operator::OAT, sim::Operator::ODM, PrintMessage(), r5pars_, Statement::RefreshStatementEndTimeToCurrentTime(), and UpdateTheRelevantInvestigator().
Referenced by ReasonMachine::OneStepInterpretation20().
| void MRComponentStateUnit::AddNewPositionValueForFirstRoundCheck | ( | float | _position, |
| int | _operator | ||
| ) |
Definition at line 454 of file MRComponentStateUnit.cpp.
References SimulationContext::Action_Taker, ReasonMachine::ActivationUpdateByRefreshAStatement(), ReasonMachine::AddANewStatement(), ReasonMachine::CheckExistInSemanticPoolBySentence(), Control_Value_Indicator_ID, SimulationContext::Decision_Maker, g_sim, ReasonMachine::m_Concept_Base, m_Concept_ID_pt, m_history_position_value, SentenceUnit::m_process_pt, m_recent_action_statement, m_recent_position_value, Operator::m_RM, Statement::m_sent_pt, SentenceUnit::m_sentence_type, SentenceUnit::m_subject_pt, sim::Operator::OAT, sim::Operator::ODM, PrintMessage(), r5pars_, and Statement::RefreshStatementEndTimeToCurrentTime().
| void MRComponentStateUnit::AddNewState | ( | int | _state, |
| int | _operator, | ||
| bool | _expecting | ||
| ) |
Definition at line 50 of file MRComponentStateUnit.cpp.
References SimulationContext::Action_Taker, ReasonMachine::ActivationUpdateByRefreshAStatement(), ReasonMachine::AddANewStatement(), ReasonMachine::AddDeltaToCognitiveLoad(), ReasonMachine::AddDeltaToSystemDynamics(), ReasonMachine::AddNewInvestigator(), ReasonMachine::CheckExistInSemanticPoolBySentence(), sim::State::Close, Component_State_Indicator_ID, SimulationContext::Decision_Maker, g_sim, Investigator::GetSemanticSentenceOfThisInvestigator(), ReasonMachine::m_Concept_Base, m_Concept_ID_pt, m_history_state, Statement::m_investigator_ID_pt, m_operator, SentenceUnit::m_process_pt, m_recent_action_statement, m_recent_state, m_recent_state_statement, Operator::m_RM, Statement::m_sent_pt, SentenceUnit::m_sentence_type, SentenceUnit::m_state_pt, Investigator::m_Statement_pt, SentenceUnit::m_subject_pt, Statement::m_tbi_bl, ReasonMachine::m_working_on_invest_pt, sim::Operator::OAT, sim::Operator::ODM, sim::State::Off, sim::State::On, sim::State::Open, PrintMessage(), r5pars_, Statement::RefreshStatementEndTimeToCurrentTime(), and UpdateTheRelevantInvestigator().
Referenced by ReasonMachine::OneStepInterpretation20().
| void MRComponentStateUnit::AddNewStateForFirstRoundCheck | ( | int | _state, |
| int | _operator | ||
| ) |
Definition at line 542 of file MRComponentStateUnit.cpp.
References SimulationContext::Action_Taker, ReasonMachine::ActivationUpdateByRefreshAStatement(), ReasonMachine::AddANewStatement(), ReasonMachine::CheckExistInSemanticPoolBySentence(), sim::State::Close, Component_State_Indicator_ID, SimulationContext::Decision_Maker, g_sim, ReasonMachine::m_Concept_Base, m_Concept_ID_pt, m_history_state, SentenceUnit::m_process_pt, m_recent_action_statement, m_recent_state, m_recent_state_statement, Operator::m_RM, SentenceUnit::m_sentence_type, SentenceUnit::m_state_pt, SentenceUnit::m_subject_pt, Statement::m_tbi_bl, sim::Operator::OAT, sim::Operator::ODM, sim::State::Off, sim::State::On, sim::State::Open, PrintMessage(), r5pars_, and Statement::RefreshStatementEndTimeToCurrentTime().
Referenced by ReasonMachine::FirstRoundCheckInterpretation().
| void MRComponentStateUnit::BuildConnectionsForThisMRComponentState | ( | void * | _pt | ) |
Definition at line 1121 of file MRComponentStateUnit.cpp.
References ErrorMessage(), ReasonMachine::FindStatementByID(), ReasonMachine::m_Concept_Base, m_concept_ID, m_Concept_ID_pt, m_ID_recent_action_statement, m_ID_recent_state_statement, m_recent_action_statement, and m_recent_state_statement.
| MRStateSchema * MRComponentStateUnit::CheckComponentStateWithinTimeRange | ( | float | _start, |
| float | _end | ||
| ) |
Definition at line 692 of file MRComponentStateUnit.cpp.
References e, m_history_state, and m_recent_state.
| MRStateSchema * MRComponentStateUnit::CheckLastComponentStateReadingBeforeATime | ( | float | _start | ) |
Definition at line 713 of file MRComponentStateUnit.cpp.
References m_history_state, and m_recent_state.
Referenced by Investigator::WhetherItIsAvailablefromMR3003().
| MRValueSchema * MRComponentStateUnit::CheckPositionReadingWithinTimeRange | ( | double | _start, |
| double | _end | ||
| ) |
Definition at line 415 of file MRComponentStateUnit.cpp.
References m_CS_type, m_history_position_value, and m_recent_position_value.
| MRStateSchema * MRComponentStateUnit::CheckTheFirstComponentStateReadingAfterATime | ( | float | _end | ) |
Definition at line 739 of file MRComponentStateUnit.cpp.
References e, m_history_state, and m_recent_state.
Referenced by Investigator::WhetherItIsAvailablefromMR3003().
| void MRComponentStateUnit::CopyMRComponentStateInfoFromAnother | ( | MRComponentStateUnit * | _s_pt | ) |
Definition at line 1069 of file MRComponentStateUnit.cpp.
References Component_State_Indicator_ID, Control_Value_Indicator_ID, IDElement::CopyIDElementToRestartInfo(), e, m_change_threshold, m_concept_ID, m_Concept_ID_pt, m_CS_type, m_history_position_value, m_history_state, IDElement::m_ID, m_ID_recent_action_statement, m_ID_recent_state_statement, m_operator, m_recent_action_statement, m_recent_position_value, m_recent_state, and m_recent_state_statement.
| void MRComponentStateUnit::ErrorMessage | ( | std::string | str | ) |
Definition at line 881 of file MRComponentStateUnit.cpp.
References r5pars_.
Referenced by BuildConnectionsForThisMRComponentState(), FindAPositionReadingConsistantWithASentenceWithinTimeRange(), and FindAPositionReadingInconsitantWithASentenceWithinTimeRange().
| MRValueSchema * MRComponentStateUnit::FindAPositionReadingConsistantWithASentenceWithinTimeRange | ( | float | _start, |
| float | _end, | ||
| SentenceUnit * | _sent_pt | ||
| ) |
Definition at line 760 of file MRComponentStateUnit.cpp.
References SimulationContext::Action_Taker, SimulationContext::Decision_Maker, ErrorMessage(), g_sim, SentenceUnit::m_comparison_pt, ReasonMachine::m_Concept_Base, SentenceUnit::m_delta_value, m_history_position_value, m_operator, MRValueSchema::m_perceived_value, m_recent_position_value, Operator::m_RM, SentenceUnit::m_sentence_type, MRValueSchema::m_time_perceived, SentenceUnit::m_value, sim::Operator::OAT, and sim::Operator::ODM.
Referenced by Investigator::WhetherItIsAvailablefromMR3003().
| MRValueSchema * MRComponentStateUnit::FindAPositionReadingInconsitantWithASentenceWithinTimeRange | ( | float | _start, |
| float | _end, | ||
| SentenceUnit * | _sent_pt | ||
| ) |
Definition at line 890 of file MRComponentStateUnit.cpp.
References SimulationContext::Action_Taker, SimulationContext::Decision_Maker, ErrorMessage(), g_sim, SentenceUnit::m_comparison_pt, ReasonMachine::m_Concept_Base, SentenceUnit::m_delta_value, m_history_position_value, m_operator, MRValueSchema::m_perceived_value, m_recent_position_value, Operator::m_RM, SentenceUnit::m_sentence_type, MRValueSchema::m_time_perceived, SentenceUnit::m_value, sim::Operator::OAT, and sim::Operator::ODM.
Referenced by Investigator::WhetherItIsAvailablefromMR3003().
| MRValueSchema * MRComponentStateUnit::FindTheFirstPositionReadingAfterATime | ( | float | _end | ) |
Definition at line 1042 of file MRComponentStateUnit.cpp.
References e, m_history_position_value, m_recent_position_value, and MRValueSchema::m_time_perceived.
Referenced by Investigator::WhetherItIsAvailablefromMR3003().
| MRValueSchema * MRComponentStateUnit::FindTheLastPositionReadingBeforeATime | ( | float | _start | ) |
Definition at line 1011 of file MRComponentStateUnit.cpp.
References m_history_position_value, m_recent_position_value, and MRValueSchema::m_time_perceived.
Referenced by Investigator::WhetherItIsAvailablefromMR3003().
| MRValueSchema * MRComponentStateUnit::FoundAPositionReadingWithinTimeRange | ( | float | _start, |
| float | _end | ||
| ) |
Definition at line 360 of file MRComponentStateUnit.cpp.
References e, m_history_position_value, and m_recent_position_value.
Referenced by ReasonMachine::CheckWhetherASentenceIsTrueFromMR().
| void MRComponentStateUnit::PrintMessage | ( | std::string | ) |
Definition at line 682 of file MRComponentStateUnit.cpp.
References r5pars_.
Referenced by AddNewPositionValue(), AddNewPositionValueForFirstRoundCheck(), AddNewState(), and AddNewStateForFirstRoundCheck().
| void MRComponentStateUnit::ReadComponentStateIndication | ( | double | _timer | ) |
Definition at line 392 of file MRComponentStateUnit.cpp.
References SimulationContext::Action_Taker, Operator::ActiveFetchComponentStateInfo(), Operator::ActiveFetchParameterValueInfo(), Component_State_Indicator_ID, Control_Value_Indicator_ID, SimulationContext::Decision_Maker, g_sim, m_CS_type, m_operator, sim::Operator::OAT, and sim::Operator::ODM.
Referenced by MentalRepresentation::FirstRoundCheckOftheMR(), Investigator::RequestInfoFromControlPanelReading3006(), and RoutineMonitor::WorkOnASelectedUnit12().
| void MRComponentStateUnit::UpdateTheRelevantInvestigator | ( | int | _operator | ) |
Definition at line 1157 of file MRComponentStateUnit.cpp.
References SimulationContext::Action_Taker, SimulationContext::Decision_Maker, ReasonMachine::FindInvestigatorByID(), g_sim, Statement::m_ID_investigator, Investigator::m_investigation_closed, Investigator::m_investigator_token, Investigator::m_last_active_time, m_recent_action_statement, m_recent_state_statement, Operator::m_RM, sim::Operator::OAT, sim::Operator::ODM, r5pars_, and Investigator::ReopenThisInvestigator().
Referenced by AddNewPositionValue(), and AddNewState().
| std::string MRComponentStateUnit::Component_State_Indicator_ID |
Definition at line 65 of file MRComponentStateUnit.h.
Referenced by AddNewState(), AddNewStateForFirstRoundCheck(), MentalRepresentation::CheckExistenceByIndicationName(), CopyMRComponentStateInfoFromAnother(), MRComponentStateUnit(), ReasonMachine::OneStepInterpretation20(), ReadComponentStateIndication(), MentalRepresentation::ReadMentalRepresentationtInfoFromInputFile(), Investigator::RequestInfoFromControlPanelReading3006(), boost::serialization::serialize(), and RoutineMonitor::WorkOnASelectedUnit12().
| std::string MRComponentStateUnit::Control_Value_Indicator_ID |
Definition at line 64 of file MRComponentStateUnit.h.
Referenced by AddNewPositionValue(), AddNewPositionValueForFirstRoundCheck(), MentalRepresentation::CheckExistenceByIndicationName(), CopyMRComponentStateInfoFromAnother(), MRComponentStateUnit(), ReasonMachine::OneStepInterpretation20(), ReadComponentStateIndication(), MentalRepresentation::ReadMentalRepresentationtInfoFromInputFile(), Investigator::RequestInfoFromControlPanelReading3006(), boost::serialization::serialize(), and RoutineMonitor::WorkOnASelectedUnit12().
| float MRComponentStateUnit::m_change_threshold |
Definition at line 47 of file MRComponentStateUnit.h.
Referenced by CopyMRComponentStateInfoFromAnother(), MRComponentStateUnit(), MentalRepresentation::ReadMentalRepresentationtInfoFromInputFile(), and boost::serialization::serialize().
| std::string MRComponentStateUnit::m_concept_ID |
Definition at line 60 of file MRComponentStateUnit.h.
Referenced by BuildConnectionsForThisMRComponentState(), CopyMRComponentStateInfoFromAnother(), MRComponentStateUnit(), MentalRepresentation::ReadMentalRepresentationtInfoFromInputFile(), and boost::serialization::serialize().
| IDElement* MRComponentStateUnit::m_Concept_ID_pt |
Definition at line 56 of file MRComponentStateUnit.h.
Referenced by AddNewPositionValue(), AddNewPositionValueForFirstRoundCheck(), AddNewState(), AddNewStateForFirstRoundCheck(), BuildConnectionsForThisMRComponentState(), MentalRepresentation::CheckExistenceByConceptName(), MentalRepresentation::CheckExistenceByConceptStrict(), CopyMRComponentStateInfoFromAnother(), MRComponentStateUnit(), ReasonMachine::OneStepInterpretation20(), MentalRepresentation::ReadMentalRepresentationtInfoFromInputFile(), and MentalRepresentation::SaveMentalRepresentationInforToFile().
| int MRComponentStateUnit::m_CS_type |
Definition at line 45 of file MRComponentStateUnit.h.
Referenced by CheckPositionReadingWithinTimeRange(), CopyMRComponentStateInfoFromAnother(), RoutineMonitorUnit::GetLastUpdateTime(), ReasonMachine::OneStepInterpretation20(), ReadComponentStateIndication(), MentalRepresentation::ReadMentalRepresentationtInfoFromInputFile(), Investigator::RequestInfoFromControlPanelReading3006(), MentalRepresentation::SaveMentalRepresentationInforToFile(), boost::serialization::serialize(), MentalRepresentation::UpdateMRwithNewInference(), and RoutineMonitor::WorkOnASelectedUnit12().
| std::vector<std::unique_ptr<MRValueSchema> > MRComponentStateUnit::m_history_position_value |
Definition at line 54 of file MRComponentStateUnit.h.
Referenced by AddNewPositionValue(), AddNewPositionValueForFirstRoundCheck(), CheckPositionReadingWithinTimeRange(), CopyMRComponentStateInfoFromAnother(), FindAPositionReadingConsistantWithASentenceWithinTimeRange(), FindAPositionReadingInconsitantWithASentenceWithinTimeRange(), FindTheFirstPositionReadingAfterATime(), FindTheLastPositionReadingBeforeATime(), FoundAPositionReadingWithinTimeRange(), MentalRepresentation::SaveMentalRepresentationInforToFile(), boost::serialization::serialize(), and ~MRComponentStateUnit().
| std::vector<std::unique_ptr<MRStateSchema> > MRComponentStateUnit::m_history_state |
Definition at line 53 of file MRComponentStateUnit.h.
Referenced by AddNewState(), AddNewStateForFirstRoundCheck(), CheckComponentStateWithinTimeRange(), CheckLastComponentStateReadingBeforeATime(), CheckTheFirstComponentStateReadingAfterATime(), CopyMRComponentStateInfoFromAnother(), MentalRepresentation::SaveMentalRepresentationInforToFile(), boost::serialization::serialize(), MentalRepresentation::UpdateMRwithNewInference(), and ~MRComponentStateUnit().
| std::string MRComponentStateUnit::m_ID_recent_action_statement |
Definition at line 61 of file MRComponentStateUnit.h.
Referenced by BuildConnectionsForThisMRComponentState(), CopyMRComponentStateInfoFromAnother(), MRComponentStateUnit(), and boost::serialization::serialize().
| std::string MRComponentStateUnit::m_ID_recent_state_statement |
Definition at line 62 of file MRComponentStateUnit.h.
Referenced by BuildConnectionsForThisMRComponentState(), CopyMRComponentStateInfoFromAnother(), MRComponentStateUnit(), and boost::serialization::serialize().
| int MRComponentStateUnit::m_operator |
Definition at line 46 of file MRComponentStateUnit.h.
Referenced by AddNewPositionValue(), AddNewState(), CopyMRComponentStateInfoFromAnother(), FindAPositionReadingConsistantWithASentenceWithinTimeRange(), FindAPositionReadingInconsitantWithASentenceWithinTimeRange(), ReadComponentStateIndication(), MentalRepresentation::ReadMentalRepresentationtInfoFromInputFile(), and boost::serialization::serialize().
| Statement* MRComponentStateUnit::m_recent_action_statement |
Definition at line 57 of file MRComponentStateUnit.h.
Referenced by AddNewPositionValue(), AddNewPositionValueForFirstRoundCheck(), AddNewState(), AddNewStateForFirstRoundCheck(), BuildConnectionsForThisMRComponentState(), CopyMRComponentStateInfoFromAnother(), MRComponentStateUnit(), MentalRepresentation::UpdateMRwithNewInference(), and UpdateTheRelevantInvestigator().
| std::unique_ptr<MRValueSchema> MRComponentStateUnit::m_recent_position_value |
Definition at line 50 of file MRComponentStateUnit.h.
Referenced by AddNewPositionValue(), AddNewPositionValueForFirstRoundCheck(), CheckPositionReadingWithinTimeRange(), CopyMRComponentStateInfoFromAnother(), FindAPositionReadingConsistantWithASentenceWithinTimeRange(), FindAPositionReadingInconsitantWithASentenceWithinTimeRange(), FindTheFirstPositionReadingAfterATime(), FindTheLastPositionReadingBeforeATime(), FoundAPositionReadingWithinTimeRange(), RoutineMonitorUnit::GetLastUpdateTime(), MentalRepresentation::SaveMentalRepresentationInforToFile(), boost::serialization::serialize(), and MentalRepresentation::UpdateMRwithNewInference().
| std::unique_ptr<MRStateSchema> MRComponentStateUnit::m_recent_state |
Definition at line 51 of file MRComponentStateUnit.h.
Referenced by AddNewState(), AddNewStateForFirstRoundCheck(), CheckComponentStateWithinTimeRange(), CheckLastComponentStateReadingBeforeATime(), CheckTheFirstComponentStateReadingAfterATime(), CopyMRComponentStateInfoFromAnother(), RoutineMonitorUnit::GetLastUpdateTime(), MentalRepresentation::SaveMentalRepresentationInforToFile(), boost::serialization::serialize(), and MentalRepresentation::UpdateMRwithNewInference().
| Statement* MRComponentStateUnit::m_recent_state_statement |
Definition at line 58 of file MRComponentStateUnit.h.
Referenced by AddNewState(), AddNewStateForFirstRoundCheck(), BuildConnectionsForThisMRComponentState(), CopyMRComponentStateInfoFromAnother(), MRComponentStateUnit(), MentalRepresentation::UpdateMRwithNewInference(), and UpdateTheRelevantInvestigator().