tgbatba.hh

Go to the documentation of this file.
00001 // Copyright (C) 2010 Laboratoire de Recherche et Développement de
00002 // l'Epita.
00003 // Copyright (C) 2003, 2004, 2006 Laboratoire d'Informatique de Paris
00004 // 6 (LIP6), département Systèmes Répartis Coopératifs (SRC),
00005 // Université Pierre et Marie Curie.
00006 //
00007 // This file is part of Spot, a model checking library.
00008 //
00009 // Spot is free software; you can redistribute it and/or modify it
00010 // under the terms of the GNU General Public License as published by
00011 // the Free Software Foundation; either version 2 of the License, or
00012 // (at your option) any later version.
00013 //
00014 // Spot is distributed in the hope that it will be useful, but WITHOUT
00015 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
00016 // or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
00017 // License for more details.
00018 //
00019 // You should have received a copy of the GNU General Public License
00020 // along with Spot; see the file COPYING.  If not, write to the Free
00021 // Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
00022 // 02111-1307, USA.
00023 
00024 #ifndef SPOT_TGBA_TGBATBA_HH
00025 # define SPOT_TGBA_TGBATBA_HH
00026 
00027 #include <list>
00028 #include "tgba.hh"
00029 #include "misc/bddlt.hh"
00030 #include "misc/hash.hh"
00031 
00032 namespace spot
00033 {
00034 
00053   class tgba_tba_proxy : public tgba
00054   {
00055   public:
00056     tgba_tba_proxy(const tgba* a);
00057 
00058     virtual ~tgba_tba_proxy();
00059 
00060     virtual state* get_init_state() const;
00061 
00062     virtual tgba_succ_iterator*
00063     succ_iter(const state* local_state,
00064               const state* global_state = 0,
00065               const tgba* global_automaton = 0) const;
00066 
00067     virtual bdd_dict* get_dict() const;
00068 
00069     virtual std::string format_state(const state* state) const;
00070 
00071     virtual state* project_state(const state* s, const tgba* t) const;
00072 
00073     virtual bdd all_acceptance_conditions() const;
00074     virtual bdd neg_acceptance_conditions() const;
00075 
00076     typedef std::list<bdd> cycle_list;
00077 
00078 
00087     bdd common_acceptance_conditions_of_original_state(const state*
00088                                                        ostate) const;
00089 
00090   protected:
00091     virtual bdd compute_support_conditions(const state* state) const;
00092     virtual bdd compute_support_variables(const state* state) const;
00093 
00094     cycle_list acc_cycle_;
00095     const tgba* a_;
00096   private:
00097     bdd the_acceptance_cond_;
00098     typedef Sgi::hash_map<const state*, bdd,
00099                           state_ptr_hash, state_ptr_equal> accmap_t;
00100     mutable accmap_t accmap_;
00101 
00102     // Disallow copy.
00103     tgba_tba_proxy(const tgba_tba_proxy&);
00104     tgba_tba_proxy& operator=(const tgba_tba_proxy&);
00105   };
00106 
00122   class tgba_sba_proxy : public tgba_tba_proxy
00123   {
00124   public:
00125     tgba_sba_proxy(const tgba* a);
00126 
00134     bool state_is_accepting(const state* state) const;
00135 
00136     virtual state* get_init_state() const;
00137   protected:
00138     cycle_list::iterator cycle_start_;
00139   };
00140 
00141 }
00142 #endif // SPOT_TGBA_TGBATBA_HH

Please comment this page and report errors about it on the RefDocComments page.
Generated on Mon Feb 7 2011 14:29:29 for spot by doxygen 1.7.1