← Documentation
ADS-IDAC Engine 5.0.0
MRComponentStateUnit Class Reference

#include <MRComponentStateUnit.h>

Inheritance diagram for MRComponentStateUnit:
[legend]
Collaboration diagram for MRComponentStateUnit:
[legend]

Public Member Functions

void UpdateTheRelevantInvestigator (int)
 
void BuildConnectionsForThisMRComponentState (void *)
 
void CopyMRComponentStateInfoFromAnother (MRComponentStateUnit *)
 
MRValueSchema * FindTheFirstPositionReadingAfterATime (float _end)
 
MRValueSchema * FindTheLastPositionReadingBeforeATime (float _start)
 
MRValueSchema * FindAPositionReadingInconsitantWithASentenceWithinTimeRange (float _start, float _end, SentenceUnit *_sent_pt)
 
void ErrorMessage (std::string str)
 
MRValueSchema * FindAPositionReadingConsistantWithASentenceWithinTimeRange (float _start, float _end, SentenceUnit *_sent_pt)
 
MRStateSchema * CheckTheFirstComponentStateReadingAfterATime (float _end)
 
MRStateSchema * CheckLastComponentStateReadingBeforeATime (float _start)
 
MRStateSchema * CheckComponentStateWithinTimeRange (float _start, float _end)
 
void PrintMessage (std::string)
 
void AddNewStateForFirstRoundCheck (int, int)
 
void AddNewPositionValueForFirstRoundCheck (float, int)
 
MRValueSchema * CheckPositionReadingWithinTimeRange (double, double)
 
void ReadComponentStateIndication (double)
 
MRValueSchema * FoundAPositionReadingWithinTimeRange (float, float)
 
 MRComponentStateUnit ()
 
virtual ~MRComponentStateUnit ()
 
void AddNewPositionValue (float, int, bool)
 
void AddNewState (int, int, bool)
 
- 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_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
 

Detailed Description

Definition at line 17 of file MRComponentStateUnit.h.

Constructor & Destructor Documentation

◆ MRComponentStateUnit()

◆ ~MRComponentStateUnit()

MRComponentStateUnit::~MRComponentStateUnit ( )
virtual

Definition at line 44 of file MRComponentStateUnit.cpp.

References m_history_position_value, and m_history_state.

Member Function Documentation

◆ AddNewPositionValue()

◆ AddNewPositionValueForFirstRoundCheck()

◆ AddNewState()

void MRComponentStateUnit::AddNewState ( int  _state,
int  _operator,
bool  _expecting 
)

◆ AddNewStateForFirstRoundCheck()

void MRComponentStateUnit::AddNewStateForFirstRoundCheck ( int  _state,
int  _operator 
)

◆ BuildConnectionsForThisMRComponentState()

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.

Here is the call graph for this function:

◆ CheckComponentStateWithinTimeRange()

MRStateSchema * MRComponentStateUnit::CheckComponentStateWithinTimeRange ( float  _start,
float  _end 
)

Definition at line 692 of file MRComponentStateUnit.cpp.

References e, m_history_state, and m_recent_state.

◆ CheckLastComponentStateReadingBeforeATime()

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().

Here is the caller graph for this function:

◆ CheckPositionReadingWithinTimeRange()

MRValueSchema * MRComponentStateUnit::CheckPositionReadingWithinTimeRange ( double  _start,
double  _end 
)

◆ CheckTheFirstComponentStateReadingAfterATime()

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().

Here is the caller graph for this function:

◆ CopyMRComponentStateInfoFromAnother()

void MRComponentStateUnit::CopyMRComponentStateInfoFromAnother ( MRComponentStateUnit *  _s_pt)

◆ ErrorMessage()

void MRComponentStateUnit::ErrorMessage ( std::string  str)

Definition at line 881 of file MRComponentStateUnit.cpp.

References r5pars_.

Referenced by BuildConnectionsForThisMRComponentState(), FindAPositionReadingConsistantWithASentenceWithinTimeRange(), and FindAPositionReadingInconsitantWithASentenceWithinTimeRange().

Here is the caller graph for this function:

◆ FindAPositionReadingConsistantWithASentenceWithinTimeRange()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FindAPositionReadingInconsitantWithASentenceWithinTimeRange()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FindTheFirstPositionReadingAfterATime()

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().

Here is the caller graph for this function:

◆ FindTheLastPositionReadingBeforeATime()

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().

Here is the caller graph for this function:

◆ FoundAPositionReadingWithinTimeRange()

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().

Here is the caller graph for this function:

◆ PrintMessage()

void MRComponentStateUnit::PrintMessage ( std::string  )

Definition at line 682 of file MRComponentStateUnit.cpp.

References r5pars_.

Referenced by AddNewPositionValue(), AddNewPositionValueForFirstRoundCheck(), AddNewState(), and AddNewStateForFirstRoundCheck().

Here is the caller graph for this function:

◆ ReadComponentStateIndication()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ UpdateTheRelevantInvestigator()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ Component_State_Indicator_ID

◆ Control_Value_Indicator_ID

◆ m_change_threshold

◆ m_concept_ID

◆ m_Concept_ID_pt

◆ m_CS_type

◆ m_history_position_value

◆ m_history_state

◆ m_ID_recent_action_statement

std::string MRComponentStateUnit::m_ID_recent_action_statement

◆ m_ID_recent_state_statement

std::string MRComponentStateUnit::m_ID_recent_state_statement

◆ m_operator

◆ m_recent_action_statement

◆ m_recent_position_value

◆ m_recent_state

◆ m_recent_state_statement


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