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

Please direct any question, comment, or bug report to the Spot mailing list at spot@lrde.epita.fr.
Generated on Sat Dec 6 2014 12:28:44 for spot by doxygen 1.8.4