|
ADS-IDAC Engine 5.0.0
|
#include <AlarmElement.h>
Public Member Functions | |
| AlarmElement () | |
| virtual | ~AlarmElement () |
| void | copyAlarmElement (AlarmElement &) |
| void | setAlarmName (std::string) |
| std::string | getAlarmName () |
| void | readInfoFromFile (std::ifstream &) |
| void | setCorrespondingIndicatorName (std::string) |
| void | setDisplayedAlarmState (int) |
| void | setImportanceOfTheAlarm (double) |
| void | setDisplayedOperatorControlState (int) |
| std::string | getCorrespondingIndicatorName () |
| std::string | getDisplayedAlarmStateString () |
| int | getDisplayedAlarmState () |
| double | getImportanceOfTheAlarm () |
| int | getDisplayedOperatorControlState () |
| void | setTimeRequiredToCheckThisAlarm (double) |
| double | getTimeRequiredToCheckThisAlarm () |
| void | setTimeAtWhichThisAlarmIsActivated (double) |
| double | getTimeAtWhichThisAlarmIsActivated () |
| void | saveAlarmElementToFile (std::ofstream &) |
| void | retrieveAlarmElementFromFile (std::ifstream &) |
| bool | checkIfIsIdenticalAlarmElement (AlarmElement &) |
| template<class Archive > | |
| void | serialize (Archive &ar, const unsigned int version) |
Private Attributes | |
| std::string | alarm_name |
| std::string | corresponding_indicator_name |
| int | displayed_alarm_state |
| double | importance_of_the_alarm |
| int | displayed_operator_control_state |
| double | time_required_to_check_this_alarm |
| double | time_at_which_this_alarm_is_activated |
Friends | |
| class | boost::serialization::access |
Definition at line 19 of file AlarmElement.h.
| AlarmElement::AlarmElement | ( | ) |
Definition at line 17 of file AlarmElement.cpp.
References alarm_name, corresponding_indicator_name, displayed_alarm_state, displayed_operator_control_state, importance_of_the_alarm, sim::State::Off, sim::State::Reset, time_at_which_this_alarm_is_activated, and time_required_to_check_this_alarm.
|
virtual |
Definition at line 29 of file AlarmElement.cpp.
| bool AlarmElement::checkIfIsIdenticalAlarmElement | ( | AlarmElement & | _ae | ) |
Definition at line 80 of file AlarmElement.cpp.
References alarm_name, getAlarmName(), getTimeAtWhichThisAlarmIsActivated(), and time_at_which_this_alarm_is_activated.
Referenced by MentalAlarm::checkIfIsIdenticalMentalAlarm().
| void AlarmElement::copyAlarmElement | ( | AlarmElement & | _ae | ) |
Definition at line 62 of file AlarmElement.cpp.
References alarm_name, corresponding_indicator_name, displayed_alarm_state, displayed_operator_control_state, getAlarmName(), getCorrespondingIndicatorName(), getDisplayedAlarmState(), getDisplayedOperatorControlState(), getImportanceOfTheAlarm(), getTimeAtWhichThisAlarmIsActivated(), getTimeRequiredToCheckThisAlarm(), importance_of_the_alarm, time_at_which_this_alarm_is_activated, and time_required_to_check_this_alarm.
Referenced by MentalAlarm::copyMentalAlarm(), and SystemAlarm::copySystemAlarm().
| string AlarmElement::getAlarmName | ( | ) |
Definition at line 35 of file AlarmElement.cpp.
References alarm_name.
Referenced by ShortTermMemory::checkAndGenerateInfoChunkMentalForRelatedAlarm(), ControlPanel::checkForNewAlarms(), checkIfIsIdenticalAlarmElement(), copyAlarmElement(), ReasonMachine::CutTheLengthOfAlarmStack(), ReasonMachine::FirstRoundCheckInterpretation(), OperatorAT::infoChunking(), OperatorDM::infoChunking(), ControlPanelAlarm::initiateAllAlarms(), ReasonMachine::OneStepInterpretation20(), AlarmComponent::readInfoFromFile(), AlarmParameter::readInfoFromFile(), BranchSystemAlarmState::saveInfoToFile(), BranchExpectedAlarmState::translateMessage(), BranchSystemAlarmState::translateMessage(), AlarmComponent::updateDisplayedAlarmState(), AlarmParameter::updateDisplayedAlarmState(), and AlarmTwoParameterDifference::updateDisplayedAlarmState().
| string AlarmElement::getCorrespondingIndicatorName | ( | ) |
Definition at line 42 of file AlarmElement.cpp.
References corresponding_indicator_name.
Referenced by copyAlarmElement(), AlarmComponent::updateDisplayedAlarmState(), AlarmParameter::updateDisplayedAlarmState(), and AlarmTwoParameterDifference::updateDisplayedAlarmState().
| int AlarmElement::getDisplayedAlarmState | ( | ) |
Definition at line 43 of file AlarmElement.cpp.
References displayed_alarm_state.
Referenced by ControlPanel::checkForNewAlarms(), copyAlarmElement(), ControlPanel::executeRequestToPlant(), ReasonMachine::GetAlarmStateImediately(), BranchSystemAlarmState::translateMessage(), AlarmComponent::updateDisplayedAlarmState(), AlarmParameter::updateDisplayedAlarmState(), and AlarmTwoParameterDifference::updateDisplayedAlarmState().
| string AlarmElement::getDisplayedAlarmStateString | ( | ) |
Definition at line 46 of file AlarmElement.cpp.
References displayed_operator_control_state, and sim::State::On.
| int AlarmElement::getDisplayedOperatorControlState | ( | ) |
Definition at line 57 of file AlarmElement.cpp.
References displayed_operator_control_state.
Referenced by copyAlarmElement(), AlarmComponent::updateDisplayedAlarmState(), AlarmParameter::updateDisplayedAlarmState(), and AlarmTwoParameterDifference::updateDisplayedAlarmState().
| double AlarmElement::getImportanceOfTheAlarm | ( | ) |
Definition at line 45 of file AlarmElement.cpp.
References importance_of_the_alarm.
Referenced by ControlPanel::checkForNewAlarms(), and copyAlarmElement().
| double AlarmElement::getTimeAtWhichThisAlarmIsActivated | ( | ) |
Definition at line 61 of file AlarmElement.cpp.
References time_at_which_this_alarm_is_activated.
Referenced by checkIfIsIdenticalAlarmElement(), and copyAlarmElement().
| double AlarmElement::getTimeRequiredToCheckThisAlarm | ( | ) |
Definition at line 59 of file AlarmElement.cpp.
References time_required_to_check_this_alarm.
Referenced by copyAlarmElement().
| void AlarmElement::readInfoFromFile | ( | std::ifstream & | ) |
Definition at line 37 of file AlarmElement.cpp.
References alarm_name, corresponding_indicator_name, importance_of_the_alarm, and time_required_to_check_this_alarm.
Referenced by SystemAlarm::readInfoFromFile().
| void AlarmElement::retrieveAlarmElementFromFile | ( | std::ifstream & | ) |
Definition at line 76 of file AlarmElement.cpp.
References alarm_name, corresponding_indicator_name, displayed_alarm_state, displayed_operator_control_state, importance_of_the_alarm, time_at_which_this_alarm_is_activated, and time_required_to_check_this_alarm.
Referenced by MentalAlarm::retrieveMentalAlarmFromFile(), and SystemAlarm::retrieveSystemAlarmFromFile().
| void AlarmElement::saveAlarmElementToFile | ( | std::ofstream & | ) |
Definition at line 71 of file AlarmElement.cpp.
References alarm_name, corresponding_indicator_name, displayed_alarm_state, displayed_operator_control_state, importance_of_the_alarm, time_at_which_this_alarm_is_activated, and time_required_to_check_this_alarm.
Referenced by MentalAlarm::saveMentalAlarmToFile(), and SystemAlarm::saveSystemAlarmToFile().
|
inline |
Definition at line 47 of file AlarmElement.h.
References alarm_name, corresponding_indicator_name, displayed_alarm_state, displayed_operator_control_state, importance_of_the_alarm, time_at_which_this_alarm_is_activated, and time_required_to_check_this_alarm.
| void AlarmElement::setAlarmName | ( | std::string | ) |
Definition at line 34 of file AlarmElement.cpp.
References alarm_name.
Referenced by Operator::ActiveFetchAlarmStateInfo(), and ExpectationORUnit::assessExpectation().
| void AlarmElement::setCorrespondingIndicatorName | ( | std::string | ) |
Definition at line 40 of file AlarmElement.cpp.
References corresponding_indicator_name.
| void AlarmElement::setDisplayedAlarmState | ( | int | n | ) |
Definition at line 41 of file AlarmElement.cpp.
References displayed_alarm_state.
Referenced by MentalAlarm::MentalAlarm(), AlarmComponent::updateDisplayedAlarmState(), AlarmParameter::updateDisplayedAlarmState(), and AlarmTwoParameterDifference::updateDisplayedAlarmState().
| void AlarmElement::setDisplayedOperatorControlState | ( | int | n | ) |
Definition at line 56 of file AlarmElement.cpp.
References displayed_operator_control_state.
| void AlarmElement::setImportanceOfTheAlarm | ( | double | x | ) |
Definition at line 44 of file AlarmElement.cpp.
References importance_of_the_alarm.
| void AlarmElement::setTimeAtWhichThisAlarmIsActivated | ( | double | x | ) |
Definition at line 60 of file AlarmElement.cpp.
References time_at_which_this_alarm_is_activated.
Referenced by OperatorAT::infoChunking(), OperatorDM::infoChunking(), AlarmComponent::updateDisplayedAlarmState(), AlarmParameter::updateDisplayedAlarmState(), and AlarmTwoParameterDifference::updateDisplayedAlarmState().
| void AlarmElement::setTimeRequiredToCheckThisAlarm | ( | double | x | ) |
Definition at line 58 of file AlarmElement.cpp.
References time_required_to_check_this_alarm.
Referenced by Operator::ActiveFetchAlarmStateInfo().
|
friend |
Definition at line 45 of file AlarmElement.h.
|
private |
Definition at line 59 of file AlarmElement.h.
Referenced by AlarmElement(), checkIfIsIdenticalAlarmElement(), copyAlarmElement(), getAlarmName(), readInfoFromFile(), retrieveAlarmElementFromFile(), saveAlarmElementToFile(), serialize(), and setAlarmName().
|
private |
Definition at line 60 of file AlarmElement.h.
Referenced by AlarmElement(), copyAlarmElement(), getCorrespondingIndicatorName(), readInfoFromFile(), retrieveAlarmElementFromFile(), saveAlarmElementToFile(), serialize(), and setCorrespondingIndicatorName().
|
private |
Definition at line 61 of file AlarmElement.h.
Referenced by AlarmElement(), copyAlarmElement(), getDisplayedAlarmState(), retrieveAlarmElementFromFile(), saveAlarmElementToFile(), serialize(), and setDisplayedAlarmState().
|
private |
Definition at line 63 of file AlarmElement.h.
Referenced by AlarmElement(), copyAlarmElement(), getDisplayedAlarmStateString(), getDisplayedOperatorControlState(), retrieveAlarmElementFromFile(), saveAlarmElementToFile(), serialize(), and setDisplayedOperatorControlState().
|
private |
Definition at line 62 of file AlarmElement.h.
Referenced by AlarmElement(), copyAlarmElement(), getImportanceOfTheAlarm(), readInfoFromFile(), retrieveAlarmElementFromFile(), saveAlarmElementToFile(), serialize(), and setImportanceOfTheAlarm().
|
private |
Definition at line 65 of file AlarmElement.h.
Referenced by AlarmElement(), checkIfIsIdenticalAlarmElement(), copyAlarmElement(), getTimeAtWhichThisAlarmIsActivated(), retrieveAlarmElementFromFile(), saveAlarmElementToFile(), serialize(), and setTimeAtWhichThisAlarmIsActivated().
|
private |
Definition at line 64 of file AlarmElement.h.
Referenced by AlarmElement(), copyAlarmElement(), getTimeRequiredToCheckThisAlarm(), readInfoFromFile(), retrieveAlarmElementFromFile(), saveAlarmElementToFile(), serialize(), and setTimeRequiredToCheckThisAlarm().