spot  1.99.4
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
kripke.hh
1 // -*- coding: utf-8 -*-
2 // Copyright (C) 2009, 2010, 2013, 2014 Laboratoire de Recherche et
3 // Developpement de l'Epita
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 #pragma once
21 
22 #include "fairkripke.hh"
23 
24 namespace spot
25 {
26 
43  class SPOT_API kripke_succ_iterator : public twa_succ_iterator
44  {
45  public:
50  kripke_succ_iterator(const bdd& cond)
51  : cond_(cond)
52  {
53  }
54 
55  void recycle(const bdd& cond)
56  {
57  cond_ = cond;
58  }
59 
60  virtual ~kripke_succ_iterator();
61 
62  virtual bdd current_condition() const;
63  virtual acc_cond::mark_t current_acceptance_conditions() const;
64  protected:
65  bdd cond_;
66  };
67 
91  class SPOT_API kripke: public fair_kripke
92  {
93  public:
94  kripke(const bdd_dict_ptr& d)
95  : fair_kripke(d)
96  {
97  }
98 
99  virtual ~kripke();
100 
101  virtual acc_cond::mark_t state_acceptance_conditions(const state*) const;
102  };
103 
104  typedef std::shared_ptr<kripke> kripke_ptr;
105  typedef std::shared_ptr<const kripke> const_kripke_ptr;
106 }
Definition: graph.hh:31
Interface for a Fair Kripke structure.
Definition: fairkripke.hh:88
Interface for a Kripke structure.
Definition: kripke.hh:91
Abstract class for states.
Definition: twa.hh:42
Iterator code for Kripke structure.
Definition: kripke.hh:43
kripke_succ_iterator(const bdd &cond)
Constructor.
Definition: kripke.hh:50
Iterate over the successors of a state.
Definition: twa.hh:331
Definition: acc.hh:34

Please direct any question, comment, or bug report to the Spot mailing list at spot@lrde.epita.fr.
Generated on Thu Oct 1 2015 05:49:14 for spot by doxygen 1.8.8