|
ADS-IDAC Engine 5.0.0
|
#include <KBExpectedComponentStateUnit.h>
Public Member Functions | |
| KBExpectedComponentStateUnit () | |
| virtual | ~KBExpectedComponentStateUnit () |
| void | setExpectedState (int) |
| void | readInfoFromFile (std::ifstream &) |
| int | getExpectedState () |
| int | checkForMatch (std::string, int) |
| void | copyKBExpectedComponentStateUnit (KBExpectedComponentStateUnit &) |
| void | saveKBExpectedComponentStateUnitToFile (std::ofstream &) |
| void | retrieveKBExpectedComponentStateUnitFromFile (std::ifstream &) |
| template<class Archive > | |
| void | serialize (Archive &ar, const unsigned int version) |
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 ExpectationElement | |
| 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 | expected_state |
Friends | |
| class | boost::serialization::access |
Additional Inherited Members | |
Public Attributes inherited from KBElement | |
| std::string | info_name |
Definition at line 16 of file KBExpectedComponentStateUnit.h.
| KBExpectedComponentStateUnit::KBExpectedComponentStateUnit | ( | ) |
Definition at line 19 of file KBExpectedComponentStateUnit.cpp.
References sim::Comm::ComponentState, expected_state, sim::None, ExpectationElement::setStateOfExpectation(), and ExpectationElement::setTypeOfExpectation().
|
virtual |
Definition at line 26 of file KBExpectedComponentStateUnit.cpp.
| int KBExpectedComponentStateUnit::checkForMatch | ( | std::string | , |
| int | |||
| ) |
Definition at line 35 of file KBExpectedComponentStateUnit.cpp.
References expected_state, sim::State::Failed, KBElement::getInfoName(), sim::State::Succeed, and ExpectationElement::updateExpectation().
| void KBExpectedComponentStateUnit::copyKBExpectedComponentStateUnit | ( | KBExpectedComponentStateUnit & | _ecp | ) |
Definition at line 51 of file KBExpectedComponentStateUnit.cpp.
References ExpectationElement::copyExpectationElement(), KBElement::copyKBElement(), expected_state, and getExpectedState().
Referenced by ExpectationORUnit::assessExpectation(), DecisionExpectedComponentState::copyDecisionExpectedComponentState(), and ProcedureExpectedComponentStateUnit::copyProcedureExpectedComponentStateUnit().
| int KBExpectedComponentStateUnit::getExpectedState | ( | ) |
Definition at line 57 of file KBExpectedComponentStateUnit.cpp.
References expected_state.
Referenced by ExpectationORUnit::assessExpectation(), InfoChunk::checkWhetherExpectedComponentStateMatchObservation(), copyKBExpectedComponentStateUnit(), BranchExpectedComponentState::saveInfoToFile(), and BranchExpectedComponentState::translateMessage().
| void KBExpectedComponentStateUnit::readInfoFromFile | ( | std::ifstream & | ) |
Definition at line 31 of file KBExpectedComponentStateUnit.cpp.
References expected_state, and KBElement::readInfoFromFile().
| void KBExpectedComponentStateUnit::retrieveKBExpectedComponentStateUnitFromFile | ( | std::ifstream & | ) |
Definition at line 63 of file KBExpectedComponentStateUnit.cpp.
References SimulationContext::Branch_center, expected_state, g_sim, NoKB, r5pars_, ExpectationElement::retrieveExpectationElementFromFile(), KBElement::retrieveKBElementFromFile(), BranchRecord::setTempESMessage(), and BranchRecord::setTempTypeOfConsequence().
Referenced by DecisionExpectedComponentState::retrieveDecisionExpectedComponentStateFromFile(), and ProcedureExpectedComponentStateUnit::retrieveProcedureExpectedComponentStateUnitFromFile().
| void KBExpectedComponentStateUnit::saveKBExpectedComponentStateUnitToFile | ( | std::ofstream & | ) |
Definition at line 58 of file KBExpectedComponentStateUnit.cpp.
References expected_state, ExpectationElement::saveExpectationElementToFile(), and KBElement::saveKBElementToFile().
Referenced by DecisionExpectedComponentState::saveDecisionExpectedComponentStateToFile(), and ProcedureExpectedComponentStateUnit::saveProcedureExpectedComponentStateUnitToFile().
|
inline |
Definition at line 31 of file KBExpectedComponentStateUnit.h.
References expected_state.
| void KBExpectedComponentStateUnit::setExpectedState | ( | int | n | ) |
Definition at line 30 of file KBExpectedComponentStateUnit.cpp.
References expected_state.
Referenced by ExpectationORUnit::assessExpectation(), ProcedureExpectedComponentStateUnit::readInfoFromFile(), and ProcedureExpectedComponentStateUnit::readInfoFromFileWithoutInfoName().
|
friend |
Definition at line 29 of file KBExpectedComponentStateUnit.h.
|
private |
Definition at line 41 of file KBExpectedComponentStateUnit.h.
Referenced by checkForMatch(), copyKBExpectedComponentStateUnit(), getExpectedState(), KBExpectedComponentStateUnit(), readInfoFromFile(), retrieveKBExpectedComponentStateUnitFromFile(), saveKBExpectedComponentStateUnitToFile(), serialize(), and setExpectedState().