spot
0.8.1
|
00001 // Copyright (C) 2009 Laboratoire de Recherche et Développement 00002 // de l'Epita (LRDE). 00003 // Copyright (C) 2003, 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 00026 #ifndef SPOT_LTLAST_CONSTANT_HH 00027 # define SPOT_LTLAST_CONSTANT_HH 00028 00029 #include "formula.hh" 00030 00031 namespace spot 00032 { 00033 namespace ltl 00034 { 00035 00038 class constant : public formula 00039 { 00040 public: 00041 enum type { False, True }; 00042 virtual void accept(visitor& v); 00043 virtual void accept(const_visitor& v) const; 00044 00046 type val() const; 00048 const char* val_name() const; 00049 00050 virtual std::string dump() const; 00051 00053 static constant* true_instance(); 00055 static constant* false_instance(); 00056 00057 protected: 00058 constant(type val); 00059 virtual ~constant(); 00060 00061 private: 00062 type val_; 00063 }; 00064 00065 } 00066 } 00067 00068 #endif // SPOT_LTLAST_CONSTANT_HH