DiaDes  0.1
DIAgnosis of Discrete-Event System
RealTimeSystemPattern.hh
Go to the documentation of this file.
1 
8 #ifndef __DIADES__PETRI__REALTIMESYSTEMPATTERN__HH__
9 #define __DIADES__PETRI__REALTIMESYSTEMPATTERN__HH__
10 
14 
15 namespace Diades
16 {
17 
18  namespace Petri
19  {
20 
27  {
28  protected:
29  vector<Marking> _finalMarkings;
31  //vector<Place> _nonAdmissiblePatternPlaces;
32 
33 
34  public:
35 
42  const Pattern & pattern);
43  protected:
44 
54  void copyPlaces(const BoundedNet & net,
57  const string & prefix,
58  unordered_map<Place, Place> & mapping);
59 
60 
61 
69  void setFinalMarkings(const vector<Marking> & patFinalMarkings,
70  unordered_map<Place, Place> & mapping);
71 
82  void copySystemTransitions(const RealTimeSystem & system,
83  unordered_map<Place, Place> & mappingSystem,
84  unordered_map<Transition, Transition> & mappingTransitionSystem,
85  const Pattern & pattern,
86  unordered_map<unsigned, std::vector<size_t> > & decomposedTransitionsForEvent);
87 
96  void
98  const Pattern & pattern,
99  const unordered_map<Place, Place> & mappingPattern,
100  const unordered_map<unsigned, std::vector<size_t> > & decomposedTransitionsForEvent);
101 
102  public:
103 
108  const vector<Marking> &
110  {
111  return _finalMarkings;
112  }
113 
118  const vector<Place> &
120  {
122  }
123 
124  // const vector<Place> &
125  // nonAdmissiblePatternPlaces() const
126  // {
127  // return _nonAdmissiblePatternPlaces;
128  // }
129  };
130 
131  }
132 }
133 
134 #endif /* __DIADES__PETRI__REALTIMESYSTEMPATTERN__HH__ */
135 
void setFinalMarkings(const vector< Marking > &patFinalMarkings, unordered_map< Place, Place > &mapping)
n-bounded Petri nets
Definition: BoundedNet.hh:50
void copyPlaces(const BoundedNet &net, RealTimeSystemPattern::PlaceIterator first, RealTimeSystemPattern::PlaceIterator end, const string &prefix, unordered_map< Place, Place > &mapping)
void computeTransitionProducts(const RealTimeSystem &system, const Pattern &pattern, const unordered_map< Place, Place > &mappingPattern, const unordered_map< unsigned, std::vector< size_t > > &decomposedTransitionsForEvent)
void copySystemTransitions(const RealTimeSystem &system, unordered_map< Place, Place > &mappingSystem, unordered_map< Transition, Transition > &mappingTransitionSystem, const Pattern &pattern, unordered_map< unsigned, std::vector< size_t > > &decomposedTransitionsForEvent)
RealTimeSystemPattern(const RealTimeSystem &system, const Pattern &pattern)
Namespace of the Diades project.
const vector< Place > & nonAdmissibleSystemPlaces() const
const vector< Marking > & finalMarkings() const
Iterators over the places or the transitions of the Net.
Definition: BoundedNet.hh:187