00001 // Copyright (C) 2004 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 the Spot tutorial. Spot is a model checking 00006 // library. 00007 // 00008 // Spot is free software; you can redistribute it and/or modify it 00009 // under the terms of the GNU General Public License as published by 00010 // the Free Software Foundation; either version 2 of the License, or 00011 // (at your option) any later version. 00012 // 00013 // Spot is distributed in the hope that it will be useful, but WITHOUT 00014 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 00015 // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 00016 // License for more details. 00017 // 00018 // You should have received a copy of the GNU General Public License 00019 // along with Spot; see the file COPYING. If not, write to the Free 00020 // Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 00021 // 02111-1307, USA. 00022 00023 #ifndef PN_STATE_HH 00024 #define PN_STATE_HH 00025 00026 #include "tgba/state.hh" 00027 #include "compressedmarking.hh" 00028 00031 class pn_state : public spot::state { 00032 public: 00038 pn_state(const marking& m); 00039 00052 int compare(const state* other) const; 00053 00059 size_t hash() const; 00060 00066 state* clone() const; 00067 00073 const compressed_marking& get_marking() const; 00074 00075 private: 00076 00078 compressed_marking ma; 00079 }; 00080 00081 #endif