spot  1.2.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
tgtaproduct.hh
1 // -*- coding: utf-8 -*-
2 // Copyright (C) 2011, 2012, 2013 Laboratoire de Recherche et Développement
3 // de l'Epita (LRDE).
4 //
5 // This file is part of Spot, a model checking library.
6 //
7 // Spot is free software; you can redistribute it and/or modify it
8 // under the terms of the GNU General Public License as published by
9 // the Free Software Foundation; either version 3 of the License, or
10 // (at your option) any later version.
11 //
12 // Spot is distributed in the hope that it will be useful, but WITHOUT
13 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14 // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
15 // License for more details.
16 //
17 // You should have received a copy of the GNU General Public License
18 // along with this program. If not, see <http://www.gnu.org/licenses/>.
19 
20 #ifndef SPOT_TA_TGTAPRODUCT_HH
21 # define SPOT_TA_TGTAPRODUCT_HH
22 
23 #include "tgba/tgba.hh"
24 #include "tgba/tgbaproduct.hh"
25 #include "misc/fixpool.hh"
26 #include "kripke/kripke.hh"
27 #include "tgta.hh"
28 
29 namespace spot
30 {
31 
33  class SPOT_API tgta_product : public tgba_product
34  {
35  public:
36  tgta_product(const kripke* left, const tgta* right);
37 
38  virtual state*
39  get_init_state() const;
40 
41  virtual tgba_succ_iterator*
42  succ_iter(const state* local_state, const state* global_state = 0,
43  const tgba* global_automaton = 0) const;
44  };
45 
48  {
49  public:
51  const tgta* tgta, fixed_size_pool* pool);
52 
53  virtual
55 
56  // iteration
57  void
58  first();
59  void
60  next();
61  bool
62  done() const;
63 
64  // inspection
66  current_state() const;
67  bdd
68  current_condition() const;
69 
70  bdd
71  current_acceptance_conditions() const;
72 
73  private:
75  void
77  step_();
78  void
79  find_next_succ_();
80 
81  void
82  next_kripke_dest();
83 
85 
86  protected:
87  const state_product* source_;
88  const tgta* tgta_;
89  const kripke* kripke_;
90  fixed_size_pool* pool_;
91  tgba_succ_iterator* tgta_succ_it_;
92  tgba_succ_iterator* kripke_succ_it_;
93  state_product* current_state_;
94  bdd current_condition_;
95  bdd current_acceptance_conditions_;
96  bdd kripke_source_condition;
97  state* kripke_current_dest_state;
98  };
99 
100 }
101 
102 #endif // SPOT_TA_TGTAPRODUCT_HH

Please direct any question, comment, or bug report to the Spot mailing list at spot@lrde.epita.fr.
Generated on Thu May 15 2014 11:04:11 for spot by doxygen 1.8.4