* iface/gspn/Makefile.am (gspn_HEADERS): Add common.hh. (libspotgspn_la_SOURCES): Add common.cc. (libspotgspneesrg_la_LIBADD, libspotgspneesrg_la_CPPFLAGS) (libspotgspneesrg_la_SOURCES, ltlgspn_eesrg_SOURCES) (dotty_eesrg_LDADD, dotty_eesrg_CPPFLAGS): New variables. (lib_LTLIBRARIES): Add libspotgspneesrg.la. (check_PROGRAMS): Add dottygspn-eesrg. * iface/gspn/gspn.hh, iface/gspn/gspn.cc (gspn_exeption, operator<<(gspn_exeption), gspn_environment): Move ... * iface/gspn/common.hh, iface/gspn/common.cc: ... in these new files. * iface/gspn/eesrg.hh, iface/gspn/eesrg.cc, iface/gspn/dottyeesrg.cc: New files.
52 lines
1.3 KiB
C++
52 lines
1.3 KiB
C++
#ifndef SPOT_IFACE_GSPN_GSPN_HH
|
|
# define SPOT_IFACE_GSPN_GSPN_HH
|
|
|
|
// Do not include gspnlib.h here, or it will polute the user's
|
|
// namespace with internal C symbols.
|
|
|
|
# include <string>
|
|
# include "tgba/tgba.hh"
|
|
# include "common.hh"
|
|
|
|
namespace spot
|
|
{
|
|
|
|
class gspn_interface
|
|
{
|
|
public:
|
|
gspn_interface(int argc, char **argv);
|
|
~gspn_interface();
|
|
// FIXME: I think we should have
|
|
// tgba* get_automata();
|
|
};
|
|
|
|
|
|
/// Data private to tgba_gspn.
|
|
struct tgba_gspn_private_;
|
|
|
|
class tgba_gspn: public tgba
|
|
{
|
|
public:
|
|
tgba_gspn(bdd_dict* dict, const gspn_environment& env);
|
|
tgba_gspn(const tgba_gspn& other);
|
|
tgba_gspn& operator=(const tgba_gspn& other);
|
|
virtual ~tgba_gspn();
|
|
virtual state* get_init_state() const;
|
|
virtual tgba_succ_iterator*
|
|
succ_iter(const state* local_state,
|
|
const state* global_state = 0,
|
|
const tgba* global_automaton = 0) const;
|
|
virtual bdd_dict* get_dict() const;
|
|
virtual std::string format_state(const state* state) const;
|
|
virtual bdd all_accepting_conditions() const;
|
|
virtual bdd neg_accepting_conditions() const;
|
|
protected:
|
|
virtual bdd compute_support_conditions(const spot::state* state) const;
|
|
virtual bdd compute_support_variables(const spot::state* state) const;
|
|
private:
|
|
tgba_gspn_private_* data_;
|
|
};
|
|
|
|
}
|
|
|
|
#endif // SPOT_IFACE_GSPN_GSPN_HH
|