00001 // Copyright (C) 2009 Laboratoire de Recherche et Développement 00002 // de l'Epita (LRDE). 00003 // Copyright (C) 2004 Laboratoire d'Informatique de Paris 6 (LIP6), 00004 // département Systèmes Répartis Coopératifs (SRC), Université Pierre 00005 // et Marie Curie. 00006 // 00007 // This file is part of Spot, a model checking library. 00008 // 00009 // Spot is free software; you can redistribute it and/or modify it 00010 // under the terms of the GNU General Public License as published by 00011 // the Free Software Foundation; either version 2 of the License, or 00012 // (at your option) any later version. 00013 // 00014 // Spot is distributed in the hope that it will be useful, but WITHOUT 00015 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 00016 // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 00017 // License for more details. 00018 // 00019 // You should have received a copy of the GNU General Public License 00020 // along with Spot; see the file COPYING. If not, write to the Free 00021 // Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 00022 // 02111-1307, USA. 00023 00024 #ifndef SPOT_EVTGBA_PRODUCT_HH 00025 # define SPOT_EVTGBA_PRODUCT_HH 00026 00027 #include "evtgba/evtgba.hh" 00028 #include <vector> 00029 00030 namespace spot 00031 { 00032 // FIXME: doc me 00033 class evtgba_product: public evtgba 00034 { 00035 public: 00036 typedef std::vector<const evtgba*> evtgba_product_operands; 00037 evtgba_product(const evtgba_product_operands& op); 00038 virtual ~evtgba_product(); 00039 00040 virtual evtgba_iterator* init_iter() const; 00041 virtual evtgba_iterator* succ_iter(const state* s) const; 00042 virtual evtgba_iterator* pred_iter(const state* s) const; 00043 00048 virtual std::string format_state(const state* state) const; 00049 00058 virtual const symbol_set& all_acceptance_conditions() const; 00059 virtual const symbol_set& alphabet() const; 00060 00061 typedef std::map<const symbol*, std::set<int> > common_symbol_table; 00062 private: 00063 const evtgba_product_operands op_; 00064 symbol_set alphabet_; 00065 symbol_set all_acc_; 00066 common_symbol_table common_symbols_; 00067 }; 00068 00069 } 00070 00071 #endif // SPOT_EVTGBA_PRODUCT_HH