Inheritance diagram for marking_graph_visitor:
Public Member Functions | |
marking_graph_visitor (const pn_tgba *n) | |
Construct a visitor for the Petri net associated to n. | |
void | process_state (const spot::state *s, int n, spot::tgba_succ_iterator *si) |
Called by spot::tgba_reachable_iterator_breadth_first::run() to process a state. The corresponding marking is printed. | |
void | process_link (int in, int out, const spot::tgba_succ_iterator *si) |
Called by spot::tgba_reachable_iterator_breadth_first::run() to process a fired transition. The corresponding edge is printed. | |
Private Attributes | |
const pn_tgba * | net |
Point to the visited pn_tgba. |
Definition at line 33 of file graphvisitor.hh.
|
Construct a visitor for the Petri net associated to n. The pointer n is supposed to be valid for the whole life of the constructed instance. marking_graph_visitor::marking_graph_visitor(const pn_tgba* n) : spot::tgba_reachable_iterator_breadth_first(n), net(n) { } // |
|
Called by spot::tgba_reachable_iterator_breadth_first::run() to process a fired transition. The corresponding edge is printed.
void marking_graph_visitor::process_link(int in, int out, const spot::tgba_succ_iterator* si) { const pn_succ_iterator* i = dynamic_cast<const pn_succ_iterator*>(si); assert(i); std::cout << "\tfiring " << i->format_transition() << " from "; std::cout << in << " leads to " << out << std::endl; } // |
|
Called by spot::tgba_reachable_iterator_breadth_first::run() to process a state. The corresponding marking is printed.
void marking_graph_visitor::process_state(const spot::state* s, int n, spot::tgba_succ_iterator* si) { std::cout << "marking " << n << " : " << net->format_state(s) << std::endl; } // |
|
Point to the visited pn_tgba.
Definition at line 73 of file graphvisitor.hh. |