-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathModelCheckerMyImpl1.cpp
62 lines (48 loc) · 1.35 KB
/
ModelCheckerMyImpl1.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: ModelCheckerMyImpl1.cpp
* Author: cancian
*
* Created on 23 de Agosto de 2018, 15:52
*/
#include <list>
#include "ModelCheckerMyImpl1.h"
ModelCheckerMyImpl1::ModelCheckerMyImpl1(Model* model) {
_model = model;
}
ModelCheckerMyImpl1::ModelCheckerMyImpl1(const ModelCheckerMyImpl1& orig) {
}
ModelCheckerMyImpl1::~ModelCheckerMyImpl1() {
}
bool ModelCheckerMyImpl1::checkAll() {
bool res = checkConnected();
if (res) res = checkPathway();
if (res) res = checkSymbols();
if (res) res = checkAndAddInternalLiterals();
if (res) res = checkActivationCode();
return res;
}
bool ModelCheckerMyImpl1::checkAndAddInternalLiterals() {
return true;
}
bool ModelCheckerMyImpl1::checkConnected() {
return true;
}
bool ModelCheckerMyImpl1::checkSymbols() {
return true;
}
bool ModelCheckerMyImpl1::checkPathway() {
/* TODO +-: not implemented yet */
std::list<ModelComponent*>* list = _model->getComponents()->getList();
for (std::list<ModelComponent*>::iterator it = list->begin(); it != list->end(); it++) {
_model->trace(Util::TraceLevel::TL_mostDetailed, (*it)->show()); ////
}
return true;
}
bool ModelCheckerMyImpl1::checkActivationCode() {
return true;
}