spot 2.2.2

- Main Page
- Related Pages
- Modules
- Classes
- Files

- File List

All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
tgtaexplicit.hh
1 // -*- coding: utf-8 -*-
2 // Copyright (C) 2010, 2011, 2012, 2013, 2014, 2015, 2016 Laboratoire
3 // de Recherche et Développement 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 MERCHANta_explicitBILITY
14 // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
15 // License for more deta_explicitils.
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 <spot/misc/hash.hh>
23 #include <list>
24 #include <spot/twa/twa.hh>
25 #include <set>
26 #include <spot/tl/formula.hh>
27 #include <cassert>
28 #include <spot/misc/bddlt.hh>
29 #include <spot/ta/taexplicit.hh>
30 #include <spot/ta/tgta.hh>
31
32 namespace spot
33 {
34
37 class SPOT_API tgta_explicit final : public tgta
38 {
39 public:
40 tgta_explicit(const const_twa_ptr& tgba,
41 unsigned n_acc,
42 state_ta_explicit* artificial_initial_state);
43
44 // tgba interface
45 virtual spot::state* get_init_state() const override;
46
47 virtual twa_succ_iterator*
48 succ_iter(const spot::state* local_state) const override;
49
50 const_ta_explicit_ptr get_ta() const { return ta_; }
51 ta_explicit_ptr get_ta() { return ta_; }
52
53 virtual std::string format_state(const spot::state* s) const override;
54
55 virtual twa_succ_iterator*
56 succ_iter_by_changeset(const spot::state* s, bdd change_set) const override;
57 protected:
58 ta_explicit_ptr ta_;
59 };
60
61 typedef std::shared_ptr<tgta_explicit> tgta_explicit_ptr;
62 typedef std::shared_ptr<const tgta_explicit> const_tgta_explicit_ptr;
63
64 inline tgta_explicit_ptr
65 make_tgta_explicit(const const_twa_ptr& tgba, unsigned n_acc,
66 state_ta_explicit* artificial_initial_state = nullptr)
67 {
68 return std::make_shared<tgta_explicit>(tgba, n_acc,
69 artificial_initial_state);
70 }
71 }
spot
Definition: graph.hh:32
formula.hh
LTL/PSL formula interface.
spot::state
Abstract class for states.
Definition: twa.hh:50
spot::twa_succ_iterator
Iterate over the successors of a state.
Definition: twa.hh:397
spot::tgta_explicit
Definition: tgtaexplicit.hh:37
spot::state_ta_explicit
Definition: taexplicit.hh:129
spot::tgta
A Transition-based Generalized Testing Automaton (TGTA).
Definition: tgta.hh:59

Please direct any question, comment, or bug report to the Spot mailing list at spot@lrde.epita.fr.