DISPLACE  1.0
A spatial model of fisheries to help sustainable fishing and maritime spatial planning
timeseriesmanager.h
Go to the documentation of this file.
1 #ifndef TIMESERIESMANAGER_H
2 #define TIMESERIESMANAGER_H
3 
4 #include <commons_global.h>
5 #include <vector>
6 #include <map>
7 #include <memory>
8 
9 namespace displace {
10 namespace simulation {
11 
12 class TimeSeries;
13 
15 {
16 public:
17  enum Variables { Fishprice = 0, Fuelprice, WSpeed,
18  VariablesLast }; // keep this at the end
19 
21 
22  void addTimeSerie (Variables var, int zone, int adim, std::shared_ptr<TimeSeries> ts);
23  std::shared_ptr<TimeSeries> getTimeSeries (Variables var, int zone, int adim);
24 
25  static const int ALL_ZONES;
26 
27 private:
28  typedef std::map<int, std::shared_ptr<TimeSeries> > ADimContainer;
29  typedef std::map<int, ADimContainer *> ZoneContainer;
30  typedef std::vector<ZoneContainer *> TimeSeriesContainer;
31 
32  TimeSeriesContainer mData;
33 };
34 
35 } } // ns displace::simulation
36 
37 #endif // TIMESERIESMANAGER_H
Definition: decisiontreemanager.h:13
Definition: timeseriesmanager.h:14
static const int ALL_ZONES
Definition: timeseriesmanager.h:25
Variables
Definition: timeseriesmanager.h:17
Definition: timeseriesmanager.h:17
#define COMMONSSHARED_EXPORT
Definition: commons_global.h:23