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:
parent
2f7d46d719
commit
9d9ba1bed7
8 changed files with 150 additions and 111 deletions
|
|
@ -30,21 +30,6 @@
|
|||
namespace spot
|
||||
{
|
||||
|
||||
gspn_eesrg_interface::gspn_eesrg_interface(int argc, char **argv)
|
||||
{
|
||||
int res = initialize(argc, argv);
|
||||
if (res)
|
||||
throw gspn_exeption("initialize()", res);
|
||||
}
|
||||
|
||||
gspn_eesrg_interface::~gspn_eesrg_interface()
|
||||
{
|
||||
int res = finalize();
|
||||
if (res)
|
||||
throw gspn_exeption("finalize()", res);
|
||||
}
|
||||
|
||||
|
||||
// state_gspn_eesrg
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
|
@ -345,6 +330,30 @@ namespace spot
|
|||
// tgba_gspn_eesrg
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
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;
|
||||
private:
|
||||
tgba_gspn_eesrg_private_* data_;
|
||||
};
|
||||
|
||||
tgba_gspn_eesrg::tgba_gspn_eesrg(bdd_dict* dict, const gspn_environment& env,
|
||||
const tgba* operand)
|
||||
|
|
@ -469,4 +478,30 @@ namespace spot
|
|||
return data_->operand->neg_acceptance_conditions();
|
||||
}
|
||||
|
||||
// gspn_eesrg_interface
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
gspn_eesrg_interface::gspn_eesrg_interface(int argc, char **argv,
|
||||
bdd_dict* dict,
|
||||
const gspn_environment& env)
|
||||
: dict_(dict), env_(env)
|
||||
{
|
||||
int res = initialize(argc, argv);
|
||||
if (res)
|
||||
throw gspn_exeption("initialize()", res);
|
||||
}
|
||||
|
||||
gspn_eesrg_interface::~gspn_eesrg_interface()
|
||||
{
|
||||
int res = finalize();
|
||||
if (res)
|
||||
throw gspn_exeption("finalize()", res);
|
||||
}
|
||||
|
||||
tgba*
|
||||
gspn_eesrg_interface::automaton(const tgba* operand) const
|
||||
{
|
||||
return new tgba_gspn_eesrg(dict_, env_, operand);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue