|
ADS-IDAC Engine 5.0.0
|
#include <ControlPanel.h>
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 |
Definition at line 26 of file ControlPanel.h.
| ControlPanel::ControlPanel | ( | ) |
Definition at line 31 of file ControlPanel.cpp.
References current_time, total_number_of_activated_alarm, and total_weight_of_activated_alarm.
|
virtual |
Definition at line 37 of file ControlPanel.cpp.
References clearControlPanel().
| void ControlPanel::checkForNewAlarms | ( | ) |
Definition at line 98 of file ControlPanel.cpp.
References ControlPanelAlarm::alarm_component_state_array, ControlPanelAlarm::alarm_parameter_value_array, ControlPanelAlarm::alarm_value_difference_array, alarms, SimulationContext::Branch_center, SystemAlarm::copySystemAlarm(), g_sim, AlarmElement::getAlarmName(), AlarmElement::getDisplayedAlarmState(), AlarmElement::getImportanceOfTheAlarm(), indicators, sim::None, sim::Source::Plant, Scheduler::setInfoOfSequenceTerminatedByAlarm(), Communication::setSenderAndReceiver(), Scheduler::setSequenceTerminatedByAlarm(), SimulationContext::SScheduler, BranchRecord::system_branch, updateTotalNumberOfActivatedAlarm(), and updateTotalWeightOfActivatedAlarm().
Referenced by initiationForSimulation(), and oneThroughProcess().
| 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().
| void ControlPanel::clearForRestart | ( | ) |
Definition at line 778 of file ControlPanel.cpp.
References clearControlPanel().
Referenced by AdsidacCallback::initiationForRestart().
| 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().
| void ControlPanel::copyControlPanelForRestart | ( | ControlPanel & | _cp | ) |
Definition at line 766 of file ControlPanel.cpp.
References copyControlPanel().
Referenced by AdsidacCallback::initiationForRestart().
| 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().
| void ControlPanel::executeStateControl | ( | std::string | , |
| int | |||
| ) |
Definition at line 210 of file ControlPanel.cpp.
References controls, and ControlPanelControl::executeStateControl().
| void ControlPanel::executeValueControl | ( | std::string | , |
| double | |||
| ) |
Definition at line 207 of file ControlPanel.cpp.
References controls, and ControlPanelControl::executeValueControl().
Referenced by executeRequestToPlant().
| double ControlPanel::getCurrentTime | ( | ) |
Definition at line 83 of file ControlPanel.cpp.
References current_time.
Referenced by copyControlPanel().
| int ControlPanel::getTotalNumberOfActivatedAlarm | ( | ) |
Definition at line 205 of file ControlPanel.cpp.
References total_number_of_activated_alarm.
Referenced by copyControlPanel().
| double ControlPanel::getTotalWeightOfActivatedAlarm | ( | ) |
Definition at line 206 of file ControlPanel.cpp.
References total_weight_of_activated_alarm.
Referenced by copyControlPanel().
| 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().
|
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.
| void ControlPanel::oneThroughProcess | ( | ) |
Definition at line 732 of file ControlPanel.cpp.
References checkForNewAlarms(), executeRequestToPlant(), and updateDisplay().
Referenced by AdsidacCallback::onEvaluationPoint().
| 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().
| void ControlPanel::retrieveControlPanelFromFile | ( | std::ifstream & | ) |
Definition at line 790 of file ControlPanel.cpp.
References alarms, SimulationContext::Branch_center, controls, current_time, g_sim, indicators, NoKB, r5pars_, ControlPanelAlarm::retrieveControlPanelAlarmFromFile(), ControlPanelControl::retrieveControlPanelControlFromFile(), ControlPanelDisplay::retrieveControlPanelDisplayFromFile(), BranchRecord::setTempESMessage(), BranchRecord::setTempTypeOfConsequence(), total_number_of_activated_alarm, and total_weight_of_activated_alarm.
|
inlineprivate |
Definition at line 67 of file ControlPanel.h.
References alarms, controls, current_time, indicators, total_number_of_activated_alarm, and total_weight_of_activated_alarm.
| 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.
| void ControlPanel::seedFromMaster | ( | const ControlPanel & | master | ) |
Definition at line 738 of file ControlPanel.cpp.
References ControlPanelAlarm::alarm_component_state_array, ControlPanelAlarm::alarm_map, ControlPanelAlarm::alarm_parameter_value_array, ControlPanelAlarm::alarm_value_difference_array, alarms, ControlPanelDisplay::component_state_array, ControlPanelControl::control_map, ControlPanelControl::control_state_array, ControlPanelControl::control_value_array, controls, copyControlPanel(), ControlPanelDisplay::display_map, ControlPanelDisplay::heat_structure_array, indicators, ControlPanelDisplay::parameter_trend_array, ControlPanelDisplay::parameter_value_array, and ControlPanelDisplay::support_systems_state_array.
Referenced by load().
| void ControlPanel::setCurrentTime | ( | ) |
Definition at line 84 of file ControlPanel.cpp.
References current_time, and r5pars_.
Referenced by AdsidacCallback::onEvaluationPoint().
| void ControlPanel::updateDisplay | ( | ) |
Definition at line 94 of file ControlPanel.cpp.
References indicators, and ControlPanelDisplay::updateAllDisplayValueAndState().
Referenced by oneThroughProcess().
| void ControlPanel::updateDisplayAndAlarm | ( | ) |
Definition at line 90 of file ControlPanel.cpp.
References alarms, indicators, ControlPanelAlarm::updateAllDisplayedAlarmState(), and ControlPanelDisplay::updateAllDisplayValueAndState().
| void ControlPanel::updateTotalNumberOfActivatedAlarm | ( | int | n | ) |
Definition at line 199 of file ControlPanel.cpp.
References total_number_of_activated_alarm.
Referenced by checkForNewAlarms().
| void ControlPanel::updateTotalWeightOfActivatedAlarm | ( | double | x | ) |
Definition at line 202 of file ControlPanel.cpp.
References total_weight_of_activated_alarm.
Referenced by checkForNewAlarms().
|
friend |
Definition at line 64 of file ControlPanel.h.
| ControlPanelAlarm ControlPanel::alarms |
Definition at line 52 of file ControlPanel.h.
Referenced by KeyParameterHistoryUnit::addDataSet(), Operator::checkCompletenessOfSystemDecomposition(), checkForNewAlarms(), ProcedureStepUnit::checkForTypeOfExpectation(), DiagnosisComponentActionUnit::checkForTypeOfPrerequisite(), clearControlPanel(), copyControlPanel(), executeRequestToPlant(), ReasonMachine::GetAlarmStateImediately(), load(), KeyParameterHistoryUnit::outputLabelToFile(), KeyParameterHistoryUnit::outputUnitToFile(), readInfoFromFile(), retrieveControlPanelFromFile(), save(), saveControlPanelToFile(), seedFromMaster(), and updateDisplayAndAlarm().
| ControlPanelControl ControlPanel::controls |
Definition at line 54 of file ControlPanel.h.
Referenced by KeyParameterHistoryUnit::addDataSet(), Operator::checkCompletenessOfSystemDecomposition(), ProcedureStepUnit::checkIfIsChangeSystemAction(), clearControlPanel(), copyControlPanel(), ProcedureStepUnit::executeAction(), ManeuverActionUnit::executeManeuverControl(), ProcedureStepUnit::executeNonResponseAction(), executeRequestToPlant(), executeStateControl(), executeValueControl(), initiationForSimulation(), load(), DiagnosisActionModule::onceThroughProcessForReasoningStrategy(), KeyParameterHistoryUnit::outputLabelToFile(), KeyParameterHistoryUnit::outputUnitToFile(), readInfoFromFile(), InitiatingEventUnit::readInfoFromFile(), HWReliabilityModule::readSystemOperationReliabilityInfoFromFile(), HWReliabilityModule::readSystemReliabilityFTInfoFromFile(), HWReliabilityModule::readSystemReliabilityInfoFromFile(), retrieveControlPanelFromFile(), save(), saveControlPanelToFile(), seedFromMaster(), DiagnosisActionUnit::setPtrToHighPriorityAction(), and BranchAction::translateMessage().
|
private |
Definition at line 58 of file ControlPanel.h.
Referenced by clearControlPanel(), ControlPanel(), copyControlPanel(), getCurrentTime(), load(), retrieveControlPanelFromFile(), save(), saveControlPanelToFile(), and setCurrentTime().
| ControlPanelDisplay ControlPanel::indicators |
Definition at line 53 of file ControlPanel.h.
Referenced by KeyParameterHistoryUnit::addDataSet(), HWReliabilityFTUnit::checkAndActivateComponentFailure(), HWReliabilityUnit::checkAndActivateComponentFailure(), SupportSystemReliabilityUnit::checkAndActivateSupportSystemFailure(), Operator::checkCompletenessOfSystemDecomposition(), checkForNewAlarms(), ProcedureStepUnit::checkForTypeOfExpectation(), DiagnosisComponentActionUnit::checkForTypeOfPrerequisite(), clearControlPanel(), copyControlPanel(), ManeuverActionUnit::executeManeuverControl(), executeRequestToPlant(), ReasonMachine::GetAComponentStateImediately(), ReasonMachine::GetAParameterValueImediately(), ReasonMachine::GetASupportSystemStateImediately(), initiationForSimulation(), load(), KeyParameterHistoryUnit::outputLabelToFile(), KeyParameterHistoryUnit::outputUnitToFile(), readInfoFromFile(), SupportSystemReliabilityModule::readInfoFromFile(), HWReliabilityModule::readSystemOperationReliabilityInfoFromFile(), HWReliabilityModule::readSystemReliabilityFTInfoFromFile(), HWReliabilityModule::readSystemReliabilityInfoFromFile(), retrieveControlPanelFromFile(), save(), saveControlPanelToFile(), seedFromMaster(), updateDisplay(), updateDisplayAndAlarm(), and TimeConstrainedUnit::updateRawData().
|
private |
Definition at line 59 of file ControlPanel.h.
Referenced by clearControlPanel(), ControlPanel(), copyControlPanel(), getTotalNumberOfActivatedAlarm(), load(), retrieveControlPanelFromFile(), save(), saveControlPanelToFile(), and updateTotalNumberOfActivatedAlarm().
|
private |
Definition at line 60 of file ControlPanel.h.
Referenced by clearControlPanel(), ControlPanel(), copyControlPanel(), getTotalWeightOfActivatedAlarm(), load(), retrieveControlPanelFromFile(), save(), saveControlPanelToFile(), and updateTotalWeightOfActivatedAlarm().