← Documentation
ADS-IDAC Engine 5.0.0
ControlPanel Class Reference

#include <ControlPanel.h>

Collaboration diagram for ControlPanel:
[legend]

Public Member Functions

 ControlPanel ()
 
virtual ~ControlPanel ()
 
void readInfoFromFile ()
 
void initiationForSimulation ()
 
double getCurrentTime ()
 
void setCurrentTime ()
 
void updateDisplayAndAlarm ()
 
void updateDisplay ()
 
void checkForNewAlarms ()
 
void updateTotalNumberOfActivatedAlarm (int)
 
void updateTotalWeightOfActivatedAlarm (double)
 
int getTotalNumberOfActivatedAlarm ()
 
double getTotalWeightOfActivatedAlarm ()
 
void executeValueControl (std::string, double)
 
void executeStateControl (std::string, int)
 
void executeRequestToPlant ()
 
void oneThroughProcess ()
 
void copyControlPanel (ControlPanel &)
 
void copyControlPanelForRestart (ControlPanel &)
 
void clearControlPanel ()
 
void clearForRestart ()
 
void saveControlPanelToFile (std::ofstream &)
 
void retrieveControlPanelFromFile (std::ifstream &)
 
void seedFromMaster (const ControlPanel &master)
 

Public Attributes

ControlPanelAlarm alarms
 
ControlPanelDisplay indicators
 
ControlPanelControl controls
 

Private Member Functions

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

Private Attributes

double current_time
 
int total_number_of_activated_alarm
 
double total_weight_of_activated_alarm
 

Friends

class boost::serialization::access
 

Detailed Description

Definition at line 26 of file ControlPanel.h.

Constructor & Destructor Documentation

◆ ControlPanel()

ControlPanel::ControlPanel ( )

◆ ~ControlPanel()

ControlPanel::~ControlPanel ( )
virtual

Definition at line 37 of file ControlPanel.cpp.

References clearControlPanel().

Here is the call graph for this function:

Member Function Documentation

◆ checkForNewAlarms()

◆ clearControlPanel()

void ControlPanel::clearControlPanel ( )

Definition at line 769 of file ControlPanel.cpp.

References alarms, ControlPanelAlarm::clearControlPanelAlarm(), ControlPanelControl::clearControlPanelControl(), ControlPanelDisplay::clearControlPanelDisplay(), controls, current_time, indicators, total_number_of_activated_alarm, and total_weight_of_activated_alarm.

Referenced by clearForRestart(), and ~ControlPanel().

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

◆ clearForRestart()

void ControlPanel::clearForRestart ( )

Definition at line 778 of file ControlPanel.cpp.

References clearControlPanel().

Referenced by AdsidacCallback::initiationForRestart().

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

◆ copyControlPanel()

void ControlPanel::copyControlPanel ( ControlPanel &  _cp)

Definition at line 757 of file ControlPanel.cpp.

References alarms, controls, ControlPanelAlarm::copyControlPanelAlarm(), ControlPanelControl::copyControlPanelControl(), ControlPanelDisplay::copyControlPanelDisplay(), current_time, getCurrentTime(), getTotalNumberOfActivatedAlarm(), getTotalWeightOfActivatedAlarm(), indicators, total_number_of_activated_alarm, and total_weight_of_activated_alarm.

Referenced by copyControlPanelForRestart(), RestartNodeInfo::saveRestartNodeInfo(), and seedFromMaster().

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

◆ copyControlPanelForRestart()

void ControlPanel::copyControlPanelForRestart ( ControlPanel &  _cp)

Definition at line 766 of file ControlPanel.cpp.

References copyControlPanel().

Referenced by AdsidacCallback::initiationForRestart().

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

◆ executeRequestToPlant()

void ControlPanel::executeRequestToPlant ( )

Definition at line 213 of file ControlPanel.cpp.

References BranchUnit::action, BranchRecord::addAction(), BranchRecord::addHWReliabilityBranch(), AdsSimErr, BranchUnit::alarm_state, alarms, SimulationContext::Branch_center, Probability::calculateProbability(), SimulationContext::Communication_place, BranchUnit::component_state, ComponentState, sim::State::Control, controls, ControlState, BranchAction::copyBranchAction(), BranchSystemAction::copyBranchSystemAction(), DisplayElement::copyDisplayElement(), executeValueControl(), sim::State::Failed, sim::State::FailedP, sim::Branch::FtPlant, g_sim, DecisionAction::getActionName(), ControlPanelAlarm::getAlarmFromMap(), ControlPanelControl::getControlFromMap(), ControlElement::getControlValue(), AlarmElement::getDisplayedAlarmState(), DisplayComponentState::getDisplayedComponentOperationalState(), DisplayParameterValue::getDisplayedParameterValue(), DisplaySupportSystemState::getDisplayedSupportSystemOperationalState(), ControlPanelDisplay::getDisplayFromMap(), DisplayElement::getDisplayName(), SystemControl::getFunctionalState(), HWReliabilityModule::getHWReliabilityFTUnit(), DisplayParameterValueRate::getRateOfChange(), Communication::getSender(), SystemControl::getTypeOfControl(), SystemDisplay::getTypeOfDisplay(), HeatStructure, CommunicationPlace::HW_reliability, indicators, sim::Operator::OAT, sim::Operator::OCT, sim::Operator::ODM, BranchUnit::parameter_difference, BranchUnit::parameter_value, ParameterTrend, ParameterValue, ControlValue::performControl(), ControlState::performValueControl(), sim::Source::Plant, SimulationContext::Plant, r5pars_, sim::State::Recovery, BranchAction::setActionTime(), Timer::setBothTotalTimeRequiredAndRemainingTime(), ControlElement::setDisplayName(), BranchSystemAction::setFunctionalState(), SystemControl::setFunctionalState(), StringContainer::setMessage(), Probability::setProbability(), BranchRecord::setTempESMessage(), BranchRecord::setTempTypeOfConsequence(), TimerAndProbability::setTimerAndProbability(), sim::State::Succeed, BranchUnit::support_system_state, SupportSystemState, SimulationContext::System_reliability, sim::State::Unknown, and HWReliabilityFTUnit::updateFailureProbability().

Referenced by oneThroughProcess().

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

◆ executeStateControl()

void ControlPanel::executeStateControl ( std::string  ,
int   
)

Definition at line 210 of file ControlPanel.cpp.

References controls, and ControlPanelControl::executeStateControl().

Here is the call graph for this function:

◆ executeValueControl()

void ControlPanel::executeValueControl ( std::string  ,
double   
)

Definition at line 207 of file ControlPanel.cpp.

References controls, and ControlPanelControl::executeValueControl().

Referenced by executeRequestToPlant().

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

◆ getCurrentTime()

double ControlPanel::getCurrentTime ( )

Definition at line 83 of file ControlPanel.cpp.

References current_time.

Referenced by copyControlPanel().

Here is the caller graph for this function:

◆ getTotalNumberOfActivatedAlarm()

int ControlPanel::getTotalNumberOfActivatedAlarm ( )

Definition at line 205 of file ControlPanel.cpp.

References total_number_of_activated_alarm.

Referenced by copyControlPanel().

Here is the caller graph for this function:

◆ getTotalWeightOfActivatedAlarm()

double ControlPanel::getTotalWeightOfActivatedAlarm ( )

Definition at line 206 of file ControlPanel.cpp.

References total_weight_of_activated_alarm.

Referenced by copyControlPanel().

Here is the caller graph for this function:

◆ initiationForSimulation()

void ControlPanel::initiationForSimulation ( )

Definition at line 71 of file ControlPanel.cpp.

References checkForNewAlarms(), controls, indicators, ControlPanelControl::initiateAllControls(), and ControlPanelDisplay::initiateAllParametersValues().

Referenced by AdsidacCallback::onFirstInit(), and AdsidacCallback::onScenarioStart().

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

◆ load()

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

Definition at line 76 of file ControlPanel.h.

References alarms, controls, current_time, indicators, seedFromMaster(), adsidac::shared_control_panel(), total_number_of_activated_alarm, and total_weight_of_activated_alarm.

Here is the call graph for this function:

◆ oneThroughProcess()

void ControlPanel::oneThroughProcess ( )

Definition at line 732 of file ControlPanel.cpp.

References checkForNewAlarms(), executeRequestToPlant(), and updateDisplay().

Referenced by AdsidacCallback::onEvaluationPoint().

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

◆ readInfoFromFile()

void ControlPanel::readInfoFromFile ( )

Definition at line 41 of file ControlPanel.cpp.

References alarms, SimulationContext::Branch_center, controls, g_sim, Scheduler::getIndicatorsDirectory(), indicators, NoKB, ControlPanelDisplay::parameter_value_array, r5pars_, ControlPanelAlarm::readInfoFromFile(), ControlPanelControl::readInfoFromFile(), ControlPanelDisplay::readInfoFromFile(), BranchRecord::setTempESMessage(), BranchRecord::setTempTypeOfConsequence(), and SimulationContext::SScheduler.

Referenced by Client::Client(), main(), AdsidacCallback::onFirstInit(), and Server::Simulation().

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

◆ retrieveControlPanelFromFile()

void ControlPanel::retrieveControlPanelFromFile ( std::ifstream &  )

◆ save()

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

◆ saveControlPanelToFile()

void ControlPanel::saveControlPanelToFile ( std::ofstream &  )

Definition at line 781 of file ControlPanel.cpp.

References alarms, controls, current_time, indicators, ControlPanelAlarm::saveControlPanelAlarmToFile(), ControlPanelControl::saveControlPanelControlToFile(), ControlPanelDisplay::saveControlPanelDisplayToFile(), total_number_of_activated_alarm, and total_weight_of_activated_alarm.

Here is the call graph for this function:

◆ seedFromMaster()

void ControlPanel::seedFromMaster ( const ControlPanel &  master)

◆ setCurrentTime()

void ControlPanel::setCurrentTime ( )

Definition at line 84 of file ControlPanel.cpp.

References current_time, and r5pars_.

Referenced by AdsidacCallback::onEvaluationPoint().

Here is the caller graph for this function:

◆ updateDisplay()

void ControlPanel::updateDisplay ( )

Definition at line 94 of file ControlPanel.cpp.

References indicators, and ControlPanelDisplay::updateAllDisplayValueAndState().

Referenced by oneThroughProcess().

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

◆ updateDisplayAndAlarm()

void ControlPanel::updateDisplayAndAlarm ( )

Definition at line 90 of file ControlPanel.cpp.

References alarms, indicators, ControlPanelAlarm::updateAllDisplayedAlarmState(), and ControlPanelDisplay::updateAllDisplayValueAndState().

Here is the call graph for this function:

◆ updateTotalNumberOfActivatedAlarm()

void ControlPanel::updateTotalNumberOfActivatedAlarm ( int  n)

Definition at line 199 of file ControlPanel.cpp.

References total_number_of_activated_alarm.

Referenced by checkForNewAlarms().

Here is the caller graph for this function:

◆ updateTotalWeightOfActivatedAlarm()

void ControlPanel::updateTotalWeightOfActivatedAlarm ( double  x)

Definition at line 202 of file ControlPanel.cpp.

References total_weight_of_activated_alarm.

Referenced by checkForNewAlarms().

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 64 of file ControlPanel.h.

Member Data Documentation

◆ alarms

◆ controls

◆ current_time

◆ indicators

◆ total_number_of_activated_alarm

◆ total_weight_of_activated_alarm


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