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

@ -1,4 +1,4 @@
// Copyright (C) 2003 Laboratoire d'Informatique de Paris 6 (LIP6),
// Copyright (C) 2003, 2004 Laboratoire d'Informatique de Paris 6 (LIP6),
// département Systèmes Répartis Coopératifs (SRC), Université Pierre
// et Marie Curie.
//
@ -40,8 +40,8 @@ main(int argc, char **argv)
while (argc > 3)
env.declare(argv[--argc]);
spot::gspn_eesrg_interface gspn(2, argv);
spot::bdd_dict* dict = new spot::bdd_dict();
spot::gspn_eesrg_interface gspn(2, argv, dict, env);
spot::tgba_parse_error_list pel1;
spot::tgba_explicit* control = spot::tgba_parse(argv[--argc], pel1,
@ -49,12 +49,10 @@ main(int argc, char **argv)
if (spot::format_tgba_parse_errors(std::cerr, pel1))
return 2;
{
spot::tgba_gspn_eesrg a(dict, env, control);
spot::dotty_reachable(std::cout, &a);
}
spot::tgba* a = gspn.automaton(control);
spot::dotty_reachable(std::cout, a);
delete a;
delete control;
delete dict;
}