DISPLACE  1.0
A spatial model of fisheries to help sustainable fishing and maritime spatial planning
simulation.h
Go to the documentation of this file.
1 // --------------------------------------------------------------------------
2 // DISPLACE: DYNAMIC INDIVIDUAL VESSEL-BASED SPATIAL PLANNING
3 // AND EFFORT DISPLACEMENT
4 // Copyright (c) 2012-2019 Francois Bastardie <fba@aqua.dtu.dk>
5 
6 // This program is free software; you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation; either version 2 of the License, or
9 // (at your option) any later version.
10 
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
15 
16 // You should have received a copy of the GNU General Public License along
17 // with this program; if not, write to the Free Software Foundation, Inc.,
18 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 // --------------------------------------------------------------------------
20 
21 #ifndef SCENARIO_H
22 #define SCENARIO_H
23 
25 #include <string>
26 
27 #include <boost/lexical_cast.hpp>
28 #include <memory>
29 
30 namespace displace {
31 namespace simulation {
32 
42 {
43 private:
44  Simulation();
45  ~Simulation(); // Avoids destroying. Not implemented.
46 
47  static Simulation *mInstance;
48 public:
49  static Simulation *instance();
50 
51  bool loadTimeSeries(std::string path, std::string tsscenario);
52  TimeSeries *getTimeSeries (TimeSeriesManager::Variables var, int zone, int adim);
53 
54 private:
55  std::shared_ptr<TimeSeriesManager> mTsManager;
56 
57  bool readTsFile(std::string filename);
58 };
59 
60 } } // ns displace::simulation
61 
62 
63 #endif // SCENARIO_H
Definition: timeseries.h:12
a class to manage the simulation scenario
Definition: simulation.h:41
Definition: decisiontreemanager.h:13
Variables
Definition: timeseriesmanager.h:17
#define COMMONSSHARED_EXPORT
Definition: commons_global.h:23