spot 2.12
tgtaexplicit.hh
1// -*- coding: utf-8 -*-
2// Copyright (C) by the Spot authors, see the AUTHORS file for details.
3//
4// This file is part of Spot, a model checking library.
5//
6// Spot is free software; you can redistribute it and/or modify it
7// under the terms of the GNU General Public License as published by
8// the Free Software Foundation; either version 3 of the License, or
9// (at your option) any later version.
10//
11// Spot is distributed in the hope that it will be useful, but WITHOUT
12// ANY WARRANTY; without even the implied warranty of MERCHANta_explicitBILITY
13// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
14// License for more deta_explicitils.
15//
16// You should have received a copy of the GNU General Public License
17// along with this program. If not, see <http://www.gnu.org/licenses/>.
18
19#pragma once
20
21#include <spot/misc/hash.hh>
22#include <list>
23#include <spot/twa/twa.hh>
24#include <set>
25#include <spot/tl/formula.hh>
26#include <cassert>
27#include <spot/misc/bddlt.hh>
28#include <spot/ta/taexplicit.hh>
29#include <spot/ta/tgta.hh>
30
31namespace spot
32{
33
36 class SPOT_API tgta_explicit final : public tgta
37 {
38 public:
39 tgta_explicit(const const_twa_ptr& tgba,
40 unsigned n_acc,
41 state_ta_explicit* artificial_initial_state);
42
43 // tgba interface
44 virtual spot::state* get_init_state() const override;
45
46 virtual twa_succ_iterator*
47 succ_iter(const spot::state* local_state) const override;
48
49 const_ta_explicit_ptr get_ta() const { return ta_; }
50 ta_explicit_ptr get_ta() { return ta_; }
51
52 virtual std::string format_state(const spot::state* s) const override;
53
54 virtual twa_succ_iterator*
55 succ_iter_by_changeset(const spot::state* s, bdd change_set) const override;
56 protected:
57 ta_explicit_ptr ta_;
58 };
59
60 typedef std::shared_ptr<tgta_explicit> tgta_explicit_ptr;
61 typedef std::shared_ptr<const tgta_explicit> const_tgta_explicit_ptr;
62
63 inline tgta_explicit_ptr
64 make_tgta_explicit(const const_twa_ptr& tgba, unsigned n_acc,
65 state_ta_explicit* artificial_initial_state = nullptr)
66 {
67 return std::make_shared<tgta_explicit>(tgba, n_acc,
68 artificial_initial_state);
69 }
70}
Definition: taexplicit.hh:128
Abstract class for states.
Definition: twa.hh:47
Definition: tgtaexplicit.hh:37
virtual spot::state * get_init_state() const override
Get the initial state of the automaton.
virtual twa_succ_iterator * succ_iter(const spot::state *local_state) const override
Get an iterator over the successors of local_state.
virtual twa_succ_iterator * succ_iter_by_changeset(const spot::state *s, bdd change_set) const override
Get an iterator over the successors of state filtred by the value of the changeset on transitions bet...
virtual std::string format_state(const spot::state *s) const override
Format the state as a string for printing.
A Transition-based Generalized Testing Automaton (TGTA).
Definition: tgta.hh:59
Iterate over the successors of a state.
Definition: twa.hh:394
LTL/PSL formula interface.
Definition: automata.hh:26

Please direct any question, comment, or bug report to the Spot mailing list at spot@lrde.epita.fr.
Generated on Fri Feb 27 2015 10:00:07 for spot by doxygen 1.9.4