|
ADS-IDAC Engine 5.0.0
|
#include <KBActionPackUnit.h>
Public Member Functions | |
| KBActionPackUnit () | |
| virtual | ~KBActionPackUnit () |
| void | readInfoFromFile (std::ifstream &) |
| void | checkForAction (std::string, double) |
| void | checkForAlarmState (std::string, int) |
| void | checkForComponentState (std::string, int) |
| void | checkForParameterValue (std::string, double, int) |
| void | checkForParameterTrend (std::string, int) |
| bool | updateActionPackUnitState () |
| void | copyKBActionPackUnit (KBActionPackUnit &) |
Public Member Functions inherited from KBElement | |
| KBElement () | |
| virtual | ~KBElement () |
| void | setInfoName (std::string) |
| std::string | getInfoName () |
| void | readInfoFromFile (std::ifstream &) |
| void | copyKBElement (KBElement &) |
| void | saveKBElementToFile (std::ofstream &) |
| void | retrieveKBElementFromFile (std::ifstream &) |
| bool | checkIfIsIdenticalKBElement (KBElement &) |
| template<class Archive > | |
| void | serialize (Archive &ar, const unsigned int version) |
Public Member Functions inherited from StateOfActivation | |
| StateOfActivation () | |
| virtual | ~StateOfActivation () |
| int | getStateOfActivation () |
| void | setStateOfActivation (int) |
| void | copyStateOfActivation (StateOfActivation &) |
| void | saveStateOfActivationToFile (std::ofstream &) |
| void | retrieveStateOfActivationFromFile (std::ifstream &) |
| void | resetStateOfActivation () |
| bool | checkIfIsIdenticalStateOfActivation (StateOfActivation &) |
| template<class Archive > | |
| void | serialize (Archive &ar, const unsigned int version) |
Public Attributes | |
| std::vector< std::unique_ptr< DecisionAction > > | action |
| std::vector< std::unique_ptr< KBExpectedAlarmStateUnit > > | expected_alarm_state |
| std::vector< std::unique_ptr< KBExpectedComponentStateUnit > > | expected_component_state |
| std::vector< std::unique_ptr< KBExpectedParameterValueUnit > > | expected_parameter_value |
| std::vector< std::unique_ptr< KBExpectedParameterTrendUnit > > | expected_parameter_trend |
Public Attributes inherited from KBElement | |
| std::string | info_name |
Definition at line 16 of file KBActionPackUnit.h.
| KBActionPackUnit::KBActionPackUnit | ( | ) |
Definition at line 12 of file KBActionPackUnit.cpp.
|
virtual |
Definition at line 17 of file KBActionPackUnit.cpp.
References action, expected_alarm_state, expected_component_state, expected_parameter_trend, and expected_parameter_value.
| void KBActionPackUnit::checkForAction | ( | std::string | , |
| double | |||
| ) |
Definition at line 60 of file KBActionPackUnit.cpp.
References action.
| void KBActionPackUnit::checkForAlarmState | ( | std::string | , |
| int | |||
| ) |
Definition at line 66 of file KBActionPackUnit.cpp.
References expected_alarm_state.
| void KBActionPackUnit::checkForComponentState | ( | std::string | , |
| int | |||
| ) |
Definition at line 72 of file KBActionPackUnit.cpp.
References expected_component_state.
| void KBActionPackUnit::checkForParameterTrend | ( | std::string | , |
| int | |||
| ) |
Definition at line 84 of file KBActionPackUnit.cpp.
References expected_parameter_trend.
| void KBActionPackUnit::checkForParameterValue | ( | std::string | , |
| double | , | ||
| int | |||
| ) |
Definition at line 78 of file KBActionPackUnit.cpp.
References expected_parameter_value.
| void KBActionPackUnit::copyKBActionPackUnit | ( | KBActionPackUnit & | _ap | ) |
Definition at line 90 of file KBActionPackUnit.cpp.
References action, KBElement::copyKBElement(), StateOfActivation::copyStateOfActivation(), expected_alarm_state, expected_component_state, expected_parameter_trend, and expected_parameter_value.
| void KBActionPackUnit::readInfoFromFile | ( | std::ifstream & | ) |
Definition at line 25 of file KBActionPackUnit.cpp.
References action, expected_alarm_state, expected_component_state, expected_parameter_value, and KBElement::readInfoFromFile().
| bool KBActionPackUnit::updateActionPackUnitState | ( | ) |
Definition at line 119 of file KBActionPackUnit.cpp.
References action, sim::State::Active, expected_alarm_state, expected_component_state, expected_parameter_value, StateOfActivation::getStateOfActivation(), StateOfActivation::setStateOfActivation(), and sim::State::Succeed.
| std::vector<std::unique_ptr<DecisionAction> > KBActionPackUnit::action |
Definition at line 31 of file KBActionPackUnit.h.
Referenced by checkForAction(), copyKBActionPackUnit(), readInfoFromFile(), updateActionPackUnitState(), and ~KBActionPackUnit().
| std::vector<std::unique_ptr<KBExpectedAlarmStateUnit> > KBActionPackUnit::expected_alarm_state |
Definition at line 32 of file KBActionPackUnit.h.
Referenced by checkForAlarmState(), copyKBActionPackUnit(), readInfoFromFile(), updateActionPackUnitState(), and ~KBActionPackUnit().
| std::vector<std::unique_ptr<KBExpectedComponentStateUnit> > KBActionPackUnit::expected_component_state |
Definition at line 33 of file KBActionPackUnit.h.
Referenced by checkForComponentState(), copyKBActionPackUnit(), readInfoFromFile(), updateActionPackUnitState(), and ~KBActionPackUnit().
| std::vector<std::unique_ptr<KBExpectedParameterTrendUnit> > KBActionPackUnit::expected_parameter_trend |
Definition at line 35 of file KBActionPackUnit.h.
Referenced by checkForParameterTrend(), copyKBActionPackUnit(), and ~KBActionPackUnit().
| std::vector<std::unique_ptr<KBExpectedParameterValueUnit> > KBActionPackUnit::expected_parameter_value |
Definition at line 34 of file KBActionPackUnit.h.
Referenced by checkForParameterValue(), copyKBActionPackUnit(), readInfoFromFile(), updateActionPackUnitState(), and ~KBActionPackUnit().