spot  0.8.1
tgbatba.hh
Go to the documentation of this file.
00001 // Copyright (C) 2010, 2011 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 
00098     bdd union_acceptance_conditions_of_original_state(const state* s) const;
00099 
00100   protected:
00101     virtual bdd compute_support_conditions(const state* state) const;
00102     virtual bdd compute_support_variables(const state* state) const;
00103 
00104     cycle_list acc_cycle_;
00105     const tgba* a_;
00106   private:
00107     bdd the_acceptance_cond_;
00108     typedef Sgi::hash_map<const state*, bdd,
00109                           state_ptr_hash, state_ptr_equal> accmap_t;
00110     mutable accmap_t accmap_;
00111     mutable accmap_t accmapu_;
00112 
00113     // Disallow copy.
00114     tgba_tba_proxy(const tgba_tba_proxy&);
00115     tgba_tba_proxy& operator=(const tgba_tba_proxy&);
00116   };
00117 
00133   class tgba_sba_proxy : public tgba_tba_proxy
00134   {
00135   public:
00136     tgba_sba_proxy(const tgba* a);
00137 
00145     bool state_is_accepting(const state* state) const;
00146 
00147     virtual state* get_init_state() const;
00148   protected:
00149     cycle_list::iterator cycle_start_;
00150   };
00151 
00152 }
00153 #endif // SPOT_TGBA_TGBATBA_HH

Please comment this page and report errors about it on the RefDocComments page.
Generated on Sun Dec 18 2011 12:57:15 for spot by doxygen 1.7.6.1