← Documentation
ADS-IDAC Engine 5.0.0
MRAlarmUnit Class Reference

#include <MRAlarmUnit.h>

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

Public Member Functions

void BuildConnectionsForThisMRAlarmUnit (void *)
 
void ErrorMessage (std::string)
 
void CopyMRAlarmUnitInfoFromAnother (MRAlarmUnit *)
 
void ConvertStaticInfoToString ()
 
MRStateSchema * CheckFirstAlarmStateAfterATime (float _end)
 
MRStateSchema * CheckLastAlarmStateBeforeATime (float _start)
 
MRStateSchema * CheckAlarmStateWithinTimeRange (float _start, float _end)
 
void PrintMessage (std::string)
 
void AddNewAlarmStateForFirstRoundCheck (int, int)
 
void ReadAlarmIndication (double)
 
void AddNewAlarmState (int, int, bool)
 
 MRAlarmUnit ()
 
virtual ~MRAlarmUnit ()
 
- 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

std::string m_alarm_indicator_name
 
int m_operator
 
std::unique_ptr< MRStateSchema > m_recent_state
 
std::vector< std::unique_ptr< MRStateSchema > > m_history_state_list
 
Statement * m_recent_state_statement
 
Statement * m_recent_action_statement
 
IDElement * m_Concept_pt
 
std::string m_Concept_ID
 
std::string m_ID_recent_state_statement
 
std::string m_ID_recent_action_statement
 
- Public Attributes inherited from IDElement
int m_ID_Type
 
std::string m_ID
 

Detailed Description

Definition at line 13 of file MRAlarmUnit.h.

Constructor & Destructor Documentation

◆ MRAlarmUnit()

◆ ~MRAlarmUnit()

MRAlarmUnit::~MRAlarmUnit ( )
virtual

Definition at line 39 of file MRAlarmUnit.cpp.

References m_history_state_list.

Member Function Documentation

◆ AddNewAlarmState()

◆ AddNewAlarmStateForFirstRoundCheck()

void MRAlarmUnit::AddNewAlarmStateForFirstRoundCheck ( int  _state,
int  _operator 
)

◆ BuildConnectionsForThisMRAlarmUnit()

void MRAlarmUnit::BuildConnectionsForThisMRAlarmUnit ( void *  _pt)

Definition at line 517 of file MRAlarmUnit.cpp.

References ErrorMessage(), ReasonMachine::FindStatementByID(), ReasonMachine::m_Concept_Base, m_Concept_ID, m_Concept_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:

◆ CheckAlarmStateWithinTimeRange()

MRStateSchema * MRAlarmUnit::CheckAlarmStateWithinTimeRange ( float  _start,
float  _end 
)

Definition at line 382 of file MRAlarmUnit.cpp.

References e, m_history_state_list, and m_recent_state.

◆ CheckFirstAlarmStateAfterATime()

MRStateSchema * MRAlarmUnit::CheckFirstAlarmStateAfterATime ( float  _end)

Definition at line 430 of file MRAlarmUnit.cpp.

References e, m_history_state_list, and m_recent_state.

Referenced by Investigator::WhetherItIsAvailablefromMR3003().

Here is the caller graph for this function:

◆ CheckLastAlarmStateBeforeATime()

MRStateSchema * MRAlarmUnit::CheckLastAlarmStateBeforeATime ( float  _start)

Definition at line 404 of file MRAlarmUnit.cpp.

References m_history_state_list, and m_recent_state.

Referenced by Investigator::WhetherItIsAvailablefromMR3003().

Here is the caller graph for this function:

◆ ConvertStaticInfoToString()

void MRAlarmUnit::ConvertStaticInfoToString ( )

Definition at line 453 of file MRAlarmUnit.cpp.

References m_Concept_ID, m_Concept_pt, and IDElement::m_ID.

◆ CopyMRAlarmUnitInfoFromAnother()

void MRAlarmUnit::CopyMRAlarmUnitInfoFromAnother ( MRAlarmUnit *  _a_pt)

Definition at line 464 of file MRAlarmUnit.cpp.

References IDElement::CopyIDElementToRestartInfo(), e, ErrorMessage(), m_alarm_indicator_name, m_Concept_ID, m_Concept_pt, m_history_state_list, IDElement::m_ID, m_ID_recent_action_statement, m_ID_recent_state_statement, m_operator, m_recent_action_statement, m_recent_state, and m_recent_state_statement.

Here is the call graph for this function:

◆ ErrorMessage()

void MRAlarmUnit::ErrorMessage ( std::string  )

Definition at line 508 of file MRAlarmUnit.cpp.

References r5pars_.

Referenced by BuildConnectionsForThisMRAlarmUnit(), and CopyMRAlarmUnitInfoFromAnother().

Here is the caller graph for this function:

◆ PrintMessage()

void MRAlarmUnit::PrintMessage ( std::string  )

Definition at line 372 of file MRAlarmUnit.cpp.

References r5pars_.

Referenced by AddNewAlarmState(), and AddNewAlarmStateForFirstRoundCheck().

Here is the caller graph for this function:

◆ ReadAlarmIndication()

void MRAlarmUnit::ReadAlarmIndication ( double  _timer)

Definition at line 218 of file MRAlarmUnit.cpp.

References SimulationContext::Action_Taker, Operator::ActiveFetchAlarmStateInfo(), SimulationContext::Decision_Maker, g_sim, m_alarm_indicator_name, 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:

Member Data Documentation

◆ m_alarm_indicator_name

◆ m_Concept_ID

◆ m_Concept_pt

◆ m_history_state_list

◆ m_ID_recent_action_statement

std::string MRAlarmUnit::m_ID_recent_action_statement

◆ m_ID_recent_state_statement

std::string MRAlarmUnit::m_ID_recent_state_statement

◆ m_operator

◆ m_recent_action_statement

◆ m_recent_state

◆ m_recent_state_statement


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