← Documentation
ADS-IDAC Engine 5.0.0
MRSupportSystemStateUnit Class Reference

#include <MRSupportSystemStateUnit.h>

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

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
 

Detailed Description

Definition at line 10 of file MRSupportSystemStateUnit.h.

Constructor & Destructor Documentation

◆ MRSupportSystemStateUnit()

◆ ~MRSupportSystemStateUnit()

MRSupportSystemStateUnit::~MRSupportSystemStateUnit ( )
virtual

Definition at line 23 of file MRSupportSystemStateUnit.cpp.

References m_history_state.

Member Function Documentation

◆ AddNewState()

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

◆ AddNewStateForFirstRoundCheck()

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

◆ BuildConnectionsForThisMRSupportSystemStateUnit()

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.

Here is the call graph for this function:

◆ CheckLastSupportSystemStateReadingBeforeATime()

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

Here is the caller graph for this function:

◆ CheckSupportSystemStateWithinTimeRange()

MRStateSchema * MRSupportSystemStateUnit::CheckSupportSystemStateWithinTimeRange ( float  _start,
float  _end 
)

Definition at line 504 of file MRSupportSystemStateUnit.cpp.

References e, m_history_state, and m_recent_state.

◆ CheckTheFirstSupportSystemStateReadingAfterATime()

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

Here is the caller graph for this function:

◆ CopyMRSupportSystemStateUnitInfoFromAnother()

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.

Here is the call graph for this function:

◆ ErrorMessage()

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

Definition at line 534 of file MRSupportSystemStateUnit.cpp.

References r5pars_.

Referenced by BuildConnectionsForThisMRSupportSystemStateUnit().

Here is the caller graph for this function:

◆ PrintMessage()

void MRSupportSystemStateUnit::PrintMessage ( std::string  )

Definition at line 524 of file MRSupportSystemStateUnit.cpp.

References r5pars_.

Referenced by AddNewState(), and AddNewStateForFirstRoundCheck().

Here is the caller graph for this function:

◆ ReadSupportSystemStateIndication()

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

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

◆ UpdateTheRelevantInvestigator()

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

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

Member Data Documentation

◆ m_concept_ID

◆ m_Concept_ID_pt

◆ m_history_state

◆ m_ID_recent_action_statement

std::string MRSupportSystemStateUnit::m_ID_recent_action_statement

◆ m_ID_recent_state_statement

std::string MRSupportSystemStateUnit::m_ID_recent_state_statement

◆ m_operator

◆ m_recent_action_statement

◆ m_recent_state

◆ m_recent_state_statement

◆ Support_System_State_Indicator_ID


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