DiaDes  0.1
DIAgnosis of Discrete-Event System
Pattern.hh
Go to the documentation of this file.
1 #ifndef __DIADES_PETRI_PATTERN__HH__
2 #define __DIADES_PETRI_PATTERN__HH__
3 
4 #include<diades/petri/DdNet.hh>
5 
6 namespace Diades
7 {
8  namespace Petri
9  {
10 
11  class Pattern : public DdNet
12  {
13  protected:
14  string _seltFormula;
15  private:
16 
17 
18 
19  public:
20 
21  Pattern() : DdNet(), _seltFormula()
22  {
23  _finalMarkings.reserve(100);
24  }
25 
26 
27  void pattern2Dot(const string & fileName) const;
28 
29 
30  const string &
31  seltFormula() const
32  {
33  return _seltFormula;
34  }
35 
36 
37  void computeSeltFormula();
38 
39 
40  virtual void setObservable(Event e)
41  {
42  always_require(Exception,false,"setObservable: attempt to set an observable event in a Pattern. It might be due to the fact that you are trying to read a ddnet file and interpret as a Pattern.");
43  }
44  };
45 
46 
47 
48  };
49 };
50 
51 
52 
53 
54 
55 
56 
57 
58 
59 #endif
#define always_require(Exception, expr, message)
Definition: Assertion.hh:122
PetriEventManager::EventId Event
Definition: LabelledNet.hh:39
Namespace of the Diades project.
const string & seltFormula() const
Definition: Pattern.hh:31
void pattern2Dot(const string &fileName) const
virtual void setObservable(Event e)
Definition: Pattern.hh:40
vector< Marking > _finalMarkings
Definition: DdNet.hh:26