spot  1.0.2
tgbaproduct.hh
Go to the documentation of this file.
1 // Copyright (C) 2011 Laboratoire de Recherche et Développement
2 // de l'Epita (LRDE).
3 // Copyright (C) 2003, 2004, 2006 Laboratoire d'Informatique de Paris
4 // 6 (LIP6), département Systèmes Répartis Coopératifs (SRC),
5 // Université Pierre et Marie Curie.
6 //
7 // This file is part of Spot, a model checking library.
8 //
9 // Spot is free software; you can redistribute it and/or modify it
10 // under the terms of the GNU General Public License as published by
11 // the Free Software Foundation; either version 3 of the License, or
12 // (at your option) any later version.
13 //
14 // Spot is distributed in the hope that it will be useful, but WITHOUT
15 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
16 // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
17 // License for more details.
18 //
19 // You should have received a copy of the GNU General Public License
20 // along with this program. If not, see <http://www.gnu.org/licenses/>.
21 
22 #ifndef SPOT_TGBA_TGBAPRODUCT_HH
23 # define SPOT_TGBA_TGBAPRODUCT_HH
24 
25 #include "tgba.hh"
26 #include "misc/fixpool.hh"
27 
28 namespace spot
29 {
30 
36  class state_product : public state
37  {
38  public:
46  : left_(left), right_(right), count_(1), pool_(pool)
47  {
48  }
49 
50  virtual void destroy() const;
51 
52  state*
53  left() const
54  {
55  return left_;
56  }
57 
58  state*
59  right() const
60  {
61  return right_;
62  }
63 
64  virtual int compare(const state* other) const;
65  virtual size_t hash() const;
66  virtual state_product* clone() const;
67 
68  private:
71  mutable unsigned count_;
73 
74  virtual ~state_product();
75  state_product(const state_product& o); // No implementation.
76  };
77 
78 
80  class tgba_product: public tgba
81  {
82  public:
87  tgba_product(const tgba* left, const tgba* right);
88 
89  virtual ~tgba_product();
90 
91  virtual state* get_init_state() const;
92 
93  virtual tgba_succ_iterator*
94  succ_iter(const state* local_state,
95  const state* global_state = 0,
96  const tgba* global_automaton = 0) const;
97 
98  virtual bdd_dict* get_dict() const;
99 
100  virtual std::string format_state(const state* state) const;
101 
102  virtual std::string
104 
105  virtual state* project_state(const state* s, const tgba* t) const;
106 
107  virtual bdd all_acceptance_conditions() const;
108  virtual bdd neg_acceptance_conditions() const;
109 
110  protected:
111  virtual bdd compute_support_conditions(const state* state) const;
112  virtual bdd compute_support_variables(const state* state) const;
113 
114  protected:
116  const tgba* left_;
117  const tgba* right_;
125 
126  private:
127  // Disallow copy.
128  tgba_product(const tgba_product&);
130  };
131 
134  {
135  public:
136  tgba_product_init(const tgba* left, const tgba* right,
137  const state* left_init, const state* right_init);
138  virtual state* get_init_state() const;
139  protected:
142  };
143 
144 }
145 
146 #endif // SPOT_TGBA_TGBAPRODUCT_HH

Please comment this page and report errors about it on the RefDocComments page.
Generated on Wed Mar 6 2013 09:25:14 for spot by doxygen 1.8.1.2