DiaDes  0.1
DIAgnosis of Discrete-Event System
CompleteActiveDiagnoser.hh
Go to the documentation of this file.
1 /*
2  * CompleteActiveDiagnoser.hh
3  *
4  * Created on: 30 sept. 2008
5  * Author: ypencole
6  */
7 
8 #ifndef COMPLETEACTIVEDIAGNOSER_HH_
9 #define COMPLETEACTIVEDIAGNOSER_HH_
10 
11 #include <unordered_map>
12 #include <Graph/Graph.hh>
13 #include <AModel/Signature.hh>
14 
15 using namespace Grph;
16 using namespace std;
17 
18 
19 namespace AModel
20 {
21 
22 
24 {
25 private:
26  typedef enum {Monitoring, Active, Done} DiagnoserStatus;
27 
29  StateMap<DiagnoserStatus> _tags;
30  TransMap<string> _labels;
32  string _name;
33 
34 public:
35  CompleteActiveDiagnoser(const Signature & activeSig, const Signature & completeSig);
36  virtual ~CompleteActiveDiagnoser();
37  void diagnoser2Dot(const string & filename,unordered_map<string,string> & dico);
38  void admissiblePlans2Dot(const string & suffix, unordered_map<string,string> & dico);
39  void admissiblePlans2Dot(State s, const string & filename, unordered_map<string,string> & dico);
40 };
41 
42 }
43 
44 #endif /* COMPLETEACTIVEDIAGNOSER_HH_ */
StateMap< DiagnoserStatus > _tags
STL namespace.
AutFsm::State State
Definition: Run.cc:72
boost::adjacency_list Graph
Definition: ScaleFree.cc:9