|
ADS-IDAC Engine 5.0.0
|
#include <ExpectationElement.h>
Public Member Functions | |
| virtual void | state_save (boost::archive::binary_oarchive &ar) const |
| virtual void | state_load (boost::archive::binary_iarchive &ar) |
| ExpectationElement () | |
| virtual | ~ExpectationElement () |
| void | setStateOfExpectation (int) |
| int | getStateOfExpectation () |
| int | updateExpectation (int) |
| void | copyExpectationElement (ExpectationElement &) |
| void | setTypeOfExpectation (int) |
| int | getTypeOfExpectation () |
| void | saveExpectationElementToFile (std::ofstream &) |
| void | retrieveExpectationElementFromFile (std::ifstream &) |
| bool | checkIfIsIdenticalExpectationElement (ExpectationElement &) |
| template<class Archive > | |
| void | serialize (Archive &ar, const unsigned int version) |
Private Attributes | |
| int | state_of_expectation |
| int | type_of_expectation |
Friends | |
| class | boost::serialization::access |
Definition at line 19 of file ExpectationElement.h.
| ExpectationElement::ExpectationElement | ( | ) |
Definition at line 17 of file ExpectationElement.cpp.
References sim::None, state_of_expectation, and type_of_expectation.
|
virtual |
Definition at line 23 of file ExpectationElement.cpp.
| bool ExpectationElement::checkIfIsIdenticalExpectationElement | ( | ExpectationElement & | _ee | ) |
Definition at line 81 of file ExpectationElement.cpp.
References getStateOfExpectation(), getTypeOfExpectation(), state_of_expectation, and type_of_expectation.
Referenced by ExpectedMentalBelief::checkIfIsIdenticalExpectedMentalBelief().
| void ExpectationElement::copyExpectationElement | ( | ExpectationElement & | _eep | ) |
Definition at line 69 of file ExpectationElement.cpp.
References getStateOfExpectation(), getTypeOfExpectation(), state_of_expectation, and type_of_expectation.
Referenced by ExpectedMentalBelief::copyExpectedMentalBelief(), HardWiredControlActivity::copyHardWiredControlActivity(), HardWiredMentalBelief::copyHardWiredMentalBelief(), HardWiredProcedureActivity::copyHardWiredProcedureActivity(), KBExpectedActionPackUnit::copyKBExpectedActionPackUnit(), KBExpectedAlarmStateUnit::copyKBExpectedAlarmStateUnit(), KBExpectedComponentStateUnit::copyKBExpectedComponentStateUnit(), KBExpectedParameterDifferenceUnit::copyKBExpectedParameterDifferenceUnit(), KBExpectedParameterValueUnit::copyKBExpectedParameterValueUnit(), and KBExpectedSupportSystemStateUnit::copyKBExpectedSupportSystemStateUnit().
| int ExpectationElement::getStateOfExpectation | ( | ) |
Definition at line 28 of file ExpectationElement.cpp.
References state_of_expectation.
Referenced by checkIfIsIdenticalExpectationElement(), copyExpectationElement(), BranchExpectedAlarmState::saveInfoToFile(), BranchExpectedComponentState::saveInfoToFile(), BranchExpectedMentalBelief::saveInfoToFile(), BranchExpectedParameterTrend::saveInfoToFile(), BranchExpectedParameterValue::saveInfoToFile(), BranchExpectedSupportSystemState::saveInfoToFile(), BranchExpectedAlarmState::translateMessage(), BranchExpectedComponentState::translateMessage(), BranchExpectedMentalBelief::translateMessage(), BranchExpectedParameterDifference::translateMessage(), BranchExpectedParameterTrend::translateMessage(), BranchExpectedParameterValue::translateMessage(), and BranchExpectedSupportSystemState::translateMessage().
| int ExpectationElement::getTypeOfExpectation | ( | ) |
Definition at line 74 of file ExpectationElement.cpp.
References type_of_expectation.
Referenced by checkIfIsIdenticalExpectationElement(), and copyExpectationElement().
| void ExpectationElement::retrieveExpectationElementFromFile | ( | std::ifstream & | ) |
Definition at line 78 of file ExpectationElement.cpp.
References state_of_expectation, and type_of_expectation.
Referenced by ExpectedMentalBelief::retrieveExpectedMentalBeliefFromFile(), HardWiredControlActivity::retrieveHardWiredControlActivityFromFile(), HardWiredMentalBelief::retrieveHardWiredMentalBeliefFromFile(), HardWiredProcedureActivity::retrieveHardWiredProcedureActivityFromFile(), KBExpectedActionPackUnit::retrieveKBExpectedActionPackUnitFromFile(), KBExpectedAlarmStateUnit::retrieveKBExpectedAlarmStateUnitFromFile(), KBExpectedComponentStateUnit::retrieveKBExpectedComponentStateUnitFromFile(), KBExpectedParameterDifferenceUnit::retrieveKBExpectedParameterDifferenceUnitFromFile(), KBExpectedParameterValueUnit::retrieveKBExpectedParameterValueUnitFromFile(), and KBExpectedSupportSystemStateUnit::retrieveKBExpectedSupportSystemStateUnitFromFile().
| void ExpectationElement::saveExpectationElementToFile | ( | std::ofstream & | ) |
Definition at line 75 of file ExpectationElement.cpp.
References state_of_expectation, and type_of_expectation.
Referenced by ExpectedMentalBelief::saveExpectedMentalBeliefToFile(), HardWiredControlActivity::saveHardWiredControlActivityToFile(), HardWiredMentalBelief::saveHardWiredMentalBeliefToFile(), HardWiredProcedureActivity::saveHardWiredProcedureActivityToFile(), KBExpectedActionPackUnit::saveKBExpectedActionPackUnitToFile(), KBExpectedAlarmStateUnit::saveKBExpectedAlarmStateUnitToFile(), KBExpectedComponentStateUnit::saveKBExpectedComponentStateUnitToFile(), KBExpectedParameterDifferenceUnit::saveKBExpectedParameterDifferenceUnitToFile(), KBExpectedParameterValueUnit::saveKBExpectedParameterValueUnitToFile(), and KBExpectedSupportSystemStateUnit::saveKBExpectedSupportSystemStateUnitToFile().
|
inline |
Definition at line 42 of file ExpectationElement.h.
References state_of_expectation, and type_of_expectation.
| void ExpectationElement::setStateOfExpectation | ( | int | n | ) |
Definition at line 27 of file ExpectationElement.cpp.
References state_of_expectation.
Referenced by ExpectationORUnit::assessExpectation(), KBExpectedComponentStateUnit::KBExpectedComponentStateUnit(), KBExpectedParameterTrendUnit::KBExpectedParameterTrendUnit(), and KBExpectedSupportSystemStateUnit::KBExpectedSupportSystemStateUnit().
| void ExpectationElement::setTypeOfExpectation | ( | int | n | ) |
Definition at line 73 of file ExpectationElement.cpp.
References type_of_expectation.
Referenced by HardWiredControlActivity::HardWiredControlActivity(), HardWiredMentalBelief::HardWiredMentalBelief(), HardWiredProcedureActivity::HardWiredProcedureActivity(), KBExpectedActionPackUnit::KBExpectedActionPackUnit(), KBExpectedAlarmStateUnit::KBExpectedAlarmStateUnit(), KBExpectedComponentStateUnit::KBExpectedComponentStateUnit(), KBExpectedParameterTrendUnit::KBExpectedParameterTrendUnit(), KBExpectedParameterValueUnit::KBExpectedParameterValueUnit(), KBExpectedSupportSystemStateUnit::KBExpectedSupportSystemStateUnit(), DiagnosisComponentActionUnit::readDiagnosisComponentPrerequisiteFromFile(), and ProcedureStepUnit::readInfofromFileExpectation().
|
virtual |
Reimplemented in ExpectedMentalBelief, ProcedureExpectedActionPackUnit, ProcedureExpectedAlarmStateUnit, ProcedureExpectedComponentStateUnit, ProcedureExpectedParameterDifferenceUnit, ProcedureExpectedParameterTrendUnit, ProcedureExpectedParameterValueUnit, and ProcedureExpectedSupportSystemStateUnit.
Definition at line 95 of file ExpectationElement.cpp.
References state_of_expectation.
Referenced by ExpectedMentalBelief::state_load(), ProcedureExpectedActionPackUnit::state_load(), ProcedureExpectedAlarmStateUnit::state_load(), ProcedureExpectedComponentStateUnit::state_load(), ProcedureExpectedParameterDifferenceUnit::state_load(), ProcedureExpectedParameterTrendUnit::state_load(), ProcedureExpectedParameterValueUnit::state_load(), and ProcedureExpectedSupportSystemStateUnit::state_load().
|
virtual |
Reimplemented in ExpectedMentalBelief, ProcedureExpectedActionPackUnit, ProcedureExpectedAlarmStateUnit, ProcedureExpectedComponentStateUnit, ProcedureExpectedParameterDifferenceUnit, ProcedureExpectedParameterTrendUnit, ProcedureExpectedParameterValueUnit, and ProcedureExpectedSupportSystemStateUnit.
Definition at line 92 of file ExpectationElement.cpp.
References state_of_expectation.
Referenced by ExpectedMentalBelief::state_save(), ProcedureExpectedActionPackUnit::state_save(), ProcedureExpectedAlarmStateUnit::state_save(), ProcedureExpectedComponentStateUnit::state_save(), ProcedureExpectedParameterDifferenceUnit::state_save(), ProcedureExpectedParameterTrendUnit::state_save(), ProcedureExpectedParameterValueUnit::state_save(), and ProcedureExpectedSupportSystemStateUnit::state_save().
| int ExpectationElement::updateExpectation | ( | int | _fulfilled_state | ) |
Definition at line 29 of file ExpectationElement.cpp.
References sim::State::Failed, sim::None, state_of_expectation, and sim::State::Succeed.
Referenced by HardWiredControlActivity::checkForMatch(), KBExpectedParameterValueUnit::checkForMatch(), KBExpectedParameterDifferenceUnit::checkForMatch(), HardWiredMentalBelief::checkForMatch(), HardWiredProcedureActivity::checkForMatch(), KBExpectedAlarmStateUnit::checkForMatch(), KBExpectedComponentStateUnit::checkForMatch(), and KBExpectedSupportSystemStateUnit::checkForMatch().
|
friend |
Definition at line 40 of file ExpectationElement.h.
|
private |
Definition at line 49 of file ExpectationElement.h.
Referenced by checkIfIsIdenticalExpectationElement(), copyExpectationElement(), ExpectationElement(), getStateOfExpectation(), retrieveExpectationElementFromFile(), saveExpectationElementToFile(), serialize(), setStateOfExpectation(), state_load(), state_save(), and updateExpectation().
|
private |
Definition at line 50 of file ExpectationElement.h.
Referenced by checkIfIsIdenticalExpectationElement(), copyExpectationElement(), ExpectationElement(), getTypeOfExpectation(), retrieveExpectationElementFromFile(), saveExpectationElementToFile(), serialize(), and setTypeOfExpectation().