tgbaproxy.hh 1.84 KB
Newer Older
1
// -*- coding: utf-8 -*-
2 3
// Copyright (C) 2013, 2014, 2015 Laboratoire de Recherche et
// Développement de l'Epita (LRDE).
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
//
// This file is part of Spot, a model checking library.
//
// Spot is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// Spot is distributed in the hope that it will be useful, but WITHOUT
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
// or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
// License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.

20
#pragma once
21 22 23 24 25 26 27 28 29 30 31 32 33 34

#include "tgba.hh"

namespace spot
{
  /// \ingroup tgba_on_the_fly_algorithms
  /// \brief A TGBA proxy.
  ///
  /// This implements a simple proxy to an existing
  /// TGBA, forwarding all methods to the original.
  /// By itself this class is pointless: better use the
  /// original automaton right away.  However it is useful
  /// to inherit from this class and override some of its
  /// methods to implement some on-the-fly algorithm.
35
  class SPOT_API tgba_proxy: public twa
36 37
  {
  protected:
38
    tgba_proxy(const const_twa_ptr& original);
39 40 41 42 43 44

  public:
    virtual ~tgba_proxy();

    virtual state* get_init_state() const;

45
    virtual twa_succ_iterator*
46
    succ_iter(const state* state) const;
47 48 49 50

    virtual std::string format_state(const state* state) const;

    virtual std::string
51
    transition_annotation(const twa_succ_iterator* t) const;
52

53
    virtual state* project_state(const state* s, const const_twa_ptr& t) const;
54 55 56

  protected:
    virtual bdd compute_support_conditions(const state* state) const;
57
    const_twa_ptr original_;
58 59
  };
}