Hide the tgba_gspn and tgba_gspn_eesrg classes. Offer the

corresponding automaton via the automaton() method of the
gspn_interface and gspn_eesrg_interface classes.

* iface/gspn/gspn.hh (gspn_interface::gspn_interface): Take dict and
env arguments.
(gspn_interface::automaton): New method.
(tgba_gspn): Move all the declaration ...
* iface/gspn/gspn.cc (tgba_gspn): ... here.
(gspn_interface::automaton): Implement it.
* iface/gspn/eesrg.hh (gspn_eesrg_interface::gspn_eesrg_interface):
Take dict and env arguments.
(gspn_eesrg_interface::automaton): New method.
(tgba_gspn_eesrg): Move all the declaration ...
* iface/gspn/gspn.cc (tgba_gspn_eesrg): ... here.
(gspn_eesrg_interface::automaton): Implement it.
* iface/gspn/dottygspn.cc, iface/gspn/dottyeesrg.cc,
iface/gspn/ltlgspn.cc: Adjust.
This commit is contained in:
Alexandre Duret-Lutz 2004-02-02 09:55:48 +00:00
parent 2f7d46d719
commit 9d9ba1bed7
8 changed files with 150 additions and 111 deletions

View file

@ -35,39 +35,13 @@ namespace spot
class gspn_eesrg_interface
{
public:
gspn_eesrg_interface(int argc, char **argv);
gspn_eesrg_interface(int argc, char **argv,
bdd_dict* dict, const gspn_environment& env);
~gspn_eesrg_interface();
// FIXME: I think we should have
// tgba* get_automata();
};
/// Data private to tgba_gspn.
struct tgba_gspn_eesrg_private_;
class tgba_gspn_eesrg: public tgba
{
public:
tgba_gspn_eesrg(bdd_dict* dict, const gspn_environment& env,
const tgba* operand);
tgba_gspn_eesrg(const tgba_gspn_eesrg& other);
tgba_gspn_eesrg& operator=(const tgba_gspn_eesrg& other);
virtual ~tgba_gspn_eesrg();
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 state* project_state(const state* s, const tgba* t) const;
virtual bdd all_acceptance_conditions() const;
virtual bdd neg_acceptance_conditions() const;
protected:
virtual bdd compute_support_conditions(const spot::state* state) const;
virtual bdd compute_support_variables(const spot::state* state) const;
tgba* automaton(const tgba* operand) const;
private:
tgba_gspn_eesrg_private_* data_;
bdd_dict* dict_;
const gspn_environment& env_;
};
}