spot  0.8.3
tgbatba.hh
Go to the documentation of this file.
00001 // Copyright (C) 2010, 2011, 2012 Laboratoire de Recherche et
00002 // Développement de 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 
00098     bdd union_acceptance_conditions_of_original_state(const state* s) const;
00099 
00104     state* create_state(state* s, cycle_list::const_iterator acc) const;
00105 
00106   protected:
00107     virtual bdd compute_support_conditions(const state* state) const;
00108     virtual bdd compute_support_variables(const state* state) const;
00109 
00110     cycle_list acc_cycle_;
00111     const tgba* a_;
00112 
00113   private:
00114     bdd the_acceptance_cond_;
00115     typedef Sgi::hash_map<const state*, bdd,
00116                           state_ptr_hash, state_ptr_equal> accmap_t;
00117     mutable accmap_t accmap_;
00118     mutable accmap_t accmapu_;
00119 
00121     mutable void* uniq_map_;
00122 
00123     // Disallow copy.
00124     tgba_tba_proxy(const tgba_tba_proxy&);
00125     tgba_tba_proxy& operator=(const tgba_tba_proxy&);
00126   };
00127 
00143   class tgba_sba_proxy : public tgba_tba_proxy
00144   {
00145   public:
00146     tgba_sba_proxy(const tgba* a);
00147 
00155     bool state_is_accepting(const state* state) const;
00156 
00157     virtual state* get_init_state() const;
00158   protected:
00159     cycle_list::iterator cycle_start_;
00160   };
00161 
00162 }
00163 #endif // SPOT_TGBA_TGBATBA_HH

Please comment this page and report errors about it on the RefDocComments page.
Generated on Fri Mar 9 2012 13:52:09 for spot by doxygen 1.7.6.1