Line data Source code
1 : /*******************************************************************************
2 : * *
3 : * Cosmos:(C)oncept et (O)utils (S)tatistique pour les (Mo)deles *
4 : * (S)tochastiques *
5 : * *
6 : * Copyright (C) 2009-2012 LSV & LACL *
7 : * Authors: Paolo Ballarini BenoƮt Barbot & Hilal Djafri *
8 : * Website: http://www.lsv.ens-cachan.fr/Software/cosmos *
9 : * *
10 : * This program is free software; you can redistribute it and/or modify *
11 : * it under the terms of the GNU General Public License as published by *
12 : * the Free Software Foundation; either version 3 of the License, or *
13 : * (at your option) any later version. *
14 : * *
15 : * This program is distributed in the hope that it will be useful, *
16 : * but WITHOUT ANY WARRANTY; without even the implied warranty of *
17 : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
18 : * GNU General Public License for more details. *
19 : * *
20 : * You should have received a copy of the GNU General Public License along *
21 : * with this program; if not, write to the Free Software Foundation, Inc., *
22 : * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. *
23 : * file Gspn-Grml-Output.hpp *
24 : * Created by Benoit Barbot on 02/11/2015. *
25 : *******************************************************************************
26 : */
27 :
28 : #ifndef Gspn_Grml_Output_hpp
29 : #define Gspn_Grml_Output_hpp
30 :
31 : #include <stdio.h>
32 :
33 : #include "Gspn-model.hpp"
34 : #include "Gspn-Reader.hpp"
35 :
36 : namespace xml_output {
37 :
38 0 : class GspnGrmlOutput: public GspnType {
39 :
40 : public:
41 0 : GspnGrmlOutput(GspnType& g):GspnType(g){};
42 :
43 : friend std::ostream& operator<<(std::ostream & os, GspnGrmlOutput& gspn);
44 : friend std::ostream& operator<<(std::ostream & os, const Distribution& d);
45 : void printPlace(std::ostream&,const place &);
46 : void printTransition(std::ostream&,const transition &);
47 : void printToken(std::ostream& os, const coloredToken& c, size_t);
48 : void printArc(std::ostream& os, const std::pair<size_t,size_t> &p, const arc& a,bool,size_t);
49 : };
50 : }
51 :
52 : #endif /* Gspn_Grml_Output_hpp */
|