1 #ifndef __DIADES__AUTOMATA__FAULTMODEL__HH 2 #define __DIADES__AUTOMATA__FAULTMODEL__HH 6 #include<unordered_set> 13 using std::unordered_set;
84 if(
this != &occurrence)
86 _event = occurrence.
event();
119 return (event() == occurrence.
event()) && (identifier() == occurrence.
identifier());
161 virtual void pattern2Dot(
const string & filename);
EdgeMap< EventOccurrence > _edgeMap
the constraint graph
EventOccurrence & operator=(const EventOccurrence &occurrence)
friend ostream & operator<<(ostream &os, const EventOccurrence &occurrence)
EventOccurrence(const EventOccurrence &occurrence)
virtual const EventOccurrence & eventOccurrenceOf(Edge edge) const
const Graph & owner() const
virtual Node initial() const
bool containsEvent(Event event) const
Node _initialNode
the occurrence of Event associated to each Edge of the Graph
virtual const Graph::Graph & graph() const
Namespace of the Diades project.
bool operator==(const EventOccurrence &occurrence)
virtual bool isFinal(Node s) const
NodeMap< int > _finalNodes
initial state of the pattern graph
unordered_set< Event > _events
set of final states of the constraint graph, status == 1 (final) == 0 (non-final) ...
Namespace of the Graph library (libGraph)
EventOccurrence(Event event, int identifier)
the identifier of the occurrence
int _id
the event that occurs