UnCoVer (Using Coverability for Verification)
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
MatcherScenario.h
1 /***************************************************************************
2  * Copyright (C) 2014 by Jan Stückrath <jan.stueckrath@uni-due.de> *
3  * *
4  * This program is free software; you can redistribute it and/or modify *
5  * it under the terms of the GNU General Public License as published by *
6  * the Free Software Foundation; either version 2 of the License, or *
7  * (at your option) any later version. *
8  * *
9  * This program is distributed in the hope that it will be useful, *
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12  * GNU General Public License for more details. *
13  * *
14  * You should have received a copy of the GNU General Public License *
15  * along with this program; if not, write to the *
16  * Free Software Foundation, Inc., *
17  * 51 Franklin St, Fifth Floor, Boston, MA 02110, USA *
18  ***************************************************************************/
19 
20 #ifndef MATCHERSCENARIO_H_
21 #define MATCHERSCENARIO_H_
22 
23 #include "../basic_types/Scenario.h"
24 #include "../graphs/Hypergraph.h"
25 
26 namespace uncover {
27  namespace scenarios {
28 
34 
35  public:
36 
41 
45  virtual ~MatcherScenario();
46 
51  virtual void run() override;
52 
53  protected:
54 
55  virtual void initialize(unordered_map<string,string>& parameters) override;
56 
57  private:
58 
62  shared_ptr<vector<graphs::Hypergraph_sp>> srcGraphs;
63 
67  shared_ptr<vector<graphs::Hypergraph_sp>> tarGraphs;
68 
73 
77  bool injective;
78 
79  };
80 
81  } /* namespace scenarios */
82 } /* namespace uncover */
83 
84 #endif /* MATCHERSCENARIO_H_ */
This scenario takes two sets of graphs and computes all matching from one set to the other...
Definition: MatcherScenario.h:33
virtual void initialize(unordered_map< string, string > &parameters) override
Initializes the scenario with the given mapping, where the keys are parameter names.
Definition: MatcherScenario.cpp:73
shared_ptr< vector< graphs::Hypergraph_sp > > srcGraphs
Stores the set of all source graphs.
Definition: MatcherScenario.h:62
bool injective
Stores whether injective or conflict-free matching should be used.
Definition: MatcherScenario.h:77
shared_ptr< vector< graphs::Hypergraph_sp > > tarGraphs
Stores the set of all target graphs.
Definition: MatcherScenario.h:67
virtual void run() override
Computes all matchings from the source graph set to the target graph set.
Definition: MatcherScenario.cpp:53
string resultFilename
Stores the filename used to save the computed matchings.
Definition: MatcherScenario.h:72
virtual ~MatcherScenario()
Destroys this MatcherScenario object.
Definition: MatcherScenario.cpp:51
A scenario is a subprogram using a set of input parameters to execute some algorithms, producing desired output.
Definition: Scenario.h:36
MatcherScenario()
Generates a new MatcherScenario object.
Definition: MatcherScenario.cpp:35