← Documentation
ADS-IDAC Engine 5.0.0
ControlPanelAlarm Class Reference

#include <ControlPanelAlarm.h>

Public Member Functions

 ControlPanelAlarm ()
 
virtual ~ControlPanelAlarm ()
 
int readInfoFromFile (std::ifstream &)
 
void initiateAllAlarms (ControlPanelDisplay &)
 
void outputParametersLabelsToFile (std::ofstream &)
 
void outputParametersUnitsToFile (std::ofstream &)
 
void outputParametersValuesToFile (double, std::ofstream &)
 
SystemAlarm * getAlarmFromMap (std::string)
 
void updateAllDisplayedAlarmState (ControlPanelDisplay &)
 
int getTotalNumberOfAlarms ()
 
void copyControlPanelAlarm (ControlPanelAlarm &)
 
void clearControlPanelAlarm ()
 
void saveControlPanelAlarmToFile (std::ofstream &)
 
void retrieveControlPanelAlarmFromFile (std::ifstream &)
 

Public Attributes

std::vector< std::unique_ptr< AlarmParameter > > alarm_parameter_value_array
 
std::vector< std::unique_ptr< AlarmComponent > > alarm_component_state_array
 
std::vector< std::unique_ptr< AlarmTwoParameterDifference > > alarm_value_difference_array
 
std::map< std::string, SystemAlarm * > alarm_map
 

Private Member Functions

template<class Archive >
void save (Archive &ar, const unsigned int) const
 
template<class Archive >
void load (Archive &ar, const unsigned int)
 

Friends

class boost::serialization::access
 

Detailed Description

Definition at line 24 of file ControlPanelAlarm.h.

Constructor & Destructor Documentation

◆ ControlPanelAlarm()

ControlPanelAlarm::ControlPanelAlarm ( )

Definition at line 19 of file ControlPanelAlarm.cpp.

◆ ~ControlPanelAlarm()

ControlPanelAlarm::~ControlPanelAlarm ( )
virtual

Definition at line 25 of file ControlPanelAlarm.cpp.

References clearControlPanelAlarm().

Here is the call graph for this function:

Member Function Documentation

◆ clearControlPanelAlarm()

void ControlPanelAlarm::clearControlPanelAlarm ( )

Definition at line 223 of file ControlPanelAlarm.cpp.

References alarm_component_state_array, alarm_map, alarm_parameter_value_array, and alarm_value_difference_array.

Referenced by ControlPanel::clearControlPanel(), and ~ControlPanelAlarm().

Here is the caller graph for this function:

◆ copyControlPanelAlarm()

void ControlPanelAlarm::copyControlPanelAlarm ( ControlPanelAlarm &  _cpa)

Definition at line 203 of file ControlPanelAlarm.cpp.

References alarm_component_state_array, alarm_map, alarm_parameter_value_array, and alarm_value_difference_array.

Referenced by ControlPanel::copyControlPanel().

Here is the caller graph for this function:

◆ getAlarmFromMap()

SystemAlarm * ControlPanelAlarm::getAlarmFromMap ( std::string  )

Definition at line 162 of file ControlPanelAlarm.cpp.

References AdsSimErr, alarm_map, SimulationContext::Branch_center, g_sim, r5pars_, BranchRecord::setTempESMessage(), and BranchRecord::setTempTypeOfConsequence().

Referenced by ControlPanel::executeRequestToPlant(), and ReasonMachine::GetAlarmStateImediately().

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

◆ getTotalNumberOfAlarms()

int ControlPanelAlarm::getTotalNumberOfAlarms ( )

◆ initiateAllAlarms()

void ControlPanelAlarm::initiateAllAlarms ( ControlPanelDisplay &  _cp)

◆ load()

template<class Archive >
void ControlPanelAlarm::load ( Archive &  ar,
const unsigned int   
)
inlineprivate

Definition at line 59 of file ControlPanelAlarm.h.

References alarm_component_state_array, alarm_parameter_value_array, alarm_value_difference_array, and adsidac::load_array_state().

Here is the call graph for this function:

◆ outputParametersLabelsToFile()

void ControlPanelAlarm::outputParametersLabelsToFile ( std::ofstream &  )

Definition at line 114 of file ControlPanelAlarm.cpp.

References alarm_component_state_array, alarm_parameter_value_array, and alarm_value_difference_array.

Referenced by KeyParameterHistoryUnit::outputLabelToFile().

Here is the caller graph for this function:

◆ outputParametersUnitsToFile()

void ControlPanelAlarm::outputParametersUnitsToFile ( std::ofstream &  )

Definition at line 128 of file ControlPanelAlarm.cpp.

References alarm_component_state_array, alarm_parameter_value_array, and alarm_value_difference_array.

Referenced by KeyParameterHistoryUnit::outputUnitToFile().

Here is the caller graph for this function:

◆ outputParametersValuesToFile()

void ControlPanelAlarm::outputParametersValuesToFile ( double  ,
std::ofstream &   
)

◆ readInfoFromFile()

int ControlPanelAlarm::readInfoFromFile ( std::ifstream &  )

Definition at line 31 of file ControlPanelAlarm.cpp.

References alarm_component_state_array, alarm_map, alarm_parameter_value_array, and alarm_value_difference_array.

Referenced by ControlPanel::readInfoFromFile().

Here is the caller graph for this function:

◆ retrieveControlPanelAlarmFromFile()

void ControlPanelAlarm::retrieveControlPanelAlarmFromFile ( std::ifstream &  )

Definition at line 247 of file ControlPanelAlarm.cpp.

References alarm_component_state_array, alarm_map, alarm_parameter_value_array, and alarm_value_difference_array.

Referenced by ControlPanel::retrieveControlPanelFromFile().

Here is the caller graph for this function:

◆ save()

template<class Archive >
void ControlPanelAlarm::save ( Archive &  ar,
const unsigned int   
) const
inlineprivate

Definition at line 50 of file ControlPanelAlarm.h.

References alarm_component_state_array, alarm_parameter_value_array, alarm_value_difference_array, and adsidac::save_array_state().

Here is the call graph for this function:

◆ saveControlPanelAlarmToFile()

void ControlPanelAlarm::saveControlPanelAlarmToFile ( std::ofstream &  )

Definition at line 229 of file ControlPanelAlarm.cpp.

References alarm_component_state_array, alarm_parameter_value_array, and alarm_value_difference_array.

Referenced by ControlPanel::saveControlPanelToFile().

Here is the caller graph for this function:

◆ updateAllDisplayedAlarmState()

void ControlPanelAlarm::updateAllDisplayedAlarmState ( ControlPanelDisplay &  _CPDisplay)

Definition at line 184 of file ControlPanelAlarm.cpp.

References alarm_component_state_array, alarm_parameter_value_array, and alarm_value_difference_array.

Referenced by ControlPanel::updateDisplayAndAlarm().

Here is the caller graph for this function:

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 47 of file ControlPanelAlarm.h.

Member Data Documentation

◆ alarm_component_state_array

◆ alarm_map

◆ alarm_parameter_value_array

◆ alarm_value_difference_array


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