00001 // Copyright (C) 2003 Laboratoire d'Informatique de Paris 6 (LIP6), 00002 // département Systèmes Répartis Coopératifs (SRC), Université Pierre 00003 // et Marie Curie. 00004 // 00005 // This file is part of Spot, a model checking library. 00006 // 00007 // Spot is free software; you can redistribute it and/or modify it 00008 // under the terms of the GNU General Public License as published by 00009 // the Free Software Foundation; either version 2 of the License, or 00010 // (at your option) any later version. 00011 // 00012 // Spot is distributed in the hope that it will be useful, but WITHOUT 00013 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 00014 // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 00015 // License for more details. 00016 // 00017 // You should have received a copy of the GNU General Public License 00018 // along with Spot; see the file COPYING. If not, write to the Free 00019 // Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 00020 // 02111-1307, USA. 00021 00022 #ifndef SPOT_IFACE_GSPN_GSPN_HH 00023 # define SPOT_IFACE_GSPN_GSPN_HH 00024 00025 // Do not include gspnlib.h here, or it will polute the user's 00026 // namespace with internal C symbols. 00027 00028 # include <string> 00029 # include "tgba/tgba.hh" 00030 # include "common.hh" 00031 00032 namespace spot 00033 { 00034 00035 class gspn_interface 00036 { 00037 public: 00038 gspn_interface(int argc, char **argv); 00039 ~gspn_interface(); 00040 // FIXME: I think we should have 00041 // tgba* get_automata(); 00042 }; 00043 00044 00046 struct tgba_gspn_private_; 00047 00048 class tgba_gspn: public tgba 00049 { 00050 public: 00051 tgba_gspn(bdd_dict* dict, const gspn_environment& env); 00052 tgba_gspn(const tgba_gspn& other); 00053 tgba_gspn& operator=(const tgba_gspn& other); 00054 virtual ~tgba_gspn(); 00055 virtual state* get_init_state() const; 00056 virtual tgba_succ_iterator* 00057 succ_iter(const state* local_state, 00058 const state* global_state = 0, 00059 const tgba* global_automaton = 0) const; 00060 virtual bdd_dict* get_dict() const; 00061 virtual std::string format_state(const state* state) const; 00062 virtual bdd all_acceptance_conditions() const; 00063 virtual bdd neg_acceptance_conditions() const; 00064 protected: 00065 virtual bdd compute_support_conditions(const spot::state* state) const; 00066 virtual bdd compute_support_variables(const spot::state* state) const; 00067 private: 00068 tgba_gspn_private_* data_; 00069 }; 00070 00071 } 00072 00073 #endif // SPOT_IFACE_GSPN_GSPN_HH