|
ADS-IDAC Engine 5.0.0
|
#include <MRSupportSystemStateUnit.h>
Public Member Functions | |
| MRSupportSystemStateUnit () | |
| virtual | ~MRSupportSystemStateUnit () |
| void | UpdateTheRelevantInvestigator (int) |
| void | BuildConnectionsForThisMRSupportSystemStateUnit (void *) |
| void | CopyMRSupportSystemStateUnitInfoFromAnother (MRSupportSystemStateUnit *) |
| void | AddNewStateForFirstRoundCheck (int, int) |
| void | ReadSupportSystemStateIndication (double) |
| void | AddNewState (int, int, bool) |
| void | PrintMessage (std::string) |
| void | ErrorMessage (std::string str) |
| MRStateSchema * | CheckTheFirstSupportSystemStateReadingAfterATime (float _end) |
| MRStateSchema * | CheckLastSupportSystemStateReadingBeforeATime (float _start) |
| MRStateSchema * | CheckSupportSystemStateWithinTimeRange (float _start, float _end) |
Public Member Functions inherited from IDElement | |
| void | CopyIDElementToRestartInfo (IDElement *) |
| IDElement () | |
| virtual | ~IDElement () |
| template<class Archive > | |
| void | serialize (Archive &ar, const unsigned int version) |
Public Attributes | |
| int | m_operator |
| std::unique_ptr< MRStateSchema > | m_recent_state |
| std::vector< std::unique_ptr< MRStateSchema > > | m_history_state |
| 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 | Support_System_State_Indicator_ID |
Public Attributes inherited from IDElement | |
| int | m_ID_Type |
| std::string | m_ID |
Definition at line 10 of file MRSupportSystemStateUnit.h.
| MRSupportSystemStateUnit::MRSupportSystemStateUnit | ( | ) |
Definition at line 8 of file MRSupportSystemStateUnit.cpp.
References 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, m_recent_state_statement, and Support_System_State_Indicator_ID.
|
virtual |
Definition at line 23 of file MRSupportSystemStateUnit.cpp.
References m_history_state.
| void MRSupportSystemStateUnit::AddNewState | ( | int | _state, |
| int | _operator, | ||
| bool | _expecting | ||
| ) |
Definition at line 277 of file MRSupportSystemStateUnit.cpp.
References SimulationContext::Action_Taker, ReasonMachine::ActivationUpdateByRefreshAStatement(), ReasonMachine::AddANewStatement(), ReasonMachine::AddDeltaToCognitiveLoad(), ReasonMachine::AddDeltaToSystemDynamics(), ReasonMachine::AddNewInvestigator(), ReasonMachine::CheckExistInSemanticPoolBySentence(), 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::On, sim::State::Open, PrintMessage(), r5pars_, Statement::RefreshStatementEndTimeToCurrentTime(), Support_System_State_Indicator_ID, and UpdateTheRelevantInvestigator().
Referenced by ReasonMachine::OneStepInterpretation20().
| void MRSupportSystemStateUnit::AddNewStateForFirstRoundCheck | ( | int | _state, |
| int | _operator | ||
| ) |
Definition at line 124 of file MRSupportSystemStateUnit.cpp.
References SimulationContext::Action_Taker, ReasonMachine::ActivationUpdateByRefreshAStatement(), ReasonMachine::AddANewStatement(), ReasonMachine::CheckExistInSemanticPoolBySentence(), sim::State::Close, 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_, Statement::RefreshStatementEndTimeToCurrentTime(), and Support_System_State_Indicator_ID.
Referenced by ReasonMachine::FirstRoundCheckInterpretation().
| void MRSupportSystemStateUnit::BuildConnectionsForThisMRSupportSystemStateUnit | ( | void * | _pt | ) |
Definition at line 61 of file MRSupportSystemStateUnit.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 * MRSupportSystemStateUnit::CheckLastSupportSystemStateReadingBeforeATime | ( | float | _start | ) |
Definition at line 480 of file MRSupportSystemStateUnit.cpp.
References m_history_state, and m_recent_state.
Referenced by Investigator::WhetherItIsAvailablefromMR3003().
| MRStateSchema * MRSupportSystemStateUnit::CheckSupportSystemStateWithinTimeRange | ( | float | _start, |
| float | _end | ||
| ) |
Definition at line 504 of file MRSupportSystemStateUnit.cpp.
References e, m_history_state, and m_recent_state.
| MRStateSchema * MRSupportSystemStateUnit::CheckTheFirstSupportSystemStateReadingAfterATime | ( | float | _end | ) |
Definition at line 462 of file MRSupportSystemStateUnit.cpp.
References e, m_history_state, and m_recent_state.
Referenced by Investigator::WhetherItIsAvailablefromMR3003().
| void MRSupportSystemStateUnit::CopyMRSupportSystemStateUnitInfoFromAnother | ( | MRSupportSystemStateUnit * | _s_pt | ) |
Definition at line 90 of file MRSupportSystemStateUnit.cpp.
References IDElement::CopyIDElementToRestartInfo(), e, m_concept_ID, m_Concept_ID_pt, m_history_state, IDElement::m_ID, m_ID_recent_action_statement, m_ID_recent_state_statement, m_operator, m_recent_action_statement, m_recent_state, m_recent_state_statement, and Support_System_State_Indicator_ID.
| void MRSupportSystemStateUnit::ErrorMessage | ( | std::string | str | ) |
Definition at line 534 of file MRSupportSystemStateUnit.cpp.
References r5pars_.
Referenced by BuildConnectionsForThisMRSupportSystemStateUnit().
| void MRSupportSystemStateUnit::PrintMessage | ( | std::string | ) |
Definition at line 524 of file MRSupportSystemStateUnit.cpp.
References r5pars_.
Referenced by AddNewState(), and AddNewStateForFirstRoundCheck().
| void MRSupportSystemStateUnit::ReadSupportSystemStateIndication | ( | double | _timer | ) |
Definition at line 260 of file MRSupportSystemStateUnit.cpp.
References SimulationContext::Action_Taker, Operator::ActiveFetchSupportSystemStateInfo(), SimulationContext::Decision_Maker, g_sim, m_operator, sim::Operator::OAT, sim::Operator::ODM, and Support_System_State_Indicator_ID.
Referenced by MentalRepresentation::FirstRoundCheckOftheMR(), Investigator::RequestInfoFromControlPanelReading3006(), and RoutineMonitor::WorkOnASelectedUnit12().
| void MRSupportSystemStateUnit::UpdateTheRelevantInvestigator | ( | int | _operator | ) |
Definition at line 26 of file MRSupportSystemStateUnit.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 AddNewState().
| std::string MRSupportSystemStateUnit::m_concept_ID |
Definition at line 38 of file MRSupportSystemStateUnit.h.
Referenced by BuildConnectionsForThisMRSupportSystemStateUnit(), CopyMRSupportSystemStateUnitInfoFromAnother(), MRSupportSystemStateUnit(), MentalRepresentation::ReadMentalRepresentationtInfoFromInputFile(), and boost::serialization::serialize().
| IDElement* MRSupportSystemStateUnit::m_Concept_ID_pt |
Definition at line 34 of file MRSupportSystemStateUnit.h.
Referenced by AddNewState(), AddNewStateForFirstRoundCheck(), BuildConnectionsForThisMRSupportSystemStateUnit(), MentalRepresentation::CheckExistenceByConceptName(), MentalRepresentation::CheckExistenceByConceptStrict(), CopyMRSupportSystemStateUnitInfoFromAnother(), MRSupportSystemStateUnit(), ReasonMachine::OneStepInterpretation20(), MentalRepresentation::ReadMentalRepresentationtInfoFromInputFile(), and MentalRepresentation::SaveMentalRepresentationInforToFile().
| std::vector<std::unique_ptr<MRStateSchema> > MRSupportSystemStateUnit::m_history_state |
Definition at line 32 of file MRSupportSystemStateUnit.h.
Referenced by AddNewState(), AddNewStateForFirstRoundCheck(), CheckLastSupportSystemStateReadingBeforeATime(), CheckSupportSystemStateWithinTimeRange(), CheckTheFirstSupportSystemStateReadingAfterATime(), CopyMRSupportSystemStateUnitInfoFromAnother(), MentalRepresentation::SaveMentalRepresentationInforToFile(), boost::serialization::serialize(), MentalRepresentation::UpdateMRwithNewInference(), and ~MRSupportSystemStateUnit().
| std::string MRSupportSystemStateUnit::m_ID_recent_action_statement |
Definition at line 39 of file MRSupportSystemStateUnit.h.
Referenced by BuildConnectionsForThisMRSupportSystemStateUnit(), CopyMRSupportSystemStateUnitInfoFromAnother(), MRSupportSystemStateUnit(), and boost::serialization::serialize().
| std::string MRSupportSystemStateUnit::m_ID_recent_state_statement |
Definition at line 40 of file MRSupportSystemStateUnit.h.
Referenced by BuildConnectionsForThisMRSupportSystemStateUnit(), CopyMRSupportSystemStateUnitInfoFromAnother(), MRSupportSystemStateUnit(), and boost::serialization::serialize().
| int MRSupportSystemStateUnit::m_operator |
Definition at line 28 of file MRSupportSystemStateUnit.h.
Referenced by AddNewState(), CopyMRSupportSystemStateUnitInfoFromAnother(), MentalRepresentation::ReadMentalRepresentationtInfoFromInputFile(), ReadSupportSystemStateIndication(), and boost::serialization::serialize().
| Statement* MRSupportSystemStateUnit::m_recent_action_statement |
Definition at line 35 of file MRSupportSystemStateUnit.h.
Referenced by AddNewState(), AddNewStateForFirstRoundCheck(), BuildConnectionsForThisMRSupportSystemStateUnit(), CopyMRSupportSystemStateUnitInfoFromAnother(), MRSupportSystemStateUnit(), MentalRepresentation::UpdateMRwithNewInference(), and UpdateTheRelevantInvestigator().
| std::unique_ptr<MRStateSchema> MRSupportSystemStateUnit::m_recent_state |
Definition at line 30 of file MRSupportSystemStateUnit.h.
Referenced by AddNewState(), AddNewStateForFirstRoundCheck(), CheckLastSupportSystemStateReadingBeforeATime(), CheckSupportSystemStateWithinTimeRange(), CheckTheFirstSupportSystemStateReadingAfterATime(), CopyMRSupportSystemStateUnitInfoFromAnother(), RoutineMonitorUnit::GetLastUpdateTime(), MentalRepresentation::SaveMentalRepresentationInforToFile(), boost::serialization::serialize(), and MentalRepresentation::UpdateMRwithNewInference().
| Statement* MRSupportSystemStateUnit::m_recent_state_statement |
Definition at line 36 of file MRSupportSystemStateUnit.h.
Referenced by AddNewState(), AddNewStateForFirstRoundCheck(), BuildConnectionsForThisMRSupportSystemStateUnit(), CopyMRSupportSystemStateUnitInfoFromAnother(), MRSupportSystemStateUnit(), MentalRepresentation::UpdateMRwithNewInference(), and UpdateTheRelevantInvestigator().
| std::string MRSupportSystemStateUnit::Support_System_State_Indicator_ID |
Definition at line 42 of file MRSupportSystemStateUnit.h.
Referenced by AddNewState(), AddNewStateForFirstRoundCheck(), MentalRepresentation::CheckExistenceByIndicationName(), CopyMRSupportSystemStateUnitInfoFromAnother(), MRSupportSystemStateUnit(), ReasonMachine::OneStepInterpretation20(), MentalRepresentation::ReadMentalRepresentationtInfoFromInputFile(), ReadSupportSystemStateIndication(), Investigator::RequestInfoFromControlPanelReading3006(), boost::serialization::serialize(), and RoutineMonitor::WorkOnASelectedUnit12().