← Documentation
ADS-IDAC Engine 5.0.0
KBExpectedActionPackUnit.cpp
Go to the documentation of this file.
1// KBExpectedActionPackUnit.cpp: implementation of the KBExpectedActionPackUnit class.
2//
4
6using namespace std;
7
9// Construction/Destruction
11
13{
16}
17
19{
20
21}
25 fin >> expected_state;
26}
27/*int KBExpectedActionPackUnit::checkForMatch(string _ap_name, int _comp_state){
28 string str = KBElement::getInfoName();
29 int n_return = 0;
30 if(_comp_name.compare(KBElement::getInfoName()) == 0){
31 if (_comp_state == expected_state){
32 n_return = ExpectationElement::updateExpectation(1);
33 }
34 else{
35 n_return = ExpectationElement::updateExpectation(-1);
36 }
37 }
38 else{
39 n_return = 0;
40 }
41 return n_return;
42}*/
47}
48
51 fout << expected_state << '\n';
52 this->saveKBElementToFile(fout);
54}
56 fin >> expected_state;
59}
void saveExpectationElementToFile(std::ofstream &)
void retrieveExpectationElementFromFile(std::ifstream &)
void copyExpectationElement(ExpectationElement &)
void readInfoFromFile(std::ifstream &)
Definition: KBElement.cpp:27
void retrieveKBElementFromFile(std::ifstream &)
Definition: KBElement.cpp:36
void saveKBElementToFile(std::ofstream &)
Definition: KBElement.cpp:33
void copyKBElement(KBElement &)
Definition: KBElement.cpp:30
void saveKBExpectedActionPackUnitToFile(std::ofstream &)
void readInfoFromFile(std::ifstream &)
void retrieveKBExpectedActionPackUnitFromFile(std::ifstream &)
void copyKBExpectedActionPackUnit(KBExpectedActionPackUnit &)
constexpr int Pack
Definition: SimConstants.h:198
constexpr int None
Definition: SimConstants.h:75