spot  0.9.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 2 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 Spot; see the file COPYING. If not, write to the Free
21 // Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
22 // 02111-1307, USA.
23 
24 #ifndef SPOT_TGBA_TGBAPRODUCT_HH
25 # define SPOT_TGBA_TGBAPRODUCT_HH
26 
27 #include "tgba.hh"
28 #include "misc/fixpool.hh"
29 
30 namespace spot
31 {
32 
38  class state_product : public state
39  {
40  public:
48  : left_(left), right_(right), count_(1), pool_(pool)
49  {
50  }
51 
52  virtual void destroy() const;
53 
54  state*
55  left() const
56  {
57  return left_;
58  }
59 
60  state*
61  right() const
62  {
63  return right_;
64  }
65 
66  virtual int compare(const state* other) const;
67  virtual size_t hash() const;
68  virtual state_product* clone() const;
69 
70  private:
73  mutable unsigned count_;
75 
76  virtual ~state_product();
77  state_product(const state_product& o); // No implementation.
78  };
79 
80 
82  class tgba_product: public tgba
83  {
84  public:
89  tgba_product(const tgba* left, const tgba* right);
90 
91  virtual ~tgba_product();
92 
93  virtual state* get_init_state() const;
94 
95  virtual tgba_succ_iterator*
96  succ_iter(const state* local_state,
97  const state* global_state = 0,
98  const tgba* global_automaton = 0) const;
99 
100  virtual bdd_dict* get_dict() const;
101 
102  virtual std::string format_state(const state* state) const;
103 
104  virtual std::string
106 
107  virtual state* project_state(const state* s, const tgba* t) const;
108 
109  virtual bdd all_acceptance_conditions() const;
110  virtual bdd neg_acceptance_conditions() const;
111 
112  protected:
113  virtual bdd compute_support_conditions(const state* state) const;
114  virtual bdd compute_support_variables(const state* state) const;
115 
116  protected:
118  const tgba* left_;
119  const tgba* right_;
127 
128  private:
129  // Disallow copy.
130  tgba_product(const tgba_product&);
132  };
133 
136  {
137  public:
138  tgba_product_init(const tgba* left, const tgba* right,
139  const state* left_init, const state* right_init);
140  virtual state* get_init_state() const;
141  protected:
144  };
145 
146 }
147 
148 #endif // SPOT_TGBA_TGBAPRODUCT_HH

Please comment this page and report errors about it on the RefDocComments page.
Generated on Mon Jul 2 2012 17:35:47 for spot by doxygen 1.8.1.1